@solostylist/ui-kit 1.0.224 → 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-ox4Sj6xh.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.d.ts +3 -3
- package/dist/s-dialog/s-dialog.js +8 -8
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +7 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +7 -7
- 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 -52
- 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-D4FBfBPF.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.d.ts +2 -0
- package/dist/s-select/s-select.js +1 -1
- package/dist/{s-select-b8CHbeCf.js → s-select-BqWS_5Bs.js} +21 -21
- 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-CCK7yyNS.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 +3 -4
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-field-DLSDoq7u.js +42 -0
- 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-THHj5mFp.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-DKGeMh55.js +0 -299
- package/dist/s-date-picker-BkZIEZoz.js +0 -634
- package/dist/s-image-modal-DA3DBNbv.js +0 -397
- package/dist/s-text-field-Ck5QMhYI.js +0 -41
- package/dist/s-tool-bar-DGfyNoYW.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,6 +1,6 @@
|
|
|
1
1
|
import { n as e, t } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
import { i as n, r, t as i } from "./
|
|
3
|
-
import { t as a } from "./extends-
|
|
2
|
+
import { i as n, n as r, t as i } from "./warning-CFMmJJnf.js";
|
|
3
|
+
import { t as a } from "./extends-DM-C9PwL.js";
|
|
4
4
|
import o from "dayjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
@@ -398,7 +398,7 @@ var S = class {
|
|
|
398
398
|
};
|
|
399
399
|
getLocaleFormats = () => {
|
|
400
400
|
let e = o.Ls, t = e[this.locale || "en"];
|
|
401
|
-
return t === void 0 && (process.env.NODE_ENV !== "production" &&
|
|
401
|
+
return t === void 0 && (process.env.NODE_ENV !== "production" && i([
|
|
402
402
|
"MUI X: Your locale has not been found.",
|
|
403
403
|
"Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.",
|
|
404
404
|
"Or you forget to import the locale from 'dayjs/locale/{localeUsed}'",
|
|
@@ -510,7 +510,7 @@ var S = class {
|
|
|
510
510
|
for (; this.isBefore(a, r);) i.push(a), a = this.addYears(a, 1);
|
|
511
511
|
return i;
|
|
512
512
|
};
|
|
513
|
-
}, C = ({ children: e }) => /* @__PURE__ */ s(
|
|
513
|
+
}, C = ({ children: e }) => /* @__PURE__ */ s(r, {
|
|
514
514
|
dateAdapter: S,
|
|
515
515
|
children: e
|
|
516
516
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "../Box-BlmynALm.js";
|
|
2
2
|
import { t } from "../Stack-BQkLmLFp.js";
|
|
3
|
-
import { t as n } from "../Typography-
|
|
4
|
-
import { t as r } from "../ExpandMore-
|
|
3
|
+
import { t as n } from "../Typography-DqtTB0ZJ.js";
|
|
4
|
+
import { t as r } from "../ExpandMore-DIsT5FOp.js";
|
|
5
5
|
import { SNavItem as i } from "../s-nav-item/s-nav-item.js";
|
|
6
|
-
import { t as a } from "../Collapse-
|
|
6
|
+
import { t as a } from "../Collapse-Dtji6IrM.js";
|
|
7
7
|
import * as o from "react";
|
|
8
8
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
9
|
//#region lib/s-nav-items/s-nav-items.tsx
|
|
@@ -93,10 +93,7 @@ function f({ item: t, pathname: l, depth: u, component: f }) {
|
|
|
93
93
|
children: t.icon(y)
|
|
94
94
|
}) : null, /* @__PURE__ */ s(n, {
|
|
95
95
|
component: "span",
|
|
96
|
-
|
|
97
|
-
fontWeight: 500,
|
|
98
|
-
fontSize: "0.875rem"
|
|
99
|
-
},
|
|
96
|
+
variant: "body1",
|
|
100
97
|
children: t.title
|
|
101
98
|
})]
|
|
102
99
|
}), /* @__PURE__ */ s(e, {
|
|
@@ -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 };
|
|
@@ -32,6 +32,8 @@ export type SSelectProps<T extends BaseOption = string> = Omit<SelectProps, 'err
|
|
|
32
32
|
searchable?: boolean;
|
|
33
33
|
/** Placeholder text for the search input */
|
|
34
34
|
searchPlaceholder?: string;
|
|
35
|
+
/** Message shown when a search yields no matching options */
|
|
36
|
+
noResultsText?: string;
|
|
35
37
|
/** Custom render function for options */
|
|
36
38
|
renderOption?: (option: T) => ReactNode;
|
|
37
39
|
};
|
|
@@ -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";
|
|
@@ -75,10 +75,10 @@ function w(e) {
|
|
|
75
75
|
} } }
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionValue: g = "id", placeholder: _, label: x = "", error: S, required: T = !1, simple: E = !1, htmlFor: D, searchable: O = !1, searchPlaceholder: k = "",
|
|
79
|
-
let
|
|
80
|
-
O && (
|
|
81
|
-
},
|
|
78
|
+
var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionValue: g = "id", placeholder: _, label: x = "", error: S, required: T = !1, simple: E = !1, htmlFor: D, searchable: O = !1, searchPlaceholder: k = "", noResultsText: A = "No results found", renderOption: j, ...M }, N) => {
|
|
79
|
+
let P = M.value !== void 0, [F, I] = r(M.multiple ? [] : null), L = P ? M.value : F, [R, z] = r(""), [B, V] = r(!1), H = (e) => m(e, p), U = (e) => h(e, g), W = b(e, O, R, H), G = () => {
|
|
80
|
+
O && (V(!1), z(""));
|
|
81
|
+
}, K = (t) => M.multiple ? y(t, e, _, H, U) : v(t, E, e, _, H, U), q = () => O ? W.length > 0 ? C(W, U, H, j, n) : R ? /* @__PURE__ */ i(l, {
|
|
82
82
|
disabled: !0,
|
|
83
83
|
children: /* @__PURE__ */ i(o, {
|
|
84
84
|
sx: {
|
|
@@ -86,9 +86,9 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
86
86
|
textAlign: "center",
|
|
87
87
|
width: "100%"
|
|
88
88
|
},
|
|
89
|
-
children:
|
|
89
|
+
children: A
|
|
90
90
|
})
|
|
91
|
-
}) : C(e,
|
|
91
|
+
}) : C(e, U, H, j, n) : C(e, U, H, j, n), J = w(O);
|
|
92
92
|
return /* @__PURE__ */ i(t, {
|
|
93
93
|
error: S,
|
|
94
94
|
label: x,
|
|
@@ -99,19 +99,19 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
99
99
|
displayEmpty: !0,
|
|
100
100
|
fullWidth: !0,
|
|
101
101
|
defaultValue: "",
|
|
102
|
-
ref:
|
|
103
|
-
open: O ?
|
|
104
|
-
onOpen: O ? () =>
|
|
105
|
-
onClose: O ?
|
|
106
|
-
MenuProps:
|
|
107
|
-
renderValue:
|
|
108
|
-
...
|
|
109
|
-
value: e.length ?
|
|
102
|
+
ref: N,
|
|
103
|
+
open: O ? B : void 0,
|
|
104
|
+
onOpen: O ? () => V(!0) : void 0,
|
|
105
|
+
onClose: O ? G : void 0,
|
|
106
|
+
MenuProps: J,
|
|
107
|
+
renderValue: K,
|
|
108
|
+
...M,
|
|
109
|
+
value: e.length ? L ?? "" : "",
|
|
110
110
|
onChange: (e, t) => {
|
|
111
|
-
if (
|
|
112
|
-
else if (!
|
|
111
|
+
if (M.onChange) M.onChange(e, t);
|
|
112
|
+
else if (!P) {
|
|
113
113
|
let t = e.target.value;
|
|
114
|
-
|
|
114
|
+
I(t);
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
children: [O && /* @__PURE__ */ i(c, {
|
|
@@ -127,8 +127,8 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
127
127
|
fullWidth: !0,
|
|
128
128
|
autoFocus: !0,
|
|
129
129
|
placeholder: k,
|
|
130
|
-
value:
|
|
131
|
-
onChange: (e) =>
|
|
130
|
+
value: R,
|
|
131
|
+
onChange: (e) => z(e.target.value),
|
|
132
132
|
onKeyDown: (e) => {
|
|
133
133
|
e.key !== "Escape" && e.stopPropagation();
|
|
134
134
|
},
|
|
@@ -140,7 +140,7 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
140
140
|
children: /* @__PURE__ */ i(f, {})
|
|
141
141
|
}) } }
|
|
142
142
|
})
|
|
143
|
-
}),
|
|
143
|
+
}), q()]
|
|
144
144
|
})
|
|
145
145
|
});
|
|
146
146
|
});
|
|
@@ -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 };
|