@astryxdesign/theme-y2k 0.7.2 → 0.7.3-canary.0bf23bd
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 +1 -1
- package/dist/source.mjs +1 -1
- package/dist/theme.css +3 -3
- package/dist/theme.css.d.ts +2 -2
- package/dist/y2k.d.ts +2 -2
- package/dist/y2k.js +3 -3
- package/dist/y2kTheme.d.ts.map +1 -1
- package/dist/y2kTheme.test.d.ts +2 -0
- package/dist/y2kTheme.test.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/y2kTheme.test.ts +13 -0
- package/src/y2kTheme.ts +4 -2
package/dist/source.js
CHANGED
|
@@ -122,7 +122,7 @@ var SECONDARY_COMPLEX_SELECTOR = {
|
|
|
122
122
|
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
123
123
|
borderColor: SECONDARY_BUTTON.borderColor,
|
|
124
124
|
color: SECONDARY_BUTTON.color,
|
|
125
|
-
|
|
125
|
+
':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))': SECONDARY_BUTTON[":hover"]
|
|
126
126
|
};
|
|
127
127
|
var y2kTheme = (0, import_theme.defineTheme)({
|
|
128
128
|
name: "y2k",
|
package/dist/source.mjs
CHANGED
|
@@ -124,7 +124,7 @@ var SECONDARY_COMPLEX_SELECTOR = {
|
|
|
124
124
|
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
125
125
|
borderColor: SECONDARY_BUTTON.borderColor,
|
|
126
126
|
color: SECONDARY_BUTTON.color,
|
|
127
|
-
|
|
127
|
+
':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))': SECONDARY_BUTTON[":hover"]
|
|
128
128
|
};
|
|
129
129
|
var y2kTheme = defineTheme({
|
|
130
130
|
name: "y2k",
|
package/dist/theme.css
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/y2kTheme.ts
|
|
4
4
|
* Command: astryx theme build src/y2kTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
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;
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
color: var(--color-text-green);
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
.astryx-complex-selector[data-variant="secondary"]:hover:not(:has(> :
|
|
475
|
+
.astryx-complex-selector[data-variant="secondary"]:hover:not(:has(> :is(:disabled, [aria-disabled="true"]))) {
|
|
476
476
|
background-color: var(--color-border-green);
|
|
477
477
|
}
|
|
478
478
|
|
package/dist/theme.css.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/y2kTheme.ts
|
|
4
4
|
* Command: astryx theme build src/y2kTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.3
|
|
6
|
+
* Core: @astryxdesign/core@0.7.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export {};
|
package/dist/y2k.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/y2kTheme.ts
|
|
4
4
|
* Command: astryx theme build src/y2kTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
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/y2k.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/y2kTheme.ts
|
|
4
4
|
* Command: astryx theme build src/y2kTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.3
|
|
6
|
+
* Core: @astryxdesign/core@0.7.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { y2kIconRegistry } from "./icons.mjs";
|
|
@@ -384,7 +384,7 @@ export const y2kTheme = {
|
|
|
384
384
|
"borderStyle": "solid",
|
|
385
385
|
"borderColor": "var(--color-text-green)",
|
|
386
386
|
"color": "var(--color-text-green)",
|
|
387
|
-
":hover:not(:has(> :disabled))": {
|
|
387
|
+
":hover:not(:has(> :is(:disabled, [aria-disabled=\"true\"])))": {
|
|
388
388
|
"backgroundColor": "var(--color-border-green)"
|
|
389
389
|
}
|
|
390
390
|
}
|
package/dist/y2kTheme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"y2kTheme.d.ts","sourceRoot":"","sources":["../src/y2kTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"y2kTheme.d.ts","sourceRoot":"","sources":["../src/y2kTheme.ts"],"names":[],"mappings":"AA2FA,eAAO,MAAM,QAAQ,yDAiUnB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Pd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"y2kTheme.test.d.ts","sourceRoot":"","sources":["../src/y2kTheme.test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-y2k",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3-canary.0bf23bd",
|
|
4
4
|
"displayName": "Y2K Theme",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Hot pinks, lime greens, and Poppins. Bubbly, playful, and unmistakably retro.",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"lucide-react": "^1.18.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@astryxdesign/core": "0.7.
|
|
60
|
+
"@astryxdesign/core": "0.7.3-canary.0bf23bd",
|
|
61
61
|
"react": ">=19"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@astryxdesign/cli": "0.7.
|
|
64
|
+
"@astryxdesign/cli": "0.7.3-canary.0bf23bd"
|
|
65
65
|
},
|
|
66
66
|
"module": "./dist/source.mjs",
|
|
67
67
|
"scripts": {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
import {describe, expect, it} from 'vitest';
|
|
4
|
+
import {generateThemeCSS} from '@astryxdesign/core/theme';
|
|
5
|
+
import {y2kTheme} from './y2kTheme';
|
|
6
|
+
|
|
7
|
+
describe('y2k secondary ComplexSelector', () => {
|
|
8
|
+
it('keeps the hover fill off a disabled trigger in either form', () => {
|
|
9
|
+
expect(generateThemeCSS(y2kTheme).component).toMatch(
|
|
10
|
+
/:hover:not\(:has\(> ?:is\(:disabled, ?\[aria-disabled="true"\]\)\)\)/,
|
|
11
|
+
);
|
|
12
|
+
});
|
|
13
|
+
});
|
package/src/y2kTheme.ts
CHANGED
|
@@ -76,7 +76,8 @@ const SECONDARY_SELECTOR = {
|
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* The secondary Button treatment on ComplexSelector triggers (AST-079 FR2), with
|
|
79
|
-
* the hover kept off a disabled trigger, whose inner button is disabled
|
|
79
|
+
* the hover kept off a disabled trigger, whose inner button is disabled
|
|
80
|
+
* (natively or, keeping its tab stop, with `aria-disabled`).
|
|
80
81
|
*/
|
|
81
82
|
const SECONDARY_COMPLEX_SELECTOR = {
|
|
82
83
|
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
@@ -84,7 +85,8 @@ const SECONDARY_COMPLEX_SELECTOR = {
|
|
|
84
85
|
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
85
86
|
borderColor: SECONDARY_BUTTON.borderColor,
|
|
86
87
|
color: SECONDARY_BUTTON.color,
|
|
87
|
-
':hover:not(:has(> :disabled))':
|
|
88
|
+
':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))':
|
|
89
|
+
SECONDARY_BUTTON[':hover'],
|
|
88
90
|
} as const;
|
|
89
91
|
|
|
90
92
|
export const y2kTheme = defineTheme({
|