@creativecodeco/ui 0.0.5 → 0.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.
Files changed (50) hide show
  1. package/README.md +37 -4
  2. package/lib/index.d.ts +2 -0
  3. package/lib/index.js +2 -0
  4. package/lib/theme/css/avatar.css +37 -0
  5. package/lib/theme/css/checkbox.css +47 -0
  6. package/lib/theme/css/main.css +2 -0
  7. package/lib/theme/main.css +590 -1
  8. package/lib/types/helpers/controller.types.d.ts +5 -5
  9. package/lib/types/index.d.ts +3 -2
  10. package/lib/types/index.js +3 -1
  11. package/lib/types/ui/base/constants.types.d.ts +1 -0
  12. package/lib/types/ui/base/error.types.d.ts +4 -0
  13. package/lib/types/ui/base/error.types.js +1 -0
  14. package/lib/types/ui/base/index.d.ts +2 -0
  15. package/lib/types/ui/base/index.js +1 -0
  16. package/lib/types/ui/components/avatar.types.d.ts +9 -0
  17. package/lib/types/ui/components/avatar.types.js +1 -0
  18. package/lib/types/ui/components/index.d.ts +2 -0
  19. package/lib/types/ui/components/index.js +1 -0
  20. package/lib/types/ui/forms/checkbox.types.d.ts +11 -0
  21. package/lib/types/ui/forms/checkbox.types.js +1 -0
  22. package/lib/types/ui/forms/{drop-down.types.d.ts → dropdown.types.d.ts} +3 -3
  23. package/lib/types/ui/forms/dropdown.types.js +1 -0
  24. package/lib/types/ui/forms/index.d.ts +3 -3
  25. package/lib/types/ui/forms/text-box.types.d.ts +3 -4
  26. package/lib/ui/components/avatar/avatar.component.d.ts +3 -0
  27. package/lib/ui/components/avatar/avatar.component.js +18 -0
  28. package/lib/ui/components/avatar/index.d.ts +2 -0
  29. package/lib/ui/components/avatar/index.js +2 -0
  30. package/lib/ui/components/index.d.ts +1 -0
  31. package/lib/ui/components/index.js +1 -0
  32. package/lib/ui/forms/checkbox/checkbox.component.d.ts +4 -0
  33. package/lib/ui/forms/checkbox/checkbox.component.js +14 -0
  34. package/lib/ui/forms/checkbox/index.d.ts +2 -0
  35. package/lib/ui/forms/checkbox/index.js +2 -0
  36. package/lib/ui/forms/dropdown/dropdown.component.d.ts +4 -0
  37. package/lib/ui/forms/{drop-down/drop-down.component.js → dropdown/dropdown.component.js} +4 -2
  38. package/lib/ui/forms/dropdown/index.d.ts +2 -0
  39. package/lib/ui/forms/dropdown/index.js +2 -0
  40. package/lib/ui/forms/index.d.ts +3 -3
  41. package/lib/ui/forms/index.js +3 -3
  42. package/lib/utils/index.d.ts +1 -0
  43. package/lib/utils/index.js +1 -0
  44. package/lib/utils/string.utils.d.ts +51 -0
  45. package/lib/utils/string.utils.js +75 -0
  46. package/package.json +29 -26
  47. package/lib/ui/forms/drop-down/drop-down.component.d.ts +0 -4
  48. package/lib/ui/forms/drop-down/index.d.ts +0 -2
  49. package/lib/ui/forms/drop-down/index.js +0 -2
  50. /package/lib/types/ui/{forms/drop-down.types.js → base/constants.types.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- ! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com
2
+ ! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
3
3
  *//*
4
4
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
5
5
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
@@ -622,6 +622,26 @@ html {
622
622
  max-width: 1536px;
623
623
  }
624
624
  }
625
+ .avatar {
626
+ position: relative;
627
+ display: inline-flex;
628
+ }
629
+ .avatar > div {
630
+ display: block;
631
+ aspect-ratio: 1 / 1;
632
+ overflow: hidden;
633
+ }
634
+ .avatar img {
635
+ height: 100%;
636
+ width: 100%;
637
+ -o-object-fit: cover;
638
+ object-fit: cover;
639
+ }
640
+ .avatar.placeholder > div {
641
+ display: flex;
642
+ align-items: center;
643
+ justify-content: center;
644
+ }
625
645
  @media (hover:hover) {
626
646
 
627
647
  .label a:hover {
@@ -637,6 +657,27 @@ html {
637
657
  --tw-text-opacity: 1;
638
658
  color: var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)));
639
659
  }
660
+
661
+ .table tr.hover:hover,
662
+ .table tr.hover:nth-child(even):hover {
663
+ --tw-bg-opacity: 1;
664
+ background-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));
665
+ }
666
+ }
667
+ .checkbox {
668
+ flex-shrink: 0;
669
+ --chkbg: var(--fallback-bc,oklch(var(--bc)/1));
670
+ --chkfg: var(--fallback-b1,oklch(var(--b1)/1));
671
+ height: 1.5rem;
672
+ width: 1.5rem;
673
+ cursor: pointer;
674
+ -webkit-appearance: none;
675
+ -moz-appearance: none;
676
+ appearance: none;
677
+ border-radius: var(--rounded-btn, 0.5rem);
678
+ border-width: 1px;
679
+ border-color: var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));
680
+ --tw-border-opacity: 0.2;
640
681
  }
641
682
  .dropdown {
642
683
  position: relative;
@@ -709,6 +750,15 @@ html {
709
750
  opacity: 1;
710
751
  }
711
752
 
753
+ .btm-nav > *.\!disabled:hover {
754
+ pointer-events: none !important;
755
+ --tw-border-opacity: 0 !important;
756
+ background-color: var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity))) !important;
757
+ --tw-bg-opacity: 0.1 !important;
758
+ color: var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity))) !important;
759
+ --tw-text-opacity: 0.2 !important;
760
+ }
761
+
712
762
  .btm-nav > *.disabled:hover,
713
763
  .btm-nav > *[disabled]:hover {
714
764
  pointer-events: none;
@@ -774,11 +824,61 @@ html {
774
824
  --tw-bg-opacity: 1;
775
825
  background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
776
826
  }
827
+ .join {
828
+ display: inline-flex;
829
+ align-items: stretch;
830
+ border-radius: var(--rounded-btn, 0.5rem);
831
+ }
832
+ .join :where(.join-item) {
833
+ border-start-end-radius: 0;
834
+ border-end-end-radius: 0;
835
+ border-end-start-radius: 0;
836
+ border-start-start-radius: 0;
837
+ }
838
+ .join .join-item:not(:first-child):not(:last-child),
839
+ .join *:not(:first-child):not(:last-child) .join-item {
840
+ border-start-end-radius: 0;
841
+ border-end-end-radius: 0;
842
+ border-end-start-radius: 0;
843
+ border-start-start-radius: 0;
844
+ }
845
+ .join .join-item:first-child:not(:last-child),
846
+ .join *:first-child:not(:last-child) .join-item {
847
+ border-start-end-radius: 0;
848
+ border-end-end-radius: 0;
849
+ }
777
850
  .join .dropdown .join-item:first-child:not(:last-child),
778
851
  .join *:first-child:not(:last-child) .dropdown .join-item {
779
852
  border-start-end-radius: inherit;
780
853
  border-end-end-radius: inherit;
781
854
  }
855
+ .join :where(.join-item:first-child:not(:last-child)),
856
+ .join :where(*:first-child:not(:last-child) .join-item) {
857
+ border-end-start-radius: inherit;
858
+ border-start-start-radius: inherit;
859
+ }
860
+ .join .join-item:last-child:not(:first-child),
861
+ .join *:last-child:not(:first-child) .join-item {
862
+ border-end-start-radius: 0;
863
+ border-start-start-radius: 0;
864
+ }
865
+ .join :where(.join-item:last-child:not(:first-child)),
866
+ .join :where(*:last-child:not(:first-child) .join-item) {
867
+ border-start-end-radius: inherit;
868
+ border-end-end-radius: inherit;
869
+ }
870
+ @supports not selector(:has(*)) {
871
+
872
+ :where(.join *) {
873
+ border-radius: inherit;
874
+ }
875
+ }
876
+ @supports selector(:has(*)) {
877
+
878
+ :where(.join *:has(.join-item)) {
879
+ border-radius: inherit;
880
+ }
881
+ }
782
882
  .menu {
783
883
  display: flex;
784
884
  flex-direction: column;
@@ -812,6 +912,13 @@ html {
812
912
  user-select: none;
813
913
  color: var(--fallback-bc,oklch(var(--bc)/0.3));
814
914
  }
915
+ .menu li.\!disabled {
916
+ cursor: not-allowed !important;
917
+ -webkit-user-select: none !important;
918
+ -moz-user-select: none !important;
919
+ user-select: none !important;
920
+ color: var(--fallback-bc,oklch(var(--bc)/0.3)) !important;
921
+ }
815
922
  .menu :where(li > .menu-dropdown:not(.menu-dropdown-show)) {
816
923
  display: none;
817
924
  }
@@ -826,6 +933,20 @@ html {
826
933
  :where(.menu li) .badge {
827
934
  justify-self: end;
828
935
  }
936
+ .radio {
937
+ flex-shrink: 0;
938
+ --chkbg: var(--bc);
939
+ height: 1.5rem;
940
+ width: 1.5rem;
941
+ cursor: pointer;
942
+ -webkit-appearance: none;
943
+ -moz-appearance: none;
944
+ appearance: none;
945
+ border-radius: 9999px;
946
+ border-width: 1px;
947
+ border-color: var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));
948
+ --tw-border-opacity: 0.2;
949
+ }
829
950
  .select {
830
951
  display: inline-flex;
831
952
  cursor: pointer;
@@ -858,6 +979,50 @@ html {
858
979
  .select[multiple] {
859
980
  height: auto;
860
981
  }
982
+ .table {
983
+ position: relative;
984
+ width: 100%;
985
+ border-radius: var(--rounded-box, 1rem);
986
+ text-align: left;
987
+ font-size: 0.875rem;
988
+ line-height: 1.25rem;
989
+ }
990
+ .table :where(.table-pin-rows thead tr) {
991
+ position: sticky;
992
+ top: 0px;
993
+ z-index: 1;
994
+ --tw-bg-opacity: 1;
995
+ background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
996
+ }
997
+ .table :where(.table-pin-rows tfoot tr) {
998
+ position: sticky;
999
+ bottom: 0px;
1000
+ z-index: 1;
1001
+ --tw-bg-opacity: 1;
1002
+ background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
1003
+ }
1004
+ .table :where(.table-pin-cols tr th) {
1005
+ position: sticky;
1006
+ left: 0px;
1007
+ right: 0px;
1008
+ --tw-bg-opacity: 1;
1009
+ background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
1010
+ }
1011
+ .avatar-group :where(.avatar) {
1012
+ overflow: hidden;
1013
+ border-radius: 9999px;
1014
+ border-width: 4px;
1015
+ --tw-border-opacity: 1;
1016
+ border-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-border-opacity)));
1017
+ }
1018
+ .btm-nav > *.\!disabled {
1019
+ pointer-events: none !important;
1020
+ --tw-border-opacity: 0 !important;
1021
+ background-color: var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity))) !important;
1022
+ --tw-bg-opacity: 0.1 !important;
1023
+ color: var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity))) !important;
1024
+ --tw-text-opacity: 0.2 !important;
1025
+ }
861
1026
  .btm-nav > *.disabled,
862
1027
  .btm-nav > *[disabled] {
863
1028
  pointer-events: none;
@@ -885,6 +1050,49 @@ html {
885
1050
  transform: scale(1);
886
1051
  }
887
1052
  }
1053
+ .checkbox:focus {
1054
+ box-shadow: none;
1055
+ }
1056
+ .checkbox:focus-visible {
1057
+ outline-style: solid;
1058
+ outline-width: 2px;
1059
+ outline-offset: 2px;
1060
+ outline-color: var(--fallback-bc,oklch(var(--bc)/1));
1061
+ }
1062
+ .checkbox:checked,
1063
+ .checkbox[checked="true"],
1064
+ .checkbox[aria-checked="true"] {
1065
+ background-repeat: no-repeat;
1066
+ animation: checkmark var(--animation-input, 0.2s) ease-out;
1067
+ background-color: var(--chkbg);
1068
+ background-image: linear-gradient(-45deg, transparent 65%, var(--chkbg) 65.99%),
1069
+ linear-gradient(45deg, transparent 75%, var(--chkbg) 75.99%),
1070
+ linear-gradient(-45deg, var(--chkbg) 40%, transparent 40.99%),
1071
+ linear-gradient(
1072
+ 45deg,
1073
+ var(--chkbg) 30%,
1074
+ var(--chkfg) 30.99%,
1075
+ var(--chkfg) 40%,
1076
+ transparent 40.99%
1077
+ ),
1078
+ linear-gradient(-45deg, var(--chkfg) 50%, var(--chkbg) 50.99%);
1079
+ }
1080
+ .checkbox:indeterminate {
1081
+ --tw-bg-opacity: 1;
1082
+ background-color: var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));
1083
+ background-repeat: no-repeat;
1084
+ animation: checkmark var(--animation-input, 0.2s) ease-out;
1085
+ background-image: linear-gradient(90deg, transparent 80%, var(--chkbg) 80%),
1086
+ linear-gradient(-90deg, transparent 80%, var(--chkbg) 80%),
1087
+ linear-gradient(0deg, var(--chkbg) 43%, var(--chkfg) 43%, var(--chkfg) 57%, var(--chkbg) 57%);
1088
+ }
1089
+ .checkbox:disabled {
1090
+ cursor: not-allowed;
1091
+ border-color: transparent;
1092
+ --tw-bg-opacity: 1;
1093
+ background-color: var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));
1094
+ opacity: 0.2;
1095
+ }
888
1096
  @keyframes checkmark {
889
1097
 
890
1098
  0% {
@@ -964,6 +1172,11 @@ html {
964
1172
  .input::-webkit-date-and-time-value {
965
1173
  text-align: inherit;
966
1174
  }
1175
+ .join > :where(*:not(:first-child)) {
1176
+ margin-top: 0px;
1177
+ margin-bottom: 0px;
1178
+ margin-inline-start: -1px;
1179
+ }
967
1180
  :where(.menu li:empty) {
968
1181
  --tw-bg-opacity: 1;
969
1182
  background-color: var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));
@@ -1098,6 +1311,28 @@ html {
1098
1311
  background-position-x: -115%;
1099
1312
  }
1100
1313
  }
1314
+ .radio:focus {
1315
+ box-shadow: none;
1316
+ }
1317
+ .radio:focus-visible {
1318
+ outline-style: solid;
1319
+ outline-width: 2px;
1320
+ outline-offset: 2px;
1321
+ outline-color: var(--fallback-bc,oklch(var(--bc)/1));
1322
+ }
1323
+ .radio:checked,
1324
+ .radio[aria-checked="true"] {
1325
+ --tw-bg-opacity: 1;
1326
+ background-color: var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));
1327
+ background-image: none;
1328
+ animation: radiomark var(--animation-input, 0.2s) ease-out;
1329
+ box-shadow: 0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,
1330
+ 0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset;
1331
+ }
1332
+ .radio:disabled {
1333
+ cursor: not-allowed;
1334
+ opacity: 0.2;
1335
+ }
1101
1336
  @keyframes radiomark {
1102
1337
 
1103
1338
  0% {
@@ -1177,6 +1412,35 @@ html {
1177
1412
  background-position: -50%;
1178
1413
  }
1179
1414
  }
1415
+ :is([dir="rtl"] .table) {
1416
+ text-align: right;
1417
+ }
1418
+ .table :where(th, td) {
1419
+ padding-left: 1rem;
1420
+ padding-right: 1rem;
1421
+ padding-top: 0.75rem;
1422
+ padding-bottom: 0.75rem;
1423
+ vertical-align: middle;
1424
+ }
1425
+ .table tr.active,
1426
+ .table tr.active:nth-child(even),
1427
+ .table-zebra tbody tr:nth-child(even) {
1428
+ --tw-bg-opacity: 1;
1429
+ background-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));
1430
+ }
1431
+ .table :where(thead, tbody) :where(tr:not(:last-child)),
1432
+ .table :where(thead, tbody) :where(tr:first-child:last-child) {
1433
+ border-bottom-width: 1px;
1434
+ --tw-border-opacity: 1;
1435
+ border-bottom-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));
1436
+ }
1437
+ .table :where(thead, tfoot) {
1438
+ white-space: nowrap;
1439
+ font-size: 0.75rem;
1440
+ line-height: 1rem;
1441
+ font-weight: 700;
1442
+ color: var(--fallback-bc,oklch(var(--bc)/0.6));
1443
+ }
1180
1444
  @keyframes toast-pop {
1181
1445
 
1182
1446
  0% {
@@ -1189,6 +1453,82 @@ html {
1189
1453
  opacity: 1;
1190
1454
  }
1191
1455
  }
1456
+ .join.join-vertical {
1457
+ flex-direction: column;
1458
+ }
1459
+ .join.join-vertical .join-item:first-child:not(:last-child),
1460
+ .join.join-vertical *:first-child:not(:last-child) .join-item {
1461
+ border-end-start-radius: 0;
1462
+ border-end-end-radius: 0;
1463
+ border-start-start-radius: inherit;
1464
+ border-start-end-radius: inherit;
1465
+ }
1466
+ .join.join-vertical .join-item:last-child:not(:first-child),
1467
+ .join.join-vertical *:last-child:not(:first-child) .join-item {
1468
+ border-start-start-radius: 0;
1469
+ border-start-end-radius: 0;
1470
+ border-end-start-radius: inherit;
1471
+ border-end-end-radius: inherit;
1472
+ }
1473
+ .join.join-horizontal {
1474
+ flex-direction: row;
1475
+ }
1476
+ .join.join-horizontal .join-item:first-child:not(:last-child),
1477
+ .join.join-horizontal *:first-child:not(:last-child) .join-item {
1478
+ border-end-end-radius: 0;
1479
+ border-start-end-radius: 0;
1480
+ border-end-start-radius: inherit;
1481
+ border-start-start-radius: inherit;
1482
+ }
1483
+ .join.join-horizontal .join-item:last-child:not(:first-child),
1484
+ .join.join-horizontal *:last-child:not(:first-child) .join-item {
1485
+ border-end-start-radius: 0;
1486
+ border-start-start-radius: 0;
1487
+ border-end-end-radius: inherit;
1488
+ border-start-end-radius: inherit;
1489
+ }
1490
+ .avatar.online:before {
1491
+ content: "";
1492
+ position: absolute;
1493
+ z-index: 10;
1494
+ display: block;
1495
+ border-radius: 9999px;
1496
+ --tw-bg-opacity: 1;
1497
+ background-color: var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));
1498
+ outline-style: solid;
1499
+ outline-width: 2px;
1500
+ outline-color: var(--fallback-b1,oklch(var(--b1)/1));
1501
+ width: 15%;
1502
+ height: 15%;
1503
+ top: 7%;
1504
+ right: 7%;
1505
+ }
1506
+ .avatar.offline:before {
1507
+ content: "";
1508
+ position: absolute;
1509
+ z-index: 10;
1510
+ display: block;
1511
+ border-radius: 9999px;
1512
+ --tw-bg-opacity: 1;
1513
+ background-color: var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));
1514
+ outline-style: solid;
1515
+ outline-width: 2px;
1516
+ outline-color: var(--fallback-b1,oklch(var(--b1)/1));
1517
+ width: 15%;
1518
+ height: 15%;
1519
+ top: 7%;
1520
+ right: 7%;
1521
+ }
1522
+ .join.join-vertical > :where(*:not(:first-child)) {
1523
+ margin-left: 0px;
1524
+ margin-right: 0px;
1525
+ margin-top: -1px;
1526
+ }
1527
+ .join.join-horizontal > :where(*:not(:first-child)) {
1528
+ margin-top: 0px;
1529
+ margin-bottom: 0px;
1530
+ margin-inline-start: -1px;
1531
+ }
1192
1532
  .relative {
1193
1533
  position: relative;
1194
1534
  }
@@ -1201,23 +1541,272 @@ html {
1201
1541
  .flex {
1202
1542
  display: flex;
1203
1543
  }
1544
+ .table {
1545
+ display: table;
1546
+ }
1204
1547
  .w-full {
1205
1548
  width: 100%;
1206
1549
  }
1550
+ .cursor-not-allowed {
1551
+ cursor: not-allowed;
1552
+ }
1207
1553
  .cursor-pointer {
1208
1554
  cursor: pointer;
1209
1555
  }
1556
+ .\!rounded {
1557
+ border-radius: 0.25rem !important;
1558
+ }
1559
+ .rounded {
1560
+ border-radius: 0.25rem;
1561
+ }
1562
+ .rounded-full {
1563
+ border-radius: 9999px;
1564
+ }
1210
1565
  .bg-base-100 {
1211
1566
  --tw-bg-opacity: 1;
1212
1567
  background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
1213
1568
  }
1569
+ .bg-neutral {
1570
+ --tw-bg-opacity: 1;
1571
+ background-color: var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));
1572
+ }
1573
+ .text-neutral-content {
1574
+ --tw-text-opacity: 1;
1575
+ color: var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)));
1576
+ }
1214
1577
  .text-red-500 {
1215
1578
  --tw-text-opacity: 1;
1216
1579
  color: rgb(239 68 68 / var(--tw-text-opacity));
1217
1580
  }
1581
+ .ring {
1582
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1583
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1584
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1585
+ }
1218
1586
  .filter {
1219
1587
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1220
1588
  }
1589
+ .avatar-size-xs {
1590
+ width: 2rem;
1591
+ }
1592
+ .avatar-size-xs > span {
1593
+ font-size: 0.75rem;
1594
+ line-height: 1rem;
1595
+ }
1596
+ .avatar-size-sm {
1597
+ width: 3rem;
1598
+ }
1599
+ .avatar-size-sm > span {
1600
+ font-size: 0.875rem;
1601
+ line-height: 1.25rem;
1602
+ }
1603
+ .avatar-size-md {
1604
+ width: 4rem;
1605
+ }
1606
+ .avatar-size-md > span {
1607
+ font-size: 1.25rem;
1608
+ line-height: 1.75rem;
1609
+ }
1610
+ .avatar-size-lg {
1611
+ width: 6rem;
1612
+ }
1613
+ .avatar-size-lg > span {
1614
+ font-size: 1.875rem;
1615
+ line-height: 2.25rem;
1616
+ }
1617
+ .avatar-ring {
1618
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1619
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1620
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1621
+ --tw-ring-opacity: 1;
1622
+ --tw-ring-color: var(--fallback-p,oklch(var(--p)/var(--tw-ring-opacity)));
1623
+ --tw-ring-offset-width: 2px;
1624
+ --tw-ring-offset-color: var(--fallback-b1,oklch(var(--b1)/1));
1625
+ }
1626
+ @media (hover:hover) {
1627
+
1628
+ .checkbox-color-primary:hover {
1629
+ --tw-border-opacity: 1;
1630
+ border-color: var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));
1631
+ }
1632
+ }
1633
+ .checkbox-color-primary {
1634
+ --chkbg: var(--fallback-p,oklch(var(--p)/1));
1635
+ --chkfg: var(--fallback-pc,oklch(var(--pc)/1));
1636
+ --tw-border-opacity: 1;
1637
+ border-color: var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));
1638
+ }
1639
+ .checkbox-color-primary:focus-visible {
1640
+ outline-color: var(--fallback-p,oklch(var(--p)/1));
1641
+ }
1642
+ .checkbox-color-primary:checked,.checkbox-color-primary[checked="true"],.checkbox-color-primary[aria-checked="true"] {
1643
+ --tw-border-opacity: 1;
1644
+ border-color: var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));
1645
+ --tw-bg-opacity: 1;
1646
+ background-color: var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));
1647
+ --tw-text-opacity: 1;
1648
+ color: var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));
1649
+ }
1650
+ @media (hover:hover) {
1651
+
1652
+ .checkbox-color-secondary:hover {
1653
+ --tw-border-opacity: 1;
1654
+ border-color: var(--fallback-s,oklch(var(--s)/var(--tw-border-opacity)));
1655
+ }
1656
+ }
1657
+ .checkbox-color-secondary {
1658
+ --chkbg: var(--fallback-s,oklch(var(--s)/1));
1659
+ --chkfg: var(--fallback-sc,oklch(var(--sc)/1));
1660
+ --tw-border-opacity: 1;
1661
+ border-color: var(--fallback-s,oklch(var(--s)/var(--tw-border-opacity)));
1662
+ }
1663
+ .checkbox-color-secondary:focus-visible {
1664
+ outline-color: var(--fallback-s,oklch(var(--s)/1));
1665
+ }
1666
+ .checkbox-color-secondary:checked,.checkbox-color-secondary[checked="true"],.checkbox-color-secondary[aria-checked="true"] {
1667
+ --tw-border-opacity: 1;
1668
+ border-color: var(--fallback-s,oklch(var(--s)/var(--tw-border-opacity)));
1669
+ --tw-bg-opacity: 1;
1670
+ background-color: var(--fallback-s,oklch(var(--s)/var(--tw-bg-opacity)));
1671
+ --tw-text-opacity: 1;
1672
+ color: var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)));
1673
+ }
1674
+ @media (hover:hover) {
1675
+
1676
+ .checkbox-color-accent:hover {
1677
+ --tw-border-opacity: 1;
1678
+ border-color: var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)));
1679
+ }
1680
+ }
1681
+ .checkbox-color-accent {
1682
+ --chkbg: var(--fallback-a,oklch(var(--a)/1));
1683
+ --chkfg: var(--fallback-ac,oklch(var(--ac)/1));
1684
+ --tw-border-opacity: 1;
1685
+ border-color: var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)));
1686
+ }
1687
+ .checkbox-color-accent:focus-visible {
1688
+ outline-color: var(--fallback-a,oklch(var(--a)/1));
1689
+ }
1690
+ .checkbox-color-accent:checked,.checkbox-color-accent[checked="true"],.checkbox-color-accent[aria-checked="true"] {
1691
+ --tw-border-opacity: 1;
1692
+ border-color: var(--fallback-a,oklch(var(--a)/var(--tw-border-opacity)));
1693
+ --tw-bg-opacity: 1;
1694
+ background-color: var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));
1695
+ --tw-text-opacity: 1;
1696
+ color: var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)));
1697
+ }
1698
+ @media (hover:hover) {
1699
+
1700
+ .checkbox-color-success:hover {
1701
+ --tw-border-opacity: 1;
1702
+ border-color: var(--fallback-su,oklch(var(--su)/var(--tw-border-opacity)));
1703
+ }
1704
+ }
1705
+ .checkbox-color-success {
1706
+ --chkbg: var(--fallback-su,oklch(var(--su)/1));
1707
+ --chkfg: var(--fallback-suc,oklch(var(--suc)/1));
1708
+ --tw-border-opacity: 1;
1709
+ border-color: var(--fallback-su,oklch(var(--su)/var(--tw-border-opacity)));
1710
+ }
1711
+ .checkbox-color-success:focus-visible {
1712
+ outline-color: var(--fallback-su,oklch(var(--su)/1));
1713
+ }
1714
+ .checkbox-color-success:checked,.checkbox-color-success[checked="true"],.checkbox-color-success[aria-checked="true"] {
1715
+ --tw-border-opacity: 1;
1716
+ border-color: var(--fallback-su,oklch(var(--su)/var(--tw-border-opacity)));
1717
+ --tw-bg-opacity: 1;
1718
+ background-color: var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));
1719
+ --tw-text-opacity: 1;
1720
+ color: var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)));
1721
+ }
1722
+ @media (hover:hover) {
1723
+
1724
+ .checkbox-color-warning:hover {
1725
+ --tw-border-opacity: 1;
1726
+ border-color: var(--fallback-wa,oklch(var(--wa)/var(--tw-border-opacity)));
1727
+ }
1728
+ }
1729
+ .checkbox-color-warning {
1730
+ --chkbg: var(--fallback-wa,oklch(var(--wa)/1));
1731
+ --chkfg: var(--fallback-wac,oklch(var(--wac)/1));
1732
+ --tw-border-opacity: 1;
1733
+ border-color: var(--fallback-wa,oklch(var(--wa)/var(--tw-border-opacity)));
1734
+ }
1735
+ .checkbox-color-warning:focus-visible {
1736
+ outline-color: var(--fallback-wa,oklch(var(--wa)/1));
1737
+ }
1738
+ .checkbox-color-warning:checked,.checkbox-color-warning[checked="true"],.checkbox-color-warning[aria-checked="true"] {
1739
+ --tw-border-opacity: 1;
1740
+ border-color: var(--fallback-wa,oklch(var(--wa)/var(--tw-border-opacity)));
1741
+ --tw-bg-opacity: 1;
1742
+ background-color: var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)));
1743
+ --tw-text-opacity: 1;
1744
+ color: var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));
1745
+ }
1746
+ @media (hover:hover) {
1747
+
1748
+ .checkbox-color-info:hover {
1749
+ --tw-border-opacity: 1;
1750
+ border-color: var(--fallback-in,oklch(var(--in)/var(--tw-border-opacity)));
1751
+ }
1752
+ }
1753
+ .checkbox-color-info {
1754
+ --chkbg: var(--fallback-in,oklch(var(--in)/1));
1755
+ --chkfg: var(--fallback-inc,oklch(var(--inc)/1));
1756
+ --tw-border-opacity: 1;
1757
+ border-color: var(--fallback-in,oklch(var(--in)/var(--tw-border-opacity)));
1758
+ }
1759
+ .checkbox-color-info:focus-visible {
1760
+ outline-color: var(--fallback-in,oklch(var(--in)/1));
1761
+ }
1762
+ .checkbox-color-info:checked,.checkbox-color-info[checked="true"],.checkbox-color-info[aria-checked="true"] {
1763
+ --tw-border-opacity: 1;
1764
+ border-color: var(--fallback-in,oklch(var(--in)/var(--tw-border-opacity)));
1765
+ --tw-bg-opacity: 1;
1766
+ background-color: var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)));
1767
+ --tw-text-opacity: 1;
1768
+ color: var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)));
1769
+ }
1770
+ @media (hover:hover) {
1771
+
1772
+ .checkbox-color-error:hover {
1773
+ --tw-border-opacity: 1;
1774
+ border-color: var(--fallback-er,oklch(var(--er)/var(--tw-border-opacity)));
1775
+ }
1776
+ }
1777
+ .checkbox-color-error {
1778
+ --chkbg: var(--fallback-er,oklch(var(--er)/1));
1779
+ --chkfg: var(--fallback-erc,oklch(var(--erc)/1));
1780
+ --tw-border-opacity: 1;
1781
+ border-color: var(--fallback-er,oklch(var(--er)/var(--tw-border-opacity)));
1782
+ }
1783
+ .checkbox-color-error:focus-visible {
1784
+ outline-color: var(--fallback-er,oklch(var(--er)/1));
1785
+ }
1786
+ .checkbox-color-error:checked,.checkbox-color-error[checked="true"],.checkbox-color-error[aria-checked="true"] {
1787
+ --tw-border-opacity: 1;
1788
+ border-color: var(--fallback-er,oklch(var(--er)/var(--tw-border-opacity)));
1789
+ --tw-bg-opacity: 1;
1790
+ background-color: var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));
1791
+ --tw-text-opacity: 1;
1792
+ color: var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));
1793
+ }
1794
+ [type="checkbox"].checkbox-size-xs {
1795
+ height: 1rem;
1796
+ width: 1rem;
1797
+ }
1798
+ [type="checkbox"].checkbox-size-sm {
1799
+ height: 1.25rem;
1800
+ width: 1.25rem;
1801
+ }
1802
+ [type="checkbox"].checkbox-size-md {
1803
+ height: 1.5rem;
1804
+ width: 1.5rem;
1805
+ }
1806
+ [type="checkbox"].checkbox-size-lg {
1807
+ height: 2rem;
1808
+ width: 2rem;
1809
+ }
1221
1810
  .text-box-size-xs {
1222
1811
  height: 1.5rem;
1223
1812
  padding-left: 0.5rem;
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import type { FieldPath, FieldValues, ControllerProps as RHFControllerProps } from 'react-hook-form';
3
- import { DropDown, TextBox } from '../../ui/forms';
3
+ import { Dropdown, TextBox } from '../../ui/forms';
4
4
  type TextBoxType = {
5
5
  as: typeof TextBox;
6
6
  } & React.ComponentProps<typeof TextBox>;
7
- type DropDownType = {
8
- as: typeof DropDown;
9
- } & React.ComponentProps<typeof DropDown>;
10
- type Inputs = TextBoxType | DropDownType;
7
+ type DropdownType = {
8
+ as: typeof Dropdown;
9
+ } & React.ComponentProps<typeof Dropdown>;
10
+ type Inputs = TextBoxType | DropdownType;
11
11
  export type ControllerType<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = Omit<RHFControllerProps<TFieldValues, TName>, 'render'> & Inputs;
12
12
  export {};