@iress-oss/ids-theme-preset 6.0.0 → 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.
|
@@ -2748,6 +2748,7 @@ var focusable = defineUtility8({
|
|
|
2748
2748
|
}
|
|
2749
2749
|
if (value === "select-activator") {
|
|
2750
2750
|
return {
|
|
2751
|
+
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[70]})`,
|
|
2751
2752
|
"&:hover": {
|
|
2752
2753
|
backgroundColor: cssVars14.colour.neutral[20]
|
|
2753
2754
|
},
|
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",
|
|
@@ -58,15 +58,15 @@
|
|
|
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
68
|
"typescript": "6.0.3",
|
|
69
|
-
"vitest": "4.1.
|
|
69
|
+
"vitest": "4.1.11"
|
|
70
70
|
},
|
|
71
71
|
"repository": {
|
|
72
72
|
"type": "git",
|
|
@@ -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
|
+
});
|