@gnist/design-system 6.3.1 → 7.0.0-alpha.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.
- package/CHANGELOG.md +34 -6
- package/README.md +1 -0
- package/dist/building-blocks/inputs/internal/textBelowInput.css.cjs +1 -1
- 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 -3
- 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 -3
- 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 +3 -3
- 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 +1 -1
- 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 +3 -2
- package/dist/foundation/logos/Logo.css.d.ts.map +1 -1
- package/dist/foundation/logos/Logo.css.js +4 -3
- package/dist/foundation/typography/typography.css.cjs +2 -2
- package/dist/foundation/typography/typography.css.js +2 -2
- package/dist/styles/animations.css.cjs +1 -1
- package/dist/styles/animations.css.js +2 -2
- package/dist/styles/states.css.cjs +4 -5
- package/dist/styles/states.css.d.ts +1 -1
- 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 +1 -1
- 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 +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,21 +3,49 @@
|
|
|
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
|
+
## [7.0.0-alpha.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@6.3.1...@gnist/design-system@7.0.0-alpha.1) (2026-06-03)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **design-system:** Design system styles are now emitted inside @layer gnist. Consumers should declare @layer base, gnist; at the top of their main CSS file and wrap global/reset styles in @layer base { ... } to avoid unintentionally overriding design system styles. Unlayered styles will now override design system styles by design.
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **design-system:** wrap gnist css in [@layer](https://github.com/layer) gnist ([168f0af](https://github.com/mollerdigital/design-system-design-system/commit/168f0af6ac367c2189060edf030f9a76059164cc))
|
|
15
|
+
## [7.0.0-alpha.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@6.3.0-alpha.0...@gnist/design-system@7.0.0-alpha.0) (2026-05-21)
|
|
16
|
+
|
|
17
|
+
### ⚠ BREAKING CHANGES
|
|
18
|
+
|
|
19
|
+
* **design-system:** Bumping major version.
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **design-system:** trigger major version bump ([bbec7c0](https://github.com/mollerdigital/design-system-design-system/commit/bbec7c025f9bbc73e66ac87a08b844a066abebb5))
|
|
24
|
+
* Wrap gnist css in [@layer](https://github.com/layer) gnist { ... } ([c513601](https://github.com/mollerdigital/design-system-design-system/commit/c513601b4831e7d02f08028cdf1f0cd4c42f60bc))
|
|
7
25
|
|
|
8
26
|
### Bug Fixes
|
|
9
27
|
|
|
10
|
-
*
|
|
28
|
+
* lint ([1c19f04](https://github.com/mollerdigital/design-system-design-system/commit/1c19f04a0aae90d887e3f26f4c31321bea84dced))
|
|
29
|
+
|
|
30
|
+
## [7.0.0-alpha.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@6.3.0-alpha.0...@gnist/design-system@7.0.0-alpha.0) (2026-05-21)
|
|
11
31
|
|
|
12
|
-
|
|
32
|
+
### ⚠ BREAKING CHANGES
|
|
33
|
+
|
|
34
|
+
* **design-system:** Bumping major version.
|
|
13
35
|
|
|
14
36
|
### Features
|
|
15
37
|
|
|
16
|
-
*
|
|
38
|
+
* **design-system:** trigger major version bump ([bbec7c0](https://github.com/mollerdigital/design-system-design-system/commit/bbec7c025f9bbc73e66ac87a08b844a066abebb5))
|
|
17
39
|
|
|
18
|
-
## [6.
|
|
40
|
+
## [6.3.0-alpha.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@6.2.2...@gnist/design-system@6.3.0-alpha.0) (2026-05-21)
|
|
19
41
|
|
|
20
|
-
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* Wrap gnist css in [@layer](https://github.com/layer) gnist { ... } ([c513601](https://github.com/mollerdigital/design-system-design-system/commit/c513601b4831e7d02f08028cdf1f0cd4c42f60bc))
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* lint ([1c19f04](https://github.com/mollerdigital/design-system-design-system/commit/1c19f04a0aae90d887e3f26f4c31321bea84dced))
|
|
21
49
|
|
|
22
50
|
## [6.2.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@6.2.1...@gnist/design-system@6.2.2) (2026-05-21)
|
|
23
51
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Multi-brand React component library for Møller
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
`@gnist/design-system` is a React component library containing reusable, multi-brand GUI building blocks for applications in the Møller ecosystem.
|
|
4
5
|
|
|
5
6
|
For instructions on developing components, see the [Development docs](#development).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
4
4
|
//#region src/building-blocks/inputs/internal/textBelowInput.css.ts
|
|
5
|
-
var textBelowInputRecipe = (0, require("@
|
|
5
|
+
var textBelowInputRecipe = (0, require("@gnist/themes/layers.css.js").gnistRecipe)({
|
|
6
6
|
base: [(0, _gnist_themes_atoms_css_js.atoms)({
|
|
7
7
|
typography: "detail-small",
|
|
8
8
|
paddingTop: "base",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
3
|
+
import { gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
4
4
|
//#region src/building-blocks/inputs/internal/textBelowInput.css.ts
|
|
5
|
-
var textBelowInputRecipe =
|
|
5
|
+
var textBelowInputRecipe = gnistRecipe({
|
|
6
6
|
base: [atoms({
|
|
7
7
|
typography: "detail-small",
|
|
8
8
|
paddingTop: "base",
|
|
@@ -3,12 +3,11 @@ require("../../../_virtual/_rolldown/runtime.cjs");
|
|
|
3
3
|
const require_animations_css = require("../../../styles/animations.css.cjs");
|
|
4
4
|
const require_states_css = require("../../../styles/states.css.cjs");
|
|
5
5
|
let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
6
|
-
let
|
|
6
|
+
let _gnist_themes_layers_css_js = require("@gnist/themes/layers.css.js");
|
|
7
7
|
let _gnist_themes_tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
8
8
|
let _vanilla_extract_css_utils = require("@vanilla-extract/css-utils");
|
|
9
|
-
let _vanilla_extract_css = require("@vanilla-extract/css");
|
|
10
9
|
//#region src/components/actions/buttons/styles.css.ts
|
|
11
|
-
var buttonBase = (0,
|
|
10
|
+
var buttonBase = (0, _gnist_themes_layers_css_js.gnistStyle)([
|
|
12
11
|
require_states_css.focusStyle,
|
|
13
12
|
require_animations_css.clickAnimation,
|
|
14
13
|
(0, _gnist_themes_atoms_css_js.atoms)({
|
|
@@ -34,12 +33,12 @@ var getColors = (variant) => (0, _gnist_themes_atoms_css_js.atoms)({
|
|
|
34
33
|
backgroundColor: variant,
|
|
35
34
|
color: `on-${variant}`
|
|
36
35
|
});
|
|
37
|
-
var textAndIconButton = (0,
|
|
36
|
+
var textAndIconButton = (0, _gnist_themes_layers_css_js.gnistStyle)([(0, _gnist_themes_atoms_css_js.atoms)({ height: "l" }), {
|
|
38
37
|
color: "inherit",
|
|
39
38
|
minWidth: 0,
|
|
40
39
|
flexShrink: 0
|
|
41
40
|
}]);
|
|
42
|
-
var buttonRecipe = (0,
|
|
41
|
+
var buttonRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
43
42
|
base: [buttonBase],
|
|
44
43
|
variants: {
|
|
45
44
|
isLoading: {
|
|
@@ -94,7 +93,7 @@ var buttonRecipe = (0, _vanilla_extract_recipes.recipe)({
|
|
|
94
93
|
}],
|
|
95
94
|
defaultVariants: { isLoading: false }
|
|
96
95
|
});
|
|
97
|
-
var boxedButton = (0,
|
|
96
|
+
var boxedButton = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
98
97
|
base: (0, _gnist_themes_atoms_css_js.atoms)({ columnGap: "base" }),
|
|
99
98
|
variants: { density: {
|
|
100
99
|
default: (0, _gnist_themes_atoms_css_js.atoms)({
|
|
@@ -108,13 +107,13 @@ var boxedButton = (0, _vanilla_extract_recipes.recipe)({
|
|
|
108
107
|
} },
|
|
109
108
|
defaultVariants: { density: "default" }
|
|
110
109
|
});
|
|
111
|
-
var iconButton = (0,
|
|
110
|
+
var iconButton = (0, _gnist_themes_layers_css_js.gnistRecipe)({ variants: { showLabel: {
|
|
112
111
|
left: { paddingLeft: _gnist_themes_tokens_css_js.tokens.spacing.base },
|
|
113
112
|
right: { paddingRight: _gnist_themes_tokens_css_js.tokens.spacing.base },
|
|
114
113
|
none: ""
|
|
115
114
|
} } });
|
|
116
|
-
var actionText = (0,
|
|
117
|
-
var textButtonText = (0,
|
|
115
|
+
var actionText = (0, _gnist_themes_layers_css_js.gnistStyle)({ fontWeight: _gnist_themes_tokens_css_js.tokens.typeface.weight.semibold });
|
|
116
|
+
var textButtonText = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
118
117
|
base: {
|
|
119
118
|
borderBottomStyle: "solid",
|
|
120
119
|
borderBottomWidth: _gnist_themes_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,12 +2,11 @@
|
|
|
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 {
|
|
5
|
+
import { gnistRecipe, gnistStyle } from "@gnist/themes/layers.css.js";
|
|
6
6
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
7
7
|
import { calc } from "@vanilla-extract/css-utils";
|
|
8
|
-
import { style } from "@vanilla-extract/css";
|
|
9
8
|
//#region src/components/actions/buttons/styles.css.ts
|
|
10
|
-
var buttonBase =
|
|
9
|
+
var buttonBase = gnistStyle([
|
|
11
10
|
focusStyle,
|
|
12
11
|
clickAnimation,
|
|
13
12
|
atoms({
|
|
@@ -33,12 +32,12 @@ var getColors = (variant) => atoms({
|
|
|
33
32
|
backgroundColor: variant,
|
|
34
33
|
color: `on-${variant}`
|
|
35
34
|
});
|
|
36
|
-
var textAndIconButton =
|
|
35
|
+
var textAndIconButton = gnistStyle([atoms({ height: "l" }), {
|
|
37
36
|
color: "inherit",
|
|
38
37
|
minWidth: 0,
|
|
39
38
|
flexShrink: 0
|
|
40
39
|
}]);
|
|
41
|
-
var buttonRecipe =
|
|
40
|
+
var buttonRecipe = gnistRecipe({
|
|
42
41
|
base: [buttonBase],
|
|
43
42
|
variants: {
|
|
44
43
|
isLoading: {
|
|
@@ -93,7 +92,7 @@ var buttonRecipe = recipe({
|
|
|
93
92
|
}],
|
|
94
93
|
defaultVariants: { isLoading: false }
|
|
95
94
|
});
|
|
96
|
-
var boxedButton =
|
|
95
|
+
var boxedButton = gnistRecipe({
|
|
97
96
|
base: atoms({ columnGap: "base" }),
|
|
98
97
|
variants: { density: {
|
|
99
98
|
default: atoms({
|
|
@@ -107,13 +106,13 @@ var boxedButton = recipe({
|
|
|
107
106
|
} },
|
|
108
107
|
defaultVariants: { density: "default" }
|
|
109
108
|
});
|
|
110
|
-
var iconButton =
|
|
109
|
+
var iconButton = gnistRecipe({ variants: { showLabel: {
|
|
111
110
|
left: { paddingLeft: tokens.spacing.base },
|
|
112
111
|
right: { paddingRight: tokens.spacing.base },
|
|
113
112
|
none: ""
|
|
114
113
|
} } });
|
|
115
|
-
var actionText =
|
|
116
|
-
var textButtonText =
|
|
114
|
+
var actionText = gnistStyle({ fontWeight: tokens.typeface.weight.semibold });
|
|
115
|
+
var textButtonText = gnistRecipe({
|
|
117
116
|
base: {
|
|
118
117
|
borderBottomStyle: "solid",
|
|
119
118
|
borderBottomWidth: tokens.stroke.medium
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
4
|
-
let
|
|
4
|
+
let _gnist_themes_layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
5
|
let _gnist_themes_tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
6
|
let _vanilla_extract_css_utils = require("@vanilla-extract/css-utils");
|
|
7
7
|
//#region src/components/actions/chips/styles.css.ts
|
|
8
|
-
var chipBase = (0,
|
|
8
|
+
var chipBase = (0, _gnist_themes_layers_css_js.gnistStyle)({
|
|
9
9
|
display: "flex",
|
|
10
10
|
gap: _gnist_themes_tokens_css_js.tokens.spacing.base,
|
|
11
11
|
textWrap: "nowrap",
|
|
@@ -19,7 +19,7 @@ var chipBase = (0, require("@vanilla-extract/css").style)({
|
|
|
19
19
|
minHeight: _gnist_themes_tokens_css_js.tokens.size.xl,
|
|
20
20
|
justifyContent: "center"
|
|
21
21
|
});
|
|
22
|
-
var chipRecipe = (0,
|
|
22
|
+
var chipRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
23
23
|
base: chipBase,
|
|
24
24
|
variants: {
|
|
25
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,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
3
|
+
import { gnistRecipe, gnistStyle } from "@gnist/themes/layers.css.js";
|
|
4
4
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
5
|
import { calc } from "@vanilla-extract/css-utils";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
base: style({
|
|
6
|
+
var chipRecipe = gnistRecipe({
|
|
7
|
+
base: gnistStyle({
|
|
9
8
|
display: "flex",
|
|
10
9
|
gap: tokens.spacing.base,
|
|
11
10
|
textWrap: "nowrap",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
4
|
-
let
|
|
4
|
+
let _gnist_themes_layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
5
|
let _gnist_themes_tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
6
|
//#region src/components/actions/selectionControls/checkbox.css.ts
|
|
7
|
-
var CheckboxRecipe = (0,
|
|
7
|
+
var CheckboxRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
8
8
|
base: [{
|
|
9
9
|
borderStyle: "solid",
|
|
10
10
|
boxSizing: "border-box"
|
|
@@ -63,7 +63,7 @@ var CheckboxRecipe = (0, _vanilla_extract_recipes.recipe)({
|
|
|
63
63
|
}
|
|
64
64
|
]
|
|
65
65
|
});
|
|
66
|
-
var checkbox = (0,
|
|
66
|
+
var checkbox = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
67
67
|
base: [(0, _gnist_themes_atoms_css_js.atoms)({ color: "surface" }), {
|
|
68
68
|
display: "flex",
|
|
69
69
|
alignItems: "center"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
3
|
+
import { gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
4
4
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
5
|
//#region src/components/actions/selectionControls/checkbox.css.ts
|
|
6
|
-
var CheckboxRecipe =
|
|
6
|
+
var CheckboxRecipe = gnistRecipe({
|
|
7
7
|
base: [{
|
|
8
8
|
borderStyle: "solid",
|
|
9
9
|
boxSizing: "border-box"
|
|
@@ -62,7 +62,7 @@ var CheckboxRecipe = recipe({
|
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
64
|
});
|
|
65
|
-
var checkbox =
|
|
65
|
+
var checkbox = gnistRecipe({
|
|
66
66
|
base: [atoms({ color: "surface" }), {
|
|
67
67
|
display: "flex",
|
|
68
68
|
alignItems: "center"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
4
|
-
let
|
|
4
|
+
let _gnist_themes_layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
5
|
let _gnist_themes_tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
6
|
//#region src/components/actions/selectionControls/radiobutton.css.ts
|
|
7
|
-
var RadioButtonRecipe = (0,
|
|
7
|
+
var RadioButtonRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
8
8
|
base: [(0, _gnist_themes_atoms_css_js.atoms)({
|
|
9
9
|
height: "s",
|
|
10
10
|
width: "s"
|
|
@@ -36,7 +36,7 @@ var RadioButtonRecipe = (0, _vanilla_extract_recipes.recipe)({
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
var CheckedCircleRecipe = (0,
|
|
39
|
+
var CheckedCircleRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
40
40
|
base: [(0, _gnist_themes_atoms_css_js.atoms)({
|
|
41
41
|
display: "inline",
|
|
42
42
|
borderRadius: "full",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
3
|
+
import { gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
4
4
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
5
|
//#region src/components/actions/selectionControls/radiobutton.css.ts
|
|
6
|
-
var RadioButtonRecipe =
|
|
6
|
+
var RadioButtonRecipe = gnistRecipe({
|
|
7
7
|
base: [atoms({
|
|
8
8
|
height: "s",
|
|
9
9
|
width: "s"
|
|
@@ -35,7 +35,7 @@ var RadioButtonRecipe = recipe({
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
var CheckedCircleRecipe =
|
|
38
|
+
var CheckedCircleRecipe = gnistRecipe({
|
|
39
39
|
base: [atoms({
|
|
40
40
|
display: "inline",
|
|
41
41
|
borderRadius: "full",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
4
|
-
let
|
|
4
|
+
let _gnist_themes_layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
5
|
//#region src/components/actions/selectionControls/radiogroup.css.ts
|
|
6
|
-
var fieldSetStyle = (0,
|
|
6
|
+
var fieldSetStyle = (0, _gnist_themes_layers_css_js.gnistStyle)([{ border: "none" }, (0, _gnist_themes_atoms_css_js.atoms)({
|
|
7
7
|
padding: "none",
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: "column",
|
|
10
10
|
gap: "base"
|
|
11
11
|
})]);
|
|
12
12
|
var legendStyle = (0, _gnist_themes_atoms_css_js.atoms)({ marginBottom: "base" });
|
|
13
|
-
var radioContainerStyle = (0,
|
|
13
|
+
var radioContainerStyle = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
14
14
|
base: [(0, _gnist_themes_atoms_css_js.atoms)({
|
|
15
15
|
display: "flex",
|
|
16
16
|
gap: "xs"
|
|
@@ -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,16 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
4
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { gnistRecipe, gnistStyle } from "@gnist/themes/layers.css.js";
|
|
5
4
|
//#region src/components/actions/selectionControls/radiogroup.css.ts
|
|
6
|
-
var fieldSetStyle =
|
|
5
|
+
var fieldSetStyle = gnistStyle([{ border: "none" }, atoms({
|
|
7
6
|
padding: "none",
|
|
8
7
|
display: "flex",
|
|
9
8
|
flexDirection: "column",
|
|
10
9
|
gap: "base"
|
|
11
10
|
})]);
|
|
12
11
|
var legendStyle = atoms({ marginBottom: "base" });
|
|
13
|
-
var radioContainerStyle =
|
|
12
|
+
var radioContainerStyle = gnistRecipe({
|
|
14
13
|
base: [atoms({
|
|
15
14
|
display: "flex",
|
|
16
15
|
gap: "xs"
|
|
@@ -2,19 +2,18 @@
|
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_states_css = require("../../../styles/states.css.cjs");
|
|
4
4
|
let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
5
|
-
let
|
|
5
|
+
let _gnist_themes_layers_css_js = require("@gnist/themes/layers.css.js");
|
|
6
6
|
let _gnist_themes_tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
7
7
|
let _vanilla_extract_css_utils = require("@vanilla-extract/css-utils");
|
|
8
|
-
let _vanilla_extract_css = require("@vanilla-extract/css");
|
|
9
8
|
//#region src/components/actions/selectionControls/shared.css.ts
|
|
10
|
-
var InputWrapper = (0,
|
|
9
|
+
var InputWrapper = (0, _gnist_themes_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
|
-
var LabelStyle = (0,
|
|
17
|
-
var LabelRecipe = (0,
|
|
15
|
+
var LabelStyle = (0, _gnist_themes_layers_css_js.gnistStyle)([{ alignSelf: "center" }]);
|
|
16
|
+
var LabelRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
18
17
|
base: [
|
|
19
18
|
{
|
|
20
19
|
display: "flex",
|
|
@@ -30,7 +29,7 @@ var LabelRecipe = (0, _vanilla_extract_recipes.recipe)({
|
|
|
30
29
|
],
|
|
31
30
|
variants: { disabled: { true: [(0, _gnist_themes_atoms_css_js.atoms)({ color: "on-disabled" }), { cursor: "not-allowed" }] } }
|
|
32
31
|
});
|
|
33
|
-
var InputStyleRecipe = (0,
|
|
32
|
+
var InputStyleRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
34
33
|
base: [{
|
|
35
34
|
position: "absolute",
|
|
36
35
|
width: "100%",
|
|
@@ -45,7 +44,7 @@ var InputStyleRecipe = (0, _vanilla_extract_recipes.recipe)({
|
|
|
45
44
|
}, require_states_css.focusStyle],
|
|
46
45
|
variants: { disabled: { true: [{ cursor: "not-allowed" }] } }
|
|
47
46
|
});
|
|
48
|
-
var indentedDescriptionStyle = (0,
|
|
47
|
+
var indentedDescriptionStyle = (0, _gnist_themes_layers_css_js.gnistStyle)({ paddingLeft: _vanilla_extract_css_utils.calc.add(_gnist_themes_tokens_css_js.tokens.size.s, _vanilla_extract_css_utils.calc.multiply(_gnist_themes_tokens_css_js.tokens.spacing.base, 3)) });
|
|
49
48
|
//#endregion
|
|
50
49
|
exports.InputStyleRecipe = InputStyleRecipe;
|
|
51
50
|
exports.InputWrapper = InputWrapper;
|
|
@@ -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,19 +1,18 @@
|
|
|
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 {
|
|
4
|
+
import { gnistRecipe, gnistStyle } from "@gnist/themes/layers.css.js";
|
|
5
5
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
6
6
|
import { calc } from "@vanilla-extract/css-utils";
|
|
7
|
-
import { style } from "@vanilla-extract/css";
|
|
8
7
|
//#region src/components/actions/selectionControls/shared.css.ts
|
|
9
|
-
var InputWrapper =
|
|
8
|
+
var InputWrapper = gnistStyle({
|
|
10
9
|
position: "relative",
|
|
11
10
|
display: "flex",
|
|
12
11
|
width: "fit-content",
|
|
13
12
|
height: "fit-content"
|
|
14
13
|
});
|
|
15
|
-
var LabelStyle =
|
|
16
|
-
var LabelRecipe =
|
|
14
|
+
var LabelStyle = gnistStyle([{ alignSelf: "center" }]);
|
|
15
|
+
var LabelRecipe = gnistRecipe({
|
|
17
16
|
base: [
|
|
18
17
|
{
|
|
19
18
|
display: "flex",
|
|
@@ -29,7 +28,7 @@ var LabelRecipe = recipe({
|
|
|
29
28
|
],
|
|
30
29
|
variants: { disabled: { true: [atoms({ color: "on-disabled" }), { cursor: "not-allowed" }] } }
|
|
31
30
|
});
|
|
32
|
-
var InputStyleRecipe =
|
|
31
|
+
var InputStyleRecipe = gnistRecipe({
|
|
33
32
|
base: [{
|
|
34
33
|
position: "absolute",
|
|
35
34
|
width: "100%",
|
|
@@ -44,6 +43,6 @@ var InputStyleRecipe = recipe({
|
|
|
44
43
|
}, focusStyle],
|
|
45
44
|
variants: { disabled: { true: [{ cursor: "not-allowed" }] } }
|
|
46
45
|
});
|
|
47
|
-
var indentedDescriptionStyle =
|
|
46
|
+
var indentedDescriptionStyle = gnistStyle({ paddingLeft: calc.add(tokens.size.s, calc.multiply(tokens.spacing.base, 3)) });
|
|
48
47
|
//#endregion
|
|
49
48
|
export { InputStyleRecipe, InputWrapper, LabelRecipe, LabelStyle, indentedDescriptionStyle };
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _gnist_themes_atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
4
|
-
let
|
|
4
|
+
let _gnist_themes_layers_css_js = require("@gnist/themes/layers.css.js");
|
|
5
5
|
let _gnist_themes_tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
6
|
let _vanilla_extract_css_utils = require("@vanilla-extract/css-utils");
|
|
7
|
-
let _vanilla_extract_css = require("@vanilla-extract/css");
|
|
8
7
|
//#region src/components/actions/selectionControls/switch.css.ts
|
|
9
|
-
var focusContainer = (0,
|
|
8
|
+
var focusContainer = (0, _gnist_themes_layers_css_js.gnistStyle)({
|
|
10
9
|
display: "inline-flex",
|
|
11
10
|
alignItems: "center",
|
|
12
11
|
position: "relative",
|
|
13
12
|
flexShrink: 0
|
|
14
13
|
});
|
|
15
|
-
var switchField = (0,
|
|
14
|
+
var switchField = (0, _gnist_themes_layers_css_js.gnistStyle)({
|
|
16
15
|
display: "inline-flex",
|
|
17
16
|
flexDirection: "column",
|
|
18
17
|
gap: _gnist_themes_tokens_css_js.tokens.spacing.base
|
|
19
18
|
});
|
|
20
|
-
var switchRow = (0,
|
|
19
|
+
var switchRow = (0, _gnist_themes_layers_css_js.gnistStyle)({
|
|
21
20
|
display: "inline-flex",
|
|
22
21
|
alignItems: "center",
|
|
23
22
|
gap: _gnist_themes_tokens_css_js.tokens.spacing.xxs
|
|
24
23
|
});
|
|
25
|
-
var switchLabelContent = (0,
|
|
24
|
+
var switchLabelContent = (0, _gnist_themes_layers_css_js.gnistStyle)({
|
|
26
25
|
display: "inline-flex",
|
|
27
26
|
flexDirection: "column",
|
|
28
27
|
gap: _gnist_themes_tokens_css_js.tokens.spacing.base,
|
|
29
28
|
minWidth: 0
|
|
30
29
|
});
|
|
31
|
-
var switchContainer = (0,
|
|
30
|
+
var switchContainer = (0, _gnist_themes_layers_css_js.gnistStyle)([{
|
|
32
31
|
position: "relative",
|
|
33
32
|
display: "inline-flex",
|
|
34
33
|
alignItems: "center",
|
|
@@ -41,7 +40,7 @@ var switchContainer = (0, _vanilla_extract_css.style)([{
|
|
|
41
40
|
width: "xxl",
|
|
42
41
|
height: "m"
|
|
43
42
|
})]);
|
|
44
|
-
var SwitchRecipe = (0,
|
|
43
|
+
var SwitchRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
45
44
|
base: [switchContainer, {
|
|
46
45
|
borderWidth: _gnist_themes_tokens_css_js.tokens.stroke.small,
|
|
47
46
|
borderStyle: "solid",
|
|
@@ -82,7 +81,7 @@ var SwitchRecipe = (0, _vanilla_extract_recipes.recipe)({
|
|
|
82
81
|
})]
|
|
83
82
|
}]
|
|
84
83
|
});
|
|
85
|
-
var switchThumb = (0,
|
|
84
|
+
var switchThumb = (0, _gnist_themes_layers_css_js.gnistStyle)({
|
|
86
85
|
position: "absolute",
|
|
87
86
|
top: "50%",
|
|
88
87
|
transform: "translateY(-50%)",
|
|
@@ -94,7 +93,7 @@ var switchThumb = (0, _vanilla_extract_css.style)({
|
|
|
94
93
|
backgroundColor: _gnist_themes_tokens_css_js.tokens.color.surface,
|
|
95
94
|
selectors: { [`${focusContainer}:has(input:not(:disabled):active) &`]: { transform: "translateY(-50%) scale(0.94)" } }
|
|
96
95
|
});
|
|
97
|
-
var SwitchThumbRecipe = (0,
|
|
96
|
+
var SwitchThumbRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
98
97
|
base: [
|
|
99
98
|
switchThumb,
|
|
100
99
|
(0, _gnist_themes_atoms_css_js.atoms)({
|
|
@@ -128,26 +127,26 @@ var SwitchThumbRecipe = (0, _vanilla_extract_recipes.recipe)({
|
|
|
128
127
|
style: [(0, _gnist_themes_atoms_css_js.atoms)({ borderColor: "surface" })]
|
|
129
128
|
}]
|
|
130
129
|
});
|
|
131
|
-
var switchThumbIcon = (0,
|
|
130
|
+
var switchThumbIcon = (0, _gnist_themes_layers_css_js.gnistStyle)([{
|
|
132
131
|
display: "inline-flex",
|
|
133
132
|
alignItems: "center",
|
|
134
133
|
justifyContent: "center",
|
|
135
134
|
lineHeight: 0,
|
|
136
135
|
pointerEvents: "none"
|
|
137
136
|
}, (0, _gnist_themes_atoms_css_js.atoms)({ color: "on-surface" })]);
|
|
138
|
-
var switchLabel = (0,
|
|
137
|
+
var switchLabel = (0, _gnist_themes_layers_css_js.gnistStyle)([{
|
|
139
138
|
userSelect: "none",
|
|
140
139
|
fontSize: _gnist_themes_tokens_css_js.tokens.type.small.body.fontSize,
|
|
141
140
|
lineHeight: _gnist_themes_tokens_css_js.tokens.typeface.size.xl
|
|
142
141
|
}, (0, _gnist_themes_atoms_css_js.atoms)({ color: "on-surface" })]);
|
|
143
|
-
var SwitchLabelRecipe = (0,
|
|
142
|
+
var SwitchLabelRecipe = (0, _gnist_themes_layers_css_js.gnistRecipe)({
|
|
144
143
|
base: [switchLabel],
|
|
145
144
|
variants: { disabled: {
|
|
146
145
|
true: [(0, _gnist_themes_atoms_css_js.atoms)({ color: "on-disabled" })],
|
|
147
146
|
false: {}
|
|
148
147
|
} }
|
|
149
148
|
});
|
|
150
|
-
var switchDescription = (0,
|
|
149
|
+
var switchDescription = (0, _gnist_themes_layers_css_js.gnistStyle)([(0, _gnist_themes_atoms_css_js.atoms)({ color: "text-variant" })]);
|
|
151
150
|
//#endregion
|
|
152
151
|
exports.SwitchLabelRecipe = SwitchLabelRecipe;
|
|
153
152
|
exports.SwitchRecipe = SwitchRecipe;
|
|
@@ -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"}
|