@homlista-devs/ui 1.0.1 → 1.2.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/index.css CHANGED
@@ -36,6 +36,8 @@
36
36
  --text-3xl--line-height: calc(2.25 / 1.875);
37
37
  --text-4xl: 2.25rem;
38
38
  --text-4xl--line-height: calc(2.5 / 2.25);
39
+ --text-5xl: 3rem;
40
+ --text-5xl--line-height: 1;
39
41
  --font-weight-light: 300;
40
42
  --font-weight-normal: 400;
41
43
  --font-weight-medium: 500;
@@ -63,7 +65,6 @@
63
65
  --default-mono-font-family: var(--font-mono);
64
66
  --color-background: #ffffff;
65
67
  --color-background-secondary: #fafafa;
66
- --color-background-tertiary: #f5f5f5;
67
68
  --color-foreground: hsl(222.2, 84%, 4.9%);
68
69
  --color-foreground-secondary: hsl(215.4, 16.3%, 46.9%);
69
70
  --color-foreground-tertiary: hsl(215.4, 20.2%, 65.1%);
@@ -316,6 +317,9 @@
316
317
  .right-0 {
317
318
  right: calc(var(--spacing) * 0);
318
319
  }
320
+ .right-3 {
321
+ right: calc(var(--spacing) * 3);
322
+ }
319
323
  .right-4 {
320
324
  right: calc(var(--spacing) * 4);
321
325
  }
@@ -328,6 +332,9 @@
328
332
  .left-1\/2 {
329
333
  left: calc(1/2 * 100%);
330
334
  }
335
+ .left-3 {
336
+ left: calc(var(--spacing) * 3);
337
+ }
331
338
  .left-4 {
332
339
  left: calc(var(--spacing) * 4);
333
340
  }
@@ -373,27 +380,33 @@
373
380
  .mx-auto {
374
381
  margin-inline: auto;
375
382
  }
376
- .mt-2 {
377
- margin-top: calc(var(--spacing) * 2);
383
+ .mt-1\.5 {
384
+ margin-top: calc(var(--spacing) * 1.5);
378
385
  }
379
386
  .mt-4 {
380
387
  margin-top: calc(var(--spacing) * 4);
381
388
  }
389
+ .mt-6 {
390
+ margin-top: calc(var(--spacing) * 6);
391
+ }
382
392
  .mt-auto {
383
393
  margin-top: auto;
384
394
  }
385
395
  .mr-1\.5 {
386
396
  margin-right: calc(var(--spacing) * 1.5);
387
397
  }
398
+ .mb-1 {
399
+ margin-bottom: calc(var(--spacing) * 1);
400
+ }
401
+ .mb-1\.5 {
402
+ margin-bottom: calc(var(--spacing) * 1.5);
403
+ }
388
404
  .mb-2 {
389
405
  margin-bottom: calc(var(--spacing) * 2);
390
406
  }
391
407
  .mb-4 {
392
408
  margin-bottom: calc(var(--spacing) * 4);
393
409
  }
394
- .mb-6 {
395
- margin-bottom: calc(var(--spacing) * 6);
396
- }
397
410
  .mb-8 {
398
411
  margin-bottom: calc(var(--spacing) * 8);
399
412
  }
@@ -427,6 +440,9 @@
427
440
  .inline {
428
441
  display: inline;
429
442
  }
443
+ .inline-block {
444
+ display: inline-block;
445
+ }
430
446
  .inline-flex {
431
447
  display: inline-flex;
432
448
  }
@@ -571,9 +587,6 @@
571
587
  .flex-shrink-0 {
572
588
  flex-shrink: 0;
573
589
  }
574
- .grow {
575
- flex-grow: 1;
576
- }
577
590
  .-translate-x-1\/2 {
578
591
  --tw-translate-x: calc(calc(1/2 * 100%) * -1);
579
592
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -594,8 +607,10 @@
594
607
  .cursor-pointer {
595
608
  cursor: pointer;
596
609
  }
597
- .resize {
598
- resize: both;
610
+ .appearance-none {
611
+ -webkit-appearance: none;
612
+ -moz-appearance: none;
613
+ appearance: none;
599
614
  }
600
615
  .grid-cols-1 {
601
616
  grid-template-columns: repeat(1, minmax(0, 1fr));
@@ -609,6 +624,15 @@
609
624
  .flex-col {
610
625
  flex-direction: column;
611
626
  }
627
+ .flex-col-reverse {
628
+ flex-direction: column-reverse;
629
+ }
630
+ .flex-row {
631
+ flex-direction: row;
632
+ }
633
+ .flex-row-reverse {
634
+ flex-direction: row-reverse;
635
+ }
612
636
  .flex-wrap {
613
637
  flex-wrap: wrap;
614
638
  }
@@ -645,6 +669,13 @@
645
669
  .gap-8 {
646
670
  gap: calc(var(--spacing) * 8);
647
671
  }
672
+ .space-y-1 {
673
+ :where(& > :not(:last-child)) {
674
+ --tw-space-y-reverse: 0;
675
+ margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));
676
+ margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
677
+ }
678
+ }
648
679
  .space-y-1\.5 {
649
680
  :where(& > :not(:last-child)) {
650
681
  --tw-space-y-reverse: 0;
@@ -759,6 +790,9 @@
759
790
  border-color: color-mix(in oklab, var(--color-border) 20%, transparent);
760
791
  }
761
792
  }
793
+ .border-destructive {
794
+ border-color: var(--color-destructive);
795
+ }
762
796
  .border-error {
763
797
  border-color: var(--color-error);
764
798
  }
@@ -783,9 +817,6 @@
783
817
  .bg-background-secondary {
784
818
  background-color: var(--color-background-secondary);
785
819
  }
786
- .bg-background-tertiary {
787
- background-color: var(--color-background-tertiary);
788
- }
789
820
  .bg-background\/50 {
790
821
  background-color: color-mix(in srgb, #ffffff 50%, transparent);
791
822
  @supports (color: color-mix(in lab, red, red)) {
@@ -804,9 +835,6 @@
804
835
  background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
805
836
  }
806
837
  }
807
- .bg-blue-500 {
808
- background-color: var(--color-blue-500);
809
- }
810
838
  .bg-card {
811
839
  background-color: var(--color-card);
812
840
  }
@@ -843,12 +871,6 @@
843
871
  .bg-primary-foreground {
844
872
  background-color: var(--color-primary-foreground);
845
873
  }
846
- .bg-primary\/50 {
847
- background-color: color-mix(in srgb, hsl(221.2, 83.2%, 53.3%) 50%, transparent);
848
- @supports (color: color-mix(in lab, red, red)) {
849
- background-color: color-mix(in oklab, var(--color-primary) 50%, transparent);
850
- }
851
- }
852
874
  .bg-red-500 {
853
875
  background-color: var(--color-red-500);
854
876
  }
@@ -955,6 +977,9 @@
955
977
  .pr-3 {
956
978
  padding-right: calc(var(--spacing) * 3);
957
979
  }
980
+ .pr-10 {
981
+ padding-right: calc(var(--spacing) * 10);
982
+ }
958
983
  .pb-2 {
959
984
  padding-bottom: calc(var(--spacing) * 2);
960
985
  }
@@ -988,6 +1013,10 @@
988
1013
  font-size: var(--text-4xl);
989
1014
  line-height: var(--tw-leading, var(--text-4xl--line-height));
990
1015
  }
1016
+ .text-5xl {
1017
+ font-size: var(--text-5xl);
1018
+ line-height: var(--tw-leading, var(--text-5xl--line-height));
1019
+ }
991
1020
  .text-base {
992
1021
  font-size: var(--text-base);
993
1022
  line-height: var(--tw-leading, var(--text-base--line-height));
@@ -1059,9 +1088,6 @@
1059
1088
  .whitespace-nowrap {
1060
1089
  white-space: nowrap;
1061
1090
  }
1062
- .text-accent-foreground {
1063
- color: var(--color-accent-foreground);
1064
- }
1065
1091
  .text-background {
1066
1092
  color: var(--color-background);
1067
1093
  }
@@ -1211,6 +1237,11 @@
1211
1237
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1212
1238
  transition-duration: var(--tw-duration, var(--default-transition-duration));
1213
1239
  }
1240
+ .transition-opacity {
1241
+ transition-property: opacity;
1242
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1243
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
1244
+ }
1214
1245
  .transition-transform {
1215
1246
  transition-property: transform, translate, scale, rotate;
1216
1247
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
@@ -1251,6 +1282,29 @@
1251
1282
  }
1252
1283
  }
1253
1284
  }
1285
+ .file\:border-0 {
1286
+ &::file-selector-button {
1287
+ border-style: var(--tw-border-style);
1288
+ border-width: 0px;
1289
+ }
1290
+ }
1291
+ .file\:bg-transparent {
1292
+ &::file-selector-button {
1293
+ background-color: transparent;
1294
+ }
1295
+ }
1296
+ .file\:text-sm {
1297
+ &::file-selector-button {
1298
+ font-size: var(--text-sm);
1299
+ line-height: var(--tw-leading, var(--text-sm--line-height));
1300
+ }
1301
+ }
1302
+ .file\:font-medium {
1303
+ &::file-selector-button {
1304
+ --tw-font-weight: var(--font-weight-medium);
1305
+ font-weight: var(--font-weight-medium);
1306
+ }
1307
+ }
1254
1308
  .placeholder\:text-muted-foreground {
1255
1309
  &::-moz-placeholder {
1256
1310
  color: var(--color-muted-foreground);
@@ -1259,6 +1313,24 @@
1259
1313
  color: var(--color-muted-foreground);
1260
1314
  }
1261
1315
  }
1316
+ .after\:ml-0\.5 {
1317
+ &::after {
1318
+ content: var(--tw-content);
1319
+ margin-left: calc(var(--spacing) * 0.5);
1320
+ }
1321
+ }
1322
+ .after\:text-destructive {
1323
+ &::after {
1324
+ content: var(--tw-content);
1325
+ color: var(--color-destructive);
1326
+ }
1327
+ }
1328
+ .after\:content-\[\'\*\'\] {
1329
+ &::after {
1330
+ --tw-content: '*';
1331
+ content: var(--tw-content);
1332
+ }
1333
+ }
1262
1334
  .focus-within\:ring-2 {
1263
1335
  &:focus-within {
1264
1336
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
@@ -1541,11 +1613,26 @@
1541
1613
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1542
1614
  }
1543
1615
  }
1616
+ .focus-visible\:ring-destructive {
1617
+ &:focus-visible {
1618
+ --tw-ring-color: var(--color-destructive);
1619
+ }
1620
+ }
1621
+ .focus-visible\:ring-primary {
1622
+ &:focus-visible {
1623
+ --tw-ring-color: var(--color-primary);
1624
+ }
1625
+ }
1544
1626
  .focus-visible\:ring-ring {
1545
1627
  &:focus-visible {
1546
1628
  --tw-ring-color: var(--color-ring);
1547
1629
  }
1548
1630
  }
1631
+ .focus-visible\:ring-success {
1632
+ &:focus-visible {
1633
+ --tw-ring-color: var(--color-success);
1634
+ }
1635
+ }
1549
1636
  .focus-visible\:ring-offset-2 {
1550
1637
  &:focus-visible {
1551
1638
  --tw-ring-offset-width: 2px;
@@ -1569,6 +1656,11 @@
1569
1656
  pointer-events: none;
1570
1657
  }
1571
1658
  }
1659
+ .disabled\:cursor-not-allowed {
1660
+ &:disabled {
1661
+ cursor: not-allowed;
1662
+ }
1663
+ }
1572
1664
  .disabled\:opacity-50 {
1573
1665
  &:disabled {
1574
1666
  opacity: 50%;
@@ -1609,6 +1701,11 @@
1609
1701
  padding: calc(var(--spacing) * 6);
1610
1702
  }
1611
1703
  }
1704
+ .lg\:grid-cols-2 {
1705
+ @media (width >= 64rem) {
1706
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1707
+ }
1708
+ }
1612
1709
  .lg\:grid-cols-3 {
1613
1710
  @media (width >= 64rem) {
1614
1711
  grid-template-columns: repeat(3, minmax(0, 1fr));
@@ -2829,6 +2926,11 @@
2829
2926
  inherits: false;
2830
2927
  initial-value: 1;
2831
2928
  }
2929
+ @property --tw-content {
2930
+ syntax: "*";
2931
+ initial-value: "";
2932
+ inherits: false;
2933
+ }
2832
2934
  @keyframes pulse {
2833
2935
  50% {
2834
2936
  opacity: 0.5;
@@ -2901,6 +3003,7 @@
2901
3003
  --tw-scale-x: 1;
2902
3004
  --tw-scale-y: 1;
2903
3005
  --tw-scale-z: 1;
3006
+ --tw-content: "";
2904
3007
  }
2905
3008
  }
2906
3009
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homlista-devs/ui",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "main": "./dist/design-system.cjs.js",
5
5
  "module": "./dist/design-system.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -28,6 +28,28 @@
28
28
  "type": "git",
29
29
  "url": "https://github.com/Team-HomLista/design_system.git"
30
30
  },
31
+ "scripts": {
32
+ "dev": "vite",
33
+ "build": "tsc --noEmit && vite build",
34
+ "build:lib": "vite build && npm run build:css",
35
+ "build:lib:full": "vite build && npm run build:types && npm run build:css",
36
+ "build:types": "tsc --project tsconfig.app.json --emitDeclarationOnly --outDir dist/types --skipLibCheck",
37
+ "build:css": "postcss ./src/index.css -o ./dist/index.css --config ./postcss.config.js",
38
+ "lint": "eslint .",
39
+ "preview": "vite preview",
40
+ "storybook": "storybook dev -p 6006",
41
+ "build-storybook": "storybook build",
42
+ "test": "vitest",
43
+ "test:ui": "vitest --ui",
44
+ "test:coverage": "vitest --coverage",
45
+ "test:watch": "vitest --watch",
46
+ "test:e2e": "playwright test",
47
+ "test:e2e:ui": "playwright test --ui",
48
+ "test:accessibility": "vitest --run --reporter=verbose accessibility",
49
+ "test:performance": "vitest --run --reporter=verbose performance",
50
+ "chromatic": "chromatic --exit-zero-on-changes",
51
+ "prepare": "husky install"
52
+ },
31
53
  "dependencies": {
32
54
  "@radix-ui/react-slot": "^1.2.3",
33
55
  "class-variance-authority": "^0.7.1",
@@ -106,26 +128,5 @@
106
128
  "typescript-eslint": "^8.45.0",
107
129
  "vite": "^7.1.7",
108
130
  "vitest": "^4.0.2"
109
- },
110
- "scripts": {
111
- "dev": "vite",
112
- "build": "tsc --noEmit && vite build",
113
- "build:lib": "vite build && npm run build:css",
114
- "build:lib:full": "vite build && npm run build:types && npm run build:css",
115
- "build:types": "tsc --project tsconfig.app.json --emitDeclarationOnly --outDir dist/types --skipLibCheck",
116
- "build:css": "postcss ./src/index.css -o ./dist/index.css --config ./postcss.config.js",
117
- "lint": "eslint .",
118
- "preview": "vite preview",
119
- "storybook": "storybook dev -p 6006",
120
- "build-storybook": "storybook build",
121
- "test": "vitest",
122
- "test:ui": "vitest --ui",
123
- "test:coverage": "vitest --coverage",
124
- "test:watch": "vitest --watch",
125
- "test:e2e": "playwright test",
126
- "test:e2e:ui": "playwright test --ui",
127
- "test:accessibility": "vitest --run --reporter=verbose accessibility",
128
- "test:performance": "vitest --run --reporter=verbose performance",
129
- "chromatic": "chromatic --exit-zero-on-changes"
130
131
  }
131
- }
132
+ }