@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.
Files changed (84) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/building-blocks/inputs/internal/textBelowInput.css.cjs +2 -2
  3. package/dist/building-blocks/inputs/internal/textBelowInput.css.js +2 -2
  4. package/dist/components/actions/buttons/styles.css.cjs +8 -9
  5. package/dist/components/actions/buttons/styles.css.d.ts.map +1 -1
  6. package/dist/components/actions/buttons/styles.css.js +8 -9
  7. package/dist/components/actions/chips/styles.css.cjs +3 -4
  8. package/dist/components/actions/chips/styles.css.d.ts.map +1 -1
  9. package/dist/components/actions/chips/styles.css.js +3 -4
  10. package/dist/components/actions/selectionControls/checkbox.css.cjs +3 -3
  11. package/dist/components/actions/selectionControls/checkbox.css.js +3 -3
  12. package/dist/components/actions/selectionControls/radiobutton.css.cjs +3 -3
  13. package/dist/components/actions/selectionControls/radiobutton.css.js +3 -3
  14. package/dist/components/actions/selectionControls/radiogroup.css.cjs +3 -4
  15. package/dist/components/actions/selectionControls/radiogroup.css.d.ts.map +1 -1
  16. package/dist/components/actions/selectionControls/radiogroup.css.js +3 -4
  17. package/dist/components/actions/selectionControls/shared.css.cjs +6 -7
  18. package/dist/components/actions/selectionControls/shared.css.d.ts.map +1 -1
  19. package/dist/components/actions/selectionControls/shared.css.js +6 -7
  20. package/dist/components/actions/selectionControls/switch.css.cjs +13 -14
  21. package/dist/components/actions/selectionControls/switch.css.d.ts.map +1 -1
  22. package/dist/components/actions/selectionControls/switch.css.js +13 -14
  23. package/dist/components/feedback/alerts/AlertBanner.css.cjs +7 -8
  24. package/dist/components/feedback/alerts/AlertBanner.css.d.ts.map +1 -1
  25. package/dist/components/feedback/alerts/AlertBanner.css.js +7 -8
  26. package/dist/components/feedback/loaders/loadingBar.css.cjs +3 -2
  27. package/dist/components/feedback/loaders/loadingBar.css.d.ts.map +1 -1
  28. package/dist/components/feedback/loaders/loadingBar.css.js +4 -3
  29. package/dist/components/feedback/loaders/loadingSpinner.css.cjs +2 -1
  30. package/dist/components/feedback/loaders/loadingSpinner.css.d.ts.map +1 -1
  31. package/dist/components/feedback/loaders/loadingSpinner.css.js +3 -2
  32. package/dist/components/feedback/notifications/lozenge.css.cjs +2 -2
  33. package/dist/components/feedback/notifications/lozenge.css.js +2 -2
  34. package/dist/components/feedback/progress/ProgressBar.css.cjs +4 -3
  35. package/dist/components/feedback/progress/ProgressBar.css.d.ts.map +1 -1
  36. package/dist/components/feedback/progress/ProgressBar.css.js +5 -4
  37. package/dist/components/inputs/dropdowns/select.css.cjs +7 -7
  38. package/dist/components/inputs/dropdowns/select.css.js +7 -7
  39. package/dist/components/inputs/pickers/Calendar.css.cjs +8 -8
  40. package/dist/components/inputs/pickers/Calendar.css.d.ts.map +1 -1
  41. package/dist/components/inputs/pickers/Calendar.css.js +9 -9
  42. package/dist/components/inputs/shared-styles/iconButtonOverlay.css.cjs +2 -2
  43. package/dist/components/inputs/shared-styles/iconButtonOverlay.css.js +2 -2
  44. package/dist/components/inputs/shared-styles/inputField.css.cjs +5 -6
  45. package/dist/components/inputs/shared-styles/inputField.css.d.ts.map +1 -1
  46. package/dist/components/inputs/shared-styles/inputField.css.js +5 -6
  47. package/dist/components/inputs/shared-styles/labelStyles.css.cjs +2 -2
  48. package/dist/components/inputs/shared-styles/labelStyles.css.js +2 -2
  49. package/dist/components/inputs/shared-styles/suffixPrefix.css.cjs +3 -3
  50. package/dist/components/inputs/shared-styles/suffixPrefix.css.js +3 -3
  51. package/dist/components/inputs/textFields/textArea.css.cjs +2 -2
  52. package/dist/components/inputs/textFields/textArea.css.js +2 -2
  53. package/dist/components/progress/spinner.css.cjs +2 -1
  54. package/dist/components/progress/spinner.css.d.ts.map +1 -1
  55. package/dist/components/progress/spinner.css.js +3 -2
  56. package/dist/components/surfaces/accordion/accordion.css.cjs +6 -6
  57. package/dist/components/surfaces/accordion/accordion.css.js +7 -7
  58. package/dist/components/surfaces/cards/cards.css.cjs +4 -5
  59. package/dist/components/surfaces/cards/cards.css.d.ts.map +1 -1
  60. package/dist/components/surfaces/cards/cards.css.js +4 -5
  61. package/dist/components/surfaces/cards/checkboxCard.css.cjs +2 -2
  62. package/dist/components/surfaces/cards/checkboxCard.css.js +2 -2
  63. package/dist/components/surfaces/cards/internal/SelectionCard.css.cjs +3 -3
  64. package/dist/components/surfaces/cards/internal/SelectionCard.css.js +3 -3
  65. package/dist/components/surfaces/modal/modal.css.cjs +10 -10
  66. package/dist/components/surfaces/modal/modal.css.js +11 -11
  67. package/dist/foundation/iconography/Icon.css.cjs +3 -2
  68. package/dist/foundation/iconography/Icon.css.d.ts.map +1 -1
  69. package/dist/foundation/iconography/Icon.css.js +4 -3
  70. package/dist/foundation/logos/Logo.css.cjs +5 -4
  71. package/dist/foundation/logos/Logo.css.d.ts.map +1 -1
  72. package/dist/foundation/logos/Logo.css.js +6 -5
  73. package/dist/foundation/typography/typography.css.cjs +2 -2
  74. package/dist/foundation/typography/typography.css.js +2 -2
  75. package/dist/styles/animations.css.cjs +2 -2
  76. package/dist/styles/animations.css.js +2 -2
  77. package/dist/styles/states.css.cjs +4 -5
  78. package/dist/styles/states.css.d.ts.map +1 -1
  79. package/dist/styles/states.css.js +4 -5
  80. package/dist/utilities/accessibility/visuallyHidden.css.cjs +2 -2
  81. package/dist/utilities/accessibility/visuallyHidden.css.js +2 -2
  82. package/dist/utilities/layout/styles.css.cjs +3 -3
  83. package/dist/utilities/layout/styles.css.js +3 -3
  84. package/package.json +3 -3
@@ -2,14 +2,13 @@
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 css = require("@vanilla-extract/css");
6
- const recipes = require("@vanilla-extract/recipes");
5
+ const layers_css_js = require("@gnist/themes/layers.css.js");
7
6
  const boxColors = (colorName) => atoms_css_js.atoms({
8
7
  backgroundColor: `${colorName}-container`,
9
8
  color: `on-${colorName}-container`,
10
9
  borderColor: `on-${colorName}-container`
11
10
  });
12
- const banner = recipes.recipe({
11
+ const banner = layers_css_js.gnistRecipe({
13
12
  base: [
14
13
  {
15
14
  borderStyle: "solid"
@@ -33,7 +32,7 @@ const banner = recipes.recipe({
33
32
  }
34
33
  }
35
34
  });
36
- const icon = recipes.recipe({
35
+ const icon = layers_css_js.gnistRecipe({
37
36
  variants: {
38
37
  type: {
39
38
  success: atoms_css_js.atoms({ color: "on-success-container" }),
@@ -43,7 +42,7 @@ const icon = recipes.recipe({
43
42
  }
44
43
  }
45
44
  });
46
- const mainContentContainer = recipes.recipe({
45
+ const mainContentContainer = layers_css_js.gnistRecipe({
47
46
  base: [
48
47
  {
49
48
  flex: 1
@@ -56,12 +55,12 @@ const mainContentContainer = recipes.recipe({
56
55
  }
57
56
  }
58
57
  });
59
- const bannerHeading = css.style([
58
+ const bannerHeading = layers_css_js.gnistStyle([
60
59
  { float: "left" },
61
60
  atoms_css_js.atoms({ margin: "none", typography: "heading3-small" })
62
61
  ]);
63
- const closeButton = css.style({ float: "right" });
64
- const messageContainer = css.style({ clear: "left" });
62
+ const closeButton = layers_css_js.gnistStyle({ float: "right" });
63
+ const messageContainer = layers_css_js.gnistStyle({ clear: "left" });
65
64
  const actionButton = atoms_css_js.atoms({ marginTop: "xs" });
66
65
  exports.actionButton = actionButton;
67
66
  exports.banner = banner;
@@ -1 +1 @@
1
- {"version":3,"file":"AlertBanner.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alerts/AlertBanner.css.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM;;;;;;;;;;;EAuBjB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;EASf,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;EAY/B,CAAC;AAEH,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,WAAW,QAA4B,CAAC;AAErD,eAAO,MAAM,gBAAgB,QAA2B,CAAC;AAEzD,eAAO,MAAM,YAAY,QAA6B,CAAC"}
1
+ {"version":3,"file":"AlertBanner.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alerts/AlertBanner.css.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,MAAM;;;;;;;;;;;EAuBjB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;EASf,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;EAY/B,CAAC;AAEH,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,WAAW,QAAiC,CAAC;AAE1D,eAAO,MAAM,gBAAgB,QAAgC,CAAC;AAE9D,eAAO,MAAM,YAAY,QAA6B,CAAC"}
@@ -1,13 +1,12 @@
1
1
  "use client";
2
2
  import { atoms } from "@gnist/themes/atoms.css.js";
3
- import { style } from "@vanilla-extract/css";
4
- import { recipe } from "@vanilla-extract/recipes";
3
+ import { gnistRecipe, gnistStyle } from "@gnist/themes/layers.css.js";
5
4
  const boxColors = (colorName) => atoms({
6
5
  backgroundColor: `${colorName}-container`,
7
6
  color: `on-${colorName}-container`,
8
7
  borderColor: `on-${colorName}-container`
9
8
  });
10
- const banner = recipe({
9
+ const banner = gnistRecipe({
11
10
  base: [
12
11
  {
13
12
  borderStyle: "solid"
@@ -31,7 +30,7 @@ const banner = recipe({
31
30
  }
32
31
  }
33
32
  });
34
- const icon = recipe({
33
+ const icon = gnistRecipe({
35
34
  variants: {
36
35
  type: {
37
36
  success: atoms({ color: "on-success-container" }),
@@ -41,7 +40,7 @@ const icon = recipe({
41
40
  }
42
41
  }
43
42
  });
44
- const mainContentContainer = recipe({
43
+ const mainContentContainer = gnistRecipe({
45
44
  base: [
46
45
  {
47
46
  flex: 1
@@ -54,12 +53,12 @@ const mainContentContainer = recipe({
54
53
  }
55
54
  }
56
55
  });
57
- const bannerHeading = style([
56
+ const bannerHeading = gnistStyle([
58
57
  { float: "left" },
59
58
  atoms({ margin: "none", typography: "heading3-small" })
60
59
  ]);
61
- const closeButton = style({ float: "right" });
62
- const messageContainer = style({ clear: "left" });
60
+ const closeButton = gnistStyle({ float: "right" });
61
+ const messageContainer = gnistStyle({ clear: "left" });
63
62
  const actionButton = atoms({ marginTop: "xs" });
64
63
  export {
65
64
  actionButton,
@@ -2,9 +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
7
  const css = require("@vanilla-extract/css");
7
- const loadingBarStyles = css.style([
8
+ const loadingBarStyles = layers_css_js.gnistStyle([
8
9
  {
9
10
  overflow: "hidden",
10
11
  display: "flex",
@@ -23,7 +24,7 @@ const loadingAnimation = css.keyframes({
23
24
  width: "100%"
24
25
  }
25
26
  });
26
- const loadingBar = css.style([
27
+ const loadingBar = layers_css_js.gnistStyle([
27
28
  {
28
29
  backgroundColor: tokens_css_js.tokens.palette.tertiary[40],
29
30
  animation: `${loadingAnimation} 20s cubic-bezier(0.17, 0.68, 0.36, 0.91) forwards`
@@ -1 +1 @@
1
- {"version":3,"file":"loadingBar.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/loaders/loadingBar.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAU3B,CAAC;AAWH,eAAO,MAAM,UAAU,QAQrB,CAAC"}
1
+ {"version":3,"file":"loadingBar.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/loaders/loadingBar.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,QAU3B,CAAC;AAWH,eAAO,MAAM,UAAU,QAQrB,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use client";
2
2
  import { atoms } from "@gnist/themes/atoms.css.js";
3
+ import { gnistStyle } from "@gnist/themes/layers.css.js";
3
4
  import { tokens } from "@gnist/themes/tokens.css.js";
4
- import { style, keyframes } from "@vanilla-extract/css";
5
- const loadingBarStyles = style([
5
+ import { keyframes } from "@vanilla-extract/css";
6
+ const loadingBarStyles = gnistStyle([
6
7
  {
7
8
  overflow: "hidden",
8
9
  display: "flex",
@@ -21,7 +22,7 @@ const loadingAnimation = keyframes({
21
22
  width: "100%"
22
23
  }
23
24
  });
24
- const loadingBar = style([
25
+ const loadingBar = gnistStyle([
25
26
  {
26
27
  backgroundColor: tokens.palette.tertiary[40],
27
28
  animation: `${loadingAnimation} 20s cubic-bezier(0.17, 0.68, 0.36, 0.91) forwards`
@@ -2,13 +2,14 @@
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 css = require("@vanilla-extract/css");
7
8
  const rotate360 = css.keyframes({
8
9
  "0%": { transform: "rotate(0deg)" },
9
10
  "100%": { transform: "rotate(360deg)" }
10
11
  });
11
- const loadingSpinnerStyle = css.style([
12
+ const loadingSpinnerStyle = layers_css_js.gnistStyle([
12
13
  atoms_css_js.atoms({
13
14
  borderRadius: "full",
14
15
  width: "xxl",
@@ -1 +1 @@
1
- {"version":3,"file":"loadingSpinner.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/loaders/loadingSpinner.css.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mBAAmB,QAW9B,CAAC"}
1
+ {"version":3,"file":"loadingSpinner.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/loaders/loadingSpinner.css.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,mBAAmB,QAW9B,CAAC"}
@@ -1,12 +1,13 @@
1
1
  "use client";
2
2
  import { atoms } from "@gnist/themes/atoms.css.js";
3
+ import { gnistStyle } from "@gnist/themes/layers.css.js";
3
4
  import { tokens } from "@gnist/themes/tokens.css.js";
4
- import { keyframes, style } from "@vanilla-extract/css";
5
+ import { keyframes } from "@vanilla-extract/css";
5
6
  const rotate360 = keyframes({
6
7
  "0%": { transform: "rotate(0deg)" },
7
8
  "100%": { transform: "rotate(360deg)" }
8
9
  });
9
- const loadingSpinnerStyle = style([
10
+ const loadingSpinnerStyle = gnistStyle([
10
11
  atoms({
11
12
  borderRadius: "full",
12
13
  width: "xxl",
@@ -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");
5
6
  const tokens_css_js = require("@gnist/themes/tokens.css.js");
6
7
  const css = require("@vanilla-extract/css");
7
8
  const cssUtils = require("@vanilla-extract/css-utils");
8
- const recipes = require("@vanilla-extract/recipes");
9
9
  const getColors = (variant) => {
10
10
  if (variant === "neutral") {
11
11
  return atoms_css_js.atoms({
@@ -21,7 +21,7 @@ const getColors = (variant) => {
21
21
  });
22
22
  };
23
23
  const largeBody = tokens_css_js.tokens.type.large.body;
24
- const lozengeRecipe = recipes.recipe({
24
+ const lozengeRecipe = layers_css_js.gnistRecipe({
25
25
  base: [
26
26
  atoms_css_js.atoms({
27
27
  display: "inline-flex",
@@ -1,9 +1,9 @@
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
  import { globalStyle } from "@vanilla-extract/css";
5
6
  import { calc } from "@vanilla-extract/css-utils";
6
- import { recipe } from "@vanilla-extract/recipes";
7
7
  const getColors = (variant) => {
8
8
  if (variant === "neutral") {
9
9
  return atoms({
@@ -19,7 +19,7 @@ const getColors = (variant) => {
19
19
  });
20
20
  };
21
21
  const largeBody = tokens.type.large.body;
22
- const lozengeRecipe = recipe({
22
+ const lozengeRecipe = gnistRecipe({
23
23
  base: [
24
24
  atoms({
25
25
  display: "inline-flex",
@@ -1,15 +1,16 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const layers_css_js = require("@gnist/themes/layers.css.js");
4
5
  const tokens_css_js = require("@gnist/themes/tokens.css.js");
5
6
  const css = require("@vanilla-extract/css");
6
- const progressBarStyles = css.style({
7
+ const progressBarStyles = layers_css_js.gnistStyle({
7
8
  overflow: "hidden",
8
9
  display: "flex",
9
10
  backgroundColor: tokens_css_js.tokens.color.outline,
10
11
  width: "100%"
11
12
  });
12
- const progressBar = css.style({
13
+ const progressBar = layers_css_js.gnistStyle({
13
14
  transition: "width 0.5s ease-in-out"
14
15
  });
15
16
  const progressPercentage = css.createVar();
@@ -17,7 +18,7 @@ const progress = css.keyframes({
17
18
  from: { width: "0%" },
18
19
  to: { width: progressPercentage }
19
20
  });
20
- const progressAnimation = css.style({
21
+ const progressAnimation = layers_css_js.gnistStyle({
21
22
  animationName: progress,
22
23
  animationDuration: "1s",
23
24
  animationTimingFunction: "ease-in-out",
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/progress/ProgressBar.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,QAK5B,CAAC;AAEH,eAAO,MAAM,WAAW,QAEtB,CAAC;AAEH,eAAO,MAAM,kBAAkB,oBAAc,CAAC;AAO9C,eAAO,MAAM,iBAAiB,QAK5B,CAAC"}
1
+ {"version":3,"file":"ProgressBar.css.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/progress/ProgressBar.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,QAK5B,CAAC;AAEH,eAAO,MAAM,WAAW,QAEtB,CAAC;AAEH,eAAO,MAAM,kBAAkB,oBAAc,CAAC;AAO9C,eAAO,MAAM,iBAAiB,QAK5B,CAAC"}
@@ -1,13 +1,14 @@
1
1
  "use client";
2
+ import { gnistStyle } from "@gnist/themes/layers.css.js";
2
3
  import { tokens } from "@gnist/themes/tokens.css.js";
3
- import { style, createVar, keyframes } from "@vanilla-extract/css";
4
- const progressBarStyles = style({
4
+ import { createVar, keyframes } from "@vanilla-extract/css";
5
+ const progressBarStyles = gnistStyle({
5
6
  overflow: "hidden",
6
7
  display: "flex",
7
8
  backgroundColor: tokens.color.outline,
8
9
  width: "100%"
9
10
  });
10
- const progressBar = style({
11
+ const progressBar = gnistStyle({
11
12
  transition: "width 0.5s ease-in-out"
12
13
  });
13
14
  const progressPercentage = createVar();
@@ -15,7 +16,7 @@ const progress = keyframes({
15
16
  from: { width: "0%" },
16
17
  to: { width: progressPercentage }
17
18
  });
18
- const progressAnimation = style({
19
+ const progressAnimation = gnistStyle({
19
20
  animationName: progress,
20
21
  animationDuration: "1s",
21
22
  animationTimingFunction: "ease-in-out",
@@ -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");
5
6
  const tokens_css_js = require("@gnist/themes/tokens.css.js");
6
- const css = require("@vanilla-extract/css");
7
7
  const inputField_css = require("../shared-styles/inputField.css.cjs");
8
- const listBoxStyle = css.style([
8
+ const listBoxStyle = layers_css_js.gnistStyle([
9
9
  atoms_css_js.atoms({
10
10
  marginTop: "xxs",
11
11
  display: "flex",
@@ -24,12 +24,12 @@ const listBoxStyle = css.style([
24
24
  overflow: "auto"
25
25
  }
26
26
  ]);
27
- const popUpStyle = css.style({
27
+ const popUpStyle = layers_css_js.gnistStyle({
28
28
  zIndex: 1400,
29
29
  minWidth: "280px",
30
30
  maxWidth: "100%"
31
31
  });
32
- const selectStyle = css.style([
32
+ const selectStyle = layers_css_js.gnistStyle([
33
33
  inputField_css.inputFieldStyle,
34
34
  {
35
35
  overflow: "hidden",
@@ -44,7 +44,7 @@ const selectStyle = css.style([
44
44
  boxSizing: "border-box"
45
45
  }
46
46
  ]);
47
- const optionStyle = css.style([
47
+ const optionStyle = layers_css_js.gnistStyle([
48
48
  atoms_css_js.atoms({
49
49
  display: "flex",
50
50
  position: "relative",
@@ -63,7 +63,7 @@ const optionStyle = css.style([
63
63
  }
64
64
  }
65
65
  ]);
66
- const singleOptionStyle = css.style([
66
+ const singleOptionStyle = layers_css_js.gnistStyle([
67
67
  atoms_css_js.atoms({
68
68
  display: "flex",
69
69
  alignItems: "center",
@@ -71,7 +71,7 @@ const singleOptionStyle = css.style([
71
71
  }),
72
72
  { width: "100%" }
73
73
  ]);
74
- const optionBackground = css.style([
74
+ const optionBackground = layers_css_js.gnistStyle([
75
75
  atoms_css_js.atoms({
76
76
  display: "flex",
77
77
  position: "absolute",
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { atoms } from "@gnist/themes/atoms.css.js";
3
+ import { gnistStyle } 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 { inputFieldStyle } from "../shared-styles/inputField.css.js";
6
- const listBoxStyle = style([
6
+ const listBoxStyle = gnistStyle([
7
7
  atoms({
8
8
  marginTop: "xxs",
9
9
  display: "flex",
@@ -22,12 +22,12 @@ const listBoxStyle = style([
22
22
  overflow: "auto"
23
23
  }
24
24
  ]);
25
- const popUpStyle = style({
25
+ const popUpStyle = gnistStyle({
26
26
  zIndex: 1400,
27
27
  minWidth: "280px",
28
28
  maxWidth: "100%"
29
29
  });
30
- const selectStyle = style([
30
+ const selectStyle = gnistStyle([
31
31
  inputFieldStyle,
32
32
  {
33
33
  overflow: "hidden",
@@ -42,7 +42,7 @@ const selectStyle = style([
42
42
  boxSizing: "border-box"
43
43
  }
44
44
  ]);
45
- const optionStyle = style([
45
+ const optionStyle = gnistStyle([
46
46
  atoms({
47
47
  display: "flex",
48
48
  position: "relative",
@@ -61,7 +61,7 @@ const optionStyle = style([
61
61
  }
62
62
  }
63
63
  ]);
64
- const singleOptionStyle = style([
64
+ const singleOptionStyle = gnistStyle([
65
65
  atoms({
66
66
  display: "flex",
67
67
  alignItems: "center",
@@ -69,7 +69,7 @@ const singleOptionStyle = style([
69
69
  }),
70
70
  { width: "100%" }
71
71
  ]);
72
- const optionBackground = style([
72
+ const optionBackground = gnistStyle([
73
73
  atoms({
74
74
  display: "flex",
75
75
  position: "absolute",
@@ -3,11 +3,11 @@
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
8
  const css = require("@vanilla-extract/css");
8
9
  const cssUtils = require("@vanilla-extract/css-utils");
9
- const recipes = require("@vanilla-extract/recipes");
10
- const containerStyle = css.style([
10
+ const containerStyle = layers_css_js.gnistStyle([
11
11
  atoms_css_js.atoms({
12
12
  display: "flex",
13
13
  flexDirection: "column",
@@ -21,7 +21,7 @@ const containerStyle = css.style([
21
21
  width: "fit-content"
22
22
  }
23
23
  ]);
24
- const gridStyle = css.style([
24
+ const gridStyle = layers_css_js.gnistStyle([
25
25
  atoms_css_js.atoms({
26
26
  display: "flex",
27
27
  flexDirection: "column",
@@ -31,7 +31,7 @@ const gridStyle = css.style([
31
31
  width: "fit-content"
32
32
  }
33
33
  ]);
34
- const rowStyle = css.style([
34
+ const rowStyle = layers_css_js.gnistStyle([
35
35
  atoms_css_js.atoms({
36
36
  gap: "base",
37
37
  height: "xl"
@@ -50,11 +50,11 @@ const selectMonthRow = atoms_css_js.atoms({
50
50
  justifyContent: "space-between",
51
51
  typography: "body-medium"
52
52
  });
53
- const headerCell = css.style([
53
+ const headerCell = layers_css_js.gnistStyle([
54
54
  { textAlign: "center" },
55
55
  atoms_css_js.atoms({ typography: "detail-large" })
56
56
  ]);
57
- const cellRecipe = recipes.recipe({
57
+ const cellRecipe = layers_css_js.gnistRecipe({
58
58
  base: [
59
59
  atoms_css_js.atoms({
60
60
  typography: "body-large",
@@ -130,8 +130,8 @@ const buttonRow = atoms_css_js.atoms({
130
130
  display: "flex",
131
131
  gap: "base"
132
132
  });
133
- const arrowButton = css.style([atoms_css_js.atoms({ color: "on-background" })]);
134
- const cellSkeletonStyle = css.style([
133
+ const arrowButton = layers_css_js.gnistStyle([atoms_css_js.atoms({ color: "on-background" })]);
134
+ const cellSkeletonStyle = layers_css_js.gnistStyle([
135
135
  atoms_css_js.atoms({
136
136
  padding: "base",
137
137
  borderRadius: "picker"
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/pickers/Calendar.css.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,QAazB,CAAC;AAEH,eAAO,MAAM,SAAS,QASpB,CAAC;AAEH,eAAO,MAAM,QAAQ,QASnB,CAAC;AAEH,eAAO,MAAM,QAAQ,oBAAc,CAAC;AAMpC,eAAO,MAAM,cAAc,QAIzB,CAAC;AAEH,eAAO,MAAM,UAAU,QAGrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuErB,CAAC;AAEH,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,WAAW,QAA6C,CAAC;AAEtE,eAAO,MAAM,iBAAiB,QAQ5B,CAAC"}
1
+ {"version":3,"file":"Calendar.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/pickers/Calendar.css.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,QAazB,CAAC;AAEH,eAAO,MAAM,SAAS,QASpB,CAAC;AAEH,eAAO,MAAM,QAAQ,QASnB,CAAC;AAEH,eAAO,MAAM,QAAQ,oBAAc,CAAC;AAMpC,eAAO,MAAM,cAAc,QAIzB,CAAC;AAEH,eAAO,MAAM,UAAU,QAGrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuErB,CAAC;AAEH,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,WAAW,QAAkD,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAQ5B,CAAC"}
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { focusStyle, stateLayers } 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, createVar, globalStyle } from "@vanilla-extract/css";
6
+ import { createVar, globalStyle } from "@vanilla-extract/css";
6
7
  import { calc } from "@vanilla-extract/css-utils";
7
- import { recipe } from "@vanilla-extract/recipes";
8
- const containerStyle = style([
8
+ const containerStyle = gnistStyle([
9
9
  atoms({
10
10
  display: "flex",
11
11
  flexDirection: "column",
@@ -19,7 +19,7 @@ const containerStyle = style([
19
19
  width: "fit-content"
20
20
  }
21
21
  ]);
22
- const gridStyle = style([
22
+ const gridStyle = gnistStyle([
23
23
  atoms({
24
24
  display: "flex",
25
25
  flexDirection: "column",
@@ -29,7 +29,7 @@ const gridStyle = style([
29
29
  width: "fit-content"
30
30
  }
31
31
  ]);
32
- const rowStyle = style([
32
+ const rowStyle = gnistStyle([
33
33
  atoms({
34
34
  gap: "base",
35
35
  height: "xl"
@@ -48,11 +48,11 @@ const selectMonthRow = atoms({
48
48
  justifyContent: "space-between",
49
49
  typography: "body-medium"
50
50
  });
51
- const headerCell = style([
51
+ const headerCell = gnistStyle([
52
52
  { textAlign: "center" },
53
53
  atoms({ typography: "detail-large" })
54
54
  ]);
55
- const cellRecipe = recipe({
55
+ const cellRecipe = gnistRecipe({
56
56
  base: [
57
57
  atoms({
58
58
  typography: "body-large",
@@ -128,8 +128,8 @@ const buttonRow = atoms({
128
128
  display: "flex",
129
129
  gap: "base"
130
130
  });
131
- const arrowButton = style([atoms({ color: "on-background" })]);
132
- const cellSkeletonStyle = style([
131
+ const arrowButton = gnistStyle([atoms({ color: "on-background" })]);
132
+ const cellSkeletonStyle = gnistStyle([
133
133
  atoms({
134
134
  padding: "base",
135
135
  borderRadius: "picker"
@@ -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 recipes = require("@vanilla-extract/recipes");
7
- const iconButtonOverlayRecipe = recipes.recipe({
7
+ const iconButtonOverlayRecipe = layers_css_js.gnistRecipe({
8
8
  base: [
9
9
  atoms_css_js.atoms({
10
10
  width: "l",
@@ -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
- import { recipe } from "@vanilla-extract/recipes";
5
- const iconButtonOverlayRecipe = recipe({
5
+ const iconButtonOverlayRecipe = gnistRecipe({
6
6
  base: [
7
7
  atoms({
8
8
  width: "l",
@@ -2,19 +2,18 @@
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 recipes = require("@vanilla-extract/recipes");
9
8
  const inputFieldConstants_css = require("./inputFieldConstants.css.cjs");
10
9
  const borderStyle = (borderColor, isFocused) => `0 0 0 ${isFocused ? tokens_css_js.tokens.stroke.medium : tokens_css_js.tokens.stroke.small} ${borderColor}`;
11
10
  const textAreaHeight = cssUtils.calc(cssUtils.calc(inputFieldConstants_css.visibleLines).multiply("1.5rem")).add(cssUtils.calc(tokens_css_js.tokens.spacing.xxs).multiply(2)).toString();
12
- const wrapperStyle = css.style({
11
+ const wrapperStyle = layers_css_js.gnistStyle({
13
12
  position: "relative",
14
13
  display: "inline-block",
15
14
  minWidth: "min(100%, 280px)"
16
15
  });
17
- const inputFieldWrapperRecipe = recipes.recipe({
16
+ const inputFieldWrapperRecipe = layers_css_js.gnistRecipe({
18
17
  base: [
19
18
  atoms_css_js.atoms({
20
19
  marginTop: "xxs",
@@ -93,7 +92,7 @@ const inputFieldWrapperRecipe = recipes.recipe({
93
92
  validityType: "none"
94
93
  }
95
94
  });
96
- const inputFieldStyle = css.style([
95
+ const inputFieldStyle = layers_css_js.gnistStyle([
97
96
  atoms_css_js.atoms({ color: "on-surface" }),
98
97
  {
99
98
  boxSizing: "border-box",
@@ -117,7 +116,7 @@ const inputFieldStyle = css.style([
117
116
  }
118
117
  }
119
118
  ]);
120
- const inputContentWrapper = recipes.recipe({
119
+ const inputContentWrapper = layers_css_js.gnistRecipe({
121
120
  base: [
122
121
  atoms_css_js.atoms({
123
122
  paddingLeft: "s",
@@ -1 +1 @@
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
+ {"version":3,"file":"inputField.css.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/shared-styles/inputField.css.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,YAAY,QAIvB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8ElC,CAAC;AAEH,eAAO,MAAM,eAAe,QAuB1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;EAyB9B,CAAC"}
@@ -1,18 +1,17 @@
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
- import { recipe } from "@vanilla-extract/recipes";
7
6
  import { visibleLines, transitionTime, postInputWidth, preInputWidth } from "./inputFieldConstants.css.js";
8
7
  const borderStyle = (borderColor, isFocused) => `0 0 0 ${isFocused ? tokens.stroke.medium : tokens.stroke.small} ${borderColor}`;
9
8
  const textAreaHeight = calc(calc(visibleLines).multiply("1.5rem")).add(calc(tokens.spacing.xxs).multiply(2)).toString();
10
- const wrapperStyle = style({
9
+ const wrapperStyle = gnistStyle({
11
10
  position: "relative",
12
11
  display: "inline-block",
13
12
  minWidth: "min(100%, 280px)"
14
13
  });
15
- const inputFieldWrapperRecipe = recipe({
14
+ const inputFieldWrapperRecipe = gnistRecipe({
16
15
  base: [
17
16
  atoms({
18
17
  marginTop: "xxs",
@@ -91,7 +90,7 @@ const inputFieldWrapperRecipe = recipe({
91
90
  validityType: "none"
92
91
  }
93
92
  });
94
- const inputFieldStyle = style([
93
+ const inputFieldStyle = gnistStyle([
95
94
  atoms({ color: "on-surface" }),
96
95
  {
97
96
  boxSizing: "border-box",
@@ -115,7 +114,7 @@ const inputFieldStyle = style([
115
114
  }
116
115
  }
117
116
  ]);
118
- const inputContentWrapper = recipe({
117
+ const inputContentWrapper = gnistRecipe({
119
118
  base: [
120
119
  atoms({
121
120
  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");
5
6
  const tokens_css_js = require("@gnist/themes/tokens.css.js");
6
7
  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 = recipes.recipe({
30
+ const labelStyle = layers_css_js.gnistRecipe({
31
31
  base: {
32
32
  zIndex: 1,
33
33
  position: "relative",