@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,468 +1,60 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { TYPE as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, le = /* @__PURE__ */ s.forwardRef(ke);
|
|
23
|
-
process.env.NODE_ENV !== "production" && (le.displayName = "EyeInvisibleOutlined");
|
|
24
|
-
var Ae = { 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" }, Be = function(o, r) {
|
|
25
|
-
return /* @__PURE__ */ s.createElement(ue, re({}, o, {
|
|
26
|
-
ref: r,
|
|
27
|
-
icon: Ae
|
|
28
|
-
}));
|
|
29
|
-
}, ce = /* @__PURE__ */ s.forwardRef(Be);
|
|
30
|
-
process.env.NODE_ENV !== "production" && (ce.displayName = "EyeOutlined");
|
|
31
|
-
const Te = (e) => {
|
|
32
|
-
const {
|
|
33
|
-
getPrefixCls: o,
|
|
34
|
-
direction: r
|
|
35
|
-
} = ee(Q), {
|
|
36
|
-
prefixCls: n,
|
|
37
|
-
className: t
|
|
38
|
-
} = e, a = o("input-group", n), b = o("input"), [d, x] = we(b), v = q(a, {
|
|
39
|
-
[`${a}-lg`]: e.size === "large",
|
|
40
|
-
[`${a}-sm`]: e.size === "small",
|
|
41
|
-
[`${a}-compact`]: e.compact,
|
|
42
|
-
[`${a}-rtl`]: r === "rtl"
|
|
43
|
-
}, x, t), f = ee(X), p = me(() => Object.assign(Object.assign({}, f), {
|
|
44
|
-
isFormItemInput: !1
|
|
45
|
-
}), [f]);
|
|
46
|
-
return process.env.NODE_ENV !== "production" && se("Input.Group").deprecated(!1, "Input.Group", "Space.Compact"), d(/* @__PURE__ */ s.createElement("span", {
|
|
47
|
-
className: v,
|
|
48
|
-
style: e.style,
|
|
49
|
-
onMouseEnter: e.onMouseEnter,
|
|
50
|
-
onMouseLeave: e.onMouseLeave,
|
|
51
|
-
onFocus: e.onFocus,
|
|
52
|
-
onBlur: e.onBlur
|
|
53
|
-
}, /* @__PURE__ */ s.createElement(X.Provider, {
|
|
54
|
-
value: p
|
|
55
|
-
}, e.children)));
|
|
56
|
-
}, Ve = (e) => {
|
|
57
|
-
const {
|
|
58
|
-
componentCls: o,
|
|
59
|
-
paddingXS: r
|
|
60
|
-
} = e;
|
|
61
|
-
return {
|
|
62
|
-
[o]: {
|
|
63
|
-
display: "inline-flex",
|
|
64
|
-
alignItems: "center",
|
|
65
|
-
flexWrap: "nowrap",
|
|
66
|
-
columnGap: r,
|
|
67
|
-
"&-rtl": {
|
|
68
|
-
direction: "rtl"
|
|
69
|
-
},
|
|
70
|
-
[`${o}-input`]: {
|
|
71
|
-
textAlign: "center",
|
|
72
|
-
paddingInline: e.paddingXXS
|
|
73
|
-
},
|
|
74
|
-
// ================= Size =================
|
|
75
|
-
[`&${o}-sm ${o}-input`]: {
|
|
76
|
-
paddingInline: e.calc(e.paddingXXS).div(2).equal()
|
|
77
|
-
},
|
|
78
|
-
[`&${o}-lg ${o}-input`]: {
|
|
79
|
-
paddingInline: e.paddingXS
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}, De = be(["Input", "OTP"], (e) => {
|
|
84
|
-
const o = ve(e, Ee(e));
|
|
85
|
-
return [Ve(o)];
|
|
86
|
-
}, Pe);
|
|
87
|
-
var Fe = function(e, o) {
|
|
88
|
-
var r = {};
|
|
89
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (r[n] = e[n]);
|
|
90
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
91
|
-
o.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
92
|
-
return r;
|
|
93
|
-
};
|
|
94
|
-
const Le = /* @__PURE__ */ s.forwardRef((e, o) => {
|
|
95
|
-
const {
|
|
96
|
-
value: r,
|
|
97
|
-
onChange: n,
|
|
98
|
-
onActiveChange: t,
|
|
99
|
-
index: a,
|
|
100
|
-
mask: b
|
|
101
|
-
} = e, d = Fe(e, ["value", "onChange", "onActiveChange", "index", "mask"]), x = r && typeof b == "string" ? b : r, v = (m) => {
|
|
102
|
-
n(a, m.target.value);
|
|
103
|
-
}, f = s.useRef(null);
|
|
104
|
-
s.useImperativeHandle(o, () => f.current);
|
|
105
|
-
const p = () => {
|
|
106
|
-
xe(() => {
|
|
107
|
-
var m;
|
|
108
|
-
const y = (m = f.current) === null || m === void 0 ? void 0 : m.input;
|
|
109
|
-
document.activeElement === y && y && y.select();
|
|
110
|
-
});
|
|
111
|
-
}, I = (m) => {
|
|
112
|
-
const {
|
|
113
|
-
key: y,
|
|
114
|
-
ctrlKey: M,
|
|
115
|
-
metaKey: R
|
|
116
|
-
} = m;
|
|
117
|
-
y === "ArrowLeft" ? t(a - 1) : y === "ArrowRight" ? t(a + 1) : y === "z" && (M || R) && m.preventDefault(), p();
|
|
118
|
-
}, P = (m) => {
|
|
119
|
-
m.key === "Backspace" && !r && t(a - 1), p();
|
|
120
|
-
};
|
|
121
|
-
return /* @__PURE__ */ s.createElement(W, Object.assign({
|
|
122
|
-
type: b === !0 ? "password" : "text"
|
|
123
|
-
}, d, {
|
|
124
|
-
ref: f,
|
|
125
|
-
value: x,
|
|
126
|
-
onInput: v,
|
|
127
|
-
onFocus: p,
|
|
128
|
-
onKeyDown: I,
|
|
129
|
-
onKeyUp: P,
|
|
130
|
-
onMouseDown: p,
|
|
131
|
-
onMouseUp: p
|
|
132
|
-
}));
|
|
133
|
-
});
|
|
134
|
-
var Ke = function(e, o) {
|
|
135
|
-
var r = {};
|
|
136
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (r[n] = e[n]);
|
|
137
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
138
|
-
o.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
139
|
-
return r;
|
|
140
|
-
};
|
|
141
|
-
function U(e) {
|
|
142
|
-
return (e || "").split("");
|
|
143
|
-
}
|
|
144
|
-
const Ge = /* @__PURE__ */ s.forwardRef((e, o) => {
|
|
145
|
-
const {
|
|
146
|
-
prefixCls: r,
|
|
147
|
-
length: n = 6,
|
|
148
|
-
size: t,
|
|
149
|
-
defaultValue: a,
|
|
150
|
-
value: b,
|
|
151
|
-
onChange: d,
|
|
152
|
-
formatter: x,
|
|
153
|
-
variant: v,
|
|
154
|
-
disabled: f,
|
|
155
|
-
status: p,
|
|
156
|
-
autoFocus: I,
|
|
157
|
-
mask: P,
|
|
158
|
-
type: m,
|
|
159
|
-
onInput: y,
|
|
160
|
-
inputMode: M
|
|
161
|
-
} = e, R = Ke(e, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"]);
|
|
162
|
-
if (process.env.NODE_ENV !== "production") {
|
|
163
|
-
const i = se("Input.OTP");
|
|
164
|
-
process.env.NODE_ENV !== "production" && i(!(typeof P == "string" && P.length > 1), "usage", "`mask` prop should be a single character.");
|
|
165
|
-
}
|
|
166
|
-
const {
|
|
167
|
-
getPrefixCls: S,
|
|
168
|
-
direction: _
|
|
169
|
-
} = s.useContext(Q), w = S("otp", r), F = Se(R, {
|
|
170
|
-
aria: !0,
|
|
171
|
-
data: !0,
|
|
172
|
-
attr: !0
|
|
173
|
-
}), $ = Oe(w), [k, L, A] = De(w, $), h = ae((i) => t ?? i), z = s.useContext(X), N = _e(z.status, p), B = s.useMemo(() => Object.assign(Object.assign({}, z), {
|
|
174
|
-
status: N,
|
|
175
|
-
hasFeedback: !1,
|
|
176
|
-
feedbackIcon: null
|
|
177
|
-
}), [z, N]), E = s.useRef(null), O = s.useRef({});
|
|
178
|
-
s.useImperativeHandle(o, () => ({
|
|
179
|
-
focus: () => {
|
|
180
|
-
var i;
|
|
181
|
-
(i = O.current[0]) === null || i === void 0 || i.focus();
|
|
182
|
-
},
|
|
183
|
-
blur: () => {
|
|
184
|
-
var i;
|
|
185
|
-
for (let l = 0; l < n; l += 1)
|
|
186
|
-
(i = O.current[l]) === null || i === void 0 || i.blur();
|
|
187
|
-
},
|
|
188
|
-
nativeElement: E.current
|
|
189
|
-
}));
|
|
190
|
-
const K = (i) => x ? x(i) : i, [G, H] = s.useState(U(K(a || "")));
|
|
191
|
-
s.useEffect(() => {
|
|
192
|
-
b !== void 0 && H(U(b));
|
|
193
|
-
}, [b]);
|
|
194
|
-
const Y = ne((i) => {
|
|
195
|
-
H(i), y && y(i), d && i.length === n && i.every((l) => l) && i.some((l, c) => G[c] !== l) && d(i.join(""));
|
|
196
|
-
}), J = ne((i, l) => {
|
|
197
|
-
let c = ye(G);
|
|
198
|
-
for (let C = 0; C < i; C += 1)
|
|
199
|
-
c[C] || (c[C] = "");
|
|
200
|
-
l.length <= 1 ? c[i] = l : c = c.slice(0, i).concat(U(l)), c = c.slice(0, n);
|
|
201
|
-
for (let C = c.length - 1; C >= 0 && !c[C]; C -= 1)
|
|
202
|
-
c.pop();
|
|
203
|
-
const T = K(c.map((C) => C || " ").join(""));
|
|
204
|
-
return c = U(T).map((C, Z) => C === " " && !c[Z] ? c[Z] : C), c;
|
|
205
|
-
}), u = (i, l) => {
|
|
206
|
-
var c;
|
|
207
|
-
const T = J(i, l), C = Math.min(i + l.length, n - 1);
|
|
208
|
-
C !== i && T[i] !== void 0 && ((c = O.current[C]) === null || c === void 0 || c.focus()), Y(T);
|
|
209
|
-
}, g = (i) => {
|
|
210
|
-
var l;
|
|
211
|
-
(l = O.current[i]) === null || l === void 0 || l.focus();
|
|
212
|
-
}, j = {
|
|
213
|
-
variant: v,
|
|
214
|
-
disabled: f,
|
|
215
|
-
status: N,
|
|
216
|
-
mask: P,
|
|
217
|
-
type: m,
|
|
218
|
-
inputMode: M
|
|
219
|
-
};
|
|
220
|
-
return k(/* @__PURE__ */ s.createElement("div", Object.assign({}, F, {
|
|
221
|
-
ref: E,
|
|
222
|
-
className: q(w, {
|
|
223
|
-
[`${w}-sm`]: h === "small",
|
|
224
|
-
[`${w}-lg`]: h === "large",
|
|
225
|
-
[`${w}-rtl`]: _ === "rtl"
|
|
226
|
-
}, A, L)
|
|
227
|
-
}), /* @__PURE__ */ s.createElement(X.Provider, {
|
|
228
|
-
value: B
|
|
229
|
-
}, Array.from({
|
|
230
|
-
length: n
|
|
231
|
-
}).map((i, l) => {
|
|
232
|
-
const c = `otp-${l}`, T = G[l] || "";
|
|
233
|
-
return /* @__PURE__ */ s.createElement(Le, Object.assign({
|
|
234
|
-
ref: (C) => {
|
|
235
|
-
O.current[l] = C;
|
|
236
|
-
},
|
|
237
|
-
key: c,
|
|
238
|
-
index: l,
|
|
239
|
-
size: h,
|
|
240
|
-
htmlSize: 1,
|
|
241
|
-
className: `${w}-input`,
|
|
242
|
-
onChange: u,
|
|
243
|
-
value: T,
|
|
244
|
-
onActiveChange: g,
|
|
245
|
-
autoFocus: l === 0 && I
|
|
246
|
-
}, j));
|
|
247
|
-
}))));
|
|
248
|
-
});
|
|
249
|
-
var He = function(e, o) {
|
|
250
|
-
var r = {};
|
|
251
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (r[n] = e[n]);
|
|
252
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
253
|
-
o.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
254
|
-
return r;
|
|
255
|
-
};
|
|
256
|
-
const Ue = (e) => e ? /* @__PURE__ */ s.createElement(ce, null) : /* @__PURE__ */ s.createElement(le, null), Xe = {
|
|
257
|
-
click: "onClick",
|
|
258
|
-
hover: "onMouseOver"
|
|
259
|
-
}, de = /* @__PURE__ */ s.forwardRef((e, o) => {
|
|
260
|
-
const {
|
|
261
|
-
disabled: r,
|
|
262
|
-
action: n = "click",
|
|
263
|
-
visibilityToggle: t = !0,
|
|
264
|
-
iconRender: a = Ue
|
|
265
|
-
} = e, b = s.useContext(he), d = r ?? b, x = typeof t == "object" && t.visible !== void 0, [v, f] = ge(() => x ? t.visible : !1), p = Ce(null);
|
|
266
|
-
s.useEffect(() => {
|
|
267
|
-
x && f(t.visible);
|
|
268
|
-
}, [x, t]);
|
|
269
|
-
const I = $e(p), P = () => {
|
|
270
|
-
var h;
|
|
271
|
-
if (d)
|
|
272
|
-
return;
|
|
273
|
-
v && I();
|
|
274
|
-
const z = !v;
|
|
275
|
-
f(z), typeof t == "object" && ((h = t.onVisibleChange) === null || h === void 0 || h.call(t, z));
|
|
276
|
-
}, m = (h) => {
|
|
277
|
-
const z = Xe[n] || "", N = a(v), B = {
|
|
278
|
-
[z]: P,
|
|
279
|
-
className: `${h}-icon`,
|
|
280
|
-
key: "passwordIcon",
|
|
281
|
-
onMouseDown: (E) => {
|
|
282
|
-
E.preventDefault();
|
|
283
|
-
},
|
|
284
|
-
onMouseUp: (E) => {
|
|
285
|
-
E.preventDefault();
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
return /* @__PURE__ */ s.cloneElement(/* @__PURE__ */ s.isValidElement(N) ? N : /* @__PURE__ */ s.createElement("span", null, N), B);
|
|
289
|
-
}, {
|
|
290
|
-
className: y,
|
|
291
|
-
prefixCls: M,
|
|
292
|
-
inputPrefixCls: R,
|
|
293
|
-
size: S
|
|
294
|
-
} = e, _ = He(e, ["className", "prefixCls", "inputPrefixCls", "size"]), {
|
|
295
|
-
getPrefixCls: w
|
|
296
|
-
} = s.useContext(Q), F = w("input", R), $ = w("input-password", M), k = t && m($), L = q($, y, {
|
|
297
|
-
[`${$}-${S}`]: !!S
|
|
298
|
-
}), A = Object.assign(Object.assign({}, Ne(_, ["suffix", "iconRender", "visibilityToggle"])), {
|
|
299
|
-
type: v ? "text" : "password",
|
|
300
|
-
className: L,
|
|
301
|
-
prefixCls: F,
|
|
302
|
-
suffix: k
|
|
303
|
-
});
|
|
304
|
-
return S && (A.size = S), /* @__PURE__ */ s.createElement(W, Object.assign({
|
|
305
|
-
ref: ie(o, p)
|
|
306
|
-
}, A));
|
|
307
|
-
});
|
|
308
|
-
process.env.NODE_ENV !== "production" && (de.displayName = "Input.Password");
|
|
309
|
-
var qe = function(e, o) {
|
|
310
|
-
var r = {};
|
|
311
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (r[n] = e[n]);
|
|
312
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
|
|
313
|
-
o.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
|
|
314
|
-
return r;
|
|
315
|
-
};
|
|
316
|
-
const fe = /* @__PURE__ */ s.forwardRef((e, o) => {
|
|
317
|
-
const {
|
|
318
|
-
prefixCls: r,
|
|
319
|
-
inputPrefixCls: n,
|
|
320
|
-
className: t,
|
|
321
|
-
size: a,
|
|
322
|
-
suffix: b,
|
|
323
|
-
enterButton: d = !1,
|
|
324
|
-
addonAfter: x,
|
|
325
|
-
loading: v,
|
|
326
|
-
disabled: f,
|
|
327
|
-
onSearch: p,
|
|
328
|
-
onChange: I,
|
|
329
|
-
onCompositionStart: P,
|
|
330
|
-
onCompositionEnd: m
|
|
331
|
-
} = e, y = qe(e, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]), {
|
|
332
|
-
getPrefixCls: M,
|
|
333
|
-
direction: R
|
|
334
|
-
} = s.useContext(Q), S = s.useRef(!1), _ = M("input-search", r), w = M("input", n), {
|
|
335
|
-
compactSize: F
|
|
336
|
-
} = ze(_, R), $ = ae((u) => {
|
|
337
|
-
var g;
|
|
338
|
-
return (g = a ?? F) !== null && g !== void 0 ? g : u;
|
|
339
|
-
}), k = s.useRef(null), L = (u) => {
|
|
340
|
-
u != null && u.target && u.type === "click" && p && p(u.target.value, u, {
|
|
341
|
-
source: "clear"
|
|
342
|
-
}), I == null || I(u);
|
|
343
|
-
}, A = (u) => {
|
|
344
|
-
var g;
|
|
345
|
-
document.activeElement === ((g = k.current) === null || g === void 0 ? void 0 : g.input) && u.preventDefault();
|
|
346
|
-
}, h = (u) => {
|
|
347
|
-
var g, j;
|
|
348
|
-
p && p((j = (g = k.current) === null || g === void 0 ? void 0 : g.input) === null || j === void 0 ? void 0 : j.value, u, {
|
|
349
|
-
source: "input"
|
|
350
|
-
});
|
|
351
|
-
}, z = (u) => {
|
|
352
|
-
S.current || v || h(u);
|
|
353
|
-
}, N = typeof d == "boolean" ? /* @__PURE__ */ s.createElement(je, null) : null, B = `${_}-button`;
|
|
354
|
-
let E;
|
|
355
|
-
const O = d || {}, K = O.type && O.type.__ANT_BUTTON === !0;
|
|
356
|
-
K || O.type === "button" ? E = te(O, Object.assign({
|
|
357
|
-
onMouseDown: A,
|
|
358
|
-
onClick: (u) => {
|
|
359
|
-
var g, j;
|
|
360
|
-
(j = (g = O == null ? void 0 : O.props) === null || g === void 0 ? void 0 : g.onClick) === null || j === void 0 || j.call(g, u), h(u);
|
|
361
|
-
},
|
|
362
|
-
key: "enterButton"
|
|
363
|
-
}, K ? {
|
|
364
|
-
className: B,
|
|
365
|
-
size: $
|
|
366
|
-
} : {})) : E = /* @__PURE__ */ s.createElement(Me, {
|
|
367
|
-
className: B,
|
|
368
|
-
type: d ? "primary" : void 0,
|
|
369
|
-
size: $,
|
|
370
|
-
disabled: f,
|
|
371
|
-
key: "enterButton",
|
|
372
|
-
onMouseDown: A,
|
|
373
|
-
onClick: h,
|
|
374
|
-
loading: v,
|
|
375
|
-
icon: N
|
|
376
|
-
}, d), x && (E = [E, te(x, {
|
|
377
|
-
key: "addonAfter"
|
|
378
|
-
})]);
|
|
379
|
-
const G = q(_, {
|
|
380
|
-
[`${_}-rtl`]: R === "rtl",
|
|
381
|
-
[`${_}-${$}`]: !!$,
|
|
382
|
-
[`${_}-with-button`]: !!d
|
|
383
|
-
}, t), H = Object.assign(Object.assign({}, y), {
|
|
384
|
-
className: G,
|
|
385
|
-
prefixCls: w,
|
|
386
|
-
type: "search"
|
|
387
|
-
}), Y = (u) => {
|
|
388
|
-
S.current = !0, P == null || P(u);
|
|
389
|
-
}, J = (u) => {
|
|
390
|
-
S.current = !1, m == null || m(u);
|
|
391
|
-
};
|
|
392
|
-
return /* @__PURE__ */ s.createElement(W, Object.assign({
|
|
393
|
-
ref: ie(k, o),
|
|
394
|
-
onPressEnter: z
|
|
395
|
-
}, H, {
|
|
396
|
-
size: $,
|
|
397
|
-
onCompositionStart: Y,
|
|
398
|
-
onCompositionEnd: J,
|
|
399
|
-
addonAfter: E,
|
|
400
|
-
suffix: b,
|
|
401
|
-
onChange: L,
|
|
402
|
-
disabled: f
|
|
403
|
-
}));
|
|
404
|
-
});
|
|
405
|
-
process.env.NODE_ENV !== "production" && (fe.displayName = "Search");
|
|
406
|
-
const D = W;
|
|
407
|
-
D.Group = Te;
|
|
408
|
-
D.Search = fe;
|
|
409
|
-
D.TextArea = Ie;
|
|
410
|
-
D.Password = de;
|
|
411
|
-
D.OTP = Ge;
|
|
412
|
-
const Qe = (e, o, r) => {
|
|
413
|
-
const n = {
|
|
414
|
-
color: e.inputs.onsurface.active,
|
|
415
|
-
borderColor: e[oe.secondary].active.borderColor,
|
|
416
|
-
ringColor: e[o].focussed.ringColor
|
|
417
|
-
}, t = {
|
|
418
|
-
color: e.status.success.default,
|
|
419
|
-
borderColor: e.status.success.default,
|
|
420
|
-
ringColor: e.status.success.ringColor
|
|
421
|
-
}, a = {
|
|
422
|
-
color: e.status.error.default,
|
|
423
|
-
borderColor: e.status.error.default,
|
|
424
|
-
ringColor: e.status.error.ringColor
|
|
425
|
-
}, b = r !== V.error && r !== V.success && r !== V.filled ? {
|
|
426
|
-
color: e.inputs.onsurface.active,
|
|
427
|
-
backgroundColor: e.inputs.surface.active,
|
|
428
|
-
borderColor: e.inputs.surface.border,
|
|
429
|
-
ringColor: e[o][r].ringColor
|
|
1
|
+
import { d as l } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
import { TYPE as c, STATE as i } from "../../constants/index.js";
|
|
3
|
+
import { I as g } from "../../index-hoPiccJv.js";
|
|
4
|
+
const x = (o, n, t) => {
|
|
5
|
+
const r = {
|
|
6
|
+
color: o.inputs.onsurface.active,
|
|
7
|
+
borderColor: o[c.secondary].active.borderColor,
|
|
8
|
+
ringColor: o[n].focussed.ringColor
|
|
9
|
+
}, s = {
|
|
10
|
+
color: o.status.success.default,
|
|
11
|
+
borderColor: o.status.success.default,
|
|
12
|
+
ringColor: o.status.success.ringColor
|
|
13
|
+
}, u = {
|
|
14
|
+
color: o.status.error.default,
|
|
15
|
+
borderColor: o.status.error.default,
|
|
16
|
+
ringColor: o.status.error.ringColor
|
|
17
|
+
}, a = t !== i.error && t !== i.success && t !== i.filled ? {
|
|
18
|
+
color: o.inputs.onsurface.active,
|
|
19
|
+
backgroundColor: o.inputs.surface.active,
|
|
20
|
+
borderColor: o.inputs.surface.border,
|
|
21
|
+
ringColor: o[n][t].ringColor
|
|
430
22
|
} : null;
|
|
431
23
|
return {
|
|
432
|
-
filled:
|
|
433
|
-
error:
|
|
434
|
-
success:
|
|
435
|
-
themeState:
|
|
436
|
-
}[((
|
|
437
|
-
},
|
|
438
|
-
const
|
|
24
|
+
filled: r,
|
|
25
|
+
error: u,
|
|
26
|
+
success: s,
|
|
27
|
+
themeState: a
|
|
28
|
+
}[((d) => [i.filled, i.error, i.success].includes(d) ? d : "themeState")(t)];
|
|
29
|
+
}, b = ({ colors: o, borderRadius: n, components: t }, r, s, u, a) => {
|
|
30
|
+
const e = x(o, r, s), p = (f, d) => d && !f ? `${n.BorderRadiusMd}px 0px 0px ${n.BorderRadiusMd}px` : f && !d ? `0px ${n.BorderRadiusMd}px ${n.BorderRadiusMd}px 0px` : "0px";
|
|
439
31
|
return `
|
|
440
32
|
&.ant-input {
|
|
441
33
|
font-family: 'Inter', sans-serif;
|
|
442
|
-
color: ${
|
|
443
|
-
border-color: ${
|
|
34
|
+
color: ${e.color};
|
|
35
|
+
border-color: ${e.borderColor};
|
|
444
36
|
}
|
|
445
37
|
|
|
446
38
|
.ant-input-group & {
|
|
447
39
|
&:focus-within {
|
|
448
40
|
outline: none;
|
|
449
|
-
color: ${
|
|
41
|
+
color: ${e.color};
|
|
450
42
|
box-shadow: none;
|
|
451
|
-
border-color: ${
|
|
43
|
+
border-color: ${o[r].focussed.borderColor};
|
|
452
44
|
}
|
|
453
45
|
}
|
|
454
46
|
|
|
455
47
|
.ant-input-group:focus-within {
|
|
456
48
|
outline: none;
|
|
457
|
-
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${
|
|
458
|
-
border-radius: ${
|
|
49
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${o[r].focussed.ringColor};
|
|
50
|
+
border-radius: ${n.BorderRadiusMd}px;
|
|
459
51
|
transition: box-shadow 0.2s ease-in-out;
|
|
460
52
|
|
|
461
53
|
/* Hide focus styles on inner input when parent is focused */
|
|
462
54
|
.ant-input:focus-within {
|
|
463
55
|
box-shadow: none;
|
|
464
56
|
border-radius: 0;
|
|
465
|
-
border-radius: ${
|
|
57
|
+
border-radius: ${p(u, a)};
|
|
466
58
|
border-color: #ddd;
|
|
467
59
|
}
|
|
468
60
|
}
|
|
@@ -473,57 +65,57 @@ const Qe = (e, o, r) => {
|
|
|
473
65
|
.ant-input-group .ant-input:focus-within {
|
|
474
66
|
outline: none;
|
|
475
67
|
box-shadow: none;
|
|
476
|
-
border-color: ${
|
|
68
|
+
border-color: ${o[r].focussed.borderColor};
|
|
477
69
|
}
|
|
478
70
|
|
|
479
71
|
/* Single focus ring on group */
|
|
480
72
|
.ant-input-group:focus-within {
|
|
481
73
|
outline: none;
|
|
482
|
-
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${
|
|
483
|
-
border-radius: ${
|
|
74
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${o[r].focussed.ringColor};
|
|
75
|
+
border-radius: ${n.BorderRadiusMd}px;
|
|
484
76
|
transition: box-shadow 0.2s ease-in-out;
|
|
485
77
|
}
|
|
486
78
|
|
|
487
79
|
/* Remove focus styles for standalone inputs */
|
|
488
80
|
&:not(.ant-input-group):focus-visible {
|
|
489
81
|
outline: none;
|
|
490
|
-
color: ${
|
|
491
|
-
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${
|
|
492
|
-
border-radius: ${
|
|
493
|
-
border-color: ${
|
|
82
|
+
color: ${e.color};
|
|
83
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${o[r].focussed.ringColor};
|
|
84
|
+
border-radius: ${n.BorderRadiusMd}px;
|
|
85
|
+
border-color: ${o[r].focussed.borderColor};
|
|
494
86
|
transition: box-shadow 0.2s ease-in-out;
|
|
495
87
|
}
|
|
496
88
|
|
|
497
89
|
&:not(.ant-input-group .ant-input):focus-visible {
|
|
498
90
|
outline: none;
|
|
499
|
-
color: ${
|
|
500
|
-
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${
|
|
501
|
-
border-radius: ${
|
|
502
|
-
border-color: ${
|
|
91
|
+
color: ${e.color};
|
|
92
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${o[r].focussed.ringColor};
|
|
93
|
+
border-radius: ${n.BorderRadiusMd}px;
|
|
94
|
+
border-color: ${o[r].focussed.borderColor};
|
|
503
95
|
transition: box-shadow 0.2s ease-in-out;
|
|
504
96
|
}
|
|
505
97
|
|
|
506
98
|
&.ant-input-group-wrapper {
|
|
507
99
|
.ant-input-group-addon {
|
|
508
|
-
padding-left: ${
|
|
509
|
-
padding-right: ${
|
|
510
|
-
padding-top: ${
|
|
511
|
-
padding-bottom: ${
|
|
100
|
+
padding-left: ${t.input.suffixPrefixHorPadding};
|
|
101
|
+
padding-right: ${t.input.suffixPrefixHorPadding};
|
|
102
|
+
padding-top: ${t.input.suffixPrefixVerPadding};
|
|
103
|
+
padding-bottom: ${t.input.suffixPrefixVerPadding};
|
|
512
104
|
}
|
|
513
105
|
}
|
|
514
106
|
`;
|
|
515
|
-
},
|
|
516
|
-
${({ theme:
|
|
517
|
-
const
|
|
518
|
-
return
|
|
519
|
-
e,
|
|
520
|
-
r,
|
|
107
|
+
}, v = l(g)`
|
|
108
|
+
${({ theme: o, state: n, type: t = c.primary, ...r }) => {
|
|
109
|
+
const s = !!r.addonBefore, u = !!r.addonAfter;
|
|
110
|
+
return b(
|
|
521
111
|
o,
|
|
522
112
|
t,
|
|
523
|
-
|
|
113
|
+
n,
|
|
114
|
+
s,
|
|
115
|
+
u
|
|
524
116
|
);
|
|
525
117
|
}}
|
|
526
118
|
`;
|
|
527
119
|
export {
|
|
528
|
-
|
|
120
|
+
v as Input
|
|
529
121
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ContentProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
isColumn?: boolean;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
export declare const Content: ({ children, className, backgroundColor, isColumn, style, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Content;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Content as a } from "./styles.js";
|
|
3
|
+
function s(t) {
|
|
4
|
+
var n, o, r = "";
|
|
5
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
6
|
+
else if (typeof t == "object") if (Array.isArray(t)) for (n = 0; n < t.length; n++) t[n] && (o = s(t[n])) && (r && (r += " "), r += o);
|
|
7
|
+
else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
8
|
+
return r;
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
for (var t, n, o = 0, r = ""; o < arguments.length; ) (t = arguments[o++]) && (n = s(t)) && (r && (r += " "), r += n);
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
const m = ({
|
|
15
|
+
children: t,
|
|
16
|
+
className: n,
|
|
17
|
+
backgroundColor: o,
|
|
18
|
+
isColumn: r,
|
|
19
|
+
style: f
|
|
20
|
+
}) => /* @__PURE__ */ e(
|
|
21
|
+
a,
|
|
22
|
+
{
|
|
23
|
+
className: i(n),
|
|
24
|
+
style: { ...f, backgroundColor: o },
|
|
25
|
+
$isColumn: r,
|
|
26
|
+
children: t
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
export {
|
|
30
|
+
m as Content,
|
|
31
|
+
m as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ResponsiveContentProps {
|
|
2
|
+
total?: number;
|
|
3
|
+
backgroundColor?: string;
|
|
4
|
+
isSidebar?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const ResponsiveContent: ({ total, backgroundColor, isSidebar, }: ResponsiveContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ResponsiveContent;
|