@helpdice/ui 1.6.9 → 1.7.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/Placeholder/index.js +37 -16
- package/dist/auto-complete/index.js +37 -15
- package/dist/avatar/avatar.d.ts +2 -1
- package/dist/avatar/index.js +33 -13
- package/dist/badge/index.js +30 -11
- package/dist/breadcrumbs/index.js +30 -11
- package/dist/button/index.js +32 -12
- package/dist/button-dropdown/index.js +30 -11
- package/dist/button-group/index.js +30 -11
- package/dist/capacity/index.js +30 -11
- package/dist/card/index.js +30 -11
- package/dist/checkbox/index.js +30 -11
- package/dist/code/index.js +30 -11
- package/dist/col/index.js +21 -2
- package/dist/collapse/index.js +30 -11
- package/dist/css-baseline/index.js +24 -5
- package/dist/description/index.js +30 -11
- package/dist/display/index.js +30 -11
- package/dist/divider/index.js +30 -11
- package/dist/dot/index.js +30 -11
- package/dist/drawer/index.js +30 -11
- package/dist/fieldset/index.js +30 -11
- package/dist/grid/grid-container.d.ts +3 -3
- package/dist/grid/grid.d.ts +3 -3
- package/dist/grid/index.js +30 -11
- package/dist/image/index.js +30 -11
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10950 -1486
- package/dist/input/index.js +34 -13
- package/dist/keyboard/index.js +30 -11
- package/dist/link/index.js +30 -11
- package/dist/list/index.d.ts +9 -0
- package/dist/list/index.js +1287 -0
- package/dist/list/list-item.d.ts +53 -0
- package/dist/list/list.d.ts +44 -0
- package/dist/loading/index.js +30 -11
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/index.js +10354 -0
- package/dist/menu/menu.d.ts +9 -0
- package/dist/modal/index.js +34 -13
- package/dist/note/index.js +30 -11
- package/dist/page/index.js +30 -11
- package/dist/pagination/index.js +30 -11
- package/dist/popover/index.js +30 -11
- package/dist/progress/index.js +30 -11
- package/dist/radio/index.js +30 -11
- package/dist/rating/index.js +30 -11
- package/dist/row/index.js +21 -2
- package/dist/search-bar/index.js +31 -12
- package/dist/select/index.js +30 -11
- package/dist/slider/index.js +30 -11
- package/dist/snippet/index.js +30 -11
- package/dist/spacer/index.js +30 -11
- package/dist/spinner/index.js +30 -11
- package/dist/table/index.d.ts +0 -1
- package/dist/table/index.js +1663 -2242
- package/dist/tabs/index.js +30 -11
- package/dist/tag/index.js +30 -11
- package/dist/text/index.js +37 -16
- package/dist/text/text.d.ts +1 -0
- package/dist/textarea/index.js +30 -11
- package/dist/toggle/index.js +30 -11
- package/dist/tooltip/index.js +30 -11
- package/dist/tree/index.js +21 -2
- package/dist/ui-provider/index.js +32 -12
- package/dist/use-scale/index.js +9 -9
- package/dist/user/index.js +33 -13
- package/esm/auto-complete/auto-complete.js +3 -2
- package/esm/avatar/avatar.d.ts +2 -1
- package/esm/avatar/avatar.js +3 -2
- package/esm/button/button.js +2 -1
- package/esm/code-block/index.js +17 -12
- package/esm/css-baseline/css-baseline.js +3 -3
- package/esm/form/FormWrapper.js +4 -4
- package/esm/grid/grid-container.d.ts +3 -3
- package/esm/grid/grid.d.ts +3 -3
- package/esm/index.d.ts +3 -3
- package/esm/index.js +3 -3
- package/esm/input/input.js +2 -1
- package/esm/input/password.js +2 -1
- package/esm/link/link.js +2 -2
- package/esm/list/index.d.ts +9 -0
- package/esm/list/index.js +8 -0
- package/esm/list/list-item.d.ts +53 -0
- package/esm/list/list-item.js +84 -0
- package/esm/list/list.d.ts +44 -0
- package/esm/list/list.js +29 -0
- package/esm/login-with/LoginSocialApple/index.js +17 -17
- package/esm/login-with/LoginSocialGithub/index.js +2 -2
- package/esm/login-with/LoginSocialInstagram/index.js +2 -2
- package/esm/login-with/LoginSocialLinkedin/index.js +2 -2
- package/esm/login-with/LoginSocialMicrosoft/index.js +2 -2
- package/esm/login-with/LoginSocialPinterest/index.js +9 -9
- package/esm/login-with/LoginSocialTiktok/index.js +2 -2
- package/esm/login-with/LoginSocialTwitter/index.js +11 -11
- package/esm/menu/index.d.ts +2 -0
- package/esm/menu/index.js +2 -0
- package/esm/menu/menu.d.ts +9 -0
- package/esm/menu/menu.js +92 -0
- package/esm/modal/modal-action.js +2 -1
- package/esm/table/index.d.ts +0 -1
- package/esm/table/index.js +0 -1
- package/esm/table/table-body.js +4 -23
- package/esm/text/child.js +3 -3
- package/esm/text/text.d.ts +1 -0
- package/esm/text/text.js +4 -2
- package/esm/tooltip/__test__/index.test.js +28 -28
- package/package.json +15 -11
- package/dist/cart/index.d.ts +0 -72
- package/dist/cart/useLocalStorage.d.ts +0 -1
- package/dist/table/data-table.d.ts +0 -44
- package/esm/cart/index.d.ts +0 -72
- package/esm/cart/index.js +0 -265
- package/esm/cart/useLocalStorage.d.ts +0 -1
- package/esm/cart/useLocalStorage.js +0 -29
- package/esm/table/data-table.d.ts +0 -44
- package/esm/table/data-table.js +0 -451
|
@@ -994,11 +994,12 @@ function requireIndex () {
|
|
|
994
994
|
|
|
995
995
|
// Opt-into the new `useInsertionEffect` API in React 18, fallback to `useLayoutEffect`.
|
|
996
996
|
// https://github.com/reactwg/react-18/discussions/110
|
|
997
|
-
var useInsertionEffect = React__default["default"].useInsertionEffect ||
|
|
997
|
+
var useInsertionEffect = React__default["default"].useInsertionEffect || React$1.useLayoutEffect;
|
|
998
998
|
var defaultRegistry = typeof window !== "undefined" ? createStyleRegistry() : undefined;
|
|
999
999
|
function JSXStyle(props) {
|
|
1000
1000
|
var registry = defaultRegistry ? defaultRegistry : useStyleRegistry();
|
|
1001
|
-
|
|
1001
|
+
var insertionEffectCalled = React$1.useRef(false);
|
|
1002
|
+
// `registry` might not exist while server-side rendering
|
|
1002
1003
|
if (!registry) {
|
|
1003
1004
|
return null;
|
|
1004
1005
|
}
|
|
@@ -1007,6 +1008,24 @@ function requireIndex () {
|
|
|
1007
1008
|
return null;
|
|
1008
1009
|
}
|
|
1009
1010
|
useInsertionEffect(function() {
|
|
1011
|
+
// ReactDOM removes all DOM during hydration in certain cases
|
|
1012
|
+
if (!document.head) {
|
|
1013
|
+
return;
|
|
1014
|
+
}
|
|
1015
|
+
registry.add(props);
|
|
1016
|
+
insertionEffectCalled.current = true;
|
|
1017
|
+
return function() {
|
|
1018
|
+
insertionEffectCalled.current = false;
|
|
1019
|
+
registry.remove(props);
|
|
1020
|
+
};
|
|
1021
|
+
}, [
|
|
1022
|
+
props.id,
|
|
1023
|
+
String(props.dynamic)
|
|
1024
|
+
]);
|
|
1025
|
+
React$1.useLayoutEffect(function() {
|
|
1026
|
+
if (!document.head || insertionEffectCalled.current) {
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1010
1029
|
registry.add(props);
|
|
1011
1030
|
return function() {
|
|
1012
1031
|
registry.remove(props);
|
|
@@ -1250,7 +1269,7 @@ var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
|
|
|
1250
1269
|
};
|
|
1251
1270
|
var withScale = function withScale(Render) {
|
|
1252
1271
|
var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1253
|
-
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31
|
|
1272
|
+
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31;
|
|
1254
1273
|
var children = _ref.children,
|
|
1255
1274
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
1256
1275
|
var _useTheme = useTheme(),
|
|
@@ -1310,14 +1329,14 @@ var withScale = function withScale(Render) {
|
|
|
1310
1329
|
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1311
1330
|
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1312
1331
|
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1313
|
-
px: makeScaleHandler((
|
|
1314
|
-
py: makeScaleHandler((
|
|
1315
|
-
mt: makeScaleHandler((
|
|
1316
|
-
mr: makeScaleHandler((
|
|
1317
|
-
mb: makeScaleHandler((
|
|
1318
|
-
ml: makeScaleHandler((
|
|
1319
|
-
mx: makeScaleHandler((
|
|
1320
|
-
my: makeScaleHandler((
|
|
1332
|
+
px: makeScaleHandler((_ref0 = (_ref1 = (_ref10 = (_ref11 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref11 !== void 0 ? _ref11 : paddingRight) !== null && _ref10 !== void 0 ? _ref10 : pl) !== null && _ref1 !== void 0 ? _ref1 : pr) !== null && _ref0 !== void 0 ? _ref0 : padding),
|
|
1333
|
+
py: makeScaleHandler((_ref12 = (_ref13 = (_ref14 = (_ref15 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref15 !== void 0 ? _ref15 : paddingBottom) !== null && _ref14 !== void 0 ? _ref14 : pt) !== null && _ref13 !== void 0 ? _ref13 : pb) !== null && _ref12 !== void 0 ? _ref12 : padding),
|
|
1334
|
+
mt: makeScaleHandler((_ref16 = (_ref17 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref17 !== void 0 ? _ref17 : my) !== null && _ref16 !== void 0 ? _ref16 : margin),
|
|
1335
|
+
mr: makeScaleHandler((_ref18 = (_ref19 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref19 !== void 0 ? _ref19 : mx) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1336
|
+
mb: makeScaleHandler((_ref20 = (_ref21 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref21 !== void 0 ? _ref21 : my) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1337
|
+
ml: makeScaleHandler((_ref22 = (_ref23 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref23 !== void 0 ? _ref23 : mx) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1338
|
+
mx: makeScaleHandler((_ref24 = (_ref25 = (_ref26 = (_ref27 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref27 !== void 0 ? _ref27 : marginRight) !== null && _ref26 !== void 0 ? _ref26 : ml) !== null && _ref25 !== void 0 ? _ref25 : mr) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1339
|
+
my: makeScaleHandler((_ref28 = (_ref29 = (_ref30 = (_ref31 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref31 !== void 0 ? _ref31 : marginBottom) !== null && _ref30 !== void 0 ? _ref30 : mt) !== null && _ref29 !== void 0 ? _ref29 : mb) !== null && _ref28 !== void 0 ? _ref28 : margin),
|
|
1321
1340
|
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1322
1341
|
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1323
1342
|
font: makeScaleHandler(font)
|
|
@@ -1780,7 +1799,8 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1780
1799
|
var buttonRef = React.useRef(null);
|
|
1781
1800
|
React.useImperativeHandle(ref, function () {
|
|
1782
1801
|
return buttonRef.current;
|
|
1783
|
-
});
|
|
1802
|
+
}); // Changed with !
|
|
1803
|
+
|
|
1784
1804
|
var _useState = React.useState(false),
|
|
1785
1805
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1786
1806
|
dripShow = _useState2[0],
|
package/dist/use-scale/index.js
CHANGED
|
@@ -492,7 +492,7 @@ var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
|
|
|
492
492
|
};
|
|
493
493
|
var withScale = function withScale(Render) {
|
|
494
494
|
var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
495
|
-
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31
|
|
495
|
+
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31;
|
|
496
496
|
var children = _ref.children,
|
|
497
497
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
498
498
|
var _useTheme = useTheme(),
|
|
@@ -552,14 +552,14 @@ var withScale = function withScale(Render) {
|
|
|
552
552
|
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
553
553
|
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
554
554
|
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
555
|
-
px: makeScaleHandler((
|
|
556
|
-
py: makeScaleHandler((
|
|
557
|
-
mt: makeScaleHandler((
|
|
558
|
-
mr: makeScaleHandler((
|
|
559
|
-
mb: makeScaleHandler((
|
|
560
|
-
ml: makeScaleHandler((
|
|
561
|
-
mx: makeScaleHandler((
|
|
562
|
-
my: makeScaleHandler((
|
|
555
|
+
px: makeScaleHandler((_ref0 = (_ref1 = (_ref10 = (_ref11 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref11 !== void 0 ? _ref11 : paddingRight) !== null && _ref10 !== void 0 ? _ref10 : pl) !== null && _ref1 !== void 0 ? _ref1 : pr) !== null && _ref0 !== void 0 ? _ref0 : padding),
|
|
556
|
+
py: makeScaleHandler((_ref12 = (_ref13 = (_ref14 = (_ref15 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref15 !== void 0 ? _ref15 : paddingBottom) !== null && _ref14 !== void 0 ? _ref14 : pt) !== null && _ref13 !== void 0 ? _ref13 : pb) !== null && _ref12 !== void 0 ? _ref12 : padding),
|
|
557
|
+
mt: makeScaleHandler((_ref16 = (_ref17 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref17 !== void 0 ? _ref17 : my) !== null && _ref16 !== void 0 ? _ref16 : margin),
|
|
558
|
+
mr: makeScaleHandler((_ref18 = (_ref19 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref19 !== void 0 ? _ref19 : mx) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
559
|
+
mb: makeScaleHandler((_ref20 = (_ref21 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref21 !== void 0 ? _ref21 : my) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
560
|
+
ml: makeScaleHandler((_ref22 = (_ref23 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref23 !== void 0 ? _ref23 : mx) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
561
|
+
mx: makeScaleHandler((_ref24 = (_ref25 = (_ref26 = (_ref27 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref27 !== void 0 ? _ref27 : marginRight) !== null && _ref26 !== void 0 ? _ref26 : ml) !== null && _ref25 !== void 0 ? _ref25 : mr) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
562
|
+
my: makeScaleHandler((_ref28 = (_ref29 = (_ref30 = (_ref31 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref31 !== void 0 ? _ref31 : marginBottom) !== null && _ref30 !== void 0 ? _ref30 : mt) !== null && _ref29 !== void 0 ? _ref29 : mb) !== null && _ref28 !== void 0 ? _ref28 : margin),
|
|
563
563
|
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
564
564
|
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
565
565
|
font: makeScaleHandler(font)
|
package/dist/user/index.js
CHANGED
|
@@ -651,11 +651,12 @@ function requireIndex () {
|
|
|
651
651
|
|
|
652
652
|
// Opt-into the new `useInsertionEffect` API in React 18, fallback to `useLayoutEffect`.
|
|
653
653
|
// https://github.com/reactwg/react-18/discussions/110
|
|
654
|
-
var useInsertionEffect = React__default["default"].useInsertionEffect ||
|
|
654
|
+
var useInsertionEffect = React__default["default"].useInsertionEffect || React$1.useLayoutEffect;
|
|
655
655
|
var defaultRegistry = typeof window !== "undefined" ? createStyleRegistry() : undefined;
|
|
656
656
|
function JSXStyle(props) {
|
|
657
657
|
var registry = defaultRegistry ? defaultRegistry : useStyleRegistry();
|
|
658
|
-
|
|
658
|
+
var insertionEffectCalled = React$1.useRef(false);
|
|
659
|
+
// `registry` might not exist while server-side rendering
|
|
659
660
|
if (!registry) {
|
|
660
661
|
return null;
|
|
661
662
|
}
|
|
@@ -664,6 +665,24 @@ function requireIndex () {
|
|
|
664
665
|
return null;
|
|
665
666
|
}
|
|
666
667
|
useInsertionEffect(function() {
|
|
668
|
+
// ReactDOM removes all DOM during hydration in certain cases
|
|
669
|
+
if (!document.head) {
|
|
670
|
+
return;
|
|
671
|
+
}
|
|
672
|
+
registry.add(props);
|
|
673
|
+
insertionEffectCalled.current = true;
|
|
674
|
+
return function() {
|
|
675
|
+
insertionEffectCalled.current = false;
|
|
676
|
+
registry.remove(props);
|
|
677
|
+
};
|
|
678
|
+
}, [
|
|
679
|
+
props.id,
|
|
680
|
+
String(props.dynamic)
|
|
681
|
+
]);
|
|
682
|
+
React$1.useLayoutEffect(function() {
|
|
683
|
+
if (!document.head || insertionEffectCalled.current) {
|
|
684
|
+
return;
|
|
685
|
+
}
|
|
667
686
|
registry.add(props);
|
|
668
687
|
return function() {
|
|
669
688
|
registry.remove(props);
|
|
@@ -1049,7 +1068,7 @@ var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
|
|
|
1049
1068
|
};
|
|
1050
1069
|
var withScale = function withScale(Render) {
|
|
1051
1070
|
var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1052
|
-
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31
|
|
1071
|
+
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31;
|
|
1053
1072
|
var children = _ref.children,
|
|
1054
1073
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1055
1074
|
var _useTheme = useTheme(),
|
|
@@ -1109,14 +1128,14 @@ var withScale = function withScale(Render) {
|
|
|
1109
1128
|
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1110
1129
|
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1111
1130
|
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1112
|
-
px: makeScaleHandler((
|
|
1113
|
-
py: makeScaleHandler((
|
|
1114
|
-
mt: makeScaleHandler((
|
|
1115
|
-
mr: makeScaleHandler((
|
|
1116
|
-
mb: makeScaleHandler((
|
|
1117
|
-
ml: makeScaleHandler((
|
|
1118
|
-
mx: makeScaleHandler((
|
|
1119
|
-
my: makeScaleHandler((
|
|
1131
|
+
px: makeScaleHandler((_ref0 = (_ref1 = (_ref10 = (_ref11 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref11 !== void 0 ? _ref11 : paddingRight) !== null && _ref10 !== void 0 ? _ref10 : pl) !== null && _ref1 !== void 0 ? _ref1 : pr) !== null && _ref0 !== void 0 ? _ref0 : padding),
|
|
1132
|
+
py: makeScaleHandler((_ref12 = (_ref13 = (_ref14 = (_ref15 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref15 !== void 0 ? _ref15 : paddingBottom) !== null && _ref14 !== void 0 ? _ref14 : pt) !== null && _ref13 !== void 0 ? _ref13 : pb) !== null && _ref12 !== void 0 ? _ref12 : padding),
|
|
1133
|
+
mt: makeScaleHandler((_ref16 = (_ref17 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref17 !== void 0 ? _ref17 : my) !== null && _ref16 !== void 0 ? _ref16 : margin),
|
|
1134
|
+
mr: makeScaleHandler((_ref18 = (_ref19 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref19 !== void 0 ? _ref19 : mx) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1135
|
+
mb: makeScaleHandler((_ref20 = (_ref21 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref21 !== void 0 ? _ref21 : my) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1136
|
+
ml: makeScaleHandler((_ref22 = (_ref23 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref23 !== void 0 ? _ref23 : mx) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1137
|
+
mx: makeScaleHandler((_ref24 = (_ref25 = (_ref26 = (_ref27 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref27 !== void 0 ? _ref27 : marginRight) !== null && _ref26 !== void 0 ? _ref26 : ml) !== null && _ref25 !== void 0 ? _ref25 : mr) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1138
|
+
my: makeScaleHandler((_ref28 = (_ref29 = (_ref30 = (_ref31 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref31 !== void 0 ? _ref31 : marginBottom) !== null && _ref30 !== void 0 ? _ref30 : mt) !== null && _ref29 !== void 0 ? _ref29 : mb) !== null && _ref28 !== void 0 ? _ref28 : margin),
|
|
1120
1139
|
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1121
1140
|
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1122
1141
|
font: makeScaleHandler(font)
|
|
@@ -1167,7 +1186,7 @@ var useClasses = function useClasses() {
|
|
|
1167
1186
|
return classes.trim();
|
|
1168
1187
|
};
|
|
1169
1188
|
|
|
1170
|
-
var _excluded$3 = ["src", "stacked", "text", "isSquare", "className"];
|
|
1189
|
+
var _excluded$3 = ["src", "stacked", "text", "isSquare", "className", "children"];
|
|
1171
1190
|
|
|
1172
1191
|
// type NativeAttrs = Omit<
|
|
1173
1192
|
// Partial<React.ImgHTMLAttributes<any> & React.HTMLAttributes<any>>,
|
|
@@ -1188,6 +1207,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
1188
1207
|
isSquare = _ref$isSquare === void 0 ? false : _ref$isSquare,
|
|
1189
1208
|
_ref$className = _ref.className,
|
|
1190
1209
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1210
|
+
children = _ref.children,
|
|
1191
1211
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
1192
1212
|
var theme = useTheme();
|
|
1193
1213
|
var _useScale = useScale(),
|
|
@@ -1206,7 +1226,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
1206
1226
|
className: _JSXStyle.dynamic([["2295275975", [theme.palette.accents_2, radius, theme.palette.background, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]]]) + " " + (props && props.className != null && props.className || "avatar-img")
|
|
1207
1227
|
})), showText && /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
1208
1228
|
className: _JSXStyle.dynamic([["2295275975", [theme.palette.accents_2, radius, theme.palette.background, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]]]) + " " + (props && props.className != null && props.className || "avatar-text")
|
|
1209
|
-
}), safeText(text)), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
1229
|
+
}), text ? safeText(text) : children), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
1210
1230
|
id: "2295275975",
|
|
1211
1231
|
dynamic: [theme.palette.accents_2, radius, theme.palette.background, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]
|
|
1212
1232
|
}, ".avatar.__jsx-style-dynamic-selector{display:inline-block;position:relative;overflow:hidden;border:1px solid ".concat(theme.palette.accents_2, ";border-radius:").concat(radius, ";vertical-align:top;background-color:").concat(theme.palette.background, ";box-sizing:border-box;width:").concat(SCALES.width(1.75) || SCALES.height(1.75), ";height:").concat(SCALES.height(1.75) || SCALES.width(1.75), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(marginLeft, ";}.avatar-img.__jsx-style-dynamic-selector{display:inline-block;object-fit:cover;width:100%;height:100%;border-radius:").concat(radius, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.avatar-text.__jsx-style-dynamic-selector{position:absolute;left:50%;top:50%;font-size:").concat(SCALES.font(1), ";text-align:center;-webkit-transform:translate(-50%,-50%) scale(0.65);-ms-transform:translate(-50%,-50%) scale(0.65);transform:translate(-50%,-50%) scale(0.65);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}")));
|
|
@@ -66,7 +66,7 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
|
|
|
66
66
|
disableFreeSolo = _ref$disableFreeSolo === void 0 ? false : _ref$disableFreeSolo,
|
|
67
67
|
getPopupContainer = _ref.getPopupContainer,
|
|
68
68
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
69
|
-
var resetTimer = useRef();
|
|
69
|
+
var resetTimer = useRef(0); // DEFAULT Value 0
|
|
70
70
|
var _useScale = useScale(),
|
|
71
71
|
SCALES = _useScale.SCALES,
|
|
72
72
|
getScaleProps = _useScale.getScaleProps;
|
|
@@ -87,7 +87,8 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
|
|
|
87
87
|
setVisible = _useState4[1];
|
|
88
88
|
useImperativeHandle(userRef, function () {
|
|
89
89
|
return inputRef.current;
|
|
90
|
-
});
|
|
90
|
+
}); // Chnaged using !
|
|
91
|
+
|
|
91
92
|
var _pickChild = pickChild(children, AutoCompleteSearching),
|
|
92
93
|
_pickChild2 = _slicedToArray(_pickChild, 2),
|
|
93
94
|
searchChild = _pickChild2[1];
|
package/esm/avatar/avatar.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
interface Props {
|
|
3
3
|
src?: string;
|
|
4
4
|
stacked?: boolean;
|
|
5
5
|
text?: string;
|
|
6
6
|
isSquare?: boolean;
|
|
7
7
|
className?: string;
|
|
8
|
+
children?: ReactNode;
|
|
8
9
|
}
|
|
9
10
|
export type AvatarProps = Props;
|
|
10
11
|
declare const Avatar: React.ForwardRefExoticComponent<Props & {
|
package/esm/avatar/avatar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["src", "stacked", "text", "isSquare", "className"];
|
|
3
|
+
var _excluded = ["src", "stacked", "text", "isSquare", "className", "children"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
/* "use client" */
|
|
6
6
|
|
|
@@ -28,6 +28,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
28
28
|
isSquare = _ref$isSquare === void 0 ? false : _ref$isSquare,
|
|
29
29
|
_ref$className = _ref.className,
|
|
30
30
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
31
|
+
children = _ref.children,
|
|
31
32
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
32
33
|
var theme = useTheme();
|
|
33
34
|
var _useScale = useScale(),
|
|
@@ -46,7 +47,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
46
47
|
className: _JSXStyle.dynamic([["2295275975", [theme.palette.accents_2, radius, theme.palette.background, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]]]) + " " + (props && props.className != null && props.className || "avatar-img")
|
|
47
48
|
})), showText && /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
48
49
|
className: _JSXStyle.dynamic([["2295275975", [theme.palette.accents_2, radius, theme.palette.background, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]]]) + " " + (props && props.className != null && props.className || "avatar-text")
|
|
49
|
-
}), safeText(text)), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
50
|
+
}), text ? safeText(text) : children), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
50
51
|
id: "2295275975",
|
|
51
52
|
dynamic: [theme.palette.accents_2, radius, theme.palette.background, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]
|
|
52
53
|
}, ".avatar.__jsx-style-dynamic-selector{display:inline-block;position:relative;overflow:hidden;border:1px solid ".concat(theme.palette.accents_2, ";border-radius:").concat(radius, ";vertical-align:top;background-color:").concat(theme.palette.background, ";box-sizing:border-box;width:").concat(SCALES.width(1.75) || SCALES.height(1.75), ";height:").concat(SCALES.height(1.75) || SCALES.width(1.75), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(marginLeft, ";}.avatar-img.__jsx-style-dynamic-selector{display:inline-block;object-fit:cover;width:100%;height:100%;border-radius:").concat(radius, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.avatar-text.__jsx-style-dynamic-selector{position:absolute;left:50%;top:50%;font-size:").concat(SCALES.font(1), ";text-align:center;-webkit-transform:translate(-50%,-50%) scale(0.65);-ms-transform:translate(-50%,-50%) scale(0.65);transform:translate(-50%,-50%) scale(0.65);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}")));
|
package/esm/button/button.js
CHANGED
|
@@ -21,7 +21,8 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
21
21
|
var buttonRef = useRef(null);
|
|
22
22
|
useImperativeHandle(ref, function () {
|
|
23
23
|
return buttonRef.current;
|
|
24
|
-
});
|
|
24
|
+
}); // Changed with !
|
|
25
|
+
|
|
25
26
|
var _useState = useState(false),
|
|
26
27
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
28
|
dripShow = _useState2[0],
|
package/esm/code-block/index.js
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
/* "use client" */
|
|
2
2
|
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
5
|
-
import {
|
|
4
|
+
// import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
5
|
+
// import type { SyntaxHighlighterProps } from "react-syntax-highlighter";
|
|
6
|
+
import SyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism';
|
|
7
|
+
import { dracula } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
8
|
+
var SyntaxHighlighterAny = SyntaxHighlighter;
|
|
6
9
|
var CodeBlock = function CodeBlock(_ref) {
|
|
7
10
|
var code = _ref.code,
|
|
8
11
|
language = _ref.language,
|
|
9
12
|
_ref$wrapLines = _ref.wrapLines,
|
|
10
13
|
wrapLines = _ref$wrapLines === void 0 ? true : _ref$wrapLines,
|
|
11
14
|
_ref$showLineNumbers = _ref.showLineNumbers,
|
|
12
|
-
showLineNumbers = _ref$showLineNumbers === void 0 ? true : _ref$showLineNumbers
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
wordBreak: 'break-all',
|
|
17
|
-
whiteSpace: 'pre-wrap'
|
|
18
|
-
}
|
|
19
|
-
},
|
|
15
|
+
showLineNumbers = _ref$showLineNumbers === void 0 ? true : _ref$showLineNumbers,
|
|
16
|
+
_ref$style = _ref.style,
|
|
17
|
+
style = _ref$style === void 0 ? dracula : _ref$style;
|
|
18
|
+
return /*#__PURE__*/React.createElement(SyntaxHighlighterAny, {
|
|
20
19
|
language: language,
|
|
21
|
-
style:
|
|
20
|
+
style: style,
|
|
22
21
|
wrapLines: wrapLines,
|
|
23
22
|
wrapLongLines: wrapLines,
|
|
24
23
|
showLineNumbers: showLineNumbers,
|
|
25
|
-
showInlineLineNumbers: false
|
|
24
|
+
showInlineLineNumbers: false,
|
|
25
|
+
lineProps: {
|
|
26
|
+
style: {
|
|
27
|
+
wordBreak: "break-all",
|
|
28
|
+
whiteSpace: "pre-wrap"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
26
31
|
}, code);
|
|
27
32
|
};
|
|
28
33
|
export default CodeBlock;
|
|
@@ -12,9 +12,9 @@ var CssBaseline = function CssBaseline(_ref) {
|
|
|
12
12
|
var children = _ref.children;
|
|
13
13
|
var theme = useTheme();
|
|
14
14
|
return /*#__PURE__*/React.createElement(React.Fragment, null, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
15
|
-
id: "
|
|
16
|
-
dynamic: [theme.palette.background, theme.palette.foreground, theme.palette.background, theme.font.sans, theme.font.sans, theme.palette.link, theme.expressiveness.linkStyle, theme.expressiveness.linkHoverStyle, theme.layout.gapHalf, theme.layout.gapHalf, theme.layout.gapHalf, theme.layout.gap, theme.palette.foreground, theme.palette.
|
|
17
|
-
}, "html,body{background-color:".concat(theme.palette.background, ";color:").concat(theme.palette.foreground, ";}html{font-size:16px;--helpdice-icons-background:").concat(theme.palette.background, ";}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-size:1rem;line-height:1.5;margin:0;padding:0;min-height:100%;position:relative;overflow-x:hidden;font-family:").concat(theme.font.sans, ";}#__next{overflow-x:hidden;}*,*:before,*:after{box-sizing:inherit;text-rendering:geometricPrecision;-webkit-tap-highlight-color:transparent;}p,small{font-weight:400;color:inherit;-webkit-letter-spacing:-0.005625em;-moz-letter-spacing:-0.005625em;-ms-letter-spacing:-0.005625em;letter-spacing:-0.005625em;font-family:").concat(theme.font.sans, ";}p{margin:1em 0;font-size:1em;line-height:1.625em;}small{margin:0;line-height:1.5;font-size:0.875em;}b{font-weight:600;}span{font-size:inherit;color:inherit;font-weight:inherit;}img{max-width:100%;}a{cursor:pointer;font-size:inherit;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-box-align:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:").concat(theme.palette.link, ";-webkit-text-decoration:").concat(theme.expressiveness.linkStyle, ";text-decoration:").concat(theme.expressiveness.linkStyle, ";}a:hover{-webkit-text-decoration:").concat(theme.expressiveness.linkHoverStyle, ";text-decoration:").concat(theme.expressiveness.linkHoverStyle, ";}ul,ol{padding:0;list-style-type:none;margin:").concat(theme.layout.gapHalf, " ").concat(theme.layout.gapHalf, " ").concat(theme.layout.gapHalf, " ").concat(theme.layout.gap, ";color:").concat(theme.palette.foreground, ";}ol{list-style-type:decimal;}li{margin-bottom:0.625em;font-size:1em;line-height:1.625em;}
|
|
15
|
+
id: "3647548829",
|
|
16
|
+
dynamic: [theme.palette.background, theme.palette.foreground, theme.palette.background, theme.font.sans, theme.font.sans, theme.palette.link, theme.expressiveness.linkStyle, theme.expressiveness.linkHoverStyle, theme.layout.gapHalf, theme.layout.gapHalf, theme.layout.gapHalf, theme.layout.gap, theme.palette.foreground, theme.palette.code, theme.font.mono, theme.layout.gap, theme.layout.gap, theme.layout.gap, theme.palette.accents_2, theme.layout.radius, theme.font.mono, theme.palette.foreground, theme.palette.accents_2, theme.palette.accents_1, theme.layout.gap, theme.layout.gap, theme.palette.accents_5, theme.palette.accents_1, theme.layout.radius, theme.palette.border, theme.palette.selection, theme.palette.foreground]
|
|
17
|
+
}, "html,body{background-color:".concat(theme.palette.background, ";color:").concat(theme.palette.foreground, ";}html{font-size:16px;--helpdice-icons-background:").concat(theme.palette.background, ";}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-size:1rem;line-height:1.5;margin:0;padding:0;min-height:100%;position:relative;overflow-x:hidden;font-family:").concat(theme.font.sans, ";}#__next{overflow-x:hidden;}*,*:before,*:after{box-sizing:inherit;text-rendering:geometricPrecision;-webkit-tap-highlight-color:transparent;}p,small{font-weight:400;color:inherit;-webkit-letter-spacing:-0.005625em;-moz-letter-spacing:-0.005625em;-ms-letter-spacing:-0.005625em;letter-spacing:-0.005625em;font-family:").concat(theme.font.sans, ";}p{margin:1em 0;font-size:1em;line-height:1.625em;}small{margin:0;line-height:1.5;font-size:0.875em;}b{font-weight:600;}span{font-size:inherit;color:inherit;font-weight:inherit;}img{max-width:100%;}a{cursor:pointer;font-size:inherit;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-box-align:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:").concat(theme.palette.link, ";-webkit-text-decoration:").concat(theme.expressiveness.linkStyle, ";text-decoration:").concat(theme.expressiveness.linkStyle, ";}a:hover{-webkit-text-decoration:").concat(theme.expressiveness.linkHoverStyle, ";text-decoration:").concat(theme.expressiveness.linkHoverStyle, ";}ul,ol{padding:0;list-style-type:none;margin:").concat(theme.layout.gapHalf, " ").concat(theme.layout.gapHalf, " ").concat(theme.layout.gapHalf, " ").concat(theme.layout.gap, ";color:").concat(theme.palette.foreground, ";}ol{list-style-type:decimal;}li{margin-bottom:0.625em;font-size:1em;line-height:1.625em;}h1,h2,h3,h4,h5,h6{color:inherit;margin:0 0 0.7rem 0;}h1{font-size:3rem;-webkit-letter-spacing:-0.02em;-moz-letter-spacing:-0.02em;-ms-letter-spacing:-0.02em;letter-spacing:-0.02em;line-height:1.5;font-weight:700;}h2{font-size:2.25rem;-webkit-letter-spacing:-0.02em;-moz-letter-spacing:-0.02em;-ms-letter-spacing:-0.02em;letter-spacing:-0.02em;font-weight:600;}h3{font-size:1.5rem;-webkit-letter-spacing:-0.02em;-moz-letter-spacing:-0.02em;-ms-letter-spacing:-0.02em;letter-spacing:-0.02em;font-weight:600;}h4{font-size:1.25rem;-webkit-letter-spacing:-0.02em;-moz-letter-spacing:-0.02em;-ms-letter-spacing:-0.02em;letter-spacing:-0.02em;font-weight:600;}h5{font-size:1rem;-webkit-letter-spacing:-0.01em;-moz-letter-spacing:-0.01em;-ms-letter-spacing:-0.01em;letter-spacing:-0.01em;font-weight:600;}h6{font-size:0.875rem;-webkit-letter-spacing:-0.005em;-moz-letter-spacing:-0.005em;-ms-letter-spacing:-0.005em;letter-spacing:-0.005em;font-weight:600;}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;margin:0;}button:focus,input:focus,select:focus,textarea:focus{outline:none;}code{color:").concat(theme.palette.code, ";font-family:").concat(theme.font.mono, ";font-size:0.9em;white-space:pre-wrap;}code:before,code:after{content:'\\`';}pre{padding:calc(").concat(theme.layout.gap, " * 0.9) ").concat(theme.layout.gap, ";margin:").concat(theme.layout.gap, " 0;border:1px solid ").concat(theme.palette.accents_2, ";border-radius:").concat(theme.layout.radius, ";font-family:").concat(theme.font.mono, ";white-space:pre;overflow:auto;line-height:1.5;text-align:left;font-size:14px;-webkit-overflow-scrolling:touch;}pre code{color:").concat(theme.palette.foreground, ";font-size:1em;line-height:1.25em;white-space:pre;}pre code:before,pre code:after{display:none;}pre p{margin:0;}pre::-webkit-scrollbar{display:none;width:0;height:0;background:transparent;}hr{border-color:").concat(theme.palette.accents_2, ";}details{background-color:").concat(theme.palette.accents_1, ";border:none;}details:focus,details:hover,details:active{outline:none;}summary{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;outline:none;}summary::marker,summary::before,summary::-webkit-details-marker{display:none;}summary::-moz-list-bullet{font-size:0;}summary:focus,summary:hover,summary:active{outline:none;list-style:none;}blockquote{padding:calc(0.667 * ").concat(theme.layout.gap, ") ").concat(theme.layout.gap, ";color:").concat(theme.palette.accents_5, ";background-color:").concat(theme.palette.accents_1, ";border-radius:").concat(theme.layout.radius, ";margin:1.5em 0;border:1px solid ").concat(theme.palette.border, ";}blockquote *:first-child{margin-top:0;}blockquote *:last-child{margin-bottom:0;}::selection{background-color:").concat(theme.palette.selection, ";color:").concat(theme.palette.foreground, ";}")));
|
|
18
18
|
};
|
|
19
19
|
var MemoCssBaseline = /*#__PURE__*/React.memo(CssBaseline);
|
|
20
20
|
// MemoCssBaseline.flush = flush.StyleRegistry
|
package/esm/form/FormWrapper.js
CHANGED
|
@@ -228,12 +228,12 @@ export function useFormik(_ref) {
|
|
|
228
228
|
var runAllValidations = React.useCallback(/*#__PURE__*/function () {
|
|
229
229
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {
|
|
230
230
|
var _yield$Promise$all, _yield$Promise$all2, fieldErrors, schemaErrors, validateErrors, combinedErrors;
|
|
231
|
-
return _regeneratorRuntime.wrap(function
|
|
231
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
232
232
|
while (1) switch (_context.prev = _context.next) {
|
|
233
233
|
case 0:
|
|
234
|
-
_context.next =
|
|
234
|
+
_context.next = 1;
|
|
235
235
|
return Promise.all([runFieldLevelValidations(values), props.validationSchema ? runValidationSchema(values) : {}, props.validate ? runValidateHandler(values) : {}]);
|
|
236
|
-
case
|
|
236
|
+
case 1:
|
|
237
237
|
_yield$Promise$all = _context.sent;
|
|
238
238
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
|
|
239
239
|
fieldErrors = _yield$Promise$all2[0];
|
|
@@ -243,7 +243,7 @@ export function useFormik(_ref) {
|
|
|
243
243
|
arrayMerge: arrayMerge
|
|
244
244
|
});
|
|
245
245
|
return _context.abrupt("return", combinedErrors);
|
|
246
|
-
case
|
|
246
|
+
case 2:
|
|
247
247
|
case "end":
|
|
248
248
|
return _context.stop();
|
|
249
249
|
}
|
|
@@ -59,6 +59,8 @@ declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./b
|
|
|
59
59
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
60
60
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
61
61
|
is?: string | undefined | undefined;
|
|
62
|
+
exportparts?: string | undefined | undefined;
|
|
63
|
+
part?: string | undefined | undefined;
|
|
62
64
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
63
65
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
64
66
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -132,7 +134,7 @@ declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./b
|
|
|
132
134
|
onBlur?: React.FocusEventHandler<any> | undefined;
|
|
133
135
|
onBlurCapture?: React.FocusEventHandler<any> | undefined;
|
|
134
136
|
onChangeCapture?: React.FormEventHandler<any> | undefined;
|
|
135
|
-
onBeforeInput?: React.
|
|
137
|
+
onBeforeInput?: React.InputEventHandler<any> | undefined;
|
|
136
138
|
onBeforeInputCapture?: React.FormEventHandler<any> | undefined;
|
|
137
139
|
onInput?: React.FormEventHandler<any> | undefined;
|
|
138
140
|
onInputCapture?: React.FormEventHandler<any> | undefined;
|
|
@@ -182,8 +184,6 @@ declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./b
|
|
|
182
184
|
onProgressCapture?: React.ReactEventHandler<any> | undefined;
|
|
183
185
|
onRateChange?: React.ReactEventHandler<any> | undefined;
|
|
184
186
|
onRateChangeCapture?: React.ReactEventHandler<any> | undefined;
|
|
185
|
-
onResize?: React.ReactEventHandler<any> | undefined;
|
|
186
|
-
onResizeCapture?: React.ReactEventHandler<any> | undefined;
|
|
187
187
|
onSeeked?: React.ReactEventHandler<any> | undefined;
|
|
188
188
|
onSeekedCapture?: React.ReactEventHandler<any> | undefined;
|
|
189
189
|
onSeeking?: React.ReactEventHandler<any> | undefined;
|
package/esm/grid/grid.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item
|
|
|
56
56
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
57
57
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
58
58
|
is?: string | undefined | undefined;
|
|
59
|
+
exportparts?: string | undefined | undefined;
|
|
60
|
+
part?: string | undefined | undefined;
|
|
59
61
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
60
62
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
61
63
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -129,7 +131,7 @@ declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item
|
|
|
129
131
|
onBlur?: React.FocusEventHandler<any> | undefined;
|
|
130
132
|
onBlurCapture?: React.FocusEventHandler<any> | undefined;
|
|
131
133
|
onChangeCapture?: React.FormEventHandler<any> | undefined;
|
|
132
|
-
onBeforeInput?: React.
|
|
134
|
+
onBeforeInput?: React.InputEventHandler<any> | undefined;
|
|
133
135
|
onBeforeInputCapture?: React.FormEventHandler<any> | undefined;
|
|
134
136
|
onInput?: React.FormEventHandler<any> | undefined;
|
|
135
137
|
onInputCapture?: React.FormEventHandler<any> | undefined;
|
|
@@ -179,8 +181,6 @@ declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item
|
|
|
179
181
|
onProgressCapture?: React.ReactEventHandler<any> | undefined;
|
|
180
182
|
onRateChange?: React.ReactEventHandler<any> | undefined;
|
|
181
183
|
onRateChangeCapture?: React.ReactEventHandler<any> | undefined;
|
|
182
|
-
onResize?: React.ReactEventHandler<any> | undefined;
|
|
183
|
-
onResizeCapture?: React.ReactEventHandler<any> | undefined;
|
|
184
184
|
onSeeked?: React.ReactEventHandler<any> | undefined;
|
|
185
185
|
onSeekedCapture?: React.ReactEventHandler<any> | undefined;
|
|
186
186
|
onSeeking?: React.ReactEventHandler<any> | undefined;
|
package/esm/index.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ export { default as Pagination } from './pagination';
|
|
|
62
62
|
export type { PaginationProps, PaginationNextProps, PaginationPreviousProps, } from './pagination';
|
|
63
63
|
export { default as Popover } from './popover';
|
|
64
64
|
export type { PopoverProps, PopoverItemProps } from './popover';
|
|
65
|
+
export { default as List } from './list';
|
|
66
|
+
export { default as Menu } from './menu';
|
|
65
67
|
export { default as Progress } from './progress';
|
|
66
68
|
export type { ProgressProps } from './progress';
|
|
67
69
|
export { default as Radio } from './radio';
|
|
@@ -78,7 +80,7 @@ export { default as Spacer } from './spacer';
|
|
|
78
80
|
export type { SpacerProps } from './spacer';
|
|
79
81
|
export { default as Spinner } from './spinner';
|
|
80
82
|
export type { SpinnerProps } from './spinner';
|
|
81
|
-
export { default as Table
|
|
83
|
+
export { default as Table } from './table';
|
|
82
84
|
export type { TableProps, TableColumnProps } from './table';
|
|
83
85
|
export { default as Tabs } from './tabs';
|
|
84
86
|
export type { TabsProps } from './tabs';
|
|
@@ -128,6 +130,4 @@ export { default as Highlight } from './shared/highlight';
|
|
|
128
130
|
export type { HighlightProps } from './shared/highlight';
|
|
129
131
|
export { default as CodeBlock } from './code-block';
|
|
130
132
|
export { default as Skeleton } from './skeleton';
|
|
131
|
-
export { CartProvider, useCart, createCartIdentifier } from './cart';
|
|
132
|
-
export type { CartProviderState } from './cart';
|
|
133
133
|
export * from './login-with';
|
package/esm/index.js
CHANGED
|
@@ -38,6 +38,8 @@ export { default as Note } from './note';
|
|
|
38
38
|
export { default as Page } from './page';
|
|
39
39
|
export { default as Pagination } from './pagination';
|
|
40
40
|
export { default as Popover } from './popover';
|
|
41
|
+
export { default as List } from './list';
|
|
42
|
+
export { default as Menu } from './menu';
|
|
41
43
|
export { default as Progress } from './progress';
|
|
42
44
|
export { default as Radio } from './radio';
|
|
43
45
|
export { default as Rating } from './rating';
|
|
@@ -46,7 +48,7 @@ export { default as Slider } from './slider';
|
|
|
46
48
|
export { default as Snippet } from './snippet';
|
|
47
49
|
export { default as Spacer } from './spacer';
|
|
48
50
|
export { default as Spinner } from './spinner';
|
|
49
|
-
export { default as Table
|
|
51
|
+
export { default as Table } from './table';
|
|
50
52
|
export { default as Tabs } from './tabs';
|
|
51
53
|
export { default as Tag } from './tag';
|
|
52
54
|
export { default as Text } from './text';
|
|
@@ -78,7 +80,5 @@ export { default as Highlight } from './shared/highlight';
|
|
|
78
80
|
export { default as CodeBlock } from './code-block';
|
|
79
81
|
export { default as Skeleton } from './skeleton';
|
|
80
82
|
|
|
81
|
-
// Cart
|
|
82
|
-
export { CartProvider, useCart, createCartIdentifier } from './cart';
|
|
83
83
|
// Social Logins
|
|
84
84
|
export * from './login-with';
|
package/esm/input/input.js
CHANGED
|
@@ -62,7 +62,8 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
62
62
|
var inputRef = useRef(null);
|
|
63
63
|
useImperativeHandle(ref, function () {
|
|
64
64
|
return inputRef.current;
|
|
65
|
-
});
|
|
65
|
+
}); // Changed with !
|
|
66
|
+
|
|
66
67
|
var _useState = useState(initialValue),
|
|
67
68
|
_useState2 = _slicedToArray(_useState, 2),
|
|
68
69
|
selfValue = _useState2[0],
|
package/esm/input/password.js
CHANGED
|
@@ -21,7 +21,8 @@ var InputPasswordComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
|
21
21
|
setVisible = _useState2[1];
|
|
22
22
|
useImperativeHandle(ref, function () {
|
|
23
23
|
return inputRef.current;
|
|
24
|
-
});
|
|
24
|
+
}); // Changed with !
|
|
25
|
+
|
|
25
26
|
var iconClickHandler = function iconClickHandler() {
|
|
26
27
|
setVisible(function (v) {
|
|
27
28
|
return !v;
|
package/esm/link/link.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
3
|
var _excluded = ["href", "showColor", "underline", "children", "className", "block", "icon"];
|
|
6
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
|
+
// "use client"
|
|
6
|
+
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import useTheme from '../use-theme';
|
|
9
9
|
import LinkIcon from './icon';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import List from './list';
|
|
2
|
+
import ListItem from './list-item';
|
|
3
|
+
export type ListComponentType = typeof List & {
|
|
4
|
+
Item: typeof ListItem;
|
|
5
|
+
Option: typeof ListItem;
|
|
6
|
+
};
|
|
7
|
+
export type { ListItemProps } from './list-item';
|
|
8
|
+
declare const _default: ListComponentType;
|
|
9
|
+
export default _default;
|