@gnist/design-system 6.0.0-alpha.3 → 6.0.0
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 +10 -16
- package/README.md +11 -8
- 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 +9 -8
- package/dist/components/actions/buttons/styles.css.d.ts.map +1 -1
- package/dist/components/actions/buttons/styles.css.js +9 -8
- package/dist/components/actions/chips/styles.css.cjs +4 -3
- package/dist/components/actions/chips/styles.css.d.ts.map +1 -1
- package/dist/components/actions/chips/styles.css.js +4 -3
- 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 +4 -3
- package/dist/components/actions/selectionControls/radiogroup.css.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/radiogroup.css.js +4 -3
- package/dist/components/actions/selectionControls/shared.css.cjs +7 -6
- package/dist/components/actions/selectionControls/shared.css.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/shared.css.js +7 -6
- package/dist/components/actions/selectionControls/switch.css.cjs +14 -13
- package/dist/components/actions/selectionControls/switch.css.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/switch.css.js +14 -13
- package/dist/components/feedback/alerts/AlertBanner.css.cjs +8 -7
- package/dist/components/feedback/alerts/AlertBanner.css.d.ts.map +1 -1
- package/dist/components/feedback/alerts/AlertBanner.css.js +8 -7
- package/dist/components/feedback/loaders/loadingBar.css.cjs +2 -3
- package/dist/components/feedback/loaders/loadingBar.css.d.ts.map +1 -1
- package/dist/components/feedback/loaders/loadingBar.css.js +3 -4
- package/dist/components/feedback/loaders/loadingSpinner.css.cjs +1 -2
- package/dist/components/feedback/loaders/loadingSpinner.css.d.ts.map +1 -1
- package/dist/components/feedback/loaders/loadingSpinner.css.js +2 -3
- 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 +3 -4
- package/dist/components/feedback/progress/ProgressBar.css.d.ts.map +1 -1
- package/dist/components/feedback/progress/ProgressBar.css.js +4 -5
- 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 +6 -5
- package/dist/components/inputs/shared-styles/inputField.css.d.ts.map +1 -1
- package/dist/components/inputs/shared-styles/inputField.css.js +6 -5
- 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 +1 -2
- package/dist/components/progress/spinner.css.d.ts.map +1 -1
- package/dist/components/progress/spinner.css.js +2 -3
- 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 +5 -4
- package/dist/components/surfaces/cards/cards.css.d.ts.map +1 -1
- package/dist/components/surfaces/cards/cards.css.js +5 -4
- 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/fonts/VW/VWHeadWeb-Bold.woff2.cjs +1 -1
- package/dist/fonts/VW/VWHeadWeb-Bold.woff2.js +1 -1
- package/dist/fonts/VW/VWHeadWeb-ExtraBold.woff2.cjs +1 -1
- package/dist/fonts/VW/VWHeadWeb-ExtraBold.woff2.js +1 -1
- package/dist/fonts/VW/VWHeadWeb-Regular.woff2.cjs +1 -1
- package/dist/fonts/VW/VWHeadWeb-Regular.woff2.js +1 -1
- package/dist/fonts/VW/VWTextWeb-Bold.woff2.cjs +1 -1
- package/dist/fonts/VW/VWTextWeb-Bold.woff2.js +1 -1
- package/dist/fonts/VW/VWTextWeb-Regular.woff2.cjs +1 -1
- package/dist/fonts/VW/VWTextWeb-Regular.woff2.js +1 -1
- package/dist/fonts/audi/AudiType-Bold_4.03.woff2.cjs +1 -1
- package/dist/fonts/audi/AudiType-Bold_4.03.woff2.js +1 -1
- package/dist/fonts/audi/AudiType-ExtendedBold_4.03.woff2.cjs +1 -1
- package/dist/fonts/audi/AudiType-ExtendedBold_4.03.woff2.js +1 -1
- package/dist/fonts/audi/AudiType-ExtendedNormal_4.03.woff2.cjs +1 -1
- package/dist/fonts/audi/AudiType-ExtendedNormal_4.03.woff2.js +1 -1
- package/dist/fonts/audi/AudiType-Normal_4.03.woff2.cjs +1 -1
- package/dist/fonts/audi/AudiType-Normal_4.03.woff2.js +1 -1
- package/dist/fonts/autoria/Texgyreheros-Bold.woff2.cjs +1 -1
- package/dist/fonts/autoria/Texgyreheros-Bold.woff2.js +1 -1
- package/dist/fonts/autoria/Texgyreheros-Regular.woff2.cjs +1 -1
- package/dist/fonts/autoria/Texgyreheros-Regular.woff2.js +1 -1
- package/dist/fonts/bilhold/GeistVariableVF.woff2.cjs +5 -0
- package/dist/fonts/bilhold/GeistVariableVF.woff2.js +5 -0
- package/dist/fonts/bilhold/index.cjs +0 -1
- package/dist/fonts/bilhold/index.d.ts +0 -1
- package/dist/fonts/bilhold/index.d.ts.map +1 -1
- package/dist/fonts/bilhold/index.js +0 -1
- package/dist/fonts/bilhold/regular.css.cjs +4 -3
- package/dist/fonts/bilhold/regular.css.js +4 -3
- package/dist/fonts/cupra/Cupra-Bold.woff2.cjs +1 -1
- package/dist/fonts/cupra/Cupra-Bold.woff2.js +1 -1
- package/dist/fonts/cupra/Cupra-Book.woff2.cjs +1 -1
- package/dist/fonts/cupra/Cupra-Book.woff2.js +1 -1
- package/dist/fonts/cupra/Cupra-Medium.woff2.cjs +1 -1
- package/dist/fonts/cupra/Cupra-Medium.woff2.js +1 -1
- package/dist/fonts/cupra/Cupra-Regular.woff2.cjs +1 -1
- package/dist/fonts/cupra/Cupra-Regular.woff2.js +1 -1
- package/dist/fonts/dahles/SourceSans3-Bold.woff2.cjs +1 -1
- package/dist/fonts/dahles/SourceSans3-Bold.woff2.js +1 -1
- package/dist/fonts/dahles/SourceSans3-Medium.woff2.cjs +1 -1
- package/dist/fonts/dahles/SourceSans3-Medium.woff2.js +1 -1
- package/dist/fonts/dahles/SourceSans3-Regular.woff2.cjs +1 -1
- package/dist/fonts/dahles/SourceSans3-Regular.woff2.js +1 -1
- package/dist/fonts/dahles/SourceSans3-SemiBold.woff2.cjs +1 -1
- package/dist/fonts/dahles/SourceSans3-SemiBold.woff2.js +1 -1
- package/dist/fonts/gumpen/ES-Build-Bold.woff2.cjs +1 -1
- package/dist/fonts/gumpen/ES-Build-Bold.woff2.js +1 -1
- package/dist/fonts/gumpen/ES-Build-Medium.woff2.cjs +1 -1
- package/dist/fonts/gumpen/ES-Build-Medium.woff2.js +1 -1
- package/dist/fonts/gumpen/ES-Build-Regular.woff2.cjs +1 -1
- package/dist/fonts/gumpen/ES-Build-Regular.woff2.js +1 -1
- package/dist/fonts/gumpen/ES-Build-SemiBold.woff2.cjs +1 -1
- package/dist/fonts/gumpen/ES-Build-SemiBold.woff2.js +1 -1
- package/dist/fonts/moller/Larken-Bold.woff2.cjs +1 -1
- package/dist/fonts/moller/Larken-Bold.woff2.js +1 -1
- package/dist/fonts/moller/moller-bold-webfont.woff2.cjs +1 -1
- package/dist/fonts/moller/moller-bold-webfont.woff2.js +1 -1
- package/dist/fonts/moller/moller-book-webfont.woff2.cjs +1 -1
- package/dist/fonts/moller/moller-book-webfont.woff2.js +1 -1
- package/dist/fonts/moller/moller-medium-webfont.woff2.cjs +1 -1
- package/dist/fonts/moller/moller-medium-webfont.woff2.js +1 -1
- package/dist/fonts/moller/moller-regular-webfont.woff2.cjs +1 -1
- package/dist/fonts/moller/moller-regular-webfont.woff2.js +1 -1
- package/dist/fonts/seat/SEATBCN-Bold.woff2.cjs +1 -1
- package/dist/fonts/seat/SEATBCN-Bold.woff2.js +1 -1
- package/dist/fonts/seat/SEATBCN-Light.woff2.cjs +1 -1
- package/dist/fonts/seat/SEATBCN-Light.woff2.js +1 -1
- package/dist/fonts/seat/SEATBCN-Medium.woff2.cjs +1 -1
- package/dist/fonts/seat/SEATBCN-Medium.woff2.js +1 -1
- package/dist/fonts/seat/SEATBCN-Regular.woff2.cjs +1 -1
- package/dist/fonts/seat/SEATBCN-Regular.woff2.js +1 -1
- package/dist/fonts/skoda/SKODANextW07-Bold.woff2.cjs +1 -1
- package/dist/fonts/skoda/SKODANextW07-Bold.woff2.js +1 -1
- package/dist/fonts/skoda/SKODANextW07-Thin.woff2.cjs +1 -1
- package/dist/fonts/skoda/SKODANextW07-Thin.woff2.js +1 -1
- package/dist/fonts/tools/GeistVariableVF.woff2.cjs +1 -1
- package/dist/fonts/tools/GeistVariableVF.woff2.js +1 -1
- package/dist/foundation/iconography/Icon.css.cjs +2 -3
- package/dist/foundation/iconography/Icon.css.d.ts.map +1 -1
- package/dist/foundation/iconography/Icon.css.js +3 -4
- package/dist/foundation/iconography/icons.d.ts +1 -1
- package/dist/foundation/iconography/icons.d.ts.map +1 -1
- package/dist/foundation/iconography/svg/action/index.cjs +0 -22
- package/dist/foundation/iconography/svg/action/index.d.ts +0 -52
- package/dist/foundation/iconography/svg/action/index.d.ts.map +1 -1
- package/dist/foundation/iconography/svg/action/index.js +0 -22
- package/dist/foundation/iconography/svg/action/tire-filled.svg.cjs +1 -1
- package/dist/foundation/iconography/svg/action/tire-filled.svg.js +1 -1
- package/dist/foundation/iconography/svg/action/tire-outlined.svg.cjs +1 -1
- package/dist/foundation/iconography/svg/action/tire-outlined.svg.js +1 -1
- package/dist/foundation/iconography/svg/action/tire-round.svg.cjs +1 -1
- package/dist/foundation/iconography/svg/action/tire-round.svg.js +1 -1
- package/dist/foundation/iconography/svg/action/tire-sharp.svg.cjs +1 -1
- package/dist/foundation/iconography/svg/action/tire-sharp.svg.js +1 -1
- package/dist/foundation/logos/Logo.css.cjs +4 -5
- package/dist/foundation/logos/Logo.css.d.ts.map +1 -1
- package/dist/foundation/logos/Logo.css.js +5 -6
- 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 +5 -4
- package/dist/styles/states.css.d.ts.map +1 -1
- package/dist/styles/states.css.js +5 -4
- 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/dist/fonts/bilhold/Figtree-Bold.woff2.cjs +0 -5
- package/dist/fonts/bilhold/Figtree-Bold.woff2.js +0 -5
- package/dist/fonts/bilhold/Figtree-Medium.woff2.cjs +0 -5
- package/dist/fonts/bilhold/Figtree-Medium.woff2.js +0 -5
- package/dist/fonts/bilhold/Figtree-Regular.woff2.cjs +0 -5
- package/dist/fonts/bilhold/Figtree-Regular.woff2.js +0 -5
- package/dist/fonts/bilhold/Figtree-SemiBold.woff2.cjs +0 -5
- package/dist/fonts/bilhold/Figtree-SemiBold.woff2.js +0 -5
- package/dist/fonts/bilhold/bold.css.cjs +0 -10
- package/dist/fonts/bilhold/bold.css.d.ts +0 -2
- package/dist/fonts/bilhold/bold.css.d.ts.map +0 -1
- package/dist/fonts/bilhold/bold.css.js +0 -9
- package/dist/fonts/bilhold/medium.css.cjs +0 -10
- package/dist/fonts/bilhold/medium.css.d.ts +0 -2
- package/dist/fonts/bilhold/medium.css.d.ts.map +0 -1
- package/dist/fonts/bilhold/medium.css.js +0 -9
- package/dist/fonts/bilhold/semibold.css.cjs +0 -10
- package/dist/fonts/bilhold/semibold.css.d.ts +0 -2
- package/dist/fonts/bilhold/semibold.css.d.ts.map +0 -1
- package/dist/fonts/bilhold/semibold.css.js +0 -9
- package/dist/foundation/iconography/svg/action/automatic_gear-filled.svg.cjs +0 -28
- package/dist/foundation/iconography/svg/action/automatic_gear-filled.svg.js +0 -10
- package/dist/foundation/iconography/svg/action/automatic_gear-outlined.svg.cjs +0 -28
- package/dist/foundation/iconography/svg/action/automatic_gear-outlined.svg.js +0 -10
- package/dist/foundation/iconography/svg/action/automatic_gear-round.svg.cjs +0 -28
- package/dist/foundation/iconography/svg/action/automatic_gear-round.svg.js +0 -10
- package/dist/foundation/iconography/svg/action/automatic_gear-sharp.svg.cjs +0 -28
- package/dist/foundation/iconography/svg/action/automatic_gear-sharp.svg.js +0 -10
- package/dist/foundation/iconography/svg/action/binoculars-filled.svg.cjs +0 -28
- package/dist/foundation/iconography/svg/action/binoculars-filled.svg.js +0 -10
- package/dist/foundation/iconography/svg/action/binoculars-outlined.svg.cjs +0 -28
- package/dist/foundation/iconography/svg/action/binoculars-outlined.svg.js +0 -10
- package/dist/foundation/iconography/svg/action/binoculars-round.svg.cjs +0 -28
- package/dist/foundation/iconography/svg/action/binoculars-round.svg.js +0 -10
- package/dist/foundation/iconography/svg/action/binoculars-sharp.svg.cjs +0 -28
- package/dist/foundation/iconography/svg/action/binoculars-sharp.svg.js +0 -10
|
@@ -2,18 +2,19 @@
|
|
|
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");
|
|
6
5
|
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 recipes = require("@vanilla-extract/recipes");
|
|
8
9
|
const inputFieldConstants_css = require("./inputFieldConstants.css.cjs");
|
|
9
10
|
const borderStyle = (borderColor, isFocused) => `0 0 0 ${isFocused ? tokens_css_js.tokens.stroke.medium : tokens_css_js.tokens.stroke.small} ${borderColor}`;
|
|
10
11
|
const textAreaHeight = cssUtils.calc(cssUtils.calc(inputFieldConstants_css.visibleLines).multiply("1.5rem")).add(cssUtils.calc(tokens_css_js.tokens.spacing.xxs).multiply(2)).toString();
|
|
11
|
-
const wrapperStyle =
|
|
12
|
+
const wrapperStyle = css.style({
|
|
12
13
|
position: "relative",
|
|
13
14
|
display: "inline-block",
|
|
14
15
|
minWidth: "min(100%, 280px)"
|
|
15
16
|
});
|
|
16
|
-
const inputFieldWrapperRecipe =
|
|
17
|
+
const inputFieldWrapperRecipe = recipes.recipe({
|
|
17
18
|
base: [
|
|
18
19
|
atoms_css_js.atoms({
|
|
19
20
|
marginTop: "xxs",
|
|
@@ -92,7 +93,7 @@ const inputFieldWrapperRecipe = layers_css_js.gnistRecipe({
|
|
|
92
93
|
validityType: "none"
|
|
93
94
|
}
|
|
94
95
|
});
|
|
95
|
-
const inputFieldStyle =
|
|
96
|
+
const inputFieldStyle = css.style([
|
|
96
97
|
atoms_css_js.atoms({ color: "on-surface" }),
|
|
97
98
|
{
|
|
98
99
|
boxSizing: "border-box",
|
|
@@ -116,7 +117,7 @@ const inputFieldStyle = layers_css_js.gnistStyle([
|
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
]);
|
|
119
|
-
const inputContentWrapper =
|
|
120
|
+
const inputContentWrapper = recipes.recipe({
|
|
120
121
|
base: [
|
|
121
122
|
atoms_css_js.atoms({
|
|
122
123
|
paddingLeft: "s",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputField.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/shared-styles/inputField.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inputField.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/shared-styles/inputField.css.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,YAAY,QAIvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8ElC,CAAC;AAEH,eAAO,MAAM,eAAe,QAuB1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;EAyB9B,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import { gnistStyle, gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
4
3
|
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
|
+
import { recipe } from "@vanilla-extract/recipes";
|
|
6
7
|
import { visibleLines, transitionTime, postInputWidth, preInputWidth } from "./inputFieldConstants.css.js";
|
|
7
8
|
const borderStyle = (borderColor, isFocused) => `0 0 0 ${isFocused ? tokens.stroke.medium : tokens.stroke.small} ${borderColor}`;
|
|
8
9
|
const textAreaHeight = calc(calc(visibleLines).multiply("1.5rem")).add(calc(tokens.spacing.xxs).multiply(2)).toString();
|
|
9
|
-
const wrapperStyle =
|
|
10
|
+
const wrapperStyle = style({
|
|
10
11
|
position: "relative",
|
|
11
12
|
display: "inline-block",
|
|
12
13
|
minWidth: "min(100%, 280px)"
|
|
13
14
|
});
|
|
14
|
-
const inputFieldWrapperRecipe =
|
|
15
|
+
const inputFieldWrapperRecipe = recipe({
|
|
15
16
|
base: [
|
|
16
17
|
atoms({
|
|
17
18
|
marginTop: "xxs",
|
|
@@ -90,7 +91,7 @@ const inputFieldWrapperRecipe = gnistRecipe({
|
|
|
90
91
|
validityType: "none"
|
|
91
92
|
}
|
|
92
93
|
});
|
|
93
|
-
const inputFieldStyle =
|
|
94
|
+
const inputFieldStyle = style([
|
|
94
95
|
atoms({ color: "on-surface" }),
|
|
95
96
|
{
|
|
96
97
|
boxSizing: "border-box",
|
|
@@ -114,7 +115,7 @@ const inputFieldStyle = gnistStyle([
|
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
]);
|
|
117
|
-
const inputContentWrapper =
|
|
118
|
+
const inputContentWrapper = recipe({
|
|
118
119
|
base: [
|
|
119
120
|
atoms({
|
|
120
121
|
paddingLeft: "s",
|
|
@@ -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");
|
|
6
5
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
7
6
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
7
|
+
const recipes = require("@vanilla-extract/recipes");
|
|
8
8
|
const inputField_css = require("./inputField.css.cjs");
|
|
9
9
|
const inputFieldConstants_css = require("./inputFieldConstants.css.cjs");
|
|
10
10
|
const elevatedLabel = (color) => ({
|
|
@@ -27,7 +27,7 @@ const elevatedLabelBackground = (backgroundColor) => ({
|
|
|
27
27
|
top: "5px",
|
|
28
28
|
height: tokens_css_js.tokens.stroke.medium
|
|
29
29
|
});
|
|
30
|
-
const labelStyle =
|
|
30
|
+
const labelStyle = recipes.recipe({
|
|
31
31
|
base: {
|
|
32
32
|
zIndex: 1,
|
|
33
33
|
position: "relative",
|
|
@@ -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";
|
|
4
3
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
4
|
import { calc } from "@vanilla-extract/css-utils";
|
|
5
|
+
import { recipe } from "@vanilla-extract/recipes";
|
|
6
6
|
import { inputFieldStyle } from "./inputField.css.js";
|
|
7
7
|
import { transitionTime, preInputWidth } from "./inputFieldConstants.css.js";
|
|
8
8
|
const elevatedLabel = (color) => ({
|
|
@@ -25,7 +25,7 @@ const elevatedLabelBackground = (backgroundColor) => ({
|
|
|
25
25
|
top: "5px",
|
|
26
26
|
height: tokens.stroke.medium
|
|
27
27
|
});
|
|
28
|
-
const labelStyle =
|
|
28
|
+
const labelStyle = recipe({
|
|
29
29
|
base: {
|
|
30
30
|
zIndex: 1,
|
|
31
31
|
position: "relative",
|
|
@@ -2,11 +2,11 @@
|
|
|
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 prefixStyle =
|
|
5
|
+
const css = require("@vanilla-extract/css");
|
|
6
|
+
const prefixStyle = css.style([
|
|
7
7
|
atoms_css_js.atoms({ color: "text-variant", paddingRight: "xxs" })
|
|
8
8
|
]);
|
|
9
|
-
const suffixStyle =
|
|
9
|
+
const suffixStyle = css.style([
|
|
10
10
|
atoms_css_js.atoms({ color: "text-variant", paddingLeft: "xxs" })
|
|
11
11
|
]);
|
|
12
12
|
exports.prefixStyle = prefixStyle;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
4
|
-
const prefixStyle =
|
|
3
|
+
import { style } from "@vanilla-extract/css";
|
|
4
|
+
const prefixStyle = style([
|
|
5
5
|
atoms({ color: "text-variant", paddingRight: "xxs" })
|
|
6
6
|
]);
|
|
7
|
-
const suffixStyle =
|
|
7
|
+
const suffixStyle = style([
|
|
8
8
|
atoms({ color: "text-variant", paddingLeft: "xxs" })
|
|
9
9
|
]);
|
|
10
10
|
export {
|
|
@@ -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 wordCounterStyle =
|
|
5
|
+
const recipes = require("@vanilla-extract/recipes");
|
|
6
|
+
const wordCounterStyle = recipes.recipe({
|
|
7
7
|
base: atoms_css_js.atoms({
|
|
8
8
|
display: "flex",
|
|
9
9
|
backgroundColor: "surface",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
4
|
-
const wordCounterStyle =
|
|
3
|
+
import { recipe } from "@vanilla-extract/recipes";
|
|
4
|
+
const wordCounterStyle = recipe({
|
|
5
5
|
base: atoms({
|
|
6
6
|
display: "flex",
|
|
7
7
|
backgroundColor: "surface",
|
|
@@ -2,7 +2,6 @@
|
|
|
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");
|
|
6
5
|
const css = require("@vanilla-extract/css");
|
|
7
6
|
const rotate360 = css.keyframes({
|
|
8
7
|
"0%": { transform: "rotate(0deg)" },
|
|
@@ -12,7 +11,7 @@ const fadeIn = css.keyframes({
|
|
|
12
11
|
"0%": { opacity: 0 },
|
|
13
12
|
"100%": { opacity: 1 }
|
|
14
13
|
});
|
|
15
|
-
const spinnerRecipe =
|
|
14
|
+
const spinnerRecipe = css.style([
|
|
16
15
|
atoms_css_js.atoms({ borderWidth: "medium" }),
|
|
17
16
|
{
|
|
18
17
|
position: "absolute",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.css.d.ts","sourceRoot":"","sources":["../../../src/components/progress/spinner.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spinner.css.d.ts","sourceRoot":"","sources":["../../../src/components/progress/spinner.css.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa,QAYxB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
4
|
-
import { keyframes } from "@vanilla-extract/css";
|
|
3
|
+
import { keyframes, style } from "@vanilla-extract/css";
|
|
5
4
|
const rotate360 = keyframes({
|
|
6
5
|
"0%": { transform: "rotate(0deg)" },
|
|
7
6
|
"100%": { transform: "rotate(360deg)" }
|
|
@@ -10,7 +9,7 @@ const fadeIn = keyframes({
|
|
|
10
9
|
"0%": { opacity: 0 },
|
|
11
10
|
"100%": { opacity: 1 }
|
|
12
11
|
});
|
|
13
|
-
const spinnerRecipe =
|
|
12
|
+
const spinnerRecipe = style([
|
|
14
13
|
atoms({ borderWidth: "medium" }),
|
|
15
14
|
{
|
|
16
15
|
position: "absolute",
|
|
@@ -2,10 +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");
|
|
6
5
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
7
6
|
const css = require("@vanilla-extract/css");
|
|
8
|
-
const
|
|
7
|
+
const recipes = require("@vanilla-extract/recipes");
|
|
8
|
+
const accordionRecipe = recipes.recipe({
|
|
9
9
|
base: [
|
|
10
10
|
atoms_css_js.atoms({
|
|
11
11
|
color: "on-background"
|
|
@@ -25,7 +25,7 @@ const accordionRecipe = layers_css_js.gnistRecipe({
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
const head =
|
|
28
|
+
const head = css.style([
|
|
29
29
|
atoms_css_js.atoms({
|
|
30
30
|
display: "flex",
|
|
31
31
|
justifyContent: "space-between",
|
|
@@ -43,13 +43,13 @@ const head = layers_css_js.gnistStyle([
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
]);
|
|
46
|
-
const heading =
|
|
46
|
+
const heading = css.style([
|
|
47
47
|
atoms_css_js.atoms({ typography: "heading3-small" }),
|
|
48
48
|
{
|
|
49
49
|
fontSize: tokens_css_js.tokens.type.medium.body.fontSize
|
|
50
50
|
}
|
|
51
51
|
]);
|
|
52
|
-
const headBackground =
|
|
52
|
+
const headBackground = css.style({
|
|
53
53
|
position: "absolute",
|
|
54
54
|
width: "100%",
|
|
55
55
|
height: "100%",
|
|
@@ -61,7 +61,7 @@ const headBackground = layers_css_js.gnistStyle({
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
const body =
|
|
64
|
+
const body = css.style({
|
|
65
65
|
padding: `${tokens_css_js.tokens.spacing.xxs} ${tokens_css_js.tokens.spacing.xxs} ${tokens_css_js.tokens.spacing.s}`
|
|
66
66
|
});
|
|
67
67
|
css.globalStyle("summary::-webkit-details-marker", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import { gnistRecipe, gnistStyle } from "@gnist/themes/layers.css.js";
|
|
4
3
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
|
-
import { globalStyle } from "@vanilla-extract/css";
|
|
6
|
-
|
|
4
|
+
import { style, globalStyle } from "@vanilla-extract/css";
|
|
5
|
+
import { recipe } from "@vanilla-extract/recipes";
|
|
6
|
+
const accordionRecipe = recipe({
|
|
7
7
|
base: [
|
|
8
8
|
atoms({
|
|
9
9
|
color: "on-background"
|
|
@@ -23,7 +23,7 @@ const accordionRecipe = gnistRecipe({
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
const head =
|
|
26
|
+
const head = style([
|
|
27
27
|
atoms({
|
|
28
28
|
display: "flex",
|
|
29
29
|
justifyContent: "space-between",
|
|
@@ -41,13 +41,13 @@ const head = gnistStyle([
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
]);
|
|
44
|
-
const heading =
|
|
44
|
+
const heading = style([
|
|
45
45
|
atoms({ typography: "heading3-small" }),
|
|
46
46
|
{
|
|
47
47
|
fontSize: tokens.type.medium.body.fontSize
|
|
48
48
|
}
|
|
49
49
|
]);
|
|
50
|
-
const headBackground =
|
|
50
|
+
const headBackground = style({
|
|
51
51
|
position: "absolute",
|
|
52
52
|
width: "100%",
|
|
53
53
|
height: "100%",
|
|
@@ -59,7 +59,7 @@ const headBackground = gnistStyle({
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
const body =
|
|
62
|
+
const body = style({
|
|
63
63
|
padding: `${tokens.spacing.xxs} ${tokens.spacing.xxs} ${tokens.spacing.s}`
|
|
64
64
|
});
|
|
65
65
|
globalStyle("summary::-webkit-details-marker", {
|
|
@@ -5,10 +5,11 @@ 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
7
|
const colors_css_js = require("@gnist/themes/colors.css.js");
|
|
8
|
-
const layers_css_js = require("@gnist/themes/layers.css.js");
|
|
9
8
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
10
9
|
const typography_css_js = require("@gnist/themes/typography.css.js");
|
|
11
|
-
const
|
|
10
|
+
const css = require("@vanilla-extract/css");
|
|
11
|
+
const recipes = require("@vanilla-extract/recipes");
|
|
12
|
+
const cardsBase = css.style([
|
|
12
13
|
atoms_css_js.atoms({
|
|
13
14
|
display: "block",
|
|
14
15
|
boxShadow: "low",
|
|
@@ -21,7 +22,7 @@ const cardsBase = layers_css_js.gnistStyle([
|
|
|
21
22
|
textDecoration: "none"
|
|
22
23
|
}
|
|
23
24
|
]);
|
|
24
|
-
const actionLayers =
|
|
25
|
+
const actionLayers = css.style([
|
|
25
26
|
animations_css.clickAnimation,
|
|
26
27
|
states_css.focusStyle,
|
|
27
28
|
states_css.stateLayers({
|
|
@@ -31,7 +32,7 @@ const actionLayers = layers_css_js.gnistStyle([
|
|
|
31
32
|
setFocusState: true
|
|
32
33
|
})
|
|
33
34
|
]);
|
|
34
|
-
const cardsRecipe =
|
|
35
|
+
const cardsRecipe = recipes.recipe({
|
|
35
36
|
base: [cardsBase],
|
|
36
37
|
variants: {
|
|
37
38
|
density: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cards.css.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/cards/cards.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cards.css.d.ts","sourceRoot":"","sources":["../../../../src/components/surfaces/cards/cards.css.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDtB,CAAC"}
|
|
@@ -3,10 +3,11 @@ import { clickAnimation } from "../../../styles/animations.css.js";
|
|
|
3
3
|
import { focusStyle, stateLayers } from "../../../styles/states.css.js";
|
|
4
4
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
5
5
|
import { boxColors } from "@gnist/themes/colors.css.js";
|
|
6
|
-
import { gnistStyle, gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
7
6
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
8
7
|
import { responsiveTypography } from "@gnist/themes/typography.css.js";
|
|
9
|
-
|
|
8
|
+
import { style } from "@vanilla-extract/css";
|
|
9
|
+
import { recipe } from "@vanilla-extract/recipes";
|
|
10
|
+
const cardsBase = style([
|
|
10
11
|
atoms({
|
|
11
12
|
display: "block",
|
|
12
13
|
boxShadow: "low",
|
|
@@ -19,7 +20,7 @@ const cardsBase = gnistStyle([
|
|
|
19
20
|
textDecoration: "none"
|
|
20
21
|
}
|
|
21
22
|
]);
|
|
22
|
-
const actionLayers =
|
|
23
|
+
const actionLayers = style([
|
|
23
24
|
clickAnimation,
|
|
24
25
|
focusStyle,
|
|
25
26
|
stateLayers({
|
|
@@ -29,7 +30,7 @@ const actionLayers = gnistStyle([
|
|
|
29
30
|
setFocusState: true
|
|
30
31
|
})
|
|
31
32
|
]);
|
|
32
|
-
const cardsRecipe =
|
|
33
|
+
const cardsRecipe = recipe({
|
|
33
34
|
base: [cardsBase],
|
|
34
35
|
variants: {
|
|
35
36
|
density: {
|
|
@@ -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");
|
|
6
5
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
7
|
-
const
|
|
6
|
+
const recipes = require("@vanilla-extract/recipes");
|
|
7
|
+
const StyledCardRecipe = recipes.recipe({
|
|
8
8
|
base: [
|
|
9
9
|
atoms_css_js.atoms({
|
|
10
10
|
display: "flex",
|
|
@@ -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";
|
|
4
3
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
|
-
|
|
4
|
+
import { recipe } from "@vanilla-extract/recipes";
|
|
5
|
+
const StyledCardRecipe = recipe({
|
|
6
6
|
base: [
|
|
7
7
|
atoms({
|
|
8
8
|
display: "flex",
|
|
@@ -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 cardDescription =
|
|
5
|
+
const recipes = require("@vanilla-extract/recipes");
|
|
6
|
+
const cardDescription = recipes.recipe({
|
|
7
7
|
base: [atoms_css_js.atoms({ display: "block" })],
|
|
8
8
|
variants: {
|
|
9
9
|
density: {
|
|
@@ -21,7 +21,7 @@ const cardDescription = layers_css_js.gnistRecipe({
|
|
|
21
21
|
},
|
|
22
22
|
defaultVariants: { density: "default" }
|
|
23
23
|
});
|
|
24
|
-
const SelectionControlSkeletonRecipe =
|
|
24
|
+
const SelectionControlSkeletonRecipe = recipes.recipe({
|
|
25
25
|
base: [
|
|
26
26
|
atoms_css_js.atoms({
|
|
27
27
|
height: "s",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import {
|
|
4
|
-
const cardDescription =
|
|
3
|
+
import { recipe } from "@vanilla-extract/recipes";
|
|
4
|
+
const cardDescription = recipe({
|
|
5
5
|
base: [atoms({ display: "block" })],
|
|
6
6
|
variants: {
|
|
7
7
|
density: {
|
|
@@ -19,7 +19,7 @@ const cardDescription = gnistRecipe({
|
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: { density: "default" }
|
|
21
21
|
});
|
|
22
|
-
const SelectionControlSkeletonRecipe =
|
|
22
|
+
const SelectionControlSkeletonRecipe = recipe({
|
|
23
23
|
base: [
|
|
24
24
|
atoms({
|
|
25
25
|
height: "s",
|
|
@@ -2,11 +2,11 @@
|
|
|
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");
|
|
6
5
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
7
6
|
const css = require("@vanilla-extract/css");
|
|
8
7
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
9
|
-
const
|
|
8
|
+
const recipes = require("@vanilla-extract/recipes");
|
|
9
|
+
const backdropStyle = css.style({
|
|
10
10
|
zIndex: -1,
|
|
11
11
|
position: "fixed",
|
|
12
12
|
right: 0,
|
|
@@ -16,7 +16,7 @@ const backdropStyle = layers_css_js.gnistStyle({
|
|
|
16
16
|
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
17
17
|
WebkitTapHighlightColor: "transparent"
|
|
18
18
|
});
|
|
19
|
-
const modalStyle =
|
|
19
|
+
const modalStyle = css.style({
|
|
20
20
|
position: "fixed",
|
|
21
21
|
zIndex: 1300,
|
|
22
22
|
right: 0,
|
|
@@ -36,7 +36,7 @@ const modalStyle = layers_css_js.gnistStyle({
|
|
|
36
36
|
margin: 0,
|
|
37
37
|
padding: 0
|
|
38
38
|
});
|
|
39
|
-
const modalHeadingStyle =
|
|
39
|
+
const modalHeadingStyle = css.style({
|
|
40
40
|
fontWeight: tokens_css_js.tokens.typeface.weight.semibold
|
|
41
41
|
});
|
|
42
42
|
const dialogPadding = (size) => {
|
|
@@ -51,7 +51,7 @@ const dialogPadding = (size) => {
|
|
|
51
51
|
return tokens_css_js.tokens.spacing.m;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
const dialogRecipe =
|
|
54
|
+
const dialogRecipe = recipes.recipe({
|
|
55
55
|
base: [
|
|
56
56
|
atoms_css_js.atoms({
|
|
57
57
|
color: "on-surface",
|
|
@@ -104,12 +104,12 @@ const dialogRecipe = layers_css_js.gnistRecipe({
|
|
|
104
104
|
size: "medium"
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
const headerRowPaddingBySize = (size) =>
|
|
107
|
+
const headerRowPaddingBySize = (size) => css.style({
|
|
108
108
|
paddingTop: dialogPadding(size),
|
|
109
109
|
paddingRight: dialogPadding(size),
|
|
110
110
|
paddingLeft: dialogPadding(size)
|
|
111
111
|
});
|
|
112
|
-
const headerRowRecipe =
|
|
112
|
+
const headerRowRecipe = recipes.recipe({
|
|
113
113
|
base: [
|
|
114
114
|
{
|
|
115
115
|
position: "sticky",
|
|
@@ -144,7 +144,7 @@ const headerRowRecipe = layers_css_js.gnistRecipe({
|
|
|
144
144
|
}
|
|
145
145
|
]
|
|
146
146
|
});
|
|
147
|
-
const contentContainerRecipe =
|
|
147
|
+
const contentContainerRecipe = recipes.recipe({
|
|
148
148
|
base: [
|
|
149
149
|
atoms_css_js.atoms({
|
|
150
150
|
display: "flex",
|
|
@@ -210,12 +210,12 @@ const contentContainerRecipe = layers_css_js.gnistRecipe({
|
|
|
210
210
|
}
|
|
211
211
|
]
|
|
212
212
|
});
|
|
213
|
-
const actionRowPaddingBySize = (size) =>
|
|
213
|
+
const actionRowPaddingBySize = (size) => css.style({
|
|
214
214
|
paddingTop: cssUtils.calc(dialogPadding(size)).add(tokens_css_js.tokens.spacing.xxs).toString(),
|
|
215
215
|
paddingRight: dialogPadding(size),
|
|
216
216
|
paddingLeft: dialogPadding(size)
|
|
217
217
|
});
|
|
218
|
-
const actionRowRecipe =
|
|
218
|
+
const actionRowRecipe = recipes.recipe({
|
|
219
219
|
base: [
|
|
220
220
|
atoms_css_js.atoms({
|
|
221
221
|
display: "flex",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
3
|
-
import { gnistStyle, gnistRecipe } from "@gnist/themes/layers.css.js";
|
|
4
3
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
|
-
import { globalStyle } from "@vanilla-extract/css";
|
|
4
|
+
import { style, globalStyle } from "@vanilla-extract/css";
|
|
6
5
|
import { calc } from "@vanilla-extract/css-utils";
|
|
7
|
-
|
|
6
|
+
import { recipe } from "@vanilla-extract/recipes";
|
|
7
|
+
const backdropStyle = style({
|
|
8
8
|
zIndex: -1,
|
|
9
9
|
position: "fixed",
|
|
10
10
|
right: 0,
|
|
@@ -14,7 +14,7 @@ const backdropStyle = gnistStyle({
|
|
|
14
14
|
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
15
15
|
WebkitTapHighlightColor: "transparent"
|
|
16
16
|
});
|
|
17
|
-
const modalStyle =
|
|
17
|
+
const modalStyle = style({
|
|
18
18
|
position: "fixed",
|
|
19
19
|
zIndex: 1300,
|
|
20
20
|
right: 0,
|
|
@@ -34,7 +34,7 @@ const modalStyle = gnistStyle({
|
|
|
34
34
|
margin: 0,
|
|
35
35
|
padding: 0
|
|
36
36
|
});
|
|
37
|
-
const modalHeadingStyle =
|
|
37
|
+
const modalHeadingStyle = style({
|
|
38
38
|
fontWeight: tokens.typeface.weight.semibold
|
|
39
39
|
});
|
|
40
40
|
const dialogPadding = (size) => {
|
|
@@ -49,7 +49,7 @@ const dialogPadding = (size) => {
|
|
|
49
49
|
return tokens.spacing.m;
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
const dialogRecipe =
|
|
52
|
+
const dialogRecipe = recipe({
|
|
53
53
|
base: [
|
|
54
54
|
atoms({
|
|
55
55
|
color: "on-surface",
|
|
@@ -102,12 +102,12 @@ const dialogRecipe = gnistRecipe({
|
|
|
102
102
|
size: "medium"
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
|
-
const headerRowPaddingBySize = (size) =>
|
|
105
|
+
const headerRowPaddingBySize = (size) => style({
|
|
106
106
|
paddingTop: dialogPadding(size),
|
|
107
107
|
paddingRight: dialogPadding(size),
|
|
108
108
|
paddingLeft: dialogPadding(size)
|
|
109
109
|
});
|
|
110
|
-
const headerRowRecipe =
|
|
110
|
+
const headerRowRecipe = recipe({
|
|
111
111
|
base: [
|
|
112
112
|
{
|
|
113
113
|
position: "sticky",
|
|
@@ -142,7 +142,7 @@ const headerRowRecipe = gnistRecipe({
|
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
});
|
|
145
|
-
const contentContainerRecipe =
|
|
145
|
+
const contentContainerRecipe = recipe({
|
|
146
146
|
base: [
|
|
147
147
|
atoms({
|
|
148
148
|
display: "flex",
|
|
@@ -208,12 +208,12 @@ const contentContainerRecipe = gnistRecipe({
|
|
|
208
208
|
}
|
|
209
209
|
]
|
|
210
210
|
});
|
|
211
|
-
const actionRowPaddingBySize = (size) =>
|
|
211
|
+
const actionRowPaddingBySize = (size) => style({
|
|
212
212
|
paddingTop: calc(dialogPadding(size)).add(tokens.spacing.xxs).toString(),
|
|
213
213
|
paddingRight: dialogPadding(size),
|
|
214
214
|
paddingLeft: dialogPadding(size)
|
|
215
215
|
});
|
|
216
|
-
const actionRowRecipe =
|
|
216
|
+
const actionRowRecipe = recipe({
|
|
217
217
|
base: [
|
|
218
218
|
atoms({
|
|
219
219
|
display: "flex",
|