@solostylist/ui-kit 1.0.225 → 1.0.227
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-BMKLosZj.js → ArrowUpward-CNiENJp2.js} +1 -1
- package/dist/{ButtonBase-Bo6ysVGS.js → ButtonBase-BDefit5I.js} +100 -99
- package/dist/{ChevronRight-OLNOfW9P.js → ChevronRight-gZJ3kc6N.js} +1 -1
- package/dist/{Close-Bj2HYB9Q.js → Close-CJu3iF1p.js} +1 -1
- package/dist/{Collapse-CnXmaDqT.js → Collapse-JUd84Z9O.js} +4 -3
- package/dist/{ContentCopy-Br2p19dq.js → ContentCopy-BMQ2JTA0.js} +1 -1
- package/dist/{Download-BhSXOhCI.js → Download-SNal6U7j.js} +1 -1
- package/dist/{ExpandMore-Bu7_1g6Q.js → ExpandMore-DIsT5FOp.js} +1 -1
- package/dist/{Favorite-BJSuHe0H.js → Favorite-CbvuQfe4.js} +1 -1
- package/dist/{FormControl-DYkaP-oD.js → FormControl-BbzvApma.js} +6 -6
- package/dist/{InfoOutlined-C1AW3f5V.js → InfoOutlined-BCzG-5py.js} +1 -1
- package/dist/{Menu-C-0KEauj.js → Menu-Ct_sL_Dg.js} +20 -20
- package/dist/{MenuItem-DWivWkNb.js → MenuItem-CwAhn4sd.js} +8 -8
- package/dist/{MenuList-5HOyYdgq.js → MenuList-5C2nFAWS.js} +45 -45
- package/dist/{Modal-C1VRVWBZ.js → Modal-Cu5Cgh-q.js} +109 -108
- package/dist/{Paper-BY4X6-u_.js → Paper-CPC6sMxx.js} +1 -1
- package/dist/{Typography-EsraKPZO.js → Typography-CZ_MYa-E.js} +2 -2
- package/dist/{UnfoldMoreRounded-pz7NMMy3.js → UnfoldMoreRounded-tvqQS6eb.js} +1 -1
- package/dist/{autocomplete-qLj7AqcP.js → autocomplete-Dd4zjpaF.js} +1 -1
- package/dist/{avatar-BuMhUthq.js → avatar-DFQ5F7pY.js} +2 -2
- package/dist/{checkbox-B95Vlykq.js → checkbox-B5GlJYcB.js} +17 -17
- package/dist/{createSvgIcon-BdNZIlKS.js → createSvgIcon-HW-tbFcL.js} +1 -1
- package/dist/{mergeSlotProps-DBBJwoun.js → mergeSlotProps-slENzJO5.js} +1 -1
- package/dist/monthCalendarClasses-BLfBep-t.js +14 -0
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-CXHBadZ_.js → s-accordion-xPDelTvP.js} +7 -7
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/{s-carousel-BUJYCigy.js → s-carousel-CvmWl6Sc.js} +7 -9
- package/dist/s-category-card/s-category-card.js +0 -1
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/s-chat-input-BHMymKij.js +352 -0
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-Cb1npIQO.js → s-chat-message-B9JOBvzP.js} +67 -73
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/{s-chips-DelHx6zM.js → s-chips-CAC_vVd0.js} +1 -1
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-sjt0AQb_.js → s-code-block-B5k-1Acd.js} +9 -1
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-DzjXXLZQ.js → s-comment-message-BPE5a6p6.js} +12 -23
- package/dist/s-copyable-text/s-copyable-text.js +1 -2
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-TrCdKq9r.js → s-data-table-D-esZw_W.js} +47 -49
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/picker-action-bar.d.ts +12 -0
- package/dist/s-date-picker/picker-action-bar.js +52 -0
- package/dist/s-date-picker/s-date-picker.d.ts +1 -4
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/s-date-picker-CdH1pta6.js +640 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +1 -4
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-rCWovez1.js → s-datetime-picker-BHkWSJKj.js} +806 -799
- package/dist/s-dialog/s-dialog.js +2 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.js +3 -4
- package/dist/s-dialog-message/s-dialog-message.js +3 -4
- package/dist/s-empty/s-empty.js +2 -5
- package/dist/s-error/s-error.js +1 -1
- package/dist/s-error-layout/s-error-layout.d.ts +1 -1
- package/dist/s-error-layout/s-error-layout.js +3 -2
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +1 -4
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/{s-file-dropzone-oaQoRV92.js → s-file-dropzone-C4_hCsN8.js} +47 -42
- package/dist/s-gallery/gallery-grid-item.d.ts +17 -0
- package/dist/s-gallery/gallery-grid-item.js +112 -0
- package/dist/s-gallery/gallery-layout.d.ts +16 -0
- package/dist/s-gallery/gallery-layout.js +50 -0
- package/dist/s-gallery/gallery-media-item.d.ts +15 -0
- package/dist/s-gallery/gallery-media-item.js +112 -0
- package/dist/s-gallery/index.d.ts +5 -2
- package/dist/s-gallery/index.js +2 -1
- package/dist/s-gallery/s-gallery.d.ts +1 -17
- package/dist/s-gallery/s-gallery.js +38 -284
- package/dist/s-image-comparison/s-image-comparison.js +46 -42
- package/dist/s-image-modal/default-media-item.d.ts +9 -0
- package/dist/s-image-modal/default-media-item.js +34 -0
- package/dist/s-image-modal/image-modal-thumbnail-dock.d.ts +11 -0
- package/dist/s-image-modal/image-modal-thumbnail-dock.js +102 -0
- package/dist/s-image-modal/index.d.ts +2 -2
- package/dist/s-image-modal/index.js +2 -1
- package/dist/s-image-modal/s-image-modal.d.ts +1 -58
- package/dist/s-image-modal/s-image-modal.js +2 -2
- package/dist/s-image-modal/types.d.ts +52 -0
- package/dist/s-image-modal/types.js +0 -0
- package/dist/s-image-modal/use-image-modal-navigation.d.ts +29 -0
- package/dist/s-image-modal/use-image-modal-navigation.js +57 -0
- package/dist/s-image-modal-D-Jh-5b3.js +243 -0
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-language-switcher/index.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +1 -1
- package/dist/{s-language-switcher-vievp2VS.js → s-language-switcher-UgSBC_n_.js} +4 -4
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/{s-localization-provider-YCsec18c.js → s-localization-provider-l5J7myJJ.js} +4 -4
- package/dist/s-nav-item/s-nav-item.js +1 -1
- package/dist/s-nav-items/s-nav-items.js +4 -7
- package/dist/s-pagination/s-pagination.js +12 -15
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-DjvDY-h4.js → s-review-CRnakHRo.js} +18 -27
- package/dist/s-scroll-reveal/s-scroll-reveal.js +1 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.js +1 -1
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/{s-select-B-dEcddK.js → s-select-HMWY7frm.js} +1 -1
- package/dist/s-select-list/s-select-list.js +2 -11
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +23 -15
- package/dist/s-stripe/s-stripe-cvc.d.ts +1 -5
- package/dist/s-stripe/s-stripe-cvc.js +11 -11
- package/dist/s-stripe/s-stripe-expiry.d.ts +1 -5
- package/dist/s-stripe/s-stripe-expiry.js +11 -11
- package/dist/s-stripe/s-stripe-number.d.ts +1 -5
- package/dist/s-stripe/s-stripe-number.js +11 -11
- package/dist/s-stripe/s-stripe.d.ts +11 -4
- package/dist/s-stripe/s-stripe.js +19 -17
- package/dist/s-stripe/stripe-input.js +41 -32
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.d.ts +1 -4
- package/dist/s-text-editor/s-text-editor.js +21 -24
- package/dist/{s-text-editor-toolbar-DP0MkICo.js → s-text-editor-toolbar-BEFVwZ-B.js} +560 -559
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.d.ts +1 -4
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/{s-text-field-GqcwXwta.js → s-text-field-DD6nnwwU.js} +20 -19
- package/dist/s-text-truncation/s-text-truncation.js +11 -16
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-BpeyFRKt.js → s-theme-demo-Fktc-UlY.js} +4 -4
- package/dist/s-theme-provider/s-theme-provider.js +26 -25
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/{s-theme-switch-V3Q58mkG.js → s-theme-switch-DzXoVmQH.js} +1 -1
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- package/dist/{s-tip-Dwu5T2u0.js → s-tip-BOGEH1v8.js} +2 -2
- package/dist/s-tool-bar/index.d.ts +1 -1
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.d.ts +1 -155
- package/dist/s-tool-bar/s-tool-bar.js +114 -2
- package/dist/s-tool-bar/tool-bar-action-buttons.d.ts +15 -0
- package/dist/s-tool-bar/tool-bar-action-buttons.js +2 -0
- package/dist/s-tool-bar/tool-bar-image-input.d.ts +8 -0
- package/dist/s-tool-bar/tool-bar-image-input.js +2 -0
- package/dist/s-tool-bar/tool-bar-inputs.d.ts +3 -0
- package/dist/s-tool-bar/tool-bar-inputs.js +139 -0
- package/dist/s-tool-bar/types.d.ts +170 -0
- package/dist/s-tool-bar/types.js +0 -0
- package/dist/s-tool-bar/utils.d.ts +10 -0
- package/dist/s-tool-bar/utils.js +22 -0
- package/dist/switch-BSg1TGWH.js +62 -0
- package/dist/theme/components/accordion-summary.js +2 -2
- package/dist/theme/components/accordion.js +1 -1
- package/dist/theme/components/alert.d.ts +1 -1
- package/dist/theme/components/alert.js +1 -1
- package/dist/theme/components/autocomplete.js +1 -1
- package/dist/theme/components/avatar.d.ts +10 -1
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/card.js +4 -4
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +17 -6
- package/dist/theme/components/components.js +136 -118
- package/dist/theme/components/date-calendar.d.ts +13 -0
- package/dist/theme/components/date-calendar.js +7 -0
- package/dist/theme/components/day-calendar.d.ts +14 -1
- package/dist/theme/components/day-calendar.js +14 -1
- package/dist/theme/components/dialog-actions.js +1 -1
- package/dist/theme/components/dialog-content.d.ts +13 -0
- package/dist/theme/components/dialog-content.js +7 -0
- package/dist/theme/components/dialog-title.d.ts +21 -0
- package/dist/theme/components/dialog-title.js +7 -0
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/icon-button.d.ts +5 -1
- package/dist/theme/components/icon-button.js +18 -24
- package/dist/theme/components/linear-progress.js +2 -2
- package/dist/theme/components/link.d.ts +1 -1
- package/dist/theme/components/link.js +2 -2
- package/dist/theme/components/list-item-button.js +2 -2
- package/dist/theme/components/list-item.js +3 -3
- package/dist/theme/components/month-calendar.d.ts +43 -0
- package/dist/theme/components/month-calendar.js +28 -0
- package/dist/theme/components/multi-section-digital-clock-section.js +25 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.d.ts +16 -2
- package/dist/theme/components/picker-day.js +13 -1
- package/dist/theme/components/pickers-arrow-switcher.d.ts +12 -0
- package/dist/theme/components/pickers-arrow-switcher.js +4 -0
- package/dist/theme/components/pickers-calendar-header.d.ts +38 -0
- package/dist/theme/components/pickers-calendar-header.js +24 -0
- package/dist/theme/components/select.js +2 -2
- package/dist/theme/components/slider.d.ts +29 -2
- package/dist/theme/components/slider.js +14 -2
- package/dist/theme/components/step-connector.d.ts +1 -1
- package/dist/theme/components/step-connector.js +1 -1
- package/dist/theme/components/step-icon.js +1 -1
- package/dist/theme/components/switch.d.ts +1032 -0
- package/dist/theme/components/switch.js +2 -0
- package/dist/theme/components/tab.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button-group.js +1 -1
- package/dist/theme/components/toggle-button.js +1 -1
- package/dist/theme/components/year-calendar.d.ts +45 -0
- package/dist/theme/components/year-calendar.js +30 -0
- package/dist/theme/theme-primitives.d.ts +38 -0
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-D2vHHGiX.js → theme-primitives-CiQYd9Cc.js} +14 -5
- package/dist/{toggle-button-BUsRxHn0.js → toggle-button-TmtJ4nSp.js} +3 -3
- package/dist/{toggle-button-group-ABwIhV4P.js → toggle-button-group-BCkdd3Jj.js} +4 -4
- package/dist/tool-bar-action-buttons-CSXNDen6.js +50 -0
- package/dist/tool-bar-image-input-IdA6l71Y.js +138 -0
- package/dist/{useControlled-DXKqhylj.js → useControlled-BtZNCHV0.js} +1 -1
- package/dist/useForkRef-yOYCJHzF.js +29 -0
- package/dist/{useMobilePicker-ujH2nH2-.js → useMobilePicker-Dw1IxoE6.js} +7657 -7674
- package/dist/{useSlot-Dkc1Mj31.js → useSlot-IwEDsR9t.js} +107 -133
- package/dist/{utils-CCnIUPad.js → utils-CU6O7jrX.js} +5 -5
- package/dist/{LocalizationProvider-BdaUKqz3.js → warning-CFMmJJnf.js} +51 -51
- package/dist/yearCalendarClasses-DypEe_Vn.js +14 -0
- package/package.json +1 -1
- package/dist/s-chat-input-cOCqPTUS.js +0 -299
- package/dist/s-date-picker-BkZIEZoz.js +0 -634
- package/dist/s-image-modal-Za71QD3d.js +0 -397
- package/dist/s-tool-bar-DaZ2wT09.js +0 -454
- /package/dist/{buttonBaseClasses-BLZbMisL.js → buttonBaseClasses-BVDyR-hz.js} +0 -0
- /package/dist/{checkboxClasses-DSyvUOsN.js → checkboxClasses-DANc9lnq.js} +0 -0
- /package/dist/{createSimplePaletteValueFilter-GHK52GLU.js → createSimplePaletteValueFilter-5v48HHyU.js} +0 -0
- /package/dist/{extends-D8CDMpIy.js → extends-DM-C9PwL.js} +0 -0
- /package/dist/{formLabelClasses-Cv7W0Roi.js → formLabelClasses-LXZqWZfM.js} +0 -0
- /package/dist/{iconButtonClasses-9jjSQ9-U.js → iconButtonClasses-LyjwljJq.js} +0 -0
- /package/dist/{inputAdornmentClasses-VKwluNTs.js → inputAdornmentClasses-ZoGTcUz5.js} +0 -0
- /package/dist/{objectWithoutPropertiesLoose-BpY-kC5L.js → objectWithoutPropertiesLoose-kj3TmhoA.js} +0 -0
- /package/dist/{outlinedInputClasses-Cz4pnn0X.js → outlinedInputClasses-DPwt_pSZ.js} +0 -0
- /package/dist/{selectClasses-DvT1febA.js → selectClasses-C-QpiLPi.js} +0 -0
- /package/dist/{svgIconClasses-D46YUMKp.js → svgIconClasses-BtHvkhy5.js} +0 -0
- /package/dist/{tabClasses-KqPlYv0c.js → tabClasses-CmFw6sbs.js} +0 -0
- /package/dist/{typographyClasses-CFf0OFiD.js → typographyClasses-CiDYRanL.js} +0 -0
- /package/dist/{useControlled-2-C6cXjG.js → useControlled-DuSwFVhD.js} +0 -0
- /package/dist/{useFormControl-B4z6ONhx.js → useFormControl-CUs308br.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../toggle-button-group-
|
|
1
|
+
import { t as e } from "../../toggle-button-group-BCkdd3Jj.js";
|
|
2
2
|
export { e as MuiToggleButtonGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../toggle-button-
|
|
1
|
+
import { t as e } from "../../toggle-button-TmtJ4nSp.js";
|
|
2
2
|
export { e as MuiToggleButton };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
export declare const MuiYearCalendar: {
|
|
3
|
+
styleOverrides: {
|
|
4
|
+
root: ({ theme }: import('@mui/x-date-pickers').YearCalendarProps & Record<string, unknown> & {
|
|
5
|
+
ownerState: import('@mui/x-date-pickers').PickerOwnerState;
|
|
6
|
+
} & {
|
|
7
|
+
theme: Theme;
|
|
8
|
+
}) => {
|
|
9
|
+
width: string;
|
|
10
|
+
paddingLeft: string;
|
|
11
|
+
paddingRight: string;
|
|
12
|
+
rowGap: string;
|
|
13
|
+
columnGap: string;
|
|
14
|
+
justifyContent: "center";
|
|
15
|
+
'& > div': {
|
|
16
|
+
height: string;
|
|
17
|
+
width: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
button: ({ theme }: import('@mui/x-date-pickers').YearCalendarProps & Record<string, unknown> & {
|
|
21
|
+
ownerState: import('@mui/x-date-pickers').PickerOwnerState;
|
|
22
|
+
} & {
|
|
23
|
+
theme: Theme;
|
|
24
|
+
}) => {
|
|
25
|
+
[x: string]: string | number | {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
color?: undefined;
|
|
28
|
+
'&:hover, &:focus'?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
color: string;
|
|
32
|
+
'&:hover, &:focus': {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
height: string;
|
|
37
|
+
width: string;
|
|
38
|
+
fontVariantNumeric: "lining-nums tabular-nums";
|
|
39
|
+
borderRadius: string | number;
|
|
40
|
+
'&:hover, &:focus': {
|
|
41
|
+
backgroundColor: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { n as e } from "../../yearCalendarClasses-DypEe_Vn.js";
|
|
2
|
+
//#region lib/theme/components/year-calendar.tsx
|
|
3
|
+
var t = { styleOverrides: {
|
|
4
|
+
root: ({ theme: e }) => ({
|
|
5
|
+
width: e.spacing(38),
|
|
6
|
+
paddingLeft: e.spacing(2),
|
|
7
|
+
paddingRight: e.spacing(2),
|
|
8
|
+
rowGap: e.spacing(1),
|
|
9
|
+
columnGap: e.spacing(1),
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
"& > div": {
|
|
12
|
+
height: e.spacing(4),
|
|
13
|
+
width: `calc((100% - ${e.spacing(3)}) / 4)`
|
|
14
|
+
}
|
|
15
|
+
}),
|
|
16
|
+
button: ({ theme: t }) => ({
|
|
17
|
+
height: t.spacing(4),
|
|
18
|
+
width: `calc((100% - ${t.spacing(3)}) / 4)`,
|
|
19
|
+
fontVariantNumeric: "lining-nums tabular-nums",
|
|
20
|
+
borderRadius: (t.vars ?? t).shape.borderRadius,
|
|
21
|
+
"&:hover, &:focus": { backgroundColor: (t.vars ?? t).palette.action.hover },
|
|
22
|
+
[`&.${e.selected}`]: {
|
|
23
|
+
backgroundColor: (t.vars ?? t).palette.primary[800],
|
|
24
|
+
color: (t.vars ?? t).palette.primary[50],
|
|
25
|
+
"&:hover, &:focus": { backgroundColor: (t.vars ?? t).palette.primary[900] }
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
} };
|
|
29
|
+
//#endregion
|
|
30
|
+
export { t as MuiYearCalendar };
|
|
@@ -6,6 +6,20 @@ declare module '@mui/material/Paper' {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
declare module '@mui/material/styles' {
|
|
9
|
+
interface RadiusScale {
|
|
10
|
+
none: number;
|
|
11
|
+
sm: number;
|
|
12
|
+
md: number;
|
|
13
|
+
lg: number;
|
|
14
|
+
xl: number;
|
|
15
|
+
full: number;
|
|
16
|
+
}
|
|
17
|
+
interface Theme {
|
|
18
|
+
radius: RadiusScale;
|
|
19
|
+
}
|
|
20
|
+
interface ThemeOptions {
|
|
21
|
+
radius?: Partial<RadiusScale>;
|
|
22
|
+
}
|
|
9
23
|
interface ColorRange {
|
|
10
24
|
50: string;
|
|
11
25
|
100: string;
|
|
@@ -185,6 +199,7 @@ export declare const colorSchemes: {
|
|
|
185
199
|
text: {
|
|
186
200
|
primary: string;
|
|
187
201
|
secondary: string;
|
|
202
|
+
disabled: string;
|
|
188
203
|
};
|
|
189
204
|
action: {
|
|
190
205
|
active: string;
|
|
@@ -321,6 +336,7 @@ export declare const colorSchemes: {
|
|
|
321
336
|
text: {
|
|
322
337
|
primary: string;
|
|
323
338
|
secondary: string;
|
|
339
|
+
disabled: string;
|
|
324
340
|
};
|
|
325
341
|
action: {
|
|
326
342
|
active: string;
|
|
@@ -389,4 +405,26 @@ export declare const typography: {
|
|
|
389
405
|
export declare const shape: {
|
|
390
406
|
borderRadius: number;
|
|
391
407
|
};
|
|
408
|
+
/**
|
|
409
|
+
* Named border-radius scale, derived from `shape.borderRadius` so that base
|
|
410
|
+
* stays the single source of truth — change `shape.borderRadius` and the whole
|
|
411
|
+
* scale rescales with it. Values mirror the native kit (see
|
|
412
|
+
* ui-kit-native/theme/theme-primitives.ts) so both platforms stay in lockstep.
|
|
413
|
+
* `md` is the canonical surface radius and equals `shape.borderRadius`.
|
|
414
|
+
*
|
|
415
|
+
* Usage:
|
|
416
|
+
* - `styled()` / `styleOverrides` callbacks: prefer `theme.radius.md` (honours
|
|
417
|
+
* runtime overrides). Import this `radius` const only where no `theme` is in
|
|
418
|
+
* scope, e.g. inline `style` on a plain element.
|
|
419
|
+
* - `sx`: numbers are multiplied by `shape.borderRadius`, so use the multiplier
|
|
420
|
+
* that maps to the scale — sm `0.5`, md `1`, lg `1.5`, xl `2`, full `'9999px'`.
|
|
421
|
+
*/
|
|
422
|
+
export declare const radius: {
|
|
423
|
+
none: number;
|
|
424
|
+
sm: number;
|
|
425
|
+
md: number;
|
|
426
|
+
lg: number;
|
|
427
|
+
xl: number;
|
|
428
|
+
full: number;
|
|
429
|
+
};
|
|
392
430
|
export declare const shadows: Shadows;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "../theme-primitives-
|
|
2
|
-
export {
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "../theme-primitives-CiQYd9Cc.js";
|
|
2
|
+
export { d as blue, m as brand, h as colorSchemes, n as gray, c as green, g as lightBlue, r as lightBrand, i as lightGray, f as lightGreen, l as lightOrange, o as lightPurple, a as lightRed, e as orange, _ as purple, u as radius, v as red, p as shadows, s as shape, t as typography };
|
|
@@ -271,7 +271,8 @@ var n = {
|
|
|
271
271
|
},
|
|
272
272
|
text: {
|
|
273
273
|
primary: i[50],
|
|
274
|
-
secondary: i[400]
|
|
274
|
+
secondary: i[400],
|
|
275
|
+
disabled: i[500]
|
|
275
276
|
},
|
|
276
277
|
action: {
|
|
277
278
|
active: i[50],
|
|
@@ -349,7 +350,8 @@ var n = {
|
|
|
349
350
|
},
|
|
350
351
|
text: {
|
|
351
352
|
primary: a[900],
|
|
352
|
-
secondary: a[600]
|
|
353
|
+
secondary: a[600],
|
|
354
|
+
disabled: a[400]
|
|
353
355
|
},
|
|
354
356
|
action: {
|
|
355
357
|
active: a[900],
|
|
@@ -409,14 +411,21 @@ var n = {
|
|
|
409
411
|
fontWeight: 400
|
|
410
412
|
},
|
|
411
413
|
caption: {
|
|
412
|
-
fontSize: S.typography.pxToRem(
|
|
414
|
+
fontSize: S.typography.pxToRem(12),
|
|
413
415
|
fontWeight: 400,
|
|
414
416
|
color: "var(--s-palette-text-secondary)"
|
|
415
417
|
}
|
|
416
|
-
}, E = { borderRadius: 8 }, D =
|
|
418
|
+
}, E = { borderRadius: 8 }, D = {
|
|
419
|
+
none: 0,
|
|
420
|
+
sm: E.borderRadius * .5,
|
|
421
|
+
md: E.borderRadius,
|
|
422
|
+
lg: E.borderRadius * 1.5,
|
|
423
|
+
xl: E.borderRadius * 2,
|
|
424
|
+
full: 9999
|
|
425
|
+
}, O = [
|
|
417
426
|
"none",
|
|
418
427
|
"var(--s-palette-baseShadow)",
|
|
419
428
|
...S.shadows.slice(2)
|
|
420
429
|
];
|
|
421
430
|
//#endregion
|
|
422
|
-
export {
|
|
431
|
+
export { c as _, T as a, i as c, r as d, a as f, p as g, h, E as i, o as l, l as m, D as n, u as o, s as p, O as r, n as s, w as t, d as u, m as v, f as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./generateUtilityClasses-XrPHiTcM.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as t, s as n } from "./theme-primitives-CiQYd9Cc.js";
|
|
3
3
|
//#region ../../node_modules/@mui/material/ToggleButton/toggleButtonClasses.mjs
|
|
4
4
|
var r = e("MuiToggleButton", [
|
|
5
5
|
"root",
|
|
@@ -18,8 +18,8 @@ var r = e("MuiToggleButton", [
|
|
|
18
18
|
borderRadius: (e.vars ?? e).shape.borderRadius,
|
|
19
19
|
fontWeight: 500,
|
|
20
20
|
...e.applyStyles("dark", {
|
|
21
|
-
color:
|
|
22
|
-
[`&.${r.selected}`]: { color:
|
|
21
|
+
color: t[400],
|
|
22
|
+
[`&.${r.selected}`]: { color: n[300] }
|
|
23
23
|
})
|
|
24
24
|
}) } };
|
|
25
25
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e } from "./createTheme-Bnw5w28O.js";
|
|
2
2
|
import { t } from "./generateUtilityClasses-XrPHiTcM.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as n, s as r } from "./theme-primitives-CiQYd9Cc.js";
|
|
4
4
|
//#region ../../node_modules/@mui/material/ToggleButtonGroup/toggleButtonGroupClasses.mjs
|
|
5
5
|
var i = t("MuiToggleButtonGroup", [
|
|
6
6
|
"root",
|
|
@@ -15,11 +15,11 @@ var i = t("MuiToggleButtonGroup", [
|
|
|
15
15
|
"middleButton"
|
|
16
16
|
]), a = { styleOverrides: { root: ({ theme: t }) => ({
|
|
17
17
|
borderRadius: (t.vars ?? t).shape.borderRadius,
|
|
18
|
-
boxShadow: `0 4px 16px ${e(
|
|
19
|
-
[`& .${i.selected}`]: { color:
|
|
18
|
+
boxShadow: `0 4px 16px ${e(n[400], .2)}`,
|
|
19
|
+
[`& .${i.selected}`]: { color: r[500] },
|
|
20
20
|
...t.applyStyles("dark", {
|
|
21
21
|
[`& .${i.selected}`]: { color: (t.vars ?? t).palette.common.white },
|
|
22
|
-
boxShadow: `0 4px 16px ${e(
|
|
22
|
+
boxShadow: `0 4px 16px ${e(r[700], .5)}`
|
|
23
23
|
})
|
|
24
24
|
}) } };
|
|
25
25
|
//#endregion
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { t as e } from "./createSvgIcon-HW-tbFcL.js";
|
|
2
|
+
import { t } from "./Download-SNal6U7j.js";
|
|
3
|
+
import { t as n } from "./InfoOutlined-BCzG-5py.js";
|
|
4
|
+
import r from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Box as o, IconButton as s, Tooltip as c } from "@mui/material";
|
|
7
|
+
//#region ../../node_modules/@mui/icons-material/AutoAwesome.mjs
|
|
8
|
+
var l = e(/* @__PURE__ */ i("path", { d: "m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z" }), "AutoAwesome"), u = e(/* @__PURE__ */ i("path", { d: "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26" }), "Autorenew"), d = r.memo(({ customActionButtons: e, infoContent: r, infoTooltip: d, downloadTooltip: f, resetTooltip: p, processTooltip: m, hideProcessButton: h, processActionDisabled: g, onInfoOpen: _, onDownload: v, onReset: y, onProcess: b }) => /* @__PURE__ */ a(o, {
|
|
9
|
+
sx: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
gap: 1,
|
|
13
|
+
ml: "auto"
|
|
14
|
+
},
|
|
15
|
+
children: [
|
|
16
|
+
e,
|
|
17
|
+
r && /* @__PURE__ */ i(c, {
|
|
18
|
+
title: d,
|
|
19
|
+
children: /* @__PURE__ */ i(s, {
|
|
20
|
+
onClick: _,
|
|
21
|
+
children: /* @__PURE__ */ i(n, {})
|
|
22
|
+
})
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ i(c, {
|
|
25
|
+
title: f,
|
|
26
|
+
children: /* @__PURE__ */ i(s, {
|
|
27
|
+
onClick: v,
|
|
28
|
+
children: /* @__PURE__ */ i(t, {})
|
|
29
|
+
})
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ i(c, {
|
|
32
|
+
title: p,
|
|
33
|
+
children: /* @__PURE__ */ i(s, {
|
|
34
|
+
onClick: y,
|
|
35
|
+
children: /* @__PURE__ */ i(u, {})
|
|
36
|
+
})
|
|
37
|
+
}),
|
|
38
|
+
!h && /* @__PURE__ */ i(c, {
|
|
39
|
+
title: m,
|
|
40
|
+
children: /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(s, {
|
|
41
|
+
onClick: b,
|
|
42
|
+
disabled: g,
|
|
43
|
+
size: "large",
|
|
44
|
+
children: /* @__PURE__ */ i(l, { color: g ? "disabled" : "primary" })
|
|
45
|
+
}) })
|
|
46
|
+
})
|
|
47
|
+
]
|
|
48
|
+
}));
|
|
49
|
+
//#endregion
|
|
50
|
+
export { d as t };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { t as e } from "./createSvgIcon-HW-tbFcL.js";
|
|
2
|
+
import { t } from "./Close-CJu3iF1p.js";
|
|
3
|
+
import { getImageInputFiles as n } from "./s-tool-bar/utils.js";
|
|
4
|
+
import r, { useEffect as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { Box as s, IconButton as c } from "@mui/material";
|
|
7
|
+
//#region ../../node_modules/@mui/icons-material/AddPhotoAlternate.mjs
|
|
8
|
+
var l = e(/* @__PURE__ */ a("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z" }), "AddPhotoAlternate"), u = r.memo(({ input: e, value: u, onChange: d, disabled: f }) => {
|
|
9
|
+
let p = r.useRef(null), [m, h] = r.useState([]), [g, _] = r.useState(null), v = e.multiple ?? !1, y = e.maxImages ?? 5;
|
|
10
|
+
i(() => {
|
|
11
|
+
let e = [];
|
|
12
|
+
return h(((t) => {
|
|
13
|
+
if (!t) return [];
|
|
14
|
+
let n = Array.isArray(t) ? t : [t], r = [], i = /* @__PURE__ */ new Map();
|
|
15
|
+
return n.forEach((t) => {
|
|
16
|
+
if (t instanceof File) {
|
|
17
|
+
let n = URL.createObjectURL(t);
|
|
18
|
+
e.push(n);
|
|
19
|
+
let a = `file:${t.name}:${t.size}:${t.lastModified}`, o = i.get(a) ?? 0;
|
|
20
|
+
i.set(a, o + 1), r.push({
|
|
21
|
+
key: o > 0 ? `${a}:${o}` : a,
|
|
22
|
+
src: n
|
|
23
|
+
});
|
|
24
|
+
} else if (typeof t == "string") {
|
|
25
|
+
let e = `url:${t}`, n = i.get(e) ?? 0;
|
|
26
|
+
i.set(e, n + 1), r.push({
|
|
27
|
+
key: n > 0 ? `${e}:${n}` : e,
|
|
28
|
+
src: t
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}), r;
|
|
32
|
+
})(u)), () => {
|
|
33
|
+
e.forEach((e) => URL.revokeObjectURL(e));
|
|
34
|
+
};
|
|
35
|
+
}, [u]);
|
|
36
|
+
let b = (e) => {
|
|
37
|
+
let t = e.target.files;
|
|
38
|
+
if (!(!t || t.length === 0)) {
|
|
39
|
+
if (v) {
|
|
40
|
+
let e = n(u), r = Array.from(t).slice(0, y - e.length);
|
|
41
|
+
d([...e, ...r]);
|
|
42
|
+
} else d(t[0]);
|
|
43
|
+
e.target.value = "";
|
|
44
|
+
}
|
|
45
|
+
}, x = (e, t) => {
|
|
46
|
+
if (e.stopPropagation(), v && Array.isArray(u)) {
|
|
47
|
+
let e = u.filter((e, n) => n !== t);
|
|
48
|
+
d(e.length > 0 ? e : null);
|
|
49
|
+
} else d(null);
|
|
50
|
+
}, S = () => {
|
|
51
|
+
f || v && m.length >= y || p.current?.click();
|
|
52
|
+
}, C = v && m.length < y;
|
|
53
|
+
return /* @__PURE__ */ o(s, {
|
|
54
|
+
sx: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
gap: .75
|
|
58
|
+
},
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ a("input", {
|
|
61
|
+
ref: p,
|
|
62
|
+
type: "file",
|
|
63
|
+
accept: "image/*",
|
|
64
|
+
multiple: v,
|
|
65
|
+
onChange: b,
|
|
66
|
+
disabled: f,
|
|
67
|
+
style: { display: "none" },
|
|
68
|
+
...e.componentProps?.image ?? {}
|
|
69
|
+
}),
|
|
70
|
+
m.map((e, n) => /* @__PURE__ */ o(s, {
|
|
71
|
+
onMouseEnter: () => _(n),
|
|
72
|
+
onMouseLeave: () => _(null),
|
|
73
|
+
sx: {
|
|
74
|
+
width: 50,
|
|
75
|
+
height: 50,
|
|
76
|
+
border: 1,
|
|
77
|
+
borderColor: f ? "action.disabled" : "divider",
|
|
78
|
+
borderRadius: 1,
|
|
79
|
+
display: "flex",
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
justifyContent: "center",
|
|
82
|
+
cursor: f ? "not-allowed" : "default",
|
|
83
|
+
position: "relative",
|
|
84
|
+
overflow: "hidden",
|
|
85
|
+
transition: "all 0.2s"
|
|
86
|
+
},
|
|
87
|
+
children: [/* @__PURE__ */ a(s, {
|
|
88
|
+
component: "img",
|
|
89
|
+
src: e.src,
|
|
90
|
+
alt: `Preview ${n + 1}`,
|
|
91
|
+
sx: {
|
|
92
|
+
width: "100%",
|
|
93
|
+
height: "100%",
|
|
94
|
+
objectFit: "cover"
|
|
95
|
+
}
|
|
96
|
+
}), !f && g === n && /* @__PURE__ */ a(s, {
|
|
97
|
+
onClick: (e) => x(e, n),
|
|
98
|
+
sx: {
|
|
99
|
+
position: "absolute",
|
|
100
|
+
top: 0,
|
|
101
|
+
left: 0,
|
|
102
|
+
right: 0,
|
|
103
|
+
bottom: 0,
|
|
104
|
+
display: "flex",
|
|
105
|
+
alignItems: "center",
|
|
106
|
+
justifyContent: "center"
|
|
107
|
+
},
|
|
108
|
+
children: /* @__PURE__ */ a(c, {
|
|
109
|
+
onClick: (e) => x(e, n),
|
|
110
|
+
children: /* @__PURE__ */ a(t, {})
|
|
111
|
+
})
|
|
112
|
+
})]
|
|
113
|
+
}, e.key)),
|
|
114
|
+
(m.length === 0 || C) && /* @__PURE__ */ a(s, {
|
|
115
|
+
onClick: S,
|
|
116
|
+
sx: {
|
|
117
|
+
width: 50,
|
|
118
|
+
height: 50,
|
|
119
|
+
border: 1,
|
|
120
|
+
borderColor: f ? "action.disabled" : "divider",
|
|
121
|
+
borderRadius: 1,
|
|
122
|
+
display: "flex",
|
|
123
|
+
alignItems: "center",
|
|
124
|
+
justifyContent: "center",
|
|
125
|
+
cursor: f ? "not-allowed" : "pointer",
|
|
126
|
+
transition: "all 0.2s",
|
|
127
|
+
"&:hover": { bgcolor: "action.hover" }
|
|
128
|
+
},
|
|
129
|
+
children: /* @__PURE__ */ a(l, { sx: {
|
|
130
|
+
fontSize: 20,
|
|
131
|
+
color: f ? "action.disabled" : "divider"
|
|
132
|
+
} })
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
//#endregion
|
|
138
|
+
export { u as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region ../../node_modules/@mui/utils/useForkRef/useForkRef.mjs
|
|
3
|
+
function t(...t) {
|
|
4
|
+
let n = e.useRef(void 0), r = e.useCallback((e) => {
|
|
5
|
+
let n = t.map((t) => {
|
|
6
|
+
if (t == null) return null;
|
|
7
|
+
if (typeof t == "function") {
|
|
8
|
+
let n = t, r = n(e);
|
|
9
|
+
return typeof r == "function" ? r : () => {
|
|
10
|
+
n(null);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
return t.current = e, () => {
|
|
14
|
+
t.current = null;
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
return () => {
|
|
18
|
+
n.forEach((e) => e?.());
|
|
19
|
+
};
|
|
20
|
+
}, t);
|
|
21
|
+
return e.useMemo(() => t.every((e) => e == null) ? null : (e) => {
|
|
22
|
+
n.current &&= (n.current(), void 0), e != null && (n.current = r(e));
|
|
23
|
+
}, t);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../../node_modules/@mui/material/utils/useForkRef.mjs
|
|
27
|
+
var n = t;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { t as n, n as t };
|