@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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  src_default
3
- } from "./chunk-WDJWG3KI.js";
3
+ } from "./chunk-RP6CFDQQ.js";
4
4
  import "./chunk-NEAYSXME.js";
5
5
  import {
6
6
  codegenPrepareHook,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as _pandacss_types from '@pandacss/types';
1
+ import * as _pandacss_dev from '@pandacss/dev';
2
2
 
3
- declare const idsThemePreset: _pandacss_types.Preset;
3
+ declare const idsThemePreset: _pandacss_dev.Preset;
4
4
 
5
5
  export { idsThemePreset as default, idsThemePreset };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  idsThemePreset,
3
3
  src_default
4
- } from "./chunk-WDJWG3KI.js";
4
+ } from "./chunk-RP6CFDQQ.js";
5
5
  import "./chunk-NEAYSXME.js";
6
6
  export {
7
7
  src_default as default,
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.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.9.1",
62
- "@typescript-eslint/eslint-plugin": "^8.59.2",
63
- "@typescript-eslint/parser": "^8.59.2",
64
- "eslint": "^10.3.0",
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.5"
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
+ });
@@ -137,6 +137,7 @@ 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
  },