@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
@@ -1,200 +1,184 @@
1
- import { jsx as a, jsxs as s, Fragment as k } from "react/jsx-runtime";
2
- import { forwardRef as v } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
4
- import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import W from "./FlexGrid.js";
6
- import A from "./FlexGridItem.js";
7
- import { c as Y, b as B, g as U, a as q } from "./utils-DtEfC-TX.js";
8
- import { u as E } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
- import H from "./Button.js";
10
- import c from "./IconButton.js";
11
- const J = f.label`
1
+ import { jsx as r, jsxs as i, Fragment as T } from "react/jsx-runtime";
2
+ import { forwardRef as w } from "react";
3
+ import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import j from "./FlexGrid.js";
5
+ import W from "./FlexGridItem.js";
6
+ import { c as A, b as C, g as O, a as U } from "./utils-DtEfC-TX.js";
7
+ import { u as P } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ import Y from "./Button.js";
9
+ import d from "./IconButton.js";
10
+ const q = u.label`
12
11
  display: block;
13
12
  margin-bottom: 4px;
14
- ${(o) => Y(o.theme, "FormField", o.size, "enabled")}
15
- color: ${(o) => B(
16
- o.theme,
13
+ ${(e) => A(e.theme, "FormField", e.size, "enabled")}
14
+ color: ${(e) => C(
15
+ e.theme,
17
16
  "FormField",
18
- o.color,
17
+ e.color,
19
18
  "enabled",
20
19
  "text"
21
20
  )};
22
- `, g = v((o, m) => {
21
+ `, v = w((e, c) => {
23
22
  const {
24
23
  size: h = "small",
25
- color: n = "primary",
26
- className: r = "",
27
- style: b = {},
28
- children: p
29
- } = o, u = E();
30
- return /* @__PURE__ */ a(
31
- J,
24
+ color: s = "primary",
25
+ className: l = "",
26
+ style: m = {},
27
+ children: b
28
+ } = e, p = P();
29
+ return /* @__PURE__ */ r(
30
+ q,
32
31
  {
33
- theme: u,
32
+ theme: p,
34
33
  size: h,
35
- className: "lnc-ui-label " + r,
36
- style: b,
37
- color: n,
38
- ref: m,
39
- children: p
34
+ className: "lnc-ui-label " + l,
35
+ style: m,
36
+ color: s,
37
+ ref: c,
38
+ children: b
40
39
  }
41
40
  );
42
41
  });
43
- g.defaultProps = {
42
+ v.defaultProps = {
44
43
  style: {},
45
44
  size: "small",
46
45
  color: "primary"
47
46
  };
48
- g.propTypes = {
49
- className: e.string,
50
- style: e.object,
51
- size: e.oneOf(["small", "medium", "large"]),
52
- color: e.oneOf([
53
- "primary",
54
- "secondary",
55
- "success",
56
- "danger",
57
- "warning",
58
- "information",
59
- "neutral",
60
- "gray"
61
- ])
62
- };
63
- const P = f.div`
47
+ const k = u.div`
64
48
  display: flex;
65
49
  justify-content: space-between;
66
- `, K = f.div`
50
+ `, H = u.div`
67
51
  display: flex;
68
52
  flex-direction: column;
69
53
  gap: 1rem;
70
- box-shadow: ${(o) => U(
71
- o.theme,
54
+ box-shadow: ${(e) => O(
55
+ e.theme,
72
56
  "Popover",
73
- o.color,
57
+ e.color,
74
58
  "enabled",
75
59
  "boxShadow"
76
60
  )};
77
- border-radius: ${(o) => q(o.theme, o.borderRadius)};
61
+ border-radius: ${(e) => U(e.theme, e.borderRadius)};
78
62
  border-top: 1px solid rgba(0, 0, 0, 0.04);
79
63
  padding: 12px;
80
- background-color: ${(o) => B(o.theme, "Popover", "default", "enabled", "bg")};
81
- `, N = v((o, m) => {
64
+ background-color: ${(e) => C(e.theme, "Popover", "default", "enabled", "bg")};
65
+ `, J = w((e, c) => {
82
66
  const {
83
67
  // eslint-disable-next-line no-unused-vars
84
68
  __TYPE__: h = "DETAILS_VIEW",
85
- goToPreviousView: n,
86
- data: r = {},
87
- fields: b = {},
88
- flexGridProps: p,
89
- goBackText: u = "Go back",
90
- showBack: C = !0,
91
- showNext: _ = !0,
92
- showPrevious: G = !0,
93
- showEdit: y = !0,
94
- disableGoBack: V = !1,
95
- disableNext: F = !1,
96
- disablePrevious: j = !1,
97
- disableEdit: x = !1,
98
- editOnTop: T = !1,
69
+ goToPreviousView: s,
70
+ data: l = {},
71
+ fields: m = {},
72
+ flexGridProps: b,
73
+ goBackText: p = "Go back",
74
+ showBack: B = !0,
75
+ showNext: E = !0,
76
+ showPrevious: V = !0,
77
+ showEdit: f = !0,
78
+ disableGoBack: F = !1,
79
+ disableNext: N = !1,
80
+ disablePrevious: G = !1,
81
+ disableEdit: g = !1,
82
+ editOnTop: y = !1,
99
83
  //------------------
100
- goToNext: z = () => {
84
+ goToNext: I = () => {
101
85
  },
102
- goToPrevious: I = () => {
86
+ goToPrevious: S = () => {
103
87
  },
104
- onEdit: w = () => {
88
+ onEdit: x = () => {
105
89
  },
106
- goBack: O = () => {
90
+ goBack: _ = () => {
107
91
  },
108
92
  //------------------
109
- className: S = "",
110
- color: i = "primary",
111
- size: t = "small",
112
- children: $,
113
- ...R
114
- } = o, D = E(), L = (l, d) => {
115
- n && n(), O(l, d);
93
+ className: $ = "",
94
+ color: t = "primary",
95
+ size: a = "small",
96
+ children: R,
97
+ ...z
98
+ } = e, D = P(), L = (o, n) => {
99
+ s && s(), _(o, n);
116
100
  };
117
- return /* @__PURE__ */ s(
118
- K,
101
+ return /* @__PURE__ */ i(
102
+ H,
119
103
  {
120
- ref: m,
104
+ ref: c,
121
105
  theme: D,
122
- color: i,
106
+ color: t,
123
107
  borderRadius: "regular",
124
- className: S,
125
- ...R,
108
+ className: $,
109
+ ...z,
126
110
  children: [
127
- /* @__PURE__ */ s(P, { children: [
128
- C && /* @__PURE__ */ a(
129
- H,
111
+ /* @__PURE__ */ i(k, { children: [
112
+ B && /* @__PURE__ */ r(
113
+ Y,
130
114
  {
131
115
  leadingIcon: "arrow-circle-left",
132
- text: u,
116
+ text: p,
133
117
  btnType: "outline",
134
118
  style: { width: "fit-content" },
135
- onClick: (l) => L(l, r),
136
- disabled: V,
137
- color: i,
138
- size: t
119
+ onClick: (o) => L(o, l),
120
+ disabled: F,
121
+ color: t,
122
+ size: a
139
123
  },
140
124
  0
141
125
  ),
142
- y && T && /* @__PURE__ */ a(
143
- c,
126
+ f && y && /* @__PURE__ */ r(
127
+ d,
144
128
  {
145
129
  btnType: "outline",
146
130
  icon: "pen",
147
- disabled: x,
148
- onClick: (l) => w(r, l),
149
- color: i,
150
- size: t
131
+ disabled: g,
132
+ onClick: (o) => x(l, o),
133
+ color: t,
134
+ size: a
151
135
  }
152
136
  )
153
137
  ] }),
154
- /* @__PURE__ */ a(k, { children: $ || /* @__PURE__ */ a(W, { spacing: 10, ...p, children: b.map((l, d) => /* @__PURE__ */ s(A, { ...l, children: [
155
- /* @__PURE__ */ s(g, { color: i, size: t, children: [
156
- l.label,
138
+ /* @__PURE__ */ r(T, { children: R || /* @__PURE__ */ r(j, { spacing: 10, ...b, children: m.map((o, n) => /* @__PURE__ */ i(W, { ...o, children: [
139
+ /* @__PURE__ */ i(v, { color: t, size: a, children: [
140
+ o.label,
157
141
  ":"
158
- ] }, d),
159
- r[l.accessor]
160
- ] }, d)) }) }),
161
- /* @__PURE__ */ s(P, { children: [
162
- /* @__PURE__ */ s("div", { children: [
163
- _ && /* @__PURE__ */ s(k, { children: [
164
- /* @__PURE__ */ a(
165
- c,
142
+ ] }, n),
143
+ l[o.accessor]
144
+ ] }, n)) }) }),
145
+ /* @__PURE__ */ i(k, { children: [
146
+ /* @__PURE__ */ i("div", { children: [
147
+ E && /* @__PURE__ */ i(T, { children: [
148
+ /* @__PURE__ */ r(
149
+ d,
166
150
  {
167
151
  btnType: "outline",
168
152
  icon: "angle-left",
169
- disabled: j,
170
- onClick: (l) => I(r, l),
171
- color: i,
172
- size: t
153
+ disabled: G,
154
+ onClick: (o) => S(l, o),
155
+ color: t,
156
+ size: a
173
157
  }
174
158
  ),
175
159
  "  "
176
160
  ] }),
177
- G && /* @__PURE__ */ a(
178
- c,
161
+ V && /* @__PURE__ */ r(
162
+ d,
179
163
  {
180
164
  btnType: "outline",
181
165
  icon: "angle-right",
182
- disabled: F,
183
- onClick: (l) => z(r, l),
184
- color: i,
185
- size: t
166
+ disabled: N,
167
+ onClick: (o) => I(l, o),
168
+ color: t,
169
+ size: a
186
170
  }
187
171
  )
188
172
  ] }),
189
- y && !T && /* @__PURE__ */ a(
190
- c,
173
+ f && !y && /* @__PURE__ */ r(
174
+ d,
191
175
  {
192
176
  btnType: "outline",
193
177
  icon: "pen",
194
- disabled: x,
195
- onClick: (l) => w(r, l),
196
- color: i,
197
- size: t
178
+ disabled: g,
179
+ onClick: (o) => x(l, o),
180
+ color: t,
181
+ size: a
198
182
  }
199
183
  )
200
184
  ] })
@@ -202,42 +186,7 @@ const P = f.div`
202
186
  }
203
187
  );
204
188
  });
205
- N.propTypes = {
206
- __TYPE__: e.string,
207
- goBackText: e.string,
208
- fields: e.array,
209
- data: e.object,
210
- showBack: e.bool,
211
- showNext: e.bool,
212
- showPrevious: e.bool,
213
- showEdit: e.bool,
214
- disableGoBack: e.bool,
215
- disableNext: e.bool,
216
- disablePrevious: e.bool,
217
- disableEdit: e.bool,
218
- flexGridProps: e.any,
219
- editOnTop: e.bool,
220
- //-----------------------------------------------------------
221
- goToNext: e.func,
222
- goToPrevious: e.func,
223
- onEdit: e.func,
224
- goBack: e.func,
225
- //------------------------------------------------------------
226
- className: e.string,
227
- style: e.object,
228
- color: e.oneOf([
229
- "primary",
230
- "secondary",
231
- "success",
232
- "warning",
233
- "danger",
234
- "information",
235
- "neutral",
236
- "gray"
237
- ]),
238
- size: e.oneOf(["small", "medium", "large"])
239
- };
240
- N.displayName = "DETAILS_VIEW";
189
+ J.displayName = "DETAILS_VIEW";
241
190
  export {
242
- N as default
191
+ J as default
243
192
  };
@@ -1,12 +1,12 @@
1
- "use strict";const t=require("react/jsx-runtime"),s=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./index-BpbMKBf_.cjs"),o=require("./utils-RnrgDDZP.cjs"),C=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=({theme:e,size:y})=>{var u=o.getSizeValueWithUnits(e,y);return`
2
- min-height: ${u};
3
- max-height: ${u};
4
- `},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},S=v.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),i=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-RnrgDDZP.cjs"),z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=({theme:e,size:p})=>{var d=s.getSizeValueWithUnits(e,p);return`
2
+ min-height: ${d};
3
+ max-height: ${d};
4
+ `},m={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},S=f.styled.div`
5
5
  display: flex;
6
6
  align-items: center;
7
7
  justify-content: center;
8
8
  position: relative;
9
- ${e=>N(e)};
9
+ ${e=>C(e)};
10
10
 
11
11
  /* Removing the default appearance */
12
12
  & > :is(.thumb, .thumb::-webkit-slider-thumb) {
@@ -34,10 +34,10 @@
34
34
  & > .thumb::-webkit-slider-thumb {
35
35
  -webkit-appearance: none; /* Override default look */
36
36
  appearance: none;
37
- width: ${e=>b[e.size]}; /* Set a specific slider handle width */
38
- height: ${e=>b[e.size]}; /* Slider handle height */
37
+ width: ${e=>m[e.size]}; /* Set a specific slider handle width */
38
+ height: ${e=>m[e.size]}; /* Slider handle height */
39
39
  border-radius: 50%;
40
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
40
+ background-color: ${e=>s.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
41
41
  cursor: pointer; /* Cursor on hover */
42
42
  border: none;
43
43
  pointer-events: all;
@@ -45,15 +45,15 @@
45
45
 
46
46
  /* For Firefox browsers */
47
47
  & > .thumb::-moz-range-thumb {
48
- width: ${e=>b[e.size]}; /* Set a specific slider handle width */
49
- height: ${e=>b[e.size]}; /* Slider handle height */
48
+ width: ${e=>m[e.size]}; /* Set a specific slider handle width */
49
+ height: ${e=>m[e.size]}; /* Slider handle height */
50
50
  border-radius: 50%;
51
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
51
+ background-color: ${e=>s.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
52
52
  cursor: pointer; /* Cursor on hover */
53
53
  border: none;
54
54
  pointer-events: all;
55
55
  }
56
- `,T=v.styled.div`
56
+ `,N=f.styled.div`
57
57
  position: relative;
58
58
  width: 100%;
59
59
  height: 0.25rem;
@@ -67,29 +67,29 @@
67
67
  }
68
68
 
69
69
  & > .slider__track {
70
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Range",e.color,"enabled","unfilled")};
70
+ background-color: ${e=>s.getColorRgbaValue(e.theme,"Range",e.color,"enabled","unfilled")};
71
71
  width: 100%;
72
72
  z-index: 1;
73
- border-radius: ${e=>o.getBorderRadiusValueWithUnits(e.theme,"regular")};
73
+ border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,"regular")};
74
74
  }
75
75
 
76
76
  & > .slider__range {
77
- border-radius: ${e=>o.getBorderRadiusValueWithUnits(e.theme,"regular")};
78
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
77
+ border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,"regular")};
78
+ background-color: ${e=>s.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
79
79
  z-index: 2;
80
80
  }
81
- `,R=v.styled.div`
81
+ `,R=f.styled.div`
82
82
  display: flex;
83
83
  flex-direction: column;
84
84
  align-items: center;
85
85
  position: absolute;
86
86
  left: ${e=>`calc(${e.inputValue+"%"} + (${8-e.inputValue*.15}px))`};
87
- top: ${e=>"calc(-"+b[e.size]+")"};
87
+ top: ${e=>"calc(-"+m[e.size]+")"};
88
88
  transform: translateX(-50%);
89
- ${e=>o.getComponentTypographyCss(e.theme,"Range",e.size,"enabled")};
89
+ ${e=>s.getComponentTypographyCss(e.theme,"Range",e.size,"enabled")};
90
90
  & > .text-content {
91
91
  color: white;
92
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
92
+ background-color: ${e=>s.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
93
93
  border-radius: 3px;
94
94
  z-index: 2;
95
95
  padding: 2px 6px;
@@ -101,7 +101,7 @@
101
101
  & > .inner {
102
102
  width: 8px;
103
103
  height: 8px;
104
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
104
+ background-color: ${e=>s.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
105
105
  transform: rotate(45deg);
106
106
  position: absolute;
107
107
  top: -6px;
@@ -111,4 +111,4 @@
111
111
  }
112
112
  }
113
113
  }
114
- `,j=s.forwardRef((e,y)=>{const{minValue:u=null,maxValue:f=null,min:h=0,max:m=100,disabled:g=!1,onChange:w=()=>{},color:V="primary",size:P="small",...z}=e,x={theme:C.useTheme(),size:P,color:V},[_,p]=s.useState(),[r,$]=s.useState(u),[n,k]=s.useState(f);s.useEffect(()=>{$(u),k(f)},[u,f]);const c=s.useRef(null),l=s.useCallback(a=>Math.round((a-h)/(m-h)*100),[h,m]);return s.useEffect(()=>{const a=l(r),d=l(n);c.current&&(c.current.style.left=`${a}%`,c.current.style.width=`${d-a}%`)},[r,l]),s.useEffect(()=>{const a=l(r),d=l(n);c.current&&(c.current.style.width=`${d-a}%`)},[n,l]),s.useEffect(()=>{w({min:r,max:n})},[r,n,w]),t.jsxs(S,{disabled:g,...x,...z,children:[_&&r&&t.jsx(t.Fragment,{children:t.jsxs(R,{...x,inputValue:l(r),disabled:g,children:[t.jsx("div",{className:"text-content",children:r}),t.jsx("div",{className:"arrow",children:t.jsx("div",{className:"outer",children:t.jsx("div",{className:"inner"})})})]})}),_&&n&&t.jsx(t.Fragment,{children:t.jsxs(R,{...x,inputValue:l(n),disabled:g,children:[t.jsx("div",{className:"text-content",children:n}),t.jsx("div",{className:"arrow",children:t.jsx("div",{className:"outer",children:t.jsx("div",{className:"inner"})})})]})}),t.jsx("input",{type:"range",min:h,max:m,value:r|"",onChange:a=>{const d=Math.min(Number(a.target.value),n-1);$(d)},className:"thumb thumb--left",style:{zIndex:r>m-100&&"5"},onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)}}),t.jsx("input",{type:"range",min:h,max:m,value:n|"",onChange:a=>{const d=Math.max(Number(a.target.value),r+1);k(d)},className:"thumb thumb--right",onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)}}),t.jsxs(T,{...x,disabled:g,children:[t.jsx("div",{className:"slider__track"}),t.jsx("div",{ref:c,className:"slider__range"})]})]})});j.propTypes={minValue:i.PropTypes.number,maxValue:i.PropTypes.number,min:i.PropTypes.number,max:i.PropTypes.number,disabled:i.PropTypes.bool,onChange:i.PropTypes.func,className:i.PropTypes.string,style:i.PropTypes.object,size:i.PropTypes.oneOf(["small","medium","large"]),color:i.PropTypes.oneOf(["primary","secondary","success","danger","warning","disabled","information","neutral","gray"])};module.exports=j;
114
+ `,M=i.forwardRef((e,p)=>{const{minValue:d=null,maxValue:v=null,min:c=0,max:h=100,disabled:g=!1,onChange:w=()=>{},color:j="primary",size:V="small",...y}=e,b={theme:z.useTheme(),size:V,color:j},[_,x]=i.useState(),[r,$]=i.useState(d),[a,k]=i.useState(v);i.useEffect(()=>{$(d),k(v)},[d,v]);const u=i.useRef(null),l=i.useCallback(n=>Math.round((n-c)/(h-c)*100),[c,h]);return i.useEffect(()=>{const n=l(r),o=l(a);u.current&&(u.current.style.left=`${n}%`,u.current.style.width=`${o-n}%`)},[r,l]),i.useEffect(()=>{const n=l(r),o=l(a);u.current&&(u.current.style.width=`${o-n}%`)},[a,l]),i.useEffect(()=>{w({min:r,max:a})},[r,a,w]),t.jsxs(S,{disabled:g,...b,...y,children:[_&&r&&t.jsx(t.Fragment,{children:t.jsxs(R,{...b,inputValue:l(r),disabled:g,children:[t.jsx("div",{className:"text-content",children:r}),t.jsx("div",{className:"arrow",children:t.jsx("div",{className:"outer",children:t.jsx("div",{className:"inner"})})})]})}),_&&a&&t.jsx(t.Fragment,{children:t.jsxs(R,{...b,inputValue:l(a),disabled:g,children:[t.jsx("div",{className:"text-content",children:a}),t.jsx("div",{className:"arrow",children:t.jsx("div",{className:"outer",children:t.jsx("div",{className:"inner"})})})]})}),t.jsx("input",{type:"range",min:c,max:h,value:r|"",onChange:n=>{const o=Math.min(Number(n.target.value),a-1);$(o)},className:"thumb thumb--left",style:{zIndex:r>h-100&&"5"},onMouseEnter:()=>{x(!0)},onMouseLeave:()=>{x(!1)}}),t.jsx("input",{type:"range",min:c,max:h,value:a|"",onChange:n=>{const o=Math.max(Number(n.target.value),r+1);k(o)},className:"thumb thumb--right",onMouseEnter:()=>{x(!0)},onMouseLeave:()=>{x(!1)}}),t.jsxs(N,{...b,disabled:g,children:[t.jsx("div",{className:"slider__track"}),t.jsx("div",{ref:u,className:"slider__range"})]})]})});module.exports=M;