@ziioapp/ui 0.1.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 (244) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +47 -0
  3. package/THIRD_PARTY_NOTICES.md +3 -0
  4. package/dist/base.css +2 -0
  5. package/dist/hooks/use-mobile.d.ts +1 -0
  6. package/dist/hooks/use-mobile.js +15 -0
  7. package/dist/lib/official-themes.d.ts +76 -0
  8. package/dist/lib/official-themes.js +102 -0
  9. package/dist/lib/utils.d.ts +2 -0
  10. package/dist/lib/utils.js +5 -0
  11. package/dist/registry/registry.json +427 -0
  12. package/dist/registry/ziio-ui.json +421 -0
  13. package/dist/shadcn/components/accordion.d.ts +6 -0
  14. package/dist/shadcn/components/accordion.js +18 -0
  15. package/dist/shadcn/components/alert-dialog.d.ts +18 -0
  16. package/dist/shadcn/components/alert-dialog.js +44 -0
  17. package/dist/shadcn/components/alert.d.ts +10 -0
  18. package/dist/shadcn/components/alert.js +29 -0
  19. package/dist/shadcn/components/aspect-ratio.d.ts +4 -0
  20. package/dist/shadcn/components/aspect-ratio.js +9 -0
  21. package/dist/shadcn/components/attachment.d.ts +23 -0
  22. package/dist/shadcn/components/attachment.js +70 -0
  23. package/dist/shadcn/components/avatar.d.ts +11 -0
  24. package/dist/shadcn/components/avatar.js +25 -0
  25. package/dist/shadcn/components/badge.d.ts +7 -0
  26. package/dist/shadcn/components/badge.js +34 -0
  27. package/dist/shadcn/components/breadcrumb.d.ts +10 -0
  28. package/dist/shadcn/components/breadcrumb.js +38 -0
  29. package/dist/shadcn/components/bubble.d.ts +16 -0
  30. package/dist/shadcn/components/bubble.js +61 -0
  31. package/dist/shadcn/components/button-group.d.ts +10 -0
  32. package/dist/shadcn/components/button-group.js +37 -0
  33. package/dist/shadcn/components/button.d.ts +8 -0
  34. package/dist/shadcn/components/button.js +35 -0
  35. package/dist/shadcn/components/calendar.d.ts +10 -0
  36. package/dist/shadcn/components/calendar.js +77 -0
  37. package/dist/shadcn/components/card.d.ts +11 -0
  38. package/dist/shadcn/components/card.js +26 -0
  39. package/dist/shadcn/components/carousel.d.ts +28 -0
  40. package/dist/shadcn/components/carousel.js +92 -0
  41. package/dist/shadcn/components/chart.d.ts +44 -0
  42. package/dist/shadcn/components/chart.js +133 -0
  43. package/dist/shadcn/components/checkbox.d.ts +3 -0
  44. package/dist/shadcn/components/checkbox.js +10 -0
  45. package/dist/shadcn/components/collapsible.d.ts +5 -0
  46. package/dist/shadcn/components/collapsible.js +14 -0
  47. package/dist/shadcn/components/combobox.d.ts +24 -0
  48. package/dist/shadcn/components/combobox.js +59 -0
  49. package/dist/shadcn/components/command.d.ts +19 -0
  50. package/dist/shadcn/components/command.js +37 -0
  51. package/dist/shadcn/components/context-menu.d.ts +29 -0
  52. package/dist/shadcn/components/context-menu.js +53 -0
  53. package/dist/shadcn/components/dialog.d.ts +17 -0
  54. package/dist/shadcn/components/dialog.js +39 -0
  55. package/dist/shadcn/components/direction.d.ts +1 -0
  56. package/dist/shadcn/components/direction.js +3 -0
  57. package/dist/shadcn/components/drawer.d.ts +16 -0
  58. package/dist/shadcn/components/drawer.js +76 -0
  59. package/dist/shadcn/components/dropdown-menu.d.ts +29 -0
  60. package/dist/shadcn/components/dropdown-menu.js +53 -0
  61. package/dist/shadcn/components/empty.d.ts +11 -0
  62. package/dist/shadcn/components/empty.js +34 -0
  63. package/dist/shadcn/components/field.d.ts +24 -0
  64. package/dist/shadcn/components/field.js +69 -0
  65. package/dist/shadcn/components/hover-card.d.ts +5 -0
  66. package/dist/shadcn/components/hover-card.js +15 -0
  67. package/dist/shadcn/components/input-group.d.ts +18 -0
  68. package/dist/shadcn/components/input-group.js +59 -0
  69. package/dist/shadcn/components/input-otp.d.ts +11 -0
  70. package/dist/shadcn/components/input-otp.js +22 -0
  71. package/dist/shadcn/components/input.d.ts +3 -0
  72. package/dist/shadcn/components/input.js +9 -0
  73. package/dist/shadcn/components/item.d.ts +22 -0
  74. package/dist/shadcn/components/item.js +80 -0
  75. package/dist/shadcn/components/kbd.d.ts +3 -0
  76. package/dist/shadcn/components/kbd.js +10 -0
  77. package/dist/shadcn/components/label.d.ts +3 -0
  78. package/dist/shadcn/components/label.js +9 -0
  79. package/dist/shadcn/components/marker.d.ts +10 -0
  80. package/dist/shadcn/components/marker.js +36 -0
  81. package/dist/shadcn/components/menubar.d.ts +29 -0
  82. package/dist/shadcn/components/menubar.js +58 -0
  83. package/dist/shadcn/components/message-scroller.d.ts +10 -0
  84. package/dist/shadcn/components/message-scroller.js +27 -0
  85. package/dist/shadcn/components/message.d.ts +10 -0
  86. package/dist/shadcn/components/message.js +23 -0
  87. package/dist/shadcn/components/native-select.d.ts +8 -0
  88. package/dist/shadcn/components/native-select.js +15 -0
  89. package/dist/shadcn/components/navigation-menu.d.ts +11 -0
  90. package/dist/shadcn/components/navigation-menu.js +32 -0
  91. package/dist/shadcn/components/pagination.d.ts +17 -0
  92. package/dist/shadcn/components/pagination.js +28 -0
  93. package/dist/shadcn/components/popover.d.ts +9 -0
  94. package/dist/shadcn/components/popover.js +25 -0
  95. package/dist/shadcn/components/progress.d.ts +7 -0
  96. package/dist/shadcn/components/progress.js +21 -0
  97. package/dist/shadcn/components/questionnaire.d.ts +19 -0
  98. package/dist/shadcn/components/questionnaire.js +54 -0
  99. package/dist/shadcn/components/radio-group.d.ts +5 -0
  100. package/dist/shadcn/components/radio-group.js +13 -0
  101. package/dist/shadcn/components/resizable.d.ts +7 -0
  102. package/dist/shadcn/components/resizable.js +15 -0
  103. package/dist/shadcn/components/scroll-area.d.ts +4 -0
  104. package/dist/shadcn/components/scroll-area.js +12 -0
  105. package/dist/shadcn/components/select.d.ts +15 -0
  106. package/dist/shadcn/components/select.js +36 -0
  107. package/dist/shadcn/components/separator.d.ts +3 -0
  108. package/dist/shadcn/components/separator.js +9 -0
  109. package/dist/shadcn/components/sheet.d.ts +14 -0
  110. package/dist/shadcn/components/sheet.js +39 -0
  111. package/dist/shadcn/components/sidebar.d.ts +63 -0
  112. package/dist/shadcn/components/sidebar.js +257 -0
  113. package/dist/shadcn/components/skeleton.d.ts +2 -0
  114. package/dist/shadcn/components/skeleton.js +7 -0
  115. package/dist/shadcn/components/slider.d.ts +3 -0
  116. package/dist/shadcn/components/slider.js +13 -0
  117. package/dist/shadcn/components/sonner.d.ts +3 -0
  118. package/dist/shadcn/components/sonner.js +26 -0
  119. package/dist/shadcn/components/spinner.d.ts +2 -0
  120. package/dist/shadcn/components/spinner.js +8 -0
  121. package/dist/shadcn/components/switch.d.ts +5 -0
  122. package/dist/shadcn/components/switch.js +9 -0
  123. package/dist/shadcn/components/table.d.ts +10 -0
  124. package/dist/shadcn/components/table.js +30 -0
  125. package/dist/shadcn/components/tabs.d.ts +10 -0
  126. package/dist/shadcn/components/tabs.js +30 -0
  127. package/dist/shadcn/components/textarea.d.ts +3 -0
  128. package/dist/shadcn/components/textarea.js +8 -0
  129. package/dist/shadcn/components/toast.d.ts +15 -0
  130. package/dist/shadcn/components/toast.js +68 -0
  131. package/dist/shadcn/components/toggle-group.d.ts +10 -0
  132. package/dist/shadcn/components/toggle-group.js +26 -0
  133. package/dist/shadcn/components/toggle.d.ts +8 -0
  134. package/dist/shadcn/components/toggle.js +27 -0
  135. package/dist/shadcn/components/tooltip.d.ts +6 -0
  136. package/dist/shadcn/components/tooltip.js +18 -0
  137. package/dist/shadcn/hooks/use-mobile.d.ts +1 -0
  138. package/dist/shadcn/hooks/use-mobile.js +16 -0
  139. package/dist/size-report.json +80 -0
  140. package/dist/styles/app-loading.css +40 -0
  141. package/dist/styles/bases/base-mauve.css +71 -0
  142. package/dist/styles/bases/base-mist.css +71 -0
  143. package/dist/styles/bases/base-neutral.css +71 -0
  144. package/dist/styles/bases/base-olive.css +71 -0
  145. package/dist/styles/bases/base-stone.css +71 -0
  146. package/dist/styles/bases/base-taupe.css +71 -0
  147. package/dist/styles/bases/base-zinc.css +71 -0
  148. package/dist/styles/chart.css +18 -0
  149. package/dist/styles/charts/chart-amber.css +18 -0
  150. package/dist/styles/charts/chart-blue.css +18 -0
  151. package/dist/styles/charts/chart-rose.css +18 -0
  152. package/dist/styles/charts/chart-teal.css +18 -0
  153. package/dist/styles/compiled/luma.css +2 -0
  154. package/dist/styles/compiled/lyra.css +2 -0
  155. package/dist/styles/compiled/maia.css +2 -0
  156. package/dist/styles/compiled/mira.css +2 -0
  157. package/dist/styles/compiled/nova.css +2 -0
  158. package/dist/styles/compiled/rhea.css +2 -0
  159. package/dist/styles/compiled/sera.css +2 -0
  160. package/dist/styles/compiled/vega.css +2 -0
  161. package/dist/styles/index.css +52 -0
  162. package/dist/styles/official/bases/base-mauve.css +67 -0
  163. package/dist/styles/official/bases/base-mist.css +67 -0
  164. package/dist/styles/official/bases/base-neutral.css +67 -0
  165. package/dist/styles/official/bases/base-olive.css +67 -0
  166. package/dist/styles/official/bases/base-stone.css +67 -0
  167. package/dist/styles/official/bases/base-taupe.css +67 -0
  168. package/dist/styles/official/bases/base-zinc.css +67 -0
  169. package/dist/styles/official/charts/chart-amber.css +14 -0
  170. package/dist/styles/official/charts/chart-blue.css +14 -0
  171. package/dist/styles/official/charts/chart-cyan.css +14 -0
  172. package/dist/styles/official/charts/chart-emerald.css +14 -0
  173. package/dist/styles/official/charts/chart-fuchsia.css +14 -0
  174. package/dist/styles/official/charts/chart-green.css +14 -0
  175. package/dist/styles/official/charts/chart-indigo.css +14 -0
  176. package/dist/styles/official/charts/chart-lime.css +14 -0
  177. package/dist/styles/official/charts/chart-mauve.css +14 -0
  178. package/dist/styles/official/charts/chart-mist.css +14 -0
  179. package/dist/styles/official/charts/chart-neutral.css +14 -0
  180. package/dist/styles/official/charts/chart-olive.css +14 -0
  181. package/dist/styles/official/charts/chart-orange.css +14 -0
  182. package/dist/styles/official/charts/chart-pink.css +14 -0
  183. package/dist/styles/official/charts/chart-purple.css +14 -0
  184. package/dist/styles/official/charts/chart-red.css +14 -0
  185. package/dist/styles/official/charts/chart-rose.css +14 -0
  186. package/dist/styles/official/charts/chart-sky.css +14 -0
  187. package/dist/styles/official/charts/chart-stone.css +14 -0
  188. package/dist/styles/official/charts/chart-taupe.css +14 -0
  189. package/dist/styles/official/charts/chart-teal.css +14 -0
  190. package/dist/styles/official/charts/chart-violet.css +14 -0
  191. package/dist/styles/official/charts/chart-yellow.css +14 -0
  192. package/dist/styles/official/charts/chart-zinc.css +14 -0
  193. package/dist/styles/official/themes/theme-amber.css +26 -0
  194. package/dist/styles/official/themes/theme-blue.css +26 -0
  195. package/dist/styles/official/themes/theme-cyan.css +26 -0
  196. package/dist/styles/official/themes/theme-emerald.css +26 -0
  197. package/dist/styles/official/themes/theme-fuchsia.css +26 -0
  198. package/dist/styles/official/themes/theme-green.css +26 -0
  199. package/dist/styles/official/themes/theme-indigo.css +26 -0
  200. package/dist/styles/official/themes/theme-lime.css +26 -0
  201. package/dist/styles/official/themes/theme-mauve.css +67 -0
  202. package/dist/styles/official/themes/theme-mist.css +67 -0
  203. package/dist/styles/official/themes/theme-neutral.css +67 -0
  204. package/dist/styles/official/themes/theme-olive.css +67 -0
  205. package/dist/styles/official/themes/theme-orange.css +26 -0
  206. package/dist/styles/official/themes/theme-pink.css +26 -0
  207. package/dist/styles/official/themes/theme-purple.css +26 -0
  208. package/dist/styles/official/themes/theme-red.css +26 -0
  209. package/dist/styles/official/themes/theme-rose.css +27 -0
  210. package/dist/styles/official/themes/theme-sky.css +26 -0
  211. package/dist/styles/official/themes/theme-stone.css +67 -0
  212. package/dist/styles/official/themes/theme-taupe.css +67 -0
  213. package/dist/styles/official/themes/theme-teal.css +26 -0
  214. package/dist/styles/official/themes/theme-violet.css +26 -0
  215. package/dist/styles/official/themes/theme-yellow.css +26 -0
  216. package/dist/styles/official/themes/theme-zinc.css +67 -0
  217. package/dist/styles/runtime.css +6 -0
  218. package/dist/styles/shadcn-utilities.css +629 -0
  219. package/dist/styles/shadcn.css +169 -0
  220. package/dist/styles/source.css +1 -0
  221. package/dist/styles/styles/all.css +8 -0
  222. package/dist/styles/styles/style-luma.css +1744 -0
  223. package/dist/styles/styles/style-lyra.css +1723 -0
  224. package/dist/styles/styles/style-maia.css +1745 -0
  225. package/dist/styles/styles/style-mira.css +1750 -0
  226. package/dist/styles/styles/style-nova.css +1748 -0
  227. package/dist/styles/styles/style-rhea.css +1744 -0
  228. package/dist/styles/styles/style-sera.css +1735 -0
  229. package/dist/styles/styles/style-vega.css +1748 -0
  230. package/dist/styles/theme-base.css +102 -0
  231. package/dist/styles/themes/theme-atmosphere-coffee.css +72 -0
  232. package/dist/styles/themes/theme-atmosphere-halloween.css +72 -0
  233. package/dist/styles/themes/theme-atmosphere-literary.css +72 -0
  234. package/dist/styles/themes/theme-atmosphere-sakura.css +72 -0
  235. package/dist/styles/themes/theme-blue.css +20 -0
  236. package/dist/styles/themes/theme-indigo.css +20 -0
  237. package/dist/styles/themes/theme-morandi-dust.css +72 -0
  238. package/dist/styles/themes/theme-morandi-fog.css +72 -0
  239. package/dist/styles/themes/theme-morandi-sage.css +72 -0
  240. package/dist/styles/themes/theme-rose.css +20 -0
  241. package/dist/styles.css +2 -0
  242. package/package.json +108 -0
  243. package/upstream/components.json +870 -0
  244. package/upstream/lock.json +101 -0
@@ -0,0 +1,629 @@
1
+ @theme inline {
2
+ @keyframes accordion-down {
3
+ from {
4
+ height: 0;
5
+ }
6
+ to {
7
+ height: var(
8
+ --radix-accordion-content-height,
9
+ var(--accordion-panel-height, auto)
10
+ );
11
+ }
12
+ }
13
+
14
+ @keyframes accordion-up {
15
+ from {
16
+ height: var(
17
+ --radix-accordion-content-height,
18
+ var(--accordion-panel-height, auto)
19
+ );
20
+ }
21
+ to {
22
+ height: 0;
23
+ }
24
+ }
25
+ }
26
+
27
+ /* Custom variants */
28
+ @custom-variant data-open {
29
+ &:where([data-state="open"]),
30
+ &:where([data-open]:not([data-open="false"])) {
31
+ @slot;
32
+ }
33
+ }
34
+
35
+ @custom-variant data-closed {
36
+ &:where([data-state="closed"]),
37
+ &:where([data-closed]:not([data-closed="false"])) {
38
+ @slot;
39
+ }
40
+ }
41
+
42
+ @custom-variant data-checked {
43
+ &:where([data-state="checked"]),
44
+ &:where([data-checked]:not([data-checked="false"])) {
45
+ @slot;
46
+ }
47
+ }
48
+
49
+ @custom-variant data-unchecked {
50
+ &:where([data-state="unchecked"]),
51
+ &:where([data-unchecked]:not([data-unchecked="false"])) {
52
+ @slot;
53
+ }
54
+ }
55
+
56
+ @custom-variant data-selected {
57
+ &:where([data-selected="true"]) {
58
+ @slot;
59
+ }
60
+ }
61
+
62
+ @custom-variant data-disabled {
63
+ &:where([data-disabled="true"]),
64
+ &:where([data-disabled]:not([data-disabled="false"])) {
65
+ @slot;
66
+ }
67
+ }
68
+
69
+ @custom-variant data-active {
70
+ &:where([data-state="active"]),
71
+ &:where([data-active]:not([data-active="false"])) {
72
+ @slot;
73
+ }
74
+ }
75
+
76
+ @custom-variant data-horizontal {
77
+ &:where([data-orientation="horizontal"]) {
78
+ @slot;
79
+ }
80
+ }
81
+
82
+ @custom-variant data-vertical {
83
+ &:where([data-orientation="vertical"]) {
84
+ @slot;
85
+ }
86
+ }
87
+
88
+ @utility no-scrollbar {
89
+ -ms-overflow-style: none;
90
+ scrollbar-width: none;
91
+
92
+ &::-webkit-scrollbar {
93
+ display: none;
94
+ }
95
+ }
96
+
97
+ /* scroll-fade */
98
+ @property --scroll-fade-t {
99
+ syntax: "<length-percentage>";
100
+ inherits: false;
101
+ initial-value: 0px;
102
+ }
103
+ @property --scroll-fade-b {
104
+ syntax: "<length-percentage>";
105
+ inherits: false;
106
+ initial-value: 0px;
107
+ }
108
+ @property --scroll-fade-s {
109
+ syntax: "<length-percentage>";
110
+ inherits: false;
111
+ initial-value: 0px;
112
+ }
113
+ @property --scroll-fade-e {
114
+ syntax: "<length-percentage>";
115
+ inherits: false;
116
+ initial-value: 0px;
117
+ }
118
+ @property --scroll-fade-mask {
119
+ syntax: "*";
120
+ inherits: false;
121
+ }
122
+
123
+ @theme inline {
124
+ @keyframes scroll-fade-reveal-t {
125
+ from {
126
+ --scroll-fade-t: 0px;
127
+ }
128
+ to {
129
+ --scroll-fade-t: var(--_scroll-fade-size-t, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
130
+ }
131
+ }
132
+ @keyframes scroll-fade-reveal-b {
133
+ from {
134
+ --scroll-fade-b: var(--_scroll-fade-size-b, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
135
+ }
136
+ to {
137
+ --scroll-fade-b: 0px;
138
+ }
139
+ }
140
+ @keyframes scroll-fade-reveal-s {
141
+ from {
142
+ --scroll-fade-s: 0px;
143
+ }
144
+ to {
145
+ --scroll-fade-s: var(--_scroll-fade-size-s, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
146
+ }
147
+ }
148
+ @keyframes scroll-fade-reveal-e {
149
+ from {
150
+ --scroll-fade-e: var(--_scroll-fade-size-e, var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10))));
151
+ }
152
+ to {
153
+ --scroll-fade-e: 0px;
154
+ }
155
+ }
156
+ }
157
+
158
+ @utility scroll-fade {
159
+ --_scroll-fade-size-t: var(
160
+ --scroll-fade-t-size,
161
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
162
+ );
163
+ --_scroll-fade-size-b: var(
164
+ --scroll-fade-b-size,
165
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
166
+ );
167
+ --scroll-fade-block: linear-gradient(
168
+ to bottom,
169
+ transparent 0,
170
+ #000 var(--scroll-fade-t, 0px),
171
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
172
+ transparent 100%
173
+ );
174
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
175
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
176
+ -webkit-mask-composite: source-in;
177
+ mask-composite: intersect;
178
+ -webkit-mask-repeat: no-repeat;
179
+ mask-repeat: no-repeat;
180
+
181
+ @supports (animation-timeline: scroll()) {
182
+ animation:
183
+ scroll-fade-reveal-t 1ms ease-in-out,
184
+ scroll-fade-reveal-b 1ms ease-in-out;
185
+ animation-timeline: scroll(self y), scroll(self y);
186
+ animation-range:
187
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
188
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
189
+ animation-fill-mode: both;
190
+ }
191
+
192
+ @supports not (animation-timeline: scroll()) {
193
+ --scroll-fade-t: var(--_scroll-fade-size-t);
194
+ --scroll-fade-b: var(--_scroll-fade-size-b);
195
+ }
196
+ }
197
+
198
+ @utility scroll-fade-y {
199
+ --_scroll-fade-size-t: var(
200
+ --scroll-fade-t-size,
201
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
202
+ );
203
+ --_scroll-fade-size-b: var(
204
+ --scroll-fade-b-size,
205
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
206
+ );
207
+ --scroll-fade-block: linear-gradient(
208
+ to bottom,
209
+ transparent 0,
210
+ #000 var(--scroll-fade-t, 0px),
211
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
212
+ transparent 100%
213
+ );
214
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
215
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
216
+ -webkit-mask-composite: source-in;
217
+ mask-composite: intersect;
218
+ -webkit-mask-repeat: no-repeat;
219
+ mask-repeat: no-repeat;
220
+
221
+ @supports (animation-timeline: scroll()) {
222
+ animation:
223
+ scroll-fade-reveal-t 1ms ease-in-out,
224
+ scroll-fade-reveal-b 1ms ease-in-out;
225
+ animation-timeline: scroll(self y), scroll(self y);
226
+ animation-range:
227
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
228
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
229
+ animation-fill-mode: both;
230
+ }
231
+
232
+ @supports not (animation-timeline: scroll()) {
233
+ --scroll-fade-t: var(--_scroll-fade-size-t);
234
+ --scroll-fade-b: var(--_scroll-fade-size-b);
235
+ }
236
+ }
237
+
238
+ @utility scroll-fade-x {
239
+ --_scroll-fade-size-s: var(
240
+ --scroll-fade-s-size,
241
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
242
+ );
243
+ --_scroll-fade-size-e: var(
244
+ --scroll-fade-e-size,
245
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
246
+ );
247
+ --scroll-fade-inline: linear-gradient(
248
+ to right,
249
+ transparent 0,
250
+ #000 var(--scroll-fade-s, 0px),
251
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
252
+ transparent 100%
253
+ );
254
+ &:where([dir="rtl"], [dir="rtl"] *) {
255
+ --scroll-fade-inline: linear-gradient(
256
+ to left,
257
+ transparent 0,
258
+ #000 var(--scroll-fade-s, 0px),
259
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
260
+ transparent 100%
261
+ );
262
+ }
263
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
264
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
265
+ -webkit-mask-composite: source-in;
266
+ mask-composite: intersect;
267
+ -webkit-mask-repeat: no-repeat;
268
+ mask-repeat: no-repeat;
269
+
270
+ @supports (animation-timeline: scroll()) {
271
+ animation:
272
+ scroll-fade-reveal-s 1ms ease-in-out,
273
+ scroll-fade-reveal-e 1ms ease-in-out;
274
+ animation-timeline: scroll(self inline), scroll(self inline);
275
+ animation-range:
276
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
277
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
278
+ animation-fill-mode: both;
279
+ }
280
+
281
+ @supports not (animation-timeline: scroll()) {
282
+ --scroll-fade-s: var(--_scroll-fade-size-s);
283
+ --scroll-fade-e: var(--_scroll-fade-size-e);
284
+ }
285
+ }
286
+
287
+ @utility scroll-fade-t {
288
+ --_scroll-fade-size-t: var(
289
+ --scroll-fade-t-size,
290
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
291
+ );
292
+ --scroll-fade-mask: linear-gradient(
293
+ to bottom,
294
+ transparent 0,
295
+ #000 var(--scroll-fade-t, 0px),
296
+ #000 100%
297
+ );
298
+ -webkit-mask-image: var(--scroll-fade-mask);
299
+ mask-image: var(--scroll-fade-mask);
300
+ -webkit-mask-composite: source-in;
301
+ mask-composite: intersect;
302
+ -webkit-mask-repeat: no-repeat;
303
+ mask-repeat: no-repeat;
304
+
305
+ @supports (animation-timeline: scroll()) {
306
+ animation: scroll-fade-reveal-t 1ms ease-in-out;
307
+ animation-timeline: scroll(self y);
308
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
309
+ animation-fill-mode: both;
310
+ }
311
+
312
+ @supports not (animation-timeline: scroll()) {
313
+ --scroll-fade-t: var(--_scroll-fade-size-t);
314
+ }
315
+ }
316
+
317
+ @utility scroll-fade-b {
318
+ --_scroll-fade-size-b: var(
319
+ --scroll-fade-b-size,
320
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
321
+ );
322
+ --scroll-fade-mask: linear-gradient(
323
+ to bottom,
324
+ #000 0,
325
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
326
+ transparent 100%
327
+ );
328
+ -webkit-mask-image: var(--scroll-fade-mask);
329
+ mask-image: var(--scroll-fade-mask);
330
+ -webkit-mask-composite: source-in;
331
+ mask-composite: intersect;
332
+ -webkit-mask-repeat: no-repeat;
333
+ mask-repeat: no-repeat;
334
+
335
+ @supports (animation-timeline: scroll()) {
336
+ animation: scroll-fade-reveal-b 1ms ease-in-out;
337
+ animation-timeline: scroll(self y);
338
+ animation-range: calc(
339
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
340
+ )
341
+ 100%;
342
+ animation-fill-mode: both;
343
+ }
344
+
345
+ @supports not (animation-timeline: scroll()) {
346
+ --scroll-fade-b: var(--_scroll-fade-size-b);
347
+ }
348
+ }
349
+
350
+ @utility scroll-fade-l {
351
+ --_scroll-fade-size-s: var(
352
+ --scroll-fade-s-size,
353
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
354
+ );
355
+ --scroll-fade-mask: linear-gradient(
356
+ to right,
357
+ transparent 0,
358
+ #000 var(--scroll-fade-s, 0px),
359
+ #000 100%
360
+ );
361
+ -webkit-mask-image: var(--scroll-fade-mask);
362
+ mask-image: var(--scroll-fade-mask);
363
+ -webkit-mask-composite: source-in;
364
+ mask-composite: intersect;
365
+ -webkit-mask-repeat: no-repeat;
366
+ mask-repeat: no-repeat;
367
+
368
+ @supports (animation-timeline: scroll()) {
369
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
370
+ animation-timeline: scroll(self x);
371
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
372
+ animation-fill-mode: both;
373
+ }
374
+
375
+ @supports not (animation-timeline: scroll()) {
376
+ --scroll-fade-s: var(--_scroll-fade-size-s);
377
+ }
378
+ }
379
+
380
+ @utility scroll-fade-r {
381
+ --_scroll-fade-size-e: var(
382
+ --scroll-fade-e-size,
383
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
384
+ );
385
+ --scroll-fade-mask: linear-gradient(
386
+ to right,
387
+ #000 0,
388
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
389
+ transparent 100%
390
+ );
391
+ -webkit-mask-image: var(--scroll-fade-mask);
392
+ mask-image: var(--scroll-fade-mask);
393
+ -webkit-mask-composite: source-in;
394
+ mask-composite: intersect;
395
+ -webkit-mask-repeat: no-repeat;
396
+ mask-repeat: no-repeat;
397
+
398
+ @supports (animation-timeline: scroll()) {
399
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
400
+ animation-timeline: scroll(self x);
401
+ animation-range: calc(
402
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
403
+ )
404
+ 100%;
405
+ animation-fill-mode: both;
406
+ }
407
+
408
+ @supports not (animation-timeline: scroll()) {
409
+ --scroll-fade-e: var(--_scroll-fade-size-e);
410
+ }
411
+ }
412
+
413
+ @utility scroll-fade-s {
414
+ --_scroll-fade-size-s: var(
415
+ --scroll-fade-s-size,
416
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
417
+ );
418
+ --scroll-fade-mask: linear-gradient(
419
+ to right,
420
+ transparent 0,
421
+ #000 var(--scroll-fade-s, 0px),
422
+ #000 100%
423
+ );
424
+ &:where([dir="rtl"], [dir="rtl"] *) {
425
+ --scroll-fade-mask: linear-gradient(
426
+ to left,
427
+ transparent 0,
428
+ #000 var(--scroll-fade-s, 0px),
429
+ #000 100%
430
+ );
431
+ }
432
+ -webkit-mask-image: var(--scroll-fade-mask);
433
+ mask-image: var(--scroll-fade-mask);
434
+ -webkit-mask-composite: source-in;
435
+ mask-composite: intersect;
436
+ -webkit-mask-repeat: no-repeat;
437
+ mask-repeat: no-repeat;
438
+
439
+ @supports (animation-timeline: scroll()) {
440
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
441
+ animation-timeline: scroll(self inline);
442
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
443
+ animation-fill-mode: both;
444
+ }
445
+
446
+ @supports not (animation-timeline: scroll()) {
447
+ --scroll-fade-s: var(--_scroll-fade-size-s);
448
+ }
449
+ }
450
+
451
+ @utility scroll-fade-e {
452
+ --_scroll-fade-size-e: var(
453
+ --scroll-fade-e-size,
454
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
455
+ );
456
+ --scroll-fade-mask: linear-gradient(
457
+ to right,
458
+ #000 0,
459
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
460
+ transparent 100%
461
+ );
462
+ &:where([dir="rtl"], [dir="rtl"] *) {
463
+ --scroll-fade-mask: linear-gradient(
464
+ to left,
465
+ #000 0,
466
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
467
+ transparent 100%
468
+ );
469
+ }
470
+ -webkit-mask-image: var(--scroll-fade-mask);
471
+ mask-image: var(--scroll-fade-mask);
472
+ -webkit-mask-composite: source-in;
473
+ mask-composite: intersect;
474
+ -webkit-mask-repeat: no-repeat;
475
+ mask-repeat: no-repeat;
476
+
477
+ @supports (animation-timeline: scroll()) {
478
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
479
+ animation-timeline: scroll(self inline);
480
+ animation-range: calc(
481
+ 100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))
482
+ )
483
+ 100%;
484
+ animation-fill-mode: both;
485
+ }
486
+
487
+ @supports not (animation-timeline: scroll()) {
488
+ --scroll-fade-e: var(--_scroll-fade-size-e);
489
+ }
490
+ }
491
+
492
+ @utility scroll-fade-* {
493
+ --scroll-fade-size: calc(var(--spacing) * --value(integer));
494
+ --scroll-fade-size: --value([length], [percentage]);
495
+ }
496
+
497
+ @utility scroll-fade-t-* {
498
+ --scroll-fade-t-size: calc(var(--spacing) * --value(integer));
499
+ --scroll-fade-t-size: --value([length], [percentage]);
500
+ }
501
+
502
+ @utility scroll-fade-b-* {
503
+ --scroll-fade-b-size: calc(var(--spacing) * --value(integer));
504
+ --scroll-fade-b-size: --value([length], [percentage]);
505
+ }
506
+
507
+ @utility scroll-fade-s-* {
508
+ --scroll-fade-s-size: calc(var(--spacing) * --value(integer));
509
+ --scroll-fade-s-size: --value([length], [percentage]);
510
+ }
511
+
512
+ @utility scroll-fade-e-* {
513
+ --scroll-fade-e-size: calc(var(--spacing) * --value(integer));
514
+ --scroll-fade-e-size: --value([length], [percentage]);
515
+ }
516
+
517
+ @utility scroll-fade-none {
518
+ --scroll-fade-mask: none;
519
+ }
520
+
521
+ /* shimmer */
522
+ @property --shimmer-angle {
523
+ syntax: "<angle>";
524
+ inherits: true;
525
+ initial-value: 20deg;
526
+ }
527
+ @property --shimmer-image {
528
+ syntax: "*";
529
+ inherits: false;
530
+ }
531
+ @property --shimmer-text-fill {
532
+ syntax: "*";
533
+ inherits: false;
534
+ }
535
+
536
+ @theme inline {
537
+ @keyframes tw-shimmer {
538
+ from {
539
+ background-position: 100% 0;
540
+ }
541
+ to {
542
+ background-position: 0 0;
543
+ }
544
+ }
545
+ }
546
+
547
+ @utility shimmer {
548
+ --_spread: var(--shimmer-spread, calc(3ch + 40px));
549
+ --_base: currentColor;
550
+ --_highlight: var(
551
+ --shimmer-color,
552
+ oklch(from currentColor l c h / calc(alpha* 0.2))
553
+ );
554
+
555
+ background-image: var(
556
+ --shimmer-image,
557
+ linear-gradient(
558
+ calc(90deg + var(--shimmer-angle)),
559
+ var(--_base) calc(50% - var(--_spread)),
560
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%)
561
+ calc(50% - var(--_spread) * 0.5),
562
+ var(--_highlight) 50%,
563
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%)
564
+ calc(50% + var(--_spread) * 0.5),
565
+ var(--_base) calc(50% + var(--_spread))
566
+ )
567
+ );
568
+ background-repeat: no-repeat;
569
+ background-size: calc(200% + var(--_spread) * 2) 100%;
570
+ background-position: 0 0;
571
+ background-clip: text;
572
+ -webkit-background-clip: text;
573
+ -webkit-text-fill-color: var(--shimmer-text-fill, transparent);
574
+ animation: tw-shimmer var(--shimmer-duration, 2s) linear infinite;
575
+
576
+ @variant dark {
577
+ --_highlight: var(
578
+ --shimmer-color,
579
+ oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4))
580
+ );
581
+ }
582
+
583
+ &:where([dir="rtl"], [dir="rtl"] *) {
584
+ animation-direction: reverse;
585
+ }
586
+ }
587
+
588
+ @utility shimmer-once {
589
+ animation-iteration-count: 1;
590
+ }
591
+
592
+ @utility shimmer-reverse {
593
+ animation-direction: reverse;
594
+ }
595
+
596
+ @utility shimmer-none {
597
+ --shimmer-image: none;
598
+ --shimmer-text-fill: currentColor;
599
+ }
600
+
601
+ @utility shimmer-color-* {
602
+ --shimmer-color: --value(--color, [color]);
603
+ --shimmer-color: color-mix(
604
+ in oklch,
605
+ --value(--color, [color]) calc(--modifier(integer) * 1%),
606
+ transparent
607
+ );
608
+ }
609
+
610
+ @utility shimmer-duration-* {
611
+ --shimmer-duration: calc(--value(integer) * 1ms);
612
+ }
613
+
614
+ @utility shimmer-spread-* {
615
+ --shimmer-spread: calc(var(--spacing) * --value(integer));
616
+ --shimmer-spread: --value([length], [percentage]);
617
+ }
618
+
619
+ @utility shimmer-angle-* {
620
+ --shimmer-angle: calc(--value(integer) * 1deg);
621
+ }
622
+
623
+ @media (prefers-reduced-motion: reduce) {
624
+ .shimmer {
625
+ animation: none;
626
+ background-image: none;
627
+ -webkit-text-fill-color: currentColor;
628
+ }
629
+ }