react-native-system-ui 0.0.3 → 0.0.5
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/dist/cjs/components/area/Area.js +4 -10
- package/dist/cjs/components/avatar/Avatar.js +3 -3
- package/dist/cjs/components/avatar/tokens.js +2 -1
- package/dist/cjs/components/badge/Badge.js +30 -38
- package/dist/cjs/components/button/Button.js +13 -13
- package/dist/cjs/components/button/ButtonGroup.js +8 -8
- package/dist/cjs/components/calendar/Calendar.js +10 -10
- package/dist/cjs/components/cascader/Cascader.js +4 -4
- package/dist/cjs/components/cascader/useCascaderExtend.js +5 -15
- package/dist/cjs/components/checkbox/CheckboxGroup.js +2 -2
- package/dist/cjs/components/circle/Circle.js +2 -2
- package/dist/cjs/components/collapse/Collapse.js +13 -16
- package/dist/cjs/components/config-provider/ConfigProvider.js +1 -1
- package/dist/cjs/components/datetime-picker/DatetimePicker.js +7 -7
- package/dist/cjs/components/dialog/Dialog.js +4 -6
- package/dist/cjs/components/dialog/tokens.js +2 -1
- package/dist/cjs/components/dropdown-menu/DropdownItem.js +53 -52
- package/dist/cjs/components/dropdown-menu/DropdownMenu.js +19 -23
- package/dist/cjs/components/dropdown-menu/tokens.js +20 -3
- package/dist/cjs/components/field/Field.js +6 -6
- package/dist/cjs/components/form/Form.js +5 -9
- package/dist/cjs/components/grid/Grid.js +4 -4
- package/dist/cjs/components/image/Image.js +19 -15
- package/dist/cjs/components/image-preview/ImagePreview.js +62 -60
- package/dist/cjs/components/image-preview/tokens.js +21 -2
- package/dist/cjs/components/index-bar/IndexAnchor.js +7 -6
- package/dist/cjs/components/index-bar/IndexBar.js +38 -44
- package/dist/cjs/components/index-bar/tokens.js +22 -13
- package/dist/cjs/components/index.js +343 -0
- package/dist/cjs/components/input/Input.js +7 -10
- package/dist/cjs/components/notice-bar/NoticeBar.js +69 -95
- package/dist/cjs/components/notify/Notify.js +49 -24
- package/dist/cjs/components/notify/defaults.js +2 -2
- package/dist/cjs/components/notify/imperative.js +1 -1
- package/dist/cjs/components/notify/tokens.js +5 -4
- package/dist/cjs/components/number-keyboard/NumberKeyboard.js +12 -12
- package/dist/cjs/components/number-keyboard/tokens.js +4 -2
- package/dist/cjs/components/overlay/useOverlayStack.js +5 -1
- package/dist/cjs/components/pagination/Pagination.js +2 -2
- package/dist/cjs/components/password-input/PasswordInput.js +35 -27
- package/dist/cjs/components/picker/Picker.js +11 -12
- package/dist/cjs/components/picker/WheelPicker.js +9 -9
- package/dist/cjs/components/picker/tokens.js +4 -2
- package/dist/cjs/components/popup/Popup.js +39 -54
- package/dist/cjs/components/popup/tokens.js +2 -1
- package/dist/cjs/components/portal/Portal.js +5 -0
- package/dist/cjs/components/portal/PortalHost.js +1 -13
- package/dist/cjs/components/pull-refresh/PullRefresh.js +46 -27
- package/dist/cjs/components/radio/RadioGroup.js +2 -2
- package/dist/cjs/components/search/Search.js +52 -67
- package/dist/cjs/components/search/tokens.js +2 -1
- package/dist/cjs/components/selector/Selector.js +3 -3
- package/dist/cjs/components/share-sheet/ShareSheet.js +64 -62
- package/dist/cjs/components/share-sheet/tokens.js +15 -2
- package/dist/cjs/components/sidebar/Sidebar.js +15 -19
- package/dist/cjs/components/sidebar/SidebarItem.js +0 -3
- package/dist/cjs/components/skeleton/Skeleton.js +44 -56
- package/dist/cjs/components/slider/Slider.js +55 -61
- package/dist/cjs/components/stepper/Stepper.js +13 -16
- package/dist/cjs/components/stepper/tokens.js +4 -2
- package/dist/cjs/components/swiper/Swiper.js +21 -42
- package/dist/cjs/components/swiper/useSwiperWeb.js +15 -18
- package/dist/cjs/components/tabbar/Tabbar.js +8 -11
- package/dist/cjs/components/tabbar/TabbarItem.js +0 -3
- package/dist/cjs/components/tabs/Tabs.js +33 -54
- package/dist/cjs/components/tabs/tokens.js +9 -1
- package/dist/cjs/components/tabs/useTabsScroll.js +4 -0
- package/dist/cjs/components/toast/Toast.js +10 -8
- package/dist/cjs/components/toast/tokens.js +5 -1
- package/dist/cjs/components/typography/Typography.js +17 -30
- package/dist/cjs/components/uploader/Uploader.js +49 -46
- package/dist/cjs/components/uploader/tokens.js +27 -1
- package/dist/cjs/components/water-mark/WaterMark.js +16 -16
- package/dist/cjs/hooks/usePresenceAnimation.js +12 -2
- package/dist/es/components/area/Area.js +5 -11
- package/dist/es/components/avatar/Avatar.js +3 -3
- package/dist/es/components/avatar/tokens.js +2 -1
- package/dist/es/components/badge/Badge.js +31 -39
- package/dist/es/components/button/Button.js +14 -14
- package/dist/es/components/button/ButtonGroup.js +7 -7
- package/dist/es/components/calendar/Calendar.js +11 -11
- package/dist/es/components/cascader/Cascader.js +5 -5
- package/dist/es/components/cascader/useCascaderExtend.js +5 -9
- package/dist/es/components/checkbox/CheckboxGroup.js +3 -3
- package/dist/es/components/circle/Circle.js +3 -3
- package/dist/es/components/collapse/Collapse.js +14 -17
- package/dist/es/components/config-provider/ConfigProvider.js +2 -2
- package/dist/es/components/datetime-picker/DatetimePicker.js +8 -8
- package/dist/es/components/dialog/Dialog.js +4 -6
- package/dist/es/components/dialog/tokens.js +2 -1
- package/dist/es/components/dropdown-menu/DropdownItem.js +53 -52
- package/dist/es/components/dropdown-menu/DropdownMenu.js +20 -24
- package/dist/es/components/dropdown-menu/tokens.js +20 -3
- package/dist/es/components/field/Field.js +7 -7
- package/dist/es/components/field/index.js +1 -1
- package/dist/es/components/form/Form.js +6 -10
- package/dist/es/components/grid/Grid.js +3 -3
- package/dist/es/components/image/Image.js +20 -16
- package/dist/es/components/image-preview/ImagePreview.js +63 -61
- package/dist/es/components/image-preview/tokens.js +21 -2
- package/dist/es/components/index-bar/IndexAnchor.js +7 -6
- package/dist/es/components/index-bar/IndexBar.js +39 -45
- package/dist/es/components/index-bar/tokens.js +22 -13
- package/dist/es/components/index.js +50 -1
- package/dist/es/components/input/Input.js +8 -11
- package/dist/es/components/notice-bar/NoticeBar.js +70 -96
- package/dist/es/components/notify/Notify.js +49 -25
- package/dist/es/components/notify/defaults.js +2 -2
- package/dist/es/components/notify/imperative.js +1 -1
- package/dist/es/components/notify/tokens.js +5 -4
- package/dist/es/components/number-keyboard/NumberKeyboard.js +13 -13
- package/dist/es/components/number-keyboard/tokens.js +4 -2
- package/dist/es/components/overlay/useOverlayStack.js +6 -2
- package/dist/es/components/pagination/Pagination.js +3 -3
- package/dist/es/components/password-input/PasswordInput.js +36 -28
- package/dist/es/components/picker/Picker.js +12 -13
- package/dist/es/components/picker/WheelPicker.js +10 -10
- package/dist/es/components/picker/tokens.js +4 -2
- package/dist/es/components/popup/Popup.js +41 -56
- package/dist/es/components/popup/tokens.js +2 -1
- package/dist/es/components/portal/Portal.js +5 -0
- package/dist/es/components/portal/PortalHost.js +1 -13
- package/dist/es/components/pull-refresh/PullRefresh.js +47 -28
- package/dist/es/components/radio/RadioGroup.js +3 -3
- package/dist/es/components/search/Search.js +53 -68
- package/dist/es/components/search/tokens.js +2 -1
- package/dist/es/components/selector/Selector.js +4 -4
- package/dist/es/components/share-sheet/ShareSheet.js +65 -63
- package/dist/es/components/share-sheet/tokens.js +15 -2
- package/dist/es/components/sidebar/Sidebar.js +14 -18
- package/dist/es/components/sidebar/SidebarItem.js +0 -3
- package/dist/es/components/skeleton/Skeleton.js +45 -57
- package/dist/es/components/slider/Slider.js +56 -62
- package/dist/es/components/stepper/Stepper.js +14 -17
- package/dist/es/components/stepper/tokens.js +4 -2
- package/dist/es/components/swiper/Swiper.js +22 -43
- package/dist/es/components/swiper/useSwiperWeb.js +16 -19
- package/dist/es/components/tabbar/Tabbar.js +9 -12
- package/dist/es/components/tabbar/TabbarItem.js +0 -3
- package/dist/es/components/tabs/Tabs.js +34 -55
- package/dist/es/components/tabs/tokens.js +9 -1
- package/dist/es/components/tabs/useTabsScroll.js +4 -0
- package/dist/es/components/toast/Toast.js +10 -8
- package/dist/es/components/toast/tokens.js +5 -1
- package/dist/es/components/typography/Typography.js +18 -31
- package/dist/es/components/uploader/Uploader.js +49 -46
- package/dist/es/components/uploader/tokens.js +27 -1
- package/dist/es/components/water-mark/WaterMark.js +17 -17
- package/dist/es/hooks/usePresenceAnimation.js +12 -2
- package/dist/types/components/dialog/tokens.d.ts +1 -0
- package/dist/types/components/dropdown-menu/tokens.d.ts +17 -0
- package/dist/types/components/field/index.d.ts +1 -1
- package/dist/types/components/image-preview/tokens.d.ts +16 -0
- package/dist/types/components/index-bar/tokens.d.ts +13 -4
- package/dist/types/components/index.d.ts +102 -0
- package/dist/types/components/notify/defaults.d.ts +2 -2
- package/dist/types/components/number-keyboard/tokens.d.ts +1 -0
- package/dist/types/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/types/components/picker/tokens.d.ts +2 -0
- package/dist/types/components/popup/tokens.d.ts +1 -0
- package/dist/types/components/search/tokens.d.ts +1 -0
- package/dist/types/components/share-sheet/tokens.d.ts +13 -0
- package/dist/types/components/stepper/tokens.d.ts +2 -0
- package/dist/types/components/tabs/tokens.d.ts +8 -0
- package/dist/types/components/toast/tokens.d.ts +4 -0
- package/dist/types/components/uploader/tokens.d.ts +25 -0
- package/dist/types/hooks/usePresenceAnimation.d.ts +6 -1
- package/package.json +135 -135
|
@@ -48,19 +48,13 @@ const Area = props => {
|
|
|
48
48
|
city_list,
|
|
49
49
|
county_list
|
|
50
50
|
} = areaList;
|
|
51
|
-
const columns = (0,
|
|
51
|
+
const columns = (0, _utils.buildAreaColumns)({
|
|
52
52
|
province_list,
|
|
53
53
|
city_list,
|
|
54
54
|
county_list
|
|
55
|
-
}, resolvedColumnsNum)
|
|
56
|
-
const normalizedValue = (
|
|
57
|
-
|
|
58
|
-
return normalizeCascadeValue(columns, value, resolvedColumnsNum);
|
|
59
|
-
}, [columns, resolvedColumnsNum, value]);
|
|
60
|
-
const normalizedDefaultValue = (0, _react().useMemo)(() => {
|
|
61
|
-
if (defaultValue === undefined) return undefined;
|
|
62
|
-
return normalizeCascadeValue(columns, defaultValue, resolvedColumnsNum);
|
|
63
|
-
}, [columns, defaultValue, resolvedColumnsNum]);
|
|
55
|
+
}, resolvedColumnsNum);
|
|
56
|
+
const normalizedValue = value === undefined ? undefined : normalizeCascadeValue(columns, value, resolvedColumnsNum);
|
|
57
|
+
const normalizedDefaultValue = defaultValue === undefined ? undefined : normalizeCascadeValue(columns, defaultValue, resolvedColumnsNum);
|
|
64
58
|
const handleChange = (0, _react().useCallback)((values, options) => {
|
|
65
59
|
onChange?.(values.map(String), options);
|
|
66
60
|
}, [onChange]);
|
|
@@ -23,9 +23,6 @@ var _utils = require("../../utils");
|
|
|
23
23
|
var _tokens = require("./tokens");
|
|
24
24
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
25
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
26
|
-
const transparentContainerStyle = {
|
|
27
|
-
backgroundColor: 'transparent'
|
|
28
|
-
};
|
|
29
26
|
const Avatar = exports.Avatar = /*#__PURE__*/_react().default.forwardRef((props, ref) => {
|
|
30
27
|
const {
|
|
31
28
|
src,
|
|
@@ -52,6 +49,9 @@ const Avatar = exports.Avatar = /*#__PURE__*/_react().default.forwardRef((props,
|
|
|
52
49
|
const avatarWidth = width ?? baseSize;
|
|
53
50
|
const avatarHeight = height ?? baseSize;
|
|
54
51
|
const borderRadius = resolvedShape === 'circle' ? Math.min(avatarWidth, avatarHeight) / 2 : Math.max(tokens.radii.squareMin, Math.min(avatarWidth, avatarHeight) / tokens.radii.squareDivisor);
|
|
52
|
+
const transparentContainerStyle = {
|
|
53
|
+
backgroundColor: tokens.colors.transparent
|
|
54
|
+
};
|
|
55
55
|
const fallbackText = text ? text.trim().slice(0, 2).toUpperCase() : undefined;
|
|
56
56
|
const fallbackContent = icon ? /*#__PURE__*/_react().default.createElement(_reactNative().View, {
|
|
57
57
|
style: [tokens.layout.iconWrapper, {
|
|
@@ -31,7 +31,8 @@ const createAvatarTokens = foundations => ({
|
|
|
31
31
|
},
|
|
32
32
|
colors: {
|
|
33
33
|
background: foundations.palette.default[100],
|
|
34
|
-
text: foundations.palette.default[800]
|
|
34
|
+
text: foundations.palette.default[800],
|
|
35
|
+
transparent: "transparent"
|
|
35
36
|
},
|
|
36
37
|
typography: {
|
|
37
38
|
fontWeight: "600",
|
|
@@ -46,7 +46,7 @@ const Badge = exports.Badge = /*#__PURE__*/_react().default.forwardRef((props, r
|
|
|
46
46
|
const {
|
|
47
47
|
visible,
|
|
48
48
|
formattedContent
|
|
49
|
-
} = (
|
|
49
|
+
} = (() => {
|
|
50
50
|
const numericContent = (0, _utils.isNumericLike)(content) ? Number(content) : null;
|
|
51
51
|
const shouldHide = numericContent === 0 && !resolvedShowZero;
|
|
52
52
|
const isVisible = dot || (0, _utils.isRenderable)(content) && !shouldHide;
|
|
@@ -60,7 +60,7 @@ const Badge = exports.Badge = /*#__PURE__*/_react().default.forwardRef((props, r
|
|
|
60
60
|
visible: true,
|
|
61
61
|
formattedContent: finalContent
|
|
62
62
|
};
|
|
63
|
-
}
|
|
63
|
+
})();
|
|
64
64
|
const [size, setSize] = (0, _react().useState)({
|
|
65
65
|
width: 0,
|
|
66
66
|
height: 0
|
|
@@ -77,7 +77,7 @@ const Badge = exports.Badge = /*#__PURE__*/_react().default.forwardRef((props, r
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
}, [size.width, size.height]);
|
|
80
|
-
const transformStyle = (
|
|
80
|
+
const transformStyle = (() => {
|
|
81
81
|
if (!hasChildren) return undefined;
|
|
82
82
|
if (dot) {
|
|
83
83
|
const half = tokens.sizing.dotSize / 2;
|
|
@@ -99,35 +99,30 @@ const Badge = exports.Badge = /*#__PURE__*/_react().default.forwardRef((props, r
|
|
|
99
99
|
translateY: -size.height / 2
|
|
100
100
|
}]
|
|
101
101
|
};
|
|
102
|
-
}
|
|
103
|
-
const baseBadgeStyle =
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
borderColor: tokens.colors.border,
|
|
120
|
-
backgroundColor: color ?? tokens.colors.background
|
|
121
|
-
};
|
|
122
|
-
}, [dot, color, tokens]);
|
|
123
|
-
const mergedTextStyle = (0, _react().useMemo)(() => [tokens.layout.text, {
|
|
102
|
+
})();
|
|
103
|
+
const baseBadgeStyle = dot ? {
|
|
104
|
+
width: tokens.sizing.dotSize,
|
|
105
|
+
height: tokens.sizing.dotSize,
|
|
106
|
+
borderRadius: tokens.radii.dot,
|
|
107
|
+
backgroundColor: color ?? tokens.colors.dot
|
|
108
|
+
} : {
|
|
109
|
+
minWidth: tokens.sizing.minWidth,
|
|
110
|
+
minHeight: tokens.sizing.height,
|
|
111
|
+
paddingHorizontal: tokens.sizing.paddingHorizontal,
|
|
112
|
+
paddingVertical: tokens.sizing.paddingVertical,
|
|
113
|
+
borderRadius: tokens.radii.badge,
|
|
114
|
+
borderWidth: tokens.borders.width,
|
|
115
|
+
borderColor: tokens.colors.border,
|
|
116
|
+
backgroundColor: color ?? tokens.colors.background
|
|
117
|
+
};
|
|
118
|
+
const mergedTextStyle = [tokens.layout.text, {
|
|
124
119
|
color: textColor ?? tokens.colors.text,
|
|
125
120
|
fontSize: tokens.typography.fontSize,
|
|
126
121
|
lineHeight: tokens.typography.lineHeight,
|
|
127
122
|
fontFamily: tokens.typography.fontFamily,
|
|
128
123
|
fontWeight: tokens.typography.fontWeight
|
|
129
|
-
}, userTextStyle]
|
|
130
|
-
const offsetStyle = (
|
|
124
|
+
}, userTextStyle];
|
|
125
|
+
const offsetStyle = (() => {
|
|
131
126
|
if (!offset) return undefined;
|
|
132
127
|
const [x, y] = offset;
|
|
133
128
|
return hasChildren ? {
|
|
@@ -137,17 +132,14 @@ const Badge = exports.Badge = /*#__PURE__*/_react().default.forwardRef((props, r
|
|
|
137
132
|
marginLeft: x,
|
|
138
133
|
marginTop: y
|
|
139
134
|
};
|
|
140
|
-
}
|
|
141
|
-
const badgeElement =
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
style: mergedTextStyle
|
|
149
|
-
}, formattedContent)));
|
|
150
|
-
}, [visible, hasChildren, dot, handleLayout, baseBadgeStyle, transformStyle, offsetStyle, badgeStyle, style, formattedContent, mergedTextStyle]);
|
|
135
|
+
})();
|
|
136
|
+
const badgeElement = !visible ? null : /*#__PURE__*/_react().default.createElement(_reactNative().View, {
|
|
137
|
+
pointerEvents: hasChildren ? 'none' : 'auto',
|
|
138
|
+
onLayout: hasChildren && !dot ? handleLayout : undefined,
|
|
139
|
+
style: [hasChildren ? tokens.layout.badgeAbsolute : tokens.layout.badgeStandalone, baseBadgeStyle, transformStyle, offsetStyle, badgeStyle, !hasChildren ? style : undefined]
|
|
140
|
+
}, !dot && (/*#__PURE__*/_react().default.isValidElement(formattedContent) ? formattedContent : /*#__PURE__*/_react().default.createElement(_reactNative().Text, {
|
|
141
|
+
style: mergedTextStyle
|
|
142
|
+
}, formattedContent)));
|
|
151
143
|
if (hasChildren) {
|
|
152
144
|
return onPress ? /*#__PURE__*/_react().default.createElement(_reactNative().Pressable, _extends({
|
|
153
145
|
ref: ref,
|
|
@@ -168,14 +168,14 @@ const Button = exports.Button = /*#__PURE__*/_react().default.forwardRef((props,
|
|
|
168
168
|
const gradientWebStyle = gradientFillEnabled && supportsGradientFill && gradientString ? {
|
|
169
169
|
backgroundImage: gradientString
|
|
170
170
|
} : undefined;
|
|
171
|
-
const iconWrapperStyle =
|
|
171
|
+
const iconWrapperStyle = iconPosition === 'left' ? {
|
|
172
172
|
marginRight: buttonTokens.spacing.iconGap
|
|
173
173
|
} : {
|
|
174
174
|
marginLeft: buttonTokens.spacing.iconGap
|
|
175
|
-
}
|
|
176
|
-
const loadingIconWrapperStyle =
|
|
175
|
+
};
|
|
176
|
+
const loadingIconWrapperStyle = {
|
|
177
177
|
marginRight: buttonTokens.spacing.iconGap
|
|
178
|
-
}
|
|
178
|
+
};
|
|
179
179
|
const renderIcon = () => {
|
|
180
180
|
if (!icon) return null;
|
|
181
181
|
try {
|
|
@@ -205,14 +205,14 @@ const Button = exports.Button = /*#__PURE__*/_react().default.forwardRef((props,
|
|
|
205
205
|
}, loadingIndicator ?? defaultIndicator);
|
|
206
206
|
};
|
|
207
207
|
const label = loading && loadingText !== undefined ? loadingText : text !== undefined ? text : children;
|
|
208
|
-
const sharedLabelTextStyle =
|
|
208
|
+
const sharedLabelTextStyle = {
|
|
209
209
|
fontFamily: buttonTokens.typography.fontFamily,
|
|
210
210
|
fontWeight: buttonTokens.typography.fontWeight,
|
|
211
211
|
fontSize: sizeTokens.fontSize,
|
|
212
212
|
lineHeight: sizeTokens.fontSize * buttonTokens.typography.lineHeightMultiplier,
|
|
213
213
|
color: resolvedTextColor,
|
|
214
214
|
textTransform: uppercase ? 'uppercase' : undefined
|
|
215
|
-
}
|
|
215
|
+
};
|
|
216
216
|
const renderText = () => {
|
|
217
217
|
if (label === undefined || label === null) {
|
|
218
218
|
return null;
|
|
@@ -254,7 +254,7 @@ const Button = exports.Button = /*#__PURE__*/_react().default.forwardRef((props,
|
|
|
254
254
|
onPressEnd: onPressOut || undefined
|
|
255
255
|
});
|
|
256
256
|
const resolvedOpacity = disabled ? buttonTokens.states.disabledOpacity : loading ? buttonTokens.states.loadingOpacity : states.pressed ? buttonTokens.states.pressedOpacity : 1;
|
|
257
|
-
const containerStyle =
|
|
257
|
+
const containerStyle = {
|
|
258
258
|
minHeight: sizeTokens.height,
|
|
259
259
|
paddingHorizontal: sizeTokens.paddingHorizontal,
|
|
260
260
|
borderRadius,
|
|
@@ -262,21 +262,21 @@ const Button = exports.Button = /*#__PURE__*/_react().default.forwardRef((props,
|
|
|
262
262
|
borderColor,
|
|
263
263
|
borderWidth: resolvedBorderWidth,
|
|
264
264
|
opacity: resolvedOpacity
|
|
265
|
-
}
|
|
266
|
-
const rippleClipStyle =
|
|
265
|
+
};
|
|
266
|
+
const rippleClipStyle = _reactNative().Platform.OS === 'android' && borderRadius > 0 && !shouldShowShadow ? {
|
|
267
267
|
overflow: 'hidden'
|
|
268
|
-
} : null
|
|
269
|
-
const baseContainerStyle =
|
|
268
|
+
} : null;
|
|
269
|
+
const baseContainerStyle = [buttonTokens.layout.base, containerStyle, rippleClipStyle, block ? buttonTokens.layout.block : null, shadowStyle, gradientWebStyle, style];
|
|
270
270
|
const mergedAccessibilityState = {
|
|
271
271
|
...accessibilityState,
|
|
272
272
|
disabled: isDisabled,
|
|
273
273
|
busy: loading
|
|
274
274
|
};
|
|
275
275
|
const defaultRippleColor = rippleColorProp ?? (derivedMode === 'text' || derivedMode === 'outlined' || legacyPlain ? resolvedTextColor : type === 'default' && !normalizedColor ? (0, _color.withAlpha)(resolvedTextColor, 0.15) : buttonTokens.colors.ripple);
|
|
276
|
-
const resolvedAndroidRipple =
|
|
276
|
+
const resolvedAndroidRipple = _reactNative().Platform.OS === 'android' ? androidRippleProp ?? {
|
|
277
277
|
color: defaultRippleColor,
|
|
278
278
|
borderless: false
|
|
279
|
-
} : androidRippleProp
|
|
279
|
+
} : androidRippleProp;
|
|
280
280
|
return /*#__PURE__*/_react().default.createElement(_reactNative().Pressable, _extends({
|
|
281
281
|
ref: forwardedRef,
|
|
282
282
|
disabled: isDisabled,
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.ButtonGroup = void 0;
|
|
7
7
|
function _react() {
|
|
8
|
-
const data =
|
|
8
|
+
const data = _interopRequireDefault(require("react"));
|
|
9
9
|
_react = function () {
|
|
10
10
|
return data;
|
|
11
11
|
};
|
|
@@ -20,7 +20,7 @@ function _reactNative() {
|
|
|
20
20
|
}
|
|
21
21
|
var _ButtonContext = require("./ButtonContext");
|
|
22
22
|
var _tokens = require("./tokens");
|
|
23
|
-
function
|
|
23
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
24
|
const ButtonGroup = exports.ButtonGroup = /*#__PURE__*/_react().default.memo(({
|
|
25
25
|
children,
|
|
26
26
|
direction = 'horizontal',
|
|
@@ -42,7 +42,7 @@ const ButtonGroup = exports.ButtonGroup = /*#__PURE__*/_react().default.memo(({
|
|
|
42
42
|
const gap = spacing ?? tokens.spacing.groupGap;
|
|
43
43
|
const isHorizontal = direction === 'horizontal';
|
|
44
44
|
const supportsGap = _reactNative().Platform.OS === 'web';
|
|
45
|
-
const groupValue =
|
|
45
|
+
const groupValue = {
|
|
46
46
|
type,
|
|
47
47
|
size,
|
|
48
48
|
plain,
|
|
@@ -54,8 +54,8 @@ const ButtonGroup = exports.ButtonGroup = /*#__PURE__*/_react().default.memo(({
|
|
|
54
54
|
iconPosition,
|
|
55
55
|
hairline,
|
|
56
56
|
mode
|
|
57
|
-
}
|
|
58
|
-
const containerStyle = (
|
|
57
|
+
};
|
|
58
|
+
const containerStyle = (() => {
|
|
59
59
|
const base = {
|
|
60
60
|
flexDirection: isHorizontal ? 'row' : 'column',
|
|
61
61
|
alignItems: 'center'
|
|
@@ -71,8 +71,8 @@ const ButtonGroup = exports.ButtonGroup = /*#__PURE__*/_react().default.memo(({
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
return [base, style];
|
|
74
|
-
}
|
|
75
|
-
const content = (
|
|
74
|
+
})();
|
|
75
|
+
const content = (() => {
|
|
76
76
|
if (supportsGap) {
|
|
77
77
|
return children;
|
|
78
78
|
}
|
|
@@ -91,7 +91,7 @@ const ButtonGroup = exports.ButtonGroup = /*#__PURE__*/_react().default.memo(({
|
|
|
91
91
|
key: element.key ?? index
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
|
-
}
|
|
94
|
+
})();
|
|
95
95
|
return /*#__PURE__*/_react().default.createElement(_ButtonContext.ButtonGroupContext.Provider, {
|
|
96
96
|
value: groupValue
|
|
97
97
|
}, /*#__PURE__*/_react().default.createElement(_reactNative().View, {
|
|
@@ -135,7 +135,7 @@ const Calendar = props => {
|
|
|
135
135
|
defaultValuePropName: 'defaultValue',
|
|
136
136
|
trigger: 'onSelect'
|
|
137
137
|
});
|
|
138
|
-
const value =
|
|
138
|
+
const value = normalizeValue(toArrayValue(selectedValue), type);
|
|
139
139
|
const [currentMonth, setCurrentMonth] = (0, _react().useState)(() => {
|
|
140
140
|
const initial = value.length ? value[0] : new Date();
|
|
141
141
|
return clampMonth(initial, minDate, maxDate);
|
|
@@ -150,13 +150,13 @@ const Calendar = props => {
|
|
|
150
150
|
const first = clampMonth(value[0], minDate, maxDate);
|
|
151
151
|
setCurrentMonth(prev => isSameMonth(first, prev) ? prev : first);
|
|
152
152
|
}, [firstValueTime, minDateTime, maxDateTime]);
|
|
153
|
-
const monthDays =
|
|
154
|
-
const minDay =
|
|
155
|
-
const maxDay =
|
|
156
|
-
const weekLabels =
|
|
157
|
-
const monthLabel =
|
|
158
|
-
const minMonthStart =
|
|
159
|
-
const maxMonthStart =
|
|
153
|
+
const monthDays = buildMonth(currentMonth, weekStartsOn);
|
|
154
|
+
const minDay = startOfDay(minDate).getTime();
|
|
155
|
+
const maxDay = startOfDay(maxDate).getTime();
|
|
156
|
+
const weekLabels = reorderWeekdays(weekdays ?? tokens.defaults.weekdays, weekStartsOn, tokens.defaults.weekdays);
|
|
157
|
+
const monthLabel = formatMonthTitle ? formatMonthTitle(currentMonth) : formatMonth(currentMonth);
|
|
158
|
+
const minMonthStart = startOfMonth(minDate);
|
|
159
|
+
const maxMonthStart = startOfMonth(maxDate);
|
|
160
160
|
const canGoPrev = currentMonth.getTime() > minMonthStart.getTime();
|
|
161
161
|
const canGoNext = currentMonth.getTime() < maxMonthStart.getTime();
|
|
162
162
|
const goToMonth = (0, _react().useCallback)(delta => {
|
|
@@ -245,8 +245,8 @@ const Calendar = props => {
|
|
|
245
245
|
maybeAutoConfirm(normalizedNext);
|
|
246
246
|
}
|
|
247
247
|
}, [value, type, minDay, maxDay, allowSameDay, isSelectionAllowed, setSelectedValue, showConfirm, maybeAutoConfirm]);
|
|
248
|
-
const valueTimes =
|
|
249
|
-
const selectedSet =
|
|
248
|
+
const valueTimes = value.map(item => startOfDay(item).getTime());
|
|
249
|
+
const selectedSet = new Set(valueTimes);
|
|
250
250
|
const rangeBounds = type === 'range' && valueTimes.length === 2 ? [valueTimes[0], valueTimes[1]] : null;
|
|
251
251
|
const renderDay = (0, _react().useCallback)((day, index) => {
|
|
252
252
|
if (!day) {
|
|
@@ -97,7 +97,7 @@ const Cascader = props => {
|
|
|
97
97
|
defaultValue: [],
|
|
98
98
|
trigger: "onChange"
|
|
99
99
|
});
|
|
100
|
-
const keys =
|
|
100
|
+
const keys = getFieldKeys(fieldNames);
|
|
101
101
|
const cascaderValue = Array.isArray(value) ? value : [];
|
|
102
102
|
const [panelValue, setPanelValue] = (0, _react().useState)(cascaderValue);
|
|
103
103
|
const resolvedCloseable = closeable ?? tokens.defaults.closeable;
|
|
@@ -122,7 +122,7 @@ const Cascader = props => {
|
|
|
122
122
|
if (!width) return;
|
|
123
123
|
setMeasuredWidth(prev => prev === width ? prev : width);
|
|
124
124
|
}, []);
|
|
125
|
-
const confirmedRows = (0,
|
|
125
|
+
const confirmedRows = (0, _utils.resolveSelectedRows)(options, keys, cascaderValue);
|
|
126
126
|
const [activeTab, setActiveTab] = (0, _react().useState)(0);
|
|
127
127
|
(0, _react().useEffect)(() => {
|
|
128
128
|
const currentLength = Array.isArray(currentValue) ? currentValue.length : 0;
|
|
@@ -336,11 +336,11 @@ const Cascader = props => {
|
|
|
336
336
|
} = popupPropsOverrides ?? {};
|
|
337
337
|
const resolvedOverlay = popupOverlay ?? true;
|
|
338
338
|
const resolvedCloseOnOverlayPress = overrideCloseOnOverlayPress ?? closeOnClickOverlay;
|
|
339
|
-
const cascaderActions =
|
|
339
|
+
const cascaderActions = {
|
|
340
340
|
open: openPopup,
|
|
341
341
|
close: () => closePopup(true),
|
|
342
342
|
toggle: togglePopup
|
|
343
|
-
}
|
|
343
|
+
};
|
|
344
344
|
const enhanceTriggerNode = (0, _react().useCallback)(node => {
|
|
345
345
|
if (! /*#__PURE__*/_react().default.isValidElement(node)) return node;
|
|
346
346
|
const props = node.props;
|
|
@@ -4,15 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useCascaderExtend = void 0;
|
|
7
|
-
function _react() {
|
|
8
|
-
const data = require("react");
|
|
9
|
-
_react = function () {
|
|
10
|
-
return data;
|
|
11
|
-
};
|
|
12
|
-
return data;
|
|
13
|
-
}
|
|
14
7
|
const useCascaderExtend = (options = [], keys, value) => {
|
|
15
|
-
const depth = (
|
|
8
|
+
const depth = (() => {
|
|
16
9
|
let maxDepth = 1;
|
|
17
10
|
const traverse = (opts, level) => {
|
|
18
11
|
if (!opts || !opts.length) return;
|
|
@@ -27,8 +20,8 @@ const useCascaderExtend = (options = [], keys, value) => {
|
|
|
27
20
|
};
|
|
28
21
|
traverse(options, 1);
|
|
29
22
|
return maxDepth;
|
|
30
|
-
}
|
|
31
|
-
const tabs = (
|
|
23
|
+
})();
|
|
24
|
+
const tabs = (() => {
|
|
32
25
|
if (!value || !value.length) return [options];
|
|
33
26
|
return value.reduce((acc, val, index) => {
|
|
34
27
|
if (val == null) return acc;
|
|
@@ -39,11 +32,8 @@ const useCascaderExtend = (options = [], keys, value) => {
|
|
|
39
32
|
if (children) acc.push(children);
|
|
40
33
|
return acc;
|
|
41
34
|
}, [options]);
|
|
42
|
-
}
|
|
43
|
-
const items =
|
|
44
|
-
if (!value || !value.length) return [];
|
|
45
|
-
return value.map((val, index) => tabs[index]?.find(option => option[keys.valueKey] === val));
|
|
46
|
-
}, [keys.valueKey, tabs, value]);
|
|
35
|
+
})();
|
|
36
|
+
const items = !value || !value.length ? [] : value.map((val, index) => tabs[index]?.find(option => option[keys.valueKey] === val));
|
|
47
37
|
return {
|
|
48
38
|
tabs,
|
|
49
39
|
items,
|
|
@@ -136,7 +136,7 @@ const CheckboxGroup = exports.CheckboxGroup = /*#__PURE__*/_react().default.forw
|
|
|
136
136
|
(0, _react().useImperativeHandle)(ref, () => ({
|
|
137
137
|
toggleAll
|
|
138
138
|
}), [toggleAll]);
|
|
139
|
-
const contextValue =
|
|
139
|
+
const contextValue = {
|
|
140
140
|
state,
|
|
141
141
|
direction,
|
|
142
142
|
shape,
|
|
@@ -147,7 +147,7 @@ const CheckboxGroup = exports.CheckboxGroup = /*#__PURE__*/_react().default.forw
|
|
|
147
147
|
max,
|
|
148
148
|
registerValue,
|
|
149
149
|
unregisterValue
|
|
150
|
-
}
|
|
150
|
+
};
|
|
151
151
|
return /*#__PURE__*/_react().default.createElement(_CheckboxContext.CheckboxGroupContext.Provider, {
|
|
152
152
|
value: contextValue
|
|
153
153
|
}, /*#__PURE__*/_react().default.createElement(_reactNative().View, _extends({}, resolvedGroupProps, viewProps, {
|
|
@@ -90,7 +90,7 @@ const Circle = props => {
|
|
|
90
90
|
width: resolvedSize,
|
|
91
91
|
height: resolvedSize
|
|
92
92
|
}];
|
|
93
|
-
const content = (
|
|
93
|
+
const content = (() => {
|
|
94
94
|
if (children == null || children === false) return null;
|
|
95
95
|
const childArray = _react().default.Children.toArray(children);
|
|
96
96
|
if (childArray.every(_utils.isText)) {
|
|
@@ -103,7 +103,7 @@ const Circle = props => {
|
|
|
103
103
|
}, childArray.map(String).join(''));
|
|
104
104
|
}
|
|
105
105
|
return children;
|
|
106
|
-
}
|
|
106
|
+
})();
|
|
107
107
|
if (_reactNative().Platform.OS === 'web') {
|
|
108
108
|
const safeStroke = Math.min(resolvedStrokeWidth, resolvedSize / 2);
|
|
109
109
|
const innerSize = Math.max(0, resolvedSize - safeStroke * 2);
|
|
@@ -97,7 +97,7 @@ const Collapse = props => {
|
|
|
97
97
|
}
|
|
98
98
|
onChange?.(buildOutputValue(next, accordion));
|
|
99
99
|
}, [accordion, activeKeys, controlled, disabled, onChange]);
|
|
100
|
-
const contextValue =
|
|
100
|
+
const contextValue = {
|
|
101
101
|
activeKeys,
|
|
102
102
|
toggle,
|
|
103
103
|
accordion,
|
|
@@ -106,8 +106,8 @@ const Collapse = props => {
|
|
|
106
106
|
border,
|
|
107
107
|
disabled,
|
|
108
108
|
tokens
|
|
109
|
-
}
|
|
110
|
-
const renderedChildren = (
|
|
109
|
+
};
|
|
110
|
+
const renderedChildren = (() => {
|
|
111
111
|
const items = _react().default.Children.toArray(children);
|
|
112
112
|
return items.map((child, index) => {
|
|
113
113
|
if (! /*#__PURE__*/_react().default.isValidElement(child)) return child;
|
|
@@ -120,7 +120,7 @@ const Collapse = props => {
|
|
|
120
120
|
index
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
-
}
|
|
123
|
+
})();
|
|
124
124
|
return /*#__PURE__*/_react().default.createElement(CollapseContext.Provider, {
|
|
125
125
|
value: contextValue
|
|
126
126
|
}, /*#__PURE__*/_react().default.createElement(_reactNative().View, _extends({
|
|
@@ -198,10 +198,10 @@ const CollapsePanel = /*#__PURE__*/_react().default.forwardRef((props, ref) => {
|
|
|
198
198
|
} = tokens;
|
|
199
199
|
const [contentHeight, setContentHeight] = (0, _react().useState)(0);
|
|
200
200
|
const animation = (0, _react().useRef)(new (_reactNative().Animated.Value)(isActive ? 1 : 0)).current;
|
|
201
|
-
const rotate =
|
|
201
|
+
const rotate = animation.interpolate({
|
|
202
202
|
inputRange: [0, 1],
|
|
203
203
|
outputRange: ['90deg', '-90deg']
|
|
204
|
-
})
|
|
204
|
+
});
|
|
205
205
|
(0, _react().useEffect)(() => {
|
|
206
206
|
_reactNative().Animated.timing(animation, {
|
|
207
207
|
toValue: isActive ? 1 : 0,
|
|
@@ -252,16 +252,13 @@ const CollapsePanel = /*#__PURE__*/_react().default.forwardRef((props, ref) => {
|
|
|
252
252
|
fill: mergedDisabled ? colors.disabled : colors.arrow
|
|
253
253
|
}));
|
|
254
254
|
}, [colors.arrow, colors.disabled, expandIcon, isActive, mergedDisabled, rotate]);
|
|
255
|
-
const contentNode = (0, _react().
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
}, children);
|
|
264
|
-
}, [children, colors.description, colors.disabled, mergedDisabled, typography.descriptionSize]);
|
|
255
|
+
const contentNode = !(0, _utils.isText)(children) ? children : /*#__PURE__*/_react().default.createElement(_reactNative().Text, {
|
|
256
|
+
style: {
|
|
257
|
+
color: mergedDisabled ? colors.disabled : colors.description,
|
|
258
|
+
fontSize: typography.descriptionSize,
|
|
259
|
+
lineHeight: Math.round(typography.descriptionSize * 1.5)
|
|
260
|
+
}
|
|
261
|
+
}, children);
|
|
265
262
|
const showItemBorder = Boolean(panelBorder);
|
|
266
263
|
const showTopBorder = index > 0 && showItemBorder;
|
|
267
264
|
const showHeaderBottomBorder = isActive && showItemBorder;
|
|
@@ -21,7 +21,7 @@ const ConfigProviderBase = ({
|
|
|
21
21
|
children
|
|
22
22
|
}) => {
|
|
23
23
|
const parentLocale = (0, _react().useContext)(_LocaleContext.LocaleContext);
|
|
24
|
-
const resolvedLocale =
|
|
24
|
+
const resolvedLocale = locale ?? parentLocale;
|
|
25
25
|
return /*#__PURE__*/_react().default.createElement(_ThemeProvider.ThemeProvider, {
|
|
26
26
|
value: theme
|
|
27
27
|
}, /*#__PURE__*/_react().default.createElement(_LocaleContext.LocaleContext.Provider, {
|
|
@@ -125,7 +125,7 @@ const DatePicker = props => {
|
|
|
125
125
|
originColumns,
|
|
126
126
|
columns,
|
|
127
127
|
pickerValue
|
|
128
|
-
} = (
|
|
128
|
+
} = (() => {
|
|
129
129
|
const getBoundary = (boundaryType, date) => {
|
|
130
130
|
const boundaryDate = boundaryType === 'min' ? minDate : maxDate;
|
|
131
131
|
const boundary = {
|
|
@@ -226,7 +226,7 @@ const DatePicker = props => {
|
|
|
226
226
|
columns,
|
|
227
227
|
pickerValue
|
|
228
228
|
};
|
|
229
|
-
}
|
|
229
|
+
})();
|
|
230
230
|
const buildDateFromValues = (0, _react().useCallback)(values => {
|
|
231
231
|
const getValue = columnType => {
|
|
232
232
|
const index = originColumns.findIndex(column => column.type === columnType);
|
|
@@ -306,7 +306,7 @@ const TimePicker = props => {
|
|
|
306
306
|
setCurrentTime(next);
|
|
307
307
|
}
|
|
308
308
|
}, [formatTime, value]);
|
|
309
|
-
const [hourValues, minuteValues] = (
|
|
309
|
+
const [hourValues, minuteValues] = (() => {
|
|
310
310
|
let hours = (0, _utils.times)(maxHour - minHour + 1, index => (0, _utils.padZero)(minHour + index));
|
|
311
311
|
let minutes = (0, _utils.times)(maxMinute - minMinute + 1, index => (0, _utils.padZero)(minMinute + index));
|
|
312
312
|
if (filter) {
|
|
@@ -314,14 +314,14 @@ const TimePicker = props => {
|
|
|
314
314
|
minutes = filter('minute', minutes);
|
|
315
315
|
}
|
|
316
316
|
return [hours, minutes];
|
|
317
|
-
}
|
|
318
|
-
const columns =
|
|
317
|
+
})();
|
|
318
|
+
const columns = [hourValues.map(value => ({
|
|
319
319
|
label: formatter('hour', value),
|
|
320
320
|
value
|
|
321
321
|
})), minuteValues.map(value => ({
|
|
322
322
|
label: formatter('minute', value),
|
|
323
323
|
value
|
|
324
|
-
}))]
|
|
324
|
+
}))];
|
|
325
325
|
const handleChange = (0, _react().useCallback)(values => {
|
|
326
326
|
const nextHour = values[0] ?? hourValues[0];
|
|
327
327
|
const nextMinute = values[1] ?? minuteValues[0];
|
|
@@ -331,7 +331,7 @@ const TimePicker = props => {
|
|
|
331
331
|
onChange?.(next);
|
|
332
332
|
}, [hourValues, minuteValues, onChange]);
|
|
333
333
|
const handleConfirm = (0, _react().useCallback)(() => onConfirm?.(timeRef.current), [onConfirm]);
|
|
334
|
-
const pickerValue =
|
|
334
|
+
const pickerValue = currentTime.split(':');
|
|
335
335
|
return /*#__PURE__*/_react().default.createElement(_picker.default, _extends({}, pickerProps, {
|
|
336
336
|
columns: columns,
|
|
337
337
|
interactionMode: interactionMode,
|
|
@@ -136,8 +136,7 @@ const Dialog = props => {
|
|
|
136
136
|
if (!beforeClose) return true;
|
|
137
137
|
try {
|
|
138
138
|
return beforeClose(action);
|
|
139
|
-
} catch
|
|
140
|
-
if (typeof __DEV__ !== 'undefined' && __DEV__) console.error(error);
|
|
139
|
+
} catch {
|
|
141
140
|
return true;
|
|
142
141
|
}
|
|
143
142
|
};
|
|
@@ -151,8 +150,7 @@ const Dialog = props => {
|
|
|
151
150
|
if (resolved === false) return;
|
|
152
151
|
if (actionSeqRef.current !== seq) return;
|
|
153
152
|
handler?.();
|
|
154
|
-
}).catch(
|
|
155
|
-
if (typeof __DEV__ !== 'undefined' && __DEV__) console.error(error);
|
|
153
|
+
}).catch(() => {
|
|
156
154
|
if (actionSeqRef.current !== seq) return;
|
|
157
155
|
handler?.();
|
|
158
156
|
});
|
|
@@ -313,7 +311,8 @@ const Dialog = props => {
|
|
|
313
311
|
}, rest), closeable ? /*#__PURE__*/_react().default.createElement(_reactNative().Pressable, {
|
|
314
312
|
style: [styles.closeIcon, {
|
|
315
313
|
top: tokens.spacing.paddingTop / 2,
|
|
316
|
-
right: tokens.spacing.paddingHorizontal / 2
|
|
314
|
+
right: tokens.spacing.paddingHorizontal / 2,
|
|
315
|
+
padding: tokens.spacing.closeIconPadding
|
|
317
316
|
}],
|
|
318
317
|
hitSlop: {
|
|
319
318
|
top: 8,
|
|
@@ -384,7 +383,6 @@ const styles = _reactNative().StyleSheet.create({
|
|
|
384
383
|
},
|
|
385
384
|
closeIcon: {
|
|
386
385
|
position: 'absolute',
|
|
387
|
-
padding: 4,
|
|
388
386
|
zIndex: 1
|
|
389
387
|
}
|
|
390
388
|
});
|
|
@@ -40,7 +40,8 @@ const createDialogTokens = foundations => {
|
|
|
40
40
|
titleGap: spacing.sm,
|
|
41
41
|
footerGap: spacing.md,
|
|
42
42
|
roundFooterPadding: spacing.md,
|
|
43
|
-
roundFooterGap: spacing.sm
|
|
43
|
+
roundFooterGap: spacing.sm,
|
|
44
|
+
closeIconPadding: spacing.xs
|
|
44
45
|
},
|
|
45
46
|
sizes: {
|
|
46
47
|
minWidth: 280,
|