@iress-oss/ids-theme-preset 6.0.0-beta.3 → 6.0.1
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/{chunk-ERLIY5Q3.js → chunk-RP6CFDQQ.js} +12 -10
- package/dist/config.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +9 -10
- package/src/config-recipes/table.ts +2 -2
- package/src/hooks/codegenPrepareHook.test.ts +1 -1
- package/src/tokens/colors.ts +2 -1
- package/src/utilities/chevron.ts +1 -1
- package/src/utilities/focusable.test.ts +28 -0
- package/src/utilities/focusable.ts +6 -5
|
@@ -58,8 +58,9 @@ var colors = {
|
|
|
58
58
|
value: cssVars2.colour.neutral["80"]
|
|
59
59
|
},
|
|
60
60
|
"colour.neutral.90": {
|
|
61
|
-
description: colour.neutral["90"].$
|
|
62
|
-
value: cssVars2.colour.neutral["90"]
|
|
61
|
+
description: colour.neutral["90"].$deprecated ?? "",
|
|
62
|
+
value: cssVars2.colour.neutral["90"],
|
|
63
|
+
deprecated: true
|
|
63
64
|
},
|
|
64
65
|
"colour.primary.fill": {
|
|
65
66
|
description: colour.primary.fill.$description,
|
|
@@ -1269,7 +1270,7 @@ var tableRecipe = defineSlotRecipe({
|
|
|
1269
1270
|
table: {
|
|
1270
1271
|
textStyle: "typography.body.md",
|
|
1271
1272
|
bg: "colour.neutral.10",
|
|
1272
|
-
color: "colour.neutral.
|
|
1273
|
+
color: "colour.neutral.80",
|
|
1273
1274
|
borderRadius: "radius.system.layout",
|
|
1274
1275
|
borderSpacing: "spacing.0",
|
|
1275
1276
|
minWidth: "12/12",
|
|
@@ -1311,7 +1312,7 @@ var tableRecipe = defineSlotRecipe({
|
|
|
1311
1312
|
cursor: "pointer"
|
|
1312
1313
|
},
|
|
1313
1314
|
sortIcon: {
|
|
1314
|
-
fill: "colour.neutral.
|
|
1315
|
+
fill: "colour.neutral.80",
|
|
1315
1316
|
width: "[1.31em]",
|
|
1316
1317
|
height: "[1.31em]",
|
|
1317
1318
|
display: "inline-block",
|
|
@@ -1878,7 +1879,7 @@ var selectChevron = defineUtility4({
|
|
|
1878
1879
|
position: "absolute",
|
|
1879
1880
|
mask: `no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")`,
|
|
1880
1881
|
transform: value === true ? "translateY(-50%)" : "translateY(-50%) rotate(180deg)",
|
|
1881
|
-
backgroundColor: `var(--iress-chevron-color, ${cssVars13.colour.neutral[
|
|
1882
|
+
backgroundColor: `var(--iress-chevron-color, ${cssVars13.colour.neutral[80]})`,
|
|
1882
1883
|
pointerEvents: "none"
|
|
1883
1884
|
},
|
|
1884
1885
|
'&[aria-expanded="true"]:after, [aria-expanded="true"] > &:after': {
|
|
@@ -2662,13 +2663,13 @@ var focusable = defineUtility8({
|
|
|
2662
2663
|
outline: "none"
|
|
2663
2664
|
},
|
|
2664
2665
|
'&:has(input:focus:not(:disabled), textarea:focus:not(:disabled), select:focus:not(:disabled), [contenteditable="true"]:focus:not([aria-disabled="true"]))': {
|
|
2665
|
-
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[
|
|
2666
|
-
boxShadow: `var(--iress-shadow-focus, 0 0 0 1px var(--iress-border-color, ${cssVars14.colour.neutral[
|
|
2666
|
+
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[80]})`,
|
|
2667
|
+
boxShadow: `var(--iress-shadow-focus, 0 0 0 1px var(--iress-border-color, ${cssVars14.colour.neutral[80]}))`,
|
|
2667
2668
|
"&:hover": {
|
|
2668
2669
|
background: cssVars14.colour.neutral[10]
|
|
2669
2670
|
},
|
|
2670
2671
|
"& .ids-input__addon": {
|
|
2671
|
-
color: cssVars14.colour.neutral[
|
|
2672
|
+
color: cssVars14.colour.neutral[80]
|
|
2672
2673
|
}
|
|
2673
2674
|
}
|
|
2674
2675
|
};
|
|
@@ -2747,14 +2748,15 @@ var focusable = defineUtility8({
|
|
|
2747
2748
|
}
|
|
2748
2749
|
if (value === "select-activator") {
|
|
2749
2750
|
return {
|
|
2751
|
+
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[70]})`,
|
|
2750
2752
|
"&:hover": {
|
|
2751
2753
|
backgroundColor: cssVars14.colour.neutral[20]
|
|
2752
2754
|
},
|
|
2753
2755
|
'&:focus-within, &:active, &[aria-expanded="true"]': {
|
|
2754
2756
|
backgroundColor: cssVars14.colour.neutral[10],
|
|
2755
2757
|
outline: "none",
|
|
2756
|
-
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[
|
|
2757
|
-
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars14.colour.neutral[
|
|
2758
|
+
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[80]})`,
|
|
2759
|
+
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars14.colour.neutral[80]})`
|
|
2758
2760
|
},
|
|
2759
2761
|
'&:disabled, &[aria-disabled="true"]': {
|
|
2760
2762
|
backgroundColor: cssVars14.colour.neutral[30],
|
package/dist/config.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _pandacss_dev from '@pandacss/dev';
|
|
2
2
|
|
|
3
|
-
declare const idsThemePreset:
|
|
3
|
+
declare const idsThemePreset: _pandacss_dev.Preset;
|
|
4
4
|
|
|
5
5
|
export { idsThemePreset as default, idsThemePreset };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iress-oss/ids-theme-preset",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Panda CSS preset for the Iress Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typecheck": "tsc --noEmit -p tsconfig.lib.json"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@iress-oss/ids-tokens": "^6.0.0
|
|
45
|
+
"@iress-oss/ids-tokens": "^6.0.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@pandacss/dev": ">=1.8.0",
|
|
@@ -58,19 +58,18 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@pandacss/dev": "1.9.1",
|
|
61
|
-
"@pandacss/types": "1.
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
63
|
-
"@typescript-eslint/parser": "^8.
|
|
64
|
-
"eslint": "^10.
|
|
61
|
+
"@pandacss/types": "1.11.4",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^8.62.1",
|
|
63
|
+
"@typescript-eslint/parser": "^8.62.1",
|
|
64
|
+
"eslint": "^10.6.0",
|
|
65
65
|
"eslint-plugin-file-progress": "^4.0.0",
|
|
66
66
|
"rimraf": "^6.1.3",
|
|
67
67
|
"tsup": "^8.4.0",
|
|
68
|
-
"typescript": "
|
|
69
|
-
"vitest": "4.1.
|
|
68
|
+
"typescript": "6.0.3",
|
|
69
|
+
"vitest": "4.1.11"
|
|
70
70
|
},
|
|
71
71
|
"repository": {
|
|
72
72
|
"type": "git",
|
|
73
73
|
"url": "https://github.com/iress/design-system"
|
|
74
|
-
}
|
|
75
|
-
"stableVersion": "6.0.0-alpha.1"
|
|
74
|
+
}
|
|
76
75
|
}
|
|
@@ -24,7 +24,7 @@ export const tableRecipe = defineSlotRecipe({
|
|
|
24
24
|
table: {
|
|
25
25
|
textStyle: 'typography.body.md',
|
|
26
26
|
bg: 'colour.neutral.10',
|
|
27
|
-
color: 'colour.neutral.
|
|
27
|
+
color: 'colour.neutral.80',
|
|
28
28
|
borderRadius: 'radius.system.layout',
|
|
29
29
|
borderSpacing: 'spacing.0',
|
|
30
30
|
minWidth: '12/12',
|
|
@@ -73,7 +73,7 @@ export const tableRecipe = defineSlotRecipe({
|
|
|
73
73
|
cursor: 'pointer',
|
|
74
74
|
},
|
|
75
75
|
sortIcon: {
|
|
76
|
-
fill: 'colour.neutral.
|
|
76
|
+
fill: 'colour.neutral.80',
|
|
77
77
|
width: '[1.31em]',
|
|
78
78
|
height: '[1.31em]',
|
|
79
79
|
display: 'inline-block',
|
package/src/tokens/colors.ts
CHANGED
|
@@ -34,8 +34,9 @@ export const colors = {
|
|
|
34
34
|
value: cssVars.colour.neutral['80'],
|
|
35
35
|
},
|
|
36
36
|
'colour.neutral.90': {
|
|
37
|
-
description: colour.neutral['90'].$
|
|
37
|
+
description: colour.neutral['90'].$deprecated ?? '',
|
|
38
38
|
value: cssVars.colour.neutral['90'],
|
|
39
|
+
deprecated: true,
|
|
39
40
|
},
|
|
40
41
|
'colour.primary.fill': {
|
|
41
42
|
description: colour.primary.fill.$description,
|
package/src/utilities/chevron.ts
CHANGED
|
@@ -20,7 +20,7 @@ export const selectChevron = defineUtility({
|
|
|
20
20
|
value === true
|
|
21
21
|
? 'translateY(-50%)'
|
|
22
22
|
: 'translateY(-50%) rotate(180deg)',
|
|
23
|
-
backgroundColor: `var(--iress-chevron-color, ${cssVars.colour.neutral[
|
|
23
|
+
backgroundColor: `var(--iress-chevron-color, ${cssVars.colour.neutral[80]})`,
|
|
24
24
|
pointerEvents: 'none',
|
|
25
25
|
},
|
|
26
26
|
'&[aria-expanded="true"]:after, [aria-expanded="true"] > &:after': {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
2
|
+
import { cssVars } from '@iress-oss/ids-tokens';
|
|
3
|
+
import { focusable } from './focusable';
|
|
4
|
+
|
|
5
|
+
describe('focusable select-activator', () => {
|
|
6
|
+
const styles = focusable.transform?.('select-activator', {
|
|
7
|
+
token: Object.assign(vi.fn(), { raw: vi.fn() }),
|
|
8
|
+
raw: 'select-activator',
|
|
9
|
+
utils: { colorMix: vi.fn() },
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('uses the validation border colour even when unfocused', () => {
|
|
13
|
+
expect(styles).toHaveProperty(
|
|
14
|
+
'borderColor',
|
|
15
|
+
`var(--iress-border-color, ${cssVars.colour.neutral[70]})`,
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('keeps the validation border colour while focused, active or expanded', () => {
|
|
20
|
+
expect(styles).toHaveProperty(
|
|
21
|
+
'&:focus-within, &:active, &[aria-expanded="true"]',
|
|
22
|
+
expect.objectContaining({
|
|
23
|
+
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
24
|
+
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
25
|
+
}),
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -41,15 +41,15 @@ export const focusable = defineUtility({
|
|
|
41
41
|
},
|
|
42
42
|
'&:has(input:focus:not(:disabled), textarea:focus:not(:disabled), select:focus:not(:disabled), [contenteditable="true"]:focus:not([aria-disabled="true"]))':
|
|
43
43
|
{
|
|
44
|
-
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[
|
|
45
|
-
boxShadow: `var(--iress-shadow-focus, 0 0 0 1px var(--iress-border-color, ${cssVars.colour.neutral[
|
|
44
|
+
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
45
|
+
boxShadow: `var(--iress-shadow-focus, 0 0 0 1px var(--iress-border-color, ${cssVars.colour.neutral[80]}))`,
|
|
46
46
|
|
|
47
47
|
'&:hover': {
|
|
48
48
|
background: cssVars.colour.neutral[10],
|
|
49
49
|
},
|
|
50
50
|
|
|
51
51
|
'& .ids-input__addon': {
|
|
52
|
-
color: cssVars.colour.neutral[
|
|
52
|
+
color: cssVars.colour.neutral[80],
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
};
|
|
@@ -137,14 +137,15 @@ export const focusable = defineUtility({
|
|
|
137
137
|
|
|
138
138
|
if (value === 'select-activator') {
|
|
139
139
|
return {
|
|
140
|
+
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[70]})`,
|
|
140
141
|
'&:hover': {
|
|
141
142
|
backgroundColor: cssVars.colour.neutral[20],
|
|
142
143
|
},
|
|
143
144
|
'&:focus-within, &:active, &[aria-expanded="true"]': {
|
|
144
145
|
backgroundColor: cssVars.colour.neutral[10],
|
|
145
146
|
outline: 'none',
|
|
146
|
-
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[
|
|
147
|
-
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars.colour.neutral[
|
|
147
|
+
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
148
|
+
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
148
149
|
},
|
|
149
150
|
'&:disabled, &[aria-disabled="true"]': {
|
|
150
151
|
backgroundColor: cssVars.colour.neutral[30],
|