@sisense/sdk-shared-ui 1.28.0 → 1.30.0
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.
- package/dist/Breadcrumbs-B46ViOSv.cjs +3 -0
- package/dist/Breadcrumbs-CQNCIJ2Y.js +301 -0
- package/dist/Button-CoMaroSC.cjs +1 -0
- package/dist/Button-D5ZAS_sd.js +569 -0
- package/dist/ButtonBase-Camgk6s8.cjs +74 -0
- package/dist/{createSvgIcon-CXJWSg3i.js → ButtonBase-DPVWpC8-.js} +331 -350
- package/dist/{Checkbox-CrbGw8d7.js → Checkbox-3bG1OLg3.js} +21 -18
- package/dist/Checkbox-oJOn5Vb9.cjs +1 -0
- package/dist/{Icon-B1V-T6UH.cjs → Icon-CqoYg88-.cjs} +1 -1
- package/dist/{Icon-Cs6oGRgo.js → Icon-D0uZg6iJ.js} +31 -10
- package/dist/{SvgIcon-SnObJHZS.cjs → SvgIcon-Dg-EBYZz.cjs} +1 -1
- package/dist/{SvgIcon-LwOuESoH.js → SvgIcon-DsAvI5iY.js} +1 -1
- package/dist/{TablePagination-B8I5QURH.js → TablePagination-DUkJaWJG.js} +2133 -2304
- package/dist/TablePagination-Yp8eKLZB.cjs +15 -0
- package/dist/{ThemeProvider-aq1EWT1u.js → ThemeProvider-BCsnqK18.js} +1198 -1154
- package/dist/ThemeProvider-BjBWRt7C.cjs +114 -0
- package/dist/{Tooltip-vVc6Lxew.js → Tooltip-B0-7TF8b.js} +15 -13
- package/dist/Tooltip-DE1hlnS3.cjs +7 -0
- package/dist/{Typography-C891hjk2.js → Typography-BGFgTnYN.js} +3 -2
- package/dist/{Typography-vldQClJj.cjs → Typography-CGsd6zC4.cjs} +1 -1
- package/dist/createSvgIcon-DDrcw4wZ.cjs +1 -0
- package/dist/createSvgIcon-rAujRRtd.js +17 -0
- package/dist/deepmerge-BuAjuQR6.cjs +17 -0
- package/dist/deepmerge-DNqbOtFI.js +177 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +30 -24
- package/dist/integerPropType-B8hl-7D0.js +180 -0
- package/dist/integerPropType-BGlNA6vX.cjs +17 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts +16 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.js +7 -0
- package/dist/lib/Breadcrumbs/index.d.ts +5 -0
- package/dist/lib/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts +4 -0
- package/dist/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/themes/index.d.ts +2 -0
- package/dist/lib/Breadcrumbs/themes/index.d.ts.map +1 -0
- package/dist/lib/Button/Button.cjs +1 -0
- package/dist/lib/Button/Button.d.ts +10 -0
- package/dist/lib/Button/Button.d.ts.map +1 -0
- package/dist/lib/Button/Button.js +7 -0
- package/dist/lib/Button/index.d.ts +5 -0
- package/dist/lib/Button/index.d.ts.map +1 -0
- package/dist/lib/Button/themes/buttonsTheme.d.ts +11 -0
- package/dist/lib/Button/themes/buttonsTheme.d.ts.map +1 -0
- package/dist/lib/Button/themes/index.d.ts +2 -0
- package/dist/lib/Button/themes/index.d.ts.map +1 -0
- package/dist/lib/Checkbox/Checkbox.cjs +1 -1
- package/dist/lib/Checkbox/Checkbox.js +1 -1
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +2 -2
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.cjs +1 -1
- package/dist/lib/Icon/Icon.d.ts +1 -1
- package/dist/lib/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.js +1 -1
- package/dist/lib/TablePagination/TablePagination.cjs +1 -1
- package/dist/lib/TablePagination/TablePagination.js +1 -1
- package/dist/lib/Tooltip/Tooltip.cjs +1 -1
- package/dist/lib/Tooltip/Tooltip.js +2 -2
- package/dist/lib/Typography/Typography.cjs +1 -1
- package/dist/lib/Typography/Typography.js +2 -2
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/package.json +18 -1
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useControlled-Ysk4KqoX.cjs +3 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useFormControl-haP0iPhl.cjs +1 -0
- package/dist/useSlot-7x9FkqBW.js +720 -0
- package/dist/useSlot-B_P_o-pz.cjs +1 -0
- package/dist/useSlotProps-BpXHXb21.js +102 -0
- package/dist/useSlotProps-COvANhgg.cjs +1 -0
- package/dist/{useTheme-DJmNR5EL.cjs → useTheme-BN6DGaDZ.cjs} +1 -1
- package/dist/{useTheme-CtIZL8WJ.js → useTheme-eCVqNAnk.js} +1 -1
- package/dist/useTimeout-BG7TPjEm.js +92 -0
- package/dist/useTimeout-DQN9lwd_.cjs +2 -0
- package/package.json +18 -1
- package/dist/Checkbox-Dy9BTXfS.cjs +0 -1
- package/dist/TablePagination-DH0TZ21v.cjs +0 -31
- package/dist/ThemeProvider-sqppyE-5.cjs +0 -114
- package/dist/Tooltip-Dokek6y8.cjs +0 -7
- package/dist/TransitionGroupContext-BlR3HYBG.cjs +0 -4
- package/dist/TransitionGroupContext-Ci_clMyv.js +0 -120
- package/dist/createSvgIcon-DF4qzIJY.cjs +0 -74
- package/dist/useSlot-BfQr8KCN.js +0 -803
- package/dist/useSlot-C3-OaWva.cjs +0 -1
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
var d = { exports: {} }, n = {};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-is.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var P;
|
|
12
|
+
function N() {
|
|
13
|
+
if (P) return n;
|
|
14
|
+
P = 1;
|
|
15
|
+
var e = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), c = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), C = Symbol.for("react.client.reference");
|
|
16
|
+
function u(r) {
|
|
17
|
+
if (typeof r == "object" && r !== null) {
|
|
18
|
+
var R = r.$$typeof;
|
|
19
|
+
switch (R) {
|
|
20
|
+
case e:
|
|
21
|
+
switch (r = r.type, r) {
|
|
22
|
+
case s:
|
|
23
|
+
case i:
|
|
24
|
+
case f:
|
|
25
|
+
case l:
|
|
26
|
+
case T:
|
|
27
|
+
return r;
|
|
28
|
+
default:
|
|
29
|
+
switch (r = r && r.$$typeof, r) {
|
|
30
|
+
case c:
|
|
31
|
+
case E:
|
|
32
|
+
case m:
|
|
33
|
+
case _:
|
|
34
|
+
return r;
|
|
35
|
+
case a:
|
|
36
|
+
return r;
|
|
37
|
+
default:
|
|
38
|
+
return R;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
case o:
|
|
42
|
+
return R;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return n.ContextConsumer = a, n.ContextProvider = c, n.Element = e, n.ForwardRef = E, n.Fragment = s, n.Lazy = m, n.Memo = _, n.Portal = o, n.Profiler = i, n.StrictMode = f, n.Suspense = l, n.SuspenseList = T, n.isContextConsumer = function(r) {
|
|
47
|
+
return u(r) === a;
|
|
48
|
+
}, n.isContextProvider = function(r) {
|
|
49
|
+
return u(r) === c;
|
|
50
|
+
}, n.isElement = function(r) {
|
|
51
|
+
return typeof r == "object" && r !== null && r.$$typeof === e;
|
|
52
|
+
}, n.isForwardRef = function(r) {
|
|
53
|
+
return u(r) === E;
|
|
54
|
+
}, n.isFragment = function(r) {
|
|
55
|
+
return u(r) === s;
|
|
56
|
+
}, n.isLazy = function(r) {
|
|
57
|
+
return u(r) === m;
|
|
58
|
+
}, n.isMemo = function(r) {
|
|
59
|
+
return u(r) === _;
|
|
60
|
+
}, n.isPortal = function(r) {
|
|
61
|
+
return u(r) === o;
|
|
62
|
+
}, n.isProfiler = function(r) {
|
|
63
|
+
return u(r) === i;
|
|
64
|
+
}, n.isStrictMode = function(r) {
|
|
65
|
+
return u(r) === f;
|
|
66
|
+
}, n.isSuspense = function(r) {
|
|
67
|
+
return u(r) === l;
|
|
68
|
+
}, n.isSuspenseList = function(r) {
|
|
69
|
+
return u(r) === T;
|
|
70
|
+
}, n.isValidElementType = function(r) {
|
|
71
|
+
return typeof r == "string" || typeof r == "function" || r === s || r === i || r === f || r === l || r === T || r === S || typeof r == "object" && r !== null && (r.$$typeof === m || r.$$typeof === _ || r.$$typeof === c || r.$$typeof === a || r.$$typeof === E || r.$$typeof === C || r.getModuleId !== void 0);
|
|
72
|
+
}, n.typeOf = u, n;
|
|
73
|
+
}
|
|
74
|
+
var t = {};
|
|
75
|
+
/**
|
|
76
|
+
* @license React
|
|
77
|
+
* react-is.development.js
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the MIT license found in the
|
|
82
|
+
* LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/
|
|
84
|
+
var y;
|
|
85
|
+
function Y() {
|
|
86
|
+
return y || (y = 1, process.env.NODE_ENV !== "production" && function() {
|
|
87
|
+
function e(r) {
|
|
88
|
+
if (typeof r == "object" && r !== null) {
|
|
89
|
+
var R = r.$$typeof;
|
|
90
|
+
switch (R) {
|
|
91
|
+
case o:
|
|
92
|
+
switch (r = r.type, r) {
|
|
93
|
+
case f:
|
|
94
|
+
case a:
|
|
95
|
+
case i:
|
|
96
|
+
case T:
|
|
97
|
+
case _:
|
|
98
|
+
return r;
|
|
99
|
+
default:
|
|
100
|
+
switch (r = r && r.$$typeof, r) {
|
|
101
|
+
case E:
|
|
102
|
+
case l:
|
|
103
|
+
case S:
|
|
104
|
+
case m:
|
|
105
|
+
return r;
|
|
106
|
+
case c:
|
|
107
|
+
return r;
|
|
108
|
+
default:
|
|
109
|
+
return R;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
case s:
|
|
113
|
+
return R;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
var o = Symbol.for("react.transitional.element"), s = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), E = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), u = Symbol.for("react.client.reference");
|
|
118
|
+
t.ContextConsumer = c, t.ContextProvider = E, t.Element = o, t.ForwardRef = l, t.Fragment = f, t.Lazy = S, t.Memo = m, t.Portal = s, t.Profiler = a, t.StrictMode = i, t.Suspense = T, t.SuspenseList = _, t.isContextConsumer = function(r) {
|
|
119
|
+
return e(r) === c;
|
|
120
|
+
}, t.isContextProvider = function(r) {
|
|
121
|
+
return e(r) === E;
|
|
122
|
+
}, t.isElement = function(r) {
|
|
123
|
+
return typeof r == "object" && r !== null && r.$$typeof === o;
|
|
124
|
+
}, t.isForwardRef = function(r) {
|
|
125
|
+
return e(r) === l;
|
|
126
|
+
}, t.isFragment = function(r) {
|
|
127
|
+
return e(r) === f;
|
|
128
|
+
}, t.isLazy = function(r) {
|
|
129
|
+
return e(r) === S;
|
|
130
|
+
}, t.isMemo = function(r) {
|
|
131
|
+
return e(r) === m;
|
|
132
|
+
}, t.isPortal = function(r) {
|
|
133
|
+
return e(r) === s;
|
|
134
|
+
}, t.isProfiler = function(r) {
|
|
135
|
+
return e(r) === a;
|
|
136
|
+
}, t.isStrictMode = function(r) {
|
|
137
|
+
return e(r) === i;
|
|
138
|
+
}, t.isSuspense = function(r) {
|
|
139
|
+
return e(r) === T;
|
|
140
|
+
}, t.isSuspenseList = function(r) {
|
|
141
|
+
return e(r) === _;
|
|
142
|
+
}, t.isValidElementType = function(r) {
|
|
143
|
+
return typeof r == "string" || typeof r == "function" || r === f || r === a || r === i || r === T || r === _ || r === C || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === m || r.$$typeof === E || r.$$typeof === c || r.$$typeof === l || r.$$typeof === u || r.getModuleId !== void 0);
|
|
144
|
+
}, t.typeOf = e;
|
|
145
|
+
}()), t;
|
|
146
|
+
}
|
|
147
|
+
process.env.NODE_ENV === "production" ? d.exports = N() : d.exports = Y();
|
|
148
|
+
var M = d.exports;
|
|
149
|
+
function F(e) {
|
|
150
|
+
const o = typeof e;
|
|
151
|
+
switch (o) {
|
|
152
|
+
case "number":
|
|
153
|
+
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
154
|
+
case "object":
|
|
155
|
+
return e === null ? "null" : e.constructor.name;
|
|
156
|
+
default:
|
|
157
|
+
return o;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function A(e, o, s, f) {
|
|
161
|
+
const i = e[o];
|
|
162
|
+
if (i == null || !Number.isInteger(i)) {
|
|
163
|
+
const a = F(i);
|
|
164
|
+
return new RangeError(`Invalid ${f} \`${o}\` of type \`${a}\` supplied to \`${s}\`, expected \`integer\`.`);
|
|
165
|
+
}
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
function $(e, o, ...s) {
|
|
169
|
+
return e[o] === void 0 ? null : A(e, o, ...s);
|
|
170
|
+
}
|
|
171
|
+
function p() {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
$.isRequired = A;
|
|
175
|
+
p.isRequired = p;
|
|
176
|
+
const O = process.env.NODE_ENV === "production" ? p : $;
|
|
177
|
+
export {
|
|
178
|
+
O as i,
|
|
179
|
+
M as r
|
|
180
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";var d={exports:{}},n={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-is.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var P;function N(){if(P)return n;P=1;var e=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),C=Symbol.for("react.client.reference");function u(r){if(typeof r=="object"&&r!==null){var R=r.$$typeof;switch(R){case e:switch(r=r.type,r){case s:case i:case f:case l:case T:return r;default:switch(r=r&&r.$$typeof,r){case c:case E:case m:case _:return r;case a:return r;default:return R}}case o:return R}}}return n.ContextConsumer=a,n.ContextProvider=c,n.Element=e,n.ForwardRef=E,n.Fragment=s,n.Lazy=m,n.Memo=_,n.Portal=o,n.Profiler=i,n.StrictMode=f,n.Suspense=l,n.SuspenseList=T,n.isContextConsumer=function(r){return u(r)===a},n.isContextProvider=function(r){return u(r)===c},n.isElement=function(r){return typeof r=="object"&&r!==null&&r.$$typeof===e},n.isForwardRef=function(r){return u(r)===E},n.isFragment=function(r){return u(r)===s},n.isLazy=function(r){return u(r)===m},n.isMemo=function(r){return u(r)===_},n.isPortal=function(r){return u(r)===o},n.isProfiler=function(r){return u(r)===i},n.isStrictMode=function(r){return u(r)===f},n.isSuspense=function(r){return u(r)===l},n.isSuspenseList=function(r){return u(r)===T},n.isValidElementType=function(r){return typeof r=="string"||typeof r=="function"||r===s||r===i||r===f||r===l||r===T||r===S||typeof r=="object"&&r!==null&&(r.$$typeof===m||r.$$typeof===_||r.$$typeof===c||r.$$typeof===a||r.$$typeof===E||r.$$typeof===C||r.getModuleId!==void 0)},n.typeOf=u,n}var t={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-is.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var y;function Y(){return y||(y=1,process.env.NODE_ENV!=="production"&&function(){function e(r){if(typeof r=="object"&&r!==null){var R=r.$$typeof;switch(R){case o:switch(r=r.type,r){case f:case a:case i:case T:case _:return r;default:switch(r=r&&r.$$typeof,r){case E:case l:case S:case m:return r;case c:return r;default:return R}}case s:return R}}}var o=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),E=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),u=Symbol.for("react.client.reference");t.ContextConsumer=c,t.ContextProvider=E,t.Element=o,t.ForwardRef=l,t.Fragment=f,t.Lazy=S,t.Memo=m,t.Portal=s,t.Profiler=a,t.StrictMode=i,t.Suspense=T,t.SuspenseList=_,t.isContextConsumer=function(r){return e(r)===c},t.isContextProvider=function(r){return e(r)===E},t.isElement=function(r){return typeof r=="object"&&r!==null&&r.$$typeof===o},t.isForwardRef=function(r){return e(r)===l},t.isFragment=function(r){return e(r)===f},t.isLazy=function(r){return e(r)===S},t.isMemo=function(r){return e(r)===m},t.isPortal=function(r){return e(r)===s},t.isProfiler=function(r){return e(r)===a},t.isStrictMode=function(r){return e(r)===i},t.isSuspense=function(r){return e(r)===T},t.isSuspenseList=function(r){return e(r)===_},t.isValidElementType=function(r){return typeof r=="string"||typeof r=="function"||r===f||r===a||r===i||r===T||r===_||r===C||typeof r=="object"&&r!==null&&(r.$$typeof===S||r.$$typeof===m||r.$$typeof===E||r.$$typeof===c||r.$$typeof===l||r.$$typeof===u||r.getModuleId!==void 0)},t.typeOf=e}()),t}process.env.NODE_ENV==="production"?d.exports=N():d.exports=Y();var F=d.exports;function I(e){const o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return o}}function A(e,o,s,f){const i=e[o];if(i==null||!Number.isInteger(i)){const a=I(i);return new RangeError(`Invalid ${f} \`${o}\` of type \`${a}\` supplied to \`${s}\`, expected \`integer\`.`)}return null}function $(e,o,...s){return e[o]===void 0?null:A(e,o,...s)}function p(){return null}$.isRequired=A;p.isRequired=p;const M=process.env.NODE_ENV==="production"?p:$;exports.integerPropType=M;exports.reactIsExports=F;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Breadcrumbs-B46ViOSv.cjs");exports.Breadcrumbs=e.Breadcrumbs;exports.breadcrumbsTheme=e.breadcrumbsTheme;exports.default=e.Breadcrumbs;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BreadcrumbsProps as MuiBreadcrumbsProps } from '@mui/material/Breadcrumbs';
|
|
3
|
+
import { BreadcrumbsTheme } from './themes';
|
|
4
|
+
export declare type BreadcrumbItem = {
|
|
5
|
+
label: string;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
onClick?: (event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare type BreadcrumbsProps = {
|
|
10
|
+
breadcrumbItems: BreadcrumbItem[];
|
|
11
|
+
theme?: BreadcrumbsTheme;
|
|
12
|
+
} & MuiBreadcrumbsProps & React.HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
declare const Breadcrumbs: React.ForwardRefExoticComponent<Omit<BreadcrumbsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default Breadcrumbs;
|
|
15
|
+
export { Breadcrumbs };
|
|
16
|
+
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../src/lib/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAuB,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAOpG,OAAO,EAAE,gBAAgB,EAAoB,MAAM,UAAU,CAAC;AAE9D,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,GAAG,mBAAmB,GACrB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAIvC,QAAA,MAAM,WAAW,sGA0BhB,CAAC;AAEF,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Breadcrumbs/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbsTheme.d.ts","sourceRoot":"","sources":["../../../../src/lib/Breadcrumbs/themes/breadcrumbsTheme.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,eAAO,MAAM,gBAAgB,sCAU3B,CAAC;AACH,oBAAY,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Breadcrumbs/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../Button-CoMaroSC.cjs");exports.Button=t.Button;exports.buttonsTheme=t.buttonsTheme;exports.default=t.Button;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps as MuiButtonProps } from '@mui/material/Button';
|
|
3
|
+
import { ButtonsTheme } from './themes';
|
|
4
|
+
export declare type ButtonProps = {
|
|
5
|
+
theme?: ButtonsTheme;
|
|
6
|
+
} & MuiButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
7
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export default Button;
|
|
9
|
+
export { Button };
|
|
10
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/lib/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAkB,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAIhF,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,UAAU,CAAC;AAE3D,oBAAY,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB,GAAG,cAAc,GAChB,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,QAAA,MAAM,MAAM,oGAkBV,CAAC;AAEH,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe,MAAM,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Components } from '@mui/material/styles/components';
|
|
2
|
+
declare module '@mui/material/Button' {
|
|
3
|
+
interface ButtonPropsVariantOverrides {
|
|
4
|
+
gray: true;
|
|
5
|
+
primary: true;
|
|
6
|
+
secondary: true;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const buttonsTheme: import('@mui/material/styles').Theme;
|
|
10
|
+
export declare type ButtonsTheme = Components['MuiButton'];
|
|
11
|
+
//# sourceMappingURL=buttonsTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonsTheme.d.ts","sourceRoot":"","sources":["../../../../src/lib/Button/themes/buttonsTheme.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAI7D,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,2BAA2B;QACnC,IAAI,EAAE,IAAI,CAAC;QACX,OAAO,EAAE,IAAI,CAAC;QACd,SAAS,EAAE,IAAI,CAAC;KACjB;CACF;AAED,eAAO,MAAM,YAAY,sCA0EvB,CAAC;AACH,oBAAY,YAAY,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Button/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Checkbox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Checkbox-oJOn5Vb9.cjs");exports.Checkbox=e.Checkbox;exports.default=e.Checkbox;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { default as PropTypes } from 'prop-types';
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type DEPRECATED_ButtonProps = {
|
|
4
4
|
allowDisabledTitle?: boolean;
|
|
5
5
|
className?: string;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -18,7 +18,7 @@ export declare type ButtonProps = {
|
|
|
18
18
|
ariaLabel?: React.AriaAttributes['aria-label'];
|
|
19
19
|
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
20
20
|
declare const DEPRECATED_Button: {
|
|
21
|
-
(props:
|
|
21
|
+
(props: DEPRECATED_ButtonProps): React.JSX.Element;
|
|
22
22
|
propTypes: {
|
|
23
23
|
allowDisabledTitle: PropTypes.Requireable<boolean>;
|
|
24
24
|
className: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DEPRECATED_Button.d.ts","sourceRoot":"","sources":["../../../src/lib/DEPRECATED_Button/DEPRECATED_Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"DEPRECATED_Button.d.ts","sourceRoot":"","sources":["../../../src/lib/DEPRECATED_Button/DEPRECATED_Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,oBAAY,sBAAsB,GAAG;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;CAChD,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAQlD,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;CAyEvD,CAAC;AAsBF,eAAe,iBAAiB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/lib/Icon/Icon.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Icon-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Icon-CqoYg88-.cjs");exports.Icon=e.Icon;exports.default=e.Icon;
|
package/dist/lib/Icon/Icon.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/lib/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/lib/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAO/D,oBAAY,SAAS,GAAG;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,YAAY,GACd,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;AA4GxC,QAAA,MAAM,IAAI,gGAYR,CAAC;AAEH,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/lib/Icon/Icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../TablePagination-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../TablePagination-Yp8eKLZB.cjs");exports.TablePagination=e.TablePagination;exports.default=e.TablePagination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Tooltip-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Tooltip-DE1hlnS3.cjs");exports.Tooltip=e.Tooltip;exports.default=e.Tooltip;exports.tooltipTheme=e.tooltipTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Typography-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Typography-CGsd6zC4.cjs");exports.Typography=e.Typography;exports.default=e.Typography;exports.typographyTheme=e.typographyTheme;
|
package/dist/lib/index.d.ts
CHANGED
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/sisense/compose-sdk-monorepo",
|
|
7
7
|
"directory": "packages/sdk-shared-ui"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.30.0",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"main": "./dist/index.js",
|
|
@@ -103,6 +103,16 @@
|
|
|
103
103
|
"import": "./dist/lib/Dropdown/Dropdown.js",
|
|
104
104
|
"require": "./dist/lib/Dropdown/Dropdown.cjs",
|
|
105
105
|
"types": "./dist/lib/Dropdown/Dropdown.d.ts"
|
|
106
|
+
},
|
|
107
|
+
"./Button": {
|
|
108
|
+
"import": "./dist/lib/Button/Button.js",
|
|
109
|
+
"require": "./dist/lib/Button/Button.cjs",
|
|
110
|
+
"types": "./dist/lib/Button/Button.d.ts"
|
|
111
|
+
},
|
|
112
|
+
"./Breadcrumbs": {
|
|
113
|
+
"import": "./dist/lib/Breadcrumbs/Breadcrumbs.js",
|
|
114
|
+
"require": "./dist/lib/Breadcrumbs/Breadcrumbs.cjs",
|
|
115
|
+
"types": "./dist/lib/Breadcrumbs/Breadcrumbs.d.ts"
|
|
106
116
|
}
|
|
107
117
|
},
|
|
108
118
|
"typesVersions": {
|
|
@@ -145,6 +155,12 @@
|
|
|
145
155
|
],
|
|
146
156
|
"TablePagination": [
|
|
147
157
|
"./dist/lib/TablePagination/TablePagination.d.ts"
|
|
158
|
+
],
|
|
159
|
+
"Button": [
|
|
160
|
+
"./dist/lib/Button/Button.d.ts"
|
|
161
|
+
],
|
|
162
|
+
"Breadcrumbs": [
|
|
163
|
+
"./dist/lib/Breadcrumbs/Breadcrumbs.d.ts"
|
|
148
164
|
]
|
|
149
165
|
}
|
|
150
166
|
},
|
|
@@ -199,6 +215,7 @@
|
|
|
199
215
|
},
|
|
200
216
|
"dependencies": {
|
|
201
217
|
"@mui/material": "^6.2.1",
|
|
218
|
+
"@mui/utils": "^6.4.1",
|
|
202
219
|
"classnames": "^2.5.1",
|
|
203
220
|
"prop-types": "^15.8.1",
|
|
204
221
|
"rc-tooltip": "^6.3.2",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
function d({
|
|
3
|
+
controlled: o,
|
|
4
|
+
default: s,
|
|
5
|
+
name: n,
|
|
6
|
+
state: r = "value"
|
|
7
|
+
}) {
|
|
8
|
+
const {
|
|
9
|
+
current: e
|
|
10
|
+
} = t.useRef(o !== void 0), [c, l] = t.useState(s), u = e ? o : c;
|
|
11
|
+
if (process.env.NODE_ENV !== "production") {
|
|
12
|
+
t.useEffect(() => {
|
|
13
|
+
e !== (o !== void 0) && console.error([`MUI: A component is changing the ${e ? "" : "un"}controlled ${r} state of ${n} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
14
|
+
`));
|
|
15
|
+
}, [r, n, o]);
|
|
16
|
+
const {
|
|
17
|
+
current: i
|
|
18
|
+
} = t.useRef(s);
|
|
19
|
+
t.useEffect(() => {
|
|
20
|
+
!e && !Object.is(i, s) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
21
|
+
`));
|
|
22
|
+
}, [JSON.stringify(s)]);
|
|
23
|
+
}
|
|
24
|
+
const f = t.useCallback((i) => {
|
|
25
|
+
e || l(i);
|
|
26
|
+
}, []);
|
|
27
|
+
return [u, f];
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
d as u
|
|
31
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const a=require("react");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=d(a);function g({controlled:e,default:n,name:t,state:o="value"}){const{current:r}=c.useRef(e!==void 0),[i,l]=c.useState(n),u=r?e:i;if(process.env.NODE_ENV!=="production"){c.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${o} state of ${t} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
2
|
+
`))},[o,t,e]);const{current:s}=c.useRef(n);c.useEffect(()=>{!r&&!Object.is(s,n)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
|
|
3
|
+
`))},[JSON.stringify(n)])}const f=c.useCallback(s=>{r||l(s)},[]);return[u,f]}exports.useControlled=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react");function s(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const c=s(u),n=c.createContext(void 0);process.env.NODE_ENV!=="production"&&(n.displayName="FormControlContext");function a(){return c.useContext(n)}exports.FormControlContext=n;exports.useFormControl=a;
|