index.d.ts 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. /* calcite custom elements bundle */
  2. import type { Components, JSX } from "../types/components";
  3. interface CalciteAccordion extends Components.CalciteAccordion, HTMLElement {}
  4. export const CalciteAccordion: {
  5. prototype: CalciteAccordion;
  6. new (): CalciteAccordion;
  7. };
  8. interface CalciteAccordionItem extends Components.CalciteAccordionItem, HTMLElement {}
  9. export const CalciteAccordionItem: {
  10. prototype: CalciteAccordionItem;
  11. new (): CalciteAccordionItem;
  12. };
  13. interface CalciteAction extends Components.CalciteAction, HTMLElement {}
  14. export const CalciteAction: {
  15. prototype: CalciteAction;
  16. new (): CalciteAction;
  17. };
  18. interface CalciteActionBar extends Components.CalciteActionBar, HTMLElement {}
  19. export const CalciteActionBar: {
  20. prototype: CalciteActionBar;
  21. new (): CalciteActionBar;
  22. };
  23. interface CalciteActionGroup extends Components.CalciteActionGroup, HTMLElement {}
  24. export const CalciteActionGroup: {
  25. prototype: CalciteActionGroup;
  26. new (): CalciteActionGroup;
  27. };
  28. interface CalciteActionMenu extends Components.CalciteActionMenu, HTMLElement {}
  29. export const CalciteActionMenu: {
  30. prototype: CalciteActionMenu;
  31. new (): CalciteActionMenu;
  32. };
  33. interface CalciteActionPad extends Components.CalciteActionPad, HTMLElement {}
  34. export const CalciteActionPad: {
  35. prototype: CalciteActionPad;
  36. new (): CalciteActionPad;
  37. };
  38. interface CalciteAlert extends Components.CalciteAlert, HTMLElement {}
  39. export const CalciteAlert: {
  40. prototype: CalciteAlert;
  41. new (): CalciteAlert;
  42. };
  43. interface CalciteAvatar extends Components.CalciteAvatar, HTMLElement {}
  44. export const CalciteAvatar: {
  45. prototype: CalciteAvatar;
  46. new (): CalciteAvatar;
  47. };
  48. interface CalciteBlock extends Components.CalciteBlock, HTMLElement {}
  49. export const CalciteBlock: {
  50. prototype: CalciteBlock;
  51. new (): CalciteBlock;
  52. };
  53. interface CalciteBlockSection extends Components.CalciteBlockSection, HTMLElement {}
  54. export const CalciteBlockSection: {
  55. prototype: CalciteBlockSection;
  56. new (): CalciteBlockSection;
  57. };
  58. interface CalciteButton extends Components.CalciteButton, HTMLElement {}
  59. export const CalciteButton: {
  60. prototype: CalciteButton;
  61. new (): CalciteButton;
  62. };
  63. interface CalciteCard extends Components.CalciteCard, HTMLElement {}
  64. export const CalciteCard: {
  65. prototype: CalciteCard;
  66. new (): CalciteCard;
  67. };
  68. interface CalciteCheckbox extends Components.CalciteCheckbox, HTMLElement {}
  69. export const CalciteCheckbox: {
  70. prototype: CalciteCheckbox;
  71. new (): CalciteCheckbox;
  72. };
  73. interface CalciteChip extends Components.CalciteChip, HTMLElement {}
  74. export const CalciteChip: {
  75. prototype: CalciteChip;
  76. new (): CalciteChip;
  77. };
  78. interface CalciteColorPicker extends Components.CalciteColorPicker, HTMLElement {}
  79. export const CalciteColorPicker: {
  80. prototype: CalciteColorPicker;
  81. new (): CalciteColorPicker;
  82. };
  83. interface CalciteColorPickerHexInput extends Components.CalciteColorPickerHexInput, HTMLElement {}
  84. export const CalciteColorPickerHexInput: {
  85. prototype: CalciteColorPickerHexInput;
  86. new (): CalciteColorPickerHexInput;
  87. };
  88. interface CalciteColorPickerSwatch extends Components.CalciteColorPickerSwatch, HTMLElement {}
  89. export const CalciteColorPickerSwatch: {
  90. prototype: CalciteColorPickerSwatch;
  91. new (): CalciteColorPickerSwatch;
  92. };
  93. interface CalciteCombobox extends Components.CalciteCombobox, HTMLElement {}
  94. export const CalciteCombobox: {
  95. prototype: CalciteCombobox;
  96. new (): CalciteCombobox;
  97. };
  98. interface CalciteComboboxItem extends Components.CalciteComboboxItem, HTMLElement {}
  99. export const CalciteComboboxItem: {
  100. prototype: CalciteComboboxItem;
  101. new (): CalciteComboboxItem;
  102. };
  103. interface CalciteComboboxItemGroup extends Components.CalciteComboboxItemGroup, HTMLElement {}
  104. export const CalciteComboboxItemGroup: {
  105. prototype: CalciteComboboxItemGroup;
  106. new (): CalciteComboboxItemGroup;
  107. };
  108. interface CalciteDatePicker extends Components.CalciteDatePicker, HTMLElement {}
  109. export const CalciteDatePicker: {
  110. prototype: CalciteDatePicker;
  111. new (): CalciteDatePicker;
  112. };
  113. interface CalciteDatePickerDay extends Components.CalciteDatePickerDay, HTMLElement {}
  114. export const CalciteDatePickerDay: {
  115. prototype: CalciteDatePickerDay;
  116. new (): CalciteDatePickerDay;
  117. };
  118. interface CalciteDatePickerMonth extends Components.CalciteDatePickerMonth, HTMLElement {}
  119. export const CalciteDatePickerMonth: {
  120. prototype: CalciteDatePickerMonth;
  121. new (): CalciteDatePickerMonth;
  122. };
  123. interface CalciteDatePickerMonthHeader extends Components.CalciteDatePickerMonthHeader, HTMLElement {}
  124. export const CalciteDatePickerMonthHeader: {
  125. prototype: CalciteDatePickerMonthHeader;
  126. new (): CalciteDatePickerMonthHeader;
  127. };
  128. interface CalciteDropdown extends Components.CalciteDropdown, HTMLElement {}
  129. export const CalciteDropdown: {
  130. prototype: CalciteDropdown;
  131. new (): CalciteDropdown;
  132. };
  133. interface CalciteDropdownGroup extends Components.CalciteDropdownGroup, HTMLElement {}
  134. export const CalciteDropdownGroup: {
  135. prototype: CalciteDropdownGroup;
  136. new (): CalciteDropdownGroup;
  137. };
  138. interface CalciteDropdownItem extends Components.CalciteDropdownItem, HTMLElement {}
  139. export const CalciteDropdownItem: {
  140. prototype: CalciteDropdownItem;
  141. new (): CalciteDropdownItem;
  142. };
  143. interface CalciteFab extends Components.CalciteFab, HTMLElement {}
  144. export const CalciteFab: {
  145. prototype: CalciteFab;
  146. new (): CalciteFab;
  147. };
  148. interface CalciteFilter extends Components.CalciteFilter, HTMLElement {}
  149. export const CalciteFilter: {
  150. prototype: CalciteFilter;
  151. new (): CalciteFilter;
  152. };
  153. interface CalciteFlow extends Components.CalciteFlow, HTMLElement {}
  154. export const CalciteFlow: {
  155. prototype: CalciteFlow;
  156. new (): CalciteFlow;
  157. };
  158. interface CalciteGraph extends Components.CalciteGraph, HTMLElement {}
  159. export const CalciteGraph: {
  160. prototype: CalciteGraph;
  161. new (): CalciteGraph;
  162. };
  163. interface CalciteHandle extends Components.CalciteHandle, HTMLElement {}
  164. export const CalciteHandle: {
  165. prototype: CalciteHandle;
  166. new (): CalciteHandle;
  167. };
  168. interface CalciteIcon extends Components.CalciteIcon, HTMLElement {}
  169. export const CalciteIcon: {
  170. prototype: CalciteIcon;
  171. new (): CalciteIcon;
  172. };
  173. interface CalciteInlineEditable extends Components.CalciteInlineEditable, HTMLElement {}
  174. export const CalciteInlineEditable: {
  175. prototype: CalciteInlineEditable;
  176. new (): CalciteInlineEditable;
  177. };
  178. interface CalciteInput extends Components.CalciteInput, HTMLElement {}
  179. export const CalciteInput: {
  180. prototype: CalciteInput;
  181. new (): CalciteInput;
  182. };
  183. interface CalciteInputDatePicker extends Components.CalciteInputDatePicker, HTMLElement {}
  184. export const CalciteInputDatePicker: {
  185. prototype: CalciteInputDatePicker;
  186. new (): CalciteInputDatePicker;
  187. };
  188. interface CalciteInputMessage extends Components.CalciteInputMessage, HTMLElement {}
  189. export const CalciteInputMessage: {
  190. prototype: CalciteInputMessage;
  191. new (): CalciteInputMessage;
  192. };
  193. interface CalciteInputTimePicker extends Components.CalciteInputTimePicker, HTMLElement {}
  194. export const CalciteInputTimePicker: {
  195. prototype: CalciteInputTimePicker;
  196. new (): CalciteInputTimePicker;
  197. };
  198. interface CalciteLabel extends Components.CalciteLabel, HTMLElement {}
  199. export const CalciteLabel: {
  200. prototype: CalciteLabel;
  201. new (): CalciteLabel;
  202. };
  203. interface CalciteLink extends Components.CalciteLink, HTMLElement {}
  204. export const CalciteLink: {
  205. prototype: CalciteLink;
  206. new (): CalciteLink;
  207. };
  208. interface CalciteList extends Components.CalciteList, HTMLElement {}
  209. export const CalciteList: {
  210. prototype: CalciteList;
  211. new (): CalciteList;
  212. };
  213. interface CalciteListItem extends Components.CalciteListItem, HTMLElement {}
  214. export const CalciteListItem: {
  215. prototype: CalciteListItem;
  216. new (): CalciteListItem;
  217. };
  218. interface CalciteListItemGroup extends Components.CalciteListItemGroup, HTMLElement {}
  219. export const CalciteListItemGroup: {
  220. prototype: CalciteListItemGroup;
  221. new (): CalciteListItemGroup;
  222. };
  223. interface CalciteLoader extends Components.CalciteLoader, HTMLElement {}
  224. export const CalciteLoader: {
  225. prototype: CalciteLoader;
  226. new (): CalciteLoader;
  227. };
  228. interface CalciteModal extends Components.CalciteModal, HTMLElement {}
  229. export const CalciteModal: {
  230. prototype: CalciteModal;
  231. new (): CalciteModal;
  232. };
  233. interface CalciteNotice extends Components.CalciteNotice, HTMLElement {}
  234. export const CalciteNotice: {
  235. prototype: CalciteNotice;
  236. new (): CalciteNotice;
  237. };
  238. interface CalciteOption extends Components.CalciteOption, HTMLElement {}
  239. export const CalciteOption: {
  240. prototype: CalciteOption;
  241. new (): CalciteOption;
  242. };
  243. interface CalciteOptionGroup extends Components.CalciteOptionGroup, HTMLElement {}
  244. export const CalciteOptionGroup: {
  245. prototype: CalciteOptionGroup;
  246. new (): CalciteOptionGroup;
  247. };
  248. interface CalcitePagination extends Components.CalcitePagination, HTMLElement {}
  249. export const CalcitePagination: {
  250. prototype: CalcitePagination;
  251. new (): CalcitePagination;
  252. };
  253. interface CalcitePanel extends Components.CalcitePanel, HTMLElement {}
  254. export const CalcitePanel: {
  255. prototype: CalcitePanel;
  256. new (): CalcitePanel;
  257. };
  258. interface CalcitePickList extends Components.CalcitePickList, HTMLElement {}
  259. export const CalcitePickList: {
  260. prototype: CalcitePickList;
  261. new (): CalcitePickList;
  262. };
  263. interface CalcitePickListGroup extends Components.CalcitePickListGroup, HTMLElement {}
  264. export const CalcitePickListGroup: {
  265. prototype: CalcitePickListGroup;
  266. new (): CalcitePickListGroup;
  267. };
  268. interface CalcitePickListItem extends Components.CalcitePickListItem, HTMLElement {}
  269. export const CalcitePickListItem: {
  270. prototype: CalcitePickListItem;
  271. new (): CalcitePickListItem;
  272. };
  273. interface CalcitePopover extends Components.CalcitePopover, HTMLElement {}
  274. export const CalcitePopover: {
  275. prototype: CalcitePopover;
  276. new (): CalcitePopover;
  277. };
  278. interface CalcitePopoverManager extends Components.CalcitePopoverManager, HTMLElement {}
  279. export const CalcitePopoverManager: {
  280. prototype: CalcitePopoverManager;
  281. new (): CalcitePopoverManager;
  282. };
  283. interface CalciteProgress extends Components.CalciteProgress, HTMLElement {}
  284. export const CalciteProgress: {
  285. prototype: CalciteProgress;
  286. new (): CalciteProgress;
  287. };
  288. interface CalciteRadioButton extends Components.CalciteRadioButton, HTMLElement {}
  289. export const CalciteRadioButton: {
  290. prototype: CalciteRadioButton;
  291. new (): CalciteRadioButton;
  292. };
  293. interface CalciteRadioButtonGroup extends Components.CalciteRadioButtonGroup, HTMLElement {}
  294. export const CalciteRadioButtonGroup: {
  295. prototype: CalciteRadioButtonGroup;
  296. new (): CalciteRadioButtonGroup;
  297. };
  298. interface CalciteRadioGroup extends Components.CalciteRadioGroup, HTMLElement {}
  299. export const CalciteRadioGroup: {
  300. prototype: CalciteRadioGroup;
  301. new (): CalciteRadioGroup;
  302. };
  303. interface CalciteRadioGroupItem extends Components.CalciteRadioGroupItem, HTMLElement {}
  304. export const CalciteRadioGroupItem: {
  305. prototype: CalciteRadioGroupItem;
  306. new (): CalciteRadioGroupItem;
  307. };
  308. interface CalciteRating extends Components.CalciteRating, HTMLElement {}
  309. export const CalciteRating: {
  310. prototype: CalciteRating;
  311. new (): CalciteRating;
  312. };
  313. interface CalciteScrim extends Components.CalciteScrim, HTMLElement {}
  314. export const CalciteScrim: {
  315. prototype: CalciteScrim;
  316. new (): CalciteScrim;
  317. };
  318. interface CalciteSelect extends Components.CalciteSelect, HTMLElement {}
  319. export const CalciteSelect: {
  320. prototype: CalciteSelect;
  321. new (): CalciteSelect;
  322. };
  323. interface CalciteShell extends Components.CalciteShell, HTMLElement {}
  324. export const CalciteShell: {
  325. prototype: CalciteShell;
  326. new (): CalciteShell;
  327. };
  328. interface CalciteShellCenterRow extends Components.CalciteShellCenterRow, HTMLElement {}
  329. export const CalciteShellCenterRow: {
  330. prototype: CalciteShellCenterRow;
  331. new (): CalciteShellCenterRow;
  332. };
  333. interface CalciteShellPanel extends Components.CalciteShellPanel, HTMLElement {}
  334. export const CalciteShellPanel: {
  335. prototype: CalciteShellPanel;
  336. new (): CalciteShellPanel;
  337. };
  338. interface CalciteSlider extends Components.CalciteSlider, HTMLElement {}
  339. export const CalciteSlider: {
  340. prototype: CalciteSlider;
  341. new (): CalciteSlider;
  342. };
  343. interface CalciteSortableList extends Components.CalciteSortableList, HTMLElement {}
  344. export const CalciteSortableList: {
  345. prototype: CalciteSortableList;
  346. new (): CalciteSortableList;
  347. };
  348. interface CalciteSplitButton extends Components.CalciteSplitButton, HTMLElement {}
  349. export const CalciteSplitButton: {
  350. prototype: CalciteSplitButton;
  351. new (): CalciteSplitButton;
  352. };
  353. interface CalciteStepper extends Components.CalciteStepper, HTMLElement {}
  354. export const CalciteStepper: {
  355. prototype: CalciteStepper;
  356. new (): CalciteStepper;
  357. };
  358. interface CalciteStepperItem extends Components.CalciteStepperItem, HTMLElement {}
  359. export const CalciteStepperItem: {
  360. prototype: CalciteStepperItem;
  361. new (): CalciteStepperItem;
  362. };
  363. interface CalciteSwitch extends Components.CalciteSwitch, HTMLElement {}
  364. export const CalciteSwitch: {
  365. prototype: CalciteSwitch;
  366. new (): CalciteSwitch;
  367. };
  368. interface CalciteTab extends Components.CalciteTab, HTMLElement {}
  369. export const CalciteTab: {
  370. prototype: CalciteTab;
  371. new (): CalciteTab;
  372. };
  373. interface CalciteTabNav extends Components.CalciteTabNav, HTMLElement {}
  374. export const CalciteTabNav: {
  375. prototype: CalciteTabNav;
  376. new (): CalciteTabNav;
  377. };
  378. interface CalciteTabTitle extends Components.CalciteTabTitle, HTMLElement {}
  379. export const CalciteTabTitle: {
  380. prototype: CalciteTabTitle;
  381. new (): CalciteTabTitle;
  382. };
  383. interface CalciteTabs extends Components.CalciteTabs, HTMLElement {}
  384. export const CalciteTabs: {
  385. prototype: CalciteTabs;
  386. new (): CalciteTabs;
  387. };
  388. interface CalciteTile extends Components.CalciteTile, HTMLElement {}
  389. export const CalciteTile: {
  390. prototype: CalciteTile;
  391. new (): CalciteTile;
  392. };
  393. interface CalciteTileSelect extends Components.CalciteTileSelect, HTMLElement {}
  394. export const CalciteTileSelect: {
  395. prototype: CalciteTileSelect;
  396. new (): CalciteTileSelect;
  397. };
  398. interface CalciteTileSelectGroup extends Components.CalciteTileSelectGroup, HTMLElement {}
  399. export const CalciteTileSelectGroup: {
  400. prototype: CalciteTileSelectGroup;
  401. new (): CalciteTileSelectGroup;
  402. };
  403. interface CalciteTimePicker extends Components.CalciteTimePicker, HTMLElement {}
  404. export const CalciteTimePicker: {
  405. prototype: CalciteTimePicker;
  406. new (): CalciteTimePicker;
  407. };
  408. interface CalciteTip extends Components.CalciteTip, HTMLElement {}
  409. export const CalciteTip: {
  410. prototype: CalciteTip;
  411. new (): CalciteTip;
  412. };
  413. interface CalciteTipGroup extends Components.CalciteTipGroup, HTMLElement {}
  414. export const CalciteTipGroup: {
  415. prototype: CalciteTipGroup;
  416. new (): CalciteTipGroup;
  417. };
  418. interface CalciteTipManager extends Components.CalciteTipManager, HTMLElement {}
  419. export const CalciteTipManager: {
  420. prototype: CalciteTipManager;
  421. new (): CalciteTipManager;
  422. };
  423. interface CalciteTooltip extends Components.CalciteTooltip, HTMLElement {}
  424. export const CalciteTooltip: {
  425. prototype: CalciteTooltip;
  426. new (): CalciteTooltip;
  427. };
  428. interface CalciteTooltipManager extends Components.CalciteTooltipManager, HTMLElement {}
  429. export const CalciteTooltipManager: {
  430. prototype: CalciteTooltipManager;
  431. new (): CalciteTooltipManager;
  432. };
  433. interface CalciteTree extends Components.CalciteTree, HTMLElement {}
  434. export const CalciteTree: {
  435. prototype: CalciteTree;
  436. new (): CalciteTree;
  437. };
  438. interface CalciteTreeItem extends Components.CalciteTreeItem, HTMLElement {}
  439. export const CalciteTreeItem: {
  440. prototype: CalciteTreeItem;
  441. new (): CalciteTreeItem;
  442. };
  443. interface CalciteValueList extends Components.CalciteValueList, HTMLElement {}
  444. export const CalciteValueList: {
  445. prototype: CalciteValueList;
  446. new (): CalciteValueList;
  447. };
  448. interface CalciteValueListItem extends Components.CalciteValueListItem, HTMLElement {}
  449. export const CalciteValueListItem: {
  450. prototype: CalciteValueListItem;
  451. new (): CalciteValueListItem;
  452. };
  453. /**
  454. * Utility to define all custom elements within this package using the tag name provided in the component's source.
  455. * When defining each custom element, it will also check it's safe to define by:
  456. *
  457. * 1. Ensuring the "customElements" registry is available in the global context (window).
  458. * 2. The component tag name is not already defined.
  459. *
  460. * Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)
  461. * method instead to define custom elements individually, or to provide a different tag name.
  462. */
  463. export declare const defineCustomElements: (opts?: any) => void;
  464. /**
  465. * Used to manually set the base path where assets can be found.
  466. * If the script is used as "module", it's recommended to use "import.meta.url",
  467. * such as "setAssetPath(import.meta.url)". Other options include
  468. * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
  469. * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
  470. * But do note that this configuration depends on how your script is bundled, or lack of
  471. * bunding, and where your assets can be loaded from. Additionally custom bundling
  472. * will have to ensure the static assets are copied to its build directory.
  473. */
  474. export declare const setAssetPath: (path: string) => void;
  475. export interface SetPlatformOptions {
  476. raf?: (c: FrameRequestCallback) => number;
  477. ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
  478. rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
  479. ce?: (eventName: string, opts?: any) => CustomEvent;
  480. }
  481. export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
  482. export type { Components, JSX };
  483. export * from '../types/components';