@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,8 +1,7 @@
|
|
|
1
1
|
import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/**
|
|
4
|
-
* Props interface for SDatePicker component
|
|
5
|
-
* with form integration capabilities
|
|
4
|
+
* Props interface for SDatePicker component
|
|
6
5
|
*/
|
|
7
6
|
export interface SDatePickerProps extends DatePickerProps {
|
|
8
7
|
/** Field label displayed above the date picker */
|
|
@@ -17,20 +16,10 @@ export interface SDatePickerProps extends DatePickerProps {
|
|
|
17
16
|
hint?: string;
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
* with consistent form labeling, validation, and help text patterns.
|
|
22
|
-
*
|
|
23
|
-
* Key features:
|
|
24
|
-
* - Integrates with SForm for consistent label and error handling
|
|
25
|
-
* - Uses Material-UI TextField as the default input component
|
|
26
|
-
* - Maintains full Material-UI X DatePicker API compatibility
|
|
27
|
-
* - Provides accessible form labeling with htmlFor/id association
|
|
28
|
-
* - Includes help text tooltip functionality
|
|
29
|
-
* - Disables accessible field DOM structure for better styling control
|
|
30
|
-
* - Allows slot overrides for advanced customization
|
|
31
|
-
*
|
|
32
|
-
* @param props - SDatePickerProps with form integration and Material-UI X DatePicker props
|
|
33
|
-
* @returns JSX.Element - Wrapped DatePicker with form labeling and validation
|
|
19
|
+
* A standardized date picker component that wraps Material-UI X DatePicker with consistent form labeling.
|
|
34
20
|
*/
|
|
35
|
-
declare
|
|
21
|
+
export declare const SDatePicker: {
|
|
22
|
+
({ label, required, error, htmlFor, hint, ...props }: SDatePickerProps): React.JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
36
25
|
export default SDatePicker;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import L from "../s-form/s-form.js";
|
|
4
|
-
import { _ as
|
|
1
|
+
import { j as p } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { useTheme as W, TextField as z } from "@mui/material";
|
|
3
|
+
import { SForm as L } from "../s-form/s-form.js";
|
|
4
|
+
import { _ as O, a as r } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
5
5
|
import * as b from "react";
|
|
6
6
|
import { P as e } from "../createTheme-3Wd3hHrj.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as g, a as U, b as H, c as Y, r as k, d as Q, P as B, e as X, f as $, g as K, h as Z, i as G, j as J, k as ee, C as oe, l as m, m as F, n as te, v as N, s as R, o as ae, D as re, p as ne } from "../useMobilePicker-C1RZZUWr.js";
|
|
8
8
|
import { u as y } from "../warning-BCwEnWrE.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { g as
|
|
9
|
+
import { g as se } from "../colorManipulator-ep5lERxB.js";
|
|
10
|
+
import { g as le } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
11
11
|
import { s as C } from "../styled-B0Z4EDy9.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { T as
|
|
14
|
-
import { r as h, a as
|
|
15
|
-
function
|
|
16
|
-
return
|
|
12
|
+
import { a as ie } from "../DefaultPropsProvider-CaCsvQaq.js";
|
|
13
|
+
import { T as ce } from "../Typography-C8jwvSWe.js";
|
|
14
|
+
import { r as h, a as V } from "../ButtonBase-DfTfJ_ou.js";
|
|
15
|
+
function de(n) {
|
|
16
|
+
return se("MuiDatePickerToolbar", n);
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
const
|
|
18
|
+
le("MuiDatePickerToolbar", ["root", "title"]);
|
|
19
|
+
const ue = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], pe = (n) => ie({
|
|
20
20
|
root: ["root"],
|
|
21
21
|
title: ["title"]
|
|
22
|
-
},
|
|
22
|
+
}, de, n), fe = C(B, {
|
|
23
23
|
name: "MuiDatePickerToolbar",
|
|
24
24
|
slot: "Root"
|
|
25
|
-
})({}),
|
|
25
|
+
})({}), be = C(ce, {
|
|
26
26
|
name: "MuiDatePickerToolbar",
|
|
27
27
|
slot: "Title"
|
|
28
28
|
})({
|
|
@@ -34,44 +34,44 @@ const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue =
|
|
|
34
34
|
margin: "auto 16px auto auto"
|
|
35
35
|
}
|
|
36
36
|
}]
|
|
37
|
-
}),
|
|
38
|
-
const
|
|
39
|
-
props:
|
|
37
|
+
}), T = /* @__PURE__ */ b.forwardRef(function(s, t) {
|
|
38
|
+
const l = y({
|
|
39
|
+
props: s,
|
|
40
40
|
name: "MuiDatePickerToolbar"
|
|
41
41
|
}), {
|
|
42
42
|
toolbarFormat: o,
|
|
43
|
-
toolbarPlaceholder:
|
|
43
|
+
toolbarPlaceholder: a = "––",
|
|
44
44
|
className: i,
|
|
45
|
-
classes:
|
|
46
|
-
} =
|
|
45
|
+
classes: f
|
|
46
|
+
} = l, c = O(l, ue), u = g(), {
|
|
47
47
|
value: d,
|
|
48
48
|
views: v,
|
|
49
|
-
orientation:
|
|
50
|
-
} = U(),
|
|
49
|
+
orientation: S
|
|
50
|
+
} = U(), E = H(), q = Y(), M = pe(f), A = b.useMemo(() => {
|
|
51
51
|
if (!u.isValid(d))
|
|
52
|
-
return
|
|
53
|
-
const
|
|
52
|
+
return a;
|
|
53
|
+
const I = k(u, {
|
|
54
54
|
format: o,
|
|
55
55
|
views: v
|
|
56
56
|
}, !0);
|
|
57
|
-
return u.formatByString(d,
|
|
58
|
-
}, [d, o,
|
|
59
|
-
return /* @__PURE__ */
|
|
57
|
+
return u.formatByString(d, I);
|
|
58
|
+
}, [d, o, a, u, v]);
|
|
59
|
+
return /* @__PURE__ */ p.jsx(fe, r({
|
|
60
60
|
ref: t,
|
|
61
|
-
toolbarTitle:
|
|
62
|
-
className:
|
|
61
|
+
toolbarTitle: E.datePickerToolbarTitle,
|
|
62
|
+
className: Q(M.root, i)
|
|
63
63
|
}, c, {
|
|
64
|
-
children: /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ p.jsx(be, {
|
|
65
65
|
variant: "h4",
|
|
66
|
-
align:
|
|
67
|
-
ownerState:
|
|
68
|
-
className:
|
|
66
|
+
align: S === "landscape" ? "left" : "center",
|
|
67
|
+
ownerState: q,
|
|
68
|
+
className: M.title,
|
|
69
69
|
children: A
|
|
70
70
|
})
|
|
71
71
|
}));
|
|
72
72
|
});
|
|
73
|
-
process.env.NODE_ENV !== "production" && (
|
|
74
|
-
process.env.NODE_ENV !== "production" && (
|
|
73
|
+
process.env.NODE_ENV !== "production" && (T.displayName = "DatePickerToolbar");
|
|
74
|
+
process.env.NODE_ENV !== "production" && (T.propTypes = {
|
|
75
75
|
// ----------------------------- Warning --------------------------------
|
|
76
76
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
77
77
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -101,17 +101,17 @@ process.env.NODE_ENV !== "production" && (g.propTypes = {
|
|
|
101
101
|
*/
|
|
102
102
|
toolbarPlaceholder: e.node
|
|
103
103
|
});
|
|
104
|
-
function
|
|
104
|
+
function _(n, s) {
|
|
105
105
|
const t = y({
|
|
106
|
-
props:
|
|
107
|
-
name:
|
|
108
|
-
}),
|
|
109
|
-
var
|
|
110
|
-
return ((
|
|
106
|
+
props: n,
|
|
107
|
+
name: s
|
|
108
|
+
}), l = X(t), o = b.useMemo(() => {
|
|
109
|
+
var a;
|
|
110
|
+
return ((a = t.localeText) == null ? void 0 : a.toolbarTitle) == null ? t.localeText : r({}, t.localeText, {
|
|
111
111
|
datePickerToolbarTitle: t.localeText.toolbarTitle
|
|
112
112
|
});
|
|
113
113
|
}, [t.localeText]);
|
|
114
|
-
return
|
|
114
|
+
return r({}, t, l, {
|
|
115
115
|
localeText: o
|
|
116
116
|
}, $({
|
|
117
117
|
views: t.views,
|
|
@@ -119,36 +119,36 @@ function S(l, n) {
|
|
|
119
119
|
defaultViews: ["year", "day"],
|
|
120
120
|
defaultOpenTo: "day"
|
|
121
121
|
}), {
|
|
122
|
-
slots:
|
|
123
|
-
toolbar:
|
|
122
|
+
slots: r({
|
|
123
|
+
toolbar: T
|
|
124
124
|
}, t.slots)
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
const
|
|
127
|
+
const me = (n) => {
|
|
128
|
+
const s = K(n);
|
|
129
129
|
return Z({
|
|
130
|
-
manager:
|
|
131
|
-
props:
|
|
130
|
+
manager: s,
|
|
131
|
+
props: n
|
|
132
132
|
});
|
|
133
|
-
},
|
|
134
|
-
const
|
|
135
|
-
props:
|
|
133
|
+
}, ye = ["slots", "slotProps"], D = /* @__PURE__ */ b.forwardRef(function(s, t) {
|
|
134
|
+
const l = y({
|
|
135
|
+
props: s,
|
|
136
136
|
name: "MuiDateField"
|
|
137
137
|
}), {
|
|
138
138
|
slots: o,
|
|
139
|
-
slotProps:
|
|
140
|
-
} =
|
|
141
|
-
slotProps:
|
|
139
|
+
slotProps: a
|
|
140
|
+
} = l, i = O(l, ye), f = G({
|
|
141
|
+
slotProps: a,
|
|
142
142
|
ref: t,
|
|
143
143
|
externalForwardedProps: i
|
|
144
|
-
}), c =
|
|
145
|
-
return /* @__PURE__ */
|
|
144
|
+
}), c = me(f);
|
|
145
|
+
return /* @__PURE__ */ p.jsx(J, {
|
|
146
146
|
slots: o,
|
|
147
|
-
slotProps:
|
|
147
|
+
slotProps: a,
|
|
148
148
|
inputRef: i.inputRef,
|
|
149
|
-
children: /* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ p.jsx(ee, {
|
|
150
150
|
fieldResponse: c,
|
|
151
|
-
defaultOpenPickerIcon:
|
|
151
|
+
defaultOpenPickerIcon: oe
|
|
152
152
|
})
|
|
153
153
|
});
|
|
154
154
|
});
|
|
@@ -434,43 +434,43 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
|
434
434
|
*/
|
|
435
435
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
436
436
|
});
|
|
437
|
-
const
|
|
437
|
+
const j = /* @__PURE__ */ b.forwardRef(function(s, t) {
|
|
438
438
|
var c;
|
|
439
|
-
const
|
|
439
|
+
const l = g(), o = _(s, "MuiDesktopDatePicker"), a = r({
|
|
440
440
|
day: m,
|
|
441
441
|
month: m,
|
|
442
442
|
year: m
|
|
443
|
-
}, o.viewRenderers), i =
|
|
443
|
+
}, o.viewRenderers), i = r({}, o, {
|
|
444
444
|
closeOnSelect: o.closeOnSelect ?? !0,
|
|
445
|
-
viewRenderers:
|
|
446
|
-
format:
|
|
445
|
+
viewRenderers: a,
|
|
446
|
+
format: k(l, o, !1),
|
|
447
447
|
yearsPerRow: o.yearsPerRow ?? 4,
|
|
448
|
-
slots:
|
|
448
|
+
slots: r({
|
|
449
449
|
field: D
|
|
450
450
|
}, o.slots),
|
|
451
|
-
slotProps:
|
|
451
|
+
slotProps: r({}, o.slotProps, {
|
|
452
452
|
field: (u) => {
|
|
453
453
|
var d;
|
|
454
|
-
return
|
|
454
|
+
return r({}, V((d = o.slotProps) == null ? void 0 : d.field, u), F(o));
|
|
455
455
|
},
|
|
456
|
-
toolbar:
|
|
456
|
+
toolbar: r({
|
|
457
457
|
hidden: !0
|
|
458
458
|
}, (c = o.slotProps) == null ? void 0 : c.toolbar)
|
|
459
459
|
})
|
|
460
460
|
}), {
|
|
461
|
-
renderPicker:
|
|
462
|
-
} =
|
|
461
|
+
renderPicker: f
|
|
462
|
+
} = te({
|
|
463
463
|
ref: t,
|
|
464
464
|
props: i,
|
|
465
465
|
valueManager: R,
|
|
466
466
|
valueType: "date",
|
|
467
|
-
validator:
|
|
467
|
+
validator: N,
|
|
468
468
|
steps: null
|
|
469
469
|
});
|
|
470
|
-
return
|
|
470
|
+
return f();
|
|
471
471
|
});
|
|
472
|
-
process.env.NODE_ENV !== "production" && (
|
|
473
|
-
|
|
472
|
+
process.env.NODE_ENV !== "production" && (j.displayName = "DesktopDatePicker");
|
|
473
|
+
j.propTypes = {
|
|
474
474
|
// ----------------------------- Warning --------------------------------
|
|
475
475
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
476
476
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -784,41 +784,41 @@ k.propTypes = {
|
|
|
784
784
|
*/
|
|
785
785
|
yearsPerRow: e.oneOf([3, 4])
|
|
786
786
|
};
|
|
787
|
-
const
|
|
787
|
+
const w = /* @__PURE__ */ b.forwardRef(function(s, t) {
|
|
788
788
|
var c;
|
|
789
|
-
const
|
|
789
|
+
const l = g(), o = _(s, "MuiMobileDatePicker"), a = r({
|
|
790
790
|
day: m,
|
|
791
791
|
month: m,
|
|
792
792
|
year: m
|
|
793
|
-
}, o.viewRenderers), i =
|
|
794
|
-
viewRenderers:
|
|
795
|
-
format:
|
|
796
|
-
slots:
|
|
793
|
+
}, o.viewRenderers), i = r({}, o, {
|
|
794
|
+
viewRenderers: a,
|
|
795
|
+
format: k(l, o, !1),
|
|
796
|
+
slots: r({
|
|
797
797
|
field: D
|
|
798
798
|
}, o.slots),
|
|
799
|
-
slotProps:
|
|
799
|
+
slotProps: r({}, o.slotProps, {
|
|
800
800
|
field: (u) => {
|
|
801
801
|
var d;
|
|
802
|
-
return
|
|
802
|
+
return r({}, V((d = o.slotProps) == null ? void 0 : d.field, u), F(o));
|
|
803
803
|
},
|
|
804
|
-
toolbar:
|
|
804
|
+
toolbar: r({
|
|
805
805
|
hidden: !1
|
|
806
806
|
}, (c = o.slotProps) == null ? void 0 : c.toolbar)
|
|
807
807
|
})
|
|
808
808
|
}), {
|
|
809
|
-
renderPicker:
|
|
810
|
-
} =
|
|
809
|
+
renderPicker: f
|
|
810
|
+
} = ae({
|
|
811
811
|
ref: t,
|
|
812
812
|
props: i,
|
|
813
813
|
valueManager: R,
|
|
814
814
|
valueType: "date",
|
|
815
|
-
validator:
|
|
815
|
+
validator: N,
|
|
816
816
|
steps: null
|
|
817
817
|
});
|
|
818
|
-
return
|
|
818
|
+
return f();
|
|
819
819
|
});
|
|
820
|
-
process.env.NODE_ENV !== "production" && (
|
|
821
|
-
|
|
820
|
+
process.env.NODE_ENV !== "production" && (w.displayName = "MobileDatePicker");
|
|
821
|
+
w.propTypes = {
|
|
822
822
|
// ----------------------------- Warning --------------------------------
|
|
823
823
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
824
824
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1132,20 +1132,20 @@ j.propTypes = {
|
|
|
1132
1132
|
*/
|
|
1133
1133
|
yearsPerRow: e.oneOf([3, 4])
|
|
1134
1134
|
};
|
|
1135
|
-
const
|
|
1136
|
-
const
|
|
1137
|
-
props:
|
|
1135
|
+
const he = ["desktopModeMediaQuery"], x = /* @__PURE__ */ b.forwardRef(function(s, t) {
|
|
1136
|
+
const l = y({
|
|
1137
|
+
props: s,
|
|
1138
1138
|
name: "MuiDatePicker"
|
|
1139
1139
|
}), {
|
|
1140
|
-
desktopModeMediaQuery: o =
|
|
1141
|
-
} =
|
|
1142
|
-
return
|
|
1140
|
+
desktopModeMediaQuery: o = re
|
|
1141
|
+
} = l, a = O(l, he);
|
|
1142
|
+
return ne(o, {
|
|
1143
1143
|
defaultMatches: !0
|
|
1144
|
-
}) ? /* @__PURE__ */
|
|
1144
|
+
}) ? /* @__PURE__ */ p.jsx(j, r({
|
|
1145
1145
|
ref: t
|
|
1146
|
-
},
|
|
1146
|
+
}, a)) : /* @__PURE__ */ p.jsx(w, r({
|
|
1147
1147
|
ref: t
|
|
1148
|
-
},
|
|
1148
|
+
}, a));
|
|
1149
1149
|
});
|
|
1150
1150
|
process.env.NODE_ENV !== "production" && (x.displayName = "DatePicker");
|
|
1151
1151
|
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
@@ -1468,16 +1468,23 @@ process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
|
1468
1468
|
*/
|
|
1469
1469
|
yearsPerRow: e.oneOf([3, 4])
|
|
1470
1470
|
});
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1471
|
+
const P = ({
|
|
1472
|
+
label: n,
|
|
1473
|
+
required: s = !1,
|
|
1474
|
+
error: t,
|
|
1475
|
+
htmlFor: l,
|
|
1476
|
+
hint: o,
|
|
1477
|
+
...a
|
|
1478
|
+
}) => {
|
|
1479
|
+
const i = W();
|
|
1480
|
+
return /* @__PURE__ */ p.jsx(L, { label: n, required: s, error: t, htmlFor: l, hint: o, children: /* @__PURE__ */ p.jsx(
|
|
1474
1481
|
x,
|
|
1475
1482
|
{
|
|
1476
1483
|
enableAccessibleFieldDOMStructure: !1,
|
|
1477
1484
|
slots: {
|
|
1478
1485
|
textField: z,
|
|
1479
1486
|
// Use Material-UI TextField as input
|
|
1480
|
-
...
|
|
1487
|
+
...a.slots || {}
|
|
1481
1488
|
// Allow user to override slots if needed
|
|
1482
1489
|
},
|
|
1483
1490
|
slotProps: {
|
|
@@ -1492,13 +1499,23 @@ function Re({ label: l, required: n = !1, error: t, htmlFor: r, hint: o, ...s })
|
|
|
1492
1499
|
}
|
|
1493
1500
|
}
|
|
1494
1501
|
},
|
|
1495
|
-
...
|
|
1502
|
+
...a.slotProps || {}
|
|
1496
1503
|
// Allow user to override slotProps if needed
|
|
1497
1504
|
},
|
|
1498
|
-
...
|
|
1505
|
+
...a
|
|
1499
1506
|
}
|
|
1500
1507
|
) });
|
|
1508
|
+
};
|
|
1509
|
+
P.displayName = "SDatePicker";
|
|
1510
|
+
try {
|
|
1511
|
+
P.displayName = "SDatePicker", P.__docgenInfo = { description: "A standardized date picker component that wraps Material-UI X DatePicker with consistent form labeling.", displayName: "SDatePicker", props: { label: { defaultValue: null, description: "Field label displayed above the date picker", name: "label", required: !1, type: { name: "ReactNode" } }, required: { defaultValue: { value: "false" }, description: "Whether the field is required (shows asterisk in label)", name: "required", required: !1, type: { name: "boolean" } }, error: { defaultValue: null, description: "Error message to display below the field", name: "error", required: !1, type: { name: "string" } }, htmlFor: { defaultValue: null, description: "HTML id attribute for the input element", name: "htmlFor", required: !1, type: { name: "string" } }, hint: { defaultValue: null, description: "Help text shown in tooltip next to the label", name: "hint", required: !1, type: { name: "string" } } } };
|
|
1512
|
+
} catch {
|
|
1513
|
+
}
|
|
1514
|
+
try {
|
|
1515
|
+
sdatepicker.displayName = "sdatepicker", sdatepicker.__docgenInfo = { description: "A standardized date picker component that wraps Material-UI X DatePicker with consistent form labeling.", displayName: "sdatepicker", props: { label: { defaultValue: null, description: "Field label displayed above the date picker", name: "label", required: !1, type: { name: "ReactNode" } }, required: { defaultValue: { value: "false" }, description: "Whether the field is required (shows asterisk in label)", name: "required", required: !1, type: { name: "boolean" } }, error: { defaultValue: null, description: "Error message to display below the field", name: "error", required: !1, type: { name: "string" } }, htmlFor: { defaultValue: null, description: "HTML id attribute for the input element", name: "htmlFor", required: !1, type: { name: "string" } }, hint: { defaultValue: null, description: "Help text shown in tooltip next to the label", name: "hint", required: !1, type: { name: "string" } } } };
|
|
1516
|
+
} catch {
|
|
1501
1517
|
}
|
|
1502
1518
|
export {
|
|
1503
|
-
|
|
1519
|
+
P as SDatePicker,
|
|
1520
|
+
P as default
|
|
1504
1521
|
};
|
|
@@ -17,21 +17,10 @@ export interface SDateTimePickerProps extends DateTimePickerProps {
|
|
|
17
17
|
hint?: string;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* with consistent form labeling, validation, and help text patterns.
|
|
22
|
-
*
|
|
23
|
-
* Key features:
|
|
24
|
-
* - Integrates with SForm for consistent label and error handling
|
|
25
|
-
* - Uses Material-UI TextField as the default input component
|
|
26
|
-
* - Maintains full Material-UI X DateTimePicker API compatibility
|
|
27
|
-
* - Provides accessible form labeling with htmlFor/id association
|
|
28
|
-
* - Includes help text tooltip functionality
|
|
29
|
-
* - Disables accessible field DOM structure for better styling control
|
|
30
|
-
* - Allows slot overrides for advanced customization
|
|
31
|
-
* - Combines both date and time selection in a single input
|
|
32
|
-
*
|
|
33
|
-
* @param props - SDateTimePickerProps with form integration and Material-UI X DateTimePicker props
|
|
34
|
-
* @returns JSX.Element - Wrapped DateTimePicker with form labeling and validation
|
|
20
|
+
* A standardized date and time picker component that wraps Material-UI X DateTimePicker with consistent form labeling.
|
|
35
21
|
*/
|
|
36
|
-
declare
|
|
22
|
+
export declare const SDateTimePicker: {
|
|
23
|
+
({ label, required, error, htmlFor, hint, ...props }: SDateTimePickerProps): React.JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
37
26
|
export default SDateTimePicker;
|