@helpdice/ui 2.2.2 → 2.2.3
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 +2 -2
- package/dist/carousal/index.d.ts +2 -1
- package/dist/carousal/index.js +3 -1
- package/dist/container/box.d.ts +4 -2
- package/dist/container/index.js +4 -4
- package/dist/copy-to-clipboard/clipboard.d.ts +5 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -11
- package/dist/input/index.js +2 -2
- package/dist/rating/index.js +5 -5
- package/dist/rating/rating.d.ts +1 -1
- package/dist/table/index.js +2 -2
- package/esm/carousal/index.d.ts +2 -1
- package/esm/carousal/index.js +3 -2
- package/esm/container/box.d.ts +4 -2
- package/esm/container/box.js +4 -4
- package/esm/copy-to-clipboard/clipboard.d.ts +5 -3
- package/esm/copy-to-clipboard/clipboard.js +1 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/input/phone-input/phone.js +2 -2
- package/esm/rating/rating.d.ts +1 -1
- package/esm/rating/rating.js +5 -5
- package/package.json +3 -2
|
@@ -2734,7 +2734,7 @@ function PhoneInput(_ref) {
|
|
|
2734
2734
|
height: "20",
|
|
2735
2735
|
src: "https://flagcdn.com/w20/".concat(selectedCountry.code.toLowerCase(), ".png"),
|
|
2736
2736
|
srcSet: "https://flagcdn.com/w40/".concat(selectedCountry.code.toLowerCase(), ".png 2x"),
|
|
2737
|
-
alt: "
|
|
2737
|
+
alt: "".concat(selectedCountry.label, " Flag"),
|
|
2738
2738
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
2739
2739
|
}), /*#__PURE__*/React.createElement("span", {
|
|
2740
2740
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
@@ -2782,7 +2782,7 @@ function PhoneInput(_ref) {
|
|
|
2782
2782
|
height: "23",
|
|
2783
2783
|
src: "https://flagcdn.com/w20/".concat(c.code.toLowerCase(), ".png"),
|
|
2784
2784
|
srcSet: "https://flagcdn.com/w40/".concat(c.code.toLowerCase(), ".png 2x"),
|
|
2785
|
-
alt: "
|
|
2785
|
+
alt: "".concat(c.label, " Flag"),
|
|
2786
2786
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
2787
2787
|
}), c.phone, " ", /*#__PURE__*/React.createElement("span", {
|
|
2788
2788
|
style: {
|
package/dist/carousal/index.d.ts
CHANGED
package/dist/carousal/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var React = require('react');
|
|
4
6
|
var require$$0 = require('react-is');
|
|
5
7
|
var theme = require('@helpdice/theme');
|
|
@@ -4175,5 +4177,5 @@ _defineProperty(Carousel, "defaultProps", {
|
|
|
4175
4177
|
stopSwipingHandler: slideStopSwipingHandler
|
|
4176
4178
|
});
|
|
4177
4179
|
|
|
4178
|
-
exports.Carousel = Carousel;
|
|
4179
4180
|
exports.Thumbs = Thumbs;
|
|
4181
|
+
exports.default = Carousel;
|
package/dist/container/box.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const wrap: ["nowrap", "wrap", "wrap-reverse"];
|
|
3
3
|
export type Wrap = typeof wrap[number];
|
|
4
|
-
type
|
|
4
|
+
type Props = {
|
|
5
5
|
gap?: number;
|
|
6
6
|
direction?: string;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -11,7 +11,9 @@ type ContainerProps = {
|
|
|
11
11
|
wrap?: Wrap;
|
|
12
12
|
className?: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
|
|
15
|
+
export type ContainerProps = Props & NativeAttrs;
|
|
16
|
+
declare const _default: React.ForwardRefExoticComponent<Props & NativeAttrs & {
|
|
15
17
|
width?: string | number;
|
|
16
18
|
height?: string | number;
|
|
17
19
|
padding?: string | number;
|
package/dist/container/index.js
CHANGED
|
@@ -934,10 +934,10 @@ var Container = function Container(_ref) {
|
|
|
934
934
|
}, [gap, unit]);
|
|
935
935
|
var _styles$className = {
|
|
936
936
|
styles: /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
937
|
-
id: "
|
|
938
|
-
dynamic: [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)')]
|
|
939
|
-
}, "div.__jsx-style-dynamic-selector{--gap-unit:".concat(gapUnit, ";--container-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";box-sizing:border-box;gap:var(--gap-unit);width:").concat(SCALES.width(1, 'var(--container-width)'), ";}")),
|
|
940
|
-
className: _JSXStyle.dynamic([["
|
|
937
|
+
id: "4110955330",
|
|
938
|
+
dynamic: [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)'), 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)]
|
|
939
|
+
}, "div.__jsx-style-dynamic-selector{--gap-unit:".concat(gapUnit, ";--container-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";box-sizing:border-box;gap:var(--gap-unit);width:").concat(SCALES.width(1, 'var(--container-width)'), ";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), ";}")),
|
|
940
|
+
className: _JSXStyle.dynamic([["4110955330", [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)'), 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)]]])
|
|
941
941
|
},
|
|
942
942
|
resolveClassName = _styles$className.className,
|
|
943
943
|
styles = _styles$className.styles;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type
|
|
2
|
+
type Props = {
|
|
3
3
|
showIcon: boolean;
|
|
4
4
|
text: string;
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
onCopy
|
|
7
|
-
options
|
|
6
|
+
onCopy?: (text: string, result: any) => void;
|
|
7
|
+
options?: {
|
|
8
8
|
debug: boolean;
|
|
9
9
|
message: string;
|
|
10
10
|
format: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
|
|
14
|
+
export type ClipboardProps = Props & NativeAttrs;
|
|
13
15
|
export default function Clipboard(props: ClipboardProps): React.JSX.Element;
|
|
14
16
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export { default as Skeleton } from './skeleton';
|
|
|
123
123
|
export * from './login-with';
|
|
124
124
|
export { default as Swipe } from './swipe';
|
|
125
125
|
export type { SwipeProps } from './swipe';
|
|
126
|
-
export { Carousel } from './carousal';
|
|
126
|
+
export { default as Carousel } from './carousal';
|
|
127
127
|
export type { CarouselProps } from './carousal';
|
|
128
128
|
export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './input/currency-input';
|
|
129
129
|
export { default as useToasts } from './use-toasts';
|
package/dist/index.js
CHANGED
|
@@ -3067,7 +3067,7 @@ function PhoneInput(_ref) {
|
|
|
3067
3067
|
height: "20",
|
|
3068
3068
|
src: "https://flagcdn.com/w20/".concat(selectedCountry.code.toLowerCase(), ".png"),
|
|
3069
3069
|
srcSet: "https://flagcdn.com/w40/".concat(selectedCountry.code.toLowerCase(), ".png 2x"),
|
|
3070
|
-
alt: "
|
|
3070
|
+
alt: "".concat(selectedCountry.label, " Flag"),
|
|
3071
3071
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
3072
3072
|
}), /*#__PURE__*/React.createElement("span", {
|
|
3073
3073
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
@@ -3115,7 +3115,7 @@ function PhoneInput(_ref) {
|
|
|
3115
3115
|
height: "23",
|
|
3116
3116
|
src: "https://flagcdn.com/w20/".concat(c.code.toLowerCase(), ".png"),
|
|
3117
3117
|
srcSet: "https://flagcdn.com/w40/".concat(c.code.toLowerCase(), ".png 2x"),
|
|
3118
|
-
alt: "
|
|
3118
|
+
alt: "".concat(c.label, " Flag"),
|
|
3119
3119
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
3120
3120
|
}), c.phone, " ", /*#__PURE__*/React.createElement("span", {
|
|
3121
3121
|
style: {
|
|
@@ -13287,10 +13287,10 @@ var Container = function Container(_ref) {
|
|
|
13287
13287
|
}, [gap, unit]);
|
|
13288
13288
|
var _styles$className = {
|
|
13289
13289
|
styles: /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
13290
|
-
id: "
|
|
13291
|
-
dynamic: [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)')]
|
|
13292
|
-
}, "div.__jsx-style-dynamic-selector{--gap-unit:".concat(gapUnit, ";--container-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";box-sizing:border-box;gap:var(--gap-unit);width:").concat(SCALES.width(1, 'var(--container-width)'), ";}")),
|
|
13293
|
-
className: _JSXStyle.dynamic([["
|
|
13290
|
+
id: "4110955330",
|
|
13291
|
+
dynamic: [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)'), 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)]
|
|
13292
|
+
}, "div.__jsx-style-dynamic-selector{--gap-unit:".concat(gapUnit, ";--container-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";box-sizing:border-box;gap:var(--gap-unit);width:").concat(SCALES.width(1, 'var(--container-width)'), ";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), ";}")),
|
|
13293
|
+
className: _JSXStyle.dynamic([["4110955330", [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)'), 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)]]])
|
|
13294
13294
|
},
|
|
13295
13295
|
resolveClassName = _styles$className.className,
|
|
13296
13296
|
styles = _styles$className.styles;
|
|
@@ -16490,7 +16490,7 @@ var RatingIcon = function RatingIcon() {
|
|
|
16490
16490
|
};
|
|
16491
16491
|
RatingIcon.displayName = 'RatingIcon';
|
|
16492
16492
|
|
|
16493
|
-
var _excluded$i = ["
|
|
16493
|
+
var _excluded$i = ["color", "className", "icon", "count", "value", "initialValue", "onValueChange", "locked", "onLockedChange"];
|
|
16494
16494
|
tupleNumber(2, 3, 4, 5, 6, 7, 8, 9, 10);
|
|
16495
16495
|
tupleNumber(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
|
|
16496
16496
|
var getColor = function getColor(type, palette) {
|
|
@@ -16503,8 +16503,8 @@ var getColor = function getColor(type, palette) {
|
|
|
16503
16503
|
return colors[type] || colors["default"];
|
|
16504
16504
|
};
|
|
16505
16505
|
var RatingComponent = function RatingComponent(_ref) {
|
|
16506
|
-
var _ref$
|
|
16507
|
-
|
|
16506
|
+
var _ref$color = _ref.color,
|
|
16507
|
+
_color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
16508
16508
|
_ref$className = _ref.className,
|
|
16509
16509
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
16510
16510
|
_ref$icon = _ref.icon,
|
|
@@ -16523,8 +16523,8 @@ var RatingComponent = function RatingComponent(_ref) {
|
|
|
16523
16523
|
var _useScale = useScale(),
|
|
16524
16524
|
SCALES = _useScale.SCALES;
|
|
16525
16525
|
var color = React.useMemo(function () {
|
|
16526
|
-
return getColor(
|
|
16527
|
-
}, [
|
|
16526
|
+
return getColor(_color, theme$1.palette);
|
|
16527
|
+
}, [_color, theme$1.palette]);
|
|
16528
16528
|
var _useState = React.useState(initialValue),
|
|
16529
16529
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16530
16530
|
value = _useState2[0],
|
package/dist/input/index.js
CHANGED
|
@@ -2720,7 +2720,7 @@ function PhoneInput(_ref) {
|
|
|
2720
2720
|
height: "20",
|
|
2721
2721
|
src: "https://flagcdn.com/w20/".concat(selectedCountry.code.toLowerCase(), ".png"),
|
|
2722
2722
|
srcSet: "https://flagcdn.com/w40/".concat(selectedCountry.code.toLowerCase(), ".png 2x"),
|
|
2723
|
-
alt: "
|
|
2723
|
+
alt: "".concat(selectedCountry.label, " Flag"),
|
|
2724
2724
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
2725
2725
|
}), /*#__PURE__*/React.createElement("span", {
|
|
2726
2726
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
@@ -2768,7 +2768,7 @@ function PhoneInput(_ref) {
|
|
|
2768
2768
|
height: "23",
|
|
2769
2769
|
src: "https://flagcdn.com/w20/".concat(c.code.toLowerCase(), ".png"),
|
|
2770
2770
|
srcSet: "https://flagcdn.com/w40/".concat(c.code.toLowerCase(), ".png 2x"),
|
|
2771
|
-
alt: "
|
|
2771
|
+
alt: "".concat(c.label, " Flag"),
|
|
2772
2772
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
2773
2773
|
}), c.phone, " ", /*#__PURE__*/React.createElement("span", {
|
|
2774
2774
|
style: {
|
package/dist/rating/index.js
CHANGED
|
@@ -903,7 +903,7 @@ var withScale = function withScale(Render) {
|
|
|
903
903
|
return ScaleFC;
|
|
904
904
|
};
|
|
905
905
|
|
|
906
|
-
var _excluded = ["
|
|
906
|
+
var _excluded = ["color", "className", "icon", "count", "value", "initialValue", "onValueChange", "locked", "onLockedChange"];
|
|
907
907
|
tupleNumber(2, 3, 4, 5, 6, 7, 8, 9, 10);
|
|
908
908
|
tupleNumber(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
|
|
909
909
|
var getColor = function getColor(type, palette) {
|
|
@@ -916,8 +916,8 @@ var getColor = function getColor(type, palette) {
|
|
|
916
916
|
return colors[type] || colors["default"];
|
|
917
917
|
};
|
|
918
918
|
var RatingComponent = function RatingComponent(_ref) {
|
|
919
|
-
var _ref$
|
|
920
|
-
|
|
919
|
+
var _ref$color = _ref.color,
|
|
920
|
+
_color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
921
921
|
_ref$className = _ref.className,
|
|
922
922
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
923
923
|
_ref$icon = _ref.icon,
|
|
@@ -936,8 +936,8 @@ var RatingComponent = function RatingComponent(_ref) {
|
|
|
936
936
|
var _useScale = useScale(),
|
|
937
937
|
SCALES = _useScale.SCALES;
|
|
938
938
|
var color = React.useMemo(function () {
|
|
939
|
-
return getColor(
|
|
940
|
-
}, [
|
|
939
|
+
return getColor(_color, theme$1.palette);
|
|
940
|
+
}, [_color, theme$1.palette]);
|
|
941
941
|
var _useState = React.useState(initialValue),
|
|
942
942
|
_useState2 = _slicedToArray(_useState, 2),
|
|
943
943
|
value = _useState2[0],
|
package/dist/rating/rating.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const ratingValueTuple: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
|
6
6
|
export type RatingValue = typeof ratingValueTuple[number];
|
|
7
7
|
export type RatingCount = typeof ratingCountTuple[number];
|
|
8
8
|
interface Props {
|
|
9
|
-
|
|
9
|
+
color?: RatingTypes;
|
|
10
10
|
className?: string;
|
|
11
11
|
icon?: JSX.Element;
|
|
12
12
|
count?: RatingCount | number;
|
package/dist/table/index.js
CHANGED
|
@@ -2766,7 +2766,7 @@ function PhoneInput(_ref) {
|
|
|
2766
2766
|
height: "20",
|
|
2767
2767
|
src: "https://flagcdn.com/w20/".concat(selectedCountry.code.toLowerCase(), ".png"),
|
|
2768
2768
|
srcSet: "https://flagcdn.com/w40/".concat(selectedCountry.code.toLowerCase(), ".png 2x"),
|
|
2769
|
-
alt: "
|
|
2769
|
+
alt: "".concat(selectedCountry.label, " Flag"),
|
|
2770
2770
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
2771
2771
|
}), /*#__PURE__*/React.createElement("span", {
|
|
2772
2772
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
@@ -2814,7 +2814,7 @@ function PhoneInput(_ref) {
|
|
|
2814
2814
|
height: "23",
|
|
2815
2815
|
src: "https://flagcdn.com/w20/".concat(c.code.toLowerCase(), ".png"),
|
|
2816
2816
|
srcSet: "https://flagcdn.com/w40/".concat(c.code.toLowerCase(), ".png 2x"),
|
|
2817
|
-
alt: "
|
|
2817
|
+
alt: "".concat(c.label, " Flag"),
|
|
2818
2818
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
2819
2819
|
}), c.phone, " ", /*#__PURE__*/React.createElement("span", {
|
|
2820
2820
|
style: {
|
package/esm/carousal/index.d.ts
CHANGED
package/esm/carousal/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as Thumbs } from './component/Thumbs';
|
|
1
|
+
import Carousel from './component';
|
|
2
|
+
export { default as Thumbs } from './component/Thumbs';
|
|
3
|
+
export default Carousel;
|
package/esm/container/box.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const wrap: ["nowrap", "wrap", "wrap-reverse"];
|
|
3
3
|
export type Wrap = typeof wrap[number];
|
|
4
|
-
type
|
|
4
|
+
type Props = {
|
|
5
5
|
gap?: number;
|
|
6
6
|
direction?: string;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -11,7 +11,9 @@ type ContainerProps = {
|
|
|
11
11
|
wrap?: Wrap;
|
|
12
12
|
className?: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
|
|
15
|
+
export type ContainerProps = Props & NativeAttrs;
|
|
16
|
+
declare const _default: React.ForwardRefExoticComponent<Props & NativeAttrs & {
|
|
15
17
|
width?: string | number;
|
|
16
18
|
height?: string | number;
|
|
17
19
|
padding?: string | number;
|
package/esm/container/box.js
CHANGED
|
@@ -27,10 +27,10 @@ var Container = function Container(_ref) {
|
|
|
27
27
|
}, [gap, unit]);
|
|
28
28
|
var _styles$className = {
|
|
29
29
|
styles: /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
30
|
-
id: "
|
|
31
|
-
dynamic: [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)')]
|
|
32
|
-
}, "div.__jsx-style-dynamic-selector{--gap-unit:".concat(gapUnit, ";--container-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";box-sizing:border-box;gap:var(--gap-unit);width:").concat(SCALES.width(1, 'var(--container-width)'), ";}")),
|
|
33
|
-
className: _JSXStyle.dynamic([["
|
|
30
|
+
id: "4110955330",
|
|
31
|
+
dynamic: [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)'), 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)]
|
|
32
|
+
}, "div.__jsx-style-dynamic-selector{--gap-unit:".concat(gapUnit, ";--container-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";box-sizing:border-box;gap:var(--gap-unit);width:").concat(SCALES.width(1, 'var(--container-width)'), ";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), ";}")),
|
|
33
|
+
className: _JSXStyle.dynamic([["4110955330", [gapUnit, direction, wrap, justify, alignContent, alignItems, SCALES.width(1, 'var(--container-width)'), 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)]]])
|
|
34
34
|
},
|
|
35
35
|
resolveClassName = _styles$className.className,
|
|
36
36
|
styles = _styles$className.styles;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type
|
|
2
|
+
type Props = {
|
|
3
3
|
showIcon: boolean;
|
|
4
4
|
text: string;
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
onCopy
|
|
7
|
-
options
|
|
6
|
+
onCopy?: (text: string, result: any) => void;
|
|
7
|
+
options?: {
|
|
8
8
|
debug: boolean;
|
|
9
9
|
message: string;
|
|
10
10
|
format: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
|
|
14
|
+
export type ClipboardProps = Props & NativeAttrs;
|
|
13
15
|
export default function Clipboard(props: ClipboardProps): React.JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -4,6 +4,7 @@ import copy from './copy';
|
|
|
4
4
|
import { Copy } from '@helpdice/icons';
|
|
5
5
|
import Button from '../button';
|
|
6
6
|
import { useToasts } from '@helpdice/theme';
|
|
7
|
+
|
|
7
8
|
// export function Clipboard(props: ClipboardProps) {
|
|
8
9
|
// const { setToast } = useToasts();
|
|
9
10
|
// const { showIcon, text, onCopy, options: options, children, } = props;
|
package/esm/index.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export { default as Skeleton } from './skeleton';
|
|
|
123
123
|
export * from './login-with';
|
|
124
124
|
export { default as Swipe } from './swipe';
|
|
125
125
|
export type { SwipeProps } from './swipe';
|
|
126
|
-
export { Carousel } from './carousal';
|
|
126
|
+
export { default as Carousel } from './carousal';
|
|
127
127
|
export type { CarouselProps } from './carousal';
|
|
128
128
|
export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './input/currency-input';
|
|
129
129
|
export { default as useToasts } from './use-toasts';
|
package/esm/index.js
CHANGED
|
@@ -99,7 +99,7 @@ function PhoneInput(_ref) {
|
|
|
99
99
|
height: "20",
|
|
100
100
|
src: "https://flagcdn.com/w20/".concat(selectedCountry.code.toLowerCase(), ".png"),
|
|
101
101
|
srcSet: "https://flagcdn.com/w40/".concat(selectedCountry.code.toLowerCase(), ".png 2x"),
|
|
102
|
-
alt: "
|
|
102
|
+
alt: "".concat(selectedCountry.label, " Flag"),
|
|
103
103
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
104
104
|
}), /*#__PURE__*/React.createElement("span", {
|
|
105
105
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
@@ -147,7 +147,7 @@ function PhoneInput(_ref) {
|
|
|
147
147
|
height: "23",
|
|
148
148
|
src: "https://flagcdn.com/w20/".concat(c.code.toLowerCase(), ".png"),
|
|
149
149
|
srcSet: "https://flagcdn.com/w40/".concat(c.code.toLowerCase(), ".png 2x"),
|
|
150
|
-
alt: "
|
|
150
|
+
alt: "".concat(c.label, " Flag"),
|
|
151
151
|
className: _JSXStyle.dynamic([["3237870810", [SCALES.width(1, defaultWidth), SCALES.height(2.25), hoverBorder, borderColor, borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
152
152
|
}), c.phone, " ", /*#__PURE__*/React.createElement("span", {
|
|
153
153
|
style: {
|
package/esm/rating/rating.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const ratingValueTuple: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
|
6
6
|
export type RatingValue = typeof ratingValueTuple[number];
|
|
7
7
|
export type RatingCount = typeof ratingCountTuple[number];
|
|
8
8
|
interface Props {
|
|
9
|
-
|
|
9
|
+
color?: RatingTypes;
|
|
10
10
|
className?: string;
|
|
11
11
|
icon?: JSX.Element;
|
|
12
12
|
count?: RatingCount | number;
|
package/esm/rating/rating.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["
|
|
5
|
+
var _excluded = ["color", "className", "icon", "count", "value", "initialValue", "onValueChange", "locked", "onLockedChange"];
|
|
6
6
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
7
7
|
/* "use client" */
|
|
8
8
|
|
|
@@ -23,8 +23,8 @@ var getColor = function getColor(type, palette) {
|
|
|
23
23
|
return colors[type] || colors["default"];
|
|
24
24
|
};
|
|
25
25
|
var RatingComponent = function RatingComponent(_ref) {
|
|
26
|
-
var _ref$
|
|
27
|
-
|
|
26
|
+
var _ref$color = _ref.color,
|
|
27
|
+
_color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
28
28
|
_ref$className = _ref.className,
|
|
29
29
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
30
30
|
_ref$icon = _ref.icon,
|
|
@@ -43,8 +43,8 @@ var RatingComponent = function RatingComponent(_ref) {
|
|
|
43
43
|
var _useScale = useScale(),
|
|
44
44
|
SCALES = _useScale.SCALES;
|
|
45
45
|
var color = useMemo(function () {
|
|
46
|
-
return getColor(
|
|
47
|
-
}, [
|
|
46
|
+
return getColor(_color, theme.palette);
|
|
47
|
+
}, [_color, theme.palette]);
|
|
48
48
|
var _useState = useState(initialValue),
|
|
49
49
|
_useState2 = _slicedToArray(_useState, 2),
|
|
50
50
|
value = _useState2[0],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helpdice/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "esm/index.d.ts",
|
|
6
6
|
"unpkg": "dist/index.min.js",
|
|
@@ -63,8 +63,9 @@
|
|
|
63
63
|
"@babel/preset-typescript": "^7.14.5",
|
|
64
64
|
"@babel/standalone": "^7.28.3",
|
|
65
65
|
"@helpdice/icons": "^1.2.5",
|
|
66
|
-
"@helpdice/sdk": "^0.
|
|
66
|
+
"@helpdice/sdk": "^0.3.3",
|
|
67
67
|
"@helpdice/utils": "^0.1.4",
|
|
68
|
+
"@helpdice/pro": "2.0.1",
|
|
68
69
|
"@mapbox/rehype-prism": "^0.9.0",
|
|
69
70
|
"@mdx-js/loader": "^3.1.0",
|
|
70
71
|
"@mdx-js/react": "^3.1.0",
|