@helpdice/ui 2.5.4 → 2.5.8
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/auto-complete/index.js +1273 -404
- package/dist/avatar/index.js +88 -49
- package/dist/badge/index.js +69 -27
- package/dist/breadcrumbs/index.js +107 -56
- package/dist/button/button.icon.d.ts +3 -16
- package/dist/button/button.small.d.ts +3 -16
- package/dist/button/index.js +143 -157
- package/dist/button-dropdown/index.js +96 -83
- package/dist/button-group/index.js +61 -21
- package/dist/capacity/index.js +61 -22
- package/dist/card/index.js +147 -123
- package/dist/carousal/index.js +349 -330
- package/dist/checkbox/index.js +72 -67
- package/dist/circular-progress/CircularProgress.d.ts +17 -0
- package/dist/circular-progress/index.d.ts +3 -4
- package/dist/circular-progress/index.js +713 -336
- package/dist/circular-progress/useCircularProgress.d.ts +12 -0
- package/dist/code/index.js +70 -26
- package/dist/col/index.js +61 -24
- package/dist/collapse/index.js +102 -52
- package/dist/container/index.js +187 -190
- package/dist/copy-to-clipboard/index.js +158 -210
- package/dist/description/index.js +64 -23
- package/dist/display/index.js +64 -23
- package/dist/divider/index.js +62 -22
- package/dist/dot/index.js +63 -23
- package/dist/drawer/index.js +74 -61
- package/dist/fieldset/index.js +127 -63
- package/dist/form/index.js +15 -40
- package/dist/grid/index.js +74 -29
- package/dist/html-renderer/index.js +3 -2
- package/dist/image/index.js +163 -104
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5240 -4755
- package/dist/input/index.js +1183 -277
- package/dist/keyboard/index.js +73 -29
- package/dist/linear-progress/index.js +27 -24
- package/dist/link/index.js +78 -36
- package/dist/list/index.js +118 -63
- package/dist/loadable/index.js +76 -27
- package/dist/loading/index.js +70 -29
- package/dist/menu/index.js +53 -47
- package/dist/modal/index.js +225 -178
- package/dist/note/index.js +64 -23
- package/dist/notetip/index.js +54 -45
- package/dist/notetip/note-tip.d.ts +2 -0
- package/dist/page/index.js +102 -51
- package/dist/pagination/index.js +181 -124
- package/dist/placeholder/index.js +554 -538
- package/dist/popover/index.js +94 -81
- package/dist/progress/index.js +66 -27
- package/dist/radio/index.js +94 -48
- package/dist/rating/index.js +78 -38
- package/dist/row/index.js +62 -25
- package/dist/search-bar/index.js +172 -162
- package/dist/select/index.js +1098 -163
- package/dist/select/select.d.ts +2 -0
- package/dist/slider/index.js +91 -47
- package/dist/snippet/index.js +39 -39
- package/dist/spacer/index.js +58 -19
- package/dist/spinner/index.js +69 -28
- package/dist/swipe/index.js +28 -13
- package/dist/table/index.js +4162 -3863
- package/dist/table/table-body.d.ts +4 -3
- package/dist/table/table-cell.d.ts +4 -2
- package/dist/table/table-types.d.ts +2 -0
- package/dist/table/table.d.ts +5 -1
- package/dist/tabs/index.js +61 -59
- package/dist/tag/index.js +16 -20
- package/dist/text/index.js +187 -184
- package/dist/text/text.d.ts +3 -0
- package/dist/textarea/index.js +916 -36
- package/dist/textarea/textarea.d.ts +3 -0
- package/dist/toggle/index.js +75 -33
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +59 -53
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- package/dist/tooltip/tooltip-small.d.ts +2 -5
- package/dist/tooltip/tooltip.d.ts +2 -1
- package/dist/tree/index.js +176 -115
- package/dist/use-scale/index.js +50 -13
- package/dist/user/index.js +152 -100
- package/esm/avatar/avatar.js +8 -6
- package/esm/button/button.icon.d.ts +3 -16
- package/esm/button/button.icon.js +22 -22
- package/esm/button/button.js +5 -5
- package/esm/button/button.small.d.ts +3 -16
- package/esm/button/button.small.js +20 -23
- package/esm/circular-progress/CircularProgress.d.ts +17 -0
- package/esm/circular-progress/CircularProgress.js +110 -0
- package/esm/circular-progress/index.d.ts +3 -4
- package/esm/circular-progress/index.js +3 -4
- package/esm/circular-progress/useCircularProgress.d.ts +12 -0
- package/esm/circular-progress/useCircularProgress.js +35 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +1 -1
- package/esm/input/input-field.js +11 -9
- package/esm/list/list-item.js +11 -11
- package/esm/notetip/note-tip.d.ts +2 -0
- package/esm/notetip/note-tip.js +8 -5
- package/esm/pagination/pagination-item.js +6 -6
- package/esm/select/select.d.ts +2 -0
- package/esm/select/select.js +15 -2
- package/esm/skeleton/index.js +9 -4
- package/esm/table/table-body.d.ts +4 -3
- package/esm/table/table-body.js +25 -15
- package/esm/table/table-cell.d.ts +4 -2
- package/esm/table/table-cell.js +19 -3
- package/esm/table/table-types.d.ts +2 -0
- package/esm/table/table.d.ts +5 -1
- package/esm/table/table.js +52 -25
- package/esm/text/text.d.ts +3 -0
- package/esm/text/text.js +9 -2
- package/esm/textarea/textarea.d.ts +3 -0
- package/esm/textarea/textarea.js +19 -2
- package/esm/tooltip/index.d.ts +1 -2
- package/esm/tooltip/tooltip-content.d.ts +1 -1
- package/esm/tooltip/tooltip-content.js +5 -5
- package/esm/tooltip/tooltip-small.d.ts +2 -5
- package/esm/tooltip/tooltip-small.js +0 -1
- package/esm/tooltip/tooltip.d.ts +2 -1
- package/esm/tooltip/tooltip.js +6 -5
- package/package.json +3 -3
- package/dist/circular-progress/CircularProgressbar.d.ts +0 -10
- package/dist/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/dist/circular-progress/Path.d.ts +0 -9
- package/dist/circular-progress/buildStyles.d.ts +0 -12
- package/dist/circular-progress/constants.d.ts +0 -5
- package/dist/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/CircularProgressbar.d.ts +0 -10
- package/esm/circular-progress/CircularProgressbar.js +0 -118
- package/esm/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/esm/circular-progress/CircularProgressbarWithChildren.js +0 -32
- package/esm/circular-progress/Path.d.ts +0 -9
- package/esm/circular-progress/Path.js +0 -52
- package/esm/circular-progress/buildStyles.d.ts +0 -12
- package/esm/circular-progress/buildStyles.js +0 -45
- package/esm/circular-progress/constants.d.ts +0 -5
- package/esm/circular-progress/constants.js +0 -5
- package/esm/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/types.js +0 -1
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var theme = require('@helpdice/theme');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
|
|
8
9
|
function getDefaultExportFromCjs (x) {
|
|
9
10
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -604,14 +605,13 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
604
605
|
}
|
|
605
606
|
};
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
-
return
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
}, _extends.apply(null, arguments);
|
|
608
|
+
function _defineProperty(e, r, t) {
|
|
609
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
610
|
+
value: t,
|
|
611
|
+
enumerable: true,
|
|
612
|
+
configurable: true,
|
|
613
|
+
writable: true
|
|
614
|
+
}) : e[r] = t, e;
|
|
615
615
|
}
|
|
616
616
|
function _iterableToArrayLimit(r, l) {
|
|
617
617
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -643,6 +643,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
643
643
|
function _nonIterableRest() {
|
|
644
644
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
645
645
|
}
|
|
646
|
+
function ownKeys(e, r) {
|
|
647
|
+
var t = Object.keys(e);
|
|
648
|
+
if (Object.getOwnPropertySymbols) {
|
|
649
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
650
|
+
r && (o = o.filter(function (r) {
|
|
651
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
652
|
+
})), t.push.apply(t, o);
|
|
653
|
+
}
|
|
654
|
+
return t;
|
|
655
|
+
}
|
|
656
|
+
function _objectSpread2(e) {
|
|
657
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
658
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
659
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
660
|
+
_defineProperty(e, r, t[r]);
|
|
661
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
662
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
return e;
|
|
666
|
+
}
|
|
646
667
|
function _objectWithoutProperties(e, t) {
|
|
647
668
|
if (null == e) return {};
|
|
648
669
|
var o,
|
|
@@ -666,6 +687,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
666
687
|
function _slicedToArray(r, e) {
|
|
667
688
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
668
689
|
}
|
|
690
|
+
function _toPrimitive(t, r) {
|
|
691
|
+
if ("object" != typeof t || !t) return t;
|
|
692
|
+
var e = t[Symbol.toPrimitive];
|
|
693
|
+
if (void 0 !== e) {
|
|
694
|
+
var i = e.call(t, r);
|
|
695
|
+
if ("object" != typeof i) return i;
|
|
696
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
697
|
+
}
|
|
698
|
+
return ("string" === r ? String : Number)(t);
|
|
699
|
+
}
|
|
700
|
+
function _toPropertyKey(t) {
|
|
701
|
+
var i = _toPrimitive(t, "string");
|
|
702
|
+
return "symbol" == typeof i ? i : i + "";
|
|
703
|
+
}
|
|
669
704
|
function _unsupportedIterableToArray(r, a) {
|
|
670
705
|
if (r) {
|
|
671
706
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -859,11 +894,13 @@ var withScale = function withScale(Render) {
|
|
|
859
894
|
getScaleProps: generateGetScaleProps(props),
|
|
860
895
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
861
896
|
};
|
|
862
|
-
return /*#__PURE__*/
|
|
863
|
-
value: value
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
897
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
898
|
+
value: value,
|
|
899
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
900
|
+
ref: ref,
|
|
901
|
+
children: children
|
|
902
|
+
}))
|
|
903
|
+
});
|
|
867
904
|
});
|
|
868
905
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
869
906
|
return ScaleFC;
|
|
@@ -876,12 +913,14 @@ var Separator = function Separator(_ref) {
|
|
|
876
913
|
var _useScale = useScale(),
|
|
877
914
|
SCALES = _useScale.SCALES;
|
|
878
915
|
var classes = theme.useClasses('separator', className);
|
|
879
|
-
return /*#__PURE__*/
|
|
880
|
-
className: _JSXStyle.dynamic([["1571781185", [SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0.5), SCALES.mb(0), SCALES.ml(0.5)]]]) + " " + (classes || "")
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
916
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
917
|
+
className: _JSXStyle.dynamic([["1571781185", [SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0.5), SCALES.mb(0), SCALES.ml(0.5)]]]) + " " + (classes || ""),
|
|
918
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
919
|
+
id: "1571781185",
|
|
920
|
+
dynamic: [SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0.5), SCALES.mb(0), SCALES.ml(0.5)],
|
|
921
|
+
children: ".separator.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:".concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";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.5), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0.5), ";}")
|
|
922
|
+
})]
|
|
923
|
+
});
|
|
885
924
|
};
|
|
886
925
|
Separator.displayName = 'BreadcrumbsSeparator';
|
|
887
926
|
var BreadcrumbsSeparator = withScale(Separator);
|
|
@@ -940,24 +979,28 @@ var BreadcrumbsComponent = function BreadcrumbsComponent(_ref) {
|
|
|
940
979
|
var lastIsSeparator = /*#__PURE__*/React.isValidElement(last) && last.type === BreadcrumbsSeparator;
|
|
941
980
|
var currentIsSeparator = item.type === BreadcrumbsSeparator;
|
|
942
981
|
if (!lastIsSeparator && !currentIsSeparator && index > 0) {
|
|
943
|
-
return /*#__PURE__*/
|
|
944
|
-
|
|
945
|
-
|
|
982
|
+
return /*#__PURE__*/jsxRuntime.jsxs(React.Fragment, {
|
|
983
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(BreadcrumbsSeparator, {
|
|
984
|
+
children: separator
|
|
985
|
+
}), item]
|
|
986
|
+
}, index);
|
|
946
987
|
}
|
|
947
988
|
return item;
|
|
948
989
|
});
|
|
949
|
-
return /*#__PURE__*/
|
|
950
|
-
className: _JSXStyle.dynamic([["524763277", [theme$1.palette.accents_4, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverColor, theme$1.palette.accents_6]]]) + " " + (className || "")
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
990
|
+
return /*#__PURE__*/jsxRuntime.jsxs("nav", {
|
|
991
|
+
className: _JSXStyle.dynamic([["524763277", [theme$1.palette.accents_4, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverColor, theme$1.palette.accents_6]]]) + " " + (className || ""),
|
|
992
|
+
children: [withSeparatorChildren, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
993
|
+
id: "524763277",
|
|
994
|
+
dynamic: [theme$1.palette.accents_4, SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverColor, theme$1.palette.accents_6],
|
|
995
|
+
children: "nav.__jsx-style-dynamic-selector{line-height:inherit;color:".concat(theme$1.palette.accents_4, ";box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:").concat(SCALES.font(1), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";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(SCALES.ml(0), ";}nav.__jsx-style-dynamic-selector .link:hover{color:").concat(hoverColor, ";}nav.__jsx-style-dynamic-selector>span:last-of-type{color:").concat(theme$1.palette.accents_6, ";}nav.__jsx-style-dynamic-selector>.separator:last-child{display:none;}nav.__jsx-style-dynamic-selector svg{width:1em;height:1em;margin:0 4px;}nav.__jsx-style-dynamic-selector .breadcrumbs-item{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}")
|
|
996
|
+
})]
|
|
997
|
+
});
|
|
955
998
|
};
|
|
956
999
|
BreadcrumbsComponent.displayName = 'Breadcrumbs';
|
|
957
1000
|
var Breadcrumbs = withScale(BreadcrumbsComponent);
|
|
958
1001
|
|
|
959
1002
|
var LinkIconComponent = function LinkIconComponent() {
|
|
960
|
-
return /*#__PURE__*/
|
|
1003
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
961
1004
|
viewBox: "0 0 24 24",
|
|
962
1005
|
width: "0.9375em",
|
|
963
1006
|
height: "0.9375em",
|
|
@@ -967,19 +1010,21 @@ var LinkIconComponent = function LinkIconComponent() {
|
|
|
967
1010
|
strokeLinejoin: "round",
|
|
968
1011
|
fill: "none",
|
|
969
1012
|
shapeRendering: "geometricPrecision",
|
|
970
|
-
className: "jsx-3409194595" + " " + "icon"
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1013
|
+
className: "jsx-3409194595" + " " + "icon",
|
|
1014
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1015
|
+
d: "M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6",
|
|
1016
|
+
className: "jsx-3409194595"
|
|
1017
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1018
|
+
d: "M15 3h6v6",
|
|
1019
|
+
className: "jsx-3409194595"
|
|
1020
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1021
|
+
d: "M10 14L21 3",
|
|
1022
|
+
className: "jsx-3409194595"
|
|
1023
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1024
|
+
id: "3409194595",
|
|
1025
|
+
children: ".icon.jsx-3409194595{margin:0 0 -1px 0.1875em;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;color:currentColor;}"
|
|
1026
|
+
})]
|
|
1027
|
+
});
|
|
983
1028
|
};
|
|
984
1029
|
LinkIconComponent.displayName = 'LinkIcon';
|
|
985
1030
|
var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
|
|
@@ -1010,17 +1055,20 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1010
1055
|
var classes = theme.useClasses('link', {
|
|
1011
1056
|
block: block
|
|
1012
1057
|
}, className);
|
|
1013
|
-
return /*#__PURE__*/
|
|
1058
|
+
return /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread2(_objectSpread2({
|
|
1014
1059
|
href: href
|
|
1015
|
-
}, props, {
|
|
1060
|
+
}, props), {}, {
|
|
1016
1061
|
ref: ref,
|
|
1017
|
-
className: _JSXStyle.dynamic([["1962988967", [linkColor, block ? theme$1.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1062
|
+
className: _JSXStyle.dynamic([["1962988967", [linkColor, block ? theme$1.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
1063
|
+
children: [icon && icon, /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1064
|
+
className: _JSXStyle.dynamic([["1962988967", [linkColor, block ? theme$1.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + "link-extra",
|
|
1065
|
+
children: [children, arrow && /*#__PURE__*/jsxRuntime.jsx(LinkIcon, {})]
|
|
1066
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1067
|
+
id: "1962988967",
|
|
1068
|
+
dynamic: [linkColor, block ? theme$1.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', hoverColor],
|
|
1069
|
+
children: ".link.__jsx-style-dynamic-selector,.link-extra.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:inherit;gap:5px;color:".concat(linkColor, ";-webkit-text-decoration:none;text-decoration:none;border-radius:").concat(block ? theme$1.layout.radius : 0, ";-webkit-transition:color 200ms ease 0ms;transition:color 200ms ease 0ms;font-size:").concat(SCALES.font(1, 'inherit'), ";width:").concat(SCALES.width(1, 'fit-content'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}.block.__jsx-style-dynamic-selector{padding:").concat(SCALES.pt(0.125), " ").concat(SCALES.pr(0.25), " ").concat(SCALES.pb(0.125), " ").concat(SCALES.pl(0.25), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(-0.125), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(-0.125), ";}.link.__jsx-style-dynamic-selector:hover,.link.__jsx-style-dynamic-selector:active,.link.__jsx-style-dynamic-selector:focus{-webkit-text-decoration:").concat(decoration, ";text-decoration:").concat(decoration, ";}.link.__jsx-style-dynamic-selector:hover{background-color:").concat(block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', ";color:").concat(hoverColor, ";}")
|
|
1070
|
+
})]
|
|
1071
|
+
}));
|
|
1024
1072
|
});
|
|
1025
1073
|
LinkComponent.displayName = 'Link';
|
|
1026
1074
|
var Link = withScale(LinkComponent);
|
|
@@ -1046,17 +1094,20 @@ var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1046
1094
|
onClick && onClick(event);
|
|
1047
1095
|
};
|
|
1048
1096
|
if (!isLink) {
|
|
1049
|
-
return /*#__PURE__*/
|
|
1097
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1050
1098
|
className: classes,
|
|
1051
|
-
onClick: clickHandler
|
|
1052
|
-
|
|
1099
|
+
onClick: clickHandler,
|
|
1100
|
+
children: withoutSepChildren
|
|
1101
|
+
});
|
|
1053
1102
|
}
|
|
1054
|
-
return /*#__PURE__*/
|
|
1103
|
+
return /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread2(_objectSpread2({
|
|
1055
1104
|
className: classes,
|
|
1056
1105
|
href: href,
|
|
1057
1106
|
onClick: clickHandler,
|
|
1058
1107
|
ref: ref
|
|
1059
|
-
}, props),
|
|
1108
|
+
}, props), {}, {
|
|
1109
|
+
children: withoutSepChildren
|
|
1110
|
+
}));
|
|
1060
1111
|
});
|
|
1061
1112
|
BreadcrumbsItem.displayName = 'BreadcrumbsItem';
|
|
1062
1113
|
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
iconRight?: React.ReactNode;
|
|
6
|
-
to: string;
|
|
7
|
-
icon?: React.ReactNode;
|
|
8
|
-
scale?: number;
|
|
9
|
-
type?: any;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
a?: boolean;
|
|
12
|
-
target?: string;
|
|
13
|
-
color?: ButtonTypes;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
};
|
|
16
|
-
declare const _default: React.NamedExoticComponent<CompactButtonProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from './button';
|
|
3
|
+
declare const _default: React.NamedExoticComponent<ButtonProps>;
|
|
17
4
|
export default _default;
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
iconRight?: React.ReactNode;
|
|
6
|
-
to: string;
|
|
7
|
-
icon?: React.ReactNode;
|
|
8
|
-
scale?: number;
|
|
9
|
-
type?: any;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
a?: boolean;
|
|
12
|
-
target?: string;
|
|
13
|
-
color?: ButtonTypes;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
};
|
|
16
|
-
declare const _default: React.NamedExoticComponent<SmallButtonProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from './button';
|
|
3
|
+
declare const _default: React.NamedExoticComponent<ButtonProps>;
|
|
17
4
|
export default _default;
|