@gnist/design-system 6.0.0-alpha.0 → 6.0.0-alpha.3
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/CHANGELOG.md +18 -0
- package/dist/building-blocks/inputs/internal/textBelowInput.css.cjs +2 -2
- package/dist/building-blocks/inputs/internal/textBelowInput.css.js +2 -2
- package/dist/components/actions/buttons/styles.css.cjs +8 -9
- package/dist/components/actions/buttons/styles.css.d.ts.map +1 -1
- package/dist/components/actions/buttons/styles.css.js +8 -9
- package/dist/components/actions/chips/styles.css.cjs +3 -4
- package/dist/components/actions/chips/styles.css.d.ts.map +1 -1
- package/dist/components/actions/chips/styles.css.js +3 -4
- package/dist/components/actions/selectionControls/checkbox.css.cjs +3 -3
- package/dist/components/actions/selectionControls/checkbox.css.js +3 -3
- package/dist/components/actions/selectionControls/radiobutton.css.cjs +3 -3
- package/dist/components/actions/selectionControls/radiobutton.css.js +3 -3
- package/dist/components/actions/selectionControls/radiogroup.css.cjs +3 -4
- package/dist/components/actions/selectionControls/radiogroup.css.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/radiogroup.css.js +3 -4
- package/dist/components/actions/selectionControls/shared.css.cjs +6 -7
- package/dist/components/actions/selectionControls/shared.css.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/shared.css.js +6 -7
- package/dist/components/actions/selectionControls/switch.css.cjs +13 -14
- package/dist/components/actions/selectionControls/switch.css.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/switch.css.js +13 -14
- package/dist/components/feedback/alerts/AlertBanner.css.cjs +7 -8
- package/dist/components/feedback/alerts/AlertBanner.css.d.ts.map +1 -1
- package/dist/components/feedback/alerts/AlertBanner.css.js +7 -8
- package/dist/components/feedback/loaders/loadingBar.css.cjs +3 -2
- package/dist/components/feedback/loaders/loadingBar.css.d.ts.map +1 -1
- package/dist/components/feedback/loaders/loadingBar.css.js +4 -3
- package/dist/components/feedback/loaders/loadingSpinner.css.cjs +2 -1
- package/dist/components/feedback/loaders/loadingSpinner.css.d.ts.map +1 -1
- package/dist/components/feedback/loaders/loadingSpinner.css.js +3 -2
- package/dist/components/feedback/notifications/lozenge.css.cjs +2 -2
- package/dist/components/feedback/notifications/lozenge.css.js +2 -2
- package/dist/components/feedback/progress/ProgressBar.css.cjs +4 -3
- package/dist/components/feedback/progress/ProgressBar.css.d.ts.map +1 -1
- package/dist/components/feedback/progress/ProgressBar.css.js +5 -4
- package/dist/components/inputs/dropdowns/select.css.cjs +7 -7
- package/dist/components/inputs/dropdowns/select.css.js +7 -7
- package/dist/components/inputs/pickers/Calendar.css.cjs +8 -8
- package/dist/components/inputs/pickers/Calendar.css.d.ts.map +1 -1
- package/dist/components/inputs/pickers/Calendar.css.js +9 -9
- package/dist/components/inputs/shared-styles/iconButtonOverlay.css.cjs +2 -2
- package/dist/components/inputs/shared-styles/iconButtonOverlay.css.js +2 -2
- package/dist/components/inputs/shared-styles/inputField.css.cjs +5 -6
- package/dist/components/inputs/shared-styles/inputField.css.d.ts.map +1 -1
- package/dist/components/inputs/shared-styles/inputField.css.js +5 -6
- package/dist/components/inputs/shared-styles/labelStyles.css.cjs +2 -2
- package/dist/components/inputs/shared-styles/labelStyles.css.js +2 -2
- package/dist/components/inputs/shared-styles/suffixPrefix.css.cjs +3 -3
- package/dist/components/inputs/shared-styles/suffixPrefix.css.js +3 -3
- package/dist/components/inputs/textFields/textArea.css.cjs +2 -2
- package/dist/components/inputs/textFields/textArea.css.js +2 -2
- package/dist/components/progress/spinner.css.cjs +2 -1
- package/dist/components/progress/spinner.css.d.ts.map +1 -1
- package/dist/components/progress/spinner.css.js +3 -2
- package/dist/components/surfaces/accordion/accordion.css.cjs +6 -6
- package/dist/components/surfaces/accordion/accordion.css.js +7 -7
- package/dist/components/surfaces/cards/cards.css.cjs +4 -5
- package/dist/components/surfaces/cards/cards.css.d.ts.map +1 -1
- package/dist/components/surfaces/cards/cards.css.js +4 -5
- package/dist/components/surfaces/cards/checkboxCard.css.cjs +2 -2
- package/dist/components/surfaces/cards/checkboxCard.css.js +2 -2
- package/dist/components/surfaces/cards/internal/SelectionCard.css.cjs +3 -3
- package/dist/components/surfaces/cards/internal/SelectionCard.css.js +3 -3
- package/dist/components/surfaces/modal/modal.css.cjs +10 -10
- package/dist/components/surfaces/modal/modal.css.js +11 -11
- package/dist/foundation/iconography/Icon.css.cjs +3 -2
- package/dist/foundation/iconography/Icon.css.d.ts.map +1 -1
- package/dist/foundation/iconography/Icon.css.js +4 -3
- package/dist/foundation/logos/Logo.css.cjs +5 -4
- package/dist/foundation/logos/Logo.css.d.ts.map +1 -1
- package/dist/foundation/logos/Logo.css.js +6 -5
- package/dist/foundation/typography/typography.css.cjs +2 -2
- package/dist/foundation/typography/typography.css.js +2 -2
- package/dist/styles/animations.css.cjs +2 -2
- package/dist/styles/animations.css.js +2 -2
- package/dist/styles/states.css.cjs +4 -5
- package/dist/styles/states.css.d.ts.map +1 -1
- package/dist/styles/states.css.js +4 -5
- package/dist/utilities/accessibility/visuallyHidden.css.cjs +2 -2
- package/dist/utilities/accessibility/visuallyHidden.css.js +2 -2
- package/dist/utilities/layout/styles.css.cjs +3 -3
- package/dist/utilities/layout/styles.css.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.0.0-alpha.3](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@6.0.0-alpha.2...@gnist/design-system@6.0.0-alpha.3) (2026-04-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @gnist/design-system
|
|
9
|
+
|
|
10
|
+
## [6.0.0-alpha.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@6.0.0-alpha.1...@gnist/design-system@6.0.0-alpha.2) (2026-04-20)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @gnist/design-system
|
|
13
|
+
|
|
14
|
+
## [6.0.0-alpha.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@6.0.0-alpha.0...@gnist/design-system@6.0.0-alpha.1) (2026-04-20)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* Wrap gnist css in [@layer](https://github.com/layer) gnist { ... } ([c513601](https://github.com/mollerdigital/design-system-design-system/commit/c513601b4831e7d02f08028cdf1f0cd4c42f60bc))
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* lint ([1c19f04](https://github.com/mollerdigital/design-system-design-system/commit/1c19f04a0aae90d887e3f26f4c31321bea84dced))
|
|
23
|
+
|
|
6
24
|
## [6.0.0-alpha.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@5.6.1...@gnist/design-system@6.0.0-alpha.0) (2026-04-17)
|
|
7
25
|
|
|
8
26
|
### ⚠ BREAKING CHANGES
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
5
|
-
const
|
|
6
|
-
const textBelowInputRecipe =
|
|
5
|
+
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
6
|
+
const textBelowInputRecipe = layers_css_js.gnistRecipe({
|
|
7
7
|
base: [
|
|
8
8
|
atoms_css_js.atoms({
|
|
9
9
|
typography: "detail-small",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
4
|
-
const textBelowInputRecipe =
|
|
3
|
+
import { gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
4
|
+
const textBelowInputRecipe = gnistRecipe({
|
|
5
5
|
base: [
|
|
6
6
|
atoms({
|
|
7
7
|
typography: "detail-small",
|
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
4
4
|
const animations_css = require("../../../styles/animations.css.cjs");
|
|
5
5
|
const states_css = require("../../../styles/states.css.cjs");
|
|
6
6
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
7
|
+
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
7
8
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
8
|
-
const css = require("@vanilla-extract/css");
|
|
9
9
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
10
|
-
const
|
|
11
|
-
const buttonBase = css.style([
|
|
10
|
+
const buttonBase = layers_css_js.gnistStyle([
|
|
12
11
|
states_css.focusStyle,
|
|
13
12
|
animations_css.clickAnimation,
|
|
14
13
|
atoms_css_js.atoms({
|
|
@@ -33,7 +32,7 @@ const buttonBase = css.style([
|
|
|
33
32
|
}
|
|
34
33
|
]);
|
|
35
34
|
const getColors = (variant) => atoms_css_js.atoms({ backgroundColor: variant, color: `on-${variant}` });
|
|
36
|
-
const textAndIconButton =
|
|
35
|
+
const textAndIconButton = layers_css_js.gnistStyle([
|
|
37
36
|
atoms_css_js.atoms({ height: "l" }),
|
|
38
37
|
{
|
|
39
38
|
color: "inherit",
|
|
@@ -41,7 +40,7 @@ const textAndIconButton = css.style([
|
|
|
41
40
|
flexShrink: 0
|
|
42
41
|
}
|
|
43
42
|
]);
|
|
44
|
-
const buttonRecipe =
|
|
43
|
+
const buttonRecipe = layers_css_js.gnistRecipe({
|
|
45
44
|
base: [buttonBase],
|
|
46
45
|
variants: {
|
|
47
46
|
isLoading: {
|
|
@@ -100,7 +99,7 @@ const buttonRecipe = recipes.recipe({
|
|
|
100
99
|
isLoading: false
|
|
101
100
|
}
|
|
102
101
|
});
|
|
103
|
-
const boxedButton =
|
|
102
|
+
const boxedButton = layers_css_js.gnistRecipe({
|
|
104
103
|
base: atoms_css_js.atoms({ columnGap: "base" }),
|
|
105
104
|
variants: {
|
|
106
105
|
density: {
|
|
@@ -110,7 +109,7 @@ const boxedButton = recipes.recipe({
|
|
|
110
109
|
},
|
|
111
110
|
defaultVariants: { density: "default" }
|
|
112
111
|
});
|
|
113
|
-
const iconButton =
|
|
112
|
+
const iconButton = layers_css_js.gnistRecipe({
|
|
114
113
|
variants: {
|
|
115
114
|
showLabel: {
|
|
116
115
|
left: { paddingLeft: tokens_css_js.tokens.spacing.base },
|
|
@@ -119,10 +118,10 @@ const iconButton = recipes.recipe({
|
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
|
-
const actionText =
|
|
121
|
+
const actionText = layers_css_js.gnistStyle({
|
|
123
122
|
fontWeight: tokens_css_js.tokens.typeface.weight.semibold
|
|
124
123
|
});
|
|
125
|
-
const textButtonText =
|
|
124
|
+
const textButtonText = layers_css_js.gnistRecipe({
|
|
126
125
|
base: {
|
|
127
126
|
borderBottomStyle: "solid",
|
|
128
127
|
borderBottomWidth: tokens_css_js.tokens.stroke.medium
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/buttons/styles.css.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DvB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;EAStB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;EAQrB,CAAC;AAEH,eAAO,MAAM,UAAU,QAErB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EA0BzB,CAAC"}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
import { clickAnimation } from "../../../styles/animations.css.js";
|
|
3
3
|
import { focusStyle } from "../../../styles/states.css.js";
|
|
4
4
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
5
|
+
import { gnistStyle, gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
5
6
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
6
|
-
import { style } from "@vanilla-extract/css";
|
|
7
7
|
import { calc } from "@vanilla-extract/css-utils";
|
|
8
|
-
|
|
9
|
-
const buttonBase = style([
|
|
8
|
+
const buttonBase = gnistStyle([
|
|
10
9
|
focusStyle,
|
|
11
10
|
clickAnimation,
|
|
12
11
|
atoms({
|
|
@@ -31,7 +30,7 @@ const buttonBase = style([
|
|
|
31
30
|
}
|
|
32
31
|
]);
|
|
33
32
|
const getColors = (variant) => atoms({ backgroundColor: variant, color: `on-${variant}` });
|
|
34
|
-
const textAndIconButton =
|
|
33
|
+
const textAndIconButton = gnistStyle([
|
|
35
34
|
atoms({ height: "l" }),
|
|
36
35
|
{
|
|
37
36
|
color: "inherit",
|
|
@@ -39,7 +38,7 @@ const textAndIconButton = style([
|
|
|
39
38
|
flexShrink: 0
|
|
40
39
|
}
|
|
41
40
|
]);
|
|
42
|
-
const buttonRecipe =
|
|
41
|
+
const buttonRecipe = gnistRecipe({
|
|
43
42
|
base: [buttonBase],
|
|
44
43
|
variants: {
|
|
45
44
|
isLoading: {
|
|
@@ -98,7 +97,7 @@ const buttonRecipe = recipe({
|
|
|
98
97
|
isLoading: false
|
|
99
98
|
}
|
|
100
99
|
});
|
|
101
|
-
const boxedButton =
|
|
100
|
+
const boxedButton = gnistRecipe({
|
|
102
101
|
base: atoms({ columnGap: "base" }),
|
|
103
102
|
variants: {
|
|
104
103
|
density: {
|
|
@@ -108,7 +107,7 @@ const boxedButton = recipe({
|
|
|
108
107
|
},
|
|
109
108
|
defaultVariants: { density: "default" }
|
|
110
109
|
});
|
|
111
|
-
const iconButton =
|
|
110
|
+
const iconButton = gnistRecipe({
|
|
112
111
|
variants: {
|
|
113
112
|
showLabel: {
|
|
114
113
|
left: { paddingLeft: tokens.spacing.base },
|
|
@@ -117,10 +116,10 @@ const iconButton = recipe({
|
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
});
|
|
120
|
-
const actionText =
|
|
119
|
+
const actionText = gnistStyle({
|
|
121
120
|
fontWeight: tokens.typeface.weight.semibold
|
|
122
121
|
});
|
|
123
|
-
const textButtonText =
|
|
122
|
+
const textButtonText = gnistRecipe({
|
|
124
123
|
base: {
|
|
125
124
|
borderBottomStyle: "solid",
|
|
126
125
|
borderBottomWidth: tokens.stroke.medium
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
5
|
+
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
6
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
|
-
const css = require("@vanilla-extract/css");
|
|
7
7
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
8
|
-
const
|
|
9
|
-
const chipBase = css.style({
|
|
8
|
+
const chipBase = layers_css_js.gnistStyle({
|
|
10
9
|
display: "flex",
|
|
11
10
|
gap: tokens_css_js.tokens.spacing.base,
|
|
12
11
|
textWrap: "nowrap",
|
|
@@ -20,7 +19,7 @@ const chipBase = css.style({
|
|
|
20
19
|
minHeight: tokens_css_js.tokens.size.xl,
|
|
21
20
|
justifyContent: "center"
|
|
22
21
|
});
|
|
23
|
-
const chipRecipe =
|
|
22
|
+
const chipRecipe = layers_css_js.gnistRecipe({
|
|
24
23
|
base: chipBase,
|
|
25
24
|
variants: {
|
|
26
25
|
selected: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/chips/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/chips/styles.css.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDrB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
+
import { gnistStyle, gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
3
4
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
4
|
-
import { style } from "@vanilla-extract/css";
|
|
5
5
|
import { calc } from "@vanilla-extract/css-utils";
|
|
6
|
-
|
|
7
|
-
const chipBase = style({
|
|
6
|
+
const chipBase = gnistStyle({
|
|
8
7
|
display: "flex",
|
|
9
8
|
gap: tokens.spacing.base,
|
|
10
9
|
textWrap: "nowrap",
|
|
@@ -18,7 +17,7 @@ const chipBase = style({
|
|
|
18
17
|
minHeight: tokens.size.xl,
|
|
19
18
|
justifyContent: "center"
|
|
20
19
|
});
|
|
21
|
-
const chipRecipe =
|
|
20
|
+
const chipRecipe = gnistRecipe({
|
|
22
21
|
base: chipBase,
|
|
23
22
|
variants: {
|
|
24
23
|
selected: {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
5
|
+
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
6
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
|
-
const
|
|
7
|
-
const CheckboxRecipe = recipes.recipe({
|
|
7
|
+
const CheckboxRecipe = layers_css_js.gnistRecipe({
|
|
8
8
|
base: [
|
|
9
9
|
{
|
|
10
10
|
borderStyle: "solid",
|
|
@@ -95,7 +95,7 @@ const CheckboxRecipe = recipes.recipe({
|
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
});
|
|
98
|
-
const checkbox =
|
|
98
|
+
const checkbox = layers_css_js.gnistRecipe({
|
|
99
99
|
base: [
|
|
100
100
|
atoms_css_js.atoms({
|
|
101
101
|
color: "surface"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
+
import { gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
3
4
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
4
|
-
|
|
5
|
-
const CheckboxRecipe = recipe({
|
|
5
|
+
const CheckboxRecipe = gnistRecipe({
|
|
6
6
|
base: [
|
|
7
7
|
{
|
|
8
8
|
borderStyle: "solid",
|
|
@@ -93,7 +93,7 @@ const CheckboxRecipe = recipe({
|
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
95
|
});
|
|
96
|
-
const checkbox =
|
|
96
|
+
const checkbox = gnistRecipe({
|
|
97
97
|
base: [
|
|
98
98
|
atoms({
|
|
99
99
|
color: "surface"
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
5
|
+
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
6
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
|
-
const
|
|
7
|
-
const RadioButtonRecipe = recipes.recipe({
|
|
7
|
+
const RadioButtonRecipe = layers_css_js.gnistRecipe({
|
|
8
8
|
base: [
|
|
9
9
|
atoms_css_js.atoms({
|
|
10
10
|
height: "s",
|
|
@@ -45,7 +45,7 @@ const RadioButtonRecipe = recipes.recipe({
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
const CheckedCircleRecipe =
|
|
48
|
+
const CheckedCircleRecipe = layers_css_js.gnistRecipe({
|
|
49
49
|
base: [
|
|
50
50
|
atoms_css_js.atoms({
|
|
51
51
|
display: "inline",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
+
import { gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
3
4
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
4
|
-
|
|
5
|
-
const RadioButtonRecipe = recipe({
|
|
5
|
+
const RadioButtonRecipe = gnistRecipe({
|
|
6
6
|
base: [
|
|
7
7
|
atoms({
|
|
8
8
|
height: "s",
|
|
@@ -43,7 +43,7 @@ const RadioButtonRecipe = recipe({
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
const CheckedCircleRecipe =
|
|
46
|
+
const CheckedCircleRecipe = gnistRecipe({
|
|
47
47
|
base: [
|
|
48
48
|
atoms({
|
|
49
49
|
display: "inline",
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const fieldSetStyle = css.style([
|
|
5
|
+
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
6
|
+
const fieldSetStyle = layers_css_js.gnistStyle([
|
|
8
7
|
{
|
|
9
8
|
border: "none"
|
|
10
9
|
},
|
|
@@ -18,7 +17,7 @@ const fieldSetStyle = css.style([
|
|
|
18
17
|
const legendStyle = atoms_css_js.atoms({
|
|
19
18
|
marginBottom: "base"
|
|
20
19
|
});
|
|
21
|
-
const radioContainerStyle =
|
|
20
|
+
const radioContainerStyle = layers_css_js.gnistRecipe({
|
|
22
21
|
base: [
|
|
23
22
|
atoms_css_js.atoms({
|
|
24
23
|
display: "flex",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radiogroup.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/radiogroup.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radiogroup.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/radiogroup.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,QAUxB,CAAC;AAEH,eAAO,MAAM,WAAW,QAEtB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;EAsB9B,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const fieldSetStyle = style([
|
|
3
|
+
import { gnistStyle, gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
4
|
+
const fieldSetStyle = gnistStyle([
|
|
6
5
|
{
|
|
7
6
|
border: "none"
|
|
8
7
|
},
|
|
@@ -16,7 +15,7 @@ const fieldSetStyle = style([
|
|
|
16
15
|
const legendStyle = atoms({
|
|
17
16
|
marginBottom: "base"
|
|
18
17
|
});
|
|
19
|
-
const radioContainerStyle =
|
|
18
|
+
const radioContainerStyle = gnistRecipe({
|
|
20
19
|
base: [
|
|
21
20
|
atoms({
|
|
22
21
|
display: "flex",
|
|
@@ -3,22 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const states_css = require("../../../styles/states.css.cjs");
|
|
5
5
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
6
|
+
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
6
7
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
7
|
-
const css = require("@vanilla-extract/css");
|
|
8
8
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
9
|
-
const
|
|
10
|
-
const InputWrapper = css.style({
|
|
9
|
+
const InputWrapper = layers_css_js.gnistStyle({
|
|
11
10
|
position: "relative",
|
|
12
11
|
display: "flex",
|
|
13
12
|
width: "fit-content",
|
|
14
13
|
height: "fit-content"
|
|
15
14
|
});
|
|
16
|
-
const LabelStyle =
|
|
15
|
+
const LabelStyle = layers_css_js.gnistStyle([
|
|
17
16
|
{
|
|
18
17
|
alignSelf: "center"
|
|
19
18
|
}
|
|
20
19
|
]);
|
|
21
|
-
const LabelRecipe =
|
|
20
|
+
const LabelRecipe = layers_css_js.gnistRecipe({
|
|
22
21
|
base: [
|
|
23
22
|
{
|
|
24
23
|
display: "flex",
|
|
@@ -45,7 +44,7 @@ const LabelRecipe = recipes.recipe({
|
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
});
|
|
48
|
-
const InputStyleRecipe =
|
|
47
|
+
const InputStyleRecipe = layers_css_js.gnistRecipe({
|
|
49
48
|
base: [
|
|
50
49
|
{
|
|
51
50
|
position: "absolute",
|
|
@@ -71,7 +70,7 @@ const InputStyleRecipe = recipes.recipe({
|
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
});
|
|
74
|
-
const indentedDescriptionStyle =
|
|
73
|
+
const indentedDescriptionStyle = layers_css_js.gnistStyle({
|
|
75
74
|
paddingLeft: cssUtils.calc.add(tokens_css_js.tokens.size.s, cssUtils.calc.multiply(tokens_css_js.tokens.spacing.base, 3))
|
|
76
75
|
});
|
|
77
76
|
exports.InputStyleRecipe = InputStyleRecipe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/shared.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/shared.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,QAKvB,CAAC;AAEH,eAAO,MAAM,UAAU,QAIrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;EA2BtB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAyB3B,CAAC;AAEH,eAAO,MAAM,wBAAwB,QAEnC,CAAC"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { focusStyle } from "../../../styles/states.css.js";
|
|
3
3
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
4
|
+
import { gnistStyle, gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
4
5
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
|
-
import { style } from "@vanilla-extract/css";
|
|
6
6
|
import { calc } from "@vanilla-extract/css-utils";
|
|
7
|
-
|
|
8
|
-
const InputWrapper = style({
|
|
7
|
+
const InputWrapper = gnistStyle({
|
|
9
8
|
position: "relative",
|
|
10
9
|
display: "flex",
|
|
11
10
|
width: "fit-content",
|
|
12
11
|
height: "fit-content"
|
|
13
12
|
});
|
|
14
|
-
const LabelStyle =
|
|
13
|
+
const LabelStyle = gnistStyle([
|
|
15
14
|
{
|
|
16
15
|
alignSelf: "center"
|
|
17
16
|
}
|
|
18
17
|
]);
|
|
19
|
-
const LabelRecipe =
|
|
18
|
+
const LabelRecipe = gnistRecipe({
|
|
20
19
|
base: [
|
|
21
20
|
{
|
|
22
21
|
display: "flex",
|
|
@@ -43,7 +42,7 @@ const LabelRecipe = recipe({
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
});
|
|
46
|
-
const InputStyleRecipe =
|
|
45
|
+
const InputStyleRecipe = gnistRecipe({
|
|
47
46
|
base: [
|
|
48
47
|
{
|
|
49
48
|
position: "absolute",
|
|
@@ -69,7 +68,7 @@ const InputStyleRecipe = recipe({
|
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
});
|
|
72
|
-
const indentedDescriptionStyle =
|
|
71
|
+
const indentedDescriptionStyle = gnistStyle({
|
|
73
72
|
paddingLeft: calc.add(tokens.size.s, calc.multiply(tokens.spacing.base, 3))
|
|
74
73
|
});
|
|
75
74
|
export {
|
|
@@ -2,33 +2,32 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
5
|
+
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
6
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
7
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
7
|
-
const
|
|
8
|
-
const css = require("@vanilla-extract/css");
|
|
9
|
-
const focusContainer = css.style({
|
|
8
|
+
const focusContainer = layers_css_js.gnistStyle({
|
|
10
9
|
display: "inline-flex",
|
|
11
10
|
alignItems: "center",
|
|
12
11
|
position: "relative",
|
|
13
12
|
flexShrink: 0
|
|
14
13
|
});
|
|
15
|
-
const switchField =
|
|
14
|
+
const switchField = layers_css_js.gnistStyle({
|
|
16
15
|
display: "inline-flex",
|
|
17
16
|
flexDirection: "column",
|
|
18
17
|
gap: tokens_css_js.tokens.spacing.base
|
|
19
18
|
});
|
|
20
|
-
const switchRow =
|
|
19
|
+
const switchRow = layers_css_js.gnistStyle({
|
|
21
20
|
display: "inline-flex",
|
|
22
21
|
alignItems: "center",
|
|
23
22
|
gap: tokens_css_js.tokens.spacing.xxs
|
|
24
23
|
});
|
|
25
|
-
const switchLabelContent =
|
|
24
|
+
const switchLabelContent = layers_css_js.gnistStyle({
|
|
26
25
|
display: "inline-flex",
|
|
27
26
|
flexDirection: "column",
|
|
28
27
|
gap: tokens_css_js.tokens.spacing.base,
|
|
29
28
|
minWidth: 0
|
|
30
29
|
});
|
|
31
|
-
const switchContainer =
|
|
30
|
+
const switchContainer = layers_css_js.gnistStyle([
|
|
32
31
|
{
|
|
33
32
|
position: "relative",
|
|
34
33
|
display: "inline-flex",
|
|
@@ -44,7 +43,7 @@ const switchContainer = css.style([
|
|
|
44
43
|
height: "m"
|
|
45
44
|
})
|
|
46
45
|
]);
|
|
47
|
-
const SwitchRecipe =
|
|
46
|
+
const SwitchRecipe = layers_css_js.gnistRecipe({
|
|
48
47
|
base: [
|
|
49
48
|
switchContainer,
|
|
50
49
|
{
|
|
@@ -107,7 +106,7 @@ const SwitchRecipe = recipes.recipe({
|
|
|
107
106
|
}
|
|
108
107
|
]
|
|
109
108
|
});
|
|
110
|
-
const switchThumb =
|
|
109
|
+
const switchThumb = layers_css_js.gnistStyle({
|
|
111
110
|
position: "absolute",
|
|
112
111
|
top: "50%",
|
|
113
112
|
transform: "translateY(-50%)",
|
|
@@ -123,7 +122,7 @@ const switchThumb = css.style({
|
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
});
|
|
126
|
-
const SwitchThumbRecipe =
|
|
125
|
+
const SwitchThumbRecipe = layers_css_js.gnistRecipe({
|
|
127
126
|
base: [
|
|
128
127
|
switchThumb,
|
|
129
128
|
atoms_css_js.atoms({
|
|
@@ -179,7 +178,7 @@ const SwitchThumbRecipe = recipes.recipe({
|
|
|
179
178
|
}
|
|
180
179
|
]
|
|
181
180
|
});
|
|
182
|
-
const switchThumbIcon =
|
|
181
|
+
const switchThumbIcon = layers_css_js.gnistStyle([
|
|
183
182
|
{
|
|
184
183
|
display: "inline-flex",
|
|
185
184
|
alignItems: "center",
|
|
@@ -191,7 +190,7 @@ const switchThumbIcon = css.style([
|
|
|
191
190
|
color: "on-surface"
|
|
192
191
|
})
|
|
193
192
|
]);
|
|
194
|
-
const switchLabel =
|
|
193
|
+
const switchLabel = layers_css_js.gnistStyle([
|
|
195
194
|
{
|
|
196
195
|
userSelect: "none",
|
|
197
196
|
fontSize: tokens_css_js.tokens.type.small.body.fontSize,
|
|
@@ -201,7 +200,7 @@ const switchLabel = css.style([
|
|
|
201
200
|
color: "on-surface"
|
|
202
201
|
})
|
|
203
202
|
]);
|
|
204
|
-
const SwitchLabelRecipe =
|
|
203
|
+
const SwitchLabelRecipe = layers_css_js.gnistRecipe({
|
|
205
204
|
base: [switchLabel],
|
|
206
205
|
variants: {
|
|
207
206
|
disabled: {
|
|
@@ -214,7 +213,7 @@ const SwitchLabelRecipe = recipes.recipe({
|
|
|
214
213
|
}
|
|
215
214
|
}
|
|
216
215
|
});
|
|
217
|
-
const switchDescription =
|
|
216
|
+
const switchDescription = layers_css_js.gnistStyle([
|
|
218
217
|
atoms_css_js.atoms({
|
|
219
218
|
color: "text-variant"
|
|
220
219
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/switch.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"switch.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/switch.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc,QAKzB,CAAC;AAEH,eAAO,MAAM,WAAW,QAItB,CAAC;AAEH,eAAO,MAAM,SAAS,QAIpB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAK7B,CAAC;AAEH,eAAO,MAAM,eAAe,QAgB1B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;EA8DvB,CAAC;AAEH,eAAO,MAAM,WAAW,QAgBtB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;EA0D5B,CAAC;AAEH,eAAO,MAAM,eAAe,QAW1B,CAAC;AAEH,eAAO,MAAM,WAAW,QAStB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;EAY5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAI5B,CAAC"}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
+
import { gnistStyle, gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
3
4
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
4
5
|
import { calc } from "@vanilla-extract/css-utils";
|
|
5
|
-
|
|
6
|
-
import { style } from "@vanilla-extract/css";
|
|
7
|
-
const focusContainer = style({
|
|
6
|
+
const focusContainer = gnistStyle({
|
|
8
7
|
display: "inline-flex",
|
|
9
8
|
alignItems: "center",
|
|
10
9
|
position: "relative",
|
|
11
10
|
flexShrink: 0
|
|
12
11
|
});
|
|
13
|
-
const switchField =
|
|
12
|
+
const switchField = gnistStyle({
|
|
14
13
|
display: "inline-flex",
|
|
15
14
|
flexDirection: "column",
|
|
16
15
|
gap: tokens.spacing.base
|
|
17
16
|
});
|
|
18
|
-
const switchRow =
|
|
17
|
+
const switchRow = gnistStyle({
|
|
19
18
|
display: "inline-flex",
|
|
20
19
|
alignItems: "center",
|
|
21
20
|
gap: tokens.spacing.xxs
|
|
22
21
|
});
|
|
23
|
-
const switchLabelContent =
|
|
22
|
+
const switchLabelContent = gnistStyle({
|
|
24
23
|
display: "inline-flex",
|
|
25
24
|
flexDirection: "column",
|
|
26
25
|
gap: tokens.spacing.base,
|
|
27
26
|
minWidth: 0
|
|
28
27
|
});
|
|
29
|
-
const switchContainer =
|
|
28
|
+
const switchContainer = gnistStyle([
|
|
30
29
|
{
|
|
31
30
|
position: "relative",
|
|
32
31
|
display: "inline-flex",
|
|
@@ -42,7 +41,7 @@ const switchContainer = style([
|
|
|
42
41
|
height: "m"
|
|
43
42
|
})
|
|
44
43
|
]);
|
|
45
|
-
const SwitchRecipe =
|
|
44
|
+
const SwitchRecipe = gnistRecipe({
|
|
46
45
|
base: [
|
|
47
46
|
switchContainer,
|
|
48
47
|
{
|
|
@@ -105,7 +104,7 @@ const SwitchRecipe = recipe({
|
|
|
105
104
|
}
|
|
106
105
|
]
|
|
107
106
|
});
|
|
108
|
-
const switchThumb =
|
|
107
|
+
const switchThumb = gnistStyle({
|
|
109
108
|
position: "absolute",
|
|
110
109
|
top: "50%",
|
|
111
110
|
transform: "translateY(-50%)",
|
|
@@ -121,7 +120,7 @@ const switchThumb = style({
|
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
});
|
|
124
|
-
const SwitchThumbRecipe =
|
|
123
|
+
const SwitchThumbRecipe = gnistRecipe({
|
|
125
124
|
base: [
|
|
126
125
|
switchThumb,
|
|
127
126
|
atoms({
|
|
@@ -177,7 +176,7 @@ const SwitchThumbRecipe = recipe({
|
|
|
177
176
|
}
|
|
178
177
|
]
|
|
179
178
|
});
|
|
180
|
-
const switchThumbIcon =
|
|
179
|
+
const switchThumbIcon = gnistStyle([
|
|
181
180
|
{
|
|
182
181
|
display: "inline-flex",
|
|
183
182
|
alignItems: "center",
|
|
@@ -189,7 +188,7 @@ const switchThumbIcon = style([
|
|
|
189
188
|
color: "on-surface"
|
|
190
189
|
})
|
|
191
190
|
]);
|
|
192
|
-
const switchLabel =
|
|
191
|
+
const switchLabel = gnistStyle([
|
|
193
192
|
{
|
|
194
193
|
userSelect: "none",
|
|
195
194
|
fontSize: tokens.type.small.body.fontSize,
|
|
@@ -199,7 +198,7 @@ const switchLabel = style([
|
|
|
199
198
|
color: "on-surface"
|
|
200
199
|
})
|
|
201
200
|
]);
|
|
202
|
-
const SwitchLabelRecipe =
|
|
201
|
+
const SwitchLabelRecipe = gnistRecipe({
|
|
203
202
|
base: [switchLabel],
|
|
204
203
|
variants: {
|
|
205
204
|
disabled: {
|
|
@@ -212,7 +211,7 @@ const SwitchLabelRecipe = recipe({
|
|
|
212
211
|
}
|
|
213
212
|
}
|
|
214
213
|
});
|
|
215
|
-
const switchDescription =
|
|
214
|
+
const switchDescription = gnistStyle([
|
|
216
215
|
atoms({
|
|
217
216
|
color: "text-variant"
|
|
218
217
|
})
|