@lanaco/lnc-react-ui 4.0.199 → 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 +5 -5
  216. package/dist/ToggleSection.js +48 -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
package/dist/Button.js CHANGED
@@ -1,12 +1,11 @@
1
- import { jsx as c, jsxs as W, Fragment as E } from "react/jsx-runtime";
2
- import { forwardRef as q } from "react";
3
- import { P as n } from "./index-CblbdqjE.js";
4
- import { i as T } from "./index-6RFrSPs_.js";
5
- import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { c as O, b as t, d as r, h as z, e as I, a as A } from "./utils-DtEfC-TX.js";
7
- import w from "./Icon.js";
8
- import { u as G } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
- const x = {
1
+ import { jsx as a, jsxs as W, Fragment as E } from "react/jsx-runtime";
2
+ import { forwardRef as K } from "react";
3
+ import { i as x } from "./index-6RFrSPs_.js";
4
+ import { s as r } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { c as T, b as t, d, h as z, e as v, a as q } from "./utils-DtEfC-TX.js";
6
+ import j from "./Icon.js";
7
+ import { u as A } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ const y = {
10
9
  small: {
11
10
  regular: "1rem",
12
11
  icon: "0.75rem",
@@ -22,7 +21,7 @@ const x = {
22
21
  icon: "1rem",
23
22
  justIcon: "0.5rem"
24
23
  }
25
- }, v = (e) => `
24
+ }, O = (e) => `
26
25
  outline: none;
27
26
  display: inline-flex;
28
27
  flex-direction: row;
@@ -33,21 +32,21 @@ const x = {
33
32
  cursor: pointer;
34
33
  color: ${!e.disabled && "white"};
35
34
 
36
- border-radius: ${A(
35
+ border-radius: ${q(
37
36
  e.theme,
38
37
  e.borderRadius
39
38
  )};
40
39
 
41
- padding-left: ${e.hasLeadingIcon ? x[e.size].icon : x[e.size].regular};
42
- padding-right: ${e.hasTrailingIcon ? x[e.size].icon : x[e.size].regular};
43
- `, H = u.span`
40
+ padding-left: ${e.hasLeadingIcon ? y[e.size].icon : y[e.size].regular};
41
+ padding-right: ${e.hasTrailingIcon ? y[e.size].icon : y[e.size].regular};
42
+ `, G = r.span`
44
43
  padding-right: ${(e) => e.size === "small" ? "0.25rem" : "0.5rem"};
45
- `, J = u.span`
44
+ `, H = r.span`
46
45
  padding-left: ${(e) => e.size === "small" ? "0.25rem" : "0.5rem"};
47
- `, R = u.button`
48
- ${(e) => v(e)}
46
+ `, R = r.button`
47
+ ${(e) => O(e)}
49
48
 
50
- ${(e) => O(
49
+ ${(e) => T(
51
50
  e.theme,
52
51
  "ButtonFilled",
53
52
  e.size,
@@ -69,8 +68,8 @@ const x = {
69
68
  "text"
70
69
  )};
71
70
 
72
- min-height: ${(e) => r(e.theme, e.size)};
73
- max-height: ${(e) => r(e.theme, e.size)};
71
+ min-height: ${(e) => d(e.theme, e.size)};
72
+ max-height: ${(e) => d(e.theme, e.size)};
74
73
 
75
74
  &:disabled {
76
75
  ${(e) => e.disabled === !0 && z(e.theme)};
@@ -126,7 +125,7 @@ const x = {
126
125
  "focus",
127
126
  "text"
128
127
  )};
129
- ${(e) => !e.disabled && I(e.theme)};
128
+ ${(e) => !e.disabled && v(e.theme)};
130
129
  }
131
130
 
132
131
  &:active {
@@ -146,12 +145,12 @@ const x = {
146
145
  "text"
147
146
  )};
148
147
  }
149
- `, M = u.button`
150
- ${(e) => v(e)}
148
+ `, J = r.button`
149
+ ${(e) => O(e)}
151
150
 
152
- min-height: ${(e) => r(e.theme, e.size)};
153
- max-height: ${(e) => r(e.theme, e.size)};
154
- ${(e) => O(
151
+ min-height: ${(e) => d(e.theme, e.size)};
152
+ max-height: ${(e) => d(e.theme, e.size)};
153
+ ${(e) => T(
155
154
  e.theme,
156
155
  "ButtonTinted",
157
156
  e.size,
@@ -212,7 +211,7 @@ const x = {
212
211
  "focus",
213
212
  "text"
214
213
  )};
215
- ${(e) => e.disabled === !1 && I(e.theme)};
214
+ ${(e) => e.disabled === !1 && v(e.theme)};
216
215
  }
217
216
 
218
217
  &:active {
@@ -254,10 +253,10 @@ const x = {
254
253
  "backgroundOpacity"
255
254
  )};
256
255
  }
257
- `, L = u.button`
258
- ${(e) => v(e)}
256
+ `, w = r.button`
257
+ ${(e) => O(e)}
259
258
 
260
- ${(e) => O(
259
+ ${(e) => T(
261
260
  e.theme,
262
261
  "ButtonTinted",
263
262
  e.size,
@@ -281,8 +280,8 @@ const x = {
281
280
  "backgroundOpacity"
282
281
  )};
283
282
 
284
- min-height: ${(e) => r(e.theme, e.size)};
285
- max-height: ${(e) => r(e.theme, e.size)};
283
+ min-height: ${(e) => d(e.theme, e.size)};
284
+ max-height: ${(e) => d(e.theme, e.size)};
286
285
 
287
286
  &:hover {
288
287
  background-color: ${(e) => t(
@@ -320,7 +319,7 @@ const x = {
320
319
  "text"
321
320
  )};
322
321
 
323
- ${(e) => !e.disabled && I(e.theme)};
322
+ ${(e) => !e.disabled && v(e.theme)};
324
323
  }
325
324
 
326
325
  &:active {
@@ -353,7 +352,7 @@ const x = {
353
352
  "backgroundOpacity"
354
353
  )};
355
354
  }
356
- `, Q = u(L)`
355
+ `, M = r(w)`
357
356
  border: 1px solid
358
357
  ${(e) => t(
359
358
  e.theme,
@@ -363,197 +362,151 @@ const x = {
363
362
  "border",
364
363
  "borderOpacity"
365
364
  )};
366
- `, X = q((e, s) => {
365
+ `, te = K((e, u) => {
367
366
  const {
368
- text: F = "",
369
- iconStyle: C = "solid",
367
+ text: I = "",
368
+ iconStyle: F = "solid",
370
369
  leadingIcon: N = null,
371
- trailingIcon: j = null,
372
- borderRadius: S = "regular",
373
- btnType: a = "filled",
374
- disabled: U = !1,
375
- tabIndex: b = 0,
370
+ trailingIcon: C = null,
371
+ borderRadius: U = "regular",
372
+ btnType: n = "filled",
373
+ disabled: L = !1,
374
+ tabIndex: s = 0,
376
375
  //----------------
377
- onFocus: m,
378
- onBlur: g,
379
- onClick: h,
380
- onKeyDown: $,
381
- onLeadingIconClick: Y,
382
- onTrailingIconClick: Z,
376
+ onFocus: b,
377
+ onBlur: m,
378
+ onClick: g,
379
+ onKeyDown: h,
383
380
  //----------------
384
- size: y = "small",
385
- color: l = "primary",
386
- className: f = "",
387
- style: D = {},
381
+ size: f = "small",
382
+ color: c = "primary",
383
+ className: $ = "",
384
+ style: S = {},
388
385
  children: V,
389
386
  ...B
390
387
  } = e, o = {
391
- theme: G(),
392
- color: l,
393
- size: y,
394
- style: D,
395
- disabled: U,
396
- borderRadius: S,
397
- btnType: a,
388
+ theme: A(),
389
+ color: c,
390
+ size: f,
391
+ style: S,
392
+ disabled: L,
393
+ borderRadius: U,
394
+ btnType: n,
398
395
  className: "lnc-ui-button "
399
- }, i = !T(N), d = !T(j), K = !T(F), k = () => /* @__PURE__ */ W(E, { children: [
400
- i && /* @__PURE__ */ c(H, { size: y, children: /* @__PURE__ */ c(
401
- w,
396
+ }, l = !x(N), i = !x(C), D = !x(I), k = () => /* @__PURE__ */ W(E, { children: [
397
+ l && /* @__PURE__ */ a(G, { size: f, children: /* @__PURE__ */ a(
398
+ j,
402
399
  {
403
400
  icon: N,
404
401
  sizeInUnits: "1.125rem",
405
- iconStyle: C
402
+ iconStyle: F
406
403
  }
407
404
  ) }),
408
- F,
405
+ I,
409
406
  V,
410
- d && /* @__PURE__ */ c(J, { size: y, children: /* @__PURE__ */ c(
411
- w,
407
+ i && /* @__PURE__ */ a(H, { size: f, children: /* @__PURE__ */ a(
408
+ j,
412
409
  {
413
- icon: j,
410
+ icon: C,
414
411
  sizeInUnits: "1.125rem",
415
- iconStyle: C
412
+ iconStyle: F
416
413
  }
417
414
  ) })
418
415
  ] });
419
- return a === "filled" ? /* @__PURE__ */ c(
416
+ return n === "filled" ? /* @__PURE__ */ a(
420
417
  R,
421
418
  {
422
- ref: s,
419
+ ref: u,
423
420
  "data-type": "filled",
424
421
  ...o,
425
- className: `${o == null ? void 0 : o.className} ${l}-${a}-lnc-btn ${f}`,
426
- hasLeadingIcon: i,
427
- hasTrailingIcon: d,
428
- onFocus: m,
429
- onBlur: g,
430
- onClick: h,
431
- onKeyDown: $,
432
- tabIndex: b,
433
- btnType: a,
422
+ className: `${o == null ? void 0 : o.className} ${c}-${n}-lnc-btn ${$}`,
423
+ hasLeadingIcon: l,
424
+ hasTrailingIcon: i,
425
+ onFocus: b,
426
+ onBlur: m,
427
+ onClick: g,
428
+ onKeyDown: h,
429
+ tabIndex: s,
430
+ btnType: n,
434
431
  ...B,
435
432
  children: k()
436
433
  }
437
- ) : a === "tinted" ? /* @__PURE__ */ c(
438
- M,
434
+ ) : n === "tinted" ? /* @__PURE__ */ a(
435
+ J,
439
436
  {
440
- ref: s,
437
+ ref: u,
441
438
  "data-type": "tinted",
442
439
  ...o,
443
- className: `${o == null ? void 0 : o.className} ${l}-${a}-lnc-btn ${f}`,
444
- hasLeadingIcon: i,
445
- hasTrailingIcon: d,
446
- onFocus: m,
447
- onBlur: g,
448
- onClick: h,
449
- onKeyDown: $,
450
- tabIndex: b,
451
- btnType: a,
440
+ className: `${o == null ? void 0 : o.className} ${c}-${n}-lnc-btn ${$}`,
441
+ hasLeadingIcon: l,
442
+ hasTrailingIcon: i,
443
+ onFocus: b,
444
+ onBlur: m,
445
+ onClick: g,
446
+ onKeyDown: h,
447
+ tabIndex: s,
448
+ btnType: n,
452
449
  ...B,
453
450
  children: k()
454
451
  }
455
- ) : a === "outline" ? /* @__PURE__ */ c(
456
- Q,
452
+ ) : n === "outline" ? /* @__PURE__ */ a(
453
+ M,
457
454
  {
458
- ref: s,
455
+ ref: u,
459
456
  "data-type": "outline",
460
457
  ...o,
461
- className: `${o == null ? void 0 : o.className} ${l}-${a}-lnc-btn ${f}`,
462
- hasLeadingIcon: i,
463
- hasTrailingIcon: d,
464
- onFocus: m,
465
- onBlur: g,
466
- onClick: h,
467
- onKeyDown: $,
468
- tabIndex: b,
469
- btnType: a,
458
+ className: `${o == null ? void 0 : o.className} ${c}-${n}-lnc-btn ${$}`,
459
+ hasLeadingIcon: l,
460
+ hasTrailingIcon: i,
461
+ onFocus: b,
462
+ onBlur: m,
463
+ onClick: g,
464
+ onKeyDown: h,
465
+ tabIndex: s,
466
+ btnType: n,
470
467
  ...B,
471
468
  children: k()
472
469
  }
473
- ) : a === "basic" ? /* @__PURE__ */ c(
474
- L,
470
+ ) : n === "basic" ? /* @__PURE__ */ a(
471
+ w,
475
472
  {
476
- ref: s,
473
+ ref: u,
477
474
  "data-type": "basic",
478
475
  ...o,
479
- className: `${o == null ? void 0 : o.className} ${l}-${a}-lnc-btn ${f}`,
480
- hasLeadingIcon: i,
481
- hasTrailingIcon: d,
482
- onFocus: m,
483
- onBlur: g,
484
- onClick: h,
485
- onKeyDown: $,
486
- tabIndex: b,
487
- btnType: a,
476
+ className: `${o == null ? void 0 : o.className} ${c}-${n}-lnc-btn ${$}`,
477
+ hasLeadingIcon: l,
478
+ hasTrailingIcon: i,
479
+ onFocus: b,
480
+ onBlur: m,
481
+ onClick: g,
482
+ onKeyDown: h,
483
+ tabIndex: s,
484
+ btnType: n,
488
485
  ...B,
489
486
  children: k()
490
487
  }
491
- ) : /* @__PURE__ */ c(
488
+ ) : /* @__PURE__ */ a(
492
489
  R,
493
490
  {
494
- ref: s,
491
+ ref: u,
495
492
  "data-type": "filled",
496
- size: y,
493
+ size: f,
497
494
  ...o,
498
- className: `${o == null ? void 0 : o.className} ${l}-${a}-lnc-btn ${f}`,
499
- hasLeadingIcon: i,
500
- hasTrailingIcon: d,
501
- onFocus: m,
502
- onBlur: g,
503
- onClick: h,
504
- onKeyDown: $,
505
- hasText: K,
506
- tabIndex: b,
507
- btnType: a,
495
+ className: `${o == null ? void 0 : o.className} ${c}-${n}-lnc-btn ${$}`,
496
+ hasLeadingIcon: l,
497
+ hasTrailingIcon: i,
498
+ onFocus: b,
499
+ onBlur: m,
500
+ onClick: g,
501
+ onKeyDown: h,
502
+ hasText: D,
503
+ tabIndex: s,
504
+ btnType: n,
508
505
  ...B,
509
506
  children: k()
510
507
  }
511
508
  );
512
509
  });
513
- X.propTypes = {
514
- text: n.string,
515
- iconStyle: n.oneOf(["regular", "solid"]),
516
- /**
517
- * Icon before the text
518
- */
519
- leadingIcon: n.string,
520
- /**
521
- * Icon after the text
522
- */
523
- trailingIcon: n.string,
524
- borderRadius: n.oneOf([
525
- "slight",
526
- "regular",
527
- "edged",
528
- "curved",
529
- "none"
530
- ]),
531
- /**
532
- * Different styles
533
- */
534
- btnType: n.oneOf(["filled", "tinted", "outline", "basic"]),
535
- disabled: n.bool,
536
- tabIndex: n.number,
537
- //---------------------------------------------------------------
538
- onBlur: n.func,
539
- onFocus: n.func,
540
- onClick: n.func,
541
- onKeyDown: n.func,
542
- //---------------------------------------------------------------
543
- className: n.string,
544
- style: n.object,
545
- color: n.oneOf([
546
- "primary",
547
- "secondary",
548
- "success",
549
- "warning",
550
- "danger",
551
- "information",
552
- "neutral",
553
- "gray"
554
- ]),
555
- size: n.oneOf(["small", "medium", "large"])
556
- };
557
510
  export {
558
- X as default
511
+ te as default
559
512
  };
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./index-BpbMKBf_.cjs"),o=require("./utils-RnrgDDZP.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),s=a.styled.div`
1
+ "use strict";const u=require("react/jsx-runtime"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-RnrgDDZP.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),a=l.styled.div`
2
2
  display: inline-flex;
3
3
  flex-wrap: wrap;
4
4
  width: fit-content;
@@ -6,9 +6,9 @@
6
6
 
7
7
  & button {
8
8
  border: none;
9
- border-top: ${e=>"0.0625rem solid "+o.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
9
+ border-top: ${e=>"0.0625rem solid "+t.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
10
10
 
11
- border-bottom: ${e=>"0.0625rem solid "+o.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
11
+ border-bottom: ${e=>"0.0625rem solid "+t.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
12
12
  }
13
13
 
14
14
  & button:focus {
@@ -26,19 +26,19 @@
26
26
 
27
27
  & button:first-of-type {
28
28
  border-radius: ${e=>`${e.borderRadius} 0 0 ${e.borderRadius}`};
29
- border-left: ${e=>"0.0625rem solid "+o.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
29
+ border-left: ${e=>"0.0625rem solid "+t.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
30
30
  }
31
31
 
32
32
  & button:last-of-type {
33
33
  border-radius: ${e=>`0 ${e.borderRadius} ${e.borderRadius} 0`};
34
- border-right: ${e=>"0.0625rem solid "+o.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
34
+ border-right: ${e=>"0.0625rem solid "+t.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
35
35
  }
36
36
 
37
37
  & button:first-of-type:not([data-type="filled"]) {
38
- border-right: ${e=>"0.0625rem solid "+o.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
38
+ border-right: ${e=>"0.0625rem solid "+t.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
39
39
  }
40
40
 
41
41
  & button:not(:first-of-type):not(:last-of-type):not([data-type="filled"]) {
42
- border-right: ${e=>"0.0625rem solid "+o.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
42
+ border-right: ${e=>"0.0625rem solid "+t.getColorRgbaValue(e.theme,"ButtonGroup",e.color,"enabled","border")};
43
43
  }
44
- `,d=({children:e,borderRadius:n="regular",style:u={},className:l=""})=>{const r=b.useTheme();return i.jsx(s,{borderRadius:o.getBorderRadiusValueWithUnits(r,n),theme:r,style:u,className:"lnc-ui-button-group "+l,children:e})};d.propTypes={borderRadius:t.PropTypes.oneOf(["slight","regular","edged","curved","none"]),className:t.PropTypes.string,style:t.PropTypes.object};module.exports=d;
44
+ `,i=({children:e,borderRadius:r="regular",style:d={},className:n=""})=>{const o=b.useTheme();return u.jsx(a,{borderRadius:t.getBorderRadiusValueWithUnits(o,r),theme:o,style:d,className:"lnc-ui-button-group "+n,children:e})};module.exports=i;
@@ -1,28 +1,27 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import { s as i } from "./emotion-styled.browser.esm-BNN1dTl3.js";
3
- import { P as t } from "./index-CblbdqjE.js";
2
+ import { s as a } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
3
  import { b as o, a as b } from "./utils-DtEfC-TX.js";
5
- import { u as l } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
- const s = i.div`
4
+ import { u as i } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
5
+ const l = a.div`
7
6
  display: inline-flex;
8
7
  flex-wrap: wrap;
9
8
  width: fit-content;
10
- border-radius: ${(e) => e.borderRadius};
9
+ border-radius: ${(t) => t.borderRadius};
11
10
 
12
11
  & button {
13
12
  border: none;
14
- border-top: ${(e) => "0.0625rem solid " + o(
15
- e.theme,
13
+ border-top: ${(t) => "0.0625rem solid " + o(
14
+ t.theme,
16
15
  "ButtonGroup",
17
- e.color,
16
+ t.color,
18
17
  "enabled",
19
18
  "border"
20
19
  )};
21
20
 
22
- border-bottom: ${(e) => "0.0625rem solid " + o(
23
- e.theme,
21
+ border-bottom: ${(t) => "0.0625rem solid " + o(
22
+ t.theme,
24
23
  "ButtonGroup",
25
- e.color,
24
+ t.color,
26
25
  "enabled",
27
26
  "border"
28
27
  )};
@@ -42,75 +41,64 @@ const s = i.div`
42
41
  }
43
42
 
44
43
  & button:first-of-type {
45
- border-radius: ${(e) => `${e.borderRadius} 0 0 ${e.borderRadius}`};
46
- border-left: ${(e) => "0.0625rem solid " + o(
47
- e.theme,
44
+ border-radius: ${(t) => `${t.borderRadius} 0 0 ${t.borderRadius}`};
45
+ border-left: ${(t) => "0.0625rem solid " + o(
46
+ t.theme,
48
47
  "ButtonGroup",
49
- e.color,
48
+ t.color,
50
49
  "enabled",
51
50
  "border"
52
51
  )};
53
52
  }
54
53
 
55
54
  & button:last-of-type {
56
- border-radius: ${(e) => `0 ${e.borderRadius} ${e.borderRadius} 0`};
57
- border-right: ${(e) => "0.0625rem solid " + o(
58
- e.theme,
55
+ border-radius: ${(t) => `0 ${t.borderRadius} ${t.borderRadius} 0`};
56
+ border-right: ${(t) => "0.0625rem solid " + o(
57
+ t.theme,
59
58
  "ButtonGroup",
60
- e.color,
59
+ t.color,
61
60
  "enabled",
62
61
  "border"
63
62
  )};
64
63
  }
65
64
 
66
65
  & button:first-of-type:not([data-type="filled"]) {
67
- border-right: ${(e) => "0.0625rem solid " + o(
68
- e.theme,
66
+ border-right: ${(t) => "0.0625rem solid " + o(
67
+ t.theme,
69
68
  "ButtonGroup",
70
- e.color,
69
+ t.color,
71
70
  "enabled",
72
71
  "border"
73
72
  )};
74
73
  }
75
74
 
76
75
  & button:not(:first-of-type):not(:last-of-type):not([data-type="filled"]) {
77
- border-right: ${(e) => "0.0625rem solid " + o(
78
- e.theme,
76
+ border-right: ${(t) => "0.0625rem solid " + o(
77
+ t.theme,
79
78
  "ButtonGroup",
80
- e.color,
79
+ t.color,
81
80
  "enabled",
82
81
  "border"
83
82
  )};
84
83
  }
85
- `, m = ({
86
- children: e,
87
- borderRadius: d = "regular",
88
- style: n = {},
89
- className: a = ""
84
+ `, h = ({
85
+ children: t,
86
+ borderRadius: r = "regular",
87
+ style: d = {},
88
+ className: n = ""
90
89
  }) => {
91
- const r = l();
90
+ const e = i();
92
91
  return /* @__PURE__ */ u(
93
- s,
92
+ l,
94
93
  {
95
- borderRadius: b(r, d),
96
- theme: r,
97
- style: n,
98
- className: "lnc-ui-button-group " + a,
99
- children: e
94
+ borderRadius: b(e, r),
95
+ theme: e,
96
+ style: d,
97
+ className: "lnc-ui-button-group " + n,
98
+ children: t
100
99
  }
101
100
  );
102
101
  };
103
- m.propTypes = {
104
- borderRadius: t.oneOf([
105
- "slight",
106
- "regular",
107
- "edged",
108
- "curved",
109
- "none"
110
- ]),
111
- className: t.string,
112
- style: t.object
113
- };
114
102
  export {
115
- m as default
103
+ h as default
116
104
  };