@solostylist/ui-kit 1.0.174 → 1.0.176
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/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
- package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
- package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
- package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
- package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
- package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
- package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
- package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
- package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
- package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
- package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
- package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
- package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
- package/dist/Paper-DnctZB5U.js +689 -0
- package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
- package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
- package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
- package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
- package/dist/assets/s-overlay-scrollbar.css +1 -9
- package/dist/createSvgIcon-BKymXuBG.js +242 -0
- package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
- package/dist/defaultTheme-LSr-S9un.js +5 -0
- package/dist/entries/carousel.d.ts +10 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/chat.d.ts +9 -0
- package/dist/entries/chat.js +4 -0
- package/dist/entries/code.d.ts +9 -0
- package/dist/entries/code.js +4 -0
- package/dist/entries/core.d.ts +100 -0
- package/dist/entries/core.js +122 -0
- package/dist/entries/dates.d.ts +16 -0
- package/dist/entries/dates.js +12 -0
- package/dist/entries/dropzone.d.ts +9 -0
- package/dist/entries/dropzone.js +4 -0
- package/dist/entries/editor.d.ts +12 -0
- package/dist/entries/editor.js +4 -0
- package/dist/entries/gallery.d.ts +17 -0
- package/dist/entries/gallery.js +13 -0
- package/dist/entries/i18n.d.ts +13 -0
- package/dist/entries/i18n.js +8 -0
- package/dist/entries/motion.d.ts +29 -0
- package/dist/entries/motion.js +28 -0
- package/dist/entries/scrollbar.d.ts +9 -0
- package/dist/entries/scrollbar.js +4 -0
- package/dist/entries/stripe.d.ts +10 -0
- package/dist/entries/stripe.js +10 -0
- package/dist/extendSxProp-DitxZ8We.js +36 -0
- package/dist/hooks/index.js +8 -9
- package/dist/hooks/use-is-passed-position.js +10 -10
- package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
- package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
- package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
- package/dist/main.d.ts +29 -145
- package/dist/main.js +187 -187
- package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
- package/dist/resolveProps-BDH0VJjn.js +39 -0
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-accordion/s-accordion.js +374 -358
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +64 -79
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
- package/dist/s-autocomplete/s-autocomplete.js +19 -25
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-avatar/s-avatar.js +14 -25
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-blur-text/s-blur-text.js +55 -59
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.js +7 -15
- package/dist/s-button-link/s-button-link.js +28 -36
- package/dist/s-carousel/package.json +4 -4
- package/dist/s-carousel/s-carousel.js +267 -280
- package/dist/s-category-card/package.json +4 -4
- package/dist/s-category-card/s-category-card.js +60 -77
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.d.ts +4 -0
- package/dist/s-chat-input/s-chat-input.js +103 -109
- package/dist/s-chat-message/s-chat-message.js +111 -120
- package/dist/s-checkbox/s-checkbox.js +12 -20
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.js +7 -15
- package/dist/s-chips/s-chips.js +47 -56
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +35 -43
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +90 -94
- package/dist/s-copyable-text/s-copyable-text.js +24 -32
- package/dist/s-countdown/s-count-box.js +42 -50
- package/dist/s-countdown/s-count-down.js +79 -107
- package/dist/s-data-table/s-data-table.js +374 -384
- package/dist/s-date-picker/s-date-picker.js +164 -164
- package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
- package/dist/s-dialog/s-dialog.js +24 -32
- package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
- package/dist/s-dialog-message/s-dialog-message.js +40 -44
- package/dist/s-empty/s-empty.js +6 -14
- package/dist/s-error/s-error.js +9 -17
- package/dist/s-error-layout/s-error-layout.js +38 -47
- package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
- package/dist/s-file-icon/s-file-icon.js +9 -13
- package/dist/s-flex-box/s-flex-box.js +6 -14
- package/dist/s-form/s-form.js +11 -19
- package/dist/s-gallery/index.js +3 -33
- package/dist/s-gallery/s-gallery.js +91 -114
- package/dist/s-glow-button/s-glow-button.js +22 -26
- package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
- package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
- package/dist/s-icon-button/s-icon-button.js +6 -14
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +48 -53
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +137 -150
- package/dist/s-item-not-found/s-item-not-found.js +13 -22
- package/dist/s-label/s-label.js +12 -20
- package/dist/s-language-switcher/s-language-switcher.js +119 -141
- package/dist/s-lazy-image/index.js +2 -10
- package/dist/s-lazy-image/s-lazy-image.js +33 -37
- package/dist/s-localization-provider/s-localization-provider.js +368 -380
- package/dist/s-moving-border/s-moving-border.js +52 -67
- package/dist/s-multi-select/s-multi-select.js +43 -51
- package/dist/s-no-ssr/s-no-ssr.js +13 -21
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
- package/dist/s-pagination/s-pagination.js +13 -17
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.js +7 -15
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +101 -106
- package/dist/s-scroll-reveal/package.json +5 -5
- package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
- package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
- package/dist/s-select/s-select.js +67 -75
- package/dist/s-select-list/s-select-list.js +28 -32
- package/dist/s-skeleton/s-skeleton.js +20 -28
- package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
- package/dist/s-stripe/s-stripe-cvc.js +8 -12
- package/dist/s-stripe/s-stripe-expiry.js +8 -12
- package/dist/s-stripe/s-stripe-number.js +8 -12
- package/dist/s-stripe/s-stripe.d.ts +2 -2
- package/dist/s-stripe/s-stripe.js +17 -26
- package/dist/s-stripe/stripe-input.js +25 -29
- package/dist/s-tabs/package.json +3 -3
- package/dist/s-tabs/s-tab-panel.js +17 -25
- package/dist/s-tabs/s-tab.js +5 -9
- package/dist/s-tabs/s-tabs.js +19 -27
- package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
- package/dist/s-text-editor/s-text-editor.js +33 -45
- package/dist/s-text-field/s-text-field.js +31 -40
- package/dist/s-text-shimmer/package.json +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
- package/dist/s-text-truncation/s-text-truncation.js +24 -32
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-demo/s-theme-demo.js +219 -234
- package/dist/s-theme-provider/s-theme-provider.js +37 -45
- package/dist/s-theme-switch/package.json +4 -4
- package/dist/s-theme-switch/s-theme-switch.js +19 -23
- package/dist/s-tip/s-tip.js +14 -22
- package/dist/s-two-pane-layout/index.js +2 -10
- package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
- package/dist/s-typewriter-text/package.json +5 -5
- package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
- package/dist/s-zoom-image/index.js +2 -10
- package/dist/s-zoom-image/package.json +5 -5
- package/dist/s-zoom-image/s-zoom-image.js +53 -62
- package/dist/styled-B0KflPi-.js +203 -0
- package/dist/theme/components/alert.d.ts +484 -264
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/components/button.d.ts +726 -396
- package/dist/theme/components/chip.js +2 -2
- package/dist/theme/components/components.js +14 -12
- package/dist/theme/components/icon-button.d.ts +6191 -0
- package/dist/theme/components/icon-button.js +90 -0
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -2
- package/dist/theme/customizations/navigation.js +2 -2
- package/dist/theme/theme-primitives.d.ts +8 -246
- package/dist/theme/theme-primitives.js +76 -87
- package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
- package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
- package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
- package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
- package/dist/utils/dayjs.js +7 -7
- package/dist/utils/logger.js +29 -32
- package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
- package/package.json +240 -81
- package/README.md +0 -13
- package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
- package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
- package/dist/Paper-hkbPWyBT.js +0 -553
- package/dist/createSvgIcon-DxwgGAVe.js +0 -247
- package/dist/defaultTheme-fEi1x1Gb.js +0 -5
- package/dist/extendSxProp-BKWjdW12.js +0 -37
- package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
- package/dist/resolveProps-61uUKnlS.js +0 -52
- package/dist/styled-B0Z4EDy9.js +0 -206
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
expireDate:
|
|
1
|
+
import { j as l } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { Typography as A } from "@mui/material";
|
|
3
|
+
import L from "../hooks/use-count-down.js";
|
|
4
|
+
import { SCountBox as N } from "./s-count-box.js";
|
|
5
|
+
import { SFlexBox as x } from "../s-flex-box/s-flex-box.js";
|
|
6
|
+
const R = ({
|
|
7
|
+
expireDate: S,
|
|
8
8
|
size: e = "medium",
|
|
9
|
-
color:
|
|
10
|
-
layout:
|
|
11
|
-
animation:
|
|
12
|
-
showSeparators:
|
|
13
|
-
separator:
|
|
14
|
-
units:
|
|
9
|
+
color: i = "inherit",
|
|
10
|
+
layout: w = "horizontal",
|
|
11
|
+
animation: j = "none",
|
|
12
|
+
showSeparators: h = !1,
|
|
13
|
+
separator: k = ":",
|
|
14
|
+
units: c = {
|
|
15
15
|
days: !0,
|
|
16
16
|
hours: !0,
|
|
17
17
|
minutes: !0,
|
|
18
18
|
seconds: !0
|
|
19
19
|
},
|
|
20
|
-
labels:
|
|
20
|
+
labels: a = {
|
|
21
21
|
days: "DAYS",
|
|
22
22
|
hours: "HOURS",
|
|
23
23
|
minutes: "MINS",
|
|
24
24
|
seconds: "SECS"
|
|
25
25
|
},
|
|
26
|
-
digitFormat:
|
|
27
|
-
onComplete:
|
|
28
|
-
onTick:
|
|
29
|
-
onStart:
|
|
30
|
-
completedText:
|
|
26
|
+
digitFormat: C = "default",
|
|
27
|
+
onComplete: $,
|
|
28
|
+
onTick: v,
|
|
29
|
+
onStart: I,
|
|
30
|
+
completedText: n = "Time is up!",
|
|
31
31
|
autoHideZeroUnits: y = !1,
|
|
32
|
-
sx:
|
|
32
|
+
sx: f,
|
|
33
33
|
"aria-label": g = "Countdown timer",
|
|
34
|
-
paused:
|
|
35
|
-
responsive:
|
|
34
|
+
paused: b = !1,
|
|
35
|
+
responsive: r
|
|
36
36
|
}) => {
|
|
37
|
-
const { timeLeft:
|
|
38
|
-
expireDate:
|
|
39
|
-
onComplete:
|
|
40
|
-
onTick:
|
|
41
|
-
onStart:
|
|
42
|
-
paused:
|
|
37
|
+
const { timeLeft: t, isExpired: D } = L({
|
|
38
|
+
expireDate: S,
|
|
39
|
+
onComplete: $,
|
|
40
|
+
onTick: v,
|
|
41
|
+
onStart: I,
|
|
42
|
+
paused: b
|
|
43
43
|
});
|
|
44
|
-
if (
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
|
|
44
|
+
if (D && n)
|
|
45
|
+
return /* @__PURE__ */ l.jsx(
|
|
46
|
+
x,
|
|
47
47
|
{
|
|
48
48
|
justifyContent: "center",
|
|
49
49
|
alignItems: "center",
|
|
50
|
-
sx: { textAlign: "center", ...
|
|
50
|
+
sx: { textAlign: "center", ...f },
|
|
51
51
|
role: "timer",
|
|
52
52
|
"aria-label": `${g} - completed`,
|
|
53
|
-
children: typeof
|
|
54
|
-
|
|
53
|
+
children: typeof n == "string" ? /* @__PURE__ */ l.jsx(
|
|
54
|
+
A,
|
|
55
55
|
{
|
|
56
56
|
variant: e === "large" ? "h4" : e === "small" ? "h6" : "h5",
|
|
57
|
-
color:
|
|
57
|
+
color: i === "inherit" ? "text.primary" : `${i}.main`,
|
|
58
58
|
sx: { fontWeight: 600 },
|
|
59
|
-
children:
|
|
59
|
+
children: n
|
|
60
60
|
}
|
|
61
|
-
) :
|
|
61
|
+
) : n
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
const
|
|
65
|
-
{ key: "days", value:
|
|
66
|
-
{ key: "hours", value:
|
|
67
|
-
{ key: "minutes", value:
|
|
68
|
-
{ key: "seconds", value:
|
|
64
|
+
const m = [], u = [
|
|
65
|
+
{ key: "days", value: t.days, label: a.days },
|
|
66
|
+
{ key: "hours", value: t.hours, label: a.hours },
|
|
67
|
+
{ key: "minutes", value: t.minutes, label: a.minutes },
|
|
68
|
+
{ key: "seconds", value: t.seconds, label: a.seconds }
|
|
69
69
|
];
|
|
70
|
-
|
|
71
|
-
if (
|
|
72
|
-
const
|
|
73
|
-
(
|
|
70
|
+
u.forEach((s, p) => {
|
|
71
|
+
if (c[s.key] && (!y || s.value > 0 || s.key === "seconds")) {
|
|
72
|
+
const B = p === u.length - 1, M = h && !B && u.slice(p + 1).some(
|
|
73
|
+
(d) => c[d.key] && (!y || d.value > 0 || d.key === "seconds")
|
|
74
74
|
);
|
|
75
|
-
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
|
|
75
|
+
m.push(
|
|
76
|
+
/* @__PURE__ */ l.jsx(
|
|
77
|
+
N,
|
|
78
78
|
{
|
|
79
|
-
digit:
|
|
80
|
-
title:
|
|
79
|
+
digit: s.value,
|
|
80
|
+
title: s.label || "",
|
|
81
81
|
size: e,
|
|
82
|
-
color:
|
|
83
|
-
animation:
|
|
84
|
-
digitFormat:
|
|
85
|
-
showSeparator:
|
|
86
|
-
separator:
|
|
82
|
+
color: i,
|
|
83
|
+
animation: j,
|
|
84
|
+
digitFormat: C,
|
|
85
|
+
showSeparator: M,
|
|
86
|
+
separator: k
|
|
87
87
|
},
|
|
88
|
-
|
|
88
|
+
s.key
|
|
89
89
|
)
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
const
|
|
94
|
-
switch (
|
|
93
|
+
const E = () => {
|
|
94
|
+
switch (w) {
|
|
95
95
|
case "vertical":
|
|
96
96
|
return {
|
|
97
97
|
flexDirection: "column",
|
|
@@ -101,83 +101,55 @@ const p = ({
|
|
|
101
101
|
case "grid":
|
|
102
102
|
return {
|
|
103
103
|
display: "grid",
|
|
104
|
-
gridTemplateColumns: `repeat(${
|
|
104
|
+
gridTemplateColumns: `repeat(${m.length}, 1fr)`,
|
|
105
105
|
gap: 2,
|
|
106
106
|
justifyItems: "center"
|
|
107
107
|
};
|
|
108
108
|
default:
|
|
109
109
|
return {
|
|
110
110
|
flexDirection: "row",
|
|
111
|
-
gap:
|
|
111
|
+
gap: h ? 0 : 2,
|
|
112
112
|
alignItems: "center",
|
|
113
113
|
justifyContent: "center",
|
|
114
114
|
flexWrap: "wrap"
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
},
|
|
118
|
-
xs:
|
|
119
|
-
sm:
|
|
120
|
-
md:
|
|
121
|
-
lg:
|
|
122
|
-
xl:
|
|
117
|
+
}, o = r ? {
|
|
118
|
+
xs: r.xs || e,
|
|
119
|
+
sm: r.sm || e,
|
|
120
|
+
md: r.md || e,
|
|
121
|
+
lg: r.lg || e,
|
|
122
|
+
xl: r.xl || e
|
|
123
123
|
} : void 0;
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
|
|
124
|
+
return /* @__PURE__ */ l.jsx(
|
|
125
|
+
x,
|
|
126
126
|
{
|
|
127
127
|
sx: {
|
|
128
128
|
width: "fit-content",
|
|
129
|
-
...
|
|
130
|
-
...
|
|
131
|
-
...
|
|
129
|
+
...E(),
|
|
130
|
+
...f,
|
|
131
|
+
...o && {
|
|
132
132
|
// Apply responsive sizing if provided
|
|
133
133
|
"@media (max-width: 600px)": {
|
|
134
134
|
"& .MuiTypography-h3": {
|
|
135
|
-
fontSize:
|
|
135
|
+
fontSize: o.xs === "small" ? "1.5rem" : o.xs === "large" ? "3.5rem" : "2.5rem"
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
"@media (min-width: 600px) and (max-width: 960px)": {
|
|
139
139
|
"& .MuiTypography-h3": {
|
|
140
|
-
fontSize:
|
|
140
|
+
fontSize: o.sm === "small" ? "1.5rem" : o.sm === "large" ? "3.5rem" : "2.5rem"
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
role: "timer",
|
|
146
|
-
"aria-label": `${g} - ${
|
|
147
|
-
children:
|
|
146
|
+
"aria-label": `${g} - ${t.days} days, ${t.hours} hours, ${t.minutes} minutes, ${t.seconds} seconds remaining`,
|
|
147
|
+
children: m
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
};
|
|
151
|
-
|
|
152
|
-
try {
|
|
153
|
-
p.displayName = "SCountdown", p.__docgenInfo = { description: "A comprehensive countdown timer component with extensive customization options, animations, and accessibility features.", displayName: "SCountdown", props: { expireDate: { defaultValue: null, description: "Target date timestamp in milliseconds (from Date.getTime())", name: "expireDate", required: !0, type: { name: "number" } }, size: { defaultValue: { value: "medium" }, description: "Size variant for all count boxes", name: "size", required: !1, type: { name: "enum", value: [{ value: '"small"' }, { value: '"medium"' }, { value: '"large"' }] } }, color: { defaultValue: { value: "inherit" }, description: "Color theme for the countdown", name: "color", required: !1, type: { name: "enum", value: [{ value: '"inherit"' }, { value: '"error"' }, { value: '"primary"' }, { value: '"secondary"' }, { value: '"info"' }, { value: '"success"' }, { value: '"warning"' }] } }, layout: { defaultValue: { value: "horizontal" }, description: "Layout orientation", name: "layout", required: !1, type: { name: "enum", value: [{ value: '"grid"' }, { value: '"horizontal"' }, { value: '"vertical"' }] } }, animation: { defaultValue: { value: "none" }, description: "Animation type for value changes", name: "animation", required: !1, type: { name: "enum", value: [{ value: '"none"' }, { value: '"fade"' }, { value: '"slide"' }] } }, showSeparators: { defaultValue: { value: "false" }, description: "Whether to show separators between units", name: "showSeparators", required: !1, type: { name: "boolean" } }, separator: { defaultValue: { value: ":" }, description: "Custom separator element", name: "separator", required: !1, type: { name: "ReactNode" } }, units: { defaultValue: { value: `{
|
|
154
|
-
days: true,
|
|
155
|
-
hours: true,
|
|
156
|
-
minutes: true,
|
|
157
|
-
seconds: true,
|
|
158
|
-
}` }, description: "Which time units to display", name: "units", required: !1, type: { name: "{ days?: boolean; hours?: boolean; minutes?: boolean | undefined; seconds?: boolean | undefined; } | undefined" } }, labels: { defaultValue: { value: `{
|
|
159
|
-
days: 'DAYS',
|
|
160
|
-
hours: 'HOURS',
|
|
161
|
-
minutes: 'MINS',
|
|
162
|
-
seconds: 'SECS',
|
|
163
|
-
}` }, description: "Custom labels for time units", name: "labels", required: !1, type: { name: "{ days?: string; hours?: string; minutes?: string | undefined; seconds?: string | undefined; } | undefined" } }, digitFormat: { defaultValue: { value: "default" }, description: "Format for displaying digits", name: "digitFormat", required: !1, type: { name: "enum", value: [{ value: '"default"' }, { value: '"padded"' }] } }, onComplete: { defaultValue: null, description: "Callback fired when countdown reaches zero", name: "onComplete", required: !1, type: { name: "(() => void)" } }, onTick: { defaultValue: null, description: "Callback fired on each tick (every second)", name: "onTick", required: !1, type: { name: "((timeLeft: { days: number; hours: number; minutes: number; seconds: number; }) => void)" } }, onStart: { defaultValue: null, description: "Callback fired when countdown starts", name: "onStart", required: !1, type: { name: "(() => void)" } }, completedText: { defaultValue: { value: "Time is up!" }, description: "What to display when countdown is complete", name: "completedText", required: !1, type: { name: "ReactNode" } }, autoHideZeroUnits: { defaultValue: { value: "false" }, description: "Whether to auto-hide completed units (e.g., hide days when 0)", name: "autoHideZeroUnits", required: !1, type: { name: "boolean" } }, sx: { defaultValue: null, description: "Custom styling for the container", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, "aria-label": { defaultValue: { value: "Countdown timer" }, description: "ARIA label for accessibility", name: "aria-label", required: !1, type: { name: "string" } }, paused: { defaultValue: { value: "false" }, description: "Whether the countdown is paused", name: "paused", required: !1, type: { name: "boolean" } }, responsive: { defaultValue: null, description: "Responsive breakpoints for size changes", name: "responsive", required: !1, type: { name: '{ xs?: "small" | "medium" | "large"; sm?: "small" | "medium" | "large"; md?: "small" | "medium" | "large" | undefined; lg?: "small" | "medium" | "large" | undefined; xl?: "small" | ... 2 more ... | undefined; } | undefined' } } } };
|
|
164
|
-
} catch {
|
|
165
|
-
}
|
|
166
|
-
try {
|
|
167
|
-
scountdown.displayName = "scountdown", scountdown.__docgenInfo = { description: "A comprehensive countdown timer component with extensive customization options, animations, and accessibility features.", displayName: "scountdown", props: { expireDate: { defaultValue: null, description: "Target date timestamp in milliseconds (from Date.getTime())", name: "expireDate", required: !0, type: { name: "number" } }, size: { defaultValue: { value: "medium" }, description: "Size variant for all count boxes", name: "size", required: !1, type: { name: "enum", value: [{ value: '"small"' }, { value: '"medium"' }, { value: '"large"' }] } }, color: { defaultValue: { value: "inherit" }, description: "Color theme for the countdown", name: "color", required: !1, type: { name: "enum", value: [{ value: '"inherit"' }, { value: '"error"' }, { value: '"primary"' }, { value: '"secondary"' }, { value: '"info"' }, { value: '"success"' }, { value: '"warning"' }] } }, layout: { defaultValue: { value: "horizontal" }, description: "Layout orientation", name: "layout", required: !1, type: { name: "enum", value: [{ value: '"grid"' }, { value: '"horizontal"' }, { value: '"vertical"' }] } }, animation: { defaultValue: { value: "none" }, description: "Animation type for value changes", name: "animation", required: !1, type: { name: "enum", value: [{ value: '"none"' }, { value: '"fade"' }, { value: '"slide"' }] } }, showSeparators: { defaultValue: { value: "false" }, description: "Whether to show separators between units", name: "showSeparators", required: !1, type: { name: "boolean" } }, separator: { defaultValue: { value: ":" }, description: "Custom separator element", name: "separator", required: !1, type: { name: "ReactNode" } }, units: { defaultValue: { value: `{
|
|
168
|
-
days: true,
|
|
169
|
-
hours: true,
|
|
170
|
-
minutes: true,
|
|
171
|
-
seconds: true,
|
|
172
|
-
}` }, description: "Which time units to display", name: "units", required: !1, type: { name: "{ days?: boolean; hours?: boolean; minutes?: boolean | undefined; seconds?: boolean | undefined; } | undefined" } }, labels: { defaultValue: { value: `{
|
|
173
|
-
days: 'DAYS',
|
|
174
|
-
hours: 'HOURS',
|
|
175
|
-
minutes: 'MINS',
|
|
176
|
-
seconds: 'SECS',
|
|
177
|
-
}` }, description: "Custom labels for time units", name: "labels", required: !1, type: { name: "{ days?: string; hours?: string; minutes?: string | undefined; seconds?: string | undefined; } | undefined" } }, digitFormat: { defaultValue: { value: "default" }, description: "Format for displaying digits", name: "digitFormat", required: !1, type: { name: "enum", value: [{ value: '"default"' }, { value: '"padded"' }] } }, onComplete: { defaultValue: null, description: "Callback fired when countdown reaches zero", name: "onComplete", required: !1, type: { name: "(() => void)" } }, onTick: { defaultValue: null, description: "Callback fired on each tick (every second)", name: "onTick", required: !1, type: { name: "((timeLeft: { days: number; hours: number; minutes: number; seconds: number; }) => void)" } }, onStart: { defaultValue: null, description: "Callback fired when countdown starts", name: "onStart", required: !1, type: { name: "(() => void)" } }, completedText: { defaultValue: { value: "Time is up!" }, description: "What to display when countdown is complete", name: "completedText", required: !1, type: { name: "ReactNode" } }, autoHideZeroUnits: { defaultValue: { value: "false" }, description: "Whether to auto-hide completed units (e.g., hide days when 0)", name: "autoHideZeroUnits", required: !1, type: { name: "boolean" } }, sx: { defaultValue: null, description: "Custom styling for the container", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, "aria-label": { defaultValue: { value: "Countdown timer" }, description: "ARIA label for accessibility", name: "aria-label", required: !1, type: { name: "string" } }, paused: { defaultValue: { value: "false" }, description: "Whether the countdown is paused", name: "paused", required: !1, type: { name: "boolean" } }, responsive: { defaultValue: null, description: "Responsive breakpoints for size changes", name: "responsive", required: !1, type: { name: '{ xs?: "small" | "medium" | "large"; sm?: "small" | "medium" | "large"; md?: "small" | "medium" | "large" | undefined; lg?: "small" | "medium" | "large" | undefined; xl?: "small" | ... 2 more ... | undefined; } | undefined' } } } };
|
|
178
|
-
} catch {
|
|
179
|
-
}
|
|
151
|
+
R.displayName = "SCountdown";
|
|
180
152
|
export {
|
|
181
|
-
|
|
182
|
-
|
|
153
|
+
R as SCountdown,
|
|
154
|
+
R as default
|
|
183
155
|
};
|