@sesamehr/react-design-system 3.8.0 → 3.10.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/README.md +3 -2
- package/dist/Display/Avatar/AvatarRounded/AvatarRounded.d.ts +6 -0
- package/dist/Display/Avatar/AvatarSquare/AvatarSquare.d.ts +6 -0
- package/dist/Display/AvatarGroup/AvatarGroup.d.ts +14 -0
- package/dist/Display/Chip/Chip.d.ts +6 -2
- package/dist/Display/Chip/index.d.ts +4 -6
- package/dist/Feedback/Alert/AlertLink.d.ts +7 -0
- package/dist/Feedback/Alert/index.d.ts +1 -0
- package/dist/Feedback/Dialog/DialogScrollbar.d.ts +18 -0
- package/dist/Feedback/Toast/ToastAction.d.ts +7 -0
- package/dist/Feedback/Toast/ToastActions.d.ts +11 -0
- package/dist/Feedback/Toast/index.d.ts +2 -1
- package/dist/Feedback/Toast/useToast.d.ts +25 -0
- package/dist/Forms/Field/useFieldGroup.d.ts +25 -1
- package/dist/Forms/Inputs/DatePicker/format.d.ts +11 -0
- package/dist/Forms/Inputs/InputText/InputText.d.ts +5 -0
- package/dist/Forms/Inputs/MonthPicker/MonthPicker.d.ts +61 -0
- package/dist/Forms/Inputs/MonthPicker/MonthPickerPanel.d.ts +39 -0
- package/dist/Forms/Inputs/MonthPicker/index.d.ts +2 -0
- package/dist/Forms/Inputs/MonthPicker/monthGrid.d.ts +45 -0
- package/dist/Forms/Inputs/Toggle/Checkbox/Checkbox.d.ts +1 -0
- package/dist/Forms/Inputs/Toggle/ToggleDescription/ToggleDescription.d.ts +5 -1
- package/dist/Forms/Inputs/Toggle/ToggleGroup/ToggleGroup.d.ts +10 -2
- package/dist/Forms/Inputs/Toggle/ToggleLabel/ToggleLabel.d.ts +3 -6
- package/dist/Forms/Inputs/index.d.ts +1 -0
- package/dist/Navigation/ToggleTabs/ToggleTabsList.d.ts +20 -2
- package/dist/main.d.ts +3 -3
- package/dist/react-design-system.css +1 -1
- package/dist/react-design-system.js +10863 -10334
- package/dist/react-design-system.umd.cjs +62 -62
- package/package.json +1 -1
- package/src/assets/styles/theme-v3.css +8 -0
- package/src/assets/styles/theme-v3.test.ts +25 -0
package/package.json
CHANGED
|
@@ -76,6 +76,12 @@
|
|
|
76
76
|
--brand-subtle-border: var(--color-brand-200);
|
|
77
77
|
--brand-subtle-active: var(--color-brand-200);
|
|
78
78
|
|
|
79
|
+
/* Figma's `selected` pair (Chip board, node 905:703), bound on Selected and
|
|
80
|
+
again on Dragged — which is why a dragged chip is this fill plus a shadow.
|
|
81
|
+
Written here because the sync had not brought the collection across. */
|
|
82
|
+
--selected: var(--color-brand-900);
|
|
83
|
+
--selected-foreground: var(--color-white);
|
|
84
|
+
|
|
79
85
|
--background-custom: #f5f5f7;
|
|
80
86
|
--background-custom-gradient: #e0e7ee;
|
|
81
87
|
|
|
@@ -380,6 +386,8 @@
|
|
|
380
386
|
--color-brand-subtle-foreground: var(--brand-subtle-foreground);
|
|
381
387
|
--color-brand-subtle-border: var(--brand-subtle-border);
|
|
382
388
|
--color-brand-subtle-active: var(--brand-subtle-active);
|
|
389
|
+
--color-selected: var(--selected);
|
|
390
|
+
--color-selected-foreground: var(--selected-foreground);
|
|
383
391
|
--color-success: var(--success);
|
|
384
392
|
--color-success-hover: var(--success-hover);
|
|
385
393
|
--color-success-subtle: var(--success-subtle);
|
|
@@ -56,6 +56,31 @@ describe('theme-v3 brand-subtle', () => {
|
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* `selected` and `selected-foreground` are the Chip board's own variables
|
|
61
|
+
* (node 905:703), bound on its Selected variant and again on Dragged. They
|
|
62
|
+
* were written here ahead of the sync, so these pin the two values the sync
|
|
63
|
+
* has to agree with — and `--selected` must stay brand-900 rather than drift
|
|
64
|
+
* to `--primary`, which is a different near-black.
|
|
65
|
+
*/
|
|
66
|
+
describe('theme-v3 selected', () => {
|
|
67
|
+
const family = {
|
|
68
|
+
'--selected': 'var(--color-brand-900)',
|
|
69
|
+
'--selected-foreground': 'var(--color-white)',
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
it.each(Object.entries(family))(
|
|
73
|
+
'should declare %s as the Figma binding %s',
|
|
74
|
+
(name, value) => {
|
|
75
|
+
expect(declares(name, value)).toBe(true);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
it.each(Object.keys(family))('should expose %s as a utility', name => {
|
|
80
|
+
expect(exposes(name)).toBe(true);
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
59
84
|
describe('theme-v3 highlight', () => {
|
|
60
85
|
const family = {
|
|
61
86
|
'--highlight': 'var(--color-amber-100)',
|