@lanaco/lnc-react-ui 4.0.198 → 4.0.200

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 (247) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +12 -14
  17. package/dist/BlogExploreSection.cjs +1 -1
  18. package/dist/BlogExploreSection.js +1 -1
  19. package/dist/BlogsSectionWithFilters.cjs +1 -1
  20. package/dist/BlogsSectionWithFilters.js +1 -1
  21. package/dist/Breadcrumbs.cjs +5 -5
  22. package/dist/Breadcrumbs.js +57 -87
  23. package/dist/Button.cjs +11 -11
  24. package/dist/Button.js +126 -173
  25. package/dist/ButtonGroup.cjs +8 -8
  26. package/dist/ButtonGroup.js +37 -49
  27. package/dist/CalorieCalculatorSection.cjs +8 -8
  28. package/dist/CalorieCalculatorSection.js +90 -97
  29. package/dist/CheckBoxInput.cjs +1 -1
  30. package/dist/CheckBoxInput.js +2 -5
  31. package/dist/Chip.cjs +14 -14
  32. package/dist/Chip.js +73 -111
  33. package/dist/ConfirmationForm.cjs +6 -6
  34. package/dist/ConfirmationForm.js +67 -109
  35. package/dist/ContactSection.cjs +1 -0
  36. package/dist/ContactSection.js +1 -0
  37. package/dist/Content.cjs +1 -1
  38. package/dist/Content.js +7 -15
  39. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  40. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  41. package/dist/DataView.cjs +1 -1
  42. package/dist/DataView.js +30 -50
  43. package/dist/DateInput.cjs +4 -4
  44. package/dist/DateInput.js +1347 -1383
  45. package/dist/DecimalInput.cjs +6 -6
  46. package/dist/DecimalInput.js +210 -263
  47. package/dist/DecimalInputV2.cjs +23 -23
  48. package/dist/DecimalInputV2.js +119 -176
  49. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  50. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +1 -1
  53. package/dist/DetailsView.cjs +9 -9
  54. package/dist/DetailsView.js +111 -162
  55. package/dist/DoubleRangeSlider.cjs +22 -22
  56. package/dist/DoubleRangeSlider.js +70 -95
  57. package/dist/DragAndDropFile.cjs +10 -10
  58. package/dist/DragAndDropFile.js +347 -402
  59. package/dist/DragDropFiles.cjs +4 -4
  60. package/dist/DragDropFiles.js +70 -124
  61. package/dist/Drawer.cjs +5 -5
  62. package/dist/Drawer.js +97 -135
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +44 -213
  65. package/dist/DropdownItem.cjs +14 -14
  66. package/dist/DropdownItem.js +106 -142
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +61 -242
  69. package/dist/DropdownMenu.cjs +4 -4
  70. package/dist/DropdownMenu.js +87 -149
  71. package/dist/EditableTable.cjs +10 -10
  72. package/dist/EditableTable.js +165 -331
  73. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  74. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  75. package/dist/FaqSection.cjs +3 -3
  76. package/dist/FaqSection.js +119 -153
  77. package/dist/FileInput.cjs +7 -7
  78. package/dist/FileInput.js +66 -94
  79. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  80. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  81. package/dist/FlexBox.cjs +6 -6
  82. package/dist/FlexBox.js +28 -63
  83. package/dist/FlexGrid.cjs +1 -1
  84. package/dist/FlexGrid.js +27 -67
  85. package/dist/FlexGridItem.cjs +6 -6
  86. package/dist/FlexGridItem.js +34 -62
  87. package/dist/Footer.cjs +1 -1
  88. package/dist/Footer.js +7 -15
  89. package/dist/FormField.cjs +7 -7
  90. package/dist/FormField.js +22 -47
  91. package/dist/FormView.cjs +6 -6
  92. package/dist/FormView.js +148 -195
  93. package/dist/Grid.cjs +2 -2
  94. package/dist/Grid.js +40 -65
  95. package/dist/GridItem.cjs +2 -2
  96. package/dist/GridItem.js +47 -80
  97. package/dist/Header.cjs +1 -1
  98. package/dist/Header.js +7 -15
  99. package/dist/HelpBannerSection.cjs +3 -3
  100. package/dist/HelpBannerSection.js +9 -15
  101. package/dist/Icon.cjs +4 -4
  102. package/dist/Icon.js +29 -55
  103. package/dist/IconButton.cjs +9 -9
  104. package/dist/IconButton.js +89 -127
  105. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  106. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  107. package/dist/Kanban.cjs +7 -7
  108. package/dist/Kanban.js +2033 -2098
  109. package/dist/KanbanActionsToolbar.cjs +4 -5
  110. package/dist/KanbanActionsToolbar.js +61 -96
  111. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  112. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  113. package/dist/KanbanCard.cjs +1 -1
  114. package/dist/KanbanCard.js +2 -3
  115. package/dist/KanbanFooter.cjs +3 -3
  116. package/dist/KanbanFooter.js +37 -55
  117. package/dist/KanbanHeader.cjs +4 -4
  118. package/dist/KanbanHeader.js +49 -81
  119. package/dist/KanbanView.cjs +2 -2
  120. package/dist/KanbanView.js +106 -173
  121. package/dist/Link.cjs +7 -7
  122. package/dist/Link.js +20 -37
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +13 -13
  128. package/dist/MenuItem.js +101 -139
  129. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  130. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  131. package/dist/Modal.cjs +18 -19
  132. package/dist/Modal.js +131 -166
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +25 -196
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +27 -209
  137. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  138. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  139. package/dist/NestedDropdownItem.cjs +3 -3
  140. package/dist/NestedDropdownItem.js +45 -67
  141. package/dist/NestedMenuItem.cjs +5 -5
  142. package/dist/NestedMenuItem.js +51 -78
  143. package/dist/NotificationContainer.cjs +10 -10
  144. package/dist/NotificationContainer.js +46 -79
  145. package/dist/NotificationMessage.cjs +2 -2
  146. package/dist/NotificationMessage.js +47 -64
  147. package/dist/NumberInput.cjs +23 -23
  148. package/dist/NumberInput.js +89 -149
  149. package/dist/PageLayout.cjs +2 -2
  150. package/dist/PageLayout.js +20 -28
  151. package/dist/Pagination.cjs +3 -3
  152. package/dist/Pagination.js +102 -185
  153. package/dist/PasswordInput.cjs +23 -23
  154. package/dist/PasswordInput.js +108 -137
  155. package/dist/Popover.cjs +1 -1
  156. package/dist/Popover.js +7 -32
  157. package/dist/PopoverContent.cjs +5 -5
  158. package/dist/PopoverContent.js +22 -28
  159. package/dist/PopoverTrigger.cjs +1 -1
  160. package/dist/PopoverTrigger.js +7 -12
  161. package/dist/ProgressBar.cjs +8 -8
  162. package/dist/ProgressBar.js +32 -59
  163. package/dist/RadioGroup.cjs +3 -3
  164. package/dist/RadioGroup.js +41 -72
  165. package/dist/RadioInput.cjs +28 -28
  166. package/dist/RadioInput.js +78 -123
  167. package/dist/RangeSlider.cjs +19 -19
  168. package/dist/RangeSlider.js +92 -119
  169. package/dist/ReviewsSection.cjs +13 -13
  170. package/dist/ReviewsSection.js +81 -101
  171. package/dist/SalesCampaignsSection.cjs +19 -19
  172. package/dist/SalesCampaignsSection.js +283 -324
  173. package/dist/SearchBar.cjs +10 -10
  174. package/dist/SearchBar.js +168 -188
  175. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  176. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  177. package/dist/SearchSection.cjs +1 -1
  178. package/dist/SearchSection.js +2 -3
  179. package/dist/Separator.cjs +3 -3
  180. package/dist/Separator.js +14 -19
  181. package/dist/Sidebar.cjs +4 -5
  182. package/dist/Sidebar.js +33 -56
  183. package/dist/SimpleCategoriesSection.cjs +1 -1
  184. package/dist/SimpleCategoriesSection.js +1 -1
  185. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  186. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  187. package/dist/Spinner.cjs +18 -18
  188. package/dist/Spinner.js +37 -54
  189. package/dist/StatsSection.cjs +6 -6
  190. package/dist/StatsSection.js +15 -25
  191. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  192. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  193. package/dist/Surface.cjs +4 -4
  194. package/dist/Surface.js +19 -34
  195. package/dist/SwipeableDrawer.cjs +8 -8
  196. package/dist/SwipeableDrawer.js +84 -136
  197. package/dist/TabItem.cjs +11 -11
  198. package/dist/TabItem.js +83 -118
  199. package/dist/Table.cjs +65 -65
  200. package/dist/Table.js +786 -1167
  201. package/dist/TableView.cjs +2 -2
  202. package/dist/TableView.js +113 -197
  203. package/dist/Tabs.cjs +4 -4
  204. package/dist/Tabs.js +41 -60
  205. package/dist/TextAreaInput.cjs +14 -14
  206. package/dist/TextAreaInput.js +131 -181
  207. package/dist/TextInput.cjs +23 -23
  208. package/dist/TextInput.js +78 -126
  209. package/dist/ThemeProvider.cjs +5 -5
  210. package/dist/ThemeProvider.js +35 -39
  211. package/dist/TimeInput.cjs +7 -7
  212. package/dist/TimeInput.js +46 -72
  213. package/dist/Toggle.cjs +20 -20
  214. package/dist/Toggle.js +78 -109
  215. package/dist/ToggleSection.cjs +6 -5
  216. package/dist/ToggleSection.js +49 -55
  217. package/dist/TreeMenu.cjs +5 -5
  218. package/dist/TreeMenu.js +43 -67
  219. package/dist/TreeMenuSeparator.cjs +3 -3
  220. package/dist/TreeMenuSeparator.js +12 -20
  221. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  222. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  223. package/dist/UploadedFile.cjs +11 -11
  224. package/dist/UploadedFile.js +73 -99
  225. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  226. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  227. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  228. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  229. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  230. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  231. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  232. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  233. package/dist/index-BdKi2ogu.js +39 -0
  234. package/dist/index-CRk3vcd4.cjs +95 -0
  235. package/dist/index-CX2A-q39.cjs +4 -0
  236. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  240. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  241. package/package.json +1 -1
  242. package/dist/KanbanCard-68kSAXL6.js +0 -175
  243. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  244. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  245. package/dist/index-Be-_NM9Q.cjs +0 -4
  246. package/dist/index-C0LcDEqa.js +0 -47
  247. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,14 +1,14 @@
1
- "use strict";const l=require("react/jsx-runtime"),p=require("react"),e=require("./index-BpbMKBf_.cjs"),$=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./DragAndDropFile.cjs"),G=require("./UploadedFile.cjs"),T=require("./utils-RnrgDDZP.cjs"),M=require("./FlexGrid.cjs"),g=require("./FlexGridItem.cjs"),U=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),V=$.styled.div`
1
+ "use strict";const l=require("react/jsx-runtime"),s=require("react"),$=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./DragAndDropFile.cjs"),E=require("./UploadedFile.cjs"),f=require("./utils-RnrgDDZP.cjs"),G=require("./FlexGrid.cjs"),g=require("./FlexGridItem.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),U=$.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 1rem;
5
5
 
6
- border: ${n=>`1px solid ${T.getColorRgbaValue(n.theme,"DragDropFiles",n.color,"enabled","border")}`};
7
- border-radius: ${n=>T.getBorderRadiusValueWithUnits(n.theme,"regular")};
6
+ border: ${t=>`1px solid ${f.getColorRgbaValue(t.theme,"DragDropFiles",t.color,"enabled","border")}`};
7
+ border-radius: ${t=>f.getBorderRadiusValueWithUnits(t.theme,"regular")};
8
8
  padding: 1.25rem 2.5rem;
9
9
 
10
10
  & .file-item-lnc {
11
11
  padding: 0.5rem 0.813rem;
12
12
  height: 100%;
13
13
  }
14
- `,P=p.forwardRef((n,h)=>{const{id:D="",disabled:x=!1,preventDefault:b=!1,acceptDropzone:F={},acceptInput:C,multiple:q=!0,selectFileText:j="Select file",dndFileText:w="Drag and drop file here or",control:z,showFileSize:d=!0,files:u=[],onChange:y=()=>{},onFocus:A=()=>{},onBlur:R=()=>{},onDropAccepted:m=()=>{},onDrop:f=()=>{},fileClick:S=()=>{},onCancel:O=()=>{},className:W="",style:H={},color:i="primary",size:c="small",dragAndDropFileProps:k,uploadedFileProps:t,...v}=n;var N={theme:U.useTheme(),size:c,color:i};const[o,a]=p.useState([]);p.useEffect(()=>{a(u)},[u]);const I=p.useCallback((r,s)=>{f&&f(r,s)},[]),_=p.useCallback(r=>{m&&m(r)},[]),B=r=>{var s;(s=r.target)!=null&&s.files?a([...o,...r.target.files]):r&&a([...o,...r]),y&&y(r)};return l.jsx(V,{ref:h,...N,...v,children:l.jsxs(M,{direction:"RowReverse",children:[l.jsx(g,{M:(o==null?void 0:o.length)>0?6:12,children:l.jsx(E,{id:D,disabled:x,preventDefault:b,acceptDropzone:F,acceptInput:C,multiple:q,selectFileText:j,dndFileText:w,control:z,showFileSize:d,showDnD:!((o==null?void 0:o.length)>0),onChange:B,onFocus:A,onBlur:R,onDrop:I,onDropAccepted:_,color:i,size:c,...k})}),o==null?void 0:o.map((r,s)=>l.jsx(g,{M:6,children:l.jsx(G,{fileName:r.name,fileSize:r.size,showFileSize:d,color:i,size:c,onFileClick:S,onCancel:O,...t,className:"file-item-lnc "+(t==null?void 0:t.className)},s)},s))]})})});P.propTypes={id:e.PropTypes.any,disabled:e.PropTypes.bool,preventDefault:e.PropTypes.bool,acceptDropzone:e.PropTypes.object,acceptInput:e.PropTypes.string,multiple:e.PropTypes.bool,selectFileText:e.PropTypes.string,dndFileText:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.element]),control:e.PropTypes.element,showFileSize:e.PropTypes.bool,files:e.PropTypes.array,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onDropAccepted:e.PropTypes.func,onDrop:e.PropTypes.func,fileClick:e.PropTypes.func,onCancel:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,size:e.PropTypes.oneOf(["small","medium","large"]),color:e.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"]),dragAndDropFileProps:e.PropTypes.any,uploadedFileProps:e.PropTypes.any};module.exports=P;
14
+ `,V=s.forwardRef((t,D)=>{const{id:x="",disabled:b=!1,preventDefault:q=!1,acceptDropzone:C={},acceptInput:F,multiple:j=!0,selectFileText:R="Select file",dndFileText:w="Drag and drop file here or",control:S,showFileSize:d=!0,files:m=[],onChange:u=()=>{},onFocus:y=()=>{},onBlur:z=()=>{},onDropAccepted:h=()=>{},onDrop:p=()=>{},fileClick:A=()=>{},onCancel:k=()=>{},color:i="primary",size:c="small",dragAndDropFileProps:v,uploadedFileProps:n,..._}=t;var I={theme:M.useTheme(),size:c,color:i};const[r,a]=s.useState([]);s.useEffect(()=>{a(m)},[m]);const N=s.useCallback((e,o)=>{p&&p(e,o)},[]),O=s.useCallback(e=>{h&&h(e)},[]),T=e=>{var o;(o=e.target)!=null&&o.files?a([...r,...e.target.files]):e&&a([...r,...e]),u&&u(e)};return l.jsx(U,{ref:D,...I,..._,children:l.jsxs(G,{direction:"RowReverse",children:[l.jsx(g,{M:(r==null?void 0:r.length)>0?6:12,children:l.jsx(B,{id:x,disabled:b,preventDefault:q,acceptDropzone:C,acceptInput:F,multiple:j,selectFileText:R,dndFileText:w,control:S,showFileSize:d,showDnD:!((r==null?void 0:r.length)>0),onChange:T,onFocus:y,onBlur:z,onDrop:N,onDropAccepted:O,color:i,size:c,...v})}),r==null?void 0:r.map((e,o)=>l.jsx(g,{M:6,children:l.jsx(E,{fileName:e.name,fileSize:e.size,showFileSize:d,color:i,size:c,onFileClick:A,onCancel:k,...n,className:"file-item-lnc "+(n==null?void 0:n.className)},o)},o))]})})});module.exports=V;
@@ -1,175 +1,121 @@
1
- import { jsx as t, jsxs as $ } from "react/jsx-runtime";
2
- import { forwardRef as G, useState as M, useEffect as U, useCallback as u } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
1
+ import { jsx as t, jsxs as B } from "react/jsx-runtime";
2
+ import { forwardRef as G, useState as M, useEffect as U, useCallback as h } from "react";
4
3
  import { s as V } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
4
  import E from "./DragAndDropFile.js";
6
- import W from "./UploadedFile.js";
7
- import { b as q, a as H } from "./utils-DtEfC-TX.js";
8
- import J from "./FlexGrid.js";
9
- import h from "./FlexGridItem.js";
10
- import { u as K } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
- const L = V.div`
5
+ import P from "./UploadedFile.js";
6
+ import { b as W, a as q } from "./utils-DtEfC-TX.js";
7
+ import H from "./FlexGrid.js";
8
+ import g from "./FlexGridItem.js";
9
+ import { u as J } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
+ const K = V.div`
12
11
  display: flex;
13
12
  flex-direction: column;
14
13
  gap: 1rem;
15
14
 
16
- border: ${(n) => `1px solid ${q(
17
- n.theme,
15
+ border: ${(l) => `1px solid ${W(
16
+ l.theme,
18
17
  "DragDropFiles",
19
- n.color,
18
+ l.color,
20
19
  "enabled",
21
20
  "border"
22
21
  )}`};
23
- border-radius: ${(n) => H(n.theme, "regular")};
22
+ border-radius: ${(l) => q(l.theme, "regular")};
24
23
  padding: 1.25rem 2.5rem;
25
24
 
26
25
  & .file-item-lnc {
27
26
  padding: 0.5rem 0.813rem;
28
27
  height: 100%;
29
28
  }
30
- `, Q = G((n, D) => {
29
+ `, te = G((l, D) => {
31
30
  const {
32
- id: y = "",
33
- disabled: b = !1,
34
- preventDefault: F = !1,
35
- acceptDropzone: x = {},
36
- acceptInput: C,
31
+ id: u = "",
32
+ disabled: x = !1,
33
+ preventDefault: b = !1,
34
+ acceptDropzone: C = {},
35
+ acceptInput: F,
37
36
  multiple: z = !0,
38
- selectFileText: T = "Select file",
39
- dndFileText: A = "Drag and drop file here or",
40
- control: w,
37
+ selectFileText: A = "Select file",
38
+ dndFileText: R = "Drag and drop file here or",
39
+ control: S,
41
40
  showFileSize: d = !0,
42
- files: p = [],
41
+ files: m = [],
43
42
  // ----------------------------------------
44
- onChange: m = () => {
43
+ onChange: c = () => {
45
44
  },
46
- onFocus: O = () => {
45
+ onFocus: v = () => {
47
46
  },
48
- onBlur: S = () => {
47
+ onBlur: w = () => {
49
48
  },
50
49
  onDropAccepted: f = () => {
51
50
  },
52
- onDrop: g = () => {
51
+ onDrop: p = () => {
53
52
  },
54
- fileClick: v = () => {
53
+ fileClick: y = () => {
55
54
  },
56
- onCancel: N = () => {
55
+ onCancel: k = () => {
57
56
  },
58
57
  // ----------------------------------------
59
- className: X = "",
60
- style: Y = {},
61
58
  color: i = "primary",
62
- size: s = "small",
63
- dragAndDropFileProps: P,
59
+ size: n = "small",
60
+ dragAndDropFileProps: I,
64
61
  uploadedFileProps: a,
65
- ...R
66
- } = n;
67
- var j = { theme: K(), size: s, color: i };
68
- const [r, c] = M([]);
62
+ ...N
63
+ } = l;
64
+ var O = { theme: J(), size: n, color: i };
65
+ const [r, s] = M([]);
69
66
  U(() => {
70
- c(p);
71
- }, [p]);
72
- const k = u((o, l) => {
73
- g && g(o, l);
74
- }, []), I = u((o) => {
75
- f && f(o);
76
- }, []), B = (o) => {
77
- var l;
78
- (l = o.target) != null && l.files ? c([...r, ...o.target.files]) : o && c([...r, ...o]), m && m(o);
67
+ s(m);
68
+ }, [m]);
69
+ const T = h((e, o) => {
70
+ p && p(e, o);
71
+ }, []), $ = h((e) => {
72
+ f && f(e);
73
+ }, []), j = (e) => {
74
+ var o;
75
+ (o = e.target) != null && o.files ? s([...r, ...e.target.files]) : e && s([...r, ...e]), c && c(e);
79
76
  };
80
- return /* @__PURE__ */ t(L, { ref: D, ...j, ...R, children: /* @__PURE__ */ $(J, { direction: "RowReverse", children: [
81
- /* @__PURE__ */ t(h, { M: (r == null ? void 0 : r.length) > 0 ? 6 : 12, children: /* @__PURE__ */ t(
77
+ return /* @__PURE__ */ t(K, { ref: D, ...O, ...N, children: /* @__PURE__ */ B(H, { direction: "RowReverse", children: [
78
+ /* @__PURE__ */ t(g, { M: (r == null ? void 0 : r.length) > 0 ? 6 : 12, children: /* @__PURE__ */ t(
82
79
  E,
83
80
  {
84
- id: y,
85
- disabled: b,
86
- preventDefault: F,
87
- acceptDropzone: x,
88
- acceptInput: C,
81
+ id: u,
82
+ disabled: x,
83
+ preventDefault: b,
84
+ acceptDropzone: C,
85
+ acceptInput: F,
89
86
  multiple: z,
90
- selectFileText: T,
91
- dndFileText: A,
92
- control: w,
87
+ selectFileText: A,
88
+ dndFileText: R,
89
+ control: S,
93
90
  showFileSize: d,
94
91
  showDnD: !((r == null ? void 0 : r.length) > 0),
95
- onChange: B,
96
- onFocus: O,
97
- onBlur: S,
98
- onDrop: k,
99
- onDropAccepted: I,
92
+ onChange: j,
93
+ onFocus: v,
94
+ onBlur: w,
95
+ onDrop: T,
96
+ onDropAccepted: $,
100
97
  color: i,
101
- size: s,
102
- ...P
98
+ size: n,
99
+ ...I
103
100
  }
104
101
  ) }),
105
- r == null ? void 0 : r.map((o, l) => /* @__PURE__ */ t(h, { M: 6, children: /* @__PURE__ */ t(
106
- W,
102
+ r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ t(g, { M: 6, children: /* @__PURE__ */ t(
103
+ P,
107
104
  {
108
- fileName: o.name,
109
- fileSize: o.size,
105
+ fileName: e.name,
106
+ fileSize: e.size,
110
107
  showFileSize: d,
111
108
  color: i,
112
- size: s,
113
- onFileClick: v,
114
- onCancel: N,
109
+ size: n,
110
+ onFileClick: y,
111
+ onCancel: k,
115
112
  ...a,
116
113
  className: "file-item-lnc " + (a == null ? void 0 : a.className)
117
114
  },
118
- l
119
- ) }, l))
115
+ o
116
+ ) }, o))
120
117
  ] }) });
121
118
  });
122
- Q.propTypes = {
123
- id: e.any,
124
- disabled: e.bool,
125
- preventDefault: e.bool,
126
- /**
127
- * Type of: { \[key: string]: string[] }
128
- *
129
- * Ex: {
130
- *
131
- * 'image/png': ['.png'],
132
- *
133
- * 'text/html': ['.html', '.htm']
134
- *
135
- * }
136
- */
137
- acceptDropzone: e.object,
138
- acceptInput: e.string,
139
- multiple: e.bool,
140
- selectFileText: e.string,
141
- dndFileText: e.oneOfType([e.string, e.element]),
142
- /**
143
- * Custom control which opens file explorer on click
144
- */
145
- control: e.element,
146
- showFileSize: e.bool,
147
- files: e.array,
148
- //-------------------------
149
- onChange: e.func,
150
- onFocus: e.func,
151
- onBlur: e.func,
152
- onDropAccepted: e.func,
153
- onDrop: e.func,
154
- fileClick: e.func,
155
- onCancel: e.func,
156
- //-------------------------
157
- className: e.string,
158
- style: e.object,
159
- size: e.oneOf(["small", "medium", "large"]),
160
- color: e.oneOf([
161
- "primary",
162
- "secondary",
163
- "success",
164
- "danger",
165
- "warning",
166
- "information",
167
- "neutral",
168
- "gray"
169
- ]),
170
- dragAndDropFileProps: e.any,
171
- uploadedFileProps: e.any
172
- };
173
119
  export {
174
- Q as default
120
+ te as default
175
121
  };
package/dist/Drawer.cjs CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";const $=require("react/jsx-runtime"),t=require("react"),r=require("./index-BpbMKBf_.cjs"),q=require("./emotion-react.browser.esm-Cvnp-zmB.cjs"),N=require("./utils-RnrgDDZP.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function k(){return k=Object.assign||function(l){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(l[a]=o[a])}return l},k.apply(this,arguments)}var B=function(e,o){var a={left:{top:0,left:0,transform:"translate3d(-100%, 0, 0)",width:o,height:"100vh"},right:{top:0,right:0,transform:"translate3d(100%, 0, 0)",width:o,height:"100vh"},bottom:{left:0,right:0,bottom:0,transform:"translate3d(0, 100%, 0)",width:"100%",height:o},top:{left:0,right:0,top:0,transform:"translate3d(0, -100%, 0)",width:"100%",height:o}};return a[e]},F=function(e){var o=e.open,a=e.onClose,w=a===void 0?function(){}:a,_=e.children,x=e.style,d=e.enableOverlay,u=d===void 0?!0:d,y=e.overlayColor,C=y===void 0?"#000":y,p=e.overlayOpacity,m=p===void 0?.4:p,v=e.zIndex,f=v===void 0?100:v,g=e.duration,O=g===void 0?500:g,D=e.direction,s=e.size,T=s===void 0?250:s,i=e.className,h=e.customIdSuffix,b=e.lockBackgroundScroll,P=b===void 0?!1:b,n=e.overlayClassName,E=n===void 0?"":n,S=t.useRef(null);t.useEffect(function(){var R=function(){S.current=window.document.querySelector("body"),S.current&&P&&(S.current.style.overflow=o?"hidden":"")};R()},[o]);var c=t.useMemo(function(){return h||(Math.random()+1).toString(36).substring(7)},[h]),Z={backgroundColor:C.toString(),opacity:m,zIndex:f},z=k({zIndex:f+1,transitionDuration:O+"ms"},B(D,T),x);return t.createElement("div",{id:"EZDrawer"+c,className:"EZDrawer"},t.createElement("input",{type:"checkbox",id:"EZDrawer__checkbox"+c,className:"EZDrawer__checkbox",onChange:w,checked:o}),t.createElement("nav",{role:"navigation",id:"EZDrawer__container"+c,style:z,className:"EZDrawer__container "+i},_),u&&t.createElement("label",{htmlFor:"EZDrawer__checkbox"+c,id:"EZDrawer__overlay"+c,className:"EZDrawer__overlay "+E,style:Z}))};const I=t.forwardRef((l,e)=>{const{direction:o="right",open:a=!1,duration:w=300,overlayOpacity:_=.4,enableOverlay:x=!0,zIndex:d=100,onClose:u=()=>{},onOpen:y=()=>{},className:C="",style:p={},color:m="neutral",size:v="small",overlayColor:f,width:g="unset",children:O,...D}=l,s=j.useTheme(),[T,i]=t.useState(!1);t.useImperativeHandle(e,()=>({open(){h()},close(){b()}}));const h=n=>{i(!0),y(n)},b=n=>{i(!1),u(n)},P=()=>{i(!1),u()};return $.jsx(q.ClassNames,{children:({css:n,cx:E})=>$.jsx(F,{open:T,onClose:P,direction:o,zIndex:d,duration:w,overlayOpacity:_,enableOverlay:x,size:g,className:E("drawer-lnc "+C,n`
1
+ "use strict";const $=require("react/jsx-runtime"),o=require("react"),q=require("./emotion-react.browser.esm-Cvnp-zmB.cjs"),k=require("./utils-RnrgDDZP.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function N(){return N=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])}return n},N.apply(this,arguments)}var B=function(e,r){var t={left:{top:0,left:0,transform:"translate3d(-100%, 0, 0)",width:r,height:"100vh"},right:{top:0,right:0,transform:"translate3d(100%, 0, 0)",width:r,height:"100vh"},bottom:{left:0,right:0,bottom:0,transform:"translate3d(0, 100%, 0)",width:"100%",height:r},top:{left:0,right:0,top:0,transform:"translate3d(0, -100%, 0)",width:"100%",height:r}};return t[e]},P=function(e){var r=e.open,t=e.onClose,_=t===void 0?function(){}:t,b=e.children,p=e.style,l=e.enableOverlay,x=l===void 0?!0:l,u=e.overlayColor,C=u===void 0?"#000":u,s=e.overlayOpacity,D=s===void 0?.4:s,v=e.zIndex,m=v===void 0?100:v,y=e.duration,E=y===void 0?500:y,i=e.direction,h=e.size,c=h===void 0?250:h,S=e.className,f=e.customIdSuffix,g=e.lockBackgroundScroll,a=g===void 0?!1:g,w=e.overlayClassName,Z=w===void 0?"":w,O=o.useRef(null);o.useEffect(function(){var R=function(){O.current=window.document.querySelector("body"),O.current&&a&&(O.current.style.overflow=r?"hidden":"")};R()},[r]);var d=o.useMemo(function(){return f||(Math.random()+1).toString(36).substring(7)},[f]),I={backgroundColor:C.toString(),opacity:D,zIndex:m},z=N({zIndex:m+1,transitionDuration:E+"ms"},B(i,c),p);return o.createElement("div",{id:"EZDrawer"+d,className:"EZDrawer"},o.createElement("input",{type:"checkbox",id:"EZDrawer__checkbox"+d,className:"EZDrawer__checkbox",onChange:_,checked:r}),o.createElement("nav",{role:"navigation",id:"EZDrawer__container"+d,style:z,className:"EZDrawer__container "+S},b),x&&o.createElement("label",{htmlFor:"EZDrawer__checkbox"+d,id:"EZDrawer__overlay"+d,className:"EZDrawer__overlay "+Z,style:I}))};const F=o.forwardRef((n,e)=>{const{direction:r="right",duration:t=300,overlayOpacity:_=.4,enableOverlay:b=!0,zIndex:p=100,onClose:l=()=>{},onOpen:x=()=>{},className:u="",style:C={},color:s="neutral",size:D="small",overlayColor:v,width:m="unset",children:y,...E}=n,i=j.useTheme(),[h,c]=o.useState(!1);o.useImperativeHandle(e,()=>({open(){S()},close(){f()}}));const S=a=>{c(!0),x(a)},f=a=>{c(!1),l(a)},g=()=>{c(!1),l()};return $.jsx(q.ClassNames,{children:({css:a,cx:w})=>$.jsx(P,{open:h,onClose:g,direction:r,zIndex:p,duration:t,overlayOpacity:_,enableOverlay:b,size:m,className:w("drawer-lnc "+u,a`
2
2
  padding: 20px;
3
- background-color: ${N.getColorRgbaValue(s,"Drawer",m,"enabled","background")} !important;
4
- color: ${N.getColorRgbaValue(s,"Drawer",m,"enabled","text")};
5
- ${N.getComponentTypographyCss(s,"Drawer",v,"enabled")};
6
- `),style:p,overlayColor:f,...D,children:O})})});I.propTypes={direction:r.PropTypes.oneOf(["top","right","left","bottom"]),open:r.PropTypes.bool,duration:r.PropTypes.number,overlayOpacity:r.PropTypes.number,enableOverlay:r.PropTypes.bool,zIndex:r.PropTypes.number,onClose:r.PropTypes.func,onOpen:r.PropTypes.func,className:r.PropTypes.string,style:r.PropTypes.object,overlayColor:r.PropTypes.string,width:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),size:r.PropTypes.oneOf(["small","medium","large"]),color:r.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"])};module.exports=I;
3
+ background-color: ${k.getColorRgbaValue(i,"Drawer",s,"enabled","background")} !important;
4
+ color: ${k.getColorRgbaValue(i,"Drawer",s,"enabled","text")};
5
+ ${k.getComponentTypographyCss(i,"Drawer",D,"enabled")};
6
+ `),style:C,overlayColor:v,...E,children:y})})});module.exports=F;
package/dist/Drawer.js CHANGED
@@ -1,33 +1,32 @@
1
- import { jsx as I } from "react/jsx-runtime";
2
- import b, { useRef as T, useEffect as j, useMemo as B, forwardRef as M, useState as q, useImperativeHandle as F } from "react";
3
- import { P as r } from "./index-CblbdqjE.js";
4
- import { C as H } from "./emotion-react.browser.esm-DUVZ5oEL.js";
5
- import { b as Z, c as V } from "./utils-DtEfC-TX.js";
6
- import { u as A } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- function $() {
8
- return $ = Object.assign || function(n) {
1
+ import { jsx as N } from "react/jsx-runtime";
2
+ import p, { useRef as j, useEffect as B, useMemo as P, forwardRef as M, useState as T, useImperativeHandle as q } from "react";
3
+ import { C as F } from "./emotion-react.browser.esm-DUVZ5oEL.js";
4
+ import { b as $, c as H } from "./utils-DtEfC-TX.js";
5
+ import { u as V } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
+ function k() {
7
+ return k = Object.assign || function(o) {
9
8
  for (var e = 1; e < arguments.length; e++) {
10
- var o = arguments[e];
11
- for (var a in o)
12
- Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
9
+ var r = arguments[e];
10
+ for (var a in r)
11
+ Object.prototype.hasOwnProperty.call(r, a) && (o[a] = r[a]);
13
12
  }
14
- return n;
15
- }, $.apply(this, arguments);
13
+ return o;
14
+ }, k.apply(this, arguments);
16
15
  }
17
- var G = function(e, o) {
16
+ var A = function(e, r) {
18
17
  var a = {
19
18
  left: {
20
19
  top: 0,
21
20
  left: 0,
22
21
  transform: "translate3d(-100%, 0, 0)",
23
- width: o,
22
+ width: r,
24
23
  height: "100vh"
25
24
  },
26
25
  right: {
27
26
  top: 0,
28
27
  right: 0,
29
28
  transform: "translate3d(100%, 0, 0)",
30
- width: o,
29
+ width: r,
31
30
  height: "100vh"
32
31
  },
33
32
  bottom: {
@@ -36,7 +35,7 @@ var G = function(e, o) {
36
35
  bottom: 0,
37
36
  transform: "translate3d(0, 100%, 0)",
38
37
  width: "100%",
39
- height: o
38
+ height: r
40
39
  },
41
40
  top: {
42
41
  left: 0,
@@ -44,163 +43,126 @@ var G = function(e, o) {
44
43
  top: 0,
45
44
  transform: "translate3d(0, -100%, 0)",
46
45
  width: "100%",
47
- height: o
46
+ height: r
48
47
  }
49
48
  };
50
49
  return a[e];
51
- }, J = function(e) {
52
- var o = e.open, a = e.onClose, w = a === void 0 ? function() {
53
- } : a, _ = e.children, C = e.style, c = e.enableOverlay, d = c === void 0 ? !0 : c, u = e.overlayColor, O = u === void 0 ? "#000" : u, m = e.overlayOpacity, f = m === void 0 ? 0.4 : m, y = e.zIndex, v = y === void 0 ? 100 : y, h = e.duration, D = h === void 0 ? 500 : h, x = e.direction, l = e.size, E = l === void 0 ? 250 : l, i = e.className, p = e.customIdSuffix, g = e.lockBackgroundScroll, S = g === void 0 ? !1 : g, t = e.overlayClassName, N = t === void 0 ? "" : t, k = T(null);
54
- j(function() {
50
+ }, G = function(e) {
51
+ var r = e.open, a = e.onClose, w = a === void 0 ? function() {
52
+ } : a, _ = e.children, b = e.style, n = e.enableOverlay, C = n === void 0 ? !0 : n, d = e.overlayColor, D = d === void 0 ? "#000" : d, l = e.overlayOpacity, x = l === void 0 ? 0.4 : l, u = e.zIndex, m = u === void 0 ? 100 : u, v = e.duration, E = v === void 0 ? 500 : v, i = e.direction, f = e.size, s = f === void 0 ? 250 : f, S = e.className, y = e.customIdSuffix, h = e.lockBackgroundScroll, t = h === void 0 ? !1 : h, g = e.overlayClassName, Z = g === void 0 ? "" : g, O = j(null);
53
+ B(function() {
55
54
  var R = function() {
56
- k.current = window.document.querySelector("body"), k.current && S && (k.current.style.overflow = o ? "hidden" : "");
55
+ O.current = window.document.querySelector("body"), O.current && t && (O.current.style.overflow = r ? "hidden" : "");
57
56
  };
58
57
  R();
59
- }, [o]);
60
- var s = B(function() {
61
- return p || (Math.random() + 1).toString(36).substring(7);
62
- }, [p]), z = {
63
- backgroundColor: O.toString(),
64
- opacity: f,
65
- zIndex: v
66
- }, P = $({
67
- zIndex: v + 1,
68
- transitionDuration: D + "ms"
69
- }, G(x, E), C);
70
- return b.createElement("div", {
71
- id: "EZDrawer" + s,
58
+ }, [r]);
59
+ var c = P(function() {
60
+ return y || (Math.random() + 1).toString(36).substring(7);
61
+ }, [y]), I = {
62
+ backgroundColor: D.toString(),
63
+ opacity: x,
64
+ zIndex: m
65
+ }, z = k({
66
+ zIndex: m + 1,
67
+ transitionDuration: E + "ms"
68
+ }, A(i, s), b);
69
+ return p.createElement("div", {
70
+ id: "EZDrawer" + c,
72
71
  className: "EZDrawer"
73
- }, b.createElement("input", {
72
+ }, p.createElement("input", {
74
73
  type: "checkbox",
75
- id: "EZDrawer__checkbox" + s,
74
+ id: "EZDrawer__checkbox" + c,
76
75
  className: "EZDrawer__checkbox",
77
76
  onChange: w,
78
- checked: o
79
- }), b.createElement("nav", {
77
+ checked: r
78
+ }), p.createElement("nav", {
80
79
  role: "navigation",
81
- id: "EZDrawer__container" + s,
82
- style: P,
83
- className: "EZDrawer__container " + i
84
- }, _), d && b.createElement("label", {
85
- htmlFor: "EZDrawer__checkbox" + s,
86
- id: "EZDrawer__overlay" + s,
87
- className: "EZDrawer__overlay " + N,
88
- style: z
80
+ id: "EZDrawer__container" + c,
81
+ style: z,
82
+ className: "EZDrawer__container " + S
83
+ }, _), C && p.createElement("label", {
84
+ htmlFor: "EZDrawer__checkbox" + c,
85
+ id: "EZDrawer__overlay" + c,
86
+ className: "EZDrawer__overlay " + Z,
87
+ style: I
89
88
  }));
90
89
  };
91
- const K = M((n, e) => {
90
+ const X = M((o, e) => {
92
91
  const {
93
- direction: o = "right",
94
- open: a = !1,
95
- duration: w = 300,
96
- overlayOpacity: _ = 0.4,
97
- enableOverlay: C = !0,
98
- zIndex: c = 100,
92
+ direction: r = "right",
93
+ duration: a = 300,
94
+ overlayOpacity: w = 0.4,
95
+ enableOverlay: _ = !0,
96
+ zIndex: b = 100,
99
97
  //----------------
100
- onClose: d = () => {
98
+ onClose: n = () => {
101
99
  },
102
- onOpen: u = () => {
100
+ onOpen: C = () => {
103
101
  },
104
102
  //----------------
105
- className: O = "",
106
- style: m = {},
107
- color: f = "neutral",
108
- size: y = "small",
109
- overlayColor: v,
110
- width: h = "unset",
111
- children: D,
112
- ...x
113
- } = n, l = A(), [E, i] = q(!1);
114
- F(e, () => ({
103
+ className: d = "",
104
+ style: D = {},
105
+ color: l = "neutral",
106
+ size: x = "small",
107
+ overlayColor: u,
108
+ width: m = "unset",
109
+ children: v,
110
+ ...E
111
+ } = o, i = V(), [f, s] = T(!1);
112
+ q(e, () => ({
115
113
  open() {
116
- p();
114
+ S();
117
115
  },
118
116
  close() {
119
- g();
117
+ y();
120
118
  }
121
119
  }));
122
- const p = (t) => {
123
- i(!0), u(t);
124
- }, g = (t) => {
125
- i(!1), d(t);
126
- }, S = () => {
127
- i(!1), d();
120
+ const S = (t) => {
121
+ s(!0), C(t);
122
+ }, y = (t) => {
123
+ s(!1), n(t);
124
+ }, h = () => {
125
+ s(!1), n();
128
126
  };
129
- return /* @__PURE__ */ I(H, { children: ({ css: t, cx: N }) => /* @__PURE__ */ I(
130
- J,
127
+ return /* @__PURE__ */ N(F, { children: ({ css: t, cx: g }) => /* @__PURE__ */ N(
128
+ G,
131
129
  {
132
- open: E,
133
- onClose: S,
134
- direction: o,
135
- zIndex: c,
136
- duration: w,
137
- overlayOpacity: _,
138
- enableOverlay: C,
139
- size: h,
140
- className: N(
141
- "drawer-lnc " + O,
130
+ open: f,
131
+ onClose: h,
132
+ direction: r,
133
+ zIndex: b,
134
+ duration: a,
135
+ overlayOpacity: w,
136
+ enableOverlay: _,
137
+ size: m,
138
+ className: g(
139
+ "drawer-lnc " + d,
142
140
  t`
143
141
  padding: 20px;
144
- background-color: ${Z(
145
- l,
142
+ background-color: ${$(
143
+ i,
146
144
  "Drawer",
147
- f,
145
+ l,
148
146
  "enabled",
149
147
  "background"
150
148
  )} !important;
151
- color: ${Z(
152
- l,
149
+ color: ${$(
150
+ i,
153
151
  "Drawer",
154
- f,
152
+ l,
155
153
  "enabled",
156
154
  "text"
157
155
  )};
158
- ${V(l, "Drawer", y, "enabled")};
156
+ ${H(i, "Drawer", x, "enabled")};
159
157
  `
160
158
  ),
161
- style: m,
162
- overlayColor: v,
163
- ...x,
164
- children: D
159
+ style: D,
160
+ overlayColor: u,
161
+ ...E,
162
+ children: v
165
163
  }
166
164
  ) });
167
165
  });
168
- K.propTypes = {
169
- direction: r.oneOf(["top", "right", "left", "bottom"]),
170
- open: r.bool,
171
- /**
172
- * Duration of opening the drawer in ms
173
- */
174
- duration: r.number,
175
- overlayOpacity: r.number,
176
- /**
177
- * Determines whether to show the overlay
178
- */
179
- enableOverlay: r.bool,
180
- /**
181
- * z-index of Drawer
182
- */
183
- zIndex: r.number,
184
- //---------------------------------------------------------------
185
- onClose: r.func,
186
- onOpen: r.func,
187
- //---------------------------------------------------------------
188
- className: r.string,
189
- style: r.object,
190
- overlayColor: r.string,
191
- width: r.oneOfType([r.number, r.string]),
192
- size: r.oneOf(["small", "medium", "large"]),
193
- color: r.oneOf([
194
- "primary",
195
- "secondary",
196
- "success",
197
- "warning",
198
- "danger",
199
- "information",
200
- "neutral",
201
- "gray"
202
- ])
203
- };
204
166
  export {
205
- K as default
167
+ X as default
206
168
  };
package/dist/Dropdown.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),t=require("./CustomStyles-C86XQqBE.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");require("./index-41nUb2kP.cjs");const O=require("./index-Cp66dWMi.cjs");function S(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(p,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}return p.default=o,Object.freeze(p)}const M=S(s);var h=s.forwardRef(function(o,p){var r=t.useStateManager(o);return M.createElement(t.Select,l._extends({ref:p},r))}),j=h;const a=s.forwardRef((o,p)=>{const{styles:r,debounceTime:n=0,name:C,isSearchable:u=!0,isClearable:c=!0,size:y="small",color:i="primary",className:T="",style:P={},...b}=o,m=l.useTheme();return s.useCallback(O.debounce((f,d)=>{onInputChange==null||onInputChange(f,d)},n)),g.jsx(j,{ref:p,styles:r||t.customStyles,size:y,color:i,theme:m,isSearchable:u,isClearable:c,className:T,style:P,...b})});a.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.any,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};exports.components=t.components;exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("react/jsx-runtime"),n=require("react"),o=require("./CustomStyles-C86XQqBE.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");require("./index-41nUb2kP.cjs");const j=require("./index-Cp66dWMi.cjs");function q(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const v=q(n);var M=n.forwardRef(function(e,r){var t=o.useStateManager(e);return v.createElement(o.Select,l._extends({ref:r},t))}),w=M;const O=n.forwardRef((e,r)=>{const{styles:t,debounceTime:s=0,isSearchable:i=!0,isClearable:m=!0,size:d="small",color:f="primary",className:b="",style:S={},...p}=e,g=l.useTheme(),y=n.useCallback(j.debounce((c,u)=>{a==null||a(c,u)},s)),a=(c,u)=>{y(c,u)};return _.jsx(w,{ref:r,styles:t||o.customStyles,size:d,color:f,theme:g,isSearchable:i,isClearable:m,className:b,style:S,...p})});exports.components=o.components;exports.default=O;