@helpdice/ui 2.5.8-beta.0 → 2.5.9
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 +549 -491
- package/dist/avatar/index.js +82 -45
- package/dist/badge/index.js +69 -27
- package/dist/breadcrumbs/index.js +107 -56
- package/dist/button/button.icon.d.ts +3 -15
- package/dist/button/button.small.d.ts +3 -15
- package/dist/button/index.js +143 -155
- 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 -328
- 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 -188
- package/dist/copy-to-clipboard/index.js +158 -208
- 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 +4172 -3745
- package/dist/input/index.js +466 -419
- 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 +180 -123
- package/dist/placeholder/index.js +545 -534
- 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 +364 -327
- 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 +2216 -1973
- package/dist/table/table-body.d.ts +4 -2
- package/dist/table/table-cell.d.ts +4 -2
- package/dist/table/table-types.d.ts +2 -0
- package/dist/table/table.d.ts +4 -1
- package/dist/tabs/index.js +61 -59
- package/dist/tag/index.js +16 -20
- package/dist/text/index.js +178 -180
- package/dist/textarea/index.js +220 -214
- package/dist/toggle/index.js +75 -33
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +59 -52
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- 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 +146 -96
- package/esm/button/button.icon.d.ts +3 -15
- package/esm/button/button.icon.js +22 -22
- package/esm/button/button.js +4 -4
- package/esm/button/button.small.d.ts +3 -15
- package/esm/button/button.small.js +20 -21
- 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/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/skeleton/index.js +9 -4
- package/esm/table/table-body.d.ts +4 -2
- package/esm/table/table-body.js +9 -4
- 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 +4 -1
- package/esm/table/table.js +13 -6
- 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.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
package/dist/avatar/index.js
CHANGED
|
@@ -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 _arrayLikeToArray(r, a) {
|
|
9
10
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -58,14 +59,34 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
function _defineProperty(e, r, t) {
|
|
63
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
64
|
+
value: t,
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true
|
|
68
|
+
}) : e[r] = t, e;
|
|
69
|
+
}
|
|
70
|
+
function ownKeys(e, r) {
|
|
71
|
+
var t = Object.keys(e);
|
|
72
|
+
if (Object.getOwnPropertySymbols) {
|
|
73
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
74
|
+
r && (o = o.filter(function (r) {
|
|
75
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
76
|
+
})), t.push.apply(t, o);
|
|
77
|
+
}
|
|
78
|
+
return t;
|
|
79
|
+
}
|
|
80
|
+
function _objectSpread2(e) {
|
|
81
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
82
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
83
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
84
|
+
_defineProperty(e, r, t[r]);
|
|
85
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
86
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return e;
|
|
69
90
|
}
|
|
70
91
|
function _objectWithoutProperties(e, t) {
|
|
71
92
|
if (null == e) return {};
|
|
@@ -87,6 +108,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
87
108
|
}
|
|
88
109
|
return t;
|
|
89
110
|
}
|
|
111
|
+
function _toPrimitive(t, r) {
|
|
112
|
+
if ("object" != typeof t || !t) return t;
|
|
113
|
+
var e = t[Symbol.toPrimitive];
|
|
114
|
+
if (void 0 !== e) {
|
|
115
|
+
var i = e.call(t, r);
|
|
116
|
+
if ("object" != typeof i) return i;
|
|
117
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
118
|
+
}
|
|
119
|
+
return ("string" === r ? String : Number)(t);
|
|
120
|
+
}
|
|
121
|
+
function _toPropertyKey(t) {
|
|
122
|
+
var i = _toPrimitive(t, "string");
|
|
123
|
+
return "symbol" == typeof i ? i : i + "";
|
|
124
|
+
}
|
|
90
125
|
function _unsupportedIterableToArray(r, a) {
|
|
91
126
|
if (r) {
|
|
92
127
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -810,23 +845,19 @@ var withScale = function withScale(Render) {
|
|
|
810
845
|
getScaleProps: generateGetScaleProps(props),
|
|
811
846
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
812
847
|
};
|
|
813
|
-
return /*#__PURE__*/
|
|
814
|
-
value: value
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
848
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
849
|
+
value: value,
|
|
850
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
851
|
+
ref: ref,
|
|
852
|
+
children: children
|
|
853
|
+
}))
|
|
854
|
+
});
|
|
818
855
|
});
|
|
819
856
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
820
857
|
return ScaleFC;
|
|
821
858
|
};
|
|
822
859
|
|
|
823
860
|
var _excluded = ["src", "errorSrc", "stacked", "text", "isSquare", "className", "children"];
|
|
824
|
-
|
|
825
|
-
// type NativeAttrs = Omit<
|
|
826
|
-
// Partial<React.ImgHTMLAttributes<any> & React.HTMLAttributes<any>>,
|
|
827
|
-
// keyof Props
|
|
828
|
-
// >
|
|
829
|
-
|
|
830
861
|
var safeText = function safeText(text) {
|
|
831
862
|
if (text.length <= 4) return text;
|
|
832
863
|
return text.slice(0, 3);
|
|
@@ -854,24 +885,27 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
854
885
|
var radius = isSquare ? theme$1.layout.radius : '50%';
|
|
855
886
|
var marginLeft = stacked ? SCALES.ml(-0.625) : SCALES.ml(0);
|
|
856
887
|
var classes = theme.useClasses('avatar', className);
|
|
857
|
-
return /*#__PURE__*/
|
|
858
|
-
className: _JSXStyle.dynamic([["2295275975", [theme$1.palette.accents_2, radius, theme$1.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)]]]) + " " + (classes || "")
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
888
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
889
|
+
className: _JSXStyle.dynamic([["2295275975", [theme$1.palette.accents_2, radius, theme$1.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)]]]) + " " + (classes || ""),
|
|
890
|
+
children: [!text || !showText ? /*#__PURE__*/jsxRuntime.jsx("img", _objectSpread2(_objectSpread2({
|
|
891
|
+
alt: "avatar",
|
|
892
|
+
src: src !== null && src !== void 0 ? src : fallbackSrc,
|
|
893
|
+
draggable: false
|
|
894
|
+
}, props), {}, {
|
|
895
|
+
onError: function onError(e) {
|
|
896
|
+
e.currentTarget.onerror = null; // prevent loop
|
|
897
|
+
e.currentTarget.src = fallbackSrc;
|
|
898
|
+
},
|
|
899
|
+
className: _JSXStyle.dynamic([["2295275975", [theme$1.palette.accents_2, radius, theme$1.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")
|
|
900
|
+
})) : null, showText && /*#__PURE__*/jsxRuntime.jsx("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
901
|
+
className: _JSXStyle.dynamic([["2295275975", [theme$1.palette.accents_2, radius, theme$1.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"),
|
|
902
|
+
children: text ? safeText(text) : children
|
|
903
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
904
|
+
id: "2295275975",
|
|
905
|
+
dynamic: [theme$1.palette.accents_2, radius, theme$1.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)],
|
|
906
|
+
children: ".avatar.__jsx-style-dynamic-selector{display:inline-block;position:relative;overflow:hidden;border:1px solid ".concat(theme$1.palette.accents_2, ";border-radius:").concat(radius, ";vertical-align:top;background-color:").concat(theme$1.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;}")
|
|
907
|
+
})]
|
|
908
|
+
});
|
|
875
909
|
};
|
|
876
910
|
AvatarComponent.displayName = 'Avatar';
|
|
877
911
|
var Avatar = withScale(AvatarComponent);
|
|
@@ -884,14 +918,17 @@ var AvatarGroupComponent = function AvatarGroupComponent(_ref) {
|
|
|
884
918
|
var theme$1 = theme.useTheme();
|
|
885
919
|
var _useScale = useScale(),
|
|
886
920
|
SCALES = _useScale.SCALES;
|
|
887
|
-
return /*#__PURE__*/
|
|
888
|
-
className: _JSXStyle.dynamic([["1135268764", [SCALES.width(1, 'max-content'), 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), SCALES.ml(0.625), SCALES.font(0.875), theme$1.palette.accents_7]]]) + " " + (theme.useClasses('avatar-group', className) || "")
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
921
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
922
|
+
className: _JSXStyle.dynamic([["1135268764", [SCALES.width(1, 'max-content'), 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), SCALES.ml(0.625), SCALES.font(0.875), theme$1.palette.accents_7]]]) + " " + (theme.useClasses('avatar-group', className) || ""),
|
|
923
|
+
children: [children, count && /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
924
|
+
className: _JSXStyle.dynamic([["1135268764", [SCALES.width(1, 'max-content'), 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), SCALES.ml(0.625), SCALES.font(0.875), theme$1.palette.accents_7]]]) + " " + "count",
|
|
925
|
+
children: ["+", count]
|
|
926
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
927
|
+
id: "1135268764",
|
|
928
|
+
dynamic: [SCALES.width(1, 'max-content'), 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), SCALES.ml(0.625), SCALES.font(0.875), theme$1.palette.accents_7],
|
|
929
|
+
children: ".avatar-group.__jsx-style-dynamic-selector{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;width:".concat(SCALES.width(1, 'max-content'), ";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), ";}.avatar-group.__jsx-style-dynamic-selector .avatar{margin-left:-").concat(SCALES.ml(0.625), ";}.count.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(0.875), ";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;padding-left:5.5px;color:").concat(theme$1.palette.accents_7, ";}")
|
|
930
|
+
})]
|
|
931
|
+
});
|
|
895
932
|
};
|
|
896
933
|
AvatarGroupComponent.displayName = 'AvatarGroup';
|
|
897
934
|
var AvatarGroup = withScale(AvatarGroupComponent);
|
package/dist/badge/index.js
CHANGED
|
@@ -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 _arrayLikeToArray(r, a) {
|
|
9
10
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -61,14 +62,13 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
return
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}, _extends.apply(null, arguments);
|
|
65
|
+
function _defineProperty(e, r, t) {
|
|
66
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
67
|
+
value: t,
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
writable: true
|
|
71
|
+
}) : e[r] = t, e;
|
|
72
72
|
}
|
|
73
73
|
function _iterableToArrayLimit(r, l) {
|
|
74
74
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -97,6 +97,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
97
97
|
function _nonIterableRest() {
|
|
98
98
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
99
99
|
}
|
|
100
|
+
function ownKeys(e, r) {
|
|
101
|
+
var t = Object.keys(e);
|
|
102
|
+
if (Object.getOwnPropertySymbols) {
|
|
103
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
104
|
+
r && (o = o.filter(function (r) {
|
|
105
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
106
|
+
})), t.push.apply(t, o);
|
|
107
|
+
}
|
|
108
|
+
return t;
|
|
109
|
+
}
|
|
110
|
+
function _objectSpread2(e) {
|
|
111
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
112
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
113
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
114
|
+
_defineProperty(e, r, t[r]);
|
|
115
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
116
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
return e;
|
|
120
|
+
}
|
|
100
121
|
function _objectWithoutProperties(e, t) {
|
|
101
122
|
if (null == e) return {};
|
|
102
123
|
var o,
|
|
@@ -120,6 +141,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
120
141
|
function _slicedToArray(r, e) {
|
|
121
142
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
122
143
|
}
|
|
144
|
+
function _toPrimitive(t, r) {
|
|
145
|
+
if ("object" != typeof t || !t) return t;
|
|
146
|
+
var e = t[Symbol.toPrimitive];
|
|
147
|
+
if (void 0 !== e) {
|
|
148
|
+
var i = e.call(t, r);
|
|
149
|
+
if ("object" != typeof i) return i;
|
|
150
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
151
|
+
}
|
|
152
|
+
return ("string" === r ? String : Number)(t);
|
|
153
|
+
}
|
|
154
|
+
function _toPropertyKey(t) {
|
|
155
|
+
var i = _toPrimitive(t, "string");
|
|
156
|
+
return "symbol" == typeof i ? i : i + "";
|
|
157
|
+
}
|
|
123
158
|
function _unsupportedIterableToArray(r, a) {
|
|
124
159
|
if (r) {
|
|
125
160
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -856,11 +891,13 @@ var withScale = function withScale(Render) {
|
|
|
856
891
|
getScaleProps: generateGetScaleProps(props),
|
|
857
892
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
858
893
|
};
|
|
859
|
-
return /*#__PURE__*/
|
|
860
|
-
value: value
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
894
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
895
|
+
value: value,
|
|
896
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
897
|
+
ref: ref,
|
|
898
|
+
children: children
|
|
899
|
+
}))
|
|
900
|
+
});
|
|
864
901
|
});
|
|
865
902
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
866
903
|
return ScaleFC;
|
|
@@ -899,12 +936,14 @@ var BadgeComponent = function BadgeComponent(_ref) {
|
|
|
899
936
|
var classes = theme.useClasses('badge', {
|
|
900
937
|
dot: dot
|
|
901
938
|
}, className);
|
|
902
|
-
return /*#__PURE__*/
|
|
903
|
-
className: _JSXStyle.dynamic([["120113192", [bg, _color, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.25), SCALES.pr(0.5375), SCALES.pb(0.30), SCALES.pl(0.5375), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.py(0.25), SCALES.px(0.25)]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
939
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
940
|
+
className: _JSXStyle.dynamic([["120113192", [bg, _color, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.25), SCALES.pr(0.5375), SCALES.pb(0.30), SCALES.pl(0.5375), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.py(0.25), SCALES.px(0.25)]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
941
|
+
children: [!dot && children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
942
|
+
id: "120113192",
|
|
943
|
+
dynamic: [bg, _color, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.25), SCALES.pr(0.5375), SCALES.pb(0.30), SCALES.pl(0.5375), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.py(0.25), SCALES.px(0.25)],
|
|
944
|
+
children: ".badge.__jsx-style-dynamic-selector{display:inline-block;border-radius:16px;font-variant:tabular-nums;line-height:1;vertical-align:middle;background-color:".concat(bg, ";color:").concat(_color, ";border:0;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0.25), " ").concat(SCALES.pr(0.5375), " ").concat(SCALES.pb(0.30), " ").concat(SCALES.pl(0.5375), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.dot.__jsx-style-dynamic-selector{padding:").concat(SCALES.py(0.25), " ").concat(SCALES.px(0.25), ";border-radius:50%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}")
|
|
945
|
+
})]
|
|
946
|
+
}));
|
|
908
947
|
};
|
|
909
948
|
BadgeComponent.displayName = 'Badge';
|
|
910
949
|
var Badge = withScale(BadgeComponent);
|
|
@@ -971,14 +1010,17 @@ var BadgeAnchor = function BadgeAnchor(_ref) {
|
|
|
971
1010
|
right = _useMemo.right,
|
|
972
1011
|
value = _useMemo.value,
|
|
973
1012
|
origin = _useMemo.origin;
|
|
974
|
-
return /*#__PURE__*/
|
|
975
|
-
className: _JSXStyle.dynamic([["1121745930", [top || 'auto', left || 'auto', right || 'auto', bottom || 'auto', value, origin]]]) + " " + "anchor"
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1013
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1014
|
+
className: _JSXStyle.dynamic([["1121745930", [top || 'auto', left || 'auto', right || 'auto', bottom || 'auto', value, origin]]]) + " " + "anchor",
|
|
1015
|
+
children: [withoutBadgeChildren, /*#__PURE__*/jsxRuntime.jsx("sup", {
|
|
1016
|
+
className: _JSXStyle.dynamic([["1121745930", [top || 'auto', left || 'auto', right || 'auto', bottom || 'auto', value, origin]]]),
|
|
1017
|
+
children: badgeChldren
|
|
1018
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1019
|
+
id: "1121745930",
|
|
1020
|
+
dynamic: [top || 'auto', left || 'auto', right || 'auto', bottom || 'auto', value, origin],
|
|
1021
|
+
children: ".anchor.__jsx-style-dynamic-selector{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;box-sizing:border-box;}sup.__jsx-style-dynamic-selector{position:absolute;top:".concat(top || 'auto', ";left:").concat(left || 'auto', ";right:").concat(right || 'auto', ";bottom:").concat(bottom || 'auto', ";-webkit-transform:").concat(value, ";-ms-transform:").concat(value, ";transform:").concat(value, ";-webkit-transform-origin:").concat(origin, ";-ms-transform-origin:").concat(origin, ";transform-origin:").concat(origin, ";z-index:1;}")
|
|
1022
|
+
})]
|
|
1023
|
+
});
|
|
982
1024
|
};
|
|
983
1025
|
BadgeAnchor.displayName = 'BadgeAnchor';
|
|
984
1026
|
|
|
@@ -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,16 +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
|
-
target?: string;
|
|
12
|
-
color?: ButtonTypes;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
};
|
|
15
|
-
declare const _default: React.NamedExoticComponent<CompactButtonProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from './button';
|
|
3
|
+
declare const _default: React.NamedExoticComponent<ButtonProps>;
|
|
16
4
|
export default _default;
|