@solostylist/ui-kit 1.0.167 → 1.0.169
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/{Typography-B7LOtCzI.js → Typography-C8jwvSWe.js} +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.js +187 -173
- package/dist/s-accordion/index.js +2 -2
- package/dist/s-accordion/s-accordion.d.ts +17 -1
- package/dist/s-accordion/s-accordion.js +252 -238
- package/dist/s-action-overlay/index.js +1 -1
- package/dist/s-action-overlay/s-action-overlay.d.ts +34 -1
- package/dist/s-action-overlay/s-action-overlay.js +67 -55
- package/dist/s-ai-tool-bar/index.d.ts +2 -0
- package/dist/s-ai-tool-bar/index.js +3 -2
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +33 -22
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +295 -247
- package/dist/s-autocomplete/index.js +2 -2
- package/dist/s-autocomplete/s-autocomplete.d.ts +13 -15
- package/dist/s-autocomplete/s-autocomplete.js +25 -17
- package/dist/s-avatar/index.js +2 -2
- package/dist/s-avatar/s-avatar.d.ts +16 -1
- package/dist/s-avatar/s-avatar.js +23 -10
- package/dist/s-blur-text/index.js +2 -2
- package/dist/s-blur-text/s-blur-text.d.ts +4 -13
- package/dist/s-blur-text/s-blur-text.js +57 -51
- package/dist/s-breadcrumbs/index.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +20 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +39 -30
- package/dist/s-button/index.js +2 -2
- package/dist/s-button/s-button.d.ts +7 -1
- package/dist/s-button/s-button.js +15 -5
- package/dist/s-button-link/index.js +2 -2
- package/dist/s-button-link/s-button-link.d.ts +12 -26
- package/dist/s-button-link/s-button-link.js +36 -26
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +11 -1
- package/dist/s-carousel/s-carousel.js +233 -223
- package/dist/s-category-card/index.js +2 -2
- package/dist/s-category-card/s-category-card.d.ts +28 -1
- package/dist/s-category-card/s-category-card.js +77 -58
- package/dist/s-chat-input/index.js +2 -2
- package/dist/s-chat-input/s-chat-input.d.ts +12 -1
- package/dist/s-chat-input/s-chat-input.js +92 -82
- package/dist/s-chat-message/index.js +2 -2
- package/dist/s-chat-message/s-chat-message.d.ts +22 -1
- package/dist/s-chat-message/s-chat-message.js +144 -133
- package/dist/s-checkbox/index.js +2 -2
- package/dist/s-checkbox/s-checkbox.d.ts +2 -15
- package/dist/s-checkbox/s-checkbox.js +20 -10
- package/dist/s-chip/index.js +2 -2
- package/dist/s-chip/s-chip.d.ts +7 -1
- package/dist/s-chip/s-chip.js +15 -5
- package/dist/s-chips/index.js +2 -2
- package/dist/s-chips/s-chips.d.ts +5 -18
- package/dist/s-chips/s-chips.js +56 -41
- package/dist/s-comment-message/index.js +2 -2
- package/dist/s-comment-message/s-comment-message.d.ts +26 -1
- package/dist/s-comment-message/s-comment-message.js +95 -89
- package/dist/s-copyable-text/index.js +1 -1
- package/dist/s-copyable-text/s-copyable-text.d.ts +9 -36
- package/dist/s-copyable-text/s-copyable-text.js +31 -21
- package/dist/s-countdown/index.d.ts +3 -2
- package/dist/s-countdown/index.js +4 -3
- package/dist/s-countdown/s-count-box.d.ts +39 -0
- package/dist/s-countdown/s-count-box.js +112 -0
- package/dist/s-countdown/s-count-down.d.ts +6 -50
- package/dist/s-countdown/s-count-down.js +110 -175
- package/dist/s-data-table/index.js +2 -2
- package/dist/s-data-table/s-data-table.d.ts +9 -65
- package/dist/s-data-table/s-data-table.js +381 -371
- package/dist/s-date-picker/index.js +2 -2
- package/dist/s-date-picker/s-date-picker.d.ts +6 -17
- package/dist/s-date-picker/s-date-picker.js +124 -107
- package/dist/s-datetime-picker/index.js +2 -2
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +5 -16
- package/dist/s-datetime-picker/s-datetime-picker.js +897 -887
- package/dist/s-dialog/index.js +2 -2
- package/dist/s-dialog/s-dialog.d.ts +3 -16
- package/dist/s-dialog/s-dialog.js +32 -23
- package/dist/s-dialog-confirm/index.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +5 -13
- package/dist/s-dialog-confirm/s-dialog-confirm.js +55 -48
- package/dist/s-dialog-message/index.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.d.ts +5 -15
- package/dist/s-dialog-message/s-dialog-message.js +45 -38
- package/dist/s-empty/index.js +2 -2
- package/dist/s-empty/s-empty.d.ts +5 -20
- package/dist/s-empty/s-empty.js +14 -4
- package/dist/s-error/index.js +2 -2
- package/dist/s-error/s-error.d.ts +5 -20
- package/dist/s-error/s-error.js +16 -6
- package/dist/s-error-layout/index.js +2 -2
- package/dist/s-error-layout/s-error-layout.d.ts +6 -1
- package/dist/s-error-layout/s-error-layout.js +60 -51
- package/dist/s-file-dropzone/index.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +6 -51
- package/dist/s-file-dropzone/s-file-dropzone.js +64 -54
- package/dist/s-file-icon/index.js +2 -2
- package/dist/s-file-icon/s-file-icon.d.ts +5 -25
- package/dist/s-file-icon/s-file-icon.js +14 -8
- package/dist/s-flex-box/index.js +2 -2
- package/dist/s-flex-box/s-flex-box.d.ts +10 -1
- package/dist/s-flex-box/s-flex-box.js +14 -4
- package/dist/s-form/index.js +2 -2
- package/dist/s-form/s-form.d.ts +5 -14
- package/dist/s-form/s-form.js +19 -9
- package/dist/s-gallery/index.js +33 -3
- package/dist/s-gallery/s-gallery.d.ts +3 -36
- package/dist/s-gallery/s-gallery.js +108 -78
- package/dist/s-glow-button/s-glow-button.d.ts +6 -42
- package/dist/s-glow-button/s-glow-button.js +29 -47
- package/dist/s-gradient-icon/index.d.ts +1 -1
- package/dist/s-gradient-icon/index.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +8 -68
- package/dist/s-gradient-icon/s-gradient-icon.js +54 -44
- package/dist/s-i18n-provider/index.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.d.ts +5 -33
- package/dist/s-i18n-provider/s-i18n-provider.js +25 -15
- package/dist/s-icon-button/index.js +2 -2
- package/dist/s-icon-button/s-icon-button.d.ts +6 -19
- package/dist/s-icon-button/s-icon-button.js +14 -4
- package/dist/s-image-comparison/s-image-comparison.js +50 -45
- package/dist/s-image-modal/index.js +3 -3
- package/dist/s-image-modal/s-image-modal.d.ts +4 -20
- package/dist/s-image-modal/s-image-modal.js +150 -135
- package/dist/s-item-not-found/index.js +2 -2
- package/dist/s-item-not-found/s-item-not-found.d.ts +14 -1
- package/dist/s-item-not-found/s-item-not-found.js +21 -10
- package/dist/s-label/index.js +2 -2
- package/dist/s-label/s-label.d.ts +9 -25
- package/dist/s-label/s-label.js +19 -9
- package/dist/s-language-switcher/index.js +3 -3
- package/dist/s-language-switcher/s-language-switcher.d.ts +20 -33
- package/dist/s-language-switcher/s-language-switcher.js +137 -115
- package/dist/s-lazy-image/index.js +10 -2
- package/dist/s-lazy-image/s-lazy-image.d.ts +12 -58
- package/dist/s-lazy-image/s-lazy-image.js +53 -58
- package/dist/s-localization-provider/index.js +2 -2
- package/dist/s-localization-provider/s-localization-provider.d.ts +6 -27
- package/dist/s-localization-provider/s-localization-provider.js +157 -149
- package/dist/s-moving-border/index.js +2 -2
- package/dist/s-moving-border/s-moving-border.d.ts +3 -33
- package/dist/s-moving-border/s-moving-border.js +65 -55
- package/dist/s-multi-select/index.js +2 -2
- package/dist/s-multi-select/s-multi-select.d.ts +5 -15
- package/dist/s-multi-select/s-multi-select.js +54 -45
- package/dist/s-no-ssr/index.js +2 -2
- package/dist/s-no-ssr/s-no-ssr.d.ts +5 -33
- package/dist/s-no-ssr/s-no-ssr.js +21 -11
- package/dist/s-overlay-scrollbar/index.js +2 -2
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -1
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +16 -11
- package/dist/s-pagination/index.js +2 -2
- package/dist/s-pagination/s-pagination.d.ts +5 -23
- package/dist/s-pagination/s-pagination.js +17 -11
- package/dist/s-pixel-reveal/index.js +2 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +15 -1
- package/dist/s-pixel-reveal/s-pixel-reveal.js +83 -78
- package/dist/s-radial-pulse-animate/index.js +2 -2
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +12 -1
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +52 -42
- package/dist/s-rating/index.js +2 -2
- package/dist/s-rating/s-rating.d.ts +7 -1
- package/dist/s-rating/s-rating.js +15 -5
- package/dist/s-review/index.js +2 -2
- package/dist/s-review/s-review.d.ts +25 -1
- package/dist/s-review/s-review.js +104 -97
- package/dist/s-scroll-reveal/index.js +2 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +17 -36
- package/dist/s-scroll-reveal/s-scroll-reveal.js +43 -33
- package/dist/s-scroll-to-top/index.js +2 -2
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +12 -17
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -15
- package/dist/s-scroll-velocity/index.d.ts +6 -0
- package/dist/s-scroll-velocity/index.js +8 -0
- package/dist/s-scroll-velocity/package.json +5 -0
- package/dist/s-scroll-velocity/s-scroll-velocity.d.ts +24 -0
- package/dist/s-scroll-velocity/s-scroll-velocity.js +22 -0
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +20 -0
- package/dist/s-scroll-velocity/scroll-velocity-container.js +40 -0
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +27 -0
- package/dist/s-scroll-velocity/scroll-velocity-row.js +131 -0
- package/dist/s-select/index.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -22
- package/dist/s-select/s-select.js +76 -72
- package/dist/s-select-list/index.js +2 -2
- package/dist/s-select-list/s-select-list.d.ts +16 -19
- package/dist/s-select-list/s-select-list.js +33 -28
- package/dist/s-skeleton/index.js +2 -2
- package/dist/s-skeleton/s-skeleton.d.ts +6 -22
- package/dist/s-skeleton/s-skeleton.js +28 -18
- package/dist/s-snackbar-message/index.js +4 -4
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +5 -23
- package/dist/s-snackbar-message/s-snackbar-message.js +38 -31
- package/dist/s-spotlight-cursor/index.js +2 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +10 -44
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +35 -29
- package/dist/s-stripe/index.d.ts +4 -1
- package/dist/s-stripe/index.js +7 -4
- package/dist/s-stripe/s-stripe-cvc.d.ts +8 -0
- package/dist/s-stripe/s-stripe-cvc.js +15 -0
- package/dist/s-stripe/s-stripe-expiry.d.ts +8 -0
- package/dist/s-stripe/s-stripe-expiry.js +15 -0
- package/dist/s-stripe/s-stripe-number.d.ts +8 -0
- package/dist/s-stripe/s-stripe-number.js +15 -0
- package/dist/s-stripe/s-stripe.d.ts +6 -85
- package/dist/s-stripe/s-stripe.js +24 -27
- package/dist/s-stripe/stripe-input.js +22 -18
- package/dist/s-tabs/index.js +6 -6
- package/dist/s-tabs/s-tab-panel.d.ts +11 -1
- package/dist/s-tabs/s-tab-panel.js +25 -16
- package/dist/s-tabs/s-tab.js +9 -5
- package/dist/s-tabs/s-tabs.d.ts +24 -3
- package/dist/s-tabs/s-tabs.js +34 -25
- package/dist/s-text-editor/index.js +3 -3
- package/dist/s-text-editor/s-text-editor-toolbar.js +91 -76
- package/dist/s-text-editor/s-text-editor.d.ts +13 -11
- package/dist/s-text-editor/s-text-editor.js +44 -30
- package/dist/s-text-field/index.js +2 -2
- package/dist/s-text-field/s-text-field.d.ts +6 -15
- package/dist/s-text-field/s-text-field.js +38 -28
- package/dist/s-text-shimmer/index.js +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.d.ts +10 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +27 -18
- package/dist/s-text-truncation/index.js +2 -2
- package/dist/s-text-truncation/s-text-truncation.d.ts +9 -38
- package/dist/s-text-truncation/s-text-truncation.js +34 -20
- package/dist/s-theme-demo/s-theme-demo.js +238 -223
- package/dist/s-theme-provider/index.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.d.ts +5 -17
- package/dist/s-theme-provider/s-theme-provider.js +44 -34
- package/dist/s-theme-switch/s-theme-switch.js +23 -19
- package/dist/s-tip/index.js +2 -2
- package/dist/s-tip/s-tip.d.ts +5 -22
- package/dist/s-tip/s-tip.js +22 -12
- package/dist/s-two-pane-layout/index.js +10 -2
- package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +7 -1
- package/dist/s-two-pane-layout/s-two-pane-layout.js +58 -48
- package/dist/s-typewriter-text/index.js +2 -2
- package/dist/s-typewriter-text/s-typewriter-text.d.ts +17 -1
- package/dist/s-typewriter-text/s-typewriter-text.js +37 -27
- package/dist/s-zoom-image/index.js +10 -2
- package/dist/s-zoom-image/s-zoom-image.d.ts +10 -42
- package/dist/s-zoom-image/s-zoom-image.js +62 -52
- package/dist/theme/components/alert.d.ts +1436 -1436
- package/dist/theme/components/button.d.ts +2150 -2150
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/{typographyClasses-C7fhAsUD.js → typographyClasses-DDyl9mok.js} +4 -4
- package/dist/{useMobilePicker-DgxcRrRB.js → useMobilePicker-C1RZZUWr.js} +1 -1
- package/package.json +23 -6
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
C,
|
|
1
|
+
import { j as m } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { STextField as d } from "../s-text-field/s-text-field.js";
|
|
3
|
+
import u from "./stripe-input.js";
|
|
4
|
+
const r = (t) => {
|
|
5
|
+
var a;
|
|
6
|
+
const { helperText: l, slotProps: e, inputProps: i, error: n, labelErrorMessage: p, stripeElement: s, ...o } = t;
|
|
7
|
+
return /* @__PURE__ */ m.jsx(
|
|
8
|
+
d,
|
|
10
9
|
{
|
|
11
10
|
fullWidth: !0,
|
|
12
11
|
slotProps: {
|
|
@@ -18,33 +17,31 @@ const n = (t) => {
|
|
|
18
17
|
input: {
|
|
19
18
|
...e == null ? void 0 : e.input,
|
|
20
19
|
inputProps: {
|
|
21
|
-
...
|
|
22
|
-
...(
|
|
23
|
-
component:
|
|
20
|
+
...i,
|
|
21
|
+
...(a = e == null ? void 0 : e.input) == null ? void 0 : a.inputProps,
|
|
22
|
+
component: s
|
|
24
23
|
// Pass Stripe element as component
|
|
25
24
|
},
|
|
26
|
-
inputComponent:
|
|
25
|
+
inputComponent: u
|
|
27
26
|
// Custom input component for Stripe integration
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
|
-
error:
|
|
31
|
-
helperText:
|
|
32
|
-
...
|
|
29
|
+
error: n,
|
|
30
|
+
helperText: n ? p : l,
|
|
31
|
+
...o
|
|
33
32
|
}
|
|
34
33
|
);
|
|
35
34
|
};
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
r.displayName = "StripeTextField";
|
|
36
|
+
try {
|
|
37
|
+
r.displayName = "StripeTextField", r.__docgenInfo = { description: "Generic Stripe text field component that integrates Stripe Elements with Material-UI styling.", displayName: "StripeTextField", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "AuBankAccountElementProps | CardCvcElementProps | CardExpiryElementProps | CardNumberElementProps | FpxBankElementProps | IbanElementProps | IdealBankElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeAuBankAccountElementChangeEvent) => any) | ((event: StripeCardCvcElementChangeEvent) => any) | ... 5 more ..." } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "StripeElement" } } } };
|
|
38
|
+
} catch {
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
function T(t) {
|
|
43
|
-
return /* @__PURE__ */ r.jsx(n, { label: "CVC", stripeElement: s, ...t });
|
|
40
|
+
try {
|
|
41
|
+
sstripe.displayName = "sstripe", sstripe.__docgenInfo = { description: "Generic Stripe text field component that integrates Stripe Elements with Material-UI styling.", displayName: "sstripe", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "AuBankAccountElementProps | CardCvcElementProps | CardExpiryElementProps | CardNumberElementProps | FpxBankElementProps | IbanElementProps | IdealBankElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeAuBankAccountElementChangeEvent) => any) | ((event: StripeCardCvcElementChangeEvent) => any) | ... 5 more ..." } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "StripeElement" } } } };
|
|
42
|
+
} catch {
|
|
44
43
|
}
|
|
45
44
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
j as SStripeNumber,
|
|
49
|
-
n as StripeTextField
|
|
45
|
+
r as StripeTextField,
|
|
46
|
+
r as default
|
|
50
47
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { gray as
|
|
4
|
-
import '../assets/stripe-input.css';const
|
|
5
|
-
const { component:
|
|
6
|
-
return
|
|
7
|
-
|
|
1
|
+
import { j as d } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { gray as l } from "../theme/theme-primitives.js";
|
|
4
|
+
import '../assets/stripe-input.css';const m = e.forwardRef(function(i, n) {
|
|
5
|
+
const { component: s, options: a, ...t } = i, [o, p] = e.useState(null);
|
|
6
|
+
return e.useImperativeHandle(
|
|
7
|
+
n,
|
|
8
8
|
() => ({
|
|
9
|
-
focus: () =>
|
|
9
|
+
focus: () => o.focus()
|
|
10
10
|
}),
|
|
11
|
-
[
|
|
12
|
-
), /* @__PURE__ */
|
|
13
|
-
|
|
11
|
+
[o]
|
|
12
|
+
), /* @__PURE__ */ d.jsx(
|
|
13
|
+
s,
|
|
14
14
|
{
|
|
15
|
-
onReady:
|
|
15
|
+
onReady: p,
|
|
16
16
|
options: {
|
|
17
17
|
...a,
|
|
18
18
|
style: {
|
|
@@ -20,26 +20,30 @@ import '../assets/stripe-input.css';const f = t.forwardRef(function(r, s) {
|
|
|
20
20
|
fontFamily: "Outfit, sans-serif",
|
|
21
21
|
lineHeight: "1.5",
|
|
22
22
|
color: "rgb(255, 255, 255)",
|
|
23
|
-
...
|
|
23
|
+
...t.disabled && {
|
|
24
24
|
color: "rgba(255, 255, 255, 0.5)"
|
|
25
25
|
// for disabled state
|
|
26
26
|
},
|
|
27
27
|
"&::placeholder": {
|
|
28
|
-
color:
|
|
29
|
-
...
|
|
28
|
+
color: l[600],
|
|
29
|
+
...t.disabled && {
|
|
30
30
|
color: "rgba(255, 255, 255, 0.5)"
|
|
31
31
|
// for disabled state
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
disabled:
|
|
36
|
+
disabled: t.disabled
|
|
37
37
|
// Pass through the disabled state to Stripe Element
|
|
38
38
|
},
|
|
39
|
-
...
|
|
39
|
+
...t
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
});
|
|
43
|
+
try {
|
|
44
|
+
stripeinput.displayName = "stripeinput", stripeinput.__docgenInfo = { description: "Forward ref component for Stripe Elements integration with Material-UI", displayName: "stripeinput", props: {} };
|
|
45
|
+
} catch {
|
|
46
|
+
}
|
|
43
47
|
export {
|
|
44
|
-
|
|
48
|
+
m as default
|
|
45
49
|
};
|
package/dist/s-tabs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as
|
|
3
|
-
import {
|
|
1
|
+
import { STabs as r } from "./s-tabs.js";
|
|
2
|
+
import { default as f } from "./s-tab.js";
|
|
3
|
+
import { STabPanel as b } from "./s-tab-panel.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
f as STab,
|
|
6
|
+
b as STabPanel,
|
|
7
|
+
r as STabs
|
|
8
8
|
};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* Props interface for STabPanel component
|
|
5
|
+
*/
|
|
3
6
|
export interface STabPanelProps extends BoxProps {
|
|
7
|
+
/** Content to display in the tab panel */
|
|
4
8
|
children?: React.ReactNode;
|
|
9
|
+
/** Index of this specific tab panel (0-based) */
|
|
5
10
|
index: number;
|
|
11
|
+
/** Current active tab index from the parent tabs component */
|
|
6
12
|
value: number;
|
|
13
|
+
/** Keep the panel mounted in the DOM when not active */
|
|
7
14
|
keepMounted?: boolean;
|
|
8
15
|
}
|
|
9
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Individual tab content panel component with advanced mounting controls.
|
|
18
|
+
*/
|
|
19
|
+
export declare const STabPanel: React.ForwardRefExoticComponent<Omit<STabPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
20
|
export default STabPanel;
|
|
@@ -1,28 +1,37 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Box as
|
|
4
|
-
const
|
|
5
|
-
({ children:
|
|
6
|
-
const
|
|
7
|
-
return
|
|
8
|
-
|
|
1
|
+
import { j as p } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { Box as s } from "@mui/material";
|
|
4
|
+
const t = u(
|
|
5
|
+
({ children: e, value: l, index: a, keepMounted: r = !1, sx: d, ...i }, o) => {
|
|
6
|
+
const n = l === a;
|
|
7
|
+
return n || r ? /* @__PURE__ */ p.jsx(
|
|
8
|
+
s,
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
10
|
+
ref: o,
|
|
11
11
|
role: "tabpanel",
|
|
12
|
-
hidden: !
|
|
12
|
+
hidden: !n,
|
|
13
13
|
id: `tabpanel-${a}`,
|
|
14
14
|
"aria-labelledby": `tab-${a}`,
|
|
15
15
|
sx: {
|
|
16
|
-
...
|
|
17
|
-
display:
|
|
16
|
+
...d,
|
|
17
|
+
display: n ? "block" : "none"
|
|
18
18
|
},
|
|
19
|
-
...
|
|
20
|
-
children:
|
|
19
|
+
...i,
|
|
20
|
+
children: e
|
|
21
21
|
}
|
|
22
22
|
) : null;
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
|
-
|
|
25
|
+
t.displayName = "STabPanel";
|
|
26
|
+
try {
|
|
27
|
+
t.displayName = "STabPanel", t.__docgenInfo = { description: "Individual tab content panel component with advanced mounting controls.", displayName: "STabPanel", props: { children: { defaultValue: null, description: "Content to display in the tab panel", name: "children", required: !1, type: { name: "ReactNode" } }, value: { defaultValue: null, description: "Current active tab index from the parent tabs component", name: "value", required: !0, type: { name: "number" } }, index: { defaultValue: null, description: "Index of this specific tab panel (0-based)", name: "index", required: !0, type: { name: "number" } }, keepMounted: { defaultValue: { value: "false" }, description: "Keep the panel mounted in the DOM when not active", name: "keepMounted", required: !1, type: { name: "boolean" } } } };
|
|
28
|
+
} catch {
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
stabpanel.displayName = "stabpanel", stabpanel.__docgenInfo = { description: "Individual tab content panel component with advanced mounting controls.", displayName: "stabpanel", props: { children: { defaultValue: null, description: "Content to display in the tab panel", name: "children", required: !1, type: { name: "ReactNode" } }, value: { defaultValue: null, description: "Current active tab index from the parent tabs component", name: "value", required: !0, type: { name: "number" } }, index: { defaultValue: null, description: "Index of this specific tab panel (0-based)", name: "index", required: !0, type: { name: "number" } }, keepMounted: { defaultValue: { value: "false" }, description: "Keep the panel mounted in the DOM when not active", name: "keepMounted", required: !1, type: { name: "boolean" } } } };
|
|
32
|
+
} catch {
|
|
33
|
+
}
|
|
26
34
|
export {
|
|
27
|
-
|
|
35
|
+
t as STabPanel,
|
|
36
|
+
t as default
|
|
28
37
|
};
|
package/dist/s-tabs/s-tab.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import { Tab as
|
|
4
|
-
const
|
|
5
|
-
|
|
3
|
+
import { Tab as p } from "@mui/material";
|
|
4
|
+
const r = t((a, o) => /* @__PURE__ */ e.jsx(p, { ref: o, ...a }));
|
|
5
|
+
r.displayName = "STab";
|
|
6
|
+
try {
|
|
7
|
+
r.displayName = "STab", r.__docgenInfo = { description: "", displayName: "STab", props: {} };
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
6
10
|
export {
|
|
7
|
-
|
|
11
|
+
r as default
|
|
8
12
|
};
|
package/dist/s-tabs/s-tabs.d.ts
CHANGED
|
@@ -1,20 +1,41 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { BoxProps, TabProps, TabsProps } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* Props interface for STabs component
|
|
5
|
+
*/
|
|
3
6
|
export interface STabsProps extends Omit<TabsProps, 'children'> {
|
|
7
|
+
/** Array of tab configuration objects defining the tabs to display */
|
|
4
8
|
tabs: STabItem[];
|
|
9
|
+
/** Index of the currently active tab. Set to false for uncontrolled mode */
|
|
5
10
|
activeTab?: number | false;
|
|
6
|
-
|
|
11
|
+
/** Callback function called when a tab is selected */
|
|
12
|
+
onTabChange?: (event: React.SyntheticEvent, value: number) => void;
|
|
13
|
+
/** Tab panel content. Children are matched to tabs by index */
|
|
7
14
|
children?: React.ReactNode;
|
|
15
|
+
/** Additional props passed to the tab panel wrapper Box component */
|
|
8
16
|
tabPanelProps?: BoxProps;
|
|
9
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Configuration object interface for individual tabs in STabs
|
|
20
|
+
*/
|
|
10
21
|
export interface STabItem {
|
|
22
|
+
/** The content displayed in the tab */
|
|
11
23
|
label: React.ReactNode;
|
|
12
|
-
value
|
|
24
|
+
/** Custom value for the tab. If not provided, uses the tab index */
|
|
25
|
+
value?: number;
|
|
26
|
+
/** Whether the tab is disabled and cannot be selected */
|
|
13
27
|
disabled?: boolean;
|
|
28
|
+
/** Icon element to display in the tab */
|
|
14
29
|
icon?: React.ReactElement;
|
|
30
|
+
/** Position of the icon relative to the label */
|
|
15
31
|
iconPosition?: 'start' | 'end' | 'top' | 'bottom';
|
|
32
|
+
/** Whether the tab label should wrap to multiple lines */
|
|
16
33
|
wrapped?: boolean;
|
|
34
|
+
/** Additional props passed to the underlying Material-UI Tab component */
|
|
17
35
|
tabProps?: Omit<TabProps, 'label' | 'value' | 'disabled' | 'icon' | 'iconPosition' | 'wrapped'>;
|
|
18
36
|
}
|
|
19
|
-
|
|
37
|
+
/**
|
|
38
|
+
* A flexible tabs component system built on Material-UI Tabs.
|
|
39
|
+
*/
|
|
40
|
+
export declare const STabs: React.ForwardRefExoticComponent<Omit<STabsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
41
|
export default STabs;
|
package/dist/s-tabs/s-tabs.js
CHANGED
|
@@ -1,34 +1,43 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import { Tabs as
|
|
4
|
-
const
|
|
5
|
-
({ tabs:
|
|
6
|
-
const [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}, [
|
|
10
|
-
const
|
|
11
|
-
|
|
1
|
+
import { j as n } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import o, { forwardRef as f } from "react";
|
|
3
|
+
import { Tabs as y, Tab as h, Box as _ } from "@mui/material";
|
|
4
|
+
const s = f(
|
|
5
|
+
({ tabs: l, activeTab: a = 0, onTabChange: r, children: i, tabPanelProps: c, ...u }, b) => {
|
|
6
|
+
const [d, p] = o.useState(a);
|
|
7
|
+
o.useEffect(() => {
|
|
8
|
+
a !== !1 && p(a);
|
|
9
|
+
}, [a]);
|
|
10
|
+
const m = (e, t) => {
|
|
11
|
+
a === !1 && p(t), r == null || r(e, t);
|
|
12
12
|
};
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
13
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
14
|
+
/* @__PURE__ */ n.jsx(y, { ref: b, value: d, onChange: m, ...u, children: l.map((e, t) => /* @__PURE__ */ n.jsx(
|
|
15
|
+
h,
|
|
16
16
|
{
|
|
17
|
-
label:
|
|
18
|
-
value:
|
|
19
|
-
disabled:
|
|
20
|
-
icon:
|
|
21
|
-
iconPosition:
|
|
22
|
-
wrapped:
|
|
23
|
-
...
|
|
17
|
+
label: e.label,
|
|
18
|
+
value: e.value ?? t,
|
|
19
|
+
disabled: e.disabled,
|
|
20
|
+
icon: e.icon,
|
|
21
|
+
iconPosition: e.iconPosition,
|
|
22
|
+
wrapped: e.wrapped,
|
|
23
|
+
...e.tabProps
|
|
24
24
|
},
|
|
25
|
-
|
|
25
|
+
t
|
|
26
26
|
)) }),
|
|
27
|
-
|
|
27
|
+
i && /* @__PURE__ */ n.jsx(_, { role: "tabpanel", padding: 2, ...c, children: o.Children.toArray(i)[d] })
|
|
28
28
|
] });
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
|
|
31
|
+
s.displayName = "STabs";
|
|
32
|
+
try {
|
|
33
|
+
s.displayName = "STabs", s.__docgenInfo = { description: "A flexible tabs component system built on Material-UI Tabs.", displayName: "STabs", props: { children: { defaultValue: null, description: "Tab panel content. Children are matched to tabs by index", name: "children", required: !1, type: { name: "ReactNode" } }, tabs: { defaultValue: null, description: "Array of tab configuration objects defining the tabs to display", name: "tabs", required: !0, type: { name: "STabItem[]" } }, activeTab: { defaultValue: { value: "0" }, description: "Index of the currently active tab. Set to false for uncontrolled mode", name: "activeTab", required: !1, type: { name: "number | false" } }, onTabChange: { defaultValue: null, description: "Callback function called when a tab is selected", name: "onTabChange", required: !1, type: { name: "((event: SyntheticEvent<Element, Event>, value: number) => void)" } }, tabPanelProps: { defaultValue: null, description: "Additional props passed to the tab panel wrapper Box component", name: "tabPanelProps", required: !1, type: { name: "BoxProps" } } } };
|
|
34
|
+
} catch {
|
|
35
|
+
}
|
|
36
|
+
try {
|
|
37
|
+
stabs.displayName = "stabs", stabs.__docgenInfo = { description: "A flexible tabs component system built on Material-UI Tabs.", displayName: "stabs", props: { children: { defaultValue: null, description: "Tab panel content. Children are matched to tabs by index", name: "children", required: !1, type: { name: "ReactNode" } }, tabs: { defaultValue: null, description: "Array of tab configuration objects defining the tabs to display", name: "tabs", required: !0, type: { name: "STabItem[]" } }, activeTab: { defaultValue: { value: "0" }, description: "Index of the currently active tab. Set to false for uncontrolled mode", name: "activeTab", required: !1, type: { name: "number | false" } }, onTabChange: { defaultValue: null, description: "Callback function called when a tab is selected", name: "onTabChange", required: !1, type: { name: "((event: SyntheticEvent<Element, Event>, value: number) => void)" } }, tabPanelProps: { defaultValue: null, description: "Additional props passed to the tab panel wrapper Box component", name: "tabPanelProps", required: !1, type: { name: "BoxProps" } } } };
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
32
40
|
export {
|
|
33
|
-
|
|
41
|
+
s as STabs,
|
|
42
|
+
s as default
|
|
34
43
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { STextEditorToolbar as
|
|
1
|
+
import { STextEditor as t } from "./s-text-editor.js";
|
|
2
|
+
import { STextEditorToolbar as x } from "./s-text-editor-toolbar.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
x as STextEditorToolbar,
|
|
5
5
|
t as default
|
|
6
6
|
};
|