@pingux/astro 2.185.0-alpha.0 → 2.187.0-alpha.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/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +8 -4
- package/lib/cjs/components/Badge/Badge.stories.js +9 -7
- package/lib/cjs/components/Badge/Badge.styles.d.ts +29 -0
- package/lib/cjs/components/Badge/Badge.styles.js +2 -0
- package/lib/cjs/components/ColorField/ColorFieldPreviewButton.js +6 -3
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +7 -4
- package/lib/cjs/components/ListBox/Option.js +2 -2
- package/lib/cjs/components/ListView/ListViewExpandableItem.js +6 -3
- package/lib/cjs/components/Loader/Loader.styles.js +1 -1
- package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +8 -4
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +3 -2
- package/lib/cjs/components/NumberField/NumberField.js +4 -2
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +3 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +45 -13
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +25 -8
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/comboBox.d.ts +9 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/comboBox.js +17 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +8 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +3 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +83 -27
- package/lib/cjs/styles/themes/next-gen/text.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/text.js +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +76 -27
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +40 -14
- package/lib/cjs/styles/themes/next-gen/variants/label.js +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.d.ts +3 -0
- package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.js +3 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +7 -4
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +8 -4
- package/lib/components/Badge/Badge.stories.js +9 -7
- package/lib/components/Badge/Badge.styles.js +2 -0
- package/lib/components/ColorField/ColorFieldPreviewButton.js +6 -3
- package/lib/components/ComboBox/ComboBoxInput.js +7 -4
- package/lib/components/ListBox/Option.js +2 -2
- package/lib/components/ListView/ListViewExpandableItem.js +6 -3
- package/lib/components/Loader/Loader.styles.js +1 -1
- package/lib/components/MultivaluesField/CondensedMultivaluesField.js +8 -4
- package/lib/components/NavBarSection/NavBarItemHeader.js +3 -2
- package/lib/components/NumberField/NumberField.js +5 -3
- package/lib/components/SelectFieldBase/SelectFieldBase.js +3 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +25 -8
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/comboBox.js +10 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +3 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +1 -1
- package/lib/styles/themes/next-gen/text.js +1 -0
- package/lib/styles/themes/next-gen/variants/badges.js +40 -14
- package/lib/styles/themes/next-gen/variants/label.js +2 -0
- package/lib/styles/themes/next-gen/variants/popoverMenu.js +3 -0
- package/lib/styles/themes/next-gen/variants/variants.js +7 -4
- package/package.json +1 -1
|
@@ -39,7 +39,8 @@ var AccordionGridItemHeader = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
|
39
39
|
state = _useAccordionGridCont.state;
|
|
40
40
|
var cellRef = (0, _react.useRef)();
|
|
41
41
|
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
42
|
-
icons = _useGetTheme.icons
|
|
42
|
+
icons = _useGetTheme.icons,
|
|
43
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
43
44
|
var MenuDown = icons.MenuDown,
|
|
44
45
|
MenuUp = icons.MenuUp;
|
|
45
46
|
|
|
@@ -110,13 +111,16 @@ var AccordionGridItemHeader = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
|
110
111
|
sx: {
|
|
111
112
|
mr: '0px'
|
|
112
113
|
}
|
|
113
|
-
}, (0, _react2.jsx)(_Icon["default"], {
|
|
114
|
+
}, (0, _react2.jsx)(_Icon["default"], (0, _extends2["default"])({
|
|
114
115
|
color: "text.primary",
|
|
115
|
-
icon: isSelected ? upArrow : downArrow
|
|
116
|
+
icon: isSelected ? upArrow : downArrow
|
|
117
|
+
}, isOnyx && {
|
|
118
|
+
size: 'sm'
|
|
119
|
+
}, {
|
|
116
120
|
title: {
|
|
117
121
|
name: isSelected ? 'Menu Up Icon' : 'Menu Down Icon'
|
|
118
122
|
}
|
|
119
|
-
}))));
|
|
123
|
+
})))));
|
|
120
124
|
});
|
|
121
125
|
AccordionGridItemHeader.defaultProps = {
|
|
122
126
|
hasCaret: true
|
|
@@ -222,21 +222,23 @@ var BadgeWithLeftSlotAndIcon = exports.BadgeWithLeftSlotAndIcon = function Badge
|
|
|
222
222
|
};
|
|
223
223
|
var StatusBadgeVariants = exports.StatusBadgeVariants = function StatusBadgeVariants(_ref6) {
|
|
224
224
|
var args = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref6), _ref6));
|
|
225
|
-
return (0, _react2.jsx)(_index.Box,
|
|
225
|
+
return (0, _react2.jsx)(_index.Box, {
|
|
226
|
+
gap: "md"
|
|
227
|
+
}, (0, _react2.jsx)(_index.Badge, (0, _extends2["default"])({}, args, {
|
|
226
228
|
variant: "criticalStatusBadge",
|
|
227
|
-
label: "Critical"
|
|
228
|
-
mb: "lg"
|
|
229
|
+
label: "Critical"
|
|
229
230
|
})), (0, _react2.jsx)(_index.Badge, (0, _extends2["default"])({}, args, {
|
|
230
231
|
variant: "warningStatusBadge",
|
|
231
|
-
label: "Warning"
|
|
232
|
-
mb: "lg"
|
|
232
|
+
label: "Warning"
|
|
233
233
|
})), (0, _react2.jsx)(_index.Badge, (0, _extends2["default"])({}, args, {
|
|
234
234
|
variant: "healthyStatusBadge",
|
|
235
|
-
label: "Healthy"
|
|
236
|
-
mb: "lg"
|
|
235
|
+
label: "Healthy"
|
|
237
236
|
})), (0, _react2.jsx)(_index.Badge, (0, _extends2["default"])({}, args, {
|
|
238
237
|
variant: "activeStatusBadge",
|
|
239
238
|
label: "Active"
|
|
239
|
+
})), (0, _react2.jsx)(_index.Badge, (0, _extends2["default"])({}, args, {
|
|
240
|
+
variant: "selected",
|
|
241
|
+
label: "Selected"
|
|
240
242
|
})));
|
|
241
243
|
};
|
|
242
244
|
StatusBadgeVariants.parameters = {
|
|
@@ -542,6 +542,35 @@ declare const _default: {
|
|
|
542
542
|
};
|
|
543
543
|
};
|
|
544
544
|
};
|
|
545
|
+
selected: {
|
|
546
|
+
backgroundColor: string;
|
|
547
|
+
'& span': {
|
|
548
|
+
fontWeight: number;
|
|
549
|
+
color: string;
|
|
550
|
+
};
|
|
551
|
+
cursor: string;
|
|
552
|
+
p: string;
|
|
553
|
+
alignItems: string;
|
|
554
|
+
justifyContent: string;
|
|
555
|
+
minWidth: string;
|
|
556
|
+
alignSelf: string;
|
|
557
|
+
display: string;
|
|
558
|
+
borderRadius: string;
|
|
559
|
+
fontWeight: number;
|
|
560
|
+
'& button': {
|
|
561
|
+
backgroundColor: string;
|
|
562
|
+
marginLeft: string;
|
|
563
|
+
marginTop: string;
|
|
564
|
+
padding: string;
|
|
565
|
+
'&.is-hovered': {
|
|
566
|
+
backgroundColor: string;
|
|
567
|
+
};
|
|
568
|
+
'& .mdi-icon': {
|
|
569
|
+
marginLeft: string;
|
|
570
|
+
padding: string;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
};
|
|
545
574
|
selectedItemBadge: {
|
|
546
575
|
bg: string;
|
|
547
576
|
py: number;
|
|
@@ -159,6 +159,7 @@ var convenienceDefault = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
|
159
159
|
color: 'white'
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
+
var selected = convenienceDefault;
|
|
162
163
|
var calloutBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
163
164
|
backgroundColor: '#FFF !important',
|
|
164
165
|
border: 'solid 1px',
|
|
@@ -272,6 +273,7 @@ var _default = exports["default"] = {
|
|
|
272
273
|
itemBadgeWithSlot: itemBadgeWithSlot,
|
|
273
274
|
multivaluesBadge: multivaluesBadge,
|
|
274
275
|
readOnlyBadge: readOnlyBadge,
|
|
276
|
+
selected: selected,
|
|
275
277
|
selectedItemBadge: selectedItemBadge,
|
|
276
278
|
invertedBadgeDeleteButton: invertedBadgeDeleteButton,
|
|
277
279
|
successCalloutBadge: successCalloutBadge,
|
|
@@ -24,7 +24,8 @@ var ColorFieldPreviewButton = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
|
24
24
|
colorValue = props.colorValue,
|
|
25
25
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
26
26
|
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
27
|
-
icons = _useGetTheme.icons
|
|
27
|
+
icons = _useGetTheme.icons,
|
|
28
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
28
29
|
var MenuUp = icons.MenuUp,
|
|
29
30
|
MenuDown = icons.MenuDown;
|
|
30
31
|
var buttonRef = (0, _hooks.useLocalOrForwardRef)(ref);
|
|
@@ -52,12 +53,14 @@ var ColorFieldPreviewButton = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
|
52
53
|
ml: 'auto'
|
|
53
54
|
},
|
|
54
55
|
flexGrow: "1"
|
|
55
|
-
}, (0, _react2.jsx)(_index.Icon, {
|
|
56
|
+
}, (0, _react2.jsx)(_index.Icon, (0, _extends2["default"])({
|
|
56
57
|
ml: "auto",
|
|
57
58
|
title: {
|
|
58
59
|
name: isOpen ? 'menu-up' : 'menu-down'
|
|
59
60
|
},
|
|
60
61
|
icon: isOpen ? MenuUp : MenuDown
|
|
61
|
-
}
|
|
62
|
+
}, isOnyx && {
|
|
63
|
+
size: 'sm'
|
|
64
|
+
})))));
|
|
62
65
|
});
|
|
63
66
|
var _default = exports["default"] = ColorFieldPreviewButton;
|
|
@@ -61,7 +61,8 @@ var ComboBoxInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
61
61
|
containerProps: containerProps
|
|
62
62
|
}, (0, _reactAria.mergeProps)(inputProps, others));
|
|
63
63
|
var _useGetTheme = (0, _useGetTheme2["default"])(),
|
|
64
|
-
icons = _useGetTheme.icons
|
|
64
|
+
icons = _useGetTheme.icons,
|
|
65
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
65
66
|
var MenuDown = icons.MenuDown;
|
|
66
67
|
|
|
67
68
|
// istanbul ignore next
|
|
@@ -82,9 +83,11 @@ var ComboBoxInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
82
83
|
variant: "forms.comboBox.inputInContainerSlot"
|
|
83
84
|
},
|
|
84
85
|
// Render loader after delay if filtering or loading
|
|
85
|
-
isLoading && (isOpen || menuTrigger === 'manual' || loadingState === _loadingStates["default"].LOADING) && (0, _react2.jsx)(_.Loader, {
|
|
86
|
+
isLoading && (isOpen || menuTrigger === 'manual' || loadingState === _loadingStates["default"].LOADING) && (0, _react2.jsx)(_.Loader, (0, _extends2["default"])({
|
|
86
87
|
variant: "loader.withinInput"
|
|
87
|
-
}
|
|
88
|
+
}, isOnyx && {
|
|
89
|
+
size: 'sm'
|
|
90
|
+
})), (0, _react2.jsx)(_interactions.PressResponder, {
|
|
88
91
|
preventFocusOnPress: true,
|
|
89
92
|
isPressed: isOpen
|
|
90
93
|
}, (0, _react2.jsx)(_.Button, (0, _extends2["default"])({
|
|
@@ -95,7 +98,7 @@ var ComboBoxInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
95
98
|
tabIndex: -1
|
|
96
99
|
}), (0, _react2.jsx)(_.Icon, {
|
|
97
100
|
icon: MenuDown,
|
|
98
|
-
size:
|
|
101
|
+
size: isOnyx ? 'sm' : 'md',
|
|
99
102
|
sx: isOpen ? {
|
|
100
103
|
transform: 'rotate(180deg)'
|
|
101
104
|
} : null,
|
|
@@ -142,7 +142,6 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
142
142
|
}, (0, _react2.jsx)(_Icon["default"], {
|
|
143
143
|
icon: isSelected ? CheckedIcon : UncheckedIcon,
|
|
144
144
|
color: "active",
|
|
145
|
-
size: "24px",
|
|
146
145
|
mr: "xs",
|
|
147
146
|
className: classNames,
|
|
148
147
|
variant: "listBox.checkboxIcon"
|
|
@@ -156,7 +155,8 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
156
155
|
title: {
|
|
157
156
|
name: 'Check Icon'
|
|
158
157
|
},
|
|
159
|
-
color: "green-500"
|
|
158
|
+
color: "green-500",
|
|
159
|
+
size: isOnyx ? 'xsm' : 'md'
|
|
160
160
|
}));
|
|
161
161
|
});
|
|
162
162
|
Option.defaultProps = {
|
|
@@ -33,7 +33,8 @@ var ListViewExpandableItem = function ListViewExpandableItem(props) {
|
|
|
33
33
|
isFocusable = props.isFocusable,
|
|
34
34
|
className = props.className;
|
|
35
35
|
var _useGetTheme = (0, _useGetTheme2["default"])(),
|
|
36
|
-
icons = _useGetTheme.icons
|
|
36
|
+
icons = _useGetTheme.icons,
|
|
37
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
37
38
|
var MenuDown = icons.MenuDown,
|
|
38
39
|
MenuUp = icons.MenuUp;
|
|
39
40
|
var _useContext = (0, _react.useContext)(_ListViewContext.ListViewContext),
|
|
@@ -75,7 +76,7 @@ var ListViewExpandableItem = function ListViewExpandableItem(props) {
|
|
|
75
76
|
alignItems: 'center',
|
|
76
77
|
width: '100%'
|
|
77
78
|
}
|
|
78
|
-
}, item.rendered && item.rendered[0], (0, _react2.jsx)(_index.Icon, {
|
|
79
|
+
}, item.rendered && item.rendered[0], (0, _react2.jsx)(_index.Icon, (0, _extends2["default"])({
|
|
79
80
|
sx: {
|
|
80
81
|
ml: 'auto'
|
|
81
82
|
},
|
|
@@ -84,7 +85,9 @@ var ListViewExpandableItem = function ListViewExpandableItem(props) {
|
|
|
84
85
|
title: {
|
|
85
86
|
name: "".concat(key, " expand icon button")
|
|
86
87
|
}
|
|
87
|
-
}
|
|
88
|
+
}, isOnyx && {
|
|
89
|
+
size: 'sm'
|
|
90
|
+
})))), (0, _react2.jsx)(_index.Box, expandableItemState.gridCellProps, isExpanded && (0, _react2.jsx)(_ListViewFocusWrapper["default"], {
|
|
88
91
|
isFocusEscaped: isFocusEscaped,
|
|
89
92
|
containerProps: expandableContainerProps
|
|
90
93
|
}, item.rendered && item.rendered[1])));
|
|
@@ -106,7 +106,8 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
|
106
106
|
var inputRef = (0, _react.useRef)();
|
|
107
107
|
var buttonRef = (0, _react.useRef)();
|
|
108
108
|
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
109
|
-
icons = _useGetTheme.icons
|
|
109
|
+
icons = _useGetTheme.icons,
|
|
110
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
110
111
|
var MenuDown = icons.MenuDown,
|
|
111
112
|
MenuUp = icons.MenuUp;
|
|
112
113
|
var _useFocusWithin = (0, _interactions.useFocusWithin)({
|
|
@@ -393,12 +394,15 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
|
|
|
393
394
|
sx: {
|
|
394
395
|
border: 'none'
|
|
395
396
|
}
|
|
396
|
-
}, (0, _react2.jsx)(_.Icon, {
|
|
397
|
-
icon: isOpen ? MenuUp : MenuDown
|
|
397
|
+
}, (0, _react2.jsx)(_.Icon, (0, _extends2["default"])({
|
|
398
|
+
icon: isOpen ? MenuUp : MenuDown
|
|
399
|
+
}, isOnyx && {
|
|
400
|
+
size: 'sm'
|
|
401
|
+
}, {
|
|
398
402
|
title: {
|
|
399
403
|
name: isOpen ? 'Menu Up Icon' : 'Menu Down Icon'
|
|
400
404
|
}
|
|
401
|
-
})));
|
|
405
|
+
}))));
|
|
402
406
|
return (0, _react2.jsx)(_MultivaluesContext.MultivaluesContext.Provider, {
|
|
403
407
|
value: setActiveDescendant
|
|
404
408
|
}, (0, _react2.jsx)(_.Box, (0, _reactAria.mergeProps)(containerProps, focusWithinProps), (0, _react2.jsx)(_.TextField, (0, _extends2["default"])({
|
|
@@ -41,7 +41,8 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
|
41
41
|
var navBarState = (0, _NavBarContext.useNavBarContext)();
|
|
42
42
|
var _useGetTheme = (0, _useGetTheme3["default"])(),
|
|
43
43
|
icons = _useGetTheme.icons,
|
|
44
|
-
navBarIconSize = _useGetTheme.navBarIconSize
|
|
44
|
+
navBarIconSize = _useGetTheme.navBarIconSize,
|
|
45
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
45
46
|
var MenuDown = icons.MenuDown,
|
|
46
47
|
MenuUp = icons.MenuUp;
|
|
47
48
|
var selectedKey = navBarState.selectedKey,
|
|
@@ -97,7 +98,7 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
|
97
98
|
}
|
|
98
99
|
}, (0, _react2.jsx)(_index.Icon, {
|
|
99
100
|
icon: isExpanded ? MenuUp : MenuDown,
|
|
100
|
-
size:
|
|
101
|
+
size: isOnyx ? 'sm' : 'xsm',
|
|
101
102
|
sx: {
|
|
102
103
|
color: getIconColor(),
|
|
103
104
|
fill: getIconColor()
|
|
@@ -41,6 +41,8 @@ var NumberField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
41
41
|
status = props.status;
|
|
42
42
|
var _useLocale = (0, _i18n.useLocale)(),
|
|
43
43
|
locale = _useLocale.locale;
|
|
44
|
+
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
45
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
44
46
|
var state = (0, _reactStately.useNumberFieldState)(_objectSpread(_objectSpread({}, props), {}, {
|
|
45
47
|
locale: locale
|
|
46
48
|
}));
|
|
@@ -71,7 +73,7 @@ var NumberField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
71
73
|
p: 0
|
|
72
74
|
}), (0, _react2.jsx)(_.Icon, {
|
|
73
75
|
icon: _MenuUpIcon["default"],
|
|
74
|
-
size: 18,
|
|
76
|
+
size: isOnyx ? 'sm' : 18,
|
|
75
77
|
title: {
|
|
76
78
|
name: 'Menu Up Icon'
|
|
77
79
|
}
|
|
@@ -81,7 +83,7 @@ var NumberField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
81
83
|
p: 0
|
|
82
84
|
}), (0, _react2.jsx)(_.Icon, {
|
|
83
85
|
icon: _MenuDownIcon["default"],
|
|
84
|
-
size: 18,
|
|
86
|
+
size: isOnyx ? 'sm' : 18,
|
|
85
87
|
title: {
|
|
86
88
|
name: 'Menu Down Icon'
|
|
87
89
|
}
|
|
@@ -69,7 +69,8 @@ var SelectFieldBase = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
|
69
69
|
var _getAriaAttributeProp = (0, _ariaAttributes.getAriaAttributeProps)(others),
|
|
70
70
|
ariaProps = _getAriaAttributeProp.ariaProps;
|
|
71
71
|
var _useGetTheme = (0, _useGetTheme2["default"])(),
|
|
72
|
-
icons = _useGetTheme.icons
|
|
72
|
+
icons = _useGetTheme.icons,
|
|
73
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
73
74
|
var MenuDown = icons.MenuDown,
|
|
74
75
|
MenuUp = icons.MenuUp;
|
|
75
76
|
var helperTextId = (0, _react.useMemo)(function () {
|
|
@@ -90,7 +91,7 @@ var SelectFieldBase = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
|
90
91
|
title: {
|
|
91
92
|
name: 'Menu down'
|
|
92
93
|
},
|
|
93
|
-
size:
|
|
94
|
+
size: isOnyx ? 'sm' : 'md'
|
|
94
95
|
}));
|
|
95
96
|
var clearButton = hasClearButton && state.selectedKey && (0, _react2.jsx)(_.IconButton, (0, _extends2["default"])({
|
|
96
97
|
tabIndex: 0,
|
|
@@ -1,54 +1,86 @@
|
|
|
1
1
|
declare const badges: {
|
|
2
2
|
baseBadge: {
|
|
3
|
-
|
|
3
|
+
'& span': {
|
|
4
|
+
color: string;
|
|
5
|
+
};
|
|
4
6
|
};
|
|
5
7
|
primary: {
|
|
6
8
|
backgroundColor: string;
|
|
7
|
-
|
|
9
|
+
'& span': {
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
8
12
|
};
|
|
9
13
|
secondary: {
|
|
10
14
|
backgroundColor: string;
|
|
11
|
-
|
|
15
|
+
'& span': {
|
|
16
|
+
color: any;
|
|
17
|
+
};
|
|
12
18
|
};
|
|
13
19
|
success: {
|
|
14
20
|
backgroundColor: string;
|
|
15
|
-
|
|
21
|
+
'& span': {
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
16
24
|
};
|
|
17
25
|
danger: {
|
|
18
26
|
backgroundColor: string;
|
|
19
|
-
|
|
27
|
+
'& span': {
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
20
30
|
};
|
|
21
31
|
warning: {
|
|
22
32
|
backgroundColor: string;
|
|
23
|
-
|
|
33
|
+
'& span': {
|
|
34
|
+
color: string;
|
|
35
|
+
};
|
|
24
36
|
};
|
|
25
37
|
info: {
|
|
26
38
|
backgroundColor: string;
|
|
27
|
-
|
|
39
|
+
'& span': {
|
|
40
|
+
color: any;
|
|
41
|
+
};
|
|
28
42
|
};
|
|
29
43
|
dark: {
|
|
30
44
|
backgroundColor: string;
|
|
31
|
-
|
|
45
|
+
'& span': {
|
|
46
|
+
color: any;
|
|
47
|
+
};
|
|
32
48
|
};
|
|
33
49
|
activeStatusBadge: {
|
|
34
50
|
backgroundColor: string;
|
|
35
|
-
|
|
51
|
+
'& span': {
|
|
52
|
+
color: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
selected: {
|
|
56
|
+
backgroundColor: string;
|
|
57
|
+
'& span': {
|
|
58
|
+
color: string;
|
|
59
|
+
};
|
|
36
60
|
};
|
|
37
61
|
warningStatusBadge: {
|
|
38
62
|
backgroundColor: string;
|
|
39
|
-
|
|
63
|
+
'& span': {
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
40
66
|
};
|
|
41
67
|
criticalStatusBadge: {
|
|
42
68
|
backgroundColor: string;
|
|
43
|
-
|
|
69
|
+
'& span': {
|
|
70
|
+
color: string;
|
|
71
|
+
};
|
|
44
72
|
};
|
|
45
73
|
healthyStatusBadge: {
|
|
46
74
|
backgroundColor: string;
|
|
47
|
-
|
|
75
|
+
'& span': {
|
|
76
|
+
color: string;
|
|
77
|
+
};
|
|
48
78
|
};
|
|
49
79
|
secondaryStatusBadge: {
|
|
50
80
|
backgroundColor: string;
|
|
51
|
-
|
|
81
|
+
'& span': {
|
|
82
|
+
color: any;
|
|
83
|
+
};
|
|
52
84
|
};
|
|
53
85
|
countBadge: {
|
|
54
86
|
backgroundColor: string;
|
|
@@ -18,35 +18,51 @@ var _onyxTokens = require("@pingux/onyx-tokens");
|
|
|
18
18
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var baseBadge = {
|
|
21
|
-
|
|
21
|
+
'& span': {
|
|
22
|
+
color: 'badge.textColor'
|
|
23
|
+
}
|
|
22
24
|
};
|
|
23
25
|
var primary = {
|
|
24
26
|
backgroundColor: '#1a73e8 !important',
|
|
25
|
-
|
|
27
|
+
'& span': {
|
|
28
|
+
color: 'black'
|
|
29
|
+
}
|
|
26
30
|
};
|
|
27
31
|
var secondary = {
|
|
28
32
|
backgroundColor: '#324054 !important',
|
|
29
|
-
|
|
33
|
+
'& span': {
|
|
34
|
+
color: _onyxTokens.astroTokensDark.color.gray[100]
|
|
35
|
+
}
|
|
30
36
|
};
|
|
31
37
|
var success = {
|
|
32
38
|
backgroundColor: '#22a75f !important',
|
|
33
|
-
|
|
39
|
+
'& span': {
|
|
40
|
+
color: 'black'
|
|
41
|
+
}
|
|
34
42
|
};
|
|
35
43
|
var danger = {
|
|
36
44
|
backgroundColor: '#da3a2b !important',
|
|
37
|
-
|
|
45
|
+
'& span': {
|
|
46
|
+
color: 'black'
|
|
47
|
+
}
|
|
38
48
|
};
|
|
39
49
|
var warning = {
|
|
40
50
|
backgroundColor: '#ffb946 !important',
|
|
41
|
-
|
|
51
|
+
'& span': {
|
|
52
|
+
color: 'black'
|
|
53
|
+
}
|
|
42
54
|
};
|
|
43
55
|
var info = {
|
|
44
56
|
backgroundColor: '#324054 !important',
|
|
45
|
-
|
|
57
|
+
'& span': {
|
|
58
|
+
color: _onyxTokens.astroTokensDark.color.gray[100]
|
|
59
|
+
}
|
|
46
60
|
};
|
|
47
61
|
var dark = {
|
|
48
62
|
backgroundColor: '#c0c9d5 !important',
|
|
49
|
-
|
|
63
|
+
'& span': {
|
|
64
|
+
color: _onyxTokens.astroTokensDark.color.gray[100]
|
|
65
|
+
}
|
|
50
66
|
};
|
|
51
67
|
var activeStatusBadge = _objectSpread({}, primary);
|
|
52
68
|
var warningStatusBadge = _objectSpread({}, warning);
|
|
@@ -104,6 +120,7 @@ var badges = {
|
|
|
104
120
|
info: info,
|
|
105
121
|
dark: dark,
|
|
106
122
|
activeStatusBadge: activeStatusBadge,
|
|
123
|
+
selected: activeStatusBadge,
|
|
107
124
|
warningStatusBadge: warningStatusBadge,
|
|
108
125
|
criticalStatusBadge: criticalStatusBadge,
|
|
109
126
|
healthyStatusBadge: healthyStatusBadge,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _colors = require("../colors");
|
|
9
|
+
var comboBox = {
|
|
10
|
+
input: {
|
|
11
|
+
bg: 'gray[900]',
|
|
12
|
+
'&.is-disabled, &.is-read-only': {
|
|
13
|
+
bg: "".concat(_colors.colors.disabled, " !important")
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var _default = exports["default"] = comboBox;
|
|
@@ -15,6 +15,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
15
15
|
exports.select = exports.radio = exports["default"] = exports.checkbox = void 0;
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
17
17
|
var _onyxTokens = require("@pingux/onyx-tokens");
|
|
18
|
+
var _comboBox = _interopRequireDefault(require("./comboBox"));
|
|
18
19
|
var _input = require("./input");
|
|
19
20
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -88,5 +89,6 @@ var _default = exports["default"] = {
|
|
|
88
89
|
select: _objectSpread(_objectSpread({}, select), {}, {
|
|
89
90
|
option: _objectSpread({}, selectOption)
|
|
90
91
|
}),
|
|
91
|
-
"switch": switchable
|
|
92
|
+
"switch": switchable,
|
|
93
|
+
comboBox: _comboBox["default"]
|
|
92
94
|
};
|