@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,13 +1,12 @@
1
- import { jsxs as m, jsx as h } from "react/jsx-runtime";
2
- import { forwardRef as f, isValidElement as P, cloneElement as y } from "react";
3
- import { P as r } from "./index-CblbdqjE.js";
1
+ import { jsxs as c, jsx as h } from "react/jsx-runtime";
2
+ import { forwardRef as u, isValidElement as f, cloneElement as P } from "react";
4
3
  import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { b as n, c as x } from "./utils-DtEfC-TX.js";
4
+ import { b as a, c as x } from "./utils-DtEfC-TX.js";
6
5
  import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
6
  const w = t.div`
8
7
  width: 100%;
9
8
  position: relative;
10
- background-color: ${(e) => n(
9
+ background-color: ${(e) => a(
11
10
  e.theme,
12
11
  "Progress",
13
12
  e.color,
@@ -17,11 +16,11 @@ const w = t.div`
17
16
  height: ${(e) => e.theme.components.Progress.default.enabled.sizes[e.size]};
18
17
  border-radius: 5px;
19
18
  animation: progres 4s infinite linear;
20
- `, z = t.div`
19
+ `, y = t.div`
21
20
  position: relative;
22
21
  height: 100%;
23
22
  width: ${(e) => e.progressPercentage + "%"};
24
- background-color: ${(e) => n(
23
+ background-color: ${(e) => a(
25
24
  e.theme,
26
25
  "Progress",
27
26
  e.color,
@@ -38,84 +37,58 @@ const w = t.div`
38
37
  top: 50%;
39
38
  transform: translate(50%, -50%);
40
39
  }
41
- `, C = t.label`
40
+ `, z = t.label`
42
41
  ${(e) => x(e.theme, "Progress", e.size, "enabled")};
43
42
  position: absolute;
44
43
  top: 50%;
45
44
  left: 50%;
46
45
  transform: translate(-50%, -50%);
47
- color: ${(e) => n(e.theme, "Progress", e.color, "enabled", "text")};
48
- `, N = f((e, v) => {
46
+ color: ${(e) => a(e.theme, "Progress", e.color, "enabled", "text")};
47
+ `, R = u((e, v) => {
49
48
  const {
50
- id: T = "",
51
49
  showLabel: i = !1,
52
- progressPercentage: o = 0,
53
- className: g = "",
50
+ progressPercentage: s = 0,
51
+ className: m = "",
54
52
  style: d = {},
55
- onChange: j = () => {
56
- },
57
53
  size: l = "small",
58
- color: p = "primary",
59
- progressBarEndComponent: s,
60
- ...b
61
- } = e, a = $(), u = () => {
62
- var c;
63
- if (P(s))
64
- return y(s, {
65
- className: `progress-icon ${(c = s == null ? void 0 : s.props) == null ? void 0 : c.className}`
54
+ color: g = "primary",
55
+ progressBarEndComponent: r,
56
+ ...p
57
+ } = e, o = $(), b = () => {
58
+ var n;
59
+ if (f(r))
60
+ return P(r, {
61
+ className: `progress-icon ${(n = r == null ? void 0 : r.props) == null ? void 0 : n.className}`
66
62
  });
67
63
  };
68
- return /* @__PURE__ */ m(
64
+ return /* @__PURE__ */ c(
69
65
  w,
70
66
  {
71
67
  style: d,
72
- className: "lnc-ui-progress " + g,
73
- theme: a,
68
+ className: "lnc-ui-progress " + m,
69
+ theme: o,
74
70
  size: l,
75
71
  showLabel: i,
76
- progressPercentage: o,
77
- ...b,
72
+ progressPercentage: s,
73
+ ...p,
78
74
  children: [
79
75
  /* @__PURE__ */ h(
80
- z,
76
+ y,
81
77
  {
82
- progressPercentage: o,
83
- theme: a,
84
- color: p,
85
- children: s !== null && u()
78
+ progressPercentage: s,
79
+ theme: o,
80
+ color: g,
81
+ children: r !== null && b()
86
82
  }
87
83
  ),
88
- i && /* @__PURE__ */ m(C, { theme: a, size: l, children: [
89
- o,
84
+ i && /* @__PURE__ */ c(z, { theme: o, size: l, children: [
85
+ s,
90
86
  "%"
91
87
  ] })
92
88
  ]
93
89
  }
94
90
  );
95
91
  });
96
- N.propTypes = {
97
- id: r.any,
98
- showLabel: r.bool,
99
- progressPercentage: r.number,
100
- //-------------------------
101
- onChange: r.func,
102
- //-------------------------
103
- className: r.string,
104
- style: r.object,
105
- size: r.oneOf(["small", "medium", "large"]),
106
- color: r.oneOf([
107
- "primary",
108
- "secondary",
109
- "success",
110
- "danger",
111
- "warning",
112
- "disabled",
113
- "information",
114
- "neutral",
115
- "gray"
116
- ]),
117
- progressBarEndComponent: r.any
118
- };
119
92
  export {
120
- N as default
93
+ R as default
121
94
  };
@@ -1,7 +1,7 @@
1
- "use strict";const p=require("react/jsx-runtime"),n=require("react"),O=require("./emotion-styled.browser.esm-BtEseadx.cjs"),e=require("./index-BpbMKBf_.cjs"),R=require("./RadioInput.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=O.styled.div`
1
+ "use strict";const o=require("react/jsx-runtime"),s=require("react"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./RadioInput.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),k=_.styled.div`
2
2
  display: inline-flex;
3
- flex-direction: ${o=>o.inline===!0?"row":"column"};
3
+ flex-direction: ${n=>n.inline===!0?"row":"column"};
4
4
  gap: 1.5rem;
5
5
  width: fit-content;
6
6
  box-sizing: border-box;
7
- `,l=n.forwardRef((o,t)=>{const{id:d="",name:y,value:s=null,disabled:c=!1,readOnly:u=!1,items:m=[],mapId:z="id",mapValue:k="value",radioProps:P,inline:T=!0,onChange:a=()=>{},className:f="",style:b={},size:g="small",color:h="primary",...x}=o;var v=I.useTheme();const[q,w]=n.useState(null);n.useEffect(()=>{s!==q&&w(s)},[s]);var C={color:h,theme:v,size:g,disabled:c,readOnly:u};const j=(r,i)=>{a&&a(r)};return p.jsx(_,{ref:t,id:d,inline:T,style:b,className:f,...x,children:m.map((r,i)=>p.jsx(R,{...C,label:r.label,value:r.value,...P,onChange:j,name:y},i))})});l.propTypes={id:e.PropTypes.any,name:e.PropTypes.string,value:e.PropTypes.any,disabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,items:e.PropTypes.arrayOf(e.PropTypes.object),mapid:e.PropTypes.any,mapValue:e.PropTypes.string,inline:e.PropTypes.bool,onChange: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"]),radioProps:e.PropTypes.any};module.exports=l;
7
+ `,z=s.forwardRef((n,i)=>{const{id:l="",name:a,value:r=null,disabled:c=!1,readOnly:d=!1,items:u=[],radioProps:m,inline:f=!0,onChange:t=()=>{},className:h="",style:p={},size:b="small",color:x="primary",...v}=n;var y=I.useTheme();const[g,q]=s.useState(null);s.useEffect(()=>{r!==g&&q(r)},[r]);var w={color:x,theme:y,size:b,disabled:c,readOnly:d};const C=e=>{t&&t(e)};return o.jsx(k,{ref:i,id:l,inline:f,style:p,className:h,...v,children:u.map((e,R)=>o.jsx(j,{...w,label:e.label,value:e.value,...m,onChange:C,name:a},R))})});module.exports=z;
@@ -1,104 +1,73 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as I, useState as j, useEffect as z } from "react";
3
- import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { P as e } from "./index-CblbdqjE.js";
5
- import T from "./RadioInput.js";
6
- import { u as k } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- const N = R.div`
2
+ import { forwardRef as R, useState as k, useEffect as z } from "react";
3
+ import { s as P } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import j from "./RadioInput.js";
5
+ import { u as E } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
+ const G = P.div`
8
7
  display: inline-flex;
9
8
  flex-direction: ${(o) => o.inline === !0 ? "row" : "column"};
10
9
  gap: 1.5rem;
11
10
  width: fit-content;
12
11
  box-sizing: border-box;
13
- `, V = I((o, s) => {
12
+ `, q = R((o, n) => {
14
13
  const {
15
14
  id: t = "",
16
- name: m,
15
+ name: i,
17
16
  value: r = null,
18
- disabled: d = !1,
19
- readOnly: p = !1,
20
- items: u = [],
21
- mapId: E = "id",
22
- mapValue: G = "value",
23
- radioProps: c,
24
- inline: f = !0,
17
+ disabled: s = !1,
18
+ readOnly: d = !1,
19
+ items: m = [],
20
+ radioProps: f,
21
+ inline: u = !0,
25
22
  //----------------
26
- onChange: n = () => {
23
+ onChange: a = () => {
27
24
  },
28
25
  //----------------
29
- className: y = "",
30
- style: g = {},
31
- size: b = "small",
32
- color: h = "primary",
26
+ className: c = "",
27
+ style: p = {},
28
+ size: h = "small",
29
+ color: b = "primary",
33
30
  ...v
34
31
  } = o;
35
- var x = k();
36
- const [C, O] = j(null);
32
+ var x = E();
33
+ const [g, y] = k(null);
37
34
  z(() => {
38
- r !== C && O(r);
35
+ r !== g && y(r);
39
36
  }, [r]);
40
- var P = {
41
- color: h,
37
+ var C = {
38
+ color: b,
42
39
  theme: x,
43
- size: b,
44
- disabled: d,
45
- readOnly: p
40
+ size: h,
41
+ disabled: s,
42
+ readOnly: d
46
43
  };
47
- const w = (a, i) => {
48
- n && n(a);
44
+ const w = (e) => {
45
+ a && a(e);
49
46
  };
50
47
  return /* @__PURE__ */ l(
51
- N,
48
+ G,
52
49
  {
53
- ref: s,
50
+ ref: n,
54
51
  id: t,
55
- inline: f,
56
- style: g,
57
- className: y,
52
+ inline: u,
53
+ style: p,
54
+ className: c,
58
55
  ...v,
59
- children: u.map((a, i) => /* @__PURE__ */ l(
60
- T,
56
+ children: m.map((e, I) => /* @__PURE__ */ l(
57
+ j,
61
58
  {
62
- ...P,
63
- label: a.label,
64
- value: a.value,
65
- ...c,
59
+ ...C,
60
+ label: e.label,
61
+ value: e.value,
62
+ ...f,
66
63
  onChange: w,
67
- name: m
64
+ name: i
68
65
  },
69
- i
66
+ I
70
67
  ))
71
68
  }
72
69
  );
73
70
  });
74
- V.propTypes = {
75
- id: e.any,
76
- name: e.string,
77
- value: e.any,
78
- disabled: e.bool,
79
- readOnly: e.bool,
80
- items: e.arrayOf(e.object),
81
- mapid: e.any,
82
- mapValue: e.string,
83
- inline: e.bool,
84
- //----------------
85
- onChange: e.func,
86
- //----------------
87
- className: e.string,
88
- style: e.object,
89
- size: e.oneOf(["small", "medium", "large"]),
90
- color: e.oneOf([
91
- "primary",
92
- "secondary",
93
- "success",
94
- "danger",
95
- "warning",
96
- "information",
97
- "neutral",
98
- "gray"
99
- ]),
100
- radioProps: e.any
101
- };
102
71
  export {
103
- V as default
72
+ q as default
104
73
  };
@@ -1,15 +1,15 @@
1
- "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BpbMKBf_.cjs"),o=require("./utils-RnrgDDZP.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.styled.label`
2
- min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
3
- max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
1
+ "use strict";const l=require("react/jsx-runtime"),h=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-RnrgDDZP.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=e=>e=="left"?"row-reverse":"row",B=g.styled.label`
2
+ min-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
3
+ max-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
4
4
  width: 100%;
5
5
  display: inline-flex;
6
6
  justify-content: start;
7
7
  align-items: center;
8
- flex-direction: ${e=>j(e.labelPosition)};
8
+ flex-direction: ${e=>q(e.labelPosition)};
9
9
  ${e=>e.spaceBetween===!0&&"justify-content: space-between;"}
10
10
  gap: 0.5rem;
11
11
  ${e=>e.disabled===!0&&"pointer-events: none;"}
12
- ${e=>o.getComponentTypographyCss(e.theme,"Radio",e.size,"enabled")};
12
+ ${e=>t.getComponentTypographyCss(e.theme,"Radio",e.size,"enabled")};
13
13
  gap: 0.75rem;
14
14
  cursor: pointer;
15
15
  position: relative;
@@ -33,49 +33,49 @@
33
33
  justify-content: center;
34
34
  align-items: center;
35
35
  transition: all 0.2s ease;
36
- ${e=>e.focused===!0&&e.disabled!==!0&&e.readOnly!==!0?o.getOutlineCss(e.theme):""};
36
+ ${e=>e.focused===!0&&e.disabled!==!0&&e.readOnly!==!0?t.getOutlineCss(e.theme):""};
37
37
  & svg {
38
38
  fill: transparent;
39
39
  & .outer-circle {
40
- stroke: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","border")};
40
+ stroke: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","border")};
41
41
  }
42
42
  & .inner-circle {
43
- stroke: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","border")};
43
+ stroke: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","border")};
44
44
  }
45
45
  }
46
46
  }
47
47
  & input:hover ~ .lnc-radio-input-label {
48
- color: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"hover","text")};
48
+ color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"hover","text")};
49
49
  }
50
50
 
51
51
 
52
52
  & input:checked ~ .lnc-radio-input-label {
53
- color: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"active","text")};
53
+ color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"active","text")};
54
54
  }
55
55
  & input:checked ~ .checkmark {
56
56
  & svg {
57
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"active","background","backgroundOpacity")};
57
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"active","background","backgroundOpacity")};
58
58
  & .outer-circle {
59
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"active","border")};
59
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"active","border")};
60
60
  }
61
61
  & .inner-circle {
62
- fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:o.getColorRgbaValue(e.theme,"Radio",e.color,"active","border")}};
62
+ fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:t.getColorRgbaValue(e.theme,"Radio",e.color,"active","border")}};
63
63
  }
64
64
  }
65
65
  }
66
66
 
67
67
  & input:disabled ~ .lnc-radio-input-label {
68
- color: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","text")};
68
+ color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","text")};
69
69
  }
70
70
 
71
71
  & input[disabled]:checked ~ .checkmark {
72
72
  & svg {
73
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","background","backgroundOpacity")};
73
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","background","backgroundOpacity")};
74
74
  & .outer-circle {
75
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
75
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
76
76
  }
77
77
  & .inner-circle {
78
- fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")}
78
+ fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")}
79
79
  };
80
80
  }
81
81
  }
@@ -83,35 +83,35 @@
83
83
 
84
84
  & input[disabled] ~ .checkmark {
85
85
  & svg {
86
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","background","backgroundOpacity")};
86
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","background","backgroundOpacity")};
87
87
  & .outer-circle {
88
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
88
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
89
89
  }
90
90
  & .inner-circle {
91
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")}
92
- };
91
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
93
92
  }
94
93
  }
95
94
 
96
95
  & input:hover ~ .lnc-radio-input-label {
97
- color: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"hover","text")};
96
+ color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"hover","text")};
98
97
  }
99
98
  & input[hover]:checked ~ .checkmark {
100
99
  & svg {
101
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"hover","background","backgroundOpacity")};
100
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"hover","background","backgroundOpacity")};
102
101
  & .outer-circle {
103
- fill: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
102
+ fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
104
103
  }
105
104
  & .inner-circle {
106
- fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:o.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")}};
105
+ fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
107
106
  }
108
107
  }
109
- `,B=m.styled.label`
108
+ }
109
+ `,N=g.styled.label`
110
110
  ${e=>e.disabled!==!0&&e.readOnly!==!0&&"cursor: pointer"};
111
111
  min-width: 0;
112
112
  flex-shrink: 1;
113
113
  min-height: 0;
114
114
  overflow: hidden;
115
115
  text-overflow: ellipsis;
116
- color: ${e=>o.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","text")};
117
- `,y=h.forwardRef((e,f)=>{const{wrapperRef:R,className:C="",style:w={},color:k="primary",innerColor:x="white",size:$="small",onChange:a,onFocus:l,onBlur:n,onClick:c,onKeyDown:N,label:u,labelPosition:p="right",spaceBetween:v,disabled:s,readOnly:d,...P}=e,[T,b]=h.useState(!1);var g={theme:O.useTheme(),size:$,color:k,disabled:s,labelPosition:p,spaceBetween:v};const V=t=>{b(!1),n&&(n==null||n(t))},z=t=>{b(!0),l&&(l==null||l(t))};return i.jsxs(q,{...g,ref:R,className:C,style:w,tabIndex:-1,readOnly:d,focused:T,onClick:t=>c==null?void 0:c(t),innerColor:x,children:[i.jsx("input",{ref:f,disabled:s||d,type:"radio",onBlur:V,onFocus:z,onChange:t=>a==null?void 0:a(t),...P}),i.jsx("div",{className:"checkmark",children:i.jsxs("svg",{id:"eqw1eBsfm9l1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",children:[i.jsx("ellipse",{className:"outer-circle",rx:"9.5",ry:"9.5",transform:"translate(10 10)",fillRule:"evenodd",stroke:"red"}),i.jsx("ellipse",{rx:"5",ry:"5",transform:"translate(10 10)",className:"inner-circle",strokeWidth:"0"})]})}),i.jsx(B,{...g,className:"lnc-radio-input-label",disalbed:s,readOnly:d,title:u,tabIndex:-1,children:u})]})});y.propTypes={id:r.PropTypes.any,name:r.PropTypes.string,checked:r.PropTypes.bool,disabled:r.PropTypes.bool,readOnly:r.PropTypes.bool,label:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.element]),labelPosition:r.PropTypes.oneOf(["right","left"]),tabIndex:r.PropTypes.number,spaceBetween:r.PropTypes.bool,onChange:r.PropTypes.func,onFocus:r.PropTypes.func,onBlur:r.PropTypes.func,onClick:r.PropTypes.func,onKeyDown:r.PropTypes.func,className:r.PropTypes.string,style:r.PropTypes.object,size:r.PropTypes.oneOf(["small","medium","large"]),color:r.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"]),innerColor:r.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray","white","transparent"])};module.exports=y;
116
+ color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","text")};
117
+ `,P=h.forwardRef((e,m)=>{const{wrapperRef:R,className:f="",style:C={},color:$="primary",innerColor:k="white",size:x="small",onChange:a,onFocus:o,onBlur:r,onClick:n,label:s,labelPosition:v="right",spaceBetween:w,disabled:c,readOnly:d,...y}=e,[V,u]=h.useState(!1);var b={theme:O.useTheme(),size:x,color:$,disabled:c,labelPosition:v,spaceBetween:w};const z=i=>{u(!1),r&&(r==null||r(i))},j=i=>{u(!0),o&&(o==null||o(i))};return l.jsxs(B,{...b,ref:R,className:f,style:C,tabIndex:-1,readOnly:d,focused:V,onClick:i=>n==null?void 0:n(i),innerColor:k,children:[l.jsx("input",{ref:m,disabled:c||d,type:"radio",onBlur:z,onFocus:j,onChange:i=>a==null?void 0:a(i),...y}),l.jsx("div",{className:"checkmark",children:l.jsxs("svg",{id:"eqw1eBsfm9l1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",children:[l.jsx("ellipse",{className:"outer-circle",rx:"9.5",ry:"9.5",transform:"translate(10 10)",fillRule:"evenodd",stroke:"red"}),l.jsx("ellipse",{rx:"5",ry:"5",transform:"translate(10 10)",className:"inner-circle",strokeWidth:"0"})]})}),l.jsx(N,{...b,className:"lnc-radio-input-label",disalbed:c,readOnly:d,title:s,tabIndex:-1,children:s})]})});module.exports=P;