@gobolt/genesis 0.0.9 → 0.0.11
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 +2 -2
- package/dist/AntdIcon-nCNB0J1E.js +192 -0
- package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
- package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
- package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
- package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
- package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-sPZXYuXt.js +17 -0
- package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
- package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
- package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-B3vg9CbL.js +560 -0
- package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
- package/dist/Typography-DqI7RslA.js +705 -0
- package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
- package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.js +61 -0
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
- package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/Avatar/styles.d.ts +18 -0
- package/dist/components/Avatar/styles.js +326 -0
- package/dist/components/Badge/Badge.d.ts +5 -3
- package/dist/components/Badge/Badge.js +67 -100
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
- package/dist/components/Badge/__tests__/Badge.test.js +9 -10
- package/dist/components/Badge/styles.d.ts +12 -3
- package/dist/components/Badge/styles.js +30 -27
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +239 -2260
- package/dist/components/Button/Button.d.ts +4 -3
- package/dist/components/Button/Button.js +10 -6
- package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.d.ts +2 -2
- package/dist/components/Button/styles.js +20 -17
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
- package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
- package/dist/components/Card/__tests__/Card.test.js +16 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Card/styles.d.ts +16 -0
- package/dist/components/Card/styles.js +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.js +28 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +22 -457
- package/dist/components/Dashboard/Dashboard.d.ts +5 -0
- package/dist/components/Dashboard/Dashboard.js +5 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/Dashboard/index.js +4 -0
- package/dist/components/Dashboard/styles.d.ts +14 -0
- package/dist/components/Dashboard/styles.js +11 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
- package/dist/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.js +4 -0
- package/dist/components/ErrorBoundary/styles.d.ts +14 -0
- package/dist/components/ErrorBoundary/styles.js +11 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
- package/dist/components/Form/Form.js +3 -3
- package/dist/components/Form/__stories__/FormStory.js +127 -50
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/Glyph.d.ts +4 -0
- package/dist/components/Glyph/Glyph.js +9 -0
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
- package/dist/components/Glyph/index.d.ts +2 -0
- package/dist/components/Glyph/index.js +4 -0
- package/dist/components/Glyph/styles.d.ts +14 -0
- package/dist/components/Glyph/styles.js +11 -0
- package/dist/components/Input/Input.d.ts +1 -2
- package/dist/components/Input/Input.js +14 -10
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +58 -466
- package/dist/components/Layout/Content/Content.d.ts +11 -0
- package/dist/components/Layout/Content/Content.js +32 -0
- package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
- package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
- package/dist/components/Layout/Content/index.d.ts +2 -0
- package/dist/components/Layout/Content/index.js +4 -0
- package/dist/components/Layout/Content/styles.d.ts +11 -0
- package/dist/components/Layout/Content/styles.js +16 -0
- package/dist/components/Layout/Layout.d.ts +8 -0
- package/dist/components/Layout/Layout.js +6 -0
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
- package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
- package/dist/components/Layout/MainLayout/index.d.ts +2 -0
- package/dist/components/Layout/MainLayout/index.js +4 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
- package/dist/components/Layout/MainLayout/styles.js +69 -0
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
- package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
- package/dist/components/Layout/__tests__/Layout.test.js +14 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Layout/index.js +4 -0
- package/dist/components/Message/Message.d.ts +6 -4
- package/dist/components/Message/Message.js +70 -43
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Message/styles.d.ts +1 -0
- package/dist/components/Message/styles.js +15 -11
- package/dist/components/Notification/Notification.js +145 -120
- package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
- package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
- package/dist/components/Notification/NotificationBadge/index.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
- package/dist/components/Notification/NotificationBadge/styles.js +34 -0
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Notification/styles.d.ts +1 -1
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.js +21 -0
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
- package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
- package/dist/components/Popover/__tests__/Popover.test.js +40 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +4 -0
- package/dist/components/Popover/styles.d.ts +15 -0
- package/dist/components/Popover/styles.js +6 -0
- package/dist/components/Progress/Progress.d.ts +18 -0
- package/dist/components/Progress/Progress.js +91 -0
- package/dist/components/Progress/Progress.util.d.ts +4 -0
- package/dist/components/Progress/Progress.util.js +62 -0
- package/dist/components/Progress/ProgressText.d.ts +11 -0
- package/dist/components/Progress/ProgressText.js +67 -0
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
- package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
- package/dist/components/Progress/__tests__/Progress.test.js +21 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Progress/styles.d.ts +17 -0
- package/dist/components/Progress/styles.js +793 -0
- package/dist/components/Radio/Radio.js +22 -6
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Row/Row.d.ts +14 -0
- package/dist/components/Row/Row.js +38 -0
- package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
- package/dist/components/Row/RowActions/RowActions.js +59 -0
- package/dist/components/Row/RowActions/styles.d.ts +2 -0
- package/dist/components/Row/RowActions/styles.js +32 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
- package/dist/components/Row/RowLabelValue/styles.js +25 -0
- package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
- package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
- package/dist/components/Row/__tests__/Row.test.js +16 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/Row/index.js +4 -0
- package/dist/components/Row/styles.d.ts +15 -0
- package/dist/components/Row/styles.js +15 -0
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
- package/dist/components/SegmentedControls/index.d.ts +2 -0
- package/dist/components/SegmentedControls/index.js +4 -0
- package/dist/components/SegmentedControls/styles.d.ts +12 -0
- package/dist/components/SegmentedControls/styles.js +511 -0
- package/dist/components/Select/Select.d.ts +2 -4
- package/dist/components/Select/Select.js +12 -11
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +39 -3654
- package/dist/components/Shapes/Shapes.d.ts +6 -0
- package/dist/components/Shapes/Shapes.js +8 -0
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
- package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
- package/dist/components/Shapes/index.d.ts +2 -0
- package/dist/components/Shapes/index.js +4 -0
- package/dist/components/Shapes/variants/Circle.d.ts +5 -0
- package/dist/components/Shapes/variants/Circle.js +23 -0
- package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Rectangle.js +23 -0
- package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Triangle.js +23 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
- package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/components/Switch/__tests__/Switch.test.js +25 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/styles.d.ts +9 -0
- package/dist/components/Switch/styles.js +456 -0
- package/dist/components/Table/Table.d.ts +15 -0
- package/dist/components/Table/Table.js +23 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
- package/dist/components/Table/__mocks__/table-mocks.js +321 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
- package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
- package/dist/components/Table/__tests__/Table.test.js +34 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -0
- package/dist/components/Table/styles.d.ts +8 -0
- package/dist/components/Table/styles.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +23 -0
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/styles.d.ts +12 -0
- package/dist/components/Tabs/styles.js +102 -0
- package/dist/components/Tile/Tile.d.ts +10 -0
- package/dist/components/Tile/Tile.js +21 -0
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
- package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
- package/dist/components/Tile/__tests__/Tile.test.js +21 -0
- package/dist/components/Tile/index.d.ts +2 -0
- package/dist/components/Tile/index.js +4 -0
- package/dist/components/Tile/styles.d.ts +11 -0
- package/dist/components/Tile/styles.js +12 -0
- package/dist/components/Toast/Toast.js +23 -6
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.d.ts +0 -1
- package/dist/components/Toast/styles.js +14 -23
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.js +50 -0
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/Tooltip/styles.d.ts +20 -0
- package/dist/components/Tooltip/styles.js +11 -0
- package/dist/components/Typography/Typography.d.ts +5 -1
- package/dist/components/Typography/Typography.js +2 -2
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +1 -0
- package/dist/components/Typography/styles.js +53 -17
- package/dist/components/index.d.ts +31 -1
- package/dist/components/index.js +54 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
- package/dist/dropdown-zGGFIyJ_.js +2044 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +38 -22
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-BTGF--50.js +1845 -0
- package/dist/index-BW_7pvTr.js +538 -0
- package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
- package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
- package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
- package/dist/index-CdiHBmVe.js +445 -0
- package/dist/index-CodMmNWv.js +102 -0
- package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
- package/dist/index-D0P16DlX.js +286 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DWUXwgXK.js +809 -0
- package/dist/index-DmZOkMjs.js +3628 -0
- package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
- package/dist/index-hoPiccJv.js +415 -0
- package/dist/index.js +61 -31
- package/dist/interface/address.d.ts +10 -0
- package/dist/interface/address.js +1 -0
- package/dist/interface/appointment.d.ts +57 -0
- package/dist/interface/appointment.js +5 -0
- package/dist/interface/appointmentV2.d.ts +65 -0
- package/dist/interface/appointmentV2.js +1 -0
- package/dist/interface/appointmentsState.d.ts +21 -0
- package/dist/interface/appointmentsState.js +1 -0
- package/dist/interface/common.d.ts +2 -0
- package/dist/interface/common.js +1 -0
- package/dist/interface/completionData.d.ts +18 -0
- package/dist/interface/completionData.js +1 -0
- package/dist/interface/deliveryPartner.d.ts +25 -0
- package/dist/interface/deliveryPartner.js +1 -0
- package/dist/interface/organization.d.ts +9 -0
- package/dist/interface/organization.js +1 -0
- package/dist/interface/pagination.d.ts +8 -0
- package/dist/interface/pagination.js +1 -0
- package/dist/interface/roles.d.ts +9 -0
- package/dist/interface/roles.js +1 -0
- package/dist/interface/route.d.ts +73 -0
- package/dist/interface/route.js +1 -0
- package/dist/interface/routeAnalysis.d.ts +108 -0
- package/dist/interface/routeAnalysis.js +1 -0
- package/dist/interface/routeAutomationJob.d.ts +95 -0
- package/dist/interface/routeAutomationJob.js +10 -0
- package/dist/interface/routeAutomationLog.d.ts +10 -0
- package/dist/interface/routeAutomationLog.js +1 -0
- package/dist/interface/routeEvent.d.ts +55 -0
- package/dist/interface/routeEvent.js +5 -0
- package/dist/interface/serviceArea.d.ts +18 -0
- package/dist/interface/serviceArea.js +1 -0
- package/dist/interface/util.d.ts +3 -0
- package/dist/interface/util.js +1 -0
- package/dist/interface/vehicle.d.ts +120 -0
- package/dist/interface/vehicle.js +1 -0
- package/dist/interface/workOrder.d.ts +22 -0
- package/dist/interface/workOrder.js +1 -0
- package/dist/isVisible-D3-B85BJ.js +22 -0
- package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
- package/dist/omit-B_u6A-HL.js +9 -0
- package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
- package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
- package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
- package/dist/providers/BreakpointThemeProvider.js +21 -0
- package/dist/providers/GenesisProvider.js +3 -3
- package/dist/providers/ToastProvider.js +22 -6
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/responsiveObserver-O1kw80RG.js +73 -0
- package/dist/setup-CKu7-AfI.js +24706 -0
- package/dist/setup.types-dBtAXXGp.js +8824 -0
- package/dist/shadow-BoMGMNn3.js +13 -0
- package/dist/styleChecker-Cotu61d0.js +21 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +468 -263
- package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
- package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
- package/dist/styles-BSD221S5.js +289 -0
- package/dist/styles-D9iYILpv.js +9195 -0
- package/dist/test/setup.d.ts +2 -3
- package/dist/test/setup.js +87 -4
- package/dist/test/setup.types.d.ts +7 -0
- package/dist/test/setup.types.js +1 -0
- package/dist/toArray-DGvPoJP_.js +11 -0
- package/dist/useBreakpoint-CAMzKscx.js +22 -0
- package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-DWRfeMSS.js +16 -0
- package/dist/useMergedState-BoELfaU9.js +23 -0
- package/dist/useSize-CPo2bUE3.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
- package/dist/useZIndex-D81lkWy4.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +95 -0
- package/package.json +33 -14
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- package/dist/isVisible-A-IfeFoT.js +0 -367
- package/dist/providers/ThemeProvider.d.ts +0 -9
- package/dist/providers/ThemeProvider.js +0 -21
- package/dist/setup-BvfREoHl.js +0 -33891
- package/dist/useLocale-DT-z_vQ6.js +0 -16
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as X from "react";
|
|
2
2
|
import s, { forwardRef as oe, useState as xe, useRef as j, useEffect as k, useMemo as ee, useContext as he, Children as vr } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { C as Qe,
|
|
6
|
-
import { W as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { e as N, g as Ue, _ as I, F as Je, f as yr, a as Y, b as $e, d as pe } from "./presets-Djh_L_6R.js";
|
|
4
|
+
import { o as Sr } from "./omit-B_u6A-HL.js";
|
|
5
|
+
import { C as Qe, c as xr, e as Ze, h as $r, o as Er, v as Br, w as Hr, d as Ke, _ as ke, a as er, m as ne, K as be, g as Or, j as te, M as Rr, k as Nr, N as Pr, D as jr, z as wr } from "./index-ByspLxrB.js";
|
|
6
|
+
import { W as Ir } from "./index-Dyl-ddV6.js";
|
|
7
|
+
import { u as Dr } from "./useSize-CPo2bUE3.js";
|
|
8
|
+
import { u as Lr } from "./Compact-DBh6nSYB.js";
|
|
9
|
+
import "./index-DLdU7Tpd.js";
|
|
10
|
+
import { c as Tr, i as zr } from "./reactNode-sKPeiqPL.js";
|
|
9
11
|
import { P as rr } from "./presetColors-Cl8UP3Nw.js";
|
|
10
|
-
import { R as
|
|
12
|
+
import { R as Ar } from "./LoadingOutlined-C1qu6ymP.js";
|
|
13
|
+
import { u as _r } from "./useMergedState-BoELfaU9.js";
|
|
11
14
|
import { g as Mr } from "./compact-item-DH13cl8A.js";
|
|
12
15
|
var Gr = function(e, r) {
|
|
13
16
|
var t = {};
|
|
@@ -16,15 +19,15 @@ var Gr = function(e, r) {
|
|
|
16
19
|
r.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (t[o[n]] = e[o[n]]);
|
|
17
20
|
return t;
|
|
18
21
|
};
|
|
19
|
-
const tr = /* @__PURE__ */
|
|
22
|
+
const tr = /* @__PURE__ */ X.createContext(void 0), Fr = (e) => {
|
|
20
23
|
const {
|
|
21
24
|
getPrefixCls: r,
|
|
22
25
|
direction: t
|
|
23
|
-
} =
|
|
26
|
+
} = X.useContext(Qe), {
|
|
24
27
|
prefixCls: o,
|
|
25
28
|
size: n,
|
|
26
29
|
className: a
|
|
27
|
-
} = e, l = Gr(e, ["prefixCls", "size", "className"]), i = r("btn-group", o), [, , c] =
|
|
30
|
+
} = e, l = Gr(e, ["prefixCls", "size", "className"]), i = r("btn-group", o), [, , c] = xr(), u = X.useMemo(() => {
|
|
28
31
|
switch (n) {
|
|
29
32
|
case "large":
|
|
30
33
|
return "lg";
|
|
@@ -42,13 +45,20 @@ const tr = /* @__PURE__ */ q.createContext(void 0), Fr = (e) => {
|
|
|
42
45
|
[`${i}-${u}`]: u,
|
|
43
46
|
[`${i}-rtl`]: t === "rtl"
|
|
44
47
|
}, a, c);
|
|
45
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ X.createElement(tr.Provider, {
|
|
46
49
|
value: n
|
|
47
|
-
}, /* @__PURE__ */
|
|
50
|
+
}, /* @__PURE__ */ X.createElement("div", Object.assign({}, l, {
|
|
48
51
|
className: d
|
|
49
52
|
})));
|
|
50
53
|
}, We = /^[\u4E00-\u9FA5]{2}$/, Ee = We.test.bind(We);
|
|
51
|
-
function
|
|
54
|
+
function Qt(e) {
|
|
55
|
+
return e === "danger" ? {
|
|
56
|
+
danger: !0
|
|
57
|
+
} : {
|
|
58
|
+
type: e
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function Xe(e) {
|
|
52
62
|
return typeof e == "string";
|
|
53
63
|
}
|
|
54
64
|
function re(e) {
|
|
@@ -58,9 +68,9 @@ function Vr(e, r) {
|
|
|
58
68
|
if (e == null)
|
|
59
69
|
return;
|
|
60
70
|
const t = r ? " " : "";
|
|
61
|
-
return typeof e != "string" && typeof e != "number" &&
|
|
71
|
+
return typeof e != "string" && typeof e != "number" && Xe(e.type) && Ee(e.props.children) ? Tr(e, {
|
|
62
72
|
children: e.props.children.split("").join(t)
|
|
63
|
-
}) :
|
|
73
|
+
}) : Xe(e) ? Ee(e) ? /* @__PURE__ */ s.createElement("span", null, e.split("").join(t)) : /* @__PURE__ */ s.createElement("span", null, e) : zr(e) ? /* @__PURE__ */ s.createElement("span", null, e) : e;
|
|
64
74
|
}
|
|
65
75
|
function Wr(e, r) {
|
|
66
76
|
let t = !1;
|
|
@@ -75,7 +85,7 @@ function Wr(e, r) {
|
|
|
75
85
|
t = l;
|
|
76
86
|
}), s.Children.map(o, (n) => Vr(n, r));
|
|
77
87
|
}
|
|
78
|
-
["default", "primary", "danger"].concat(
|
|
88
|
+
["default", "primary", "danger"].concat($r(rr));
|
|
79
89
|
const Be = /* @__PURE__ */ oe((e, r) => {
|
|
80
90
|
const {
|
|
81
91
|
className: t,
|
|
@@ -88,7 +98,7 @@ const Be = /* @__PURE__ */ oe((e, r) => {
|
|
|
88
98
|
className: l,
|
|
89
99
|
style: o
|
|
90
100
|
}, n);
|
|
91
|
-
}),
|
|
101
|
+
}), qe = /* @__PURE__ */ oe((e, r) => {
|
|
92
102
|
const {
|
|
93
103
|
prefixCls: t,
|
|
94
104
|
className: o,
|
|
@@ -100,7 +110,7 @@ const Be = /* @__PURE__ */ oe((e, r) => {
|
|
|
100
110
|
className: l,
|
|
101
111
|
style: n,
|
|
102
112
|
ref: r
|
|
103
|
-
}, /* @__PURE__ */ s.createElement(
|
|
113
|
+
}, /* @__PURE__ */ s.createElement(Ar, {
|
|
104
114
|
className: a
|
|
105
115
|
}));
|
|
106
116
|
}), ve = () => ({
|
|
@@ -111,7 +121,7 @@ const Be = /* @__PURE__ */ oe((e, r) => {
|
|
|
111
121
|
width: e.scrollWidth,
|
|
112
122
|
opacity: 1,
|
|
113
123
|
transform: "scale(1)"
|
|
114
|
-
}),
|
|
124
|
+
}), Xr = (e) => {
|
|
115
125
|
const {
|
|
116
126
|
prefixCls: r,
|
|
117
127
|
loading: t,
|
|
@@ -120,11 +130,11 @@ const Be = /* @__PURE__ */ oe((e, r) => {
|
|
|
120
130
|
style: a,
|
|
121
131
|
mount: l
|
|
122
132
|
} = e, i = !!t;
|
|
123
|
-
return o ? /* @__PURE__ */ s.createElement(
|
|
133
|
+
return o ? /* @__PURE__ */ s.createElement(qe, {
|
|
124
134
|
prefixCls: r,
|
|
125
135
|
className: n,
|
|
126
136
|
style: a
|
|
127
|
-
}) : /* @__PURE__ */ s.createElement(
|
|
137
|
+
}) : /* @__PURE__ */ s.createElement(Er, {
|
|
128
138
|
visible: i,
|
|
129
139
|
// Used for minus flex gap style only
|
|
130
140
|
motionName: `${r}-loading-icon-motion`,
|
|
@@ -143,11 +153,11 @@ const Be = /* @__PURE__ */ oe((e, r) => {
|
|
|
143
153
|
className: d,
|
|
144
154
|
style: g
|
|
145
155
|
} = c;
|
|
146
|
-
const
|
|
147
|
-
return /* @__PURE__ */ s.createElement(
|
|
156
|
+
const p = Object.assign(Object.assign({}, a), g);
|
|
157
|
+
return /* @__PURE__ */ s.createElement(qe, {
|
|
148
158
|
prefixCls: r,
|
|
149
159
|
className: N(n, d),
|
|
150
|
-
style:
|
|
160
|
+
style: p,
|
|
151
161
|
ref: u
|
|
152
162
|
});
|
|
153
163
|
});
|
|
@@ -169,7 +179,7 @@ const Be = /* @__PURE__ */ oe((e, r) => {
|
|
|
169
179
|
}
|
|
170
180
|
}
|
|
171
181
|
}
|
|
172
|
-
}),
|
|
182
|
+
}), qr = (e) => {
|
|
173
183
|
const {
|
|
174
184
|
componentCls: r,
|
|
175
185
|
fontSize: t,
|
|
@@ -225,14 +235,14 @@ var Yr = ["b"], Ur = ["v"], Se = function(r) {
|
|
|
225
235
|
return r;
|
|
226
236
|
if (r && yr(r) === "object" && "h" in r && "b" in r) {
|
|
227
237
|
var t = r, o = t.b, n = Ue(t, Yr);
|
|
228
|
-
return
|
|
238
|
+
return I(I({}, n), {}, {
|
|
229
239
|
v: o
|
|
230
240
|
});
|
|
231
241
|
}
|
|
232
242
|
return typeof r == "string" && /hsb/.test(r) ? r.replace(/hsb/, "hsv") : r;
|
|
233
243
|
}, D = /* @__PURE__ */ function(e) {
|
|
234
|
-
|
|
235
|
-
var r =
|
|
244
|
+
Br(t, e);
|
|
245
|
+
var r = Hr(t);
|
|
236
246
|
function t(o) {
|
|
237
247
|
return Ke(this, t), r.call(this, Jr(o));
|
|
238
248
|
}
|
|
@@ -246,28 +256,28 @@ var Yr = ["b"], Ur = ["v"], Se = function(r) {
|
|
|
246
256
|
key: "toHsb",
|
|
247
257
|
value: function() {
|
|
248
258
|
var n = this.toHsv(), a = n.v, l = Ue(n, Ur);
|
|
249
|
-
return
|
|
259
|
+
return I(I({}, l), {}, {
|
|
250
260
|
b: a,
|
|
251
261
|
a: this.a
|
|
252
262
|
});
|
|
253
263
|
}
|
|
254
264
|
}]), t;
|
|
255
|
-
}(Je), Qr = "rc-color-picker",
|
|
265
|
+
}(Je), Qr = "rc-color-picker", q = function(r) {
|
|
256
266
|
return r instanceof D ? r : new D(r);
|
|
257
|
-
}, Zr =
|
|
258
|
-
var t = r.offset, o = r.targetRef, n = r.containerRef, a = r.color, l = r.type, i = n.current.getBoundingClientRect(), c = i.width, u = i.height, d = o.current.getBoundingClientRect(), g = d.width,
|
|
267
|
+
}, Zr = q("#1677ff"), or = function(r) {
|
|
268
|
+
var t = r.offset, o = r.targetRef, n = r.containerRef, a = r.color, l = r.type, i = n.current.getBoundingClientRect(), c = i.width, u = i.height, d = o.current.getBoundingClientRect(), g = d.width, p = d.height, m = g / 2, C = p / 2, y = (t.x + m) / c, E = 1 - (t.y + C) / u, H = a.toHsb(), B = y, S = (t.x + m) / c * 360;
|
|
259
269
|
if (l)
|
|
260
270
|
switch (l) {
|
|
261
271
|
case "hue":
|
|
262
|
-
return
|
|
272
|
+
return q(I(I({}, H), {}, {
|
|
263
273
|
h: S <= 0 ? 0 : S
|
|
264
274
|
}));
|
|
265
275
|
case "alpha":
|
|
266
|
-
return
|
|
276
|
+
return q(I(I({}, H), {}, {
|
|
267
277
|
a: B <= 0 ? 0 : B
|
|
268
278
|
}));
|
|
269
279
|
}
|
|
270
|
-
return
|
|
280
|
+
return q({
|
|
271
281
|
h: H.h,
|
|
272
282
|
s: y <= 0 ? 0 : y,
|
|
273
283
|
b: E >= 1 ? 1 : E,
|
|
@@ -316,18 +326,18 @@ function ar(e) {
|
|
|
316
326
|
var r = e.targetRef, t = e.containerRef, o = e.direction, n = e.onDragChange, a = e.onDragChangeComplete, l = e.calculate, i = e.color, c = e.disabledDrag, u = xe({
|
|
317
327
|
x: 0,
|
|
318
328
|
y: 0
|
|
319
|
-
}), d = Y(u, 2), g = d[0],
|
|
329
|
+
}), d = Y(u, 2), g = d[0], p = d[1], m = j(null), C = j(null);
|
|
320
330
|
k(function() {
|
|
321
|
-
|
|
331
|
+
p(l());
|
|
322
332
|
}, [i]), k(function() {
|
|
323
333
|
return function() {
|
|
324
334
|
document.removeEventListener("mousemove", m.current), document.removeEventListener("mouseup", C.current), document.removeEventListener("touchmove", m.current), document.removeEventListener("touchend", C.current), m.current = null, C.current = null;
|
|
325
335
|
};
|
|
326
336
|
}, []);
|
|
327
337
|
var y = function(f) {
|
|
328
|
-
var h = kr(f), U = h.pageX, J = h.pageY, O = t.current.getBoundingClientRect(), G = O.x,
|
|
338
|
+
var h = kr(f), U = h.pageX, J = h.pageY, O = t.current.getBoundingClientRect(), G = O.x, L = O.y, Q = O.width, F = O.height, T = r.current.getBoundingClientRect(), z = T.width, R = T.height, V = z / 2, M = R / 2, P = Math.max(0, Math.min(U - G, Q)) - V, b = Math.max(0, Math.min(J - L, F)) - M, x = {
|
|
329
339
|
x: P,
|
|
330
|
-
y: o === "x" ? g.y :
|
|
340
|
+
y: o === "x" ? g.y : b
|
|
331
341
|
};
|
|
332
342
|
if (z === 0 && R === 0 || z !== R)
|
|
333
343
|
return !1;
|
|
@@ -353,7 +363,7 @@ var lr = function(r) {
|
|
|
353
363
|
var t = r.children, o = r.style, n = r.prefixCls;
|
|
354
364
|
return /* @__PURE__ */ s.createElement("div", {
|
|
355
365
|
className: "".concat(n, "-palette"),
|
|
356
|
-
style:
|
|
366
|
+
style: I({
|
|
357
367
|
position: "relative"
|
|
358
368
|
}, o)
|
|
359
369
|
}, t);
|
|
@@ -390,7 +400,7 @@ var lr = function(r) {
|
|
|
390
400
|
return a == null ? void 0 : a(u.current);
|
|
391
401
|
},
|
|
392
402
|
disabledDrag: l
|
|
393
|
-
}),
|
|
403
|
+
}), p = Y(g, 2), m = p[0], C = p[1];
|
|
394
404
|
return /* @__PURE__ */ s.createElement("div", {
|
|
395
405
|
ref: i,
|
|
396
406
|
className: "".concat(n, "-select"),
|
|
@@ -413,16 +423,16 @@ var lr = function(r) {
|
|
|
413
423
|
}
|
|
414
424
|
})));
|
|
415
425
|
}, rt = function(r, t) {
|
|
416
|
-
var o =
|
|
426
|
+
var o = _r(r, {
|
|
417
427
|
value: t
|
|
418
428
|
}), n = Y(o, 2), a = n[0], l = n[1], i = ee(function() {
|
|
419
|
-
return
|
|
429
|
+
return q(a);
|
|
420
430
|
}, [a]);
|
|
421
431
|
return [i, l];
|
|
422
432
|
}, tt = function(r) {
|
|
423
433
|
var t = r.colors, o = r.children, n = r.direction, a = n === void 0 ? "to right" : n, l = r.type, i = r.prefixCls, c = ee(function() {
|
|
424
434
|
return t.map(function(u, d) {
|
|
425
|
-
var g =
|
|
435
|
+
var g = q(u);
|
|
426
436
|
return l === "alpha" && d === t.length - 1 && (g = new D(g.setA(1))), g.toRgbString();
|
|
427
437
|
}).join(",");
|
|
428
438
|
}, [t, l]);
|
|
@@ -435,7 +445,7 @@ var lr = function(r) {
|
|
|
435
445
|
}
|
|
436
446
|
}, o);
|
|
437
447
|
}, ot = function(r) {
|
|
438
|
-
var t = r.prefixCls, o = r.colors, n = r.disabled, a = r.onChange, l = r.onChangeComplete, i = r.color, c = r.type, u = j(), d = j(), g = j(i),
|
|
448
|
+
var t = r.prefixCls, o = r.colors, n = r.disabled, a = r.onChange, l = r.onChangeComplete, i = r.color, c = r.type, u = j(), d = j(), g = j(i), p = function(h) {
|
|
439
449
|
return c === "hue" ? h.getHue() : h.a * 100;
|
|
440
450
|
}, m = er(function(f) {
|
|
441
451
|
var h = or({
|
|
@@ -445,7 +455,7 @@ var lr = function(r) {
|
|
|
445
455
|
color: i,
|
|
446
456
|
type: c
|
|
447
457
|
});
|
|
448
|
-
g.current = h, a(
|
|
458
|
+
g.current = h, a(p(h));
|
|
449
459
|
}), C = ar({
|
|
450
460
|
color: i,
|
|
451
461
|
targetRef: d,
|
|
@@ -455,7 +465,7 @@ var lr = function(r) {
|
|
|
455
465
|
},
|
|
456
466
|
onDragChange: m,
|
|
457
467
|
onDragChangeComplete: function() {
|
|
458
|
-
l(
|
|
468
|
+
l(p(g.current));
|
|
459
469
|
},
|
|
460
470
|
direction: "x",
|
|
461
471
|
disabledDrag: n
|
|
@@ -494,7 +504,7 @@ var lr = function(r) {
|
|
|
494
504
|
})));
|
|
495
505
|
};
|
|
496
506
|
function nt(e) {
|
|
497
|
-
return
|
|
507
|
+
return X.useMemo(function() {
|
|
498
508
|
var r = e || {}, t = r.slider;
|
|
499
509
|
return [t || ot];
|
|
500
510
|
}, [e]);
|
|
@@ -521,49 +531,49 @@ var at = [{
|
|
|
521
531
|
color: "rgb(255, 0, 0)",
|
|
522
532
|
percent: 100
|
|
523
533
|
}], lt = /* @__PURE__ */ oe(function(e, r) {
|
|
524
|
-
var t = e.value, o = e.defaultValue, n = e.prefixCls, a = n === void 0 ? Qr : n, l = e.onChange, i = e.onChangeComplete, c = e.className, u = e.style, d = e.panelRender, g = e.disabledAlpha,
|
|
534
|
+
var t = e.value, o = e.defaultValue, n = e.prefixCls, a = n === void 0 ? Qr : n, l = e.onChange, i = e.onChangeComplete, c = e.className, u = e.style, d = e.panelRender, g = e.disabledAlpha, p = g === void 0 ? !1 : g, m = e.disabled, C = m === void 0 ? !1 : m, y = e.components, E = nt(y), H = Y(E, 1), B = H[0], S = rt(o || Zr, t), f = Y(S, 2), h = f[0], U = f[1], J = ee(function() {
|
|
525
535
|
return h.setA(1).toRgbString();
|
|
526
|
-
}, [h]), O = function(
|
|
527
|
-
t || U(
|
|
528
|
-
}, G = function(
|
|
529
|
-
return new D(h.setHue(
|
|
530
|
-
},
|
|
531
|
-
return new D(h.setA(
|
|
532
|
-
}, Q = function(
|
|
533
|
-
O(G(
|
|
536
|
+
}, [h]), O = function(b, x) {
|
|
537
|
+
t || U(b), l == null || l(b, x);
|
|
538
|
+
}, G = function(b) {
|
|
539
|
+
return new D(h.setHue(b));
|
|
540
|
+
}, L = function(b) {
|
|
541
|
+
return new D(h.setA(b / 100));
|
|
542
|
+
}, Q = function(b) {
|
|
543
|
+
O(G(b), {
|
|
534
544
|
type: "hue",
|
|
535
|
-
value:
|
|
545
|
+
value: b
|
|
536
546
|
});
|
|
537
|
-
}, F = function(
|
|
538
|
-
O(
|
|
547
|
+
}, F = function(b) {
|
|
548
|
+
O(L(b), {
|
|
539
549
|
type: "alpha",
|
|
540
|
-
value:
|
|
550
|
+
value: b
|
|
541
551
|
});
|
|
542
|
-
},
|
|
543
|
-
i && i(G(
|
|
544
|
-
}, z = function(
|
|
545
|
-
i && i(
|
|
552
|
+
}, T = function(b) {
|
|
553
|
+
i && i(G(b));
|
|
554
|
+
}, z = function(b) {
|
|
555
|
+
i && i(L(b));
|
|
546
556
|
}, R = N("".concat(a, "-panel"), c, $e({}, "".concat(a, "-panel-disabled"), C)), V = {
|
|
547
557
|
prefixCls: a,
|
|
548
558
|
disabled: C,
|
|
549
559
|
color: h
|
|
550
|
-
}, M = /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(et,
|
|
560
|
+
}, M = /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(et, pe({
|
|
551
561
|
onChange: O
|
|
552
562
|
}, V, {
|
|
553
563
|
onChangeComplete: i
|
|
554
564
|
})), /* @__PURE__ */ s.createElement("div", {
|
|
555
565
|
className: "".concat(a, "-slider-container")
|
|
556
566
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
557
|
-
className: N("".concat(a, "-slider-group"), $e({}, "".concat(a, "-slider-group-disabled-alpha"),
|
|
558
|
-
}, /* @__PURE__ */ s.createElement(B,
|
|
567
|
+
className: N("".concat(a, "-slider-group"), $e({}, "".concat(a, "-slider-group-disabled-alpha"), p))
|
|
568
|
+
}, /* @__PURE__ */ s.createElement(B, pe({}, V, {
|
|
559
569
|
type: "hue",
|
|
560
570
|
colors: at,
|
|
561
571
|
min: 0,
|
|
562
572
|
max: 359,
|
|
563
573
|
value: h.getHue(),
|
|
564
574
|
onChange: Q,
|
|
565
|
-
onChangeComplete:
|
|
566
|
-
})), !
|
|
575
|
+
onChangeComplete: T
|
|
576
|
+
})), !p && /* @__PURE__ */ s.createElement(B, pe({}, V, {
|
|
567
577
|
type: "alpha",
|
|
568
578
|
colors: [{
|
|
569
579
|
percent: 0,
|
|
@@ -693,7 +703,7 @@ const ut = (e, r) => {
|
|
|
693
703
|
});
|
|
694
704
|
}, ur = (e) => {
|
|
695
705
|
var r, t, o, n, a, l;
|
|
696
|
-
const i = (r = e.contentFontSize) !== null && r !== void 0 ? r : e.fontSize, c = (t = e.contentFontSizeSM) !== null && t !== void 0 ? t : e.fontSize, u = (o = e.contentFontSizeLG) !== null && o !== void 0 ? o : e.fontSizeLG, d = (n = e.contentLineHeight) !== null && n !== void 0 ? n :
|
|
706
|
+
const i = (r = e.contentFontSize) !== null && r !== void 0 ? r : e.fontSize, c = (t = e.contentFontSizeSM) !== null && t !== void 0 ? t : e.fontSize, u = (o = e.contentFontSizeLG) !== null && o !== void 0 ? o : e.fontSizeLG, d = (n = e.contentLineHeight) !== null && n !== void 0 ? n : be(i), g = (a = e.contentLineHeightSM) !== null && a !== void 0 ? a : be(c), p = (l = e.contentLineHeightLG) !== null && l !== void 0 ? l : be(u), m = ut(new st(e.colorBgSolid), "#fff") ? "#000" : "#fff";
|
|
697
707
|
return {
|
|
698
708
|
fontWeight: 400,
|
|
699
709
|
defaultShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,
|
|
@@ -733,10 +743,10 @@ const ut = (e, r) => {
|
|
|
733
743
|
contentFontSizeLG: u,
|
|
734
744
|
contentLineHeight: d,
|
|
735
745
|
contentLineHeightSM: g,
|
|
736
|
-
contentLineHeightLG:
|
|
746
|
+
contentLineHeightLG: p,
|
|
737
747
|
paddingBlock: Math.max((e.controlHeight - i * d) / 2 - e.lineWidth, 0),
|
|
738
748
|
paddingBlockSM: Math.max((e.controlHeightSM - c * g) / 2 - e.lineWidth, 0),
|
|
739
|
-
paddingBlockLG: Math.max((e.controlHeightLG - u *
|
|
749
|
+
paddingBlockLG: Math.max((e.controlHeightLG - u * p) / 2 - e.lineWidth, 0)
|
|
740
750
|
};
|
|
741
751
|
}, dt = (e) => {
|
|
742
752
|
const {
|
|
@@ -772,11 +782,11 @@ const ut = (e, r) => {
|
|
|
772
782
|
pointerEvents: "none"
|
|
773
783
|
},
|
|
774
784
|
// https://github.com/ant-design/ant-design/issues/51380
|
|
775
|
-
[`${r}-icon > svg`]:
|
|
785
|
+
[`${r}-icon > svg`]: Rr(),
|
|
776
786
|
"> a": {
|
|
777
787
|
color: "currentColor"
|
|
778
788
|
},
|
|
779
|
-
"&:not(:disabled)":
|
|
789
|
+
"&:not(:disabled)": Nr(e),
|
|
780
790
|
[`&${r}-two-chinese-chars::first-letter`]: {
|
|
781
791
|
letterSpacing: "0.34em"
|
|
782
792
|
},
|
|
@@ -909,7 +919,7 @@ const ut = (e, r) => {
|
|
|
909
919
|
color: r,
|
|
910
920
|
boxShadow: "none"
|
|
911
921
|
}, ae(e, o, n, t))
|
|
912
|
-
}),
|
|
922
|
+
}), pt = (e) => {
|
|
913
923
|
const {
|
|
914
924
|
componentCls: r
|
|
915
925
|
} = e;
|
|
@@ -948,7 +958,7 @@ const ut = (e, r) => {
|
|
|
948
958
|
}))
|
|
949
959
|
});
|
|
950
960
|
}, {});
|
|
951
|
-
},
|
|
961
|
+
}, bt = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
952
962
|
color: e.defaultColor,
|
|
953
963
|
boxShadow: e.defaultShadow
|
|
954
964
|
}, le(e, e.solidTextColor, e.colorBgSolid, {
|
|
@@ -1031,10 +1041,10 @@ const ut = (e, r) => {
|
|
|
1031
1041
|
componentCls: r
|
|
1032
1042
|
} = e;
|
|
1033
1043
|
return Object.assign({
|
|
1034
|
-
[`${r}-color-default`]:
|
|
1044
|
+
[`${r}-color-default`]: bt(e),
|
|
1035
1045
|
[`${r}-color-primary`]: vt(e),
|
|
1036
1046
|
[`${r}-color-dangerous`]: yt(e)
|
|
1037
|
-
},
|
|
1047
|
+
}, pt(e));
|
|
1038
1048
|
}, xt = (e) => Object.assign(Object.assign(Object.assign(Object.assign({}, ie(e, e.defaultBorderColor, e.defaultBg, {
|
|
1039
1049
|
color: e.defaultHoverColor,
|
|
1040
1050
|
borderColor: e.defaultHoverBorderColor,
|
|
@@ -1132,7 +1142,7 @@ const ut = (e, r) => {
|
|
|
1132
1142
|
}
|
|
1133
1143
|
}
|
|
1134
1144
|
};
|
|
1135
|
-
}, Ot =
|
|
1145
|
+
}, Ot = Or("Button", (e) => {
|
|
1136
1146
|
const r = sr(e);
|
|
1137
1147
|
return [
|
|
1138
1148
|
// Shared
|
|
@@ -1148,7 +1158,7 @@ const ut = (e, r) => {
|
|
|
1148
1158
|
// https://github.com/ant-design/ant-design/issues/50969
|
|
1149
1159
|
xt(r),
|
|
1150
1160
|
// Button Group
|
|
1151
|
-
|
|
1161
|
+
qr(r)
|
|
1152
1162
|
];
|
|
1153
1163
|
}, ur, {
|
|
1154
1164
|
unitless: {
|
|
@@ -1220,7 +1230,7 @@ const jt = (e) => {
|
|
|
1220
1230
|
};
|
|
1221
1231
|
};
|
|
1222
1232
|
return Object.assign(Object.assign({}, l()), l(!0));
|
|
1223
|
-
},
|
|
1233
|
+
}, wt = Pr(["Button", "compact"], (e) => {
|
|
1224
1234
|
const r = sr(e);
|
|
1225
1235
|
return [
|
|
1226
1236
|
// Space Compact
|
|
@@ -1229,7 +1239,7 @@ const jt = (e) => {
|
|
|
1229
1239
|
jt(r)
|
|
1230
1240
|
];
|
|
1231
1241
|
}, ur);
|
|
1232
|
-
var
|
|
1242
|
+
var It = function(e, r) {
|
|
1233
1243
|
var t = {};
|
|
1234
1244
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && r.indexOf(o) < 0 && (t[o] = e[o]);
|
|
1235
1245
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
|
|
@@ -1249,13 +1259,13 @@ function Dt(e) {
|
|
|
1249
1259
|
delay: 0
|
|
1250
1260
|
};
|
|
1251
1261
|
}
|
|
1252
|
-
const
|
|
1262
|
+
const Lt = {
|
|
1253
1263
|
default: ["default", "outlined"],
|
|
1254
1264
|
primary: ["primary", "solid"],
|
|
1255
1265
|
dashed: ["default", "dashed"],
|
|
1256
1266
|
link: ["primary", "link"],
|
|
1257
1267
|
text: ["default", "text"]
|
|
1258
|
-
},
|
|
1268
|
+
}, Tt = /* @__PURE__ */ s.forwardRef((e, r) => {
|
|
1259
1269
|
var t, o, n, a;
|
|
1260
1270
|
const {
|
|
1261
1271
|
loading: l = !1,
|
|
@@ -1264,7 +1274,7 @@ const Tt = {
|
|
|
1264
1274
|
variant: u,
|
|
1265
1275
|
type: d,
|
|
1266
1276
|
danger: g = !1,
|
|
1267
|
-
shape:
|
|
1277
|
+
shape: p = "default",
|
|
1268
1278
|
size: m,
|
|
1269
1279
|
styles: C,
|
|
1270
1280
|
disabled: y,
|
|
@@ -1279,18 +1289,18 @@ const Tt = {
|
|
|
1279
1289
|
htmlType: J = "button",
|
|
1280
1290
|
classNames: O,
|
|
1281
1291
|
style: G = {},
|
|
1282
|
-
autoInsertSpace:
|
|
1292
|
+
autoInsertSpace: L,
|
|
1283
1293
|
autoFocus: Q
|
|
1284
|
-
} = e, F =
|
|
1294
|
+
} = e, F = It(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]), T = d || "default", [z, R] = ee(() => {
|
|
1285
1295
|
if (c && u)
|
|
1286
1296
|
return [c, u];
|
|
1287
|
-
const $ =
|
|
1297
|
+
const $ = Lt[T] || [];
|
|
1288
1298
|
return g ? ["danger", $[1]] : $;
|
|
1289
1299
|
}, [d, c, u, g]), M = z === "danger" ? "dangerous" : z, {
|
|
1290
1300
|
getPrefixCls: P,
|
|
1291
|
-
direction:
|
|
1301
|
+
direction: b,
|
|
1292
1302
|
button: x
|
|
1293
|
-
} = he(Qe), ue = (t =
|
|
1303
|
+
} = he(Qe), ue = (t = L ?? (x == null ? void 0 : x.autoInsertSpace)) !== null && t !== void 0 ? t : !0, v = P("btn", i), [Ne, gr, fr] = Ot(v), mr = he(jr), W = y ?? mr, Cr = he(tr), Z = ee(() => Dt(l), [l]), [A, Pe] = xe(Z.loading), [de, je] = xe(!1), K = j(null), we = wr(r, K), Ie = vr.count(B) === 1 && !S && !re(R), ge = j(!0);
|
|
1294
1304
|
s.useEffect(() => (ge.current = !1, () => {
|
|
1295
1305
|
ge.current = !0;
|
|
1296
1306
|
}), []), k(() => {
|
|
@@ -1298,25 +1308,25 @@ const Tt = {
|
|
|
1298
1308
|
Z.delay > 0 ? $ = setTimeout(() => {
|
|
1299
1309
|
$ = null, Pe(!0);
|
|
1300
1310
|
}, Z.delay) : Pe(Z.loading);
|
|
1301
|
-
function
|
|
1311
|
+
function w() {
|
|
1302
1312
|
$ && (clearTimeout($), $ = null);
|
|
1303
1313
|
}
|
|
1304
|
-
return
|
|
1314
|
+
return w;
|
|
1305
1315
|
}, [Z]), k(() => {
|
|
1306
1316
|
if (!K.current || !ue)
|
|
1307
1317
|
return;
|
|
1308
1318
|
const $ = K.current.textContent || "";
|
|
1309
|
-
|
|
1319
|
+
Ie && Ee($) ? de || je(!0) : de && je(!1);
|
|
1310
1320
|
}), k(() => {
|
|
1311
1321
|
Q && K.current && K.current.focus();
|
|
1312
1322
|
}, []);
|
|
1313
1323
|
const De = s.useCallback(($) => {
|
|
1314
|
-
var
|
|
1324
|
+
var w;
|
|
1315
1325
|
if (A || W) {
|
|
1316
1326
|
$.preventDefault();
|
|
1317
1327
|
return;
|
|
1318
1328
|
}
|
|
1319
|
-
(
|
|
1329
|
+
(w = e.onClick) === null || w === void 0 || w.call(e, $);
|
|
1320
1330
|
}, [e.onClick, A, W]);
|
|
1321
1331
|
if (process.env.NODE_ENV !== "production") {
|
|
1322
1332
|
const $ = Ze("Button");
|
|
@@ -1324,30 +1334,30 @@ const Tt = {
|
|
|
1324
1334
|
}
|
|
1325
1335
|
const {
|
|
1326
1336
|
compactSize: hr,
|
|
1327
|
-
compactItemClassnames:
|
|
1328
|
-
} =
|
|
1337
|
+
compactItemClassnames: Le
|
|
1338
|
+
} = Lr(v, b), pr = {
|
|
1329
1339
|
large: "lg",
|
|
1330
1340
|
small: "sm",
|
|
1331
1341
|
middle: void 0
|
|
1332
|
-
},
|
|
1333
|
-
var
|
|
1334
|
-
return (Ce = (
|
|
1335
|
-
}), ze =
|
|
1336
|
-
[`${v}-${
|
|
1342
|
+
}, Te = Dr(($) => {
|
|
1343
|
+
var w, Ce;
|
|
1344
|
+
return (Ce = (w = m ?? hr) !== null && w !== void 0 ? w : Cr) !== null && Ce !== void 0 ? Ce : $;
|
|
1345
|
+
}), ze = Te && (o = pr[Te]) !== null && o !== void 0 ? o : "", br = A ? "loading" : S, fe = Sr(F, ["navigate"]), Ae = N(v, gr, fr, {
|
|
1346
|
+
[`${v}-${p}`]: p !== "default" && p,
|
|
1337
1347
|
// line(253 - 254): Compatible with versions earlier than 5.21.0
|
|
1338
|
-
[`${v}-${
|
|
1348
|
+
[`${v}-${T}`]: T,
|
|
1339
1349
|
[`${v}-dangerous`]: g,
|
|
1340
1350
|
[`${v}-color-${M}`]: M,
|
|
1341
1351
|
[`${v}-variant-${R}`]: R,
|
|
1342
1352
|
[`${v}-${ze}`]: ze,
|
|
1343
|
-
[`${v}-icon-only`]: !B && B !== 0 && !!
|
|
1353
|
+
[`${v}-icon-only`]: !B && B !== 0 && !!br,
|
|
1344
1354
|
[`${v}-background-ghost`]: h && !re(R),
|
|
1345
1355
|
[`${v}-loading`]: A,
|
|
1346
1356
|
[`${v}-two-chinese-chars`]: de && ue && !A,
|
|
1347
1357
|
[`${v}-block`]: U,
|
|
1348
|
-
[`${v}-rtl`]:
|
|
1358
|
+
[`${v}-rtl`]: b === "rtl",
|
|
1349
1359
|
[`${v}-icon-end`]: f === "end"
|
|
1350
|
-
},
|
|
1360
|
+
}, Le, E, H, x == null ? void 0 : x.className), _e = Object.assign(Object.assign({}, x == null ? void 0 : x.style), G), Me = N(O == null ? void 0 : O.icon, (n = x == null ? void 0 : x.classNames) === null || n === void 0 ? void 0 : n.icon), Ge = Object.assign(Object.assign({}, (C == null ? void 0 : C.icon) || {}), ((a = x == null ? void 0 : x.styles) === null || a === void 0 ? void 0 : a.icon) || {}), Fe = S && !A ? /* @__PURE__ */ s.createElement(Be, {
|
|
1351
1361
|
prefixCls: v,
|
|
1352
1362
|
className: Me,
|
|
1353
1363
|
style: Ge
|
|
@@ -1355,12 +1365,12 @@ const Tt = {
|
|
|
1355
1365
|
prefixCls: v,
|
|
1356
1366
|
className: Me,
|
|
1357
1367
|
style: Ge
|
|
1358
|
-
}, l.icon) : /* @__PURE__ */ s.createElement(
|
|
1368
|
+
}, l.icon) : /* @__PURE__ */ s.createElement(Xr, {
|
|
1359
1369
|
existIcon: !!S,
|
|
1360
1370
|
prefixCls: v,
|
|
1361
1371
|
loading: A,
|
|
1362
1372
|
mount: ge.current
|
|
1363
|
-
}), Ve = B || B === 0 ? Wr(B,
|
|
1373
|
+
}), Ve = B || B === 0 ? Wr(B, Ie && ue) : null;
|
|
1364
1374
|
if (fe.href !== void 0)
|
|
1365
1375
|
return Ne(/* @__PURE__ */ s.createElement("a", Object.assign({}, fe, {
|
|
1366
1376
|
className: N(Ae, {
|
|
@@ -1369,7 +1379,7 @@ const Tt = {
|
|
|
1369
1379
|
href: W ? void 0 : fe.href,
|
|
1370
1380
|
style: _e,
|
|
1371
1381
|
onClick: De,
|
|
1372
|
-
ref:
|
|
1382
|
+
ref: we,
|
|
1373
1383
|
tabIndex: W ? -1 : 0
|
|
1374
1384
|
}), Fe, Ve));
|
|
1375
1385
|
let me = /* @__PURE__ */ s.createElement("button", Object.assign({}, F, {
|
|
@@ -1378,18 +1388,19 @@ const Tt = {
|
|
|
1378
1388
|
style: _e,
|
|
1379
1389
|
onClick: De,
|
|
1380
1390
|
disabled: W,
|
|
1381
|
-
ref:
|
|
1382
|
-
}), Fe, Ve,
|
|
1391
|
+
ref: we
|
|
1392
|
+
}), Fe, Ve, Le && /* @__PURE__ */ s.createElement(wt, {
|
|
1383
1393
|
prefixCls: v
|
|
1384
1394
|
}));
|
|
1385
|
-
return re(R) || (me = /* @__PURE__ */ s.createElement(
|
|
1395
|
+
return re(R) || (me = /* @__PURE__ */ s.createElement(Ir, {
|
|
1386
1396
|
component: "Button",
|
|
1387
1397
|
disabled: A
|
|
1388
1398
|
}, me)), Ne(me);
|
|
1389
|
-
}), Re =
|
|
1399
|
+
}), Re = Tt;
|
|
1390
1400
|
Re.Group = Fr;
|
|
1391
1401
|
Re.__ANT_BUTTON = !0;
|
|
1392
1402
|
process.env.NODE_ENV !== "production" && (Re.displayName = "Button");
|
|
1393
1403
|
export {
|
|
1394
|
-
Re as B
|
|
1404
|
+
Re as B,
|
|
1405
|
+
Qt as c
|
|
1395
1406
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function a(r) {
|
|
2
|
+
var f, n, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
+
var o = r.length;
|
|
6
|
+
for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
|
|
7
|
+
} else for (n in r) r[n] && (t && (t += " "), t += n);
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
i as c
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface AvatarProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
shape?: "circle" | "square";
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
altText?: string;
|
|
8
|
+
children?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Avatar: ({ size, shape, imageUrl, altText, children, backgroundColor, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Avatar;
|