@esri/calcite-design-tokens 4.0.0-next.2 → 4.0.0-next.20

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.
@@ -2,49 +2,53 @@
2
2
  // Calcite Design System
3
3
  // Do not edit directly, this file was auto-generated.
4
4
 
5
- $calcite-color-background: #f7f7f7;
5
+ $calcite-color-surface-1: #f7f7f7;
6
+ $calcite-color-surface-2: #ffffff;
7
+ $calcite-color-surface-3: #f2f2f2;
8
+ $calcite-color-surface-4: #ebebeb;
9
+ $calcite-color-surface-highlight: #d6efff;
10
+ $calcite-color-background: #f7f7f7; // Deprecated, use `--calcite-color-surface-1` instead
6
11
  $calcite-color-background-none: rgba(255, 255, 255, 0);
7
- $calcite-color-foreground-1: #ffffff;
8
- $calcite-color-foreground-2: #f2f2f2;
9
- $calcite-color-foreground-3: #ebebeb;
12
+ $calcite-color-foreground-1: #ffffff; // Deprecated, use `--calcite-color-surface-2` instead
13
+ $calcite-color-foreground-2: #f2f2f2; // Deprecated, use `--calcite-color-surface-3` instead
14
+ $calcite-color-foreground-3: #ebebeb; // Deprecated, use `--calcite-color-surface-4` instead
10
15
  $calcite-color-foreground-current: #d6efff; // deprecated, use --calcite-color-surface-highlight instead
11
- $calcite-color-surface-highlight: #d6efff;
12
- $calcite-color-transparent: rgba(0, 0, 0, 0);
13
- $calcite-color-transparent-hover: rgba(0, 0, 0, 0.04);
14
- $calcite-color-transparent-press: rgba(0, 0, 0, 0.08);
15
- $calcite-color-transparent-inverse-hover: rgba(255, 255, 255, 0.12);
16
- $calcite-color-transparent-inverse-press: rgba(255, 255, 255, 0.16);
17
- $calcite-color-transparent-scrim: rgba(255, 255, 255, 0.85);
18
- $calcite-color-transparent-tint: rgba(255, 255, 255, 0.8);
16
+ $calcite-color-text-1: #141414;
17
+ $calcite-color-text-2: #4a4a4a;
18
+ $calcite-color-text-3: #6b6b6b;
19
+ $calcite-color-text-inverse: #ffffff;
20
+ $calcite-color-text-link: #00619b;
21
+ $calcite-color-text-highlight: #004874;
22
+ $calcite-color-border-1: #d4d4d4;
23
+ $calcite-color-border-2: #dedede;
24
+ $calcite-color-border-3: #ebebeb;
25
+ $calcite-color-border-input: #949494;
26
+ $calcite-color-border-ghost: rgba(0, 0, 0, 0.3);
27
+ $calcite-color-border-white: #ffffff;
19
28
  $calcite-color-brand: #007ac2;
20
29
  $calcite-color-brand-hover: #00619b;
21
30
  $calcite-color-brand-press: #004874;
22
31
  $calcite-color-brand-underline: rgba(0, 97, 155, 0.4);
32
+ $calcite-color-inverse: #363636;
33
+ $calcite-color-inverse-hover: #2b2b2b;
34
+ $calcite-color-inverse-press: #212121;
23
35
  $calcite-color-status-info: #00619b;
24
36
  $calcite-color-status-info-hover: #004874;
25
37
  $calcite-color-status-info-press: #00304d;
26
- $calcite-color-status-success: #35ac46;
27
- $calcite-color-status-success-hover: #288835;
28
- $calcite-color-status-success-press: #1a6324;
29
- $calcite-color-status-warning: #f89927;
30
- $calcite-color-status-warning-hover: #d17300;
38
+ $calcite-color-status-success: #288835;
39
+ $calcite-color-status-success-hover: #1a6324;
40
+ $calcite-color-status-success-press: #0d3f14;
41
+ $calcite-color-status-warning: #da7c0b;
42
+ $calcite-color-status-warning-hover: #c26b00;
31
43
  $calcite-color-status-warning-press: #9a5b10;
32
44
  $calcite-color-status-danger: #d83020;
33
45
  $calcite-color-status-danger-hover: #a82b1e;
34
46
  $calcite-color-status-danger-press: #7c1d13;
35
- $calcite-color-inverse: #363636;
36
- $calcite-color-inverse-hover: #2b2b2b;
37
- $calcite-color-inverse-press: #212121;
38
- $calcite-color-text-1: #141414;
39
- $calcite-color-text-2: #4a4a4a;
40
- $calcite-color-text-3: #6b6b6b;
41
- $calcite-color-text-highlight: #004874;
42
- $calcite-color-text-inverse: #ffffff;
43
- $calcite-color-text-link: #00619b;
44
- $calcite-color-border-1: #c9c9c9;
45
- $calcite-color-border-2: #d4d4d4;
46
- $calcite-color-border-3: #dedede;
47
- $calcite-color-border-input: #949494;
48
- $calcite-color-border-ghost: rgba(0, 0, 0, 0.3);
49
- $calcite-color-border-white: #ffffff;
47
+ $calcite-color-transparent: rgba(0, 0, 0, 0);
48
+ $calcite-color-transparent-hover: rgba(0, 0, 0, 0.04);
49
+ $calcite-color-transparent-press: rgba(0, 0, 0, 0.08);
50
+ $calcite-color-transparent-scrim: rgba(255, 255, 255, 0.85);
51
+ $calcite-color-transparent-tint: rgba(255, 255, 255, 0.8);
52
+ $calcite-color-transparent-inverse-hover: rgba(255, 255, 255, 0.12);
53
+ $calcite-color-transparent-inverse-press: rgba(255, 255, 255, 0.16);
50
54
  $calcite-color-focus: $calcite-color-brand;
@@ -15,7 +15,7 @@ $calcite-corner-radius-none: 0;
15
15
  $calcite-corner-radius-xs: 2px;
16
16
  $calcite-corner-radius-sm: 4px;
17
17
  $calcite-corner-radius-round: 4px; // deprecated, use --calcite-corner-radius-sm instead
18
- $calcite-corner-radius-pill: 100%;
18
+ $calcite-corner-radius-pill: 9999px;
19
19
  $calcite-font-family: 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; // Primary font with fallbacks
20
20
  $calcite-font-family-code: Monaco, Consolas, 'Andale Mono', 'Lucida Console', monospace; // Font family for code with fallbacks
21
21
  $calcite-font-weight-light: 300; // For Avenir Next World (secondary font family)
@@ -30,7 +30,20 @@ $calcite-font-size: 14px;
30
30
  $calcite-font-size-md: 16px;
31
31
  $calcite-font-size-lg: 18px;
32
32
  $calcite-font-size-xl: 20px;
33
- $calcite-font-size-xxl: 24px;
33
+ $calcite-font-size-xxl: 24px; // Deprecated, use --calcite-font-size-2xl instead.
34
+ $calcite-font-size-2xl: 24px;
35
+ $calcite-font-size-relative-xs: 0.625rem;
36
+ $calcite-font-size-relative-sm: 0.75rem;
37
+ $calcite-font-size-relative-base: 0.875rem;
38
+ $calcite-font-size-relative-md: 1rem;
39
+ $calcite-font-size-relative-lg: 1.125rem;
40
+ $calcite-font-size-relative-xl: 1.25rem;
41
+ $calcite-font-size-relative-2xl: 1.625rem;
42
+ $calcite-font-size-relative-3xl: 2rem;
43
+ $calcite-font-size-relative-4xl: 2.5rem;
44
+ $calcite-font-size-relative-5xl: 3rem;
45
+ $calcite-font-size-relative-6xl: 3.5rem;
46
+ $calcite-font-size-relative-7xl: 4rem;
34
47
  $calcite-font-style-emphasis: italic; // used in ratings
35
48
  $calcite-font-line-height-fixed-sm: 12px;
36
49
  $calcite-font-line-height-fixed-base: 16px;
@@ -48,6 +61,18 @@ $calcite-font-line-height-relative-snug: 1.375; // 1.375
48
61
  $calcite-font-line-height-relative-normal: 1.5; // 1.5
49
62
  $calcite-font-line-height-relative-relaxed: 1.625; // 1.625
50
63
  $calcite-font-line-height-relative-loose: 2; // 2
64
+ $calcite-font-line-height-xs: 0.75rem;
65
+ $calcite-font-line-height-sm: 1rem;
66
+ $calcite-font-line-height-base: 1rem;
67
+ $calcite-font-line-height-md: 1.25rem;
68
+ $calcite-font-line-height-lg: 1.5rem;
69
+ $calcite-font-line-height-xl: 1.5rem;
70
+ $calcite-font-line-height-2xl: 2rem;
71
+ $calcite-font-line-height-3xl: 2.5rem;
72
+ $calcite-font-line-height-4xl: 3rem;
73
+ $calcite-font-line-height-5xl: 4rem;
74
+ $calcite-font-line-height-6xl: 4rem;
75
+ $calcite-font-line-height-7xl: 5rem;
51
76
  $calcite-font-letter-spacing-tight: -0.4px; // Deprecated
52
77
  $calcite-font-letter-spacing-normal: 0; // Deprecated
53
78
  $calcite-font-letter-spacing-wide: 0.4px; // Deprecated
@@ -58,11 +83,11 @@ $calcite-font-text-case-none: none; // Deprecated
58
83
  $calcite-font-text-case-uppercase: uppercase; // Deprecated
59
84
  $calcite-font-text-case-lowercase: lowercase; // Deprecated
60
85
  $calcite-font-text-case-capitalize: capitalize; // Deprecated
86
+ $calcite-opacity-disabled: 0.5;
61
87
  $calcite-opacity-light: 0.4;
62
88
  $calcite-opacity-half: 0.5;
63
89
  $calcite-opacity-dark: 0.85;
64
90
  $calcite-opacity-full: 1;
65
- $calcite-opacity-disabled: 0.5;
66
91
  $calcite-size-fixed-xxxs: 2px; // deprecated
67
92
  $calcite-size-fixed-xxs: 4px; // deprecated
68
93
  $calcite-size-fixed-xs: 6px; // deprecated
@@ -75,15 +100,20 @@ $calcite-size-fixed-xl: 20px; // deprecated
75
100
  $calcite-size-fixed-xxl: 24px; // deprecated
76
101
  $calcite-size-fixed-xxxl: 32px; // deprecated
77
102
  $calcite-size-px: 1px;
78
- $calcite-size-xxxs: 0.75rem;
79
- $calcite-size-xxs: 0.875rem;
103
+ $calcite-size-4xs: 0.625rem;
104
+ $calcite-size-xxxs: 0.75rem; // Deprecated, use --calcite-size-3xs instead.
105
+ $calcite-size-3xs: 0.75rem;
106
+ $calcite-size-xxs: 0.875rem; // Deprecated, use --calcite-size-2xs instead.
107
+ $calcite-size-2xs: 0.875rem;
80
108
  $calcite-size-xs: 1rem;
81
109
  $calcite-size-sm: 1.5rem;
82
110
  $calcite-size-md: 2rem;
83
111
  $calcite-size-lg: 2.75rem;
84
112
  $calcite-size-xl: 3rem;
85
- $calcite-size-xxl: 4rem;
86
- $calcite-size-xxxl: 6rem;
113
+ $calcite-size-xxl: 4rem; // Deprecated, use --calcite-size-2xl instead.
114
+ $calcite-size-2xl: 4rem;
115
+ $calcite-size-xxxl: 6rem; // Deprecated, use --calcite-size-3xl instead.
116
+ $calcite-size-3xl: 6rem;
87
117
  $calcite-spacing-fixed-xxs: 4px; // deprecated
88
118
  $calcite-spacing-fixed-xs: 6px; // deprecated
89
119
  $calcite-spacing-fixed-sm: 8px; // deprecated
@@ -92,19 +122,33 @@ $calcite-spacing-fixed-lg: 14px; // deprecated
92
122
  $calcite-spacing-fixed-xl: 16px; // deprecated
93
123
  $calcite-spacing-fixed-xxl: 20px; // deprecated
94
124
  $calcite-spacing-fixed-xxxl: 32px; // deprecated
95
- $calcite-spacing-none: 0;
96
- $calcite-spacing-px: 1px;
97
- $calcite-spacing-base: 2px;
98
- $calcite-spacing-xxs: 0.25rem;
99
- $calcite-spacing-xs: 0.375rem;
100
- $calcite-spacing-sm: 0.5rem;
101
- $calcite-spacing-sm-plus: 0.625rem;
102
- $calcite-spacing-md: 0.75rem;
103
- $calcite-spacing-md-plus: 0.875rem;
104
- $calcite-spacing-lg: 1rem;
105
- $calcite-spacing-xl: 1.25rem;
106
- $calcite-spacing-xxl: 1.5rem;
107
- $calcite-spacing-xxxl: 2rem;
125
+ $calcite-spacing-none: 0; // deprecated, use `--calcite-space-none` instead
126
+ $calcite-spacing-px: 1px; // deprecated, use `--calcite-space-px` instead
127
+ $calcite-spacing-base: 2px; // deprecated, use `--calcite-space-base` instead
128
+ $calcite-spacing-xxs: 0.25rem; // deprecated, use `--calcite-space-2xs` instead
129
+ $calcite-spacing-xs: 0.375rem; // deprecated, use `--calcite-space-xs` instead
130
+ $calcite-spacing-sm: 0.5rem; // deprecated, use `--calcite-space-sm` instead
131
+ $calcite-spacing-sm-plus: 0.625rem; // deprecated, use `--calcite-space-sm-plus` instead
132
+ $calcite-spacing-md: 0.75rem; // deprecated, use `--calcite-space-md` instead
133
+ $calcite-spacing-md-plus: 0.875rem; // deprecated, use `--calcite-space-md-plus` instead
134
+ $calcite-spacing-lg: 1rem; // deprecated, use `--calcite-space-lg` instead
135
+ $calcite-spacing-xl: 1.25rem; // deprecated, use `--calcite-space-xl` instead
136
+ $calcite-spacing-xxl: 1.5rem; // deprecated, use `--calcite-space-2xl` instead
137
+ $calcite-spacing-xxxl: 2rem; // deprecated, use `--calcite-space-3xl` instead
138
+ $calcite-space-none: 0;
139
+ $calcite-space-px: 1px;
140
+ $calcite-space-base: 2px;
141
+ $calcite-space-2xs: 0.25rem;
142
+ $calcite-space-xs: 0.375rem;
143
+ $calcite-space-sm: 0.5rem;
144
+ $calcite-space-sm-plus: 0.625rem;
145
+ $calcite-space-md: 0.75rem;
146
+ $calcite-space-md-plus: 0.875rem;
147
+ $calcite-space-lg: 1rem;
148
+ $calcite-space-xl: 1.25rem;
149
+ $calcite-space-2xl: 1.5rem;
150
+ $calcite-space-3xl: 2rem;
151
+ $calcite-space-4xl: 2.75rem;
108
152
  $calcite-z-index-deep: -999999;
109
153
  $calcite-z-index: 1;
110
154
  $calcite-z-index-sticky: 300;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-design-tokens",
3
- "version": "4.0.0-next.2",
3
+ "version": "4.0.0-next.20",
4
4
  "description": "Esri's Calcite Design System Tokens",
5
5
  "keywords": [
6
6
  "Calcite",
@@ -18,7 +18,7 @@
18
18
  "repository": {
19
19
  "type": "git",
20
20
  "url": "git://github.com/Esri/calcite-design-system.git",
21
- "directory": "packages/calcite-design-tokens"
21
+ "directory": "packages/design-tokens"
22
22
  },
23
23
  "author": {
24
24
  "name": "Esri"
@@ -28,23 +28,24 @@
28
28
  },
29
29
  "license": "SEE LICENSE.md",
30
30
  "scripts": {
31
- "build": "echo $MODE $GITHUB_ACTION && tsx src/build-tokens.ts",
32
- "build:watch": "tsx --watch src/build-tokens.ts",
31
+ "build": "echo $MODE $GITHUB_ACTION && node src/build-tokens.ts",
32
+ "build:watch": "node --watch src/build-tokens.ts",
33
33
  "clean": "rimraf node_modules dist .turbo",
34
34
  "lint:json": "prettier --ignore-path \"../../.prettierignore\" --write \"**/*.json\" >/dev/null",
35
35
  "lint:md": "prettier --ignore-path \"../../.prettierignore\" --write \"**/*.md\" >/dev/null && markdownlint-cli2 \"**/*.md\" --fix --config \"../../.markdownlint-cli2.jsonc\"",
36
36
  "lint:ts": "eslint --fix && prettier --ignore-path \"../../.prettierignore\" --write \"**/*.{ts,tsx,cjs,mjs}\" >/dev/null",
37
37
  "lint": "concurrently npm:lint:*",
38
38
  "test": "vitest run",
39
+ "test:ci": "npm test",
39
40
  "test:watch": "vitest",
40
- "util:update-3rd-party-licenses": "tsx ../../support/createThirdPartyLicenses.ts",
41
+ "util:update-3rd-party-licenses": "node ../../support/createThirdPartyLicenses.mts",
41
42
  "util:update-test-snapshots": "vitest --update"
42
43
  },
43
44
  "volta": {
44
45
  "extends": "../../package.json"
45
46
  },
46
47
  "devDependencies": {
47
- "vitest": "3.2.4"
48
+ "vitest": "4.0.16"
48
49
  },
49
- "gitHead": "75f17b620e72f183083e82a8a7a19c92b0872db9"
50
+ "gitHead": "23e373d0d1b2d3a9581182312a9ad8d4c5f9c279"
50
51
  }
@@ -1,11 +0,0 @@
1
- /**
2
- * Calcite Design System
3
- * Do not edit directly, this file was auto-generated.
4
- */
5
-
6
- :host {
7
- --calcite-internal-color-focus: var(
8
- --calcite-color-focus,
9
- var(--calcite-ui-focus-color, var(--calcite-color-brand))
10
- );
11
- }