@solostylist/ui-kit 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{gradients-90SYkAC0.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-Dw3PEYF5.js → palettes-CJLuEy1m.js} +163 -163
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +70 -2
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +184 -2
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +398 -2
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +314 -2
- package/dist/s-checkbox/s-checkbox.js +18 -19
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +174 -2
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +103 -2
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +189 -2
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +213 -2
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +106 -2
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +80 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
- package/dist/s-dialog-message/s-dialog-message.js +31 -32
- package/dist/s-empty/s-empty.js +13 -14
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
- package/dist/s-file-icon/s-file-icon.js +87 -88
- package/dist/s-flex-box/s-flex-box.js +11 -12
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +9 -10
- package/dist/s-icon-button/s-icon-button.js +15 -16
- package/dist/s-image-comparison/s-image-comparison.js +29 -31
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +266 -2
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-label/s-label.js +26 -27
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +150 -2
- package/dist/s-lazy-image/s-lazy-image.js +17 -18
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +5 -2
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-nav-item/s-nav-item.js +16 -16
- package/dist/s-nav-items/index.js +2 -2
- package/dist/s-nav-items/s-nav-items.js +167 -2
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -2
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +85 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-quantity-input/index.js +1 -1
- package/dist/s-quantity-input/s-quantity-input.js +246 -2
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +272 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
- package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +201 -2
- package/dist/s-select-list/s-select-list.js +47 -50
- package/dist/s-skeleton/s-skeleton.js +16 -17
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +48 -2
- package/dist/s-tabs/s-tabs.js +48 -50
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
- package/dist/s-text-editor/s-text-editor.js +25 -26
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +52 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +60 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +61 -2
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
- package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.js +22 -22
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +18 -19
- package/dist/theme/components/autocomplete.js +43 -2
- package/dist/theme/components/avatar.js +9 -2
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +90 -2
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +1 -0
- package/dist/theme/components/day-calendar.js +1 -0
- package/dist/theme/components/field-label-styles.js +19 -2
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +14 -13
- package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +1 -0
- package/dist/theme/components/pickers-arrow-switcher.js +1 -0
- package/dist/theme/components/pickers-calendar-header.js +3 -2
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +93 -2
- package/dist/theme/components/year-calendar.js +14 -13
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +1 -1
- package/dist/Add-COc9VdNg.js +0 -6
- package/dist/ArrowUpward-D88i2k4q.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DgIFcM44.js +0 -534
- package/dist/ButtonBase-DxKtpFYs.js +0 -747
- package/dist/Checkbox-BoZu9z2l.js +0 -152
- package/dist/ChevronRight-BxsM4W78.js +0 -6
- package/dist/Close-o4HFfK0I.js +0 -6
- package/dist/Collapse-zgIFP5Sj.js +0 -266
- package/dist/ContentCopy-5unyTYXy.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-CAry6lVf.js +0 -450
- package/dist/Download-DtvoRwpl.js +0 -6
- package/dist/ExpandMore-Ba5bg6s-.js +0 -6
- package/dist/Favorite-B_GsElm0.js +0 -6
- package/dist/FormControl-BxmM9UP6.js +0 -221
- package/dist/FormControlLabel-DzgppcC_.js +0 -173
- package/dist/Grow-zRRuwUl-.js +0 -121
- package/dist/InfoOutlined-VC7X46pc.js +0 -6
- package/dist/List-CnGIAXAS.js +0 -103
- package/dist/ListContext-B1HQt3OD.js +0 -6
- package/dist/Menu-C4Zabc9U.js +0 -504
- package/dist/MenuItem-rXJfQzDC.js +0 -223
- package/dist/MenuList-DDV8J-yd.js +0 -407
- package/dist/Modal-jAiibALV.js +0 -707
- package/dist/Paper-ixxCeml9.js +0 -115
- package/dist/Popper-CVYyMS3c.js +0 -1350
- package/dist/Portal-AnyvFRC4.js +0 -53
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-UMc4dV4G.js +0 -158
- package/dist/SwitchBase-D7zqrstO.js +0 -198
- package/dist/Tooltip-DbCd6rgF.js +0 -447
- package/dist/Typography-yXjc7kVP.js +0 -168
- package/dist/UnfoldMoreRounded-DsN0HVDV.js +0 -6
- package/dist/appendOwnerState-CELpvdMz.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-B_4y84Ba.js +0 -43
- package/dist/avatar-BHuZu3DN.js +0 -10
- package/dist/buttonBaseClasses-BvBqFLb_.js +0 -13
- package/dist/capitalize-CccCFNpQ.js +0 -5
- package/dist/checkbox-BKMZEVU5.js +0 -88
- package/dist/checkboxClasses-CEsqS4sc.js +0 -18
- package/dist/chunk-C_CI6nMA.js +0 -13
- package/dist/clsx-DGZSe4Nt.js +0 -16
- package/dist/colorManipulator-DmUjcif3.js +0 -129
- package/dist/contains-WOhYaq1E.js +0 -16
- package/dist/createSimplePaletteValueFilter-C1gWywW_.js +0 -14
- package/dist/createSvgIcon-B0SZlJF1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-DhkNAkFH.js +0 -472
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/field-label-styles-BOyhp6gw.js +0 -50
- package/dist/formLabelClasses-B0Fa-86T.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/iconButtonClasses-CkciZuIe.js +0 -27
- package/dist/inputAdornmentClasses-D5yYK5bM.js +0 -19
- package/dist/inputBaseClasses-DuWQGq8Z.js +0 -25
- package/dist/integerPropType-Disnft4a.js +0 -27
- package/dist/isEventHandler-8dPdzK9U.js +0 -7
- package/dist/isFocusVisible-Y7157FQS.js +0 -35
- package/dist/isLayoutSupported-Ceir7nyK.js +0 -21
- package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-xl1-PgWL.js +0 -45
- package/dist/monthCalendarClasses-BYVHyEfI.js +0 -14
- package/dist/objectWithoutPropertiesLoose-Cpds-4w8.js +0 -23
- package/dist/outlinedInputClasses-DECY98u0.js +0 -17
- package/dist/pickersCalendarHeaderClasses-CIj0gBye.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-B8nlrdFc.js +0 -487
- package/dist/s-carousel-Dnjke4JQ.js +0 -1353
- package/dist/s-chat-input-DCS0mJE4.js +0 -419
- package/dist/s-chat-message-9oollJJq.js +0 -315
- package/dist/s-chips-WqGdqHW9.js +0 -176
- package/dist/s-code-block-DzGoGg5e.js +0 -658
- package/dist/s-comment-message-C6kfgRjv.js +0 -191
- package/dist/s-data-table-B1TGVupB.js +0 -805
- package/dist/s-date-picker-BpX4HmBp.js +0 -656
- package/dist/s-datetime-picker-ByzW44E0.js +0 -3878
- package/dist/s-dialog-BLiyjLkx.js +0 -123
- package/dist/s-file-dropzone-CVQpYRdY.js +0 -422
- package/dist/s-image-viewer-DNIEYdtL.js +0 -269
- package/dist/s-language-switcher-D-1nywT3.js +0 -251
- package/dist/s-link-CAMTGfd9.js +0 -234
- package/dist/s-localization-provider-Xw3NO2uP.js +0 -519
- package/dist/s-nav-items-BUp7DddG.js +0 -327
- package/dist/s-no-ssr-D8tPdDfh.js +0 -25
- package/dist/s-pagination-Dt8Pk5Tp.js +0 -606
- package/dist/s-quantity-input-mYCixlJc.js +0 -246
- package/dist/s-review-DSXXtWlL.js +0 -272
- package/dist/s-select-dwY2DYa9.js +0 -204
- package/dist/s-snackbar-message-3Z6VySlB.js +0 -808
- package/dist/s-switch-B8bZAzLh.js +0 -307
- package/dist/s-text-editor-toolbar-D-XgFQix.js +0 -2121
- package/dist/s-text-field-BM4qk0mf.js +0 -51
- package/dist/s-theme-switch-BLMz1_m2.js +0 -60
- package/dist/s-tip-ty41ePQm.js +0 -62
- package/dist/selectClasses-DoUlWfzV.js +0 -22
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-C8D4AsMj.js +0 -20
- package/dist/switchClasses-eiq1bkQN.js +0 -23
- package/dist/theme-demo-components-section-gtIYRngY.js +0 -267
- package/dist/toggle-button-Cxi5CfXC.js +0 -104
- package/dist/tool-bar-action-buttons-Dt-pV3GA.js +0 -54
- package/dist/tool-bar-image-input-BXlll_hV.js +0 -148
- package/dist/typographyClasses-BLM3NmYd.js +0 -31
- package/dist/useControlled-BeB0W_Ui.js +0 -5
- package/dist/useControlled-C4QJnpiR.js +0 -29
- package/dist/useEnhancedEffect-Bc3gBClC.js +0 -5
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEventCallback-CVqMfiG_.js +0 -14
- package/dist/useForkRef-CKneCEtr.js +0 -29
- package/dist/useFormControl-iWLrn7Ek.js +0 -18
- package/dist/useMobilePicker-C4UQFvkj.js +0 -7580
- package/dist/useSlot-iIu8ek6E.js +0 -83
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-BI9yq95N.js +0 -19
- package/dist/useThemeProps-Cr28OQu3.js +0 -13
- package/dist/utils-oJyTAkZY.js +0 -214
- package/dist/warning-CNkSZkq6.js +0 -98
- package/dist/yearCalendarClasses-CuAQumpz.js +0 -14
- /package/dist/{colors-DKqWMRgW.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DaSrTYUS.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { actionHoverMedia as e, getFocusVisibleStyle as t, getSelectedActionStyle as n } from "./action-styles.js";
|
|
2
|
+
import { styled as r } from "@mui/material/styles";
|
|
3
|
+
import i from "@mui/material/ButtonBase";
|
|
4
|
+
import { yearCalendarClasses as a } from "@mui/x-date-pickers/YearCalendar";
|
|
5
|
+
import "@mui/x-date-pickers/themeAugmentation";
|
|
5
6
|
var o = {
|
|
6
|
-
defaultProps: { slots: { yearButton:
|
|
7
|
+
defaultProps: { slots: { yearButton: r(i, {
|
|
7
8
|
name: "MuiYearCalendar",
|
|
8
9
|
slot: "Button"
|
|
9
10
|
})(({ theme: e }) => ({
|
|
@@ -23,15 +24,15 @@ var o = {
|
|
|
23
24
|
width: `calc((100% - ${e.spacing(3)}) / 4)`
|
|
24
25
|
}
|
|
25
26
|
}),
|
|
26
|
-
button: ({ theme:
|
|
27
|
-
height:
|
|
28
|
-
width: `calc((100% - ${
|
|
27
|
+
button: ({ theme: r }) => ({
|
|
28
|
+
height: r.spacing(4),
|
|
29
|
+
width: `calc((100% - ${r.spacing(3)}) / 4)`,
|
|
29
30
|
fontVariantNumeric: "lining-nums tabular-nums",
|
|
30
|
-
borderRadius: (
|
|
31
|
-
[
|
|
32
|
-
"&.Mui-focusVisible":
|
|
33
|
-
"&.Mui-disabled": { color: (
|
|
34
|
-
[`&.${
|
|
31
|
+
borderRadius: (r.vars ?? r).shape.borderRadius,
|
|
32
|
+
[e]: { "&:hover": { backgroundColor: (r.vars ?? r).palette.action.hover } },
|
|
33
|
+
"&.Mui-focusVisible": t(r),
|
|
34
|
+
"&.Mui-disabled": { color: (r.vars ?? r).palette.action.disabled },
|
|
35
|
+
[`&.${a.selected}`]: { ...n(r, "primary") }
|
|
35
36
|
})
|
|
36
37
|
}
|
|
37
38
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "../colors-
|
|
2
|
-
import { a as m, i as h, n as g, o as _, r as v, s as y, t as b } from "../theme-primitives-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "../colors-CNjL5fhq.js";
|
|
2
|
+
import { a as m, i as h, n as g, o as _, r as v, s as y, t as b } from "../theme-primitives-CRfnMsNy.js";
|
|
3
3
|
export { f as blue, s as brand, b as colorSchemes, u as gray, i as green, g as interaction, e as lightBlue, c as lightBrand, d as lightGray, t as lightGreen, a as lightOrange, p as lightPurple, n as lightRed, r as orange, l as purple, v as radius, o as red, h as shadows, m as shape, _ as sxConfig, y as typography };
|
|
@@ -1,186 +1,185 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as _, i as v, n as y, o as b, r as x, s as S } from "./gradients-90SYkAC0.js";
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./colors-CNjL5fhq.js";
|
|
2
|
+
import { a as m, i as h, n as g, o as _, r as v, s as y } from "./gradients-DSnBONEQ.js";
|
|
3
|
+
import { alpha as b, createTheme as x, lighten as S } from "@mui/material/styles";
|
|
5
4
|
//#region ../core/dist/interaction.js
|
|
6
5
|
var C = .9, w = { gradient: {
|
|
7
6
|
themeKey: "palette.gradient",
|
|
8
7
|
cssProperty: "backgroundImage"
|
|
9
|
-
} }, T =
|
|
10
|
-
gradient:
|
|
8
|
+
} }, T = x(), E = { palette: {
|
|
9
|
+
gradient: g,
|
|
11
10
|
blackAlpha: {
|
|
12
|
-
zero:
|
|
13
|
-
light:
|
|
14
|
-
medium:
|
|
15
|
-
dark:
|
|
16
|
-
full:
|
|
11
|
+
zero: _[0],
|
|
12
|
+
light: _[10],
|
|
13
|
+
medium: _[50],
|
|
14
|
+
dark: _[80],
|
|
15
|
+
full: _[100]
|
|
17
16
|
},
|
|
18
17
|
whiteAlpha: {
|
|
19
|
-
zero:
|
|
20
|
-
light:
|
|
21
|
-
medium:
|
|
22
|
-
dark:
|
|
23
|
-
full:
|
|
18
|
+
zero: y[0],
|
|
19
|
+
light: y[10],
|
|
20
|
+
medium: y[50],
|
|
21
|
+
dark: y[80],
|
|
22
|
+
full: y[100]
|
|
24
23
|
},
|
|
25
|
-
ui: { pulse:
|
|
24
|
+
ui: { pulse: v },
|
|
26
25
|
primary: {
|
|
27
|
-
...
|
|
28
|
-
contrastText:
|
|
29
|
-
light:
|
|
30
|
-
main:
|
|
31
|
-
dark:
|
|
26
|
+
...s,
|
|
27
|
+
contrastText: _[100],
|
|
28
|
+
light: s[400],
|
|
29
|
+
main: s[500],
|
|
30
|
+
dark: s[500],
|
|
32
31
|
white: "#ffffff",
|
|
33
32
|
black: "#000000"
|
|
34
33
|
},
|
|
35
34
|
secondary: {
|
|
36
|
-
...
|
|
37
|
-
contrastText:
|
|
38
|
-
light:
|
|
39
|
-
main:
|
|
40
|
-
dark:
|
|
35
|
+
...l,
|
|
36
|
+
contrastText: _[100],
|
|
37
|
+
light: l[300],
|
|
38
|
+
main: S(l[400], .05),
|
|
39
|
+
dark: l[400],
|
|
41
40
|
white: "#ffffff",
|
|
42
41
|
black: "#000000"
|
|
43
42
|
},
|
|
44
43
|
info: {
|
|
45
|
-
...
|
|
46
|
-
contrastText:
|
|
47
|
-
light:
|
|
48
|
-
main:
|
|
49
|
-
dark:
|
|
44
|
+
...f,
|
|
45
|
+
contrastText: _[100],
|
|
46
|
+
light: f[300],
|
|
47
|
+
main: f[400],
|
|
48
|
+
dark: f[400],
|
|
50
49
|
white: "#ffffff",
|
|
51
50
|
black: "#000000"
|
|
52
51
|
},
|
|
53
52
|
warning: {
|
|
54
|
-
...
|
|
55
|
-
contrastText:
|
|
56
|
-
light:
|
|
57
|
-
main:
|
|
58
|
-
dark:
|
|
53
|
+
...r,
|
|
54
|
+
contrastText: _[100],
|
|
55
|
+
light: r[400],
|
|
56
|
+
main: r[500],
|
|
57
|
+
dark: r[500],
|
|
59
58
|
white: "#ffffff",
|
|
60
59
|
black: "#000000"
|
|
61
60
|
},
|
|
62
61
|
error: {
|
|
63
|
-
...
|
|
64
|
-
contrastText:
|
|
65
|
-
light:
|
|
66
|
-
main:
|
|
67
|
-
dark:
|
|
62
|
+
...o,
|
|
63
|
+
contrastText: _[100],
|
|
64
|
+
light: o[300],
|
|
65
|
+
main: S(o[400], .22),
|
|
66
|
+
dark: S(o[400], .15),
|
|
68
67
|
white: "#ffffff",
|
|
69
68
|
black: "#000000"
|
|
70
69
|
},
|
|
71
70
|
success: {
|
|
72
|
-
...
|
|
73
|
-
contrastText:
|
|
74
|
-
light:
|
|
75
|
-
main:
|
|
76
|
-
dark:
|
|
71
|
+
...i,
|
|
72
|
+
contrastText: _[100],
|
|
73
|
+
light: i[300],
|
|
74
|
+
main: i[400],
|
|
75
|
+
dark: i[400],
|
|
77
76
|
white: "#ffffff",
|
|
78
77
|
black: "#000000"
|
|
79
78
|
},
|
|
80
|
-
grey:
|
|
81
|
-
divider:
|
|
79
|
+
grey: u,
|
|
80
|
+
divider: b(u[700], .9),
|
|
82
81
|
background: {
|
|
83
|
-
default:
|
|
84
|
-
paper:
|
|
82
|
+
default: u[900],
|
|
83
|
+
paper: u[800]
|
|
85
84
|
},
|
|
86
85
|
text: {
|
|
87
|
-
primary:
|
|
88
|
-
secondary:
|
|
89
|
-
disabled:
|
|
86
|
+
primary: u[50],
|
|
87
|
+
secondary: u[400],
|
|
88
|
+
disabled: u[500]
|
|
90
89
|
},
|
|
91
90
|
action: {
|
|
92
|
-
active:
|
|
93
|
-
hover:
|
|
94
|
-
selected:
|
|
91
|
+
active: u[50],
|
|
92
|
+
hover: b(u[600], .2),
|
|
93
|
+
selected: b(u[600], .3)
|
|
95
94
|
},
|
|
96
95
|
baseShadow: "hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"
|
|
97
96
|
} }, D = {
|
|
98
97
|
light: { palette: {
|
|
99
|
-
gradient:
|
|
98
|
+
gradient: h,
|
|
100
99
|
blackAlpha: {
|
|
101
|
-
zero:
|
|
102
|
-
light:
|
|
103
|
-
medium:
|
|
104
|
-
dark:
|
|
105
|
-
full:
|
|
100
|
+
zero: _[0],
|
|
101
|
+
light: _[10],
|
|
102
|
+
medium: _[50],
|
|
103
|
+
dark: _[80],
|
|
104
|
+
full: _[100]
|
|
106
105
|
},
|
|
107
106
|
whiteAlpha: {
|
|
108
|
-
zero:
|
|
109
|
-
light:
|
|
110
|
-
medium:
|
|
111
|
-
dark:
|
|
112
|
-
full:
|
|
107
|
+
zero: y[0],
|
|
108
|
+
light: y[10],
|
|
109
|
+
medium: y[50],
|
|
110
|
+
dark: y[80],
|
|
111
|
+
full: y[100]
|
|
113
112
|
},
|
|
114
|
-
ui: { pulse:
|
|
113
|
+
ui: { pulse: m },
|
|
115
114
|
primary: {
|
|
116
|
-
...
|
|
117
|
-
contrastText:
|
|
118
|
-
light:
|
|
119
|
-
main:
|
|
120
|
-
dark:
|
|
115
|
+
...c,
|
|
116
|
+
contrastText: c[50],
|
|
117
|
+
light: c[200],
|
|
118
|
+
main: c[500],
|
|
119
|
+
dark: c[700],
|
|
121
120
|
white: "#ffffff",
|
|
122
121
|
black: "#000000"
|
|
123
122
|
},
|
|
124
123
|
secondary: {
|
|
125
|
-
...
|
|
126
|
-
contrastText:
|
|
127
|
-
light:
|
|
128
|
-
main:
|
|
129
|
-
dark:
|
|
124
|
+
...p,
|
|
125
|
+
contrastText: p[50],
|
|
126
|
+
light: p[200],
|
|
127
|
+
main: p[500],
|
|
128
|
+
dark: p[700],
|
|
130
129
|
white: "#ffffff",
|
|
131
130
|
black: "#000000"
|
|
132
131
|
},
|
|
133
132
|
info: {
|
|
134
|
-
...
|
|
135
|
-
contrastText:
|
|
136
|
-
light:
|
|
137
|
-
main:
|
|
138
|
-
dark:
|
|
133
|
+
...e,
|
|
134
|
+
contrastText: e[50],
|
|
135
|
+
light: e[200],
|
|
136
|
+
main: e[700],
|
|
137
|
+
dark: e[800],
|
|
139
138
|
white: "#ffffff",
|
|
140
139
|
black: "#000000"
|
|
141
140
|
},
|
|
142
141
|
warning: {
|
|
143
|
-
...
|
|
144
|
-
contrastText:
|
|
145
|
-
light:
|
|
146
|
-
main:
|
|
147
|
-
dark:
|
|
142
|
+
...a,
|
|
143
|
+
contrastText: a[50],
|
|
144
|
+
light: a[200],
|
|
145
|
+
main: a[900],
|
|
146
|
+
dark: a[900],
|
|
148
147
|
white: "#ffffff",
|
|
149
148
|
black: "#000000"
|
|
150
149
|
},
|
|
151
150
|
error: {
|
|
152
|
-
...
|
|
153
|
-
contrastText:
|
|
154
|
-
light:
|
|
155
|
-
main:
|
|
156
|
-
dark:
|
|
151
|
+
...n,
|
|
152
|
+
contrastText: n[50],
|
|
153
|
+
light: n[200],
|
|
154
|
+
main: n[600],
|
|
155
|
+
dark: n[700],
|
|
157
156
|
white: "#ffffff",
|
|
158
157
|
black: "#000000"
|
|
159
158
|
},
|
|
160
159
|
success: {
|
|
161
|
-
...
|
|
162
|
-
contrastText:
|
|
163
|
-
light:
|
|
164
|
-
main:
|
|
165
|
-
dark:
|
|
160
|
+
...t,
|
|
161
|
+
contrastText: t[50],
|
|
162
|
+
light: t[200],
|
|
163
|
+
main: t[800],
|
|
164
|
+
dark: t[900],
|
|
166
165
|
white: "#ffffff",
|
|
167
166
|
black: "#000000"
|
|
168
167
|
},
|
|
169
|
-
grey:
|
|
170
|
-
divider:
|
|
168
|
+
grey: d,
|
|
169
|
+
divider: b(d[300], .9),
|
|
171
170
|
background: {
|
|
172
|
-
default:
|
|
173
|
-
paper:
|
|
171
|
+
default: d[50],
|
|
172
|
+
paper: d[100]
|
|
174
173
|
},
|
|
175
174
|
text: {
|
|
176
|
-
primary:
|
|
177
|
-
secondary:
|
|
178
|
-
disabled:
|
|
175
|
+
primary: d[900],
|
|
176
|
+
secondary: d[600],
|
|
177
|
+
disabled: d[400]
|
|
179
178
|
},
|
|
180
179
|
action: {
|
|
181
|
-
active:
|
|
182
|
-
hover:
|
|
183
|
-
selected:
|
|
180
|
+
active: d[900],
|
|
181
|
+
hover: b(d[300], .2),
|
|
182
|
+
selected: b(d[300], .3)
|
|
184
183
|
},
|
|
185
184
|
baseShadow: "rgba(15, 23, 42, 0.08) 0px 2px 8px 0px, rgba(15, 23, 42, 0.04) 0px 1px 2px -1px"
|
|
186
185
|
} },
|
package/dist/utils/dayjs.js
CHANGED
|
@@ -1,145 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import n
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_isToday = r();
|
|
7
|
-
})(e, (function() {
|
|
8
|
-
return function(e, t, n) {
|
|
9
|
-
t.prototype.isToday = function() {
|
|
10
|
-
var e = "YYYY-MM-DD", t = n();
|
|
11
|
-
return this.format(e) === t.format(e);
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}));
|
|
15
|
-
})), a = /* @__PURE__ */ t(((e, t) => {
|
|
16
|
-
(function(n, r) {
|
|
17
|
-
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_relativeTime = r();
|
|
18
|
-
})(e, (function() {
|
|
19
|
-
return function(e, t, n) {
|
|
20
|
-
e ||= {};
|
|
21
|
-
var r = t.prototype, i = {
|
|
22
|
-
future: "in %s",
|
|
23
|
-
past: "%s ago",
|
|
24
|
-
s: "a few seconds",
|
|
25
|
-
m: "a minute",
|
|
26
|
-
mm: "%d minutes",
|
|
27
|
-
h: "an hour",
|
|
28
|
-
hh: "%d hours",
|
|
29
|
-
d: "a day",
|
|
30
|
-
dd: "%d days",
|
|
31
|
-
M: "a month",
|
|
32
|
-
MM: "%d months",
|
|
33
|
-
y: "a year",
|
|
34
|
-
yy: "%d years"
|
|
35
|
-
};
|
|
36
|
-
function a(e, t, n, i) {
|
|
37
|
-
return r.fromToBase(e, t, n, i);
|
|
38
|
-
}
|
|
39
|
-
n.en.relativeTime = i, r.fromToBase = function(t, r, a, o, s) {
|
|
40
|
-
for (var c, l, u, d = a.$locale().relativeTime || i, f = e.thresholds || [
|
|
41
|
-
{
|
|
42
|
-
l: "s",
|
|
43
|
-
r: 44,
|
|
44
|
-
d: "second"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
l: "m",
|
|
48
|
-
r: 89
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
l: "mm",
|
|
52
|
-
r: 44,
|
|
53
|
-
d: "minute"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
l: "h",
|
|
57
|
-
r: 89
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
l: "hh",
|
|
61
|
-
r: 21,
|
|
62
|
-
d: "hour"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
l: "d",
|
|
66
|
-
r: 35
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
l: "dd",
|
|
70
|
-
r: 25,
|
|
71
|
-
d: "day"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
l: "M",
|
|
75
|
-
r: 45
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
l: "MM",
|
|
79
|
-
r: 10,
|
|
80
|
-
d: "month"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
l: "y",
|
|
84
|
-
r: 17
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
l: "yy",
|
|
88
|
-
d: "year"
|
|
89
|
-
}
|
|
90
|
-
], p = f.length, m = 0; m < p; m += 1) {
|
|
91
|
-
var h = f[m];
|
|
92
|
-
h.d && (c = o ? n(t).diff(a, h.d, !0) : a.diff(t, h.d, !0));
|
|
93
|
-
var g = (e.rounding || Math.round)(Math.abs(c));
|
|
94
|
-
if (u = c > 0, g <= h.r || !h.r) {
|
|
95
|
-
g <= 1 && m > 0 && (h = f[m - 1]);
|
|
96
|
-
var _ = d[h.l];
|
|
97
|
-
s && (g = s("" + g)), l = typeof _ == "string" ? _.replace("%d", g) : _(g, r, h.l, u);
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
if (r) return l;
|
|
102
|
-
var v = u ? d.future : d.past;
|
|
103
|
-
return typeof v == "function" ? v(l) : v.replace("%s", l);
|
|
104
|
-
}, r.to = function(e, t) {
|
|
105
|
-
return a(e, t, this, !0);
|
|
106
|
-
}, r.from = function(e, t) {
|
|
107
|
-
return a(e, t, this);
|
|
108
|
-
};
|
|
109
|
-
var o = function(e) {
|
|
110
|
-
return e.$u ? n.utc() : n();
|
|
111
|
-
};
|
|
112
|
-
r.toNow = function(e) {
|
|
113
|
-
return this.to(o(this), e);
|
|
114
|
-
}, r.fromNow = function(e) {
|
|
115
|
-
return this.from(o(this), e);
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
}));
|
|
119
|
-
})), o = /* @__PURE__ */ t(((e, t) => {
|
|
120
|
-
(function(n, r) {
|
|
121
|
-
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_updateLocale = r();
|
|
122
|
-
})(e, (function() {
|
|
123
|
-
function e() {
|
|
124
|
-
return e = Object.assign || function(e) {
|
|
125
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
126
|
-
var n = arguments[t];
|
|
127
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
128
|
-
}
|
|
129
|
-
return e;
|
|
130
|
-
}, e.apply(this, arguments);
|
|
131
|
-
}
|
|
132
|
-
return function(t, n, r) {
|
|
133
|
-
r.updateLocale = function(t, n) {
|
|
134
|
-
var i = r.Ls[t];
|
|
135
|
-
if (i) return (n ? Object.keys(n) : []).forEach((function(t) {
|
|
136
|
-
i[t] && n[t] && typeof i[t] == "object" && typeof n[t] == "object" && !Array.isArray(i[t]) ? i[t] = e({}, i[t], n[t]) : i[t] = n[t];
|
|
137
|
-
})), i;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
}));
|
|
141
|
-
})), s = /* @__PURE__ */ e(i(), 1), c = /* @__PURE__ */ e(a(), 1), l = /* @__PURE__ */ e(o(), 1);
|
|
142
|
-
r(c.default), r(l.default), n.extend(c.default), n.extend(s.default), n.updateLocale("en", { relativeTime: {
|
|
1
|
+
import e, { extend as t } from "dayjs";
|
|
2
|
+
import n from "dayjs/plugin/isToday";
|
|
3
|
+
import r from "dayjs/plugin/relativeTime";
|
|
4
|
+
import i from "dayjs/plugin/updateLocale";
|
|
5
|
+
t(r), t(i), e.extend(r), e.extend(n), e.updateLocale("en", { relativeTime: {
|
|
143
6
|
future: "in %s",
|
|
144
7
|
past: "%s ago",
|
|
145
8
|
s: "a few sec",
|
|
@@ -154,9 +17,9 @@ r(c.default), r(l.default), n.extend(c.default), n.extend(s.default), n.updateLo
|
|
|
154
17
|
y: "a year",
|
|
155
18
|
yy: "%d years"
|
|
156
19
|
} });
|
|
157
|
-
var
|
|
158
|
-
let
|
|
159
|
-
return
|
|
20
|
+
var a = (t) => {
|
|
21
|
+
let n = e(t), r = e().diff(n, "day");
|
|
22
|
+
return n.isToday() || r === 0 ? "Today" : r < 6 && r > 0 ? `${r}d ago` : n.format("MMM-DD");
|
|
160
23
|
};
|
|
161
24
|
//#endregion
|
|
162
|
-
export {
|
|
25
|
+
export { e as dayjs, a as formatDatePosted };
|
package/package.json
CHANGED
package/dist/Add-COc9VdNg.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./createSvgIcon-B0SZlJF1.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region ../../node_modules/@mui/icons-material/Add.mjs
|
|
4
|
-
var n = e(/* @__PURE__ */ t("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
|
|
5
|
-
//#endregion
|
|
6
|
-
export { n as t };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./createSvgIcon-B0SZlJF1.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region ../../node_modules/@mui/icons-material/ArrowUpward.mjs
|
|
4
|
-
var n = e(/* @__PURE__ */ t("path", { d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z" }), "ArrowUpward");
|
|
5
|
-
//#endregion
|
|
6
|
-
export { n as t };
|
package/dist/Box-9oeZgA1U.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
import { c as t, l as n, n as r } from "./defaultTheme-BaGcIzCh.js";
|
|
3
|
-
import { t as i } from "./prop-types-BzYPyWN7.js";
|
|
4
|
-
import { a, t as o } from "./createTheme-xB2Em0Na.js";
|
|
5
|
-
import { n as s } from "./generateUtilityClass-PAIOm1jC.js";
|
|
6
|
-
import { t as c } from "./clsx-DGZSe4Nt.js";
|
|
7
|
-
import { t as l } from "./generateUtilityClasses-DvX505Gy.js";
|
|
8
|
-
import * as u from "react";
|
|
9
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
10
|
-
//#region ../../node_modules/@mui/system/createBox/createBox.mjs
|
|
11
|
-
function f(e = {}) {
|
|
12
|
-
let { themeId: n, defaultTheme: i, defaultClassName: o = "MuiBox-root", generateClassName: s } = e, l = t("div", { shouldForwardProp: (e) => e !== "theme" && e !== "sx" && e !== "as" })(a);
|
|
13
|
-
return /* @__PURE__ */ u.forwardRef(function(e, t) {
|
|
14
|
-
let a = r(i), { className: u, component: f = "div", ...p } = e;
|
|
15
|
-
return /* @__PURE__ */ d(l, {
|
|
16
|
-
as: f,
|
|
17
|
-
ref: t,
|
|
18
|
-
className: c(u, s ? s(o) : o),
|
|
19
|
-
theme: n && a[n] || a,
|
|
20
|
-
...p
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region ../../node_modules/@mui/material/Box/boxClasses.mjs
|
|
26
|
-
var p = /* @__PURE__ */ e(i(), 1), m = l("MuiBox", ["root"]), h = f({
|
|
27
|
-
themeId: n,
|
|
28
|
-
defaultTheme: o(),
|
|
29
|
-
defaultClassName: m.root,
|
|
30
|
-
generateClassName: s.generate
|
|
31
|
-
});
|
|
32
|
-
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
33
|
-
children: p.default.node,
|
|
34
|
-
component: p.default.elementType,
|
|
35
|
-
sx: p.default.oneOfType([
|
|
36
|
-
p.default.arrayOf(p.default.oneOfType([
|
|
37
|
-
p.default.func,
|
|
38
|
-
p.default.object,
|
|
39
|
-
p.default.bool
|
|
40
|
-
])),
|
|
41
|
-
p.default.func,
|
|
42
|
-
p.default.object
|
|
43
|
-
])
|
|
44
|
-
});
|
|
45
|
-
//#endregion
|
|
46
|
-
export { h as t };
|