@lanaco/lnc-react-ui 4.0.2 → 4.0.5

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 (233) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +55 -50
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +15 -15
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +11 -11
  7. package/dist/ActionsToolbar.cjs +2 -2
  8. package/dist/ActionsToolbar.js +16 -16
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +23 -23
  11. package/dist/Avatar.cjs +2 -2
  12. package/dist/Avatar.js +18 -21
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +21 -14
  15. package/dist/Breadcrumbs.cjs +1 -1
  16. package/dist/Breadcrumbs.js +28 -28
  17. package/dist/Button.cjs +2 -2
  18. package/dist/Button.js +21 -22
  19. package/dist/ButtonGroup.cjs +1 -1
  20. package/dist/ButtonGroup.js +10 -6
  21. package/dist/CheckBoxInput.cjs +1 -1
  22. package/dist/CheckBoxInput.js +6 -6
  23. package/dist/Chip.cjs +1 -1
  24. package/dist/Chip.js +9 -9
  25. package/dist/ColorInput.cjs +1 -1
  26. package/dist/ColorInput.js +20 -20
  27. package/dist/ConfirmationForm.cjs +1 -1
  28. package/dist/ConfirmationForm.js +58 -58
  29. package/dist/Content.cjs +1 -1
  30. package/dist/Content.js +8 -8
  31. package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
  32. package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
  33. package/dist/DataView.cjs +1 -1
  34. package/dist/DataView.js +35 -35
  35. package/dist/DateInput.cjs +4 -4
  36. package/dist/DateInput.js +491 -491
  37. package/dist/DecimalInput.cjs +1 -1
  38. package/dist/DecimalInput.js +43 -43
  39. package/dist/DetailsView.cjs +4 -4
  40. package/dist/DetailsView.js +40 -40
  41. package/dist/DoubleRangeSlider.cjs +1 -1
  42. package/dist/DoubleRangeSlider.js +33 -33
  43. package/dist/DragAndDropFile.cjs +1 -1
  44. package/dist/DragAndDropFile.js +165 -165
  45. package/dist/DragDropFiles.cjs +1 -1
  46. package/dist/DragDropFiles.js +31 -31
  47. package/dist/Drawer.cjs +1 -1
  48. package/dist/Drawer.js +47 -47
  49. package/dist/Dropdown.cjs +1 -1
  50. package/dist/Dropdown.js +39 -39
  51. package/dist/DropdownItem.cjs +1 -1
  52. package/dist/DropdownItem.js +23 -23
  53. package/dist/DropdownLookup.cjs +1 -1
  54. package/dist/DropdownLookup.js +36 -36
  55. package/dist/DropdownMenu.cjs +7 -1
  56. package/dist/DropdownMenu.js +192 -10
  57. package/dist/EditableTable.cjs +1 -1
  58. package/dist/EditableTable.js +4 -4
  59. package/dist/FileInput.cjs +1 -1
  60. package/dist/FileInput.js +24 -24
  61. package/dist/FlexBox.cjs +1 -1
  62. package/dist/FlexBox.js +14 -14
  63. package/dist/FlexGrid.cjs +1 -1
  64. package/dist/FlexGrid.js +30 -30
  65. package/dist/FlexGridItem.cjs +1 -1
  66. package/dist/FlexGridItem.js +16 -16
  67. package/dist/Footer.cjs +1 -1
  68. package/dist/Footer.js +5 -5
  69. package/dist/FormField.cjs +1 -1
  70. package/dist/FormField.js +8 -9
  71. package/dist/FormView.cjs +1 -1
  72. package/dist/FormView.js +31 -31
  73. package/dist/Grid.cjs +2 -3
  74. package/dist/Grid.js +38 -10
  75. package/dist/GridItem.cjs +2 -2
  76. package/dist/GridItem.js +29 -9
  77. package/dist/Header.cjs +1 -1
  78. package/dist/Header.js +7 -7
  79. package/dist/Icon.cjs +2 -2
  80. package/dist/Icon.js +35 -13
  81. package/dist/IconButton.cjs +1 -1
  82. package/dist/IconButton.js +51 -52
  83. package/dist/Kanban.cjs +12 -12
  84. package/dist/Kanban.js +891 -879
  85. package/dist/KanbanActionsToolbar.cjs +2 -2
  86. package/dist/KanbanActionsToolbar.js +28 -28
  87. package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
  88. package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
  89. package/dist/KanbanCard.cjs +1 -1
  90. package/dist/KanbanCard.js +5 -5
  91. package/dist/KanbanFooter.cjs +1 -1
  92. package/dist/KanbanFooter.js +40 -40
  93. package/dist/KanbanHeader.cjs +2 -2
  94. package/dist/KanbanHeader.js +46 -46
  95. package/dist/KanbanView.cjs +1 -1
  96. package/dist/KanbanView.js +27 -27
  97. package/dist/Link.cjs +1 -1
  98. package/dist/Link.js +9 -9
  99. package/dist/MenuItem.cjs +1 -1
  100. package/dist/MenuItem.js +39 -39
  101. package/dist/Modal.cjs +1 -1
  102. package/dist/Modal.js +42 -42
  103. package/dist/MultiSelectDropdown.cjs +1 -1
  104. package/dist/MultiSelectDropdown.js +6 -6
  105. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  106. package/dist/MultiSelectDropdownLookup.js +6 -6
  107. package/dist/NestedDropdownItem.cjs +1 -1
  108. package/dist/NestedDropdownItem.js +40 -40
  109. package/dist/NestedMenuItem.cjs +1 -1
  110. package/dist/NestedMenuItem.js +45 -45
  111. package/dist/Notification.cjs +1 -83
  112. package/dist/Notification.js +3 -1077
  113. package/dist/NotificationContainer.cjs +37 -0
  114. package/dist/NotificationContainer.js +162 -0
  115. package/dist/NotificationMessage.cjs +47 -0
  116. package/dist/NotificationMessage.js +133 -0
  117. package/dist/NumberInput.cjs +1 -1
  118. package/dist/NumberInput.js +17 -17
  119. package/dist/PageLayout.cjs +1 -1
  120. package/dist/PageLayout.js +32 -32
  121. package/dist/Pagination.cjs +12 -0
  122. package/dist/Pagination.js +248 -0
  123. package/dist/PasswordInput.cjs +1 -1
  124. package/dist/PasswordInput.js +33 -33
  125. package/dist/Popover.cjs +1 -0
  126. package/dist/Popover.js +36 -0
  127. package/dist/PopoverClose.cjs +1 -0
  128. package/dist/PopoverClose.js +15 -0
  129. package/dist/PopoverContent.cjs +10 -0
  130. package/dist/PopoverContent.js +68 -0
  131. package/dist/PopoverContext.cjs +1 -0
  132. package/dist/PopoverContext.js +5 -0
  133. package/dist/PopoverDescription.cjs +1 -0
  134. package/dist/PopoverDescription.js +16 -0
  135. package/dist/PopoverHeading.cjs +1 -0
  136. package/dist/PopoverHeading.js +16 -0
  137. package/dist/PopoverTrigger.cjs +1 -0
  138. package/dist/PopoverTrigger.js +38 -0
  139. package/dist/ProgressBar.cjs +1 -1
  140. package/dist/ProgressBar.js +35 -24
  141. package/dist/RadioGroup.cjs +1 -1
  142. package/dist/RadioGroup.js +13 -13
  143. package/dist/RadioInput.cjs +1 -1
  144. package/dist/RadioInput.js +10 -10
  145. package/dist/RangeSlider.cjs +1 -1
  146. package/dist/RangeSlider.js +27 -27
  147. package/dist/SearchBar.cjs +1 -1
  148. package/dist/SearchBar.js +77 -77
  149. package/dist/Separator.cjs +1 -1
  150. package/dist/Separator.js +9 -9
  151. package/dist/Sidebar.cjs +1 -1
  152. package/dist/Sidebar.js +13 -13
  153. package/dist/Spinner.cjs +1 -1
  154. package/dist/Spinner.js +25 -20
  155. package/dist/Surface.cjs +2 -2
  156. package/dist/Surface.js +14 -15
  157. package/dist/SwipeableDrawer.cjs +1 -1
  158. package/dist/SwipeableDrawer.js +18 -18
  159. package/dist/TabItem.cjs +26 -0
  160. package/dist/TabItem.js +210 -0
  161. package/dist/Table.cjs +20 -20
  162. package/dist/Table.js +13 -12
  163. package/dist/TableView.cjs +8 -1
  164. package/dist/TableView.js +238 -9
  165. package/dist/Tabs.cjs +1 -1
  166. package/dist/Tabs.js +33 -27
  167. package/dist/TextAreaInput.cjs +1 -1
  168. package/dist/TextAreaInput.js +35 -35
  169. package/dist/TextInput.cjs +1 -1
  170. package/dist/TextInput.js +24 -24
  171. package/dist/ThemeProvider.cjs +1 -1
  172. package/dist/ThemeProvider.js +85 -85
  173. package/dist/TimeInput.cjs +1 -1
  174. package/dist/TimeInput.js +13 -13
  175. package/dist/Toggle.cjs +1 -1
  176. package/dist/Toggle.js +4 -5
  177. package/dist/TreeMenu.cjs +1 -1
  178. package/dist/TreeMenu.js +57 -57
  179. package/dist/TreeMenuSeparator.cjs +3 -3
  180. package/dist/TreeMenuSeparator.js +11 -11
  181. package/dist/UploadedFile.cjs +1 -1
  182. package/dist/UploadedFile.js +29 -29
  183. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  184. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  185. package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
  186. package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
  187. package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
  188. package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
  189. package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
  190. package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
  191. package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
  192. package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
  193. package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
  194. package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
  195. package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
  196. package/dist/index-BIlhCoy2.cjs +20 -0
  197. package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
  198. package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
  199. package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
  200. package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
  201. package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
  202. package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
  203. package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
  204. package/dist/index-DAOBjHnD.cjs +1 -0
  205. package/dist/index-DBXXH_TD.cjs +1 -0
  206. package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
  207. package/dist/index-DaiUAQVF.cjs +1 -0
  208. package/dist/index.cjs +1 -26
  209. package/dist/index.js +180 -376
  210. package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
  211. package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
  212. package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
  213. package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
  214. package/dist/style.css +1 -5
  215. package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
  216. package/dist/usePopover.cjs +1 -0
  217. package/dist/usePopover.js +44 -0
  218. package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
  219. package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
  220. package/package.json +17 -5
  221. package/vite.config.js +16 -0
  222. package/custom-addons/ThemeSelector.js +0 -111
  223. package/custom-addons/register.js +0 -16
  224. package/custom-addons/theme-selector.css +0 -17
  225. package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
  226. package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
  227. package/dist/KanbanCard-ConTmu3w.cjs +0 -30
  228. package/dist/TableView-Cj5_fbSR.js +0 -481
  229. package/dist/TableView-D8ex512p.cjs +0 -19
  230. package/dist/index-BjdOz5Ok.cjs +0 -1
  231. package/dist/index-DXnSjbfJ.cjs +0 -20
  232. package/dist/index-Dzkd2i4n.cjs +0 -1
  233. package/dist/index-P-naJISQ.cjs +0 -1
@@ -1,10 +1,10 @@
1
- import { jsxs as l, jsx as b } from "react/jsx-runtime";
2
- import p from "react";
3
- import { P as r } from "./index-Ds9PUTwb.js";
4
- import { n as s } from "./emotion-styled.browser.esm-BZSYYThs.js";
5
- import { b as a, a as u } from "./utils-DEke8iwo.js";
6
- import { u as f } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
7
- const h = s.div`
1
+ import { jsxs as l, jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as b } from "react";
3
+ import { P as r } from "./index-BYnWp42a.js";
4
+ import { n as s } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
+ import { a, g as h } from "./utils-C52T57HO.js";
6
+ import { u } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
+ const f = s.div`
8
8
  width: 100%;
9
9
  position: relative;
10
10
  background-color: ${(e) => a(
@@ -31,13 +31,13 @@ const h = s.div`
31
31
  border-radius: ${(e) => e.progressPercentage == 100 ? "5px" : "5px 0px 0px 5px"};
32
32
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
33
33
  `, y = s.label`
34
- ${(e) => u(e.theme, "Progress", e.size, "enabled")};
34
+ ${(e) => h(e.theme, "Progress", e.size, "enabled")};
35
35
  position: absolute;
36
36
  top: 50%;
37
37
  left: 50%;
38
38
  transform: translate(-50%, -50%);
39
39
  color: ${(e) => a(e.theme, "Progress", e.color, "enabled", "text")};
40
- `, x = p.forwardRef((e, w) => {
40
+ `, x = b((e, w) => {
41
41
  const {
42
42
  id: $ = "",
43
43
  showLabel: t = !1,
@@ -49,21 +49,32 @@ const h = s.div`
49
49
  size: i = "small",
50
50
  color: m = "primary",
51
51
  ...d
52
- } = e, o = f();
53
- return /* @__PURE__ */ l(h, { style: g, className: "lnc-ui-progress " + c, theme: o, size: i, showLabel: t, ...d, children: [
54
- /* @__PURE__ */ b(
55
- P,
56
- {
57
- progressPercentage: n,
58
- theme: o,
59
- color: m
60
- }
61
- ),
62
- t && /* @__PURE__ */ l(y, { theme: o, size: i, children: [
63
- n,
64
- "%"
65
- ] })
66
- ] });
52
+ } = e, o = u();
53
+ return /* @__PURE__ */ l(
54
+ f,
55
+ {
56
+ style: g,
57
+ className: "lnc-ui-progress " + c,
58
+ theme: o,
59
+ size: i,
60
+ showLabel: t,
61
+ ...d,
62
+ children: [
63
+ /* @__PURE__ */ p(
64
+ P,
65
+ {
66
+ progressPercentage: n,
67
+ theme: o,
68
+ color: m
69
+ }
70
+ ),
71
+ t && /* @__PURE__ */ l(y, { theme: o, size: i, children: [
72
+ n,
73
+ "%"
74
+ ] })
75
+ ]
76
+ }
77
+ );
67
78
  });
68
79
  x.propTypes = {
69
80
  id: r.string,
@@ -1,4 +1,4 @@
1
- "use strict";const p=require("react/jsx-runtime"),n=require("react"),I=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),e=require("./index-DXnSjbfJ.cjs"),O=require("./RadioInput.cjs"),R=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),_=I.newStyled.div`
1
+ "use strict";const p=require("react/jsx-runtime"),n=require("react"),I=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),e=require("./index-BIlhCoy2.cjs"),O=require("./RadioInput.cjs"),R=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),_=I.newStyled.div`
2
2
  display: inline-flex;
3
3
  flex-direction: ${s=>s.inline===!0?"row":"column"};
4
4
  gap: 1.5rem;
@@ -1,25 +1,25 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import P, { useState as R, useEffect as j } from "react";
3
- import { n as z } from "./emotion-styled.browser.esm-BZSYYThs.js";
4
- import { P as e } from "./index-Ds9PUTwb.js";
2
+ import { forwardRef as P, useState as j, useEffect as z } from "react";
3
+ import { n as R } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { P as e } from "./index-BYnWp42a.js";
5
5
  import T from "./RadioInput.js";
6
- import { u as k } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
7
- const N = z.div`
6
+ import { u as k } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
+ const N = R.div`
8
8
  display: inline-flex;
9
9
  flex-direction: ${(r) => r.inline === !0 ? "row" : "column"};
10
10
  gap: 1.5rem;
11
11
  width: fit-content;
12
12
  box-sizing: border-box;
13
- `, S = P.forwardRef((r, s) => {
13
+ `, S = P((r, s) => {
14
14
  const {
15
15
  id: t = "",
16
- name: d,
16
+ name: m,
17
17
  value: o = null,
18
- disabled: m = !1,
18
+ disabled: d = !1,
19
19
  readOnly: p = !1,
20
20
  items: u = [],
21
21
  mapId: V = "id",
22
- mapValue: _ = "value",
22
+ mapValue: E = "value",
23
23
  radioProps: c,
24
24
  inline: f = !0,
25
25
  //----------------
@@ -33,15 +33,15 @@ const N = z.div`
33
33
  ...v
34
34
  } = r;
35
35
  var x = k();
36
- const [C, w] = R(null);
37
- j(() => {
36
+ const [C, w] = j(null);
37
+ z(() => {
38
38
  o !== C && w(o);
39
39
  }, [o]);
40
40
  var I = {
41
41
  color: h,
42
42
  theme: x,
43
43
  size: b,
44
- disabled: m,
44
+ disabled: d,
45
45
  readOnly: p
46
46
  };
47
47
  const O = (a, i) => {
@@ -64,7 +64,7 @@ const N = z.div`
64
64
  value: a.value,
65
65
  ...c,
66
66
  onChange: O,
67
- name: d
67
+ name: m
68
68
  },
69
69
  i
70
70
  ))
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-DXnSjbfJ.cjs"),o=require("./utils-hdRGTsQ7.cjs"),O=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.newStyled.label`
1
+ "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-BIlhCoy2.cjs"),o=require("./utils-DTAPpJXU.cjs"),O=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.newStyled.label`
2
2
  min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
3
3
  max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
4
4
  width: 100%;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as b, jsx as n } from "react/jsx-runtime";
2
- import P, { useState as j } from "react";
3
- import { n as g } from "./emotion-styled.browser.esm-BZSYYThs.js";
4
- import { P as i } from "./index-Ds9PUTwb.js";
5
- import { f, a as N, h as T, b as t } from "./utils-DEke8iwo.js";
6
- import { u as F } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
2
+ import { forwardRef as P, useState as j } from "react";
3
+ import { n as g } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { P as i } from "./index-BYnWp42a.js";
5
+ import { d as f, g as N, e as T, a as t } from "./utils-C52T57HO.js";
6
+ import { u as F } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
7
  const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
8
8
  min-height: ${(e) => f(e.theme, e.size)};
9
9
  max-height: ${(e) => f(e.theme, e.size)};
@@ -208,11 +208,11 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
208
208
  overflow: hidden;
209
209
  text-overflow: ellipsis;
210
210
  color: ${(e) => t(e.theme, "Radio", e.color, "enabled", "text")};
211
- `, K = P.forwardRef((e, y) => {
211
+ `, K = P((e, y) => {
212
212
  const {
213
213
  wrapperRef: w,
214
- className: R = "",
215
- style: k = {},
214
+ className: k = "",
215
+ style: R = {},
216
216
  color: $ = "primary",
217
217
  innerColor: v = "white",
218
218
  size: x = "small",
@@ -241,8 +241,8 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
241
241
  {
242
242
  ...u,
243
243
  ref: w,
244
- className: R,
245
- style: k,
244
+ className: k,
245
+ style: R,
246
246
  tabIndex: -1,
247
247
  readOnly: s,
248
248
  focused: B,
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./index-DXnSjbfJ.cjs"),o=require("react"),a=require("./utils-hdRGTsQ7.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),F=require("./useUpdateEffect-BtMgpgIV.cjs"),L=({theme:e,size:i})=>{var c=a.getSizeValueWithUnits(e,i);return`
1
+ "use strict";const t=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./index-BIlhCoy2.cjs"),o=require("react"),a=require("./utils-DTAPpJXU.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),F=require("./useUpdateEffect-BtMgpgIV.cjs"),L=({theme:e,size:i})=>{var c=a.getSizeValueWithUnits(e,i);return`
2
2
  min-height: ${c};
3
3
  max-height: ${c};
4
4
  `},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},W=y.newStyled.div`
@@ -1,12 +1,12 @@
1
1
  import { jsxs as O, jsx as t, Fragment as W } from "react/jsx-runtime";
2
- import { n as x } from "./emotion-styled.browser.esm-BZSYYThs.js";
3
- import { P as n } from "./index-Ds9PUTwb.js";
4
- import _, { useRef as X, useState as v, useCallback as q, useEffect as M } from "react";
5
- import { c as A, b as o, a as D, f as G } from "./utils-DEke8iwo.js";
6
- import { u as H } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
7
- import { u as J } from "./useUpdateEffect-CuYWz7EA.js";
8
- const K = ({ theme: e, size: i }) => {
9
- var u = G(e, i);
2
+ import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
3
+ import { P as n } from "./index-BYnWp42a.js";
4
+ import { forwardRef as X, useRef as q, useState as v, useCallback as A, useEffect as M } from "react";
5
+ import { b as D, a as o, g as G, d as H } from "./utils-C52T57HO.js";
6
+ import { u as J } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
+ import { u as K } from "./useUpdateEffect-CuYWz7EA.js";
8
+ const Q = ({ theme: e, size: i }) => {
9
+ var u = H(e, i);
10
10
  return `
11
11
  min-height: ${u};
12
12
  max-height: ${u};
@@ -15,9 +15,9 @@ const K = ({ theme: e, size: i }) => {
15
15
  small: "0.875rem",
16
16
  medium: "1.125rem",
17
17
  large: "1.375rem"
18
- }, Q = x.div`
18
+ }, Y = x.div`
19
19
  position: relative;
20
- ${(e) => K(e)};
20
+ ${(e) => Q(e)};
21
21
  display: inline-flex;
22
22
  align-items: center;
23
23
  `, T = x.input`
@@ -31,7 +31,7 @@ const K = ({ theme: e, size: i }) => {
31
31
  background: ${(e) => e.rangeBackground};
32
32
  transition: background 450ms ease-in;
33
33
  -webkit-appearance: none;
34
- border-radius: ${(e) => A(e.theme, "regular")};
34
+ border-radius: ${(e) => D(e.theme, "regular")};
35
35
  &::-webkit-slider-thumb {
36
36
  -webkit-appearance: none; /* Override default look */
37
37
  appearance: none;
@@ -62,12 +62,12 @@ const K = ({ theme: e, size: i }) => {
62
62
  cursor: pointer; /* Cursor on hover */
63
63
  border: none;
64
64
  }
65
- `, Y = x.div`
65
+ `, Z = x.div`
66
66
  display: flex;
67
67
  flex-direction: column;
68
68
  align-items: center;
69
69
  position: absolute;
70
- ${(e) => D(e.theme, "Range", e.size, "enabled")};
70
+ ${(e) => G(e.theme, "Range", e.size, "enabled")};
71
71
  left: ${(e) => `calc(${e.inputValue + "%"} + (${8 - e.inputValue * 0.15}px))`};
72
72
  top: ${(e) => "calc(-" + g[e.size] + ")"};
73
73
  transform: translateX(-50%);
@@ -107,7 +107,7 @@ const K = ({ theme: e, size: i }) => {
107
107
  }
108
108
  }
109
109
  }
110
- `, Z = _.forwardRef((e, i) => {
110
+ `, _ = X((e, i) => {
111
111
  const {
112
112
  defaultValue: u,
113
113
  value: d = null,
@@ -123,8 +123,8 @@ const K = ({ theme: e, size: i }) => {
123
123
  size: B = "small",
124
124
  className: E = "",
125
125
  style: j = {},
126
- ...R
127
- } = e, y = X(), m = H(), b = { theme: m, size: B, color: s, className: E, style: j }, C = o(
126
+ ...y
127
+ } = e, C = q(), m = J(), b = { theme: m, size: B, color: s, className: E, style: j }, R = o(
128
128
  m,
129
129
  "Range",
130
130
  s,
@@ -138,11 +138,11 @@ const K = ({ theme: e, size: i }) => {
138
138
  l ? "disabled" : "enabled",
139
139
  "background"
140
140
  )
141
- ), [z, U] = v(), [L, p] = v(), f = q(
141
+ ), [z, U] = v(), [L, p] = v(), f = A(
142
142
  (a) => Math.round((a - c) / (h - c) * 100),
143
143
  [c, h]
144
144
  ), [r, I] = v(d || u);
145
- J(() => {
145
+ K(() => {
146
146
  I(d);
147
147
  }, [d]), M(() => {
148
148
  P(r || 0);
@@ -163,20 +163,20 @@ const K = ({ theme: e, size: i }) => {
163
163
  U(
164
164
  `linear-gradient(to right, ${S} 0%, ${S} ${f(
165
165
  a
166
- )}%, ${C} ${f(a)}%, ${C} 100%)`
166
+ )}%, ${R} ${f(a)}%, ${R} 100%)`
167
167
  );
168
168
  }, N = (a) => {
169
169
  I(a.target.value), k && k(a);
170
170
  };
171
- return /* @__PURE__ */ O(Q, { ...b, children: [
172
- L && r && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ O(Y, { ...b, inputValue: f(r), children: [
171
+ return /* @__PURE__ */ O(Y, { ...b, children: [
172
+ L && r && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ O(Z, { ...b, inputValue: f(r), children: [
173
173
  /* @__PURE__ */ t("div", { className: "text-content", children: r }),
174
174
  /* @__PURE__ */ t("div", { className: "arrow", children: /* @__PURE__ */ t("div", { className: "outer", children: /* @__PURE__ */ t("div", { className: "inner" }) }) })
175
175
  ] }) }),
176
176
  d == null || d == "undefined" ? /* @__PURE__ */ t(
177
177
  T,
178
178
  {
179
- ref: i || y,
179
+ ref: i || C,
180
180
  id: "fader",
181
181
  type: "range",
182
182
  min: c,
@@ -194,12 +194,12 @@ const K = ({ theme: e, size: i }) => {
194
194
  onInput: V,
195
195
  onChange: N,
196
196
  ...b,
197
- ...R
197
+ ...y
198
198
  }
199
199
  ) : /* @__PURE__ */ t(
200
200
  T,
201
201
  {
202
- ref: i || y,
202
+ ref: i || C,
203
203
  id: "fader",
204
204
  type: "range",
205
205
  min: c,
@@ -217,12 +217,12 @@ const K = ({ theme: e, size: i }) => {
217
217
  onInput: V,
218
218
  onChange: N,
219
219
  ...b,
220
- ...R
220
+ ...y
221
221
  }
222
222
  )
223
223
  ] });
224
224
  });
225
- Z.propTypes = {
225
+ _.propTypes = {
226
226
  value: n.number,
227
227
  defaultValue: n.number,
228
228
  min: n.number,
@@ -249,5 +249,5 @@ Z.propTypes = {
249
249
  ])
250
250
  };
251
251
  export {
252
- Z as default
252
+ _ as default
253
253
  };
@@ -1,4 +1,4 @@
1
- "use strict";const h=require("react/jsx-runtime"),d=require("react"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),p=require("./index-DXnSjbfJ.cjs"),oe=require("./Chip.cjs"),se=require("./emotion-react.browser.esm-DQBL7Wls.cjs"),ae=require("./ThemeProvider.cjs"),_=require("./objectWithoutPropertiesLoose-Bz3hwpmU.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),B=require("./setPrototypeOf-4aSEnBDm.cjs"),D=require("./index-C29T0m2a.cjs"),le=se.keyframes`
1
+ "use strict";const h=require("react/jsx-runtime"),d=require("react"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),p=require("./index-BIlhCoy2.cjs"),oe=require("./Chip.cjs"),se=require("./emotion-react.browser.esm-D7h2t2Bz.cjs"),ae=require("./ThemeProvider.cjs"),_=require("./objectWithoutPropertiesLoose-Bz3hwpmU.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),B=require("./setPrototypeOf-4aSEnBDm.cjs"),D=require("./index-Ct1N7fF4.cjs"),le=se.keyframes`
2
2
  from {
3
3
  opacity: 0;
4
4
  }