linear-react-components-ui 1.1.26-beta-1 → 1.1.26-beta.10

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 (225) hide show
  1. package/lib/alerts/AlertContainer.js +8 -2
  2. package/lib/alerts/AlertProvider.js +11 -5
  3. package/lib/alerts/BaseAlert.js +10 -8
  4. package/lib/alerts/Message.js +91 -64
  5. package/lib/alerts/withAlert.js +10 -6
  6. package/lib/assets/BaseAlert.css +1 -1
  7. package/lib/assets/Content.css +1 -1
  8. package/lib/assets/DefaultFile.css +1 -1
  9. package/lib/assets/Drawer.css +1 -1
  10. package/lib/assets/index11.css +1 -1
  11. package/lib/assets/index5.css +1 -1
  12. package/lib/avatar/index.js +29 -51
  13. package/lib/badge/index.js +25 -23
  14. package/lib/buttons/ActivateButton.js +9 -4
  15. package/lib/buttons/AddButton.js +12 -5
  16. package/lib/buttons/Button.js +16 -5
  17. package/lib/buttons/ButtonGroups.js +10 -3
  18. package/lib/buttons/CancelButton.js +14 -4
  19. package/lib/buttons/DangerButton.js +15 -4
  20. package/lib/buttons/DefaultButton.js +76 -111
  21. package/lib/buttons/DestroyButton.js +21 -5
  22. package/lib/buttons/EditButton.js +9 -4
  23. package/lib/buttons/InactivateButton.js +9 -4
  24. package/lib/buttons/InfoButton.js +15 -4
  25. package/lib/buttons/PrimaryButton.js +15 -4
  26. package/lib/buttons/RestoreButton.js +9 -4
  27. package/lib/buttons/SaveButton.js +14 -4
  28. package/lib/buttons/SuccessButton.js +15 -4
  29. package/lib/buttons/WarningButton.js +15 -4
  30. package/lib/buttons/button_container/index.js +21 -16
  31. package/lib/buttons/split_button/index.js +53 -55
  32. package/lib/calendar/DangerCalendar.js +18 -4
  33. package/lib/calendar/InfoCalendar.js +18 -4
  34. package/lib/calendar/PrimaryCalendar.js +18 -4
  35. package/lib/calendar/SuccessCalendar.js +18 -4
  36. package/lib/calendar/WarningCalendar.js +18 -4
  37. package/lib/calendar/base/Day.js +32 -22
  38. package/lib/calendar/base/Month.js +24 -21
  39. package/lib/calendar/base/Week.js +20 -19
  40. package/lib/calendar/base/helpers.js +11 -19
  41. package/lib/calendar/base/index.js +129 -97
  42. package/lib/checkbox/index.js +6 -5
  43. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  44. package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
  45. package/lib/chunks/index.aw0XaUkg.js +266 -0
  46. package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
  47. package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
  48. package/lib/chunks/moment.DMLRxgRE.js +2589 -0
  49. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  50. package/lib/chunks/v1.Ds1rkxUj.js +49 -0
  51. package/lib/dialog/Alert.js +18 -17
  52. package/lib/dialog/Custom.js +42 -28
  53. package/lib/dialog/Error.js +18 -17
  54. package/lib/dialog/Information.js +18 -17
  55. package/lib/dialog/Question.js +43 -59
  56. package/lib/dialog/Warning.js +18 -17
  57. package/lib/dialog/base/Content.js +13 -4
  58. package/lib/dialog/base/Footer.js +8 -3
  59. package/lib/dialog/base/Header.js +4 -3
  60. package/lib/dialog/base/index.js +5 -4
  61. package/lib/dialog/form/index.js +5 -4
  62. package/lib/dialog/index.js +1 -1
  63. package/lib/dialog/wizard/index.js +11 -10
  64. package/lib/dialog/wizard/progressbar.js +96 -3
  65. package/lib/dialog/wizard/step.js +4 -3
  66. package/lib/dialog/wizard/useWizard.js +42 -29
  67. package/lib/drawer/Content.js +15 -8
  68. package/lib/drawer/Drawer.js +38 -35
  69. package/lib/drawer/Header.js +53 -40
  70. package/lib/drawer/helpers.js +2 -2
  71. package/lib/dropdown/Popup.js +4 -2
  72. package/lib/dropdown/withDropdown.js +75 -50
  73. package/lib/fieldset/index.js +66 -47
  74. package/lib/form/Field.js +88 -62
  75. package/lib/form/FieldArray.js +18 -39
  76. package/lib/form/FieldNumber.js +42 -38
  77. package/lib/form/FieldPeriod.js +90 -59
  78. package/lib/form/helpers.js +14 -11
  79. package/lib/form/index.js +88 -100
  80. package/lib/form/withFieldHOC.js +57 -48
  81. package/lib/form/withFormSecurity.js +15 -18
  82. package/lib/gridlayout/GridCol.js +21 -20
  83. package/lib/gridlayout/GridRow.js +22 -20
  84. package/lib/hint/helpers.js +6 -2
  85. package/lib/hint/index.js +27 -25
  86. package/lib/icons/helper.js +142 -569
  87. package/lib/icons/index.js +62 -57
  88. package/lib/index.js +20 -19
  89. package/lib/inputs/base/InputTextBase.js +121 -207
  90. package/lib/inputs/base/Label.js +27 -29
  91. package/lib/inputs/base/helpers.d.ts +3 -3
  92. package/lib/inputs/base/helpers.js +4 -2
  93. package/lib/inputs/color/index.js +52 -73
  94. package/lib/inputs/date/Dialog.js +15 -16
  95. package/lib/inputs/date/Dropdown.js +16 -14
  96. package/lib/inputs/date/helpers.js +7 -7
  97. package/lib/inputs/date/index.js +101 -147
  98. package/lib/inputs/errorMessage/index.js +21 -13
  99. package/lib/inputs/file/DefaultFile.js +64 -67
  100. package/lib/inputs/file/DragDropFile.js +79 -135
  101. package/lib/inputs/file/File.d.ts +1 -1
  102. package/lib/inputs/file/File.js +24 -39
  103. package/lib/inputs/file/FileButtonSettings.js +20 -17
  104. package/lib/inputs/inputHOC.js +38 -20
  105. package/lib/inputs/mask/BaseMask.js +51 -30
  106. package/lib/inputs/mask/Cnpj.js +42 -36
  107. package/lib/inputs/mask/Cpf.js +45 -33
  108. package/lib/inputs/mask/Phone.js +10 -6
  109. package/lib/inputs/mask/ZipCode.js +9 -4
  110. package/lib/inputs/mask/helpers.d.ts +33 -33
  111. package/lib/inputs/mask/helpers.js +44 -44
  112. package/lib/inputs/multiSelect/ActionButtons.js +35 -46
  113. package/lib/inputs/multiSelect/Dropdown.js +94 -133
  114. package/lib/inputs/multiSelect/helper.js +4 -7
  115. package/lib/inputs/multiSelect/index.js +167 -127
  116. package/lib/inputs/number/BaseNumber.js +43 -31
  117. package/lib/inputs/number/Currency.js +19 -12
  118. package/lib/inputs/number/Decimal.js +9 -4
  119. package/lib/inputs/number/index.js +31 -35
  120. package/lib/inputs/period/Dialog.js +16 -16
  121. package/lib/inputs/period/Dropdown.js +15 -15
  122. package/lib/inputs/period/PeriodList.js +41 -27
  123. package/lib/inputs/period/helper.js +8 -4
  124. package/lib/inputs/period/index.js +192 -330
  125. package/lib/inputs/search/index.js +95 -71
  126. package/lib/inputs/select/ActionButtons.js +24 -45
  127. package/lib/inputs/select/Dropdown.js +61 -110
  128. package/lib/inputs/select/helper.d.ts +1 -1
  129. package/lib/inputs/select/helper.js +43 -45
  130. package/lib/inputs/select/index.js +23 -25
  131. package/lib/inputs/select/multiple/Selecteds.js +23 -19
  132. package/lib/inputs/select/multiple/index.js +106 -176
  133. package/lib/inputs/select/simple/index.js +126 -196
  134. package/lib/inputs/text/index.js +9 -4
  135. package/lib/inputs/textarea/index.js +13 -15
  136. package/lib/internals/withTooltip.js +114 -67
  137. package/lib/labelMessages/index.js +50 -45
  138. package/lib/labels/DangerLabel.js +18 -4
  139. package/lib/labels/DefaultLabel.js +53 -39
  140. package/lib/labels/InfoLabel.js +18 -4
  141. package/lib/labels/PrimaryLabel.js +18 -4
  142. package/lib/labels/SuccessLabel.js +18 -4
  143. package/lib/labels/WarningLabel.js +18 -4
  144. package/lib/labels/label_container/index.js +15 -9
  145. package/lib/list/Header.js +18 -6
  146. package/lib/list/Item.js +5 -4
  147. package/lib/list/Separator.js +8 -3
  148. package/lib/list/helpers.js +2 -2
  149. package/lib/list/index.js +21 -18
  150. package/lib/menus/float/MenuItem.js +49 -52
  151. package/lib/menus/float/SubMenuContainer.d.ts +10 -10
  152. package/lib/menus/float/index.js +102 -81
  153. package/lib/menus/sidenav/ExpandMenu.js +17 -15
  154. package/lib/menus/sidenav/MenuLink.js +21 -14
  155. package/lib/menus/sidenav/NavMenuGroup.js +19 -14
  156. package/lib/menus/sidenav/NavMenuItem.js +131 -111
  157. package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
  158. package/lib/menus/sidenav/helpers.js +4 -4
  159. package/lib/menus/sidenav/index.js +145 -123
  160. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
  161. package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
  162. package/lib/noPermission/index.js +13 -8
  163. package/lib/panel/Content.js +49 -40
  164. package/lib/panel/DangerPanel.js +10 -5
  165. package/lib/panel/Default.js +62 -36
  166. package/lib/panel/Header.js +53 -37
  167. package/lib/panel/InfoPanel.js +10 -5
  168. package/lib/panel/PrimaryPanel.js +10 -5
  169. package/lib/panel/SuccessPanel.js +10 -5
  170. package/lib/panel/ToolBar.js +17 -4
  171. package/lib/panel/WarningPanel.js +10 -5
  172. package/lib/panel/helpers.js +8 -5
  173. package/lib/permissionValidations.js +15 -11
  174. package/lib/popover/PopoverText.js +12 -5
  175. package/lib/popover/PopoverTitle.js +10 -3
  176. package/lib/popover/index.js +36 -56
  177. package/lib/progress/Bar.js +43 -34
  178. package/lib/progress/index.js +23 -18
  179. package/lib/radio/index.js +105 -89
  180. package/lib/shortcuts/index.js +20 -7
  181. package/lib/skeleton/SkeletonContainer.js +16 -6
  182. package/lib/skeleton/index.js +42 -18
  183. package/lib/spinner/SpinnerLoading.js +53 -16
  184. package/lib/spinner/index.js +47 -37
  185. package/lib/split/Split.js +83 -79
  186. package/lib/split/SplitSide.js +24 -16
  187. package/lib/table/Body.js +36 -49
  188. package/lib/table/Header.js +45 -35
  189. package/lib/table/HeaderColumn.js +40 -27
  190. package/lib/table/Row.js +47 -48
  191. package/lib/table/RowColumn.js +50 -38
  192. package/lib/table/helpers.js +3 -1
  193. package/lib/table/index.js +101 -104
  194. package/lib/tabs/DropdownTabs.js +64 -61
  195. package/lib/tabs/Menu.js +35 -49
  196. package/lib/tabs/MenuTabs.js +59 -84
  197. package/lib/tabs/Panel.js +57 -47
  198. package/lib/tabs/context.js +36 -40
  199. package/lib/tabs/index.js +69 -64
  200. package/lib/tabs/tabHelpers.js +10 -8
  201. package/lib/textContent/index.js +30 -32
  202. package/lib/toolbar/ButtonBar.js +62 -58
  203. package/lib/toolbar/LabelBar.js +46 -38
  204. package/lib/toolbar/Separator.js +8 -3
  205. package/lib/toolbar/ToolBarGroup.js +14 -3
  206. package/lib/toolbar/index.js +35 -29
  207. package/lib/tooltip/index.js +24 -24
  208. package/lib/treetable/Body.js +26 -27
  209. package/lib/treetable/Header.js +23 -19
  210. package/lib/treetable/Row.js +210 -147
  211. package/lib/treetable/helpers.d.ts +4 -5
  212. package/lib/treetable/helpers.js +6 -14
  213. package/lib/treetable/index.js +25 -15
  214. package/lib/treeview/Header.js +13 -5
  215. package/lib/treeview/Node.js +198 -175
  216. package/lib/treeview/index.js +257 -174
  217. package/lib/uitour/index.js +167 -166
  218. package/package.json +32 -43
  219. package/lib/chunks/index.CmrLK9Qe.js +0 -675
  220. package/lib/chunks/index.D5f6Ow9V.js +0 -89
  221. package/lib/chunks/index.yztgndLc.js +0 -206
  222. package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
  223. package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
  224. package/lib/chunks/v1.CDXKvGzE.js +0 -41
  225. /package/lib/assets/{index29.css → progressbar.css} +0 -0
@@ -1,445 +0,0 @@
1
- import je from "react";
2
- var k = { exports: {} }, y = {};
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var ie;
13
- function pe() {
14
- if (ie) return y;
15
- ie = 1;
16
- var f = Symbol.for("react.transitional.element"), p = Symbol.for("react.fragment");
17
- function R(C, s, i) {
18
- var v = null;
19
- if (i !== void 0 && (v = "" + i), s.key !== void 0 && (v = "" + s.key), "key" in s) {
20
- i = {};
21
- for (var _ in s)
22
- _ !== "key" && (i[_] = s[_]);
23
- } else i = s;
24
- return s = i.ref, {
25
- $$typeof: f,
26
- type: C,
27
- key: v,
28
- ref: s !== void 0 ? s : null,
29
- props: i
30
- };
31
- }
32
- return y.Fragment = p, y.jsx = R, y.jsxs = R, y;
33
- }
34
- var j = {};
35
- /**
36
- * @license React
37
- * react-jsx-runtime.development.js
38
- *
39
- * Copyright (c) Meta Platforms, Inc. and affiliates.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */
44
- var ce;
45
- function Ce() {
46
- return ce || (ce = 1, process.env.NODE_ENV !== "production" && function() {
47
- function f(e) {
48
- if (e == null) return null;
49
- if (typeof e == "function")
50
- return e.$$typeof === xe ? null : e.displayName || e.name || null;
51
- if (typeof e == "string") return e;
52
- switch (e) {
53
- case P:
54
- return "Fragment";
55
- case Te:
56
- return "Portal";
57
- case F:
58
- return "Profiler";
59
- case B:
60
- return "StrictMode";
61
- case M:
62
- return "Suspense";
63
- case W:
64
- return "SuspenseList";
65
- }
66
- if (typeof e == "object")
67
- switch (typeof e.tag == "number" && console.error(
68
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
- ), e.$$typeof) {
70
- case Z:
71
- return (e.displayName || "Context") + ".Provider";
72
- case L:
73
- return (e._context.displayName || "Context") + ".Consumer";
74
- case Y:
75
- var r = e.render;
76
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
77
- case $:
78
- return r = e.displayName || null, r !== null ? r : f(e.type) || "Memo";
79
- case U:
80
- r = e._payload, e = e._init;
81
- try {
82
- return f(e(r));
83
- } catch {
84
- }
85
- }
86
- return null;
87
- }
88
- function p(e) {
89
- return "" + e;
90
- }
91
- function R(e) {
92
- try {
93
- p(e);
94
- var r = !1;
95
- } catch {
96
- r = !0;
97
- }
98
- if (r) {
99
- r = console;
100
- var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
101
- return t.call(
102
- r,
103
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
104
- n
105
- ), p(e);
106
- }
107
- }
108
- function C() {
109
- }
110
- function s() {
111
- if (x === 0) {
112
- K = console.log, D = console.info, ee = console.warn, re = console.error, te = console.group, oe = console.groupCollapsed, ne = console.groupEnd;
113
- var e = {
114
- configurable: !0,
115
- enumerable: !0,
116
- value: C,
117
- writable: !0
118
- };
119
- Object.defineProperties(console, {
120
- info: e,
121
- log: e,
122
- warn: e,
123
- error: e,
124
- group: e,
125
- groupCollapsed: e,
126
- groupEnd: e
127
- });
128
- }
129
- x++;
130
- }
131
- function i() {
132
- if (x--, x === 0) {
133
- var e = { configurable: !0, enumerable: !0, writable: !0 };
134
- Object.defineProperties(console, {
135
- log: g({}, e, { value: K }),
136
- info: g({}, e, { value: D }),
137
- warn: g({}, e, { value: ee }),
138
- error: g({}, e, { value: re }),
139
- group: g({}, e, { value: te }),
140
- groupCollapsed: g({}, e, { value: oe }),
141
- groupEnd: g({}, e, { value: ne })
142
- });
143
- }
144
- 0 > x && console.error(
145
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
146
- );
147
- }
148
- function v(e) {
149
- if (q === void 0)
150
- try {
151
- throw Error();
152
- } catch (t) {
153
- var r = t.stack.trim().match(/\n( *(at )?)/);
154
- q = r && r[1] || "", ae = -1 < t.stack.indexOf(`
155
- at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
156
- }
157
- return `
158
- ` + q + e + ae;
159
- }
160
- function _(e, r) {
161
- if (!e || z) return "";
162
- var t = V.get(e);
163
- if (t !== void 0) return t;
164
- z = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
165
- var n = null;
166
- n = b.H, b.H = null, s();
167
- try {
168
- var u = {
169
- DetermineComponentFrameRoot: function() {
170
- try {
171
- if (r) {
172
- var d = function() {
173
- throw Error();
174
- };
175
- if (Object.defineProperty(d.prototype, "props", {
176
- set: function() {
177
- throw Error();
178
- }
179
- }), typeof Reflect == "object" && Reflect.construct) {
180
- try {
181
- Reflect.construct(d, []);
182
- } catch (E) {
183
- var h = E;
184
- }
185
- Reflect.construct(e, [], d);
186
- } else {
187
- try {
188
- d.call();
189
- } catch (E) {
190
- h = E;
191
- }
192
- e.call(d.prototype);
193
- }
194
- } else {
195
- try {
196
- throw Error();
197
- } catch (E) {
198
- h = E;
199
- }
200
- (d = e()) && typeof d.catch == "function" && d.catch(function() {
201
- });
202
- }
203
- } catch (E) {
204
- if (E && h && typeof E.stack == "string")
205
- return [E.stack, h.stack];
206
- }
207
- return [null, null];
208
- }
209
- };
210
- u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
211
- var a = Object.getOwnPropertyDescriptor(
212
- u.DetermineComponentFrameRoot,
213
- "name"
214
- );
215
- a && a.configurable && Object.defineProperty(
216
- u.DetermineComponentFrameRoot,
217
- "name",
218
- { value: "DetermineComponentFrameRoot" }
219
- );
220
- var o = u.DetermineComponentFrameRoot(), c = o[0], T = o[1];
221
- if (c && T) {
222
- var l = c.split(`
223
- `), m = T.split(`
224
- `);
225
- for (o = a = 0; a < l.length && !l[a].includes(
226
- "DetermineComponentFrameRoot"
227
- ); )
228
- a++;
229
- for (; o < m.length && !m[o].includes(
230
- "DetermineComponentFrameRoot"
231
- ); )
232
- o++;
233
- if (a === l.length || o === m.length)
234
- for (a = l.length - 1, o = m.length - 1; 1 <= a && 0 <= o && l[a] !== m[o]; )
235
- o--;
236
- for (; 1 <= a && 0 <= o; a--, o--)
237
- if (l[a] !== m[o]) {
238
- if (a !== 1 || o !== 1)
239
- do
240
- if (a--, o--, 0 > o || l[a] !== m[o]) {
241
- var w = `
242
- ` + l[a].replace(
243
- " at new ",
244
- " at "
245
- );
246
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, w), w;
247
- }
248
- while (1 <= a && 0 <= o);
249
- break;
250
- }
251
- }
252
- } finally {
253
- z = !1, b.H = n, i(), Error.prepareStackTrace = t;
254
- }
255
- return l = (l = e ? e.displayName || e.name : "") ? v(l) : "", typeof e == "function" && V.set(e, l), l;
256
- }
257
- function O(e) {
258
- if (e == null) return "";
259
- if (typeof e == "function") {
260
- var r = e.prototype;
261
- return _(
262
- e,
263
- !(!r || !r.isReactComponent)
264
- );
265
- }
266
- if (typeof e == "string") return v(e);
267
- switch (e) {
268
- case M:
269
- return v("Suspense");
270
- case W:
271
- return v("SuspenseList");
272
- }
273
- if (typeof e == "object")
274
- switch (e.$$typeof) {
275
- case Y:
276
- return e = _(e.render, !1), e;
277
- case $:
278
- return O(e.type);
279
- case U:
280
- r = e._payload, e = e._init;
281
- try {
282
- return O(e(r));
283
- } catch {
284
- }
285
- }
286
- return "";
287
- }
288
- function S() {
289
- var e = b.A;
290
- return e === null ? null : e.getOwner();
291
- }
292
- function ve(e) {
293
- if (Q.call(e, "key")) {
294
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
295
- if (r && r.isReactWarning) return !1;
296
- }
297
- return e.key !== void 0;
298
- }
299
- function de(e, r) {
300
- function t() {
301
- ue || (ue = !0, console.error(
302
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
303
- r
304
- ));
305
- }
306
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
307
- get: t,
308
- configurable: !0
309
- });
310
- }
311
- function be() {
312
- var e = f(this.type);
313
- return le[e] || (le[e] = !0, console.error(
314
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
315
- )), e = this.props.ref, e !== void 0 ? e : null;
316
- }
317
- function ge(e, r, t, n, u, a) {
318
- return t = a.ref, e = {
319
- $$typeof: N,
320
- type: e,
321
- key: r,
322
- props: a,
323
- _owner: u
324
- }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
325
- enumerable: !1,
326
- get: be
327
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
328
- configurable: !1,
329
- enumerable: !1,
330
- writable: !0,
331
- value: 0
332
- }), Object.defineProperty(e, "_debugInfo", {
333
- configurable: !1,
334
- enumerable: !1,
335
- writable: !0,
336
- value: null
337
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
338
- }
339
- function G(e, r, t, n, u, a) {
340
- if (typeof e == "string" || typeof e == "function" || e === P || e === F || e === B || e === M || e === W || e === Re || typeof e == "object" && e !== null && (e.$$typeof === U || e.$$typeof === $ || e.$$typeof === Z || e.$$typeof === L || e.$$typeof === Y || e.$$typeof === we || e.getModuleId !== void 0)) {
341
- var o = r.children;
342
- if (o !== void 0)
343
- if (n)
344
- if (J(o)) {
345
- for (n = 0; n < o.length; n++)
346
- H(o[n], e);
347
- Object.freeze && Object.freeze(o);
348
- } else
349
- console.error(
350
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
351
- );
352
- else H(o, e);
353
- } else
354
- o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : J(e) ? n = "array" : e !== void 0 && e.$$typeof === N ? (n = "<" + (f(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
355
- "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
356
- n,
357
- o
358
- );
359
- if (Q.call(r, "key")) {
360
- o = f(e);
361
- var c = Object.keys(r).filter(function(l) {
362
- return l !== "key";
363
- });
364
- n = 0 < c.length ? "{key: someKey, " + c.join(": ..., ") + ": ...}" : "{key: someKey}", se[o + n] || (c = 0 < c.length ? "{" + c.join(": ..., ") + ": ...}" : "{}", console.error(
365
- `A props object containing a "key" prop is being spread into JSX:
366
- let props = %s;
367
- <%s {...props} />
368
- React keys must be passed directly to JSX without using spread:
369
- let props = %s;
370
- <%s key={someKey} {...props} />`,
371
- n,
372
- o,
373
- c,
374
- o
375
- ), se[o + n] = !0);
376
- }
377
- if (o = null, t !== void 0 && (R(t), o = "" + t), ve(r) && (R(r.key), o = "" + r.key), "key" in r) {
378
- t = {};
379
- for (var T in r)
380
- T !== "key" && (t[T] = r[T]);
381
- } else t = r;
382
- return o && de(
383
- t,
384
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
385
- ), ge(e, o, a, u, S(), t);
386
- }
387
- function H(e, r) {
388
- if (typeof e == "object" && e && e.$$typeof !== ye) {
389
- if (J(e))
390
- for (var t = 0; t < e.length; t++) {
391
- var n = e[t];
392
- A(n) && X(n, r);
393
- }
394
- else if (A(e))
395
- e._store && (e._store.validated = 1);
396
- else if (e === null || typeof e != "object" ? t = null : (t = I && e[I] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
397
- for (; !(e = t.next()).done; )
398
- A(e.value) && X(e.value, r);
399
- }
400
- }
401
- function A(e) {
402
- return typeof e == "object" && e !== null && e.$$typeof === N;
403
- }
404
- function X(e, r) {
405
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = me(r), !fe[r])) {
406
- fe[r] = !0;
407
- var t = "";
408
- e && e._owner != null && e._owner !== S() && (t = null, typeof e._owner.tag == "number" ? t = f(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
409
- var n = b.getCurrentStack;
410
- b.getCurrentStack = function() {
411
- var u = O(e.type);
412
- return n && (u += n() || ""), u;
413
- }, console.error(
414
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
415
- r,
416
- t
417
- ), b.getCurrentStack = n;
418
- }
419
- }
420
- function me(e) {
421
- var r = "", t = S();
422
- return t && (t = f(t.type)) && (r = `
423
-
424
- Check the render method of \`` + t + "`."), r || (e = f(e)) && (r = `
425
-
426
- Check the top-level render call using <` + e + ">."), r;
427
- }
428
- var _e = je, N = Symbol.for("react.transitional.element"), Te = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), Z = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), $ = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), Re = Symbol.for("react.offscreen"), I = Symbol.iterator, xe = Symbol.for("react.client.reference"), b = _e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, g = Object.assign, we = Symbol.for("react.client.reference"), J = Array.isArray, x = 0, K, D, ee, re, te, oe, ne;
429
- C.__reactDisabledLog = !0;
430
- var q, ae, z = !1, V = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), ue, le = {}, se = {}, fe = {};
431
- j.Fragment = P, j.jsx = function(e, r, t, n, u) {
432
- return G(e, r, t, !1, n, u);
433
- }, j.jsxs = function(e, r, t, n, u) {
434
- return G(e, r, t, !0, n, u);
435
- };
436
- }()), j;
437
- }
438
- var Ee;
439
- function he() {
440
- return Ee || (Ee = 1, process.env.NODE_ENV === "production" ? k.exports = pe() : k.exports = Ce()), k.exports;
441
- }
442
- var Oe = he();
443
- export {
444
- Oe as j
445
- };
@@ -1,246 +0,0 @@
1
- import { j as e } from "./jsx-runtime.CYK1ROHF.js";
2
- import { forwardRef as se, useState as z, useRef as oe, useImperativeHandle as ie, useEffect as F, useContext as M, useCallback as ne, useMemo as re, createElement as le } from "react";
3
- import { u as ce, L as ae } from "./index.CmrLK9Qe.js";
4
- import L from "../icons/index.js";
5
- import '../assets/radio.css';import '../assets/skeleton.css';import '../assets/toolbar.css';import '../assets/label.css';import '../assets/panel.css';import '../assets/noPermission.css';import '../assets/button.css';import '../assets/gridlayout.css';import '../assets/tabs.css';/* empty css */
6
- import de from "../gridlayout/GridCol.js";
7
- import { actionsOnPermissionDenied as V, OPTIONS_ON_DENIED as O } from "../permissionValidations.js";
8
- import { ErrorMessage as me } from "../inputs/errorMessage/index.js";
9
- import "../buttons/DefaultButton.js";
10
- /* empty css */
11
- import "../panel/helpers.js";
12
- /* empty css */
13
- /* empty css */
14
- import "../toolbar/helpers.js";
15
- import "../labels/DefaultLabel.js";
16
- /* empty css */
17
- /* empty css */
18
- import { ListContext as pe } from "../list/helpers.js";
19
- import { WithDropdownContext as ue } from "../dropdown/withDropdown.js";
20
- import { keyCodes as fe } from "../internals/constants.js";
21
- import xe, { TooltipContext as he } from "../internals/withTooltip.js";
22
- /* empty css */
23
- /* empty css */
24
- import be from "../popover/index.js";
25
- import U from "../textContent/index.js";
26
- import "../tabs/MenuTabs.js";
27
- import "lodash";
28
- import "../tabs/context.js";
29
- import "../tabs/tabHelpers.js";
30
- import "./index.yztgndLc.js";
31
- import ke from "../hint/index.js";
32
- const X = se(({
33
- name: j,
34
- required: d,
35
- value: b,
36
- label: u,
37
- onChange: o,
38
- autofocus: i,
39
- hint: r,
40
- id: I = void 0,
41
- gridLayout: N,
42
- checked: l = !1,
43
- disabled: m,
44
- permissionAttr: g,
45
- tooltip: w,
46
- tooltipPosition: t = "top",
47
- tooltipWidth: D = "auto",
48
- skeletonize: k,
49
- targetRef: v,
50
- errorMessages: P,
51
- customClassForLabel: R,
52
- hintPosition: y = "below",
53
- themePopover: B = "light",
54
- popoverAlign: S = "left"
55
- }, E) => {
56
- const [c, $] = z(l), _ = [O.disabled, O.unvisible], [C] = z(V(_, g)), n = oe(null);
57
- ie(E, () => n.current, [n.current]), F(() => {
58
- $(l);
59
- }, [l]);
60
- const f = () => m || C.disabled, A = () => {
61
- if (f()) return null;
62
- const x = {
63
- checked: !c,
64
- id: I,
65
- name: j,
66
- value: !c
67
- };
68
- return {
69
- onClick: () => {
70
- !f() && !k && ($(!c), o == null || o({ target: x }));
71
- },
72
- onKeyDown: void 0,
73
- role: "checkbox",
74
- tabIndex: -1
75
- };
76
- }, p = () => /* @__PURE__ */ e.jsxs("div", { children: [
77
- /* @__PURE__ */ e.jsxs(
78
- "div",
79
- {
80
- "data-skeletonized": k,
81
- className: "checkbox-component",
82
- style: { display: "flex", alignItems: "center" },
83
- children: [
84
- /* @__PURE__ */ e.jsxs(
85
- "span",
86
- {
87
- "data-testid": "checkbox-container",
88
- className: "inputcontent",
89
- "aria-checked": c,
90
- ...A(),
91
- children: [
92
- /* @__PURE__ */ e.jsx(
93
- "input",
94
- {
95
- id: I || void 0,
96
- ref: (x) => {
97
- v && v(x), n.current = x;
98
- },
99
- className: "input",
100
- type: "checkbox",
101
- autoFocus: i,
102
- checked: c,
103
- disabled: f(),
104
- name: j,
105
- required: d,
106
- value: b,
107
- onChange: () => {
108
- }
109
- }
110
- ),
111
- /* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(L, { size: 12, name: "checkmark" }) }),
112
- u && /* @__PURE__ */ e.jsxs("div", { className: "description", children: [
113
- /* @__PURE__ */ e.jsx(
114
- U,
115
- {
116
- required: d,
117
- disabled: f(),
118
- className: R,
119
- tooltip: w,
120
- tooltipWidth: D,
121
- tooltipPosition: t
122
- }
123
- ),
124
- u,
125
- /* @__PURE__ */ e.jsx(U, {}),
126
- /* @__PURE__ */ e.jsx(ke, { disabled: m, visible: !!r && y === "below", description: r, customClass: "hint" })
127
- ] })
128
- ]
129
- }
130
- ),
131
- !!r && y === "onLabelRight" && !k && /* @__PURE__ */ e.jsx(
132
- be,
133
- {
134
- theme: B,
135
- align: S,
136
- customClass: "-hint",
137
- iconColor: "#03bde2",
138
- style: { margin: "0px 5px", height: "auto", width: 20 },
139
- children: r
140
- }
141
- )
142
- ]
143
- }
144
- ),
145
- /* @__PURE__ */ e.jsx(me, { messages: P })
146
- ] });
147
- return C.unvisible ? null : N ? /* @__PURE__ */ e.jsx(de, { customClass: "-withinput", cols: N, children: p() }) : p();
148
- });
149
- X.displayName = "CheckBox";
150
- const ve = (j) => {
151
- const {
152
- onClick: d,
153
- leftIconName: b,
154
- leftIcon: u,
155
- displayCheckbox: o,
156
- url: i,
157
- leftElement: r,
158
- hovered: I = !0,
159
- customClass: N,
160
- text: l,
161
- subText: m,
162
- rightIcon: g,
163
- rightIconName: w,
164
- itemId: t = "",
165
- rightElement: D,
166
- style: k,
167
- children: v,
168
- disabled: P,
169
- separator: R = !0,
170
- visible: y = !0,
171
- permissionAttr: B,
172
- skeletonize: S,
173
- targetRef: E,
174
- target: c,
175
- onDeniedText: $ = "Permissão Negada! Consulte o Administrador do sistema."
176
- } = j, {
177
- handleSelectItem: _,
178
- selectable: C,
179
- selectedItemId: n,
180
- selectedItemRef: f,
181
- selectOnEnter: A
182
- } = M(pe), p = M(ue), { handlerSetOnDeniedText: x } = M(he), Y = [O.disabled, O.unvisible], [T] = z(V(Y, B)), Z = ce(), a = T.disabled, H = () => P || T.disabled, G = "rgb(193, 193, 193)", K = () => `item ${N} ${R && "list-separator"} ${H() && "disabled"}
183
- ${o && "list-checkbox"}`, W = (s, h) => {
184
- const te = !h && !o && !r && !b && !u && T.disabled;
185
- return h || (te ? /* @__PURE__ */ e.jsx(L, { name: "padlock", color: G }) : s ? /* @__PURE__ */ e.jsx(
186
- L,
187
- {
188
- name: a ? "padlock" : s,
189
- color: a ? G : ""
190
- }
191
- ) : null);
192
- }, J = (s) => {
193
- d !== void 0 && d(s, t), p && p.handleDropdownClose && p.handleDropdownClose(), C && _(t, d);
194
- }, Q = ne((s) => {
195
- var h;
196
- [fe.ENTER].includes(s.keyCode) && !S && t && n === t && (s.preventDefault(), J(s), i && (c === "_blank" ? (h = window.open(i, "_blank")) == null || h.focus() : Z(i)));
197
- }, [i, n, t]), q = () => {
198
- if (!H())
199
- return d === void 0 && p === void 0 && !C ? null : {
200
- onClick: (s) => {
201
- J(s);
202
- },
203
- role: "button",
204
- tabIndex: 0
205
- };
206
- };
207
- F(() => (A && document.addEventListener("keydown", Q), () => {
208
- document.removeEventListener("keydown", Q);
209
- }), [i, n, t]), F(() => {
210
- a && x($);
211
- }, [a]);
212
- const ee = re(
213
- () => !a && o ? /* @__PURE__ */ e.jsx(X, { name: "checkbox" }) : a && o ? /* @__PURE__ */ e.jsx(L, { name: "padlock" }) : null,
214
- [a && o]
215
- );
216
- return !y || T.unvisible ? null : /* @__PURE__ */ le(
217
- "li",
218
- {
219
- ref: (s) => (E && E(s), t && n === t ? f : null),
220
- style: k,
221
- className: `item-container ${I && "hovered"}
222
- ${t && n === t ? "-activedlist" : ""}`,
223
- ...q(),
224
- key: t
225
- },
226
- i && !H() && /* @__PURE__ */ e.jsx(ae, { className: "linkitem", to: i, target: c }),
227
- (o || r || b || u) && /* @__PURE__ */ e.jsxs("div", { className: `${K()} -icon-left`, children: [
228
- ee,
229
- r,
230
- W(b, u)
231
- ] }),
232
- (l || m || v) && /* @__PURE__ */ e.jsxs("div", { className: `${K()}`, children: [
233
- l && /* @__PURE__ */ e.jsx("p", { className: `${l && "text"}`, children: l }),
234
- m && /* @__PURE__ */ e.jsx("p", { className: `${m && "subtext"}`, children: m }),
235
- v
236
- ] }),
237
- (w || g || D || a) && /* @__PURE__ */ e.jsxs("div", { className: `${K()} -icon-right`, children: [
238
- W(w, g),
239
- D
240
- ] })
241
- );
242
- }, Ye = xe(ve);
243
- export {
244
- X as C,
245
- Ye as L
246
- };