@solostylist/ui-kit 1.0.204 → 1.0.206
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-CDLbIMHR.js +6 -0
- package/dist/Box-CCxGQYgC.js +46 -0
- package/dist/{ButtonBase-CyZX7c8K.js → ButtonBase-BpUvp8ep.js} +284 -285
- package/dist/ChevronLeft-C7DUyLoc.js +6 -0
- package/dist/ChevronRight-VFk57Tte.js +6 -0
- package/dist/Close-OtVsJy75.js +6 -0
- package/dist/ContentCopy-DHDP4d6g.js +6 -0
- package/dist/{DefaultPropsProvider-CFaP_bh_.js → DefaultPropsProvider-DpRXvTbj.js} +48 -48
- package/dist/Download-Bbx6BZUJ.js +6 -0
- package/dist/ExpandMore-BTC1yHzp.js +6 -0
- package/dist/Favorite-mcH9KX-m.js +6 -0
- package/dist/LocalizationProvider-DxrK-c0x.js +110 -0
- package/dist/{Menu-BB3Khkc0.js → Menu-Dhh4e9H1.js} +544 -544
- package/dist/{MenuItem-CjPW2J-w.js → MenuItem-aaIy8lan.js} +39 -39
- package/dist/{Paper-COr98fp-.js → Paper--8Q3qCqb.js} +25 -25
- package/dist/{Select-B9880Uge.js → Select-C5bKKis6.js} +1282 -1279
- package/dist/{Stack-BJ4hQFAK.js → Stack-D-aoKnaS.js} +27 -27
- package/dist/{Typography-B_GHPkH2.js → Typography-CswuXQLF.js} +25 -25
- package/dist/avatar-BVV8tT0K.js +10 -0
- package/dist/{buttonBaseClasses-DqKyadLa.js → buttonBaseClasses-CzfJbQi5.js} +1 -1
- package/dist/checkbox-Dd2nIREk.js +57 -0
- package/dist/chunk-efA98nb6.js +13 -0
- package/dist/{createSvgIcon-Bs2KOQvq.js → createSvgIcon-KjKEsKNV.js} +50 -50
- package/dist/{createTheme-CMuiGmV-.js → createTheme-DuS5_nJb.js} +1 -1
- package/dist/{defaultTheme-C7Su92B_.js → defaultTheme-DBynruYK.js} +1 -1
- package/dist/entries/carousel.js +3 -3
- package/dist/entries/chat.js +3 -3
- package/dist/entries/code.js +3 -3
- package/dist/entries/core.js +13 -14
- package/dist/entries/dates.js +9 -6
- package/dist/entries/dropzone.js +3 -3
- package/dist/entries/editor.js +2 -2
- package/dist/entries/gallery.js +8 -6
- package/dist/entries/i18n.js +4 -3
- package/dist/entries/motion.js +24 -16
- package/dist/entries/scrollbar.js +0 -1
- package/dist/entries/stripe.js +2 -2
- package/dist/{extendSxProp-DC0zdi8T.js → extendSxProp-YPyfzlEb.js} +1 -1
- package/dist/{iconButtonClasses-BggbSXxO.js → iconButtonClasses-ApDUTw5e.js} +1 -1
- package/dist/main.d.ts +0 -11
- package/dist/main.js +54 -101
- package/dist/{mergeSlotProps-DKt8V_TK.js → mergeSlotProps-BG-pTgpj.js} +1 -1
- package/dist/{outlinedInputClasses-5cvWh4bu.js → outlinedInputClasses-bgmdcolQ.js} +1 -1
- package/dist/{resolveProps-BfzHOpig.js → resolveProps-CcZ6Bxlf.js} +1 -1
- package/dist/s-accordion/index.js +2 -3
- package/dist/s-accordion/s-accordion.js +2 -3
- package/dist/{s-accordion-Dt3fbZNh.js → s-accordion-Da1IZflX.js} +203 -203
- package/dist/s-action-overlay/index.js +0 -1
- package/dist/s-action-overlay/s-action-overlay.js +44 -44
- package/dist/s-autocomplete/index.js +0 -1
- package/dist/s-autocomplete/s-autocomplete.js +12 -12
- package/dist/s-avatar/index.js +0 -1
- package/dist/s-avatar/s-avatar.js +16 -16
- package/dist/s-blur-text/index.js +0 -1
- package/dist/s-blur-text/s-blur-text.js +34 -34
- package/dist/s-breadcrumbs/index.js +1 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.js +24 -24
- package/dist/s-button/index.js +0 -1
- package/dist/s-button/s-button.js +6 -6
- package/dist/s-carousel/index.js +2 -3
- package/dist/s-carousel/s-carousel.js +2 -3
- package/dist/s-carousel-BoDg9pKU.js +125 -0
- package/dist/s-category-card/index.js +0 -1
- package/dist/s-category-card/s-category-card.js +31 -31
- package/dist/s-chat-input/index.js +2 -3
- package/dist/s-chat-input/s-chat-input.js +2 -3
- package/dist/{s-chat-input-j_4JZfmI.js → s-chat-input-v_XIZVGk.js} +85 -85
- package/dist/s-chat-message/index.js +2 -3
- package/dist/s-chat-message/s-chat-message.js +2 -3
- package/dist/s-chat-message-CWtxsicj.js +281 -0
- package/dist/s-checkbox/index.js +0 -1
- package/dist/s-checkbox/s-checkbox.js +13 -13
- package/dist/s-chip/index.js +0 -1
- package/dist/s-chip/s-chip.js +6 -6
- package/dist/s-chips/index.js +0 -1
- package/dist/s-chips/s-chips.js +37 -37
- package/dist/s-code-block/index.js +2 -3
- package/dist/s-code-block/s-code-block.js +2 -3
- package/dist/{s-code-block-BxdWmtRX.js → s-code-block-BqYdR0Em.js} +21 -21
- package/dist/s-comment-message/index.js +2 -3
- package/dist/s-comment-message/s-comment-message.js +2 -3
- package/dist/s-comment-message-DDAHdQqY.js +195 -0
- package/dist/s-copyable-text/index.js +1 -2
- package/dist/s-copyable-text/s-copyable-text.js +20 -20
- package/dist/s-countdown/index.js +1 -2
- package/dist/s-countdown/s-count-box.js +31 -31
- package/dist/s-countdown/s-count-down.js +14 -14
- package/dist/s-data-table/index.js +2 -3
- package/dist/s-data-table/s-data-table.js +2 -3
- package/dist/{s-data-table-B9B189jk.js → s-data-table-BjqqIsFX.js} +284 -284
- package/dist/s-date-picker/index.js +2 -3
- package/dist/s-date-picker/s-date-picker.js +2 -3
- package/dist/{s-date-picker-CH4q-Bfx.js → s-date-picker-B0D3WMLP.js} +75 -75
- package/dist/s-datetime-picker/index.js +2 -3
- package/dist/s-datetime-picker/s-datetime-picker.js +2 -3
- package/dist/{s-datetime-picker-dviksz3-.js → s-datetime-picker-BTnwnsM2.js} +1246 -1246
- package/dist/s-dialog/index.js +1 -2
- package/dist/s-dialog/s-dialog.js +28 -28
- package/dist/s-dialog-confirm/index.js +1 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +42 -42
- package/dist/s-dialog-message/index.js +1 -2
- package/dist/s-dialog-message/s-dialog-message.js +32 -32
- package/dist/s-empty/index.js +0 -1
- package/dist/s-empty/s-empty.js +5 -5
- package/dist/s-error/index.js +0 -1
- package/dist/s-error/s-error.js +6 -6
- package/dist/s-error-layout/index.js +0 -1
- package/dist/s-error-layout/s-error-layout.js +36 -36
- package/dist/s-file-dropzone/index.js +2 -3
- package/dist/s-file-dropzone/s-file-dropzone.js +2 -3
- package/dist/s-file-dropzone-BJBNFC_b.js +134 -0
- package/dist/s-file-icon/index.js +1 -2
- package/dist/s-file-icon/s-file-icon.js +79 -79
- package/dist/s-flex-box/index.js +1 -2
- package/dist/s-flex-box/s-flex-box.js +7 -7
- package/dist/s-form/index.js +0 -1
- package/dist/s-form/s-form.js +11 -11
- package/dist/s-gallery/index.js +1 -2
- package/dist/s-gallery/s-gallery.js +72 -72
- package/dist/s-glow-button/index.js +1 -2
- package/dist/s-glow-button/s-glow-button.js +10 -10
- package/dist/s-gradient-icon/index.js +0 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +46 -46
- package/dist/s-i18n-provider/index.js +0 -1
- package/dist/s-i18n-provider/s-i18n-provider.js +17 -18
- package/dist/s-icon-button/index.js +0 -1
- package/dist/s-icon-button/s-icon-button.js +7 -7
- package/dist/s-image-comparison/index.js +1 -2
- package/dist/s-image-comparison/s-image-comparison.js +56 -56
- package/dist/s-image-modal/index.js +1 -2
- package/dist/s-image-modal/s-image-modal.js +94 -94
- package/dist/s-item-not-found/index.js +0 -1
- package/dist/s-item-not-found/s-item-not-found.js +48 -48
- package/dist/s-label/index.js +2 -3
- package/dist/s-label/s-label.js +2 -3
- package/dist/s-label-Bt4vQGGN.js +30 -0
- package/dist/s-language-switcher/index.js +2 -3
- package/dist/s-language-switcher/s-language-switcher.js +2 -3
- package/dist/{s-language-switcher-DhcrqHJt.js → s-language-switcher-BJP1r1la.js} +53 -53
- package/dist/s-lazy-image/index.js +0 -1
- package/dist/s-lazy-image/s-lazy-image.js +27 -27
- package/dist/s-link/index.js +0 -1
- package/dist/s-link/s-link.js +15 -15
- package/dist/s-localization-provider/index.js +2 -3
- package/dist/s-localization-provider/s-localization-provider.js +2 -3
- package/dist/{s-localization-provider-BpoHpRVl.js → s-localization-provider-DJc4e39M.js} +9 -9
- package/dist/s-moving-border/index.js +0 -1
- package/dist/s-moving-border/s-moving-border.js +38 -38
- package/dist/s-multi-select/index.js +2 -3
- package/dist/s-multi-select/s-multi-select.js +2 -3
- package/dist/s-multi-select-xKP4heeG.js +64 -0
- package/dist/s-no-ssr/index.js +0 -1
- package/dist/s-no-ssr/s-no-ssr.js +10 -10
- package/dist/s-overlay-scrollbar/index.js +0 -1
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +9 -9
- package/dist/s-pagination/index.js +0 -1
- package/dist/s-pagination/s-pagination.js +17 -17
- package/dist/s-pixel-reveal/index.js +1 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +62 -62
- package/dist/s-radial-pulse-animate/index.js +1 -2
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +37 -37
- package/dist/s-rating/index.js +0 -1
- package/dist/s-rating/s-rating.js +6 -6
- package/dist/s-review/index.js +2 -3
- package/dist/s-review/s-review.js +2 -3
- package/dist/s-review-DOBlCEU2.js +241 -0
- package/dist/s-scroll-reveal/index.js +0 -1
- package/dist/s-scroll-reveal/s-scroll-reveal.js +11 -11
- package/dist/s-scroll-to-top/index.js +1 -2
- package/dist/s-scroll-to-top/s-scroll-to-top.js +14 -14
- package/dist/s-scroll-velocity/index.js +0 -1
- package/dist/s-scroll-velocity/s-scroll-velocity.js +6 -6
- package/dist/s-scroll-velocity/scroll-velocity-container.js +8 -8
- package/dist/s-scroll-velocity/scroll-velocity-row.js +22 -22
- package/dist/s-select/index.js +2 -3
- package/dist/s-select/s-select.js +2 -3
- package/dist/s-select-DXbeZ0CG.js +110 -0
- package/dist/s-select-list/index.js +0 -1
- package/dist/s-select-list/s-select-list.js +17 -17
- package/dist/s-skeleton/index.js +0 -1
- package/dist/s-skeleton/s-skeleton.js +16 -16
- package/dist/s-snackbar-message/index.js +0 -1
- package/dist/s-snackbar-message/s-snackbar-message.js +24 -24
- package/dist/s-spotlight-cursor/index.js +0 -1
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +21 -21
- package/dist/s-stripe/index.js +1 -2
- package/dist/s-stripe/s-stripe-cvc.js +8 -9
- package/dist/s-stripe/s-stripe-expiry.js +8 -9
- package/dist/s-stripe/s-stripe-number.js +8 -9
- package/dist/s-stripe/s-stripe.js +10 -10
- package/dist/s-stripe/stripe-input.js +16 -16
- package/dist/s-switch/index.js +0 -1
- package/dist/s-switch/s-switch.js +13 -13
- package/dist/s-tabs/index.js +0 -1
- package/dist/s-tabs/s-tab-panel.js +7 -7
- package/dist/s-tabs/s-tab.js +6 -6
- package/dist/s-tabs/s-tabs.js +24 -24
- package/dist/s-text-editor/index.js +2 -3
- package/dist/s-text-editor/s-text-editor-toolbar.js +2 -3
- package/dist/s-text-editor/s-text-editor.js +24 -24
- package/dist/s-text-editor-toolbar-ob6vDHU4.js +177 -0
- package/dist/s-text-field/index.js +2 -3
- package/dist/s-text-field/s-text-field.js +2 -3
- package/dist/s-text-field-ni42E-1x.js +41 -0
- package/dist/s-text-shimmer/index.js +1 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +13 -13
- package/dist/s-text-truncation/index.js +0 -1
- package/dist/s-text-truncation/s-text-truncation.js +42 -42
- package/dist/s-theme-demo/index.js +2 -3
- package/dist/s-theme-demo/s-theme-demo.js +2 -3
- package/dist/{s-theme-demo-ChEG6wog.js → s-theme-demo-B4pz6fse.js} +181 -181
- package/dist/s-theme-provider/index.js +1 -2
- package/dist/s-theme-provider/s-theme-provider.js +16 -16
- package/dist/s-theme-switch/index.js +2 -3
- package/dist/s-theme-switch/s-theme-switch.js +2 -3
- package/dist/s-theme-switch-CCEdponC.js +37 -0
- package/dist/s-tip/index.js +2 -3
- package/dist/s-tip/s-tip.js +2 -3
- package/dist/s-tip-CG51Q6oR.js +34 -0
- package/dist/s-tool-bar/index.js +2 -3
- package/dist/s-tool-bar/s-tool-bar.js +2 -3
- package/dist/s-tool-bar-C2lZhhJm.js +404 -0
- package/dist/s-two-pane-layout/index.js +1 -2
- package/dist/s-two-pane-layout/s-two-pane-layout.js +48 -48
- package/dist/s-typewriter-text/index.js +0 -1
- package/dist/s-typewriter-text/s-typewriter-text.js +21 -21
- package/dist/s-zoom-image/index.js +0 -1
- package/dist/s-zoom-image/s-zoom-image.js +12 -12
- package/dist/select-D9KH9LAz.js +11 -0
- package/dist/{styled-CjUxhIJh.js → styled-Dz7rwAje.js} +2 -2
- package/dist/{svgIconClasses-DOmb6RsS.js → svgIconClasses-CygVMw0E.js} +1 -1
- package/dist/{tabClasses-DoD3-n6K.js → tabClasses-CIRFQ-PB.js} +1 -1
- package/dist/theme/components/accordion-summary.js +2 -2
- package/dist/theme/components/alert.js +2 -2
- package/dist/theme/components/avatar.js +2 -3
- package/dist/theme/components/button.js +2 -2
- package/dist/theme/components/card.js +2 -2
- package/dist/theme/components/checkbox.js +2 -3
- package/dist/theme/components/chip.js +15 -15
- package/dist/theme/components/components.js +6 -7
- package/dist/theme/components/icon-button.js +2 -2
- package/dist/theme/components/linear-progress.js +2 -2
- package/dist/theme/components/link.js +2 -2
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +3 -3
- package/dist/theme/components/outlined-input.js +3 -3
- package/dist/theme/components/select.js +2 -3
- package/dist/theme/components/step-icon.js +2 -2
- 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 +2 -2
- package/dist/theme/components/toggle-button.js +2 -2
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-Csxbv-2Y.js → theme-primitives-BG66N-x4.js} +1 -1
- package/dist/{toggle-button-CAcYep44.js → toggle-button-BI6z89CX.js} +2 -2
- package/dist/{toggle-button-group-BCHnFS_B.js → toggle-button-group-Dzzh9mXv.js} +3 -3
- package/dist/{typographyClasses-YJ-sLvHS.js → typographyClasses-C0nDz5e6.js} +1 -1
- package/dist/{useMobilePicker-CVsWEjX5.js → useMobilePicker-5bdhOdnH.js} +9153 -9150
- package/dist/{useTheme-B8aCSYJ4.js → useTheme-BES_k_99.js} +1 -1
- package/dist/{useThemeProps-CeO0wKq2.js → useThemeProps-CJRFdjVv.js} +2 -2
- package/dist/utils/dayjs.js +1 -1
- package/package.json +58 -1
- package/dist/ArrowUpward-KYbUu0UZ.js +0 -5
- package/dist/Box-a5uPlxYL.js +0 -47
- package/dist/ChevronLeft-Djq7TyZX.js +0 -5
- package/dist/ChevronRight-BgWjUtu8.js +0 -5
- package/dist/Close-DD2G0QfM.js +0 -5
- package/dist/ContentCopy-D1OlBB-D.js +0 -6
- package/dist/Download-DDt8mUQX.js +0 -5
- package/dist/ExpandMore-3GurpYw-.js +0 -5
- package/dist/Favorite-gVQqn0Cm.js +0 -5
- package/dist/avatar-boNnyODN.js +0 -9
- package/dist/checkbox-CajxsIFH.js +0 -57
- package/dist/chunk-BQCxAhux.js +0 -23
- package/dist/jsx-runtime-V-UOMaX1.js +0 -180
- package/dist/s-carousel-B3VUHzx3.js +0 -2294
- package/dist/s-chat-message-DQk5XWSJ.js +0 -281
- package/dist/s-comment-message-D3XTOm1L.js +0 -195
- package/dist/s-file-dropzone-DYiYlcY8.js +0 -134
- package/dist/s-label-g_Qac9jO.js +0 -30
- package/dist/s-multi-select-CUsIS9dm.js +0 -64
- package/dist/s-review-C1E6ASin.js +0 -241
- package/dist/s-select-CmsTrYmx.js +0 -110
- package/dist/s-text-editor-toolbar-DC-dnSBG.js +0 -177
- package/dist/s-text-field-C2WdBxNO.js +0 -41
- package/dist/s-theme-switch-uXRVJIf_.js +0 -37
- package/dist/s-tip-oiH-79gR.js +0 -34
- package/dist/s-tool-bar-CM-cxOkI.js +0 -404
- package/dist/select-CjaxyZK_.js +0 -11
- package/dist/warning-Bc_24lbr.js +0 -110
- /package/dist/{createSimplePaletteValueFilter-1V26n1YK.js → createSimplePaletteValueFilter-dAWZ3p3z.js} +0 -0
- /package/dist/{generateUtilityClasses-i3-S3IQr.js → generateUtilityClasses-BMwEKe3O.js} +0 -0
- /package/dist/{objectWithoutPropertiesLoose-Dn-p_OIo.js → objectWithoutPropertiesLoose-BdL2_POW.js} +0 -0
- /package/dist/{useControlled-DZKvfhNx.js → useControlled-CvWtMQJF.js} +0 -0
- /package/dist/{useEnhancedEffect-C_B_y6Db.js → useEnhancedEffect-NLLl34XR.js} +0 -0
- /package/dist/{useFormControl-y5Pput5X.js → useFormControl-ngLNi8dL.js} +0 -0
- /package/dist/{utils-Cj6R-BZe.js → utils-Cu16ybRR.js} +0 -0
package/dist/s-stripe/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import "../jsx-runtime-V-UOMaX1.js";
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
3
2
|
import { StripeTextField as e } from "./s-stripe.js";
|
|
4
3
|
import { SStripeNumber as t } from "./s-stripe-number.js";
|
|
5
4
|
import { SStripeExpiry as n } from "./s-stripe-expiry.js";
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { StripeTextField as e } from "./s-stripe.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
import { CardCvcElement as n } from "@stripe/react-stripe-js";
|
|
5
5
|
//#region lib/s-stripe/s-stripe-cvc.tsx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */ (0, r.jsx)(t, {
|
|
6
|
+
function r(r) {
|
|
7
|
+
return /* @__PURE__ */ t(e, {
|
|
9
8
|
label: "CVC",
|
|
10
9
|
stripeElement: n,
|
|
11
|
-
...
|
|
10
|
+
...r
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
|
|
13
|
+
r.displayName = "SStripeCVC";
|
|
15
14
|
//#endregion
|
|
16
|
-
export {
|
|
15
|
+
export { r as SStripeCVC, r as default };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { StripeTextField as e } from "./s-stripe.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
import { CardExpiryElement as n } from "@stripe/react-stripe-js";
|
|
5
5
|
//#region lib/s-stripe/s-stripe-expiry.tsx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */ (0, r.jsx)(t, {
|
|
6
|
+
function r(r) {
|
|
7
|
+
return /* @__PURE__ */ t(e, {
|
|
9
8
|
label: "Expiration",
|
|
10
9
|
stripeElement: n,
|
|
11
|
-
...
|
|
10
|
+
...r
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
|
|
13
|
+
r.displayName = "SStripeExpiry";
|
|
15
14
|
//#endregion
|
|
16
|
-
export {
|
|
15
|
+
export { r as SStripeExpiry, r as default };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { StripeTextField as e } from "./s-stripe.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
import { CardNumberElement as n } from "@stripe/react-stripe-js";
|
|
5
5
|
//#region lib/s-stripe/s-stripe-number.tsx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */ (0, r.jsx)(t, {
|
|
6
|
+
function r(r) {
|
|
7
|
+
return /* @__PURE__ */ t(e, {
|
|
9
8
|
label: "Card Number",
|
|
10
9
|
stripeElement: n,
|
|
11
|
-
...
|
|
10
|
+
...r
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
|
|
13
|
+
r.displayName = "SStripeNumber";
|
|
15
14
|
//#endregion
|
|
16
|
-
export {
|
|
15
|
+
export { r as SStripeNumber, r as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import { t as e } from "../
|
|
3
|
-
import
|
|
4
|
-
import n from "
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../s-text-field-ni42E-1x.js";
|
|
3
|
+
import t from "./stripe-input.js";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
//#region lib/s-stripe/s-stripe.tsx
|
|
6
|
-
var r =
|
|
7
|
-
let { helperText: i, slotProps: a, inputProps: o, error: s, labelErrorMessage: c, stripeElement: l, ...u } =
|
|
8
|
-
return /* @__PURE__ */ (
|
|
6
|
+
var r = (r) => {
|
|
7
|
+
let { helperText: i, slotProps: a, inputProps: o, error: s, labelErrorMessage: c, stripeElement: l, ...u } = r;
|
|
8
|
+
return /* @__PURE__ */ n(e, {
|
|
9
9
|
fullWidth: !0,
|
|
10
10
|
slotProps: {
|
|
11
11
|
inputLabel: {
|
|
@@ -19,7 +19,7 @@ var r = e(), i = (e) => {
|
|
|
19
19
|
...a?.input?.inputProps,
|
|
20
20
|
component: l
|
|
21
21
|
},
|
|
22
|
-
inputComponent:
|
|
22
|
+
inputComponent: t
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
error: s,
|
|
@@ -27,6 +27,6 @@ var r = e(), i = (e) => {
|
|
|
27
27
|
...u
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
r.displayName = "StripeTextField";
|
|
31
31
|
//#endregion
|
|
32
|
-
export {
|
|
32
|
+
export { r as StripeTextField, r as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import '../assets/stripe-input.css';//#region lib/s-stripe/stripe-input.tsx
|
|
4
|
-
var n =
|
|
4
|
+
var n = {
|
|
5
5
|
dark: {
|
|
6
6
|
text: "#ffffff",
|
|
7
7
|
textSecondary: "#94a0b8",
|
|
@@ -15,13 +15,13 @@ var n = e(), r = {
|
|
|
15
15
|
error: "#f50a1a"
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
function
|
|
18
|
+
function r() {
|
|
19
19
|
return typeof window > "u" ? "dark" : document.documentElement.getAttribute("data-mui-color-scheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return r
|
|
21
|
+
function i() {
|
|
22
|
+
return n[r()];
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function a(e, t) {
|
|
25
25
|
return {
|
|
26
26
|
base: {
|
|
27
27
|
fontFamily: "Outfit, sans-serif",
|
|
@@ -32,13 +32,13 @@ function o(e, t) {
|
|
|
32
32
|
invalid: { color: e.error }
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
let { component:
|
|
37
|
-
|
|
35
|
+
var o = e.forwardRef(function(n, r) {
|
|
36
|
+
let { component: o, options: s, ...c } = n, [l, u] = e.useState(null);
|
|
37
|
+
e.useImperativeHandle(r, () => ({ focus: () => l?.focus() }), [l]), e.useEffect(() => {
|
|
38
38
|
if (!l) return;
|
|
39
39
|
let e = () => {
|
|
40
|
-
let e =
|
|
41
|
-
l.update({ style:
|
|
40
|
+
let e = i();
|
|
41
|
+
l.update({ style: a(e, c.disabled) });
|
|
42
42
|
}, t = new MutationObserver((t) => {
|
|
43
43
|
for (let n of t) if (n.attributeName === "data-mui-color-scheme" || n.attributeName === "class" || n.attributeName === "style") {
|
|
44
44
|
requestAnimationFrame(e);
|
|
@@ -47,16 +47,16 @@ var s = t.forwardRef(function(e, r) {
|
|
|
47
47
|
});
|
|
48
48
|
return t.observe(document.documentElement, { attributes: !0 }), () => t.disconnect();
|
|
49
49
|
}, [l, c.disabled]);
|
|
50
|
-
let d =
|
|
51
|
-
return /* @__PURE__ */ (
|
|
50
|
+
let d = i();
|
|
51
|
+
return /* @__PURE__ */ t(o, {
|
|
52
52
|
onReady: u,
|
|
53
53
|
options: {
|
|
54
54
|
...s,
|
|
55
|
-
style:
|
|
55
|
+
style: a(d, c.disabled),
|
|
56
56
|
disabled: c.disabled
|
|
57
57
|
},
|
|
58
58
|
...c
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
//#endregion
|
|
62
|
-
export {
|
|
62
|
+
export { o as default };
|
package/dist/s-switch/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Stack as
|
|
1
|
+
import { forwardRef as e, useId as t } from "react";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { Stack as i, Switch as a, Typography as o } from "@mui/material";
|
|
4
4
|
//#region lib/s-switch/s-switch.tsx
|
|
5
|
-
var
|
|
6
|
-
let
|
|
7
|
-
return /* @__PURE__ */ (
|
|
5
|
+
var s = e(({ content: e, ...s }, c) => {
|
|
6
|
+
let l = t(), u = s.id ?? l;
|
|
7
|
+
return /* @__PURE__ */ r(i, {
|
|
8
8
|
alignItems: "center",
|
|
9
9
|
direction: "row",
|
|
10
10
|
display: "flex",
|
|
11
11
|
justifyContent: "space-between",
|
|
12
|
-
children: [e && /* @__PURE__ */ (
|
|
13
|
-
htmlFor:
|
|
14
|
-
children: /* @__PURE__ */ (
|
|
12
|
+
children: [e && /* @__PURE__ */ n("label", {
|
|
13
|
+
htmlFor: u,
|
|
14
|
+
children: /* @__PURE__ */ n(o, {
|
|
15
15
|
variant: "body2",
|
|
16
16
|
children: e
|
|
17
17
|
})
|
|
18
|
-
}), /* @__PURE__ */ (
|
|
19
|
-
ref:
|
|
20
|
-
...
|
|
21
|
-
id:
|
|
18
|
+
}), /* @__PURE__ */ n(a, {
|
|
19
|
+
ref: c,
|
|
20
|
+
...s,
|
|
21
|
+
id: u
|
|
22
22
|
})]
|
|
23
23
|
});
|
|
24
24
|
});
|
package/dist/s-tabs/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { forwardRef as e } from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { Box as n } from "@mui/material";
|
|
4
4
|
//#region lib/s-tabs/s-tab-panel.tsx
|
|
5
|
-
var r = e(
|
|
6
|
-
let l =
|
|
7
|
-
return l || a ? /* @__PURE__ */ (
|
|
5
|
+
var r = e(({ children: e, value: r, index: i, keepMounted: a = !1, sx: o, ...s }, c) => {
|
|
6
|
+
let l = r === i;
|
|
7
|
+
return l || a ? /* @__PURE__ */ t(n, {
|
|
8
8
|
ref: c,
|
|
9
9
|
role: "tabpanel",
|
|
10
10
|
hidden: !l,
|
|
@@ -18,6 +18,6 @@ var r = e(), i = t(({ children: e, value: t, index: i, keepMounted: a = !1, sx:
|
|
|
18
18
|
children: e
|
|
19
19
|
}) : null;
|
|
20
20
|
});
|
|
21
|
-
|
|
21
|
+
r.displayName = "STabPanel";
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
23
|
+
export { r as STabPanel, r as default };
|
package/dist/s-tabs/s-tab.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { forwardRef as e } from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { Tab as n } from "@mui/material";
|
|
4
4
|
//#region lib/s-tabs/s-tab.tsx
|
|
5
|
-
var r = e(
|
|
6
|
-
ref:
|
|
5
|
+
var r = e((e, r) => /* @__PURE__ */ t(n, {
|
|
6
|
+
ref: r,
|
|
7
7
|
...e
|
|
8
8
|
}));
|
|
9
|
-
|
|
9
|
+
r.displayName = "STab";
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { r as default };
|
package/dist/s-tabs/s-tabs.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { Box as
|
|
1
|
+
import e, { forwardRef as t } from "react";
|
|
2
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { Box as a, Tab as o, Tabs as s } from "@mui/material";
|
|
4
4
|
//#region lib/s-tabs/s-tabs.tsx
|
|
5
|
-
var
|
|
6
|
-
let [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}, [
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
ref:
|
|
14
|
-
value:
|
|
15
|
-
onChange:
|
|
16
|
-
...
|
|
17
|
-
children:
|
|
5
|
+
var c = t(({ tabs: t, activeTab: c = 0, onTabChange: l, children: u, tabPanelProps: d, ...f }, p) => {
|
|
6
|
+
let [m, h] = e.useState(c);
|
|
7
|
+
e.useEffect(() => {
|
|
8
|
+
c !== !1 && h(c);
|
|
9
|
+
}, [c]);
|
|
10
|
+
let g = (e, t) => {
|
|
11
|
+
c === !1 && h(t), l?.(e, t);
|
|
12
|
+
}, _ = f.orientation === "vertical", v = /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(s, {
|
|
13
|
+
ref: p,
|
|
14
|
+
value: m,
|
|
15
|
+
onChange: g,
|
|
16
|
+
...f,
|
|
17
|
+
children: t.map((e, t) => /* @__PURE__ */ r(o, {
|
|
18
18
|
label: e.label,
|
|
19
19
|
value: e.value ?? t,
|
|
20
20
|
disabled: e.disabled,
|
|
@@ -23,17 +23,17 @@ var o = e(), s = n(({ tabs: e, activeTab: n = 0, onTabChange: s, children: c, ta
|
|
|
23
23
|
wrapped: e.wrapped,
|
|
24
24
|
...e.tabProps
|
|
25
25
|
}, t))
|
|
26
|
-
}),
|
|
26
|
+
}), u && /* @__PURE__ */ r(a, {
|
|
27
27
|
role: "tabpanel",
|
|
28
28
|
padding: 2,
|
|
29
|
-
...
|
|
30
|
-
children:
|
|
29
|
+
...d,
|
|
30
|
+
children: e.Children.toArray(u)[t.findIndex((e, t) => (e.value ?? t) === m)]
|
|
31
31
|
})] });
|
|
32
|
-
return
|
|
32
|
+
return _ ? /* @__PURE__ */ r(a, {
|
|
33
33
|
display: "flex",
|
|
34
|
-
children:
|
|
35
|
-
}) :
|
|
34
|
+
children: v
|
|
35
|
+
}) : v;
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
c.displayName = "STabs";
|
|
38
38
|
//#endregion
|
|
39
|
-
export {
|
|
39
|
+
export { c as STabs, c as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import "../
|
|
3
|
-
import { t as e } from "../s-text-editor-toolbar-DC-dnSBG.js";
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../s-text-editor-toolbar-ob6vDHU4.js";
|
|
4
3
|
import { STextEditor as t } from "./s-text-editor.js";
|
|
5
4
|
export { e as STextEditorToolbar, t as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import "../
|
|
3
|
-
import { t as e } from "../s-text-editor-toolbar-DC-dnSBG.js";
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../s-text-editor-toolbar-ob6vDHU4.js";
|
|
4
3
|
export { e as STextEditorToolbar };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import { t as e } from "../
|
|
3
|
-
import { t } from "../
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { Link as
|
|
7
|
-
import { Placeholder as
|
|
8
|
-
import { EditorContent as
|
|
9
|
-
import { StarterKit as
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../Box-CCxGQYgC.js";
|
|
3
|
+
import { t } from "../s-text-editor-toolbar-ob6vDHU4.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
import { Link as a } from "@tiptap/extension-link";
|
|
7
|
+
import { Placeholder as o } from "@tiptap/extension-placeholder";
|
|
8
|
+
import { EditorContent as s, useEditor as c } from "@tiptap/react";
|
|
9
|
+
import { StarterKit as l } from "@tiptap/starter-kit";
|
|
10
10
|
//#region lib/s-text-editor/s-text-editor.tsx
|
|
11
|
-
var
|
|
12
|
-
let
|
|
11
|
+
var u = ({ content: u, editable: d = !0, hideToolbar: f, onUpdate: p = () => {}, placeholder: m }) => {
|
|
12
|
+
let h = c({
|
|
13
13
|
extensions: [
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
l,
|
|
15
|
+
o.configure({
|
|
16
16
|
emptyEditorClass: "is-editor-empty",
|
|
17
|
-
placeholder:
|
|
17
|
+
placeholder: m
|
|
18
18
|
}),
|
|
19
|
-
|
|
19
|
+
a.configure({
|
|
20
20
|
openOnClick: !1,
|
|
21
21
|
autolink: !0
|
|
22
22
|
})
|
|
23
23
|
],
|
|
24
|
-
content:
|
|
25
|
-
editable:
|
|
26
|
-
onUpdate:
|
|
24
|
+
content: u,
|
|
25
|
+
editable: d,
|
|
26
|
+
onUpdate: p,
|
|
27
27
|
parseOptions: { preserveWhitespace: "full" }
|
|
28
28
|
});
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
}, [
|
|
29
|
+
return n.useEffect(() => {
|
|
30
|
+
h && h.getHTML() !== u && h.commands.setContent(u);
|
|
31
|
+
}, [u, h]), /* @__PURE__ */ i(e, {
|
|
32
32
|
className: "tiptap-root",
|
|
33
33
|
sx: {
|
|
34
34
|
display: "flex",
|
|
35
35
|
flexDirection: "column",
|
|
36
|
-
...
|
|
36
|
+
...d && {
|
|
37
37
|
border: "1px solid",
|
|
38
38
|
borderColor: "divider",
|
|
39
39
|
borderRadius: 1
|
|
@@ -65,9 +65,9 @@ var l = e(), u = ({ content: e, editable: u = !0, hideToolbar: d, onUpdate: f =
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
children: [
|
|
68
|
+
children: [f ? /* @__PURE__ */ r("div", {}) : /* @__PURE__ */ r(t, { editor: h }), /* @__PURE__ */ r(s, {
|
|
69
69
|
className: "tiptap-container",
|
|
70
|
-
editor:
|
|
70
|
+
editor: h
|
|
71
71
|
})]
|
|
72
72
|
});
|
|
73
73
|
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { n as e } from "./Menu-Dhh4e9H1.js";
|
|
2
|
+
import { t } from "./Stack-D-aoKnaS.js";
|
|
3
|
+
import { a as n, i as r, t as i } from "./Select-C5bKKis6.js";
|
|
4
|
+
import { t as a } from "./createSvgIcon-KjKEsKNV.js";
|
|
5
|
+
import { t as o } from "./s-text-field-ni42E-1x.js";
|
|
6
|
+
import * as s from "react";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
import { MenuItem as u } from "@mui/material";
|
|
9
|
+
//#region ../../node_modules/@mui/icons-material/esm/Code.js
|
|
10
|
+
var d = a(/* @__PURE__ */ c("path", { d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z" }), "Code"), f = a(/* @__PURE__ */ c("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5" }), "FormatBold"), p = a(/* @__PURE__ */ c("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }), "FormatItalic"), m = a(/* @__PURE__ */ c("path", { d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z" }), "FormatListBulleted"), h = a(/* @__PURE__ */ c("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z" }), "FormatListNumbered"), g = a(/* @__PURE__ */ c("path", { d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5" }), "Link"), _ = a(/* @__PURE__ */ c("path", { d: "M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z" }), "StrikethroughS"), v = ({ editor: n }) => {
|
|
11
|
+
let [a, v] = s.useState(!1), [x, S] = s.useState(null), [C, w] = s.useState("");
|
|
12
|
+
return /* @__PURE__ */ l(s.Fragment, { children: [/* @__PURE__ */ c(t, {
|
|
13
|
+
className: "tiptap-toolbar",
|
|
14
|
+
spacing: 1,
|
|
15
|
+
sx: {
|
|
16
|
+
borderBottom: "1px solid",
|
|
17
|
+
borderColor: "divider",
|
|
18
|
+
p: "8px",
|
|
19
|
+
minHeight: "57px"
|
|
20
|
+
},
|
|
21
|
+
children: n ? /* @__PURE__ */ l(t, {
|
|
22
|
+
direction: "row",
|
|
23
|
+
spacing: .5,
|
|
24
|
+
sx: {
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
flexWrap: "wrap"
|
|
27
|
+
},
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ l(i, {
|
|
30
|
+
onChange: (e) => {
|
|
31
|
+
let t = e.target.value;
|
|
32
|
+
if (t) {
|
|
33
|
+
if (t === "p") {
|
|
34
|
+
n.chain().focus().setParagraph().run();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (t.startsWith("h")) {
|
|
38
|
+
let e = parseInt(t.replace("h", ""));
|
|
39
|
+
!isNaN(e) && e >= 1 && e <= 6 && n.chain().focus().setHeading({ level: e }).run();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
value: y(n),
|
|
44
|
+
children: [/* @__PURE__ */ c(u, {
|
|
45
|
+
disabled: !n.can().chain().focus().setParagraph().run(),
|
|
46
|
+
value: "p",
|
|
47
|
+
children: "Paragraph"
|
|
48
|
+
}), [
|
|
49
|
+
1,
|
|
50
|
+
2,
|
|
51
|
+
3,
|
|
52
|
+
4,
|
|
53
|
+
5,
|
|
54
|
+
6
|
|
55
|
+
].map((e) => /* @__PURE__ */ l(u, {
|
|
56
|
+
disabled: !n.can().chain().focus().setHeading({ level: e }).run(),
|
|
57
|
+
value: `h${e}`,
|
|
58
|
+
children: ["Heading ", e]
|
|
59
|
+
}, e))]
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ c(b, {
|
|
62
|
+
active: n.isActive("bold"),
|
|
63
|
+
disabled: !n.can().chain().focus().toggleBold().run(),
|
|
64
|
+
onClick: () => {
|
|
65
|
+
n.chain().focus().toggleBold().run();
|
|
66
|
+
},
|
|
67
|
+
children: /* @__PURE__ */ c(f, {})
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ c(b, {
|
|
70
|
+
active: n.isActive("italic"),
|
|
71
|
+
disabled: !n.can().chain().focus().toggleItalic().run(),
|
|
72
|
+
onClick: () => {
|
|
73
|
+
n.chain().focus().toggleItalic().run();
|
|
74
|
+
},
|
|
75
|
+
children: /* @__PURE__ */ c(p, {})
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ c(b, {
|
|
78
|
+
active: n.isActive("strike"),
|
|
79
|
+
disabled: !n.can().chain().focus().toggleStrike().run(),
|
|
80
|
+
onClick: () => {
|
|
81
|
+
n.chain().focus().toggleStrike().run();
|
|
82
|
+
},
|
|
83
|
+
children: /* @__PURE__ */ c(_, {})
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ c(b, {
|
|
86
|
+
active: n.isActive("codeBlock"),
|
|
87
|
+
disabled: !n.can().chain().focus().toggleCodeBlock().run(),
|
|
88
|
+
onClick: () => {
|
|
89
|
+
n.chain().focus().toggleCodeBlock();
|
|
90
|
+
},
|
|
91
|
+
children: /* @__PURE__ */ c(d, {})
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ c(b, {
|
|
94
|
+
active: n.isActive("bulletList"),
|
|
95
|
+
disabled: !n.can().chain().focus().toggleBulletList().run(),
|
|
96
|
+
onClick: () => {
|
|
97
|
+
n.chain().focus().toggleBulletList().run();
|
|
98
|
+
},
|
|
99
|
+
children: /* @__PURE__ */ c(m, {})
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ c(b, {
|
|
102
|
+
active: n.isActive("orderedList"),
|
|
103
|
+
disabled: !n.can().chain().focus().toggleOrderedList().run(),
|
|
104
|
+
onClick: () => {
|
|
105
|
+
n.chain().focus().toggleOrderedList().run();
|
|
106
|
+
},
|
|
107
|
+
children: /* @__PURE__ */ c(h, {})
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ c(b, {
|
|
110
|
+
onClick: (e) => {
|
|
111
|
+
w(n.getAttributes("link").href ?? ""), S(e.currentTarget), v(!0);
|
|
112
|
+
},
|
|
113
|
+
children: /* @__PURE__ */ c(g, {})
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ c(b, {
|
|
116
|
+
active: n.isActive("link"),
|
|
117
|
+
disabled: !n.can().chain().focus().unsetLink().run(),
|
|
118
|
+
onClick: () => {
|
|
119
|
+
n.chain().focus().unsetLink().run();
|
|
120
|
+
},
|
|
121
|
+
children: /* @__PURE__ */ c(g, {})
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
}) : null
|
|
125
|
+
}), /* @__PURE__ */ c(e, {
|
|
126
|
+
anchorEl: x,
|
|
127
|
+
anchorOrigin: {
|
|
128
|
+
horizontal: "left",
|
|
129
|
+
vertical: "bottom"
|
|
130
|
+
},
|
|
131
|
+
onClose: () => {
|
|
132
|
+
v(!1), S(null), w("");
|
|
133
|
+
},
|
|
134
|
+
open: a,
|
|
135
|
+
slotProps: { paper: { sx: { p: 2 } } },
|
|
136
|
+
children: /* @__PURE__ */ c(r, { children: /* @__PURE__ */ c(o, {
|
|
137
|
+
name: "url",
|
|
138
|
+
label: "URL",
|
|
139
|
+
onChange: (e) => {
|
|
140
|
+
w(e.target.value);
|
|
141
|
+
},
|
|
142
|
+
onKeyUp: (e) => {
|
|
143
|
+
if (e.key === "Enter") {
|
|
144
|
+
if (C === "") {
|
|
145
|
+
n?.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
n?.chain().focus().setLink({ href: C }).run(), v(!1), S(null), w("");
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
value: C
|
|
152
|
+
}) })
|
|
153
|
+
})] });
|
|
154
|
+
};
|
|
155
|
+
function y(e) {
|
|
156
|
+
if (e.isActive("paragraph")) return "p";
|
|
157
|
+
for (let t of [
|
|
158
|
+
1,
|
|
159
|
+
2,
|
|
160
|
+
3,
|
|
161
|
+
4,
|
|
162
|
+
5,
|
|
163
|
+
6
|
|
164
|
+
]) if (e.isActive("heading", { level: t })) return `h${t}`;
|
|
165
|
+
return "p";
|
|
166
|
+
}
|
|
167
|
+
var b = s.forwardRef(function({ active: e, children: t, disabled: r, onClick: i }, a) {
|
|
168
|
+
return /* @__PURE__ */ c(n, {
|
|
169
|
+
color: e ? "primary" : "inherit",
|
|
170
|
+
disabled: r,
|
|
171
|
+
onClick: i,
|
|
172
|
+
ref: a,
|
|
173
|
+
children: t
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
//#endregion
|
|
177
|
+
export { v as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../createTheme-
|
|
2
|
-
import "../
|
|
3
|
-
import { t as e } from "../s-text-field-C2WdBxNO.js";
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../s-text-field-ni42E-1x.js";
|
|
4
3
|
export { e as STextField, e as default };
|