@lanaco/lnc-react-ui 4.0.199 → 4.0.201

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 (270) 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/BannerSectionCarousel.cjs +4 -4
  16. package/dist/BannerSectionCarousel.js +51 -542
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +1 -1
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +12 -14
  21. package/dist/BlogExploreSection.cjs +1 -1
  22. package/dist/BlogExploreSection.js +1 -1
  23. package/dist/BlogListSection.cjs +1 -1
  24. package/dist/BlogListSection.js +1 -1
  25. package/dist/BlogsSectionDetailed.cjs +1 -1
  26. package/dist/BlogsSectionDetailed.js +1 -1
  27. package/dist/BlogsSectionSimple.cjs +1 -1
  28. package/dist/BlogsSectionSimple.js +1 -1
  29. package/dist/BlogsSectionWithFilters.cjs +1 -1
  30. package/dist/BlogsSectionWithFilters.js +2 -2
  31. package/dist/Breadcrumbs.cjs +5 -5
  32. package/dist/Breadcrumbs.js +57 -87
  33. package/dist/Button.cjs +11 -11
  34. package/dist/Button.js +126 -173
  35. package/dist/ButtonGroup.cjs +8 -8
  36. package/dist/ButtonGroup.js +37 -49
  37. package/dist/CalorieCalculatorSection.cjs +8 -8
  38. package/dist/CalorieCalculatorSection.js +90 -97
  39. package/dist/CheckBoxInput.cjs +1 -1
  40. package/dist/CheckBoxInput.js +2 -5
  41. package/dist/Chip.cjs +14 -14
  42. package/dist/Chip.js +73 -111
  43. package/dist/ConfirmationForm.cjs +6 -6
  44. package/dist/ConfirmationForm.js +67 -109
  45. package/dist/ContactSection.cjs +1 -0
  46. package/dist/ContactSection.js +1 -0
  47. package/dist/Content.cjs +1 -1
  48. package/dist/Content.js +7 -15
  49. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  50. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  51. package/dist/DataView.cjs +1 -1
  52. package/dist/DataView.js +30 -50
  53. package/dist/DateInput.cjs +4 -4
  54. package/dist/DateInput.js +1347 -1383
  55. package/dist/DecimalInput.cjs +6 -6
  56. package/dist/DecimalInput.js +210 -263
  57. package/dist/DecimalInputV2.cjs +23 -23
  58. package/dist/DecimalInputV2.js +119 -176
  59. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  60. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +2 -2
  63. package/dist/DetailsView.cjs +9 -9
  64. package/dist/DetailsView.js +111 -162
  65. package/dist/DoubleRangeSlider.cjs +22 -22
  66. package/dist/DoubleRangeSlider.js +70 -95
  67. package/dist/DragAndDropFile.cjs +10 -10
  68. package/dist/DragAndDropFile.js +347 -402
  69. package/dist/DragDropFiles.cjs +4 -4
  70. package/dist/DragDropFiles.js +70 -124
  71. package/dist/Drawer.cjs +5 -5
  72. package/dist/Drawer.js +97 -135
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +44 -213
  75. package/dist/DropdownItem.cjs +14 -14
  76. package/dist/DropdownItem.js +106 -142
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +61 -242
  79. package/dist/DropdownMenu.cjs +4 -4
  80. package/dist/DropdownMenu.js +87 -149
  81. package/dist/EditableTable.cjs +10 -10
  82. package/dist/EditableTable.js +165 -331
  83. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  84. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  85. package/dist/FaqSection.cjs +3 -3
  86. package/dist/FaqSection.js +119 -153
  87. package/dist/FileInput.cjs +7 -7
  88. package/dist/FileInput.js +66 -94
  89. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  90. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  91. package/dist/FlexBox.cjs +6 -6
  92. package/dist/FlexBox.js +28 -63
  93. package/dist/FlexGrid.cjs +1 -1
  94. package/dist/FlexGrid.js +27 -67
  95. package/dist/FlexGridItem.cjs +6 -6
  96. package/dist/FlexGridItem.js +34 -62
  97. package/dist/Footer.cjs +1 -1
  98. package/dist/Footer.js +7 -15
  99. package/dist/FormField.cjs +7 -7
  100. package/dist/FormField.js +22 -47
  101. package/dist/FormView.cjs +6 -6
  102. package/dist/FormView.js +148 -195
  103. package/dist/GiftCardsSection.cjs +1 -1
  104. package/dist/GiftCardsSection.js +1 -1
  105. package/dist/Grid.cjs +2 -2
  106. package/dist/Grid.js +40 -65
  107. package/dist/GridItem.cjs +2 -2
  108. package/dist/GridItem.js +47 -80
  109. package/dist/Header.cjs +1 -1
  110. package/dist/Header.js +7 -15
  111. package/dist/HelpBannerSection.cjs +3 -3
  112. package/dist/HelpBannerSection.js +9 -15
  113. package/dist/Icon.cjs +4 -4
  114. package/dist/Icon.js +29 -55
  115. package/dist/IconButton.cjs +9 -9
  116. package/dist/IconButton.js +89 -127
  117. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  118. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  119. package/dist/Kanban.cjs +7 -7
  120. package/dist/Kanban.js +2033 -2098
  121. package/dist/KanbanActionsToolbar.cjs +4 -5
  122. package/dist/KanbanActionsToolbar.js +61 -96
  123. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  124. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  125. package/dist/KanbanCard.cjs +1 -1
  126. package/dist/KanbanCard.js +2 -3
  127. package/dist/KanbanFooter.cjs +3 -3
  128. package/dist/KanbanFooter.js +37 -55
  129. package/dist/KanbanHeader.cjs +4 -4
  130. package/dist/KanbanHeader.js +49 -81
  131. package/dist/KanbanView.cjs +2 -2
  132. package/dist/KanbanView.js +106 -173
  133. package/dist/Link.cjs +7 -7
  134. package/dist/Link.js +20 -37
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  138. package/dist/MasonryGeneralCardsSection.js +1 -1
  139. package/dist/MenuItem.cjs +13 -13
  140. package/dist/MenuItem.js +101 -139
  141. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  142. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  143. package/dist/Modal.cjs +18 -19
  144. package/dist/Modal.js +131 -166
  145. package/dist/MultiSelectDropdown.cjs +1 -1
  146. package/dist/MultiSelectDropdown.js +25 -196
  147. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  148. package/dist/MultiSelectDropdownLookup.js +27 -209
  149. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  150. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  151. package/dist/NestedDropdownItem.cjs +3 -3
  152. package/dist/NestedDropdownItem.js +45 -67
  153. package/dist/NestedMenuItem.cjs +5 -5
  154. package/dist/NestedMenuItem.js +51 -78
  155. package/dist/NotificationContainer.cjs +10 -10
  156. package/dist/NotificationContainer.js +46 -79
  157. package/dist/NotificationMessage.cjs +2 -2
  158. package/dist/NotificationMessage.js +47 -64
  159. package/dist/NumberInput.cjs +23 -23
  160. package/dist/NumberInput.js +89 -149
  161. package/dist/PageLayout.cjs +2 -2
  162. package/dist/PageLayout.js +20 -28
  163. package/dist/Pagination.cjs +3 -3
  164. package/dist/Pagination.js +102 -185
  165. package/dist/PartnerBrandsSection.cjs +62 -0
  166. package/dist/PartnerBrandsSection.js +154 -0
  167. package/dist/PartnerStatsSection.cjs +100 -0
  168. package/dist/PartnerStatsSection.js +124 -0
  169. package/dist/PasswordInput.cjs +23 -23
  170. package/dist/PasswordInput.js +108 -137
  171. package/dist/Popover.cjs +1 -1
  172. package/dist/Popover.js +7 -32
  173. package/dist/PopoverContent.cjs +5 -5
  174. package/dist/PopoverContent.js +22 -28
  175. package/dist/PopoverTrigger.cjs +1 -1
  176. package/dist/PopoverTrigger.js +7 -12
  177. package/dist/ProductsWithBannerSection.cjs +1 -1
  178. package/dist/ProductsWithBannerSection.js +1 -1
  179. package/dist/ProgressBar.cjs +8 -8
  180. package/dist/ProgressBar.js +32 -59
  181. package/dist/RadioGroup.cjs +3 -3
  182. package/dist/RadioGroup.js +41 -72
  183. package/dist/RadioInput.cjs +28 -28
  184. package/dist/RadioInput.js +78 -123
  185. package/dist/RangeSlider.cjs +19 -19
  186. package/dist/RangeSlider.js +92 -119
  187. package/dist/ReviewsSection.cjs +13 -13
  188. package/dist/ReviewsSection.js +81 -101
  189. package/dist/SalesCampaignsSection.cjs +38 -28
  190. package/dist/SalesCampaignsSection.js +297 -325
  191. package/dist/SearchBar.cjs +10 -10
  192. package/dist/SearchBar.js +168 -188
  193. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  194. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  195. package/dist/SearchSection.cjs +1 -1
  196. package/dist/SearchSection.js +2 -3
  197. package/dist/Separator.cjs +3 -3
  198. package/dist/Separator.js +14 -19
  199. package/dist/Sidebar.cjs +4 -5
  200. package/dist/Sidebar.js +33 -56
  201. package/dist/SimpleCategoriesSection.cjs +2 -2
  202. package/dist/SimpleCategoriesSection.js +2 -2
  203. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  204. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  205. package/dist/Spinner.cjs +18 -18
  206. package/dist/Spinner.js +37 -54
  207. package/dist/StatsSection.cjs +6 -6
  208. package/dist/StatsSection.js +15 -25
  209. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  210. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  211. package/dist/Surface.cjs +4 -4
  212. package/dist/Surface.js +19 -34
  213. package/dist/SwipeableDrawer.cjs +8 -8
  214. package/dist/SwipeableDrawer.js +84 -136
  215. package/dist/TabItem.cjs +11 -11
  216. package/dist/TabItem.js +83 -118
  217. package/dist/Table.cjs +65 -65
  218. package/dist/Table.js +786 -1167
  219. package/dist/TableView.cjs +2 -2
  220. package/dist/TableView.js +113 -197
  221. package/dist/Tabs.cjs +4 -4
  222. package/dist/Tabs.js +41 -60
  223. package/dist/TextAreaInput.cjs +14 -14
  224. package/dist/TextAreaInput.js +131 -181
  225. package/dist/TextInput.cjs +23 -23
  226. package/dist/TextInput.js +78 -126
  227. package/dist/ThemeProvider.cjs +5 -5
  228. package/dist/ThemeProvider.js +35 -39
  229. package/dist/TimeInput.cjs +7 -7
  230. package/dist/TimeInput.js +46 -72
  231. package/dist/Toggle.cjs +20 -20
  232. package/dist/Toggle.js +78 -109
  233. package/dist/ToggleSection.cjs +5 -5
  234. package/dist/ToggleSection.js +48 -55
  235. package/dist/TreeMenu.cjs +5 -5
  236. package/dist/TreeMenu.js +43 -67
  237. package/dist/TreeMenuSeparator.cjs +3 -3
  238. package/dist/TreeMenuSeparator.js +12 -20
  239. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  240. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  241. package/dist/UploadedFile.cjs +11 -11
  242. package/dist/UploadedFile.js +73 -99
  243. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  244. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  245. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  246. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  247. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  248. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  249. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  250. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  251. package/dist/index-BdKi2ogu.js +39 -0
  252. package/dist/index-BppfjY8h.js +497 -0
  253. package/dist/index-CRk3vcd4.cjs +95 -0
  254. package/dist/index-CX2A-q39.cjs +4 -0
  255. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  256. package/dist/index-DeS-oqJB.cjs +1 -0
  257. package/dist/index.cjs +1 -1
  258. package/dist/index.js +25 -21
  259. package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
  260. package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
  261. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  262. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  263. package/package.json +4 -2
  264. package/vite.config.js +8 -0
  265. package/dist/KanbanCard-68kSAXL6.js +0 -175
  266. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  267. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  268. package/dist/index-Be-_NM9Q.cjs +0 -4
  269. package/dist/index-C0LcDEqa.js +0 -47
  270. package/dist/index-CSNxZFTX.cjs +0 -95
package/dist/Dropdown.js CHANGED
@@ -1,32 +1,30 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { P as e } from "./index-CblbdqjE.js";
3
- import * as O from "react";
4
- import { forwardRef as t, useCallback as y } from "react";
5
- import { u as S, S as M, a as h } from "./CustomStyles-DtWxboEM.js";
6
- import { c as H } from "./CustomStyles-DtWxboEM.js";
7
- import { _ as C, u as x } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
1
+ import { jsx as y } from "react/jsx-runtime";
2
+ import * as g from "react";
3
+ import { forwardRef as m, useCallback as x } from "react";
4
+ import { u as h, S as v, a as C } from "./CustomStyles-DtWxboEM.js";
5
+ import { c as A } from "./CustomStyles-DtWxboEM.js";
6
+ import { _ as M, u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
7
  import "./index-B1vKwsDE.js";
9
- import { d as I } from "./index-Dt62UGku.js";
10
- var T = /* @__PURE__ */ t(function(n, a) {
11
- var o = S(n);
12
- return /* @__PURE__ */ O.createElement(M, C({
13
- ref: a
14
- }, o));
15
- }), P = T;
16
- const V = t((n, a) => {
8
+ import { d as R } from "./index-Dt62UGku.js";
9
+ var T = /* @__PURE__ */ m(function(t, r) {
10
+ var e = h(t);
11
+ return /* @__PURE__ */ g.createElement(v, M({
12
+ ref: r
13
+ }, e));
14
+ }), _ = T;
15
+ const P = m((t, r) => {
17
16
  const {
18
17
  // options,
19
- styles: o,
20
- debounceTime: l = 0,
21
- name: j,
18
+ styles: e,
19
+ debounceTime: c = 0,
22
20
  // hideSelectedOptions,
23
21
  // id,
24
22
  // inputId,
25
23
  // value,
26
24
  // readOnly,
27
25
  // tabIndex,
28
- isSearchable: s = !0,
29
- isClearable: r = !0,
26
+ isSearchable: l = !0,
27
+ isClearable: n = !0,
30
28
  // isLoading,
31
29
  // isRtl,
32
30
  // isDisabled,
@@ -64,203 +62,36 @@ const V = t((n, a) => {
64
62
  // onMenuClose,
65
63
  // onBlur,
66
64
  // onFocus,
67
- size: u = "small",
68
- color: c = "primary",
69
- className: i = "",
70
- style: m = {},
65
+ size: i = "small",
66
+ color: u = "primary",
67
+ className: p = "",
68
+ style: f = {},
71
69
  // children,
72
- ...p
73
- } = n, b = x();
74
- return y(
75
- I((f, d) => {
76
- onInputChange == null || onInputChange(f, d);
77
- }, l)
78
- ), /* @__PURE__ */ g(
79
- P,
70
+ ...S
71
+ } = t, d = w(), b = x(
72
+ R((s, o) => {
73
+ a == null || a(s, o);
74
+ }, c)
75
+ ), a = (s, o) => {
76
+ b(s, o);
77
+ };
78
+ return /* @__PURE__ */ y(
79
+ _,
80
80
  {
81
- ref: a,
82
- styles: o || h,
83
- size: u,
84
- color: c,
85
- theme: b,
86
- isSearchable: s,
87
- isClearable: r,
88
- className: i,
89
- style: m,
90
- ...p
81
+ ref: r,
82
+ styles: e || C,
83
+ size: i,
84
+ color: u,
85
+ theme: d,
86
+ isSearchable: l,
87
+ isClearable: n,
88
+ className: p,
89
+ style: f,
90
+ ...S
91
91
  }
92
92
  );
93
93
  });
94
- V.propTypes = {
95
- options: e.array,
96
- styles: e.object,
97
- debounceTime: e.number,
98
- name: e.string,
99
- value: e.any,
100
- /**
101
- * Sets the tabIndex attribute on the input
102
- */
103
- tabIndex: e.number,
104
- /**
105
- * Whether to enable search functionality
106
- */
107
- isSearchable: e.bool,
108
- isClearable: e.bool,
109
- /**
110
- * Is the select in a state of loading (async)
111
- */
112
- isLoading: e.bool,
113
- /**
114
- * Is the select direction right-to-left
115
- */
116
- isRtl: e.bool,
117
- isDisabled: e.bool,
118
- readOnly: e.bool,
119
- /**
120
- * Close the select menu when the user selects an option
121
- */
122
- closeMenuOnSelect: e.bool,
123
- /**
124
- * If true, close the select menu when the user scrolls the document/body.
125
- * If a function, takes a standard javascript ScrollEvent you return a boolean:
126
- * true => The menu closes
127
- * false => The menu stays open
128
- * This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.
129
- */
130
- closeMenuOnScroll: e.oneOfType([e.bool, e.func]),
131
- /**
132
- * Clear all values when the user presses escape AND the menu is closed
133
- */
134
- escapeClearsValue: e.bool,
135
- /**
136
- * Custom method to filter whether an option should be displayed in the menu. Type: `null` or `() => boolean`
137
- */
138
- filterOption: e.func,
139
- /**
140
- * Formats group labels in the menu as React components
141
- */
142
- formatGroupLabel: e.func,
143
- /**
144
- * Formats option labels in the menu and control as React components
145
- */
146
- formatOptionLabel: e.func,
147
- /**
148
- * Resolves option data to a string to be displayed as the label by components
149
- * Note: Failure to resolve to a string type can interfere with filtering and screen reader support.
150
- */
151
- getOptionLabel: e.func,
152
- /**
153
- * Resolves option data to a string to compare options and specify value attributes
154
- */
155
- getOptionValue: e.func,
156
- /**
157
- * Hide the selected option from the menu
158
- */
159
- hideSelectedOptions: e.bool,
160
- /**
161
- * The id to set on the SelectContainer component
162
- */
163
- id: e.any,
164
- /**
165
- * The id of the search input
166
- */
167
- inputid: e.any,
168
- /**
169
- * Override the built-in logic to detect whether an option is disabled. `(...) => boolean`
170
- */
171
- isOptionDisabled: e.func,
172
- /**
173
- * Override the built-in logic to detect whether an option is selected. `(...) => boolean`
174
- */
175
- isOptionSelected: e.func,
176
- /**
177
- * Async: Text to display when loading options `(...) => ...`
178
- */
179
- loadingMessage: e.func,
180
- /**
181
- * Minimum height of the menu before flipping
182
- */
183
- minMenuHeight: e.number,
184
- /**
185
- * Maximum height of the menu before flipping
186
- */
187
- maxMenuHeight: e.number,
188
- /**
189
- * Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
190
- */
191
- menuPlacement: e.oneOf(["bottom", "auto", "top"]),
192
- /**
193
- *The CSS position value of the menu, when "fixed" extra layout management is required.
194
- */
195
- menuPosition: e.oneOf(["absolute", "fixed"]),
196
- /**
197
- * Whether to block scroll events when the menu is open
198
- */
199
- menuShouldBlockScroll: e.bool,
200
- /**
201
- * Whether the menu should be scrolled into view when it opens
202
- */
203
- menuShouldScrollIntoView: e.bool,
204
- /**
205
- * Allows control of whether the menu is opened when the Select is focused
206
- */
207
- openMenuOnFocus: e.bool,
208
- /**
209
- * Allows control of whether the menu is opened when the Select is clicked
210
- */
211
- openMenuOnClick: e.bool,
212
- //----
213
- autoFocus: e.bool,
214
- placeholder: e.any,
215
- noOptionsMessage: e.string,
216
- menuIsOpen: e.bool,
217
- /**
218
- * This complex object includes all the compositional components that are used in react-select. If you wish to overwrite a component, pass in an object with the appropriate namespace.
219
- * If you only wish to restyle a component, we recommend using the styles prop instead.
220
- */
221
- components: e.object,
222
- /**
223
- * initial value of the control
224
- */
225
- defaultValue: e.any,
226
- /**
227
- * initial value of the search input
228
- */
229
- defaultInputValue: e.string,
230
- /**
231
- * initial open value of the menu
232
- */
233
- defaultMenuIsOpen: e.bool,
234
- /**
235
- * Delimiter used to join multiple values into a single HTML Input value
236
- */
237
- delimiter: e.string,
238
- //---------------------------------------------------------------
239
- onChange: e.func,
240
- /**
241
- * control the value of the search input (changing this will update the available options)
242
- */
243
- onInputChange: e.func,
244
- onMenuOpen: e.func,
245
- onMenuClose: e.func,
246
- onFocus: e.func,
247
- onBlur: e.func,
248
- //---------------------------------------------------------------
249
- className: e.string,
250
- style: e.object,
251
- color: e.oneOf([
252
- "primary",
253
- "secondary",
254
- "success",
255
- "warning",
256
- "danger",
257
- "information",
258
- "neutral",
259
- "gray"
260
- ]),
261
- size: e.oneOf(["small", "medium", "large"])
262
- };
263
94
  export {
264
- H as components,
265
- V as default
95
+ A as components,
96
+ P as default
266
97
  };
@@ -1,6 +1,6 @@
1
- "use strict";const c=require("react/jsx-runtime"),d=require("react"),s=require("./index-BpbMKBf_.cjs"),G=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./Icon.cjs"),l=require("./utils-RnrgDDZP.cjs"),H=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),J=G.styled.div`
1
+ "use strict";const a=require("react/jsx-runtime"),d=require("react"),H=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./Icon.cjs"),t=require("./utils-RnrgDDZP.cjs"),J=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Q=H.styled.div`
2
2
  box-sizing: border-box;
3
- cursor: ${o=>o.disabled==!1?"pointer":"context-menu"};
3
+ cursor: ${l=>l.disabled==!1?"pointer":"context-menu"};
4
4
  width: 100%;
5
5
  border-radius: 6px;
6
6
  display: flex;
@@ -8,29 +8,29 @@
8
8
  min-height: 2.25rem;
9
9
  gap: 0.563rem;
10
10
  padding: 0.563rem;
11
- color: ${o=>l.getColorRgbaValue(o.theme,"MenuItem",o.color,o.isActive===!0?"active":"enabled","text")};
11
+ color: ${l=>t.getColorRgbaValue(l.theme,"MenuItem",l.color,l.isActive===!0?"active":"enabled","text")};
12
12
  &:hover {
13
- ${o=>o.disabled===!1&&`background-color: ${l.getColorRgbaValue(o.theme,"MenuItem",o.color,"hover","background","backgroundOpacity")};`}
13
+ ${l=>l.disabled===!1&&`background-color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"hover","background","backgroundOpacity")};`}
14
14
 
15
- ${o=>o.disabled===!1&&`color: ${l.getColorRgbaValue(o.theme,"MenuItem",o.color,"hover","text")};`}
15
+ ${l=>l.disabled===!1&&`color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"hover","text")};`}
16
16
  & .drop-down-icon-lnc {
17
- ${o=>o.disabled===!1&&`color: ${l.getColorRgbaValue(o.theme,"MenuItem",o.color,"hover","icon")};`}
17
+ ${l=>l.disabled===!1&&`color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"hover","icon")};`}
18
18
  }
19
19
  }
20
- ${o=>l.getComponentTypographyCss(o.theme,"MenuItem",o.size,"enabled")};
20
+ ${l=>t.getComponentTypographyCss(l.theme,"MenuItem",l.size,"enabled")};
21
21
  & .drop-down-icon-lnc {
22
- color: ${o=>o.isActive&&o.disabled==!1?l.getColorRgbaValue(o.theme,"MenuItem",o.color,"focus","icon"):l.getColorRgbaValue(o.theme,"MenuItem",o.color,"enabled","icon")};
23
- ${o=>o.disabled===!0&&l.getDisabledStateCss(o.theme)};
22
+ color: ${l=>l.isActive&&l.disabled==!1?t.getColorRgbaValue(l.theme,"MenuItem",l.color,"focus","icon"):t.getColorRgbaValue(l.theme,"MenuItem",l.color,"enabled","icon")};
23
+ ${l=>l.disabled===!0&&t.getDisabledStateCss(l.theme)};
24
24
  background: transparent;
25
25
  }
26
26
  & .sub-menu-icon-lnc {
27
27
  margin-left: auto;
28
- transform: ${o=>o.showNested?"rotate(180deg)":"rotate(0)"};
28
+ transform: ${l=>l.showNested?"rotate(180deg)":"rotate(0)"};
29
29
  transition: transform 0.25s ease;
30
30
  }
31
- ${o=>o.isActive==!0&&o.disabled==!1&&`background-color: ${l.getColorRgbaValue(o.theme,"MenuItem",o.color,"focus","background","backgroundOpacity")};
32
- color: ${l.getColorRgbaValue(o.theme,"MenuItem",o.color,"focus","text")};
31
+ ${l=>l.isActive==!0&&l.disabled==!1&&`background-color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"focus","background","backgroundOpacity")};
32
+ color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"focus","text")};
33
33
  `}
34
34
  outline: none;
35
- ${o=>o.disabled===!0&&l.getDisabledStateCss(o.theme)};
36
- `,P=d.forwardRef((o,a)=>{const{__TYPE__:Q="MENU_ITEM",active:f=!1,icon:T,disabled:m=!1,isNested:u=!1,showNested:v,value:E,onFocus:M=()=>{},onBlur:N=()=>{},onClick:x=()=>{},onKeyDown:$=()=>{},onMouseEnter:W=()=>{},onMouseLeave:X=()=>{},toggleNested:r=()=>{},onItemSelected:C=()=>{},color:k,className:_="",style:R={},size:A="small",iconProps:S,children:y,...q}=o,D={theme:H.useTheme(),color:k,style:R,size:A},g=d.useRef(),[O,b]=d.useState(f);d.useEffect(()=>{b(f)},[f]);const V=e=>{m==!1&&(u&&r&&r(),C(e,E,y),x(e))},j=e=>{b(!0),M(e)},F=e=>{b(!1),N(e)},z=e=>{e.preventDefault(),e.key=="ArrowDown"?h(a?a.current:g.current):e.key=="ArrowUp"?p(a?a.current:g.current):e.key=="Enter"&&m==!1&&(u&&r&&r(),C(e,E,y)),$(e)},h=e=>{if(e!=null&&e.nextSibling){let n=B(e);if(n!=null&&n.node&&(n==null?void 0:n.type)=="item")n.node.focus();else if(n!=null&&n.node&&(n==null?void 0:n.type)=="nested"){let i=L(n.node);i&&i.focus()}else e!=null&&e.parentElement&&t(e.parentElement,"nested-item-lnc")&&h(e.parentElement)}else e!=null&&e.parentElement&&t(e.parentElement,"nested-item-lnc")&&h(e.parentElement)},p=e=>{if(e!=null&&e.previousSibling){let n=K(e);if(n!=null&&n.node&&(n==null?void 0:n.type)=="item")n.node.focus();else if(n!=null&&n.node&&(n==null?void 0:n.type)=="nested"){let i=U(n.node);i&&i.focus()}else e!=null&&e.parentElement&&t(e.parentElement,"nested-item-lnc")&&p(e.parentElement)}else e!=null&&e.parentElement&&t(e.parentElement,"nested-item-lnc")&&p(e.parentElement)},B=e=>{for(;e=e.nextSibling;){if(t(e,"menu-item-lnc"))return{node:e,type:"item"};if(t(e,"nested-item-lnc"))return{node:e,type:"nested"}}return null},K=e=>{for(;e=e.previousSibling;){if(t(e,"menu-item-lnc"))return{node:e,type:"item"};if(t(e,"nested-item-lnc"))return{node:e,type:"nested"}}return null},L=e=>{var n;return(n=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:n[0]},U=e=>{var n;return(n=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:n.pop()},t=(e,n)=>{var i=" "+e.className+" ",Y=" "+n+" ";return i.indexOf(Y)!=-1};return c.jsx(c.Fragment,{children:c.jsxs(J,{ref:a||g,className:"menu-item-lnc "+_,disabled:m,tabIndex:0,onKeyDown:z,onFocus:j,onBlur:F,onClick:V,isActive:O,showNested:v,...D,...q,children:[T&&c.jsx(w,{icon:T,className:"drop-down-icon-lnc",...S}),c.jsx("div",{className:"menu-item-text-lnc",children:y}),u&&c.jsx(w,{icon:"angle-down",className:"sub-menu-icon-lnc"})]})})});P.propTypes={active:s.PropTypes.bool,icon:s.PropTypes.string,disabled:s.PropTypes.bool,isNested:s.PropTypes.bool,value:s.PropTypes.any,onBlur:s.PropTypes.func,onFocus:s.PropTypes.func,onClick:s.PropTypes.func,onKeyDown:s.PropTypes.func,onMouseEnter:s.PropTypes.func,onMouseLeave:s.PropTypes.func,className:s.PropTypes.string,style:s.PropTypes.object,color:s.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),iconProps:s.PropTypes.any,size:s.PropTypes.oneOf(["small","medium","large"]),__TYPE__:s.PropTypes.string};P.displayName="MENU_ITEM";module.exports=P;
35
+ ${l=>l.disabled===!0&&t.getDisabledStateCss(l.theme)};
36
+ `,x=d.forwardRef((l,i)=>{const{active:m=!1,icon:C,disabled:f=!1,isNested:r=!1,showNested:v,value:w,onFocus:N=()=>{},onBlur:k=()=>{},onClick:R=()=>{},onKeyDown:A=()=>{},toggleNested:c=()=>{},onItemSelected:E=()=>{},color:M,className:S="",style:q={},size:D="small",iconProps:V,children:u,...O}=l,j={theme:J.useTheme(),color:M,style:q,size:D},b=d.useRef(),[F,g]=d.useState(m);d.useEffect(()=>{g(m)},[m]);const _=e=>{f==!1&&(r&&c&&c(),E(e,w,u),R(e))},P=e=>{g(!0),N(e)},z=e=>{g(!1),k(e)},B=e=>{e.preventDefault(),e.key=="ArrowDown"?h(i?i.current:b.current):e.key=="ArrowUp"?y(i?i.current:b.current):e.key=="Enter"&&f==!1&&(r&&c&&c(),E(e,w,u)),A(e)},h=e=>{if(e!=null&&e.nextSibling){let n=K(e);if(n!=null&&n.node&&(n==null?void 0:n.type)=="item")n.node.focus();else if(n!=null&&n.node&&(n==null?void 0:n.type)=="nested"){let s=U(n.node);s&&s.focus()}else e!=null&&e.parentElement&&o(e.parentElement,"nested-item-lnc")&&h(e.parentElement)}else e!=null&&e.parentElement&&o(e.parentElement,"nested-item-lnc")&&h(e.parentElement)},y=e=>{if(e!=null&&e.previousSibling){let n=T(e);if(n!=null&&n.node&&(n==null?void 0:n.type)=="item")n.node.focus();else if(n!=null&&n.node&&(n==null?void 0:n.type)=="nested"){let s=L(n.node);s&&s.focus()}else e!=null&&e.parentElement&&o(e.parentElement,"nested-item-lnc")&&y(e.parentElement)}else e!=null&&e.parentElement&&o(e.parentElement,"nested-item-lnc")&&y(e.parentElement)},K=e=>{for(;e=e.nextSibling;){if(o(e,"menu-item-lnc"))return{node:e,type:"item"};if(o(e,"nested-item-lnc"))return{node:e,type:"nested"}}return null},T=e=>{for(;e=e.previousSibling;){if(o(e,"menu-item-lnc"))return{node:e,type:"item"};if(o(e,"nested-item-lnc"))return{node:e,type:"nested"}}return null},U=e=>{var n;return(n=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:n[0]},L=e=>{var n;return(n=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:n.pop()},o=(e,n)=>{var s=" "+e.className+" ",G=" "+n+" ";return s.indexOf(G)!=-1};return a.jsx(a.Fragment,{children:a.jsxs(Q,{ref:i||b,className:"menu-item-lnc "+S,disabled:f,tabIndex:0,onKeyDown:B,onFocus:P,onBlur:z,onClick:_,isActive:F,showNested:v,...j,...O,children:[C&&a.jsx($,{icon:C,className:"drop-down-icon-lnc",...V}),a.jsx("div",{className:"menu-item-text-lnc",children:u}),r&&a.jsx($,{icon:"angle-down",className:"sub-menu-icon-lnc"})]})})});x.displayName="MENU_ITEM";module.exports=x;