velvetkit 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/velvetkit/version.rb +1 -1
- data/registry/app/components/ui/file_field.html.erb +4 -0
- data/registry/app/components/ui/file_field.rb +73 -0
- data/registry/app/components/ui/navigation_menu/item.html.erb +16 -0
- data/registry/app/components/ui/navigation_menu/item.rb +102 -0
- data/registry/app/components/ui/navigation_menu/link.html.erb +9 -0
- data/registry/app/components/ui/navigation_menu/link.rb +41 -0
- data/registry/app/components/ui/navigation_menu.html.erb +3 -0
- data/registry/app/components/ui/navigation_menu.rb +64 -0
- data/registry/app/components/ui/session_tabs/add.html.erb +1 -0
- data/registry/app/components/ui/session_tabs/add.rb +52 -0
- data/registry/app/components/ui/session_tabs/tab.html.erb +37 -0
- data/registry/app/components/ui/session_tabs/tab.rb +243 -0
- data/registry/app/components/ui/session_tabs.html.erb +15 -0
- data/registry/app/components/ui/session_tabs.rb +101 -0
- data/registry/app/components/ui/skeleton.html.erb +1 -0
- data/registry/app/components/ui/skeleton.rb +30 -0
- data/registry/app/components/ui/toast/viewport.html.erb +4 -0
- data/registry/app/components/ui/toast/viewport.rb +41 -0
- data/registry/app/components/ui/toast.html.erb +11 -0
- data/registry/app/components/ui/toast.rb +89 -0
- data/registry/app/javascript/controllers/ui/file_field_controller.ts +49 -0
- data/registry/app/javascript/controllers/ui/menu_controller.ts +3 -0
- data/registry/app/javascript/controllers/ui/navigation_menu_controller.ts +265 -0
- data/registry/app/javascript/controllers/ui/session_tabs_controller.ts +732 -0
- data/registry/app/javascript/controllers/ui/toast_controller.ts +62 -0
- data/registry/app/javascript/controllers/ui/toast_viewport_controller.ts +82 -0
- data/registry/app/javascript/velvetkit_icons.ts +21 -9
- data/registry/components.yml +10 -0
- data/registry/config/locales/velvetkit.en.yml +21 -0
- data/registry/test/components/previews/ui/file_field_preview/multiple_files.html.erb +3 -0
- data/registry/test/components/previews/ui/file_field_preview/with_error.html.erb +3 -0
- data/registry/test/components/previews/ui/file_field_preview.rb +18 -0
- data/registry/test/components/previews/ui/navigation_menu_preview/custom_panel.html.erb +20 -0
- data/registry/test/components/previews/ui/navigation_menu_preview/playground.html.erb +73 -0
- data/registry/test/components/previews/ui/navigation_menu_preview/simple.html.erb +23 -0
- data/registry/test/components/previews/ui/navigation_menu_preview.rb +23 -0
- data/registry/test/components/previews/ui/session_tabs_preview/handling_events.html.erb +46 -0
- data/registry/test/components/previews/ui/session_tabs_preview/saved_views.html.erb +16 -0
- data/registry/test/components/previews/ui/session_tabs_preview/touch_with_confirmation.html.erb +20 -0
- data/registry/test/components/previews/ui/session_tabs_preview.rb +35 -0
- data/registry/test/components/previews/ui/skeleton_preview/card_placeholder.html.erb +10 -0
- data/registry/test/components/previews/ui/skeleton_preview/shapes.html.erb +9 -0
- data/registry/test/components/previews/ui/skeleton_preview.rb +15 -0
- data/registry/test/components/previews/ui/toast_preview/live_viewport.html.erb +21 -0
- data/registry/test/components/previews/ui/toast_preview/variants.html.erb +7 -0
- data/registry/test/components/previews/ui/toast_preview/with_action.html.erb +7 -0
- data/registry/test/components/previews/ui/toast_preview.rb +29 -0
- data/registry/test/components/ui/file_field_test.rb +101 -0
- data/registry/test/components/ui/navigation_menu_test.rb +130 -0
- data/registry/test/components/ui/session_tabs/add_test.rb +52 -0
- data/registry/test/components/ui/session_tabs_test.rb +281 -0
- data/registry/test/components/ui/skeleton_test.rb +65 -0
- data/registry/test/components/ui/toast/viewport_test.rb +72 -0
- data/registry/test/components/ui/toast_test.rb +183 -0
- metadata +51 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "test_helper"
|
|
4
|
+
|
|
5
|
+
class UI::Toast::ViewportTest < ViewComponent::TestCase
|
|
6
|
+
def setup_fixtures(*); end
|
|
7
|
+
def teardown_fixtures(*); end
|
|
8
|
+
|
|
9
|
+
def viewport_el
|
|
10
|
+
page.find("##{UI::Toast::Viewport::ID}", visible: :all)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def test_renders_with_default_id
|
|
14
|
+
render_inline(UI::Toast::Viewport.new)
|
|
15
|
+
assert_equal "ui-toast-viewport", viewport_el["id"]
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def test_renders_with_custom_id
|
|
19
|
+
render_inline(UI::Toast::Viewport.new(id: "my-toasts"))
|
|
20
|
+
assert page.has_css?("#my-toasts", visible: :all)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def test_default_position_is_bottom_right
|
|
24
|
+
render_inline(UI::Toast::Viewport.new)
|
|
25
|
+
classes = viewport_el[:class].split
|
|
26
|
+
assert_includes classes, "bottom-0"
|
|
27
|
+
assert_includes classes, "right-0"
|
|
28
|
+
assert_includes classes, "items-end"
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def test_top_position_reverses_stack_order
|
|
32
|
+
render_inline(UI::Toast::Viewport.new(position: :top_right))
|
|
33
|
+
classes = viewport_el[:class].split
|
|
34
|
+
assert_includes classes, "top-0"
|
|
35
|
+
assert_includes classes, "flex-col-reverse"
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def test_data_controller
|
|
39
|
+
render_inline(UI::Toast::Viewport.new)
|
|
40
|
+
assert_equal "ui--toast-viewport", viewport_el["data-controller"]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def test_renders_one_template_per_variant
|
|
44
|
+
render_inline(UI::Toast::Viewport.new)
|
|
45
|
+
templates = page.all("template[data-ui--toast-viewport-target='template']", visible: :all)
|
|
46
|
+
assert_equal UI::Toast::Viewport::VARIANTS.map(&:to_s).sort,
|
|
47
|
+
templates.map { |t| t["data-variant"] }.sort
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def test_templates_carry_title_and_description_targets
|
|
51
|
+
# Capybara's rack_test driver parses <template> as an ordinary element
|
|
52
|
+
# with no HTML5 content fragment, so its children never show up through
|
|
53
|
+
# Capybara/Nokogiri node traversal; assert on the raw markup instead.
|
|
54
|
+
html = render_inline(UI::Toast::Viewport.new).to_html
|
|
55
|
+
UI::Toast::Viewport::VARIANTS.each do |variant|
|
|
56
|
+
template_html = html[/<template[^>]*data-variant="#{variant}"[^>]*>(.*?)<\/template>/m, 1]
|
|
57
|
+
assert template_html, "no template found for #{variant}"
|
|
58
|
+
assert_includes template_html, "data-ui--toast-target=\"title\""
|
|
59
|
+
assert_includes template_html, "data-ui--toast-target=\"description\""
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def test_user_class_merge
|
|
64
|
+
render_inline(UI::Toast::Viewport.new(class: "my-viewport"))
|
|
65
|
+
assert_includes viewport_el[:class].split, "my-viewport"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def test_html_attrs_passthrough
|
|
69
|
+
render_inline(UI::Toast::Viewport.new(data: { test_id: "v" }))
|
|
70
|
+
assert_equal "v", viewport_el["data-test-id"]
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "test_helper"
|
|
4
|
+
|
|
5
|
+
class UI::ToastTest < ViewComponent::TestCase
|
|
6
|
+
def setup_fixtures(*); end
|
|
7
|
+
def teardown_fixtures(*); end
|
|
8
|
+
|
|
9
|
+
def toast_el
|
|
10
|
+
page.find("[data-slot='toast']")
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def test_renders_container
|
|
14
|
+
render_inline(UI::Toast.new(title: "Saved"))
|
|
15
|
+
assert toast_el.present?
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def test_fill_mode_forwards_prevents_a_flash_before_removal
|
|
19
|
+
# tw-animate-css's animate-in/animate-out default to fill-mode: none, so
|
|
20
|
+
# without this the element snaps back to fully visible right as the exit
|
|
21
|
+
# animation ends, a flicker just before the controller removes it.
|
|
22
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
23
|
+
assert_includes toast_el[:class].split, "fill-mode-forwards"
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def test_surface_is_neutral_regardless_of_variant
|
|
27
|
+
# Color lives on the icon only, not the surface — matching
|
|
28
|
+
# Dialog/Sheet/Popover/Menu rather than Alert's tinted banner.
|
|
29
|
+
%i[default success destructive warning info].each do |variant|
|
|
30
|
+
render_inline(UI::Toast.new(variant: variant, title: "x"))
|
|
31
|
+
classes = toast_el[:class].split
|
|
32
|
+
assert_includes classes, "bg-popover"
|
|
33
|
+
assert_includes classes, "text-popover-foreground"
|
|
34
|
+
refute classes.any? { |c| c.match?(/^(bg|border)-(emerald|amber|sky|destructive)/) },
|
|
35
|
+
"variant #{variant} colored something other than the icon"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def test_default_variant_classes
|
|
40
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
41
|
+
classes = toast_el[:class].split
|
|
42
|
+
assert_includes classes, "[&>i]:text-muted-foreground"
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def test_success_variant_classes
|
|
46
|
+
render_inline(UI::Toast.new(variant: :success, title: "x"))
|
|
47
|
+
classes = toast_el[:class].split
|
|
48
|
+
assert_includes classes, "[&>i]:text-emerald-600"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def test_destructive_variant_classes
|
|
52
|
+
render_inline(UI::Toast.new(variant: :destructive, title: "x"))
|
|
53
|
+
classes = toast_el[:class].split
|
|
54
|
+
assert_includes classes, "[&>i]:text-destructive"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def test_warning_variant_classes
|
|
58
|
+
render_inline(UI::Toast.new(variant: :warning, title: "x"))
|
|
59
|
+
classes = toast_el[:class].split
|
|
60
|
+
assert_includes classes, "[&>i]:text-amber-600"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def test_info_variant_classes
|
|
64
|
+
render_inline(UI::Toast.new(variant: :info, title: "x"))
|
|
65
|
+
classes = toast_el[:class].split
|
|
66
|
+
assert_includes classes, "[&>i]:text-sky-600"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def test_default_icon_per_variant
|
|
70
|
+
{ default: "info", success: "circle-check", destructive: "circle-alert", warning: "circle-alert", info: "info" }
|
|
71
|
+
.each do |variant, icon|
|
|
72
|
+
render_inline(UI::Toast.new(variant: variant, title: "x"))
|
|
73
|
+
assert_selector "i[data-lucide='#{icon}']"
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def test_icon_false_suppresses_icon
|
|
78
|
+
render_inline(UI::Toast.new(title: "x", icon: false))
|
|
79
|
+
refute_selector "[data-slot='toast'] > i"
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def test_icon_override
|
|
83
|
+
render_inline(UI::Toast.new(title: "x", icon: "rocket"))
|
|
84
|
+
assert_selector "[data-slot='toast'] > i[data-lucide='rocket']"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def test_title_renders
|
|
88
|
+
render_inline(UI::Toast.new(title: "Saved"))
|
|
89
|
+
assert_selector "[data-ui--toast-target='title']", text: "Saved"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
def test_description_renders
|
|
93
|
+
render_inline(UI::Toast.new(title: "Saved", description: "All set."))
|
|
94
|
+
assert_selector "[data-ui--toast-target='description']", text: "All set."
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def test_no_description_renders_no_description_node
|
|
98
|
+
render_inline(UI::Toast.new(title: "Saved"))
|
|
99
|
+
refute_selector "[data-ui--toast-target='description']"
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def test_default_role_and_live_region
|
|
103
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
104
|
+
assert_equal "status", toast_el["role"]
|
|
105
|
+
assert_equal "polite", toast_el["aria-live"]
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
def test_destructive_role_and_live_region
|
|
109
|
+
render_inline(UI::Toast.new(variant: :destructive, title: "x"))
|
|
110
|
+
assert_equal "alert", toast_el["role"]
|
|
111
|
+
assert_equal "assertive", toast_el["aria-live"]
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def test_dismissible_by_default
|
|
115
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
116
|
+
assert_selector "button[aria-label='Dismiss']"
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def test_dismissible_false_hides_close_button
|
|
120
|
+
render_inline(UI::Toast.new(title: "x", dismissible: false))
|
|
121
|
+
refute_selector "button[aria-label='Dismiss']"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
def test_close_button_wired_to_controller
|
|
125
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
126
|
+
button = page.find("button[aria-label='Dismiss']")
|
|
127
|
+
assert_includes button["data-action"], "click->ui--toast#dismiss"
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def test_data_controller
|
|
131
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
132
|
+
assert_equal "ui--toast", toast_el["data-controller"]
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
def test_default_duration_value_is_5_seconds_in_ms
|
|
136
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
137
|
+
assert_equal "5000", toast_el["data-ui--toast-duration-value"]
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
def test_custom_duration_value_is_given_in_seconds
|
|
141
|
+
render_inline(UI::Toast.new(title: "x", duration: 10))
|
|
142
|
+
assert_equal "10000", toast_el["data-ui--toast-duration-value"]
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
def test_duration_accepts_an_active_support_duration
|
|
146
|
+
render_inline(UI::Toast.new(title: "x", duration: 10.seconds))
|
|
147
|
+
assert_equal "10000", toast_el["data-ui--toast-duration-value"]
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
def test_persistent_duration_value
|
|
151
|
+
render_inline(UI::Toast.new(title: "x", duration: 0))
|
|
152
|
+
assert_equal "0", toast_el["data-ui--toast-duration-value"]
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
def test_pause_and_resume_wired_on_hover
|
|
156
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
157
|
+
action = toast_el["data-action"]
|
|
158
|
+
assert_includes action, "mouseenter->ui--toast#pause"
|
|
159
|
+
assert_includes action, "mouseleave->ui--toast#resume"
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
def test_initial_state_is_open
|
|
163
|
+
render_inline(UI::Toast.new(title: "x"))
|
|
164
|
+
assert_equal "open", toast_el["data-state"]
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
def test_renders_action_slot
|
|
168
|
+
render_inline(UI::Toast.new(title: "x")) do |toast|
|
|
169
|
+
toast.with_action { "Undo" }
|
|
170
|
+
end
|
|
171
|
+
assert_selector "[data-slot='toast'] div", text: "Undo"
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
def test_user_class_merge
|
|
175
|
+
render_inline(UI::Toast.new(title: "x", class: "my-toast"))
|
|
176
|
+
assert_includes toast_el[:class].split, "my-toast"
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
def test_html_attrs_passthrough
|
|
180
|
+
render_inline(UI::Toast.new(title: "x", id: "my-id", data: { test_id: "t" }))
|
|
181
|
+
assert_selector "[data-slot='toast']#my-id[data-test-id='t']"
|
|
182
|
+
end
|
|
183
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: velvetkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rathan Kumar
|
|
@@ -129,6 +129,8 @@ files:
|
|
|
129
129
|
- registry/app/components/ui/dialog/trigger.rb
|
|
130
130
|
- registry/app/components/ui/divider.html.erb
|
|
131
131
|
- registry/app/components/ui/divider.rb
|
|
132
|
+
- registry/app/components/ui/file_field.html.erb
|
|
133
|
+
- registry/app/components/ui/file_field.rb
|
|
132
134
|
- registry/app/components/ui/form_field.html.erb
|
|
133
135
|
- registry/app/components/ui/form_field.rb
|
|
134
136
|
- registry/app/components/ui/form_field/messages.html.erb
|
|
@@ -164,6 +166,12 @@ files:
|
|
|
164
166
|
- registry/app/components/ui/menu/trigger.rb
|
|
165
167
|
- registry/app/components/ui/native_select.html.erb
|
|
166
168
|
- registry/app/components/ui/native_select.rb
|
|
169
|
+
- registry/app/components/ui/navigation_menu.html.erb
|
|
170
|
+
- registry/app/components/ui/navigation_menu.rb
|
|
171
|
+
- registry/app/components/ui/navigation_menu/item.html.erb
|
|
172
|
+
- registry/app/components/ui/navigation_menu/item.rb
|
|
173
|
+
- registry/app/components/ui/navigation_menu/link.html.erb
|
|
174
|
+
- registry/app/components/ui/navigation_menu/link.rb
|
|
167
175
|
- registry/app/components/ui/pagination.html.erb
|
|
168
176
|
- registry/app/components/ui/pagination.rb
|
|
169
177
|
- registry/app/components/ui/password_input.html.erb
|
|
@@ -180,6 +188,12 @@ files:
|
|
|
180
188
|
- registry/app/components/ui/radio_group/item.rb
|
|
181
189
|
- registry/app/components/ui/select.html.erb
|
|
182
190
|
- registry/app/components/ui/select.rb
|
|
191
|
+
- registry/app/components/ui/session_tabs.html.erb
|
|
192
|
+
- registry/app/components/ui/session_tabs.rb
|
|
193
|
+
- registry/app/components/ui/session_tabs/add.html.erb
|
|
194
|
+
- registry/app/components/ui/session_tabs/add.rb
|
|
195
|
+
- registry/app/components/ui/session_tabs/tab.html.erb
|
|
196
|
+
- registry/app/components/ui/session_tabs/tab.rb
|
|
183
197
|
- registry/app/components/ui/sheet.html.erb
|
|
184
198
|
- registry/app/components/ui/sheet.rb
|
|
185
199
|
- registry/app/components/ui/sheet/close.rb
|
|
@@ -210,6 +224,8 @@ files:
|
|
|
210
224
|
- registry/app/components/ui/sidebar/trigger.rb
|
|
211
225
|
- registry/app/components/ui/sidebar/wrapper.html.erb
|
|
212
226
|
- registry/app/components/ui/sidebar/wrapper.rb
|
|
227
|
+
- registry/app/components/ui/skeleton.html.erb
|
|
228
|
+
- registry/app/components/ui/skeleton.rb
|
|
213
229
|
- registry/app/components/ui/spinner.html.erb
|
|
214
230
|
- registry/app/components/ui/spinner.rb
|
|
215
231
|
- registry/app/components/ui/switch.html.erb
|
|
@@ -242,6 +258,10 @@ files:
|
|
|
242
258
|
- registry/app/components/ui/textarea.rb
|
|
243
259
|
- registry/app/components/ui/theme_toggle.html.erb
|
|
244
260
|
- registry/app/components/ui/theme_toggle.rb
|
|
261
|
+
- registry/app/components/ui/toast.html.erb
|
|
262
|
+
- registry/app/components/ui/toast.rb
|
|
263
|
+
- registry/app/components/ui/toast/viewport.html.erb
|
|
264
|
+
- registry/app/components/ui/toast/viewport.rb
|
|
245
265
|
- registry/app/components/ui/tooltip.html.erb
|
|
246
266
|
- registry/app/components/ui/tooltip.rb
|
|
247
267
|
- registry/app/components/ui/tooltip/content.html.erb
|
|
@@ -270,14 +290,19 @@ files:
|
|
|
270
290
|
- registry/app/javascript/controllers/ui/data_grid_controller.ts
|
|
271
291
|
- registry/app/javascript/controllers/ui/date_picker_controller.ts
|
|
272
292
|
- registry/app/javascript/controllers/ui/dialog_controller.ts
|
|
293
|
+
- registry/app/javascript/controllers/ui/file_field_controller.ts
|
|
273
294
|
- registry/app/javascript/controllers/ui/menu_controller.ts
|
|
295
|
+
- registry/app/javascript/controllers/ui/navigation_menu_controller.ts
|
|
274
296
|
- registry/app/javascript/controllers/ui/password_visibility_controller.ts
|
|
275
297
|
- registry/app/javascript/controllers/ui/popover_controller.ts
|
|
276
298
|
- registry/app/javascript/controllers/ui/select_controller.ts
|
|
299
|
+
- registry/app/javascript/controllers/ui/session_tabs_controller.ts
|
|
277
300
|
- registry/app/javascript/controllers/ui/sidebar_controller.ts
|
|
278
301
|
- registry/app/javascript/controllers/ui/table_of_contents_controller.ts
|
|
279
302
|
- registry/app/javascript/controllers/ui/tabs_controller.ts
|
|
280
303
|
- registry/app/javascript/controllers/ui/theme_controller.ts
|
|
304
|
+
- registry/app/javascript/controllers/ui/toast_controller.ts
|
|
305
|
+
- registry/app/javascript/controllers/ui/toast_viewport_controller.ts
|
|
281
306
|
- registry/app/javascript/controllers/ui/tooltip_controller.ts
|
|
282
307
|
- registry/app/javascript/velvetkit_icons.ts
|
|
283
308
|
- registry/app/views/layouts/_theme_script.html.erb
|
|
@@ -360,6 +385,9 @@ files:
|
|
|
360
385
|
- registry/test/components/previews/ui/divider_preview/horizontal.html.erb
|
|
361
386
|
- registry/test/components/previews/ui/divider_preview/vertical.html.erb
|
|
362
387
|
- registry/test/components/previews/ui/divider_preview/with_label.html.erb
|
|
388
|
+
- registry/test/components/previews/ui/file_field_preview.rb
|
|
389
|
+
- registry/test/components/previews/ui/file_field_preview/multiple_files.html.erb
|
|
390
|
+
- registry/test/components/previews/ui/file_field_preview/with_error.html.erb
|
|
363
391
|
- registry/test/components/previews/ui/form_field_preview.rb
|
|
364
392
|
- registry/test/components/previews/ui/form_field_preview/custom_control.html.erb
|
|
365
393
|
- registry/test/components/previews/ui/form_field_preview/default.html.erb
|
|
@@ -392,6 +420,10 @@ files:
|
|
|
392
420
|
- registry/test/components/previews/ui/native_select_preview.rb
|
|
393
421
|
- registry/test/components/previews/ui/native_select_preview/sizes.html.erb
|
|
394
422
|
- registry/test/components/previews/ui/native_select_preview/states.html.erb
|
|
423
|
+
- registry/test/components/previews/ui/navigation_menu_preview.rb
|
|
424
|
+
- registry/test/components/previews/ui/navigation_menu_preview/custom_panel.html.erb
|
|
425
|
+
- registry/test/components/previews/ui/navigation_menu_preview/playground.html.erb
|
|
426
|
+
- registry/test/components/previews/ui/navigation_menu_preview/simple.html.erb
|
|
395
427
|
- registry/test/components/previews/ui/pagination_preview.rb
|
|
396
428
|
- registry/test/components/previews/ui/pagination_preview/states.html.erb
|
|
397
429
|
- registry/test/components/previews/ui/password_input_preview.rb
|
|
@@ -412,6 +444,10 @@ files:
|
|
|
412
444
|
- registry/test/components/previews/ui/select_preview/multiple.html.erb
|
|
413
445
|
- registry/test/components/previews/ui/select_preview/sizes.html.erb
|
|
414
446
|
- registry/test/components/previews/ui/select_preview/states.html.erb
|
|
447
|
+
- registry/test/components/previews/ui/session_tabs_preview.rb
|
|
448
|
+
- registry/test/components/previews/ui/session_tabs_preview/handling_events.html.erb
|
|
449
|
+
- registry/test/components/previews/ui/session_tabs_preview/saved_views.html.erb
|
|
450
|
+
- registry/test/components/previews/ui/session_tabs_preview/touch_with_confirmation.html.erb
|
|
415
451
|
- registry/test/components/previews/ui/sheet_preview.rb
|
|
416
452
|
- registry/test/components/previews/ui/sheet_preview/bottom.html.erb
|
|
417
453
|
- registry/test/components/previews/ui/sheet_preview/left.html.erb
|
|
@@ -425,6 +461,9 @@ files:
|
|
|
425
461
|
- registry/test/components/previews/ui/sidebar_preview/default.html.erb
|
|
426
462
|
- registry/test/components/previews/ui/sidebar_preview/with_dropdown_header.html.erb
|
|
427
463
|
- registry/test/components/previews/ui/sidebar_preview/with_groups.html.erb
|
|
464
|
+
- registry/test/components/previews/ui/skeleton_preview.rb
|
|
465
|
+
- registry/test/components/previews/ui/skeleton_preview/card_placeholder.html.erb
|
|
466
|
+
- registry/test/components/previews/ui/skeleton_preview/shapes.html.erb
|
|
428
467
|
- registry/test/components/previews/ui/spinner_preview.rb
|
|
429
468
|
- registry/test/components/previews/ui/spinner_preview/in_buttons.html.erb
|
|
430
469
|
- registry/test/components/previews/ui/spinner_preview/sizes.html.erb
|
|
@@ -456,6 +495,10 @@ files:
|
|
|
456
495
|
- registry/test/components/previews/ui/theme_toggle_preview.rb
|
|
457
496
|
- registry/test/components/previews/ui/theme_toggle_preview/in_a_header.html.erb
|
|
458
497
|
- registry/test/components/previews/ui/theme_toggle_preview/palette.html.erb
|
|
498
|
+
- registry/test/components/previews/ui/toast_preview.rb
|
|
499
|
+
- registry/test/components/previews/ui/toast_preview/live_viewport.html.erb
|
|
500
|
+
- registry/test/components/previews/ui/toast_preview/variants.html.erb
|
|
501
|
+
- registry/test/components/previews/ui/toast_preview/with_action.html.erb
|
|
459
502
|
- registry/test/components/previews/ui/tooltip_preview.rb
|
|
460
503
|
- registry/test/components/previews/ui/tooltip_preview/default.html.erb
|
|
461
504
|
- registry/test/components/previews/ui/tooltip_preview/positions.html.erb
|
|
@@ -499,6 +542,7 @@ files:
|
|
|
499
542
|
- registry/test/components/ui/dialog/trigger_test.rb
|
|
500
543
|
- registry/test/components/ui/dialog_test.rb
|
|
501
544
|
- registry/test/components/ui/divider_test.rb
|
|
545
|
+
- registry/test/components/ui/file_field_test.rb
|
|
502
546
|
- registry/test/components/ui/form_field/messages_test.rb
|
|
503
547
|
- registry/test/components/ui/form_field_test.rb
|
|
504
548
|
- registry/test/components/ui/icon_test.rb
|
|
@@ -515,6 +559,7 @@ files:
|
|
|
515
559
|
- registry/test/components/ui/menu/trigger_test.rb
|
|
516
560
|
- registry/test/components/ui/menu_test.rb
|
|
517
561
|
- registry/test/components/ui/native_select_test.rb
|
|
562
|
+
- registry/test/components/ui/navigation_menu_test.rb
|
|
518
563
|
- registry/test/components/ui/pagination_test.rb
|
|
519
564
|
- registry/test/components/ui/password_input_test.rb
|
|
520
565
|
- registry/test/components/ui/popover/content_test.rb
|
|
@@ -523,6 +568,8 @@ files:
|
|
|
523
568
|
- registry/test/components/ui/radio_group/item_test.rb
|
|
524
569
|
- registry/test/components/ui/radio_group_test.rb
|
|
525
570
|
- registry/test/components/ui/select_test.rb
|
|
571
|
+
- registry/test/components/ui/session_tabs/add_test.rb
|
|
572
|
+
- registry/test/components/ui/session_tabs_test.rb
|
|
526
573
|
- registry/test/components/ui/sheet/content_test.rb
|
|
527
574
|
- registry/test/components/ui/sheet/trigger_test.rb
|
|
528
575
|
- registry/test/components/ui/sheet_test.rb
|
|
@@ -530,6 +577,7 @@ files:
|
|
|
530
577
|
- registry/test/components/ui/sidebar/trigger_test.rb
|
|
531
578
|
- registry/test/components/ui/sidebar/wrapper_test.rb
|
|
532
579
|
- registry/test/components/ui/sidebar_test.rb
|
|
580
|
+
- registry/test/components/ui/skeleton_test.rb
|
|
533
581
|
- registry/test/components/ui/spinner_test.rb
|
|
534
582
|
- registry/test/components/ui/switch_test.rb
|
|
535
583
|
- registry/test/components/ui/table_of_contents/item_test.rb
|
|
@@ -542,6 +590,8 @@ files:
|
|
|
542
590
|
- registry/test/components/ui/text_test.rb
|
|
543
591
|
- registry/test/components/ui/textarea_test.rb
|
|
544
592
|
- registry/test/components/ui/theme_toggle_test.rb
|
|
593
|
+
- registry/test/components/ui/toast/viewport_test.rb
|
|
594
|
+
- registry/test/components/ui/toast_test.rb
|
|
545
595
|
- registry/test/components/ui/tooltip/content_test.rb
|
|
546
596
|
- registry/test/components/ui/tooltip/trigger_test.rb
|
|
547
597
|
- registry/test/components/ui/tooltip_test.rb
|