@gobolt/genesis 0.1.1 → 0.1.3
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 +8 -8
- package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
- package/dist/CSSMotionList-DB0khM6h.js +22193 -0
- package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
- package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
- package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
- package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
- package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
- package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
- package/dist/Context-2_suFYDs.js +5 -0
- package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
- package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
- package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
- package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
- package/dist/Input--qsU-6vp.js +424 -0
- package/dist/KeyCode-B3vHb2gY.js +155 -0
- package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
- package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
- package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
- package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
- package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
- package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
- package/dist/TextArea-CHo3cxKw.js +404 -0
- package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
- package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
- package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
- package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
- package/dist/button-CYVlK7G0.js +1430 -0
- package/dist/components/Avatar/Avatar.js +8 -7
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.d.ts +1 -2
- package/dist/components/Avatar/styles.js +161 -159
- package/dist/components/Badge/Badge.js +8 -7
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Badge/styles.d.ts +0 -1
- package/dist/components/Badge/styles.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
- package/dist/components/Breadcrumb/styles.d.ts +0 -1
- package/dist/components/Breadcrumb/styles.js +58 -58
- package/dist/components/Button/Button.d.ts +0 -1
- package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +5 -4
- package/dist/components/Button/styles.d.ts +0 -1
- package/dist/components/Button/styles.js +2 -2
- package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.d.ts +0 -1
- package/dist/components/Card/styles.js +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
- package/dist/components/Checkbox/styles.d.ts +3 -4
- package/dist/components/Checkbox/styles.js +2 -2
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/Dashboard/styles.d.ts +0 -1
- package/dist/components/Dashboard/styles.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
- package/dist/components/ErrorBoundary/styles.d.ts +0 -1
- package/dist/components/ErrorBoundary/styles.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
- package/dist/components/Form/Form.d.ts +0 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
- package/dist/components/Form/__stories__/FormStory.js +11 -10
- package/dist/components/Form/__tests__/form.test.js +7 -6
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.d.ts +0 -1
- package/dist/components/Form/styles.js +10 -2
- package/dist/components/FormBrandon/Form.d.ts +25 -0
- package/dist/components/FormBrandon/Form.js +18 -0
- package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
- package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
- package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
- package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
- package/dist/components/FormBrandon/index.d.ts +2 -0
- package/dist/components/FormBrandon/index.js +4 -0
- package/dist/components/FormBrandon/styles.d.ts +2 -0
- package/dist/components/FormBrandon/styles.js +13 -0
- package/dist/components/Glyph/Glyph.js +2 -2
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
- package/dist/components/Glyph/styles.d.ts +0 -1
- package/dist/components/Glyph/styles.js +1 -1
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +9 -10
- package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
- package/dist/components/Input/__tests__/Input.test.js +21 -20
- package/dist/components/Input/styles.d.ts +5 -6
- package/dist/components/Input/styles.js +4 -119
- package/dist/components/Layout/Content/Content.d.ts +0 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
- package/dist/components/Layout/Content/styles.d.ts +0 -1
- package/dist/components/Layout/Content/styles.js +1 -1
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
- package/dist/components/Layout/MainLayout/styles.js +1 -1
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.d.ts +0 -1
- package/dist/components/Message/Message.js +13 -12
- package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
- package/dist/components/Message/__tests__/Message.test.js +6 -5
- package/dist/components/Message/styles.js +1 -1
- package/dist/components/Notification/Notification.js +122 -55
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
- package/dist/components/Notification/NotificationBadge/styles.js +1 -1
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
- package/dist/components/Notification/__tests__/Notification.test.js +3 -3
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/Popover.js +14 -11
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
- package/dist/components/Popover/__tests__/Popover.test.js +19 -26
- package/dist/components/Popover/styles.d.ts +0 -1
- package/dist/components/Popover/styles.js +2 -2
- package/dist/components/Progress/Progress.js +29 -27
- package/dist/components/Progress/Progress.util.d.ts +0 -1
- package/dist/components/Progress/Progress.util.js +8 -7
- package/dist/components/Progress/ProgressText.d.ts +0 -1
- package/dist/components/Progress/ProgressText.js +8 -7
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
- package/dist/components/Progress/__tests__/Progress.test.js +4 -4
- package/dist/components/Progress/styles.d.ts +0 -1
- package/dist/components/Progress/styles.js +217 -214
- package/dist/components/Radio/Radio.d.ts +0 -1
- package/dist/components/Radio/Radio.js +9 -8
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
- package/dist/components/Row/Row.d.ts +0 -1
- package/dist/components/Row/Row.js +29 -26
- package/dist/components/Row/RowActions/RowActions.js +8 -7
- package/dist/components/Row/RowActions/styles.js +1 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
- package/dist/components/Row/RowLabelValue/styles.js +2 -2
- package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
- package/dist/components/Row/__tests__/Row.test.js +3 -3
- package/dist/components/Row/styles.d.ts +0 -1
- package/dist/components/Row/styles.js +1 -1
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.d.ts +1 -2
- package/dist/components/SegmentedControls/styles.js +214 -203
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +10 -11
- package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +49 -10754
- package/dist/components/Select/styles.d.ts +0 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
- package/dist/components/Switch/__tests__/Switch.test.js +3 -3
- package/dist/components/Switch/styles.d.ts +0 -1
- package/dist/components/Switch/styles.js +74 -74
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
- package/dist/components/Table/__mocks__/table-mocks.js +10 -9
- package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.d.ts +0 -1
- package/dist/components/Table/styles.js +2 -2
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
- package/dist/components/Tabs/styles.d.ts +0 -1
- package/dist/components/Tabs/styles.js +2 -2
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Tile/styles.d.ts +0 -1
- package/dist/components/Tile/styles.js +1 -1
- package/dist/components/Toast/Toast.d.ts +0 -1
- package/dist/components/Toast/Toast.js +9 -8
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
- package/dist/components/Toast/__tests__/Toast.test.js +6 -5
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +8 -7
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.d.ts +0 -1
- package/dist/components/Tooltip/styles.js +2 -2
- package/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
- package/dist/components/Typography/__tests__/Typography.test.js +14 -13
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +0 -1
- package/dist/components/Typography/styles.js +2 -2
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +46 -48
- package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
- package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
- package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
- package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
- package/dist/genesis/GenesisThemeBreakdown.js +9 -8
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
- package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
- package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
- package/dist/genesis/styles.d.ts +0 -1
- package/dist/genesis/styles.js +3 -3
- package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
- package/dist/index-B7FXyiY_.js +104 -0
- package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
- package/dist/index-BZ050Dyl.js +292 -0
- package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
- package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
- package/dist/index-C2K1BzmJ.js +3400 -0
- package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
- package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
- package/dist/index-DCopujxC.js +772 -0
- package/dist/index-DRGbc-fW.js +780 -0
- package/dist/index-DavB5GQ3.js +5221 -0
- package/dist/index-RAH9f-qb.js +540 -0
- package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
- package/dist/index-Y0KgiFZb.js +909 -0
- package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
- package/dist/index.js +53 -55
- package/dist/interface/appointment.d.ts +0 -1
- package/dist/interface/appointmentV2.d.ts +0 -1
- package/dist/interface/appointmentsState.d.ts +0 -1
- package/dist/interface/deliveryPartner.d.ts +0 -1
- package/dist/interface/route.d.ts +0 -1
- package/dist/interface/routeAnalysis.d.ts +0 -1
- package/dist/interface/routeAutomationJob.d.ts +0 -1
- package/dist/interface/routeAutomationLog.d.ts +0 -1
- package/dist/interface/serviceArea.d.ts +0 -1
- package/dist/interface/vehicle.d.ts +0 -1
- package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
- package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
- package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
- package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
- package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
- package/dist/providers/BreakpointThemeProvider.js +5 -5
- package/dist/providers/GenesisProvider.d.ts +0 -1
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.d.ts +0 -1
- package/dist/providers/ToastProvider.js +10 -9
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.d.ts +0 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
- package/dist/setup-aZdxWCJq.js +13976 -0
- package/dist/setup.types-CgFq66QX.js +9261 -0
- package/dist/shadow-9lsz-71t.js +13 -0
- package/dist/statusUtils-Kj9kMuVg.js +15 -0
- package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
- package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
- package/dist/styles/global-styles.d.ts +0 -1
- package/dist/styles/global-styles.js +1 -1
- package/dist/styles/theme/genesis-theme.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +285 -337
- package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
- package/dist/styles/theme/genesis-theme.test.js +69 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
- package/dist/styles-DNay6iFa.js +292 -0
- package/dist/styles-Wpm1RiGr.js +9212 -0
- package/dist/styles-XuoEGUZZ.js +549 -0
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +35 -35
- package/dist/test/setup.types.d.ts +0 -1
- package/dist/test/setup.types.js +1 -1
- package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
- package/dist/useBreakpoint-ByLol0R9.js +88 -0
- package/dist/useCSSVarCls-YfJY1twF.js +10 -0
- package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
- package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
- package/dist/useLocale-BQ3mKRyJ.js +16 -0
- package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
- package/dist/useSize-Ct1guc-z.js +9 -0
- package/dist/useVariants-C6UAAu9f.js +19 -0
- package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
- package/dist/utils/icon-util.js +48 -44
- package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
- package/package.json +33 -24
- package/dist/EllipsisOutlined-DGMph0Bj.js +0 -1115
- package/dist/KeyCode-DM2sFh3-.js +0 -517
- package/dist/TextArea-Bkf9hh7l.js +0 -708
- package/dist/_baseIsEqual-L0-w1QRI.js +0 -598
- package/dist/button-BwqpCxVM.js +0 -1406
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/index-BRUI9igj.js +0 -11
- package/dist/index-BbTV2Cw5.js +0 -22638
- package/dist/index-BeGv28kJ.js +0 -5173
- package/dist/index-BvOLXELm.js +0 -102
- package/dist/index-CLSrpQRW.js +0 -416
- package/dist/index-CbVOl2U6.js +0 -288
- package/dist/index-D0U6r5O7.js +0 -780
- package/dist/index-DEu2PVzQ.js +0 -538
- package/dist/index-DLdU7Tpd.js +0 -183
- package/dist/index-DNQ-jnBx.js +0 -3321
- package/dist/index-DWjq9XYj.js +0 -899
- package/dist/responsiveObserver-dCkpy7Cb.js +0 -73
- package/dist/setup-BjIR5S0o.js +0 -24731
- package/dist/setup.types-dBtAXXGp.js +0 -8824
- package/dist/shadow-BoMGMNn3.js +0 -13
- package/dist/styles-CWdUpZom.js +0 -289
- package/dist/styles-qerRs7Rn.js +0 -9196
- package/dist/useBreakpoint-TkMv121M.js +0 -22
- package/dist/useCSSVarCls-Dau77fzS.js +0 -11
- package/dist/useLocale-CTfNpakL.js +0 -16
- package/dist/useSize-DSq4r6zy.js +0 -9
- package/dist/useVariants-DrLzUVLU.js +0 -30
- package/dist/utils/getAppointmentColor.d.ts +0 -4
- package/dist/utils/getAppointmentColor.js +0 -91
- package/dist/utils/isAllEnglishString.d.ts +0 -1
- package/dist/utils/isAllEnglishString.js +0 -8
- package/dist/utils/isAllEnglishString.test.js +0 -8
- package/dist/utils/parseAddress.d.ts +0 -3
- package/dist/utils/parseAddress.js +0 -19
- /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { jsxs as X, jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import { SIZE as _,
|
|
2
|
+
import { SIZE as _, STATE as P, TYPOGRAPHY_VARIANT as S } from "../../constants/index.js";
|
|
3
3
|
import "../Avatar/styles.js";
|
|
4
4
|
import "../Badge/styles.js";
|
|
5
5
|
import "../../providers/BreakpointThemeProvider.js";
|
|
6
|
-
import { a as C } from "../../Typography-
|
|
7
|
-
import { n as J } from "../../styled-components.browser.esm-
|
|
6
|
+
import { a as C } from "../../Typography-B2J8CPnt.js";
|
|
7
|
+
import { n as J } from "../../styled-components.browser.esm-C47QHsU4.js";
|
|
8
8
|
import "../Breadcrumb/styles.js";
|
|
9
9
|
import U from "../Button/Button.js";
|
|
10
10
|
import "../Card/styles.js";
|
|
11
11
|
import "../Checkbox/styles.js";
|
|
12
|
+
import "../DateRangePicker/DateRangePicker.js";
|
|
12
13
|
import "react";
|
|
13
14
|
import "../ErrorBoundaryFallback/styles.js";
|
|
14
|
-
import "
|
|
15
|
+
import "../../styles-XuoEGUZZ.js";
|
|
15
16
|
import "../Layout/Content/styles.js";
|
|
16
17
|
import "../Message/styles.js";
|
|
17
|
-
import "../../styles-
|
|
18
|
+
import "../../styles-DNay6iFa.js";
|
|
18
19
|
import "../Progress/styles.js";
|
|
19
|
-
import "../../styles/global-styles.js";
|
|
20
20
|
import "../Row/styles.js";
|
|
21
|
+
import "../../styles/global-styles.js";
|
|
21
22
|
import "../Row/RowLabelValue/styles.js";
|
|
22
23
|
import "../Row/RowActions/styles.js";
|
|
23
24
|
import "../SegmentedControls/styles.js";
|
|
24
25
|
import "../Select/styles.js";
|
|
25
26
|
import "../Switch/styles.js";
|
|
26
|
-
import "../../styles-
|
|
27
|
+
import "../../styles-Wpm1RiGr.js";
|
|
27
28
|
import "../Tabs/styles.js";
|
|
28
29
|
import "../Tile/styles.js";
|
|
29
30
|
import "../Toast/styles.js";
|
|
@@ -114,17 +115,17 @@ function ft(t) {
|
|
|
114
115
|
function lt(t, e) {
|
|
115
116
|
return +d(t) - +d(e);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function ht(t) {
|
|
118
119
|
const e = d(t);
|
|
119
120
|
return e.setHours(23, 59, 59, 999), e;
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function mt(t) {
|
|
122
123
|
const e = d(t), n = e.getMonth();
|
|
123
124
|
return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e;
|
|
124
125
|
}
|
|
125
126
|
function gt(t) {
|
|
126
127
|
const e = d(t);
|
|
127
|
-
return +
|
|
128
|
+
return +ht(e) == +mt(e);
|
|
128
129
|
}
|
|
129
130
|
function wt(t, e) {
|
|
130
131
|
const n = d(t), r = d(e), a = Y(n, r), o = Math.abs(
|
|
@@ -588,8 +589,8 @@ function Zt(t) {
|
|
|
588
589
|
return Math.round(n / A) + 1;
|
|
589
590
|
}
|
|
590
591
|
function V(t, e) {
|
|
591
|
-
var l, w,
|
|
592
|
-
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 = (
|
|
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);
|
|
593
594
|
s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
594
595
|
const i = k(s, e), u = D(t, 0);
|
|
595
596
|
u.setFullYear(r, 0, o), u.setHours(0, 0, 0, 0);
|
|
@@ -664,8 +665,6 @@ const M = {
|
|
|
664
665
|
return c(a, e.length);
|
|
665
666
|
}
|
|
666
667
|
}, O = {
|
|
667
|
-
am: "am",
|
|
668
|
-
pm: "pm",
|
|
669
668
|
midnight: "midnight",
|
|
670
669
|
noon: "noon",
|
|
671
670
|
morning: "morning",
|
|
@@ -677,12 +676,15 @@ const M = {
|
|
|
677
676
|
G: function(t, e, n) {
|
|
678
677
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
679
678
|
switch (e) {
|
|
679
|
+
// AD, BC
|
|
680
680
|
case "G":
|
|
681
681
|
case "GG":
|
|
682
682
|
case "GGG":
|
|
683
683
|
return n.era(r, { width: "abbreviated" });
|
|
684
|
+
// A, B
|
|
684
685
|
case "GGGGG":
|
|
685
686
|
return n.era(r, { width: "narrow" });
|
|
687
|
+
// Anno Domini, Before Christ
|
|
686
688
|
case "GGGG":
|
|
687
689
|
default:
|
|
688
690
|
return n.era(r, { width: "wide" });
|
|
@@ -727,22 +729,28 @@ const M = {
|
|
|
727
729
|
Q: function(t, e, n) {
|
|
728
730
|
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
729
731
|
switch (e) {
|
|
732
|
+
// 1, 2, 3, 4
|
|
730
733
|
case "Q":
|
|
731
734
|
return String(r);
|
|
735
|
+
// 01, 02, 03, 04
|
|
732
736
|
case "QQ":
|
|
733
737
|
return c(r, 2);
|
|
738
|
+
// 1st, 2nd, 3rd, 4th
|
|
734
739
|
case "Qo":
|
|
735
740
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
741
|
+
// Q1, Q2, Q3, Q4
|
|
736
742
|
case "QQQ":
|
|
737
743
|
return n.quarter(r, {
|
|
738
744
|
width: "abbreviated",
|
|
739
745
|
context: "formatting"
|
|
740
746
|
});
|
|
747
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
741
748
|
case "QQQQQ":
|
|
742
749
|
return n.quarter(r, {
|
|
743
750
|
width: "narrow",
|
|
744
751
|
context: "formatting"
|
|
745
752
|
});
|
|
753
|
+
// 1st quarter, 2nd quarter, ...
|
|
746
754
|
case "QQQQ":
|
|
747
755
|
default:
|
|
748
756
|
return n.quarter(r, {
|
|
@@ -755,22 +763,28 @@ const M = {
|
|
|
755
763
|
q: function(t, e, n) {
|
|
756
764
|
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
757
765
|
switch (e) {
|
|
766
|
+
// 1, 2, 3, 4
|
|
758
767
|
case "q":
|
|
759
768
|
return String(r);
|
|
769
|
+
// 01, 02, 03, 04
|
|
760
770
|
case "qq":
|
|
761
771
|
return c(r, 2);
|
|
772
|
+
// 1st, 2nd, 3rd, 4th
|
|
762
773
|
case "qo":
|
|
763
774
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
775
|
+
// Q1, Q2, Q3, Q4
|
|
764
776
|
case "qqq":
|
|
765
777
|
return n.quarter(r, {
|
|
766
778
|
width: "abbreviated",
|
|
767
779
|
context: "standalone"
|
|
768
780
|
});
|
|
781
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
769
782
|
case "qqqqq":
|
|
770
783
|
return n.quarter(r, {
|
|
771
784
|
width: "narrow",
|
|
772
785
|
context: "standalone"
|
|
773
786
|
});
|
|
787
|
+
// 1st quarter, 2nd quarter, ...
|
|
774
788
|
case "qqqq":
|
|
775
789
|
default:
|
|
776
790
|
return n.quarter(r, {
|
|
@@ -786,18 +800,22 @@ const M = {
|
|
|
786
800
|
case "M":
|
|
787
801
|
case "MM":
|
|
788
802
|
return M.M(t, e);
|
|
803
|
+
// 1st, 2nd, ..., 12th
|
|
789
804
|
case "Mo":
|
|
790
805
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
806
|
+
// Jan, Feb, ..., Dec
|
|
791
807
|
case "MMM":
|
|
792
808
|
return n.month(r, {
|
|
793
809
|
width: "abbreviated",
|
|
794
810
|
context: "formatting"
|
|
795
811
|
});
|
|
812
|
+
// J, F, ..., D
|
|
796
813
|
case "MMMMM":
|
|
797
814
|
return n.month(r, {
|
|
798
815
|
width: "narrow",
|
|
799
816
|
context: "formatting"
|
|
800
817
|
});
|
|
818
|
+
// January, February, ..., December
|
|
801
819
|
case "MMMM":
|
|
802
820
|
default:
|
|
803
821
|
return n.month(r, { width: "wide", context: "formatting" });
|
|
@@ -807,22 +825,28 @@ const M = {
|
|
|
807
825
|
L: function(t, e, n) {
|
|
808
826
|
const r = t.getMonth();
|
|
809
827
|
switch (e) {
|
|
828
|
+
// 1, 2, ..., 12
|
|
810
829
|
case "L":
|
|
811
830
|
return String(r + 1);
|
|
831
|
+
// 01, 02, ..., 12
|
|
812
832
|
case "LL":
|
|
813
833
|
return c(r + 1, 2);
|
|
834
|
+
// 1st, 2nd, ..., 12th
|
|
814
835
|
case "Lo":
|
|
815
836
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
837
|
+
// Jan, Feb, ..., Dec
|
|
816
838
|
case "LLL":
|
|
817
839
|
return n.month(r, {
|
|
818
840
|
width: "abbreviated",
|
|
819
841
|
context: "standalone"
|
|
820
842
|
});
|
|
843
|
+
// J, F, ..., D
|
|
821
844
|
case "LLLLL":
|
|
822
845
|
return n.month(r, {
|
|
823
846
|
width: "narrow",
|
|
824
847
|
context: "standalone"
|
|
825
848
|
});
|
|
849
|
+
// January, February, ..., December
|
|
826
850
|
case "LLLL":
|
|
827
851
|
default:
|
|
828
852
|
return n.month(r, { width: "wide", context: "standalone" });
|
|
@@ -851,6 +875,7 @@ const M = {
|
|
|
851
875
|
E: function(t, e, n) {
|
|
852
876
|
const r = t.getDay();
|
|
853
877
|
switch (e) {
|
|
878
|
+
// Tue
|
|
854
879
|
case "E":
|
|
855
880
|
case "EE":
|
|
856
881
|
case "EEE":
|
|
@@ -858,16 +883,19 @@ const M = {
|
|
|
858
883
|
width: "abbreviated",
|
|
859
884
|
context: "formatting"
|
|
860
885
|
});
|
|
886
|
+
// T
|
|
861
887
|
case "EEEEE":
|
|
862
888
|
return n.day(r, {
|
|
863
889
|
width: "narrow",
|
|
864
890
|
context: "formatting"
|
|
865
891
|
});
|
|
892
|
+
// Tu
|
|
866
893
|
case "EEEEEE":
|
|
867
894
|
return n.day(r, {
|
|
868
895
|
width: "short",
|
|
869
896
|
context: "formatting"
|
|
870
897
|
});
|
|
898
|
+
// Tuesday
|
|
871
899
|
case "EEEE":
|
|
872
900
|
default:
|
|
873
901
|
return n.day(r, {
|
|
@@ -880,10 +908,13 @@ const M = {
|
|
|
880
908
|
e: function(t, e, n, r) {
|
|
881
909
|
const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
882
910
|
switch (e) {
|
|
911
|
+
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
883
912
|
case "e":
|
|
884
913
|
return String(o);
|
|
914
|
+
// Padded numerical value
|
|
885
915
|
case "ee":
|
|
886
916
|
return c(o, 2);
|
|
917
|
+
// 1st, 2nd, ..., 7th
|
|
887
918
|
case "eo":
|
|
888
919
|
return n.ordinalNumber(o, { unit: "day" });
|
|
889
920
|
case "eee":
|
|
@@ -891,16 +922,19 @@ const M = {
|
|
|
891
922
|
width: "abbreviated",
|
|
892
923
|
context: "formatting"
|
|
893
924
|
});
|
|
925
|
+
// T
|
|
894
926
|
case "eeeee":
|
|
895
927
|
return n.day(a, {
|
|
896
928
|
width: "narrow",
|
|
897
929
|
context: "formatting"
|
|
898
930
|
});
|
|
931
|
+
// Tu
|
|
899
932
|
case "eeeeee":
|
|
900
933
|
return n.day(a, {
|
|
901
934
|
width: "short",
|
|
902
935
|
context: "formatting"
|
|
903
936
|
});
|
|
937
|
+
// Tuesday
|
|
904
938
|
case "eeee":
|
|
905
939
|
default:
|
|
906
940
|
return n.day(a, {
|
|
@@ -913,10 +947,13 @@ const M = {
|
|
|
913
947
|
c: function(t, e, n, r) {
|
|
914
948
|
const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
915
949
|
switch (e) {
|
|
950
|
+
// Numerical value (same as in `e`)
|
|
916
951
|
case "c":
|
|
917
952
|
return String(o);
|
|
953
|
+
// Padded numerical value
|
|
918
954
|
case "cc":
|
|
919
955
|
return c(o, e.length);
|
|
956
|
+
// 1st, 2nd, ..., 7th
|
|
920
957
|
case "co":
|
|
921
958
|
return n.ordinalNumber(o, { unit: "day" });
|
|
922
959
|
case "ccc":
|
|
@@ -924,16 +961,19 @@ const M = {
|
|
|
924
961
|
width: "abbreviated",
|
|
925
962
|
context: "standalone"
|
|
926
963
|
});
|
|
964
|
+
// T
|
|
927
965
|
case "ccccc":
|
|
928
966
|
return n.day(a, {
|
|
929
967
|
width: "narrow",
|
|
930
968
|
context: "standalone"
|
|
931
969
|
});
|
|
970
|
+
// Tu
|
|
932
971
|
case "cccccc":
|
|
933
972
|
return n.day(a, {
|
|
934
973
|
width: "short",
|
|
935
974
|
context: "standalone"
|
|
936
975
|
});
|
|
976
|
+
// Tuesday
|
|
937
977
|
case "cccc":
|
|
938
978
|
default:
|
|
939
979
|
return n.day(a, {
|
|
@@ -946,27 +986,34 @@ const M = {
|
|
|
946
986
|
i: function(t, e, n) {
|
|
947
987
|
const r = t.getDay(), a = r === 0 ? 7 : r;
|
|
948
988
|
switch (e) {
|
|
989
|
+
// 2
|
|
949
990
|
case "i":
|
|
950
991
|
return String(a);
|
|
992
|
+
// 02
|
|
951
993
|
case "ii":
|
|
952
994
|
return c(a, e.length);
|
|
995
|
+
// 2nd
|
|
953
996
|
case "io":
|
|
954
997
|
return n.ordinalNumber(a, { unit: "day" });
|
|
998
|
+
// Tue
|
|
955
999
|
case "iii":
|
|
956
1000
|
return n.day(r, {
|
|
957
1001
|
width: "abbreviated",
|
|
958
1002
|
context: "formatting"
|
|
959
1003
|
});
|
|
1004
|
+
// T
|
|
960
1005
|
case "iiiii":
|
|
961
1006
|
return n.day(r, {
|
|
962
1007
|
width: "narrow",
|
|
963
1008
|
context: "formatting"
|
|
964
1009
|
});
|
|
1010
|
+
// Tu
|
|
965
1011
|
case "iiiiii":
|
|
966
1012
|
return n.day(r, {
|
|
967
1013
|
width: "short",
|
|
968
1014
|
context: "formatting"
|
|
969
1015
|
});
|
|
1016
|
+
// Tuesday
|
|
970
1017
|
case "iiii":
|
|
971
1018
|
default:
|
|
972
1019
|
return n.day(r, {
|
|
@@ -1097,13 +1144,21 @@ const M = {
|
|
|
1097
1144
|
if (r === 0)
|
|
1098
1145
|
return "Z";
|
|
1099
1146
|
switch (e) {
|
|
1147
|
+
// Hours and optional minutes
|
|
1100
1148
|
case "X":
|
|
1101
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`
|
|
1102
1153
|
case "XXXX":
|
|
1103
1154
|
case "XX":
|
|
1104
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`
|
|
1105
1159
|
case "XXXXX":
|
|
1106
1160
|
case "XXX":
|
|
1161
|
+
// Hours and minutes with `:` delimiter
|
|
1107
1162
|
default:
|
|
1108
1163
|
return p(r, ":");
|
|
1109
1164
|
}
|
|
@@ -1112,13 +1167,21 @@ const M = {
|
|
|
1112
1167
|
x: function(t, e, n) {
|
|
1113
1168
|
const r = t.getTimezoneOffset();
|
|
1114
1169
|
switch (e) {
|
|
1170
|
+
// Hours and optional minutes
|
|
1115
1171
|
case "x":
|
|
1116
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`
|
|
1117
1176
|
case "xxxx":
|
|
1118
1177
|
case "xx":
|
|
1119
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`
|
|
1120
1182
|
case "xxxxx":
|
|
1121
1183
|
case "xxx":
|
|
1184
|
+
// Hours and minutes with `:` delimiter
|
|
1122
1185
|
default:
|
|
1123
1186
|
return p(r, ":");
|
|
1124
1187
|
}
|
|
@@ -1127,10 +1190,12 @@ const M = {
|
|
|
1127
1190
|
O: function(t, e, n) {
|
|
1128
1191
|
const r = t.getTimezoneOffset();
|
|
1129
1192
|
switch (e) {
|
|
1193
|
+
// Short
|
|
1130
1194
|
case "O":
|
|
1131
1195
|
case "OO":
|
|
1132
1196
|
case "OOO":
|
|
1133
1197
|
return "GMT" + j(r, ":");
|
|
1198
|
+
// Long
|
|
1134
1199
|
case "OOOO":
|
|
1135
1200
|
default:
|
|
1136
1201
|
return "GMT" + p(r, ":");
|
|
@@ -1140,10 +1205,12 @@ const M = {
|
|
|
1140
1205
|
z: function(t, e, n) {
|
|
1141
1206
|
const r = t.getTimezoneOffset();
|
|
1142
1207
|
switch (e) {
|
|
1208
|
+
// Short
|
|
1143
1209
|
case "z":
|
|
1144
1210
|
case "zz":
|
|
1145
1211
|
case "zzz":
|
|
1146
1212
|
return "GMT" + j(r, ":");
|
|
1213
|
+
// Long
|
|
1147
1214
|
case "zzzz":
|
|
1148
1215
|
default:
|
|
1149
1216
|
return "GMT" + p(r, ":");
|
|
@@ -1234,32 +1301,32 @@ function ue(t, e, n) {
|
|
|
1234
1301
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1235
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`;
|
|
1236
1303
|
}
|
|
1237
|
-
const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fe = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, le = /^'([^]*?)'?$/,
|
|
1304
|
+
const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fe = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, le = /^'([^]*?)'?$/, he = /''/g, me = /[a-zA-Z]/;
|
|
1238
1305
|
function ge(t, e, n) {
|
|
1239
|
-
var l, w,
|
|
1240
|
-
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 = (
|
|
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);
|
|
1241
1308
|
if (!ut(i))
|
|
1242
1309
|
throw new RangeError("Invalid time value");
|
|
1243
|
-
let u = e.match(fe).map((
|
|
1244
|
-
const g =
|
|
1310
|
+
let u = e.match(fe).map((m) => {
|
|
1311
|
+
const g = m[0];
|
|
1245
1312
|
if (g === "p" || g === "P") {
|
|
1246
1313
|
const E = ne[g];
|
|
1247
|
-
return E(
|
|
1314
|
+
return E(m, a.formatLong);
|
|
1248
1315
|
}
|
|
1249
|
-
return
|
|
1250
|
-
}).join("").match(de).map((
|
|
1251
|
-
if (
|
|
1316
|
+
return m;
|
|
1317
|
+
}).join("").match(de).map((m) => {
|
|
1318
|
+
if (m === "''")
|
|
1252
1319
|
return { isToken: !1, value: "'" };
|
|
1253
|
-
const g =
|
|
1320
|
+
const g = m[0];
|
|
1254
1321
|
if (g === "'")
|
|
1255
|
-
return { isToken: !1, value: we(
|
|
1322
|
+
return { isToken: !1, value: we(m) };
|
|
1256
1323
|
if (L[g])
|
|
1257
|
-
return { isToken: !0, value:
|
|
1258
|
-
if (g.match(
|
|
1324
|
+
return { isToken: !0, value: m };
|
|
1325
|
+
if (g.match(me))
|
|
1259
1326
|
throw new RangeError(
|
|
1260
1327
|
"Format string contains an unescaped latin alphabet character `" + g + "`"
|
|
1261
1328
|
);
|
|
1262
|
-
return { isToken: !1, value:
|
|
1329
|
+
return { isToken: !1, value: m };
|
|
1263
1330
|
});
|
|
1264
1331
|
a.localize.preprocessor && (u = a.localize.preprocessor(i, u));
|
|
1265
1332
|
const f = {
|
|
@@ -1267,9 +1334,9 @@ function ge(t, e, n) {
|
|
|
1267
1334
|
weekStartsOn: s,
|
|
1268
1335
|
locale: a
|
|
1269
1336
|
};
|
|
1270
|
-
return u.map((
|
|
1271
|
-
if (!
|
|
1272
|
-
const g =
|
|
1337
|
+
return u.map((m) => {
|
|
1338
|
+
if (!m.isToken) return m.value;
|
|
1339
|
+
const g = m.value;
|
|
1273
1340
|
(se(g) || ie(g)) && ce(g, e, String(t));
|
|
1274
1341
|
const E = L[g[0]];
|
|
1275
1342
|
return E(i, g, a.localize, f);
|
|
@@ -1277,7 +1344,7 @@ function ge(t, e, n) {
|
|
|
1277
1344
|
}
|
|
1278
1345
|
function we(t) {
|
|
1279
1346
|
const e = t.match(le);
|
|
1280
|
-
return e ? e[1].replace(
|
|
1347
|
+
return e ? e[1].replace(he, "'") : t;
|
|
1281
1348
|
}
|
|
1282
1349
|
function ye(t, e, n) {
|
|
1283
1350
|
const r = T(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? G, o = 2520, s = Y(t, e);
|
|
@@ -1289,32 +1356,32 @@ function ye(t, e, n) {
|
|
|
1289
1356
|
});
|
|
1290
1357
|
let u, f;
|
|
1291
1358
|
s > 0 ? (u = d(e), f = d(t)) : (u = d(t), f = d(e));
|
|
1292
|
-
const l = yt(f, u), w = (N(f) - N(u)) / 1e3,
|
|
1359
|
+
const l = yt(f, u), w = (N(f) - N(u)) / 1e3, h = Math.round((l - w) / 60);
|
|
1293
1360
|
let y;
|
|
1294
|
-
if (
|
|
1295
|
-
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) :
|
|
1296
|
-
if (
|
|
1297
|
-
return a.formatDistance("xMinutes",
|
|
1298
|
-
if (
|
|
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)
|
|
1299
1366
|
return a.formatDistance("aboutXHours", 1, i);
|
|
1300
|
-
if (
|
|
1301
|
-
const
|
|
1302
|
-
return a.formatDistance("aboutXHours",
|
|
1367
|
+
if (h < H) {
|
|
1368
|
+
const m = Math.round(h / 60);
|
|
1369
|
+
return a.formatDistance("aboutXHours", m, i);
|
|
1303
1370
|
} else {
|
|
1304
|
-
if (
|
|
1371
|
+
if (h < o)
|
|
1305
1372
|
return a.formatDistance("xDays", 1, i);
|
|
1306
|
-
if (
|
|
1307
|
-
const
|
|
1308
|
-
return a.formatDistance("xDays",
|
|
1309
|
-
} else if (
|
|
1310
|
-
return y = Math.round(
|
|
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);
|
|
1311
1378
|
}
|
|
1312
1379
|
if (y = wt(f, u), y < 12) {
|
|
1313
|
-
const
|
|
1314
|
-
return a.formatDistance("xMonths",
|
|
1380
|
+
const m = Math.round(h / W);
|
|
1381
|
+
return a.formatDistance("xMonths", m, i);
|
|
1315
1382
|
} else {
|
|
1316
|
-
const
|
|
1317
|
-
return
|
|
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);
|
|
1318
1385
|
}
|
|
1319
1386
|
}
|
|
1320
1387
|
function be(t, e) {
|
|
@@ -1334,7 +1401,7 @@ const Me = (t, e) => {
|
|
|
1334
1401
|
default:
|
|
1335
1402
|
return e.colors.status.info.onsurface;
|
|
1336
1403
|
}
|
|
1337
|
-
},
|
|
1404
|
+
}, tn = ({
|
|
1338
1405
|
message: t,
|
|
1339
1406
|
state: e = P.info,
|
|
1340
1407
|
date: n,
|
|
@@ -1346,7 +1413,7 @@ const Me = (t, e) => {
|
|
|
1346
1413
|
}) => {
|
|
1347
1414
|
const u = J();
|
|
1348
1415
|
Me(e, u), u.colors.interactive.utility.border, u.colors.interactive.utility.onsurface;
|
|
1349
|
-
const f = " • ", l = n ? ge(new Date(n), "MMM d, h:mma") : "", w = n ? be(new Date(n), { addSuffix: !0 }) : "",
|
|
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;
|
|
1350
1417
|
return /* @__PURE__ */ X(Z, { state: e, size: o, $isUnread: s, children: [
|
|
1351
1418
|
s ? /* @__PURE__ */ b(z, { state: e, size: o }) : /* @__PURE__ */ b("div", { style: { width: 8 } }),
|
|
1352
1419
|
/* @__PURE__ */ b(K, { state: e }),
|
|
@@ -1366,7 +1433,7 @@ const Me = (t, e) => {
|
|
|
1366
1433
|
variant: y,
|
|
1367
1434
|
color: u.colors.onsurface["copy-light"],
|
|
1368
1435
|
isText: !0,
|
|
1369
|
-
children:
|
|
1436
|
+
children: h
|
|
1370
1437
|
}
|
|
1371
1438
|
) })
|
|
1372
1439
|
] }) }),
|
|
@@ -1391,5 +1458,5 @@ const Me = (t, e) => {
|
|
|
1391
1458
|
] });
|
|
1392
1459
|
};
|
|
1393
1460
|
export {
|
|
1394
|
-
|
|
1461
|
+
tn as default
|
|
1395
1462
|
};
|
|
@@ -8,8 +8,8 @@ import f from "./icons/Route.js";
|
|
|
8
8
|
import u from "./icons/Shipment.js";
|
|
9
9
|
import g from "./icons/ShoppingCart.js";
|
|
10
10
|
import h from "./icons/System.js";
|
|
11
|
-
import {
|
|
12
|
-
import { n as B } from "../../../styled-components.browser.esm-
|
|
11
|
+
import { STATE as l, BADGE as r } from "../../../constants/index.js";
|
|
12
|
+
import { n as B } from "../../../styled-components.browser.esm-C47QHsU4.js";
|
|
13
13
|
import { BadgeWrapper as S, Badge as C, BadgeState as v } from "./styles.js";
|
|
14
14
|
import { getIconColor as y, getBadgeStateIcon as x } from "../../../utils/icon-util.js";
|
|
15
15
|
const A = (e) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import n from "../NotificationBadge.js";
|
|
3
|
-
import {
|
|
4
|
-
import { a as i } from "../../../../setup-
|
|
3
|
+
import { STATE as a, BADGE as d } from "../../../../constants/index.js";
|
|
4
|
+
import { a as i } from "../../../../setup-aZdxWCJq.js";
|
|
5
5
|
describe("<NotificationBadge />", () => {
|
|
6
6
|
let e;
|
|
7
7
|
beforeEach(() => {
|
|
8
8
|
e = {
|
|
9
|
-
badge:
|
|
10
|
-
state:
|
|
9
|
+
badge: d.product,
|
|
10
|
+
state: a.info
|
|
11
11
|
};
|
|
12
12
|
});
|
|
13
13
|
const o = () => i(/* @__PURE__ */ r(n, { ...e }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { s,
|
|
2
|
+
import { a as s, s as i } from "../../../setup-aZdxWCJq.js";
|
|
3
3
|
import n from "../Notification.js";
|
|
4
4
|
describe("<Notification />", () => {
|
|
5
5
|
let e;
|
|
@@ -8,8 +8,8 @@ describe("<Notification />", () => {
|
|
|
8
8
|
message: "Test notification message"
|
|
9
9
|
};
|
|
10
10
|
});
|
|
11
|
-
const o = () =>
|
|
11
|
+
const o = () => s(/* @__PURE__ */ t(n, { ...e }));
|
|
12
12
|
it("should render the notification message", () => {
|
|
13
|
-
o(), expect(
|
|
13
|
+
o(), expect(i.getByText(e.message)).toBeInTheDocument();
|
|
14
14
|
});
|
|
15
15
|
});
|
|
@@ -6,5 +6,5 @@ export interface PopoverProps {
|
|
|
6
6
|
onOpenChange?: (visible: boolean) => void;
|
|
7
7
|
align?: "left" | "right" | "top" | "bottom";
|
|
8
8
|
}
|
|
9
|
-
declare const Popover: ({ children, placement, title, align, onOpenChange, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const Popover: ({ children, placement, title, align, onOpenChange, ...rest }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default Popover;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { P as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { P as m } from "../../styles-DNay6iFa.js";
|
|
3
|
+
const i = ({
|
|
4
4
|
children: o,
|
|
5
|
-
placement:
|
|
6
|
-
title:
|
|
5
|
+
placement: t = "top",
|
|
6
|
+
title: r,
|
|
7
7
|
align: p = "top",
|
|
8
|
-
onOpenChange: e
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
onOpenChange: e,
|
|
9
|
+
...a
|
|
10
|
+
}) => /* @__PURE__ */ s(
|
|
11
|
+
m,
|
|
11
12
|
{
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
...a,
|
|
14
|
+
"data-testid": "popover",
|
|
15
|
+
placement: t,
|
|
16
|
+
title: r,
|
|
14
17
|
onOpenChange: e,
|
|
15
18
|
align: p,
|
|
16
19
|
children: o
|
|
17
20
|
}
|
|
18
21
|
);
|
|
19
22
|
export {
|
|
20
|
-
|
|
23
|
+
i as default
|
|
21
24
|
};
|