@solostylist/ui-kit 2.0.0 → 2.0.1
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/{gradients-90SYkAC0.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-Dw3PEYF5.js → palettes-CJLuEy1m.js} +163 -163
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +70 -2
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +184 -2
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +398 -2
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +314 -2
- package/dist/s-checkbox/s-checkbox.js +18 -19
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +174 -2
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +103 -2
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +189 -2
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +213 -2
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +106 -2
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +80 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
- package/dist/s-dialog-message/s-dialog-message.js +31 -32
- package/dist/s-empty/s-empty.js +13 -14
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
- package/dist/s-file-icon/s-file-icon.js +87 -88
- package/dist/s-flex-box/s-flex-box.js +11 -12
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +9 -10
- package/dist/s-icon-button/s-icon-button.js +15 -16
- package/dist/s-image-comparison/s-image-comparison.js +29 -31
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +266 -2
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-label/s-label.js +26 -27
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +150 -2
- package/dist/s-lazy-image/s-lazy-image.js +17 -18
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +5 -2
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-nav-item/s-nav-item.js +16 -16
- package/dist/s-nav-items/index.js +2 -2
- package/dist/s-nav-items/s-nav-items.js +167 -2
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -2
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +85 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-quantity-input/index.js +1 -1
- package/dist/s-quantity-input/s-quantity-input.js +246 -2
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +272 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
- package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +201 -2
- package/dist/s-select-list/s-select-list.js +47 -50
- package/dist/s-skeleton/s-skeleton.js +16 -17
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +48 -2
- package/dist/s-tabs/s-tabs.js +48 -50
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
- package/dist/s-text-editor/s-text-editor.js +25 -26
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +52 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +60 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +61 -2
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
- package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.js +22 -22
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +18 -19
- package/dist/theme/components/autocomplete.js +43 -2
- package/dist/theme/components/avatar.js +9 -2
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +90 -2
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +1 -0
- package/dist/theme/components/day-calendar.js +1 -0
- package/dist/theme/components/field-label-styles.js +19 -2
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +14 -13
- package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +1 -0
- package/dist/theme/components/pickers-arrow-switcher.js +1 -0
- package/dist/theme/components/pickers-calendar-header.js +3 -2
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +93 -2
- package/dist/theme/components/year-calendar.js +14 -13
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +1 -1
- package/dist/Add-COc9VdNg.js +0 -6
- package/dist/ArrowUpward-D88i2k4q.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DgIFcM44.js +0 -534
- package/dist/ButtonBase-DxKtpFYs.js +0 -747
- package/dist/Checkbox-BoZu9z2l.js +0 -152
- package/dist/ChevronRight-BxsM4W78.js +0 -6
- package/dist/Close-o4HFfK0I.js +0 -6
- package/dist/Collapse-zgIFP5Sj.js +0 -266
- package/dist/ContentCopy-5unyTYXy.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-CAry6lVf.js +0 -450
- package/dist/Download-DtvoRwpl.js +0 -6
- package/dist/ExpandMore-Ba5bg6s-.js +0 -6
- package/dist/Favorite-B_GsElm0.js +0 -6
- package/dist/FormControl-BxmM9UP6.js +0 -221
- package/dist/FormControlLabel-DzgppcC_.js +0 -173
- package/dist/Grow-zRRuwUl-.js +0 -121
- package/dist/InfoOutlined-VC7X46pc.js +0 -6
- package/dist/List-CnGIAXAS.js +0 -103
- package/dist/ListContext-B1HQt3OD.js +0 -6
- package/dist/Menu-C4Zabc9U.js +0 -504
- package/dist/MenuItem-rXJfQzDC.js +0 -223
- package/dist/MenuList-DDV8J-yd.js +0 -407
- package/dist/Modal-jAiibALV.js +0 -707
- package/dist/Paper-ixxCeml9.js +0 -115
- package/dist/Popper-CVYyMS3c.js +0 -1350
- package/dist/Portal-AnyvFRC4.js +0 -53
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-UMc4dV4G.js +0 -158
- package/dist/SwitchBase-D7zqrstO.js +0 -198
- package/dist/Tooltip-DbCd6rgF.js +0 -447
- package/dist/Typography-yXjc7kVP.js +0 -168
- package/dist/UnfoldMoreRounded-DsN0HVDV.js +0 -6
- package/dist/appendOwnerState-CELpvdMz.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-B_4y84Ba.js +0 -43
- package/dist/avatar-BHuZu3DN.js +0 -10
- package/dist/buttonBaseClasses-BvBqFLb_.js +0 -13
- package/dist/capitalize-CccCFNpQ.js +0 -5
- package/dist/checkbox-BKMZEVU5.js +0 -88
- package/dist/checkboxClasses-CEsqS4sc.js +0 -18
- package/dist/chunk-C_CI6nMA.js +0 -13
- package/dist/clsx-DGZSe4Nt.js +0 -16
- package/dist/colorManipulator-DmUjcif3.js +0 -129
- package/dist/contains-WOhYaq1E.js +0 -16
- package/dist/createSimplePaletteValueFilter-C1gWywW_.js +0 -14
- package/dist/createSvgIcon-B0SZlJF1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-DhkNAkFH.js +0 -472
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/field-label-styles-BOyhp6gw.js +0 -50
- package/dist/formLabelClasses-B0Fa-86T.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/iconButtonClasses-CkciZuIe.js +0 -27
- package/dist/inputAdornmentClasses-D5yYK5bM.js +0 -19
- package/dist/inputBaseClasses-DuWQGq8Z.js +0 -25
- package/dist/integerPropType-Disnft4a.js +0 -27
- package/dist/isEventHandler-8dPdzK9U.js +0 -7
- package/dist/isFocusVisible-Y7157FQS.js +0 -35
- package/dist/isLayoutSupported-Ceir7nyK.js +0 -21
- package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-xl1-PgWL.js +0 -45
- package/dist/monthCalendarClasses-BYVHyEfI.js +0 -14
- package/dist/objectWithoutPropertiesLoose-Cpds-4w8.js +0 -23
- package/dist/outlinedInputClasses-DECY98u0.js +0 -17
- package/dist/pickersCalendarHeaderClasses-CIj0gBye.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-B8nlrdFc.js +0 -487
- package/dist/s-carousel-Dnjke4JQ.js +0 -1353
- package/dist/s-chat-input-DCS0mJE4.js +0 -419
- package/dist/s-chat-message-9oollJJq.js +0 -315
- package/dist/s-chips-WqGdqHW9.js +0 -176
- package/dist/s-code-block-DzGoGg5e.js +0 -658
- package/dist/s-comment-message-C6kfgRjv.js +0 -191
- package/dist/s-data-table-B1TGVupB.js +0 -805
- package/dist/s-date-picker-BpX4HmBp.js +0 -656
- package/dist/s-datetime-picker-ByzW44E0.js +0 -3878
- package/dist/s-dialog-BLiyjLkx.js +0 -123
- package/dist/s-file-dropzone-CVQpYRdY.js +0 -422
- package/dist/s-image-viewer-DNIEYdtL.js +0 -269
- package/dist/s-language-switcher-D-1nywT3.js +0 -251
- package/dist/s-link-CAMTGfd9.js +0 -234
- package/dist/s-localization-provider-Xw3NO2uP.js +0 -519
- package/dist/s-nav-items-BUp7DddG.js +0 -327
- package/dist/s-no-ssr-D8tPdDfh.js +0 -25
- package/dist/s-pagination-Dt8Pk5Tp.js +0 -606
- package/dist/s-quantity-input-mYCixlJc.js +0 -246
- package/dist/s-review-DSXXtWlL.js +0 -272
- package/dist/s-select-dwY2DYa9.js +0 -204
- package/dist/s-snackbar-message-3Z6VySlB.js +0 -808
- package/dist/s-switch-B8bZAzLh.js +0 -307
- package/dist/s-text-editor-toolbar-D-XgFQix.js +0 -2121
- package/dist/s-text-field-BM4qk0mf.js +0 -51
- package/dist/s-theme-switch-BLMz1_m2.js +0 -60
- package/dist/s-tip-ty41ePQm.js +0 -62
- package/dist/selectClasses-DoUlWfzV.js +0 -22
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-C8D4AsMj.js +0 -20
- package/dist/switchClasses-eiq1bkQN.js +0 -23
- package/dist/theme-demo-components-section-gtIYRngY.js +0 -267
- package/dist/toggle-button-Cxi5CfXC.js +0 -104
- package/dist/tool-bar-action-buttons-Dt-pV3GA.js +0 -54
- package/dist/tool-bar-image-input-BXlll_hV.js +0 -148
- package/dist/typographyClasses-BLM3NmYd.js +0 -31
- package/dist/useControlled-BeB0W_Ui.js +0 -5
- package/dist/useControlled-C4QJnpiR.js +0 -29
- package/dist/useEnhancedEffect-Bc3gBClC.js +0 -5
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEventCallback-CVqMfiG_.js +0 -14
- package/dist/useForkRef-CKneCEtr.js +0 -29
- package/dist/useFormControl-iWLrn7Ek.js +0 -18
- package/dist/useMobilePicker-C4UQFvkj.js +0 -7580
- package/dist/useSlot-iIu8ek6E.js +0 -83
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-BI9yq95N.js +0 -19
- package/dist/useThemeProps-Cr28OQu3.js +0 -13
- package/dist/utils-oJyTAkZY.js +0 -214
- package/dist/warning-CNkSZkq6.js +0 -98
- package/dist/yearCalendarClasses-CuAQumpz.js +0 -14
- /package/dist/{colors-DKqWMRgW.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DaSrTYUS.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,2 +1,265 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SButton as e } from "../s-button/s-button.js";
|
|
2
|
+
import { STextField as t } from "../s-text-field/s-text-field.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Add as a, Favorite as o, Share as s, Star as c } from "@mui/icons-material";
|
|
6
|
+
import { Box as l, Card as u, CardContent as d, Stack as f, Typography as p } from "@mui/material";
|
|
7
|
+
//#region lib/s-theme-demo/theme-demo-components-section.tsx
|
|
8
|
+
var m = () => {
|
|
9
|
+
let [m, h] = n.useState("");
|
|
10
|
+
return /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(d, { children: /* @__PURE__ */ r(l, { children: /* @__PURE__ */ i(f, {
|
|
11
|
+
spacing: 3,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {
|
|
14
|
+
variant: "h6",
|
|
15
|
+
sx: { mb: 2 },
|
|
16
|
+
children: "Button Variants"
|
|
17
|
+
}), /* @__PURE__ */ i(f, {
|
|
18
|
+
direction: "row",
|
|
19
|
+
sx: {
|
|
20
|
+
flexWrap: "wrap",
|
|
21
|
+
gap: 2
|
|
22
|
+
},
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ r(e, {
|
|
25
|
+
variant: "contained",
|
|
26
|
+
color: "primary",
|
|
27
|
+
children: "Contained"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ r(e, {
|
|
30
|
+
variant: "outlined",
|
|
31
|
+
color: "primary",
|
|
32
|
+
children: "Outlined"
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ r(e, {
|
|
35
|
+
variant: "text",
|
|
36
|
+
color: "primary",
|
|
37
|
+
children: "Text"
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
})] }),
|
|
41
|
+
/* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {
|
|
42
|
+
variant: "h6",
|
|
43
|
+
sx: { mb: 2 },
|
|
44
|
+
children: "Color Variants (Contained)"
|
|
45
|
+
}), /* @__PURE__ */ i(f, {
|
|
46
|
+
direction: "row",
|
|
47
|
+
sx: {
|
|
48
|
+
flexWrap: "wrap",
|
|
49
|
+
gap: 2
|
|
50
|
+
},
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ r(e, {
|
|
53
|
+
variant: "contained",
|
|
54
|
+
color: "primary",
|
|
55
|
+
children: "Primary"
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ r(e, {
|
|
58
|
+
variant: "contained",
|
|
59
|
+
color: "secondary",
|
|
60
|
+
children: "Secondary"
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ r(e, {
|
|
63
|
+
variant: "contained",
|
|
64
|
+
color: "success",
|
|
65
|
+
children: "Success"
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ r(e, {
|
|
68
|
+
variant: "contained",
|
|
69
|
+
color: "warning",
|
|
70
|
+
children: "Warning"
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ r(e, {
|
|
73
|
+
variant: "contained",
|
|
74
|
+
color: "error",
|
|
75
|
+
children: "Error"
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ r(e, {
|
|
78
|
+
variant: "contained",
|
|
79
|
+
color: "info",
|
|
80
|
+
children: "Info"
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
})] }),
|
|
84
|
+
/* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {
|
|
85
|
+
variant: "h6",
|
|
86
|
+
sx: { mb: 2 },
|
|
87
|
+
children: "Color Variants (Outlined)"
|
|
88
|
+
}), /* @__PURE__ */ i(f, {
|
|
89
|
+
direction: "row",
|
|
90
|
+
sx: {
|
|
91
|
+
flexWrap: "wrap",
|
|
92
|
+
gap: 2
|
|
93
|
+
},
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ r(e, {
|
|
96
|
+
variant: "outlined",
|
|
97
|
+
color: "primary",
|
|
98
|
+
children: "Primary"
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ r(e, {
|
|
101
|
+
variant: "outlined",
|
|
102
|
+
color: "secondary",
|
|
103
|
+
children: "Secondary"
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ r(e, {
|
|
106
|
+
variant: "outlined",
|
|
107
|
+
color: "success",
|
|
108
|
+
children: "Success"
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ r(e, {
|
|
111
|
+
variant: "outlined",
|
|
112
|
+
color: "warning",
|
|
113
|
+
children: "Warning"
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ r(e, {
|
|
116
|
+
variant: "outlined",
|
|
117
|
+
color: "error",
|
|
118
|
+
children: "Error"
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ r(e, {
|
|
121
|
+
variant: "outlined",
|
|
122
|
+
color: "info",
|
|
123
|
+
children: "Info"
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
})] }),
|
|
127
|
+
/* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {
|
|
128
|
+
variant: "h6",
|
|
129
|
+
sx: { mb: 2 },
|
|
130
|
+
children: "Button Sizes"
|
|
131
|
+
}), /* @__PURE__ */ i(f, {
|
|
132
|
+
direction: "row",
|
|
133
|
+
sx: {
|
|
134
|
+
alignItems: "center",
|
|
135
|
+
flexWrap: "wrap",
|
|
136
|
+
gap: 2
|
|
137
|
+
},
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ r(e, {
|
|
140
|
+
variant: "contained",
|
|
141
|
+
color: "primary",
|
|
142
|
+
size: "small",
|
|
143
|
+
children: "Small"
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ r(e, {
|
|
146
|
+
variant: "contained",
|
|
147
|
+
color: "primary",
|
|
148
|
+
size: "medium",
|
|
149
|
+
children: "Medium"
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ r(e, {
|
|
152
|
+
variant: "contained",
|
|
153
|
+
color: "primary",
|
|
154
|
+
size: "large",
|
|
155
|
+
children: "Large"
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
})] }),
|
|
159
|
+
/* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {
|
|
160
|
+
variant: "h6",
|
|
161
|
+
sx: { mb: 2 },
|
|
162
|
+
children: "Button States"
|
|
163
|
+
}), /* @__PURE__ */ i(f, {
|
|
164
|
+
direction: "row",
|
|
165
|
+
sx: {
|
|
166
|
+
flexWrap: "wrap",
|
|
167
|
+
gap: 2
|
|
168
|
+
},
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ r(e, {
|
|
171
|
+
variant: "contained",
|
|
172
|
+
color: "primary",
|
|
173
|
+
children: "Default"
|
|
174
|
+
}),
|
|
175
|
+
/* @__PURE__ */ r(e, {
|
|
176
|
+
variant: "contained",
|
|
177
|
+
color: "primary",
|
|
178
|
+
disabled: !0,
|
|
179
|
+
children: "Disabled"
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ r(e, {
|
|
182
|
+
variant: "outlined",
|
|
183
|
+
color: "primary",
|
|
184
|
+
disabled: !0,
|
|
185
|
+
children: "Disabled Outlined"
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ r(e, {
|
|
188
|
+
variant: "text",
|
|
189
|
+
color: "primary",
|
|
190
|
+
disabled: !0,
|
|
191
|
+
children: "Disabled Text"
|
|
192
|
+
})
|
|
193
|
+
]
|
|
194
|
+
})] }),
|
|
195
|
+
/* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {
|
|
196
|
+
variant: "h6",
|
|
197
|
+
sx: { mb: 2 },
|
|
198
|
+
children: "Buttons with Icons"
|
|
199
|
+
}), /* @__PURE__ */ i(f, {
|
|
200
|
+
direction: "row",
|
|
201
|
+
sx: {
|
|
202
|
+
flexWrap: "wrap",
|
|
203
|
+
gap: 2
|
|
204
|
+
},
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ r(e, {
|
|
207
|
+
variant: "contained",
|
|
208
|
+
color: "primary",
|
|
209
|
+
startIcon: /* @__PURE__ */ r(a, {}),
|
|
210
|
+
children: "Start Icon"
|
|
211
|
+
}),
|
|
212
|
+
/* @__PURE__ */ r(e, {
|
|
213
|
+
variant: "contained",
|
|
214
|
+
color: "secondary",
|
|
215
|
+
endIcon: /* @__PURE__ */ r(s, {}),
|
|
216
|
+
children: "End Icon"
|
|
217
|
+
}),
|
|
218
|
+
/* @__PURE__ */ r(e, {
|
|
219
|
+
variant: "outlined",
|
|
220
|
+
color: "success",
|
|
221
|
+
startIcon: /* @__PURE__ */ r(c, {}),
|
|
222
|
+
children: "Outlined + Icon"
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ r(e, {
|
|
225
|
+
variant: "text",
|
|
226
|
+
color: "error",
|
|
227
|
+
endIcon: /* @__PURE__ */ r(o, {}),
|
|
228
|
+
children: "Text + Icon"
|
|
229
|
+
})
|
|
230
|
+
]
|
|
231
|
+
})] }),
|
|
232
|
+
/* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {
|
|
233
|
+
variant: "h6",
|
|
234
|
+
sx: { mb: 2 },
|
|
235
|
+
children: "Form Components"
|
|
236
|
+
}), /* @__PURE__ */ i(f, {
|
|
237
|
+
sx: { gap: 2 },
|
|
238
|
+
children: [
|
|
239
|
+
/* @__PURE__ */ r(t, {
|
|
240
|
+
label: "Enhanced Text Field",
|
|
241
|
+
value: m,
|
|
242
|
+
onChange: (e) => h(e.target.value),
|
|
243
|
+
placeholder: "Enter text here...",
|
|
244
|
+
helperText: "This is an enhanced STextField component"
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ r(t, {
|
|
247
|
+
label: "Password Field",
|
|
248
|
+
type: "password",
|
|
249
|
+
placeholder: "Enter password...",
|
|
250
|
+
helperText: "Password input with custom styling"
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ r(t, {
|
|
253
|
+
label: "Multiline Text",
|
|
254
|
+
multiline: !0,
|
|
255
|
+
rows: 3,
|
|
256
|
+
placeholder: "Enter multiple lines...",
|
|
257
|
+
helperText: "Multiline text input"
|
|
258
|
+
})
|
|
259
|
+
]
|
|
260
|
+
})] })
|
|
261
|
+
]
|
|
262
|
+
}) }) }) });
|
|
263
|
+
};
|
|
264
|
+
//#endregion
|
|
265
|
+
export { m as SoloStylistSection };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { formatFontSize as e } from "./utils.js";
|
|
2
|
+
import { headingSamples as t } from "./theme-demo-data.js";
|
|
3
|
+
import { useTheme as n } from "@mui/material/styles";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
import { Box as a, Card as o, CardContent as s, Stack as c, Typography as l } from "@mui/material";
|
|
7
7
|
//#region lib/s-theme-demo/theme-demo-typography-section.tsx
|
|
8
8
|
var u = () => {
|
|
9
|
-
let u =
|
|
9
|
+
let u = n();
|
|
10
10
|
return /* @__PURE__ */ r(o, { children: /* @__PURE__ */ i(s, { children: [/* @__PURE__ */ r(l, {
|
|
11
11
|
variant: "h6",
|
|
12
12
|
sx: { mb: 2 },
|
|
@@ -16,25 +16,25 @@ var u = () => {
|
|
|
16
16
|
children: /* @__PURE__ */ i(c, {
|
|
17
17
|
spacing: 2,
|
|
18
18
|
children: [
|
|
19
|
-
|
|
20
|
-
let s = u.typography[
|
|
19
|
+
t.map(({ variant: t, label: n, description: o }) => {
|
|
20
|
+
let s = u.typography[t];
|
|
21
21
|
return /* @__PURE__ */ i(a, { children: [/* @__PURE__ */ r(l, {
|
|
22
|
-
variant:
|
|
22
|
+
variant: t,
|
|
23
23
|
gutterBottom: !0,
|
|
24
24
|
children: n
|
|
25
25
|
}), /* @__PURE__ */ i(l, {
|
|
26
26
|
variant: "caption",
|
|
27
27
|
children: [
|
|
28
|
-
|
|
28
|
+
t,
|
|
29
29
|
" - ",
|
|
30
|
-
|
|
30
|
+
e(s.fontSize, u.typography.htmlFontSize),
|
|
31
31
|
", Weight",
|
|
32
32
|
" ",
|
|
33
33
|
s.fontWeight,
|
|
34
34
|
" - ",
|
|
35
35
|
o
|
|
36
36
|
]
|
|
37
|
-
})] },
|
|
37
|
+
})] }, t);
|
|
38
38
|
}),
|
|
39
39
|
/* @__PURE__ */ i(a, { children: [/* @__PURE__ */ r(l, {
|
|
40
40
|
variant: "body1",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../theme-primitives-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../theme-primitives-CRfnMsNy.js";
|
|
2
2
|
import { components as s } from "../theme/components/components.js";
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SThemeSwitch as e } from "./s-theme-switch.js";
|
|
2
2
|
export { e as SThemeSwitch, e as default };
|
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { forwardRef as e, useCallback as t, useRef as n } from "react";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { DarkMode as i, LightMode as a } from "@mui/icons-material";
|
|
4
|
+
import { IconButton as o, styled as s, useColorScheme as c, useMediaQuery as l, useThemeProps as u } from "@mui/material";
|
|
5
|
+
import { useForkRef as d } from "@mui/material/utils";
|
|
6
|
+
import { flushSync as f } from "react-dom";
|
|
7
|
+
//#region lib/s-theme-switch/s-theme-switch.tsx
|
|
8
|
+
var p = s(o, {
|
|
9
|
+
name: "SThemeSwitch",
|
|
10
|
+
slot: "Root"
|
|
11
|
+
})({}), m = e(function(e, o) {
|
|
12
|
+
let s = u({
|
|
13
|
+
props: e,
|
|
14
|
+
name: "SThemeSwitch"
|
|
15
|
+
}), { mode: m, onClick: h, setMode: g, "aria-label": _, ...v } = s, y = n(null), b = d(y, o), { mode: x, setMode: S, systemMode: C } = c(), w = l("(prefers-reduced-motion: reduce)"), T = m ?? x, E = (T === "system" ? C : T) === "dark", D = {
|
|
16
|
+
...s,
|
|
17
|
+
mode: T
|
|
18
|
+
}, O = t(() => {
|
|
19
|
+
let e = E ? "light" : "dark";
|
|
20
|
+
g ? g(e) : S(e);
|
|
21
|
+
}, [
|
|
22
|
+
E,
|
|
23
|
+
S,
|
|
24
|
+
g
|
|
25
|
+
]), k = t(async (e) => {
|
|
26
|
+
if (h?.(e), e.defaultPrevented) return;
|
|
27
|
+
if (w || !y.current || typeof document > "u" || !document.startViewTransition) {
|
|
28
|
+
O();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
await document.startViewTransition(() => {
|
|
32
|
+
f(() => {
|
|
33
|
+
O();
|
|
34
|
+
});
|
|
35
|
+
}).ready;
|
|
36
|
+
let t = y.current;
|
|
37
|
+
if (!t) return;
|
|
38
|
+
let { top: n, left: r, width: i, height: a } = t.getBoundingClientRect(), o = r + i / 2, s = n + a / 2, c = Math.hypot(Math.max(o, window.innerWidth - o), Math.max(s, window.innerHeight - s));
|
|
39
|
+
document.documentElement.animate({ clipPath: [`circle(0px at ${o}px ${s}px)`, `circle(${c}px at ${o}px ${s}px)`] }, {
|
|
40
|
+
duration: 700,
|
|
41
|
+
easing: "ease-in-out",
|
|
42
|
+
pseudoElement: "::view-transition-new(root)"
|
|
43
|
+
});
|
|
44
|
+
}, [
|
|
45
|
+
h,
|
|
46
|
+
w,
|
|
47
|
+
O
|
|
48
|
+
]);
|
|
49
|
+
return /* @__PURE__ */ r(p, {
|
|
50
|
+
...v,
|
|
51
|
+
ref: b,
|
|
52
|
+
"aria-label": _ ?? (E ? "Switch to light mode" : "Switch to dark mode"),
|
|
53
|
+
onClick: k,
|
|
54
|
+
ownerState: D,
|
|
55
|
+
children: r(E ? a : i, {})
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
m.displayName = "SThemeSwitch";
|
|
59
|
+
//#endregion
|
|
60
|
+
export { m as SThemeSwitch, m as default };
|
package/dist/s-tip/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { STip as e } from "./s-tip.js";
|
|
2
2
|
export { e as STip, e as default };
|
package/dist/s-tip/s-tip.js
CHANGED
|
@@ -1,2 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { styled as t, useThemeProps as n } from "@mui/material/styles";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import o from "@mui/material/Typography";
|
|
6
|
+
import s from "@mui/utils/appendOwnerState";
|
|
7
|
+
import c from "@mui/icons-material/LightbulbOutlined";
|
|
8
|
+
import l from "@mui/material/Stack";
|
|
9
|
+
//#region lib/s-tip/s-tip.tsx
|
|
10
|
+
var u = t(l, {
|
|
11
|
+
name: "STip",
|
|
12
|
+
slot: "Root",
|
|
13
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
14
|
+
})({});
|
|
15
|
+
function d(e, t) {
|
|
16
|
+
return typeof e == "function" ? e(t) : e;
|
|
17
|
+
}
|
|
18
|
+
var f = r.forwardRef(function(t, r) {
|
|
19
|
+
let l = n({
|
|
20
|
+
props: t,
|
|
21
|
+
name: "STip"
|
|
22
|
+
}), { children: f, direction: p = "row", label: m = "Tip.", slotProps: h, slots: g, spacing: _ = 1, sx: v, ...y } = l, b = {
|
|
23
|
+
...l,
|
|
24
|
+
direction: p,
|
|
25
|
+
hasLabel: m != null,
|
|
26
|
+
spacing: _
|
|
27
|
+
}, x = g?.icon ?? c, S = g?.text ?? o, C = d(h?.icon, b), w = d(h?.text, b), T = s(g?.icon, C ?? {}, b), E = s(g?.text, w ?? {}, b);
|
|
28
|
+
return /* @__PURE__ */ a(u, {
|
|
29
|
+
...y,
|
|
30
|
+
ref: r,
|
|
31
|
+
direction: p,
|
|
32
|
+
ownerState: b,
|
|
33
|
+
spacing: _,
|
|
34
|
+
sx: [{
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
bgcolor: "background.default",
|
|
37
|
+
borderRadius: 1,
|
|
38
|
+
color: "text.primary",
|
|
39
|
+
p: 1
|
|
40
|
+
}, ...e(v)],
|
|
41
|
+
children: [/* @__PURE__ */ i(x, {
|
|
42
|
+
...T,
|
|
43
|
+
sx: [{ fontSize: 16 }, ...e(C?.sx)]
|
|
44
|
+
}), /* @__PURE__ */ a(S, {
|
|
45
|
+
...E,
|
|
46
|
+
children: [
|
|
47
|
+
m != null && /* @__PURE__ */ i(o, {
|
|
48
|
+
component: "span",
|
|
49
|
+
sx: { fontWeight: "bold" },
|
|
50
|
+
variant: "inherit",
|
|
51
|
+
children: m
|
|
52
|
+
}),
|
|
53
|
+
" ",
|
|
54
|
+
f
|
|
55
|
+
]
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
f.displayName = "STip";
|
|
60
|
+
//#endregion
|
|
61
|
+
export { f as STip, f as default };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
2
|
import { tint as t } from "../theme/utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
3
|
+
import { getToolBarInputValue as n, groupInputsByType as r, hasVisibleInputSection as i, isProcessActionDisabled as a, isRequiredInputFilled as o } from "./utils.js";
|
|
4
|
+
import { ToolbarInputItem as s } from "./tool-bar-inputs.js";
|
|
5
|
+
import { ToolbarActionButtons as ee } from "./tool-bar-action-buttons.js";
|
|
6
|
+
import * as c from "react";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
+
import { Box as d, Dialog as te, DialogContent as ne, DialogTitle as re, Portal as ie, styled as f, useThemeProps as p } from "@mui/material";
|
|
9
|
+
import { mergeSlotProps as m } from "@mui/material/utils";
|
|
10
|
+
import h from "@mui/utils/appendOwnerState";
|
|
11
11
|
//#region lib/s-tool-bar/s-tool-bar.tsx
|
|
12
|
-
var g =
|
|
12
|
+
var g = f(d, {
|
|
13
13
|
name: "SToolBar",
|
|
14
14
|
slot: "Root",
|
|
15
15
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
16
|
-
})({}), _ =
|
|
16
|
+
})({}), _ = f(d, {
|
|
17
17
|
name: "SToolBar",
|
|
18
18
|
slot: "Toolbar",
|
|
19
19
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -21,21 +21,21 @@ var g = m(f, {
|
|
|
21
21
|
function v(e, t) {
|
|
22
22
|
return typeof e == "function" ? e(t) : e;
|
|
23
23
|
}
|
|
24
|
-
var y =
|
|
25
|
-
let b =
|
|
26
|
-
props:
|
|
24
|
+
var y = c.forwardRef(function(f, y) {
|
|
25
|
+
let b = p({
|
|
26
|
+
props: f,
|
|
27
27
|
name: "SToolBar"
|
|
28
|
-
}), { actions: x, downloadTooltip: ae = "Download", getInputDisabled: S, hideProcessButton: oe = !1, infoContent: C, infoTitle: se = "Tool Information", infoTooltip: ce = "Information", inputValues: w = {}, inputs: T = [], onDownload: le, onInputChange: E, onProcess: D, onReset: O, position: k = "bottom", processButtonDisabled: A = !1, processTooltip: j = "Process", processing: M = !1, relative: N = !1, resetTooltip: P = "Reset", slotProps: F, slots: I, sx: L, uploading: R = !1, ...z } = b, [B, V] =
|
|
28
|
+
}), { actions: x, downloadTooltip: ae = "Download", getInputDisabled: S, hideProcessButton: oe = !1, infoContent: C, infoTitle: se = "Tool Information", infoTooltip: ce = "Information", inputValues: w = {}, inputs: T = [], onDownload: le, onInputChange: E, onProcess: D, onReset: O, position: k = "bottom", processButtonDisabled: A = !1, processTooltip: j = "Process", processing: M = !1, relative: N = !1, resetTooltip: P = "Reset", slotProps: F, slots: I, sx: L, uploading: R = !1, ...z } = b, [B, V] = c.useState(!1), H = {
|
|
29
29
|
...b,
|
|
30
30
|
position: k,
|
|
31
31
|
processing: M,
|
|
32
32
|
relative: N,
|
|
33
33
|
uploading: R
|
|
34
|
-
}, U =
|
|
34
|
+
}, U = c.useCallback(() => V(!0), []), W = c.useCallback(() => V(!1), []), G = I?.toolbar ?? _, ue = I?.dialog ?? te, de = I?.dialogTitle ?? re, fe = I?.dialogContent ?? ne, pe = v(F?.toolbar, H), me = v(F?.dialog, H), he = v(F?.dialogTitle, H), ge = v(F?.dialogContent, H), { sx: _e, ...ve } = pe ?? {}, ye = h(G, ve, H), be = h(I?.dialog, m(me, { onClose: W }), H), xe = h(I?.dialogTitle, he ?? {}, H), Se = h(I?.dialogContent, ge ?? {}, H), Ce = c.useMemo(() => T.length === 0 ? !0 : T.every((e) => o(e, n(e, w))), [T, w]), { imageInputs: K, textareaInputs: q, paramInputs: J } = c.useMemo(() => r(T), [T]), we = i(K, J), Te = a(A, Ce, R, M), Y = c.useCallback(() => {}, []), X = c.useCallback(() => {}, []), Z = c.useCallback((e, t, n, r) => {
|
|
35
35
|
E?.(e, t, n, r);
|
|
36
|
-
}, [E]), Q =
|
|
36
|
+
}, [E]), Q = c.useCallback((e) => /* @__PURE__ */ l(s, {
|
|
37
37
|
input: e,
|
|
38
|
-
value:
|
|
38
|
+
value: n(e, w),
|
|
39
39
|
onChange: (t, n, r) => Z(t, e.key, n, r),
|
|
40
40
|
onFocus: Y,
|
|
41
41
|
onBlur: X,
|
|
@@ -46,7 +46,7 @@ var y = l.forwardRef(function(m, y) {
|
|
|
46
46
|
Z,
|
|
47
47
|
Y,
|
|
48
48
|
X
|
|
49
|
-
]), $ = /* @__PURE__ */
|
|
49
|
+
]), $ = /* @__PURE__ */ u(g, {
|
|
50
50
|
...z,
|
|
51
51
|
ownerState: H,
|
|
52
52
|
ref: y,
|
|
@@ -61,7 +61,7 @@ var y = l.forwardRef(function(m, y) {
|
|
|
61
61
|
mt: N && k === "top" ? 2 : 0,
|
|
62
62
|
mb: N && k === "bottom" ? 2 : 0
|
|
63
63
|
}, ...e(L)],
|
|
64
|
-
children: [/* @__PURE__ */
|
|
64
|
+
children: [/* @__PURE__ */ u(G, {
|
|
65
65
|
...ye,
|
|
66
66
|
sx: [(e) => ({
|
|
67
67
|
display: "flex",
|
|
@@ -79,27 +79,27 @@ var y = l.forwardRef(function(m, y) {
|
|
|
79
79
|
borderColor: (e.vars ?? e).palette.primary[400]
|
|
80
80
|
}
|
|
81
81
|
}), ...e(_e)],
|
|
82
|
-
children: [q.length > 0 && /* @__PURE__ */
|
|
82
|
+
children: [q.length > 0 && /* @__PURE__ */ l(d, {
|
|
83
83
|
sx: {
|
|
84
84
|
display: "flex",
|
|
85
85
|
flexDirection: "column",
|
|
86
86
|
gap: 2
|
|
87
87
|
},
|
|
88
88
|
children: q.map(Q)
|
|
89
|
-
}), /* @__PURE__ */ d
|
|
89
|
+
}), /* @__PURE__ */ u(d, {
|
|
90
90
|
sx: {
|
|
91
91
|
display: "flex",
|
|
92
92
|
alignItems: "center",
|
|
93
93
|
gap: .5
|
|
94
94
|
},
|
|
95
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ l(d, {
|
|
96
96
|
sx: {
|
|
97
97
|
display: "flex",
|
|
98
98
|
alignItems: "center",
|
|
99
99
|
gap: 2,
|
|
100
100
|
flex: 1
|
|
101
101
|
},
|
|
102
|
-
children: we && /* @__PURE__ */ d
|
|
102
|
+
children: we && /* @__PURE__ */ u(d, {
|
|
103
103
|
sx: {
|
|
104
104
|
display: "flex",
|
|
105
105
|
alignItems: "center",
|
|
@@ -107,7 +107,7 @@ var y = l.forwardRef(function(m, y) {
|
|
|
107
107
|
},
|
|
108
108
|
children: [K.map(Q), J.map(Q)]
|
|
109
109
|
})
|
|
110
|
-
}), /* @__PURE__ */
|
|
110
|
+
}), /* @__PURE__ */ l(ee, {
|
|
111
111
|
customActionButtons: x,
|
|
112
112
|
infoContent: C,
|
|
113
113
|
infoTooltip: ce,
|
|
@@ -122,21 +122,21 @@ var y = l.forwardRef(function(m, y) {
|
|
|
122
122
|
onProcess: D
|
|
123
123
|
})]
|
|
124
124
|
})]
|
|
125
|
-
}), C && /* @__PURE__ */
|
|
125
|
+
}), C && /* @__PURE__ */ u(ue, {
|
|
126
126
|
maxWidth: "sm",
|
|
127
127
|
fullWidth: !0,
|
|
128
128
|
...be,
|
|
129
129
|
open: B,
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ l(de, {
|
|
131
131
|
...xe,
|
|
132
132
|
children: se
|
|
133
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ l(fe, {
|
|
134
134
|
...Se,
|
|
135
135
|
children: C
|
|
136
136
|
})]
|
|
137
137
|
})]
|
|
138
138
|
});
|
|
139
|
-
return N ? $ : /* @__PURE__ */
|
|
139
|
+
return N ? $ : /* @__PURE__ */ l(ie, { children: $ });
|
|
140
140
|
});
|
|
141
141
|
y.displayName = "SToolBar";
|
|
142
142
|
//#endregion
|
|
@@ -1,2 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { AutoAwesome as r } from "@mui/icons-material";
|
|
4
|
+
import { Box as i, IconButton as a, Tooltip as o } from "@mui/material";
|
|
5
|
+
import s from "@mui/icons-material/Autorenew";
|
|
6
|
+
import c from "@mui/icons-material/Download";
|
|
7
|
+
import l from "@mui/icons-material/InfoOutlined";
|
|
8
|
+
//#region lib/s-tool-bar/tool-bar-action-buttons.tsx
|
|
9
|
+
var u = e.memo(({ customActionButtons: e, infoContent: u, infoTooltip: d, downloadTooltip: f, resetTooltip: p, processTooltip: m, hideProcessButton: h, processActionDisabled: g, onInfoOpen: _, onDownload: v, onReset: y, onProcess: b }) => /* @__PURE__ */ n(i, {
|
|
10
|
+
sx: {
|
|
11
|
+
display: "flex",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
gap: 1,
|
|
14
|
+
ml: "auto"
|
|
15
|
+
},
|
|
16
|
+
children: [
|
|
17
|
+
e,
|
|
18
|
+
u && /* @__PURE__ */ t(o, {
|
|
19
|
+
title: d,
|
|
20
|
+
children: /* @__PURE__ */ t(a, {
|
|
21
|
+
"aria-label": d,
|
|
22
|
+
onClick: _,
|
|
23
|
+
children: /* @__PURE__ */ t(l, {})
|
|
24
|
+
})
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ t(o, {
|
|
27
|
+
title: f,
|
|
28
|
+
children: /* @__PURE__ */ t(a, {
|
|
29
|
+
"aria-label": f,
|
|
30
|
+
onClick: v,
|
|
31
|
+
children: /* @__PURE__ */ t(c, {})
|
|
32
|
+
})
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ t(o, {
|
|
35
|
+
title: p,
|
|
36
|
+
children: /* @__PURE__ */ t(a, {
|
|
37
|
+
"aria-label": p,
|
|
38
|
+
onClick: y,
|
|
39
|
+
children: /* @__PURE__ */ t(s, {})
|
|
40
|
+
})
|
|
41
|
+
}),
|
|
42
|
+
!h && /* @__PURE__ */ t(o, {
|
|
43
|
+
title: m,
|
|
44
|
+
children: /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(a, {
|
|
45
|
+
"aria-label": m,
|
|
46
|
+
onClick: b,
|
|
47
|
+
disabled: g,
|
|
48
|
+
size: "large",
|
|
49
|
+
children: /* @__PURE__ */ t(r, { color: g ? "disabled" : "primary" })
|
|
50
|
+
}) })
|
|
51
|
+
})
|
|
52
|
+
]
|
|
53
|
+
}));
|
|
54
|
+
//#endregion
|
|
55
|
+
export { u as ToolbarActionButtons };
|