@umami/react-zen 0.17.0 → 0.19.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/dist/styles.css CHANGED
@@ -1,5 +1,6 @@
1
1
  :root {
2
- /* Base values */
2
+ /* Fonts */
3
+
3
4
  --font-size-1: 12px;
4
5
  --font-size-2: 14px;
5
6
  --font-size-3: 16px;
@@ -15,6 +16,8 @@
15
16
  --font-weight-medium: 500;
16
17
  --font-weight-bold: 700;
17
18
 
19
+ /* Spacing */
20
+
18
21
  --spacing-1: 4px;
19
22
  --spacing-2: 8px;
20
23
  --spacing-3: 12px;
@@ -28,6 +31,8 @@
28
31
  --spacing-11: 96px;
29
32
  --spacing-12: 128px;
30
33
 
34
+ /* Borders */
35
+
31
36
  --border-size-1: 1px;
32
37
  --border-size-2: 2px;
33
38
  --border-size-3: 4px;
@@ -40,6 +45,8 @@
40
45
  --border-radius-5: 18px;
41
46
  --border-radius-6: 9999px;
42
47
 
48
+ /* Shadows */
49
+
43
50
  --box-shadow-1: 0 1px 2px 0 rgb(0 0 0 / 0.05);
44
51
  --box-shadow-2: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
45
52
  --box-shadow-3: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
@@ -47,7 +54,7 @@
47
54
  --box-shadow-5: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
48
55
  --box-shadow-6: 0 25px 50px -12px rgb(0 0 0 / 0.25);
49
56
 
50
- /* Color values */
57
+ /* Colors */
51
58
 
52
59
  --base-color-50: #fafafa;
53
60
  --base-color-100: #f5f5f5;
@@ -76,10 +83,10 @@
76
83
  --inactive-color: var(--base-color-400);
77
84
  --inactive-font-color: var(--base-color-900);
78
85
 
79
- /* Settings */
86
+ /* Global */
80
87
 
81
- --font-family: Inter;
82
- --font-family-code: 'JetBrains Mono';
88
+ --font-family: Inter, sans-serif;
89
+ --font-family-code: 'JetBrains Mono', monospace;
83
90
 
84
91
  --font-size: var(--font-size-2);
85
92
 
@@ -319,6 +326,27 @@ a:hover {
319
326
  .global_display-inline-flex {
320
327
  display: inline-flex;
321
328
  }
329
+ .global_display-grid {
330
+ display: grid;
331
+ }
332
+ .global_display-inline-grid {
333
+ display: inline-grid;
334
+ }
335
+ .global_position-absolute {
336
+ position: absolute;
337
+ }
338
+ .global_position-fixed {
339
+ position: fixed;
340
+ }
341
+ .global_position-stick {
342
+ position: sticky;
343
+ }
344
+ .global_position-static {
345
+ position: static;
346
+ }
347
+ .global_position-relative {
348
+ position: relative;
349
+ }
322
350
  .global_font-size {
323
351
  font-size: var(--font-size);
324
352
  }
@@ -442,15 +470,30 @@ a:hover {
442
470
  .global_background-color-950 {
443
471
  background-color: var(--base-color-950);
444
472
  }
445
- .global_align-left {
473
+ .global_text-align-left {
446
474
  text-align: left;
447
475
  }
448
- .global_align-center {
476
+ .global_text-align-center {
449
477
  text-align: center;
450
478
  }
451
- .global_align-right {
479
+ .global_text-align-right {
452
480
  text-align: right;
453
481
  }
482
+ .global_text-wrap-wrap {
483
+ text-wrap: wrap;
484
+ }
485
+ .global_text-wrap-nowrap {
486
+ text-wrap: nowrap;
487
+ }
488
+ .global_text-wrap-balance {
489
+ text-wrap: balance;
490
+ }
491
+ .global_text-wrap-pretty {
492
+ text-wrap: pretty;
493
+ }
494
+ .global_text-wrap-stable {
495
+ text-wrap: stable;
496
+ }
454
497
  .global_letter-spacing-tighter {
455
498
  letter-spacing: -0.05em;
456
499
  }
@@ -1348,10 +1391,25 @@ a:hover {
1348
1391
  .global_align-self-unsafe-center {
1349
1392
  align-self: unsafe center;
1350
1393
  }
1394
+ .global_grid-auto-flow-row {
1395
+ grid-auto-flow: row;
1396
+ }
1397
+ .global_grid-auto-flow-column {
1398
+ grid-auto-flow: column;
1399
+ }
1400
+ .global_grid-auto-flow-row-dense {
1401
+ grid-auto-flow: row dense;
1402
+ }
1403
+ .global_grid-auto-flow-column-dense {
1404
+ grid-auto-flow: column dense;
1405
+ }
1351
1406
  @media (min-width: 520px) {
1352
1407
  .global_display-xs {
1353
1408
  display: var(--display-xs);
1354
1409
  }
1410
+ .global_position-xs {
1411
+ position: var(--position-xs);
1412
+ }
1355
1413
  .global_font-size-xs {
1356
1414
  font-size: var(--font-size-xs);
1357
1415
  }
@@ -1470,11 +1528,29 @@ a:hover {
1470
1528
  .global_align-self-xs {
1471
1529
  align-self: var(--align-self-xs);
1472
1530
  }
1531
+ .global_grid-template-rows-xs {
1532
+ grid-template-rows: var(--grid-template-rows-xs);
1533
+ }
1534
+ .global_grid-template-columns-xs {
1535
+ grid-template-columns: var(--grid-template-columns-xs);
1536
+ }
1537
+ .global_flex-basis-xs {
1538
+ flex-basis: var(--flex-basis-xs);
1539
+ }
1540
+ .global_flex-grow-xs {
1541
+ flex-basis: var(--flex-grow-xs);
1542
+ }
1543
+ .global_flex-shrink-xs {
1544
+ flex-basis: var(--flex-shrink-xs);
1545
+ }
1473
1546
  }
1474
1547
  @media (min-width: 768px) {
1475
1548
  .global_display-sm {
1476
1549
  display: var(--display-sm);
1477
1550
  }
1551
+ .global_position-sm {
1552
+ position: var(--position-sm);
1553
+ }
1478
1554
  .global_font-size-sm {
1479
1555
  font-size: var(--font-size-sm);
1480
1556
  }
@@ -1593,11 +1669,29 @@ a:hover {
1593
1669
  .global_align-self-sm {
1594
1670
  align-self: var(--align-self-sm);
1595
1671
  }
1672
+ .global_grid-template-rows-sm {
1673
+ grid-template-rows: var(--grid-template-rows-sm);
1674
+ }
1675
+ .global_grid-template-columns-sm {
1676
+ grid-template-columns: var(--grid-template-columns-sm);
1677
+ }
1678
+ .global_flex-basis-sm {
1679
+ flex-basis: var(--flex-basis-sm);
1680
+ }
1681
+ .global_flex-grow-sm {
1682
+ flex-basis: var(--flex-grow-sm);
1683
+ }
1684
+ .global_flex-shrink-sm {
1685
+ flex-basis: var(--flex-shrink-sm);
1686
+ }
1596
1687
  }
1597
1688
  @media (min-width: 1024px) {
1598
1689
  .global_display-md {
1599
1690
  display: var(--display-md);
1600
1691
  }
1692
+ .global_position-md {
1693
+ position: var(--position-md);
1694
+ }
1601
1695
  .global_font-size-md {
1602
1696
  font-size: var(--font-size-md);
1603
1697
  }
@@ -1716,11 +1810,29 @@ a:hover {
1716
1810
  .global_align-self-md {
1717
1811
  align-self: var(--align-self-md);
1718
1812
  }
1813
+ .global_grid-template-rows-md {
1814
+ grid-template-rows: var(--grid-template-rows-md);
1815
+ }
1816
+ .global_grid-template-columns-md {
1817
+ grid-template-columns: var(--grid-template-columns-md);
1818
+ }
1819
+ .global_flex-basis-md {
1820
+ flex-basis: var(--flex-basis-md);
1821
+ }
1822
+ .global_flex-grow-md {
1823
+ flex-basis: var(--flex-grow-md);
1824
+ }
1825
+ .global_flex-shrink-md {
1826
+ flex-basis: var(--flex-shrink-md);
1827
+ }
1719
1828
  }
1720
1829
  @media (min-width: 1280px) {
1721
1830
  .global_display-lg {
1722
1831
  display: var(--display-lg);
1723
1832
  }
1833
+ .global_position-lg {
1834
+ position: var(--position-lg);
1835
+ }
1724
1836
  .global_font-size-lg {
1725
1837
  font-size: var(--font-size-lg);
1726
1838
  }
@@ -1839,11 +1951,29 @@ a:hover {
1839
1951
  .global_align-self-lg {
1840
1952
  align-self: var(--align-self-lg);
1841
1953
  }
1954
+ .global_grid-template-rows-lg {
1955
+ grid-template-rows: var(--grid-template-rows-lg);
1956
+ }
1957
+ .global_grid-template-columns-lg {
1958
+ grid-template-columns: var(--grid-template-columns-lg);
1959
+ }
1960
+ .global_flex-basis-lg {
1961
+ flex-basis: var(--flex-basis-lg);
1962
+ }
1963
+ .global_flex-grow-lg {
1964
+ flex-basis: var(--flex-grow-lg);
1965
+ }
1966
+ .global_flex-shrink-lg {
1967
+ flex-basis: var(--flex-shrink-lg);
1968
+ }
1842
1969
  }
1843
1970
  @media (min-width: 1640px) {
1844
1971
  .global_display-xl {
1845
1972
  display: var(--display-xl);
1846
1973
  }
1974
+ .global_position-xl {
1975
+ position: var(--position-xl);
1976
+ }
1847
1977
  .global_font-size-xl {
1848
1978
  font-size: var(--font-size-xl);
1849
1979
  }
@@ -1962,6 +2092,21 @@ a:hover {
1962
2092
  .global_align-self-xl {
1963
2093
  align-self: var(--align-self-xl);
1964
2094
  }
2095
+ .global_grid-template-rows-xl {
2096
+ grid-template-rows: var(--grid-template-rows-xl);
2097
+ }
2098
+ .global_grid-template-columns-xl {
2099
+ grid-template-columns: var(--grid-template-columns-xl);
2100
+ }
2101
+ .global_flex-basis-xl {
2102
+ flex-basis: var(--flex-basis-xl);
2103
+ }
2104
+ .global_flex-grow-xl {
2105
+ flex-basis: var(--flex-grow-xl);
2106
+ }
2107
+ .global_flex-shrink-xl {
2108
+ flex-basis: var(--flex-shrink-xl);
2109
+ }
1965
2110
  }
1966
2111
 
1967
2112
  /* src/components/Text.module.css */
@@ -2301,7 +2446,7 @@ body a.Button_button {
2301
2446
  align-items: center;
2302
2447
  margin-bottom: var(--spacing-4);
2303
2448
  }
2304
- .Calendar_heading {
2449
+ .Calendar_calendar .Calendar_heading {
2305
2450
  flex: 1;
2306
2451
  margin: 0;
2307
2452
  text-align: center;
package/dist/zen.css ADDED
@@ -0,0 +1,142 @@
1
+ :root {
2
+ /* Base values */
3
+ --spacing-1: 0.25rem;
4
+ --spacing-2: 0.5rem;
5
+ --spacing-3: 1rem;
6
+ --spacing-4: 1.25rem;
7
+ --spacing-5: 1.5rem;
8
+ --spacing-6: 1.75rem;
9
+ --spacing-7: 2rem;
10
+ --spacing-8: 3rem;
11
+ --spacing-9: 4rem;
12
+ --spacing-10: 5rem;
13
+ --spacing-11: 7.5rem;
14
+ --spacing-12: 10rem;
15
+
16
+ --gap-xs: 1px;
17
+ --gap-sm: 0.5rem;
18
+ --gap-md: 1rem;
19
+ --gap-lg: 2rem;
20
+ --gap-xl: 8rem;
21
+
22
+ --font-size-xs: 0.75rem;
23
+ --font-size-sm: 0.875rem;
24
+ --font-size-md: 1rem;
25
+ --font-size-lg: 1.25rem;
26
+ --font-size-xl: 1.5rem;
27
+
28
+ --border-sm: 1px;
29
+ --border-md: 2px;
30
+ --border-lg: 4px;
31
+
32
+ --border-radius-sm: 0.125rem;
33
+ --border-radius-md: 0.25rem;
34
+ --border-radius-lg: 0.5rem;
35
+ --border-radius-full: 100%;
36
+
37
+ --box-shadow-1: 0 1px 2px 0 rgb(0 0 0 / 0.05);
38
+ --box-shadow-2: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
39
+ --box-shadow-3: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
40
+ --box-shadow-4: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
41
+ --box-shadow-5: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
42
+ --box-shadow-6: 0 25px 50px -12px rgb(0 0 0 / 0.25);
43
+
44
+ --base-color-50: #fafafa;
45
+ --base-color-100: #f5f5f5;
46
+ --base-color-200: #e5e5e5;
47
+ --base-color-300: #d4d4d4;
48
+ --base-color-400: #a3a3a3;
49
+ --base-color-500: #737373;
50
+ --base-color-600: #525252;
51
+ --base-color-700: #404040;
52
+ --base-color-800: #262626;
53
+ --base-color-900: #171717;
54
+ --base-color-950: #0a0a0a;
55
+
56
+ --success-color: #22c55e;
57
+ --success-font-color: var(--base-color-50);
58
+
59
+ --danger-color: #ef4444;
60
+ --danger-font-color: var(--base-color-50);
61
+
62
+ --warning-color: #f97316;
63
+ --warning-font-color: var(--base-color-50);
64
+
65
+ --active-color: #3b82f6;
66
+ --active-font-color: var(--base-color-50);
67
+
68
+ --inactive-color: var(--base-color-400);
69
+ --inactive-font-color: var(--base-color-900);
70
+
71
+ /* Settings */
72
+
73
+ --font-size: 16px;
74
+
75
+ --border-radius: var(--border-radius-md);
76
+
77
+ --gap: var(--spacing-5);
78
+
79
+ --padding: var(--spacing-2) var(--spacing-3);
80
+
81
+ --box-shadow: var(--box-shadow-1);
82
+
83
+ --light-color: var(--base-color-50);
84
+
85
+ --dark-color: var(--base-color-950);
86
+
87
+ /* Theme settings */
88
+
89
+ --background-color: #fff;
90
+
91
+ --font-color: var(--base-color-950);
92
+ --font-muted-color: var(--base-color-500);
93
+ --font-faded-color: var(--base-color-400);
94
+
95
+ --border-color: var(--base-color-300);
96
+ --border: var(--border-sm) solid var(--border-color);
97
+
98
+ --outline-color: var(--base-color-400);
99
+ --outline: var(--border-sm) solid var(--outline-color);
100
+
101
+ --primary-color: var(--base-color-900);
102
+ --primary-font-color: var(--base-color-50);
103
+
104
+ --secondary-color: var(--base-color-100);
105
+ --secondary-font-color: var(--font-color);
106
+
107
+ --highlight-color: var(--base-color-50);
108
+ --highlight-font-color: var(--font-color);
109
+
110
+ --input-background-color: var(--base-color-200);
111
+ --input-disabled-color: var(--base-color-100);
112
+
113
+ [data-theme='dark'] {
114
+ --background-color: var(--base-color-950);
115
+
116
+ --font-color: var(--base-color-200);
117
+ --font-muted-color: var(--base-color-400);
118
+ --font-faded-color: var(--base-color-500);
119
+
120
+ --border-color: var(--base-color-700);
121
+ --border: var(--border-sm) solid var(--border-color);
122
+
123
+ --outline-color: var(--base-color-600);
124
+ --outline: var(--border-sm) solid var(--outline-color);
125
+
126
+ --primary-color: var(--base-color-50);
127
+ --primary-font-color: var(--base-color-900);
128
+
129
+ --secondary-color: var(--base-color-800);
130
+ --secondary-font-color: var(--font-color);
131
+
132
+ --highlight-color: var(--base-color-800);
133
+ --highlight-font-color: var(--font-color);
134
+
135
+ --input-background-color: var(--base-color-700);
136
+ --input-disabled-color: var(--base-color-800);
137
+ }
138
+
139
+ :where(input, textarea, select) {
140
+ min-width: 240px;
141
+ }
142
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "React components built by Umami",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
@@ -27,8 +27,9 @@
27
27
  "types": "tsc -p tsconfig.build.json",
28
28
  "esbuild": "node esbuild.mjs",
29
29
  "rollup": "rollup -c",
30
- "dts": "node ./dts.js",
31
- "bundle": "npm-run-all types dts esbuild"
30
+ "dts": "node dts.mjs",
31
+ "css": "node css.mjs",
32
+ "bundle": "npm-run-all types dts esbuild css"
32
33
  },
33
34
  "lint-staged": {
34
35
  "**/*.{js,jsx,ts,tsx}": [
@@ -57,7 +58,7 @@
57
58
  "next": "15.0.2",
58
59
  "next-mdx-remote": "^5.0.0",
59
60
  "react": "^19.0.0-rc-66855b96-20241106",
60
- "react-aria-components": "^1.2.1",
61
+ "react-aria-components": "^1.5.0",
61
62
  "react-dom": "^19.0.0-rc-66855b96-20241106",
62
63
  "react-hook-form": "^7.53.0",
63
64
  "react-icons": "^5.2.1",
@@ -91,7 +92,7 @@
91
92
  "lint-staged": "^15.2.7",
92
93
  "npm-run-all": "^4.1.5",
93
94
  "postcss": "^8.4.47",
94
- "postcss-modules": "^6.0.0",
95
+ "postcss-modules": "^6.0.1",
95
96
  "postcss-selector-parser": "^6.1.2",
96
97
  "prettier": "^3.2.5",
97
98
  "rollup": "^4.17.2",