@astryxdesign/theme-stone 0.7.2 → 0.7.3-canary.06872b4

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/source.js CHANGED
@@ -145,7 +145,7 @@ var SECONDARY_COMPLEX_SELECTOR = {
145
145
  borderWidth: SECONDARY_BUTTON.borderWidth,
146
146
  borderStyle: SECONDARY_BUTTON.borderStyle,
147
147
  borderColor: SECONDARY_BUTTON.borderColor,
148
- ":hover:not(:has(> :disabled))": SECONDARY_BUTTON[":hover"]
148
+ ':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))': SECONDARY_BUTTON[":hover"]
149
149
  };
150
150
  var stoneTheme = (0, import_theme.defineTheme)({
151
151
  name: "stone",
package/dist/source.mjs CHANGED
@@ -147,7 +147,7 @@ var SECONDARY_COMPLEX_SELECTOR = {
147
147
  borderWidth: SECONDARY_BUTTON.borderWidth,
148
148
  borderStyle: SECONDARY_BUTTON.borderStyle,
149
149
  borderColor: SECONDARY_BUTTON.borderColor,
150
- ":hover:not(:has(> :disabled))": SECONDARY_BUTTON[":hover"]
150
+ ':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))': SECONDARY_BUTTON[":hover"]
151
151
  };
152
152
  var stoneTheme = defineTheme({
153
153
  name: "stone",
package/dist/stone.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/stoneTheme.ts
4
4
  * Command: astryx theme build src/stoneTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.7.2
6
- * Core: @astryxdesign/core@0.7.2
5
+ * CLI: @astryxdesign/cli@0.7.3
6
+ * Core: @astryxdesign/core@0.7.3
7
7
  */
8
8
 
9
9
  import type { DefinedTheme } from '@astryxdesign/core/theme';
package/dist/stone.js CHANGED
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/stoneTheme.ts
4
4
  * Command: astryx theme build src/stoneTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.7.2
6
- * Core: @astryxdesign/core@0.7.2
5
+ * CLI: @astryxdesign/cli@0.7.3
6
+ * Core: @astryxdesign/core@0.7.3
7
7
  */
8
8
 
9
9
  import { stoneIconRegistry } from "./icons.mjs";
@@ -497,7 +497,7 @@ export const stoneTheme = {
497
497
  "borderWidth": "1.5px",
498
498
  "borderStyle": "solid",
499
499
  "borderColor": "var(--color-border-emphasized)",
500
- ":hover:not(:has(> :disabled))": {
500
+ ":hover:not(:has(> :is(:disabled, [aria-disabled=\"true\"])))": {
501
501
  "backgroundColor": "var(--color-neutral)"
502
502
  }
503
503
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stoneTheme.d.ts","sourceRoot":"","sources":["../src/stoneTheme.ts"],"names":[],"mappings":"AAgHA,eAAO,MAAM,UAAU,yDAyVrB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2PhB,CAAC"}
1
+ {"version":3,"file":"stoneTheme.d.ts","sourceRoot":"","sources":["../src/stoneTheme.ts"],"names":[],"mappings":"AAkHA,eAAO,MAAM,UAAU,yDAyVrB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2PhB,CAAC"}
package/dist/theme.css CHANGED
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/stoneTheme.ts
4
4
  * Command: astryx theme build src/stoneTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.7.2
6
- * Core: @astryxdesign/core@0.7.2
5
+ * CLI: @astryxdesign/cli@0.7.3
6
+ * Core: @astryxdesign/core@0.7.3
7
7
  */
8
8
 
9
9
  @layer reset, astryx-base, astryx-theme;
@@ -599,7 +599,7 @@
599
599
  border-color: var(--color-border-emphasized);
600
600
  }
601
601
 
602
- .astryx-complex-selector[data-variant="secondary"]:hover:not(:has(> :disabled)):where(:not(:disabled,[aria-disabled="true"])) {
602
+ .astryx-complex-selector[data-variant="secondary"]:hover:not(:has(> :is(:disabled, [aria-disabled="true"]))) {
603
603
  background-color: var(--color-neutral);
604
604
  }
605
605
 
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/stoneTheme.ts
4
4
  * Command: astryx theme build src/stoneTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.7.2
6
- * Core: @astryxdesign/core@0.7.2
5
+ * CLI: @astryxdesign/cli@0.7.3
6
+ * Core: @astryxdesign/core@0.7.3
7
7
  */
8
8
 
9
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-stone",
3
- "version": "0.7.2",
3
+ "version": "0.7.3-canary.06872b4",
4
4
  "displayName": "Stone Theme",
5
5
  "private": false,
6
6
  "description": "Warm stone and slate, earthy and understated, with just enough character to feel handcrafted.",
@@ -57,11 +57,11 @@
57
57
  "lucide-react": "^1.18.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@astryxdesign/core": "0.7.2",
60
+ "@astryxdesign/core": "0.7.3-canary.06872b4",
61
61
  "react": ">=19"
62
62
  },
63
63
  "devDependencies": {
64
- "@astryxdesign/cli": "0.7.2"
64
+ "@astryxdesign/cli": "0.7.3-canary.06872b4"
65
65
  },
66
66
  "module": "./dist/source.mjs",
67
67
  "scripts": {
@@ -23,3 +23,11 @@ describe('stone touch + narrow type pin', () => {
23
23
  );
24
24
  });
25
25
  });
26
+
27
+ describe('stone secondary ComplexSelector', () => {
28
+ it('keeps the hover fill off a disabled trigger in either form', () => {
29
+ expect(generateThemeCSS(stoneTheme).component).toMatch(
30
+ /:hover:not\(:has\(> ?:is\(:disabled, ?\[aria-disabled="true"\]\)\)\)/,
31
+ );
32
+ });
33
+ });
package/src/stoneTheme.ts CHANGED
@@ -100,14 +100,16 @@ const SECONDARY_SELECTOR = {
100
100
 
101
101
  /**
102
102
  * The secondary Button treatment on ComplexSelector triggers (AST-079 FR2), with
103
- * the hover kept off a disabled trigger, whose inner button is disabled.
103
+ * the hover kept off a disabled trigger, whose inner button is disabled
104
+ * (natively or, keeping its tab stop, with `aria-disabled`).
104
105
  */
105
106
  const SECONDARY_COMPLEX_SELECTOR = {
106
107
  backgroundColor: SECONDARY_BUTTON.backgroundColor,
107
108
  borderWidth: SECONDARY_BUTTON.borderWidth,
108
109
  borderStyle: SECONDARY_BUTTON.borderStyle,
109
110
  borderColor: SECONDARY_BUTTON.borderColor,
110
- ':hover:not(:has(> :disabled))': SECONDARY_BUTTON[':hover'],
111
+ ':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))':
112
+ SECONDARY_BUTTON[':hover'],
111
113
  } as const;
112
114
 
113
115
  export const stoneTheme = defineTheme({