@gobolt/genesis 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/AntdIcon-c395a1c4.js +204 -0
- package/dist/CheckOutlined-52d9ac25.js +29 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
- package/dist/CloseOutlined-14b8bba1.js +16 -0
- package/dist/Compact-c39ed20d.js +179 -0
- package/dist/ContextIsolator-b09b2c52.js +20 -0
- package/dist/DownOutlined-64a4732a.js +206 -0
- package/dist/EllipsisOutlined-60122660.js +1115 -0
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
- package/dist/InfoCircleFilled-c5f90c20.js +16 -0
- package/dist/Overflow-a570fa69.js +361 -0
- package/dist/RightOutlined-83515eb4.js +16 -0
- package/dist/SearchOutlined-a9014e08.js +16 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
- package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
- package/dist/collapse-345bc884.js +20 -0
- package/dist/compact-item-b8f85aa6.js +75 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +102 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +72 -0
- package/dist/components/Badge/icons/ASN.d.ts +2 -0
- package/dist/components/Badge/icons/ASN.js +23 -0
- package/dist/components/Badge/icons/Appointment.d.ts +2 -0
- package/dist/components/Badge/icons/Appointment.js +23 -0
- package/dist/components/Badge/icons/Inventory.d.ts +2 -0
- package/dist/components/Badge/icons/Inventory.js +23 -0
- package/dist/components/Badge/icons/Parcel.d.ts +2 -0
- package/dist/components/Badge/icons/Parcel.js +23 -0
- package/dist/components/Badge/icons/Product.d.ts +2 -0
- package/dist/components/Badge/icons/Product.js +23 -0
- package/dist/components/Badge/icons/Route.d.ts +2 -0
- package/dist/components/Badge/icons/Route.js +23 -0
- package/dist/components/Badge/icons/Shipment.d.ts +2 -0
- package/dist/components/Badge/icons/Shipment.js +23 -0
- package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
- package/dist/components/Badge/icons/ShoppingCart.js +23 -0
- package/dist/components/Badge/icons/System.d.ts +2 -0
- package/dist/components/Badge/icons/System.js +23 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +23 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +35 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +27 -0
- package/dist/components/Breadcrumb/styles.d.ts +23 -0
- package/dist/components/Breadcrumb/styles.js +2457 -0
- package/dist/components/Button/Button.js +42 -0
- package/dist/components/Button/__tests__/Button.test.js +61 -0
- package/dist/components/Button/index.js +22 -0
- package/dist/components/{atoms/button → Button}/styles.js +30 -19
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +70 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
- package/dist/components/Checkbox/index.js +49 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
- package/dist/components/ErrorBoundaryFallback/index.js +51 -0
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
- package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
- package/dist/components/Form/Form.js +49 -0
- package/dist/components/Form/__stories__/FormStory.js +130 -0
- package/dist/components/Form/index.js +48 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +42 -0
- package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
- package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/Input/__tests__/Input.test.js +69 -0
- package/dist/components/Input/index.js +31 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
- package/dist/components/Input/styles.js +542 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +105 -0
- package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
- package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
- package/dist/components/Message/__tests__/Message.test.js +88 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +50 -0
- package/dist/components/Message/styles.d.ts +5 -0
- package/dist/components/Message/styles.js +35 -0
- package/dist/components/Notification/Notification.d.ts +16 -0
- package/dist/components/Notification/Notification.js +1436 -0
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
- package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/components/Notification/__tests__/Notification.test.js +76 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +61 -0
- package/dist/components/Notification/styles.d.ts +6 -0
- package/dist/components/Notification/styles.js +49 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +114 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +86 -0
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +58 -0
- package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioChecked.js +18 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
- package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
- package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioUnchecked.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
- package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
- package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
- package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/Select/__tests__/Select.test.js +101 -0
- package/dist/components/Select/index.js +30 -0
- package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
- package/dist/components/Select/styles.js +3723 -0
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +48 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +63 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +48 -0
- package/dist/components/Toast/styles.d.ts +5 -0
- package/dist/components/Toast/styles.js +39 -0
- package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
- package/dist/components/Typography/Typography.js +48 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +60 -0
- package/dist/components/Typography/index.js +48 -0
- package/dist/components/Typography/styles.d.ts +7 -0
- package/dist/components/Typography/styles.js +55 -0
- package/dist/components/index.d.ts +18 -14
- package/dist/components/index.js +70 -14
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
- package/dist/genesis/GenesisThemeBreakdown.js +69 -22
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +53 -4
- package/dist/genesis/styles.d.ts +2 -6
- package/dist/genesis/styles.js +1144 -2210
- package/dist/index-0a886e53.js +100 -0
- package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
- package/dist/index-1a33c134.js +1389 -0
- package/dist/index-4003d75b.js +3748 -0
- package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
- package/dist/index-89035ea5.js +3242 -0
- package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
- package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
- package/dist/index.d.ts +1 -0
- package/dist/index.js +77 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
- package/dist/presets-83ccb923.js +787 -0
- package/dist/providers/GenesisProvider.d.ts +5 -0
- package/dist/providers/GenesisProvider.js +59 -5
- package/dist/providers/ThemeProvider.d.ts +2 -1
- package/dist/providers/ThemeProvider.js +16 -11
- package/dist/providers/ToastProvider.d.ts +6 -0
- package/dist/providers/ToastProvider.js +49 -0
- package/dist/providers/ToastWrapper.d.ts +7 -0
- package/dist/providers/ToastWrapper.js +56 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +3 -2
- package/dist/providers/index.js +51 -4
- package/dist/setup-aaca7b6f.js +21158 -0
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
- package/dist/styles/design-tokens/variables.d.ts +7 -7
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.js +4 -3
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +402 -263
- package/dist/styles/theme/global-styles.js +4 -3
- package/dist/styles/theme/index.js +5 -4
- package/dist/test/setup.js +46 -2
- package/dist/useVariants-a0d64298.js +30 -0
- package/dist/utils/isAllEnglishString.js +2 -1
- package/package.json +34 -28
- package/dist/AntdIcon-Bsnbyy6g.js +0 -200
- package/dist/CheckOutlined-DAynWe12.js +0 -527
- package/dist/Compact-CJBo3f0u.js +0 -185
- package/dist/ContextIsolator-CGkdKtc3.js +0 -20
- package/dist/Form-Cylpi4M4.js +0 -1815
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/compact-item-DH13cl8A.js +0 -61
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/index.js +0 -4
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
- package/dist/components/atoms/checkbox/index.js +0 -4
- package/dist/components/atoms/index.d.ts +0 -1
- package/dist/components/atoms/index.js +0 -3
- package/dist/components/atoms/input/Input.js +0 -12
- package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
- package/dist/components/atoms/input/index.js +0 -4
- package/dist/components/atoms/input/styles.js +0 -415
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
- package/dist/components/atoms/select/index.js +0 -4
- package/dist/components/atoms/select/styles.js +0 -3868
- package/dist/components/atoms/typography/Typography.js +0 -44
- package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
- package/dist/components/atoms/typography/index.js +0 -4
- package/dist/components/atoms/typography/styles.d.ts +0 -11
- package/dist/components/atoms/typography/styles.js +0 -28
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
- package/dist/components/molecules/form/Form.js +0 -7
- package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
- package/dist/components/molecules/form/index.js +0 -4
- package/dist/index-3MWkSVA1.js +0 -96
- package/dist/index-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/index-VDH3iLaC.js +0 -884
- package/dist/setup-CMYVZCPF.js +0 -33883
- package/dist/useVariants-CEpw6Ww6.js +0 -29
- /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
- /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
- /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
- /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
- /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
- /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
- /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
|
@@ -1,527 +0,0 @@
|
|
|
1
|
-
import { _ as s } from "./index-BWys7dkb.js";
|
|
2
|
-
import * as c from "react";
|
|
3
|
-
import { I as _ } from "./AntdIcon-Bsnbyy6g.js";
|
|
4
|
-
var E = {
|
|
5
|
-
/**
|
|
6
|
-
* MAC_ENTER
|
|
7
|
-
*/
|
|
8
|
-
MAC_ENTER: 3,
|
|
9
|
-
/**
|
|
10
|
-
* BACKSPACE
|
|
11
|
-
*/
|
|
12
|
-
BACKSPACE: 8,
|
|
13
|
-
/**
|
|
14
|
-
* TAB
|
|
15
|
-
*/
|
|
16
|
-
TAB: 9,
|
|
17
|
-
/**
|
|
18
|
-
* NUMLOCK on FF/Safari Mac
|
|
19
|
-
*/
|
|
20
|
-
NUM_CENTER: 12,
|
|
21
|
-
// NUMLOCK on FF/Safari Mac
|
|
22
|
-
/**
|
|
23
|
-
* ENTER
|
|
24
|
-
*/
|
|
25
|
-
ENTER: 13,
|
|
26
|
-
/**
|
|
27
|
-
* SHIFT
|
|
28
|
-
*/
|
|
29
|
-
SHIFT: 16,
|
|
30
|
-
/**
|
|
31
|
-
* CTRL
|
|
32
|
-
*/
|
|
33
|
-
CTRL: 17,
|
|
34
|
-
/**
|
|
35
|
-
* ALT
|
|
36
|
-
*/
|
|
37
|
-
ALT: 18,
|
|
38
|
-
/**
|
|
39
|
-
* PAUSE
|
|
40
|
-
*/
|
|
41
|
-
PAUSE: 19,
|
|
42
|
-
/**
|
|
43
|
-
* CAPS_LOCK
|
|
44
|
-
*/
|
|
45
|
-
CAPS_LOCK: 20,
|
|
46
|
-
/**
|
|
47
|
-
* ESC
|
|
48
|
-
*/
|
|
49
|
-
ESC: 27,
|
|
50
|
-
/**
|
|
51
|
-
* SPACE
|
|
52
|
-
*/
|
|
53
|
-
SPACE: 32,
|
|
54
|
-
/**
|
|
55
|
-
* PAGE_UP
|
|
56
|
-
*/
|
|
57
|
-
PAGE_UP: 33,
|
|
58
|
-
// also NUM_NORTH_EAST
|
|
59
|
-
/**
|
|
60
|
-
* PAGE_DOWN
|
|
61
|
-
*/
|
|
62
|
-
PAGE_DOWN: 34,
|
|
63
|
-
// also NUM_SOUTH_EAST
|
|
64
|
-
/**
|
|
65
|
-
* END
|
|
66
|
-
*/
|
|
67
|
-
END: 35,
|
|
68
|
-
// also NUM_SOUTH_WEST
|
|
69
|
-
/**
|
|
70
|
-
* HOME
|
|
71
|
-
*/
|
|
72
|
-
HOME: 36,
|
|
73
|
-
// also NUM_NORTH_WEST
|
|
74
|
-
/**
|
|
75
|
-
* LEFT
|
|
76
|
-
*/
|
|
77
|
-
LEFT: 37,
|
|
78
|
-
// also NUM_WEST
|
|
79
|
-
/**
|
|
80
|
-
* UP
|
|
81
|
-
*/
|
|
82
|
-
UP: 38,
|
|
83
|
-
// also NUM_NORTH
|
|
84
|
-
/**
|
|
85
|
-
* RIGHT
|
|
86
|
-
*/
|
|
87
|
-
RIGHT: 39,
|
|
88
|
-
// also NUM_EAST
|
|
89
|
-
/**
|
|
90
|
-
* DOWN
|
|
91
|
-
*/
|
|
92
|
-
DOWN: 40,
|
|
93
|
-
// also NUM_SOUTH
|
|
94
|
-
/**
|
|
95
|
-
* PRINT_SCREEN
|
|
96
|
-
*/
|
|
97
|
-
PRINT_SCREEN: 44,
|
|
98
|
-
/**
|
|
99
|
-
* INSERT
|
|
100
|
-
*/
|
|
101
|
-
INSERT: 45,
|
|
102
|
-
// also NUM_INSERT
|
|
103
|
-
/**
|
|
104
|
-
* DELETE
|
|
105
|
-
*/
|
|
106
|
-
DELETE: 46,
|
|
107
|
-
// also NUM_DELETE
|
|
108
|
-
/**
|
|
109
|
-
* ZERO
|
|
110
|
-
*/
|
|
111
|
-
ZERO: 48,
|
|
112
|
-
/**
|
|
113
|
-
* ONE
|
|
114
|
-
*/
|
|
115
|
-
ONE: 49,
|
|
116
|
-
/**
|
|
117
|
-
* TWO
|
|
118
|
-
*/
|
|
119
|
-
TWO: 50,
|
|
120
|
-
/**
|
|
121
|
-
* THREE
|
|
122
|
-
*/
|
|
123
|
-
THREE: 51,
|
|
124
|
-
/**
|
|
125
|
-
* FOUR
|
|
126
|
-
*/
|
|
127
|
-
FOUR: 52,
|
|
128
|
-
/**
|
|
129
|
-
* FIVE
|
|
130
|
-
*/
|
|
131
|
-
FIVE: 53,
|
|
132
|
-
/**
|
|
133
|
-
* SIX
|
|
134
|
-
*/
|
|
135
|
-
SIX: 54,
|
|
136
|
-
/**
|
|
137
|
-
* SEVEN
|
|
138
|
-
*/
|
|
139
|
-
SEVEN: 55,
|
|
140
|
-
/**
|
|
141
|
-
* EIGHT
|
|
142
|
-
*/
|
|
143
|
-
EIGHT: 56,
|
|
144
|
-
/**
|
|
145
|
-
* NINE
|
|
146
|
-
*/
|
|
147
|
-
NINE: 57,
|
|
148
|
-
/**
|
|
149
|
-
* QUESTION_MARK
|
|
150
|
-
*/
|
|
151
|
-
QUESTION_MARK: 63,
|
|
152
|
-
// needs localization
|
|
153
|
-
/**
|
|
154
|
-
* A
|
|
155
|
-
*/
|
|
156
|
-
A: 65,
|
|
157
|
-
/**
|
|
158
|
-
* B
|
|
159
|
-
*/
|
|
160
|
-
B: 66,
|
|
161
|
-
/**
|
|
162
|
-
* C
|
|
163
|
-
*/
|
|
164
|
-
C: 67,
|
|
165
|
-
/**
|
|
166
|
-
* D
|
|
167
|
-
*/
|
|
168
|
-
D: 68,
|
|
169
|
-
/**
|
|
170
|
-
* E
|
|
171
|
-
*/
|
|
172
|
-
E: 69,
|
|
173
|
-
/**
|
|
174
|
-
* F
|
|
175
|
-
*/
|
|
176
|
-
F: 70,
|
|
177
|
-
/**
|
|
178
|
-
* G
|
|
179
|
-
*/
|
|
180
|
-
G: 71,
|
|
181
|
-
/**
|
|
182
|
-
* H
|
|
183
|
-
*/
|
|
184
|
-
H: 72,
|
|
185
|
-
/**
|
|
186
|
-
* I
|
|
187
|
-
*/
|
|
188
|
-
I: 73,
|
|
189
|
-
/**
|
|
190
|
-
* J
|
|
191
|
-
*/
|
|
192
|
-
J: 74,
|
|
193
|
-
/**
|
|
194
|
-
* K
|
|
195
|
-
*/
|
|
196
|
-
K: 75,
|
|
197
|
-
/**
|
|
198
|
-
* L
|
|
199
|
-
*/
|
|
200
|
-
L: 76,
|
|
201
|
-
/**
|
|
202
|
-
* M
|
|
203
|
-
*/
|
|
204
|
-
M: 77,
|
|
205
|
-
/**
|
|
206
|
-
* N
|
|
207
|
-
*/
|
|
208
|
-
N: 78,
|
|
209
|
-
/**
|
|
210
|
-
* O
|
|
211
|
-
*/
|
|
212
|
-
O: 79,
|
|
213
|
-
/**
|
|
214
|
-
* P
|
|
215
|
-
*/
|
|
216
|
-
P: 80,
|
|
217
|
-
/**
|
|
218
|
-
* Q
|
|
219
|
-
*/
|
|
220
|
-
Q: 81,
|
|
221
|
-
/**
|
|
222
|
-
* R
|
|
223
|
-
*/
|
|
224
|
-
R: 82,
|
|
225
|
-
/**
|
|
226
|
-
* S
|
|
227
|
-
*/
|
|
228
|
-
S: 83,
|
|
229
|
-
/**
|
|
230
|
-
* T
|
|
231
|
-
*/
|
|
232
|
-
T: 84,
|
|
233
|
-
/**
|
|
234
|
-
* U
|
|
235
|
-
*/
|
|
236
|
-
U: 85,
|
|
237
|
-
/**
|
|
238
|
-
* V
|
|
239
|
-
*/
|
|
240
|
-
V: 86,
|
|
241
|
-
/**
|
|
242
|
-
* W
|
|
243
|
-
*/
|
|
244
|
-
W: 87,
|
|
245
|
-
/**
|
|
246
|
-
* X
|
|
247
|
-
*/
|
|
248
|
-
X: 88,
|
|
249
|
-
/**
|
|
250
|
-
* Y
|
|
251
|
-
*/
|
|
252
|
-
Y: 89,
|
|
253
|
-
/**
|
|
254
|
-
* Z
|
|
255
|
-
*/
|
|
256
|
-
Z: 90,
|
|
257
|
-
/**
|
|
258
|
-
* META
|
|
259
|
-
*/
|
|
260
|
-
META: 91,
|
|
261
|
-
// WIN_KEY_LEFT
|
|
262
|
-
/**
|
|
263
|
-
* WIN_KEY_RIGHT
|
|
264
|
-
*/
|
|
265
|
-
WIN_KEY_RIGHT: 92,
|
|
266
|
-
/**
|
|
267
|
-
* CONTEXT_MENU
|
|
268
|
-
*/
|
|
269
|
-
CONTEXT_MENU: 93,
|
|
270
|
-
/**
|
|
271
|
-
* NUM_ZERO
|
|
272
|
-
*/
|
|
273
|
-
NUM_ZERO: 96,
|
|
274
|
-
/**
|
|
275
|
-
* NUM_ONE
|
|
276
|
-
*/
|
|
277
|
-
NUM_ONE: 97,
|
|
278
|
-
/**
|
|
279
|
-
* NUM_TWO
|
|
280
|
-
*/
|
|
281
|
-
NUM_TWO: 98,
|
|
282
|
-
/**
|
|
283
|
-
* NUM_THREE
|
|
284
|
-
*/
|
|
285
|
-
NUM_THREE: 99,
|
|
286
|
-
/**
|
|
287
|
-
* NUM_FOUR
|
|
288
|
-
*/
|
|
289
|
-
NUM_FOUR: 100,
|
|
290
|
-
/**
|
|
291
|
-
* NUM_FIVE
|
|
292
|
-
*/
|
|
293
|
-
NUM_FIVE: 101,
|
|
294
|
-
/**
|
|
295
|
-
* NUM_SIX
|
|
296
|
-
*/
|
|
297
|
-
NUM_SIX: 102,
|
|
298
|
-
/**
|
|
299
|
-
* NUM_SEVEN
|
|
300
|
-
*/
|
|
301
|
-
NUM_SEVEN: 103,
|
|
302
|
-
/**
|
|
303
|
-
* NUM_EIGHT
|
|
304
|
-
*/
|
|
305
|
-
NUM_EIGHT: 104,
|
|
306
|
-
/**
|
|
307
|
-
* NUM_NINE
|
|
308
|
-
*/
|
|
309
|
-
NUM_NINE: 105,
|
|
310
|
-
/**
|
|
311
|
-
* NUM_MULTIPLY
|
|
312
|
-
*/
|
|
313
|
-
NUM_MULTIPLY: 106,
|
|
314
|
-
/**
|
|
315
|
-
* NUM_PLUS
|
|
316
|
-
*/
|
|
317
|
-
NUM_PLUS: 107,
|
|
318
|
-
/**
|
|
319
|
-
* NUM_MINUS
|
|
320
|
-
*/
|
|
321
|
-
NUM_MINUS: 109,
|
|
322
|
-
/**
|
|
323
|
-
* NUM_PERIOD
|
|
324
|
-
*/
|
|
325
|
-
NUM_PERIOD: 110,
|
|
326
|
-
/**
|
|
327
|
-
* NUM_DIVISION
|
|
328
|
-
*/
|
|
329
|
-
NUM_DIVISION: 111,
|
|
330
|
-
/**
|
|
331
|
-
* F1
|
|
332
|
-
*/
|
|
333
|
-
F1: 112,
|
|
334
|
-
/**
|
|
335
|
-
* F2
|
|
336
|
-
*/
|
|
337
|
-
F2: 113,
|
|
338
|
-
/**
|
|
339
|
-
* F3
|
|
340
|
-
*/
|
|
341
|
-
F3: 114,
|
|
342
|
-
/**
|
|
343
|
-
* F4
|
|
344
|
-
*/
|
|
345
|
-
F4: 115,
|
|
346
|
-
/**
|
|
347
|
-
* F5
|
|
348
|
-
*/
|
|
349
|
-
F5: 116,
|
|
350
|
-
/**
|
|
351
|
-
* F6
|
|
352
|
-
*/
|
|
353
|
-
F6: 117,
|
|
354
|
-
/**
|
|
355
|
-
* F7
|
|
356
|
-
*/
|
|
357
|
-
F7: 118,
|
|
358
|
-
/**
|
|
359
|
-
* F8
|
|
360
|
-
*/
|
|
361
|
-
F8: 119,
|
|
362
|
-
/**
|
|
363
|
-
* F9
|
|
364
|
-
*/
|
|
365
|
-
F9: 120,
|
|
366
|
-
/**
|
|
367
|
-
* F10
|
|
368
|
-
*/
|
|
369
|
-
F10: 121,
|
|
370
|
-
/**
|
|
371
|
-
* F11
|
|
372
|
-
*/
|
|
373
|
-
F11: 122,
|
|
374
|
-
/**
|
|
375
|
-
* F12
|
|
376
|
-
*/
|
|
377
|
-
F12: 123,
|
|
378
|
-
/**
|
|
379
|
-
* NUMLOCK
|
|
380
|
-
*/
|
|
381
|
-
NUMLOCK: 144,
|
|
382
|
-
/**
|
|
383
|
-
* SEMICOLON
|
|
384
|
-
*/
|
|
385
|
-
SEMICOLON: 186,
|
|
386
|
-
// needs localization
|
|
387
|
-
/**
|
|
388
|
-
* DASH
|
|
389
|
-
*/
|
|
390
|
-
DASH: 189,
|
|
391
|
-
// needs localization
|
|
392
|
-
/**
|
|
393
|
-
* EQUALS
|
|
394
|
-
*/
|
|
395
|
-
EQUALS: 187,
|
|
396
|
-
// needs localization
|
|
397
|
-
/**
|
|
398
|
-
* COMMA
|
|
399
|
-
*/
|
|
400
|
-
COMMA: 188,
|
|
401
|
-
// needs localization
|
|
402
|
-
/**
|
|
403
|
-
* PERIOD
|
|
404
|
-
*/
|
|
405
|
-
PERIOD: 190,
|
|
406
|
-
// needs localization
|
|
407
|
-
/**
|
|
408
|
-
* SLASH
|
|
409
|
-
*/
|
|
410
|
-
SLASH: 191,
|
|
411
|
-
// needs localization
|
|
412
|
-
/**
|
|
413
|
-
* APOSTROPHE
|
|
414
|
-
*/
|
|
415
|
-
APOSTROPHE: 192,
|
|
416
|
-
// needs localization
|
|
417
|
-
/**
|
|
418
|
-
* SINGLE_QUOTE
|
|
419
|
-
*/
|
|
420
|
-
SINGLE_QUOTE: 222,
|
|
421
|
-
// needs localization
|
|
422
|
-
/**
|
|
423
|
-
* OPEN_SQUARE_BRACKET
|
|
424
|
-
*/
|
|
425
|
-
OPEN_SQUARE_BRACKET: 219,
|
|
426
|
-
// needs localization
|
|
427
|
-
/**
|
|
428
|
-
* BACKSLASH
|
|
429
|
-
*/
|
|
430
|
-
BACKSLASH: 220,
|
|
431
|
-
// needs localization
|
|
432
|
-
/**
|
|
433
|
-
* CLOSE_SQUARE_BRACKET
|
|
434
|
-
*/
|
|
435
|
-
CLOSE_SQUARE_BRACKET: 221,
|
|
436
|
-
// needs localization
|
|
437
|
-
/**
|
|
438
|
-
* WIN_KEY
|
|
439
|
-
*/
|
|
440
|
-
WIN_KEY: 224,
|
|
441
|
-
/**
|
|
442
|
-
* MAC_FF_META
|
|
443
|
-
*/
|
|
444
|
-
MAC_FF_META: 224,
|
|
445
|
-
// Firefox (Gecko) fires this for the meta key instead of 91
|
|
446
|
-
/**
|
|
447
|
-
* WIN_IME
|
|
448
|
-
*/
|
|
449
|
-
WIN_IME: 229,
|
|
450
|
-
// ======================== Function ========================
|
|
451
|
-
/**
|
|
452
|
-
* whether text and modified key is entered at the same time.
|
|
453
|
-
*/
|
|
454
|
-
isTextModifyingKeyEvent: function(e) {
|
|
455
|
-
var a = e.keyCode;
|
|
456
|
-
if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text
|
|
457
|
-
a >= E.F1 && a <= E.F12)
|
|
458
|
-
return !1;
|
|
459
|
-
switch (a) {
|
|
460
|
-
case E.ALT:
|
|
461
|
-
case E.CAPS_LOCK:
|
|
462
|
-
case E.CONTEXT_MENU:
|
|
463
|
-
case E.CTRL:
|
|
464
|
-
case E.DOWN:
|
|
465
|
-
case E.END:
|
|
466
|
-
case E.ESC:
|
|
467
|
-
case E.HOME:
|
|
468
|
-
case E.INSERT:
|
|
469
|
-
case E.LEFT:
|
|
470
|
-
case E.MAC_FF_META:
|
|
471
|
-
case E.META:
|
|
472
|
-
case E.NUMLOCK:
|
|
473
|
-
case E.NUM_CENTER:
|
|
474
|
-
case E.PAGE_DOWN:
|
|
475
|
-
case E.PAGE_UP:
|
|
476
|
-
case E.PAUSE:
|
|
477
|
-
case E.PRINT_SCREEN:
|
|
478
|
-
case E.RIGHT:
|
|
479
|
-
case E.SHIFT:
|
|
480
|
-
case E.UP:
|
|
481
|
-
case E.WIN_KEY:
|
|
482
|
-
case E.WIN_KEY_RIGHT:
|
|
483
|
-
return !1;
|
|
484
|
-
default:
|
|
485
|
-
return !0;
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
/**
|
|
489
|
-
* whether character is entered.
|
|
490
|
-
*/
|
|
491
|
-
isCharacterKey: function(e) {
|
|
492
|
-
if (e >= E.ZERO && e <= E.NINE || e >= E.NUM_ZERO && e <= E.NUM_MULTIPLY || e >= E.A && e <= E.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && e === 0)
|
|
493
|
-
return !0;
|
|
494
|
-
switch (e) {
|
|
495
|
-
case E.SPACE:
|
|
496
|
-
case E.QUESTION_MARK:
|
|
497
|
-
case E.NUM_PLUS:
|
|
498
|
-
case E.NUM_MINUS:
|
|
499
|
-
case E.NUM_PERIOD:
|
|
500
|
-
case E.NUM_DIVISION:
|
|
501
|
-
case E.SEMICOLON:
|
|
502
|
-
case E.DASH:
|
|
503
|
-
case E.EQUALS:
|
|
504
|
-
case E.COMMA:
|
|
505
|
-
case E.PERIOD:
|
|
506
|
-
case E.SLASH:
|
|
507
|
-
case E.APOSTROPHE:
|
|
508
|
-
case E.SINGLE_QUOTE:
|
|
509
|
-
case E.OPEN_SQUARE_BRACKET:
|
|
510
|
-
case E.BACKSLASH:
|
|
511
|
-
case E.CLOSE_SQUARE_BRACKET:
|
|
512
|
-
return !0;
|
|
513
|
-
default:
|
|
514
|
-
return !1;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}, t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" }, r = function(e, a) {
|
|
518
|
-
return /* @__PURE__ */ c.createElement(_, s({}, e, {
|
|
519
|
-
ref: a,
|
|
520
|
-
icon: t
|
|
521
|
-
}));
|
|
522
|
-
}, M = /* @__PURE__ */ c.forwardRef(r);
|
|
523
|
-
process.env.NODE_ENV !== "production" && (M.displayName = "CheckOutlined");
|
|
524
|
-
export {
|
|
525
|
-
E as K,
|
|
526
|
-
M as R
|
|
527
|
-
};
|
package/dist/Compact-CJBo3f0u.js
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { _ as O, S as w, m as N, n as L, c as C, C as P } from "./index-BWys7dkb.js";
|
|
2
|
-
import * as r from "react";
|
|
3
|
-
import g from "react";
|
|
4
|
-
import { I as D } from "./AntdIcon-Bsnbyy6g.js";
|
|
5
|
-
import { t as E } from "./isVisible-CNQjrJPN.js";
|
|
6
|
-
var _ = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, M = function(t, n) {
|
|
7
|
-
return /* @__PURE__ */ r.createElement(D, O({}, t, {
|
|
8
|
-
ref: n,
|
|
9
|
-
icon: _
|
|
10
|
-
}));
|
|
11
|
-
}, j = /* @__PURE__ */ r.forwardRef(M);
|
|
12
|
-
process.env.NODE_ENV !== "production" && (j.displayName = "LoadingOutlined");
|
|
13
|
-
const R = (e) => {
|
|
14
|
-
const t = g.useContext(w);
|
|
15
|
-
return g.useMemo(() => e ? typeof e == "string" ? e ?? t : e instanceof Function ? e(t) : t : t, [e, t]);
|
|
16
|
-
}, F = (e) => {
|
|
17
|
-
const {
|
|
18
|
-
componentCls: t
|
|
19
|
-
} = e;
|
|
20
|
-
return {
|
|
21
|
-
[t]: {
|
|
22
|
-
"&-block": {
|
|
23
|
-
display: "flex",
|
|
24
|
-
width: "100%"
|
|
25
|
-
},
|
|
26
|
-
"&-vertical": {
|
|
27
|
-
flexDirection: "column"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}, V = (e) => {
|
|
32
|
-
const {
|
|
33
|
-
componentCls: t,
|
|
34
|
-
antCls: n
|
|
35
|
-
} = e;
|
|
36
|
-
return {
|
|
37
|
-
[t]: {
|
|
38
|
-
display: "inline-flex",
|
|
39
|
-
"&-rtl": {
|
|
40
|
-
direction: "rtl"
|
|
41
|
-
},
|
|
42
|
-
"&-vertical": {
|
|
43
|
-
flexDirection: "column"
|
|
44
|
-
},
|
|
45
|
-
"&-align": {
|
|
46
|
-
flexDirection: "column",
|
|
47
|
-
"&-center": {
|
|
48
|
-
alignItems: "center"
|
|
49
|
-
},
|
|
50
|
-
"&-start": {
|
|
51
|
-
alignItems: "flex-start"
|
|
52
|
-
},
|
|
53
|
-
"&-end": {
|
|
54
|
-
alignItems: "flex-end"
|
|
55
|
-
},
|
|
56
|
-
"&-baseline": {
|
|
57
|
-
alignItems: "baseline"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
[`${t}-item:empty`]: {
|
|
61
|
-
display: "none"
|
|
62
|
-
},
|
|
63
|
-
// https://github.com/ant-design/ant-design/issues/47875
|
|
64
|
-
[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]: {
|
|
65
|
-
display: "block"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}, k = (e) => {
|
|
70
|
-
const {
|
|
71
|
-
componentCls: t
|
|
72
|
-
} = e;
|
|
73
|
-
return {
|
|
74
|
-
[t]: {
|
|
75
|
-
"&-gap-row-small": {
|
|
76
|
-
rowGap: e.spaceGapSmallSize
|
|
77
|
-
},
|
|
78
|
-
"&-gap-row-middle": {
|
|
79
|
-
rowGap: e.spaceGapMiddleSize
|
|
80
|
-
},
|
|
81
|
-
"&-gap-row-large": {
|
|
82
|
-
rowGap: e.spaceGapLargeSize
|
|
83
|
-
},
|
|
84
|
-
"&-gap-col-small": {
|
|
85
|
-
columnGap: e.spaceGapSmallSize
|
|
86
|
-
},
|
|
87
|
-
"&-gap-col-middle": {
|
|
88
|
-
columnGap: e.spaceGapMiddleSize
|
|
89
|
-
},
|
|
90
|
-
"&-gap-col-large": {
|
|
91
|
-
columnGap: e.spaceGapLargeSize
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
}, A = N("Space", (e) => {
|
|
96
|
-
const t = L(e, {
|
|
97
|
-
spaceGapSmallSize: e.paddingXS,
|
|
98
|
-
spaceGapMiddleSize: e.padding,
|
|
99
|
-
spaceGapLargeSize: e.paddingLG
|
|
100
|
-
});
|
|
101
|
-
return [V(t), k(t), F(t)];
|
|
102
|
-
}, () => ({}), {
|
|
103
|
-
// Space component don't apply extra font style
|
|
104
|
-
// https://github.com/ant-design/ant-design/issues/40315
|
|
105
|
-
resetStyle: !1
|
|
106
|
-
});
|
|
107
|
-
var S = function(e, t) {
|
|
108
|
-
var n = {};
|
|
109
|
-
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
|
|
110
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, a = Object.getOwnPropertySymbols(e); c < a.length; c++)
|
|
111
|
-
t.indexOf(a[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[c]) && (n[a[c]] = e[a[c]]);
|
|
112
|
-
return n;
|
|
113
|
-
};
|
|
114
|
-
const m = /* @__PURE__ */ r.createContext(null), J = (e, t) => {
|
|
115
|
-
const n = r.useContext(m), a = r.useMemo(() => {
|
|
116
|
-
if (!n)
|
|
117
|
-
return "";
|
|
118
|
-
const {
|
|
119
|
-
compactDirection: c,
|
|
120
|
-
isFirstItem: d,
|
|
121
|
-
isLastItem: u
|
|
122
|
-
} = n, l = c === "vertical" ? "-vertical-" : "-";
|
|
123
|
-
return C(`${e}-compact${l}item`, {
|
|
124
|
-
[`${e}-compact${l}first-item`]: d,
|
|
125
|
-
[`${e}-compact${l}last-item`]: u,
|
|
126
|
-
[`${e}-compact${l}item-rtl`]: t === "rtl"
|
|
127
|
-
});
|
|
128
|
-
}, [e, t, n]);
|
|
129
|
-
return {
|
|
130
|
-
compactSize: n == null ? void 0 : n.compactSize,
|
|
131
|
-
compactDirection: n == null ? void 0 : n.compactDirection,
|
|
132
|
-
compactItemClassnames: a
|
|
133
|
-
};
|
|
134
|
-
}, K = (e) => {
|
|
135
|
-
let {
|
|
136
|
-
children: t
|
|
137
|
-
} = e;
|
|
138
|
-
return /* @__PURE__ */ r.createElement(m.Provider, {
|
|
139
|
-
value: null
|
|
140
|
-
}, t);
|
|
141
|
-
}, B = (e) => {
|
|
142
|
-
var {
|
|
143
|
-
children: t
|
|
144
|
-
} = e, n = S(e, ["children"]);
|
|
145
|
-
return /* @__PURE__ */ r.createElement(m.Provider, {
|
|
146
|
-
value: n
|
|
147
|
-
}, t);
|
|
148
|
-
}, Q = (e) => {
|
|
149
|
-
const {
|
|
150
|
-
getPrefixCls: t,
|
|
151
|
-
direction: n
|
|
152
|
-
} = r.useContext(P), {
|
|
153
|
-
size: a,
|
|
154
|
-
direction: c,
|
|
155
|
-
block: d,
|
|
156
|
-
prefixCls: u,
|
|
157
|
-
className: l,
|
|
158
|
-
rootClassName: y,
|
|
159
|
-
children: x
|
|
160
|
-
} = e, v = S(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), I = R((s) => a ?? s), i = t("space-compact", u), [b, G] = A(i), $ = C(i, G, {
|
|
161
|
-
[`${i}-rtl`]: n === "rtl",
|
|
162
|
-
[`${i}-block`]: d,
|
|
163
|
-
[`${i}-vertical`]: c === "vertical"
|
|
164
|
-
}, l, y), o = r.useContext(m), p = E(x), h = r.useMemo(() => p.map((s, f) => {
|
|
165
|
-
const z = (s == null ? void 0 : s.key) || `${i}-item-${f}`;
|
|
166
|
-
return /* @__PURE__ */ r.createElement(B, {
|
|
167
|
-
key: z,
|
|
168
|
-
compactSize: I,
|
|
169
|
-
compactDirection: c,
|
|
170
|
-
isFirstItem: f === 0 && (!o || (o == null ? void 0 : o.isFirstItem)),
|
|
171
|
-
isLastItem: f === p.length - 1 && (!o || (o == null ? void 0 : o.isLastItem))
|
|
172
|
-
}, s);
|
|
173
|
-
}), [a, p, o]);
|
|
174
|
-
return p.length === 0 ? null : b(/* @__PURE__ */ r.createElement("div", Object.assign({
|
|
175
|
-
className: $
|
|
176
|
-
}, v), h));
|
|
177
|
-
};
|
|
178
|
-
export {
|
|
179
|
-
Q as C,
|
|
180
|
-
K as N,
|
|
181
|
-
j as R,
|
|
182
|
-
R as a,
|
|
183
|
-
J as b,
|
|
184
|
-
A as u
|
|
185
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import { N as a } from "./context-CZsFJmh6.js";
|
|
3
|
-
import { N as m } from "./Compact-CJBo3f0u.js";
|
|
4
|
-
const i = (o) => {
|
|
5
|
-
const {
|
|
6
|
-
space: l,
|
|
7
|
-
form: n,
|
|
8
|
-
children: t
|
|
9
|
-
} = o;
|
|
10
|
-
if (t == null)
|
|
11
|
-
return null;
|
|
12
|
-
let e = t;
|
|
13
|
-
return n && (e = /* @__PURE__ */ r.createElement(a, {
|
|
14
|
-
override: !0,
|
|
15
|
-
status: !0
|
|
16
|
-
}, e)), l && (e = /* @__PURE__ */ r.createElement(m, null, e)), e;
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
i as C
|
|
20
|
-
};
|