@gobolt/genesis 0.0.10 → 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 +26 -15
- 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,10 +1,12 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import L, { useContext as X, useRef as Z } from "react";
|
|
3
|
-
import { _ as ee,
|
|
4
|
-
import {
|
|
5
|
-
import { R as
|
|
3
|
+
import { _ as ee, f as te, e as $ } from "./presets-Djh_L_6R.js";
|
|
4
|
+
import { i as ne } from "./isVisible-D3-B85BJ.js";
|
|
5
|
+
import { R as k, F as oe, G as re, H as se, B as E, o as ae, p as I, C as A, c as ie, a as ue, x as ce, y as le } from "./index-ByspLxrB.js";
|
|
6
6
|
import { c as de } from "./reactNode-sKPeiqPL.js";
|
|
7
|
-
|
|
7
|
+
import "./index-DLdU7Tpd.js";
|
|
8
|
+
import { _ as U, a as g } from "./asyncToGenerator-CKP9bEZn.js";
|
|
9
|
+
var _ = ee({}, k), fe = _.version, S = _.render, pe = _.unmountComponentAtNode, C;
|
|
8
10
|
try {
|
|
9
11
|
var me = Number((fe || "").split(".")[0]);
|
|
10
12
|
me >= 18 && (C = _.createRoot);
|
|
@@ -21,7 +23,7 @@ function ve(e, t) {
|
|
|
21
23
|
D(!1), n.render(e), t[y] = n;
|
|
22
24
|
}
|
|
23
25
|
function be(e, t) {
|
|
24
|
-
|
|
26
|
+
S == null || S(e, t);
|
|
25
27
|
}
|
|
26
28
|
function Re(e, t) {
|
|
27
29
|
if (C) {
|
|
@@ -34,8 +36,8 @@ function _e(e) {
|
|
|
34
36
|
return W.apply(this, arguments);
|
|
35
37
|
}
|
|
36
38
|
function W() {
|
|
37
|
-
return W =
|
|
38
|
-
return
|
|
39
|
+
return W = U(/* @__PURE__ */ g().mark(function e(t) {
|
|
40
|
+
return g().wrap(function(o) {
|
|
39
41
|
for (; ; ) switch (o.prev = o.next) {
|
|
40
42
|
case 0:
|
|
41
43
|
return o.abrupt("return", Promise.resolve().then(function() {
|
|
@@ -56,8 +58,8 @@ function Ee(e) {
|
|
|
56
58
|
return O.apply(this, arguments);
|
|
57
59
|
}
|
|
58
60
|
function O() {
|
|
59
|
-
return O =
|
|
60
|
-
return
|
|
61
|
+
return O = U(/* @__PURE__ */ g().mark(function e(t) {
|
|
62
|
+
return g().wrap(function(o) {
|
|
61
63
|
for (; ; ) switch (o.prev = o.next) {
|
|
62
64
|
case 0:
|
|
63
65
|
if (C === void 0) {
|
|
@@ -76,7 +78,7 @@ function O() {
|
|
|
76
78
|
}
|
|
77
79
|
const ge = (e, t) => {
|
|
78
80
|
if (process.env.NODE_ENV !== "production") {
|
|
79
|
-
const n = parseInt(r.version.split(".")[0], 10), o = Object.keys(
|
|
81
|
+
const n = parseInt(r.version.split(".")[0], 10), o = Object.keys(k);
|
|
80
82
|
process.env.NODE_ENV !== "production" && oe(n < 19 || o.includes("createRoot"), "compatible", "antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");
|
|
81
83
|
}
|
|
82
84
|
return Re(e, t), () => Ee(t);
|
|
@@ -85,7 +87,7 @@ let ye = ge;
|
|
|
85
87
|
function Ce() {
|
|
86
88
|
return ye;
|
|
87
89
|
}
|
|
88
|
-
const
|
|
90
|
+
const Se = (e) => {
|
|
89
91
|
const {
|
|
90
92
|
componentCls: t,
|
|
91
93
|
colorPrimary: n
|
|
@@ -112,8 +114,8 @@ const we = (e) => {
|
|
|
112
114
|
}
|
|
113
115
|
}
|
|
114
116
|
};
|
|
115
|
-
},
|
|
116
|
-
function
|
|
117
|
+
}, we = re("Wave", (e) => [Se(e)]), j = `${se}-wave-target`;
|
|
118
|
+
function w(e) {
|
|
117
119
|
return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
|
|
118
120
|
e !== "transparent";
|
|
119
121
|
}
|
|
@@ -123,7 +125,7 @@ function Ne(e) {
|
|
|
123
125
|
borderColor: n,
|
|
124
126
|
backgroundColor: o
|
|
125
127
|
} = getComputedStyle(e);
|
|
126
|
-
return
|
|
128
|
+
return w(t) ? t : w(n) ? n : w(o) ? o : null;
|
|
127
129
|
}
|
|
128
130
|
function N(e) {
|
|
129
131
|
return Number.isNaN(e) ? 0 : e;
|
|
@@ -134,70 +136,70 @@ const We = (e) => {
|
|
|
134
136
|
target: n,
|
|
135
137
|
component: o,
|
|
136
138
|
registerUnmount: s
|
|
137
|
-
} = e,
|
|
139
|
+
} = e, u = r.useRef(null), c = r.useRef(null);
|
|
138
140
|
r.useEffect(() => {
|
|
139
141
|
c.current = s();
|
|
140
142
|
}, []);
|
|
141
|
-
const [d, h] = r.useState(null), [f, a] = r.useState([]), [m, v] = r.useState(0), [B, V] = r.useState(0), [
|
|
143
|
+
const [d, h] = r.useState(null), [f, a] = r.useState([]), [m, v] = r.useState(0), [B, V] = r.useState(0), [F, P] = r.useState(0), [q, z] = r.useState(0), [H, M] = r.useState(!1), T = {
|
|
142
144
|
left: m,
|
|
143
145
|
top: B,
|
|
144
|
-
width:
|
|
145
|
-
height:
|
|
146
|
+
width: F,
|
|
147
|
+
height: q,
|
|
146
148
|
borderRadius: f.map((l) => `${l}px`).join(" ")
|
|
147
149
|
};
|
|
148
150
|
d && (T["--wave-color"] = d);
|
|
149
151
|
function x() {
|
|
150
152
|
const l = getComputedStyle(n);
|
|
151
153
|
h(Ne(n));
|
|
152
|
-
const
|
|
154
|
+
const i = l.position === "static", {
|
|
153
155
|
borderLeftWidth: p,
|
|
154
156
|
borderTopWidth: b
|
|
155
157
|
} = l;
|
|
156
|
-
v(
|
|
158
|
+
v(i ? n.offsetLeft : N(-parseFloat(p))), V(i ? n.offsetTop : N(-parseFloat(b))), P(n.offsetWidth), z(n.offsetHeight);
|
|
157
159
|
const {
|
|
158
160
|
borderTopLeftRadius: R,
|
|
159
|
-
borderTopRightRadius:
|
|
161
|
+
borderTopRightRadius: K,
|
|
160
162
|
borderBottomLeftRadius: Y,
|
|
161
163
|
borderBottomRightRadius: J
|
|
162
164
|
} = l;
|
|
163
|
-
a([R,
|
|
165
|
+
a([R, K, J, Y].map((Q) => N(parseFloat(Q))));
|
|
164
166
|
}
|
|
165
167
|
if (r.useEffect(() => {
|
|
166
168
|
if (n) {
|
|
167
|
-
const l =
|
|
168
|
-
x(),
|
|
169
|
+
const l = E(() => {
|
|
170
|
+
x(), M(!0);
|
|
169
171
|
});
|
|
170
|
-
let
|
|
171
|
-
return typeof ResizeObserver < "u" && (
|
|
172
|
-
|
|
172
|
+
let i;
|
|
173
|
+
return typeof ResizeObserver < "u" && (i = new ResizeObserver(x), i.observe(n)), () => {
|
|
174
|
+
E.cancel(l), i == null || i.disconnect();
|
|
173
175
|
};
|
|
174
176
|
}
|
|
175
|
-
}, []), !
|
|
177
|
+
}, []), !H)
|
|
176
178
|
return null;
|
|
177
|
-
const
|
|
179
|
+
const G = (o === "Checkbox" || o === "Radio") && (n == null ? void 0 : n.classList.contains(j));
|
|
178
180
|
return /* @__PURE__ */ r.createElement(ae, {
|
|
179
181
|
visible: !0,
|
|
180
182
|
motionAppear: !0,
|
|
181
183
|
motionName: "wave-motion",
|
|
182
184
|
motionDeadline: 5e3,
|
|
183
|
-
onAppearEnd: (l,
|
|
185
|
+
onAppearEnd: (l, i) => {
|
|
184
186
|
var p, b;
|
|
185
|
-
if (
|
|
186
|
-
const R = (p =
|
|
187
|
+
if (i.deadline || i.propertyName === "opacity") {
|
|
188
|
+
const R = (p = u.current) === null || p === void 0 ? void 0 : p.parentElement;
|
|
187
189
|
(b = c.current) === null || b === void 0 || b.call(c).then(() => {
|
|
188
190
|
R == null || R.remove();
|
|
189
191
|
});
|
|
190
192
|
}
|
|
191
193
|
return !1;
|
|
192
194
|
}
|
|
193
|
-
}, (l,
|
|
195
|
+
}, (l, i) => {
|
|
194
196
|
let {
|
|
195
197
|
className: p
|
|
196
198
|
} = l;
|
|
197
199
|
return /* @__PURE__ */ r.createElement("div", {
|
|
198
|
-
ref: I(
|
|
200
|
+
ref: I(u, i),
|
|
199
201
|
className: $(t, p, {
|
|
200
|
-
"wave-quick":
|
|
202
|
+
"wave-quick": G
|
|
201
203
|
}),
|
|
202
204
|
style: T
|
|
203
205
|
});
|
|
@@ -211,19 +213,19 @@ const We = (e) => {
|
|
|
211
213
|
return;
|
|
212
214
|
const s = document.createElement("div");
|
|
213
215
|
s.style.position = "absolute", s.style.left = "0px", s.style.top = "0px", e == null || e.insertBefore(s, e == null ? void 0 : e.firstChild);
|
|
214
|
-
const
|
|
216
|
+
const u = Ce();
|
|
215
217
|
let c = null;
|
|
216
218
|
function d() {
|
|
217
219
|
return c;
|
|
218
220
|
}
|
|
219
|
-
c =
|
|
221
|
+
c = u(/* @__PURE__ */ r.createElement(We, Object.assign({}, t, {
|
|
220
222
|
target: e,
|
|
221
223
|
registerUnmount: d
|
|
222
224
|
})), s);
|
|
223
225
|
}, Te = (e, t, n) => {
|
|
224
226
|
const {
|
|
225
227
|
wave: o
|
|
226
|
-
} = r.useContext(
|
|
228
|
+
} = r.useContext(A), [, s, u] = ie(), c = ue((f) => {
|
|
227
229
|
const a = e.current;
|
|
228
230
|
if (o != null && o.disabled || !a)
|
|
229
231
|
return;
|
|
@@ -235,11 +237,11 @@ const We = (e) => {
|
|
|
235
237
|
token: s,
|
|
236
238
|
component: n,
|
|
237
239
|
event: f,
|
|
238
|
-
hashId:
|
|
240
|
+
hashId: u
|
|
239
241
|
});
|
|
240
242
|
}), d = r.useRef(null);
|
|
241
243
|
return (f) => {
|
|
242
|
-
|
|
244
|
+
E.cancel(d.current), d.current = E(() => {
|
|
243
245
|
c(f);
|
|
244
246
|
});
|
|
245
247
|
};
|
|
@@ -250,9 +252,9 @@ const We = (e) => {
|
|
|
250
252
|
component: o
|
|
251
253
|
} = e, {
|
|
252
254
|
getPrefixCls: s
|
|
253
|
-
} = X(
|
|
255
|
+
} = X(A), u = Z(null), c = s("wave"), [, d] = we(c), h = Te(u, $(c, d), o);
|
|
254
256
|
if (L.useEffect(() => {
|
|
255
|
-
const a =
|
|
257
|
+
const a = u.current;
|
|
256
258
|
if (!a || a.nodeType !== 1 || n)
|
|
257
259
|
return;
|
|
258
260
|
const m = (v) => {
|
|
@@ -264,7 +266,7 @@ const We = (e) => {
|
|
|
264
266
|
};
|
|
265
267
|
}, [n]), !/* @__PURE__ */ L.isValidElement(t))
|
|
266
268
|
return t ?? null;
|
|
267
|
-
const f = ce(t) ? I(le(t),
|
|
269
|
+
const f = ce(t) ? I(le(t), u) : u;
|
|
268
270
|
return de(t, {
|
|
269
271
|
ref: f
|
|
270
272
|
});
|
|
@@ -272,5 +274,6 @@ const We = (e) => {
|
|
|
272
274
|
process.env.NODE_ENV !== "production" && (xe.displayName = "Wave");
|
|
273
275
|
export {
|
|
274
276
|
j as T,
|
|
275
|
-
xe as W
|
|
277
|
+
xe as W,
|
|
278
|
+
Ce as g
|
|
276
279
|
};
|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { useContext as Z, useMemo as fe, useState as de, useRef as pe } from "react";
|
|
3
|
+
import { e as G, d as te } from "./presets-Djh_L_6R.js";
|
|
4
|
+
import { C as H, e as oe, g as me, m as ge, B as Ce, a as ee, h as ye, D as ve, p as se } from "./index-ByspLxrB.js";
|
|
5
|
+
import { F as q } from "./context-Cx7GtZpz.js";
|
|
6
|
+
import { u as be, i as Oe, a as he, I as Q, b as xe, T as Ee } from "./TextArea-CKWbFr0u.js";
|
|
7
|
+
import { p as Ie } from "./pickAttrs-CleuMJFR.js";
|
|
8
|
+
import { g as Pe } from "./useVariants-Cin23jEC.js";
|
|
9
|
+
import { u as Se } from "./useCSSVarCls-C-MlZC6a.js";
|
|
10
|
+
import { u as re } from "./useSize-CPo2bUE3.js";
|
|
11
|
+
import "./index-DLdU7Tpd.js";
|
|
12
|
+
import { I as ae } from "./AntdIcon-nCNB0J1E.js";
|
|
13
|
+
import { o as we } from "./omit-B_u6A-HL.js";
|
|
14
|
+
import { R as _e } from "./SearchOutlined-DNj-7b_h.js";
|
|
15
|
+
import { c as ne } from "./reactNode-sKPeiqPL.js";
|
|
16
|
+
import { B as ze } from "./button-B2Rgggx2.js";
|
|
17
|
+
import { u as Ne } from "./Compact-DBh6nSYB.js";
|
|
18
|
+
const je = (e) => {
|
|
19
|
+
const {
|
|
20
|
+
getPrefixCls: s,
|
|
21
|
+
direction: r
|
|
22
|
+
} = Z(H), {
|
|
23
|
+
prefixCls: n,
|
|
24
|
+
className: t
|
|
25
|
+
} = e, c = s("input-group", n), v = s("input"), [g, b] = be(v), O = G(c, {
|
|
26
|
+
[`${c}-lg`]: e.size === "large",
|
|
27
|
+
[`${c}-sm`]: e.size === "small",
|
|
28
|
+
[`${c}-compact`]: e.compact,
|
|
29
|
+
[`${c}-rtl`]: r === "rtl"
|
|
30
|
+
}, b, t), C = Z(q), m = fe(() => Object.assign(Object.assign({}, C), {
|
|
31
|
+
isFormItemInput: !1
|
|
32
|
+
}), [C]);
|
|
33
|
+
return process.env.NODE_ENV !== "production" && oe("Input.Group").deprecated(!1, "Input.Group", "Space.Compact"), g(/* @__PURE__ */ o.createElement("span", {
|
|
34
|
+
className: O,
|
|
35
|
+
style: e.style,
|
|
36
|
+
onMouseEnter: e.onMouseEnter,
|
|
37
|
+
onMouseLeave: e.onMouseLeave,
|
|
38
|
+
onFocus: e.onFocus,
|
|
39
|
+
onBlur: e.onBlur
|
|
40
|
+
}, /* @__PURE__ */ o.createElement(q.Provider, {
|
|
41
|
+
value: m
|
|
42
|
+
}, e.children)));
|
|
43
|
+
}, $e = (e) => {
|
|
44
|
+
const {
|
|
45
|
+
componentCls: s,
|
|
46
|
+
paddingXS: r
|
|
47
|
+
} = e;
|
|
48
|
+
return {
|
|
49
|
+
[s]: {
|
|
50
|
+
display: "inline-flex",
|
|
51
|
+
alignItems: "center",
|
|
52
|
+
flexWrap: "nowrap",
|
|
53
|
+
columnGap: r,
|
|
54
|
+
"&-rtl": {
|
|
55
|
+
direction: "rtl"
|
|
56
|
+
},
|
|
57
|
+
[`${s}-input`]: {
|
|
58
|
+
textAlign: "center",
|
|
59
|
+
paddingInline: e.paddingXXS
|
|
60
|
+
},
|
|
61
|
+
// ================= Size =================
|
|
62
|
+
[`&${s}-sm ${s}-input`]: {
|
|
63
|
+
paddingInline: e.calc(e.paddingXXS).div(2).equal()
|
|
64
|
+
},
|
|
65
|
+
[`&${s}-lg ${s}-input`]: {
|
|
66
|
+
paddingInline: e.paddingXS
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}, Re = me(["Input", "OTP"], (e) => {
|
|
71
|
+
const s = ge(e, Oe(e));
|
|
72
|
+
return [$e(s)];
|
|
73
|
+
}, he);
|
|
74
|
+
var ke = function(e, s) {
|
|
75
|
+
var r = {};
|
|
76
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
|
|
77
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
78
|
+
s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
79
|
+
return r;
|
|
80
|
+
};
|
|
81
|
+
const Me = /* @__PURE__ */ o.forwardRef((e, s) => {
|
|
82
|
+
const {
|
|
83
|
+
value: r,
|
|
84
|
+
onChange: n,
|
|
85
|
+
onActiveChange: t,
|
|
86
|
+
index: c,
|
|
87
|
+
mask: v
|
|
88
|
+
} = e, g = ke(e, ["value", "onChange", "onActiveChange", "index", "mask"]), b = r && typeof v == "string" ? v : r, O = (f) => {
|
|
89
|
+
n(c, f.target.value);
|
|
90
|
+
}, C = o.useRef(null);
|
|
91
|
+
o.useImperativeHandle(s, () => C.current);
|
|
92
|
+
const m = () => {
|
|
93
|
+
Ce(() => {
|
|
94
|
+
var f;
|
|
95
|
+
const y = (f = C.current) === null || f === void 0 ? void 0 : f.input;
|
|
96
|
+
document.activeElement === y && y && y.select();
|
|
97
|
+
});
|
|
98
|
+
}, w = (f) => {
|
|
99
|
+
const {
|
|
100
|
+
key: y,
|
|
101
|
+
ctrlKey: R,
|
|
102
|
+
metaKey: k
|
|
103
|
+
} = f;
|
|
104
|
+
y === "ArrowLeft" ? t(c - 1) : y === "ArrowRight" ? t(c + 1) : y === "z" && (R || k) && f.preventDefault(), m();
|
|
105
|
+
}, P = (f) => {
|
|
106
|
+
f.key === "Backspace" && !r && t(c - 1), m();
|
|
107
|
+
};
|
|
108
|
+
return /* @__PURE__ */ o.createElement(Q, Object.assign({
|
|
109
|
+
type: v === !0 ? "password" : "text"
|
|
110
|
+
}, g, {
|
|
111
|
+
ref: C,
|
|
112
|
+
value: b,
|
|
113
|
+
onInput: O,
|
|
114
|
+
onFocus: m,
|
|
115
|
+
onKeyDown: w,
|
|
116
|
+
onKeyUp: P,
|
|
117
|
+
onMouseDown: m,
|
|
118
|
+
onMouseUp: m
|
|
119
|
+
}));
|
|
120
|
+
});
|
|
121
|
+
var Ae = function(e, s) {
|
|
122
|
+
var r = {};
|
|
123
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
|
|
124
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
125
|
+
s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
126
|
+
return r;
|
|
127
|
+
};
|
|
128
|
+
function X(e) {
|
|
129
|
+
return (e || "").split("");
|
|
130
|
+
}
|
|
131
|
+
const De = /* @__PURE__ */ o.forwardRef((e, s) => {
|
|
132
|
+
const {
|
|
133
|
+
prefixCls: r,
|
|
134
|
+
length: n = 6,
|
|
135
|
+
size: t,
|
|
136
|
+
defaultValue: c,
|
|
137
|
+
value: v,
|
|
138
|
+
onChange: g,
|
|
139
|
+
formatter: b,
|
|
140
|
+
variant: O,
|
|
141
|
+
disabled: C,
|
|
142
|
+
status: m,
|
|
143
|
+
autoFocus: w,
|
|
144
|
+
mask: P,
|
|
145
|
+
type: f,
|
|
146
|
+
onInput: y,
|
|
147
|
+
inputMode: R
|
|
148
|
+
} = e, k = Ae(e, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"]);
|
|
149
|
+
if (process.env.NODE_ENV !== "production") {
|
|
150
|
+
const a = oe("Input.OTP");
|
|
151
|
+
process.env.NODE_ENV !== "production" && a(!(typeof P == "string" && P.length > 1), "usage", "`mask` prop should be a single character.");
|
|
152
|
+
}
|
|
153
|
+
const {
|
|
154
|
+
getPrefixCls: _,
|
|
155
|
+
direction: z
|
|
156
|
+
} = o.useContext(H), E = _("otp", r), V = Ie(k, {
|
|
157
|
+
aria: !0,
|
|
158
|
+
data: !0,
|
|
159
|
+
attr: !0
|
|
160
|
+
}), S = Se(E), [M, B, A] = Re(E, S), h = re((a) => t ?? a), N = o.useContext(q), j = Pe(N.status, m), D = o.useMemo(() => Object.assign(Object.assign({}, N), {
|
|
161
|
+
status: j,
|
|
162
|
+
hasFeedback: !1,
|
|
163
|
+
feedbackIcon: null
|
|
164
|
+
}), [N, j]), I = o.useRef(null), x = o.useRef({});
|
|
165
|
+
o.useImperativeHandle(s, () => ({
|
|
166
|
+
focus: () => {
|
|
167
|
+
var a;
|
|
168
|
+
(a = x.current[0]) === null || a === void 0 || a.focus();
|
|
169
|
+
},
|
|
170
|
+
blur: () => {
|
|
171
|
+
var a;
|
|
172
|
+
for (let l = 0; l < n; l += 1)
|
|
173
|
+
(a = x.current[l]) === null || a === void 0 || a.blur();
|
|
174
|
+
},
|
|
175
|
+
nativeElement: I.current
|
|
176
|
+
}));
|
|
177
|
+
const F = (a) => b ? b(a) : a, [L, U] = o.useState(X(F(c || "")));
|
|
178
|
+
o.useEffect(() => {
|
|
179
|
+
v !== void 0 && U(X(v));
|
|
180
|
+
}, [v]);
|
|
181
|
+
const W = ee((a) => {
|
|
182
|
+
U(a), y && y(a), g && a.length === n && a.every((l) => l) && a.some((l, u) => L[u] !== l) && g(a.join(""));
|
|
183
|
+
}), J = ee((a, l) => {
|
|
184
|
+
let u = ye(L);
|
|
185
|
+
for (let p = 0; p < a; p += 1)
|
|
186
|
+
u[p] || (u[p] = "");
|
|
187
|
+
l.length <= 1 ? u[a] = l : u = u.slice(0, a).concat(X(l)), u = u.slice(0, n);
|
|
188
|
+
for (let p = u.length - 1; p >= 0 && !u[p]; p -= 1)
|
|
189
|
+
u.pop();
|
|
190
|
+
const T = F(u.map((p) => p || " ").join(""));
|
|
191
|
+
return u = X(T).map((p, Y) => p === " " && !u[Y] ? u[Y] : p), u;
|
|
192
|
+
}), i = (a, l) => {
|
|
193
|
+
var u;
|
|
194
|
+
const T = J(a, l), p = Math.min(a + l.length, n - 1);
|
|
195
|
+
p !== a && T[a] !== void 0 && ((u = x.current[p]) === null || u === void 0 || u.focus()), W(T);
|
|
196
|
+
}, d = (a) => {
|
|
197
|
+
var l;
|
|
198
|
+
(l = x.current[a]) === null || l === void 0 || l.focus();
|
|
199
|
+
}, $ = {
|
|
200
|
+
variant: O,
|
|
201
|
+
disabled: C,
|
|
202
|
+
status: j,
|
|
203
|
+
mask: P,
|
|
204
|
+
type: f,
|
|
205
|
+
inputMode: R
|
|
206
|
+
};
|
|
207
|
+
return M(/* @__PURE__ */ o.createElement("div", Object.assign({}, V, {
|
|
208
|
+
ref: I,
|
|
209
|
+
className: G(E, {
|
|
210
|
+
[`${E}-sm`]: h === "small",
|
|
211
|
+
[`${E}-lg`]: h === "large",
|
|
212
|
+
[`${E}-rtl`]: z === "rtl"
|
|
213
|
+
}, A, B)
|
|
214
|
+
}), /* @__PURE__ */ o.createElement(q.Provider, {
|
|
215
|
+
value: D
|
|
216
|
+
}, Array.from({
|
|
217
|
+
length: n
|
|
218
|
+
}).map((a, l) => {
|
|
219
|
+
const u = `otp-${l}`, T = L[l] || "";
|
|
220
|
+
return /* @__PURE__ */ o.createElement(Me, Object.assign({
|
|
221
|
+
ref: (p) => {
|
|
222
|
+
x.current[l] = p;
|
|
223
|
+
},
|
|
224
|
+
key: u,
|
|
225
|
+
index: l,
|
|
226
|
+
size: h,
|
|
227
|
+
htmlSize: 1,
|
|
228
|
+
className: `${E}-input`,
|
|
229
|
+
onChange: i,
|
|
230
|
+
value: T,
|
|
231
|
+
onActiveChange: d,
|
|
232
|
+
autoFocus: l === 0 && w
|
|
233
|
+
}, $));
|
|
234
|
+
}))));
|
|
235
|
+
});
|
|
236
|
+
var Te = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" }, Ve = function(s, r) {
|
|
237
|
+
return /* @__PURE__ */ o.createElement(ae, te({}, s, {
|
|
238
|
+
ref: r,
|
|
239
|
+
icon: Te
|
|
240
|
+
}));
|
|
241
|
+
}, ie = /* @__PURE__ */ o.forwardRef(Ve);
|
|
242
|
+
process.env.NODE_ENV !== "production" && (ie.displayName = "EyeInvisibleOutlined");
|
|
243
|
+
var Be = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, Fe = function(s, r) {
|
|
244
|
+
return /* @__PURE__ */ o.createElement(ae, te({}, s, {
|
|
245
|
+
ref: r,
|
|
246
|
+
icon: Be
|
|
247
|
+
}));
|
|
248
|
+
}, le = /* @__PURE__ */ o.forwardRef(Fe);
|
|
249
|
+
process.env.NODE_ENV !== "production" && (le.displayName = "EyeOutlined");
|
|
250
|
+
var Le = function(e, s) {
|
|
251
|
+
var r = {};
|
|
252
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
|
|
253
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
254
|
+
s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
255
|
+
return r;
|
|
256
|
+
};
|
|
257
|
+
const Ke = (e) => e ? /* @__PURE__ */ o.createElement(le, null) : /* @__PURE__ */ o.createElement(ie, null), Ue = {
|
|
258
|
+
click: "onClick",
|
|
259
|
+
hover: "onMouseOver"
|
|
260
|
+
}, ue = /* @__PURE__ */ o.forwardRef((e, s) => {
|
|
261
|
+
const {
|
|
262
|
+
disabled: r,
|
|
263
|
+
action: n = "click",
|
|
264
|
+
visibilityToggle: t = !0,
|
|
265
|
+
iconRender: c = Ke
|
|
266
|
+
} = e, v = o.useContext(ve), g = r ?? v, b = typeof t == "object" && t.visible !== void 0, [O, C] = de(() => b ? t.visible : !1), m = pe(null);
|
|
267
|
+
o.useEffect(() => {
|
|
268
|
+
b && C(t.visible);
|
|
269
|
+
}, [b, t]);
|
|
270
|
+
const w = xe(m), P = () => {
|
|
271
|
+
var h;
|
|
272
|
+
if (g)
|
|
273
|
+
return;
|
|
274
|
+
O && w();
|
|
275
|
+
const N = !O;
|
|
276
|
+
C(N), typeof t == "object" && ((h = t.onVisibleChange) === null || h === void 0 || h.call(t, N));
|
|
277
|
+
}, f = (h) => {
|
|
278
|
+
const N = Ue[n] || "", j = c(O), D = {
|
|
279
|
+
[N]: P,
|
|
280
|
+
className: `${h}-icon`,
|
|
281
|
+
key: "passwordIcon",
|
|
282
|
+
onMouseDown: (I) => {
|
|
283
|
+
I.preventDefault();
|
|
284
|
+
},
|
|
285
|
+
onMouseUp: (I) => {
|
|
286
|
+
I.preventDefault();
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
return /* @__PURE__ */ o.cloneElement(/* @__PURE__ */ o.isValidElement(j) ? j : /* @__PURE__ */ o.createElement("span", null, j), D);
|
|
290
|
+
}, {
|
|
291
|
+
className: y,
|
|
292
|
+
prefixCls: R,
|
|
293
|
+
inputPrefixCls: k,
|
|
294
|
+
size: _
|
|
295
|
+
} = e, z = Le(e, ["className", "prefixCls", "inputPrefixCls", "size"]), {
|
|
296
|
+
getPrefixCls: E
|
|
297
|
+
} = o.useContext(H), V = E("input", k), S = E("input-password", R), M = t && f(S), B = G(S, y, {
|
|
298
|
+
[`${S}-${_}`]: !!_
|
|
299
|
+
}), A = Object.assign(Object.assign({}, we(z, ["suffix", "iconRender", "visibilityToggle"])), {
|
|
300
|
+
type: O ? "text" : "password",
|
|
301
|
+
className: B,
|
|
302
|
+
prefixCls: V,
|
|
303
|
+
suffix: M
|
|
304
|
+
});
|
|
305
|
+
return _ && (A.size = _), /* @__PURE__ */ o.createElement(Q, Object.assign({
|
|
306
|
+
ref: se(s, m)
|
|
307
|
+
}, A));
|
|
308
|
+
});
|
|
309
|
+
process.env.NODE_ENV !== "production" && (ue.displayName = "Input.Password");
|
|
310
|
+
var Xe = function(e, s) {
|
|
311
|
+
var r = {};
|
|
312
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
|
|
313
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
314
|
+
s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
315
|
+
return r;
|
|
316
|
+
};
|
|
317
|
+
const ce = /* @__PURE__ */ o.forwardRef((e, s) => {
|
|
318
|
+
const {
|
|
319
|
+
prefixCls: r,
|
|
320
|
+
inputPrefixCls: n,
|
|
321
|
+
className: t,
|
|
322
|
+
size: c,
|
|
323
|
+
suffix: v,
|
|
324
|
+
enterButton: g = !1,
|
|
325
|
+
addonAfter: b,
|
|
326
|
+
loading: O,
|
|
327
|
+
disabled: C,
|
|
328
|
+
onSearch: m,
|
|
329
|
+
onChange: w,
|
|
330
|
+
onCompositionStart: P,
|
|
331
|
+
onCompositionEnd: f
|
|
332
|
+
} = e, y = Xe(e, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]), {
|
|
333
|
+
getPrefixCls: R,
|
|
334
|
+
direction: k
|
|
335
|
+
} = o.useContext(H), _ = o.useRef(!1), z = R("input-search", r), E = R("input", n), {
|
|
336
|
+
compactSize: V
|
|
337
|
+
} = Ne(z, k), S = re((i) => {
|
|
338
|
+
var d;
|
|
339
|
+
return (d = c ?? V) !== null && d !== void 0 ? d : i;
|
|
340
|
+
}), M = o.useRef(null), B = (i) => {
|
|
341
|
+
i != null && i.target && i.type === "click" && m && m(i.target.value, i, {
|
|
342
|
+
source: "clear"
|
|
343
|
+
}), w == null || w(i);
|
|
344
|
+
}, A = (i) => {
|
|
345
|
+
var d;
|
|
346
|
+
document.activeElement === ((d = M.current) === null || d === void 0 ? void 0 : d.input) && i.preventDefault();
|
|
347
|
+
}, h = (i) => {
|
|
348
|
+
var d, $;
|
|
349
|
+
m && m(($ = (d = M.current) === null || d === void 0 ? void 0 : d.input) === null || $ === void 0 ? void 0 : $.value, i, {
|
|
350
|
+
source: "input"
|
|
351
|
+
});
|
|
352
|
+
}, N = (i) => {
|
|
353
|
+
_.current || O || h(i);
|
|
354
|
+
}, j = typeof g == "boolean" ? /* @__PURE__ */ o.createElement(_e, null) : null, D = `${z}-button`;
|
|
355
|
+
let I;
|
|
356
|
+
const x = g || {}, F = x.type && x.type.__ANT_BUTTON === !0;
|
|
357
|
+
F || x.type === "button" ? I = ne(x, Object.assign({
|
|
358
|
+
onMouseDown: A,
|
|
359
|
+
onClick: (i) => {
|
|
360
|
+
var d, $;
|
|
361
|
+
($ = (d = x == null ? void 0 : x.props) === null || d === void 0 ? void 0 : d.onClick) === null || $ === void 0 || $.call(d, i), h(i);
|
|
362
|
+
},
|
|
363
|
+
key: "enterButton"
|
|
364
|
+
}, F ? {
|
|
365
|
+
className: D,
|
|
366
|
+
size: S
|
|
367
|
+
} : {})) : I = /* @__PURE__ */ o.createElement(ze, {
|
|
368
|
+
className: D,
|
|
369
|
+
type: g ? "primary" : void 0,
|
|
370
|
+
size: S,
|
|
371
|
+
disabled: C,
|
|
372
|
+
key: "enterButton",
|
|
373
|
+
onMouseDown: A,
|
|
374
|
+
onClick: h,
|
|
375
|
+
loading: O,
|
|
376
|
+
icon: j
|
|
377
|
+
}, g), b && (I = [I, ne(b, {
|
|
378
|
+
key: "addonAfter"
|
|
379
|
+
})]);
|
|
380
|
+
const L = G(z, {
|
|
381
|
+
[`${z}-rtl`]: k === "rtl",
|
|
382
|
+
[`${z}-${S}`]: !!S,
|
|
383
|
+
[`${z}-with-button`]: !!g
|
|
384
|
+
}, t), U = Object.assign(Object.assign({}, y), {
|
|
385
|
+
className: L,
|
|
386
|
+
prefixCls: E,
|
|
387
|
+
type: "search"
|
|
388
|
+
}), W = (i) => {
|
|
389
|
+
_.current = !0, P == null || P(i);
|
|
390
|
+
}, J = (i) => {
|
|
391
|
+
_.current = !1, f == null || f(i);
|
|
392
|
+
};
|
|
393
|
+
return /* @__PURE__ */ o.createElement(Q, Object.assign({
|
|
394
|
+
ref: se(M, s),
|
|
395
|
+
onPressEnter: N
|
|
396
|
+
}, U, {
|
|
397
|
+
size: S,
|
|
398
|
+
onCompositionStart: W,
|
|
399
|
+
onCompositionEnd: J,
|
|
400
|
+
addonAfter: I,
|
|
401
|
+
suffix: v,
|
|
402
|
+
onChange: B,
|
|
403
|
+
disabled: C
|
|
404
|
+
}));
|
|
405
|
+
});
|
|
406
|
+
process.env.NODE_ENV !== "production" && (ce.displayName = "Search");
|
|
407
|
+
const K = Q;
|
|
408
|
+
K.Group = je;
|
|
409
|
+
K.Search = ce;
|
|
410
|
+
K.TextArea = Ee;
|
|
411
|
+
K.Password = ue;
|
|
412
|
+
K.OTP = De;
|
|
413
|
+
export {
|
|
414
|
+
K as I
|
|
415
|
+
};
|