@segmentify/ui 0.0.27 → 0.0.29

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/ui.css CHANGED
@@ -8,13 +8,23 @@
8
8
  --ui-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
9
  "Courier New", monospace;
10
10
  --ui-color-red-500: oklch(63.7% 0.237 25.331);
11
+ --ui-color-amber-50: oklch(98.7% 0.022 95.277);
11
12
  --ui-color-amber-200: oklch(92.4% 0.12 95.746);
13
+ --ui-color-amber-800: oklch(47.3% 0.137 46.201);
12
14
  --ui-color-yellow-500: oklch(79.5% 0.184 86.047);
15
+ --ui-color-green-50: oklch(98.2% 0.018 155.826);
13
16
  --ui-color-green-200: oklch(92.5% 0.084 155.995);
14
17
  --ui-color-green-400: oklch(79.2% 0.209 151.711);
15
18
  --ui-color-green-500: oklch(72.3% 0.219 149.579);
19
+ --ui-color-green-700: oklch(52.7% 0.154 150.069);
20
+ --ui-color-green-800: oklch(44.8% 0.119 151.328);
21
+ --ui-color-blue-50: oklch(97% 0.014 254.604);
22
+ --ui-color-blue-200: oklch(88.2% 0.059 254.128);
16
23
  --ui-color-blue-500: oklch(62.3% 0.214 259.815);
24
+ --ui-color-blue-800: oklch(42.4% 0.199 265.638);
17
25
  --ui-color-purple-500: oklch(62.7% 0.265 303.9);
26
+ --ui-color-slate-50: oklch(98.4% 0.003 247.858);
27
+ --ui-color-slate-200: oklch(92.9% 0.013 255.508);
18
28
  --ui-color-gray-200: #e5e7eb;
19
29
  --ui-color-gray-300: #d2d6dc;
20
30
  --ui-color-gray-400: #9fa6b2;
@@ -44,6 +54,8 @@
44
54
  --ui-text-lg--line-height: calc(1.75 / 1.125);
45
55
  --ui-text-xl: 1.25rem;
46
56
  --ui-text-xl--line-height: calc(1.75 / 1.25);
57
+ --ui-text-2xl: 1.5rem;
58
+ --ui-text-2xl--line-height: calc(2 / 1.5);
47
59
  --ui-text-3xl: 1.875rem;
48
60
  --ui-text-3xl--line-height: calc(2.25 / 1.875);
49
61
  --ui-text-4xl: 2.25rem;
@@ -468,6 +480,9 @@
468
480
  .ui\:mb-6 {
469
481
  margin-bottom: calc(var(--ui-spacing) * 6);
470
482
  }
483
+ .ui\:mb-8 {
484
+ margin-bottom: calc(var(--ui-spacing) * 8);
485
+ }
471
486
  .ui\:-ml-4 {
472
487
  margin-left: calc(var(--ui-spacing) * -4);
473
488
  }
@@ -785,6 +800,9 @@
785
800
  .ui\:max-w-\[calc\(100\%-2rem\)\] {
786
801
  max-width: calc(100% - 2rem);
787
802
  }
803
+ .ui\:max-w-full {
804
+ max-width: 100%;
805
+ }
788
806
  .ui\:max-w-max {
789
807
  max-width: max-content;
790
808
  }
@@ -937,6 +955,9 @@
937
955
  .ui\:auto-rows-min {
938
956
  grid-auto-rows: min-content;
939
957
  }
958
+ .ui\:grid-cols-1 {
959
+ grid-template-columns: repeat(1, minmax(0, 1fr));
960
+ }
940
961
  .ui\:grid-cols-2 {
941
962
  grid-template-columns: repeat(2, minmax(0, 1fr));
942
963
  }
@@ -1215,6 +1236,12 @@
1215
1236
  .ui\:border-\(--color-border\) {
1216
1237
  border-color: var(--color-border);
1217
1238
  }
1239
+ .ui\:border-amber-200 {
1240
+ border-color: var(--ui-color-amber-200);
1241
+ }
1242
+ .ui\:border-blue-200 {
1243
+ border-color: var(--ui-color-blue-200);
1244
+ }
1218
1245
  .ui\:border-border {
1219
1246
  border-color: var(--ui-color-border);
1220
1247
  }
@@ -1233,6 +1260,9 @@
1233
1260
  .ui\:border-gray-200 {
1234
1261
  border-color: var(--ui-color-gray-200);
1235
1262
  }
1263
+ .ui\:border-green-200 {
1264
+ border-color: var(--ui-color-green-200);
1265
+ }
1236
1266
  .ui\:border-input {
1237
1267
  border-color: var(--ui-color-input);
1238
1268
  }
@@ -1248,6 +1278,9 @@
1248
1278
  .ui\:border-sidebar-border {
1249
1279
  border-color: var(--ui-sidebar-border);
1250
1280
  }
1281
+ .ui\:border-slate-200 {
1282
+ border-color: var(--ui-color-slate-200);
1283
+ }
1251
1284
  .ui\:border-transparent {
1252
1285
  border-color: transparent;
1253
1286
  }
@@ -1263,6 +1296,9 @@
1263
1296
  .ui\:bg-accent {
1264
1297
  background-color: var(--ui-color-accent);
1265
1298
  }
1299
+ .ui\:bg-amber-50 {
1300
+ background-color: var(--ui-color-amber-50);
1301
+ }
1266
1302
  .ui\:bg-amber-200 {
1267
1303
  background-color: var(--ui-color-amber-200);
1268
1304
  }
@@ -1275,6 +1311,9 @@
1275
1311
  background-color: color-mix(in oklab, var(--ui-color-black) 50%, transparent);
1276
1312
  }
1277
1313
  }
1314
+ .ui\:bg-blue-50 {
1315
+ background-color: var(--ui-color-blue-50);
1316
+ }
1278
1317
  .ui\:bg-blue-500\/30 {
1279
1318
  background-color: var(--ui-color-blue-500);
1280
1319
  @supports (color: color-mix(in lab, red, red)) {
@@ -1299,6 +1338,9 @@
1299
1338
  .ui\:bg-gray-500 {
1300
1339
  background-color: var(--ui-color-gray-500);
1301
1340
  }
1341
+ .ui\:bg-green-50 {
1342
+ background-color: var(--ui-color-green-50);
1343
+ }
1302
1344
  .ui\:bg-green-400 {
1303
1345
  background-color: var(--ui-color-green-400);
1304
1346
  }
@@ -1380,6 +1422,9 @@
1380
1422
  .ui\:bg-sidebar-border {
1381
1423
  background-color: var(--ui-sidebar-border);
1382
1424
  }
1425
+ .ui\:bg-slate-50 {
1426
+ background-color: var(--ui-color-slate-50);
1427
+ }
1383
1428
  .ui\:bg-transparent {
1384
1429
  background-color: transparent;
1385
1430
  }
@@ -1461,6 +1506,9 @@
1461
1506
  .ui\:py-1 {
1462
1507
  padding-block: calc(var(--ui-spacing) * 1);
1463
1508
  }
1509
+ .ui\:py-1\! {
1510
+ padding-block: calc(var(--ui-spacing) * 1) !important;
1511
+ }
1464
1512
  .ui\:py-1\.5 {
1465
1513
  padding-block: calc(var(--ui-spacing) * 1.5);
1466
1514
  }
@@ -1509,6 +1557,9 @@
1509
1557
  .ui\:pb-0 {
1510
1558
  padding-bottom: calc(var(--ui-spacing) * 0);
1511
1559
  }
1560
+ .ui\:pb-2 {
1561
+ padding-bottom: calc(var(--ui-spacing) * 2);
1562
+ }
1512
1563
  .ui\:pb-3 {
1513
1564
  padding-bottom: calc(var(--ui-spacing) * 3);
1514
1565
  }
@@ -1548,6 +1599,10 @@
1548
1599
  .ui\:font-sans {
1549
1600
  font-family: var(--ui-font-sans);
1550
1601
  }
1602
+ .ui\:text-2xl {
1603
+ font-size: var(--ui-text-2xl);
1604
+ line-height: var(--tw-leading, var(--ui-text-2xl--line-height));
1605
+ }
1551
1606
  .ui\:text-3xl {
1552
1607
  font-size: var(--ui-text-3xl);
1553
1608
  line-height: var(--tw-leading, var(--ui-text-3xl--line-height));
@@ -1638,6 +1693,9 @@
1638
1693
  .ui\:text-accent-foreground {
1639
1694
  color: var(--ui-color-accent-foreground);
1640
1695
  }
1696
+ .ui\:text-amber-800 {
1697
+ color: var(--ui-color-amber-800);
1698
+ }
1641
1699
  .ui\:text-background {
1642
1700
  color: var(--ui-color-background);
1643
1701
  }
@@ -1653,6 +1711,9 @@
1653
1711
  .ui\:text-black-950\! {
1654
1712
  color: var(--ui-color-black-950) !important;
1655
1713
  }
1714
+ .ui\:text-blue-800 {
1715
+ color: var(--ui-color-blue-800);
1716
+ }
1656
1717
  .ui\:text-card-foreground {
1657
1718
  color: var(--ui-color-card-foreground);
1658
1719
  }
@@ -1674,9 +1735,18 @@
1674
1735
  .ui\:text-gray-600 {
1675
1736
  color: var(--ui-color-gray-600);
1676
1737
  }
1738
+ .ui\:text-green-700 {
1739
+ color: var(--ui-color-green-700);
1740
+ }
1741
+ .ui\:text-green-800 {
1742
+ color: var(--ui-color-green-800);
1743
+ }
1677
1744
  .ui\:text-muted-foreground {
1678
1745
  color: var(--ui-color-muted-foreground);
1679
1746
  }
1747
+ .ui\:text-muted-foreground\! {
1748
+ color: var(--ui-color-muted-foreground) !important;
1749
+ }
1680
1750
  .ui\:text-popover-foreground {
1681
1751
  color: var(--ui-color-popover-foreground);
1682
1752
  }
@@ -2784,6 +2854,16 @@
2784
2854
  cursor: e-resize;
2785
2855
  }
2786
2856
  }
2857
+ .ui\:in-data-\[slot\=card-content\]\:bg-transparent {
2858
+ :where(*[data-slot="card-content"]) & {
2859
+ background-color: transparent;
2860
+ }
2861
+ }
2862
+ .ui\:in-data-\[slot\=popover-content\]\:bg-transparent {
2863
+ :where(*[data-slot="popover-content"]) & {
2864
+ background-color: transparent;
2865
+ }
2866
+ }
2787
2867
  .ui\:has-focus\:border-ring {
2788
2868
  &:has(*:focus) {
2789
2869
  border-color: var(--ui-color-ring);
@@ -2861,9 +2941,9 @@
2861
2941
  }
2862
2942
  }
2863
2943
  }
2864
- .ui\:aria-selected\:text-muted-foreground {
2944
+ .ui\:aria-selected\:text-muted-foreground\! {
2865
2945
  &[aria-selected="true"] {
2866
- color: var(--ui-color-muted-foreground);
2946
+ color: var(--ui-color-muted-foreground) !important;
2867
2947
  }
2868
2948
  }
2869
2949
  .ui\:data-disabled\:pointer-events-none {
@@ -2972,6 +3052,11 @@
2972
3052
  flex-direction: column;
2973
3053
  }
2974
3054
  }
3055
+ .ui\:data-\[outside\=true\]\:text-muted-foreground {
3056
+ &[data-outside="true"] {
3057
+ color: var(--ui-color-muted-foreground);
3058
+ }
3059
+ }
2975
3060
  .ui\:data-\[range-end\=true\]\:rounded-md {
2976
3061
  &[data-range-end="true"] {
2977
3062
  border-radius: var(--ui-radius-md);
@@ -3510,6 +3595,11 @@
3510
3595
  display: flex;
3511
3596
  }
3512
3597
  }
3598
+ .ui\:md\:w-max {
3599
+ @media (width >= 48rem) {
3600
+ width: max-content;
3601
+ }
3602
+ }
3513
3603
  .ui\:md\:min-w-\[450px\] {
3514
3604
  @media (width >= 48rem) {
3515
3605
  min-width: 450px;
@@ -3520,6 +3610,21 @@
3520
3610
  flex-basis: calc(1/2 * 100%);
3521
3611
  }
3522
3612
  }
3613
+ .ui\:md\:grid-cols-3 {
3614
+ @media (width >= 48rem) {
3615
+ grid-template-columns: repeat(3, minmax(0, 1fr));
3616
+ }
3617
+ }
3618
+ .ui\:md\:flex-row {
3619
+ @media (width >= 48rem) {
3620
+ flex-direction: row;
3621
+ }
3622
+ }
3623
+ .ui\:md\:justify-end {
3624
+ @media (width >= 48rem) {
3625
+ justify-content: flex-end;
3626
+ }
3627
+ }
3523
3628
  .ui\:md\:gap-1\.5 {
3524
3629
  @media (width >= 48rem) {
3525
3630
  gap: calc(var(--ui-spacing) * 1.5);
@@ -4134,16 +4239,6 @@
4134
4239
  cursor: w-resize;
4135
4240
  }
4136
4241
  }
4137
- .ui\:\[\[data-slot\=card-content\]_\&\]\:bg-transparent {
4138
- [data-slot=card-content] & {
4139
- background-color: transparent;
4140
- }
4141
- }
4142
- .ui\:\[\[data-slot\=popover-content\]_\&\]\:bg-transparent {
4143
- [data-slot=popover-content] & {
4144
- background-color: transparent;
4145
- }
4146
- }
4147
4242
  .ui\:\[\[data-slot\=tooltip-content\]_\&\]\:bg-background\/20 {
4148
4243
  [data-slot=tooltip-content] & {
4149
4244
  background-color: var(--ui-color-background);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentify/ui",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "A collection of reusable React UI components built with Tailwind CSS and Radix UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,6 +26,26 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
+ "scripts": {
30
+ "dev": "vite",
31
+ "build:css": "tailwindcss -i src/index.css -o dist/ui.css",
32
+ "build": "pnpm run build:css && vite build --emptyOutDir=false && tsc -p tsconfig.build.json && node scripts/fix-type-aliases.mjs",
33
+ "postbuild": "node ./scripts/verify-dist.mjs",
34
+ "lint": "eslint .",
35
+ "lint:fix": "npm run lint -- --fix",
36
+ "format": "prettier --write \"**/*.{ts,tsx,md,mjs,cjs}\"",
37
+ "type-check": "tsc --noEmit",
38
+ "preview": "vite preview",
39
+ "storybook": "storybook dev -p 6006",
40
+ "build-storybook": "storybook build",
41
+ "test:storybook": "vitest --project=storybook --run",
42
+ "coverage": "vitest --project=storybook --run --coverage",
43
+ "prepare": "husky",
44
+ "knip": "knip",
45
+ "changeset": "changeset",
46
+ "version-packages": "changeset version",
47
+ "release": "changeset publish"
48
+ },
29
49
  "peerDependencies": {
30
50
  "react": "^18.0.0 || ^19.0.0",
31
51
  "react-dom": "^18.0.0 || ^19.0.0",
@@ -121,24 +141,5 @@
121
141
  "*.{json,js,ts,jsx,tsx,html}": [
122
142
  "prettier --write --ignore-unknown"
123
143
  ]
124
- },
125
- "scripts": {
126
- "dev": "vite",
127
- "build:css": "tailwindcss -i src/index.css -o dist/ui.css",
128
- "build": "pnpm run build:css && vite build --emptyOutDir=false && tsc -p tsconfig.build.json && node scripts/fix-type-aliases.mjs",
129
- "postbuild": "node ./scripts/verify-dist.mjs",
130
- "lint": "eslint .",
131
- "lint:fix": "npm run lint -- --fix",
132
- "format": "prettier --write \"**/*.{ts,tsx,md,mjs,cjs}\"",
133
- "type-check": "tsc --noEmit",
134
- "preview": "vite preview",
135
- "storybook": "storybook dev -p 6006",
136
- "build-storybook": "storybook build",
137
- "test:storybook": "vitest --project=storybook --run",
138
- "coverage": "vitest --project=storybook --run --coverage",
139
- "knip": "knip",
140
- "changeset": "changeset",
141
- "version-packages": "changeset version",
142
- "release": "changeset publish"
143
144
  }
144
- }
145
+ }