manolis-ui 0.5.3 → 0.6.2

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/style.css CHANGED
@@ -848,6 +848,175 @@
848
848
  .visible {
849
849
  visibility: visible;
850
850
  }
851
+ .list {
852
+ display: flex;
853
+ flex-direction: column;
854
+ font-size: 0.875rem;
855
+ :where(.list-row) {
856
+ --list-grid-cols: minmax(0, auto) 1fr;
857
+ position: relative;
858
+ display: grid;
859
+ grid-auto-flow: column;
860
+ gap: calc(0.25rem * 4);
861
+ border-radius: var(--radius-box);
862
+ padding: calc(0.25rem * 4);
863
+ word-break: break-word;
864
+ grid-template-columns: var(--list-grid-cols);
865
+ &:has(.list-col-grow:nth-child(1)) {
866
+ --list-grid-cols: 1fr;
867
+ }
868
+ &:has(.list-col-grow:nth-child(2)) {
869
+ --list-grid-cols: minmax(0, auto) 1fr;
870
+ }
871
+ &:has(.list-col-grow:nth-child(3)) {
872
+ --list-grid-cols: minmax(0, auto) minmax(0, auto) 1fr;
873
+ }
874
+ &:has(.list-col-grow:nth-child(4)) {
875
+ --list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr;
876
+ }
877
+ &:has(.list-col-grow:nth-child(5)) {
878
+ --list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr;
879
+ }
880
+ &:has(.list-col-grow:nth-child(6)) {
881
+ --list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto)
882
+ minmax(0, auto) 1fr;
883
+ }
884
+ :not(.list-col-wrap) {
885
+ grid-row-start: 1;
886
+ }
887
+ }
888
+ & > :not(:last-child) {
889
+ &.list-row, .list-row {
890
+ &:after {
891
+ content: "";
892
+ border-bottom: var(--border) solid;
893
+ inset-inline: var(--radius-box);
894
+ position: absolute;
895
+ bottom: calc(0.25rem * 0);
896
+ border-color: color-mix(in oklab, var(--color-base-content) 5%, transparent);
897
+ }
898
+ }
899
+ }
900
+ }
901
+ .toggle {
902
+ border: var(--border) solid currentColor;
903
+ color: var(--input-color);
904
+ position: relative;
905
+ display: inline-grid;
906
+ flex-shrink: 0;
907
+ cursor: pointer;
908
+ appearance: none;
909
+ place-content: center;
910
+ vertical-align: middle;
911
+ webkit-user-select: none;
912
+ user-select: none;
913
+ grid-template-columns: 0fr 1fr 1fr;
914
+ --radius-selector-max: calc(
915
+ var(--radius-selector) + var(--radius-selector) + var(--radius-selector)
916
+ );
917
+ border-radius: calc( var(--radius-selector) + min(var(--toggle-p), var(--radius-selector-max)) + min(var(--border), var(--radius-selector-max)) );
918
+ padding: var(--toggle-p);
919
+ box-shadow: 0 1px color-mix(in oklab, currentColor calc(var(--depth) * 10%), #0000) inset;
920
+ transition: color 0.3s, grid-template-columns 0.2s;
921
+ --input-color: color-mix(in oklab, var(--color-base-content) 50%, #0000);
922
+ --toggle-p: 0.1875rem;
923
+ --size: calc(var(--size-selector, 0.25rem) * 6);
924
+ width: calc((var(--size) * 2) - (var(--border) + var(--toggle-p)) * 2);
925
+ height: var(--size);
926
+ > * {
927
+ z-index: 1;
928
+ grid-column: span 1 / span 1;
929
+ grid-column-start: 2;
930
+ grid-row-start: 1;
931
+ height: 100%;
932
+ cursor: pointer;
933
+ appearance: none;
934
+ background-color: transparent;
935
+ padding: calc(0.25rem * 0.5);
936
+ transition: opacity 0.2s, rotate 0.4s;
937
+ border: none;
938
+ &:focus {
939
+ outline-style: none;
940
+ @media (forced-colors: active) {
941
+ outline: 2px solid transparent;
942
+ outline-offset: 2px;
943
+ }
944
+ }
945
+ &:nth-child(2) {
946
+ color: var(--color-base-100);
947
+ rotate: 0deg;
948
+ }
949
+ &:nth-child(3) {
950
+ color: var(--color-base-100);
951
+ opacity: 0%;
952
+ rotate: -15deg;
953
+ }
954
+ }
955
+ &:has(:checked) {
956
+ > :nth-child(2) {
957
+ opacity: 0%;
958
+ rotate: 15deg;
959
+ }
960
+ > :nth-child(3) {
961
+ opacity: 100%;
962
+ rotate: 0deg;
963
+ }
964
+ }
965
+ &:before {
966
+ position: relative;
967
+ inset-inline-start: calc(0.25rem * 0);
968
+ grid-column-start: 2;
969
+ grid-row-start: 1;
970
+ aspect-ratio: 1 / 1;
971
+ height: 100%;
972
+ border-radius: var(--radius-selector);
973
+ background-color: currentColor;
974
+ @media print {
975
+ outline: .25rem solid;
976
+ }
977
+ @media print {
978
+ outline-offset: -1rem;
979
+ }
980
+ translate: 0;
981
+ --tw-content: "";
982
+ content: var(--tw-content);
983
+ transition: background-color 0.1s, translate 0.2s, inset-inline-start 0.2s;
984
+ box-shadow: 0 -1px oklch(0% 0 0 / calc(var(--depth) * 0.1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset, 0 1px color-mix(in oklab, currentColor calc(var(--depth) * 10%), #0000);
985
+ background-size: auto, calc(var(--noise) * 100%);
986
+ background-image: none, var(--fx-noise);
987
+ @media (forced-colors: active) {
988
+ outline-style: var(--tw-outline-style);
989
+ outline-width: 1px;
990
+ outline-offset: calc(1px * -1);
991
+ }
992
+ }
993
+ &:focus-visible, &:has(:focus-visible) {
994
+ outline: 2px solid currentColor;
995
+ outline-offset: 2px;
996
+ }
997
+ &:checked, &[aria-checked="true"], &:has(> input:checked) {
998
+ grid-template-columns: 1fr 1fr 0fr;
999
+ background-color: var(--color-base-100);
1000
+ --input-color: var(--color-base-content);
1001
+ &:before {
1002
+ background-color: currentColor;
1003
+ @starting-style {
1004
+ opacity: 0;
1005
+ }
1006
+ }
1007
+ }
1008
+ &:indeterminate {
1009
+ grid-template-columns: 0.5fr 1fr 0.5fr;
1010
+ }
1011
+ &:disabled {
1012
+ cursor: not-allowed;
1013
+ opacity: 30%;
1014
+ &:before {
1015
+ background-color: transparent;
1016
+ border: var(--border) solid currentColor;
1017
+ }
1018
+ }
1019
+ }
851
1020
  .input {
852
1021
  cursor: text;
853
1022
  border: var(--border) solid #0000;
@@ -1714,6 +1883,9 @@
1714
1883
  .top-4 {
1715
1884
  top: calc(var(--spacing) * 4);
1716
1885
  }
1886
+ .top-full {
1887
+ top: 100%;
1888
+ }
1717
1889
  .right-0 {
1718
1890
  right: calc(var(--spacing) * 0);
1719
1891
  }
@@ -1860,6 +2032,56 @@
1860
2032
  .mx-auto {
1861
2033
  margin-inline: auto;
1862
2034
  }
2035
+ .input-lg {
2036
+ --size: calc(var(--size-field, 0.25rem) * 12);
2037
+ font-size: 1.125rem;
2038
+ &[type="number"] {
2039
+ &::-webkit-inner-spin-button {
2040
+ margin-block: calc(0.25rem * -3);
2041
+ margin-inline-end: calc(0.25rem * -3);
2042
+ }
2043
+ }
2044
+ }
2045
+ .input-md {
2046
+ --size: calc(var(--size-field, 0.25rem) * 10);
2047
+ font-size: 0.875rem;
2048
+ &[type="number"] {
2049
+ &::-webkit-inner-spin-button {
2050
+ margin-block: calc(0.25rem * -3);
2051
+ margin-inline-end: calc(0.25rem * -3);
2052
+ }
2053
+ }
2054
+ }
2055
+ .input-sm {
2056
+ --size: calc(var(--size-field, 0.25rem) * 8);
2057
+ font-size: 0.75rem;
2058
+ &[type="number"] {
2059
+ &::-webkit-inner-spin-button {
2060
+ margin-block: calc(0.25rem * -2);
2061
+ margin-inline-end: calc(0.25rem * -3);
2062
+ }
2063
+ }
2064
+ }
2065
+ .input-xl {
2066
+ --size: calc(var(--size-field, 0.25rem) * 14);
2067
+ font-size: 1.375rem;
2068
+ &[type="number"] {
2069
+ &::-webkit-inner-spin-button {
2070
+ margin-block: calc(0.25rem * -4);
2071
+ margin-inline-end: calc(0.25rem * -3);
2072
+ }
2073
+ }
2074
+ }
2075
+ .input-xs {
2076
+ --size: calc(var(--size-field, 0.25rem) * 6);
2077
+ font-size: 0.6875rem;
2078
+ &[type="number"] {
2079
+ &::-webkit-inner-spin-button {
2080
+ margin-block: calc(0.25rem * -1);
2081
+ margin-inline-end: calc(0.25rem * -3);
2082
+ }
2083
+ }
2084
+ }
1863
2085
  .my-4 {
1864
2086
  margin-block: calc(var(--spacing) * 4);
1865
2087
  }
@@ -1903,6 +2125,14 @@
1903
2125
  justify-content: flex-end;
1904
2126
  gap: calc(0.25rem * 2);
1905
2127
  }
2128
+ .validator-hint {
2129
+ margin-top: calc(0.25rem * 2);
2130
+ font-size: var(--text-xs);
2131
+ line-height: var(--tw-leading, var(--text-xs--line-height));
2132
+ }
2133
+ .mt-1 {
2134
+ margin-top: calc(var(--spacing) * 1);
2135
+ }
1906
2136
  .mt-4 {
1907
2137
  margin-top: calc(var(--spacing) * 4);
1908
2138
  }
@@ -2159,6 +2389,9 @@
2159
2389
  .hidden {
2160
2390
  display: none;
2161
2391
  }
2392
+ .inline {
2393
+ display: inline;
2394
+ }
2162
2395
  .inline-block {
2163
2396
  display: inline-block;
2164
2397
  }
@@ -2232,33 +2465,186 @@
2232
2465
  --tab-radius-min: calc(1.5rem - var(--border));
2233
2466
  }
2234
2467
  }
2468
+ .h-0 {
2469
+ height: calc(var(--spacing) * 0);
2470
+ }
2471
+ .h-0\.5 {
2472
+ height: calc(var(--spacing) * 0.5);
2473
+ }
2474
+ .h-1 {
2475
+ height: calc(var(--spacing) * 1);
2476
+ }
2477
+ .h-1\.5 {
2478
+ height: calc(var(--spacing) * 1.5);
2479
+ }
2480
+ .h-1\/2 {
2481
+ height: calc(1/2 * 100%);
2482
+ }
2483
+ .h-1\/3 {
2484
+ height: calc(1/3 * 100%);
2485
+ }
2486
+ .h-1\/4 {
2487
+ height: calc(1/4 * 100%);
2488
+ }
2489
+ .h-1\/5 {
2490
+ height: calc(1/5 * 100%);
2491
+ }
2492
+ .h-1\/6 {
2493
+ height: calc(1/6 * 100%);
2494
+ }
2495
+ .h-2 {
2496
+ height: calc(var(--spacing) * 2);
2497
+ }
2498
+ .h-2\.5 {
2499
+ height: calc(var(--spacing) * 2.5);
2500
+ }
2501
+ .h-2\/3 {
2502
+ height: calc(2/3 * 100%);
2503
+ }
2504
+ .h-2\/4 {
2505
+ height: calc(2/4 * 100%);
2506
+ }
2507
+ .h-2\/5 {
2508
+ height: calc(2/5 * 100%);
2509
+ }
2510
+ .h-2\/6 {
2511
+ height: calc(2/6 * 100%);
2512
+ }
2513
+ .h-3 {
2514
+ height: calc(var(--spacing) * 3);
2515
+ }
2516
+ .h-3\.5 {
2517
+ height: calc(var(--spacing) * 3.5);
2518
+ }
2519
+ .h-3\/4 {
2520
+ height: calc(3/4 * 100%);
2521
+ }
2522
+ .h-3\/5 {
2523
+ height: calc(3/5 * 100%);
2524
+ }
2525
+ .h-3\/6 {
2526
+ height: calc(3/6 * 100%);
2527
+ }
2235
2528
  .h-4 {
2236
2529
  height: calc(var(--spacing) * 4);
2237
2530
  }
2531
+ .h-4\/5 {
2532
+ height: calc(4/5 * 100%);
2533
+ }
2534
+ .h-4\/6 {
2535
+ height: calc(4/6 * 100%);
2536
+ }
2238
2537
  .h-5 {
2239
2538
  height: calc(var(--spacing) * 5);
2240
2539
  }
2540
+ .h-5\/6 {
2541
+ height: calc(5/6 * 100%);
2542
+ }
2543
+ .h-6 {
2544
+ height: calc(var(--spacing) * 6);
2545
+ }
2546
+ .h-7 {
2547
+ height: calc(var(--spacing) * 7);
2548
+ }
2549
+ .h-8 {
2550
+ height: calc(var(--spacing) * 8);
2551
+ }
2552
+ .h-9 {
2553
+ height: calc(var(--spacing) * 9);
2554
+ }
2555
+ .h-10 {
2556
+ height: calc(var(--spacing) * 10);
2557
+ }
2558
+ .h-11 {
2559
+ height: calc(var(--spacing) * 11);
2560
+ }
2561
+ .h-12 {
2562
+ height: calc(var(--spacing) * 12);
2563
+ }
2564
+ .h-14 {
2565
+ height: calc(var(--spacing) * 14);
2566
+ }
2567
+ .h-16 {
2568
+ height: calc(var(--spacing) * 16);
2569
+ }
2570
+ .h-20 {
2571
+ height: calc(var(--spacing) * 20);
2572
+ }
2573
+ .h-24 {
2574
+ height: calc(var(--spacing) * 24);
2575
+ }
2576
+ .h-28 {
2577
+ height: calc(var(--spacing) * 28);
2578
+ }
2241
2579
  .h-32 {
2242
2580
  height: calc(var(--spacing) * 32);
2243
2581
  }
2582
+ .h-36 {
2583
+ height: calc(var(--spacing) * 36);
2584
+ }
2585
+ .h-40 {
2586
+ height: calc(var(--spacing) * 40);
2587
+ }
2244
2588
  .h-44 {
2245
2589
  height: calc(var(--spacing) * 44);
2246
2590
  }
2247
2591
  .h-48 {
2248
2592
  height: calc(var(--spacing) * 48);
2249
2593
  }
2594
+ .h-52 {
2595
+ height: calc(var(--spacing) * 52);
2596
+ }
2597
+ .h-56 {
2598
+ height: calc(var(--spacing) * 56);
2599
+ }
2600
+ .h-60 {
2601
+ height: calc(var(--spacing) * 60);
2602
+ }
2250
2603
  .h-64 {
2251
2604
  height: calc(var(--spacing) * 64);
2252
2605
  }
2606
+ .h-72 {
2607
+ height: calc(var(--spacing) * 72);
2608
+ }
2609
+ .h-80 {
2610
+ height: calc(var(--spacing) * 80);
2611
+ }
2253
2612
  .h-96 {
2254
2613
  height: calc(var(--spacing) * 96);
2255
2614
  }
2615
+ .h-auto {
2616
+ height: auto;
2617
+ }
2618
+ .h-dvh {
2619
+ height: 100dvh;
2620
+ }
2256
2621
  .h-fit {
2257
2622
  height: fit-content;
2258
2623
  }
2259
2624
  .h-full {
2260
2625
  height: 100%;
2261
2626
  }
2627
+ .h-lvh {
2628
+ height: 100lvh;
2629
+ }
2630
+ .h-max {
2631
+ height: max-content;
2632
+ }
2633
+ .h-min {
2634
+ height: min-content;
2635
+ }
2636
+ .h-px {
2637
+ height: 1px;
2638
+ }
2639
+ .h-screen {
2640
+ height: 100vh;
2641
+ }
2642
+ .h-svh {
2643
+ height: 100svh;
2644
+ }
2645
+ .max-h-60 {
2646
+ max-height: calc(var(--spacing) * 60);
2647
+ }
2262
2648
  .min-h-40 {
2263
2649
  min-height: calc(var(--spacing) * 40);
2264
2650
  }
@@ -2470,6 +2856,9 @@
2470
2856
  .overflow-x-scroll {
2471
2857
  overflow-x: scroll;
2472
2858
  }
2859
+ .overflow-y-auto {
2860
+ overflow-y: auto;
2861
+ }
2473
2862
  .scroll-smooth {
2474
2863
  scroll-behavior: smooth;
2475
2864
  }
@@ -2872,6 +3261,10 @@
2872
3261
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2873
3262
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2874
3263
  }
3264
+ .shadow-lg {
3265
+ --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
3266
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3267
+ }
2875
3268
  .shadow-md {
2876
3269
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2877
3270
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -2904,6 +3297,10 @@
2904
3297
  }
2905
3298
  }
2906
3299
  }
3300
+ .blur {
3301
+ --tw-blur: blur(8px);
3302
+ 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,);
3303
+ }
2907
3304
  .filter {
2908
3305
  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,);
2909
3306
  }
@@ -2974,6 +3371,46 @@
2974
3371
  --btn-color: var(--color-warning);
2975
3372
  --btn-fg: var(--color-warning-content);
2976
3373
  }
3374
+ .input-accent {
3375
+ &, &:focus, &:focus-within {
3376
+ --input-color: var(--color-accent);
3377
+ }
3378
+ }
3379
+ .input-error {
3380
+ &, &:focus, &:focus-within {
3381
+ --input-color: var(--color-error);
3382
+ }
3383
+ }
3384
+ .input-info {
3385
+ &, &:focus, &:focus-within {
3386
+ --input-color: var(--color-info);
3387
+ }
3388
+ }
3389
+ .input-neutral {
3390
+ &, &:focus, &:focus-within {
3391
+ --input-color: var(--color-neutral);
3392
+ }
3393
+ }
3394
+ .input-primary {
3395
+ &, &:focus, &:focus-within {
3396
+ --input-color: var(--color-primary);
3397
+ }
3398
+ }
3399
+ .input-secondary {
3400
+ &, &:focus, &:focus-within {
3401
+ --input-color: var(--color-secondary);
3402
+ }
3403
+ }
3404
+ .input-success {
3405
+ &, &:focus, &:focus-within {
3406
+ --input-color: var(--color-success);
3407
+ }
3408
+ }
3409
+ .input-warning {
3410
+ &, &:focus, &:focus-within {
3411
+ --input-color: var(--color-warning);
3412
+ }
3413
+ }
2977
3414
  .loading-bars {
2978
3415
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='9' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3C/rect%3E%3Crect x='17' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3C/rect%3E%3C/svg%3E");
2979
3416
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "manolis-ui",
3
3
  "private": false,
4
- "version": "0.5.3",
4
+ "version": "0.6.2",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/*"