shadcn_phlexcomponents 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 (168) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +39 -0
  3. data/Rakefile +12 -0
  4. data/app/assets/tailwind/tailwindcss-animate.css +318 -0
  5. data/app/assets/tailwind/vanilla-calendar-pro.css +461 -0
  6. data/app/javascript/controllers/accordion_controller.js +133 -0
  7. data/app/javascript/controllers/alert_dialog_controller.js +157 -0
  8. data/app/javascript/controllers/avatar_controller.js +15 -0
  9. data/app/javascript/controllers/checkbox_controller.js +28 -0
  10. data/app/javascript/controllers/collapsible_controller.js +35 -0
  11. data/app/javascript/controllers/combobox_controller.js +291 -0
  12. data/app/javascript/controllers/datepicker_controller.js +47 -0
  13. data/app/javascript/controllers/dialog_controller.js +159 -0
  14. data/app/javascript/controllers/dropdown_menu_controller.js +193 -0
  15. data/app/javascript/controllers/hover_card_controller.js +135 -0
  16. data/app/javascript/controllers/loading_button_controller.js +15 -0
  17. data/app/javascript/controllers/popover_controller.js +124 -0
  18. data/app/javascript/controllers/progress_controller.js +14 -0
  19. data/app/javascript/controllers/radio_group_controller.js +90 -0
  20. data/app/javascript/controllers/select_controller.js +294 -0
  21. data/app/javascript/controllers/sheet_controller.js +159 -0
  22. data/app/javascript/controllers/sidebar_controller.js +36 -0
  23. data/app/javascript/controllers/sidebar_trigger_controller.js +15 -0
  24. data/app/javascript/controllers/switch_controller.js +24 -0
  25. data/app/javascript/controllers/tabs_controller.js +73 -0
  26. data/app/javascript/controllers/theme_switcher_controller.js +32 -0
  27. data/app/javascript/controllers/toast_container_controller.js +22 -0
  28. data/app/javascript/controllers/toast_controller.js +45 -0
  29. data/app/javascript/controllers/tooltip_controller.js +135 -0
  30. data/lib/components/accordion.rb +38 -0
  31. data/lib/components/accordion_content.rb +28 -0
  32. data/lib/components/accordion_item.rb +26 -0
  33. data/lib/components/accordion_trigger.rb +45 -0
  34. data/lib/components/alert.rb +40 -0
  35. data/lib/components/alert_description.rb +11 -0
  36. data/lib/components/alert_dialog.rb +60 -0
  37. data/lib/components/alert_dialog_action.rb +22 -0
  38. data/lib/components/alert_dialog_action_to.rb +37 -0
  39. data/lib/components/alert_dialog_cancel.rb +22 -0
  40. data/lib/components/alert_dialog_content.rb +40 -0
  41. data/lib/components/alert_dialog_description.rb +22 -0
  42. data/lib/components/alert_dialog_footer.rb +11 -0
  43. data/lib/components/alert_dialog_header.rb +11 -0
  44. data/lib/components/alert_dialog_title.rb +22 -0
  45. data/lib/components/alert_dialog_trigger.rb +50 -0
  46. data/lib/components/alert_title.rb +11 -0
  47. data/lib/components/aspect_ratio.rb +19 -0
  48. data/lib/components/avatar.rb +31 -0
  49. data/lib/components/avatar_fallback.rb +21 -0
  50. data/lib/components/avatar_image.rb +20 -0
  51. data/lib/components/badge.rb +36 -0
  52. data/lib/components/base.rb +108 -0
  53. data/lib/components/breadcrumb.rb +51 -0
  54. data/lib/components/breadcrumb_ellipsis.rb +23 -0
  55. data/lib/components/breadcrumb_item.rb +11 -0
  56. data/lib/components/breadcrumb_link.rb +7 -0
  57. data/lib/components/breadcrumb_page.rb +21 -0
  58. data/lib/components/breadcrumb_separator.rb +26 -0
  59. data/lib/components/button.rb +53 -0
  60. data/lib/components/card.rb +31 -0
  61. data/lib/components/card_content.rb +11 -0
  62. data/lib/components/card_description.rb +11 -0
  63. data/lib/components/card_footer.rb +11 -0
  64. data/lib/components/card_header.rb +11 -0
  65. data/lib/components/card_title.rb +11 -0
  66. data/lib/components/checkbox.rb +65 -0
  67. data/lib/components/checkbox_group.rb +48 -0
  68. data/lib/components/collapsible.rb +32 -0
  69. data/lib/components/collapsible_content.rb +25 -0
  70. data/lib/components/collapsible_trigger.rb +50 -0
  71. data/lib/components/datepicker.rb +38 -0
  72. data/lib/components/dialog.rb +52 -0
  73. data/lib/components/dialog_close.rb +42 -0
  74. data/lib/components/dialog_content.rb +54 -0
  75. data/lib/components/dialog_description.rb +22 -0
  76. data/lib/components/dialog_footer.rb +11 -0
  77. data/lib/components/dialog_header.rb +11 -0
  78. data/lib/components/dialog_title.rb +22 -0
  79. data/lib/components/dialog_trigger.rb +50 -0
  80. data/lib/components/dropdown_menu.rb +50 -0
  81. data/lib/components/dropdown_menu_content.rb +49 -0
  82. data/lib/components/dropdown_menu_item.rb +57 -0
  83. data/lib/components/dropdown_menu_item_to.rb +25 -0
  84. data/lib/components/dropdown_menu_label.rb +12 -0
  85. data/lib/components/dropdown_menu_separator.rb +20 -0
  86. data/lib/components/dropdown_menu_trigger.rb +58 -0
  87. data/lib/components/hover_card.rb +33 -0
  88. data/lib/components/hover_card_content.rb +36 -0
  89. data/lib/components/hover_card_trigger.rb +50 -0
  90. data/lib/components/input.rb +32 -0
  91. data/lib/components/label.rb +15 -0
  92. data/lib/components/link.rb +26 -0
  93. data/lib/components/loading_button.rb +21 -0
  94. data/lib/components/pagination.rb +38 -0
  95. data/lib/components/pagination_ellipsis.rb +24 -0
  96. data/lib/components/pagination_link.rb +34 -0
  97. data/lib/components/pagination_next.rb +32 -0
  98. data/lib/components/pagination_previous.rb +32 -0
  99. data/lib/components/popover.rb +35 -0
  100. data/lib/components/popover_content.rb +37 -0
  101. data/lib/components/popover_trigger.rb +52 -0
  102. data/lib/components/progress.rb +37 -0
  103. data/lib/components/radio_group.rb +62 -0
  104. data/lib/components/radio_group_item.rb +66 -0
  105. data/lib/components/select.rb +189 -0
  106. data/lib/components/select_content.rb +59 -0
  107. data/lib/components/select_group.rb +23 -0
  108. data/lib/components/select_item.rb +58 -0
  109. data/lib/components/select_label.rb +23 -0
  110. data/lib/components/select_trigger.rb +54 -0
  111. data/lib/components/separator.rb +29 -0
  112. data/lib/components/sheet.rb +53 -0
  113. data/lib/components/sheet_close.rb +42 -0
  114. data/lib/components/sheet_content.rb +67 -0
  115. data/lib/components/sheet_description.rb +22 -0
  116. data/lib/components/sheet_footer.rb +11 -0
  117. data/lib/components/sheet_header.rb +11 -0
  118. data/lib/components/sheet_title.rb +22 -0
  119. data/lib/components/sheet_trigger.rb +50 -0
  120. data/lib/components/sidebar.rb +103 -0
  121. data/lib/components/sidebar_container.rb +11 -0
  122. data/lib/components/sidebar_content.rb +11 -0
  123. data/lib/components/sidebar_footer.rb +11 -0
  124. data/lib/components/sidebar_group.rb +11 -0
  125. data/lib/components/sidebar_group_content.rb +11 -0
  126. data/lib/components/sidebar_group_label.rb +16 -0
  127. data/lib/components/sidebar_header.rb +11 -0
  128. data/lib/components/sidebar_inset.rb +15 -0
  129. data/lib/components/sidebar_menu.rb +11 -0
  130. data/lib/components/sidebar_menu_button.rb +61 -0
  131. data/lib/components/sidebar_menu_item.rb +9 -0
  132. data/lib/components/sidebar_menu_sub.rb +14 -0
  133. data/lib/components/sidebar_menu_sub_button.rb +48 -0
  134. data/lib/components/sidebar_menu_sub_item.rb +9 -0
  135. data/lib/components/sidebar_trigger.rb +40 -0
  136. data/lib/components/skeleton.rb +11 -0
  137. data/lib/components/switch.rb +65 -0
  138. data/lib/components/table.rb +73 -0
  139. data/lib/components/table_body.rb +11 -0
  140. data/lib/components/table_caption.rb +11 -0
  141. data/lib/components/table_cell.rb +11 -0
  142. data/lib/components/table_footer.rb +11 -0
  143. data/lib/components/table_head.rb +14 -0
  144. data/lib/components/table_header.rb +11 -0
  145. data/lib/components/table_row.rb +11 -0
  146. data/lib/components/tabs.rb +38 -0
  147. data/lib/components/tabs_content.rb +35 -0
  148. data/lib/components/tabs_list.rb +23 -0
  149. data/lib/components/tabs_trigger.rb +45 -0
  150. data/lib/components/textarea.rb +28 -0
  151. data/lib/components/theme_switcher.rb +21 -0
  152. data/lib/components/toast.rb +100 -0
  153. data/lib/components/toast_action.rb +38 -0
  154. data/lib/components/toast_action_to.rb +25 -0
  155. data/lib/components/toast_container.rb +44 -0
  156. data/lib/components/toast_content.rb +11 -0
  157. data/lib/components/toast_description.rb +11 -0
  158. data/lib/components/toast_title.rb +11 -0
  159. data/lib/components/tooltip.rb +34 -0
  160. data/lib/components/tooltip_content.rb +42 -0
  161. data/lib/components/tooltip_trigger.rb +50 -0
  162. data/lib/install/install_shadcn_phlexcomponents.rb +12 -0
  163. data/lib/shadcn_phlexcomponents/alias.rb +132 -0
  164. data/lib/shadcn_phlexcomponents/engine.rb +11 -0
  165. data/lib/shadcn_phlexcomponents/version.rb +5 -0
  166. data/lib/shadcn_phlexcomponents.rb +9 -0
  167. data/lib/tasks/install.rake +10 -0
  168. metadata +264 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c58d65f96139c65cf3ae55605ec361a7eaa506df6c6bab8fdd67132fc47f50e3
4
+ data.tar.gz: a5d2e0e553ec1d540f8cb9447f4155a6046ddd59fe4603bbe47c68bd0fc00878
5
+ SHA512:
6
+ metadata.gz: 4d1331caf33e5bc9f84c4bd0568d3d7fcb23d59179f7ebc34b08c55a115963b43d6e330b0038de36ffea482b5128fcca48cf34b17eec9c1a1ed4563913e82478
7
+ data.tar.gz: e0d13bab547ef003d9716ba3525ed2a581c0039a596660b8731c362fe76508be22a542f436998e5e7da691a1551318cecfa68fac57e4218fe665ec00b802f154
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # ShadcnPhlexcomponents
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/shadcn_phlexcomponents`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/shadcn_phlexcomponents. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/shadcn_phlexcomponents/blob/main/CODE_OF_CONDUCT.md).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the ShadcnPhlexcomponents project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/shadcn_phlexcomponents/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "minitest/test_task"
5
+
6
+ Minitest::TestTask.create
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: [:test, :rubocop]
@@ -0,0 +1,318 @@
1
+ /* https://github.com/Wombosvideo/tailwindcss-animate-v4/blob/main/tailwindcss-animate.css */
2
+
3
+ /**
4
+ * TailwindCSS v4.0 compatible replacement for `tailwindcss-animate`.
5
+ *
6
+ * WARNING: The asterisks are not supported by some formatters and linters. You
7
+ * might want to exclude this file from formatters and linters for now.
8
+ *
9
+ * @author Luca Bosin <https://github.com/Wombosvideo>
10
+ * @license MIT
11
+ */
12
+
13
+ @theme inline {
14
+ --animation-delay-0: 0s;
15
+ --animation-delay-75: 75ms;
16
+ --animation-delay-100: 0.1s;
17
+ --animation-delay-150: 0.15s;
18
+ --animation-delay-200: 0.2s;
19
+ --animation-delay-300: 0.3s;
20
+ --animation-delay-500: 0.5s;
21
+ --animation-delay-700: 0.7s;
22
+ --animation-delay-1000: 1s;
23
+
24
+ --animation-repeat-0: 0;
25
+ --animation-repeat-1: 1;
26
+ --animation-repeat-infinite: infinite;
27
+
28
+ --animation-direction-normal: normal;
29
+ --animation-direction-reverse: reverse;
30
+ --animation-direction-alternate: alternate;
31
+ --animation-direction-alternate-reverse: alternate-reverse;
32
+
33
+ --animation-fill-mode-none: none;
34
+ --animation-fill-mode-forwards: forwards;
35
+ --animation-fill-mode-backwards: backwards;
36
+ --animation-fill-mode-both: both;
37
+
38
+ --animate-in: var(--tw-duration, 150ms) var(--tw-ease, ease) enter;
39
+ --animate-out: var(--tw-duration, 150ms) var(--tw-ease, ease) exit;
40
+
41
+ --animate-accordion-down: accordion-down 0.2s ease-out;
42
+ --animate-accordion-up: accordion-up 0.2s ease-out;
43
+
44
+ --percentage-0: 0;
45
+ --percentage-5: 0.05;
46
+ --percentage-10: 0.1;
47
+ --percentage-15: 0.15;
48
+ --percentage-20: 0.2;
49
+ --percentage-25: 0.25;
50
+ --percentage-30: 0.3;
51
+ --percentage-35: 0.35;
52
+ --percentage-40: 0.4;
53
+ --percentage-45: 0.45;
54
+ --percentage-50: 0.5;
55
+ --percentage-55: 0.55;
56
+ --percentage-60: 0.6;
57
+ --percentage-65: 0.65;
58
+ --percentage-70: 0.7;
59
+ --percentage-75: 0.75;
60
+ --percentage-80: 0.8;
61
+ --percentage-85: 0.85;
62
+ --percentage-90: 0.9;
63
+ --percentage-95: 0.95;
64
+ --percentage-100: 1;
65
+
66
+ --translate-1/2: 50%;
67
+ --translate-1/3: 33.333333%;
68
+ --translate-2/3: 66.666667%;
69
+ --translate-1/4: 25%;
70
+ --translate-2/4: 50%;
71
+ --translate-3/4: 75%;
72
+ --translate-full: 100%;
73
+ --translate-px: 1px;
74
+ --translate-0: 0px;
75
+ --translate-0.5: 0.125rem;
76
+ --translate-1: 0.25rem;
77
+ --translate-1.5: 0.375rem;
78
+ --translate-2: 0.5rem;
79
+ --translate-2.5: 0.625rem;
80
+ --translate-3: 0.75rem;
81
+ --translate-3.5: 0.875rem;
82
+ --translate-4: 1rem;
83
+ --translate-5: 1.25rem;
84
+ --translate-6: 1.5rem;
85
+ --translate-7: 1.75rem;
86
+ --translate-8: 2rem;
87
+ --translate-9: 2.25rem;
88
+ --translate-10: 2.5rem;
89
+ --translate-11: 2.75rem;
90
+ --translate-12: 3rem;
91
+ --translate-14: 3.5rem;
92
+ --translate-16: 4rem;
93
+ --translate-20: 5rem;
94
+ --translate-24: 6rem;
95
+ --translate-28: 7rem;
96
+ --translate-32: 8rem;
97
+ --translate-36: 9rem;
98
+ --translate-40: 10rem;
99
+ --translate-44: 11rem;
100
+ --translate-48: 12rem;
101
+ --translate-52: 13rem;
102
+ --translate-56: 14rem;
103
+ --translate-60: 15rem;
104
+ --translate-64: 16rem;
105
+ --translate-72: 18rem;
106
+ --translate-80: 20rem;
107
+ --translate-96: 24rem;
108
+
109
+ @keyframes enter {
110
+ from {
111
+ opacity: var(--tw-enter-opacity, 1);
112
+ transform: translate3d(
113
+ var(--tw-enter-translate-x, 0),
114
+ var(--tw-enter-translate-y, 0),
115
+ 0
116
+ )
117
+ scale3d(
118
+ var(--tw-enter-scale, 1),
119
+ var(--tw-enter-scale, 1),
120
+ var(--tw-enter-scale, 1)
121
+ )
122
+ rotate(var(--tw-enter-rotate, 0));
123
+ }
124
+ }
125
+
126
+ @keyframes exit {
127
+ to {
128
+ opacity: var(--tw-exit-opacity, 1);
129
+ transform: translate3d(
130
+ var(--tw-exit-translate-x, 0),
131
+ var(--tw-exit-translate-y, 0),
132
+ 0
133
+ )
134
+ scale3d(
135
+ var(--tw-exit-scale, 1),
136
+ var(--tw-exit-scale, 1),
137
+ var(--tw-exit-scale, 1)
138
+ )
139
+ rotate(var(--tw-exit-rotate, 0));
140
+ }
141
+ }
142
+
143
+ @keyframes accordion-down {
144
+ from {
145
+ height: 0;
146
+ }
147
+
148
+ to {
149
+ height: var(--accordion-content-height);
150
+ }
151
+ }
152
+
153
+ @keyframes accordion-up {
154
+ from {
155
+ height: var(--accordion-content-height);
156
+ }
157
+
158
+ to {
159
+ height: 0;
160
+ }
161
+ }
162
+ }
163
+
164
+ /*
165
+ * Tailwind's default `duration` utility sets the `--tw-duration` variable, so
166
+ * can set `animation-duration` directly in the animation definition in the
167
+ * `@theme` section above. Same goes for the `animation-timing-function`, set
168
+ * with `--tw-ease`.
169
+ */
170
+
171
+ @utility delay-* {
172
+ animation-delay: calc(--value(number) * 1ms);
173
+ animation-delay: --value(--animation-delay- *, [duration], [ *]);
174
+ }
175
+
176
+ @utility repeat-* {
177
+ animation-iteration-count: --value(--animation-repeat- *, integer);
178
+ }
179
+
180
+ @utility direction-* {
181
+ animation-direction: --value(--animation-direction- *);
182
+ }
183
+
184
+ @utility fill-mode-* {
185
+ animation-fill-mode: --value(--animation-fill-mode- *);
186
+ }
187
+
188
+ @utility running {
189
+ animation-play-state: running;
190
+ }
191
+ @utility paused {
192
+ animation-play-state: paused;
193
+ }
194
+
195
+ @utility fade-in {
196
+ --tw-enter-opacity: 0;
197
+ }
198
+ @utility fade-in-* {
199
+ --tw-enter-opacity: --value(--percentage- *, [ *]);
200
+ }
201
+
202
+ @utility fade-out {
203
+ --tw-exit-opacity: 0;
204
+ }
205
+ @utility fade-out-* {
206
+ --tw-exit-opacity: --value(--percentage- *, [ *]);
207
+ }
208
+
209
+ @utility zoom-in {
210
+ --tw-enter-scale: 0;
211
+ }
212
+ @utility zoom-in-* {
213
+ --tw-enter-scale: calc(--value([percentage]) / 100%);
214
+ --tw-enter-scale: calc(--value([ratio], [number]));
215
+ --tw-enter-scale: --value(--percentage- *);
216
+ }
217
+
218
+ @utility zoom-out {
219
+ --tw-exit-scale: 0;
220
+ }
221
+ @utility zoom-out-* {
222
+ --tw-exit-scale: calc(--value([percentage]) / 100%);
223
+ --tw-exit-scale: calc(--value([ratio], [number]));
224
+ --tw-exit-scale: --value(--percentage- *);
225
+ }
226
+
227
+ @utility spin-in {
228
+ --tw-enter-rotate: 30deg;
229
+ }
230
+ @utility spin-in-* {
231
+ --tw-enter-rotate: calc(--value(number) * 1deg);
232
+ --tw-enter-rotate: --value(--rotate- *, [angle]);
233
+ }
234
+
235
+ @utility spin-out {
236
+ --tw-exit-rotate: 30deg;
237
+ }
238
+ @utility spin-out-* {
239
+ --tw-exit-rotate: calc(--value(number) * 1deg);
240
+ --tw-exit-rotate: --value(--rotate- *, [angle]);
241
+ }
242
+
243
+ @utility slide-in-from-top {
244
+ --tw-enter-translate-y: -100%;
245
+ }
246
+ @utility slide-in-from-top-* {
247
+ --tw-enter-translate-y: calc(--value(integer) * var(--spacing) * -1);
248
+ --tw-enter-translate-y: calc(
249
+ --value(--translate- *, [percentage], ratio, [length]) * -1
250
+ );
251
+ }
252
+
253
+ @utility slide-in-from-bottom {
254
+ --tw-enter-translate-y: 100%;
255
+ }
256
+ @utility slide-in-from-bottom-* {
257
+ --tw-enter-translate-y: calc(--value(integer) * var(--spacing));
258
+ --tw-enter-translate-y: --value(
259
+ --translate- *,
260
+ [percentage],
261
+ ratio,
262
+ [length]
263
+ );
264
+ }
265
+ @utility slide-in-from-left {
266
+ --tw-enter-translate-x: -100%;
267
+ }
268
+ @utility slide-in-from-left-* {
269
+ --tw-enter-translate-x: calc(--value(integer) * var(--spacing) * -1);
270
+ --tw-enter-translate-x: calc(
271
+ --value(--translate- *, [percentage], ratio, [length]) * -1
272
+ );
273
+ }
274
+ @utility slide-in-from-right {
275
+ --tw-enter-translate-x: 100%;
276
+ }
277
+ @utility slide-in-from-right-* {
278
+ --tw-enter-translate-x: calc(--value(integer) * var(--spacing));
279
+ --tw-enter-translate-x: --value(
280
+ --translate- *,
281
+ [percentage],
282
+ ratio,
283
+ [length]
284
+ );
285
+ }
286
+
287
+ @utility slide-out-to-top {
288
+ --tw-exit-translate-y: -100%;
289
+ }
290
+ @utility slide-out-to-top-* {
291
+ --tw-exit-translate-y: calc(--value(integer) * var(--spacing) * -1);
292
+ --tw-exit-translate-y: calc(
293
+ --value(--translate- *, [percentage], ratio, [length]) * -1
294
+ );
295
+ }
296
+ @utility slide-out-to-bottom {
297
+ --tw-exit-translate-y: 100%;
298
+ }
299
+ @utility slide-out-to-bottom-* {
300
+ --tw-exit-translate-y: calc(--value(integer) * var(--spacing));
301
+ --tw-exit-translate-y: --value(--translate- *, [percentage], ratio, [length]);
302
+ }
303
+ @utility slide-out-to-left {
304
+ --tw-exit-translate-x: -100%;
305
+ }
306
+ @utility slide-out-to-left-* {
307
+ --tw-exit-translate-x: calc(--value(integer) * var(--spacing) * -1);
308
+ --tw-exit-translate-x: calc(
309
+ --value(--translate- *, [percentage], ratio, [length]) * -1
310
+ );
311
+ }
312
+ @utility slide-out-to-right {
313
+ --tw-exit-translate-x: 100%;
314
+ }
315
+ @utility slide-out-to-right-* {
316
+ --tw-exit-translate-x: calc(--value(integer) * var(--spacing));
317
+ --tw-exit-translate-x: --value(--translate- *, [percentage], ratio, [length]);
318
+ }