@pingux/astro 1.37.2-alpha.2 → 1.38.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/Chip/Chip.js +11 -2
- package/lib/cjs/components/Chip/Chip.stories.js +51 -2
- package/lib/cjs/components/Chip/Chip.test.js +17 -0
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +23 -17
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +236 -65
- package/lib/cjs/styles/variants/boxes.js +17 -1
- package/lib/cjs/styles/variants/buttons.js +26 -3
- package/lib/components/Chip/Chip.js +11 -2
- package/lib/components/Chip/Chip.stories.js +47 -0
- package/lib/components/Chip/Chip.test.js +15 -0
- package/lib/components/MultivaluesField/MultivaluesField.js +22 -17
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +224 -56
- package/lib/styles/variants/boxes.js +17 -1
- package/lib/styles/variants/buttons.js +26 -3
- package/package.json +1 -1
@@ -173,7 +173,10 @@ var multivaluesChip = _objectSpread(_objectSpread({}, chip), {}, {
|
|
173
173
|
cursor: 'default',
|
174
174
|
m: 5,
|
175
175
|
mr: 10,
|
176
|
-
ml: 0
|
176
|
+
ml: 0,
|
177
|
+
'& span': {
|
178
|
+
mr: '2px'
|
179
|
+
}
|
177
180
|
});
|
178
181
|
|
179
182
|
var selectedItemChip = _objectSpread(_objectSpread({}, multivaluesChip), {}, {
|
@@ -188,6 +191,18 @@ var readOnlyChip = _objectSpread(_objectSpread({}, multivaluesChip), {}, {
|
|
188
191
|
borderColor: 'neutral.80'
|
189
192
|
});
|
190
193
|
|
194
|
+
var itemChipWithSlot = _objectSpread(_objectSpread({}, readOnlyChip), {}, {
|
195
|
+
p: 3,
|
196
|
+
my: 0,
|
197
|
+
backgroundColor: 'white',
|
198
|
+
'& span': {
|
199
|
+
color: 'text.primary',
|
200
|
+
mr: '2px',
|
201
|
+
lineHeight: '16px'
|
202
|
+
},
|
203
|
+
maxHeight: '22px'
|
204
|
+
});
|
205
|
+
|
191
206
|
var inputInContainerSlot = {
|
192
207
|
position: 'absolute',
|
193
208
|
bg: 'transparent',
|
@@ -386,6 +401,7 @@ export default {
|
|
386
401
|
environmentChip: environmentChip,
|
387
402
|
expandableRow: expandableRow,
|
388
403
|
inputInContainerSlot: inputInContainerSlot,
|
404
|
+
itemChipWithSlot: itemChipWithSlot,
|
389
405
|
textFieldInContainerSlot: textFieldInContainerSlot,
|
390
406
|
fileInputFieldWrapper: fileInputFieldWrapper,
|
391
407
|
listItem: listItem,
|
@@ -413,13 +413,16 @@ var quiet = {
|
|
413
413
|
all: 'unset',
|
414
414
|
display: 'flex'
|
415
415
|
};
|
416
|
-
var
|
416
|
+
var chipDeleteStandard = {
|
417
417
|
borderRadius: '50%',
|
418
418
|
cursor: 'pointer',
|
419
419
|
height: 14,
|
420
|
-
mx: '3px !important',
|
421
420
|
p: 0,
|
422
421
|
width: 14,
|
422
|
+
mx: '3px !important'
|
423
|
+
};
|
424
|
+
|
425
|
+
var chipDeleteButton = _objectSpread(_objectSpread({}, chipDeleteStandard), {}, {
|
423
426
|
'&.is-focused, &.is-hovered': _objectSpread({
|
424
427
|
bg: 'accent.40'
|
425
428
|
}, focusWithCroppedOutline),
|
@@ -427,7 +430,26 @@ var chipDeleteButton = {
|
|
427
430
|
bg: 'accent.20',
|
428
431
|
borderColor: 'accent.20'
|
429
432
|
}
|
430
|
-
};
|
433
|
+
});
|
434
|
+
|
435
|
+
var chipWithSlotDeleteButton = _objectSpread(_objectSpread({}, chipDeleteStandard), {}, {
|
436
|
+
path: {
|
437
|
+
fill: 'neutral.40'
|
438
|
+
},
|
439
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
440
|
+
'&.is-hovered': {
|
441
|
+
backgroundColor: '#e5e9f8 !important',
|
442
|
+
path: {
|
443
|
+
fill: 'neutral.40'
|
444
|
+
}
|
445
|
+
},
|
446
|
+
'&.is-pressed': {
|
447
|
+
'path': {
|
448
|
+
fill: 'white'
|
449
|
+
},
|
450
|
+
bg: '#4462ED !important'
|
451
|
+
}
|
452
|
+
});
|
431
453
|
|
432
454
|
var rocker = _objectSpread(_objectSpread({}, base), {}, {
|
433
455
|
border: '0',
|
@@ -719,6 +741,7 @@ var navBarSectionButton = _objectSpread(_objectSpread({}, quiet), {}, {
|
|
719
741
|
export default {
|
720
742
|
accordionHeader: accordionHeader,
|
721
743
|
chipDeleteButton: chipDeleteButton,
|
744
|
+
chipWithSlotDeleteButton: chipWithSlotDeleteButton,
|
722
745
|
close: close,
|
723
746
|
colorField: colorField,
|
724
747
|
comboBox: comboBox,
|