@nswds/tokens 3.7.0 → 3.8.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.
@@ -0,0 +1,10 @@
1
+ export declare const duration: {
2
+ fast: string
3
+ base: string
4
+ slow: string
5
+ }
6
+ export declare const easing: {
7
+ standard: string
8
+ decelerate: string
9
+ accelerate: string
10
+ }
@@ -0,0 +1,10 @@
1
+ export const duration = {
2
+ fast: '150ms',
3
+ base: '250ms',
4
+ slow: '400ms',
5
+ }
6
+ export const easing = {
7
+ standard: 'cubic-bezier(0.4, 0, 0.2, 1)',
8
+ decelerate: 'cubic-bezier(0, 0, 0.2, 1)',
9
+ accelerate: 'cubic-bezier(0.4, 0, 1, 1)',
10
+ }
@@ -0,0 +1,10 @@
1
+ export declare const zIndex: {
2
+ base: number
3
+ dropdown: number
4
+ sticky: number
5
+ overlay: number
6
+ modal: number
7
+ popover: number
8
+ toast: number
9
+ tooltip: number
10
+ }
@@ -0,0 +1,10 @@
1
+ export const zIndex = {
2
+ base: 0,
3
+ dropdown: 1000,
4
+ sticky: 1100,
5
+ overlay: 1200,
6
+ modal: 1300,
7
+ popover: 1400,
8
+ toast: 1500,
9
+ tooltip: 1600,
10
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "duration": {
3
+ "duration-fast": "150ms",
4
+ "duration-base": "250ms",
5
+ "duration-slow": "400ms"
6
+ },
7
+ "easing": {
8
+ "easing-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
9
+ "easing-decelerate": "cubic-bezier(0, 0, 0.2, 1)",
10
+ "easing-accelerate": "cubic-bezier(0.4, 0, 1, 1)"
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "z-index": {
3
+ "z-index-base": 0,
4
+ "z-index-dropdown": 1000,
5
+ "z-index-sticky": 1100,
6
+ "z-index-overlay": 1200,
7
+ "z-index-modal": 1300,
8
+ "z-index-popover": 1400,
9
+ "z-index-toast": 1500,
10
+ "z-index-tooltip": 1600
11
+ }
12
+ }
@@ -0,0 +1,6 @@
1
+ @duration-fast: 150ms; // Fast — quick feedback on small elements (hovers, toggles, focus rings). DRAFT pending design review.
2
+ @duration-base: 250ms; // Base — the default duration for most UI transitions. DRAFT pending design review.
3
+ @duration-slow: 400ms; // Slow — larger surfaces entering or leaving (modals, drawers, sheets). DRAFT pending design review.
4
+ @easing-standard: cubic-bezier(0.4, 0, 0.2, 1); // Standard ease-in-out — the default curve for elements moving within the viewport. DRAFT pending design review.
5
+ @easing-decelerate: cubic-bezier(0, 0, 0.2, 1); // Decelerate (ease-out) — elements entering the screen, fast then settling. DRAFT pending design review.
6
+ @easing-accelerate: cubic-bezier(0.4, 0, 1, 1); // Accelerate (ease-in) — elements leaving the screen, building speed as they exit. DRAFT pending design review.
@@ -0,0 +1,8 @@
1
+ @z-index-base: 0; // Base stacking level (0) — default in-flow content. DRAFT pending design review.
2
+ @z-index-dropdown: 1000; // Dropdown menus and select popups. DRAFT pending design review.
3
+ @z-index-sticky: 1100; // Sticky elements that pin on scroll (headers, toolbars). DRAFT pending design review.
4
+ @z-index-overlay: 1200; // Full-screen overlay scrims sitting behind modal content. DRAFT pending design review.
5
+ @z-index-modal: 1300; // Modal dialogs and side sheets. DRAFT pending design review.
6
+ @z-index-popover: 1400; // Popovers anchored to a trigger, above modals. DRAFT pending design review.
7
+ @z-index-toast: 1500; // Toast and snackbar notifications. DRAFT pending design review.
8
+ @z-index-tooltip: 1600; // Tooltips — the top-most interactive layer. DRAFT pending design review.
@@ -0,0 +1,6 @@
1
+ $duration-fast: 150ms; // Fast — quick feedback on small elements (hovers, toggles, focus rings). DRAFT pending design review.
2
+ $duration-base: 250ms; // Base — the default duration for most UI transitions. DRAFT pending design review.
3
+ $duration-slow: 400ms; // Slow — larger surfaces entering or leaving (modals, drawers, sheets). DRAFT pending design review.
4
+ $easing-standard: cubic-bezier(0.4, 0, 0.2, 1); // Standard ease-in-out — the default curve for elements moving within the viewport. DRAFT pending design review.
5
+ $easing-decelerate: cubic-bezier(0, 0, 0.2, 1); // Decelerate (ease-out) — elements entering the screen, fast then settling. DRAFT pending design review.
6
+ $easing-accelerate: cubic-bezier(0.4, 0, 1, 1); // Accelerate (ease-in) — elements leaving the screen, building speed as they exit. DRAFT pending design review.
@@ -0,0 +1,8 @@
1
+ $z-index-base: 0; // Base stacking level (0) — default in-flow content. DRAFT pending design review.
2
+ $z-index-dropdown: 1000; // Dropdown menus and select popups. DRAFT pending design review.
3
+ $z-index-sticky: 1100; // Sticky elements that pin on scroll (headers, toolbars). DRAFT pending design review.
4
+ $z-index-overlay: 1200; // Full-screen overlay scrims sitting behind modal content. DRAFT pending design review.
5
+ $z-index-modal: 1300; // Modal dialogs and side sheets. DRAFT pending design review.
6
+ $z-index-popover: 1400; // Popovers anchored to a trigger, above modals. DRAFT pending design review.
7
+ $z-index-toast: 1500; // Toast and snackbar notifications. DRAFT pending design review.
8
+ $z-index-tooltip: 1600; // Tooltips — the top-most interactive layer. DRAFT pending design review.
@@ -0,0 +1,8 @@
1
+ @theme {
2
+ --duration-fast: 150ms;
3
+ --duration-base: 250ms;
4
+ --duration-slow: 400ms;
5
+ --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
6
+ --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
7
+ --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
8
+ }
@@ -956,3 +956,27 @@
956
956
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
957
957
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
958
958
  }
959
+
960
+
961
+ /* ── tailwind/motion/global.css ── */
962
+ @theme {
963
+ --duration-fast: 150ms;
964
+ --duration-base: 250ms;
965
+ --duration-slow: 400ms;
966
+ --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
967
+ --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
968
+ --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
969
+ }
970
+
971
+
972
+ /* ── tailwind/z-index/global.css ── */
973
+ @theme {
974
+ --z-index-base: 0;
975
+ --z-index-dropdown: 1000;
976
+ --z-index-sticky: 1100;
977
+ --z-index-overlay: 1200;
978
+ --z-index-modal: 1300;
979
+ --z-index-popover: 1400;
980
+ --z-index-toast: 1500;
981
+ --z-index-tooltip: 1600;
982
+ }
@@ -0,0 +1,10 @@
1
+ @theme {
2
+ --z-index-base: 0;
3
+ --z-index-dropdown: 1000;
4
+ --z-index-sticky: 1100;
5
+ --z-index-overlay: 1200;
6
+ --z-index-modal: 1300;
7
+ --z-index-popover: 1400;
8
+ --z-index-toast: 1500;
9
+ --z-index-tooltip: 1600;
10
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "duration": {
3
+ "fast": {
4
+ "$type": "duration",
5
+ "$description": "Fast — quick feedback on small elements (hovers, toggles, focus rings). DRAFT pending design review.",
6
+ "$value": {
7
+ "value": 150,
8
+ "unit": "ms"
9
+ }
10
+ },
11
+ "base": {
12
+ "$type": "duration",
13
+ "$description": "Base — the default duration for most UI transitions. DRAFT pending design review.",
14
+ "$value": {
15
+ "value": 250,
16
+ "unit": "ms"
17
+ }
18
+ },
19
+ "slow": {
20
+ "$type": "duration",
21
+ "$description": "Slow — larger surfaces entering or leaving (modals, drawers, sheets). DRAFT pending design review.",
22
+ "$value": {
23
+ "value": 400,
24
+ "unit": "ms"
25
+ }
26
+ }
27
+ },
28
+ "easing": {
29
+ "standard": {
30
+ "$type": "cubicBezier",
31
+ "$description": "Standard ease-in-out — the default curve for elements moving within the viewport. DRAFT pending design review.",
32
+ "$value": [0.4, 0, 0.2, 1]
33
+ },
34
+ "decelerate": {
35
+ "$type": "cubicBezier",
36
+ "$description": "Decelerate (ease-out) — elements entering the screen, fast then settling. DRAFT pending design review.",
37
+ "$value": [0, 0, 0.2, 1]
38
+ },
39
+ "accelerate": {
40
+ "$type": "cubicBezier",
41
+ "$description": "Accelerate (ease-in) — elements leaving the screen, building speed as they exit. DRAFT pending design review.",
42
+ "$value": [0.4, 0, 1, 1]
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "z-index": {
3
+ "base": {
4
+ "$type": "number",
5
+ "$description": "Base stacking level (0) — default in-flow content. DRAFT pending design review.",
6
+ "$value": 0
7
+ },
8
+ "dropdown": {
9
+ "$type": "number",
10
+ "$description": "Dropdown menus and select popups. DRAFT pending design review.",
11
+ "$value": 1000
12
+ },
13
+ "sticky": {
14
+ "$type": "number",
15
+ "$description": "Sticky elements that pin on scroll (headers, toolbars). DRAFT pending design review.",
16
+ "$value": 1100
17
+ },
18
+ "overlay": {
19
+ "$type": "number",
20
+ "$description": "Full-screen overlay scrims sitting behind modal content. DRAFT pending design review.",
21
+ "$value": 1200
22
+ },
23
+ "modal": {
24
+ "$type": "number",
25
+ "$description": "Modal dialogs and side sheets. DRAFT pending design review.",
26
+ "$value": 1300
27
+ },
28
+ "popover": {
29
+ "$type": "number",
30
+ "$description": "Popovers anchored to a trigger, above modals. DRAFT pending design review.",
31
+ "$value": 1400
32
+ },
33
+ "toast": {
34
+ "$type": "number",
35
+ "$description": "Toast and snackbar notifications. DRAFT pending design review.",
36
+ "$value": 1500
37
+ },
38
+ "tooltip": {
39
+ "$type": "number",
40
+ "$description": "Tooltips — the top-most interactive layer. DRAFT pending design review.",
41
+ "$value": 1600
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,10 @@
1
+ export const duration = {
2
+ fast: '150ms',
3
+ base: '250ms',
4
+ slow: '400ms',
5
+ }
6
+ export const easing = {
7
+ standard: 'cubic-bezier(0.4, 0, 0.2, 1)',
8
+ decelerate: 'cubic-bezier(0, 0, 0.2, 1)',
9
+ accelerate: 'cubic-bezier(0.4, 0, 1, 1)',
10
+ }
@@ -0,0 +1,10 @@
1
+ export const zIndex = {
2
+ base: 0,
3
+ dropdown: 1000,
4
+ sticky: 1100,
5
+ overlay: 1200,
6
+ modal: 1300,
7
+ popover: 1400,
8
+ toast: 1500,
9
+ tooltip: 1600,
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nswds/tokens",
3
- "version": "3.7.0",
3
+ "version": "3.8.1",
4
4
  "description": "Design tokens for NSW Government digital products, providing colour tokens, theme outputs, and brand assets for use across CSS, SCSS, Less, JavaScript, TypeScript, JSON, Tailwind, Figma, and DTCG-compatible workflows.",
5
5
  "license": "MPL-2.0",
6
6
  "keywords": [