react-asc 19.0.6 → 20.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/apple-touch-icon.png +0 -0
  2. package/assets/index.1f5e1902.js +10 -0
  3. package/assets/index.a1009f35.css +1 -0
  4. package/assets/vendor.d012860f.js +57 -0
  5. package/changelog.md +919 -0
  6. package/favicon-16x16.png +0 -0
  7. package/favicon-32x32.png +0 -0
  8. package/favicon.ico +0 -0
  9. package/favicon.svg +23 -0
  10. package/index.html +27 -0
  11. package/manifest.webmanifest +1 -0
  12. package/package.json +3 -2
  13. package/pwa-192x192.png +0 -0
  14. package/pwa-512x512.png +0 -0
  15. package/react-asc.scss +93 -5
  16. package/registerSW.js +1 -0
  17. package/robots.txt +3 -0
  18. package/showcase/alert.md +3 -0
  19. package/showcase/appbar.md +8 -0
  20. package/showcase/autocomplete.md +53 -0
  21. package/showcase/backdrop.md +11 -0
  22. package/showcase/badge.md +8 -0
  23. package/showcase/breadcrumb.md +5 -0
  24. package/showcase/button.md +11 -0
  25. package/showcase/buttongroup.md +5 -0
  26. package/showcase/card.md +9 -0
  27. package/showcase/checkbox.md +7 -0
  28. package/showcase/chip.md +7 -0
  29. package/showcase/dateselect.md +8 -0
  30. package/showcase/drawer.md +13 -0
  31. package/showcase/expansionpanel.md +40 -0
  32. package/showcase/fileinput.md +6 -0
  33. package/showcase/floatingactionbutton.md +8 -0
  34. package/showcase/form.md +7 -0
  35. package/showcase/grid.md +5 -0
  36. package/showcase/hookuseconstructor.md +3 -0
  37. package/showcase/hookusedebounce.md +5 -0
  38. package/showcase/hookusehover.md +8 -0
  39. package/showcase/hookusewindowsize.md +5 -0
  40. package/showcase/icon.md +3 -0
  41. package/showcase/iconbutton.md +5 -0
  42. package/showcase/link.md +1 -0
  43. package/showcase/list.md +7 -0
  44. package/showcase/loadingindicator.md +18 -0
  45. package/showcase/menu.md +18 -0
  46. package/showcase/modal.md +17 -0
  47. package/showcase/numberselect.md +20 -0
  48. package/showcase/select.md +27 -0
  49. package/showcase/snackbar.md +22 -0
  50. package/showcase/speeddial.md +43 -0
  51. package/showcase/stepper.md +1 -0
  52. package/showcase/table.md +34 -0
  53. package/showcase/tabs.md +35 -0
  54. package/showcase/timeselect.md +1 -0
  55. package/showcase/tooltip.md +6 -0
  56. package/showcase/treeview.md +12 -0
  57. package/showcase/typography.md +6 -0
  58. package/sw.js +1 -0
  59. package/workbox-6cd28afd.js +1 -0
  60. package/components/Alert/Alert.d.ts +0 -11
  61. package/components/Alert/index.d.ts +0 -1
  62. package/components/AppBar/AppBar.d.ts +0 -9
  63. package/components/AppBar/AppBarTitle.d.ts +0 -5
  64. package/components/AppBar/index.d.ts +0 -2
  65. package/components/AutoComplete/AutoComplete.d.ts +0 -19
  66. package/components/AutoComplete/index.d.ts +0 -1
  67. package/components/Backdrop/Backdrop.d.ts +0 -7
  68. package/components/Backdrop/index.d.ts +0 -1
  69. package/components/Badge/Badge.d.ts +0 -7
  70. package/components/Badge/index.d.ts +0 -1
  71. package/components/Breadcrumb/Breadcrumb.d.ts +0 -5
  72. package/components/Breadcrumb/BreadcrumbItem.d.ts +0 -6
  73. package/components/Breadcrumb/index.d.ts +0 -2
  74. package/components/Button/Button.d.ts +0 -12
  75. package/components/Button/index.d.ts +0 -1
  76. package/components/ButtonGroup/ButtonGroup.d.ts +0 -2
  77. package/components/ButtonGroup/index.d.ts +0 -1
  78. package/components/Card/Card.d.ts +0 -6
  79. package/components/Card/CardBody.d.ts +0 -2
  80. package/components/Card/CardFooter.d.ts +0 -2
  81. package/components/Card/CardImage.d.ts +0 -2
  82. package/components/Card/CardSubtitle.d.ts +0 -2
  83. package/components/Card/CardText.d.ts +0 -2
  84. package/components/Card/CardTitle.d.ts +0 -6
  85. package/components/Card/index.d.ts +0 -7
  86. package/components/Checkbox/Checkbox.d.ts +0 -7
  87. package/components/Checkbox/index.d.ts +0 -1
  88. package/components/Chip/Chip.d.ts +0 -11
  89. package/components/Chip/index.d.ts +0 -1
  90. package/components/ConditionalWrapper/ConditionalWrapper.d.ts +0 -8
  91. package/components/ConditionalWrapper/index.d.ts +0 -1
  92. package/components/DateSelect/DateSelect.d.ts +0 -17
  93. package/components/DateSelect/DaySelect.d.ts +0 -12
  94. package/components/DateSelect/MonthSelect.d.ts +0 -10
  95. package/components/DateSelect/YearSelect.d.ts +0 -12
  96. package/components/DateSelect/index.d.ts +0 -4
  97. package/components/Drawer/Drawer.d.ts +0 -9
  98. package/components/Drawer/index.d.ts +0 -1
  99. package/components/ExpansionPanel/ExpansionPanel.d.ts +0 -8
  100. package/components/ExpansionPanel/ExpansionPanelContent.d.ts +0 -5
  101. package/components/ExpansionPanel/ExpansionPanelHeader.d.ts +0 -7
  102. package/components/ExpansionPanel/index.d.ts +0 -3
  103. package/components/FileInput/FileInput.d.ts +0 -5
  104. package/components/FileInput/index.d.ts +0 -1
  105. package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -12
  106. package/components/FloatingActionButton/index.d.ts +0 -1
  107. package/components/Form/Form.d.ts +0 -38
  108. package/components/Form/FormError.d.ts +0 -8
  109. package/components/Form/FormGroup.d.ts +0 -7
  110. package/components/Form/FormHint/FormHint.d.ts +0 -2
  111. package/components/Form/FormHint/index.d.ts +0 -1
  112. package/components/Form/FormInput/FormInput.d.ts +0 -29
  113. package/components/Form/FormInput/index.d.ts +0 -1
  114. package/components/Form/FormLabel/FormLabel.d.ts +0 -2
  115. package/components/Form/FormLabel/index.d.ts +0 -1
  116. package/components/Form/form.interfaces.d.ts +0 -42
  117. package/components/Form/form.models.d.ts +0 -12
  118. package/components/Form/form.types.d.ts +0 -2
  119. package/components/Form/index.d.ts +0 -10
  120. package/components/Form/validators/EmailValidtor.d.ts +0 -1
  121. package/components/Form/validators/IsEmptyValidator.d.ts +0 -1
  122. package/components/Form/validators/IsEqualValidator.d.ts +0 -1
  123. package/components/Form/validators/index.d.ts +0 -3
  124. package/components/Grid/Column/Column.d.ts +0 -10
  125. package/components/Grid/Column/index.d.ts +0 -1
  126. package/components/Grid/Row/Row.d.ts +0 -2
  127. package/components/Grid/Row/index.d.ts +0 -1
  128. package/components/Grid/index.d.ts +0 -2
  129. package/components/Icon/Icon.d.ts +0 -6
  130. package/components/Icon/index.d.ts +0 -1
  131. package/components/IconButton/IconButton.d.ts +0 -11
  132. package/components/IconButton/index.d.ts +0 -1
  133. package/components/Link/Link.d.ts +0 -2
  134. package/components/Link/Link.test.d.ts +0 -1
  135. package/components/Link/index.d.ts +0 -1
  136. package/components/List/List.d.ts +0 -5
  137. package/components/List/ListItem.d.ts +0 -9
  138. package/components/List/ListItemAction.d.ts +0 -2
  139. package/components/List/ListItemAvatar.d.ts +0 -6
  140. package/components/List/ListItemIcon.d.ts +0 -6
  141. package/components/List/ListItemText.d.ts +0 -7
  142. package/components/List/index.d.ts +0 -6
  143. package/components/List/list.models.d.ts +0 -8
  144. package/components/LoadingIndicator/LoadingIndicator.d.ts +0 -2
  145. package/components/LoadingIndicator/LoadingIndicatorContainer.d.ts +0 -5
  146. package/components/LoadingIndicator/index.d.ts +0 -3
  147. package/components/LoadingIndicator/loading-indicator.service.d.ts +0 -11
  148. package/components/Menu/Menu.d.ts +0 -11
  149. package/components/Menu/MenuBackdrop.d.ts +0 -6
  150. package/components/Menu/MenuBody.d.ts +0 -12
  151. package/components/Menu/MenuContext.d.ts +0 -6
  152. package/components/Menu/MenuDivider.d.ts +0 -2
  153. package/components/Menu/MenuItem.d.ts +0 -8
  154. package/components/Menu/MenuToggle.d.ts +0 -6
  155. package/components/Menu/index.d.ts +0 -6
  156. package/components/Menu/menu.types.d.ts +0 -1
  157. package/components/Modal/GlobalModal.d.ts +0 -19
  158. package/components/Modal/Modal.d.ts +0 -14
  159. package/components/Modal/ModalBody.d.ts +0 -6
  160. package/components/Modal/ModalFooter.d.ts +0 -6
  161. package/components/Modal/ModalHeader.d.ts +0 -7
  162. package/components/Modal/index.d.ts +0 -8
  163. package/components/Modal/modal.enum.d.ts +0 -10
  164. package/components/Modal/modal.interfaces.d.ts +0 -11
  165. package/components/Modal/modal.service.d.ts +0 -21
  166. package/components/NumberSelect/NumberSelect.d.ts +0 -12
  167. package/components/NumberSelect/index.d.ts +0 -1
  168. package/components/Select/Select.d.ts +0 -15
  169. package/components/Select/index.d.ts +0 -1
  170. package/components/Sidebar/Sidebar.d.ts +0 -9
  171. package/components/Sidebar/index.d.ts +0 -2
  172. package/components/Sidebar/sidebar.interfaces.d.ts +0 -9
  173. package/components/Sidebar/sidebar.models.d.ts +0 -11
  174. package/components/Snackbar/Snackbar.d.ts +0 -8
  175. package/components/Snackbar/index.d.ts +0 -2
  176. package/components/Snackbar/snackbar.service.d.ts +0 -19
  177. package/components/SpeedDial/SpeedDial.d.ts +0 -7
  178. package/components/SpeedDial/SpeedDialAction.d.ts +0 -9
  179. package/components/SpeedDial/SpeedDialActions.d.ts +0 -2
  180. package/components/SpeedDial/SpeedDialIcon.d.ts +0 -5
  181. package/components/SpeedDial/index.d.ts +0 -3
  182. package/components/Stepper/Step/Step.d.ts +0 -19
  183. package/components/Stepper/Step/index.d.ts +0 -1
  184. package/components/Stepper/StepConnector/StepConnector.d.ts +0 -6
  185. package/components/Stepper/StepPanel/StepPanel.d.ts +0 -5
  186. package/components/Stepper/Stepper.d.ts +0 -16
  187. package/components/Stepper/StepperActions/StepperActions.d.ts +0 -12
  188. package/components/Stepper/StepperActions/index.d.ts +0 -1
  189. package/components/Stepper/index.d.ts +0 -3
  190. package/components/Table/Table.d.ts +0 -10
  191. package/components/Table/index.d.ts +0 -1
  192. package/components/Tabs/Tab.d.ts +0 -14
  193. package/components/Tabs/TabIndicator.d.ts +0 -10
  194. package/components/Tabs/TabPanel.d.ts +0 -6
  195. package/components/Tabs/Tabs.d.ts +0 -17
  196. package/components/Tabs/index.d.ts +0 -3
  197. package/components/Textarea/Textarea.d.ts +0 -2
  198. package/components/Textarea/index.d.ts +0 -1
  199. package/components/TimeSelect/HourSelect.d.ts +0 -10
  200. package/components/TimeSelect/MilliSecondSelect.d.ts +0 -11
  201. package/components/TimeSelect/MinuteSelect.d.ts +0 -10
  202. package/components/TimeSelect/SecondSelect.d.ts +0 -10
  203. package/components/TimeSelect/TimeSelect.d.ts +0 -20
  204. package/components/TimeSelect/index.d.ts +0 -5
  205. package/components/Tooltip/Tooltip.d.ts +0 -6
  206. package/components/Tooltip/index.d.ts +0 -1
  207. package/components/TreeView/TreeItem.d.ts +0 -14
  208. package/components/TreeView/TreeView.d.ts +0 -2
  209. package/components/TreeView/index.d.ts +0 -2
  210. package/components/Typography/Typography.d.ts +0 -10
  211. package/components/Typography/index.d.ts +0 -1
  212. package/components/component.enums.d.ts +0 -25
  213. package/components/component.interfaces.d.ts +0 -18
  214. package/components/index.d.ts +0 -41
  215. package/hooks/index.d.ts +0 -4
  216. package/hooks/useConstructor.d.ts +0 -1
  217. package/hooks/useDebounce.d.ts +0 -2
  218. package/hooks/useHover.d.ts +0 -2
  219. package/hooks/useWindowSize.d.ts +0 -4
  220. package/icons/CaretDownSolidIcon.d.ts +0 -2
  221. package/icons/CheckSolidIcon.d.ts +0 -2
  222. package/icons/CheckSquareRegularIcon.d.ts +0 -2
  223. package/icons/ChevronDownSolidIcon.d.ts +0 -2
  224. package/icons/ChevronLeftSolidIcon.d.ts +0 -2
  225. package/icons/ChevronRightSolidIcon.d.ts +0 -2
  226. package/icons/ChevronUpSolidIcon.d.ts +0 -2
  227. package/icons/CircleSolidIcon.d.ts +0 -2
  228. package/icons/HomeSolidIcon.d.ts +0 -2
  229. package/icons/PlusSolidIcon.d.ts +0 -2
  230. package/icons/SpinnerSolidIcon.d.ts +0 -2
  231. package/icons/SquareRegularIcon.d.ts +0 -2
  232. package/icons/TimesCircleSolidIcon.d.ts +0 -2
  233. package/icons/TimesSolidIcon.d.ts +0 -2
  234. package/icons/index.d.ts +0 -14
  235. package/index.d.ts +0 -3
  236. package/index.es.js +0 -2601
  237. package/index.js +0 -2717
@@ -0,0 +1,43 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { ISpeedDialProps, snackbarService, SpeedDial, SpeedDialAction } from 'react-asc';
3
+ import { InfoSolidIcon } from '../assets';
4
+ import { IShowcaseBaseProps, withOptions } from './components';
5
+
6
+ const SpeedDialExample = () => {
7
+
8
+ const [open, setOpen] = useState<boolean>(false);
9
+
10
+ const handleClick = (index: number) => {
11
+ snackbarService.show(`you clicked action: ${index}`);
12
+ handleClose();
13
+ }
14
+
15
+ const handleOpen = () => {
16
+ setOpen(true);
17
+ }
18
+
19
+ const handleClose = () => {
20
+ setOpen(false);
21
+ }
22
+
23
+ return (
24
+ <div style={{ height: '200px', position: 'relative' }}>
25
+ <SpeedDial
26
+ open={open}
27
+ onOpen={handleOpen}
28
+ onClose={handleClose}
29
+ style={{ position: 'absolute', bottom: 0, right: 0 }}>
30
+ <SpeedDialAction
31
+ icon={<InfoSolidIcon />}
32
+ tooltipTitle="some tooltip text"
33
+ onClick={() => handleClick(1)}
34
+ />
35
+ <SpeedDialAction
36
+ icon={<InfoSolidIcon />}
37
+ tooltipTitle="some tooltip text"
38
+ onClick={() => handleClick(2)}
39
+ />
40
+ </SpeedDial>
41
+ </div>
42
+ );
43
+ }
@@ -0,0 +1 @@
1
+ coming soon
@@ -0,0 +1,34 @@
1
+ <Table
2
+ bordered={settingValues.bordered}
3
+ hover={settingValues.hover}
4
+ striped={settingValues.striped}
5
+ responsive={settingValues.responsive}
6
+ >
7
+ <thead>
8
+ <tr>
9
+ <th scope="col">#</th>
10
+ <th scope="col">First</th>
11
+ <th scope="col">Last</th>
12
+ <th scope="col">Handle</th>
13
+ </tr>
14
+ </thead>
15
+ <tbody>
16
+ <tr>
17
+ <th scope="row">1</th>
18
+ <td>Mark</td>
19
+ <td>Otto</td>
20
+ <td>@mdo</td>
21
+ </tr>
22
+ <tr>
23
+ <th scope="row">2</th>
24
+ <td>Jacob</td>
25
+ <td>Thornton</td>
26
+ <td>@fat</td>
27
+ </tr>
28
+ <tr>
29
+ <th scope="row">3</th>
30
+ <td colSpan={2}>Larry the Bird</td>
31
+ <td>@twitter</td>
32
+ </tr>
33
+ </tbody>
34
+ </Table>
@@ -0,0 +1,35 @@
1
+ export const TabsPage = () => {
2
+ const [value, setValue] = useState<string>('tab2');
3
+
4
+ const handleChange = (event: any, newValue: string) => {
5
+ setValue(newValue);
6
+ }
7
+
8
+ return (
9
+ <div>
10
+ <Tabs
11
+ value={value}
12
+ onChange={handleChange}
13
+ >
14
+ <Tab value="tab1" label="Tab 1" />
15
+ <Tab value="tab2" label="Tab 2" />
16
+ <Tab value="tab3" label={<div className="text-success">Tab 3 with css</div>} />
17
+ <Tab value="tab4" label="Tab 4" disabled />
18
+ </Tabs>
19
+
20
+ <TabPanel value={value} index="tab1">
21
+ Tab1 Content
22
+ </TabPanel>
23
+ <TabPanel value={value} index="tab2">
24
+ Tab2 Content
25
+ </TabPanel>
26
+ <TabPanel value={value} index="tab3">
27
+ Tab3 Content
28
+ </TabPanel>
29
+ <TabPanel value={value} index="tab4">
30
+ Tab4 Content should never be displayed
31
+ </TabPanel>
32
+ </div>
33
+ );
34
+ }
35
+
@@ -0,0 +1 @@
1
+ coming soon
@@ -0,0 +1,6 @@
1
+ <Tooltip
2
+ text={settingValues.text}
3
+ placement={settingValues.placement}
4
+ >
5
+ <Button>show tooltip</Button>
6
+ </Tooltip>
@@ -0,0 +1,12 @@
1
+ <TreeView>
2
+ <TreeItem nodeId="1" label="some text" onSelect={handleOnSelect}>
3
+ <TreeItem nodeId="11" label="some text" onSelect={handleOnSelect} />
4
+ <TreeItem nodeId="12" label="some text" onSelect={handleOnSelect} />
5
+ <TreeItem nodeId="13" label="some text" onSelect={handleOnSelect}>
6
+ <TreeItem nodeId="111" label="some text" onSelect={handleOnSelect} />
7
+ <TreeItem nodeId="112" label="some text" onSelect={handleOnSelect} />
8
+ </TreeItem>
9
+ </TreeItem>
10
+ <TreeItem nodeId="2" label="some text" onSelect={handleOnSelect} />
11
+ <TreeItem nodeId="3" label="some text" onSelect={handleOnSelect} />
12
+ </TreeView>
@@ -0,0 +1,6 @@
1
+ <Typography as="h1">Heading1</Typography>
2
+ <Typography as="h2">Heading1</Typography>
3
+ <Typography as="h3">Heading1</Typography>
4
+ <Typography as="h4">Heading1</Typography>
5
+ <Typography as="h5">Heading1</Typography>
6
+ <Typography as="h6">Heading1</Typography>
package/sw.js ADDED
@@ -0,0 +1 @@
1
+ if(!self.define){let e,i={};const d=(d,s)=>(d=new URL(d+".js",s).href,i[d]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=d,e.onload=i,document.head.appendChild(e)}else e=d,importScripts(d),i()})).then((()=>{let e=i[d];if(!e)throw new Error(`Module ${d} didn’t register its module`);return e})));self.define=(s,n)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(i[r])return;let o={};const c=e=>d(e,r),t={module:{uri:r},exports:o,require:c};i[r]=Promise.all(s.map((e=>t[e]||c(e)))).then((e=>(n(...e),o)))}}define(["./workbox-6cd28afd"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index.1f5e1902.js",revision:null},{url:"assets/index.a1009f35.css",revision:null},{url:"assets/vendor.d012860f.js",revision:null},{url:"index.html",revision:"48f7f92308b411ad09d72297bc02771e"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"favicon.svg",revision:"a03abd15d3de5d7086deb9ff72d6346e"},{url:"favicon.ico",revision:"db3a29ad0345f76b56ad392b8d3be00d"},{url:"robots.txt",revision:"61c27d2cd39a713f7829422c3d9edcc7"},{url:"apple-touch-icon.png",revision:"e8531cbd74dacfd13a21b78deacd1c9e"},{url:"pwa-192x192.png",revision:"f3084d7b46dd6239958cad5e96122ab6"},{url:"pwa-512x512.png",revision:"79734f9cc64b06bed3b9b104514e709c"},{url:"manifest.webmanifest",revision:"75c16fa5c79d8ab5a6d0d79e13047af6"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));
@@ -0,0 +1 @@
1
+ define(["exports"],(function(t){"use strict";try{self["workbox:core:6.4.1"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.4.1"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=r&&r.handler;const c=t.method;if(!o&&this.i.has(c)&&(o=this.i.get(c)),!o)return;let a;try{a=o.handle({url:s,request:t,event:e,params:i})}catch(t){a=Promise.reject(t)}const h=r&&r.catchHandler;return a instanceof Promise&&(this.o||h)&&(a=a.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),a}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const o=r.match({url:t,sameOrigin:e,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&0===i.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let c;const a=()=>(c||(c=new o,c.addFetchListener(),c.addCacheListener()),c);function h(t,e,n){let o;if("string"==typeof t){const s=new URL(t,location.href);o=new i((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)o=new r(t,e,n);else if("function"==typeof t)o=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=t}return a().registerRoute(o),o}const u={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=t=>[u.prefix,t,u.suffix].filter((t=>t&&t.length>0)).join("-"),f=t=>t||l(u.precache),w=t=>t||l(u.runtime);function d(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.4.1"]&&_()}catch(t){}function p(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class y{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class g{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.h.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.h=t}}let R;async function m(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=e?e(r):r,c=function(){if(void 0===R){const t=new Response("");if("body"in t)try{new Response(t.body),R=!0}catch(t){R=!1}R=!1}return R}()?i.body:await i.blob();return new Response(c,o)}function v(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class q{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const U=new Set;try{self["workbox:strategies:6.4.1"]&&_()}catch(t){}function L(t){return"string"==typeof t?new Request(t):t}class b{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new q,this.g=[],this.R=[...t.plugins],this.m=new Map;for(const t of this.R)this.m.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=L(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=L(t);let s;const{cacheName:n,matchOptions:i}=this.l,r=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=L(t);var i;await(i=0,new Promise((t=>setTimeout(t,i))));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=r.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const c=await this.v(e);if(!c)return!1;const{cacheName:a,matchOptions:h}=this.l,u=await self.caches.open(a),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=v(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,r);for(const e of o)if(i===v(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?c.clone():c)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of U)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:a,oldResponse:f,newResponse:c.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.u[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=L(await t({mode:e,request:n,event:this.event,params:this.params}));this.u[s]=n}return this.u[s]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.m.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.g.push(t),t}async doneWaiting(){let t;for(;t=this.g.shift();)await t}destroy(){this.p.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class C extends class{constructor(t={}){this.cacheName=w(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new b(this,{event:e,request:s,params:n}),r=this.q(i,s,e);return[r,this.U(r,i,s,e)]}async q(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this.L(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async U(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}{constructor(t={}){t.cacheName=f(t.cacheName),super(t),this._=!1!==t.fallbackToNetwork,this.plugins.push(C.copyRedirectedCacheableResponsesPlugin)}async L(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.C(t,e):await this.O(t,e))}async O(t,e){let n;const i=e.params||{};if(!this._)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,o=!r||r===s;n=await e.fetch(new Request(t,{integrity:r||s})),s&&o&&(this.N(),await e.cachePut(t,n.clone()))}return n}async C(t,e){this.N();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}N(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==C.copyRedirectedCacheableResponsesPlugin&&(n===C.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(C.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}C.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},C.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await m(t):t};class E{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.k=new Map,this.K=new Map,this.P=new Map,this.l=new C({cacheName:f(t),plugins:[...e,new g({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.T||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.T=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=p(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.k.has(i)&&this.k.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.k.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.P.has(t)&&this.P.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.P.set(t,n.integrity)}if(this.k.set(i,t),this.K.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return d(t,(async()=>{const e=new y;this.strategy.plugins.push(e);for(const[e,s]of this.k){const n=this.P.get(s),i=this.K.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return d(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.k.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.k}getCachedURLs(){return[...this.k.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.k.get(e.href)}getIntegrityForCacheKey(t){return this.P.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let O;const x=()=>(O||(O=new E),O);class N extends i{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(r,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}t.NavigationRoute=class extends i{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super((t=>this.W(t)),t),this.j=e,this.M=s}W({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.M)if(t.test(s))return!1;return!!this.j.some((t=>t.test(s)))}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",(t=>{const e=f();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t));return await Promise.all(s.map((t=>self.caches.delete(t)))),s})(e).then((t=>{})))}))},t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.createHandlerBoundToURL=function(t){return x().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){x().precache(t)}(t),function(t){const e=x();h(new N(e,t))}(e)},t.registerRoute=h}));
@@ -1,11 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { VARIANT } from '../component.enums';
3
- import { COLOR, SIZE } from '../component.enums';
4
- export interface IAlertProps extends React.ComponentProps<"div"> {
5
- children?: ReactNode;
6
- className?: string;
7
- variant?: VARIANT;
8
- color?: COLOR;
9
- shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
10
- }
11
- export declare const Alert: (props: IAlertProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Alert';
@@ -1,9 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { COLOR, SIZE } from '../component.enums';
3
- export interface IAppBarProps extends React.ComponentProps<"nav"> {
4
- children?: ReactNode;
5
- className?: string;
6
- color?: COLOR.primary | COLOR.light;
7
- shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
8
- }
9
- export declare const AppBar: (props: IAppBarProps) => JSX.Element;
@@ -1,5 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export interface IAppBarTitleProps extends React.ComponentProps<"div"> {
3
- children?: ReactNode;
4
- }
5
- export declare const AppBarTitle: (props: IAppBarTitleProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './AppBar';
2
- export * from './AppBarTitle';
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { ISelectOption } from '../component.interfaces';
3
- export interface IAutoCompleteProps {
4
- id?: string;
5
- name?: string;
6
- className?: string;
7
- options?: Array<ISelectOption>;
8
- value?: string;
9
- openOnFocus?: boolean;
10
- disabled?: boolean;
11
- placeholder?: string;
12
- readOnly?: boolean;
13
- debounce?: number;
14
- showNoEntry?: boolean;
15
- showClearButton?: boolean;
16
- onSelect?: (val: ISelectOption) => void;
17
- onChange?: (val: string | undefined) => void;
18
- }
19
- export declare const AutoComplete: (props: IAutoCompleteProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './AutoComplete';
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface IBackdropProps extends React.ComponentProps<"div"> {
3
- target?: HTMLElement;
4
- isTransparent?: boolean;
5
- }
6
- export declare const Backdrop: (props: IBackdropProps) => React.ReactPortal;
7
- export {};
@@ -1 +0,0 @@
1
- export * from './Backdrop';
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { COLOR } from "../component.enums";
3
- export interface IBadgeProps extends React.ComponentProps<"div"> {
4
- color?: COLOR;
5
- content?: React.ReactNode;
6
- }
7
- export declare const Badge: (props: IBadgeProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Badge';
@@ -1,5 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export interface IBreadcrumbProps extends React.ComponentProps<"nav"> {
3
- children?: ReactNode;
4
- }
5
- export declare const Breadcrumb: (props: IBreadcrumbProps) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface IBreadcrumbItemProps extends React.ComponentProps<'li'> {
3
- isActive?: boolean;
4
- path?: string;
5
- }
6
- export declare const BreadcrumbItem: (props: IBreadcrumbItemProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './Breadcrumb';
2
- export * from './BreadcrumbItem';
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { COLOR, VARIANT } from '../component.enums';
3
- export interface IButtonProps extends React.ComponentProps<"button"> {
4
- color?: COLOR;
5
- isActive?: boolean;
6
- isRounded?: boolean;
7
- variant?: VARIANT;
8
- startIcon?: React.SVGProps<SVGSVGElement>;
9
- endIcon?: React.SVGProps<SVGSVGElement>;
10
- shadow?: boolean;
11
- }
12
- export declare const Button: React.FunctionComponent<IButtonProps>;
@@ -1 +0,0 @@
1
- export * from './Button';
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ButtonGroup: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './ButtonGroup';
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface ICardProps extends React.ComponentProps<"div"> {
3
- shadow?: boolean;
4
- }
5
- export declare const Card: (props: ICardProps) => JSX.Element;
6
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const CardBody: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const CardFooter: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const CardImage: (props: React.ComponentProps<"img">) => JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const CardSubtitle: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const CardText: (props: React.ComponentProps<"p">) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface ICardTitleProps extends React.ComponentProps<"div"> {
3
- as?: any;
4
- }
5
- export declare const CardTitle: (props: ICardTitleProps) => JSX.Element;
6
- export {};
@@ -1,7 +0,0 @@
1
- export * from './Card';
2
- export * from './CardBody';
3
- export * from './CardFooter';
4
- export * from './CardSubtitle';
5
- export * from './CardText';
6
- export * from './CardTitle';
7
- export * from './CardImage';
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface ICheckboxProps extends React.ComponentProps<"input"> {
3
- label?: string;
4
- value?: string;
5
- onKeyDown?: (event: React.KeyboardEvent) => void;
6
- }
7
- export declare const Checkbox: (props: ICheckboxProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Checkbox';
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { COLOR } from '../component.enums';
3
- export interface IChipProps extends React.ComponentProps<"div"> {
4
- color?: COLOR;
5
- shadow?: boolean;
6
- onClick?: (e: React.MouseEvent<Element>) => void;
7
- isDeletable?: boolean;
8
- onDelete?: (e: React.MouseEvent<Element>) => void;
9
- deleteIcon?: JSX.Element;
10
- }
11
- export declare const Chip: (props: IChipProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Chip';
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface IConditionalWrapperProps {
3
- condition: boolean;
4
- wrapper: (children: React.ReactNode) => JSX.Element;
5
- children: any;
6
- }
7
- export declare const ConditionalWrapper: ({ condition, wrapper, children }: IConditionalWrapperProps) => any;
8
- export {};
@@ -1 +0,0 @@
1
- export * from './ConditionalWrapper';
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- export declare enum DATEMODE {
3
- YEAR = 0,
4
- MONTH = 1,
5
- DAY = 2
6
- }
7
- export interface IDateSelectProps {
8
- value?: Date;
9
- className?: string;
10
- disabled?: boolean;
11
- yearConfig?: {
12
- from?: number;
13
- to?: number;
14
- };
15
- onChange?: (val: Date) => void;
16
- }
17
- export declare const DateSelect: (props: IDateSelectProps) => JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export interface IDaySelectProps {
3
- day?: number;
4
- month?: number;
5
- year?: number;
6
- className?: string;
7
- id?: string;
8
- name?: string;
9
- disabled?: boolean;
10
- onChange?: (val: number) => void;
11
- }
12
- export declare const DaySelect: (props: IDaySelectProps) => JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export interface IMonthProps {
3
- value?: number;
4
- className?: string;
5
- id?: string;
6
- name?: string;
7
- disabled?: boolean;
8
- onChange?: (val: number) => void;
9
- }
10
- export declare const MonthSelect: (props: IMonthProps) => JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export interface IYearProps {
3
- from?: number;
4
- to?: number;
5
- value?: number;
6
- className?: string;
7
- id?: string;
8
- name?: string;
9
- disabled?: boolean;
10
- onChange?: (val: number) => void;
11
- }
12
- export declare const YearSelect: (props: IYearProps) => JSX.Element;
@@ -1,4 +0,0 @@
1
- export * from './DateSelect';
2
- export * from './YearSelect';
3
- export * from './DaySelect';
4
- export * from './MonthSelect';
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface IDrawerProps extends React.ComponentProps<"div"> {
3
- position?: 'left' | 'right';
4
- shadow?: boolean;
5
- onClickBackdrop?: () => void;
6
- permanent?: boolean;
7
- target?: HTMLElement;
8
- }
9
- export declare const Drawer: (props: IDrawerProps) => React.ReactPortal;
@@ -1 +0,0 @@
1
- export * from './Drawer';
@@ -1,8 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export interface IExpansionPanelProps {
3
- header: ReactNode;
4
- children: ReactNode;
5
- isExpanded?: boolean;
6
- onChange?: (event: React.MouseEvent, isExpanded: boolean) => void;
7
- }
8
- export declare const ExpansionPanel: (props: IExpansionPanelProps) => JSX.Element;
@@ -1,5 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface IExpansionPanelContentProps {
3
- children?: ReactNode;
4
- }
5
- export declare const ExpansionPanelContent: ({ children }: IExpansionPanelContentProps) => JSX.Element;
@@ -1,7 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export interface IExpansionPanelHeaderProps {
3
- onClick?: (event: React.MouseEvent) => void;
4
- children?: ReactNode;
5
- isExpanded: boolean;
6
- }
7
- export declare const ExpansionPanelHeader: (props: IExpansionPanelHeaderProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- export * from './ExpansionPanel';
2
- export * from './ExpansionPanelHeader';
3
- export * from './ExpansionPanelContent';
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export interface IFileInputProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
3
- deletable?: boolean;
4
- }
5
- export declare const FileInput: (props: IFileInputProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './FileInput';
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { COLOR, SIZE } from '../component.enums';
3
- export interface IFloatingActionButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
4
- icon?: React.SVGProps<SVGSVGElement>;
5
- color?: COLOR;
6
- size?: SIZE;
7
- fixed?: boolean;
8
- isActive?: boolean;
9
- disabled?: boolean;
10
- onClick?: (e: React.MouseEvent) => void;
11
- }
12
- export declare const FloatingActionButton: (props: IFloatingActionButtonProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './FloatingActionButton';
@@ -1,38 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { IControls, IFormValues } from './form.interfaces';
3
- import { FormControl } from './form.models';
4
- export interface IFormProps {
5
- controls: IControls;
6
- validateOnBlur?: boolean;
7
- onSubmit?: (values: IFormValues) => void;
8
- onChange?: (values: IFormValues) => void;
9
- submitOnEnter?: boolean;
10
- }
11
- export interface IFormState {
12
- controls: IControls | undefined;
13
- isValid: boolean;
14
- isSubmitted: boolean;
15
- isChanged: boolean;
16
- submitOnEnter?: boolean;
17
- }
18
- export declare class Form extends Component<IFormProps, IFormState> {
19
- constructor(props: IFormProps);
20
- static getDerivedStateFromProps(nextProps: IFormProps, state: IFormState): {
21
- controls: IControls;
22
- } | null;
23
- myForm: React.RefObject<HTMLFormElement>;
24
- handleChange(): void;
25
- private validateField;
26
- private handleInputChange;
27
- private handleOnBlur;
28
- private isRequired;
29
- private isInvalid;
30
- getControl(name: string): FormControl;
31
- private renderLabel;
32
- handleFormSubmit(): void;
33
- handleFormReset(): void;
34
- handleOnKeyDown(e: React.KeyboardEvent<HTMLInputElement | undefined>): void;
35
- destroy(): void;
36
- getFormGroupCssClass(fieldKey: string): string | undefined;
37
- render(): JSX.Element;
38
- }
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { IFormInputError } from './form.interfaces';
3
- interface IFormErrorProps {
4
- className?: string;
5
- errors?: Array<IFormInputError>;
6
- }
7
- export declare const FormError: (props: IFormErrorProps) => JSX.Element;
8
- export {};
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- interface IFormGroupProps {
3
- children?: ReactNode;
4
- className?: string;
5
- }
6
- export declare const FormGroup: (props: IFormGroupProps) => JSX.Element;
7
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const FormHint: (props: React.ComponentProps<"small">) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './FormHint';