@gobolt/genesis 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/AntdIcon-DH0CLM1Y.cjs +58 -0
- package/dist/CSSMotionList-BkQaDrZL.cjs +54 -0
- package/dist/CSSMotionList-Bnxp3McO.js +3043 -0
- package/dist/CheckCircleFilled-CjHdYIbm.cjs +1 -0
- package/dist/CheckOutlined-zCdr5BJm.cjs +1 -0
- package/dist/ClockCircleOutlined-5UFb32Vd.cjs +1 -0
- package/dist/CloseCircleFilled-DTf4XAEx.cjs +1 -0
- package/dist/CloseOutlined-Bdhtz5G6.cjs +1 -0
- package/dist/{Compact-DFcWZrNo.js → Compact-DLyEiUiM.js} +4 -4
- package/dist/Compact-DbbroFuI.cjs +1 -0
- package/dist/Context-C1u4yclk.cjs +1 -0
- package/dist/ContextIsolator-CoEIkMNv.cjs +1 -0
- package/dist/{ContextIsolator-CUJnq-4F.js → ContextIsolator-DmNIEQ4a.js} +2 -2
- package/dist/{DownOutlined-Bv7ua5i8.js → DownOutlined-B6sv2Wz7.js} +5 -5
- package/dist/DownOutlined-BQeYXxEW.cjs +4 -0
- package/dist/EllipsisOutlined-41dQ6mc7.cjs +1 -0
- package/dist/{EllipsisOutlined-BodkguEc.js → EllipsisOutlined-p42n6YT6.js} +62 -61
- package/dist/ExclamationCircleFilled-CKIE3287.cjs +1 -0
- package/dist/{Input--qsU-6vp.js → Input-BQWrpo9X.js} +10 -10
- package/dist/Input-DR_AoU5d.cjs +1 -0
- package/dist/KeyCode-CIq7HTTY.cjs +1 -0
- package/dist/Keyframes-CLS7wZIp.cjs +1 -0
- package/dist/{Keyframes-CyO2Aeq-.js → Keyframes-DIF9LGg-.js} +1 -1
- package/dist/LoadingOutlined-ByLc1sSe.cjs +1 -0
- package/dist/MinusCircleOutlined-d1WYK6RE.cjs +1 -0
- package/dist/{Overflow-CVbsx7Gn.js → Overflow-BjFvsSs4.js} +60 -59
- package/dist/Overflow-Bthkof3a.cjs +4 -0
- package/dist/SearchOutlined-BzV3qXvi.cjs +1 -0
- package/dist/{Skeleton-CudViN0a.js → Skeleton-CUGMlCIU.js} +3 -3
- package/dist/Skeleton-DJMABrvW.cjs +8 -0
- package/dist/TextArea-B8UHj7uQ.cjs +15 -0
- package/dist/{TextArea-CHo3cxKw.js → TextArea-FhT_niDe.js} +11 -11
- package/dist/{Typography-8BO7aTuQ.js → Typography-BKm8uXM1.js} +52 -51
- package/dist/Typography-DCxwDJFP.cjs +10 -0
- package/dist/_baseIsEqual-DnZ6AoVd.cjs +1 -0
- package/dist/_commonjsHelpers-BTDuMlIz.cjs +1 -0
- package/dist/asyncToGenerator-Dr7BhN2C.cjs +1 -0
- package/dist/{button-CYVlK7G0.js → button-CvcGKj7O.js} +31 -31
- package/dist/button-vyLzOdPi.cjs +1 -0
- package/dist/collapse-DNCMuTyD.cjs +3 -0
- package/dist/compact-item-B2FiQh6y.cjs +1 -0
- package/dist/components/Avatar/Avatar.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Avatar/index.cjs.js +1 -0
- package/dist/components/Avatar/index.es.js +4 -0
- package/dist/components/Avatar/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
- package/dist/components/Avatar/styles.d.ts +1 -12
- package/dist/components/Badge/Badge.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Badge/Badge.d.ts +4 -1
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +1 -0
- package/dist/components/Badge/__tests__/Badge.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Badge/index.cjs.js +1 -0
- package/dist/components/Badge/index.es.js +4 -0
- package/dist/components/Badge/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +10 -14
- package/dist/components/Badge/styles.d.ts +1 -8
- package/dist/components/Breadcrumb/Breadcrumb.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Breadcrumb/index.cjs.js +1 -0
- package/dist/components/Breadcrumb/index.es.js +4 -0
- package/dist/components/Breadcrumb/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +60 -0
- package/dist/components/Breadcrumb/styles.d.ts +2 -23
- package/dist/components/Button/Button.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Button/IconButton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Button/UtilityButton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Button/__stories__/UtilityButton.stories.d.ts +2 -1
- package/dist/components/Button/__tests__/Button.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Button/{icon-button-styles.js → icon-button-styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +12 -16
- package/dist/components/Button/icon-button-styles.d.ts +1 -12
- package/dist/components/Button/index.cjs.js +1 -0
- package/dist/components/Button/index.es.js +8 -0
- package/dist/components/Button/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +14 -22
- package/dist/components/Button/styles.d.ts +1 -16
- package/dist/components/Card/Card.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Card/__tests__/Card.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Card/index.cjs.js +1 -0
- package/dist/components/Card/index.es.js +4 -0
- package/dist/components/Card/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Card/styles.d.ts +1 -10
- package/dist/components/Checkbox/Checkbox.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Checkbox/index.cjs.js +1 -0
- package/dist/components/Checkbox/index.es.js +4 -0
- package/dist/components/Checkbox/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +17 -23
- package/dist/components/Checkbox/styles.d.ts +2 -7
- package/dist/components/Dashboard/Dashboard.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.[format === /"es/" ? /"js/" : /"cjs/"]" +2 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Dashboard/index.cjs.js +1 -0
- package/dist/components/Dashboard/index.es.js +4 -0
- package/dist/components/Dashboard/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Dashboard/styles.d.ts +1 -8
- package/dist/components/DatePicker/DatePicker.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/DatePicker/index.cjs.js +1 -0
- package/dist/components/DatePicker/index.es.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/DateRangePicker/index.cjs.js +1 -0
- package/dist/components/DateRangePicker/index.es.js +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/ErrorBoundary/index.cjs.js +1 -0
- package/dist/components/ErrorBoundary/index.es.js +4 -0
- package/dist/components/ErrorBoundary/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/ErrorBoundary/styles.d.ts +1 -8
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/ErrorBoundaryFallback/index.cjs.js +1 -0
- package/dist/components/ErrorBoundaryFallback/index.es.js +4 -0
- package/dist/components/ErrorBoundaryFallback/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +11 -0
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -1
- package/dist/components/Form/Form.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Form/__stories__/FormStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Form/__tests__/form.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Form/index.cjs.js +1 -0
- package/dist/components/Form/index.es.js +4 -0
- package/dist/components/Form/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Glyph/Glyph.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Glyph/index.cjs.js +1 -0
- package/dist/components/Glyph/index.es.js +4 -0
- package/dist/components/Glyph/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Glyph/styles.d.ts +1 -8
- package/dist/components/Input/Input.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Input/Input.d.ts +3 -2
- package/dist/components/Input/__stories__/Input.stories.d.ts +1 -0
- package/dist/components/Input/__tests__/Input.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Input/index.cjs.js +1 -0
- package/dist/components/Input/index.es.js +4 -0
- package/dist/components/Input/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Input/styles.d.ts +1 -15
- package/dist/components/Layout/Content/Content.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/Content/ResponsiveContent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/Content/index.cjs.js +1 -0
- package/dist/components/Layout/Content/index.es.js +4 -0
- package/dist/components/Layout/Content/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +11 -0
- package/dist/components/Layout/Content/styles.d.ts +1 -7
- package/dist/components/Layout/Layout.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/MainLayout/MainLayout.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/MainLayout/index.cjs.js +1 -0
- package/dist/components/Layout/MainLayout/index.es.js +4 -0
- package/dist/components/Layout/MainLayout/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +62 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -4
- package/dist/components/Layout/__tests__/Layout.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Layout/index.cjs.js +1 -0
- package/dist/components/Layout/index.es.js +4 -0
- package/dist/components/Message/Message.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Message/__tests__/Message.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Message/index.cjs.js +1 -0
- package/dist/components/Message/index.es.js +4 -0
- package/dist/components/Message/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +38 -0
- package/dist/components/Message/styles.d.ts +3 -9
- package/dist/components/Notification/Notification.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/ASN.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Appointment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Inventory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Parcel.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Product.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Route.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/Shipment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/icons/System.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/NotificationBadge/index.cjs.js +1 -0
- package/dist/components/Notification/NotificationBadge/index.es.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +28 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -3
- package/dist/components/Notification/NotificationRightChevron.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/__tests__/Notification.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Notification/index.cjs.js +1 -0
- package/dist/components/Notification/index.es.js +4 -0
- package/dist/components/Notification/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +56 -0
- package/dist/components/Notification/styles.d.ts +5 -16
- package/dist/components/Popover/Popover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Popover/__tests__/Popover.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Popover/index.cjs.js +1 -0
- package/dist/components/Popover/index.es.js +4 -0
- package/dist/components/Popover/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Popover/styles.d.ts +1 -13
- package/dist/components/Progress/Progress.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Progress/Progress.util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Progress/ProgressText.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Progress/__tests__/Progress.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Progress/index.cjs.js +1 -0
- package/dist/components/Progress/index.es.js +4 -0
- package/dist/components/Progress/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
- package/dist/components/Progress/styles.d.ts +1 -13
- package/dist/components/Radio/Radio.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/Radio.d.ts +1 -4
- package/dist/components/Radio/RadioGroup.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/index.cjs.js +1 -0
- package/dist/components/Radio/index.es.js +4 -0
- package/dist/components/Radio/states/RadioChecked.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioCheckedHover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioUnchecked.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Radio/states/RadioUncheckedHover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/Row.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/RowActions/RowActions.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/RowActions/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +4 -9
- package/dist/components/Row/RowActions/styles.d.ts +2 -2
- package/dist/components/Row/RowLabelValue/RowLabelValue.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/RowLabelValue/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +18 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +2 -12
- package/dist/components/Row/__tests__/Row.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Row/index.cjs.js +1 -0
- package/dist/components/Row/index.es.js +4 -0
- package/dist/components/Row/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +10 -0
- package/dist/components/Row/styles.d.ts +1 -9
- package/dist/components/SegmentedControls/SegmentedControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/SegmentedControls/index.cjs.js +1 -0
- package/dist/components/SegmentedControls/index.es.js +4 -0
- package/dist/components/SegmentedControls/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +22 -0
- package/dist/components/SegmentedControls/styles.d.ts +1 -9
- package/dist/components/Select/DropdownChevron.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Select/Select.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Select/Select.d.ts +5 -2
- package/dist/components/Select/__stories__/Select.stories.d.ts +1 -0
- package/dist/components/Select/__tests__/Select.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Select/index.cjs.js +1 -0
- package/dist/components/Select/index.es.js +4 -0
- package/dist/components/Select/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +129 -0
- package/dist/components/Select/styles.d.ts +5 -21
- package/dist/components/Shapes/Shapes.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Shapes/index.cjs.js +1 -0
- package/dist/components/Shapes/index.es.js +4 -0
- package/dist/components/Shapes/variants/Circle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Shapes/variants/Rectangle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Shapes/variants/Triangle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Switch/Switch.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Switch/__tests__/Switch.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Switch/index.cjs.js +1 -0
- package/dist/components/Switch/index.es.js +4 -0
- package/dist/components/Switch/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +58 -0
- package/dist/components/Switch/styles.d.ts +1 -7
- package/dist/components/Table/Table.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/Table.d.ts +40 -11
- package/dist/components/Table/TableControls/PrimaryTableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableControls/PrimaryTableControls.d.ts +15 -0
- package/dist/components/Table/TableControls/SecondaryTableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableControls/SecondaryTableControls.d.ts +10 -0
- package/dist/components/Table/TableControls/TableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableControls/TableControls.d.ts +8 -0
- package/dist/components/Table/TableControls/__stories__/TableControls.stories.d.ts +6 -0
- package/dist/components/Table/TableControls/__tests__/TableControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableControls/index.cjs.js +1 -0
- package/dist/components/Table/TableControls/index.d.ts +2 -0
- package/dist/components/Table/TableControls/index.es.js +4 -0
- package/dist/components/Table/TableControls/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
- package/dist/components/Table/TableControls/styles.d.ts +6 -0
- package/dist/components/Table/TableWithControls/TableWithControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableWithControls/TableWithControls.d.ts +12 -0
- package/dist/components/Table/TableWithControls/__stories__/TableWithControls.stories.d.ts +6 -0
- package/dist/components/Table/TableWithControls/__stories__/TableWithControlsStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableWithControls/__stories__/TableWithControlsStory.d.ts +1 -0
- package/dist/components/Table/TableWithControls/__tests__/TableWithControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/TableWithControls/__tests__/TableWithControls.test.d.ts +1 -0
- package/dist/components/Table/TableWithControls/index.cjs.js +1 -0
- package/dist/components/Table/TableWithControls/index.d.ts +2 -0
- package/dist/components/Table/TableWithControls/index.es.js +4 -0
- package/dist/components/Table/__mocks__/table-mocks.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +2 -1
- package/dist/components/Table/__stories__/GenesisTable.stories.d.ts +3 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +3 -1
- package/dist/components/Table/__stories__/use-table-hook.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/__stories__/use-table-hook.d.ts +9 -0
- package/dist/components/Table/__tests__/Table.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/index.cjs.js +1 -0
- package/dist/components/Table/index.es.js +4 -0
- package/dist/components/Table/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/use-table-hook.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Table/use-table-hook.d.ts +23 -0
- package/dist/components/Tabs/Tabs.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tabs/index.cjs.js +1 -0
- package/dist/components/Tabs/index.es.js +4 -0
- package/dist/components/Tabs/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +4 -10
- package/dist/components/Tabs/styles.d.ts +1 -9
- package/dist/components/Tile/Tile.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tile/__tests__/Tile.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tile/index.cjs.js +1 -0
- package/dist/components/Tile/index.es.js +4 -0
- package/dist/components/Tile/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +7 -0
- package/dist/components/Tile/styles.d.ts +1 -7
- package/dist/components/Toast/Toast.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Toast/__tests__/Toast.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Toast/index.cjs.js +1 -0
- package/dist/components/Toast/index.es.js +4 -0
- package/dist/components/Toast/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +38 -0
- package/dist/components/Toast/styles.d.ts +3 -9
- package/dist/components/Tooltip/Tooltip.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Tooltip/index.cjs.js +1 -0
- package/dist/components/Tooltip/index.es.js +4 -0
- package/dist/components/Tooltip/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +5 -0
- package/dist/components/Tooltip/styles.d.ts +1 -14
- package/dist/components/Typography/Typography.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Typography/Typography.d.ts +1 -2
- package/dist/components/Typography/__tests__/Typography.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/components/Typography/index.cjs.js +1 -0
- package/dist/components/Typography/index.es.js +4 -0
- package/dist/components/Typography/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +29 -0
- package/dist/components/Typography/styles.d.ts +3 -21
- package/dist/components/index.cjs.js +1 -0
- package/dist/components/index.d.cjs.js +1 -0
- package/dist/components/index.es.js +62 -0
- package/dist/constants/index.cjs.js +1 -0
- package/dist/{context-CQfFkrkv.js → context-CTca8gjn.js} +3 -3
- package/dist/context-DdubDZbV.cjs +1 -0
- package/dist/declaration.d.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/{dropdown-BlRB2LxQ.js → dropdown-CZHhUAdC.js} +13 -13
- package/dist/dropdown-DDY5X1Q0.cjs +27 -0
- package/dist/generateCategoricalChart-Dcyk3onh.cjs +90 -0
- package/dist/genesis/GenesisThemeBreakdown.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/genesis/GenesisThemeDemo.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/genesis/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +3 -10
- package/dist/genesis/styles.d.ts +2 -11
- package/dist/iconBase-C4boY5mo.cjs +1 -0
- package/dist/index-B2Z5NSa0.cjs +4 -0
- package/dist/{index-DRGbc-fW.js → index-B56O6LEG.js} +38 -37
- package/dist/index-B6nsE0F_.cjs +16 -0
- package/dist/index-BD5op9DA.cjs +6 -0
- package/dist/{index-BZ050Dyl.js → index-BJgt3NQN.js} +7 -7
- package/dist/index-Bj0GOR4e.cjs +1 -0
- package/dist/index-Bml8d_Df.cjs +15 -0
- package/dist/index-CNA8GQQR.cjs +1 -0
- package/dist/index-CSLsxIxR.cjs +1 -0
- package/dist/index-CUpwy6fl.cjs +24 -0
- package/dist/{index-CzMIlMTV.js → index-CXee0v2G.js} +2 -2
- package/dist/{index-C2K1BzmJ.js → index-CYbLY3uE.js} +22 -21
- package/dist/{index-DCopujxC.js → index-Ce7BgA_I.js} +32 -32
- package/dist/index-Cft4ZDoE.cjs +1 -0
- package/dist/{index-Br3D3cFM.js → index-CkrCy-wr.js} +49 -48
- package/dist/index-CmiuhnsO.js +11 -0
- package/dist/{index-RtWhGOwR.js → index-CsSLy_ri.js} +9 -9
- package/dist/{index-Bxbr727t.js → index-D0AjEeN2.js} +1 -1
- package/dist/{index-B7FXyiY_.js → index-D76Ewoqp.js} +4 -4
- package/dist/{index-BHCqeC4j.js → index-D9i74AKg.js} +11 -11
- package/dist/{index-DavB5GQ3.js → index-DAtTGIsZ.js} +19 -19
- package/dist/{index-Y0KgiFZb.js → index-DJcvYBdb.js} +9 -9
- package/dist/index-DLI4yl_y.cjs +22 -0
- package/dist/index-DPPQ1GIl.cjs +10 -0
- package/dist/index-DV4cHHkU.cjs +1 -0
- package/dist/index-DY6qmEFc.js +23 -0
- package/dist/index-DdF9CYRQ.cjs +1 -0
- package/dist/index-Dwe6wwhx.cjs +7 -0
- package/dist/{index-sX7KZ-nU.js → index-FDGutzXP.js} +42 -42
- package/dist/{index-RAH9f-qb.js → index-emugciTm.js} +6 -6
- package/dist/index-x6LPvHOw.cjs +17 -0
- package/dist/index-zDIwuuqH.cjs +3 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.es.js +69 -0
- package/dist/interface/address.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/appointment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/appointmentV2.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/appointmentsState.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/common.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/completionData.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/deliveryPartner.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/organization.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/pagination.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/roles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/route.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/routeAnalysis.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/routeAutomationJob.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/routeAutomationLog.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/routeEvent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/serviceArea.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/vehicle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/interface/workOrder.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/isVisible-BNxwNfFH.cjs +1 -0
- package/dist/magic-string.es-BMxHbF2i.cjs +10 -0
- package/dist/motion-B_a-We1F.cjs +1 -0
- package/dist/{motion-C-XpKcZG.js → motion-Tyjtqn8t.js} +2 -2
- package/dist/omit-BrHx-Kj7.cjs +1 -0
- package/dist/pickAttrs-BUFdQiVt.cjs +18 -0
- package/dist/presetColors-DyrVjOJc.cjs +1 -0
- package/dist/presets-CCbttGCy.cjs +6 -0
- package/dist/providers/BreakpointProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/providers/BreakpointProvider.d.ts +7 -0
- package/dist/providers/GenesisProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/providers/ToastProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/providers/index.cjs.js +1 -0
- package/dist/providers/index.es.js +6 -0
- package/dist/providers/useGenesis.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/providers/useGenesis.d.ts +2 -1
- package/dist/reactNode-DcoR9VZw.cjs +1 -0
- package/dist/{roundedArrow-BxPlu4Hq.js → roundedArrow-BtSC7b_q.js} +1 -1
- package/dist/roundedArrow-i9Dmpgeh.cjs +1 -0
- package/dist/{setup-rcqlwLGQ.js → setup-D5hJ8cId.js} +6300 -5518
- package/dist/setup-Lma-RJTH.cjs +148 -0
- package/dist/setup.types-DNdmb6tK.cjs +46 -0
- package/dist/shadow-1q6dM13I.cjs +1 -0
- package/dist/statusUtils-DExYjn05.cjs +1 -0
- package/dist/styleChecker-Vc3-yig2.cjs +1 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/design-tokens/variables.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/{global-styles.js → global-styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +2 -6
- package/dist/styles/global-styles.d.ts +1 -1
- package/dist/styles/theme/genesis-theme.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/theme/genesis-theme.test.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
- package/dist/styles/theme/genesis-theme.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/styles/theme/index.cjs.js +1 -0
- package/dist/styles/theme/{index.js → index.es.js} +1 -1
- package/dist/styles/theme/theme-tree/ThemeTree.[format === /"es/" ? /"js/" : /"cjs/"]" +7 -0
- package/dist/styles-BEj8fZMe.cjs +3 -0
- package/dist/styles-BWTP_Zyu.cjs +103 -0
- package/dist/styles-BfoQ93tm.cjs +91 -0
- package/dist/{styles-Wpm1RiGr.js → styles-Bnh9HSiM.js} +46 -45
- package/dist/{styles-XuoEGUZZ.js → styles-CRSK7_lW.js} +135 -122
- package/dist/{styles-DNay6iFa.js → styles-CSzrJlJ9.js} +7 -7
- package/dist/{index-CupwdUIJ.js → styles-DXLK47iT.js} +167 -157
- package/dist/styles-j60Er7XY.cjs +16 -0
- package/dist/test/setup.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/test/setup.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/{toArray-D5kvYi_U.js → toArray-BdEmgTlP.js} +1 -1
- package/dist/toArray-Cnq83wS3.cjs +1 -0
- package/dist/useBreakpoint-BkvhZP6y.cjs +1 -0
- package/dist/{useBreakpoint-ByLol0R9.js → useBreakpoint-C6P2JavP.js} +1 -1
- package/dist/{useCSSVarCls-YfJY1twF.js → useCSSVarCls-CwGsW74t.js} +1 -1
- package/dist/useCSSVarCls-Eahl89PI.cjs +1 -0
- package/dist/{useIcons-CoxuumP_.js → useIcons-BP_qFbBH.js} +3 -3
- package/dist/useIcons-elrpktrI.cjs +6 -0
- package/dist/useId-BDresUbx.cjs +1 -0
- package/dist/useLocale-Ccu6a0gD.cjs +1 -0
- package/dist/{useLocale-BQ3mKRyJ.js → useLocale-DkcoQ5u9.js} +1 -1
- package/dist/{useMergedState-D1-TbeEv.js → useMergedState-dLe_CnQY.js} +1 -1
- package/dist/useMergedState-g1JWsrDw.cjs +1 -0
- package/dist/{useSize-Ct1guc-z.js → useSize-D_iM0JXw.js} +1 -1
- package/dist/useSize-OiGNe58i.cjs +1 -0
- package/dist/{useVariants-C6UAAu9f.js → useVariants-BO1luVHT.js} +3 -3
- package/dist/useVariants-CAEx8XcP.cjs +1 -0
- package/dist/useZIndex-B720RqFH.cjs +1 -0
- package/dist/{useZIndex-tgX56o1r.js → useZIndex-DNLQPZBP.js} +2 -2
- package/dist/utils/icon-util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/utils/icon-util.d.ts +1 -0
- package/dist/utils/styled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/dist/utils/styled.d.ts +7 -0
- package/dist/vi.B5EKKJdE-CoUxwxV9.cjs +434 -0
- package/dist/vite-env.d.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
- package/package.json +26 -11
- package/dist/CSSMotionList-DB0khM6h.js +0 -22193
- package/dist/components/Avatar/Avatar.js +0 -63
- package/dist/components/Avatar/__tests__/Avatar.test.js +0 -17
- package/dist/components/Avatar/index.js +0 -4
- package/dist/components/Avatar/styles.js +0 -328
- package/dist/components/Badge/Badge.js +0 -72
- package/dist/components/Badge/__tests__/Badge.test.js +0 -17
- package/dist/components/Badge/index.js +0 -4
- package/dist/components/Breadcrumb/Breadcrumb.js +0 -11
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +0 -23
- package/dist/components/Breadcrumb/index.js +0 -4
- package/dist/components/Breadcrumb/styles.js +0 -415
- package/dist/components/Button/Button.js +0 -30
- package/dist/components/Button/IconButton.js +0 -29
- package/dist/components/Button/UtilityButton.js +0 -29
- package/dist/components/Button/__tests__/Button.test.js +0 -18
- package/dist/components/Button/index.js +0 -8
- package/dist/components/Card/Card.js +0 -16
- package/dist/components/Card/__tests__/Card.test.js +0 -16
- package/dist/components/Card/index.js +0 -4
- package/dist/components/Card/styles.js +0 -12
- package/dist/components/Checkbox/Checkbox.js +0 -53
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +0 -19
- package/dist/components/Checkbox/index.js +0 -4
- package/dist/components/Dashboard/Dashboard.js +0 -5
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +0 -186
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +0 -948
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +0 -87
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +0 -23
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +0 -534
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +0 -16
- package/dist/components/Dashboard/index.js +0 -4
- package/dist/components/Dashboard/styles.js +0 -11
- package/dist/components/DatePicker/DatePicker.js +0 -5
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +0 -19
- package/dist/components/DatePicker/index.js +0 -4
- package/dist/components/DateRangePicker/DateRangePicker.js +0 -5
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +0 -23
- package/dist/components/DateRangePicker/index.js +0 -4
- package/dist/components/ErrorBoundary/ErrorBoundary.js +0 -74
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +0 -30
- package/dist/components/ErrorBoundary/index.js +0 -4
- package/dist/components/ErrorBoundary/styles.js +0 -11
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +0 -57
- package/dist/components/ErrorBoundaryFallback/index.js +0 -4
- package/dist/components/ErrorBoundaryFallback/styles.js +0 -933
- package/dist/components/Form/Form.js +0 -8
- package/dist/components/Form/__stories__/FormStory.js +0 -172
- package/dist/components/Form/__tests__/form.test.js +0 -19
- package/dist/components/Form/index.js +0 -4
- package/dist/components/Form/styles.js +0 -13
- package/dist/components/FormBrandon/Form.d.ts +0 -25
- package/dist/components/FormBrandon/Form.js +0 -18
- package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +0 -6
- package/dist/components/FormBrandon/__stories__/FormStory.d.ts +0 -1
- package/dist/components/FormBrandon/__stories__/FormStory.js +0 -173
- package/dist/components/FormBrandon/__tests__/form.test.js +0 -19
- package/dist/components/FormBrandon/index.d.ts +0 -2
- package/dist/components/FormBrandon/index.js +0 -4
- package/dist/components/FormBrandon/styles.d.ts +0 -2
- package/dist/components/FormBrandon/styles.js +0 -13
- package/dist/components/Glyph/Glyph.js +0 -9
- package/dist/components/Glyph/index.js +0 -4
- package/dist/components/Glyph/styles.js +0 -11
- package/dist/components/Input/Input.js +0 -22
- package/dist/components/Input/__tests__/Input.test.js +0 -25
- package/dist/components/Input/index.js +0 -4
- package/dist/components/Input/styles.js +0 -6
- package/dist/components/Layout/Content/Content.js +0 -32
- package/dist/components/Layout/Content/ResponsiveContent.js +0 -83
- package/dist/components/Layout/Content/index.js +0 -4
- package/dist/components/Layout/Content/styles.js +0 -16
- package/dist/components/Layout/Layout.js +0 -6
- package/dist/components/Layout/MainLayout/MainLayout.js +0 -28
- package/dist/components/Layout/MainLayout/index.js +0 -4
- package/dist/components/Layout/MainLayout/styles.js +0 -69
- package/dist/components/Layout/__tests__/Layout.test.js +0 -14
- package/dist/components/Layout/index.js +0 -4
- package/dist/components/Message/Message.js +0 -107
- package/dist/components/Message/__tests__/Message.test.js +0 -43
- package/dist/components/Message/index.js +0 -4
- package/dist/components/Message/styles.js +0 -45
- package/dist/components/Notification/Notification.js +0 -1463
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +0 -49
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +0 -18
- package/dist/components/Notification/NotificationBadge/icons/ASN.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Appointment.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Inventory.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Parcel.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Product.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Route.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/Shipment.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.js +0 -23
- package/dist/components/Notification/NotificationBadge/icons/System.js +0 -23
- package/dist/components/Notification/NotificationBadge/index.js +0 -4
- package/dist/components/Notification/NotificationBadge/styles.js +0 -34
- package/dist/components/Notification/NotificationRightChevron.js +0 -23
- package/dist/components/Notification/__tests__/Notification.test.js +0 -15
- package/dist/components/Notification/index.js +0 -4
- package/dist/components/Notification/styles.js +0 -65
- package/dist/components/Popover/Popover.js +0 -24
- package/dist/components/Popover/__tests__/Popover.test.js +0 -33
- package/dist/components/Popover/index.js +0 -4
- package/dist/components/Popover/styles.js +0 -6
- package/dist/components/Progress/Progress.js +0 -87
- package/dist/components/Progress/Progress.util.js +0 -64
- package/dist/components/Progress/ProgressText.js +0 -69
- package/dist/components/Progress/__tests__/Progress.test.js +0 -21
- package/dist/components/Progress/index.js +0 -4
- package/dist/components/Progress/styles.js +0 -796
- package/dist/components/Radio/Radio.js +0 -46
- package/dist/components/Radio/RadioGroup.js +0 -33
- package/dist/components/Radio/__tests__/RadioGroup.test.js +0 -31
- package/dist/components/Radio/index.js +0 -4
- package/dist/components/Radio/states/RadioChecked.js +0 -18
- package/dist/components/Radio/states/RadioCheckedDisabled.js +0 -18
- package/dist/components/Radio/states/RadioCheckedFocussed.js +0 -30
- package/dist/components/Radio/states/RadioCheckedHover.js +0 -18
- package/dist/components/Radio/states/RadioUnchecked.js +0 -15
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +0 -15
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +0 -29
- package/dist/components/Radio/states/RadioUncheckedHover.js +0 -18
- package/dist/components/Row/Row.js +0 -41
- package/dist/components/Row/RowActions/RowActions.js +0 -61
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +0 -64
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +0 -24
- package/dist/components/Row/RowLabelValue/styles.js +0 -25
- package/dist/components/Row/__tests__/Row.test.js +0 -16
- package/dist/components/Row/index.js +0 -4
- package/dist/components/Row/styles.js +0 -15
- package/dist/components/SegmentedControls/SegmentedControls.js +0 -26
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +0 -24
- package/dist/components/SegmentedControls/index.js +0 -4
- package/dist/components/SegmentedControls/styles.js +0 -522
- package/dist/components/Select/DropdownChevron.js +0 -23
- package/dist/components/Select/Select.js +0 -36
- package/dist/components/Select/__tests__/Select.test.js +0 -55
- package/dist/components/Select/index.js +0 -4
- package/dist/components/Select/styles.js +0 -119
- package/dist/components/Shapes/Shapes.js +0 -8
- package/dist/components/Shapes/__tests__/Shapes.test.js +0 -16
- package/dist/components/Shapes/index.js +0 -4
- package/dist/components/Shapes/variants/Circle.js +0 -23
- package/dist/components/Shapes/variants/Rectangle.js +0 -23
- package/dist/components/Shapes/variants/Triangle.js +0 -23
- package/dist/components/Switch/Switch.js +0 -22
- package/dist/components/Switch/__tests__/Switch.test.js +0 -25
- package/dist/components/Switch/index.js +0 -4
- package/dist/components/Switch/styles.js +0 -456
- package/dist/components/Table/Table.js +0 -23
- package/dist/components/Table/__mocks__/table-mocks.js +0 -323
- package/dist/components/Table/__tests__/Table.test.js +0 -34
- package/dist/components/Table/index.js +0 -4
- package/dist/components/Table/styles.js +0 -6
- package/dist/components/Tabs/Tabs.js +0 -23
- package/dist/components/Tabs/__tests__/Tabs.test.js +0 -37
- package/dist/components/Tabs/index.js +0 -4
- package/dist/components/Tile/Tile.js +0 -21
- package/dist/components/Tile/__tests__/Tile.test.js +0 -21
- package/dist/components/Tile/index.js +0 -4
- package/dist/components/Tile/styles.js +0 -12
- package/dist/components/Toast/Toast.js +0 -38
- package/dist/components/Toast/__tests__/Toast.test.js +0 -19
- package/dist/components/Toast/index.js +0 -4
- package/dist/components/Toast/styles.js +0 -45
- package/dist/components/Tooltip/Tooltip.js +0 -52
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +0 -25
- package/dist/components/Tooltip/index.js +0 -4
- package/dist/components/Tooltip/styles.js +0 -11
- package/dist/components/Typography/Typography.js +0 -8
- package/dist/components/Typography/__tests__/Typography.test.js +0 -24
- package/dist/components/Typography/index.js +0 -4
- package/dist/components/Typography/styles.js +0 -84
- package/dist/components/index.d.js +0 -1
- package/dist/components/index.js +0 -62
- package/dist/declaration.d.js +0 -1
- package/dist/genesis/GenesisThemeBreakdown.js +0 -146
- package/dist/genesis/GenesisThemeDemo.js +0 -7
- package/dist/index.js +0 -69
- package/dist/interface/address.js +0 -1
- package/dist/interface/appointment.js +0 -5
- package/dist/interface/appointmentV2.js +0 -1
- package/dist/interface/appointmentsState.js +0 -1
- package/dist/interface/common.js +0 -1
- package/dist/interface/completionData.js +0 -1
- package/dist/interface/deliveryPartner.js +0 -1
- package/dist/interface/organization.js +0 -1
- package/dist/interface/pagination.js +0 -1
- package/dist/interface/roles.js +0 -1
- package/dist/interface/route.js +0 -1
- package/dist/interface/routeAnalysis.js +0 -1
- package/dist/interface/routeAutomationJob.js +0 -10
- package/dist/interface/routeAutomationLog.js +0 -1
- package/dist/interface/routeEvent.js +0 -5
- package/dist/interface/serviceArea.js +0 -1
- package/dist/interface/util.js +0 -1
- package/dist/interface/vehicle.js +0 -1
- package/dist/interface/workOrder.js +0 -1
- package/dist/providers/BreakpointThemeProvider.d.ts +0 -8
- package/dist/providers/BreakpointThemeProvider.js +0 -21
- package/dist/providers/GenesisProvider.js +0 -11
- package/dist/providers/ToastProvider.js +0 -38
- package/dist/providers/index.js +0 -6
- package/dist/providers/useGenesis.js +0 -6
- package/dist/styled-components.browser.esm-C47QHsU4.js +0 -1211
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +0 -61
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +0 -65
- package/dist/styles/design-tokens/variables.js +0 -699
- package/dist/styles/theme/genesis-theme.js +0 -1154
- package/dist/styles/theme/genesis-theme.test.js +0 -69
- package/dist/styles/theme/genesis-theme.types.js +0 -4
- package/dist/styles/theme/theme-tree/ThemeTree.js +0 -1653
- package/dist/test/setup.js +0 -91
- package/dist/test/setup.types.js +0 -1
- package/dist/utils/icon-util.js +0 -93
- package/dist/vite-env.d.js +0 -1
- /package/dist/components/{FormBrandon/__tests__/form.test.d.ts → Table/TableControls/__tests__/TableControls.test.d.ts} +0 -0
- /package/dist/components/{Breadcrumb/Breadcrumb.types.js → index.d.es.js} +0 -0
- /package/dist/constants/{index.js → index.es.js} +0 -0
|
@@ -1,1653 +0,0 @@
|
|
|
1
|
-
import { jsxs as J, Fragment as yt, jsx as D } from "react/jsx-runtime";
|
|
2
|
-
import * as l from "react";
|
|
3
|
-
import h, { useContext as ae, useRef as Z, useMemo as xt, useEffect as me, useState as te, createElement as $t } from "react";
|
|
4
|
-
import "../../../providers/BreakpointThemeProvider.js";
|
|
5
|
-
import { u as Et, a as Ot } from "../../../Typography-8BO7aTuQ.js";
|
|
6
|
-
import "../../../components/Avatar/styles.js";
|
|
7
|
-
import "../../../components/Badge/styles.js";
|
|
8
|
-
import "../../../components/Breadcrumb/styles.js";
|
|
9
|
-
import "../../../components/Button/styles.js";
|
|
10
|
-
import "../../../components/Button/icon-button-styles.js";
|
|
11
|
-
import "../../../components/Card/styles.js";
|
|
12
|
-
import "../../../components/Checkbox/styles.js";
|
|
13
|
-
import "../../../components/DateRangePicker/DateRangePicker.js";
|
|
14
|
-
import "../../../components/ErrorBoundaryFallback/styles.js";
|
|
15
|
-
import { a as St } from "../../../styles-XuoEGUZZ.js";
|
|
16
|
-
import "../../../components/Layout/Content/styles.js";
|
|
17
|
-
import "../../../components/Message/styles.js";
|
|
18
|
-
import "../../../components/Notification/NotificationBadge/styles.js";
|
|
19
|
-
import "../../../components/Notification/styles.js";
|
|
20
|
-
import { A as Ae } from "../../../styles-DNay6iFa.js";
|
|
21
|
-
import "../../../components/Progress/styles.js";
|
|
22
|
-
import "../../../components/Row/styles.js";
|
|
23
|
-
import "../../../components/Row/RowLabelValue/styles.js";
|
|
24
|
-
import "../../../components/Row/RowActions/styles.js";
|
|
25
|
-
import "../../../components/SegmentedControls/styles.js";
|
|
26
|
-
import "../../../components/Select/styles.js";
|
|
27
|
-
import "../../../components/Switch/styles.js";
|
|
28
|
-
import { a as fe } from "../../../styles-Wpm1RiGr.js";
|
|
29
|
-
import "../../../components/Tabs/styles.js";
|
|
30
|
-
import "../../../components/Tile/styles.js";
|
|
31
|
-
import "../../../components/Toast/styles.js";
|
|
32
|
-
import "../../../components/Tooltip/styles.js";
|
|
33
|
-
import "../../global-styles.js";
|
|
34
|
-
import { e as q, _ as A, c as z, f as Ee, a as ve, j as Oe, q as Se, d as wt } from "../../../presets-CSXMiWyc.js";
|
|
35
|
-
import { I as Le } from "../../../AntdIcon-DP6hPDqu.js";
|
|
36
|
-
import { R as Nt } from "../../../index-BHCqeC4j.js";
|
|
37
|
-
import { n as k, A as Pt, p as He, a as It, g as Tt, f as N, m as Mt, j as Rt, o as jt, C as ce, Z as Bt, k as Dt, c as zt } from "../../../CSSMotionList-DB0khM6h.js";
|
|
38
|
-
import { b as Ve, a as Ft, d as Ce, C as We, c as _t, e as At, w as Ge, l as Lt } from "../../../index-DCopujxC.js";
|
|
39
|
-
import { g as Ht } from "../../../index-Br3D3cFM.js";
|
|
40
|
-
import { R as Vt } from "../../../CheckCircleFilled-B-wrMduA.js";
|
|
41
|
-
import { R as Wt } from "../../../CloseCircleFilled-WEQ0SaSW.js";
|
|
42
|
-
import { R as Gt } from "../../../ExclamationCircleFilled-x8Sr29BN.js";
|
|
43
|
-
import { u as Kt, z as qt, C as Ut } from "../../../useZIndex-tgX56o1r.js";
|
|
44
|
-
import { g as se } from "../../../motion-C-XpKcZG.js";
|
|
45
|
-
import { R as pe } from "../../../CloseOutlined-DzgBOns1.js";
|
|
46
|
-
import { i as kt, P as Xt } from "../../../index-DRGbc-fW.js";
|
|
47
|
-
import { u as Zt } from "../../../useId-DLf1xVuv.js";
|
|
48
|
-
import { K as we } from "../../../KeyCode-B3vHb2gY.js";
|
|
49
|
-
import { p as be } from "../../../pickAttrs-yFE4_vFd.js";
|
|
50
|
-
import { C as Qt } from "../../../ContextIsolator-CUJnq-4F.js";
|
|
51
|
-
import { u as Ke } from "../../../useCSSVarCls-YfJY1twF.js";
|
|
52
|
-
import { S as Yt } from "../../../Skeleton-CudViN0a.js";
|
|
53
|
-
import { B as qe, c as Jt } from "../../../button-CYVlK7G0.js";
|
|
54
|
-
import { u as he } from "../../../useLocale-BQ3mKRyJ.js";
|
|
55
|
-
import { g as en } from "../../../index-CupwdUIJ.js";
|
|
56
|
-
import { K as Ue } from "../../../Keyframes-CyO2Aeq-.js";
|
|
57
|
-
import { i as tn } from "../../../index-Y0KgiFZb.js";
|
|
58
|
-
import { w as nn } from "../../../DownOutlined-Bv7ua5i8.js";
|
|
59
|
-
var on = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, rn = function(t, o) {
|
|
60
|
-
return /* @__PURE__ */ l.createElement(Le, q({}, t, {
|
|
61
|
-
ref: o,
|
|
62
|
-
icon: on
|
|
63
|
-
}));
|
|
64
|
-
}, ke = /* @__PURE__ */ l.forwardRef(rn);
|
|
65
|
-
process.env.NODE_ENV !== "production" && (ke.displayName = "InfoCircleFilled");
|
|
66
|
-
function an() {
|
|
67
|
-
const [e, t] = l.useState([]), o = l.useCallback((n) => (t((r) => [].concat(k(r), [n])), () => {
|
|
68
|
-
t((r) => r.filter((i) => i !== n));
|
|
69
|
-
}), []);
|
|
70
|
-
return [e, o];
|
|
71
|
-
}
|
|
72
|
-
const ln = new Ue("antFadeIn", {
|
|
73
|
-
"0%": {
|
|
74
|
-
opacity: 0
|
|
75
|
-
},
|
|
76
|
-
"100%": {
|
|
77
|
-
opacity: 1
|
|
78
|
-
}
|
|
79
|
-
}), sn = new Ue("antFadeOut", {
|
|
80
|
-
"0%": {
|
|
81
|
-
opacity: 1
|
|
82
|
-
},
|
|
83
|
-
"100%": {
|
|
84
|
-
opacity: 0
|
|
85
|
-
}
|
|
86
|
-
}), cn = function(e) {
|
|
87
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
88
|
-
const {
|
|
89
|
-
antCls: o
|
|
90
|
-
} = e, n = `${o}-fade`, r = t ? "&" : "";
|
|
91
|
-
return [kt(n, ln, sn, e.motionDurationMid, t), {
|
|
92
|
-
[`
|
|
93
|
-
${r}${n}-enter,
|
|
94
|
-
${r}${n}-appear
|
|
95
|
-
`]: {
|
|
96
|
-
opacity: 0,
|
|
97
|
-
animationTimingFunction: "linear"
|
|
98
|
-
},
|
|
99
|
-
[`${r}${n}-leave`]: {
|
|
100
|
-
animationTimingFunction: "linear"
|
|
101
|
-
}
|
|
102
|
-
}];
|
|
103
|
-
}, le = /* @__PURE__ */ h.createContext({}), {
|
|
104
|
-
Provider: Xe
|
|
105
|
-
} = le, Ne = () => {
|
|
106
|
-
const {
|
|
107
|
-
autoFocusButton: e,
|
|
108
|
-
cancelButtonProps: t,
|
|
109
|
-
cancelTextLocale: o,
|
|
110
|
-
isSilent: n,
|
|
111
|
-
mergedOkCancel: r,
|
|
112
|
-
rootPrefixCls: i,
|
|
113
|
-
close: d,
|
|
114
|
-
onCancel: c,
|
|
115
|
-
onConfirm: s
|
|
116
|
-
} = ae(le);
|
|
117
|
-
return r ? /* @__PURE__ */ h.createElement(Ae, {
|
|
118
|
-
isSilent: n,
|
|
119
|
-
actionFn: c,
|
|
120
|
-
close: function() {
|
|
121
|
-
d == null || d.apply(void 0, arguments), s == null || s(!1);
|
|
122
|
-
},
|
|
123
|
-
autoFocus: e === "cancel",
|
|
124
|
-
buttonProps: t,
|
|
125
|
-
prefixCls: `${i}-btn`
|
|
126
|
-
}, o) : null;
|
|
127
|
-
}, Pe = () => {
|
|
128
|
-
const {
|
|
129
|
-
autoFocusButton: e,
|
|
130
|
-
close: t,
|
|
131
|
-
isSilent: o,
|
|
132
|
-
okButtonProps: n,
|
|
133
|
-
rootPrefixCls: r,
|
|
134
|
-
okTextLocale: i,
|
|
135
|
-
okType: d,
|
|
136
|
-
onConfirm: c,
|
|
137
|
-
onOk: s
|
|
138
|
-
} = ae(le);
|
|
139
|
-
return /* @__PURE__ */ h.createElement(Ae, {
|
|
140
|
-
isSilent: o,
|
|
141
|
-
type: d || "primary",
|
|
142
|
-
actionFn: s,
|
|
143
|
-
close: function() {
|
|
144
|
-
t == null || t.apply(void 0, arguments), c == null || c(!0);
|
|
145
|
-
},
|
|
146
|
-
autoFocus: e === "ok",
|
|
147
|
-
buttonProps: n,
|
|
148
|
-
prefixCls: `${r}-btn`
|
|
149
|
-
}, i);
|
|
150
|
-
};
|
|
151
|
-
var Ze = /* @__PURE__ */ l.createContext({});
|
|
152
|
-
function Ie(e, t, o) {
|
|
153
|
-
var n = t;
|
|
154
|
-
return !n && o && (n = "".concat(e, "-").concat(o)), n;
|
|
155
|
-
}
|
|
156
|
-
function Te(e, t) {
|
|
157
|
-
var o = e["page".concat(t ? "Y" : "X", "Offset")], n = "scroll".concat(t ? "Top" : "Left");
|
|
158
|
-
if (typeof o != "number") {
|
|
159
|
-
var r = e.document;
|
|
160
|
-
o = r.documentElement[n], typeof o != "number" && (o = r.body[n]);
|
|
161
|
-
}
|
|
162
|
-
return o;
|
|
163
|
-
}
|
|
164
|
-
function dn(e) {
|
|
165
|
-
var t = e.getBoundingClientRect(), o = {
|
|
166
|
-
left: t.left,
|
|
167
|
-
top: t.top
|
|
168
|
-
}, n = e.ownerDocument, r = n.defaultView || n.parentWindow;
|
|
169
|
-
return o.left += Te(r), o.top += Te(r, !0), o;
|
|
170
|
-
}
|
|
171
|
-
const un = /* @__PURE__ */ l.memo(function(e) {
|
|
172
|
-
var t = e.children;
|
|
173
|
-
return t;
|
|
174
|
-
}, function(e, t) {
|
|
175
|
-
var o = t.shouldUpdate;
|
|
176
|
-
return !o;
|
|
177
|
-
});
|
|
178
|
-
var fn = {
|
|
179
|
-
width: 0,
|
|
180
|
-
height: 0,
|
|
181
|
-
overflow: "hidden",
|
|
182
|
-
outline: "none"
|
|
183
|
-
}, mn = {
|
|
184
|
-
outline: "none"
|
|
185
|
-
}, ye = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
186
|
-
var o = e.prefixCls, n = e.className, r = e.style, i = e.title, d = e.ariaId, c = e.footer, s = e.closable, m = e.closeIcon, a = e.onClose, f = e.children, u = e.bodyStyle, v = e.bodyProps, E = e.modalRender, C = e.onMouseDown, p = e.onMouseUp, y = e.holderRef, b = e.visible, P = e.forceRender, O = e.width, I = e.height, S = e.classNames, w = e.styles, L = h.useContext(Ze), B = L.panel, X = Pt(y, B), g = Z(), x = Z();
|
|
187
|
-
h.useImperativeHandle(t, function() {
|
|
188
|
-
return {
|
|
189
|
-
focus: function() {
|
|
190
|
-
var G;
|
|
191
|
-
(G = g.current) === null || G === void 0 || G.focus({
|
|
192
|
-
preventScroll: !0
|
|
193
|
-
});
|
|
194
|
-
},
|
|
195
|
-
changeActive: function(G) {
|
|
196
|
-
var oe = document, U = oe.activeElement;
|
|
197
|
-
G && U === x.current ? g.current.focus({
|
|
198
|
-
preventScroll: !0
|
|
199
|
-
}) : !G && U === g.current && x.current.focus({
|
|
200
|
-
preventScroll: !0
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
});
|
|
205
|
-
var $ = {};
|
|
206
|
-
O !== void 0 && ($.width = O), I !== void 0 && ($.height = I);
|
|
207
|
-
var j = c ? /* @__PURE__ */ h.createElement("div", {
|
|
208
|
-
className: z("".concat(o, "-footer"), S == null ? void 0 : S.footer),
|
|
209
|
-
style: A({}, w == null ? void 0 : w.footer)
|
|
210
|
-
}, c) : null, F = i ? /* @__PURE__ */ h.createElement("div", {
|
|
211
|
-
className: z("".concat(o, "-header"), S == null ? void 0 : S.header),
|
|
212
|
-
style: A({}, w == null ? void 0 : w.header)
|
|
213
|
-
}, /* @__PURE__ */ h.createElement("div", {
|
|
214
|
-
className: "".concat(o, "-title"),
|
|
215
|
-
id: d
|
|
216
|
-
}, i)) : null, T = xt(function() {
|
|
217
|
-
return Ee(s) === "object" && s !== null ? s : s ? {
|
|
218
|
-
closeIcon: m ?? /* @__PURE__ */ h.createElement("span", {
|
|
219
|
-
className: "".concat(o, "-close-x")
|
|
220
|
-
})
|
|
221
|
-
} : {};
|
|
222
|
-
}, [s, m, o]), R = be(T, !0), K = Ee(s) === "object" && s.disabled, ne = s ? /* @__PURE__ */ h.createElement("button", q({
|
|
223
|
-
type: "button",
|
|
224
|
-
onClick: a,
|
|
225
|
-
"aria-label": "Close"
|
|
226
|
-
}, R, {
|
|
227
|
-
className: "".concat(o, "-close"),
|
|
228
|
-
disabled: K
|
|
229
|
-
}), T.closeIcon) : null, Q = /* @__PURE__ */ h.createElement("div", {
|
|
230
|
-
className: z("".concat(o, "-content"), S == null ? void 0 : S.content),
|
|
231
|
-
style: w == null ? void 0 : w.content
|
|
232
|
-
}, ne, F, /* @__PURE__ */ h.createElement("div", q({
|
|
233
|
-
className: z("".concat(o, "-body"), S == null ? void 0 : S.body),
|
|
234
|
-
style: A(A({}, u), w == null ? void 0 : w.body)
|
|
235
|
-
}, v), f), j);
|
|
236
|
-
return /* @__PURE__ */ h.createElement("div", {
|
|
237
|
-
key: "dialog-element",
|
|
238
|
-
role: "dialog",
|
|
239
|
-
"aria-labelledby": i ? d : null,
|
|
240
|
-
"aria-modal": "true",
|
|
241
|
-
ref: X,
|
|
242
|
-
style: A(A({}, r), $),
|
|
243
|
-
className: z(o, n),
|
|
244
|
-
onMouseDown: C,
|
|
245
|
-
onMouseUp: p
|
|
246
|
-
}, /* @__PURE__ */ h.createElement("div", {
|
|
247
|
-
ref: g,
|
|
248
|
-
tabIndex: 0,
|
|
249
|
-
style: mn
|
|
250
|
-
}, /* @__PURE__ */ h.createElement(un, {
|
|
251
|
-
shouldUpdate: b || P
|
|
252
|
-
}, E ? E(Q) : Q)), /* @__PURE__ */ h.createElement("div", {
|
|
253
|
-
tabIndex: 0,
|
|
254
|
-
ref: x,
|
|
255
|
-
style: fn
|
|
256
|
-
}));
|
|
257
|
-
});
|
|
258
|
-
process.env.NODE_ENV !== "production" && (ye.displayName = "Panel");
|
|
259
|
-
var Qe = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
260
|
-
var o = e.prefixCls, n = e.title, r = e.style, i = e.className, d = e.visible, c = e.forceRender, s = e.destroyOnClose, m = e.motionName, a = e.ariaId, f = e.onVisibleChanged, u = e.mousePosition, v = Z(), E = l.useState(), C = ve(E, 2), p = C[0], y = C[1], b = {};
|
|
261
|
-
p && (b.transformOrigin = p);
|
|
262
|
-
function P() {
|
|
263
|
-
var O = dn(v.current);
|
|
264
|
-
y(u && (u.x || u.y) ? "".concat(u.x - O.left, "px ").concat(u.y - O.top, "px") : "");
|
|
265
|
-
}
|
|
266
|
-
return /* @__PURE__ */ l.createElement(He, {
|
|
267
|
-
visible: d,
|
|
268
|
-
onVisibleChanged: f,
|
|
269
|
-
onAppearPrepare: P,
|
|
270
|
-
onEnterPrepare: P,
|
|
271
|
-
forceRender: c,
|
|
272
|
-
motionName: m,
|
|
273
|
-
removeOnLeave: s,
|
|
274
|
-
ref: v
|
|
275
|
-
}, function(O, I) {
|
|
276
|
-
var S = O.className, w = O.style;
|
|
277
|
-
return /* @__PURE__ */ l.createElement(ye, q({}, e, {
|
|
278
|
-
ref: t,
|
|
279
|
-
title: n,
|
|
280
|
-
ariaId: a,
|
|
281
|
-
prefixCls: o,
|
|
282
|
-
holderRef: I,
|
|
283
|
-
style: A(A(A({}, w), r), b),
|
|
284
|
-
className: z(i, S)
|
|
285
|
-
}));
|
|
286
|
-
});
|
|
287
|
-
});
|
|
288
|
-
Qe.displayName = "Content";
|
|
289
|
-
var gn = function(t) {
|
|
290
|
-
var o = t.prefixCls, n = t.style, r = t.visible, i = t.maskProps, d = t.motionName, c = t.className;
|
|
291
|
-
return /* @__PURE__ */ l.createElement(He, {
|
|
292
|
-
key: "mask",
|
|
293
|
-
visible: r,
|
|
294
|
-
motionName: d,
|
|
295
|
-
leavedClassName: "".concat(o, "-mask-hidden")
|
|
296
|
-
}, function(s, m) {
|
|
297
|
-
var a = s.className, f = s.style;
|
|
298
|
-
return /* @__PURE__ */ l.createElement("div", q({
|
|
299
|
-
ref: m,
|
|
300
|
-
style: A(A({}, f), n),
|
|
301
|
-
className: z("".concat(o, "-mask"), a, c)
|
|
302
|
-
}, i));
|
|
303
|
-
});
|
|
304
|
-
}, vn = function(t) {
|
|
305
|
-
var o = t.prefixCls, n = o === void 0 ? "rc-dialog" : o, r = t.zIndex, i = t.visible, d = i === void 0 ? !1 : i, c = t.keyboard, s = c === void 0 ? !0 : c, m = t.focusTriggerAfterClose, a = m === void 0 ? !0 : m, f = t.wrapStyle, u = t.wrapClassName, v = t.wrapProps, E = t.onClose, C = t.afterOpenChange, p = t.afterClose, y = t.transitionName, b = t.animation, P = t.closable, O = P === void 0 ? !0 : P, I = t.mask, S = I === void 0 ? !0 : I, w = t.maskTransitionName, L = t.maskAnimation, B = t.maskClosable, X = B === void 0 ? !0 : B, g = t.maskStyle, x = t.maskProps, $ = t.rootClassName, j = t.classNames, F = t.styles;
|
|
306
|
-
process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(M) {
|
|
307
|
-
Oe(!(M in t), "".concat(M, " is deprecated, please use styles instead."));
|
|
308
|
-
}), "wrapClassName" in t && Oe(!1, "wrapClassName is deprecated, please use classNames instead."));
|
|
309
|
-
var T = Z(), R = Z(), K = Z(), ne = l.useState(d), Q = ve(ne, 2), Y = Q[0], G = Q[1], oe = Zt();
|
|
310
|
-
function U() {
|
|
311
|
-
Se(R.current, document.activeElement) || (T.current = document.activeElement);
|
|
312
|
-
}
|
|
313
|
-
function de() {
|
|
314
|
-
if (!Se(R.current, document.activeElement)) {
|
|
315
|
-
var M;
|
|
316
|
-
(M = K.current) === null || M === void 0 || M.focus();
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
function H(M) {
|
|
320
|
-
if (M)
|
|
321
|
-
de();
|
|
322
|
-
else {
|
|
323
|
-
if (G(!1), S && T.current && a) {
|
|
324
|
-
try {
|
|
325
|
-
T.current.focus({
|
|
326
|
-
preventScroll: !0
|
|
327
|
-
});
|
|
328
|
-
} catch {
|
|
329
|
-
}
|
|
330
|
-
T.current = null;
|
|
331
|
-
}
|
|
332
|
-
Y && (p == null || p());
|
|
333
|
-
}
|
|
334
|
-
C == null || C(M);
|
|
335
|
-
}
|
|
336
|
-
function _(M) {
|
|
337
|
-
E == null || E(M);
|
|
338
|
-
}
|
|
339
|
-
var V = Z(!1), re = Z(), Ct = function() {
|
|
340
|
-
clearTimeout(re.current), V.current = !0;
|
|
341
|
-
}, pt = function() {
|
|
342
|
-
re.current = setTimeout(function() {
|
|
343
|
-
V.current = !1;
|
|
344
|
-
});
|
|
345
|
-
}, $e = null;
|
|
346
|
-
X && ($e = function(ue) {
|
|
347
|
-
V.current ? V.current = !1 : R.current === ue.target && _(ue);
|
|
348
|
-
});
|
|
349
|
-
function bt(M) {
|
|
350
|
-
if (s && M.keyCode === we.ESC) {
|
|
351
|
-
M.stopPropagation(), _(M);
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
d && M.keyCode === we.TAB && K.current.changeActive(!M.shiftKey);
|
|
355
|
-
}
|
|
356
|
-
me(function() {
|
|
357
|
-
d && (G(!0), U());
|
|
358
|
-
}, [d]), me(function() {
|
|
359
|
-
return function() {
|
|
360
|
-
clearTimeout(re.current);
|
|
361
|
-
};
|
|
362
|
-
}, []);
|
|
363
|
-
var ht = A(A(A({
|
|
364
|
-
zIndex: r
|
|
365
|
-
}, f), F == null ? void 0 : F.wrapper), {}, {
|
|
366
|
-
display: Y ? null : "none"
|
|
367
|
-
});
|
|
368
|
-
return /* @__PURE__ */ l.createElement("div", q({
|
|
369
|
-
className: z("".concat(n, "-root"), $)
|
|
370
|
-
}, be(t, {
|
|
371
|
-
data: !0
|
|
372
|
-
})), /* @__PURE__ */ l.createElement(gn, {
|
|
373
|
-
prefixCls: n,
|
|
374
|
-
visible: S && d,
|
|
375
|
-
motionName: Ie(n, w, L),
|
|
376
|
-
style: A(A({
|
|
377
|
-
zIndex: r
|
|
378
|
-
}, g), F == null ? void 0 : F.mask),
|
|
379
|
-
maskProps: x,
|
|
380
|
-
className: j == null ? void 0 : j.mask
|
|
381
|
-
}), /* @__PURE__ */ l.createElement("div", q({
|
|
382
|
-
tabIndex: -1,
|
|
383
|
-
onKeyDown: bt,
|
|
384
|
-
className: z("".concat(n, "-wrap"), u, j == null ? void 0 : j.wrapper),
|
|
385
|
-
ref: R,
|
|
386
|
-
onClick: $e,
|
|
387
|
-
style: ht
|
|
388
|
-
}, v), /* @__PURE__ */ l.createElement(Qe, q({}, t, {
|
|
389
|
-
onMouseDown: Ct,
|
|
390
|
-
onMouseUp: pt,
|
|
391
|
-
ref: K,
|
|
392
|
-
closable: O,
|
|
393
|
-
ariaId: oe,
|
|
394
|
-
prefixCls: n,
|
|
395
|
-
visible: d && Y,
|
|
396
|
-
onClose: _,
|
|
397
|
-
onVisibleChanged: H,
|
|
398
|
-
motionName: Ie(n, y, b)
|
|
399
|
-
}))));
|
|
400
|
-
}, Ye = function(t) {
|
|
401
|
-
var o = t.visible, n = t.getContainer, r = t.forceRender, i = t.destroyOnClose, d = i === void 0 ? !1 : i, c = t.afterClose, s = t.panelRef, m = l.useState(o), a = ve(m, 2), f = a[0], u = a[1], v = l.useMemo(function() {
|
|
402
|
-
return {
|
|
403
|
-
panel: s
|
|
404
|
-
};
|
|
405
|
-
}, [s]);
|
|
406
|
-
return l.useEffect(function() {
|
|
407
|
-
o && u(!0);
|
|
408
|
-
}, [o]), !r && d && !f ? null : /* @__PURE__ */ l.createElement(Ze.Provider, {
|
|
409
|
-
value: v
|
|
410
|
-
}, /* @__PURE__ */ l.createElement(Xt, {
|
|
411
|
-
open: o || r || f,
|
|
412
|
-
autoDestroy: !1,
|
|
413
|
-
getContainer: n,
|
|
414
|
-
autoLock: o || f
|
|
415
|
-
}, /* @__PURE__ */ l.createElement(vn, q({}, t, {
|
|
416
|
-
destroyOnClose: d,
|
|
417
|
-
afterClose: function() {
|
|
418
|
-
c == null || c(), u(!1);
|
|
419
|
-
}
|
|
420
|
-
}))));
|
|
421
|
-
};
|
|
422
|
-
Ye.displayName = "Dialog";
|
|
423
|
-
function Me(e) {
|
|
424
|
-
if (e)
|
|
425
|
-
return {
|
|
426
|
-
closable: e.closable,
|
|
427
|
-
closeIcon: e.closeIcon
|
|
428
|
-
};
|
|
429
|
-
}
|
|
430
|
-
function Re(e) {
|
|
431
|
-
const {
|
|
432
|
-
closable: t,
|
|
433
|
-
closeIcon: o
|
|
434
|
-
} = e || {};
|
|
435
|
-
return h.useMemo(() => {
|
|
436
|
-
if (
|
|
437
|
-
// If `closable`, whatever rest be should be true
|
|
438
|
-
!t && (t === !1 || o === !1 || o === null)
|
|
439
|
-
)
|
|
440
|
-
return !1;
|
|
441
|
-
if (t === void 0 && o === void 0)
|
|
442
|
-
return null;
|
|
443
|
-
let n = {
|
|
444
|
-
closeIcon: typeof o != "boolean" && o !== null ? o : void 0
|
|
445
|
-
};
|
|
446
|
-
return t && typeof t == "object" && (n = Object.assign(Object.assign({}, n), t)), n;
|
|
447
|
-
}, [t, o]);
|
|
448
|
-
}
|
|
449
|
-
function je() {
|
|
450
|
-
const e = {};
|
|
451
|
-
for (var t = arguments.length, o = new Array(t), n = 0; n < t; n++)
|
|
452
|
-
o[n] = arguments[n];
|
|
453
|
-
return o.forEach((r) => {
|
|
454
|
-
r && Object.keys(r).forEach((i) => {
|
|
455
|
-
r[i] !== void 0 && (e[i] = r[i]);
|
|
456
|
-
});
|
|
457
|
-
}), e;
|
|
458
|
-
}
|
|
459
|
-
const Cn = {};
|
|
460
|
-
function pn(e, t) {
|
|
461
|
-
let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Cn;
|
|
462
|
-
const n = Re(e), r = Re(t), i = typeof n != "boolean" ? !!(n != null && n.disabled) : !1, d = h.useMemo(() => Object.assign({
|
|
463
|
-
closeIcon: /* @__PURE__ */ h.createElement(pe, null)
|
|
464
|
-
}, o), [o]), c = h.useMemo(() => n === !1 ? !1 : n ? je(d, r, n) : r === !1 ? !1 : r ? je(d, r) : d.closable ? d : !1, [n, r, d]);
|
|
465
|
-
return h.useMemo(() => {
|
|
466
|
-
if (c === !1)
|
|
467
|
-
return [!1, null, i];
|
|
468
|
-
const {
|
|
469
|
-
closeIconRender: s
|
|
470
|
-
} = d, {
|
|
471
|
-
closeIcon: m
|
|
472
|
-
} = c;
|
|
473
|
-
let a = m;
|
|
474
|
-
if (a != null) {
|
|
475
|
-
s && (a = s(m));
|
|
476
|
-
const f = be(c, !0);
|
|
477
|
-
Object.keys(f).length && (a = /* @__PURE__ */ h.isValidElement(a) ? /* @__PURE__ */ h.cloneElement(a, f) : /* @__PURE__ */ h.createElement("span", Object.assign({}, f), a));
|
|
478
|
-
}
|
|
479
|
-
return [!0, a, i];
|
|
480
|
-
}, [c, d]);
|
|
481
|
-
}
|
|
482
|
-
const bn = () => wt() && window.document.documentElement;
|
|
483
|
-
function Be() {
|
|
484
|
-
}
|
|
485
|
-
const hn = /* @__PURE__ */ l.createContext({
|
|
486
|
-
add: Be,
|
|
487
|
-
remove: Be
|
|
488
|
-
});
|
|
489
|
-
function yn(e) {
|
|
490
|
-
const t = l.useContext(hn), o = l.useRef(null);
|
|
491
|
-
return It((r) => {
|
|
492
|
-
if (r) {
|
|
493
|
-
const i = e ? r.querySelector(e) : r;
|
|
494
|
-
t.add(i), o.current = i;
|
|
495
|
-
} else
|
|
496
|
-
t.remove(o.current);
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
const De = () => {
|
|
500
|
-
const {
|
|
501
|
-
cancelButtonProps: e,
|
|
502
|
-
cancelTextLocale: t,
|
|
503
|
-
onCancel: o
|
|
504
|
-
} = ae(le);
|
|
505
|
-
return /* @__PURE__ */ h.createElement(qe, Object.assign({
|
|
506
|
-
onClick: o
|
|
507
|
-
}, e), t);
|
|
508
|
-
}, ze = () => {
|
|
509
|
-
const {
|
|
510
|
-
confirmLoading: e,
|
|
511
|
-
okButtonProps: t,
|
|
512
|
-
okType: o,
|
|
513
|
-
okTextLocale: n,
|
|
514
|
-
onOk: r
|
|
515
|
-
} = ae(le);
|
|
516
|
-
return /* @__PURE__ */ h.createElement(qe, Object.assign({}, Jt(o), {
|
|
517
|
-
loading: e,
|
|
518
|
-
onClick: r
|
|
519
|
-
}, t), n);
|
|
520
|
-
};
|
|
521
|
-
function Je(e, t) {
|
|
522
|
-
return /* @__PURE__ */ h.createElement("span", {
|
|
523
|
-
className: `${e}-close-x`
|
|
524
|
-
}, t || /* @__PURE__ */ h.createElement(pe, {
|
|
525
|
-
className: `${e}-close-icon`
|
|
526
|
-
}));
|
|
527
|
-
}
|
|
528
|
-
const et = (e) => {
|
|
529
|
-
const {
|
|
530
|
-
okText: t,
|
|
531
|
-
okType: o = "primary",
|
|
532
|
-
cancelText: n,
|
|
533
|
-
confirmLoading: r,
|
|
534
|
-
onOk: i,
|
|
535
|
-
onCancel: d,
|
|
536
|
-
okButtonProps: c,
|
|
537
|
-
cancelButtonProps: s,
|
|
538
|
-
footer: m
|
|
539
|
-
} = e, [a] = he("Modal", Ve()), f = t || (a == null ? void 0 : a.okText), u = n || (a == null ? void 0 : a.cancelText), v = {
|
|
540
|
-
confirmLoading: r,
|
|
541
|
-
okButtonProps: c,
|
|
542
|
-
cancelButtonProps: s,
|
|
543
|
-
okTextLocale: f,
|
|
544
|
-
cancelTextLocale: u,
|
|
545
|
-
okType: o,
|
|
546
|
-
onOk: i,
|
|
547
|
-
onCancel: d
|
|
548
|
-
}, E = h.useMemo(() => v, k(Object.values(v)));
|
|
549
|
-
let C;
|
|
550
|
-
return typeof m == "function" || typeof m > "u" ? (C = /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(De, null), /* @__PURE__ */ h.createElement(ze, null)), typeof m == "function" && (C = m(C, {
|
|
551
|
-
OkBtn: ze,
|
|
552
|
-
CancelBtn: De
|
|
553
|
-
})), C = /* @__PURE__ */ h.createElement(Xe, {
|
|
554
|
-
value: E
|
|
555
|
-
}, C)) : C = m, /* @__PURE__ */ h.createElement(Ft, {
|
|
556
|
-
disabled: !1
|
|
557
|
-
}, C);
|
|
558
|
-
};
|
|
559
|
-
function Fe(e) {
|
|
560
|
-
return {
|
|
561
|
-
position: e,
|
|
562
|
-
inset: 0
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
const xn = (e) => {
|
|
566
|
-
const {
|
|
567
|
-
componentCls: t,
|
|
568
|
-
antCls: o
|
|
569
|
-
} = e;
|
|
570
|
-
return [{
|
|
571
|
-
[`${t}-root`]: {
|
|
572
|
-
[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]: {
|
|
573
|
-
// reset scale avoid mousePosition bug
|
|
574
|
-
transform: "none",
|
|
575
|
-
opacity: 0,
|
|
576
|
-
animationDuration: e.motionDurationSlow,
|
|
577
|
-
// https://github.com/ant-design/ant-design/issues/11777
|
|
578
|
-
userSelect: "none"
|
|
579
|
-
},
|
|
580
|
-
// https://github.com/ant-design/ant-design/issues/37329
|
|
581
|
-
// https://github.com/ant-design/ant-design/issues/40272
|
|
582
|
-
[`${t}${o}-zoom-leave ${t}-content`]: {
|
|
583
|
-
pointerEvents: "none"
|
|
584
|
-
},
|
|
585
|
-
[`${t}-mask`]: Object.assign(Object.assign({}, Fe("fixed")), {
|
|
586
|
-
zIndex: e.zIndexPopupBase,
|
|
587
|
-
height: "100%",
|
|
588
|
-
backgroundColor: e.colorBgMask,
|
|
589
|
-
pointerEvents: "none",
|
|
590
|
-
[`${t}-hidden`]: {
|
|
591
|
-
display: "none"
|
|
592
|
-
}
|
|
593
|
-
}),
|
|
594
|
-
[`${t}-wrap`]: Object.assign(Object.assign({}, Fe("fixed")), {
|
|
595
|
-
zIndex: e.zIndexPopupBase,
|
|
596
|
-
overflow: "auto",
|
|
597
|
-
outline: 0,
|
|
598
|
-
WebkitOverflowScrolling: "touch"
|
|
599
|
-
})
|
|
600
|
-
}
|
|
601
|
-
}, {
|
|
602
|
-
[`${t}-root`]: cn(e)
|
|
603
|
-
}];
|
|
604
|
-
}, $n = (e) => {
|
|
605
|
-
const {
|
|
606
|
-
componentCls: t
|
|
607
|
-
} = e;
|
|
608
|
-
return [
|
|
609
|
-
// ======================== Root =========================
|
|
610
|
-
{
|
|
611
|
-
[`${t}-root`]: {
|
|
612
|
-
[`${t}-wrap-rtl`]: {
|
|
613
|
-
direction: "rtl"
|
|
614
|
-
},
|
|
615
|
-
[`${t}-centered`]: {
|
|
616
|
-
textAlign: "center",
|
|
617
|
-
"&::before": {
|
|
618
|
-
display: "inline-block",
|
|
619
|
-
width: 0,
|
|
620
|
-
height: "100%",
|
|
621
|
-
verticalAlign: "middle",
|
|
622
|
-
content: '""'
|
|
623
|
-
},
|
|
624
|
-
[t]: {
|
|
625
|
-
top: 0,
|
|
626
|
-
display: "inline-block",
|
|
627
|
-
paddingBottom: 0,
|
|
628
|
-
textAlign: "start",
|
|
629
|
-
verticalAlign: "middle"
|
|
630
|
-
}
|
|
631
|
-
},
|
|
632
|
-
[`@media (max-width: ${e.screenSMMax}px)`]: {
|
|
633
|
-
[t]: {
|
|
634
|
-
maxWidth: "calc(100vw - 16px)",
|
|
635
|
-
margin: `${N(e.marginXS)} auto`
|
|
636
|
-
},
|
|
637
|
-
[`${t}-centered`]: {
|
|
638
|
-
[t]: {
|
|
639
|
-
flex: 1
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
},
|
|
645
|
-
// ======================== Modal ========================
|
|
646
|
-
{
|
|
647
|
-
[t]: Object.assign(Object.assign({}, Rt(e)), {
|
|
648
|
-
pointerEvents: "none",
|
|
649
|
-
position: "relative",
|
|
650
|
-
top: 100,
|
|
651
|
-
width: "auto",
|
|
652
|
-
maxWidth: `calc(100vw - ${N(e.calc(e.margin).mul(2).equal())})`,
|
|
653
|
-
margin: "0 auto",
|
|
654
|
-
paddingBottom: e.paddingLG,
|
|
655
|
-
[`${t}-title`]: {
|
|
656
|
-
margin: 0,
|
|
657
|
-
color: e.titleColor,
|
|
658
|
-
fontWeight: e.fontWeightStrong,
|
|
659
|
-
fontSize: e.titleFontSize,
|
|
660
|
-
lineHeight: e.titleLineHeight,
|
|
661
|
-
wordWrap: "break-word"
|
|
662
|
-
},
|
|
663
|
-
[`${t}-content`]: {
|
|
664
|
-
position: "relative",
|
|
665
|
-
backgroundColor: e.contentBg,
|
|
666
|
-
backgroundClip: "padding-box",
|
|
667
|
-
border: 0,
|
|
668
|
-
borderRadius: e.borderRadiusLG,
|
|
669
|
-
boxShadow: e.boxShadow,
|
|
670
|
-
pointerEvents: "auto",
|
|
671
|
-
padding: e.contentPadding
|
|
672
|
-
},
|
|
673
|
-
[`${t}-close`]: Object.assign({
|
|
674
|
-
position: "absolute",
|
|
675
|
-
top: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
|
|
676
|
-
insetInlineEnd: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
|
|
677
|
-
zIndex: e.calc(e.zIndexPopupBase).add(10).equal(),
|
|
678
|
-
padding: 0,
|
|
679
|
-
color: e.modalCloseIconColor,
|
|
680
|
-
fontWeight: e.fontWeightStrong,
|
|
681
|
-
lineHeight: 1,
|
|
682
|
-
textDecoration: "none",
|
|
683
|
-
background: "transparent",
|
|
684
|
-
borderRadius: e.borderRadiusSM,
|
|
685
|
-
width: e.modalCloseBtnSize,
|
|
686
|
-
height: e.modalCloseBtnSize,
|
|
687
|
-
border: 0,
|
|
688
|
-
outline: 0,
|
|
689
|
-
cursor: "pointer",
|
|
690
|
-
transition: `color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,
|
|
691
|
-
"&-x": {
|
|
692
|
-
display: "flex",
|
|
693
|
-
fontSize: e.fontSizeLG,
|
|
694
|
-
fontStyle: "normal",
|
|
695
|
-
lineHeight: N(e.modalCloseBtnSize),
|
|
696
|
-
justifyContent: "center",
|
|
697
|
-
textTransform: "none",
|
|
698
|
-
textRendering: "auto"
|
|
699
|
-
},
|
|
700
|
-
"&:disabled": {
|
|
701
|
-
pointerEvents: "none"
|
|
702
|
-
},
|
|
703
|
-
"&:hover": {
|
|
704
|
-
color: e.modalCloseIconHoverColor,
|
|
705
|
-
backgroundColor: e.colorBgTextHover,
|
|
706
|
-
textDecoration: "none"
|
|
707
|
-
},
|
|
708
|
-
"&:active": {
|
|
709
|
-
backgroundColor: e.colorBgTextActive
|
|
710
|
-
}
|
|
711
|
-
}, jt(e)),
|
|
712
|
-
[`${t}-header`]: {
|
|
713
|
-
color: e.colorText,
|
|
714
|
-
background: e.headerBg,
|
|
715
|
-
borderRadius: `${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0`,
|
|
716
|
-
marginBottom: e.headerMarginBottom,
|
|
717
|
-
padding: e.headerPadding,
|
|
718
|
-
borderBottom: e.headerBorderBottom
|
|
719
|
-
},
|
|
720
|
-
[`${t}-body`]: {
|
|
721
|
-
fontSize: e.fontSize,
|
|
722
|
-
lineHeight: e.lineHeight,
|
|
723
|
-
wordWrap: "break-word",
|
|
724
|
-
padding: e.bodyPadding,
|
|
725
|
-
[`${t}-body-skeleton`]: {
|
|
726
|
-
width: "100%",
|
|
727
|
-
height: "100%",
|
|
728
|
-
display: "flex",
|
|
729
|
-
justifyContent: "center",
|
|
730
|
-
alignItems: "center",
|
|
731
|
-
margin: `${N(e.margin)} auto`
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
[`${t}-footer`]: {
|
|
735
|
-
textAlign: "end",
|
|
736
|
-
background: e.footerBg,
|
|
737
|
-
marginTop: e.footerMarginTop,
|
|
738
|
-
padding: e.footerPadding,
|
|
739
|
-
borderTop: e.footerBorderTop,
|
|
740
|
-
borderRadius: e.footerBorderRadius,
|
|
741
|
-
[`> ${e.antCls}-btn + ${e.antCls}-btn`]: {
|
|
742
|
-
marginInlineStart: e.marginXS
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
[`${t}-open`]: {
|
|
746
|
-
overflow: "hidden"
|
|
747
|
-
}
|
|
748
|
-
})
|
|
749
|
-
},
|
|
750
|
-
// ======================== Pure =========================
|
|
751
|
-
{
|
|
752
|
-
[`${t}-pure-panel`]: {
|
|
753
|
-
top: "auto",
|
|
754
|
-
padding: 0,
|
|
755
|
-
display: "flex",
|
|
756
|
-
flexDirection: "column",
|
|
757
|
-
[`${t}-content,
|
|
758
|
-
${t}-body,
|
|
759
|
-
${t}-confirm-body-wrapper`]: {
|
|
760
|
-
display: "flex",
|
|
761
|
-
flexDirection: "column",
|
|
762
|
-
flex: "auto"
|
|
763
|
-
},
|
|
764
|
-
[`${t}-confirm-body`]: {
|
|
765
|
-
marginBottom: "auto"
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
];
|
|
770
|
-
}, En = (e) => {
|
|
771
|
-
const {
|
|
772
|
-
componentCls: t
|
|
773
|
-
} = e;
|
|
774
|
-
return {
|
|
775
|
-
[`${t}-root`]: {
|
|
776
|
-
[`${t}-wrap-rtl`]: {
|
|
777
|
-
direction: "rtl",
|
|
778
|
-
[`${t}-confirm-body`]: {
|
|
779
|
-
direction: "rtl"
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
|
-
}, On = (e) => {
|
|
785
|
-
const {
|
|
786
|
-
componentCls: t
|
|
787
|
-
} = e, o = en(e);
|
|
788
|
-
delete o.xs;
|
|
789
|
-
const n = Object.keys(o).map((r) => ({
|
|
790
|
-
[`@media (min-width: ${N(o[r])})`]: {
|
|
791
|
-
width: `var(--${t.replace(".", "")}-${r}-width)`
|
|
792
|
-
}
|
|
793
|
-
}));
|
|
794
|
-
return {
|
|
795
|
-
[`${t}-root`]: {
|
|
796
|
-
[t]: [{
|
|
797
|
-
width: `var(--${t.replace(".", "")}-xs-width)`
|
|
798
|
-
}].concat(k(n))
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
}, tt = (e) => {
|
|
802
|
-
const t = e.padding, o = e.fontSizeHeading5, n = e.lineHeightHeading5;
|
|
803
|
-
return Mt(e, {
|
|
804
|
-
modalHeaderHeight: e.calc(e.calc(n).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),
|
|
805
|
-
modalFooterBorderColorSplit: e.colorSplit,
|
|
806
|
-
modalFooterBorderStyle: e.lineType,
|
|
807
|
-
modalFooterBorderWidth: e.lineWidth,
|
|
808
|
-
modalCloseIconColor: e.colorIcon,
|
|
809
|
-
modalCloseIconHoverColor: e.colorIconHover,
|
|
810
|
-
modalCloseBtnSize: e.controlHeight,
|
|
811
|
-
modalConfirmIconSize: e.fontHeight,
|
|
812
|
-
modalTitleHeight: e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()
|
|
813
|
-
});
|
|
814
|
-
}, nt = (e) => ({
|
|
815
|
-
footerBg: "transparent",
|
|
816
|
-
headerBg: e.colorBgElevated,
|
|
817
|
-
titleLineHeight: e.lineHeightHeading5,
|
|
818
|
-
titleFontSize: e.fontSizeHeading5,
|
|
819
|
-
contentBg: e.colorBgElevated,
|
|
820
|
-
titleColor: e.colorTextHeading,
|
|
821
|
-
// internal
|
|
822
|
-
contentPadding: e.wireframe ? 0 : `${N(e.paddingMD)} ${N(e.paddingContentHorizontalLG)}`,
|
|
823
|
-
headerPadding: e.wireframe ? `${N(e.padding)} ${N(e.paddingLG)}` : 0,
|
|
824
|
-
headerBorderBottom: e.wireframe ? `${N(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none",
|
|
825
|
-
headerMarginBottom: e.wireframe ? 0 : e.marginXS,
|
|
826
|
-
bodyPadding: e.wireframe ? e.paddingLG : 0,
|
|
827
|
-
footerPadding: e.wireframe ? `${N(e.paddingXS)} ${N(e.padding)}` : 0,
|
|
828
|
-
footerBorderTop: e.wireframe ? `${N(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none",
|
|
829
|
-
footerBorderRadius: e.wireframe ? `0 0 ${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)}` : 0,
|
|
830
|
-
footerMarginTop: e.wireframe ? 0 : e.marginSM,
|
|
831
|
-
confirmBodyPadding: e.wireframe ? `${N(e.padding * 2)} ${N(e.padding * 2)} ${N(e.paddingLG)}` : 0,
|
|
832
|
-
confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM,
|
|
833
|
-
confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM
|
|
834
|
-
}), ot = Tt("Modal", (e) => {
|
|
835
|
-
const t = tt(e);
|
|
836
|
-
return [$n(t), En(t), xn(t), tn(t, "zoom"), On(t)];
|
|
837
|
-
}, nt, {
|
|
838
|
-
unitless: {
|
|
839
|
-
titleLineHeight: !0
|
|
840
|
-
}
|
|
841
|
-
});
|
|
842
|
-
var Sn = function(e, t) {
|
|
843
|
-
var o = {};
|
|
844
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
845
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
846
|
-
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
847
|
-
return o;
|
|
848
|
-
};
|
|
849
|
-
let ge;
|
|
850
|
-
const wn = (e) => {
|
|
851
|
-
ge = {
|
|
852
|
-
x: e.pageX,
|
|
853
|
-
y: e.pageY
|
|
854
|
-
}, setTimeout(() => {
|
|
855
|
-
ge = null;
|
|
856
|
-
}, 100);
|
|
857
|
-
};
|
|
858
|
-
bn() && document.documentElement.addEventListener("click", wn, !0);
|
|
859
|
-
const rt = (e) => {
|
|
860
|
-
var t;
|
|
861
|
-
const {
|
|
862
|
-
getPopupContainer: o,
|
|
863
|
-
getPrefixCls: n,
|
|
864
|
-
direction: r,
|
|
865
|
-
modal: i
|
|
866
|
-
} = l.useContext(ce), d = (H) => {
|
|
867
|
-
const {
|
|
868
|
-
onCancel: _
|
|
869
|
-
} = e;
|
|
870
|
-
_ == null || _(H);
|
|
871
|
-
}, c = (H) => {
|
|
872
|
-
const {
|
|
873
|
-
onOk: _
|
|
874
|
-
} = e;
|
|
875
|
-
_ == null || _(H);
|
|
876
|
-
};
|
|
877
|
-
if (process.env.NODE_ENV !== "production") {
|
|
878
|
-
const H = Ce("Modal");
|
|
879
|
-
[["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((_) => {
|
|
880
|
-
let [V, re] = _;
|
|
881
|
-
H.deprecated(!(V in e), V, re);
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
const {
|
|
885
|
-
prefixCls: s,
|
|
886
|
-
className: m,
|
|
887
|
-
rootClassName: a,
|
|
888
|
-
open: f,
|
|
889
|
-
wrapClassName: u,
|
|
890
|
-
centered: v,
|
|
891
|
-
getContainer: E,
|
|
892
|
-
focusTriggerAfterClose: C = !0,
|
|
893
|
-
style: p,
|
|
894
|
-
// Deprecated
|
|
895
|
-
visible: y,
|
|
896
|
-
width: b = 520,
|
|
897
|
-
footer: P,
|
|
898
|
-
classNames: O,
|
|
899
|
-
styles: I,
|
|
900
|
-
children: S,
|
|
901
|
-
loading: w
|
|
902
|
-
} = e, L = Sn(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), B = n("modal", s), X = n(), g = Ke(B), [x, $, j] = ot(B, g), F = z(u, {
|
|
903
|
-
[`${B}-centered`]: v ?? (i == null ? void 0 : i.centered),
|
|
904
|
-
[`${B}-wrap-rtl`]: r === "rtl"
|
|
905
|
-
}), T = P !== null && !w ? /* @__PURE__ */ l.createElement(et, Object.assign({}, e, {
|
|
906
|
-
onOk: c,
|
|
907
|
-
onCancel: d
|
|
908
|
-
})) : null, [R, K, ne] = pn(Me(e), Me(i), {
|
|
909
|
-
closable: !0,
|
|
910
|
-
closeIcon: /* @__PURE__ */ l.createElement(pe, {
|
|
911
|
-
className: `${B}-close-icon`
|
|
912
|
-
}),
|
|
913
|
-
closeIconRender: (H) => Je(B, H)
|
|
914
|
-
}), Q = yn(`.${B}-content`), [Y, G] = Kt("Modal", L.zIndex), [oe, U] = l.useMemo(() => b && typeof b == "object" ? [void 0, b] : [b, void 0], [b]), de = l.useMemo(() => {
|
|
915
|
-
const H = {};
|
|
916
|
-
return U && Object.keys(U).forEach((_) => {
|
|
917
|
-
const V = U[_];
|
|
918
|
-
V !== void 0 && (H[`--${B}-${_}-width`] = typeof V == "number" ? `${V}px` : V);
|
|
919
|
-
}), H;
|
|
920
|
-
}, [U]);
|
|
921
|
-
return x(/* @__PURE__ */ l.createElement(Qt, {
|
|
922
|
-
form: !0,
|
|
923
|
-
space: !0
|
|
924
|
-
}, /* @__PURE__ */ l.createElement(qt.Provider, {
|
|
925
|
-
value: G
|
|
926
|
-
}, /* @__PURE__ */ l.createElement(Ye, Object.assign({
|
|
927
|
-
width: oe
|
|
928
|
-
}, L, {
|
|
929
|
-
zIndex: Y,
|
|
930
|
-
getContainer: E === void 0 ? o : E,
|
|
931
|
-
prefixCls: B,
|
|
932
|
-
rootClassName: z($, a, j, g),
|
|
933
|
-
footer: T,
|
|
934
|
-
visible: f ?? y,
|
|
935
|
-
mousePosition: (t = L.mousePosition) !== null && t !== void 0 ? t : ge,
|
|
936
|
-
onClose: d,
|
|
937
|
-
closable: R && {
|
|
938
|
-
disabled: ne,
|
|
939
|
-
closeIcon: K
|
|
940
|
-
},
|
|
941
|
-
closeIcon: K,
|
|
942
|
-
focusTriggerAfterClose: C,
|
|
943
|
-
transitionName: se(X, "zoom", e.transitionName),
|
|
944
|
-
maskTransitionName: se(X, "fade", e.maskTransitionName),
|
|
945
|
-
className: z($, m, i == null ? void 0 : i.className),
|
|
946
|
-
style: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.style), p), de),
|
|
947
|
-
classNames: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.classNames), O), {
|
|
948
|
-
wrapper: z(F, O == null ? void 0 : O.wrapper)
|
|
949
|
-
}),
|
|
950
|
-
styles: Object.assign(Object.assign({}, i == null ? void 0 : i.styles), I),
|
|
951
|
-
panelRef: Q
|
|
952
|
-
}), w ? /* @__PURE__ */ l.createElement(Yt, {
|
|
953
|
-
active: !0,
|
|
954
|
-
title: !1,
|
|
955
|
-
paragraph: {
|
|
956
|
-
rows: 4
|
|
957
|
-
},
|
|
958
|
-
className: `${B}-body-skeleton`
|
|
959
|
-
}) : S))));
|
|
960
|
-
}, Nn = (e) => {
|
|
961
|
-
const {
|
|
962
|
-
componentCls: t,
|
|
963
|
-
titleFontSize: o,
|
|
964
|
-
titleLineHeight: n,
|
|
965
|
-
modalConfirmIconSize: r,
|
|
966
|
-
fontSize: i,
|
|
967
|
-
lineHeight: d,
|
|
968
|
-
modalTitleHeight: c,
|
|
969
|
-
fontHeight: s,
|
|
970
|
-
confirmBodyPadding: m
|
|
971
|
-
} = e, a = `${t}-confirm`;
|
|
972
|
-
return {
|
|
973
|
-
[a]: {
|
|
974
|
-
"&-rtl": {
|
|
975
|
-
direction: "rtl"
|
|
976
|
-
},
|
|
977
|
-
[`${e.antCls}-modal-header`]: {
|
|
978
|
-
display: "none"
|
|
979
|
-
},
|
|
980
|
-
[`${a}-body-wrapper`]: Object.assign({}, Dt()),
|
|
981
|
-
[`&${t} ${t}-body`]: {
|
|
982
|
-
padding: m
|
|
983
|
-
},
|
|
984
|
-
// ====================== Body ======================
|
|
985
|
-
[`${a}-body`]: {
|
|
986
|
-
display: "flex",
|
|
987
|
-
flexWrap: "nowrap",
|
|
988
|
-
alignItems: "start",
|
|
989
|
-
[`> ${e.iconCls}`]: {
|
|
990
|
-
flex: "none",
|
|
991
|
-
fontSize: r,
|
|
992
|
-
marginInlineEnd: e.confirmIconMarginInlineEnd,
|
|
993
|
-
marginTop: e.calc(e.calc(s).sub(r).equal()).div(2).equal()
|
|
994
|
-
},
|
|
995
|
-
[`&-has-title > ${e.iconCls}`]: {
|
|
996
|
-
marginTop: e.calc(e.calc(c).sub(r).equal()).div(2).equal()
|
|
997
|
-
}
|
|
998
|
-
},
|
|
999
|
-
[`${a}-paragraph`]: {
|
|
1000
|
-
display: "flex",
|
|
1001
|
-
flexDirection: "column",
|
|
1002
|
-
flex: "auto",
|
|
1003
|
-
rowGap: e.marginXS,
|
|
1004
|
-
// https://github.com/ant-design/ant-design/issues/51912
|
|
1005
|
-
maxWidth: `calc(100% - ${N(e.marginSM)})`
|
|
1006
|
-
},
|
|
1007
|
-
// https://github.com/ant-design/ant-design/issues/48159
|
|
1008
|
-
[`${e.iconCls} + ${a}-paragraph`]: {
|
|
1009
|
-
maxWidth: `calc(100% - ${N(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`
|
|
1010
|
-
},
|
|
1011
|
-
[`${a}-title`]: {
|
|
1012
|
-
color: e.colorTextHeading,
|
|
1013
|
-
fontWeight: e.fontWeightStrong,
|
|
1014
|
-
fontSize: o,
|
|
1015
|
-
lineHeight: n
|
|
1016
|
-
},
|
|
1017
|
-
[`${a}-content`]: {
|
|
1018
|
-
color: e.colorText,
|
|
1019
|
-
fontSize: i,
|
|
1020
|
-
lineHeight: d
|
|
1021
|
-
},
|
|
1022
|
-
// ===================== Footer =====================
|
|
1023
|
-
[`${a}-btns`]: {
|
|
1024
|
-
textAlign: "end",
|
|
1025
|
-
marginTop: e.confirmBtnsMarginTop,
|
|
1026
|
-
[`${e.antCls}-btn + ${e.antCls}-btn`]: {
|
|
1027
|
-
marginBottom: 0,
|
|
1028
|
-
marginInlineStart: e.marginXS
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
},
|
|
1032
|
-
[`${a}-error ${a}-body > ${e.iconCls}`]: {
|
|
1033
|
-
color: e.colorError
|
|
1034
|
-
},
|
|
1035
|
-
[`${a}-warning ${a}-body > ${e.iconCls},
|
|
1036
|
-
${a}-confirm ${a}-body > ${e.iconCls}`]: {
|
|
1037
|
-
color: e.colorWarning
|
|
1038
|
-
},
|
|
1039
|
-
[`${a}-info ${a}-body > ${e.iconCls}`]: {
|
|
1040
|
-
color: e.colorInfo
|
|
1041
|
-
},
|
|
1042
|
-
[`${a}-success ${a}-body > ${e.iconCls}`]: {
|
|
1043
|
-
color: e.colorSuccess
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
|
-
}, Pn = Bt(["Modal", "confirm"], (e) => {
|
|
1047
|
-
const t = tt(e);
|
|
1048
|
-
return [Nn(t)];
|
|
1049
|
-
}, nt, {
|
|
1050
|
-
// confirm is weak than modal since no conflict here
|
|
1051
|
-
order: -1e3
|
|
1052
|
-
});
|
|
1053
|
-
var In = function(e, t) {
|
|
1054
|
-
var o = {};
|
|
1055
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1056
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1057
|
-
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1058
|
-
return o;
|
|
1059
|
-
};
|
|
1060
|
-
function at(e) {
|
|
1061
|
-
const {
|
|
1062
|
-
prefixCls: t,
|
|
1063
|
-
icon: o,
|
|
1064
|
-
okText: n,
|
|
1065
|
-
cancelText: r,
|
|
1066
|
-
confirmPrefixCls: i,
|
|
1067
|
-
type: d,
|
|
1068
|
-
okCancel: c,
|
|
1069
|
-
footer: s,
|
|
1070
|
-
// Legacy for static function usage
|
|
1071
|
-
locale: m
|
|
1072
|
-
} = e, a = In(e, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]);
|
|
1073
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1074
|
-
const w = Ce("Modal");
|
|
1075
|
-
process.env.NODE_ENV !== "production" && w(!(typeof o == "string" && o.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${o}\` at https://ant.design/components/icon`);
|
|
1076
|
-
}
|
|
1077
|
-
let f = o;
|
|
1078
|
-
if (!o && o !== null)
|
|
1079
|
-
switch (d) {
|
|
1080
|
-
case "info":
|
|
1081
|
-
f = /* @__PURE__ */ l.createElement(ke, null);
|
|
1082
|
-
break;
|
|
1083
|
-
case "success":
|
|
1084
|
-
f = /* @__PURE__ */ l.createElement(Vt, null);
|
|
1085
|
-
break;
|
|
1086
|
-
case "error":
|
|
1087
|
-
f = /* @__PURE__ */ l.createElement(Wt, null);
|
|
1088
|
-
break;
|
|
1089
|
-
default:
|
|
1090
|
-
f = /* @__PURE__ */ l.createElement(Gt, null);
|
|
1091
|
-
}
|
|
1092
|
-
const u = c ?? d === "confirm", v = e.autoFocusButton === null ? !1 : e.autoFocusButton || "ok", [E] = he("Modal"), C = m || E, p = n || (u ? C == null ? void 0 : C.okText : C == null ? void 0 : C.justOkText), y = r || (C == null ? void 0 : C.cancelText), b = Object.assign({
|
|
1093
|
-
autoFocusButton: v,
|
|
1094
|
-
cancelTextLocale: y,
|
|
1095
|
-
okTextLocale: p,
|
|
1096
|
-
mergedOkCancel: u
|
|
1097
|
-
}, a), P = l.useMemo(() => b, k(Object.values(b))), O = /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Ne, null), /* @__PURE__ */ l.createElement(Pe, null)), I = e.title !== void 0 && e.title !== null, S = `${i}-body`;
|
|
1098
|
-
return /* @__PURE__ */ l.createElement("div", {
|
|
1099
|
-
className: `${i}-body-wrapper`
|
|
1100
|
-
}, /* @__PURE__ */ l.createElement("div", {
|
|
1101
|
-
className: z(S, {
|
|
1102
|
-
[`${S}-has-title`]: I
|
|
1103
|
-
})
|
|
1104
|
-
}, f, /* @__PURE__ */ l.createElement("div", {
|
|
1105
|
-
className: `${i}-paragraph`
|
|
1106
|
-
}, I && /* @__PURE__ */ l.createElement("span", {
|
|
1107
|
-
className: `${i}-title`
|
|
1108
|
-
}, e.title), /* @__PURE__ */ l.createElement("div", {
|
|
1109
|
-
className: `${i}-content`
|
|
1110
|
-
}, e.content))), s === void 0 || typeof s == "function" ? /* @__PURE__ */ l.createElement(Xe, {
|
|
1111
|
-
value: P
|
|
1112
|
-
}, /* @__PURE__ */ l.createElement("div", {
|
|
1113
|
-
className: `${i}-btns`
|
|
1114
|
-
}, typeof s == "function" ? s(O, {
|
|
1115
|
-
OkBtn: Pe,
|
|
1116
|
-
CancelBtn: Ne
|
|
1117
|
-
}) : O)) : s, /* @__PURE__ */ l.createElement(Pn, {
|
|
1118
|
-
prefixCls: t
|
|
1119
|
-
}));
|
|
1120
|
-
}
|
|
1121
|
-
const lt = (e) => {
|
|
1122
|
-
const {
|
|
1123
|
-
close: t,
|
|
1124
|
-
zIndex: o,
|
|
1125
|
-
maskStyle: n,
|
|
1126
|
-
direction: r,
|
|
1127
|
-
prefixCls: i,
|
|
1128
|
-
wrapClassName: d,
|
|
1129
|
-
rootPrefixCls: c,
|
|
1130
|
-
bodyStyle: s,
|
|
1131
|
-
closable: m = !1,
|
|
1132
|
-
onConfirm: a,
|
|
1133
|
-
styles: f
|
|
1134
|
-
} = e;
|
|
1135
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1136
|
-
const O = Ce("Modal");
|
|
1137
|
-
[["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((I) => {
|
|
1138
|
-
let [S, w] = I;
|
|
1139
|
-
O.deprecated(!(S in e), S, w);
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
const u = `${i}-confirm`, v = e.width || 416, E = e.style || {}, C = e.mask === void 0 ? !0 : e.mask, p = e.maskClosable === void 0 ? !1 : e.maskClosable, y = z(u, `${u}-${e.type}`, {
|
|
1143
|
-
[`${u}-rtl`]: r === "rtl"
|
|
1144
|
-
}, e.className), [, b] = zt(), P = l.useMemo(() => o !== void 0 ? o : b.zIndexPopupBase + Ut, [o, b]);
|
|
1145
|
-
return /* @__PURE__ */ l.createElement(rt, Object.assign({}, e, {
|
|
1146
|
-
className: y,
|
|
1147
|
-
wrapClassName: z({
|
|
1148
|
-
[`${u}-centered`]: !!e.centered
|
|
1149
|
-
}, d),
|
|
1150
|
-
onCancel: () => {
|
|
1151
|
-
t == null || t({
|
|
1152
|
-
triggerCancel: !0
|
|
1153
|
-
}), a == null || a(!1);
|
|
1154
|
-
},
|
|
1155
|
-
title: "",
|
|
1156
|
-
footer: null,
|
|
1157
|
-
transitionName: se(c || "", "zoom", e.transitionName),
|
|
1158
|
-
maskTransitionName: se(c || "", "fade", e.maskTransitionName),
|
|
1159
|
-
mask: C,
|
|
1160
|
-
maskClosable: p,
|
|
1161
|
-
style: E,
|
|
1162
|
-
styles: Object.assign({
|
|
1163
|
-
body: s,
|
|
1164
|
-
mask: n
|
|
1165
|
-
}, f),
|
|
1166
|
-
width: v,
|
|
1167
|
-
zIndex: P,
|
|
1168
|
-
closable: m
|
|
1169
|
-
}), /* @__PURE__ */ l.createElement(at, Object.assign({}, e, {
|
|
1170
|
-
confirmPrefixCls: u
|
|
1171
|
-
})));
|
|
1172
|
-
}, xe = (e) => {
|
|
1173
|
-
const {
|
|
1174
|
-
rootPrefixCls: t,
|
|
1175
|
-
iconPrefixCls: o,
|
|
1176
|
-
direction: n,
|
|
1177
|
-
theme: r
|
|
1178
|
-
} = e;
|
|
1179
|
-
return /* @__PURE__ */ l.createElement(We, {
|
|
1180
|
-
prefixCls: t,
|
|
1181
|
-
iconPrefixCls: o,
|
|
1182
|
-
direction: n,
|
|
1183
|
-
theme: r
|
|
1184
|
-
}, /* @__PURE__ */ l.createElement(lt, Object.assign({}, e)));
|
|
1185
|
-
};
|
|
1186
|
-
process.env.NODE_ENV !== "production" && (lt.displayName = "ConfirmDialog", xe.displayName = "ConfirmDialogWrapper");
|
|
1187
|
-
const ee = [];
|
|
1188
|
-
let it = "";
|
|
1189
|
-
function st() {
|
|
1190
|
-
return it;
|
|
1191
|
-
}
|
|
1192
|
-
const Tn = (e) => {
|
|
1193
|
-
var t, o;
|
|
1194
|
-
const {
|
|
1195
|
-
prefixCls: n,
|
|
1196
|
-
getContainer: r,
|
|
1197
|
-
direction: i
|
|
1198
|
-
} = e, d = Ve(), c = ae(ce), s = st() || c.getPrefixCls(), m = n || `${s}-modal`;
|
|
1199
|
-
let a = r;
|
|
1200
|
-
return a === !1 && (a = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ h.createElement(xe, Object.assign({}, e, {
|
|
1201
|
-
rootPrefixCls: s,
|
|
1202
|
-
prefixCls: m,
|
|
1203
|
-
iconPrefixCls: c.iconPrefixCls,
|
|
1204
|
-
theme: c.theme,
|
|
1205
|
-
direction: i ?? c.direction,
|
|
1206
|
-
locale: (o = (t = c.locale) === null || t === void 0 ? void 0 : t.Modal) !== null && o !== void 0 ? o : d,
|
|
1207
|
-
getContainer: a
|
|
1208
|
-
}));
|
|
1209
|
-
};
|
|
1210
|
-
function ie(e) {
|
|
1211
|
-
const t = At();
|
|
1212
|
-
process.env.NODE_ENV !== "production" && !t.holderRender && _t("Modal");
|
|
1213
|
-
const o = document.createDocumentFragment();
|
|
1214
|
-
let n = Object.assign(Object.assign({}, e), {
|
|
1215
|
-
close: s,
|
|
1216
|
-
open: !0
|
|
1217
|
-
}), r, i;
|
|
1218
|
-
function d() {
|
|
1219
|
-
for (var a, f = arguments.length, u = new Array(f), v = 0; v < f; v++)
|
|
1220
|
-
u[v] = arguments[v];
|
|
1221
|
-
if (u.some((p) => p == null ? void 0 : p.triggerCancel)) {
|
|
1222
|
-
var C;
|
|
1223
|
-
(a = e.onCancel) === null || a === void 0 || (C = a).call.apply(C, [e, () => {
|
|
1224
|
-
}].concat(k(u.slice(1))));
|
|
1225
|
-
}
|
|
1226
|
-
for (let p = 0; p < ee.length; p++)
|
|
1227
|
-
if (ee[p] === s) {
|
|
1228
|
-
ee.splice(p, 1);
|
|
1229
|
-
break;
|
|
1230
|
-
}
|
|
1231
|
-
i();
|
|
1232
|
-
}
|
|
1233
|
-
function c(a) {
|
|
1234
|
-
clearTimeout(r), r = setTimeout(() => {
|
|
1235
|
-
const f = t.getPrefixCls(void 0, st()), u = t.getIconPrefixCls(), v = t.getTheme(), E = /* @__PURE__ */ h.createElement(Tn, Object.assign({}, a));
|
|
1236
|
-
i = Ht()(/* @__PURE__ */ h.createElement(We, {
|
|
1237
|
-
prefixCls: f,
|
|
1238
|
-
iconPrefixCls: u,
|
|
1239
|
-
theme: v
|
|
1240
|
-
}, t.holderRender ? t.holderRender(E) : E), o);
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
function s() {
|
|
1244
|
-
for (var a = arguments.length, f = new Array(a), u = 0; u < a; u++)
|
|
1245
|
-
f[u] = arguments[u];
|
|
1246
|
-
n = Object.assign(Object.assign({}, n), {
|
|
1247
|
-
open: !1,
|
|
1248
|
-
afterClose: () => {
|
|
1249
|
-
typeof e.afterClose == "function" && e.afterClose(), d.apply(this, f);
|
|
1250
|
-
}
|
|
1251
|
-
}), n.visible && delete n.visible, c(n);
|
|
1252
|
-
}
|
|
1253
|
-
function m(a) {
|
|
1254
|
-
typeof a == "function" ? n = a(n) : n = Object.assign(Object.assign({}, n), a), c(n);
|
|
1255
|
-
}
|
|
1256
|
-
return c(n), ee.push(s), {
|
|
1257
|
-
destroy: s,
|
|
1258
|
-
update: m
|
|
1259
|
-
};
|
|
1260
|
-
}
|
|
1261
|
-
function ct(e) {
|
|
1262
|
-
return Object.assign(Object.assign({}, e), {
|
|
1263
|
-
type: "warning"
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
function dt(e) {
|
|
1267
|
-
return Object.assign(Object.assign({}, e), {
|
|
1268
|
-
type: "info"
|
|
1269
|
-
});
|
|
1270
|
-
}
|
|
1271
|
-
function ut(e) {
|
|
1272
|
-
return Object.assign(Object.assign({}, e), {
|
|
1273
|
-
type: "success"
|
|
1274
|
-
});
|
|
1275
|
-
}
|
|
1276
|
-
function ft(e) {
|
|
1277
|
-
return Object.assign(Object.assign({}, e), {
|
|
1278
|
-
type: "error"
|
|
1279
|
-
});
|
|
1280
|
-
}
|
|
1281
|
-
function mt(e) {
|
|
1282
|
-
return Object.assign(Object.assign({}, e), {
|
|
1283
|
-
type: "confirm"
|
|
1284
|
-
});
|
|
1285
|
-
}
|
|
1286
|
-
function Mn(e) {
|
|
1287
|
-
let {
|
|
1288
|
-
rootPrefixCls: t
|
|
1289
|
-
} = e;
|
|
1290
|
-
process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), it = t;
|
|
1291
|
-
}
|
|
1292
|
-
var Rn = function(e, t) {
|
|
1293
|
-
var o = {};
|
|
1294
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1295
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1296
|
-
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1297
|
-
return o;
|
|
1298
|
-
};
|
|
1299
|
-
const jn = (e, t) => {
|
|
1300
|
-
var o, {
|
|
1301
|
-
afterClose: n,
|
|
1302
|
-
config: r
|
|
1303
|
-
} = e, i = Rn(e, ["afterClose", "config"]);
|
|
1304
|
-
const [d, c] = l.useState(!0), [s, m] = l.useState(r), {
|
|
1305
|
-
direction: a,
|
|
1306
|
-
getPrefixCls: f
|
|
1307
|
-
} = l.useContext(ce), u = f("modal"), v = f(), E = () => {
|
|
1308
|
-
var b;
|
|
1309
|
-
n(), (b = s.afterClose) === null || b === void 0 || b.call(s);
|
|
1310
|
-
}, C = function() {
|
|
1311
|
-
var b;
|
|
1312
|
-
c(!1);
|
|
1313
|
-
for (var P = arguments.length, O = new Array(P), I = 0; I < P; I++)
|
|
1314
|
-
O[I] = arguments[I];
|
|
1315
|
-
if (O.some((L) => L == null ? void 0 : L.triggerCancel)) {
|
|
1316
|
-
var w;
|
|
1317
|
-
(b = s.onCancel) === null || b === void 0 || (w = b).call.apply(w, [s, () => {
|
|
1318
|
-
}].concat(k(O.slice(1))));
|
|
1319
|
-
}
|
|
1320
|
-
};
|
|
1321
|
-
l.useImperativeHandle(t, () => ({
|
|
1322
|
-
destroy: C,
|
|
1323
|
-
update: (b) => {
|
|
1324
|
-
m((P) => Object.assign(Object.assign({}, P), b));
|
|
1325
|
-
}
|
|
1326
|
-
}));
|
|
1327
|
-
const p = (o = s.okCancel) !== null && o !== void 0 ? o : s.type === "confirm", [y] = he("Modal", Lt.Modal);
|
|
1328
|
-
return /* @__PURE__ */ l.createElement(xe, Object.assign({
|
|
1329
|
-
prefixCls: u,
|
|
1330
|
-
rootPrefixCls: v
|
|
1331
|
-
}, s, {
|
|
1332
|
-
close: C,
|
|
1333
|
-
open: d,
|
|
1334
|
-
afterClose: E,
|
|
1335
|
-
okText: s.okText || (p ? y == null ? void 0 : y.okText : y == null ? void 0 : y.justOkText),
|
|
1336
|
-
direction: s.direction || a,
|
|
1337
|
-
cancelText: s.cancelText || (y == null ? void 0 : y.cancelText)
|
|
1338
|
-
}, i));
|
|
1339
|
-
}, Bn = /* @__PURE__ */ l.forwardRef(jn);
|
|
1340
|
-
let _e = 0;
|
|
1341
|
-
const Dn = /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1342
|
-
const [o, n] = an();
|
|
1343
|
-
return l.useImperativeHandle(t, () => ({
|
|
1344
|
-
patchElement: n
|
|
1345
|
-
}), []), /* @__PURE__ */ l.createElement(l.Fragment, null, o);
|
|
1346
|
-
}));
|
|
1347
|
-
function zn() {
|
|
1348
|
-
const e = l.useRef(null), [t, o] = l.useState([]);
|
|
1349
|
-
l.useEffect(() => {
|
|
1350
|
-
t.length && (k(t).forEach((d) => {
|
|
1351
|
-
d();
|
|
1352
|
-
}), o([]));
|
|
1353
|
-
}, [t]);
|
|
1354
|
-
const n = l.useCallback((i) => function(c) {
|
|
1355
|
-
var s;
|
|
1356
|
-
_e += 1;
|
|
1357
|
-
const m = /* @__PURE__ */ l.createRef();
|
|
1358
|
-
let a;
|
|
1359
|
-
const f = new Promise((p) => {
|
|
1360
|
-
a = p;
|
|
1361
|
-
});
|
|
1362
|
-
let u = !1, v;
|
|
1363
|
-
const E = /* @__PURE__ */ l.createElement(Bn, {
|
|
1364
|
-
key: `modal-${_e}`,
|
|
1365
|
-
config: i(c),
|
|
1366
|
-
ref: m,
|
|
1367
|
-
afterClose: () => {
|
|
1368
|
-
v == null || v();
|
|
1369
|
-
},
|
|
1370
|
-
isSilent: () => u,
|
|
1371
|
-
onConfirm: (p) => {
|
|
1372
|
-
a(p);
|
|
1373
|
-
}
|
|
1374
|
-
});
|
|
1375
|
-
return v = (s = e.current) === null || s === void 0 ? void 0 : s.patchElement(E), v && ee.push(v), {
|
|
1376
|
-
destroy: () => {
|
|
1377
|
-
function p() {
|
|
1378
|
-
var y;
|
|
1379
|
-
(y = m.current) === null || y === void 0 || y.destroy();
|
|
1380
|
-
}
|
|
1381
|
-
m.current ? p() : o((y) => [].concat(k(y), [p]));
|
|
1382
|
-
},
|
|
1383
|
-
update: (p) => {
|
|
1384
|
-
function y() {
|
|
1385
|
-
var b;
|
|
1386
|
-
(b = m.current) === null || b === void 0 || b.update(p);
|
|
1387
|
-
}
|
|
1388
|
-
m.current ? y() : o((b) => [].concat(k(b), [y]));
|
|
1389
|
-
},
|
|
1390
|
-
then: (p) => (u = !0, f.then(p))
|
|
1391
|
-
};
|
|
1392
|
-
}, []);
|
|
1393
|
-
return [l.useMemo(() => ({
|
|
1394
|
-
info: n(dt),
|
|
1395
|
-
success: n(ut),
|
|
1396
|
-
error: n(ft),
|
|
1397
|
-
warning: n(ct),
|
|
1398
|
-
confirm: n(mt)
|
|
1399
|
-
}), []), /* @__PURE__ */ l.createElement(Dn, {
|
|
1400
|
-
key: "modal-holder",
|
|
1401
|
-
ref: e
|
|
1402
|
-
})];
|
|
1403
|
-
}
|
|
1404
|
-
var Fn = function(e, t) {
|
|
1405
|
-
var o = {};
|
|
1406
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1407
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1408
|
-
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1409
|
-
return o;
|
|
1410
|
-
};
|
|
1411
|
-
const _n = (e) => {
|
|
1412
|
-
const {
|
|
1413
|
-
prefixCls: t,
|
|
1414
|
-
className: o,
|
|
1415
|
-
closeIcon: n,
|
|
1416
|
-
closable: r,
|
|
1417
|
-
type: i,
|
|
1418
|
-
title: d,
|
|
1419
|
-
children: c,
|
|
1420
|
-
footer: s
|
|
1421
|
-
} = e, m = Fn(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
|
|
1422
|
-
getPrefixCls: a
|
|
1423
|
-
} = l.useContext(ce), f = a(), u = t || a("modal"), v = Ke(f), [E, C, p] = ot(u, v), y = `${u}-confirm`;
|
|
1424
|
-
let b = {};
|
|
1425
|
-
return i ? b = {
|
|
1426
|
-
closable: r ?? !1,
|
|
1427
|
-
title: "",
|
|
1428
|
-
footer: "",
|
|
1429
|
-
children: /* @__PURE__ */ l.createElement(at, Object.assign({}, e, {
|
|
1430
|
-
prefixCls: u,
|
|
1431
|
-
confirmPrefixCls: y,
|
|
1432
|
-
rootPrefixCls: f,
|
|
1433
|
-
content: c
|
|
1434
|
-
}))
|
|
1435
|
-
} : b = {
|
|
1436
|
-
closable: r ?? !0,
|
|
1437
|
-
title: d,
|
|
1438
|
-
footer: s !== null && /* @__PURE__ */ l.createElement(et, Object.assign({}, e)),
|
|
1439
|
-
children: c
|
|
1440
|
-
}, E(/* @__PURE__ */ l.createElement(ye, Object.assign({
|
|
1441
|
-
prefixCls: u,
|
|
1442
|
-
className: z(C, `${u}-pure-panel`, i && y, i && `${y}-${i}`, o, p, v)
|
|
1443
|
-
}, m, {
|
|
1444
|
-
closeIcon: Je(u, n),
|
|
1445
|
-
closable: r
|
|
1446
|
-
}, b)));
|
|
1447
|
-
}, An = nn(_n);
|
|
1448
|
-
function gt(e) {
|
|
1449
|
-
return ie(ct(e));
|
|
1450
|
-
}
|
|
1451
|
-
const W = rt;
|
|
1452
|
-
W.useModal = zn;
|
|
1453
|
-
W.info = function(t) {
|
|
1454
|
-
return ie(dt(t));
|
|
1455
|
-
};
|
|
1456
|
-
W.success = function(t) {
|
|
1457
|
-
return ie(ut(t));
|
|
1458
|
-
};
|
|
1459
|
-
W.error = function(t) {
|
|
1460
|
-
return ie(ft(t));
|
|
1461
|
-
};
|
|
1462
|
-
W.warning = gt;
|
|
1463
|
-
W.warn = gt;
|
|
1464
|
-
W.confirm = function(t) {
|
|
1465
|
-
return ie(mt(t));
|
|
1466
|
-
};
|
|
1467
|
-
W.destroyAll = function() {
|
|
1468
|
-
for (; ee.length; ) {
|
|
1469
|
-
const t = ee.pop();
|
|
1470
|
-
t && t();
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
W.config = Mn;
|
|
1474
|
-
W._InternalPanelDoNotUseOrYouWillBeFired = An;
|
|
1475
|
-
process.env.NODE_ENV !== "production" && (W.displayName = "Modal");
|
|
1476
|
-
var Ln = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "minus", theme: "outlined" }, Hn = function(t, o) {
|
|
1477
|
-
return /* @__PURE__ */ l.createElement(Le, q({}, t, {
|
|
1478
|
-
ref: o,
|
|
1479
|
-
icon: Ln
|
|
1480
|
-
}));
|
|
1481
|
-
}, vt = /* @__PURE__ */ l.forwardRef(Hn);
|
|
1482
|
-
process.env.NODE_ENV !== "production" && (vt.displayName = "MinusOutlined");
|
|
1483
|
-
const qo = () => {
|
|
1484
|
-
const { theme: e } = Et(), [t, o] = te(!1), [n, r] = te({ key: "", value: null }), [i, d] = te([]), [c, s] = te(""), [m, a] = te(!0), [f, u] = te([]);
|
|
1485
|
-
if (me(() => {
|
|
1486
|
-
e && (console.log("Theme changed, updating tree data:", e), u(O(e)));
|
|
1487
|
-
}, [e]), !e)
|
|
1488
|
-
return null;
|
|
1489
|
-
const v = () => {
|
|
1490
|
-
d([]), a(!1);
|
|
1491
|
-
}, E = () => {
|
|
1492
|
-
console.log("resetting"), s(""), v(), u(O(e));
|
|
1493
|
-
}, C = (g, x) => {
|
|
1494
|
-
const $ = [], j = (F, T) => {
|
|
1495
|
-
for (const R of F)
|
|
1496
|
-
R.children && (R.children.some((K) => K.key === T) && $.push(R.key), j(R.children, T));
|
|
1497
|
-
};
|
|
1498
|
-
return j(x, g), $;
|
|
1499
|
-
}, p = (g, x) => {
|
|
1500
|
-
let $ = [];
|
|
1501
|
-
const j = (F) => {
|
|
1502
|
-
F.forEach((T) => {
|
|
1503
|
-
if (T.title.toLowerCase().includes(x.toLowerCase())) {
|
|
1504
|
-
$.push(T.key);
|
|
1505
|
-
const R = C(T.key, g);
|
|
1506
|
-
$ = [...$, ...R];
|
|
1507
|
-
}
|
|
1508
|
-
T.children && j(T.children);
|
|
1509
|
-
});
|
|
1510
|
-
};
|
|
1511
|
-
return j(g), [...new Set($)];
|
|
1512
|
-
}, y = (g) => {
|
|
1513
|
-
if (!g.trim()) {
|
|
1514
|
-
E();
|
|
1515
|
-
return;
|
|
1516
|
-
}
|
|
1517
|
-
if (g.length >= 3) {
|
|
1518
|
-
const x = O(e);
|
|
1519
|
-
u(x);
|
|
1520
|
-
const $ = p(x, g);
|
|
1521
|
-
d($), s(g), a(!0);
|
|
1522
|
-
} else
|
|
1523
|
-
v(), s(g);
|
|
1524
|
-
}, b = (g) => {
|
|
1525
|
-
d(g), a(!1);
|
|
1526
|
-
}, P = (g) => `${g}_${Math.floor(Math.random() * 983423219)}`, O = (g) => {
|
|
1527
|
-
const x = [];
|
|
1528
|
-
for (const $ in g)
|
|
1529
|
-
typeof g[$] == "object" ? x.push({
|
|
1530
|
-
title: $,
|
|
1531
|
-
originalKey: $,
|
|
1532
|
-
key: P($),
|
|
1533
|
-
children: O(g[$]),
|
|
1534
|
-
value: g[$]
|
|
1535
|
-
}) : x.push({
|
|
1536
|
-
title: $,
|
|
1537
|
-
originalKey: $,
|
|
1538
|
-
key: P($),
|
|
1539
|
-
value: g[$]
|
|
1540
|
-
});
|
|
1541
|
-
return x;
|
|
1542
|
-
}, I = O(e), S = (g) => {
|
|
1543
|
-
g.children || (r({
|
|
1544
|
-
key: g.originalKey || g.title,
|
|
1545
|
-
value: g.value
|
|
1546
|
-
}), o(!0));
|
|
1547
|
-
}, w = (g) => typeof g == "string" && g.startsWith("#") ? /* @__PURE__ */ J("p", { children: [
|
|
1548
|
-
/* @__PURE__ */ D("strong", { children: "Color:" }),
|
|
1549
|
-
" ",
|
|
1550
|
-
g,
|
|
1551
|
-
/* @__PURE__ */ D(
|
|
1552
|
-
"div",
|
|
1553
|
-
{
|
|
1554
|
-
style: {
|
|
1555
|
-
width: 100,
|
|
1556
|
-
height: 100,
|
|
1557
|
-
backgroundColor: g,
|
|
1558
|
-
borderWidth: 1,
|
|
1559
|
-
border: "1px solid #ccc",
|
|
1560
|
-
borderRadius: 4,
|
|
1561
|
-
marginTop: 8
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
)
|
|
1565
|
-
] }) : /* @__PURE__ */ J("p", { children: [
|
|
1566
|
-
/* @__PURE__ */ D("strong", { children: "Value:" }),
|
|
1567
|
-
" ",
|
|
1568
|
-
String(n.value)
|
|
1569
|
-
] }), L = (g) => g.map((x) => {
|
|
1570
|
-
const $ = x.title.toLowerCase().indexOf(c.toLowerCase()), j = x.title.substring(0, $), F = x.title.substring($, $ + c.length), T = x.title.substring($ + c.length), R = $ > -1 ? /* @__PURE__ */ J("span", { children: [
|
|
1571
|
-
j,
|
|
1572
|
-
/* @__PURE__ */ D("span", { style: { color: "#f50" }, children: F }),
|
|
1573
|
-
T
|
|
1574
|
-
] }) : /* @__PURE__ */ D("span", { children: x.title });
|
|
1575
|
-
return x.children ? /* @__PURE__ */ D(fe.TreeNode, { title: R, children: L(x.children) }, x.key) : /* @__PURE__ */ $t(
|
|
1576
|
-
fe.TreeNode,
|
|
1577
|
-
{
|
|
1578
|
-
...x,
|
|
1579
|
-
key: x.key,
|
|
1580
|
-
title: /* @__PURE__ */ D("span", { onClick: () => S(x), children: R })
|
|
1581
|
-
}
|
|
1582
|
-
);
|
|
1583
|
-
}), B = e.mode.charAt(0).toUpperCase() + e.mode.slice(1), X = (g) => {
|
|
1584
|
-
const x = g.target.value;
|
|
1585
|
-
s(x), x ? x.length < 3 && v() : E();
|
|
1586
|
-
};
|
|
1587
|
-
return /* @__PURE__ */ J(yt, { children: [
|
|
1588
|
-
/* @__PURE__ */ D("div", { style: { margin: "16px 0px" }, children: /* @__PURE__ */ J(Ot, { variant: "heading2", children: [
|
|
1589
|
-
B,
|
|
1590
|
-
" Mode"
|
|
1591
|
-
] }) }),
|
|
1592
|
-
/* @__PURE__ */ D(
|
|
1593
|
-
St.Search,
|
|
1594
|
-
{
|
|
1595
|
-
style: { marginBottom: 8, width: 300 },
|
|
1596
|
-
placeholder: "Search token (min 3 characters)...",
|
|
1597
|
-
onSearch: y,
|
|
1598
|
-
allowClear: !0,
|
|
1599
|
-
onChange: X,
|
|
1600
|
-
value: c
|
|
1601
|
-
}
|
|
1602
|
-
),
|
|
1603
|
-
/* @__PURE__ */ D(
|
|
1604
|
-
fe,
|
|
1605
|
-
{
|
|
1606
|
-
selectable: !1,
|
|
1607
|
-
expandedKeys: i,
|
|
1608
|
-
autoExpandParent: m,
|
|
1609
|
-
onExpand: b,
|
|
1610
|
-
switcherIcon: (g) => {
|
|
1611
|
-
const { expanded: x } = g;
|
|
1612
|
-
return x ? /* @__PURE__ */ D(vt, {}) : /* @__PURE__ */ D(Nt, {});
|
|
1613
|
-
},
|
|
1614
|
-
children: L(f.length > 0 ? f : I)
|
|
1615
|
-
}
|
|
1616
|
-
),
|
|
1617
|
-
/* @__PURE__ */ D(
|
|
1618
|
-
W,
|
|
1619
|
-
{
|
|
1620
|
-
title: "Properties",
|
|
1621
|
-
open: t,
|
|
1622
|
-
onOk: () => o(!1),
|
|
1623
|
-
onCancel: () => o(!1),
|
|
1624
|
-
width: 300,
|
|
1625
|
-
children: /* @__PURE__ */ D(
|
|
1626
|
-
"div",
|
|
1627
|
-
{
|
|
1628
|
-
style: {
|
|
1629
|
-
display: "flex",
|
|
1630
|
-
flexDirection: "column",
|
|
1631
|
-
alignItems: "center",
|
|
1632
|
-
width: 250,
|
|
1633
|
-
padding: 16,
|
|
1634
|
-
borderRadius: 4,
|
|
1635
|
-
backgroundColor: "#f9f9f9"
|
|
1636
|
-
},
|
|
1637
|
-
children: /* @__PURE__ */ J("div", { children: [
|
|
1638
|
-
/* @__PURE__ */ D("div", { children: /* @__PURE__ */ J("p", { children: [
|
|
1639
|
-
/* @__PURE__ */ D("strong", { children: "Token:" }),
|
|
1640
|
-
" ",
|
|
1641
|
-
n.key
|
|
1642
|
-
] }) }),
|
|
1643
|
-
/* @__PURE__ */ D("div", { children: w(n.value) })
|
|
1644
|
-
] })
|
|
1645
|
-
}
|
|
1646
|
-
)
|
|
1647
|
-
}
|
|
1648
|
-
)
|
|
1649
|
-
] });
|
|
1650
|
-
};
|
|
1651
|
-
export {
|
|
1652
|
-
qo as ThemeTree
|
|
1653
|
-
};
|