@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,126 @@
1
+ .alert {
2
+ /* override the border style of Tailwind CSS Typography plugin */
3
+ border-width: var(--border);
4
+ border-color: var(--alert-border-color, var(--color-base-200));
5
+ @layer daisyui.l1.l2.l3 {
6
+ border-style: solid;
7
+ --alert-border-color: var(--color-base-200);
8
+ @apply rounded-box text-base-content grid items-center gap-4 px-4 py-3;
9
+ background-color: var(--alert-color, var(--color-base-200));
10
+ justify-content: start;
11
+ justify-items: start;
12
+ grid-auto-flow: column;
13
+ grid-template-columns: auto;
14
+ text-align: start;
15
+ font-size: 0.875rem;
16
+ line-height: 1.25rem;
17
+ background-size: auto, calc(var(--noise) * 100%);
18
+ background-image: none, var(--fx-noise);
19
+ box-shadow:
20
+ 0 3px 0 -2px oklch(100% 0 0 / calc(var(--depth) * 0.08)) inset,
21
+ 0 1px
22
+ color-mix(
23
+ in oklab,
24
+ color-mix(in oklab, #000 20%, var(--alert-color, var(--color-base-200)))
25
+ calc(var(--depth) * 20%),
26
+ #0000
27
+ ),
28
+ 0 4px 3px -2px oklch(0% 0 0 / calc(var(--depth) * 0.08));
29
+ &:has(:nth-child(2)) {
30
+ grid-template-columns: auto minmax(auto, 1fr);
31
+ }
32
+ }
33
+ }
34
+
35
+ .alert-info {
36
+ @layer daisyui.l1.l2 {
37
+ @apply text-info-content;
38
+ --alert-border-color: var(--color-info);
39
+ --alert-color: var(--color-info);
40
+ }
41
+ }
42
+
43
+ .alert-success {
44
+ @layer daisyui.l1.l2 {
45
+ @apply text-success-content;
46
+ --alert-border-color: var(--color-success);
47
+ --alert-color: var(--color-success);
48
+ }
49
+ }
50
+
51
+ .alert-warning {
52
+ @layer daisyui.l1.l2 {
53
+ @apply text-warning-content;
54
+ --alert-border-color: var(--color-warning);
55
+ --alert-color: var(--color-warning);
56
+ }
57
+ }
58
+
59
+ .alert-error {
60
+ @layer daisyui.l1.l2 {
61
+ @apply text-error-content;
62
+ --alert-border-color: var(--color-error);
63
+ --alert-color: var(--color-error);
64
+ }
65
+ }
66
+
67
+ .alert-soft {
68
+ @layer daisyui.l1 {
69
+ color: var(--alert-color, var(--color-base-content));
70
+ background: color-mix(
71
+ in oklab,
72
+ var(--alert-color, var(--color-base-content)) 8%,
73
+ var(--color-base-100)
74
+ );
75
+ --alert-border-color: color-mix(
76
+ in oklab,
77
+ var(--alert-color, var(--color-base-content)) 10%,
78
+ var(--color-base-100)
79
+ );
80
+ box-shadow: none;
81
+ background-image: none;
82
+ }
83
+ }
84
+ .alert-outline {
85
+ @layer daisyui.l1 {
86
+ @apply bg-transparent;
87
+ color: var(--alert-color);
88
+ box-shadow: none;
89
+ background-image: none;
90
+ }
91
+ }
92
+ .alert-dash {
93
+ @layer daisyui.l1 {
94
+ @apply bg-transparent;
95
+ color: var(--alert-color);
96
+ border-style: dashed;
97
+ box-shadow: none;
98
+ background-image: none;
99
+ }
100
+ }
101
+
102
+ .alert-vertical {
103
+ @layer daisyui.l1.l2 {
104
+ justify-content: center;
105
+ justify-items: center;
106
+ grid-auto-flow: row;
107
+ grid-template-columns: auto;
108
+ text-align: center;
109
+ &:has(:nth-child(2)) {
110
+ grid-template-columns: auto;
111
+ }
112
+ }
113
+ }
114
+
115
+ .alert-horizontal {
116
+ @layer daisyui.l1.l2 {
117
+ justify-content: start;
118
+ justify-items: start;
119
+ grid-auto-flow: column;
120
+ grid-template-columns: auto;
121
+ text-align: start;
122
+ &:has(:nth-child(2)) {
123
+ grid-template-columns: auto minmax(auto, 1fr);
124
+ }
125
+ }
126
+ }
@@ -0,0 +1,60 @@
1
+ .avatar-group {
2
+ @layer daisyui.l1.l2.l3 {
3
+ @apply flex overflow-hidden;
4
+
5
+ .avatar {
6
+ @apply overflow-hidden rounded-full;
7
+ border: 4px solid var(--color-base-100);
8
+ }
9
+ }
10
+ }
11
+
12
+ .avatar {
13
+ @layer daisyui.l1.l2.l3 {
14
+ @apply relative inline-flex align-middle;
15
+
16
+ & > div {
17
+ @apply block aspect-square overflow-hidden;
18
+ }
19
+
20
+ img {
21
+ @apply h-full w-full object-cover;
22
+ }
23
+ }
24
+ }
25
+
26
+ .avatar-placeholder {
27
+ @layer daisyui.l1.l2 {
28
+ & > div {
29
+ @apply flex items-center justify-center;
30
+ }
31
+ }
32
+ }
33
+
34
+ .avatar-online {
35
+ @layer daisyui.l1.l2 {
36
+ &:before {
37
+ content: "";
38
+ @apply bg-success absolute z-1 block rounded-full;
39
+ outline: 2px solid var(--color-base-100);
40
+ width: 15%;
41
+ height: 15%;
42
+ top: 7%;
43
+ right: 7%;
44
+ }
45
+ }
46
+ }
47
+
48
+ .avatar-offline {
49
+ @layer daisyui.l1.l2 {
50
+ &:before {
51
+ content: "";
52
+ @apply bg-base-300 absolute z-1 block rounded-full;
53
+ outline: 2px solid var(--color-base-100);
54
+ width: 15%;
55
+ height: 15%;
56
+ top: 7%;
57
+ right: 7%;
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,151 @@
1
+ .badge {
2
+ @layer daisyui.l1.l2.l3 {
3
+ @apply rounded-selector inline-flex items-center justify-center gap-2 align-middle;
4
+ color: var(--badge-fg);
5
+ border: var(--border) solid var(--badge-color, var(--color-base-200));
6
+ font-size: 0.875rem;
7
+ width: fit-content;
8
+ background-size: auto, calc(var(--noise) * 100%);
9
+ background-image: none, var(--fx-noise);
10
+ background-color: var(--badge-bg);
11
+ --badge-bg: var(--badge-color, var(--color-base-100));
12
+ --badge-fg: var(--color-base-content);
13
+ --size: calc(var(--size-selector, 0.25rem) * 6);
14
+ height: var(--size);
15
+ padding-inline: calc(var(--size) / 2 - var(--border));
16
+ }
17
+ }
18
+
19
+ .badge-outline {
20
+ @layer daisyui.l1.l2 {
21
+ color: var(--badge-color);
22
+ --badge-bg: #0000;
23
+ background-image: none;
24
+ border-color: currentColor;
25
+ }
26
+ }
27
+
28
+ .badge-dash {
29
+ @layer daisyui.l1.l2 {
30
+ color: var(--badge-color);
31
+ --badge-bg: #0000;
32
+ background-image: none;
33
+ border-color: currentColor;
34
+ border-style: dashed;
35
+ }
36
+ }
37
+
38
+ .badge-soft {
39
+ @layer daisyui.l1.l2 {
40
+ color: var(--badge-color, var(--color-base-content));
41
+ background-color: color-mix(
42
+ in oklab,
43
+ var(--badge-color, var(--color-base-content)) 8%,
44
+ var(--color-base-100)
45
+ );
46
+ border-color: color-mix(
47
+ in oklab,
48
+ var(--badge-color, var(--color-base-content)) 10%,
49
+ var(--color-base-100)
50
+ );
51
+ background-image: none;
52
+ }
53
+ }
54
+
55
+ .badge-primary {
56
+ @layer daisyui.l1.l2 {
57
+ --badge-color: var(--color-primary);
58
+ --badge-fg: var(--color-primary-content);
59
+ }
60
+ }
61
+
62
+ .badge-secondary {
63
+ @layer daisyui.l1.l2 {
64
+ --badge-color: var(--color-secondary);
65
+ --badge-fg: var(--color-secondary-content);
66
+ }
67
+ }
68
+
69
+ .badge-accent {
70
+ @layer daisyui.l1.l2 {
71
+ --badge-color: var(--color-accent);
72
+ --badge-fg: var(--color-accent-content);
73
+ }
74
+ }
75
+
76
+ .badge-neutral {
77
+ @layer daisyui.l1.l2 {
78
+ --badge-color: var(--color-neutral);
79
+ --badge-fg: var(--color-neutral-content);
80
+ }
81
+ }
82
+
83
+ .badge-info {
84
+ @layer daisyui.l1.l2 {
85
+ --badge-color: var(--color-info);
86
+ --badge-fg: var(--color-info-content);
87
+ }
88
+ }
89
+
90
+ .badge-success {
91
+ @layer daisyui.l1.l2 {
92
+ --badge-color: var(--color-success);
93
+ --badge-fg: var(--color-success-content);
94
+ }
95
+ }
96
+
97
+ .badge-warning {
98
+ @layer daisyui.l1.l2 {
99
+ --badge-color: var(--color-warning);
100
+ --badge-fg: var(--color-warning-content);
101
+ }
102
+ }
103
+
104
+ .badge-error {
105
+ @layer daisyui.l1.l2 {
106
+ --badge-color: var(--color-error);
107
+ --badge-fg: var(--color-error-content);
108
+ }
109
+ }
110
+
111
+ .badge-ghost {
112
+ @layer daisyui.l1.l2 {
113
+ @apply border-base-200 bg-base-200 text-base-content;
114
+ background-image: none;
115
+ }
116
+ }
117
+
118
+ .badge-xs {
119
+ @layer daisyui.l1.l2 {
120
+ --size: calc(var(--size-selector, 0.25rem) * 4);
121
+ font-size: 0.625rem;
122
+ }
123
+ }
124
+
125
+ .badge-sm {
126
+ @layer daisyui.l1.l2 {
127
+ --size: calc(var(--size-selector, 0.25rem) * 5);
128
+ font-size: 0.75rem;
129
+ }
130
+ }
131
+
132
+ .badge-md {
133
+ @layer daisyui.l1.l2 {
134
+ --size: calc(var(--size-selector, 0.25rem) * 6);
135
+ font-size: 0.875rem;
136
+ }
137
+ }
138
+
139
+ .badge-lg {
140
+ @layer daisyui.l1.l2 {
141
+ --size: calc(var(--size-selector, 0.25rem) * 7);
142
+ font-size: 1rem;
143
+ }
144
+ }
145
+
146
+ .badge-xl {
147
+ @layer daisyui.l1.l2 {
148
+ --size: calc(var(--size-selector, 0.25rem) * 8);
149
+ font-size: 1.125rem;
150
+ }
151
+ }
@@ -0,0 +1,40 @@
1
+ .breadcrumbs {
2
+ @layer daisyui.l1.l2.l3 {
3
+ @apply max-w-full overflow-x-auto py-2;
4
+
5
+ > menu,
6
+ > ul,
7
+ > ol {
8
+ @apply flex min-h-min items-center whitespace-nowrap;
9
+
10
+ > li {
11
+ @apply flex items-center;
12
+
13
+ > * {
14
+ @apply flex cursor-pointer items-center gap-2 hover:underline;
15
+
16
+ &:focus {
17
+ @apply outline-hidden;
18
+ }
19
+
20
+ &:focus-visible {
21
+ outline: 2px solid currentColor;
22
+ outline-offset: 2px;
23
+ }
24
+ }
25
+
26
+ & + *:before {
27
+ content: "";
28
+ @apply me-3 ms-2 block h-1.5 w-1.5 opacity-40;
29
+ rotate: 45deg;
30
+ border-top: 1px solid;
31
+ border-right: 1px solid;
32
+ background-color: #0000;
33
+ }
34
+ [dir="rtl"] & + *:before {
35
+ rotate: -135deg;
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }