@solostylist/ui-kit 1.0.225 → 1.0.226
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-DONVUi9Q.js} +1 -1
- package/dist/{ButtonBase-Bo6ysVGS.js → ButtonBase-BDefit5I.js} +100 -99
- package/dist/{ChevronRight-OLNOfW9P.js → ChevronRight-cBbrlMYh.js} +1 -1
- package/dist/{Close-Bj2HYB9Q.js → Close-DRS0T6Yu.js} +1 -1
- package/dist/{Collapse-CnXmaDqT.js → Collapse-Dtji6IrM.js} +4 -3
- package/dist/{ContentCopy-Br2p19dq.js → ContentCopy-C4mVqexq.js} +1 -1
- package/dist/{Download-BhSXOhCI.js → Download-D277qwl2.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-DMZWdEWz.js} +6 -6
- package/dist/{InfoOutlined-C1AW3f5V.js → InfoOutlined-BCzG-5py.js} +1 -1
- package/dist/{Menu-C-0KEauj.js → Menu-CbHevx8q.js} +20 -20
- package/dist/{MenuItem-DWivWkNb.js → MenuItem-CCClg9Si.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-Cy7rReyx.js} +1 -1
- package/dist/{Typography-EsraKPZO.js → Typography-DqtTB0ZJ.js} +2 -2
- package/dist/{UnfoldMoreRounded-pz7NMMy3.js → UnfoldMoreRounded-Cbt8Oi8S.js} +1 -1
- package/dist/{autocomplete-qLj7AqcP.js → autocomplete-Du0flrk6.js} +1 -1
- package/dist/{avatar-BuMhUthq.js → avatar-DQtjHpOs.js} +2 -2
- package/dist/{checkbox-B95Vlykq.js → checkbox-BGA2cVbl.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-C1jHkjgt.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-D2VsBSgb.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-S6CRrrpW.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-DNptuBb0.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-Bsvsh45G.js} +4 -6
- 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-CH0zKaz-.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-ByNQ4Zq5.js} +1 -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-DF580Qxk.js} +13 -19
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- 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-B8llaX-A.js} +9 -9
- 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-CLncO3oo.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-Dy1fX3rI.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-CbaOf3_3.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-hhRD4727.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-BKK0r8Kh.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-DDO9UEu_.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-f0OI1oqM.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-BqWS_5Bs.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-DrQ8v-4J.js} +45 -44
- 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-DLSDoq7u.js} +20 -19
- 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-DeY0K6MC.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-B0KHb2wu.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-Beuy9MLR.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/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 +134 -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 +27 -0
- package/dist/theme/components/month-calendar.js +14 -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/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 +36 -0
- package/dist/theme/components/year-calendar.js +17 -0
- package/dist/theme/theme-primitives.d.ts +36 -0
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-D2vHHGiX.js → theme-primitives-7ruiI7gY.js} +10 -3
- package/dist/{toggle-button-group-ABwIhV4P.js → toggle-button-group-Dx9fvVok.js} +4 -4
- package/dist/{toggle-button-BUsRxHn0.js → toggle-button-j6VLaPoa.js} +3 -3
- package/dist/tool-bar-action-buttons-B4QhqdK_.js +50 -0
- package/dist/tool-bar-image-input-BKFAtyJ1.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-C8toWhEP.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-DPzQcJz-.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-BfRVjiBm.js} +0 -0
- /package/dist/{iconButtonClasses-9jjSQ9-U.js → iconButtonClasses-LyjwljJq.js} +0 -0
- /package/dist/{inputAdornmentClasses-VKwluNTs.js → inputAdornmentClasses-DHmz00nZ.js} +0 -0
- /package/dist/{objectWithoutPropertiesLoose-BpY-kC5L.js → objectWithoutPropertiesLoose-kj3TmhoA.js} +0 -0
- /package/dist/{outlinedInputClasses-Cz4pnn0X.js → outlinedInputClasses-Z5R6RJE3.js} +0 -0
- /package/dist/{selectClasses-DvT1febA.js → selectClasses-vjNpSSyQ.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-CspzYrIn.js} +0 -0
- /package/dist/{useControlled-2-C6cXjG.js → useControlled-DuSwFVhD.js} +0 -0
- /package/dist/{useFormControl-B4z6ONhx.js → useFormControl-bYnTwZE5.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { SSkeleton as e } from "../s-skeleton/s-skeleton.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { Pagination as i, Stack as a, useMediaQuery as o, useTheme as s } from "@mui/material";
|
|
5
5
|
//#region lib/s-pagination/s-pagination.tsx
|
|
6
|
-
var
|
|
6
|
+
var c = ({ style: t }) => /* @__PURE__ */ r(a, {
|
|
7
7
|
direction: "row",
|
|
8
8
|
style: t,
|
|
9
9
|
sx: {
|
|
10
|
+
display: "inline-flex",
|
|
10
11
|
flexWrap: "wrap",
|
|
11
|
-
gap: 1
|
|
12
|
-
justifyContent: "center"
|
|
12
|
+
gap: 1
|
|
13
13
|
},
|
|
14
14
|
children: [
|
|
15
15
|
/* @__PURE__ */ n(e, { component: "icon-button" }),
|
|
@@ -19,17 +19,14 @@ var l = ({ style: t }) => /* @__PURE__ */ r(o, {
|
|
|
19
19
|
}),
|
|
20
20
|
/* @__PURE__ */ n(e, { component: "icon-button" })
|
|
21
21
|
]
|
|
22
|
-
}),
|
|
23
|
-
let
|
|
24
|
-
return r === 0 ? /* @__PURE__ */ n(t, {}) : e ? /* @__PURE__ */ n(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
count: r,
|
|
29
|
-
...o
|
|
30
|
-
})
|
|
22
|
+
}), l = ({ loading: e, count: r = 0, ...a }) => {
|
|
23
|
+
let l = o(s().breakpoints.down("sm"));
|
|
24
|
+
return r === 0 ? /* @__PURE__ */ n(t, {}) : e ? /* @__PURE__ */ n(c, { style: a.style }) : /* @__PURE__ */ n(i, {
|
|
25
|
+
size: l ? "small" : "medium",
|
|
26
|
+
count: r,
|
|
27
|
+
...a
|
|
31
28
|
});
|
|
32
29
|
};
|
|
33
|
-
|
|
30
|
+
l.displayName = "SPagination";
|
|
34
31
|
//#endregion
|
|
35
|
-
export {
|
|
32
|
+
export { l as SPagination, l as default };
|
package/dist/s-review/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-review-
|
|
1
|
+
import { t as e } from "../s-review-f0OI1oqM.js";
|
|
2
2
|
export { e as SReview, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-review-
|
|
1
|
+
import { t as e } from "../s-review-f0OI1oqM.js";
|
|
2
2
|
export { e as SReview, e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e } from "./utils-B5Rl6Zwv.js";
|
|
2
|
-
import { t } from "./createSvgIcon-
|
|
3
|
-
import { n } from "./s-image-modal-
|
|
2
|
+
import { t } from "./createSvgIcon-HW-tbFcL.js";
|
|
3
|
+
import { t as n } from "./s-image-modal-hhRD4727.js";
|
|
4
4
|
import r from "./s-lazy-image/s-lazy-image.js";
|
|
5
5
|
import { SSkeleton as i } from "./s-skeleton/s-skeleton.js";
|
|
6
6
|
import { SAvatar as a } from "./s-avatar/s-avatar.js";
|
|
@@ -116,34 +116,25 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
|
|
|
116
116
|
}), /* @__PURE__ */ d(f, {
|
|
117
117
|
sx: { flex: 1 },
|
|
118
118
|
children: [
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
sx: {
|
|
123
|
-
alignItems: "center",
|
|
124
|
-
mb: 1
|
|
125
|
-
},
|
|
126
|
-
children: [/* @__PURE__ */ u(g, { children: y }), /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(g, {
|
|
127
|
-
variant: "caption",
|
|
128
|
-
children: $
|
|
129
|
-
}) })]
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ u(f, {
|
|
132
|
-
sx: { mb: 1 },
|
|
133
|
-
children: /* @__PURE__ */ u(o, {
|
|
134
|
-
value: x,
|
|
135
|
-
max: j,
|
|
136
|
-
readOnly: M
|
|
137
|
-
})
|
|
119
|
+
/* @__PURE__ */ u(g, {
|
|
120
|
+
variant: "subtitle1",
|
|
121
|
+
children: y
|
|
138
122
|
}),
|
|
123
|
+
/* @__PURE__ */ u(f, { children: /* @__PURE__ */ u(o, {
|
|
124
|
+
value: x,
|
|
125
|
+
max: j,
|
|
126
|
+
readOnly: M
|
|
127
|
+
}) }),
|
|
139
128
|
/* @__PURE__ */ u(g, {
|
|
140
|
-
variant: "
|
|
141
|
-
sx: {
|
|
142
|
-
mb: 2,
|
|
143
|
-
lineHeight: 1.6
|
|
144
|
-
},
|
|
129
|
+
variant: "body1",
|
|
130
|
+
sx: { lineHeight: 1.6 },
|
|
145
131
|
children: S
|
|
146
132
|
}),
|
|
133
|
+
/* @__PURE__ */ u(f, { children: /* @__PURE__ */ u(g, {
|
|
134
|
+
variant: "caption",
|
|
135
|
+
sx: { mb: 2 },
|
|
136
|
+
children: $
|
|
137
|
+
}) }),
|
|
147
138
|
w && w.length > 0 && /* @__PURE__ */ u(h, {
|
|
148
139
|
direction: "row",
|
|
149
140
|
spacing: 1,
|
|
@@ -179,7 +170,7 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
|
|
|
179
170
|
},
|
|
180
171
|
children: [
|
|
181
172
|
/* @__PURE__ */ u(g, {
|
|
182
|
-
variant: "
|
|
173
|
+
variant: "body2",
|
|
183
174
|
sx: { mr: 2 },
|
|
184
175
|
children: "Was this review helpful?"
|
|
185
176
|
}),
|
|
@@ -8,7 +8,7 @@ function a(e) {
|
|
|
8
8
|
return t.isValidElement(e) && e.key != null ? e.key : typeof e == "string" || typeof e == "number" ? e : null;
|
|
9
9
|
}
|
|
10
10
|
function o(e, t, n, r) {
|
|
11
|
-
return
|
|
11
|
+
return t ? e ? "visible" : "hidden" : e ? r : n;
|
|
12
12
|
}
|
|
13
13
|
var s = ({ children: s, duration: c = .6, ease: l = "easeOut", threshold: u, rootMargin: d, delay: f, direction: p, distance: m, scale: h = !0, rotate: g = !1, stagger: _ = !0, staggerDelay: v = .1, sx: y, ...b }) => {
|
|
14
14
|
let { ref: x, animate: S, initialPosition: C, finalPosition: w } = e({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../styled-BTDmdi4c.js";
|
|
2
|
-
import { t } from "../ArrowUpward-
|
|
2
|
+
import { t } from "../ArrowUpward-DONVUi9Q.js";
|
|
3
3
|
import { useIsPassedPosition as n } from "../hooks/use-is-passed-position.js";
|
|
4
4
|
import { SIconButton as r } from "../s-icon-button/s-icon-button.js";
|
|
5
5
|
import i from "react";
|
package/dist/s-select/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-select-
|
|
1
|
+
import { t as e } from "../s-select-BqWS_5Bs.js";
|
|
2
2
|
export { e as SSelect, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-select-
|
|
1
|
+
import { t as e } from "../s-select-BqWS_5Bs.js";
|
|
2
2
|
export { e as SSelect, e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createSvgIcon-
|
|
1
|
+
import { t as e } from "./createSvgIcon-HW-tbFcL.js";
|
|
2
2
|
import { SForm as t } from "./s-form/s-form.js";
|
|
3
3
|
import { forwardRef as n, useState as r } from "react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -6,7 +6,7 @@ var s = o(n, { shouldForwardProp: (e) => e !== "selected" })(({ theme: e, select
|
|
|
6
6
|
display: "flex",
|
|
7
7
|
alignItems: "center",
|
|
8
8
|
justifyContent: "space-between",
|
|
9
|
-
borderRadius:
|
|
9
|
+
borderRadius: e.radius.md,
|
|
10
10
|
padding: e.spacing(1),
|
|
11
11
|
paddingLeft: e.spacing(2),
|
|
12
12
|
paddingRight: e.spacing(2),
|
|
@@ -20,16 +20,7 @@ var s = o(n, { shouldForwardProp: (e) => e !== "selected" })(({ theme: e, select
|
|
|
20
20
|
return /* @__PURE__ */ t(n, { children: [/* @__PURE__ */ t(s, {
|
|
21
21
|
selected: o,
|
|
22
22
|
onClick: () => l(a.id),
|
|
23
|
-
children: [/* @__PURE__ */ e(
|
|
24
|
-
sx: {
|
|
25
|
-
display: "flex",
|
|
26
|
-
alignItems: "center",
|
|
27
|
-
gap: 2,
|
|
28
|
-
flex: 1,
|
|
29
|
-
borderRadius: 8
|
|
30
|
-
},
|
|
31
|
-
children: u(a, o)
|
|
32
|
-
}), f && /* @__PURE__ */ e(i, { checked: o })]
|
|
23
|
+
children: [u(a, o), f && /* @__PURE__ */ e(i, { checked: o })]
|
|
33
24
|
}), p && /* @__PURE__ */ e(r, {
|
|
34
25
|
in: o,
|
|
35
26
|
children: /* @__PURE__ */ e(n, {
|
|
@@ -9,24 +9,32 @@ var i = (n) => {
|
|
|
9
9
|
if (!e) return;
|
|
10
10
|
let t = e.getContext("2d");
|
|
11
11
|
if (!t) return;
|
|
12
|
-
let i, a = -1e3,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
let i, a = 0, o = 0, s = -1e3, c = -1e3, l = e.parentElement, u = l ?? e, d = l?.style.position, f = () => {
|
|
13
|
+
let n = u.getBoundingClientRect(), r = window.devicePixelRatio || 1;
|
|
14
|
+
a = n.width, o = n.height, e.width = Math.max(1, Math.round(a * r)), e.height = Math.max(1, Math.round(o * r)), t.setTransform(r, 0, 0, r, 0, 0);
|
|
15
|
+
}, p = (t) => {
|
|
16
|
+
let n = e.getBoundingClientRect(), r = t.clientX - n.left, i = t.clientY - n.top;
|
|
17
|
+
if (r < 0 || r > n.width || i < 0 || i > n.height) {
|
|
18
|
+
s = -1e3, c = -1e3;
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
s = r, c = i;
|
|
22
|
+
}, m = () => {
|
|
23
|
+
s = -1e3, c = -1e3;
|
|
24
|
+
}, h = (e) => {
|
|
19
25
|
let t = parseInt(e.slice(1), 16);
|
|
20
26
|
return `${t >> 16 & 255},${t >> 8 & 255},${t & 255}`;
|
|
21
|
-
},
|
|
22
|
-
if (t.clearRect(0, 0,
|
|
23
|
-
let
|
|
24
|
-
|
|
27
|
+
}, g = () => {
|
|
28
|
+
if (t.clearRect(0, 0, a, o), s !== -1e3 && c !== -1e3) {
|
|
29
|
+
let e = t.createRadialGradient(s, c, 0, s, c, n.radius || 200), r = h(n.color);
|
|
30
|
+
e.addColorStop(0, `rgba(${r}, ${n.brightness})`), e.addColorStop(1, "rgba(0,0,0,0)"), t.fillStyle = e, t.fillRect(0, 0, a, o);
|
|
25
31
|
}
|
|
26
|
-
i = requestAnimationFrame(
|
|
32
|
+
i = requestAnimationFrame(g);
|
|
27
33
|
};
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
l && window.getComputedStyle(l).position === "static" && (l.style.position = "relative"), f();
|
|
35
|
+
let _ = new ResizeObserver(f);
|
|
36
|
+
return _.observe(u), window.addEventListener("resize", f), u.addEventListener("mousemove", p), u.addEventListener("mouseleave", m), i = requestAnimationFrame(g), () => {
|
|
37
|
+
_.disconnect(), window.removeEventListener("resize", f), u.removeEventListener("mousemove", p), u.removeEventListener("mouseleave", m), l && d !== void 0 && (l.style.position = d), cancelAnimationFrame(i);
|
|
30
38
|
};
|
|
31
39
|
}, [
|
|
32
40
|
n.radius,
|
|
@@ -43,7 +51,7 @@ var i = (n) => {
|
|
|
43
51
|
ref: i(e),
|
|
44
52
|
className: t,
|
|
45
53
|
sx: {
|
|
46
|
-
position: "
|
|
54
|
+
position: "absolute",
|
|
47
55
|
top: 0,
|
|
48
56
|
left: 0,
|
|
49
57
|
pointerEvents: "none",
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { CardCvcElement } from '@stripe/react-stripe-js';
|
|
2
1
|
import { StripeTextFieldProps } from './s-stripe';
|
|
3
|
-
export declare
|
|
4
|
-
export declare namespace SStripeCVC {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
2
|
+
export declare const SStripeCVC: import('react').ForwardRefExoticComponent<Omit<StripeTextFieldProps<import('@stripe/react-stripe-js').CardCvcElementComponent>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
3
|
export default SStripeCVC;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { StripeTextField as e } from "./s-stripe.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { CardCvcElement as r } from "@stripe/react-stripe-js";
|
|
4
5
|
//#region lib/s-stripe/s-stripe-cvc.tsx
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
r.displayName = "SStripeCVC";
|
|
6
|
+
var i = t((t, i) => /* @__PURE__ */ n(e, {
|
|
7
|
+
ref: i,
|
|
8
|
+
label: "CVC",
|
|
9
|
+
stripeElement: r,
|
|
10
|
+
...t
|
|
11
|
+
}));
|
|
12
|
+
i.displayName = "SStripeCVC";
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { i as SStripeCVC, i as default };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { CardExpiryElement } from '@stripe/react-stripe-js';
|
|
2
1
|
import { StripeTextFieldProps } from './s-stripe';
|
|
3
|
-
export declare
|
|
4
|
-
export declare namespace SStripeExpiry {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
2
|
+
export declare const SStripeExpiry: import('react').ForwardRefExoticComponent<Omit<StripeTextFieldProps<import('@stripe/react-stripe-js').CardExpiryElementComponent>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
3
|
export default SStripeExpiry;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { StripeTextField as e } from "./s-stripe.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { CardExpiryElement as r } from "@stripe/react-stripe-js";
|
|
4
5
|
//#region lib/s-stripe/s-stripe-expiry.tsx
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
r.displayName = "SStripeExpiry";
|
|
6
|
+
var i = t((t, i) => /* @__PURE__ */ n(e, {
|
|
7
|
+
ref: i,
|
|
8
|
+
label: "Expiration",
|
|
9
|
+
stripeElement: r,
|
|
10
|
+
...t
|
|
11
|
+
}));
|
|
12
|
+
i.displayName = "SStripeExpiry";
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { i as SStripeExpiry, i as default };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { CardNumberElement } from '@stripe/react-stripe-js';
|
|
2
1
|
import { StripeTextFieldProps } from './s-stripe';
|
|
3
|
-
export declare
|
|
4
|
-
export declare namespace SStripeNumber {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
2
|
+
export declare const SStripeNumber: import('react').ForwardRefExoticComponent<Omit<StripeTextFieldProps<import('@stripe/react-stripe-js').CardNumberElementComponent>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
3
|
export default SStripeNumber;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { StripeTextField as e } from "./s-stripe.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { CardNumberElement as r } from "@stripe/react-stripe-js";
|
|
4
5
|
//#region lib/s-stripe/s-stripe-number.tsx
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
r.displayName = "SStripeNumber";
|
|
6
|
+
var i = t((t, i) => /* @__PURE__ */ n(e, {
|
|
7
|
+
ref: i,
|
|
8
|
+
label: "Card Number",
|
|
9
|
+
stripeElement: r,
|
|
10
|
+
...t
|
|
11
|
+
}));
|
|
12
|
+
i.displayName = "SStripeNumber";
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { i as SStripeNumber, i as default };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { AuBankAccountElement, CardCvcElement, CardExpiryElement, CardNumberElement, IbanElement } from '@stripe/react-stripe-js';
|
|
2
3
|
import { STextFieldProps } from '../s-text-field';
|
|
3
4
|
/**
|
|
@@ -19,8 +20,14 @@ export interface StripeTextFieldProps<T extends StripeElement> extends Omit<STex
|
|
|
19
20
|
/** The Stripe Element component to render */
|
|
20
21
|
stripeElement?: T;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Type definition for StripeTextField component with generic Stripe Element support
|
|
25
|
+
*/
|
|
26
|
+
export interface StripeTextFieldComponent {
|
|
27
|
+
<T extends StripeElement>(props: StripeTextFieldProps<T> & {
|
|
28
|
+
ref?: React.ForwardedRef<HTMLDivElement>;
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
displayName?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const StripeTextField: StripeTextFieldComponent;
|
|
26
33
|
export default StripeTextField;
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import { t as e } from "../s-text-field-
|
|
1
|
+
import { t as e } from "../s-text-field-DLSDoq7u.js";
|
|
2
2
|
import t from "./stripe-input.js";
|
|
3
|
-
import {
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
5
|
//#region lib/s-stripe/s-stripe.tsx
|
|
5
|
-
var
|
|
6
|
-
let { helperText:
|
|
7
|
-
return /* @__PURE__ */
|
|
6
|
+
var i = n((n, i) => {
|
|
7
|
+
let { helperText: a, slotProps: o, inputProps: s, error: c, labelErrorMessage: l, stripeElement: u, onChange: d, ...f } = n, p = typeof o?.input == "object" ? o.input.inputProps : void 0;
|
|
8
|
+
return /* @__PURE__ */ r(e, {
|
|
9
|
+
ref: i,
|
|
8
10
|
slotProps: {
|
|
9
11
|
inputLabel: {
|
|
10
|
-
...
|
|
12
|
+
...o?.inputLabel,
|
|
11
13
|
shrink: !0
|
|
12
14
|
},
|
|
13
15
|
input: {
|
|
14
|
-
...
|
|
16
|
+
...o?.input,
|
|
15
17
|
inputProps: {
|
|
16
|
-
...
|
|
17
|
-
...
|
|
18
|
-
component:
|
|
18
|
+
...s,
|
|
19
|
+
...p,
|
|
20
|
+
component: u
|
|
19
21
|
},
|
|
20
22
|
inputComponent: t
|
|
21
23
|
}
|
|
22
24
|
},
|
|
23
|
-
error:
|
|
24
|
-
helperText:
|
|
25
|
-
onChange:
|
|
26
|
-
...
|
|
25
|
+
error: c,
|
|
26
|
+
helperText: c ? l : a,
|
|
27
|
+
onChange: d,
|
|
28
|
+
...f
|
|
27
29
|
});
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
+
});
|
|
31
|
+
i.displayName = "StripeTextField";
|
|
30
32
|
//#endregion
|
|
31
|
-
export {
|
|
33
|
+
export { i as StripeTextField, i as default };
|
|
@@ -1,27 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { t as e } from "../theme-primitives-7ruiI7gY.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
4
|
import '../assets/stripe-input.css';//#region lib/s-stripe/stripe-input.tsx
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
function r(e) {
|
|
6
|
+
let t = e.match(/^hsl\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*\)$/i);
|
|
7
|
+
if (!t) return e;
|
|
8
|
+
let n = Number(t[1]), r = Number(t[2]) / 100, i = Number(t[3]) / 100, a = (e) => {
|
|
9
|
+
let t = (e + n / 30) % 12, a = i - r * Math.min(i, 1 - i) * Math.max(-1, Math.min(t - 3, 9 - t, 1));
|
|
10
|
+
return Math.round(255 * a).toString(16).padStart(2, "0");
|
|
11
|
+
};
|
|
12
|
+
return `#${a(0)}${a(8)}${a(4)}`;
|
|
13
|
+
}
|
|
14
|
+
function i(t) {
|
|
15
|
+
let { palette: n } = e[t];
|
|
16
|
+
return {
|
|
17
|
+
text: r(n.text.primary),
|
|
18
|
+
textSecondary: r(n.text.secondary),
|
|
19
|
+
placeholder: r(n.text.secondary),
|
|
20
|
+
error: r(n.error.main)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
var a = {
|
|
24
|
+
dark: i("dark"),
|
|
25
|
+
light: i("light")
|
|
17
26
|
};
|
|
18
|
-
function
|
|
27
|
+
function o() {
|
|
19
28
|
return typeof window > "u" ? "dark" : document.documentElement.getAttribute("data-mui-color-scheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
20
29
|
}
|
|
21
|
-
function
|
|
22
|
-
return
|
|
30
|
+
function s() {
|
|
31
|
+
return a[o()];
|
|
23
32
|
}
|
|
24
|
-
function
|
|
33
|
+
function c(e, t) {
|
|
25
34
|
return {
|
|
26
35
|
base: {
|
|
27
36
|
fontFamily: "Outfit, sans-serif",
|
|
@@ -32,13 +41,13 @@ function a(e, t) {
|
|
|
32
41
|
invalid: { color: e.error }
|
|
33
42
|
};
|
|
34
43
|
}
|
|
35
|
-
var
|
|
36
|
-
let { component:
|
|
37
|
-
|
|
44
|
+
var l = t.forwardRef(function(e, r) {
|
|
45
|
+
let { component: i, options: a, ...o } = e, [l, u] = t.useState(null);
|
|
46
|
+
t.useImperativeHandle(r, () => ({ focus: () => l?.focus() }), [l]), t.useEffect(() => {
|
|
38
47
|
if (!l) return;
|
|
39
48
|
let e = () => {
|
|
40
|
-
let e =
|
|
41
|
-
l.update({ style:
|
|
49
|
+
let e = s();
|
|
50
|
+
l.update({ style: c(e, o.disabled) });
|
|
42
51
|
}, t = new MutationObserver((t) => {
|
|
43
52
|
for (let n of t) if (n.attributeName === "data-mui-color-scheme" || n.attributeName === "class" || n.attributeName === "style") {
|
|
44
53
|
requestAnimationFrame(e);
|
|
@@ -46,17 +55,17 @@ var o = e.forwardRef(function(n, r) {
|
|
|
46
55
|
}
|
|
47
56
|
});
|
|
48
57
|
return t.observe(document.documentElement, { attributes: !0 }), () => t.disconnect();
|
|
49
|
-
}, [l,
|
|
50
|
-
let d =
|
|
51
|
-
return /* @__PURE__ */
|
|
58
|
+
}, [l, o.disabled]);
|
|
59
|
+
let d = s();
|
|
60
|
+
return /* @__PURE__ */ n(i, {
|
|
52
61
|
onReady: u,
|
|
53
62
|
options: {
|
|
54
|
-
...
|
|
55
|
-
style:
|
|
56
|
-
disabled:
|
|
63
|
+
...a,
|
|
64
|
+
style: c(d, o.disabled),
|
|
65
|
+
disabled: o.disabled
|
|
57
66
|
},
|
|
58
|
-
...
|
|
67
|
+
...o
|
|
59
68
|
});
|
|
60
69
|
});
|
|
61
70
|
//#endregion
|
|
62
|
-
export {
|
|
71
|
+
export { l as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-text-editor-toolbar-
|
|
1
|
+
import { t as e } from "../s-text-editor-toolbar-DrQ8v-4J.js";
|
|
2
2
|
export { e as STextEditorToolbar };
|
|
@@ -15,8 +15,5 @@ export interface STextEditorProps {
|
|
|
15
15
|
/** Placeholder text shown when editor is empty */
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
}
|
|
18
|
-
export declare const STextEditor:
|
|
19
|
-
({ content, editable, hideToolbar, onUpdate, placeholder, }: STextEditorProps): React.JSX.Element;
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
18
|
+
export declare const STextEditor: React.ForwardRefExoticComponent<STextEditorProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
19
|
export default STextEditor;
|
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
import { tint as e } from "../theme/utils.js";
|
|
2
2
|
import { t } from "../Box-BlmynALm.js";
|
|
3
|
-
import { t as n } from "../s-text-editor-toolbar-
|
|
3
|
+
import { t as n } from "../s-text-editor-toolbar-DrQ8v-4J.js";
|
|
4
4
|
import * as r from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { forwardRef as i } from "react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
import { Placeholder as s } from "@tiptap/extension-placeholder";
|
|
8
8
|
import { EditorContent as c, useEditor as l } from "@tiptap/react";
|
|
9
9
|
import { StarterKit as u } from "@tiptap/starter-kit";
|
|
10
10
|
//#region lib/s-text-editor/s-text-editor.tsx
|
|
11
|
-
var d = ({ content:
|
|
11
|
+
var d = i(({ content: i, editable: d = !0, hideToolbar: f, onUpdate: p = () => {}, placeholder: m }, h) => {
|
|
12
12
|
let g = l({
|
|
13
|
-
extensions: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
],
|
|
24
|
-
content: d,
|
|
25
|
-
editable: f,
|
|
26
|
-
onUpdate: m,
|
|
13
|
+
extensions: [u.configure({ link: {
|
|
14
|
+
openOnClick: !1,
|
|
15
|
+
autolink: !0
|
|
16
|
+
} }), s.configure({
|
|
17
|
+
emptyEditorClass: "is-editor-empty",
|
|
18
|
+
placeholder: m
|
|
19
|
+
})],
|
|
20
|
+
content: i,
|
|
21
|
+
editable: d,
|
|
22
|
+
onUpdate: p,
|
|
27
23
|
parseOptions: { preserveWhitespace: "full" }
|
|
28
24
|
});
|
|
29
25
|
return r.useEffect(() => {
|
|
30
|
-
!g || g.isDestroyed || g.getHTML() !==
|
|
31
|
-
}, [
|
|
26
|
+
!g || g.isDestroyed || g.getHTML() !== i && g.commands.setContent(i);
|
|
27
|
+
}, [i, g]), /* @__PURE__ */ o(t, {
|
|
28
|
+
ref: h,
|
|
32
29
|
className: "tiptap-root",
|
|
33
30
|
sx: (t) => ({
|
|
34
31
|
display: "flex",
|
|
35
32
|
flexDirection: "column",
|
|
36
|
-
...
|
|
33
|
+
...d && {
|
|
37
34
|
border: "1px solid",
|
|
38
35
|
borderColor: "divider",
|
|
39
36
|
borderRadius: 1,
|
|
@@ -55,7 +52,7 @@ var d = ({ content: d, editable: f = !0, hideToolbar: p, onUpdate: m = () => {},
|
|
|
55
52
|
color: "text.primary",
|
|
56
53
|
flex: "1 1 auto",
|
|
57
54
|
overflow: "auto",
|
|
58
|
-
fontSize:
|
|
55
|
+
fontSize: t.typography.body1.fontSize,
|
|
59
56
|
p: "8px 16px",
|
|
60
57
|
"&:focus-visible": { outline: "none" },
|
|
61
58
|
"&.resize-cursor": {
|
|
@@ -71,12 +68,12 @@ var d = ({ content: d, editable: f = !0, hideToolbar: p, onUpdate: m = () => {},
|
|
|
71
68
|
}
|
|
72
69
|
}
|
|
73
70
|
}),
|
|
74
|
-
children: [
|
|
71
|
+
children: [f ? /* @__PURE__ */ a("div", {}) : /* @__PURE__ */ a(n, { editor: g }), /* @__PURE__ */ a(c, {
|
|
75
72
|
className: "tiptap-container",
|
|
76
73
|
editor: g
|
|
77
74
|
})]
|
|
78
75
|
});
|
|
79
|
-
};
|
|
76
|
+
});
|
|
80
77
|
d.displayName = "STextEditor";
|
|
81
78
|
//#endregion
|
|
82
79
|
export { d as STextEditor, d as default };
|