@gobolt/genesis 0.1.5 → 0.2.0
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/README.md +6 -8
- package/dist/AntdIcon-DH0CLM1Y.cjs +58 -0
- package/dist/CSSMotionList-BkQaDrZL.cjs +54 -0
- package/dist/CSSMotionList-Bnxp3McO.js +3043 -0
- package/dist/CheckCircleFilled-CjHdYIbm.cjs +1 -0
- package/dist/CheckOutlined-zCdr5BJm.cjs +1 -0
- package/dist/ClockCircleOutlined-5UFb32Vd.cjs +1 -0
- package/dist/CloseCircleFilled-DTf4XAEx.cjs +1 -0
- package/dist/CloseOutlined-Bdhtz5G6.cjs +1 -0
- package/dist/{Compact-DFcWZrNo.js → Compact-DLyEiUiM.js} +4 -4
- package/dist/Compact-DbbroFuI.cjs +1 -0
- package/dist/Context-C1u4yclk.cjs +1 -0
- package/dist/ContextIsolator-CoEIkMNv.cjs +1 -0
- package/dist/{ContextIsolator-CUJnq-4F.js → ContextIsolator-DmNIEQ4a.js} +2 -2
- package/dist/{DownOutlined-Bv7ua5i8.js → DownOutlined-B6sv2Wz7.js} +5 -5
- package/dist/DownOutlined-BQeYXxEW.cjs +4 -0
- package/dist/EllipsisOutlined-41dQ6mc7.cjs +1 -0
- package/dist/{EllipsisOutlined-BodkguEc.js → EllipsisOutlined-p42n6YT6.js} +62 -61
- package/dist/ExclamationCircleFilled-CKIE3287.cjs +1 -0
- package/dist/{Input--qsU-6vp.js → Input-BQWrpo9X.js} +10 -10
- package/dist/Input-DR_AoU5d.cjs +1 -0
- package/dist/KeyCode-CIq7HTTY.cjs +1 -0
- package/dist/Keyframes-CLS7wZIp.cjs +1 -0
- package/dist/{Keyframes-CyO2Aeq-.js → Keyframes-DIF9LGg-.js} +1 -1
- package/dist/LoadingOutlined-ByLc1sSe.cjs +1 -0
- package/dist/MinusCircleOutlined-d1WYK6RE.cjs +1 -0
- package/dist/{Overflow-CVbsx7Gn.js → Overflow-BjFvsSs4.js} +60 -59
- package/dist/Overflow-Bthkof3a.cjs +4 -0
- package/dist/SearchOutlined-BzV3qXvi.cjs +1 -0
- package/dist/{Skeleton-CudViN0a.js → Skeleton-CUGMlCIU.js} +3 -3
- package/dist/Skeleton-DJMABrvW.cjs +8 -0
- package/dist/TextArea-B8UHj7uQ.cjs +15 -0
- package/dist/{TextArea-CHo3cxKw.js → TextArea-FhT_niDe.js} +11 -11
- package/dist/{Typography-B2J8CPnt.js → Typography-BKm8uXM1.js} +52 -50
- package/dist/Typography-DCxwDJFP.cjs +10 -0
- package/dist/_baseIsEqual-DnZ6AoVd.cjs +1 -0
- package/dist/_commonjsHelpers-BTDuMlIz.cjs +1 -0
- package/dist/asyncToGenerator-Dr7BhN2C.cjs +1 -0
- package/dist/{button-CYVlK7G0.js → button-CvcGKj7O.js} +31 -31
- package/dist/button-vyLzOdPi.cjs +1 -0
- package/dist/collapse-DNCMuTyD.cjs +3 -0
- package/dist/compact-item-B2FiQh6y.cjs +1 -0
- package/dist/components/Avatar/Avatar.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Avatar/index.cjs.js +1 -0
- package/dist/components/Avatar/index.es.js +4 -0
- package/dist/components/Avatar/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
- package/dist/components/Avatar/styles.d.ts +1 -12
- package/dist/components/Badge/Badge.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Badge/Badge.d.ts +4 -1
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +1 -0
- package/dist/components/Badge/__tests__/Badge.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Badge/index.cjs.js +1 -0
- package/dist/components/Badge/index.es.js +4 -0
- package/dist/components/Badge/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +10 -14
- package/dist/components/Badge/styles.d.ts +1 -8
- package/dist/components/Breadcrumb/Breadcrumb.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Breadcrumb/index.cjs.js +1 -0
- package/dist/components/Breadcrumb/index.es.js +4 -0
- package/dist/components/Breadcrumb/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +60 -0
- package/dist/components/Breadcrumb/styles.d.ts +2 -23
- package/dist/components/Button/Button.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Button/Button.d.ts +4 -3
- package/dist/components/Button/IconButton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Button/IconButton.d.ts +8 -0
- package/dist/components/Button/UtilityButton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Button/UtilityButton.d.ts +5 -0
- package/dist/components/Button/__stories__/Button.stories.d.ts +0 -4
- package/dist/components/Button/__stories__/IconButton.stories.d.ts +8 -0
- package/dist/components/Button/__stories__/UtilityButton.stories.d.ts +8 -0
- package/dist/components/Button/__tests__/Button.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Button/icon-button-styles.[format === /"es/" ? /"js/" : /"cjs/"]" +61 -0
- package/dist/components/Button/icon-button-styles.d.ts +1 -0
- package/dist/components/Button/index.cjs.js +1 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/index.es.js +8 -0
- package/dist/components/Button/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +66 -0
- package/dist/components/Button/styles.d.ts +1 -15
- package/dist/components/Card/Card.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Card/__tests__/Card.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Card/index.cjs.js +1 -0
- package/dist/components/Card/index.es.js +4 -0
- package/dist/components/Card/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Card/styles.d.ts +1 -10
- package/dist/components/Checkbox/Checkbox.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Checkbox/index.cjs.js +1 -0
- package/dist/components/Checkbox/index.es.js +4 -0
- package/dist/components/Checkbox/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +17 -23
- package/dist/components/Checkbox/styles.d.ts +2 -7
- package/dist/components/Dashboard/Dashboard.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.[format === /"es/" ? /"js/" : /"cjs/"]" +2 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/index.cjs.js +1 -0
- package/dist/components/Dashboard/index.es.js +4 -0
- package/dist/components/Dashboard/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Dashboard/styles.d.ts +1 -8
- package/dist/components/DatePicker/DatePicker.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/DatePicker/index.cjs.js +1 -0
- package/dist/components/DatePicker/index.es.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/DateRangePicker/index.cjs.js +1 -0
- package/dist/components/DateRangePicker/index.es.js +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/ErrorBoundary/index.cjs.js +1 -0
- package/dist/components/ErrorBoundary/index.es.js +4 -0
- package/dist/components/ErrorBoundary/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/ErrorBoundary/styles.d.ts +1 -8
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/ErrorBoundaryFallback/index.cjs.js +1 -0
- package/dist/components/ErrorBoundaryFallback/index.es.js +4 -0
- package/dist/components/ErrorBoundaryFallback/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +11 -0
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -1
- package/dist/components/Form/Form.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Form/__stories__/FormStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Form/__tests__/form.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Form/index.cjs.js +1 -0
- package/dist/components/Form/index.es.js +4 -0
- package/dist/components/Form/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Glyph/Glyph.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Glyph/index.cjs.js +1 -0
- package/dist/components/Glyph/index.es.js +4 -0
- package/dist/components/Glyph/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Glyph/styles.d.ts +1 -8
- package/dist/components/Input/Input.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Input/Input.d.ts +3 -2
- package/dist/components/Input/__stories__/Input.stories.d.ts +1 -0
- package/dist/components/Input/__tests__/Input.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Input/index.cjs.js +1 -0
- package/dist/components/Input/index.es.js +4 -0
- package/dist/components/Input/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Input/styles.d.ts +1 -15
- package/dist/components/Layout/Content/Content.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/Content/ResponsiveContent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/Content/index.cjs.js +1 -0
- package/dist/components/Layout/Content/index.es.js +4 -0
- package/dist/components/Layout/Content/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +11 -0
- package/dist/components/Layout/Content/styles.d.ts +1 -7
- package/dist/components/Layout/Layout.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/MainLayout/MainLayout.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/MainLayout/index.cjs.js +1 -0
- package/dist/components/Layout/MainLayout/index.es.js +4 -0
- package/dist/components/Layout/MainLayout/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +62 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -4
- package/dist/components/Layout/__tests__/Layout.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/index.cjs.js +1 -0
- package/dist/components/Layout/index.es.js +4 -0
- package/dist/components/Message/Message.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Message/__tests__/Message.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Message/index.cjs.js +1 -0
- package/dist/components/Message/index.es.js +4 -0
- package/dist/components/Message/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +38 -0
- package/dist/components/Message/styles.d.ts +3 -9
- package/dist/components/Notification/Notification.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/ASN.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Appointment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Inventory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Parcel.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Product.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Route.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Shipment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/System.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/index.cjs.js +1 -0
- package/dist/components/Notification/NotificationBadge/index.es.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +28 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -3
- package/dist/components/Notification/NotificationRightChevron.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/__tests__/Notification.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/index.cjs.js +1 -0
- package/dist/components/Notification/index.es.js +4 -0
- package/dist/components/Notification/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +56 -0
- package/dist/components/Notification/styles.d.ts +5 -16
- package/dist/components/Popover/Popover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Popover/__tests__/Popover.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Popover/index.cjs.js +1 -0
- package/dist/components/Popover/index.es.js +4 -0
- package/dist/components/Popover/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Popover/styles.d.ts +1 -13
- package/dist/components/Progress/Progress.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Progress/Progress.util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Progress/ProgressText.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Progress/__tests__/Progress.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Progress/index.cjs.js +1 -0
- package/dist/components/Progress/index.es.js +4 -0
- package/dist/components/Progress/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
- package/dist/components/Progress/styles.d.ts +1 -13
- package/dist/components/Radio/Radio.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/Radio.d.ts +1 -4
- package/dist/components/Radio/RadioGroup.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/index.cjs.js +1 -0
- package/dist/components/Radio/index.es.js +4 -0
- package/dist/components/Radio/states/RadioChecked.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioCheckedHover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioUnchecked.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioUncheckedHover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/Row.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/RowActions/RowActions.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/RowActions/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +4 -9
- package/dist/components/Row/RowActions/styles.d.ts +2 -2
- package/dist/components/Row/RowLabelValue/RowLabelValue.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/RowLabelValue/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +18 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +2 -12
- package/dist/components/Row/__tests__/Row.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/index.cjs.js +1 -0
- package/dist/components/Row/index.es.js +4 -0
- package/dist/components/Row/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +10 -0
- package/dist/components/Row/styles.d.ts +1 -9
- package/dist/components/SegmentedControls/SegmentedControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/SegmentedControls/index.cjs.js +1 -0
- package/dist/components/SegmentedControls/index.es.js +4 -0
- package/dist/components/SegmentedControls/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +22 -0
- package/dist/components/SegmentedControls/styles.d.ts +1 -9
- package/dist/components/Select/DropdownChevron.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Select/Select.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Select/Select.d.ts +5 -2
- package/dist/components/Select/__stories__/Select.stories.d.ts +1 -0
- package/dist/components/Select/__tests__/Select.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Select/index.cjs.js +1 -0
- package/dist/components/Select/index.es.js +4 -0
- package/dist/components/Select/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +129 -0
- package/dist/components/Select/styles.d.ts +5 -21
- package/dist/components/Shapes/Shapes.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Shapes/index.cjs.js +1 -0
- package/dist/components/Shapes/index.es.js +4 -0
- package/dist/components/Shapes/variants/Circle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Shapes/variants/Rectangle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Shapes/variants/Triangle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Switch/Switch.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +2 -1
- package/dist/components/Switch/__tests__/Switch.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Switch/index.cjs.js +1 -0
- package/dist/components/Switch/index.es.js +4 -0
- package/dist/components/Switch/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +58 -0
- package/dist/components/Switch/styles.d.ts +1 -7
- package/dist/components/Table/Table.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/Table.d.ts +40 -11
- package/dist/components/Table/TableControls/PrimaryTableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableControls/PrimaryTableControls.d.ts +15 -0
- package/dist/components/Table/TableControls/SecondaryTableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableControls/SecondaryTableControls.d.ts +10 -0
- package/dist/components/Table/TableControls/TableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableControls/TableControls.d.ts +8 -0
- package/dist/components/Table/TableControls/__stories__/TableControls.stories.d.ts +6 -0
- package/dist/components/Table/TableControls/__tests__/TableControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableControls/index.cjs.js +1 -0
- package/dist/components/Table/TableControls/index.d.ts +2 -0
- package/dist/components/Table/TableControls/index.es.js +4 -0
- package/dist/components/Table/TableControls/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Table/TableControls/styles.d.ts +6 -0
- package/dist/components/Table/TableWithControls/TableWithControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableWithControls/TableWithControls.d.ts +12 -0
- package/dist/components/Table/TableWithControls/__stories__/TableWithControls.stories.d.ts +6 -0
- package/dist/components/Table/TableWithControls/__stories__/TableWithControlsStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableWithControls/__stories__/TableWithControlsStory.d.ts +1 -0
- package/dist/components/Table/TableWithControls/__tests__/TableWithControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableWithControls/__tests__/TableWithControls.test.d.ts +1 -0
- package/dist/components/Table/TableWithControls/index.cjs.js +1 -0
- package/dist/components/Table/TableWithControls/index.d.ts +2 -0
- package/dist/components/Table/TableWithControls/index.es.js +4 -0
- package/dist/components/Table/__mocks__/table-mocks.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +2 -1
- package/dist/components/Table/__stories__/GenesisTable.stories.d.ts +3 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +3 -1
- package/dist/components/Table/__stories__/use-table-hook.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/__stories__/use-table-hook.d.ts +9 -0
- package/dist/components/Table/__tests__/Table.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/index.cjs.js +1 -0
- package/dist/components/Table/index.es.js +4 -0
- package/dist/components/Table/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/use-table-hook.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/use-table-hook.d.ts +23 -0
- package/dist/components/Tabs/Tabs.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tabs/index.cjs.js +1 -0
- package/dist/components/Tabs/index.es.js +4 -0
- package/dist/components/Tabs/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +4 -10
- package/dist/components/Tabs/styles.d.ts +1 -9
- package/dist/components/Tile/Tile.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tile/__tests__/Tile.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tile/index.cjs.js +1 -0
- package/dist/components/Tile/index.es.js +4 -0
- package/dist/components/Tile/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +7 -0
- package/dist/components/Tile/styles.d.ts +1 -7
- package/dist/components/Toast/Toast.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Toast/__tests__/Toast.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Toast/index.cjs.js +1 -0
- package/dist/components/Toast/index.es.js +4 -0
- package/dist/components/Toast/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +38 -0
- package/dist/components/Toast/styles.d.ts +3 -9
- package/dist/components/Tooltip/Tooltip.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tooltip/index.cjs.js +1 -0
- package/dist/components/Tooltip/index.es.js +4 -0
- package/dist/components/Tooltip/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +5 -0
- package/dist/components/Tooltip/styles.d.ts +1 -14
- package/dist/components/Typography/Typography.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Typography/Typography.d.ts +1 -2
- package/dist/components/Typography/__tests__/Typography.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Typography/index.cjs.js +1 -0
- package/dist/components/Typography/index.es.js +4 -0
- package/dist/components/Typography/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +29 -0
- package/dist/components/Typography/styles.d.ts +3 -21
- package/dist/components/index.cjs.js +1 -0
- package/dist/components/index.d.cjs.js +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.es.js +62 -0
- package/dist/constants/index.cjs.js +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/{index.js → index.es.js} +14 -13
- package/dist/{context-CQfFkrkv.js → context-CTca8gjn.js} +3 -3
- package/dist/context-DdubDZbV.cjs +1 -0
- package/dist/declaration.d.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/{dropdown-BlRB2LxQ.js → dropdown-CZHhUAdC.js} +13 -13
- package/dist/dropdown-DDY5X1Q0.cjs +27 -0
- package/dist/generateCategoricalChart-Dcyk3onh.cjs +90 -0
- package/dist/genesis/GenesisThemeBreakdown.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/genesis/GenesisThemeDemo.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/genesis/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +3 -10
- package/dist/genesis/styles.d.ts +2 -11
- package/dist/iconBase-C4boY5mo.cjs +1 -0
- package/dist/index-B2Z5NSa0.cjs +4 -0
- package/dist/{index-DRGbc-fW.js → index-B56O6LEG.js} +38 -37
- package/dist/index-B6nsE0F_.cjs +16 -0
- package/dist/index-BD5op9DA.cjs +6 -0
- package/dist/{index-BZ050Dyl.js → index-BJgt3NQN.js} +7 -7
- package/dist/index-Bj0GOR4e.cjs +1 -0
- package/dist/index-Bml8d_Df.cjs +15 -0
- package/dist/index-CNA8GQQR.cjs +1 -0
- package/dist/index-CSLsxIxR.cjs +1 -0
- package/dist/index-CUpwy6fl.cjs +24 -0
- package/dist/{index-CzMIlMTV.js → index-CXee0v2G.js} +2 -2
- package/dist/{index-C2K1BzmJ.js → index-CYbLY3uE.js} +22 -21
- package/dist/{index-DCopujxC.js → index-Ce7BgA_I.js} +32 -32
- package/dist/index-Cft4ZDoE.cjs +1 -0
- package/dist/{index-Br3D3cFM.js → index-CkrCy-wr.js} +49 -48
- package/dist/index-CmiuhnsO.js +11 -0
- package/dist/{index-RtWhGOwR.js → index-CsSLy_ri.js} +9 -9
- package/dist/{index-Bxbr727t.js → index-D0AjEeN2.js} +1 -1
- package/dist/{index-B7FXyiY_.js → index-D76Ewoqp.js} +4 -4
- package/dist/{index-BHCqeC4j.js → index-D9i74AKg.js} +11 -11
- package/dist/{index-DavB5GQ3.js → index-DAtTGIsZ.js} +19 -19
- package/dist/{index-Y0KgiFZb.js → index-DJcvYBdb.js} +9 -9
- package/dist/index-DLI4yl_y.cjs +22 -0
- package/dist/index-DPPQ1GIl.cjs +10 -0
- package/dist/index-DV4cHHkU.cjs +1 -0
- package/dist/index-DY6qmEFc.js +23 -0
- package/dist/index-DdF9CYRQ.cjs +1 -0
- package/dist/index-Dwe6wwhx.cjs +7 -0
- package/dist/{index-sX7KZ-nU.js → index-FDGutzXP.js} +42 -42
- package/dist/{index-RAH9f-qb.js → index-emugciTm.js} +6 -6
- package/dist/index-x6LPvHOw.cjs +17 -0
- package/dist/index-zDIwuuqH.cjs +3 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.es.js +69 -0
- package/dist/interface/address.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/appointment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/appointmentV2.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/appointmentsState.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/common.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/completionData.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/deliveryPartner.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/organization.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/pagination.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/roles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/route.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/routeAnalysis.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/routeAutomationJob.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/routeAutomationLog.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/routeEvent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/serviceArea.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/vehicle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/workOrder.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/isVisible-BNxwNfFH.cjs +1 -0
- package/dist/magic-string.es-BMxHbF2i.cjs +10 -0
- package/dist/motion-B_a-We1F.cjs +1 -0
- package/dist/{motion-C-XpKcZG.js → motion-Tyjtqn8t.js} +2 -2
- package/dist/omit-BrHx-Kj7.cjs +1 -0
- package/dist/pickAttrs-BUFdQiVt.cjs +18 -0
- package/dist/presetColors-DyrVjOJc.cjs +1 -0
- package/dist/presets-CCbttGCy.cjs +6 -0
- package/dist/providers/BreakpointProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/providers/BreakpointProvider.d.ts +7 -0
- package/dist/providers/GenesisProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/providers/ToastProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/providers/index.cjs.js +1 -0
- package/dist/providers/index.es.js +6 -0
- package/dist/providers/useGenesis.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/providers/useGenesis.d.ts +2 -1
- package/dist/reactNode-DcoR9VZw.cjs +1 -0
- package/dist/{roundedArrow-BxPlu4Hq.js → roundedArrow-BtSC7b_q.js} +1 -1
- package/dist/roundedArrow-i9Dmpgeh.cjs +1 -0
- package/dist/{setup-aZdxWCJq.js → setup-D5hJ8cId.js} +6300 -5518
- package/dist/setup-Lma-RJTH.cjs +148 -0
- package/dist/setup.types-DNdmb6tK.cjs +46 -0
- package/dist/shadow-1q6dM13I.cjs +1 -0
- package/dist/statusUtils-DExYjn05.cjs +1 -0
- package/dist/styleChecker-Vc3-yig2.cjs +1 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/design-tokens/variables.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/design-tokens/variables.d.ts +2 -0
- package/dist/styles/{global-styles.js → global-styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +2 -6
- package/dist/styles/global-styles.d.ts +1 -1
- package/dist/styles/theme/genesis-theme.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/theme/genesis-theme.d.ts +2 -0
- package/dist/styles/theme/genesis-theme.test.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
- package/dist/styles/theme/genesis-theme.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/theme/genesis-theme.types.d.ts +7 -0
- package/dist/styles/theme/index.cjs.js +1 -0
- package/dist/styles/theme/{index.js → index.es.js} +1 -1
- package/dist/styles/theme/theme-tree/ThemeTree.[format === /"es/" ? /"js/" : /"cjs/"]" +7 -0
- package/dist/styles-BEj8fZMe.cjs +3 -0
- package/dist/styles-BWTP_Zyu.cjs +103 -0
- package/dist/styles-BfoQ93tm.cjs +91 -0
- package/dist/{styles-Wpm1RiGr.js → styles-Bnh9HSiM.js} +46 -45
- package/dist/{styles-XuoEGUZZ.js → styles-CRSK7_lW.js} +135 -122
- package/dist/{styles-DNay6iFa.js → styles-CSzrJlJ9.js} +7 -7
- package/dist/{index-CupwdUIJ.js → styles-DXLK47iT.js} +167 -157
- package/dist/styles-j60Er7XY.cjs +16 -0
- package/dist/test/setup.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/test/setup.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/{toArray-D5kvYi_U.js → toArray-BdEmgTlP.js} +1 -1
- package/dist/toArray-Cnq83wS3.cjs +1 -0
- package/dist/useBreakpoint-BkvhZP6y.cjs +1 -0
- package/dist/{useBreakpoint-ByLol0R9.js → useBreakpoint-C6P2JavP.js} +1 -1
- package/dist/{useCSSVarCls-YfJY1twF.js → useCSSVarCls-CwGsW74t.js} +1 -1
- package/dist/useCSSVarCls-Eahl89PI.cjs +1 -0
- package/dist/{useIcons-CoxuumP_.js → useIcons-BP_qFbBH.js} +3 -3
- package/dist/useIcons-elrpktrI.cjs +6 -0
- package/dist/useId-BDresUbx.cjs +1 -0
- package/dist/useLocale-Ccu6a0gD.cjs +1 -0
- package/dist/{useLocale-BQ3mKRyJ.js → useLocale-DkcoQ5u9.js} +1 -1
- package/dist/{useMergedState-D1-TbeEv.js → useMergedState-dLe_CnQY.js} +1 -1
- package/dist/useMergedState-g1JWsrDw.cjs +1 -0
- package/dist/{useSize-Ct1guc-z.js → useSize-D_iM0JXw.js} +1 -1
- package/dist/useSize-OiGNe58i.cjs +1 -0
- package/dist/{useVariants-C6UAAu9f.js → useVariants-BO1luVHT.js} +3 -3
- package/dist/useVariants-CAEx8XcP.cjs +1 -0
- package/dist/useZIndex-B720RqFH.cjs +1 -0
- package/dist/{useZIndex-tgX56o1r.js → useZIndex-DNLQPZBP.js} +2 -2
- package/dist/utils/icon-util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/utils/icon-util.d.ts +1 -0
- package/dist/utils/styled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/utils/styled.d.ts +7 -0
- package/dist/vi.B5EKKJdE-CoUxwxV9.cjs +434 -0
- package/dist/vite-env.d.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/package.json +26 -11
- package/dist/CSSMotionList-DB0khM6h.js +0 -22193
- package/dist/components/Avatar/Avatar.js +0 -62
- package/dist/components/Avatar/__tests__/Avatar.test.js +0 -17
- package/dist/components/Avatar/index.js +0 -4
- package/dist/components/Avatar/styles.js +0 -328
- package/dist/components/Badge/Badge.js +0 -71
- package/dist/components/Badge/__tests__/Badge.test.js +0 -17
- package/dist/components/Badge/index.js +0 -4
- package/dist/components/Breadcrumb/Breadcrumb.js +0 -11
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +0 -23
- package/dist/components/Breadcrumb/index.js +0 -4
- package/dist/components/Breadcrumb/styles.js +0 -415
- package/dist/components/Button/Button.js +0 -26
- package/dist/components/Button/__tests__/Button.test.js +0 -17
- package/dist/components/Button/index.js +0 -4
- package/dist/components/Button/styles.js +0 -74
- package/dist/components/Card/Card.js +0 -16
- package/dist/components/Card/__tests__/Card.test.js +0 -16
- package/dist/components/Card/index.js +0 -4
- package/dist/components/Card/styles.js +0 -12
- package/dist/components/Checkbox/Checkbox.js +0 -52
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +0 -19
- package/dist/components/Checkbox/index.js +0 -4
- package/dist/components/Dashboard/Dashboard.js +0 -5
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +0 -186
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +0 -947
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +0 -86
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +0 -23
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +0 -534
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +0 -16
- package/dist/components/Dashboard/index.js +0 -4
- package/dist/components/Dashboard/styles.js +0 -11
- package/dist/components/DatePicker/DatePicker.js +0 -5
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +0 -19
- package/dist/components/DatePicker/index.js +0 -4
- package/dist/components/DateRangePicker/DateRangePicker.js +0 -5
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +0 -23
- package/dist/components/DateRangePicker/index.js +0 -4
- package/dist/components/ErrorBoundary/ErrorBoundary.js +0 -73
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +0 -30
- package/dist/components/ErrorBoundary/index.js +0 -4
- package/dist/components/ErrorBoundary/styles.js +0 -11
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +0 -56
- package/dist/components/ErrorBoundaryFallback/index.js +0 -4
- package/dist/components/ErrorBoundaryFallback/styles.js +0 -933
- package/dist/components/Form/Form.js +0 -8
- package/dist/components/Form/__stories__/FormStory.js +0 -171
- package/dist/components/Form/__tests__/form.test.js +0 -19
- package/dist/components/Form/index.js +0 -4
- package/dist/components/Form/styles.js +0 -13
- package/dist/components/FormBrandon/Form.d.ts +0 -25
- package/dist/components/FormBrandon/Form.js +0 -18
- package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +0 -6
- package/dist/components/FormBrandon/__stories__/FormStory.d.ts +0 -1
- package/dist/components/FormBrandon/__stories__/FormStory.js +0 -172
- package/dist/components/FormBrandon/__tests__/form.test.js +0 -19
- package/dist/components/FormBrandon/index.d.ts +0 -2
- package/dist/components/FormBrandon/index.js +0 -4
- package/dist/components/FormBrandon/styles.d.ts +0 -2
- package/dist/components/FormBrandon/styles.js +0 -13
- package/dist/components/Glyph/Glyph.js +0 -9
- package/dist/components/Glyph/index.js +0 -4
- package/dist/components/Glyph/styles.js +0 -11
- package/dist/components/Input/Input.js +0 -22
- package/dist/components/Input/__tests__/Input.test.js +0 -25
- package/dist/components/Input/index.js +0 -4
- package/dist/components/Input/styles.js +0 -6
- package/dist/components/Layout/Content/Content.js +0 -32
- package/dist/components/Layout/Content/ResponsiveContent.js +0 -82
- package/dist/components/Layout/Content/index.js +0 -4
- package/dist/components/Layout/Content/styles.js +0 -16
- package/dist/components/Layout/Layout.js +0 -6
- package/dist/components/Layout/MainLayout/MainLayout.js +0 -28
- package/dist/components/Layout/MainLayout/index.js +0 -4
- package/dist/components/Layout/MainLayout/styles.js +0 -69
- package/dist/components/Layout/__tests__/Layout.test.js +0 -14
- package/dist/components/Layout/index.js +0 -4
- package/dist/components/Message/Message.js +0 -106
- package/dist/components/Message/__tests__/Message.test.js +0 -43
- package/dist/components/Message/index.js +0 -4
- package/dist/components/Message/styles.js +0 -45
- package/dist/components/Notification/Notification.js +0 -1462
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +0 -49
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +0 -18
- package/dist/components/Notification/NotificationBadge/icons/ASN.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Appointment.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Inventory.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Parcel.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Product.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Route.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Shipment.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/System.js +0 -23
- package/dist/components/Notification/NotificationBadge/index.js +0 -4
- package/dist/components/Notification/NotificationBadge/styles.js +0 -34
- package/dist/components/Notification/NotificationRightChevron.js +0 -23
- package/dist/components/Notification/__tests__/Notification.test.js +0 -15
- package/dist/components/Notification/index.js +0 -4
- package/dist/components/Notification/styles.js +0 -65
- package/dist/components/Popover/Popover.js +0 -24
- package/dist/components/Popover/__tests__/Popover.test.js +0 -33
- package/dist/components/Popover/index.js +0 -4
- package/dist/components/Popover/styles.js +0 -6
- package/dist/components/Progress/Progress.js +0 -93
- package/dist/components/Progress/Progress.util.js +0 -63
- package/dist/components/Progress/ProgressText.js +0 -68
- package/dist/components/Progress/__tests__/Progress.test.js +0 -21
- package/dist/components/Progress/index.js +0 -4
- package/dist/components/Progress/styles.js +0 -796
- package/dist/components/Radio/Radio.js +0 -45
- package/dist/components/Radio/RadioGroup.js +0 -33
- package/dist/components/Radio/__tests__/RadioGroup.test.js +0 -31
- package/dist/components/Radio/index.js +0 -4
- package/dist/components/Radio/states/RadioChecked.js +0 -18
- package/dist/components/Radio/states/RadioCheckedDisabled.js +0 -18
- package/dist/components/Radio/states/RadioCheckedFocussed.js +0 -30
- package/dist/components/Radio/states/RadioCheckedHover.js +0 -18
- package/dist/components/Radio/states/RadioUnchecked.js +0 -15
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +0 -15
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +0 -29
- package/dist/components/Radio/states/RadioUncheckedHover.js +0 -18
- package/dist/components/Row/Row.js +0 -41
- package/dist/components/Row/RowActions/RowActions.js +0 -60
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +0 -63
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +0 -24
- package/dist/components/Row/RowLabelValue/styles.js +0 -25
- package/dist/components/Row/__tests__/Row.test.js +0 -16
- package/dist/components/Row/index.js +0 -4
- package/dist/components/Row/styles.js +0 -15
- package/dist/components/SegmentedControls/SegmentedControls.js +0 -26
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +0 -24
- package/dist/components/SegmentedControls/index.js +0 -4
- package/dist/components/SegmentedControls/styles.js +0 -522
- package/dist/components/Select/DropdownChevron.js +0 -23
- package/dist/components/Select/Select.js +0 -36
- package/dist/components/Select/__tests__/Select.test.js +0 -55
- package/dist/components/Select/index.js +0 -4
- package/dist/components/Select/styles.js +0 -119
- package/dist/components/Shapes/Shapes.js +0 -8
- package/dist/components/Shapes/__tests__/Shapes.test.js +0 -16
- package/dist/components/Shapes/index.js +0 -4
- package/dist/components/Shapes/variants/Circle.js +0 -23
- package/dist/components/Shapes/variants/Rectangle.js +0 -23
- package/dist/components/Shapes/variants/Triangle.js +0 -23
- package/dist/components/Switch/Switch.js +0 -22
- package/dist/components/Switch/__tests__/Switch.test.js +0 -25
- package/dist/components/Switch/index.js +0 -4
- package/dist/components/Switch/styles.js +0 -456
- package/dist/components/Table/Table.js +0 -23
- package/dist/components/Table/__mocks__/table-mocks.js +0 -322
- package/dist/components/Table/__tests__/Table.test.js +0 -34
- package/dist/components/Table/index.js +0 -4
- package/dist/components/Table/styles.js +0 -6
- package/dist/components/Tabs/Tabs.js +0 -23
- package/dist/components/Tabs/__tests__/Tabs.test.js +0 -37
- package/dist/components/Tabs/index.js +0 -4
- package/dist/components/Tile/Tile.js +0 -21
- package/dist/components/Tile/__tests__/Tile.test.js +0 -21
- package/dist/components/Tile/index.js +0 -4
- package/dist/components/Tile/styles.js +0 -12
- package/dist/components/Toast/Toast.js +0 -37
- package/dist/components/Toast/__tests__/Toast.test.js +0 -19
- package/dist/components/Toast/index.js +0 -4
- package/dist/components/Toast/styles.js +0 -45
- package/dist/components/Tooltip/Tooltip.js +0 -51
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +0 -25
- package/dist/components/Tooltip/index.js +0 -4
- package/dist/components/Tooltip/styles.js +0 -11
- package/dist/components/Typography/Typography.js +0 -8
- package/dist/components/Typography/__tests__/Typography.test.js +0 -24
- package/dist/components/Typography/index.js +0 -4
- package/dist/components/Typography/styles.js +0 -84
- package/dist/components/index.d.js +0 -1
- package/dist/components/index.js +0 -58
- package/dist/declaration.d.js +0 -1
- package/dist/genesis/GenesisThemeBreakdown.js +0 -145
- package/dist/genesis/GenesisThemeDemo.js +0 -7
- package/dist/index.js +0 -65
- package/dist/interface/address.js +0 -1
- package/dist/interface/appointment.js +0 -5
- package/dist/interface/appointmentV2.js +0 -1
- package/dist/interface/appointmentsState.js +0 -1
- package/dist/interface/common.js +0 -1
- package/dist/interface/completionData.js +0 -1
- package/dist/interface/deliveryPartner.js +0 -1
- package/dist/interface/organization.js +0 -1
- package/dist/interface/pagination.js +0 -1
- package/dist/interface/roles.js +0 -1
- package/dist/interface/route.js +0 -1
- package/dist/interface/routeAnalysis.js +0 -1
- package/dist/interface/routeAutomationJob.js +0 -10
- package/dist/interface/routeAutomationLog.js +0 -1
- package/dist/interface/routeEvent.js +0 -5
- package/dist/interface/serviceArea.js +0 -1
- package/dist/interface/util.js +0 -1
- package/dist/interface/vehicle.js +0 -1
- package/dist/interface/workOrder.js +0 -1
- package/dist/providers/BreakpointThemeProvider.d.ts +0 -8
- package/dist/providers/BreakpointThemeProvider.js +0 -21
- package/dist/providers/GenesisProvider.js +0 -11
- package/dist/providers/ToastProvider.js +0 -37
- package/dist/providers/index.js +0 -6
- package/dist/providers/useGenesis.js +0 -6
- package/dist/styled-components.browser.esm-C47QHsU4.js +0 -1211
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +0 -60
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +0 -64
- package/dist/styles/design-tokens/variables.js +0 -697
- package/dist/styles/theme/genesis-theme.js +0 -1095
- package/dist/styles/theme/genesis-theme.test.js +0 -69
- package/dist/styles/theme/genesis-theme.types.js +0 -4
- package/dist/styles/theme/theme-tree/ThemeTree.js +0 -1652
- package/dist/test/setup.js +0 -91
- package/dist/test/setup.types.js +0 -1
- package/dist/utils/icon-util.js +0 -93
- package/dist/vite-env.d.js +0 -1
- /package/dist/components/{FormBrandon/__tests__/form.test.d.ts → Table/TableControls/__tests__/TableControls.test.d.ts} +0 -0
- /package/dist/components/{Breadcrumb/Breadcrumb.types.js → index.d.es.js} +0 -0
|
@@ -1,1462 +0,0 @@
|
|
|
1
|
-
import { jsxs as X, jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import { SIZE as _, STATE as P, TYPOGRAPHY_VARIANT as S } from "../../constants/index.js";
|
|
3
|
-
import "../Avatar/styles.js";
|
|
4
|
-
import "../Badge/styles.js";
|
|
5
|
-
import "../../providers/BreakpointThemeProvider.js";
|
|
6
|
-
import { a as C } from "../../Typography-B2J8CPnt.js";
|
|
7
|
-
import { n as J } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
8
|
-
import "../Breadcrumb/styles.js";
|
|
9
|
-
import U from "../Button/Button.js";
|
|
10
|
-
import "../Card/styles.js";
|
|
11
|
-
import "../Checkbox/styles.js";
|
|
12
|
-
import "../DateRangePicker/DateRangePicker.js";
|
|
13
|
-
import "react";
|
|
14
|
-
import "../ErrorBoundaryFallback/styles.js";
|
|
15
|
-
import "../../styles-XuoEGUZZ.js";
|
|
16
|
-
import "../Layout/Content/styles.js";
|
|
17
|
-
import "../Message/styles.js";
|
|
18
|
-
import "../../styles-DNay6iFa.js";
|
|
19
|
-
import "../Progress/styles.js";
|
|
20
|
-
import "../Row/styles.js";
|
|
21
|
-
import "../../styles/global-styles.js";
|
|
22
|
-
import "../Row/RowLabelValue/styles.js";
|
|
23
|
-
import "../Row/RowActions/styles.js";
|
|
24
|
-
import "../SegmentedControls/styles.js";
|
|
25
|
-
import "../Select/styles.js";
|
|
26
|
-
import "../Switch/styles.js";
|
|
27
|
-
import "../../styles-Wpm1RiGr.js";
|
|
28
|
-
import "../Tabs/styles.js";
|
|
29
|
-
import "../Tile/styles.js";
|
|
30
|
-
import "../Toast/styles.js";
|
|
31
|
-
import "../Tooltip/styles.js";
|
|
32
|
-
import K from "./NotificationBadge/NotificationBadge.js";
|
|
33
|
-
import { NotificationRow as Z, NotificationUnread as z, NotificationContent as tt, ChevronButton as et } from "./styles.js";
|
|
34
|
-
import nt from "./NotificationRightChevron.js";
|
|
35
|
-
function d(t) {
|
|
36
|
-
const e = Object.prototype.toString.call(t);
|
|
37
|
-
return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
|
|
38
|
-
}
|
|
39
|
-
function D(t, e) {
|
|
40
|
-
return t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
41
|
-
}
|
|
42
|
-
const A = 6048e5, rt = 864e5, W = 43200, H = 1440;
|
|
43
|
-
let at = {};
|
|
44
|
-
function T() {
|
|
45
|
-
return at;
|
|
46
|
-
}
|
|
47
|
-
function k(t, e) {
|
|
48
|
-
var i, u, f, l;
|
|
49
|
-
const n = T(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((l = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : l.weekStartsOn) ?? 0, a = d(t), o = a.getDay(), s = (o < r ? 7 : 0) + o - r;
|
|
50
|
-
return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
|
|
51
|
-
}
|
|
52
|
-
function F(t) {
|
|
53
|
-
return k(t, { weekStartsOn: 1 });
|
|
54
|
-
}
|
|
55
|
-
function B(t) {
|
|
56
|
-
const e = d(t), n = e.getFullYear(), r = D(t, 0);
|
|
57
|
-
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
58
|
-
const a = F(r), o = D(t, 0);
|
|
59
|
-
o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
|
|
60
|
-
const s = F(o);
|
|
61
|
-
return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= s.getTime() ? n : n - 1;
|
|
62
|
-
}
|
|
63
|
-
function R(t) {
|
|
64
|
-
const e = d(t);
|
|
65
|
-
return e.setHours(0, 0, 0, 0), e;
|
|
66
|
-
}
|
|
67
|
-
function N(t) {
|
|
68
|
-
const e = d(t), n = new Date(
|
|
69
|
-
Date.UTC(
|
|
70
|
-
e.getFullYear(),
|
|
71
|
-
e.getMonth(),
|
|
72
|
-
e.getDate(),
|
|
73
|
-
e.getHours(),
|
|
74
|
-
e.getMinutes(),
|
|
75
|
-
e.getSeconds(),
|
|
76
|
-
e.getMilliseconds()
|
|
77
|
-
)
|
|
78
|
-
);
|
|
79
|
-
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
80
|
-
}
|
|
81
|
-
function ot(t, e) {
|
|
82
|
-
const n = R(t), r = R(e), a = +n - N(n), o = +r - N(r);
|
|
83
|
-
return Math.round((a - o) / rt);
|
|
84
|
-
}
|
|
85
|
-
function it(t) {
|
|
86
|
-
const e = B(t), n = D(t, 0);
|
|
87
|
-
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), F(n);
|
|
88
|
-
}
|
|
89
|
-
function Y(t, e) {
|
|
90
|
-
const n = d(t), r = d(e), a = n.getTime() - r.getTime();
|
|
91
|
-
return a < 0 ? -1 : a > 0 ? 1 : a;
|
|
92
|
-
}
|
|
93
|
-
function st(t) {
|
|
94
|
-
return D(t, Date.now());
|
|
95
|
-
}
|
|
96
|
-
function ct(t) {
|
|
97
|
-
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
98
|
-
}
|
|
99
|
-
function ut(t) {
|
|
100
|
-
if (!ct(t) && typeof t != "number")
|
|
101
|
-
return !1;
|
|
102
|
-
const e = d(t);
|
|
103
|
-
return !isNaN(Number(e));
|
|
104
|
-
}
|
|
105
|
-
function dt(t, e) {
|
|
106
|
-
const n = d(t), r = d(e), a = n.getFullYear() - r.getFullYear(), o = n.getMonth() - r.getMonth();
|
|
107
|
-
return a * 12 + o;
|
|
108
|
-
}
|
|
109
|
-
function ft(t) {
|
|
110
|
-
return (e) => {
|
|
111
|
-
const r = (t ? Math[t] : Math.trunc)(e);
|
|
112
|
-
return r === 0 ? 0 : r;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
function lt(t, e) {
|
|
116
|
-
return +d(t) - +d(e);
|
|
117
|
-
}
|
|
118
|
-
function ht(t) {
|
|
119
|
-
const e = d(t);
|
|
120
|
-
return e.setHours(23, 59, 59, 999), e;
|
|
121
|
-
}
|
|
122
|
-
function mt(t) {
|
|
123
|
-
const e = d(t), n = e.getMonth();
|
|
124
|
-
return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e;
|
|
125
|
-
}
|
|
126
|
-
function gt(t) {
|
|
127
|
-
const e = d(t);
|
|
128
|
-
return +ht(e) == +mt(e);
|
|
129
|
-
}
|
|
130
|
-
function wt(t, e) {
|
|
131
|
-
const n = d(t), r = d(e), a = Y(n, r), o = Math.abs(
|
|
132
|
-
dt(n, r)
|
|
133
|
-
);
|
|
134
|
-
let s;
|
|
135
|
-
if (o < 1)
|
|
136
|
-
s = 0;
|
|
137
|
-
else {
|
|
138
|
-
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * o);
|
|
139
|
-
let i = Y(n, r) === -a;
|
|
140
|
-
gt(d(t)) && o === 1 && Y(t, r) === 1 && (i = !1), s = a * (o - Number(i));
|
|
141
|
-
}
|
|
142
|
-
return s === 0 ? 0 : s;
|
|
143
|
-
}
|
|
144
|
-
function yt(t, e, n) {
|
|
145
|
-
const r = lt(t, e) / 1e3;
|
|
146
|
-
return ft(n == null ? void 0 : n.roundingMethod)(r);
|
|
147
|
-
}
|
|
148
|
-
function bt(t) {
|
|
149
|
-
const e = d(t), n = D(t, 0);
|
|
150
|
-
return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
151
|
-
}
|
|
152
|
-
const Mt = {
|
|
153
|
-
lessThanXSeconds: {
|
|
154
|
-
one: "less than a second",
|
|
155
|
-
other: "less than {{count}} seconds"
|
|
156
|
-
},
|
|
157
|
-
xSeconds: {
|
|
158
|
-
one: "1 second",
|
|
159
|
-
other: "{{count}} seconds"
|
|
160
|
-
},
|
|
161
|
-
halfAMinute: "half a minute",
|
|
162
|
-
lessThanXMinutes: {
|
|
163
|
-
one: "less than a minute",
|
|
164
|
-
other: "less than {{count}} minutes"
|
|
165
|
-
},
|
|
166
|
-
xMinutes: {
|
|
167
|
-
one: "1 minute",
|
|
168
|
-
other: "{{count}} minutes"
|
|
169
|
-
},
|
|
170
|
-
aboutXHours: {
|
|
171
|
-
one: "about 1 hour",
|
|
172
|
-
other: "about {{count}} hours"
|
|
173
|
-
},
|
|
174
|
-
xHours: {
|
|
175
|
-
one: "1 hour",
|
|
176
|
-
other: "{{count}} hours"
|
|
177
|
-
},
|
|
178
|
-
xDays: {
|
|
179
|
-
one: "1 day",
|
|
180
|
-
other: "{{count}} days"
|
|
181
|
-
},
|
|
182
|
-
aboutXWeeks: {
|
|
183
|
-
one: "about 1 week",
|
|
184
|
-
other: "about {{count}} weeks"
|
|
185
|
-
},
|
|
186
|
-
xWeeks: {
|
|
187
|
-
one: "1 week",
|
|
188
|
-
other: "{{count}} weeks"
|
|
189
|
-
},
|
|
190
|
-
aboutXMonths: {
|
|
191
|
-
one: "about 1 month",
|
|
192
|
-
other: "about {{count}} months"
|
|
193
|
-
},
|
|
194
|
-
xMonths: {
|
|
195
|
-
one: "1 month",
|
|
196
|
-
other: "{{count}} months"
|
|
197
|
-
},
|
|
198
|
-
aboutXYears: {
|
|
199
|
-
one: "about 1 year",
|
|
200
|
-
other: "about {{count}} years"
|
|
201
|
-
},
|
|
202
|
-
xYears: {
|
|
203
|
-
one: "1 year",
|
|
204
|
-
other: "{{count}} years"
|
|
205
|
-
},
|
|
206
|
-
overXYears: {
|
|
207
|
-
one: "over 1 year",
|
|
208
|
-
other: "over {{count}} years"
|
|
209
|
-
},
|
|
210
|
-
almostXYears: {
|
|
211
|
-
one: "almost 1 year",
|
|
212
|
-
other: "almost {{count}} years"
|
|
213
|
-
}
|
|
214
|
-
}, Dt = (t, e, n) => {
|
|
215
|
-
let r;
|
|
216
|
-
const a = Mt[t];
|
|
217
|
-
return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
218
|
-
};
|
|
219
|
-
function q(t) {
|
|
220
|
-
return (e = {}) => {
|
|
221
|
-
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
222
|
-
return t.formats[n] || t.formats[t.defaultWidth];
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
const pt = {
|
|
226
|
-
full: "EEEE, MMMM do, y",
|
|
227
|
-
long: "MMMM do, y",
|
|
228
|
-
medium: "MMM d, y",
|
|
229
|
-
short: "MM/dd/yyyy"
|
|
230
|
-
}, Ot = {
|
|
231
|
-
full: "h:mm:ss a zzzz",
|
|
232
|
-
long: "h:mm:ss a z",
|
|
233
|
-
medium: "h:mm:ss a",
|
|
234
|
-
short: "h:mm a"
|
|
235
|
-
}, Pt = {
|
|
236
|
-
full: "{{date}} 'at' {{time}}",
|
|
237
|
-
long: "{{date}} 'at' {{time}}",
|
|
238
|
-
medium: "{{date}}, {{time}}",
|
|
239
|
-
short: "{{date}}, {{time}}"
|
|
240
|
-
}, xt = {
|
|
241
|
-
date: q({
|
|
242
|
-
formats: pt,
|
|
243
|
-
defaultWidth: "full"
|
|
244
|
-
}),
|
|
245
|
-
time: q({
|
|
246
|
-
formats: Ot,
|
|
247
|
-
defaultWidth: "full"
|
|
248
|
-
}),
|
|
249
|
-
dateTime: q({
|
|
250
|
-
formats: Pt,
|
|
251
|
-
defaultWidth: "full"
|
|
252
|
-
})
|
|
253
|
-
}, vt = {
|
|
254
|
-
lastWeek: "'last' eeee 'at' p",
|
|
255
|
-
yesterday: "'yesterday at' p",
|
|
256
|
-
today: "'today at' p",
|
|
257
|
-
tomorrow: "'tomorrow at' p",
|
|
258
|
-
nextWeek: "eeee 'at' p",
|
|
259
|
-
other: "P"
|
|
260
|
-
}, kt = (t, e, n, r) => vt[t];
|
|
261
|
-
function x(t) {
|
|
262
|
-
return (e, n) => {
|
|
263
|
-
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
264
|
-
let a;
|
|
265
|
-
if (r === "formatting" && t.formattingValues) {
|
|
266
|
-
const s = t.defaultFormattingWidth || t.defaultWidth, i = n != null && n.width ? String(n.width) : s;
|
|
267
|
-
a = t.formattingValues[i] || t.formattingValues[s];
|
|
268
|
-
} else {
|
|
269
|
-
const s = t.defaultWidth, i = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
270
|
-
a = t.values[i] || t.values[s];
|
|
271
|
-
}
|
|
272
|
-
const o = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
273
|
-
return a[o];
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
const Tt = {
|
|
277
|
-
narrow: ["B", "A"],
|
|
278
|
-
abbreviated: ["BC", "AD"],
|
|
279
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
280
|
-
}, St = {
|
|
281
|
-
narrow: ["1", "2", "3", "4"],
|
|
282
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
283
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
284
|
-
}, Wt = {
|
|
285
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
286
|
-
abbreviated: [
|
|
287
|
-
"Jan",
|
|
288
|
-
"Feb",
|
|
289
|
-
"Mar",
|
|
290
|
-
"Apr",
|
|
291
|
-
"May",
|
|
292
|
-
"Jun",
|
|
293
|
-
"Jul",
|
|
294
|
-
"Aug",
|
|
295
|
-
"Sep",
|
|
296
|
-
"Oct",
|
|
297
|
-
"Nov",
|
|
298
|
-
"Dec"
|
|
299
|
-
],
|
|
300
|
-
wide: [
|
|
301
|
-
"January",
|
|
302
|
-
"February",
|
|
303
|
-
"March",
|
|
304
|
-
"April",
|
|
305
|
-
"May",
|
|
306
|
-
"June",
|
|
307
|
-
"July",
|
|
308
|
-
"August",
|
|
309
|
-
"September",
|
|
310
|
-
"October",
|
|
311
|
-
"November",
|
|
312
|
-
"December"
|
|
313
|
-
]
|
|
314
|
-
}, Yt = {
|
|
315
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
316
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
317
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
318
|
-
wide: [
|
|
319
|
-
"Sunday",
|
|
320
|
-
"Monday",
|
|
321
|
-
"Tuesday",
|
|
322
|
-
"Wednesday",
|
|
323
|
-
"Thursday",
|
|
324
|
-
"Friday",
|
|
325
|
-
"Saturday"
|
|
326
|
-
]
|
|
327
|
-
}, Ft = {
|
|
328
|
-
narrow: {
|
|
329
|
-
am: "a",
|
|
330
|
-
pm: "p",
|
|
331
|
-
midnight: "mi",
|
|
332
|
-
noon: "n",
|
|
333
|
-
morning: "morning",
|
|
334
|
-
afternoon: "afternoon",
|
|
335
|
-
evening: "evening",
|
|
336
|
-
night: "night"
|
|
337
|
-
},
|
|
338
|
-
abbreviated: {
|
|
339
|
-
am: "AM",
|
|
340
|
-
pm: "PM",
|
|
341
|
-
midnight: "midnight",
|
|
342
|
-
noon: "noon",
|
|
343
|
-
morning: "morning",
|
|
344
|
-
afternoon: "afternoon",
|
|
345
|
-
evening: "evening",
|
|
346
|
-
night: "night"
|
|
347
|
-
},
|
|
348
|
-
wide: {
|
|
349
|
-
am: "a.m.",
|
|
350
|
-
pm: "p.m.",
|
|
351
|
-
midnight: "midnight",
|
|
352
|
-
noon: "noon",
|
|
353
|
-
morning: "morning",
|
|
354
|
-
afternoon: "afternoon",
|
|
355
|
-
evening: "evening",
|
|
356
|
-
night: "night"
|
|
357
|
-
}
|
|
358
|
-
}, Nt = {
|
|
359
|
-
narrow: {
|
|
360
|
-
am: "a",
|
|
361
|
-
pm: "p",
|
|
362
|
-
midnight: "mi",
|
|
363
|
-
noon: "n",
|
|
364
|
-
morning: "in the morning",
|
|
365
|
-
afternoon: "in the afternoon",
|
|
366
|
-
evening: "in the evening",
|
|
367
|
-
night: "at night"
|
|
368
|
-
},
|
|
369
|
-
abbreviated: {
|
|
370
|
-
am: "AM",
|
|
371
|
-
pm: "PM",
|
|
372
|
-
midnight: "midnight",
|
|
373
|
-
noon: "noon",
|
|
374
|
-
morning: "in the morning",
|
|
375
|
-
afternoon: "in the afternoon",
|
|
376
|
-
evening: "in the evening",
|
|
377
|
-
night: "at night"
|
|
378
|
-
},
|
|
379
|
-
wide: {
|
|
380
|
-
am: "a.m.",
|
|
381
|
-
pm: "p.m.",
|
|
382
|
-
midnight: "midnight",
|
|
383
|
-
noon: "noon",
|
|
384
|
-
morning: "in the morning",
|
|
385
|
-
afternoon: "in the afternoon",
|
|
386
|
-
evening: "in the evening",
|
|
387
|
-
night: "at night"
|
|
388
|
-
}
|
|
389
|
-
}, Et = (t, e) => {
|
|
390
|
-
const n = Number(t), r = n % 100;
|
|
391
|
-
if (r > 20 || r < 10)
|
|
392
|
-
switch (r % 10) {
|
|
393
|
-
case 1:
|
|
394
|
-
return n + "st";
|
|
395
|
-
case 2:
|
|
396
|
-
return n + "nd";
|
|
397
|
-
case 3:
|
|
398
|
-
return n + "rd";
|
|
399
|
-
}
|
|
400
|
-
return n + "th";
|
|
401
|
-
}, Ct = {
|
|
402
|
-
ordinalNumber: Et,
|
|
403
|
-
era: x({
|
|
404
|
-
values: Tt,
|
|
405
|
-
defaultWidth: "wide"
|
|
406
|
-
}),
|
|
407
|
-
quarter: x({
|
|
408
|
-
values: St,
|
|
409
|
-
defaultWidth: "wide",
|
|
410
|
-
argumentCallback: (t) => t - 1
|
|
411
|
-
}),
|
|
412
|
-
month: x({
|
|
413
|
-
values: Wt,
|
|
414
|
-
defaultWidth: "wide"
|
|
415
|
-
}),
|
|
416
|
-
day: x({
|
|
417
|
-
values: Yt,
|
|
418
|
-
defaultWidth: "wide"
|
|
419
|
-
}),
|
|
420
|
-
dayPeriod: x({
|
|
421
|
-
values: Ft,
|
|
422
|
-
defaultWidth: "wide",
|
|
423
|
-
formattingValues: Nt,
|
|
424
|
-
defaultFormattingWidth: "wide"
|
|
425
|
-
})
|
|
426
|
-
};
|
|
427
|
-
function v(t) {
|
|
428
|
-
return (e, n = {}) => {
|
|
429
|
-
const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], o = e.match(a);
|
|
430
|
-
if (!o)
|
|
431
|
-
return null;
|
|
432
|
-
const s = o[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(i) ? Xt(i, (w) => w.test(s)) : (
|
|
433
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
434
|
-
qt(i, (w) => w.test(s))
|
|
435
|
-
);
|
|
436
|
-
let f;
|
|
437
|
-
f = t.valueCallback ? t.valueCallback(u) : u, f = n.valueCallback ? (
|
|
438
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
439
|
-
n.valueCallback(f)
|
|
440
|
-
) : f;
|
|
441
|
-
const l = e.slice(s.length);
|
|
442
|
-
return { value: f, rest: l };
|
|
443
|
-
};
|
|
444
|
-
}
|
|
445
|
-
function qt(t, e) {
|
|
446
|
-
for (const n in t)
|
|
447
|
-
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
448
|
-
return n;
|
|
449
|
-
}
|
|
450
|
-
function Xt(t, e) {
|
|
451
|
-
for (let n = 0; n < t.length; n++)
|
|
452
|
-
if (e(t[n]))
|
|
453
|
-
return n;
|
|
454
|
-
}
|
|
455
|
-
function _t(t) {
|
|
456
|
-
return (e, n = {}) => {
|
|
457
|
-
const r = e.match(t.matchPattern);
|
|
458
|
-
if (!r) return null;
|
|
459
|
-
const a = r[0], o = e.match(t.parsePattern);
|
|
460
|
-
if (!o) return null;
|
|
461
|
-
let s = t.valueCallback ? t.valueCallback(o[0]) : o[0];
|
|
462
|
-
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
463
|
-
const i = e.slice(a.length);
|
|
464
|
-
return { value: s, rest: i };
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
const Ht = /^(\d+)(th|st|nd|rd)?/i, Rt = /\d+/i, Lt = {
|
|
468
|
-
narrow: /^(b|a)/i,
|
|
469
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
470
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
471
|
-
}, jt = {
|
|
472
|
-
any: [/^b/i, /^(a|c)/i]
|
|
473
|
-
}, It = {
|
|
474
|
-
narrow: /^[1234]/i,
|
|
475
|
-
abbreviated: /^q[1234]/i,
|
|
476
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
477
|
-
}, Qt = {
|
|
478
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
479
|
-
}, At = {
|
|
480
|
-
narrow: /^[jfmasond]/i,
|
|
481
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
482
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
483
|
-
}, Bt = {
|
|
484
|
-
narrow: [
|
|
485
|
-
/^j/i,
|
|
486
|
-
/^f/i,
|
|
487
|
-
/^m/i,
|
|
488
|
-
/^a/i,
|
|
489
|
-
/^m/i,
|
|
490
|
-
/^j/i,
|
|
491
|
-
/^j/i,
|
|
492
|
-
/^a/i,
|
|
493
|
-
/^s/i,
|
|
494
|
-
/^o/i,
|
|
495
|
-
/^n/i,
|
|
496
|
-
/^d/i
|
|
497
|
-
],
|
|
498
|
-
any: [
|
|
499
|
-
/^ja/i,
|
|
500
|
-
/^f/i,
|
|
501
|
-
/^mar/i,
|
|
502
|
-
/^ap/i,
|
|
503
|
-
/^may/i,
|
|
504
|
-
/^jun/i,
|
|
505
|
-
/^jul/i,
|
|
506
|
-
/^au/i,
|
|
507
|
-
/^s/i,
|
|
508
|
-
/^o/i,
|
|
509
|
-
/^n/i,
|
|
510
|
-
/^d/i
|
|
511
|
-
]
|
|
512
|
-
}, Gt = {
|
|
513
|
-
narrow: /^[smtwf]/i,
|
|
514
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
515
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
516
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
517
|
-
}, Vt = {
|
|
518
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
519
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
520
|
-
}, $t = {
|
|
521
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
522
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
523
|
-
}, Jt = {
|
|
524
|
-
any: {
|
|
525
|
-
am: /^a/i,
|
|
526
|
-
pm: /^p/i,
|
|
527
|
-
midnight: /^mi/i,
|
|
528
|
-
noon: /^no/i,
|
|
529
|
-
morning: /morning/i,
|
|
530
|
-
afternoon: /afternoon/i,
|
|
531
|
-
evening: /evening/i,
|
|
532
|
-
night: /night/i
|
|
533
|
-
}
|
|
534
|
-
}, Ut = {
|
|
535
|
-
ordinalNumber: _t({
|
|
536
|
-
matchPattern: Ht,
|
|
537
|
-
parsePattern: Rt,
|
|
538
|
-
valueCallback: (t) => parseInt(t, 10)
|
|
539
|
-
}),
|
|
540
|
-
era: v({
|
|
541
|
-
matchPatterns: Lt,
|
|
542
|
-
defaultMatchWidth: "wide",
|
|
543
|
-
parsePatterns: jt,
|
|
544
|
-
defaultParseWidth: "any"
|
|
545
|
-
}),
|
|
546
|
-
quarter: v({
|
|
547
|
-
matchPatterns: It,
|
|
548
|
-
defaultMatchWidth: "wide",
|
|
549
|
-
parsePatterns: Qt,
|
|
550
|
-
defaultParseWidth: "any",
|
|
551
|
-
valueCallback: (t) => t + 1
|
|
552
|
-
}),
|
|
553
|
-
month: v({
|
|
554
|
-
matchPatterns: At,
|
|
555
|
-
defaultMatchWidth: "wide",
|
|
556
|
-
parsePatterns: Bt,
|
|
557
|
-
defaultParseWidth: "any"
|
|
558
|
-
}),
|
|
559
|
-
day: v({
|
|
560
|
-
matchPatterns: Gt,
|
|
561
|
-
defaultMatchWidth: "wide",
|
|
562
|
-
parsePatterns: Vt,
|
|
563
|
-
defaultParseWidth: "any"
|
|
564
|
-
}),
|
|
565
|
-
dayPeriod: v({
|
|
566
|
-
matchPatterns: $t,
|
|
567
|
-
defaultMatchWidth: "any",
|
|
568
|
-
parsePatterns: Jt,
|
|
569
|
-
defaultParseWidth: "any"
|
|
570
|
-
})
|
|
571
|
-
}, G = {
|
|
572
|
-
code: "en-US",
|
|
573
|
-
formatDistance: Dt,
|
|
574
|
-
formatLong: xt,
|
|
575
|
-
formatRelative: kt,
|
|
576
|
-
localize: Ct,
|
|
577
|
-
match: Ut,
|
|
578
|
-
options: {
|
|
579
|
-
weekStartsOn: 0,
|
|
580
|
-
firstWeekContainsDate: 1
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
function Kt(t) {
|
|
584
|
-
const e = d(t);
|
|
585
|
-
return ot(e, bt(e)) + 1;
|
|
586
|
-
}
|
|
587
|
-
function Zt(t) {
|
|
588
|
-
const e = d(t), n = +F(e) - +it(e);
|
|
589
|
-
return Math.round(n / A) + 1;
|
|
590
|
-
}
|
|
591
|
-
function V(t, e) {
|
|
592
|
-
var l, w, h, y;
|
|
593
|
-
const n = d(t), r = n.getFullYear(), a = T(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((y = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = D(t, 0);
|
|
594
|
-
s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
595
|
-
const i = k(s, e), u = D(t, 0);
|
|
596
|
-
u.setFullYear(r, 0, o), u.setHours(0, 0, 0, 0);
|
|
597
|
-
const f = k(u, e);
|
|
598
|
-
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= f.getTime() ? r : r - 1;
|
|
599
|
-
}
|
|
600
|
-
function zt(t, e) {
|
|
601
|
-
var i, u, f, l;
|
|
602
|
-
const n = T(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((l = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, a = V(t, e), o = D(t, 0);
|
|
603
|
-
return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), k(o, e);
|
|
604
|
-
}
|
|
605
|
-
function te(t, e) {
|
|
606
|
-
const n = d(t), r = +k(n, e) - +zt(n, e);
|
|
607
|
-
return Math.round(r / A) + 1;
|
|
608
|
-
}
|
|
609
|
-
function c(t, e) {
|
|
610
|
-
const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
|
|
611
|
-
return n + r;
|
|
612
|
-
}
|
|
613
|
-
const M = {
|
|
614
|
-
// Year
|
|
615
|
-
y(t, e) {
|
|
616
|
-
const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
617
|
-
return c(e === "yy" ? r % 100 : r, e.length);
|
|
618
|
-
},
|
|
619
|
-
// Month
|
|
620
|
-
M(t, e) {
|
|
621
|
-
const n = t.getMonth();
|
|
622
|
-
return e === "M" ? String(n + 1) : c(n + 1, 2);
|
|
623
|
-
},
|
|
624
|
-
// Day of the month
|
|
625
|
-
d(t, e) {
|
|
626
|
-
return c(t.getDate(), e.length);
|
|
627
|
-
},
|
|
628
|
-
// AM or PM
|
|
629
|
-
a(t, e) {
|
|
630
|
-
const n = t.getHours() / 12 >= 1 ? "pm" : "am";
|
|
631
|
-
switch (e) {
|
|
632
|
-
case "a":
|
|
633
|
-
case "aa":
|
|
634
|
-
return n.toUpperCase();
|
|
635
|
-
case "aaa":
|
|
636
|
-
return n;
|
|
637
|
-
case "aaaaa":
|
|
638
|
-
return n[0];
|
|
639
|
-
case "aaaa":
|
|
640
|
-
default:
|
|
641
|
-
return n === "am" ? "a.m." : "p.m.";
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
// Hour [1-12]
|
|
645
|
-
h(t, e) {
|
|
646
|
-
return c(t.getHours() % 12 || 12, e.length);
|
|
647
|
-
},
|
|
648
|
-
// Hour [0-23]
|
|
649
|
-
H(t, e) {
|
|
650
|
-
return c(t.getHours(), e.length);
|
|
651
|
-
},
|
|
652
|
-
// Minute
|
|
653
|
-
m(t, e) {
|
|
654
|
-
return c(t.getMinutes(), e.length);
|
|
655
|
-
},
|
|
656
|
-
// Second
|
|
657
|
-
s(t, e) {
|
|
658
|
-
return c(t.getSeconds(), e.length);
|
|
659
|
-
},
|
|
660
|
-
// Fraction of second
|
|
661
|
-
S(t, e) {
|
|
662
|
-
const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
|
|
663
|
-
r * Math.pow(10, n - 3)
|
|
664
|
-
);
|
|
665
|
-
return c(a, e.length);
|
|
666
|
-
}
|
|
667
|
-
}, O = {
|
|
668
|
-
midnight: "midnight",
|
|
669
|
-
noon: "noon",
|
|
670
|
-
morning: "morning",
|
|
671
|
-
afternoon: "afternoon",
|
|
672
|
-
evening: "evening",
|
|
673
|
-
night: "night"
|
|
674
|
-
}, L = {
|
|
675
|
-
// Era
|
|
676
|
-
G: function(t, e, n) {
|
|
677
|
-
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
678
|
-
switch (e) {
|
|
679
|
-
// AD, BC
|
|
680
|
-
case "G":
|
|
681
|
-
case "GG":
|
|
682
|
-
case "GGG":
|
|
683
|
-
return n.era(r, { width: "abbreviated" });
|
|
684
|
-
// A, B
|
|
685
|
-
case "GGGGG":
|
|
686
|
-
return n.era(r, { width: "narrow" });
|
|
687
|
-
// Anno Domini, Before Christ
|
|
688
|
-
case "GGGG":
|
|
689
|
-
default:
|
|
690
|
-
return n.era(r, { width: "wide" });
|
|
691
|
-
}
|
|
692
|
-
},
|
|
693
|
-
// Year
|
|
694
|
-
y: function(t, e, n) {
|
|
695
|
-
if (e === "yo") {
|
|
696
|
-
const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
697
|
-
return n.ordinalNumber(a, { unit: "year" });
|
|
698
|
-
}
|
|
699
|
-
return M.y(t, e);
|
|
700
|
-
},
|
|
701
|
-
// Local week-numbering year
|
|
702
|
-
Y: function(t, e, n, r) {
|
|
703
|
-
const a = V(t, r), o = a > 0 ? a : 1 - a;
|
|
704
|
-
if (e === "YY") {
|
|
705
|
-
const s = o % 100;
|
|
706
|
-
return c(s, 2);
|
|
707
|
-
}
|
|
708
|
-
return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : c(o, e.length);
|
|
709
|
-
},
|
|
710
|
-
// ISO week-numbering year
|
|
711
|
-
R: function(t, e) {
|
|
712
|
-
const n = B(t);
|
|
713
|
-
return c(n, e.length);
|
|
714
|
-
},
|
|
715
|
-
// Extended year. This is a single number designating the year of this calendar system.
|
|
716
|
-
// The main difference between `y` and `u` localizers are B.C. years:
|
|
717
|
-
// | Year | `y` | `u` |
|
|
718
|
-
// |------|-----|-----|
|
|
719
|
-
// | AC 1 | 1 | 1 |
|
|
720
|
-
// | BC 1 | 1 | 0 |
|
|
721
|
-
// | BC 2 | 2 | -1 |
|
|
722
|
-
// Also `yy` always returns the last two digits of a year,
|
|
723
|
-
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
724
|
-
u: function(t, e) {
|
|
725
|
-
const n = t.getFullYear();
|
|
726
|
-
return c(n, e.length);
|
|
727
|
-
},
|
|
728
|
-
// Quarter
|
|
729
|
-
Q: function(t, e, n) {
|
|
730
|
-
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
731
|
-
switch (e) {
|
|
732
|
-
// 1, 2, 3, 4
|
|
733
|
-
case "Q":
|
|
734
|
-
return String(r);
|
|
735
|
-
// 01, 02, 03, 04
|
|
736
|
-
case "QQ":
|
|
737
|
-
return c(r, 2);
|
|
738
|
-
// 1st, 2nd, 3rd, 4th
|
|
739
|
-
case "Qo":
|
|
740
|
-
return n.ordinalNumber(r, { unit: "quarter" });
|
|
741
|
-
// Q1, Q2, Q3, Q4
|
|
742
|
-
case "QQQ":
|
|
743
|
-
return n.quarter(r, {
|
|
744
|
-
width: "abbreviated",
|
|
745
|
-
context: "formatting"
|
|
746
|
-
});
|
|
747
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
748
|
-
case "QQQQQ":
|
|
749
|
-
return n.quarter(r, {
|
|
750
|
-
width: "narrow",
|
|
751
|
-
context: "formatting"
|
|
752
|
-
});
|
|
753
|
-
// 1st quarter, 2nd quarter, ...
|
|
754
|
-
case "QQQQ":
|
|
755
|
-
default:
|
|
756
|
-
return n.quarter(r, {
|
|
757
|
-
width: "wide",
|
|
758
|
-
context: "formatting"
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
// Stand-alone quarter
|
|
763
|
-
q: function(t, e, n) {
|
|
764
|
-
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
765
|
-
switch (e) {
|
|
766
|
-
// 1, 2, 3, 4
|
|
767
|
-
case "q":
|
|
768
|
-
return String(r);
|
|
769
|
-
// 01, 02, 03, 04
|
|
770
|
-
case "qq":
|
|
771
|
-
return c(r, 2);
|
|
772
|
-
// 1st, 2nd, 3rd, 4th
|
|
773
|
-
case "qo":
|
|
774
|
-
return n.ordinalNumber(r, { unit: "quarter" });
|
|
775
|
-
// Q1, Q2, Q3, Q4
|
|
776
|
-
case "qqq":
|
|
777
|
-
return n.quarter(r, {
|
|
778
|
-
width: "abbreviated",
|
|
779
|
-
context: "standalone"
|
|
780
|
-
});
|
|
781
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
782
|
-
case "qqqqq":
|
|
783
|
-
return n.quarter(r, {
|
|
784
|
-
width: "narrow",
|
|
785
|
-
context: "standalone"
|
|
786
|
-
});
|
|
787
|
-
// 1st quarter, 2nd quarter, ...
|
|
788
|
-
case "qqqq":
|
|
789
|
-
default:
|
|
790
|
-
return n.quarter(r, {
|
|
791
|
-
width: "wide",
|
|
792
|
-
context: "standalone"
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
|
-
// Month
|
|
797
|
-
M: function(t, e, n) {
|
|
798
|
-
const r = t.getMonth();
|
|
799
|
-
switch (e) {
|
|
800
|
-
case "M":
|
|
801
|
-
case "MM":
|
|
802
|
-
return M.M(t, e);
|
|
803
|
-
// 1st, 2nd, ..., 12th
|
|
804
|
-
case "Mo":
|
|
805
|
-
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
806
|
-
// Jan, Feb, ..., Dec
|
|
807
|
-
case "MMM":
|
|
808
|
-
return n.month(r, {
|
|
809
|
-
width: "abbreviated",
|
|
810
|
-
context: "formatting"
|
|
811
|
-
});
|
|
812
|
-
// J, F, ..., D
|
|
813
|
-
case "MMMMM":
|
|
814
|
-
return n.month(r, {
|
|
815
|
-
width: "narrow",
|
|
816
|
-
context: "formatting"
|
|
817
|
-
});
|
|
818
|
-
// January, February, ..., December
|
|
819
|
-
case "MMMM":
|
|
820
|
-
default:
|
|
821
|
-
return n.month(r, { width: "wide", context: "formatting" });
|
|
822
|
-
}
|
|
823
|
-
},
|
|
824
|
-
// Stand-alone month
|
|
825
|
-
L: function(t, e, n) {
|
|
826
|
-
const r = t.getMonth();
|
|
827
|
-
switch (e) {
|
|
828
|
-
// 1, 2, ..., 12
|
|
829
|
-
case "L":
|
|
830
|
-
return String(r + 1);
|
|
831
|
-
// 01, 02, ..., 12
|
|
832
|
-
case "LL":
|
|
833
|
-
return c(r + 1, 2);
|
|
834
|
-
// 1st, 2nd, ..., 12th
|
|
835
|
-
case "Lo":
|
|
836
|
-
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
837
|
-
// Jan, Feb, ..., Dec
|
|
838
|
-
case "LLL":
|
|
839
|
-
return n.month(r, {
|
|
840
|
-
width: "abbreviated",
|
|
841
|
-
context: "standalone"
|
|
842
|
-
});
|
|
843
|
-
// J, F, ..., D
|
|
844
|
-
case "LLLLL":
|
|
845
|
-
return n.month(r, {
|
|
846
|
-
width: "narrow",
|
|
847
|
-
context: "standalone"
|
|
848
|
-
});
|
|
849
|
-
// January, February, ..., December
|
|
850
|
-
case "LLLL":
|
|
851
|
-
default:
|
|
852
|
-
return n.month(r, { width: "wide", context: "standalone" });
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
// Local week of year
|
|
856
|
-
w: function(t, e, n, r) {
|
|
857
|
-
const a = te(t, r);
|
|
858
|
-
return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : c(a, e.length);
|
|
859
|
-
},
|
|
860
|
-
// ISO week of year
|
|
861
|
-
I: function(t, e, n) {
|
|
862
|
-
const r = Zt(t);
|
|
863
|
-
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : c(r, e.length);
|
|
864
|
-
},
|
|
865
|
-
// Day of the month
|
|
866
|
-
d: function(t, e, n) {
|
|
867
|
-
return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : M.d(t, e);
|
|
868
|
-
},
|
|
869
|
-
// Day of year
|
|
870
|
-
D: function(t, e, n) {
|
|
871
|
-
const r = Kt(t);
|
|
872
|
-
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : c(r, e.length);
|
|
873
|
-
},
|
|
874
|
-
// Day of week
|
|
875
|
-
E: function(t, e, n) {
|
|
876
|
-
const r = t.getDay();
|
|
877
|
-
switch (e) {
|
|
878
|
-
// Tue
|
|
879
|
-
case "E":
|
|
880
|
-
case "EE":
|
|
881
|
-
case "EEE":
|
|
882
|
-
return n.day(r, {
|
|
883
|
-
width: "abbreviated",
|
|
884
|
-
context: "formatting"
|
|
885
|
-
});
|
|
886
|
-
// T
|
|
887
|
-
case "EEEEE":
|
|
888
|
-
return n.day(r, {
|
|
889
|
-
width: "narrow",
|
|
890
|
-
context: "formatting"
|
|
891
|
-
});
|
|
892
|
-
// Tu
|
|
893
|
-
case "EEEEEE":
|
|
894
|
-
return n.day(r, {
|
|
895
|
-
width: "short",
|
|
896
|
-
context: "formatting"
|
|
897
|
-
});
|
|
898
|
-
// Tuesday
|
|
899
|
-
case "EEEE":
|
|
900
|
-
default:
|
|
901
|
-
return n.day(r, {
|
|
902
|
-
width: "wide",
|
|
903
|
-
context: "formatting"
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
},
|
|
907
|
-
// Local day of week
|
|
908
|
-
e: function(t, e, n, r) {
|
|
909
|
-
const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
910
|
-
switch (e) {
|
|
911
|
-
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
912
|
-
case "e":
|
|
913
|
-
return String(o);
|
|
914
|
-
// Padded numerical value
|
|
915
|
-
case "ee":
|
|
916
|
-
return c(o, 2);
|
|
917
|
-
// 1st, 2nd, ..., 7th
|
|
918
|
-
case "eo":
|
|
919
|
-
return n.ordinalNumber(o, { unit: "day" });
|
|
920
|
-
case "eee":
|
|
921
|
-
return n.day(a, {
|
|
922
|
-
width: "abbreviated",
|
|
923
|
-
context: "formatting"
|
|
924
|
-
});
|
|
925
|
-
// T
|
|
926
|
-
case "eeeee":
|
|
927
|
-
return n.day(a, {
|
|
928
|
-
width: "narrow",
|
|
929
|
-
context: "formatting"
|
|
930
|
-
});
|
|
931
|
-
// Tu
|
|
932
|
-
case "eeeeee":
|
|
933
|
-
return n.day(a, {
|
|
934
|
-
width: "short",
|
|
935
|
-
context: "formatting"
|
|
936
|
-
});
|
|
937
|
-
// Tuesday
|
|
938
|
-
case "eeee":
|
|
939
|
-
default:
|
|
940
|
-
return n.day(a, {
|
|
941
|
-
width: "wide",
|
|
942
|
-
context: "formatting"
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
},
|
|
946
|
-
// Stand-alone local day of week
|
|
947
|
-
c: function(t, e, n, r) {
|
|
948
|
-
const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
949
|
-
switch (e) {
|
|
950
|
-
// Numerical value (same as in `e`)
|
|
951
|
-
case "c":
|
|
952
|
-
return String(o);
|
|
953
|
-
// Padded numerical value
|
|
954
|
-
case "cc":
|
|
955
|
-
return c(o, e.length);
|
|
956
|
-
// 1st, 2nd, ..., 7th
|
|
957
|
-
case "co":
|
|
958
|
-
return n.ordinalNumber(o, { unit: "day" });
|
|
959
|
-
case "ccc":
|
|
960
|
-
return n.day(a, {
|
|
961
|
-
width: "abbreviated",
|
|
962
|
-
context: "standalone"
|
|
963
|
-
});
|
|
964
|
-
// T
|
|
965
|
-
case "ccccc":
|
|
966
|
-
return n.day(a, {
|
|
967
|
-
width: "narrow",
|
|
968
|
-
context: "standalone"
|
|
969
|
-
});
|
|
970
|
-
// Tu
|
|
971
|
-
case "cccccc":
|
|
972
|
-
return n.day(a, {
|
|
973
|
-
width: "short",
|
|
974
|
-
context: "standalone"
|
|
975
|
-
});
|
|
976
|
-
// Tuesday
|
|
977
|
-
case "cccc":
|
|
978
|
-
default:
|
|
979
|
-
return n.day(a, {
|
|
980
|
-
width: "wide",
|
|
981
|
-
context: "standalone"
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
},
|
|
985
|
-
// ISO day of week
|
|
986
|
-
i: function(t, e, n) {
|
|
987
|
-
const r = t.getDay(), a = r === 0 ? 7 : r;
|
|
988
|
-
switch (e) {
|
|
989
|
-
// 2
|
|
990
|
-
case "i":
|
|
991
|
-
return String(a);
|
|
992
|
-
// 02
|
|
993
|
-
case "ii":
|
|
994
|
-
return c(a, e.length);
|
|
995
|
-
// 2nd
|
|
996
|
-
case "io":
|
|
997
|
-
return n.ordinalNumber(a, { unit: "day" });
|
|
998
|
-
// Tue
|
|
999
|
-
case "iii":
|
|
1000
|
-
return n.day(r, {
|
|
1001
|
-
width: "abbreviated",
|
|
1002
|
-
context: "formatting"
|
|
1003
|
-
});
|
|
1004
|
-
// T
|
|
1005
|
-
case "iiiii":
|
|
1006
|
-
return n.day(r, {
|
|
1007
|
-
width: "narrow",
|
|
1008
|
-
context: "formatting"
|
|
1009
|
-
});
|
|
1010
|
-
// Tu
|
|
1011
|
-
case "iiiiii":
|
|
1012
|
-
return n.day(r, {
|
|
1013
|
-
width: "short",
|
|
1014
|
-
context: "formatting"
|
|
1015
|
-
});
|
|
1016
|
-
// Tuesday
|
|
1017
|
-
case "iiii":
|
|
1018
|
-
default:
|
|
1019
|
-
return n.day(r, {
|
|
1020
|
-
width: "wide",
|
|
1021
|
-
context: "formatting"
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
},
|
|
1025
|
-
// AM or PM
|
|
1026
|
-
a: function(t, e, n) {
|
|
1027
|
-
const a = t.getHours() / 12 >= 1 ? "pm" : "am";
|
|
1028
|
-
switch (e) {
|
|
1029
|
-
case "a":
|
|
1030
|
-
case "aa":
|
|
1031
|
-
return n.dayPeriod(a, {
|
|
1032
|
-
width: "abbreviated",
|
|
1033
|
-
context: "formatting"
|
|
1034
|
-
});
|
|
1035
|
-
case "aaa":
|
|
1036
|
-
return n.dayPeriod(a, {
|
|
1037
|
-
width: "abbreviated",
|
|
1038
|
-
context: "formatting"
|
|
1039
|
-
}).toLowerCase();
|
|
1040
|
-
case "aaaaa":
|
|
1041
|
-
return n.dayPeriod(a, {
|
|
1042
|
-
width: "narrow",
|
|
1043
|
-
context: "formatting"
|
|
1044
|
-
});
|
|
1045
|
-
case "aaaa":
|
|
1046
|
-
default:
|
|
1047
|
-
return n.dayPeriod(a, {
|
|
1048
|
-
width: "wide",
|
|
1049
|
-
context: "formatting"
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
},
|
|
1053
|
-
// AM, PM, midnight, noon
|
|
1054
|
-
b: function(t, e, n) {
|
|
1055
|
-
const r = t.getHours();
|
|
1056
|
-
let a;
|
|
1057
|
-
switch (r === 12 ? a = O.noon : r === 0 ? a = O.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
|
|
1058
|
-
case "b":
|
|
1059
|
-
case "bb":
|
|
1060
|
-
return n.dayPeriod(a, {
|
|
1061
|
-
width: "abbreviated",
|
|
1062
|
-
context: "formatting"
|
|
1063
|
-
});
|
|
1064
|
-
case "bbb":
|
|
1065
|
-
return n.dayPeriod(a, {
|
|
1066
|
-
width: "abbreviated",
|
|
1067
|
-
context: "formatting"
|
|
1068
|
-
}).toLowerCase();
|
|
1069
|
-
case "bbbbb":
|
|
1070
|
-
return n.dayPeriod(a, {
|
|
1071
|
-
width: "narrow",
|
|
1072
|
-
context: "formatting"
|
|
1073
|
-
});
|
|
1074
|
-
case "bbbb":
|
|
1075
|
-
default:
|
|
1076
|
-
return n.dayPeriod(a, {
|
|
1077
|
-
width: "wide",
|
|
1078
|
-
context: "formatting"
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
},
|
|
1082
|
-
// in the morning, in the afternoon, in the evening, at night
|
|
1083
|
-
B: function(t, e, n) {
|
|
1084
|
-
const r = t.getHours();
|
|
1085
|
-
let a;
|
|
1086
|
-
switch (r >= 17 ? a = O.evening : r >= 12 ? a = O.afternoon : r >= 4 ? a = O.morning : a = O.night, e) {
|
|
1087
|
-
case "B":
|
|
1088
|
-
case "BB":
|
|
1089
|
-
case "BBB":
|
|
1090
|
-
return n.dayPeriod(a, {
|
|
1091
|
-
width: "abbreviated",
|
|
1092
|
-
context: "formatting"
|
|
1093
|
-
});
|
|
1094
|
-
case "BBBBB":
|
|
1095
|
-
return n.dayPeriod(a, {
|
|
1096
|
-
width: "narrow",
|
|
1097
|
-
context: "formatting"
|
|
1098
|
-
});
|
|
1099
|
-
case "BBBB":
|
|
1100
|
-
default:
|
|
1101
|
-
return n.dayPeriod(a, {
|
|
1102
|
-
width: "wide",
|
|
1103
|
-
context: "formatting"
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
},
|
|
1107
|
-
// Hour [1-12]
|
|
1108
|
-
h: function(t, e, n) {
|
|
1109
|
-
if (e === "ho") {
|
|
1110
|
-
let r = t.getHours() % 12;
|
|
1111
|
-
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
1112
|
-
}
|
|
1113
|
-
return M.h(t, e);
|
|
1114
|
-
},
|
|
1115
|
-
// Hour [0-23]
|
|
1116
|
-
H: function(t, e, n) {
|
|
1117
|
-
return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : M.H(t, e);
|
|
1118
|
-
},
|
|
1119
|
-
// Hour [0-11]
|
|
1120
|
-
K: function(t, e, n) {
|
|
1121
|
-
const r = t.getHours() % 12;
|
|
1122
|
-
return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, e.length);
|
|
1123
|
-
},
|
|
1124
|
-
// Hour [1-24]
|
|
1125
|
-
k: function(t, e, n) {
|
|
1126
|
-
let r = t.getHours();
|
|
1127
|
-
return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, e.length);
|
|
1128
|
-
},
|
|
1129
|
-
// Minute
|
|
1130
|
-
m: function(t, e, n) {
|
|
1131
|
-
return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : M.m(t, e);
|
|
1132
|
-
},
|
|
1133
|
-
// Second
|
|
1134
|
-
s: function(t, e, n) {
|
|
1135
|
-
return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : M.s(t, e);
|
|
1136
|
-
},
|
|
1137
|
-
// Fraction of second
|
|
1138
|
-
S: function(t, e) {
|
|
1139
|
-
return M.S(t, e);
|
|
1140
|
-
},
|
|
1141
|
-
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1142
|
-
X: function(t, e, n) {
|
|
1143
|
-
const r = t.getTimezoneOffset();
|
|
1144
|
-
if (r === 0)
|
|
1145
|
-
return "Z";
|
|
1146
|
-
switch (e) {
|
|
1147
|
-
// Hours and optional minutes
|
|
1148
|
-
case "X":
|
|
1149
|
-
return I(r);
|
|
1150
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1151
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1152
|
-
// so this token always has the same output as `XX`
|
|
1153
|
-
case "XXXX":
|
|
1154
|
-
case "XX":
|
|
1155
|
-
return p(r);
|
|
1156
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
1157
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1158
|
-
// so this token always has the same output as `XXX`
|
|
1159
|
-
case "XXXXX":
|
|
1160
|
-
case "XXX":
|
|
1161
|
-
// Hours and minutes with `:` delimiter
|
|
1162
|
-
default:
|
|
1163
|
-
return p(r, ":");
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1167
|
-
x: function(t, e, n) {
|
|
1168
|
-
const r = t.getTimezoneOffset();
|
|
1169
|
-
switch (e) {
|
|
1170
|
-
// Hours and optional minutes
|
|
1171
|
-
case "x":
|
|
1172
|
-
return I(r);
|
|
1173
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1174
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1175
|
-
// so this token always has the same output as `xx`
|
|
1176
|
-
case "xxxx":
|
|
1177
|
-
case "xx":
|
|
1178
|
-
return p(r);
|
|
1179
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
1180
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1181
|
-
// so this token always has the same output as `xxx`
|
|
1182
|
-
case "xxxxx":
|
|
1183
|
-
case "xxx":
|
|
1184
|
-
// Hours and minutes with `:` delimiter
|
|
1185
|
-
default:
|
|
1186
|
-
return p(r, ":");
|
|
1187
|
-
}
|
|
1188
|
-
},
|
|
1189
|
-
// Timezone (GMT)
|
|
1190
|
-
O: function(t, e, n) {
|
|
1191
|
-
const r = t.getTimezoneOffset();
|
|
1192
|
-
switch (e) {
|
|
1193
|
-
// Short
|
|
1194
|
-
case "O":
|
|
1195
|
-
case "OO":
|
|
1196
|
-
case "OOO":
|
|
1197
|
-
return "GMT" + j(r, ":");
|
|
1198
|
-
// Long
|
|
1199
|
-
case "OOOO":
|
|
1200
|
-
default:
|
|
1201
|
-
return "GMT" + p(r, ":");
|
|
1202
|
-
}
|
|
1203
|
-
},
|
|
1204
|
-
// Timezone (specific non-location)
|
|
1205
|
-
z: function(t, e, n) {
|
|
1206
|
-
const r = t.getTimezoneOffset();
|
|
1207
|
-
switch (e) {
|
|
1208
|
-
// Short
|
|
1209
|
-
case "z":
|
|
1210
|
-
case "zz":
|
|
1211
|
-
case "zzz":
|
|
1212
|
-
return "GMT" + j(r, ":");
|
|
1213
|
-
// Long
|
|
1214
|
-
case "zzzz":
|
|
1215
|
-
default:
|
|
1216
|
-
return "GMT" + p(r, ":");
|
|
1217
|
-
}
|
|
1218
|
-
},
|
|
1219
|
-
// Seconds timestamp
|
|
1220
|
-
t: function(t, e, n) {
|
|
1221
|
-
const r = Math.trunc(t.getTime() / 1e3);
|
|
1222
|
-
return c(r, e.length);
|
|
1223
|
-
},
|
|
1224
|
-
// Milliseconds timestamp
|
|
1225
|
-
T: function(t, e, n) {
|
|
1226
|
-
const r = t.getTime();
|
|
1227
|
-
return c(r, e.length);
|
|
1228
|
-
}
|
|
1229
|
-
};
|
|
1230
|
-
function j(t, e = "") {
|
|
1231
|
-
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), o = r % 60;
|
|
1232
|
-
return o === 0 ? n + String(a) : n + String(a) + e + c(o, 2);
|
|
1233
|
-
}
|
|
1234
|
-
function I(t, e) {
|
|
1235
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") + c(Math.abs(t) / 60, 2) : p(t, e);
|
|
1236
|
-
}
|
|
1237
|
-
function p(t, e = "") {
|
|
1238
|
-
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = c(Math.trunc(r / 60), 2), o = c(r % 60, 2);
|
|
1239
|
-
return n + a + e + o;
|
|
1240
|
-
}
|
|
1241
|
-
const Q = (t, e) => {
|
|
1242
|
-
switch (t) {
|
|
1243
|
-
case "P":
|
|
1244
|
-
return e.date({ width: "short" });
|
|
1245
|
-
case "PP":
|
|
1246
|
-
return e.date({ width: "medium" });
|
|
1247
|
-
case "PPP":
|
|
1248
|
-
return e.date({ width: "long" });
|
|
1249
|
-
case "PPPP":
|
|
1250
|
-
default:
|
|
1251
|
-
return e.date({ width: "full" });
|
|
1252
|
-
}
|
|
1253
|
-
}, $ = (t, e) => {
|
|
1254
|
-
switch (t) {
|
|
1255
|
-
case "p":
|
|
1256
|
-
return e.time({ width: "short" });
|
|
1257
|
-
case "pp":
|
|
1258
|
-
return e.time({ width: "medium" });
|
|
1259
|
-
case "ppp":
|
|
1260
|
-
return e.time({ width: "long" });
|
|
1261
|
-
case "pppp":
|
|
1262
|
-
default:
|
|
1263
|
-
return e.time({ width: "full" });
|
|
1264
|
-
}
|
|
1265
|
-
}, ee = (t, e) => {
|
|
1266
|
-
const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1267
|
-
if (!a)
|
|
1268
|
-
return Q(t, e);
|
|
1269
|
-
let o;
|
|
1270
|
-
switch (r) {
|
|
1271
|
-
case "P":
|
|
1272
|
-
o = e.dateTime({ width: "short" });
|
|
1273
|
-
break;
|
|
1274
|
-
case "PP":
|
|
1275
|
-
o = e.dateTime({ width: "medium" });
|
|
1276
|
-
break;
|
|
1277
|
-
case "PPP":
|
|
1278
|
-
o = e.dateTime({ width: "long" });
|
|
1279
|
-
break;
|
|
1280
|
-
case "PPPP":
|
|
1281
|
-
default:
|
|
1282
|
-
o = e.dateTime({ width: "full" });
|
|
1283
|
-
break;
|
|
1284
|
-
}
|
|
1285
|
-
return o.replace("{{date}}", Q(r, e)).replace("{{time}}", $(a, e));
|
|
1286
|
-
}, ne = {
|
|
1287
|
-
p: $,
|
|
1288
|
-
P: ee
|
|
1289
|
-
}, re = /^D+$/, ae = /^Y+$/, oe = ["D", "DD", "YY", "YYYY"];
|
|
1290
|
-
function ie(t) {
|
|
1291
|
-
return re.test(t);
|
|
1292
|
-
}
|
|
1293
|
-
function se(t) {
|
|
1294
|
-
return ae.test(t);
|
|
1295
|
-
}
|
|
1296
|
-
function ce(t, e, n) {
|
|
1297
|
-
const r = ue(t, e, n);
|
|
1298
|
-
if (console.warn(r), oe.includes(t)) throw new RangeError(r);
|
|
1299
|
-
}
|
|
1300
|
-
function ue(t, e, n) {
|
|
1301
|
-
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1302
|
-
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1303
|
-
}
|
|
1304
|
-
const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fe = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, le = /^'([^]*?)'?$/, he = /''/g, me = /[a-zA-Z]/;
|
|
1305
|
-
function ge(t, e, n) {
|
|
1306
|
-
var l, w, h, y;
|
|
1307
|
-
const r = T(), a = r.locale ?? G, o = r.firstWeekContainsDate ?? ((w = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((y = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : y.weekStartsOn) ?? 0, i = d(t);
|
|
1308
|
-
if (!ut(i))
|
|
1309
|
-
throw new RangeError("Invalid time value");
|
|
1310
|
-
let u = e.match(fe).map((m) => {
|
|
1311
|
-
const g = m[0];
|
|
1312
|
-
if (g === "p" || g === "P") {
|
|
1313
|
-
const E = ne[g];
|
|
1314
|
-
return E(m, a.formatLong);
|
|
1315
|
-
}
|
|
1316
|
-
return m;
|
|
1317
|
-
}).join("").match(de).map((m) => {
|
|
1318
|
-
if (m === "''")
|
|
1319
|
-
return { isToken: !1, value: "'" };
|
|
1320
|
-
const g = m[0];
|
|
1321
|
-
if (g === "'")
|
|
1322
|
-
return { isToken: !1, value: we(m) };
|
|
1323
|
-
if (L[g])
|
|
1324
|
-
return { isToken: !0, value: m };
|
|
1325
|
-
if (g.match(me))
|
|
1326
|
-
throw new RangeError(
|
|
1327
|
-
"Format string contains an unescaped latin alphabet character `" + g + "`"
|
|
1328
|
-
);
|
|
1329
|
-
return { isToken: !1, value: m };
|
|
1330
|
-
});
|
|
1331
|
-
a.localize.preprocessor && (u = a.localize.preprocessor(i, u));
|
|
1332
|
-
const f = {
|
|
1333
|
-
firstWeekContainsDate: o,
|
|
1334
|
-
weekStartsOn: s,
|
|
1335
|
-
locale: a
|
|
1336
|
-
};
|
|
1337
|
-
return u.map((m) => {
|
|
1338
|
-
if (!m.isToken) return m.value;
|
|
1339
|
-
const g = m.value;
|
|
1340
|
-
(se(g) || ie(g)) && ce(g, e, String(t));
|
|
1341
|
-
const E = L[g[0]];
|
|
1342
|
-
return E(i, g, a.localize, f);
|
|
1343
|
-
}).join("");
|
|
1344
|
-
}
|
|
1345
|
-
function we(t) {
|
|
1346
|
-
const e = t.match(le);
|
|
1347
|
-
return e ? e[1].replace(he, "'") : t;
|
|
1348
|
-
}
|
|
1349
|
-
function ye(t, e, n) {
|
|
1350
|
-
const r = T(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? G, o = 2520, s = Y(t, e);
|
|
1351
|
-
if (isNaN(s))
|
|
1352
|
-
throw new RangeError("Invalid time value");
|
|
1353
|
-
const i = Object.assign({}, n, {
|
|
1354
|
-
addSuffix: n == null ? void 0 : n.addSuffix,
|
|
1355
|
-
comparison: s
|
|
1356
|
-
});
|
|
1357
|
-
let u, f;
|
|
1358
|
-
s > 0 ? (u = d(e), f = d(t)) : (u = d(t), f = d(e));
|
|
1359
|
-
const l = yt(f, u), w = (N(f) - N(u)) / 1e3, h = Math.round((l - w) / 60);
|
|
1360
|
-
let y;
|
|
1361
|
-
if (h < 2)
|
|
1362
|
-
return n != null && n.includeSeconds ? l < 5 ? a.formatDistance("lessThanXSeconds", 5, i) : l < 10 ? a.formatDistance("lessThanXSeconds", 10, i) : l < 20 ? a.formatDistance("lessThanXSeconds", 20, i) : l < 40 ? a.formatDistance("halfAMinute", 0, i) : l < 60 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", 1, i) : h === 0 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", h, i);
|
|
1363
|
-
if (h < 45)
|
|
1364
|
-
return a.formatDistance("xMinutes", h, i);
|
|
1365
|
-
if (h < 90)
|
|
1366
|
-
return a.formatDistance("aboutXHours", 1, i);
|
|
1367
|
-
if (h < H) {
|
|
1368
|
-
const m = Math.round(h / 60);
|
|
1369
|
-
return a.formatDistance("aboutXHours", m, i);
|
|
1370
|
-
} else {
|
|
1371
|
-
if (h < o)
|
|
1372
|
-
return a.formatDistance("xDays", 1, i);
|
|
1373
|
-
if (h < W) {
|
|
1374
|
-
const m = Math.round(h / H);
|
|
1375
|
-
return a.formatDistance("xDays", m, i);
|
|
1376
|
-
} else if (h < W * 2)
|
|
1377
|
-
return y = Math.round(h / W), a.formatDistance("aboutXMonths", y, i);
|
|
1378
|
-
}
|
|
1379
|
-
if (y = wt(f, u), y < 12) {
|
|
1380
|
-
const m = Math.round(h / W);
|
|
1381
|
-
return a.formatDistance("xMonths", m, i);
|
|
1382
|
-
} else {
|
|
1383
|
-
const m = y % 12, g = Math.trunc(y / 12);
|
|
1384
|
-
return m < 3 ? a.formatDistance("aboutXYears", g, i) : m < 9 ? a.formatDistance("overXYears", g, i) : a.formatDistance("almostXYears", g + 1, i);
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
function be(t, e) {
|
|
1388
|
-
return ye(t, st(t), e);
|
|
1389
|
-
}
|
|
1390
|
-
const Me = (t, e) => {
|
|
1391
|
-
switch (t) {
|
|
1392
|
-
case P.warning:
|
|
1393
|
-
return e.colors.status.warning.onsurface;
|
|
1394
|
-
case P.error:
|
|
1395
|
-
return e.colors.status.error.onsurface;
|
|
1396
|
-
case P.success:
|
|
1397
|
-
return e.colors.status.success.onsurface;
|
|
1398
|
-
case P.generic:
|
|
1399
|
-
return e.colors.status.generic.onsurface;
|
|
1400
|
-
case P.info:
|
|
1401
|
-
default:
|
|
1402
|
-
return e.colors.status.info.onsurface;
|
|
1403
|
-
}
|
|
1404
|
-
}, tn = ({
|
|
1405
|
-
message: t,
|
|
1406
|
-
state: e = P.info,
|
|
1407
|
-
date: n,
|
|
1408
|
-
action: r,
|
|
1409
|
-
onArrowClick: a,
|
|
1410
|
-
size: o = _.standard,
|
|
1411
|
-
isUnread: s = !0,
|
|
1412
|
-
hasFormattedDate: i = !1
|
|
1413
|
-
}) => {
|
|
1414
|
-
const u = J();
|
|
1415
|
-
Me(e, u), u.colors.interactive.utility.border, u.colors.interactive.utility.onsurface;
|
|
1416
|
-
const f = " • ", l = n ? ge(new Date(n), "MMM d, h:mma") : "", w = n ? be(new Date(n), { addSuffix: !0 }) : "", h = i ? `${w}${f}${l}` : w, y = o === _.small ? S.body1 : S.body2;
|
|
1417
|
-
return /* @__PURE__ */ X(Z, { state: e, size: o, $isUnread: s, children: [
|
|
1418
|
-
s ? /* @__PURE__ */ b(z, { state: e, size: o }) : /* @__PURE__ */ b("div", { style: { width: 8 } }),
|
|
1419
|
-
/* @__PURE__ */ b(K, { state: e }),
|
|
1420
|
-
/* @__PURE__ */ b(tt, { size: o, children: /* @__PURE__ */ X("div", { children: [
|
|
1421
|
-
/* @__PURE__ */ b(
|
|
1422
|
-
C,
|
|
1423
|
-
{
|
|
1424
|
-
variant: S.body3,
|
|
1425
|
-
color: u.colors.onsurface["copy-dark"],
|
|
1426
|
-
isText: !0,
|
|
1427
|
-
children: t
|
|
1428
|
-
}
|
|
1429
|
-
),
|
|
1430
|
-
/* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ b(
|
|
1431
|
-
C,
|
|
1432
|
-
{
|
|
1433
|
-
variant: y,
|
|
1434
|
-
color: u.colors.onsurface["copy-light"],
|
|
1435
|
-
isText: !0,
|
|
1436
|
-
children: h
|
|
1437
|
-
}
|
|
1438
|
-
) })
|
|
1439
|
-
] }) }),
|
|
1440
|
-
r ? /* @__PURE__ */ b(
|
|
1441
|
-
U,
|
|
1442
|
-
{
|
|
1443
|
-
themeType: "utility",
|
|
1444
|
-
onClick: r.onClick,
|
|
1445
|
-
size: "small",
|
|
1446
|
-
style: { pointerEvents: "all" },
|
|
1447
|
-
children: /* @__PURE__ */ b(
|
|
1448
|
-
C,
|
|
1449
|
-
{
|
|
1450
|
-
variant: S.body1,
|
|
1451
|
-
isText: !0,
|
|
1452
|
-
children: r.label
|
|
1453
|
-
}
|
|
1454
|
-
)
|
|
1455
|
-
}
|
|
1456
|
-
) : null,
|
|
1457
|
-
a ? /* @__PURE__ */ b(et, { onClick: a, children: /* @__PURE__ */ b(nt, {}) }) : null
|
|
1458
|
-
] });
|
|
1459
|
-
};
|
|
1460
|
-
export {
|
|
1461
|
-
tn as default
|
|
1462
|
-
};
|