@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
package/dist/image/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"];
|
|
@@ -100,6 +100,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
100
100
|
function _nonIterableRest() {
|
|
101
101
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
102
102
|
}
|
|
103
|
+
function ownKeys(e, r) {
|
|
104
|
+
var t = Object.keys(e);
|
|
105
|
+
if (Object.getOwnPropertySymbols) {
|
|
106
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
107
|
+
r && (o = o.filter(function (r) {
|
|
108
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
109
|
+
})), t.push.apply(t, o);
|
|
110
|
+
}
|
|
111
|
+
return t;
|
|
112
|
+
}
|
|
113
|
+
function _objectSpread2(e) {
|
|
114
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
115
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
116
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
117
|
+
_defineProperty(e, r, t[r]);
|
|
118
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
119
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return e;
|
|
123
|
+
}
|
|
103
124
|
function _objectWithoutProperties(e, t) {
|
|
104
125
|
if (null == e) return {};
|
|
105
126
|
var o,
|
|
@@ -123,6 +144,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
123
144
|
function _slicedToArray(r, e) {
|
|
124
145
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
125
146
|
}
|
|
147
|
+
function _toPrimitive(t, r) {
|
|
148
|
+
if ("object" != typeof t || !t) return t;
|
|
149
|
+
var e = t[Symbol.toPrimitive];
|
|
150
|
+
if (void 0 !== e) {
|
|
151
|
+
var i = e.call(t, r);
|
|
152
|
+
if ("object" != typeof i) return i;
|
|
153
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
154
|
+
}
|
|
155
|
+
return ("string" === r ? String : Number)(t);
|
|
156
|
+
}
|
|
157
|
+
function _toPropertyKey(t) {
|
|
158
|
+
var i = _toPrimitive(t, "string");
|
|
159
|
+
return "symbol" == typeof i ? i : i + "";
|
|
160
|
+
}
|
|
126
161
|
function _unsupportedIterableToArray(r, a) {
|
|
127
162
|
if (r) {
|
|
128
163
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -680,12 +715,14 @@ var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
680
715
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
681
716
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
682
717
|
var theme$1 = theme.useTheme();
|
|
683
|
-
return /*#__PURE__*/
|
|
684
|
-
className: _JSXStyle.dynamic([["2946022605", [theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_1, opacity]]]) + " " + (props && props.className != null && props.className || "skeleton")
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
718
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
719
|
+
className: _JSXStyle.dynamic([["2946022605", [theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_1, opacity]]]) + " " + (props && props.className != null && props.className || "skeleton"),
|
|
720
|
+
children: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
721
|
+
id: "2946022605",
|
|
722
|
+
dynamic: [theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_1, opacity],
|
|
723
|
+
children: ".skeleton.__jsx-style-dynamic-selector{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background-image:linear-gradient( 270deg, ".concat(theme$1.palette.accents_1, ", ").concat(theme$1.palette.accents_2, ", ").concat(theme$1.palette.accents_2, ", ").concat(theme$1.palette.accents_1, " );background-size:400% 100%;-webkit-animation:loading-__jsx-style-dynamic-selector 3s ease-in-out infinite;animation:loading-__jsx-style-dynamic-selector 3s ease-in-out infinite;opacity:").concat(opacity, ";-webkit-transition:opacity 300ms ease-out;transition:opacity 300ms ease-out;}@-webkit-keyframes loading-__jsx-style-dynamic-selector{0%{background-position:200% 0;}to{background-position:-200% 0;}}@keyframes loading-__jsx-style-dynamic-selector{0%{background-position:200% 0;}to{background-position:-200% 0;}}")
|
|
724
|
+
})
|
|
725
|
+
}));
|
|
689
726
|
});
|
|
690
727
|
ImageSkeleton.displayName = 'ImageSkeleton';
|
|
691
728
|
|
|
@@ -876,11 +913,13 @@ var withScale = function withScale(Render) {
|
|
|
876
913
|
getScaleProps: generateGetScaleProps(props),
|
|
877
914
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
878
915
|
};
|
|
879
|
-
return /*#__PURE__*/
|
|
880
|
-
value: value
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
916
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
917
|
+
value: value,
|
|
918
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
919
|
+
ref: ref,
|
|
920
|
+
children: children
|
|
921
|
+
}))
|
|
922
|
+
});
|
|
884
923
|
});
|
|
885
924
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
886
925
|
return ScaleFC;
|
|
@@ -938,26 +977,28 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
938
977
|
return clearTimeout(timer);
|
|
939
978
|
};
|
|
940
979
|
}, [loading]);
|
|
941
|
-
return /*#__PURE__*/
|
|
942
|
-
className: _JSXStyle.dynamic([["4175752462", [theme$1.layout.radius, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, 'auto'), SCALES.height(1, 'auto')]]]) + " " + (theme.useClasses('image', className) || "")
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
980
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
981
|
+
className: _JSXStyle.dynamic([["4175752462", [theme$1.layout.radius, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, 'auto'), SCALES.height(1, 'auto')]]]) + " " + (theme.useClasses('image', className) || ""),
|
|
982
|
+
children: [showSkeleton && showAnimation && /*#__PURE__*/jsxRuntime.jsx(ImageSkeleton, {
|
|
983
|
+
opacity: loading ? 0.5 : 0
|
|
984
|
+
}), /*#__PURE__*/jsxRuntime.jsx("img", _objectSpread2(_objectSpread2({
|
|
985
|
+
ref: imageRef,
|
|
986
|
+
onLoad: imageLoaded,
|
|
987
|
+
src: url
|
|
988
|
+
}, props), {}, {
|
|
989
|
+
className: _JSXStyle.dynamic([["4175752462", [theme$1.layout.radius, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, 'auto'), SCALES.height(1, 'auto')]]]) + " " + (props && props.className != null && props.className || "")
|
|
990
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
991
|
+
id: "4175752462",
|
|
992
|
+
dynamic: [theme$1.layout.radius, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, 'auto'), SCALES.height(1, 'auto')],
|
|
993
|
+
children: ".image.__jsx-style-dynamic-selector{position:relative;border-radius:".concat(theme$1.layout.radius, ";overflow:hidden;max-width:100%;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0, 'auto'), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}img.__jsx-style-dynamic-selector{width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";object-fit:scale-down;display:inline-block;}")
|
|
994
|
+
})]
|
|
995
|
+
});
|
|
955
996
|
};
|
|
956
997
|
ImageComponent.displayName = 'Image';
|
|
957
998
|
var Image = withScale(ImageComponent);
|
|
958
999
|
|
|
959
1000
|
var LinkIconComponent = function LinkIconComponent() {
|
|
960
|
-
return /*#__PURE__*/
|
|
1001
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
961
1002
|
viewBox: "0 0 24 24",
|
|
962
1003
|
width: "0.9375em",
|
|
963
1004
|
height: "0.9375em",
|
|
@@ -967,19 +1008,21 @@ var LinkIconComponent = function LinkIconComponent() {
|
|
|
967
1008
|
strokeLinejoin: "round",
|
|
968
1009
|
fill: "none",
|
|
969
1010
|
shapeRendering: "geometricPrecision",
|
|
970
|
-
className: "jsx-3409194595" + " " + "icon"
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1011
|
+
className: "jsx-3409194595" + " " + "icon",
|
|
1012
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1013
|
+
d: "M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6",
|
|
1014
|
+
className: "jsx-3409194595"
|
|
1015
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1016
|
+
d: "M15 3h6v6",
|
|
1017
|
+
className: "jsx-3409194595"
|
|
1018
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1019
|
+
d: "M10 14L21 3",
|
|
1020
|
+
className: "jsx-3409194595"
|
|
1021
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1022
|
+
id: "3409194595",
|
|
1023
|
+
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;}"
|
|
1024
|
+
})]
|
|
1025
|
+
});
|
|
983
1026
|
};
|
|
984
1027
|
LinkIconComponent.displayName = 'LinkIcon';
|
|
985
1028
|
var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
|
|
@@ -1045,37 +1088,42 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1045
1088
|
var classes = theme.useClasses('link', {
|
|
1046
1089
|
block: block
|
|
1047
1090
|
}, className);
|
|
1048
|
-
return /*#__PURE__*/
|
|
1091
|
+
return /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread2(_objectSpread2({
|
|
1049
1092
|
href: href
|
|
1050
|
-
}, props, {
|
|
1093
|
+
}, props), {}, {
|
|
1051
1094
|
ref: ref,
|
|
1052
|
-
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 || "")
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1095
|
+
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 || ""),
|
|
1096
|
+
children: [icon && icon, /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1097
|
+
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",
|
|
1098
|
+
children: [children, arrow && /*#__PURE__*/jsxRuntime.jsx(LinkIcon, {})]
|
|
1099
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1100
|
+
id: "1962988967",
|
|
1101
|
+
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],
|
|
1102
|
+
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, ";}")
|
|
1103
|
+
})]
|
|
1104
|
+
}));
|
|
1059
1105
|
});
|
|
1060
1106
|
LinkComponent.displayName = 'Link';
|
|
1061
1107
|
var Link = withScale(LinkComponent);
|
|
1062
1108
|
|
|
1063
1109
|
var ImageBrowserHttpsIcon = function ImageBrowserHttpsIcon() {
|
|
1064
|
-
return /*#__PURE__*/
|
|
1110
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
1065
1111
|
viewBox: "0 0 24 24",
|
|
1066
1112
|
fill: "currentColor",
|
|
1067
|
-
className: "jsx-4165143638"
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1113
|
+
className: "jsx-4165143638",
|
|
1114
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1115
|
+
d: "M5 10.2H19V21H5V10.2Z",
|
|
1116
|
+
className: "jsx-4165143638"
|
|
1117
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1118
|
+
fillRule: "evenodd",
|
|
1119
|
+
clipRule: "evenodd",
|
|
1120
|
+
d: "M12 12C13.933 12 15.5 10.3882 15.5 8.4C15.5 6.41177 13.933 4.8 12 4.8C10.067 4.8 8.5 6.41177 8.5 8.4C8.5 10.3882 10.067 12 12 12ZM12 13.8C14.8995 13.8 17.25 11.3823 17.25 8.4C17.25 5.41766 14.8995 3 12 3C9.10051 3 6.75 5.41766 6.75 8.4C6.75 11.3823 9.10051 13.8 12 13.8Z",
|
|
1121
|
+
className: "jsx-4165143638"
|
|
1122
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1123
|
+
id: "4165143638",
|
|
1124
|
+
children: "svg.jsx-4165143638{width:1em;height:1em;}"
|
|
1125
|
+
})]
|
|
1126
|
+
});
|
|
1079
1127
|
};
|
|
1080
1128
|
var MemoImageBrowserHttpsIcon = /*#__PURE__*/React.memo(ImageBrowserHttpsIcon);
|
|
1081
1129
|
|
|
@@ -1097,26 +1145,33 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
|
|
|
1097
1145
|
|
|
1098
1146
|
var _excluded = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
|
|
1099
1147
|
var getTitle = function getTitle(title, colors) {
|
|
1100
|
-
return /*#__PURE__*/
|
|
1101
|
-
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title"
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1148
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1149
|
+
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title",
|
|
1150
|
+
children: [title, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1151
|
+
id: "524099755",
|
|
1152
|
+
dynamic: [colors.titleColor],
|
|
1153
|
+
children: ".title.__jsx-style-dynamic-selector{color:".concat(colors.titleColor, ";font-size:0.75em;}")
|
|
1154
|
+
})]
|
|
1155
|
+
});
|
|
1106
1156
|
};
|
|
1107
1157
|
var getAddressInput = function getAddressInput(url, showFullLink, colors, anchorProps) {
|
|
1108
|
-
return /*#__PURE__*/
|
|
1109
|
-
className: _JSXStyle.dynamic([["3718009574", [colors.inputBgColor]]]) + " " + "address-input"
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1158
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1159
|
+
className: _JSXStyle.dynamic([["3718009574", [colors.inputBgColor]]]) + " " + "address-input",
|
|
1160
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1161
|
+
className: _JSXStyle.dynamic([["3718009574", [colors.inputBgColor]]]) + " " + "https",
|
|
1162
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MemoImageBrowserHttpsIcon, {})
|
|
1163
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread2(_objectSpread2({
|
|
1164
|
+
href: url,
|
|
1165
|
+
title: url,
|
|
1166
|
+
target: "_blank"
|
|
1167
|
+
}, anchorProps), {}, {
|
|
1168
|
+
children: showFullLink ? url : getHostFromUrl(url)
|
|
1169
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1170
|
+
id: "3718009574",
|
|
1171
|
+
dynamic: [colors.inputBgColor],
|
|
1172
|
+
children: ".address-input.__jsx-style-dynamic-selector{height:1.75em;max-width:60%;min-width:40%;background-color:".concat(colors.inputBgColor, ";color:inherit;border-radius:3px;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0 10px;overflow:hidden;position:relative;}.address-input.__jsx-style-dynamic-selector *{font-size:0.75em;color:inherit;}.address-input.__jsx-style-dynamic-selector a{max-width:90%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;color:inherit;}.https.__jsx-style-dynamic-selector{width:0.75em;height:0.75em;font-size:1em;margin-right:0.31em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:-1px;color:inherit;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;}")
|
|
1173
|
+
})]
|
|
1174
|
+
});
|
|
1120
1175
|
};
|
|
1121
1176
|
var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1122
1177
|
var url = _ref.url,
|
|
@@ -1142,24 +1197,28 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1142
1197
|
if (title) return getTitle(title, colors);
|
|
1143
1198
|
return null;
|
|
1144
1199
|
}, [url, showFullLink, title, colors, anchorProps]);
|
|
1145
|
-
return /*#__PURE__*/
|
|
1200
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
1146
1201
|
ref: ref
|
|
1147
|
-
}, props, {
|
|
1148
|
-
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + (props && props.className != null && props.className || theme.useClasses('browser', className) || "")
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1202
|
+
}, props), {}, {
|
|
1203
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + (props && props.className != null && props.className || theme.useClasses('browser', className) || ""),
|
|
1204
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("header", {
|
|
1205
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]),
|
|
1206
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1207
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + "traffic",
|
|
1208
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1209
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + "close"
|
|
1210
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1211
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + "mini"
|
|
1212
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1213
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + "full"
|
|
1214
|
+
})]
|
|
1215
|
+
}), input]
|
|
1216
|
+
}), children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1217
|
+
id: "1856409351",
|
|
1218
|
+
dynamic: [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf],
|
|
1219
|
+
children: ".browser.__jsx-style-dynamic-selector{background-color:transparent;box-shadow:".concat(theme$1.expressiveness.shadowLarge, ";max-width:100%;border-radius:").concat(theme$1.layout.radius, ";overflow:hidden;font-size:").concat(SCALES.font(1), ";width:").concat(SCALES.width(1, 'max-content'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0, 'auto'), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}.browser.__jsx-style-dynamic-selector .image{border-top-left-radius:0;border-top-right-radius:0;}header.__jsx-style-dynamic-selector{height:2.5em;width:100%;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative;color:").concat(colors.color, ";background-color:").concat(colors.barBgColor, ";border-bottom:1px solid ").concat(colors.borderColor, ";}.traffic.__jsx-style-dynamic-selector{width:auto;position:absolute;left:").concat(theme$1.layout.gapHalf, ";top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);bottom:0;height:100%;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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:inherit;}.traffic.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{border-radius:50%;width:0.75em;height:0.75em;max-width:20px;max-height:20px;display:inline-block;margin-right:0.5em;}.close.__jsx-style-dynamic-selector{background-color:#ff5f56;}.mini.__jsx-style-dynamic-selector{background-color:#ffbd2e;}.full.__jsx-style-dynamic-selector{background-color:#27c93f;}")
|
|
1220
|
+
})]
|
|
1221
|
+
}));
|
|
1163
1222
|
});
|
|
1164
1223
|
ImageBrowserComponent.displayName = 'ImageBrowser';
|
|
1165
1224
|
var ImageBrowser = withScale(ImageBrowserComponent);
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { default as Checkbox } from './checkbox';
|
|
|
20
20
|
export type { CheckboxProps, CheckboxGroupProps } from './checkbox';
|
|
21
21
|
export { default as Code } from './code';
|
|
22
22
|
export type { CodeProps } from './code';
|
|
23
|
-
export {
|
|
23
|
+
export { default as CircularProgress, useCircularProgress } from './circular-progress';
|
|
24
24
|
export { default as Collapse } from './collapse';
|
|
25
25
|
export type { CollapseProps, CollapseGroupProps } from './collapse';
|
|
26
26
|
export { default as Description } from './description';
|
|
@@ -80,6 +80,7 @@ export { default as Spinner } from './spinner';
|
|
|
80
80
|
export type { SpinnerProps } from './spinner';
|
|
81
81
|
export { default as Table } from './table';
|
|
82
82
|
export type { TableProps, TableColumnProps } from './table';
|
|
83
|
+
export type { RowErrorMap, FieldError } from './table/table-types';
|
|
83
84
|
export { default as Tabs } from './tabs';
|
|
84
85
|
export type { TabsProps } from './tabs';
|
|
85
86
|
export { default as Tag } from './tag';
|