@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
package/dist/FormView.js CHANGED
@@ -1,164 +1,163 @@
1
- import { jsxs as m, jsx as r, Fragment as g } from "react/jsx-runtime";
2
- import { forwardRef as W } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
4
- import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
1
+ import { jsxs as m, jsx as e, Fragment as b } from "react/jsx-runtime";
2
+ import { forwardRef as E } from "react";
3
+ import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
4
  import M from "./FlexGrid.js";
6
- import Y from "./FlexGridItem.js";
5
+ import O from "./FlexGridItem.js";
7
6
  import f from "./Button.js";
8
- import x from "./IconButton.js";
7
+ import g from "./IconButton.js";
9
8
  import U from "./TextInput.js";
10
- import q from "./CheckBoxInput.js";
11
- import H from "./RadioGroup.js";
12
- import J from "./NumberInput.js";
13
- import K from "./DecimalInput.js";
14
- import L from "./PasswordInput.js";
15
- import Q from "./TextAreaInput.js";
16
- import X from "./TimeInput.js";
17
- import Z from "./ColorInput.js";
18
- import z from "./FileInput.js";
19
- import ee from "./RangeSlider.js";
20
- import { g as re, a as te, b as oe } from "./utils-DtEfC-TX.js";
21
- import ae from "./FormField.js";
22
- import { u as ne } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
23
- const ie = y.div`
9
+ import _ from "./CheckBoxInput.js";
10
+ import q from "./RadioGroup.js";
11
+ import H from "./NumberInput.js";
12
+ import J from "./DecimalInput.js";
13
+ import K from "./PasswordInput.js";
14
+ import L from "./TextAreaInput.js";
15
+ import P from "./TimeInput.js";
16
+ import Q from "./ColorInput.js";
17
+ import X from "./FileInput.js";
18
+ import Y from "./RangeSlider.js";
19
+ import { g as Z, a as z, b as ee } from "./utils-DtEfC-TX.js";
20
+ import re from "./FormField.js";
21
+ import { u as te } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
22
+ const ae = x.div`
24
23
  display: flex;
25
24
  justify-content: space-between;
26
- `, le = y.form`
25
+ `, oe = x.form`
27
26
  display: flex;
28
27
  flex-direction: column;
29
28
  gap: 1rem;
30
- box-shadow: ${(d) => re(
31
- d.theme,
29
+ box-shadow: ${(l) => Z(
30
+ l.theme,
32
31
  "Popover",
33
- d.color,
32
+ l.color,
34
33
  "enabled",
35
34
  "boxShadow"
36
35
  )};
37
- border-radius: ${(d) => te(d.theme, d.borderRadius)};
36
+ border-radius: ${(l) => z(l.theme, l.borderRadius)};
38
37
  border-top: 1px solid rgba(0, 0, 0, 0.04);
39
38
  padding: 12px;
40
- background-color: ${(d) => oe(d.theme, "Popover", "default", "enabled", "bg")};
41
- `, de = (d, a, l, n, i, o) => {
42
- var c;
43
- switch (d || "") {
39
+ background-color: ${(l) => ee(l.theme, "Popover", "default", "enabled", "bg")};
40
+ `, ne = (l, a, o, n, t, d) => {
41
+ var i;
42
+ switch (l || "") {
44
43
  case "text":
45
- return /* @__PURE__ */ r(
44
+ return /* @__PURE__ */ e(
46
45
  U,
47
46
  {
48
- name: l,
49
- color: i,
50
- size: o,
47
+ name: o,
48
+ color: t,
49
+ size: d,
51
50
  ...a,
52
51
  defaultValue: n
53
52
  }
54
53
  );
55
54
  case "checkbox":
56
- return /* @__PURE__ */ r(
57
- q,
55
+ return /* @__PURE__ */ e(
56
+ _,
58
57
  {
59
- color: i,
60
- size: o,
61
- name: l,
58
+ color: t,
59
+ size: d,
60
+ name: o,
62
61
  ...a
63
62
  }
64
63
  );
65
64
  case "radioGroup":
66
- return /* @__PURE__ */ r(
67
- H,
65
+ return /* @__PURE__ */ e(
66
+ q,
68
67
  {
69
- color: i,
70
- size: o,
68
+ color: t,
69
+ size: d,
71
70
  value: n,
72
71
  radioProps: a.radioProps,
73
- name: l,
72
+ name: o,
74
73
  items: [
75
- ...(c = a.items) == null ? void 0 : c.map((s) => ({ value: s.value, label: s.label }))
74
+ ...((i = a.items) == null ? void 0 : i.map((u) => ({ value: u.value, label: u.label }))) ?? []
76
75
  ]
77
76
  }
78
77
  );
79
78
  case "number":
80
- return /* @__PURE__ */ r(
81
- J,
79
+ return /* @__PURE__ */ e(
80
+ H,
82
81
  {
83
- color: i,
84
- size: o,
85
- name: l,
82
+ color: t,
83
+ size: d,
84
+ name: o,
86
85
  ...a,
87
86
  defaultValue: n
88
87
  }
89
88
  );
90
89
  case "decimal":
91
- return /* @__PURE__ */ r(
92
- K,
90
+ return /* @__PURE__ */ e(
91
+ J,
93
92
  {
94
- name: l,
95
- color: i,
96
- size: o,
93
+ name: o,
94
+ color: t,
95
+ size: d,
97
96
  ...a,
98
97
  defaultValue: n
99
98
  }
100
99
  );
101
100
  case "file":
102
- return /* @__PURE__ */ r(
103
- z,
101
+ return /* @__PURE__ */ e(
102
+ X,
104
103
  {
105
- name: l,
106
- color: i,
107
- size: o,
104
+ name: o,
105
+ color: t,
106
+ size: d,
108
107
  ...a,
109
108
  defaultValue: n
110
109
  }
111
110
  );
112
111
  case "password":
113
- return /* @__PURE__ */ r(
114
- L,
112
+ return /* @__PURE__ */ e(
113
+ K,
115
114
  {
116
- name: l,
117
- color: i,
115
+ name: o,
116
+ color: t,
118
117
  ...a,
119
118
  defaultValue: n
120
119
  }
121
120
  );
122
121
  case "textArea":
123
- return /* @__PURE__ */ r(
124
- Q,
122
+ return /* @__PURE__ */ e(
123
+ L,
125
124
  {
126
- name: l,
127
- color: i,
128
- size: o,
125
+ name: o,
126
+ color: t,
127
+ size: d,
129
128
  ...a,
130
129
  defaultValue: n
131
130
  }
132
131
  );
133
132
  case "time":
134
- return /* @__PURE__ */ r(
135
- X,
133
+ return /* @__PURE__ */ e(
134
+ P,
136
135
  {
137
- name: l,
138
- color: i,
139
- size: o,
136
+ name: o,
137
+ color: t,
138
+ size: d,
140
139
  ...a,
141
140
  defaultValue: n
142
141
  }
143
142
  );
144
143
  case "color":
145
- return /* @__PURE__ */ r(
146
- Z,
144
+ return /* @__PURE__ */ e(
145
+ Q,
147
146
  {
148
- name: l,
149
- color: i,
150
- size: o,
147
+ name: o,
148
+ color: t,
149
+ size: d,
151
150
  ...a,
152
151
  defaultValue: n
153
152
  }
154
153
  );
155
154
  case "range":
156
- return /* @__PURE__ */ r(
157
- ee,
155
+ return /* @__PURE__ */ e(
156
+ Y,
158
157
  {
159
- name: l,
160
- color: i,
161
- size: o,
158
+ name: o,
159
+ color: t,
160
+ size: d,
162
161
  ...a,
163
162
  defaultValue: n
164
163
  }
@@ -166,189 +165,143 @@ const ie = y.div`
166
165
  default:
167
166
  return n;
168
167
  }
169
- }, h = W((d, a) => {
168
+ }, de = E((l, a) => {
170
169
  const {
171
- __TYPE__: l = "FORM_VIEW",
172
- goToPreviousView: n,
173
- id: i,
174
- data: o,
175
- fields: c = [],
176
- errors: s = {},
177
- flexGridProps: T,
178
- goBackText: k = "Go back",
179
- backActive: v = !0,
170
+ goToPreviousView: o,
171
+ id: n,
172
+ data: t,
173
+ fields: d = [],
174
+ errors: i = {},
175
+ flexGridProps: u,
176
+ goBackText: h = "Go back",
177
+ backActive: y = !0,
180
178
  nextActive: I = !0,
181
- previousActive: V = !0,
182
- editActive: se,
183
- disableGoBack: w = !1,
184
- disableNext: B = !1,
185
- disablePrevious: C = !1,
186
- disableEdit: me,
187
- disableDiscard: A = !1,
179
+ previousActive: T = !0,
180
+ disableGoBack: V = !1,
181
+ disableNext: k = !1,
182
+ disablePrevious: w = !1,
183
+ disableDiscard: C = !1,
188
184
  disableSave: F = !1,
189
- discardText: G = "Discard",
190
- saveText: _ = "Save",
185
+ discardText: B = "Discard",
186
+ saveText: G = "Save",
191
187
  //------------------
192
188
  goToNext: R = () => {
193
189
  },
194
- goToPrevious: S = () => {
190
+ goToPrevious: v = () => {
195
191
  },
196
- onEdit: ce = () => {
192
+ goBack: S = () => {
197
193
  },
198
- goBack: N = () => {
194
+ onSubmit: A = () => {
199
195
  },
200
- onSubmit: E = () => {
201
- },
202
- onDiscard: P = () => {
196
+ onDiscard: D = () => {
203
197
  },
204
198
  //------------------
205
- className: ue = "",
206
- style: be = {},
207
- color: b = "primary",
199
+ color: c = "primary",
208
200
  size: p = "small",
209
- children: j,
210
- ...D
211
- } = d, O = ne(), $ = (t, u) => {
212
- n && n(), N(t, u);
201
+ children: N,
202
+ ...$
203
+ } = l, j = te(), W = (r, s) => {
204
+ o && o(), S(r, s);
213
205
  };
214
206
  return /* @__PURE__ */ m(
215
- le,
207
+ oe,
216
208
  {
217
209
  ref: a,
218
- theme: O,
219
- color: b,
210
+ theme: j,
211
+ color: c,
220
212
  borderRadius: "regular",
221
- ...D,
213
+ ...$,
222
214
  children: [
223
- v && /* @__PURE__ */ r(
215
+ y && /* @__PURE__ */ e(
224
216
  f,
225
217
  {
226
218
  leadingIcon: "arrow-circle-left",
227
- text: k,
219
+ text: h,
228
220
  btnType: "outline",
229
221
  style: { width: "fit-content" },
230
- onClick: (t) => $(t, o),
231
- disabled: w,
222
+ onClick: (r) => W(r, t),
223
+ disabled: V,
232
224
  type: "button"
233
225
  },
234
226
  0
235
227
  ),
236
- /* @__PURE__ */ r(g, { children: j || /* @__PURE__ */ r(M, { spacing: 10, ...T, children: c.map((t, u) => /* @__PURE__ */ r(Y, { ...t, children: /* @__PURE__ */ r(
237
- ae,
228
+ /* @__PURE__ */ e(b, { children: N || /* @__PURE__ */ e(M, { spacing: 10, ...u, children: d.map((r, s) => /* @__PURE__ */ e(O, { ...r, children: /* @__PURE__ */ e(
229
+ re,
238
230
  {
239
- label: t.label,
240
- text: s[t.accessor],
241
- color: s[t.accessor] ? "danger" : b,
231
+ label: r.label,
232
+ text: i[r.accessor],
233
+ color: i[r.accessor] ? "danger" : c,
242
234
  size: p,
243
- children: t.type == "custom" ? t.element : de(
244
- t.type,
245
- t.inputProps,
246
- t.accessor,
247
- o[t.accessor],
248
- s[t.accessor] ? "danger" : b,
235
+ children: r.type == "custom" ? r.element : ne(
236
+ r.type,
237
+ r.inputProps,
238
+ r.accessor,
239
+ t[r.accessor],
240
+ i[r.accessor] ? "danger" : c,
249
241
  p
250
242
  )
251
243
  },
252
- u
253
- ) }, u)) }) }),
254
- /* @__PURE__ */ m(ie, { children: [
244
+ s
245
+ ) }, s)) }) }),
246
+ /* @__PURE__ */ m(ae, { children: [
255
247
  /* @__PURE__ */ m("div", { children: [
256
- I && /* @__PURE__ */ m(g, { children: [
257
- /* @__PURE__ */ r(
258
- x,
248
+ I && /* @__PURE__ */ m(b, { children: [
249
+ /* @__PURE__ */ e(
250
+ g,
259
251
  {
260
252
  btnType: "outline",
261
253
  icon: "angle-left",
262
- disabled: C,
263
- onClick: (t) => S(o, t),
254
+ disabled: w,
255
+ onClick: (r) => v(t, r),
264
256
  type: "button"
265
257
  }
266
258
  ),
267
259
  "  "
268
260
  ] }),
269
- V && /* @__PURE__ */ r(
270
- x,
261
+ T && /* @__PURE__ */ e(
262
+ g,
271
263
  {
272
264
  btnType: "outline",
273
265
  icon: "angle-right",
274
- disabled: B,
275
- onClick: (t) => R(o, t),
266
+ disabled: k,
267
+ onClick: (r) => R(t, r),
276
268
  type: "button"
277
269
  }
278
270
  )
279
271
  ] }),
280
272
  /* @__PURE__ */ m("div", { children: [
281
- /* @__PURE__ */ r(
273
+ /* @__PURE__ */ e(
282
274
  f,
283
275
  {
284
276
  leadingIcon: "eraser",
285
277
  btnType: "outline",
286
278
  color: "warning",
287
- text: G,
288
- disabled: A,
289
- onClick: P,
279
+ text: B,
280
+ disabled: C,
281
+ onClick: D,
290
282
  type: "button"
291
283
  }
292
284
  ),
293
285
  "  ",
294
- /* @__PURE__ */ r(
286
+ /* @__PURE__ */ e(
295
287
  f,
296
288
  {
297
289
  leadingIcon: "floppy-disk",
298
290
  btnType: "tinted",
299
291
  color: "success",
300
- text: _,
292
+ text: G,
301
293
  disabled: F,
302
- onClick: E
294
+ onClick: A
303
295
  }
304
296
  )
305
297
  ] })
306
298
  ] })
307
299
  ]
308
300
  },
309
- i
301
+ n
310
302
  );
311
303
  });
312
- h.propTypes = {
313
- __TYPE__: e.string,
314
- goBackText: e.string,
315
- fields: e.array,
316
- data: e.object,
317
- errors: e.object,
318
- backActive: e.bool,
319
- nextActive: e.bool,
320
- disableGoBack: e.bool,
321
- disableNext: e.bool,
322
- disablePrevious: e.bool,
323
- previousActive: e.bool,
324
- editActive: e.bool,
325
- flexGridProps: e.any,
326
- disableDiscard: e.bool,
327
- disableSave: e.bool,
328
- discardText: e.string,
329
- saveText: e.string,
330
- //-----------------------------------------------------------
331
- goToNext: e.func,
332
- goToPrevious: e.func,
333
- onEdit: e.func,
334
- goBack: e.func,
335
- onSubmit: e.func,
336
- //------------------------------------------------------------
337
- className: e.string,
338
- style: e.object,
339
- color: e.oneOf([
340
- "primary",
341
- "secondary",
342
- "success",
343
- "warning",
344
- "danger",
345
- "information",
346
- "neutral",
347
- "gray"
348
- ]),
349
- size: e.oneOf(["small", "medium", "large"])
350
- };
351
- h.displayName = "FORM_VIEW";
304
+ de.displayName = "FORM_VIEW";
352
305
  export {
353
- h as default
306
+ de as default
354
307
  };
package/dist/Grid.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const j=require("react/jsx-runtime"),w=require("react"),t=require("./index-BpbMKBf_.cjs"),G=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=G.styled.div`
1
+ "use strict";const G=require("react/jsx-runtime"),p=require("react"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=C.styled.div`
2
2
  display: ${e=>e.inline?"inline-grid":"grid"};
3
3
  row-gap: ${e=>e.rowGap?e.rowGap:e.gap?e.gap:0};
4
4
  column-gap: ${e=>e.columnGap?e.columnGap:e.gap?e.gap:0};
@@ -9,4 +9,4 @@
9
9
  ${e=>e.alignItems&&`align-items: ${e.alignItems};`}
10
10
  ${e=>e.justifyContent&&`justify-content: ${e.justifyContent};`}
11
11
  ${e=>e.templateAreas&&`grid-template-areas: ${e.templateAreas};`}
12
- `,s=w.forwardRef((e,n)=>{const{inline:a=!1,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u,children:d,className:f="",style:T={},...$}=e;var P={inline:a,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u};return j.jsx(I,{ref:n,...P,className:f,style:T,...$,children:d})});s.defaultProps={inline:!1,style:{},className:""};s.propTypes={inline:t.PropTypes.bool,template:t.PropTypes.string,templateColumns:t.PropTypes.string,templateRows:t.PropTypes.string,gap:t.PropTypes.string,rowGap:t.PropTypes.string,columnGap:t.PropTypes.string,justifyItems:t.PropTypes.oneOf(["start","end","center","stretch"]),alignItems:t.PropTypes.oneOf(["start","end","center","stretch"]),placeItems:t.PropTypes.oneOf(["start","end","center","stretch"]),justifyContent:t.PropTypes.oneOf(["start","end","center","stretch","space-between","space-evenly"]),templateAreas:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=s;
12
+ `,t=p.forwardRef((e,a)=>{const{inline:l=!1,template:i,templateColumns:s,templateRows:n,gap:m,rowGap:r,columnGap:u,justifyItems:g,alignItems:o,justifyContent:d,templateAreas:c,children:$,className:y="",style:f={},...j}=e;var w={inline:l,template:i,templateColumns:s,templateRows:n,gap:m,rowGap:r,columnGap:u,justifyItems:g,alignItems:o,justifyContent:d,templateAreas:c};return G.jsx(I,{ref:a,...w,className:y,style:f,...j,children:$})});t.defaultProps={inline:!1,style:{},className:""};module.exports=t;
package/dist/Grid.js CHANGED
@@ -1,8 +1,7 @@
1
- import { jsx as G } from "react/jsx-runtime";
2
- import { forwardRef as I } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
4
- import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- const h = C.div`
1
+ import { jsx as j } from "react/jsx-runtime";
2
+ import { forwardRef as w } from "react";
3
+ import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ const C = G.div`
6
5
  display: ${(t) => t.inline ? "inline-grid" : "grid"};
7
6
  row-gap: ${(t) => t.rowGap ? t.rowGap : t.gap ? t.gap : 0};
8
7
  column-gap: ${(t) => t.columnGap ? t.columnGap : t.gap ? t.gap : 0};
@@ -13,78 +12,54 @@ const h = C.div`
13
12
  ${(t) => t.alignItems && `align-items: ${t.alignItems};`}
14
13
  ${(t) => t.justifyContent && `justify-content: ${t.justifyContent};`}
15
14
  ${(t) => t.templateAreas && `grid-template-areas: ${t.templateAreas};`}
16
- `, a = I((t, s) => {
15
+ `, I = w((t, e) => {
17
16
  const {
18
- inline: n = !1,
17
+ inline: a = !1,
19
18
  template: l,
20
- templateColumns: i,
21
- templateRows: m,
22
- gap: r,
23
- rowGap: o,
24
- columnGap: g,
25
- justifyItems: c,
26
- alignItems: p,
27
- justifyContent: f,
28
- templateAreas: d,
29
- children: u,
30
- className: y = "",
31
- style: $ = {},
32
- ...j
19
+ templateColumns: m,
20
+ templateRows: i,
21
+ gap: s,
22
+ rowGap: n,
23
+ columnGap: r,
24
+ justifyItems: g,
25
+ alignItems: o,
26
+ justifyContent: d,
27
+ templateAreas: u,
28
+ children: f,
29
+ className: $ = "",
30
+ style: y = {},
31
+ ...c
33
32
  } = t;
34
- var w = {
35
- inline: n,
33
+ var p = {
34
+ inline: a,
36
35
  template: l,
37
- templateColumns: i,
38
- templateRows: m,
39
- gap: r,
40
- rowGap: o,
41
- columnGap: g,
42
- justifyItems: c,
43
- alignItems: p,
44
- justifyContent: f,
45
- templateAreas: d
36
+ templateColumns: m,
37
+ templateRows: i,
38
+ gap: s,
39
+ rowGap: n,
40
+ columnGap: r,
41
+ justifyItems: g,
42
+ alignItems: o,
43
+ justifyContent: d,
44
+ templateAreas: u
46
45
  };
47
- return /* @__PURE__ */ G(
48
- h,
46
+ return /* @__PURE__ */ j(
47
+ C,
49
48
  {
50
- ref: s,
51
- ...w,
52
- className: y,
53
- style: $,
54
- ...j,
55
- children: u
49
+ ref: e,
50
+ ...p,
51
+ className: $,
52
+ style: y,
53
+ ...c,
54
+ children: f
56
55
  }
57
56
  );
58
57
  });
59
- a.defaultProps = {
58
+ I.defaultProps = {
60
59
  inline: !1,
61
60
  style: {},
62
61
  className: ""
63
62
  };
64
- a.propTypes = {
65
- inline: e.bool,
66
- template: e.string,
67
- templateColumns: e.string,
68
- templateRows: e.string,
69
- gap: e.string,
70
- rowGap: e.string,
71
- columnGap: e.string,
72
- justifyItems: e.oneOf(["start", "end", "center", "stretch"]),
73
- alignItems: e.oneOf(["start", "end", "center", "stretch"]),
74
- placeItems: e.oneOf(["start", "end", "center", "stretch"]),
75
- justifyContent: e.oneOf([
76
- "start",
77
- "end",
78
- "center",
79
- "stretch",
80
- "space-between",
81
- "space-evenly"
82
- ]),
83
- templateAreas: e.string,
84
- //-------------
85
- style: e.object,
86
- className: e.string
87
- };
88
63
  export {
89
- a as default
64
+ I as default
90
65
  };
package/dist/GridItem.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const f=require("react/jsx-runtime"),p=require("react"),t=require("./index-BpbMKBf_.cjs"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),P=T.styled.div`
1
+ "use strict";const s=require("react/jsx-runtime"),f=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=y.styled.div`
2
2
  display: ${e=>e.inline?"inline-grid":"grid"};
3
3
  row-gap: ${e=>e.rowGap?e.rowGap:e.gap?e.gap:0};
4
4
  column-gap: ${e=>e.columnGap?e.columnGap:e.gap?e.gap:0};
@@ -12,4 +12,4 @@
12
12
  ${e=>(e.colEnd||e.colSpan)&&`grid-column-end: span ${e.colEnd||e.colSpan};`}
13
13
  ${e=>e.rowStart&&`grid-row-start: ${e.rowStart};`}
14
14
  ${e=>(e.rowEnd||e.rowSpan)&&`grid-row-end: span ${e.rowEnd||e.rowSpan};`}
15
- `,r=p.forwardRef((e,a)=>{const{colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:g,className:u="",style:S={},children:y,...$}=e;var w={colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:g};return f.jsx(P,{ref:a,...w,className:u,style:S,...$,children:y})});r.propTypes={colStart:t.PropTypes.number,colEnd:t.PropTypes.number,rowStart:t.PropTypes.number,rowEnd:t.PropTypes.number,colSpan:t.PropTypes.number,rowSpan:t.PropTypes.number,justifySelf:t.PropTypes.oneOf(["start","end","center","stretch"]),alignSelf:t.PropTypes.oneOf(["start","end","center","stretch"]),area:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=r;
15
+ `,E=f.forwardRef((e,t)=>{const{colStart:a,colEnd:l,rowStart:n,rowEnd:r,colSpan:i,rowSpan:d,justifySelf:o,alignSelf:c,area:m,className:g="",style:$={},children:S,...w}=e;var u={colStart:a,colEnd:l,rowStart:n,rowEnd:r,colSpan:i,rowSpan:d,justifySelf:o,alignSelf:c,area:m};return s.jsx(j,{ref:t,...u,className:g,style:$,...w,children:S})});module.exports=E;