@pingux/astro 2.163.1-alpha.3 → 2.163.1-alpha.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/lib/cjs/components/LinkSelectField/LinkSelectField.js +7 -3
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +20 -1
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +2 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +16 -11
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +25 -21
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +7 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +12 -5
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themes/astro/customProperties/index.js +3 -1
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/index.js +3 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +46 -25
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.js +2 -1
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +31 -25
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +13 -12
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +14 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +16 -2
- package/lib/components/LinkSelectField/LinkSelectField.js +7 -3
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +19 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +25 -21
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +12 -5
- package/lib/styles/themes/astro/customProperties/index.js +3 -1
- package/lib/styles/themes/next-gen/customProperties/index.js +3 -1
- package/lib/styles/themes/next-gen/tokens/colorTokens.js +2 -1
- package/lib/styles/themes/next-gen/variants/badges.js +13 -12
- package/lib/styles/themes/next-gen/variants/variants.js +16 -2
- package/lib/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ export declare const badges: {
|
|
|
33
33
|
baseBadge: {
|
|
34
34
|
'& span': {
|
|
35
35
|
fontSize: string;
|
|
36
|
-
fontWeight:
|
|
36
|
+
fontWeight: string;
|
|
37
37
|
};
|
|
38
38
|
'& button': {
|
|
39
39
|
alignSelf: string;
|
|
@@ -69,7 +69,7 @@ export declare const badges: {
|
|
|
69
69
|
default: {
|
|
70
70
|
'& span': {
|
|
71
71
|
fontSize: string;
|
|
72
|
-
fontWeight:
|
|
72
|
+
fontWeight: string;
|
|
73
73
|
};
|
|
74
74
|
'& button': {
|
|
75
75
|
alignSelf: string;
|
|
@@ -107,7 +107,7 @@ export declare const badges: {
|
|
|
107
107
|
color: string;
|
|
108
108
|
'& span': {
|
|
109
109
|
fontSize: string;
|
|
110
|
-
fontWeight:
|
|
110
|
+
fontWeight: string;
|
|
111
111
|
};
|
|
112
112
|
'& button': {
|
|
113
113
|
alignSelf: string;
|
|
@@ -144,7 +144,7 @@ export declare const badges: {
|
|
|
144
144
|
'& span': {
|
|
145
145
|
color: string;
|
|
146
146
|
fontSize: string;
|
|
147
|
-
fontWeight:
|
|
147
|
+
fontWeight: string;
|
|
148
148
|
};
|
|
149
149
|
'& button': {
|
|
150
150
|
alignSelf: string;
|
|
@@ -182,7 +182,7 @@ export declare const badges: {
|
|
|
182
182
|
color: string;
|
|
183
183
|
'& span': {
|
|
184
184
|
fontSize: string;
|
|
185
|
-
fontWeight:
|
|
185
|
+
fontWeight: string;
|
|
186
186
|
};
|
|
187
187
|
'& button': {
|
|
188
188
|
alignSelf: string;
|
|
@@ -219,7 +219,7 @@ export declare const badges: {
|
|
|
219
219
|
color: string;
|
|
220
220
|
'& span': {
|
|
221
221
|
fontSize: string;
|
|
222
|
-
fontWeight:
|
|
222
|
+
fontWeight: string;
|
|
223
223
|
};
|
|
224
224
|
'& button': {
|
|
225
225
|
alignSelf: string;
|
|
@@ -256,7 +256,7 @@ export declare const badges: {
|
|
|
256
256
|
color: string;
|
|
257
257
|
'& span': {
|
|
258
258
|
fontSize: string;
|
|
259
|
-
fontWeight:
|
|
259
|
+
fontWeight: string;
|
|
260
260
|
};
|
|
261
261
|
'& button': {
|
|
262
262
|
alignSelf: string;
|
|
@@ -293,7 +293,7 @@ export declare const badges: {
|
|
|
293
293
|
color: string;
|
|
294
294
|
'& span': {
|
|
295
295
|
fontSize: string;
|
|
296
|
-
fontWeight:
|
|
296
|
+
fontWeight: string;
|
|
297
297
|
};
|
|
298
298
|
'& button': {
|
|
299
299
|
alignSelf: string;
|
|
@@ -330,7 +330,7 @@ export declare const badges: {
|
|
|
330
330
|
color: string;
|
|
331
331
|
'& span': {
|
|
332
332
|
fontSize: string;
|
|
333
|
-
fontWeight:
|
|
333
|
+
fontWeight: string;
|
|
334
334
|
};
|
|
335
335
|
'& button': {
|
|
336
336
|
alignSelf: string;
|
|
@@ -367,7 +367,7 @@ export declare const badges: {
|
|
|
367
367
|
color: string;
|
|
368
368
|
'& span': {
|
|
369
369
|
fontSize: string;
|
|
370
|
-
fontWeight:
|
|
370
|
+
fontWeight: string;
|
|
371
371
|
};
|
|
372
372
|
'& button': {
|
|
373
373
|
alignSelf: string;
|
|
@@ -404,7 +404,7 @@ export declare const badges: {
|
|
|
404
404
|
color: string;
|
|
405
405
|
'& span': {
|
|
406
406
|
fontSize: string;
|
|
407
|
-
fontWeight:
|
|
407
|
+
fontWeight: string;
|
|
408
408
|
};
|
|
409
409
|
'& button': {
|
|
410
410
|
alignSelf: string;
|
|
@@ -441,8 +441,8 @@ export declare const badges: {
|
|
|
441
441
|
paddingRight: string;
|
|
442
442
|
'& span': {
|
|
443
443
|
color: string;
|
|
444
|
-
fontWeight: number;
|
|
445
444
|
fontSize: string;
|
|
445
|
+
fontWeight: string;
|
|
446
446
|
};
|
|
447
447
|
'& button': {
|
|
448
448
|
alignSelf: string;
|
|
@@ -477,10 +477,13 @@ export declare const badges: {
|
|
|
477
477
|
};
|
|
478
478
|
readOnlyBadge: {
|
|
479
479
|
border: string;
|
|
480
|
+
borderColor: string;
|
|
481
|
+
backgroundColor: string;
|
|
480
482
|
'& span': {
|
|
481
483
|
color: string;
|
|
482
|
-
|
|
484
|
+
lineHeight: string;
|
|
483
485
|
fontSize: string;
|
|
486
|
+
fontWeight: string;
|
|
484
487
|
};
|
|
485
488
|
'& button': {
|
|
486
489
|
alignSelf: string;
|
|
@@ -516,10 +519,13 @@ export declare const badges: {
|
|
|
516
519
|
readOnlyFieldBadge: {
|
|
517
520
|
'& span': {
|
|
518
521
|
color: string;
|
|
522
|
+
lineHeight: string;
|
|
519
523
|
fontSize: string;
|
|
520
|
-
fontWeight:
|
|
524
|
+
fontWeight: string;
|
|
521
525
|
};
|
|
522
526
|
border: string;
|
|
527
|
+
borderColor: string;
|
|
528
|
+
backgroundColor: string;
|
|
523
529
|
'& button': {
|
|
524
530
|
alignSelf: string;
|
|
525
531
|
p: string;
|
|
@@ -558,7 +564,7 @@ export declare const badges: {
|
|
|
558
564
|
color: string;
|
|
559
565
|
'& span': {
|
|
560
566
|
fontSize: string;
|
|
561
|
-
fontWeight:
|
|
567
|
+
fontWeight: string;
|
|
562
568
|
};
|
|
563
569
|
'& button': {
|
|
564
570
|
alignSelf: string;
|
|
@@ -597,7 +603,7 @@ export declare const badges: {
|
|
|
597
603
|
color: string;
|
|
598
604
|
'& span': {
|
|
599
605
|
fontSize: string;
|
|
600
|
-
fontWeight:
|
|
606
|
+
fontWeight: string;
|
|
601
607
|
};
|
|
602
608
|
'& button': {
|
|
603
609
|
alignSelf: string;
|
|
@@ -636,7 +642,7 @@ export declare const badges: {
|
|
|
636
642
|
color: string;
|
|
637
643
|
'& span': {
|
|
638
644
|
fontSize: string;
|
|
639
|
-
fontWeight:
|
|
645
|
+
fontWeight: string;
|
|
640
646
|
};
|
|
641
647
|
'& button': {
|
|
642
648
|
alignSelf: string;
|
|
@@ -675,7 +681,7 @@ export declare const badges: {
|
|
|
675
681
|
color: string;
|
|
676
682
|
'& span': {
|
|
677
683
|
fontSize: string;
|
|
678
|
-
fontWeight:
|
|
684
|
+
fontWeight: string;
|
|
679
685
|
};
|
|
680
686
|
'& button': {
|
|
681
687
|
alignSelf: string;
|
|
@@ -714,7 +720,7 @@ export declare const badges: {
|
|
|
714
720
|
color: string;
|
|
715
721
|
'& span': {
|
|
716
722
|
fontSize: string;
|
|
717
|
-
fontWeight:
|
|
723
|
+
fontWeight: string;
|
|
718
724
|
};
|
|
719
725
|
'& button': {
|
|
720
726
|
alignSelf: string;
|
|
@@ -778,17 +784,17 @@ export declare const badges: {
|
|
|
778
784
|
boxShadow: string;
|
|
779
785
|
};
|
|
780
786
|
itemBadgeWithSlot: {
|
|
781
|
-
|
|
782
|
-
fontWeight: number;
|
|
787
|
+
border: string;
|
|
783
788
|
'& span': {
|
|
784
789
|
color: string;
|
|
785
790
|
fontSize: string;
|
|
786
|
-
fontWeight:
|
|
791
|
+
fontWeight: string;
|
|
787
792
|
};
|
|
788
793
|
'& svg': {
|
|
789
794
|
fill: string;
|
|
790
795
|
};
|
|
791
|
-
|
|
796
|
+
backgroundColor: string;
|
|
797
|
+
paddingRight: string;
|
|
792
798
|
'& button': {
|
|
793
799
|
alignSelf: string;
|
|
794
800
|
p: string;
|
|
@@ -821,7 +827,7 @@ export declare const badges: {
|
|
|
821
827
|
color: string;
|
|
822
828
|
'& span': {
|
|
823
829
|
fontSize: string;
|
|
824
|
-
fontWeight:
|
|
830
|
+
fontWeight: string;
|
|
825
831
|
};
|
|
826
832
|
'& button': {
|
|
827
833
|
alignSelf: string;
|
|
@@ -858,7 +864,7 @@ export declare const badges: {
|
|
|
858
864
|
color: string;
|
|
859
865
|
'& span': {
|
|
860
866
|
fontSize: string;
|
|
861
|
-
fontWeight:
|
|
867
|
+
fontWeight: string;
|
|
862
868
|
};
|
|
863
869
|
'& button': {
|
|
864
870
|
alignSelf: string;
|
|
@@ -18,8 +18,8 @@ var _button = _interopRequireDefault(require("./button"));
|
|
|
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 badgeFont = {
|
|
21
|
-
fontSize: '
|
|
22
|
-
fontWeight: 2
|
|
21
|
+
fontSize: 'tiny',
|
|
22
|
+
fontWeight: '2'
|
|
23
23
|
};
|
|
24
24
|
var badgeIconStyle = {
|
|
25
25
|
'& span': _objectSpread({}, badgeFont),
|
|
@@ -50,7 +50,7 @@ var baseBadge = _objectSpread({
|
|
|
50
50
|
borderRadius: '4px',
|
|
51
51
|
maxHeight: '18px',
|
|
52
52
|
minHeight: '18px',
|
|
53
|
-
fontSize: '
|
|
53
|
+
fontSize: 'tiny',
|
|
54
54
|
alignSelf: 'flex-start',
|
|
55
55
|
display: 'inline-flex !important',
|
|
56
56
|
width: 'fit-content',
|
|
@@ -88,30 +88,31 @@ var selectedItemBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
|
88
88
|
backgroundColor: '#eaf2fd !important',
|
|
89
89
|
paddingRight: '0px !important',
|
|
90
90
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
91
|
-
color: 'text.primary'
|
|
92
|
-
fontWeight: 400
|
|
91
|
+
color: 'text.primary'
|
|
93
92
|
})
|
|
94
93
|
});
|
|
95
94
|
var readOnlyBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
96
|
-
border: '
|
|
95
|
+
border: '1px solid',
|
|
96
|
+
borderColor: 'border.hairline',
|
|
97
|
+
backgroundColor: '#FFFFFF !important',
|
|
97
98
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
98
99
|
color: 'text.primary',
|
|
99
|
-
|
|
100
|
+
lineHeight: 'xs'
|
|
100
101
|
})
|
|
101
102
|
});
|
|
102
103
|
var readOnlyFieldBadge = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
103
104
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
104
|
-
color: '
|
|
105
|
+
color: 'text.primary',
|
|
106
|
+
lineHeight: 'xs'
|
|
105
107
|
})
|
|
106
108
|
});
|
|
107
|
-
var itemBadgeWithSlot = _objectSpread(_objectSpread({},
|
|
108
|
-
|
|
109
|
-
fontWeight: 2,
|
|
109
|
+
var itemBadgeWithSlot = _objectSpread(_objectSpread({}, selectedItemBadge), {}, {
|
|
110
|
+
border: 'none',
|
|
110
111
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
111
112
|
color: 'text.primary'
|
|
112
113
|
}),
|
|
113
114
|
'& svg': {
|
|
114
|
-
fill: '
|
|
115
|
+
fill: 'text.primary'
|
|
115
116
|
}
|
|
116
117
|
});
|
|
117
118
|
var badgeDeleteButton = exports.badgeDeleteButton = _objectSpread(_objectSpread({}, _button["default"].iconButtons.base), {}, {
|
|
@@ -766,6 +766,9 @@ declare const _default: {
|
|
|
766
766
|
pl: string;
|
|
767
767
|
pr: string;
|
|
768
768
|
justifyContent: string;
|
|
769
|
+
borderRadius: string;
|
|
770
|
+
lineHeight: string;
|
|
771
|
+
color: string;
|
|
769
772
|
'&.is-focused': {
|
|
770
773
|
color: string;
|
|
771
774
|
bg: string;
|
|
@@ -795,14 +798,25 @@ declare const _default: {
|
|
|
795
798
|
'&.is-condensed': {
|
|
796
799
|
pl: string;
|
|
797
800
|
bg: string;
|
|
801
|
+
color: string;
|
|
798
802
|
'&.is-selected': {
|
|
799
803
|
bg: string;
|
|
800
804
|
};
|
|
801
805
|
'&.is-focused': {
|
|
802
806
|
bg: string;
|
|
807
|
+
color: string;
|
|
803
808
|
};
|
|
804
809
|
};
|
|
805
810
|
};
|
|
811
|
+
sectionTitle: {
|
|
812
|
+
color: string;
|
|
813
|
+
fontWeight: string;
|
|
814
|
+
fontSize: string;
|
|
815
|
+
lineHeight: string;
|
|
816
|
+
textTransform: string;
|
|
817
|
+
letterSpacing: string;
|
|
818
|
+
ml: string;
|
|
819
|
+
};
|
|
806
820
|
};
|
|
807
821
|
listView: {
|
|
808
822
|
container: {
|
|
@@ -158,8 +158,11 @@ var listBox = {
|
|
|
158
158
|
pl: '.75rem',
|
|
159
159
|
pr: 'md',
|
|
160
160
|
justifyContent: 'space-between',
|
|
161
|
+
borderRadius: '4px',
|
|
162
|
+
lineHeight: 'body',
|
|
163
|
+
color: 'gray-700',
|
|
161
164
|
'&.is-focused': {
|
|
162
|
-
color: '
|
|
165
|
+
color: 'font.hover',
|
|
163
166
|
bg: 'gray-100',
|
|
164
167
|
borderRadius: '4px'
|
|
165
168
|
},
|
|
@@ -187,13 +190,24 @@ var listBox = {
|
|
|
187
190
|
'&.is-condensed': {
|
|
188
191
|
pl: 'md',
|
|
189
192
|
bg: 'backgroundBase',
|
|
193
|
+
color: 'gray-700',
|
|
190
194
|
'&.is-selected': {
|
|
191
195
|
bg: 'backgroundBase'
|
|
192
196
|
},
|
|
193
197
|
'&.is-focused': {
|
|
194
|
-
bg: 'backgroundBase'
|
|
198
|
+
bg: 'backgroundBase',
|
|
199
|
+
color: 'font.hover'
|
|
195
200
|
}
|
|
196
201
|
}
|
|
202
|
+
},
|
|
203
|
+
sectionTitle: {
|
|
204
|
+
color: 'font.light',
|
|
205
|
+
fontWeight: '1',
|
|
206
|
+
fontSize: 'tiny',
|
|
207
|
+
lineHeight: 'xs',
|
|
208
|
+
textTransform: 'uppercase',
|
|
209
|
+
letterSpacing: '1px',
|
|
210
|
+
ml: 'md'
|
|
197
211
|
}
|
|
198
212
|
};
|
|
199
213
|
var separator = {
|
|
@@ -31,17 +31,19 @@ var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31
31
|
isDisabled = props.isDisabled,
|
|
32
32
|
status = props.status,
|
|
33
33
|
helperText = props.helperText,
|
|
34
|
-
hasInlineLoader = props.hasInlineLoader
|
|
34
|
+
hasInlineLoader = props.hasInlineLoader,
|
|
35
|
+
popoverWidth = props.popoverWidth;
|
|
35
36
|
var _getAriaAttributeProp = getAriaAttributeProps(props),
|
|
36
37
|
ariaProps = _getAriaAttributeProp.ariaProps;
|
|
37
38
|
var _useGetTheme = useGetTheme(),
|
|
39
|
+
linkSelectFieldWidth = _useGetTheme.linkSelectFieldWidth,
|
|
38
40
|
themeState = _useGetTheme.themeState;
|
|
39
41
|
var isOnyx = themeState.isOnyx;
|
|
40
42
|
var helperTextId = uuid();
|
|
41
43
|
usePropWarning(props, 'disabled', 'isDisabled');
|
|
42
44
|
var _useSelectField = useSelectField(_objectSpread(_objectSpread({
|
|
43
45
|
listboxStyle: {
|
|
44
|
-
width:
|
|
46
|
+
width: popoverWidth || linkSelectFieldWidth
|
|
45
47
|
}
|
|
46
48
|
}, props), {}, {
|
|
47
49
|
// Need this for not applying is-default class
|
|
@@ -152,7 +154,9 @@ LinkSelectField.propTypes = _objectSpread(_objectSpread(_objectSpread({
|
|
|
152
154
|
*/
|
|
153
155
|
onSelectionChange: PropTypes.func,
|
|
154
156
|
/** Display an inline loader inside the select trigger while loading. */
|
|
155
|
-
hasInlineLoader: PropTypes.bool
|
|
157
|
+
hasInlineLoader: PropTypes.bool,
|
|
158
|
+
/** Width of the popover menu. Accepts any valid CSS unit. */
|
|
159
|
+
popoverWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
156
160
|
}, statusPropTypes), inputFieldAttributesBasePropTypes), ariaAttributesBasePropTypes);
|
|
157
161
|
LinkSelectField.defaultProps = _objectSpread({
|
|
158
162
|
placeholder: 'Select',
|
|
@@ -315,4 +315,23 @@ export var AsyncLoading = function AsyncLoading() {
|
|
|
315
315
|
key: item.id
|
|
316
316
|
}, item.name.given);
|
|
317
317
|
}));
|
|
318
|
+
};
|
|
319
|
+
export var WithPopoverWidth = function WithPopoverWidth(args) {
|
|
320
|
+
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(LinkSelectField, _extends({}, args, {
|
|
321
|
+
width: "100%",
|
|
322
|
+
popoverWidth: "20rem"
|
|
323
|
+
}), ___EmotionJSX(Item, {
|
|
324
|
+
key: "red"
|
|
325
|
+
}, "Red"), ___EmotionJSX(Item, {
|
|
326
|
+
key: "blue"
|
|
327
|
+
}, "Blue"), ___EmotionJSX(Item, {
|
|
328
|
+
key: "yellow"
|
|
329
|
+
}, "Extra long goes here")));
|
|
330
|
+
};
|
|
331
|
+
WithPopoverWidth.parameters = {
|
|
332
|
+
docs: {
|
|
333
|
+
description: {
|
|
334
|
+
story: 'The `popoverWidth` prop can be used to set a custom width for the dropdown/popover.'
|
|
335
|
+
}
|
|
336
|
+
}
|
|
318
337
|
};
|
|
@@ -57,18 +57,35 @@ var countNeutral = {
|
|
|
57
57
|
color: 'white'
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
var readOnlyBadge = {
|
|
61
|
+
color: 'gray-100',
|
|
62
|
+
backgroundColor: '#23282E !important',
|
|
63
|
+
borderColor: 'border.attachment',
|
|
63
64
|
'& span': {
|
|
64
65
|
color: 'gray-100'
|
|
65
|
-
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var readOnlyFieldBadge = {
|
|
69
|
+
color: 'gray-100',
|
|
70
|
+
backgroundColor: '#23282E !important',
|
|
71
|
+
borderColor: 'border.attachment',
|
|
72
|
+
'& span': {
|
|
73
|
+
color: 'gray-100'
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var selectedItemBadge = {
|
|
77
|
+
backgroundColor: '#155CBA !important',
|
|
78
|
+
'& span': {
|
|
79
|
+
color: 'gray-100'
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var itemBadgeWithSlot = _objectSpread(_objectSpread({}, selectedItemBadge), {}, {
|
|
66
83
|
'& svg': {
|
|
67
84
|
path: {
|
|
68
85
|
fill: 'gray-100'
|
|
69
86
|
}
|
|
70
87
|
}
|
|
71
|
-
};
|
|
88
|
+
});
|
|
72
89
|
var badges = {
|
|
73
90
|
baseBadge: baseBadge,
|
|
74
91
|
primary: primary,
|
|
@@ -83,24 +100,11 @@ var badges = {
|
|
|
83
100
|
criticalStatusBadge: criticalStatusBadge,
|
|
84
101
|
healthyStatusBadge: healthyStatusBadge,
|
|
85
102
|
secondaryStatusBadge: secondaryStatusBadge,
|
|
86
|
-
readOnlyFieldBadge: {
|
|
87
|
-
backgroundColor: '#F6F8FA !important',
|
|
88
|
-
'& span': {
|
|
89
|
-
color: 'black'
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
selectedItemBadge: {
|
|
93
|
-
backgroundColor: '#1a73e8 !important',
|
|
94
|
-
paddingRight: '0px !important',
|
|
95
|
-
pl: '10px',
|
|
96
|
-
'& span': {
|
|
97
|
-
fontSize: '14px',
|
|
98
|
-
color: 'gray-400',
|
|
99
|
-
fontWeight: 400
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
103
|
countBadge: countBadge,
|
|
103
104
|
countNeutral: countNeutral,
|
|
105
|
+
selectedItemBadge: selectedItemBadge,
|
|
106
|
+
readOnlyBadge: readOnlyBadge,
|
|
107
|
+
readOnlyFieldBadge: readOnlyFieldBadge,
|
|
104
108
|
itemBadgeWithSlot: itemBadgeWithSlot,
|
|
105
109
|
errorCalloutBadge: {
|
|
106
110
|
backgroundColor: '#23282e !important',
|
|
@@ -18,15 +18,22 @@ var listBox = {
|
|
|
18
18
|
borderRadius: '4px'
|
|
19
19
|
},
|
|
20
20
|
option: {
|
|
21
|
+
color: 'gray-400',
|
|
21
22
|
'&.is-focused': {
|
|
22
|
-
color: '
|
|
23
|
-
bg: '
|
|
23
|
+
color: 'gray-200',
|
|
24
|
+
bg: '#2C323A'
|
|
24
25
|
},
|
|
25
26
|
'&.is-selected': {
|
|
26
|
-
color: '
|
|
27
|
-
bg: '
|
|
27
|
+
color: 'gray-200',
|
|
28
|
+
bg: '#2C323A',
|
|
28
29
|
'&.is-focused': {
|
|
29
|
-
color: '
|
|
30
|
+
color: 'gray-200'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
'&.is-condensed': {
|
|
34
|
+
color: 'gray-400',
|
|
35
|
+
'&.is-focused': {
|
|
36
|
+
color: 'gray-200'
|
|
30
37
|
}
|
|
31
38
|
},
|
|
32
39
|
'&.is-focus-visible': {
|
|
@@ -16,6 +16,7 @@ var buttonLoaderSize = '0.5em';
|
|
|
16
16
|
var iFrameContentDivBackgroundColor = '#F7F8FD';
|
|
17
17
|
var defaultIconColor = 'currentColor';
|
|
18
18
|
var defaultIconSize = 'sm';
|
|
19
|
+
var linkSelectFieldWidth = '10em';
|
|
19
20
|
var calendarIconSize = 25;
|
|
20
21
|
export var astroThemeValues = {
|
|
21
22
|
accordionItemDefaultLabelTag: accordionItemDefaultLabelTag,
|
|
@@ -37,5 +38,6 @@ export var astroThemeValues = {
|
|
|
37
38
|
defaultIconColor: defaultIconColor,
|
|
38
39
|
defaultIconSize: defaultIconSize,
|
|
39
40
|
calendarIconSize: calendarIconSize,
|
|
40
|
-
buttonLoaderSize: buttonLoaderSize
|
|
41
|
+
buttonLoaderSize: buttonLoaderSize,
|
|
42
|
+
linkSelectFieldWidth: linkSelectFieldWidth
|
|
41
43
|
};
|
|
@@ -21,6 +21,7 @@ var iFrameContentDivBackgroundColor = backgroundBaseColor;
|
|
|
21
21
|
var defaultIconColor = 'gray-800';
|
|
22
22
|
var defaultIconSize = 'md';
|
|
23
23
|
var buttonLoaderSize = 'sm';
|
|
24
|
+
var linkSelectFieldWidth = '12em';
|
|
24
25
|
var calendarIconSize = 'sm';
|
|
25
26
|
export var nextGenThemeValues = _objectSpread({
|
|
26
27
|
activeColor: activeColor,
|
|
@@ -36,5 +37,6 @@ export var nextGenThemeValues = _objectSpread({
|
|
|
36
37
|
rockerButtonGap: '0px',
|
|
37
38
|
defaultIconSize: defaultIconSize,
|
|
38
39
|
calendarIconSize: calendarIconSize,
|
|
39
|
-
buttonLoaderSize: buttonLoaderSize
|
|
40
|
+
buttonLoaderSize: buttonLoaderSize,
|
|
41
|
+
linkSelectFieldWidth: linkSelectFieldWidth
|
|
40
42
|
}, customSizes);
|
|
@@ -11,8 +11,8 @@ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymb
|
|
|
11
11
|
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) { _defineProperty(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; }
|
|
12
12
|
import buttons from './button';
|
|
13
13
|
var badgeFont = {
|
|
14
|
-
fontSize: '
|
|
15
|
-
fontWeight: 2
|
|
14
|
+
fontSize: 'tiny',
|
|
15
|
+
fontWeight: '2'
|
|
16
16
|
};
|
|
17
17
|
var badgeIconStyle = {
|
|
18
18
|
'& span': _objectSpread({}, badgeFont),
|
|
@@ -43,7 +43,7 @@ var baseBadge = _objectSpread({
|
|
|
43
43
|
borderRadius: '4px',
|
|
44
44
|
maxHeight: '18px',
|
|
45
45
|
minHeight: '18px',
|
|
46
|
-
fontSize: '
|
|
46
|
+
fontSize: 'tiny',
|
|
47
47
|
alignSelf: 'flex-start',
|
|
48
48
|
display: 'inline-flex !important',
|
|
49
49
|
width: 'fit-content',
|
|
@@ -81,30 +81,31 @@ var selectedItemBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
|
81
81
|
backgroundColor: '#eaf2fd !important',
|
|
82
82
|
paddingRight: '0px !important',
|
|
83
83
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
84
|
-
color: 'text.primary'
|
|
85
|
-
fontWeight: 400
|
|
84
|
+
color: 'text.primary'
|
|
86
85
|
})
|
|
87
86
|
});
|
|
88
87
|
var readOnlyBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
89
|
-
border: '
|
|
88
|
+
border: '1px solid',
|
|
89
|
+
borderColor: 'border.hairline',
|
|
90
|
+
backgroundColor: '#FFFFFF !important',
|
|
90
91
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
91
92
|
color: 'text.primary',
|
|
92
|
-
|
|
93
|
+
lineHeight: 'xs'
|
|
93
94
|
})
|
|
94
95
|
});
|
|
95
96
|
var readOnlyFieldBadge = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
96
97
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
97
|
-
color: '
|
|
98
|
+
color: 'text.primary',
|
|
99
|
+
lineHeight: 'xs'
|
|
98
100
|
})
|
|
99
101
|
});
|
|
100
|
-
var itemBadgeWithSlot = _objectSpread(_objectSpread({},
|
|
101
|
-
|
|
102
|
-
fontWeight: 2,
|
|
102
|
+
var itemBadgeWithSlot = _objectSpread(_objectSpread({}, selectedItemBadge), {}, {
|
|
103
|
+
border: 'none',
|
|
103
104
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
104
105
|
color: 'text.primary'
|
|
105
106
|
}),
|
|
106
107
|
'& svg': {
|
|
107
|
-
fill: '
|
|
108
|
+
fill: 'text.primary'
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
export var badgeDeleteButton = _objectSpread(_objectSpread({}, buttons.iconButtons.base), {}, {
|
|
@@ -148,8 +148,11 @@ var listBox = {
|
|
|
148
148
|
pl: '.75rem',
|
|
149
149
|
pr: 'md',
|
|
150
150
|
justifyContent: 'space-between',
|
|
151
|
+
borderRadius: '4px',
|
|
152
|
+
lineHeight: 'body',
|
|
153
|
+
color: 'gray-700',
|
|
151
154
|
'&.is-focused': {
|
|
152
|
-
color: '
|
|
155
|
+
color: 'font.hover',
|
|
153
156
|
bg: 'gray-100',
|
|
154
157
|
borderRadius: '4px'
|
|
155
158
|
},
|
|
@@ -177,13 +180,24 @@ var listBox = {
|
|
|
177
180
|
'&.is-condensed': {
|
|
178
181
|
pl: 'md',
|
|
179
182
|
bg: 'backgroundBase',
|
|
183
|
+
color: 'gray-700',
|
|
180
184
|
'&.is-selected': {
|
|
181
185
|
bg: 'backgroundBase'
|
|
182
186
|
},
|
|
183
187
|
'&.is-focused': {
|
|
184
|
-
bg: 'backgroundBase'
|
|
188
|
+
bg: 'backgroundBase',
|
|
189
|
+
color: 'font.hover'
|
|
185
190
|
}
|
|
186
191
|
}
|
|
192
|
+
},
|
|
193
|
+
sectionTitle: {
|
|
194
|
+
color: 'font.light',
|
|
195
|
+
fontWeight: '1',
|
|
196
|
+
fontSize: 'tiny',
|
|
197
|
+
lineHeight: 'xs',
|
|
198
|
+
textTransform: 'uppercase',
|
|
199
|
+
letterSpacing: '1px',
|
|
200
|
+
ml: 'md'
|
|
187
201
|
}
|
|
188
202
|
};
|
|
189
203
|
var separator = {
|