@solostylist/ui-kit 2.0.2 → 2.0.4
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-mQAYCK0_.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-B1FcGUYs.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-animated-gradient-text/s-animated-gradient-text.js +18 -19
- package/dist/s-announcement-bar/s-announcement-bar.js +50 -53
- 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 +186 -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-drawer/index.js +1 -1
- package/dist/s-drawer/s-drawer.js +139 -2
- 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-gradient-blob-pulse/s-gradient-blob-pulse.js +23 -24
- package/dist/s-icon-button/s-icon-button.js +13 -14
- 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-interactive-card/s-interactive-card.js +39 -41
- package/dist/s-label/s-label.js +25 -26
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +145 -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-list-action-item/s-list-action-item.js +38 -39
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-mega-menu/mega-menu-panel.js +132 -134
- package/dist/s-mega-menu/mega-menu-trigger.js +49 -2
- package/dist/s-mega-menu/s-mega-menu.js +80 -83
- package/dist/s-mobile-dock/index.js +1 -1
- package/dist/s-mobile-dock/s-mobile-dock.js +145 -2
- package/dist/s-nav-item/s-nav-item.js +19 -20
- package/dist/s-nav-items/s-nav-items.js +51 -52
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -2
- package/dist/s-number-range/index.js +1 -1
- package/dist/s-number-range/s-number-range.js +250 -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-popover/s-popover-content.js +11 -12
- package/dist/s-popover/s-popover.js +22 -24
- package/dist/s-product-card/s-product-card.js +177 -180
- package/dist/s-product-gallery/index.js +1 -1
- package/dist/s-product-gallery/s-product-gallery.js +427 -2
- package/dist/s-quantity-input/s-quantity-input.js +24 -24
- 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-segmented-control/s-segmented-control.js +64 -68
- 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 +12 -13
- 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-stepper/index.js +1 -1
- package/dist/s-stepper/s-stepper.js +102 -2
- package/dist/s-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- package/dist/s-swatch/s-swatch.js +34 -35
- 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 +213 -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/drawer.js +1 -1
- 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-CXtaMdVj.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +8 -3
- package/dist/Add-CEnTWsXs.js +0 -6
- package/dist/ArrowUpward-udL1ltj2.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DaLr1m20.js +0 -534
- package/dist/ButtonBase-DovDC6-1.js +0 -700
- package/dist/Checkbox-C-Xjbzzh.js +0 -152
- package/dist/ChevronRight-DsPfsFKB.js +0 -6
- package/dist/Close-CIYOM-Sc.js +0 -6
- package/dist/Collapse-DPUr1cbP.js +0 -266
- package/dist/ContentCopy-Hlh3azVb.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-b3xbJVC6.js +0 -450
- package/dist/Download-D9PkFi7a.js +0 -6
- package/dist/ExpandMore-sOgvEha9.js +0 -6
- package/dist/Favorite-BP343hjM.js +0 -6
- package/dist/FavoriteBorder-D15j9xEL.js +0 -6
- package/dist/FormControl-DwMfZCiz.js +0 -215
- package/dist/FormControlLabel-Ihga1FTB.js +0 -173
- package/dist/Grow-BQR7x52V.js +0 -121
- package/dist/IconButton-CE-4GamO.js +0 -448
- package/dist/InfoOutlined-lpvhO6P8.js +0 -6
- package/dist/List-RNcZhRdr.js +0 -105
- package/dist/Menu-CnyB4SDS.js +0 -180
- package/dist/MenuItem-Ck30dBOR.js +0 -224
- package/dist/MenuList-Cc98uWXq.js +0 -160
- package/dist/Modal-CD2EBfU8.js +0 -702
- package/dist/Paper-_3qggtBp.js +0 -115
- package/dist/Popover-BFdKSYI5.js +0 -340
- package/dist/Popper-DYNAMSDd.js +0 -1351
- package/dist/Portal-i_wgIe9-.js +0 -49
- package/dist/Remove-DDEn8ek8.js +0 -6
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-C0LGzM4c.js +0 -158
- package/dist/SwitchBase-CjWtDdmE.js +0 -198
- package/dist/Tooltip-B1sn94L0.js +0 -448
- package/dist/Typography-_P0svrkO.js +0 -168
- package/dist/UnfoldMoreRounded-CuCrdxoy.js +0 -6
- package/dist/appendOwnerState-CFQTq3pb.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-BgARERpp.js +0 -43
- package/dist/avatar-XNOdbbRz.js +0 -10
- package/dist/buttonBaseClasses-B90LjsNK.js +0 -13
- package/dist/capitalize-C0baBJCm.js +0 -5
- package/dist/chainPropTypes-CkMRtDjQ.js +0 -8
- package/dist/checkbox-D1U_JKqs.js +0 -88
- package/dist/checkboxClasses-B1up2lUn.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-DnqPQsQU.js +0 -16
- package/dist/createSimplePaletteValueFilter-DFvyXHoZ.js +0 -14
- package/dist/createSvgIcon-3y-gS0r1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-pKEY6jPR.js +0 -25
- package/dist/elementTypeAcceptingRef-xl_04Y5-.js +0 -19
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/extends-DXMyyJCW.js +0 -12
- package/dist/field-label-styles-4praXMaE.js +0 -50
- package/dist/formLabelClasses-AuZHWfTs.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/getActiveElement-BfBkhgy6.js +0 -8
- package/dist/iconButtonClasses-CVVRFXRo.js +0 -27
- package/dist/inputAdornmentClasses-BbB8s-Z4.js +0 -19
- package/dist/inputBaseClasses-Ce_jjdp9.js +0 -25
- package/dist/integerPropType-CCkQD1JY.js +0 -27
- package/dist/isEventHandler-QShLXBxE.js +0 -7
- package/dist/isFocusVisible-4OIE8TST.js +0 -11
- package/dist/isLayoutSupported-Btg2X3QE.js +0 -6
- package/dist/isMuiElement-CPjhi284.js +0 -10
- package/dist/mega-menu-trigger-BcOo8I5_.js +0 -53
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-DC8r4QzS.js +0 -45
- package/dist/monthCalendarClasses-b964KRbc.js +0 -14
- package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +0 -12
- package/dist/outlinedInputClasses-ci1zDasn.js +0 -17
- package/dist/ownerDocument-CJjQZweZ.js +0 -6
- package/dist/ownerDocument-pYjJiXem.js +0 -5
- package/dist/ownerWindow-SSeeoqPT.js +0 -18
- package/dist/pickersCalendarHeaderClasses-BAiPN_oY.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/refType-j5S9pc_e.js +0 -6
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-1oLxQhod.js +0 -487
- package/dist/s-carousel-CAyAl3ka.js +0 -1355
- package/dist/s-chat-input-T3gyan60.js +0 -419
- package/dist/s-chat-message-NFTpNgt5.js +0 -315
- package/dist/s-chips-Dqq1fgz-.js +0 -176
- package/dist/s-code-block-DyDtctGG.js +0 -658
- package/dist/s-comment-message-DpCVBKiE.js +0 -192
- package/dist/s-data-table-D4V58HFR.js +0 -805
- package/dist/s-date-picker-BFIQOA8C.js +0 -657
- package/dist/s-datetime-picker-zfg7BEOW.js +0 -3886
- package/dist/s-dialog-BNlXsVVP.js +0 -123
- package/dist/s-drawer-4h5ZyoM8.js +0 -562
- package/dist/s-file-dropzone-Cfzv1Cm8.js +0 -422
- package/dist/s-image-viewer-CjK67-rs.js +0 -269
- package/dist/s-language-switcher-PaMgHWc2.js +0 -246
- package/dist/s-link-Db1aabHh.js +0 -235
- package/dist/s-localization-provider-CeyB_SGz.js +0 -519
- package/dist/s-mobile-dock-8F3UWAb8.js +0 -615
- package/dist/s-no-ssr-DH57_uP_.js +0 -25
- package/dist/s-number-range-Low5QjuD.js +0 -253
- package/dist/s-pagination-s46hBifh.js +0 -606
- package/dist/s-product-gallery-Dj9eGg5i.js +0 -430
- package/dist/s-review--Q2C0ngO.js +0 -272
- package/dist/s-select-CtVKEOZ5.js +0 -204
- package/dist/s-snackbar-message-DsfJlDYd.js +0 -810
- package/dist/s-stepper-BtODHVro.js +0 -892
- package/dist/s-switch-BCeBoxWf.js +0 -307
- package/dist/s-text-editor-toolbar-D5eQ-jCs.js +0 -2124
- package/dist/s-text-field-HYyDf1Jo.js +0 -51
- package/dist/s-theme-switch-BFWpADh3.js +0 -60
- package/dist/s-tip-jbL7vtoU.js +0 -62
- package/dist/selectClasses-CPxME5jE.js +0 -22
- package/dist/setRef-BWPyWnrr.js +0 -6
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-1kWGzgux.js +0 -20
- package/dist/switchClasses-BtweO7PC.js +0 -23
- package/dist/theme-demo-components-section-C7l_2KAo.js +0 -267
- package/dist/toggle-button-BsGb-tOr.js +0 -104
- package/dist/tool-bar-action-buttons-v1koaasr.js +0 -54
- package/dist/tool-bar-image-input-DtXTyEe1.js +0 -148
- package/dist/typographyClasses-BH_-zLwg.js +0 -31
- package/dist/unsupportedProp-whMV_uOi.js +0 -11
- package/dist/useControlled-DqNPBJNp.js +0 -5
- package/dist/useControlled-uxVKygk1.js +0 -29
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEnhancedEffect-dBFfkm1e.js +0 -5
- package/dist/useEventCallback-DGCsaRIu.js +0 -5
- package/dist/useEventCallback-DhCPBxRG.js +0 -11
- package/dist/useForkRef-BuNFTXxE.js +0 -29
- package/dist/useFormControl-gXwNeUM1.js +0 -18
- package/dist/useMobilePicker-CdrT935R.js +0 -7584
- package/dist/useRovingTabIndex-DPlW997R.js +0 -242
- package/dist/useSlot-BG8ReOxN.js +0 -83
- package/dist/useSlotProps-BOO3qaI9.js +0 -16
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-Dw9dmKyT.js +0 -29
- package/dist/useTimeout-CoK-Khfm.js +0 -49
- package/dist/utils-Bfqbev5I.js +0 -248
- package/dist/warning-D5YhCbje.js +0 -99
- package/dist/yearCalendarClasses-D9k_KT38.js +0 -14
- /package/dist/{colors-Bik9qOU9.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-D7Jovf5K.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DOY6v6ln.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { reducedMotionMedia as e } from "./action-styles.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import "@mui/x-date-pickers/themeAugmentation";
|
|
3
|
+
import t from "@mui/icons-material/ExpandMore";
|
|
4
|
+
import { pickersCalendarHeaderClasses as n } from "@mui/x-date-pickers/PickersCalendarHeader";
|
|
4
5
|
//#region lib/theme/components/pickers-calendar-header.tsx
|
|
5
6
|
var r = {
|
|
6
7
|
defaultProps: { slots: { switchViewIcon: t } },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import t from "@mui/icons-material/UnfoldMoreRounded";
|
|
3
|
+
import { selectClasses as n } from "@mui/material/Select";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region lib/theme/components/select.tsx
|
|
6
6
|
var i = {
|
|
7
|
-
defaultProps: { IconComponent:
|
|
7
|
+
defaultProps: { IconComponent: e.forwardRef((e, n) => /* @__PURE__ */ r(t, {
|
|
8
8
|
fontSize: "small",
|
|
9
|
-
...
|
|
9
|
+
...e,
|
|
10
10
|
ref: n
|
|
11
11
|
})) },
|
|
12
12
|
styleOverrides: {
|
|
@@ -18,7 +18,7 @@ var i = {
|
|
|
18
18
|
color: "inherit",
|
|
19
19
|
right: e.spacing(1)
|
|
20
20
|
}),
|
|
21
|
-
root: ({ theme: e }) => ({ [`&:has(.${
|
|
21
|
+
root: ({ theme: e }) => ({ [`&:has(.${n.select} > span) .${n.icon}`]: { color: (e.vars ?? e).palette.text.secondary } })
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
@@ -1,2 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { actionHoverMedia as e, getFocusVisibleStyle as t, getSelectedActionStyle as n, isSemanticActionColor as r, reducedPressMotionStyle as i, semanticActionColors as a } from "./action-styles.js";
|
|
2
|
+
import { buttonBaseClasses as o } from "@mui/material/ButtonBase";
|
|
3
|
+
import { toggleButtonClasses as s } from "@mui/material/ToggleButton";
|
|
4
|
+
//#region lib/theme/components/toggle-button.tsx
|
|
5
|
+
var c = (n) => {
|
|
6
|
+
let r = (n.vars ?? n).palette;
|
|
7
|
+
return {
|
|
8
|
+
backgroundColor: r.action.selected,
|
|
9
|
+
color: r.text.primary,
|
|
10
|
+
[`&.${o.focusVisible}`]: {
|
|
11
|
+
...t(n),
|
|
12
|
+
backgroundColor: r.action.selected
|
|
13
|
+
},
|
|
14
|
+
[e]: { "&:hover": {
|
|
15
|
+
backgroundColor: r.action.selected,
|
|
16
|
+
color: r.text.primary
|
|
17
|
+
} },
|
|
18
|
+
[`&.${s.disabled}`]: {
|
|
19
|
+
backgroundColor: r.action.disabledBackground,
|
|
20
|
+
borderColor: "transparent",
|
|
21
|
+
color: r.action.disabled
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}, l = {
|
|
25
|
+
defaultProps: { disableFocusRipple: !0 },
|
|
26
|
+
styleOverrides: { root: ({ ownerState: l, theme: u }) => {
|
|
27
|
+
let d = (u.vars ?? u).palette, f = l.color ?? "standard", p = r(f) ? d[f] : d.primary;
|
|
28
|
+
return {
|
|
29
|
+
borderRadius: (u.vars ?? u).shape.borderRadius,
|
|
30
|
+
boxSizing: "border-box",
|
|
31
|
+
gap: u.spacing(1),
|
|
32
|
+
fontWeight: 500,
|
|
33
|
+
paddingBlock: 0,
|
|
34
|
+
textTransform: "none",
|
|
35
|
+
transition: u.transitions.create([
|
|
36
|
+
"background-color",
|
|
37
|
+
"border-color",
|
|
38
|
+
"color"
|
|
39
|
+
], { duration: u.transitions.duration.shorter }),
|
|
40
|
+
[`&.${o.focusVisible}`]: t(u, p),
|
|
41
|
+
[e]: { [`&:hover:not(.${s.selected})`]: {
|
|
42
|
+
backgroundColor: d.action.hover,
|
|
43
|
+
color: d.text.primary
|
|
44
|
+
} },
|
|
45
|
+
[`&:active:not(.${s.disabled}):not(.${s.selected})`]: { backgroundColor: d.action.selected },
|
|
46
|
+
[`&.${s.disabled}:not(.${s.selected})`]: {
|
|
47
|
+
backgroundColor: "transparent",
|
|
48
|
+
borderColor: d.action.disabledBackground,
|
|
49
|
+
color: d.action.disabled
|
|
50
|
+
},
|
|
51
|
+
...i,
|
|
52
|
+
variants: [
|
|
53
|
+
{
|
|
54
|
+
props: { size: "small" },
|
|
55
|
+
style: {
|
|
56
|
+
height: u.spacing(4.5),
|
|
57
|
+
minWidth: u.spacing(4.5),
|
|
58
|
+
paddingInline: u.spacing(1.5)
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
props: { size: "medium" },
|
|
63
|
+
style: {
|
|
64
|
+
height: u.spacing(5),
|
|
65
|
+
minWidth: u.spacing(5),
|
|
66
|
+
paddingInline: u.spacing(2)
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
props: { size: "large" },
|
|
71
|
+
style: {
|
|
72
|
+
height: u.spacing(5.5),
|
|
73
|
+
minWidth: u.spacing(5.5),
|
|
74
|
+
paddingInline: u.spacing(2.5)
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
props: { color: "standard" },
|
|
79
|
+
style: { [`&.${s.selected}`]: c(u) }
|
|
80
|
+
},
|
|
81
|
+
...a.map((e) => ({
|
|
82
|
+
props: { color: e },
|
|
83
|
+
style: { [`&.${s.selected}`]: {
|
|
84
|
+
...n(u, e),
|
|
85
|
+
borderColor: "transparent"
|
|
86
|
+
} }
|
|
87
|
+
}))
|
|
88
|
+
]
|
|
89
|
+
};
|
|
90
|
+
} }
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
export { l as MuiToggleButton };
|
|
@@ -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-mQAYCK0_.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 };
|