@homlista-devs/ui 1.1.0 → 1.3.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
@@ -7,7 +7,6 @@
7
7
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
8
8
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
9
  "Courier New", monospace;
10
- --color-red-500: oklch(63.7% 0.237 25.331);
11
10
  --color-blue-500: oklch(62.3% 0.214 259.815);
12
11
  --color-purple-500: oklch(62.7% 0.265 303.9);
13
12
  --color-black: #000;
@@ -36,6 +35,8 @@
36
35
  --text-3xl--line-height: calc(2.25 / 1.875);
37
36
  --text-4xl: 2.25rem;
38
37
  --text-4xl--line-height: calc(2.5 / 2.25);
38
+ --text-5xl: 3rem;
39
+ --text-5xl--line-height: 1;
39
40
  --font-weight-light: 300;
40
41
  --font-weight-normal: 400;
41
42
  --font-weight-medium: 500;
@@ -51,6 +52,7 @@
51
52
  --radius-sm: 0.25rem;
52
53
  --radius-md: 0.375rem;
53
54
  --radius-lg: 0.5rem;
55
+ --radius-xl: 0.75rem;
54
56
  --radius-2xl: 1rem;
55
57
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
56
58
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
@@ -309,12 +311,18 @@
309
311
  .top-1\/2 {
310
312
  top: calc(1/2 * 100%);
311
313
  }
314
+ .top-3 {
315
+ top: calc(var(--spacing) * 3);
316
+ }
312
317
  .top-4 {
313
318
  top: calc(var(--spacing) * 4);
314
319
  }
315
320
  .right-0 {
316
321
  right: calc(var(--spacing) * 0);
317
322
  }
323
+ .right-3 {
324
+ right: calc(var(--spacing) * 3);
325
+ }
318
326
  .right-4 {
319
327
  right: calc(var(--spacing) * 4);
320
328
  }
@@ -327,6 +335,9 @@
327
335
  .left-1\/2 {
328
336
  left: calc(1/2 * 100%);
329
337
  }
338
+ .left-3 {
339
+ left: calc(var(--spacing) * 3);
340
+ }
330
341
  .left-4 {
331
342
  left: calc(var(--spacing) * 4);
332
343
  }
@@ -372,15 +383,33 @@
372
383
  .mx-auto {
373
384
  margin-inline: auto;
374
385
  }
386
+ .mt-1\.5 {
387
+ margin-top: calc(var(--spacing) * 1.5);
388
+ }
389
+ .mt-2 {
390
+ margin-top: calc(var(--spacing) * 2);
391
+ }
392
+ .mt-3 {
393
+ margin-top: calc(var(--spacing) * 3);
394
+ }
375
395
  .mt-4 {
376
396
  margin-top: calc(var(--spacing) * 4);
377
397
  }
398
+ .mt-6 {
399
+ margin-top: calc(var(--spacing) * 6);
400
+ }
378
401
  .mt-auto {
379
402
  margin-top: auto;
380
403
  }
381
404
  .mr-1\.5 {
382
405
  margin-right: calc(var(--spacing) * 1.5);
383
406
  }
407
+ .mb-1 {
408
+ margin-bottom: calc(var(--spacing) * 1);
409
+ }
410
+ .mb-1\.5 {
411
+ margin-bottom: calc(var(--spacing) * 1.5);
412
+ }
384
413
  .mb-2 {
385
414
  margin-bottom: calc(var(--spacing) * 2);
386
415
  }
@@ -420,6 +449,9 @@
420
449
  .inline {
421
450
  display: inline;
422
451
  }
452
+ .inline-block {
453
+ display: inline-block;
454
+ }
423
455
  .inline-flex {
424
456
  display: inline-flex;
425
457
  }
@@ -468,6 +500,9 @@
468
500
  .h-20 {
469
501
  height: calc(var(--spacing) * 20);
470
502
  }
503
+ .h-52 {
504
+ height: calc(var(--spacing) * 52);
505
+ }
471
506
  .h-\[600px\] {
472
507
  height: 600px;
473
508
  }
@@ -584,6 +619,11 @@
584
619
  .cursor-pointer {
585
620
  cursor: pointer;
586
621
  }
622
+ .appearance-none {
623
+ -webkit-appearance: none;
624
+ -moz-appearance: none;
625
+ appearance: none;
626
+ }
587
627
  .grid-cols-1 {
588
628
  grid-template-columns: repeat(1, minmax(0, 1fr));
589
629
  }
@@ -596,6 +636,15 @@
596
636
  .flex-col {
597
637
  flex-direction: column;
598
638
  }
639
+ .flex-col-reverse {
640
+ flex-direction: column-reverse;
641
+ }
642
+ .flex-row {
643
+ flex-direction: row;
644
+ }
645
+ .flex-row-reverse {
646
+ flex-direction: row-reverse;
647
+ }
599
648
  .flex-wrap {
600
649
  flex-wrap: wrap;
601
650
  }
@@ -632,6 +681,13 @@
632
681
  .gap-8 {
633
682
  gap: calc(var(--spacing) * 8);
634
683
  }
684
+ .space-y-1 {
685
+ :where(& > :not(:last-child)) {
686
+ --tw-space-y-reverse: 0;
687
+ margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));
688
+ margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
689
+ }
690
+ }
635
691
  .space-y-1\.5 {
636
692
  :where(& > :not(:last-child)) {
637
693
  --tw-space-y-reverse: 0;
@@ -709,6 +765,9 @@
709
765
  .rounded-sm {
710
766
  border-radius: var(--radius-sm);
711
767
  }
768
+ .rounded-xl {
769
+ border-radius: var(--radius-xl);
770
+ }
712
771
  .border {
713
772
  border-style: var(--tw-border-style);
714
773
  border-width: 1px;
@@ -746,6 +805,9 @@
746
805
  border-color: color-mix(in oklab, var(--color-border) 20%, transparent);
747
806
  }
748
807
  }
808
+ .border-destructive {
809
+ border-color: var(--color-destructive);
810
+ }
749
811
  .border-error {
750
812
  border-color: var(--color-error);
751
813
  }
@@ -824,9 +886,6 @@
824
886
  .bg-primary-foreground {
825
887
  background-color: var(--color-primary-foreground);
826
888
  }
827
- .bg-red-500 {
828
- background-color: var(--color-red-500);
829
- }
830
889
  .bg-secondary {
831
890
  background-color: var(--color-secondary);
832
891
  }
@@ -930,6 +989,9 @@
930
989
  .pr-3 {
931
990
  padding-right: calc(var(--spacing) * 3);
932
991
  }
992
+ .pr-10 {
993
+ padding-right: calc(var(--spacing) * 10);
994
+ }
933
995
  .pb-2 {
934
996
  padding-bottom: calc(var(--spacing) * 2);
935
997
  }
@@ -963,6 +1025,10 @@
963
1025
  font-size: var(--text-4xl);
964
1026
  line-height: var(--tw-leading, var(--text-4xl--line-height));
965
1027
  }
1028
+ .text-5xl {
1029
+ font-size: var(--text-5xl);
1030
+ line-height: var(--tw-leading, var(--text-5xl--line-height));
1031
+ }
966
1032
  .text-base {
967
1033
  font-size: var(--text-base);
968
1034
  line-height: var(--tw-leading, var(--text-base--line-height));
@@ -1034,6 +1100,9 @@
1034
1100
  .whitespace-nowrap {
1035
1101
  white-space: nowrap;
1036
1102
  }
1103
+ .text-accent {
1104
+ color: var(--color-accent);
1105
+ }
1037
1106
  .text-background {
1038
1107
  color: var(--color-background);
1039
1108
  }
@@ -1183,6 +1252,11 @@
1183
1252
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1184
1253
  transition-duration: var(--tw-duration, var(--default-transition-duration));
1185
1254
  }
1255
+ .transition-opacity {
1256
+ transition-property: opacity;
1257
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1258
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
1259
+ }
1186
1260
  .transition-transform {
1187
1261
  transition-property: transform, translate, scale, rotate;
1188
1262
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
@@ -1223,6 +1297,29 @@
1223
1297
  }
1224
1298
  }
1225
1299
  }
1300
+ .file\:border-0 {
1301
+ &::file-selector-button {
1302
+ border-style: var(--tw-border-style);
1303
+ border-width: 0px;
1304
+ }
1305
+ }
1306
+ .file\:bg-transparent {
1307
+ &::file-selector-button {
1308
+ background-color: transparent;
1309
+ }
1310
+ }
1311
+ .file\:text-sm {
1312
+ &::file-selector-button {
1313
+ font-size: var(--text-sm);
1314
+ line-height: var(--tw-leading, var(--text-sm--line-height));
1315
+ }
1316
+ }
1317
+ .file\:font-medium {
1318
+ &::file-selector-button {
1319
+ --tw-font-weight: var(--font-weight-medium);
1320
+ font-weight: var(--font-weight-medium);
1321
+ }
1322
+ }
1226
1323
  .placeholder\:text-muted-foreground {
1227
1324
  &::-moz-placeholder {
1228
1325
  color: var(--color-muted-foreground);
@@ -1231,6 +1328,24 @@
1231
1328
  color: var(--color-muted-foreground);
1232
1329
  }
1233
1330
  }
1331
+ .after\:ml-0\.5 {
1332
+ &::after {
1333
+ content: var(--tw-content);
1334
+ margin-left: calc(var(--spacing) * 0.5);
1335
+ }
1336
+ }
1337
+ .after\:text-destructive {
1338
+ &::after {
1339
+ content: var(--tw-content);
1340
+ color: var(--color-destructive);
1341
+ }
1342
+ }
1343
+ .after\:content-\[\'\*\'\] {
1344
+ &::after {
1345
+ --tw-content: '*';
1346
+ content: var(--tw-content);
1347
+ }
1348
+ }
1234
1349
  .focus-within\:ring-2 {
1235
1350
  &:focus-within {
1236
1351
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
@@ -1513,11 +1628,26 @@
1513
1628
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1514
1629
  }
1515
1630
  }
1631
+ .focus-visible\:ring-destructive {
1632
+ &:focus-visible {
1633
+ --tw-ring-color: var(--color-destructive);
1634
+ }
1635
+ }
1636
+ .focus-visible\:ring-primary {
1637
+ &:focus-visible {
1638
+ --tw-ring-color: var(--color-primary);
1639
+ }
1640
+ }
1516
1641
  .focus-visible\:ring-ring {
1517
1642
  &:focus-visible {
1518
1643
  --tw-ring-color: var(--color-ring);
1519
1644
  }
1520
1645
  }
1646
+ .focus-visible\:ring-success {
1647
+ &:focus-visible {
1648
+ --tw-ring-color: var(--color-success);
1649
+ }
1650
+ }
1521
1651
  .focus-visible\:ring-offset-2 {
1522
1652
  &:focus-visible {
1523
1653
  --tw-ring-offset-width: 2px;
@@ -1541,6 +1671,11 @@
1541
1671
  pointer-events: none;
1542
1672
  }
1543
1673
  }
1674
+ .disabled\:cursor-not-allowed {
1675
+ &:disabled {
1676
+ cursor: not-allowed;
1677
+ }
1678
+ }
1544
1679
  .disabled\:opacity-50 {
1545
1680
  &:disabled {
1546
1681
  opacity: 50%;
@@ -1581,6 +1716,11 @@
1581
1716
  padding: calc(var(--spacing) * 6);
1582
1717
  }
1583
1718
  }
1719
+ .lg\:grid-cols-2 {
1720
+ @media (width >= 64rem) {
1721
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1722
+ }
1723
+ }
1584
1724
  .lg\:grid-cols-3 {
1585
1725
  @media (width >= 64rem) {
1586
1726
  grid-template-columns: repeat(3, minmax(0, 1fr));
@@ -2801,6 +2941,11 @@
2801
2941
  inherits: false;
2802
2942
  initial-value: 1;
2803
2943
  }
2944
+ @property --tw-content {
2945
+ syntax: "*";
2946
+ initial-value: "";
2947
+ inherits: false;
2948
+ }
2804
2949
  @keyframes pulse {
2805
2950
  50% {
2806
2951
  opacity: 0.5;
@@ -2873,6 +3018,7 @@
2873
3018
  --tw-scale-x: 1;
2874
3019
  --tw-scale-y: 1;
2875
3020
  --tw-scale-z: 1;
3021
+ --tw-content: "";
2876
3022
  }
2877
3023
  }
2878
3024
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homlista-devs/ui",
3
- "version": "1.1.0",
3
+ "version": "1.3.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",