@iress-oss/ids-theme-preset 6.0.0-beta.2 → 6.0.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/dist/{chunk-IVI5DGPP.js → chunk-WDJWG3KI.js} +39 -10
- package/dist/config.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +8 -9
- package/src/config-recipes/table.ts +35 -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.ts +5 -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",
|
|
@@ -1434,6 +1435,34 @@ var tableRecipe = defineSlotRecipe({
|
|
|
1434
1435
|
}
|
|
1435
1436
|
}
|
|
1436
1437
|
},
|
|
1438
|
+
virtualise: {
|
|
1439
|
+
true: {
|
|
1440
|
+
table: {
|
|
1441
|
+
tableLayout: "fixed",
|
|
1442
|
+
"& thead": {
|
|
1443
|
+
position: "sticky",
|
|
1444
|
+
top: 0,
|
|
1445
|
+
zIndex: 1,
|
|
1446
|
+
bg: "colour.neutral.10"
|
|
1447
|
+
},
|
|
1448
|
+
"& tr[aria-hidden] td": {
|
|
1449
|
+
padding: "0",
|
|
1450
|
+
border: "none"
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
root: {
|
|
1454
|
+
"&[data-scrolled] table > thead:first-of-type > :first-child > :first-child": {
|
|
1455
|
+
borderTopLeftRadius: "0"
|
|
1456
|
+
},
|
|
1457
|
+
"&[data-scrolled] table > thead:first-of-type > :first-child > :last-child": {
|
|
1458
|
+
borderTopRightRadius: "0"
|
|
1459
|
+
},
|
|
1460
|
+
"&[data-scrolled] table > thead:first-of-type > :first-child > th, &[data-scrolled] table > thead:first-of-type > :first-child > td": {
|
|
1461
|
+
borderTopWidth: "1px"
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1437
1466
|
sortButtonNoWrap: {
|
|
1438
1467
|
true: {
|
|
1439
1468
|
sortHeader: {
|
|
@@ -1850,7 +1879,7 @@ var selectChevron = defineUtility4({
|
|
|
1850
1879
|
position: "absolute",
|
|
1851
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")`,
|
|
1852
1881
|
transform: value === true ? "translateY(-50%)" : "translateY(-50%) rotate(180deg)",
|
|
1853
|
-
backgroundColor: `var(--iress-chevron-color, ${cssVars13.colour.neutral[
|
|
1882
|
+
backgroundColor: `var(--iress-chevron-color, ${cssVars13.colour.neutral[80]})`,
|
|
1854
1883
|
pointerEvents: "none"
|
|
1855
1884
|
},
|
|
1856
1885
|
'&[aria-expanded="true"]:after, [aria-expanded="true"] > &:after': {
|
|
@@ -2634,13 +2663,13 @@ var focusable = defineUtility8({
|
|
|
2634
2663
|
outline: "none"
|
|
2635
2664
|
},
|
|
2636
2665
|
'&:has(input:focus:not(:disabled), textarea:focus:not(:disabled), select:focus:not(:disabled), [contenteditable="true"]:focus:not([aria-disabled="true"]))': {
|
|
2637
|
-
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[
|
|
2638
|
-
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]}))`,
|
|
2639
2668
|
"&:hover": {
|
|
2640
2669
|
background: cssVars14.colour.neutral[10]
|
|
2641
2670
|
},
|
|
2642
2671
|
"& .ids-input__addon": {
|
|
2643
|
-
color: cssVars14.colour.neutral[
|
|
2672
|
+
color: cssVars14.colour.neutral[80]
|
|
2644
2673
|
}
|
|
2645
2674
|
}
|
|
2646
2675
|
};
|
|
@@ -2725,8 +2754,8 @@ var focusable = defineUtility8({
|
|
|
2725
2754
|
'&:focus-within, &:active, &[aria-expanded="true"]': {
|
|
2726
2755
|
backgroundColor: cssVars14.colour.neutral[10],
|
|
2727
2756
|
outline: "none",
|
|
2728
|
-
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[
|
|
2729
|
-
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars14.colour.neutral[
|
|
2757
|
+
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[80]})`,
|
|
2758
|
+
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars14.colour.neutral[80]})`
|
|
2730
2759
|
},
|
|
2731
2760
|
'&:disabled, &[aria-disabled="true"]': {
|
|
2732
2761
|
backgroundColor: cssVars14.colour.neutral[30],
|
package/dist/config.js
CHANGED
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.0
|
|
3
|
+
"version": "6.0.0",
|
|
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",
|
|
@@ -59,18 +59,17 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@pandacss/dev": "1.9.1",
|
|
61
61
|
"@pandacss/types": "1.9.1",
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
63
|
-
"@typescript-eslint/parser": "^8.
|
|
64
|
-
"eslint": "^10.
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^8.59.2",
|
|
63
|
+
"@typescript-eslint/parser": "^8.59.2",
|
|
64
|
+
"eslint": "^10.3.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.5"
|
|
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',
|
|
@@ -200,6 +200,39 @@ export const tableRecipe = defineSlotRecipe({
|
|
|
200
200
|
},
|
|
201
201
|
},
|
|
202
202
|
},
|
|
203
|
+
virtualise: {
|
|
204
|
+
true: {
|
|
205
|
+
table: {
|
|
206
|
+
tableLayout: 'fixed',
|
|
207
|
+
|
|
208
|
+
'& thead': {
|
|
209
|
+
position: 'sticky',
|
|
210
|
+
top: 0,
|
|
211
|
+
zIndex: 1,
|
|
212
|
+
bg: 'colour.neutral.10',
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
'& tr[aria-hidden] td': {
|
|
216
|
+
padding: '0',
|
|
217
|
+
border: 'none',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
root: {
|
|
221
|
+
'&[data-scrolled] table > thead:first-of-type > :first-child > :first-child':
|
|
222
|
+
{
|
|
223
|
+
borderTopLeftRadius: '0',
|
|
224
|
+
},
|
|
225
|
+
'&[data-scrolled] table > thead:first-of-type > :first-child > :last-child':
|
|
226
|
+
{
|
|
227
|
+
borderTopRightRadius: '0',
|
|
228
|
+
},
|
|
229
|
+
'&[data-scrolled] table > thead:first-of-type > :first-child > th, &[data-scrolled] table > thead:first-of-type > :first-child > td':
|
|
230
|
+
{
|
|
231
|
+
borderTopWidth: '1px',
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
203
236
|
sortButtonNoWrap: {
|
|
204
237
|
true: {
|
|
205
238
|
sortHeader: {
|
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': {
|
|
@@ -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
|
};
|
|
@@ -143,8 +143,8 @@ export const focusable = defineUtility({
|
|
|
143
143
|
'&:focus-within, &:active, &[aria-expanded="true"]': {
|
|
144
144
|
backgroundColor: cssVars.colour.neutral[10],
|
|
145
145
|
outline: 'none',
|
|
146
|
-
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[
|
|
147
|
-
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars.colour.neutral[
|
|
146
|
+
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
147
|
+
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
148
148
|
},
|
|
149
149
|
'&:disabled, &[aria-disabled="true"]': {
|
|
150
150
|
backgroundColor: cssVars.colour.neutral[30],
|