@macroui/macroui 1.0.31 → 4.0.1

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 (121) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +27 -193
  3. package/dist/base.js +1 -0
  4. package/dist/{macroui.css → full.css} +0 -9014
  5. package/dist/index.d.ts +122 -0
  6. package/dist/index.js +149 -0
  7. package/dist/styled.css +5192 -0
  8. package/dist/styled.js +1 -0
  9. package/dist/themes.css +2118 -0
  10. package/dist/unstyled.css +1330 -0
  11. package/dist/unstyled.js +1 -0
  12. package/dist/utilities-styled.js +1 -0
  13. package/dist/utilities-unstyled.js +1 -0
  14. package/dist/utilities.js +1 -0
  15. package/package.json +30 -66
  16. package/src/base/properties.css +5 -0
  17. package/src/base/reset.css +130 -0
  18. package/src/base/rootcolor.css +9 -0
  19. package/src/base/rootscrollgutter.css +21 -0
  20. package/src/base/rootscrolllock.css +4 -0
  21. package/src/base/scrollbar.css +3 -0
  22. package/src/base/svg.css +3 -0
  23. package/src/components/alert.css +126 -0
  24. package/src/components/avatar.css +60 -0
  25. package/src/components/badge.css +151 -0
  26. package/src/components/breadcrumbs.css +40 -0
  27. package/src/components/button.css +362 -0
  28. package/src/components/calendar.css +549 -0
  29. package/src/components/card.css +203 -0
  30. package/src/components/carousel.css +59 -0
  31. package/src/components/chat.css +157 -0
  32. package/src/components/checkbox.css +174 -0
  33. package/src/components/collapse.css +302 -0
  34. package/src/components/countdown.css +56 -0
  35. package/src/components/diff.css +93 -0
  36. package/src/components/divider.css +148 -0
  37. package/src/components/dock.css +123 -0
  38. package/src/components/drawer.css +166 -0
  39. package/src/components/dropdown.css +247 -0
  40. package/src/components/fab.css +139 -0
  41. package/src/components/fieldset.css +23 -0
  42. package/src/components/fileinput.css +265 -0
  43. package/src/components/filter.css +42 -0
  44. package/src/components/footer.css +45 -0
  45. package/src/components/hero.css +21 -0
  46. package/src/components/hover3d.css +128 -0
  47. package/src/components/hovergallery.css +87 -0
  48. package/src/components/indicator.css +76 -0
  49. package/src/components/input.css +263 -0
  50. package/src/components/kbd.css +49 -0
  51. package/src/components/label.css +101 -0
  52. package/src/components/link.css +116 -0
  53. package/src/components/list.css +58 -0
  54. package/src/components/loading.css +76 -0
  55. package/src/components/mask.css +108 -0
  56. package/src/components/menu.css +298 -0
  57. package/src/components/mockup.css +150 -0
  58. package/src/components/modal.css +182 -0
  59. package/src/components/navbar.css +36 -0
  60. package/src/components/progress.css +108 -0
  61. package/src/components/radialprogress.css +39 -0
  62. package/src/components/radio.css +158 -0
  63. package/src/components/range.css +186 -0
  64. package/src/components/rating.css +114 -0
  65. package/src/components/select.css +284 -0
  66. package/src/components/skeleton.css +41 -0
  67. package/src/components/stack.css +80 -0
  68. package/src/components/stat.css +73 -0
  69. package/src/components/status.css +92 -0
  70. package/src/components/steps.css +168 -0
  71. package/src/components/swap.css +94 -0
  72. package/src/components/tab.css +557 -0
  73. package/src/components/table.css +126 -0
  74. package/src/components/textarea.css +179 -0
  75. package/src/components/textrotate.css +71 -0
  76. package/src/components/timeline.css +250 -0
  77. package/src/components/toast.css +68 -0
  78. package/src/components/toggle.css +239 -0
  79. package/src/components/tooltip.css +203 -0
  80. package/src/components/validator.css +47 -0
  81. package/src/themes/abyss.css +29 -0
  82. package/src/themes/acid.css +29 -0
  83. package/src/themes/aqua.css +29 -0
  84. package/src/themes/autumn.css +29 -0
  85. package/src/themes/black.css +29 -0
  86. package/src/themes/bumblebee.css +29 -0
  87. package/src/themes/business.css +29 -0
  88. package/src/themes/caramellatte.css +29 -0
  89. package/src/themes/cmyk.css +29 -0
  90. package/src/themes/coffee.css +29 -0
  91. package/src/themes/corporate.css +29 -0
  92. package/src/themes/cupcake.css +29 -0
  93. package/src/themes/cyberpunk.css +29 -0
  94. package/src/themes/dark.css +29 -0
  95. package/src/themes/dim.css +29 -0
  96. package/src/themes/dracula.css +29 -0
  97. package/src/themes/emerald.css +29 -0
  98. package/src/themes/fantasy.css +29 -0
  99. package/src/themes/forest.css +29 -0
  100. package/src/themes/garden.css +29 -0
  101. package/src/themes/halloween.css +29 -0
  102. package/src/themes/lemonade.css +29 -0
  103. package/src/themes/light.css +29 -0
  104. package/src/themes/lofi.css +29 -0
  105. package/src/themes/luxury.css +29 -0
  106. package/src/themes/night.css +29 -0
  107. package/src/themes/nord.css +29 -0
  108. package/src/themes/pastel.css +29 -0
  109. package/src/themes/retro.css +29 -0
  110. package/src/themes/silk.css +29 -0
  111. package/src/themes/sunset.css +29 -0
  112. package/src/themes/synthwave.css +29 -0
  113. package/src/themes/valentine.css +29 -0
  114. package/src/themes/winter.css +29 -0
  115. package/src/themes/wireframe.css +29 -0
  116. package/src/utilities/glass.css +20 -0
  117. package/src/utilities/join.css +207 -0
  118. package/src/utilities/radius.css +119 -0
  119. package/src/utilities/typography.css +31 -0
  120. package/dist/index.cjs.js +0 -19742
  121. package/dist/index.es.js +0 -19564
@@ -0,0 +1,168 @@
1
+ .steps {
2
+ @layer daisyui.l1.l2.l3 {
3
+ @apply inline-grid grid-flow-col overflow-hidden overflow-x-auto;
4
+ counter-reset: step;
5
+ grid-auto-columns: 1fr;
6
+
7
+ .step {
8
+ @apply grid grid-cols-1 grid-rows-2 place-items-center text-center;
9
+ grid-template-rows: 40px 1fr;
10
+ grid-template-columns: auto;
11
+ min-width: 4rem;
12
+ --step-bg: var(--color-base-300);
13
+ --step-fg: var(--color-base-content);
14
+ &:before {
15
+ @apply top-0 col-start-1 row-start-1 h-2 w-full;
16
+ border: 1px solid;
17
+ color: var(--step-bg);
18
+ background-color: var(--step-bg);
19
+ content: "";
20
+ margin-inline-start: -100%;
21
+ }
22
+
23
+ > .step-icon,
24
+ &:not(:has(.step-icon)):after {
25
+ --tw-content: counter(step);
26
+ content: var(--tw-content);
27
+ counter-increment: step;
28
+ z-index: 1;
29
+ color: var(--step-fg);
30
+ background-color: var(--step-bg);
31
+ border: 1px solid var(--step-bg);
32
+ @apply relative col-start-1 row-start-1 grid h-8 w-8 place-items-center place-self-center rounded-full;
33
+ }
34
+
35
+ &:first-child:before {
36
+ --tw-content: none;
37
+ content: var(--tw-content);
38
+ }
39
+
40
+ &[data-content]:after {
41
+ --tw-content: attr(data-content);
42
+ content: var(--tw-content);
43
+ }
44
+ }
45
+ }
46
+
47
+ @layer daisyui.l1.l2 {
48
+ .step-neutral {
49
+ + .step-neutral:before,
50
+ &:after,
51
+ > .step-icon {
52
+ --step-bg: var(--color-neutral);
53
+ --step-fg: var(--color-neutral-content);
54
+ }
55
+ }
56
+
57
+ .step-primary {
58
+ + .step-primary:before,
59
+ &:after,
60
+ > .step-icon {
61
+ --step-bg: var(--color-primary);
62
+ --step-fg: var(--color-primary-content);
63
+ }
64
+ }
65
+
66
+ .step-secondary {
67
+ + .step-secondary:before,
68
+ &:after,
69
+ > .step-icon {
70
+ --step-bg: var(--color-secondary);
71
+ --step-fg: var(--color-secondary-content);
72
+ }
73
+ }
74
+
75
+ .step-accent {
76
+ + .step-accent:before,
77
+ &:after,
78
+ > .step-icon {
79
+ --step-bg: var(--color-accent);
80
+ --step-fg: var(--color-accent-content);
81
+ }
82
+ }
83
+
84
+ .step-info {
85
+ + .step-info:before,
86
+ &:after,
87
+ > .step-icon {
88
+ --step-bg: var(--color-info);
89
+ --step-fg: var(--color-info-content);
90
+ }
91
+ }
92
+
93
+ .step-success {
94
+ + .step-success:before,
95
+ &:after,
96
+ > .step-icon {
97
+ --step-bg: var(--color-success);
98
+ --step-fg: var(--color-success-content);
99
+ }
100
+ }
101
+
102
+ .step-warning {
103
+ + .step-warning:before,
104
+ &:after,
105
+ > .step-icon {
106
+ --step-bg: var(--color-warning);
107
+ --step-fg: var(--color-warning-content);
108
+ }
109
+ }
110
+
111
+ .step-error {
112
+ + .step-error:before,
113
+ &:after,
114
+ > .step-icon {
115
+ --step-bg: var(--color-error);
116
+ --step-fg: var(--color-error-content);
117
+ }
118
+ }
119
+ }
120
+ }
121
+
122
+ .steps-horizontal {
123
+ @layer daisyui.l1.l2 {
124
+ grid-auto-columns: 1fr;
125
+ @apply inline-grid grid-flow-col overflow-hidden overflow-x-auto;
126
+
127
+ .step {
128
+ @apply grid grid-cols-1 grid-rows-2 place-items-center text-center;
129
+ grid-template-rows: 40px 1fr;
130
+ grid-template-columns: auto;
131
+ min-width: 4rem;
132
+
133
+ &:before {
134
+ @apply h-2 w-full;
135
+ translate: 0;
136
+ margin-inline-start: -100%;
137
+ }
138
+ [dir="rtl"] &:before {
139
+ translate: 0;
140
+ }
141
+ }
142
+ }
143
+ }
144
+
145
+ .steps-vertical {
146
+ @layer daisyui.l1.l2 {
147
+ grid-auto-rows: 1fr;
148
+ @apply grid-flow-row;
149
+
150
+ .step {
151
+ @apply grid grid-cols-2 grid-rows-1;
152
+ gap: 0.5rem;
153
+ grid-template-columns: 40px 1fr;
154
+ grid-template-rows: auto;
155
+ min-height: 4rem;
156
+ justify-items: start;
157
+
158
+ &:before {
159
+ @apply h-full w-2;
160
+ translate: -50% -50%;
161
+ margin-inline-start: 50%;
162
+ }
163
+ [dir="rtl"] &:before {
164
+ translate: 50% -50%;
165
+ }
166
+ }
167
+ }
168
+ }
@@ -0,0 +1,94 @@
1
+ .swap {
2
+ @layer daisyui.l1.l2.l3 {
3
+ @apply relative inline-grid cursor-pointer place-content-center align-middle select-none;
4
+
5
+ input {
6
+ @apply appearance-none;
7
+ border: none;
8
+ }
9
+
10
+ > * {
11
+ @apply col-start-1 row-start-1;
12
+ @media (prefers-reduced-motion: no-preference) {
13
+ transition-property: transform, rotate, opacity;
14
+ transition-duration: 0.2s;
15
+ transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
16
+ }
17
+ }
18
+
19
+ .swap-on,
20
+ .swap-indeterminate,
21
+ input:indeterminate ~ .swap-on {
22
+ @apply opacity-0;
23
+ }
24
+
25
+ input:is(:checked, :indeterminate) {
26
+ & ~ .swap-off {
27
+ @apply opacity-0;
28
+ }
29
+ }
30
+
31
+ input:checked ~ .swap-on,
32
+ input:indeterminate ~ .swap-indeterminate {
33
+ @apply opacity-100;
34
+ backface-visibility: visible;
35
+ }
36
+ }
37
+ }
38
+
39
+ .swap-active {
40
+ @layer daisyui.l1.l2 {
41
+ .swap-off {
42
+ @apply opacity-0;
43
+ }
44
+
45
+ .swap-on {
46
+ @apply opacity-100;
47
+ }
48
+ }
49
+ }
50
+
51
+ .swap-rotate {
52
+ @layer daisyui.l1.l2 {
53
+ .swap-on,
54
+ input:indeterminate ~ .swap-on {
55
+ @apply rotate-45;
56
+ }
57
+
58
+ input:is(:checked, :indeterminate) ~ .swap-on,
59
+ &.swap-active .swap-on {
60
+ @apply rotate-0;
61
+ }
62
+
63
+ input:is(:checked, :indeterminate) ~ .swap-off,
64
+ &.swap-active .swap-off {
65
+ @apply -rotate-45;
66
+ }
67
+ }
68
+ }
69
+
70
+ .swap-flip {
71
+ @layer daisyui.l1.l2 {
72
+ transform-style: preserve-3d;
73
+ perspective: 20rem;
74
+
75
+ .swap-on,
76
+ .swap-indeterminate,
77
+ input:indeterminate ~ .swap-on {
78
+ transform: rotateY(180deg);
79
+ backface-visibility: hidden;
80
+ }
81
+
82
+ input:is(:checked, :indeterminate) ~ .swap-on,
83
+ &.swap-active .swap-on {
84
+ transform: rotateY(0deg);
85
+ }
86
+
87
+ input:is(:checked, :indeterminate) ~ .swap-off,
88
+ &.swap-active .swap-off {
89
+ transform: rotateY(-180deg);
90
+ backface-visibility: hidden;
91
+ @apply opacity-100;
92
+ }
93
+ }
94
+ }