@solostylist/ui-kit 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/dist/{gradients-90SYkAC0.js → gradients-DSnBONEQ.js} +1 -1
  2. package/dist/main.js +1 -1
  3. package/dist/palettes/index.js +1 -1
  4. package/dist/{palettes-Dw3PEYF5.js → palettes-CJLuEy1m.js} +163 -163
  5. package/dist/s-accordion/index.js +1 -1
  6. package/dist/s-accordion/s-accordion.js +70 -2
  7. package/dist/s-action-overlay/s-action-overlay.js +21 -21
  8. package/dist/s-autocomplete/s-autocomplete.js +1 -1
  9. package/dist/s-avatar/s-avatar.js +17 -17
  10. package/dist/s-blur-text/s-blur-text.js +16 -16
  11. package/dist/s-brand-logo/index.js +1 -1
  12. package/dist/s-brand-logo/s-brand-logo.js +1 -1
  13. package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
  14. package/dist/s-carousel/index.js +1 -1
  15. package/dist/s-carousel/s-carousel.js +184 -2
  16. package/dist/s-category-card/s-category-card.js +22 -22
  17. package/dist/s-chat-input/index.js +1 -1
  18. package/dist/s-chat-input/s-chat-input.js +398 -2
  19. package/dist/s-chat-message/index.js +1 -1
  20. package/dist/s-chat-message/s-chat-message.js +314 -2
  21. package/dist/s-checkbox/s-checkbox.js +18 -19
  22. package/dist/s-chips/index.js +1 -1
  23. package/dist/s-chips/s-chips.js +174 -2
  24. package/dist/s-code-block/index.js +1 -1
  25. package/dist/s-code-block/s-code-block.js +103 -2
  26. package/dist/s-comment-message/index.js +1 -1
  27. package/dist/s-comment-message/s-comment-message.js +189 -2
  28. package/dist/s-copyable-text/s-copyable-text.js +18 -18
  29. package/dist/s-countdown/s-count-box.js +18 -18
  30. package/dist/s-data-table/index.js +1 -1
  31. package/dist/s-data-table/s-data-table.js +213 -2
  32. package/dist/s-date-picker/index.js +1 -1
  33. package/dist/s-date-picker/s-date-picker.js +106 -2
  34. package/dist/s-datetime-picker/index.js +1 -1
  35. package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
  36. package/dist/s-dialog/index.js +1 -1
  37. package/dist/s-dialog/s-dialog.js +80 -2
  38. package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
  39. package/dist/s-dialog-message/s-dialog-message.js +31 -32
  40. package/dist/s-empty/s-empty.js +13 -14
  41. package/dist/s-file-dropzone/index.js +1 -1
  42. package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
  43. package/dist/s-file-icon/s-file-icon.js +87 -88
  44. package/dist/s-flex-box/s-flex-box.js +11 -12
  45. package/dist/s-form/s-form.js +15 -15
  46. package/dist/s-gallery/s-gallery.js +1 -1
  47. package/dist/s-glow-button/s-glow-button.js +9 -10
  48. package/dist/s-icon-button/s-icon-button.js +15 -16
  49. package/dist/s-image-comparison/s-image-comparison.js +29 -31
  50. package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
  51. package/dist/s-image-viewer/index.js +3 -3
  52. package/dist/s-image-viewer/s-image-viewer.js +266 -2
  53. package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
  54. package/dist/s-label/s-label.js +26 -27
  55. package/dist/s-language-switcher/index.js +2 -2
  56. package/dist/s-language-switcher/s-language-switcher.js +150 -2
  57. package/dist/s-lazy-image/s-lazy-image.js +17 -18
  58. package/dist/s-link/index.js +1 -1
  59. package/dist/s-link/s-link.js +5 -2
  60. package/dist/s-localization-provider/index.js +1 -1
  61. package/dist/s-localization-provider/s-localization-provider.js +12 -2
  62. package/dist/s-nav-item/s-nav-item.js +16 -16
  63. package/dist/s-nav-items/index.js +2 -2
  64. package/dist/s-nav-items/s-nav-items.js +167 -2
  65. package/dist/s-no-ssr/index.js +1 -1
  66. package/dist/s-no-ssr/s-no-ssr.js +5 -2
  67. package/dist/s-pagination/index.js +1 -1
  68. package/dist/s-pagination/s-pagination.js +85 -2
  69. package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
  70. package/dist/s-quantity-input/index.js +1 -1
  71. package/dist/s-quantity-input/s-quantity-input.js +246 -2
  72. package/dist/s-review/index.js +1 -1
  73. package/dist/s-review/s-review.js +272 -2
  74. package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
  75. package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
  76. package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
  77. package/dist/s-select/index.js +1 -1
  78. package/dist/s-select/s-select.js +201 -2
  79. package/dist/s-select-list/s-select-list.js +47 -50
  80. package/dist/s-skeleton/s-skeleton.js +16 -17
  81. package/dist/s-snackbar-message/index.js +2 -2
  82. package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
  83. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
  84. package/dist/s-status-illustration/s-status-illustration.js +74 -74
  85. package/dist/s-stripe/s-stripe.js +11 -12
  86. package/dist/s-stripe/stripe-input.js +3 -2
  87. package/dist/s-switch/index.js +1 -1
  88. package/dist/s-switch/s-switch.js +48 -2
  89. package/dist/s-tabs/s-tabs.js +48 -50
  90. package/dist/s-text-editor/index.js +1 -1
  91. package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
  92. package/dist/s-text-editor/s-text-editor.js +25 -26
  93. package/dist/s-text-field/index.js +1 -1
  94. package/dist/s-text-field/s-text-field.js +52 -2
  95. package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
  96. package/dist/s-text-truncation/s-text-truncation.js +20 -20
  97. package/dist/s-theme-demo/s-theme-demo.js +8 -8
  98. package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
  99. package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
  100. package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
  101. package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
  102. package/dist/s-theme-provider/s-theme-provider.js +1 -1
  103. package/dist/s-theme-switch/index.js +1 -1
  104. package/dist/s-theme-switch/s-theme-switch.js +60 -2
  105. package/dist/s-tip/index.js +1 -1
  106. package/dist/s-tip/s-tip.js +61 -2
  107. package/dist/s-tool-bar/s-tool-bar.js +28 -28
  108. package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
  109. package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
  110. package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
  111. package/dist/s-tool-item/s-tool-item.js +22 -22
  112. package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
  113. package/dist/s-zoom-image/s-zoom-image.js +18 -19
  114. package/dist/theme/components/autocomplete.js +43 -2
  115. package/dist/theme/components/avatar.js +9 -2
  116. package/dist/theme/components/card.js +3 -3
  117. package/dist/theme/components/checkbox.js +90 -2
  118. package/dist/theme/components/chip.js +3 -3
  119. package/dist/theme/components/components.js +20 -20
  120. package/dist/theme/components/date-calendar.js +1 -0
  121. package/dist/theme/components/day-calendar.js +1 -0
  122. package/dist/theme/components/field-label-styles.js +19 -2
  123. package/dist/theme/components/form-label.js +1 -1
  124. package/dist/theme/components/list-item-button.js +1 -1
  125. package/dist/theme/components/list-item.js +7 -7
  126. package/dist/theme/components/month-calendar.js +14 -13
  127. package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
  128. package/dist/theme/components/outlined-input.js +6 -6
  129. package/dist/theme/components/picker-day.js +1 -0
  130. package/dist/theme/components/pickers-arrow-switcher.js +1 -0
  131. package/dist/theme/components/pickers-calendar-header.js +3 -2
  132. package/dist/theme/components/select.js +6 -6
  133. package/dist/theme/components/switch.js +1 -1
  134. package/dist/theme/components/table-pagination.js +1 -1
  135. package/dist/theme/components/toggle-button.js +93 -2
  136. package/dist/theme/components/year-calendar.js +14 -13
  137. package/dist/theme/theme-primitives.js +2 -2
  138. package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CRfnMsNy.js} +108 -109
  139. package/dist/utils/dayjs.js +9 -146
  140. package/package.json +1 -1
  141. package/dist/Add-COc9VdNg.js +0 -6
  142. package/dist/ArrowUpward-D88i2k4q.js +0 -6
  143. package/dist/Box-9oeZgA1U.js +0 -46
  144. package/dist/Button-DgIFcM44.js +0 -534
  145. package/dist/ButtonBase-DxKtpFYs.js +0 -747
  146. package/dist/Checkbox-BoZu9z2l.js +0 -152
  147. package/dist/ChevronRight-BxsM4W78.js +0 -6
  148. package/dist/Close-o4HFfK0I.js +0 -6
  149. package/dist/Collapse-zgIFP5Sj.js +0 -266
  150. package/dist/ContentCopy-5unyTYXy.js +0 -6
  151. package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
  152. package/dist/DialogContent-CAry6lVf.js +0 -450
  153. package/dist/Download-DtvoRwpl.js +0 -6
  154. package/dist/ExpandMore-Ba5bg6s-.js +0 -6
  155. package/dist/Favorite-B_GsElm0.js +0 -6
  156. package/dist/FormControl-BxmM9UP6.js +0 -221
  157. package/dist/FormControlLabel-DzgppcC_.js +0 -173
  158. package/dist/Grow-zRRuwUl-.js +0 -121
  159. package/dist/InfoOutlined-VC7X46pc.js +0 -6
  160. package/dist/List-CnGIAXAS.js +0 -103
  161. package/dist/ListContext-B1HQt3OD.js +0 -6
  162. package/dist/Menu-C4Zabc9U.js +0 -504
  163. package/dist/MenuItem-rXJfQzDC.js +0 -223
  164. package/dist/MenuList-DDV8J-yd.js +0 -407
  165. package/dist/Modal-jAiibALV.js +0 -707
  166. package/dist/Paper-ixxCeml9.js +0 -115
  167. package/dist/Popper-CVYyMS3c.js +0 -1350
  168. package/dist/Portal-AnyvFRC4.js +0 -53
  169. package/dist/RtlProvider-B7uVJXUY.js +0 -19
  170. package/dist/Skeleton-iZFynl7z.js +0 -220
  171. package/dist/Stack-UMc4dV4G.js +0 -158
  172. package/dist/SwitchBase-D7zqrstO.js +0 -198
  173. package/dist/Tooltip-DbCd6rgF.js +0 -447
  174. package/dist/Typography-yXjc7kVP.js +0 -168
  175. package/dist/UnfoldMoreRounded-DsN0HVDV.js +0 -6
  176. package/dist/appendOwnerState-CELpvdMz.js +0 -17
  177. package/dist/assets/stripe-input.css +0 -1
  178. package/dist/autocomplete-B_4y84Ba.js +0 -43
  179. package/dist/avatar-BHuZu3DN.js +0 -10
  180. package/dist/buttonBaseClasses-BvBqFLb_.js +0 -13
  181. package/dist/capitalize-CccCFNpQ.js +0 -5
  182. package/dist/checkbox-BKMZEVU5.js +0 -88
  183. package/dist/checkboxClasses-CEsqS4sc.js +0 -18
  184. package/dist/chunk-C_CI6nMA.js +0 -13
  185. package/dist/clsx-DGZSe4Nt.js +0 -16
  186. package/dist/colorManipulator-DmUjcif3.js +0 -129
  187. package/dist/contains-WOhYaq1E.js +0 -16
  188. package/dist/createSimplePaletteValueFilter-C1gWywW_.js +0 -14
  189. package/dist/createSvgIcon-B0SZlJF1.js +0 -155
  190. package/dist/createTheme-xB2Em0Na.js +0 -1869
  191. package/dist/defaultTheme-BaGcIzCh.js +0 -210
  192. package/dist/elementAcceptingRef-DhkNAkFH.js +0 -472
  193. package/dist/exactProp-C_IsucXf.js +0 -13
  194. package/dist/field-label-styles-BOyhp6gw.js +0 -50
  195. package/dist/formLabelClasses-B0Fa-86T.js +0 -18
  196. package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
  197. package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
  198. package/dist/iconButtonClasses-CkciZuIe.js +0 -27
  199. package/dist/inputAdornmentClasses-D5yYK5bM.js +0 -19
  200. package/dist/inputBaseClasses-DuWQGq8Z.js +0 -25
  201. package/dist/integerPropType-Disnft4a.js +0 -27
  202. package/dist/isEventHandler-8dPdzK9U.js +0 -7
  203. package/dist/isFocusVisible-Y7157FQS.js +0 -35
  204. package/dist/isLayoutSupported-Ceir7nyK.js +0 -21
  205. package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
  206. package/dist/memoTheme-qFyKAk7y.js +0 -15
  207. package/dist/mergeSlotProps-xl1-PgWL.js +0 -45
  208. package/dist/monthCalendarClasses-BYVHyEfI.js +0 -14
  209. package/dist/objectWithoutPropertiesLoose-Cpds-4w8.js +0 -23
  210. package/dist/outlinedInputClasses-DECY98u0.js +0 -17
  211. package/dist/pickersCalendarHeaderClasses-CIj0gBye.js +0 -12
  212. package/dist/prop-types-BzYPyWN7.js +0 -516
  213. package/dist/resolveProps-7jIA45vn.js +0 -30
  214. package/dist/s-accordion-B8nlrdFc.js +0 -487
  215. package/dist/s-carousel-Dnjke4JQ.js +0 -1353
  216. package/dist/s-chat-input-DCS0mJE4.js +0 -419
  217. package/dist/s-chat-message-9oollJJq.js +0 -315
  218. package/dist/s-chips-WqGdqHW9.js +0 -176
  219. package/dist/s-code-block-DzGoGg5e.js +0 -658
  220. package/dist/s-comment-message-C6kfgRjv.js +0 -191
  221. package/dist/s-data-table-B1TGVupB.js +0 -805
  222. package/dist/s-date-picker-BpX4HmBp.js +0 -656
  223. package/dist/s-datetime-picker-ByzW44E0.js +0 -3878
  224. package/dist/s-dialog-BLiyjLkx.js +0 -123
  225. package/dist/s-file-dropzone-CVQpYRdY.js +0 -422
  226. package/dist/s-image-viewer-DNIEYdtL.js +0 -269
  227. package/dist/s-language-switcher-D-1nywT3.js +0 -251
  228. package/dist/s-link-CAMTGfd9.js +0 -234
  229. package/dist/s-localization-provider-Xw3NO2uP.js +0 -519
  230. package/dist/s-nav-items-BUp7DddG.js +0 -327
  231. package/dist/s-no-ssr-D8tPdDfh.js +0 -25
  232. package/dist/s-pagination-Dt8Pk5Tp.js +0 -606
  233. package/dist/s-quantity-input-mYCixlJc.js +0 -246
  234. package/dist/s-review-DSXXtWlL.js +0 -272
  235. package/dist/s-select-dwY2DYa9.js +0 -204
  236. package/dist/s-snackbar-message-3Z6VySlB.js +0 -808
  237. package/dist/s-switch-B8bZAzLh.js +0 -307
  238. package/dist/s-text-editor-toolbar-D-XgFQix.js +0 -2121
  239. package/dist/s-text-field-BM4qk0mf.js +0 -51
  240. package/dist/s-theme-switch-BLMz1_m2.js +0 -60
  241. package/dist/s-tip-ty41ePQm.js +0 -62
  242. package/dist/selectClasses-DoUlWfzV.js +0 -22
  243. package/dist/styled-Bog8QCl3.js +0 -163
  244. package/dist/svgIconClasses-C8D4AsMj.js +0 -20
  245. package/dist/switchClasses-eiq1bkQN.js +0 -23
  246. package/dist/theme-demo-components-section-gtIYRngY.js +0 -267
  247. package/dist/toggle-button-Cxi5CfXC.js +0 -104
  248. package/dist/tool-bar-action-buttons-Dt-pV3GA.js +0 -54
  249. package/dist/tool-bar-image-input-BXlll_hV.js +0 -148
  250. package/dist/typographyClasses-BLM3NmYd.js +0 -31
  251. package/dist/useControlled-BeB0W_Ui.js +0 -5
  252. package/dist/useControlled-C4QJnpiR.js +0 -29
  253. package/dist/useEnhancedEffect-Bc3gBClC.js +0 -5
  254. package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
  255. package/dist/useEventCallback-CVqMfiG_.js +0 -14
  256. package/dist/useForkRef-CKneCEtr.js +0 -29
  257. package/dist/useFormControl-iWLrn7Ek.js +0 -18
  258. package/dist/useMobilePicker-C4UQFvkj.js +0 -7580
  259. package/dist/useSlot-iIu8ek6E.js +0 -83
  260. package/dist/useTheme-BIWMbX3i.js +0 -9
  261. package/dist/useThemeProps-BI9yq95N.js +0 -19
  262. package/dist/useThemeProps-Cr28OQu3.js +0 -13
  263. package/dist/utils-oJyTAkZY.js +0 -214
  264. package/dist/warning-CNkSZkq6.js +0 -98
  265. package/dist/yearCalendarClasses-CuAQumpz.js +0 -14
  266. /package/dist/{colors-DKqWMRgW.js → colors-CNjL5fhq.js} +0 -0
  267. /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-CErW9Slg.js} +0 -0
  268. /package/dist/{utils-DaSrTYUS.js → utils-CMeAWSRO.js} +0 -0
@@ -1,534 +0,0 @@
1
- import { n as e } from "./chunk-C_CI6nMA.js";
2
- import { t } from "./prop-types-BzYPyWN7.js";
3
- import { r as n, t as r } from "./DefaultPropsProvider-ebWx4_5E.js";
4
- import { t as i } from "./generateUtilityClass-PAIOm1jC.js";
5
- import { t as a } from "./clsx-DGZSe4Nt.js";
6
- import { t as o } from "./generateUtilityClasses-DvX505Gy.js";
7
- import { n as s, t as c } from "./styled-Bog8QCl3.js";
8
- import { t as l } from "./resolveProps-7jIA45vn.js";
9
- import { a as u, i as d } from "./elementAcceptingRef-DhkNAkFH.js";
10
- import { t as f } from "./memoTheme-qFyKAk7y.js";
11
- import { t as p } from "./ButtonBase-DxKtpFYs.js";
12
- import { t as m } from "./capitalize-CccCFNpQ.js";
13
- import { t as h } from "./createSimplePaletteValueFilter-C1gWywW_.js";
14
- import * as g from "react";
15
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
16
- //#region ../../node_modules/@mui/material/Button/buttonClasses.mjs
17
- var y = /* @__PURE__ */ e(t(), 1);
18
- function b(e) {
19
- return i("MuiButton", e);
20
- }
21
- var x = o("MuiButton", /* @__PURE__ */ "root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd".split(".")), S = /* @__PURE__ */ g.createContext({});
22
- process.env.NODE_ENV !== "production" && (S.displayName = "ButtonGroupContext");
23
- //#endregion
24
- //#region ../../node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.mjs
25
- var C = /* @__PURE__ */ g.createContext(void 0);
26
- process.env.NODE_ENV !== "production" && (C.displayName = "ButtonGroupButtonContext");
27
- //#endregion
28
- //#region ../../node_modules/@mui/material/Button/Button.mjs
29
- var w = (e) => {
30
- let { color: t, disableElevation: r, fullWidth: i, size: a, variant: o, loading: s, loadingPosition: c, classes: l } = e, u = n({
31
- root: [
32
- "root",
33
- s && "loading",
34
- o,
35
- `size${m(a)}`,
36
- `color${m(t)}`,
37
- r && "disableElevation",
38
- i && "fullWidth",
39
- s && `loadingPosition${m(c)}`
40
- ],
41
- startIcon: ["icon", "startIcon"],
42
- endIcon: ["icon", "endIcon"],
43
- loadingIndicator: ["loadingIndicator"],
44
- loadingWrapper: ["loadingWrapper"]
45
- }, b, l);
46
- return {
47
- ...l,
48
- ...u
49
- };
50
- }, T = [
51
- {
52
- props: { size: "small" },
53
- style: { "& > *:nth-of-type(1)": { fontSize: 18 } }
54
- },
55
- {
56
- props: { size: "medium" },
57
- style: { "& > *:nth-of-type(1)": { fontSize: 20 } }
58
- },
59
- {
60
- props: { size: "large" },
61
- style: { "& > *:nth-of-type(1)": { fontSize: 22 } }
62
- }
63
- ], E = c(p, {
64
- shouldForwardProp: (e) => s(e) || e === "classes",
65
- name: "MuiButton",
66
- slot: "Root",
67
- overridesResolver: (e, t) => {
68
- let { ownerState: n } = e;
69
- return [
70
- t.root,
71
- t[n.variant],
72
- t[`size${m(n.size)}`],
73
- n.color === "inherit" && t.colorInherit,
74
- n.disableElevation && t.disableElevation,
75
- n.fullWidth && t.fullWidth,
76
- n.loading && t.loading
77
- ];
78
- }
79
- })(f(({ theme: e }) => {
80
- let t = e.palette.mode === "light" ? e.palette.grey[300] : e.palette.grey[800], n = e.palette.mode === "light" ? e.palette.grey.A100 : e.palette.grey[700];
81
- return {
82
- ...e.typography.button,
83
- minWidth: 64,
84
- padding: "6px 16px",
85
- border: 0,
86
- borderRadius: (e.vars || e).shape.borderRadius,
87
- transition: e.transitions.create([
88
- "background-color",
89
- "box-shadow",
90
- "border-color",
91
- "color"
92
- ], { duration: e.transitions.duration.short }),
93
- "&:hover": { textDecoration: "none" },
94
- [`&.${x.disabled}`]: { color: (e.vars || e).palette.action.disabled },
95
- variants: [
96
- {
97
- props: ({ ownerState: e }) => e.startIcon || e.loading && e.loadingPosition === "start",
98
- style: { "&::before": {
99
- content: "\"\\200b\"",
100
- width: 0,
101
- overflow: "hidden"
102
- } }
103
- },
104
- {
105
- props: { variant: "contained" },
106
- style: {
107
- color: "var(--variant-containedColor)",
108
- backgroundColor: "var(--variant-containedBg)",
109
- boxShadow: (e.vars || e).shadows[2],
110
- "&:hover": {
111
- boxShadow: (e.vars || e).shadows[4],
112
- "@media (hover: none)": { boxShadow: (e.vars || e).shadows[2] }
113
- },
114
- "&:active": { boxShadow: (e.vars || e).shadows[8] },
115
- [`&.${x.focusVisible}`]: { boxShadow: (e.vars || e).shadows[6] },
116
- [`&.${x.disabled}`]: {
117
- color: (e.vars || e).palette.action.disabled,
118
- boxShadow: (e.vars || e).shadows[0],
119
- backgroundColor: (e.vars || e).palette.action.disabledBackground
120
- }
121
- }
122
- },
123
- {
124
- props: { variant: "outlined" },
125
- style: {
126
- padding: "5px 15px",
127
- border: "1px solid currentColor",
128
- borderColor: "var(--variant-outlinedBorder, currentColor)",
129
- backgroundColor: "var(--variant-outlinedBg)",
130
- color: "var(--variant-outlinedColor)",
131
- [`&.${x.disabled}`]: { border: `1px solid ${(e.vars || e).palette.action.disabledBackground}` }
132
- }
133
- },
134
- {
135
- props: { variant: "text" },
136
- style: {
137
- padding: "6px 8px",
138
- color: "var(--variant-textColor)",
139
- backgroundColor: "var(--variant-textBg)"
140
- }
141
- },
142
- ...Object.entries(e.palette).filter(h()).map(([t]) => ({
143
- props: { color: t },
144
- style: {
145
- "--variant-textColor": (e.vars || e).palette[t].main,
146
- "--variant-outlinedColor": (e.vars || e).palette[t].main,
147
- "--variant-outlinedBorder": e.alpha((e.vars || e).palette[t].main, .5),
148
- "--variant-containedColor": (e.vars || e).palette[t].contrastText,
149
- "--variant-containedBg": (e.vars || e).palette[t].main,
150
- "@media (hover: hover)": { "&:hover": {
151
- "--variant-containedBg": (e.vars || e).palette[t].dark,
152
- "--variant-textBg": e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
153
- "--variant-outlinedBorder": (e.vars || e).palette[t].main,
154
- "--variant-outlinedBg": e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity)
155
- } }
156
- }
157
- })),
158
- {
159
- props: { color: "inherit" },
160
- style: {
161
- color: "inherit",
162
- borderColor: "currentColor",
163
- "--variant-containedBg": e.vars ? e.vars.palette.Button.inheritContainedBg : t,
164
- "@media (hover: hover)": { "&:hover": {
165
- "--variant-containedBg": e.vars ? e.vars.palette.Button.inheritContainedHoverBg : n,
166
- "--variant-textBg": e.alpha((e.vars || e).palette.text.primary, (e.vars || e).palette.action.hoverOpacity),
167
- "--variant-outlinedBg": e.alpha((e.vars || e).palette.text.primary, (e.vars || e).palette.action.hoverOpacity)
168
- } }
169
- }
170
- },
171
- {
172
- props: {
173
- size: "small",
174
- variant: "text"
175
- },
176
- style: {
177
- padding: "4px 5px",
178
- fontSize: e.typography.pxToRem(13)
179
- }
180
- },
181
- {
182
- props: {
183
- size: "large",
184
- variant: "text"
185
- },
186
- style: {
187
- padding: "8px 11px",
188
- fontSize: e.typography.pxToRem(15)
189
- }
190
- },
191
- {
192
- props: {
193
- size: "small",
194
- variant: "outlined"
195
- },
196
- style: {
197
- padding: "3px 9px",
198
- fontSize: e.typography.pxToRem(13)
199
- }
200
- },
201
- {
202
- props: {
203
- size: "large",
204
- variant: "outlined"
205
- },
206
- style: {
207
- padding: "7px 21px",
208
- fontSize: e.typography.pxToRem(15)
209
- }
210
- },
211
- {
212
- props: {
213
- size: "small",
214
- variant: "contained"
215
- },
216
- style: {
217
- padding: "4px 10px",
218
- fontSize: e.typography.pxToRem(13)
219
- }
220
- },
221
- {
222
- props: {
223
- size: "large",
224
- variant: "contained"
225
- },
226
- style: {
227
- padding: "8px 22px",
228
- fontSize: e.typography.pxToRem(15)
229
- }
230
- },
231
- {
232
- props: { disableElevation: !0 },
233
- style: {
234
- boxShadow: "none",
235
- "&:hover": { boxShadow: "none" },
236
- [`&.${x.focusVisible}`]: { boxShadow: "none" },
237
- "&:active": { boxShadow: "none" },
238
- [`&.${x.disabled}`]: { boxShadow: "none" }
239
- }
240
- },
241
- {
242
- props: { fullWidth: !0 },
243
- style: { width: "100%" }
244
- },
245
- {
246
- props: { loadingPosition: "center" },
247
- style: {
248
- transition: e.transitions.create([
249
- "background-color",
250
- "box-shadow",
251
- "border-color"
252
- ], { duration: e.transitions.duration.short }),
253
- [`&.${x.loading}`]: { color: "transparent" }
254
- }
255
- }
256
- ]
257
- };
258
- })), D = c("span", {
259
- name: "MuiButton",
260
- slot: "StartIcon",
261
- overridesResolver: (e, t) => {
262
- let { ownerState: n } = e;
263
- return [t.startIcon, n.loading && t.startIconLoadingStart];
264
- }
265
- })(({ theme: e }) => ({
266
- display: "inherit",
267
- marginRight: 8,
268
- marginLeft: -4,
269
- variants: [
270
- {
271
- props: { size: "small" },
272
- style: { marginLeft: -2 }
273
- },
274
- {
275
- props: {
276
- loadingPosition: "start",
277
- loading: !0
278
- },
279
- style: {
280
- transition: e.transitions.create(["opacity"], { duration: e.transitions.duration.short }),
281
- opacity: 0
282
- }
283
- },
284
- {
285
- props: {
286
- loadingPosition: "start",
287
- loading: !0,
288
- fullWidth: !0
289
- },
290
- style: { marginRight: -8 }
291
- },
292
- ...T
293
- ]
294
- })), O = c("span", {
295
- name: "MuiButton",
296
- slot: "EndIcon",
297
- overridesResolver: (e, t) => {
298
- let { ownerState: n } = e;
299
- return [t.endIcon, n.loading && t.endIconLoadingEnd];
300
- }
301
- })(({ theme: e }) => ({
302
- display: "inherit",
303
- marginRight: -4,
304
- marginLeft: 8,
305
- variants: [
306
- {
307
- props: { size: "small" },
308
- style: { marginRight: -2 }
309
- },
310
- {
311
- props: {
312
- loadingPosition: "end",
313
- loading: !0
314
- },
315
- style: {
316
- transition: e.transitions.create(["opacity"], { duration: e.transitions.duration.short }),
317
- opacity: 0
318
- }
319
- },
320
- {
321
- props: {
322
- loadingPosition: "end",
323
- loading: !0,
324
- fullWidth: !0
325
- },
326
- style: { marginLeft: -8 }
327
- },
328
- ...T
329
- ]
330
- })), k = c("span", {
331
- name: "MuiButton",
332
- slot: "LoadingIndicator"
333
- })(({ theme: e }) => ({
334
- display: "none",
335
- position: "absolute",
336
- visibility: "visible",
337
- variants: [
338
- {
339
- props: { loading: !0 },
340
- style: { display: "flex" }
341
- },
342
- {
343
- props: { loadingPosition: "start" },
344
- style: { left: 14 }
345
- },
346
- {
347
- props: {
348
- loadingPosition: "start",
349
- size: "small"
350
- },
351
- style: { left: 10 }
352
- },
353
- {
354
- props: {
355
- variant: "text",
356
- loadingPosition: "start"
357
- },
358
- style: { left: 6 }
359
- },
360
- {
361
- props: { loadingPosition: "center" },
362
- style: {
363
- left: "50%",
364
- transform: "translate(-50%)",
365
- color: (e.vars || e).palette.action.disabled
366
- }
367
- },
368
- {
369
- props: { loadingPosition: "end" },
370
- style: { right: 14 }
371
- },
372
- {
373
- props: {
374
- loadingPosition: "end",
375
- size: "small"
376
- },
377
- style: { right: 10 }
378
- },
379
- {
380
- props: {
381
- variant: "text",
382
- loadingPosition: "end"
383
- },
384
- style: { right: 6 }
385
- },
386
- {
387
- props: {
388
- loadingPosition: "start",
389
- fullWidth: !0
390
- },
391
- style: {
392
- position: "relative",
393
- left: -10
394
- }
395
- },
396
- {
397
- props: {
398
- loadingPosition: "end",
399
- fullWidth: !0
400
- },
401
- style: {
402
- position: "relative",
403
- right: -10
404
- }
405
- }
406
- ]
407
- })), A = c("span", {
408
- name: "MuiButton",
409
- slot: "LoadingIconPlaceholder"
410
- })({
411
- display: "inline-block",
412
- width: "1em",
413
- height: "1em"
414
- }), j = /* @__PURE__ */ g.forwardRef(function(e, t) {
415
- let n = g.useContext(S), i = g.useContext(C), o = r({
416
- props: l(n, e),
417
- name: "MuiButton"
418
- }), { children: s, color: c = "primary", component: f = "button", className: p, disabled: m = !1, disableElevation: h = !1, disableFocusRipple: y = !1, endIcon: b, focusVisibleClassName: x, fullWidth: T = !1, id: j, loading: M = null, loadingIndicator: N, loadingPosition: P = "center", size: F = "medium", startIcon: I, type: L, variant: R = "text", ...z } = o, B = u(j), V = N ?? /* @__PURE__ */ _(d, {
419
- "aria-labelledby": B,
420
- color: "inherit",
421
- size: 16
422
- }), H = {
423
- ...o,
424
- color: c,
425
- component: f,
426
- disabled: m,
427
- disableElevation: h,
428
- disableFocusRipple: y,
429
- fullWidth: T,
430
- loading: M,
431
- loadingIndicator: V,
432
- loadingPosition: P,
433
- size: F,
434
- type: L,
435
- variant: R
436
- }, U = w(H), W = (I || M && P === "start") && /* @__PURE__ */ _(D, {
437
- className: U.startIcon,
438
- ownerState: H,
439
- children: I || /* @__PURE__ */ _(A, {
440
- className: U.loadingIconPlaceholder,
441
- ownerState: H
442
- })
443
- }), G = (b || M && P === "end") && /* @__PURE__ */ _(O, {
444
- className: U.endIcon,
445
- ownerState: H,
446
- children: b || /* @__PURE__ */ _(A, {
447
- className: U.loadingIconPlaceholder,
448
- ownerState: H
449
- })
450
- }), K = i || "", q = typeof M == "boolean" ? /* @__PURE__ */ _("span", {
451
- className: U.loadingWrapper,
452
- style: { display: "contents" },
453
- children: M && /* @__PURE__ */ _(k, {
454
- className: U.loadingIndicator,
455
- ownerState: H,
456
- children: V
457
- })
458
- }) : null, { root: J, ...Y } = U;
459
- return /* @__PURE__ */ v(E, {
460
- ownerState: H,
461
- className: a(n.className, U.root, p, K),
462
- component: f,
463
- disabled: m || M,
464
- focusRipple: !y,
465
- focusVisibleClassName: a(U.focusVisible, x),
466
- ref: t,
467
- internalNativeButton: !0,
468
- type: L,
469
- id: M ? B : j,
470
- ...z,
471
- classes: Y,
472
- children: [
473
- W,
474
- P !== "end" && q,
475
- s,
476
- P === "end" && q,
477
- G
478
- ]
479
- });
480
- });
481
- process.env.NODE_ENV !== "production" && (j.propTypes = {
482
- children: y.default.node,
483
- classes: y.default.object,
484
- className: y.default.string,
485
- color: y.default.oneOfType([y.default.oneOf([
486
- "inherit",
487
- "primary",
488
- "secondary",
489
- "success",
490
- "error",
491
- "info",
492
- "warning"
493
- ]), y.default.string]),
494
- component: y.default.elementType,
495
- disabled: y.default.bool,
496
- disableElevation: y.default.bool,
497
- disableFocusRipple: y.default.bool,
498
- disableRipple: y.default.bool,
499
- endIcon: y.default.node,
500
- focusVisibleClassName: y.default.string,
501
- fullWidth: y.default.bool,
502
- href: y.default.string,
503
- id: y.default.string,
504
- loading: y.default.bool,
505
- loadingIndicator: y.default.node,
506
- loadingPosition: y.default.oneOf([
507
- "center",
508
- "end",
509
- "start"
510
- ]),
511
- size: y.default.oneOfType([y.default.oneOf([
512
- "small",
513
- "medium",
514
- "large"
515
- ]), y.default.string]),
516
- startIcon: y.default.node,
517
- sx: y.default.oneOfType([
518
- y.default.arrayOf(y.default.oneOfType([
519
- y.default.func,
520
- y.default.object,
521
- y.default.bool
522
- ])),
523
- y.default.func,
524
- y.default.object
525
- ]),
526
- type: y.default.string,
527
- variant: y.default.oneOfType([y.default.oneOf([
528
- "contained",
529
- "outlined",
530
- "text"
531
- ]), y.default.string])
532
- });
533
- //#endregion
534
- export { j as t };