velvetkit 0.2.2 → 0.3.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.
- checksums.yaml +4 -4
- data/README.md +25 -7
- data/lib/generators/velvetkit/add/add_generator.rb +19 -0
- data/lib/generators/velvetkit/helpers.rb +29 -2
- data/lib/generators/velvetkit/icons/icons_generator.rb +71 -0
- data/lib/generators/velvetkit/install/install_generator.rb +9 -12
- data/lib/velvetkit/icons.rb +148 -0
- data/lib/velvetkit/registry.rb +5 -2
- data/lib/velvetkit/version.rb +1 -1
- data/lib/velvetkit.rb +1 -0
- data/registry/app/components/ui/alert.rb +1 -1
- data/registry/app/components/ui/confirm_dialog.html.erb +13 -0
- data/registry/app/components/ui/confirm_dialog.rb +55 -0
- data/registry/app/components/ui/empty_state.html.erb +20 -0
- data/registry/app/components/ui/empty_state.rb +46 -0
- data/registry/app/components/ui/icon.html.erb +1 -1
- data/registry/app/components/ui/icon.rb +80 -8
- data/registry/app/components/ui/password_input.html.erb +1 -1
- data/registry/app/components/ui/stepper/step.html.erb +27 -0
- data/registry/app/components/ui/stepper/step.rb +213 -0
- data/registry/app/components/ui/stepper.html.erb +19 -0
- data/registry/app/components/ui/stepper.rb +145 -0
- data/registry/app/components/ui/theme_toggle.rb +2 -4
- data/registry/app/components/ui/toast.rb +6 -6
- data/registry/app/components/ui/toggle_group/item.html.erb +1 -0
- data/registry/app/components/ui/toggle_group/item.rb +85 -0
- data/registry/app/components/ui/toggle_group.html.erb +1 -0
- data/registry/app/components/ui/toggle_group.rb +79 -0
- data/registry/app/javascript/controllers/ui/confirm_dialog_controller.ts +110 -0
- data/registry/app/javascript/controllers/ui/stepper_controller.ts +187 -0
- data/registry/components.yml +9 -2
- data/registry/config/locales/velvetkit.en.yml +11 -0
- data/registry/docs/agents.md +7 -4
- data/registry/icons/lucide/LICENSE +39 -0
- data/registry/icons/lucide/align-center.svg +17 -0
- data/registry/icons/lucide/align-left.svg +17 -0
- data/registry/icons/lucide/align-right.svg +17 -0
- data/registry/icons/lucide/arrow-left.svg +16 -0
- data/registry/icons/lucide/arrow-right.svg +16 -0
- data/registry/icons/lucide/badge-check.svg +16 -0
- data/registry/icons/lucide/bar-chart-3.svg +18 -0
- data/registry/icons/lucide/bell.svg +16 -0
- data/registry/icons/lucide/bold.svg +15 -0
- data/registry/icons/lucide/book-open.svg +16 -0
- data/registry/icons/lucide/calendar.svg +18 -0
- data/registry/icons/lucide/chart-column.svg +18 -0
- data/registry/icons/lucide/check.svg +15 -0
- data/registry/icons/lucide/chevron-down.svg +15 -0
- data/registry/icons/lucide/chevron-left.svg +15 -0
- data/registry/icons/lucide/chevron-right.svg +15 -0
- data/registry/icons/lucide/chevrons-up-down.svg +16 -0
- data/registry/icons/lucide/circle-alert.svg +17 -0
- data/registry/icons/lucide/circle-check.svg +16 -0
- data/registry/icons/lucide/cloud.svg +15 -0
- data/registry/icons/lucide/credit-card.svg +16 -0
- data/registry/icons/lucide/ellipsis-vertical.svg +17 -0
- data/registry/icons/lucide/ellipsis.svg +17 -0
- data/registry/icons/lucide/eye-off.svg +18 -0
- data/registry/icons/lucide/eye.svg +16 -0
- data/registry/icons/lucide/file-text.svg +19 -0
- data/registry/icons/lucide/folder-kanban.svg +18 -0
- data/registry/icons/lucide/git-branch.svg +18 -0
- data/registry/icons/lucide/globe.svg +17 -0
- data/registry/icons/lucide/graduation-cap.svg +17 -0
- data/registry/icons/lucide/grip-vertical.svg +20 -0
- data/registry/icons/lucide/home.svg +16 -0
- data/registry/icons/lucide/inbox.svg +16 -0
- data/registry/icons/lucide/info.svg +17 -0
- data/registry/icons/lucide/italic.svg +17 -0
- data/registry/icons/lucide/layout-dashboard.svg +18 -0
- data/registry/icons/lucide/layout-grid.svg +18 -0
- data/registry/icons/lucide/life-buoy.svg +20 -0
- data/registry/icons/lucide/list.svg +20 -0
- data/registry/icons/lucide/loader.svg +22 -0
- data/registry/icons/lucide/lock.svg +16 -0
- data/registry/icons/lucide/log-out.svg +17 -0
- data/registry/icons/lucide/mail.svg +16 -0
- data/registry/icons/lucide/menu.svg +17 -0
- data/registry/icons/lucide/message-circle.svg +15 -0
- data/registry/icons/lucide/monitor.svg +17 -0
- data/registry/icons/lucide/moon.svg +15 -0
- data/registry/icons/lucide/newspaper.svg +18 -0
- data/registry/icons/lucide/panel-left.svg +16 -0
- data/registry/icons/lucide/plus.svg +16 -0
- data/registry/icons/lucide/qr-code.svg +26 -0
- data/registry/icons/lucide/rocket.svg +18 -0
- data/registry/icons/lucide/rotate-cw.svg +16 -0
- data/registry/icons/lucide/search.svg +16 -0
- data/registry/icons/lucide/settings.svg +16 -0
- data/registry/icons/lucide/shield-check.svg +16 -0
- data/registry/icons/lucide/shield.svg +15 -0
- data/registry/icons/lucide/store.svg +17 -0
- data/registry/icons/lucide/sun.svg +23 -0
- data/registry/icons/lucide/trash-2.svg +19 -0
- data/registry/icons/lucide/underline.svg +16 -0
- data/registry/icons/lucide/upload.svg +17 -0
- data/registry/icons/lucide/user.svg +16 -0
- data/registry/icons/lucide/users.svg +18 -0
- data/registry/icons/lucide/workflow.svg +17 -0
- data/registry/icons/lucide/x.svg +16 -0
- data/registry/icons/phosphor/LICENSE +21 -0
- data/registry/icons/phosphor/arrow-clockwise.svg +2 -0
- data/registry/icons/phosphor/arrow-left.svg +2 -0
- data/registry/icons/phosphor/arrow-right.svg +2 -0
- data/registry/icons/phosphor/bell.svg +2 -0
- data/registry/icons/phosphor/book-open.svg +2 -0
- data/registry/icons/phosphor/calendar-blank.svg +2 -0
- data/registry/icons/phosphor/caret-down.svg +2 -0
- data/registry/icons/phosphor/caret-left.svg +2 -0
- data/registry/icons/phosphor/caret-right.svg +2 -0
- data/registry/icons/phosphor/caret-up-down.svg +2 -0
- data/registry/icons/phosphor/chart-bar.svg +2 -0
- data/registry/icons/phosphor/chat-circle.svg +2 -0
- data/registry/icons/phosphor/check-circle.svg +2 -0
- data/registry/icons/phosphor/check.svg +2 -0
- data/registry/icons/phosphor/cloud.svg +2 -0
- data/registry/icons/phosphor/credit-card.svg +2 -0
- data/registry/icons/phosphor/desktop.svg +2 -0
- data/registry/icons/phosphor/dots-six-vertical.svg +2 -0
- data/registry/icons/phosphor/dots-three-vertical.svg +2 -0
- data/registry/icons/phosphor/dots-three.svg +2 -0
- data/registry/icons/phosphor/envelope.svg +2 -0
- data/registry/icons/phosphor/eye-slash.svg +2 -0
- data/registry/icons/phosphor/eye.svg +2 -0
- data/registry/icons/phosphor/file-text.svg +2 -0
- data/registry/icons/phosphor/flow-arrow.svg +2 -0
- data/registry/icons/phosphor/gear.svg +2 -0
- data/registry/icons/phosphor/git-branch.svg +2 -0
- data/registry/icons/phosphor/globe.svg +2 -0
- data/registry/icons/phosphor/graduation-cap.svg +2 -0
- data/registry/icons/phosphor/grid-four.svg +2 -0
- data/registry/icons/phosphor/house.svg +2 -0
- data/registry/icons/phosphor/info.svg +2 -0
- data/registry/icons/phosphor/kanban.svg +2 -0
- data/registry/icons/phosphor/lifebuoy.svg +2 -0
- data/registry/icons/phosphor/list.svg +2 -0
- data/registry/icons/phosphor/lock.svg +2 -0
- data/registry/icons/phosphor/magnifying-glass.svg +2 -0
- data/registry/icons/phosphor/moon.svg +2 -0
- data/registry/icons/phosphor/newspaper.svg +2 -0
- data/registry/icons/phosphor/plus.svg +2 -0
- data/registry/icons/phosphor/qr-code.svg +2 -0
- data/registry/icons/phosphor/rocket.svg +2 -0
- data/registry/icons/phosphor/seal-check.svg +2 -0
- data/registry/icons/phosphor/shield-check.svg +2 -0
- data/registry/icons/phosphor/shield.svg +2 -0
- data/registry/icons/phosphor/sidebar.svg +2 -0
- data/registry/icons/phosphor/sign-out.svg +2 -0
- data/registry/icons/phosphor/spinner.svg +2 -0
- data/registry/icons/phosphor/squares-four.svg +2 -0
- data/registry/icons/phosphor/storefront.svg +2 -0
- data/registry/icons/phosphor/sun.svg +2 -0
- data/registry/icons/phosphor/text-align-center.svg +2 -0
- data/registry/icons/phosphor/text-align-left.svg +2 -0
- data/registry/icons/phosphor/text-align-right.svg +2 -0
- data/registry/icons/phosphor/text-b.svg +2 -0
- data/registry/icons/phosphor/text-italic.svg +2 -0
- data/registry/icons/phosphor/text-underline.svg +2 -0
- data/registry/icons/phosphor/trash.svg +2 -0
- data/registry/icons/phosphor/tray.svg +2 -0
- data/registry/icons/phosphor/upload-simple.svg +2 -0
- data/registry/icons/phosphor/user.svg +2 -0
- data/registry/icons/phosphor/users.svg +2 -0
- data/registry/icons/phosphor/warning-circle.svg +2 -0
- data/registry/icons/phosphor/x.svg +2 -0
- data/registry/icons/tabler/LICENSE +21 -0
- data/registry/icons/tabler/alert-circle.svg +18 -0
- data/registry/icons/tabler/align-center.svg +18 -0
- data/registry/icons/tabler/align-left.svg +18 -0
- data/registry/icons/tabler/align-right.svg +18 -0
- data/registry/icons/tabler/arrow-left.svg +18 -0
- data/registry/icons/tabler/arrow-right.svg +18 -0
- data/registry/icons/tabler/bell.svg +17 -0
- data/registry/icons/tabler/bold.svg +17 -0
- data/registry/icons/tabler/book.svg +20 -0
- data/registry/icons/tabler/building-store.svg +20 -0
- data/registry/icons/tabler/calendar.svg +21 -0
- data/registry/icons/tabler/chart-bar.svg +19 -0
- data/registry/icons/tabler/check.svg +16 -0
- data/registry/icons/tabler/chevron-down.svg +16 -0
- data/registry/icons/tabler/chevron-left.svg +16 -0
- data/registry/icons/tabler/chevron-right.svg +16 -0
- data/registry/icons/tabler/circle-check.svg +17 -0
- data/registry/icons/tabler/cloud.svg +16 -0
- data/registry/icons/tabler/credit-card.svg +19 -0
- data/registry/icons/tabler/device-desktop.svg +19 -0
- data/registry/icons/tabler/dots-vertical.svg +18 -0
- data/registry/icons/tabler/dots.svg +18 -0
- data/registry/icons/tabler/eye-off.svg +18 -0
- data/registry/icons/tabler/eye.svg +17 -0
- data/registry/icons/tabler/file-text.svg +20 -0
- data/registry/icons/tabler/git-branch.svg +21 -0
- data/registry/icons/tabler/grip-vertical.svg +21 -0
- data/registry/icons/tabler/home.svg +18 -0
- data/registry/icons/tabler/inbox.svg +17 -0
- data/registry/icons/tabler/info-circle.svg +18 -0
- data/registry/icons/tabler/italic.svg +18 -0
- data/registry/icons/tabler/layout-dashboard.svg +19 -0
- data/registry/icons/tabler/layout-grid.svg +19 -0
- data/registry/icons/tabler/layout-kanban.svg +19 -0
- data/registry/icons/tabler/layout-sidebar.svg +17 -0
- data/registry/icons/tabler/lifebuoy.svg +21 -0
- data/registry/icons/tabler/list.svg +21 -0
- data/registry/icons/tabler/loader.svg +23 -0
- data/registry/icons/tabler/lock.svg +18 -0
- data/registry/icons/tabler/logout.svg +18 -0
- data/registry/icons/tabler/mail.svg +17 -0
- data/registry/icons/tabler/menu-2.svg +18 -0
- data/registry/icons/tabler/message-circle.svg +16 -0
- data/registry/icons/tabler/moon.svg +16 -0
- data/registry/icons/tabler/news.svg +19 -0
- data/registry/icons/tabler/plus.svg +17 -0
- data/registry/icons/tabler/qrcode.svg +27 -0
- data/registry/icons/tabler/rocket.svg +18 -0
- data/registry/icons/tabler/rosette-discount-check.svg +17 -0
- data/registry/icons/tabler/rotate-clockwise.svg +16 -0
- data/registry/icons/tabler/school.svg +17 -0
- data/registry/icons/tabler/search.svg +17 -0
- data/registry/icons/tabler/selector.svg +17 -0
- data/registry/icons/tabler/settings.svg +17 -0
- data/registry/icons/tabler/shield-check.svg +17 -0
- data/registry/icons/tabler/shield.svg +16 -0
- data/registry/icons/tabler/sitemap.svg +20 -0
- data/registry/icons/tabler/sun.svg +17 -0
- data/registry/icons/tabler/trash.svg +20 -0
- data/registry/icons/tabler/underline.svg +17 -0
- data/registry/icons/tabler/upload.svg +18 -0
- data/registry/icons/tabler/user.svg +17 -0
- data/registry/icons/tabler/users.svg +19 -0
- data/registry/icons/tabler/world.svg +20 -0
- data/registry/icons/tabler/x.svg +17 -0
- data/registry/icons.yml +74 -0
- data/registry/test/components/previews/ui/confirm_dialog_preview/destructive.html.erb +7 -0
- data/registry/test/components/previews/ui/confirm_dialog_preview/in_form.html.erb +6 -0
- data/registry/test/components/previews/ui/confirm_dialog_preview/on_link.html.erb +5 -0
- data/registry/test/components/previews/ui/confirm_dialog_preview/plain.html.erb +3 -0
- data/registry/test/components/previews/ui/confirm_dialog_preview/with_description.html.erb +4 -0
- data/registry/test/components/previews/ui/confirm_dialog_preview.rb +20 -0
- data/registry/test/components/previews/ui/empty_state_preview/in_card.html.erb +7 -0
- data/registry/test/components/previews/ui/empty_state_preview/no_results.html.erb +3 -0
- data/registry/test/components/previews/ui/empty_state_preview/outline.html.erb +3 -0
- data/registry/test/components/previews/ui/empty_state_preview/with_actions.html.erb +4 -0
- data/registry/test/components/previews/ui/empty_state_preview/with_media.html.erb +8 -0
- data/registry/test/components/previews/ui/empty_state_preview.rb +26 -0
- data/registry/test/components/previews/ui/icon_preview/common.html.erb +19 -3
- data/registry/test/components/previews/ui/icon_preview/labelled.html.erb +4 -0
- data/registry/test/components/previews/ui/icon_preview/missing.html.erb +3 -0
- data/registry/test/components/previews/ui/icon_preview.rb +18 -3
- data/registry/test/components/previews/ui/input_group_preview/playground.html.erb +2 -2
- data/registry/test/components/previews/ui/input_group_preview.rb +3 -3
- data/registry/test/components/previews/ui/stepper_preview/approvals.html.erb +9 -0
- data/registry/test/components/previews/ui/stepper_preview/checklist.html.erb +12 -0
- data/registry/test/components/previews/ui/stepper_preview/dot_wizard.html.erb +41 -0
- data/registry/test/components/previews/ui/stepper_preview/failed_deploy.html.erb +13 -0
- data/registry/test/components/previews/ui/stepper_preview/inline.html.erb +31 -0
- data/registry/test/components/previews/ui/stepper_preview/onboarding.html.erb +12 -0
- data/registry/test/components/previews/ui/stepper_preview/order_tracking.html.erb +10 -0
- data/registry/test/components/previews/ui/stepper_preview/price_calculator.html.erb +14 -0
- data/registry/test/components/previews/ui/stepper_preview/server_driven.html.erb +20 -0
- data/registry/test/components/previews/ui/stepper_preview/sidebar.html.erb +43 -0
- data/registry/test/components/previews/ui/stepper_preview/wizard.html.erb +55 -0
- data/registry/test/components/previews/ui/stepper_preview.rb +57 -0
- data/registry/test/components/previews/ui/toggle_group_preview/icon_only.html.erb +5 -0
- data/registry/test/components/previews/ui/toggle_group_preview/in_form.html.erb +11 -0
- data/registry/test/components/previews/ui/toggle_group_preview/multiple.html.erb +5 -0
- data/registry/test/components/previews/ui/toggle_group_preview/outline.html.erb +5 -0
- data/registry/test/components/previews/ui/toggle_group_preview/sizes.html.erb +9 -0
- data/registry/test/components/previews/ui/toggle_group_preview/with_icons.html.erb +5 -0
- data/registry/test/components/previews/ui/toggle_group_preview.rb +36 -0
- data/registry/test/components/ui/accordion/trigger_test.rb +1 -1
- data/registry/test/components/ui/alert_test.rb +10 -10
- data/registry/test/components/ui/badge_test.rb +3 -3
- data/registry/test/components/ui/banner_test.rb +3 -3
- data/registry/test/components/ui/breadcrumb/ellipsis_test.rb +2 -2
- data/registry/test/components/ui/button_test.rb +17 -14
- data/registry/test/components/ui/button_to_test.rb +2 -2
- data/registry/test/components/ui/checkbox_test.rb +2 -2
- data/registry/test/components/ui/confirm_dialog_test.rb +68 -0
- data/registry/test/components/ui/empty_state_test.rb +87 -0
- data/registry/test/components/ui/icon_test.rb +60 -20
- data/registry/test/components/ui/input_group_test.rb +1 -1
- data/registry/test/components/ui/link_test.rb +3 -3
- data/registry/test/components/ui/navigation_menu_test.rb +2 -2
- data/registry/test/components/ui/session_tabs_test.rb +3 -3
- data/registry/test/components/ui/spinner_test.rb +9 -9
- data/registry/test/components/ui/stepper_test.rb +239 -0
- data/registry/test/components/ui/tabs/trigger_test.rb +2 -2
- data/registry/test/components/ui/theme_toggle_test.rb +6 -8
- data/registry/test/components/ui/toast_test.rb +11 -10
- data/registry/test/components/ui/toggle_group_test.rb +162 -0
- metadata +253 -2
- data/registry/app/javascript/velvetkit_icons.ts +0 -78
|
@@ -39,49 +39,50 @@ class UI::ToastTest < ViewComponent::TestCase
|
|
|
39
39
|
def test_default_variant_classes
|
|
40
40
|
render_inline(UI::Toast.new(title: "x"))
|
|
41
41
|
classes = toast_el[:class].split
|
|
42
|
-
assert_includes classes, "[&>
|
|
42
|
+
assert_includes classes, "[&>svg]:text-muted-foreground"
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def test_success_variant_classes
|
|
46
46
|
render_inline(UI::Toast.new(variant: :success, title: "x"))
|
|
47
47
|
classes = toast_el[:class].split
|
|
48
|
-
assert_includes classes, "[&>
|
|
48
|
+
assert_includes classes, "[&>svg]:text-emerald-600"
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def test_destructive_variant_classes
|
|
52
52
|
render_inline(UI::Toast.new(variant: :destructive, title: "x"))
|
|
53
53
|
classes = toast_el[:class].split
|
|
54
|
-
assert_includes classes, "[&>
|
|
54
|
+
assert_includes classes, "[&>svg]:text-destructive"
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
def test_warning_variant_classes
|
|
58
58
|
render_inline(UI::Toast.new(variant: :warning, title: "x"))
|
|
59
59
|
classes = toast_el[:class].split
|
|
60
|
-
assert_includes classes, "[&>
|
|
60
|
+
assert_includes classes, "[&>svg]:text-amber-600"
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def test_info_variant_classes
|
|
64
64
|
render_inline(UI::Toast.new(variant: :info, title: "x"))
|
|
65
65
|
classes = toast_el[:class].split
|
|
66
|
-
assert_includes classes, "[&>
|
|
66
|
+
assert_includes classes, "[&>svg]:text-sky-600"
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
def test_default_icon_per_variant
|
|
70
|
-
{ default: "info", success: "circle-check",
|
|
71
|
-
|
|
70
|
+
{ default: "svg[data-icon='info']", success: "svg[data-icon='circle-check']",
|
|
71
|
+
destructive: "svg[data-icon='circle-alert']", warning: "svg[data-icon='circle-alert']",
|
|
72
|
+
info: "svg[data-icon='info']" }.each do |variant, icon|
|
|
72
73
|
render_inline(UI::Toast.new(variant: variant, title: "x"))
|
|
73
|
-
assert_selector
|
|
74
|
+
assert_selector icon
|
|
74
75
|
end
|
|
75
76
|
end
|
|
76
77
|
|
|
77
78
|
def test_icon_false_suppresses_icon
|
|
78
79
|
render_inline(UI::Toast.new(title: "x", icon: false))
|
|
79
|
-
refute_selector "[data-slot='toast'] >
|
|
80
|
+
refute_selector "[data-slot='toast'] > svg"
|
|
80
81
|
end
|
|
81
82
|
|
|
82
83
|
def test_icon_override
|
|
83
84
|
render_inline(UI::Toast.new(title: "x", icon: "rocket"))
|
|
84
|
-
assert_selector "[data-slot='toast'] >
|
|
85
|
+
assert_selector "[data-slot='toast'] > svg[data-icon='rocket']"
|
|
85
86
|
end
|
|
86
87
|
|
|
87
88
|
def test_title_renders
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "test_helper"
|
|
4
|
+
|
|
5
|
+
class UI::ToggleGroupTest < ViewComponent::TestCase
|
|
6
|
+
def setup_fixtures(*); end
|
|
7
|
+
def teardown_fixtures(*); end
|
|
8
|
+
|
|
9
|
+
Post = Struct.new(:align, :styles) do
|
|
10
|
+
def self.model_name = ActiveModel::Name.new(self, nil, "Post")
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def render_group(**opts)
|
|
14
|
+
render_inline(UI::ToggleGroup.new(name: "view", label: "View", **opts)) do |group|
|
|
15
|
+
group.with_item(value: "list", label: "List")
|
|
16
|
+
group.with_item(value: "grid", label: "Grid")
|
|
17
|
+
group.with_item(value: "board", label: "Board", disabled: true)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def test_single_is_a_radiogroup_of_radios
|
|
22
|
+
render_group(value: "grid")
|
|
23
|
+
group = page.find("[role='radiogroup'][aria-label='View']")
|
|
24
|
+
assert_equal 3, group.all("input[type='radio'][name='view']", visible: :all).size
|
|
25
|
+
assert page.find("input[value='grid']", visible: :all).checked?
|
|
26
|
+
refute page.find("input[value='list']", visible: :all).checked?
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def test_each_input_is_inside_its_label
|
|
30
|
+
render_group
|
|
31
|
+
assert_selector "label[data-slot='toggle-group-item'] input[value='list']", visible: :all
|
|
32
|
+
assert_selector "label[data-slot='toggle-group-item'] span", text: "List"
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def test_multiple_is_a_group_of_checkboxes_with_an_empty_value
|
|
36
|
+
render_inline(UI::ToggleGroup.new(name: "styles", value: %w[bold italic], multiple: true)) do |group|
|
|
37
|
+
group.with_item(value: "bold", label: "Bold")
|
|
38
|
+
group.with_item(value: "italic", label: "Italic")
|
|
39
|
+
group.with_item(value: "underline", label: "Underline")
|
|
40
|
+
end
|
|
41
|
+
assert_selector "[role='group']"
|
|
42
|
+
assert_equal 3, page.all("input[type='checkbox'][name='styles[]']", visible: :all).size
|
|
43
|
+
assert_selector "input[type='hidden'][name='styles[]'][value='']", visible: :all
|
|
44
|
+
checked = page.all("input[type='checkbox']", visible: :all).select(&:checked?).map(&:value)
|
|
45
|
+
assert_equal %w[bold italic], checked
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def test_values_compare_as_strings
|
|
49
|
+
render_inline(UI::ToggleGroup.new(name: "size", value: :md)) do |group|
|
|
50
|
+
group.with_item(value: :sm, label: "S")
|
|
51
|
+
group.with_item(value: :md, label: "M")
|
|
52
|
+
end
|
|
53
|
+
assert page.find("input[value='md']", visible: :all).checked?
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def test_item_disabled
|
|
57
|
+
render_group
|
|
58
|
+
assert page.find("input[value='board']", visible: :all).disabled?
|
|
59
|
+
refute page.find("input[value='list']", visible: :all).disabled?
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def test_group_disabled
|
|
63
|
+
render_group(disabled: true)
|
|
64
|
+
assert(page.all("input", visible: :all).all?(&:disabled?))
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def test_required_marks_the_radios
|
|
68
|
+
render_group(required: true)
|
|
69
|
+
assert_equal 3, page.all("input[required]", visible: :all).size
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def test_required_is_ignored_when_multiple
|
|
73
|
+
render_inline(UI::ToggleGroup.new(name: "s", multiple: true, required: true)) do |group|
|
|
74
|
+
group.with_item(value: "a", label: "A")
|
|
75
|
+
end
|
|
76
|
+
assert_no_selector "input[required]", visible: :all
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def test_form_builder_names_and_values
|
|
80
|
+
form = ActionView::Helpers::FormBuilder.new(:post, Post.new("center", nil), vc_test_controller.view_context, {})
|
|
81
|
+
render_inline(UI::ToggleGroup.new(form: form, field: :align)) do |group|
|
|
82
|
+
group.with_item(value: "left", label: "Left")
|
|
83
|
+
group.with_item(value: "center", label: "Center")
|
|
84
|
+
end
|
|
85
|
+
assert_selector "input[name='post[align]']", count: 2, visible: :all
|
|
86
|
+
assert page.find("input[value='center']", visible: :all).checked?
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def test_form_builder_multiple
|
|
90
|
+
form = ActionView::Helpers::FormBuilder.new(:post, Post.new(nil, %w[italic]), vc_test_controller.view_context, {})
|
|
91
|
+
render_inline(UI::ToggleGroup.new(form: form, field: :styles, multiple: true)) do |group|
|
|
92
|
+
group.with_item(value: "bold", label: "Bold")
|
|
93
|
+
group.with_item(value: "italic", label: "Italic")
|
|
94
|
+
end
|
|
95
|
+
assert_selector "input[type='checkbox'][name='post[styles][]']", count: 2, visible: :all
|
|
96
|
+
assert page.find("input[value='italic']", visible: :all).checked?
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def test_default_variant_is_a_muted_track
|
|
100
|
+
render_group
|
|
101
|
+
classes = page.find("[data-slot='toggle-group']")[:class].split
|
|
102
|
+
assert_includes classes, "bg-muted"
|
|
103
|
+
assert_includes classes, "rounded-lg"
|
|
104
|
+
assert_includes page.find("label", text: "List")[:class].split, "has-[:checked]:bg-background"
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def test_outline_variant
|
|
108
|
+
render_group(variant: :outline)
|
|
109
|
+
root = page.find("[data-slot='toggle-group'][data-variant='outline']")
|
|
110
|
+
assert_includes root[:class].split, "border"
|
|
111
|
+
assert_includes root[:class].split, "divide-x"
|
|
112
|
+
item = page.find("label", text: "List")[:class].split
|
|
113
|
+
assert_includes item, "has-[:checked]:bg-foreground/8"
|
|
114
|
+
assert_includes item, "text-muted-foreground"
|
|
115
|
+
assert_includes item, "hover:text-foreground"
|
|
116
|
+
refute(item.any? { |c| c.include?("hover:bg-") }, "hover must not tint the background")
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def test_sizes
|
|
120
|
+
{ sm: "h-7", default: "h-8", lg: "h-9" }.each do |size, height|
|
|
121
|
+
render_group(size: size)
|
|
122
|
+
assert_includes page.find("label", text: "List")[:class].split, height, size.to_s
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
def test_icon_with_text
|
|
127
|
+
render_inline(UI::ToggleGroup.new(name: "view")) do |group|
|
|
128
|
+
group.with_item(value: "list", label: "List", icon: "list")
|
|
129
|
+
end
|
|
130
|
+
assert_selector "label svg[data-icon='list']", visible: :all
|
|
131
|
+
assert_selector "label span", text: "List"
|
|
132
|
+
assert_nil page.find("label")[:title]
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
def test_icon_only_keeps_a_hidden_name_and_a_tooltip
|
|
136
|
+
render_inline(UI::ToggleGroup.new(name: "align")) do |group|
|
|
137
|
+
group.with_item(value: "left", label: "Align left", icon: "align-left", icon_only: true)
|
|
138
|
+
end
|
|
139
|
+
label = page.find("label")
|
|
140
|
+
assert_equal "Align left", label[:title]
|
|
141
|
+
assert_selector "label span.sr-only", text: "Align left", visible: :all
|
|
142
|
+
assert_includes label[:class].split, "w-8"
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
def test_block_is_the_item_text
|
|
146
|
+
render_inline(UI::ToggleGroup.new(name: "plan")) do |group|
|
|
147
|
+
group.with_item(value: "yearly") { "Yearly" }
|
|
148
|
+
end
|
|
149
|
+
assert_selector "label span", text: "Yearly"
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def test_user_class_and_attrs_pass_through
|
|
153
|
+
render_inline(UI::ToggleGroup.new(name: "v", id: "view-switch", class: "w-full",
|
|
154
|
+
data: { action: "change->filters#apply" })) do |group|
|
|
155
|
+
group.with_item(value: "a", label: "A", class: "flex-1", data: { test_id: "a" })
|
|
156
|
+
end
|
|
157
|
+
root = page.find("#view-switch[data-slot='toggle-group'][data-action='change->filters#apply']")
|
|
158
|
+
assert_includes root[:class].split, "w-full"
|
|
159
|
+
refute_includes root[:class].split, "w-fit"
|
|
160
|
+
assert_selector "label.flex-1[data-test-id='a'][data-slot='toggle-group-item']"
|
|
161
|
+
end
|
|
162
|
+
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.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rathan Kumar
|
|
@@ -40,8 +40,10 @@ files:
|
|
|
40
40
|
- lib/generators/velvetkit/add/add_generator.rb
|
|
41
41
|
- lib/generators/velvetkit/ai/ai_generator.rb
|
|
42
42
|
- lib/generators/velvetkit/helpers.rb
|
|
43
|
+
- lib/generators/velvetkit/icons/icons_generator.rb
|
|
43
44
|
- lib/generators/velvetkit/install/install_generator.rb
|
|
44
45
|
- lib/velvetkit.rb
|
|
46
|
+
- lib/velvetkit/icons.rb
|
|
45
47
|
- lib/velvetkit/namespace.rb
|
|
46
48
|
- lib/velvetkit/reference.rb
|
|
47
49
|
- lib/velvetkit/registry.rb
|
|
@@ -107,6 +109,8 @@ files:
|
|
|
107
109
|
- registry/app/components/ui/checkbox.rb
|
|
108
110
|
- registry/app/components/ui/collapsible.html.erb
|
|
109
111
|
- registry/app/components/ui/collapsible.rb
|
|
112
|
+
- registry/app/components/ui/confirm_dialog.html.erb
|
|
113
|
+
- registry/app/components/ui/confirm_dialog.rb
|
|
110
114
|
- registry/app/components/ui/data_grid.html.erb
|
|
111
115
|
- registry/app/components/ui/data_grid.rb
|
|
112
116
|
- registry/app/components/ui/date_picker.html.erb
|
|
@@ -129,6 +133,8 @@ files:
|
|
|
129
133
|
- registry/app/components/ui/dialog/trigger.rb
|
|
130
134
|
- registry/app/components/ui/divider.html.erb
|
|
131
135
|
- registry/app/components/ui/divider.rb
|
|
136
|
+
- registry/app/components/ui/empty_state.html.erb
|
|
137
|
+
- registry/app/components/ui/empty_state.rb
|
|
132
138
|
- registry/app/components/ui/file_field.html.erb
|
|
133
139
|
- registry/app/components/ui/file_field.rb
|
|
134
140
|
- registry/app/components/ui/form_field.html.erb
|
|
@@ -228,6 +234,10 @@ files:
|
|
|
228
234
|
- registry/app/components/ui/skeleton.rb
|
|
229
235
|
- registry/app/components/ui/spinner.html.erb
|
|
230
236
|
- registry/app/components/ui/spinner.rb
|
|
237
|
+
- registry/app/components/ui/stepper.html.erb
|
|
238
|
+
- registry/app/components/ui/stepper.rb
|
|
239
|
+
- registry/app/components/ui/stepper/step.html.erb
|
|
240
|
+
- registry/app/components/ui/stepper/step.rb
|
|
231
241
|
- registry/app/components/ui/switch.html.erb
|
|
232
242
|
- registry/app/components/ui/switch.rb
|
|
233
243
|
- registry/app/components/ui/table.html.erb
|
|
@@ -262,6 +272,10 @@ files:
|
|
|
262
272
|
- registry/app/components/ui/toast.rb
|
|
263
273
|
- registry/app/components/ui/toast/viewport.html.erb
|
|
264
274
|
- registry/app/components/ui/toast/viewport.rb
|
|
275
|
+
- registry/app/components/ui/toggle_group.html.erb
|
|
276
|
+
- registry/app/components/ui/toggle_group.rb
|
|
277
|
+
- registry/app/components/ui/toggle_group/item.html.erb
|
|
278
|
+
- registry/app/components/ui/toggle_group/item.rb
|
|
265
279
|
- registry/app/components/ui/tooltip.html.erb
|
|
266
280
|
- registry/app/components/ui/tooltip.rb
|
|
267
281
|
- registry/app/components/ui/tooltip/content.html.erb
|
|
@@ -287,6 +301,7 @@ files:
|
|
|
287
301
|
- registry/app/javascript/controllers/ui/accordion_controller.ts
|
|
288
302
|
- registry/app/javascript/controllers/ui/alert_controller.ts
|
|
289
303
|
- registry/app/javascript/controllers/ui/banner_controller.ts
|
|
304
|
+
- registry/app/javascript/controllers/ui/confirm_dialog_controller.ts
|
|
290
305
|
- registry/app/javascript/controllers/ui/data_grid_controller.ts
|
|
291
306
|
- registry/app/javascript/controllers/ui/date_picker_controller.ts
|
|
292
307
|
- registry/app/javascript/controllers/ui/dialog_controller.ts
|
|
@@ -298,17 +313,216 @@ files:
|
|
|
298
313
|
- registry/app/javascript/controllers/ui/select_controller.ts
|
|
299
314
|
- registry/app/javascript/controllers/ui/session_tabs_controller.ts
|
|
300
315
|
- registry/app/javascript/controllers/ui/sidebar_controller.ts
|
|
316
|
+
- registry/app/javascript/controllers/ui/stepper_controller.ts
|
|
301
317
|
- registry/app/javascript/controllers/ui/table_of_contents_controller.ts
|
|
302
318
|
- registry/app/javascript/controllers/ui/tabs_controller.ts
|
|
303
319
|
- registry/app/javascript/controllers/ui/theme_controller.ts
|
|
304
320
|
- registry/app/javascript/controllers/ui/toast_controller.ts
|
|
305
321
|
- registry/app/javascript/controllers/ui/toast_viewport_controller.ts
|
|
306
322
|
- registry/app/javascript/controllers/ui/tooltip_controller.ts
|
|
307
|
-
- registry/app/javascript/velvetkit_icons.ts
|
|
308
323
|
- registry/app/views/layouts/_theme_script.html.erb
|
|
309
324
|
- registry/components.yml
|
|
310
325
|
- registry/config/locales/velvetkit.en.yml
|
|
311
326
|
- registry/docs/agents.md
|
|
327
|
+
- registry/icons.yml
|
|
328
|
+
- registry/icons/lucide/LICENSE
|
|
329
|
+
- registry/icons/lucide/align-center.svg
|
|
330
|
+
- registry/icons/lucide/align-left.svg
|
|
331
|
+
- registry/icons/lucide/align-right.svg
|
|
332
|
+
- registry/icons/lucide/arrow-left.svg
|
|
333
|
+
- registry/icons/lucide/arrow-right.svg
|
|
334
|
+
- registry/icons/lucide/badge-check.svg
|
|
335
|
+
- registry/icons/lucide/bar-chart-3.svg
|
|
336
|
+
- registry/icons/lucide/bell.svg
|
|
337
|
+
- registry/icons/lucide/bold.svg
|
|
338
|
+
- registry/icons/lucide/book-open.svg
|
|
339
|
+
- registry/icons/lucide/calendar.svg
|
|
340
|
+
- registry/icons/lucide/chart-column.svg
|
|
341
|
+
- registry/icons/lucide/check.svg
|
|
342
|
+
- registry/icons/lucide/chevron-down.svg
|
|
343
|
+
- registry/icons/lucide/chevron-left.svg
|
|
344
|
+
- registry/icons/lucide/chevron-right.svg
|
|
345
|
+
- registry/icons/lucide/chevrons-up-down.svg
|
|
346
|
+
- registry/icons/lucide/circle-alert.svg
|
|
347
|
+
- registry/icons/lucide/circle-check.svg
|
|
348
|
+
- registry/icons/lucide/cloud.svg
|
|
349
|
+
- registry/icons/lucide/credit-card.svg
|
|
350
|
+
- registry/icons/lucide/ellipsis-vertical.svg
|
|
351
|
+
- registry/icons/lucide/ellipsis.svg
|
|
352
|
+
- registry/icons/lucide/eye-off.svg
|
|
353
|
+
- registry/icons/lucide/eye.svg
|
|
354
|
+
- registry/icons/lucide/file-text.svg
|
|
355
|
+
- registry/icons/lucide/folder-kanban.svg
|
|
356
|
+
- registry/icons/lucide/git-branch.svg
|
|
357
|
+
- registry/icons/lucide/globe.svg
|
|
358
|
+
- registry/icons/lucide/graduation-cap.svg
|
|
359
|
+
- registry/icons/lucide/grip-vertical.svg
|
|
360
|
+
- registry/icons/lucide/home.svg
|
|
361
|
+
- registry/icons/lucide/inbox.svg
|
|
362
|
+
- registry/icons/lucide/info.svg
|
|
363
|
+
- registry/icons/lucide/italic.svg
|
|
364
|
+
- registry/icons/lucide/layout-dashboard.svg
|
|
365
|
+
- registry/icons/lucide/layout-grid.svg
|
|
366
|
+
- registry/icons/lucide/life-buoy.svg
|
|
367
|
+
- registry/icons/lucide/list.svg
|
|
368
|
+
- registry/icons/lucide/loader.svg
|
|
369
|
+
- registry/icons/lucide/lock.svg
|
|
370
|
+
- registry/icons/lucide/log-out.svg
|
|
371
|
+
- registry/icons/lucide/mail.svg
|
|
372
|
+
- registry/icons/lucide/menu.svg
|
|
373
|
+
- registry/icons/lucide/message-circle.svg
|
|
374
|
+
- registry/icons/lucide/monitor.svg
|
|
375
|
+
- registry/icons/lucide/moon.svg
|
|
376
|
+
- registry/icons/lucide/newspaper.svg
|
|
377
|
+
- registry/icons/lucide/panel-left.svg
|
|
378
|
+
- registry/icons/lucide/plus.svg
|
|
379
|
+
- registry/icons/lucide/qr-code.svg
|
|
380
|
+
- registry/icons/lucide/rocket.svg
|
|
381
|
+
- registry/icons/lucide/rotate-cw.svg
|
|
382
|
+
- registry/icons/lucide/search.svg
|
|
383
|
+
- registry/icons/lucide/settings.svg
|
|
384
|
+
- registry/icons/lucide/shield-check.svg
|
|
385
|
+
- registry/icons/lucide/shield.svg
|
|
386
|
+
- registry/icons/lucide/store.svg
|
|
387
|
+
- registry/icons/lucide/sun.svg
|
|
388
|
+
- registry/icons/lucide/trash-2.svg
|
|
389
|
+
- registry/icons/lucide/underline.svg
|
|
390
|
+
- registry/icons/lucide/upload.svg
|
|
391
|
+
- registry/icons/lucide/user.svg
|
|
392
|
+
- registry/icons/lucide/users.svg
|
|
393
|
+
- registry/icons/lucide/workflow.svg
|
|
394
|
+
- registry/icons/lucide/x.svg
|
|
395
|
+
- registry/icons/phosphor/LICENSE
|
|
396
|
+
- registry/icons/phosphor/arrow-clockwise.svg
|
|
397
|
+
- registry/icons/phosphor/arrow-left.svg
|
|
398
|
+
- registry/icons/phosphor/arrow-right.svg
|
|
399
|
+
- registry/icons/phosphor/bell.svg
|
|
400
|
+
- registry/icons/phosphor/book-open.svg
|
|
401
|
+
- registry/icons/phosphor/calendar-blank.svg
|
|
402
|
+
- registry/icons/phosphor/caret-down.svg
|
|
403
|
+
- registry/icons/phosphor/caret-left.svg
|
|
404
|
+
- registry/icons/phosphor/caret-right.svg
|
|
405
|
+
- registry/icons/phosphor/caret-up-down.svg
|
|
406
|
+
- registry/icons/phosphor/chart-bar.svg
|
|
407
|
+
- registry/icons/phosphor/chat-circle.svg
|
|
408
|
+
- registry/icons/phosphor/check-circle.svg
|
|
409
|
+
- registry/icons/phosphor/check.svg
|
|
410
|
+
- registry/icons/phosphor/cloud.svg
|
|
411
|
+
- registry/icons/phosphor/credit-card.svg
|
|
412
|
+
- registry/icons/phosphor/desktop.svg
|
|
413
|
+
- registry/icons/phosphor/dots-six-vertical.svg
|
|
414
|
+
- registry/icons/phosphor/dots-three-vertical.svg
|
|
415
|
+
- registry/icons/phosphor/dots-three.svg
|
|
416
|
+
- registry/icons/phosphor/envelope.svg
|
|
417
|
+
- registry/icons/phosphor/eye-slash.svg
|
|
418
|
+
- registry/icons/phosphor/eye.svg
|
|
419
|
+
- registry/icons/phosphor/file-text.svg
|
|
420
|
+
- registry/icons/phosphor/flow-arrow.svg
|
|
421
|
+
- registry/icons/phosphor/gear.svg
|
|
422
|
+
- registry/icons/phosphor/git-branch.svg
|
|
423
|
+
- registry/icons/phosphor/globe.svg
|
|
424
|
+
- registry/icons/phosphor/graduation-cap.svg
|
|
425
|
+
- registry/icons/phosphor/grid-four.svg
|
|
426
|
+
- registry/icons/phosphor/house.svg
|
|
427
|
+
- registry/icons/phosphor/info.svg
|
|
428
|
+
- registry/icons/phosphor/kanban.svg
|
|
429
|
+
- registry/icons/phosphor/lifebuoy.svg
|
|
430
|
+
- registry/icons/phosphor/list.svg
|
|
431
|
+
- registry/icons/phosphor/lock.svg
|
|
432
|
+
- registry/icons/phosphor/magnifying-glass.svg
|
|
433
|
+
- registry/icons/phosphor/moon.svg
|
|
434
|
+
- registry/icons/phosphor/newspaper.svg
|
|
435
|
+
- registry/icons/phosphor/plus.svg
|
|
436
|
+
- registry/icons/phosphor/qr-code.svg
|
|
437
|
+
- registry/icons/phosphor/rocket.svg
|
|
438
|
+
- registry/icons/phosphor/seal-check.svg
|
|
439
|
+
- registry/icons/phosphor/shield-check.svg
|
|
440
|
+
- registry/icons/phosphor/shield.svg
|
|
441
|
+
- registry/icons/phosphor/sidebar.svg
|
|
442
|
+
- registry/icons/phosphor/sign-out.svg
|
|
443
|
+
- registry/icons/phosphor/spinner.svg
|
|
444
|
+
- registry/icons/phosphor/squares-four.svg
|
|
445
|
+
- registry/icons/phosphor/storefront.svg
|
|
446
|
+
- registry/icons/phosphor/sun.svg
|
|
447
|
+
- registry/icons/phosphor/text-align-center.svg
|
|
448
|
+
- registry/icons/phosphor/text-align-left.svg
|
|
449
|
+
- registry/icons/phosphor/text-align-right.svg
|
|
450
|
+
- registry/icons/phosphor/text-b.svg
|
|
451
|
+
- registry/icons/phosphor/text-italic.svg
|
|
452
|
+
- registry/icons/phosphor/text-underline.svg
|
|
453
|
+
- registry/icons/phosphor/trash.svg
|
|
454
|
+
- registry/icons/phosphor/tray.svg
|
|
455
|
+
- registry/icons/phosphor/upload-simple.svg
|
|
456
|
+
- registry/icons/phosphor/user.svg
|
|
457
|
+
- registry/icons/phosphor/users.svg
|
|
458
|
+
- registry/icons/phosphor/warning-circle.svg
|
|
459
|
+
- registry/icons/phosphor/x.svg
|
|
460
|
+
- registry/icons/tabler/LICENSE
|
|
461
|
+
- registry/icons/tabler/alert-circle.svg
|
|
462
|
+
- registry/icons/tabler/align-center.svg
|
|
463
|
+
- registry/icons/tabler/align-left.svg
|
|
464
|
+
- registry/icons/tabler/align-right.svg
|
|
465
|
+
- registry/icons/tabler/arrow-left.svg
|
|
466
|
+
- registry/icons/tabler/arrow-right.svg
|
|
467
|
+
- registry/icons/tabler/bell.svg
|
|
468
|
+
- registry/icons/tabler/bold.svg
|
|
469
|
+
- registry/icons/tabler/book.svg
|
|
470
|
+
- registry/icons/tabler/building-store.svg
|
|
471
|
+
- registry/icons/tabler/calendar.svg
|
|
472
|
+
- registry/icons/tabler/chart-bar.svg
|
|
473
|
+
- registry/icons/tabler/check.svg
|
|
474
|
+
- registry/icons/tabler/chevron-down.svg
|
|
475
|
+
- registry/icons/tabler/chevron-left.svg
|
|
476
|
+
- registry/icons/tabler/chevron-right.svg
|
|
477
|
+
- registry/icons/tabler/circle-check.svg
|
|
478
|
+
- registry/icons/tabler/cloud.svg
|
|
479
|
+
- registry/icons/tabler/credit-card.svg
|
|
480
|
+
- registry/icons/tabler/device-desktop.svg
|
|
481
|
+
- registry/icons/tabler/dots-vertical.svg
|
|
482
|
+
- registry/icons/tabler/dots.svg
|
|
483
|
+
- registry/icons/tabler/eye-off.svg
|
|
484
|
+
- registry/icons/tabler/eye.svg
|
|
485
|
+
- registry/icons/tabler/file-text.svg
|
|
486
|
+
- registry/icons/tabler/git-branch.svg
|
|
487
|
+
- registry/icons/tabler/grip-vertical.svg
|
|
488
|
+
- registry/icons/tabler/home.svg
|
|
489
|
+
- registry/icons/tabler/inbox.svg
|
|
490
|
+
- registry/icons/tabler/info-circle.svg
|
|
491
|
+
- registry/icons/tabler/italic.svg
|
|
492
|
+
- registry/icons/tabler/layout-dashboard.svg
|
|
493
|
+
- registry/icons/tabler/layout-grid.svg
|
|
494
|
+
- registry/icons/tabler/layout-kanban.svg
|
|
495
|
+
- registry/icons/tabler/layout-sidebar.svg
|
|
496
|
+
- registry/icons/tabler/lifebuoy.svg
|
|
497
|
+
- registry/icons/tabler/list.svg
|
|
498
|
+
- registry/icons/tabler/loader.svg
|
|
499
|
+
- registry/icons/tabler/lock.svg
|
|
500
|
+
- registry/icons/tabler/logout.svg
|
|
501
|
+
- registry/icons/tabler/mail.svg
|
|
502
|
+
- registry/icons/tabler/menu-2.svg
|
|
503
|
+
- registry/icons/tabler/message-circle.svg
|
|
504
|
+
- registry/icons/tabler/moon.svg
|
|
505
|
+
- registry/icons/tabler/news.svg
|
|
506
|
+
- registry/icons/tabler/plus.svg
|
|
507
|
+
- registry/icons/tabler/qrcode.svg
|
|
508
|
+
- registry/icons/tabler/rocket.svg
|
|
509
|
+
- registry/icons/tabler/rosette-discount-check.svg
|
|
510
|
+
- registry/icons/tabler/rotate-clockwise.svg
|
|
511
|
+
- registry/icons/tabler/school.svg
|
|
512
|
+
- registry/icons/tabler/search.svg
|
|
513
|
+
- registry/icons/tabler/selector.svg
|
|
514
|
+
- registry/icons/tabler/settings.svg
|
|
515
|
+
- registry/icons/tabler/shield-check.svg
|
|
516
|
+
- registry/icons/tabler/shield.svg
|
|
517
|
+
- registry/icons/tabler/sitemap.svg
|
|
518
|
+
- registry/icons/tabler/sun.svg
|
|
519
|
+
- registry/icons/tabler/trash.svg
|
|
520
|
+
- registry/icons/tabler/underline.svg
|
|
521
|
+
- registry/icons/tabler/upload.svg
|
|
522
|
+
- registry/icons/tabler/user.svg
|
|
523
|
+
- registry/icons/tabler/users.svg
|
|
524
|
+
- registry/icons/tabler/world.svg
|
|
525
|
+
- registry/icons/tabler/x.svg
|
|
312
526
|
- registry/test/components/previews/ui/accordion_preview.rb
|
|
313
527
|
- registry/test/components/previews/ui/accordion_preview/faq_style.html.erb
|
|
314
528
|
- registry/test/components/previews/ui/accordion_preview/multiple.html.erb
|
|
@@ -367,6 +581,12 @@ files:
|
|
|
367
581
|
- registry/test/components/previews/ui/collapsible_preview.rb
|
|
368
582
|
- registry/test/components/previews/ui/collapsible_preview/default.html.erb
|
|
369
583
|
- registry/test/components/previews/ui/collapsible_preview/show_more.html.erb
|
|
584
|
+
- registry/test/components/previews/ui/confirm_dialog_preview.rb
|
|
585
|
+
- registry/test/components/previews/ui/confirm_dialog_preview/destructive.html.erb
|
|
586
|
+
- registry/test/components/previews/ui/confirm_dialog_preview/in_form.html.erb
|
|
587
|
+
- registry/test/components/previews/ui/confirm_dialog_preview/on_link.html.erb
|
|
588
|
+
- registry/test/components/previews/ui/confirm_dialog_preview/plain.html.erb
|
|
589
|
+
- registry/test/components/previews/ui/confirm_dialog_preview/with_description.html.erb
|
|
370
590
|
- registry/test/components/previews/ui/data_grid_preview.rb
|
|
371
591
|
- registry/test/components/previews/ui/date_picker_preview.rb
|
|
372
592
|
- registry/test/components/previews/ui/date_picker_preview/default.html.erb
|
|
@@ -385,6 +605,12 @@ files:
|
|
|
385
605
|
- registry/test/components/previews/ui/divider_preview/horizontal.html.erb
|
|
386
606
|
- registry/test/components/previews/ui/divider_preview/vertical.html.erb
|
|
387
607
|
- registry/test/components/previews/ui/divider_preview/with_label.html.erb
|
|
608
|
+
- registry/test/components/previews/ui/empty_state_preview.rb
|
|
609
|
+
- registry/test/components/previews/ui/empty_state_preview/in_card.html.erb
|
|
610
|
+
- registry/test/components/previews/ui/empty_state_preview/no_results.html.erb
|
|
611
|
+
- registry/test/components/previews/ui/empty_state_preview/outline.html.erb
|
|
612
|
+
- registry/test/components/previews/ui/empty_state_preview/with_actions.html.erb
|
|
613
|
+
- registry/test/components/previews/ui/empty_state_preview/with_media.html.erb
|
|
388
614
|
- registry/test/components/previews/ui/file_field_preview.rb
|
|
389
615
|
- registry/test/components/previews/ui/file_field_preview/multiple_files.html.erb
|
|
390
616
|
- registry/test/components/previews/ui/file_field_preview/with_error.html.erb
|
|
@@ -394,6 +620,8 @@ files:
|
|
|
394
620
|
- registry/test/components/previews/ui/form_field_preview/model_errors.html.erb
|
|
395
621
|
- registry/test/components/previews/ui/icon_preview.rb
|
|
396
622
|
- registry/test/components/previews/ui/icon_preview/common.html.erb
|
|
623
|
+
- registry/test/components/previews/ui/icon_preview/labelled.html.erb
|
|
624
|
+
- registry/test/components/previews/ui/icon_preview/missing.html.erb
|
|
397
625
|
- registry/test/components/previews/ui/icon_preview/sizes.html.erb
|
|
398
626
|
- registry/test/components/previews/ui/image_preview.rb
|
|
399
627
|
- registry/test/components/previews/ui/image_preview/radii.html.erb
|
|
@@ -467,6 +695,18 @@ files:
|
|
|
467
695
|
- registry/test/components/previews/ui/spinner_preview.rb
|
|
468
696
|
- registry/test/components/previews/ui/spinner_preview/in_buttons.html.erb
|
|
469
697
|
- registry/test/components/previews/ui/spinner_preview/sizes.html.erb
|
|
698
|
+
- registry/test/components/previews/ui/stepper_preview.rb
|
|
699
|
+
- registry/test/components/previews/ui/stepper_preview/approvals.html.erb
|
|
700
|
+
- registry/test/components/previews/ui/stepper_preview/checklist.html.erb
|
|
701
|
+
- registry/test/components/previews/ui/stepper_preview/dot_wizard.html.erb
|
|
702
|
+
- registry/test/components/previews/ui/stepper_preview/failed_deploy.html.erb
|
|
703
|
+
- registry/test/components/previews/ui/stepper_preview/inline.html.erb
|
|
704
|
+
- registry/test/components/previews/ui/stepper_preview/onboarding.html.erb
|
|
705
|
+
- registry/test/components/previews/ui/stepper_preview/order_tracking.html.erb
|
|
706
|
+
- registry/test/components/previews/ui/stepper_preview/price_calculator.html.erb
|
|
707
|
+
- registry/test/components/previews/ui/stepper_preview/server_driven.html.erb
|
|
708
|
+
- registry/test/components/previews/ui/stepper_preview/sidebar.html.erb
|
|
709
|
+
- registry/test/components/previews/ui/stepper_preview/wizard.html.erb
|
|
470
710
|
- registry/test/components/previews/ui/switch_preview.rb
|
|
471
711
|
- registry/test/components/previews/ui/switch_preview/default.html.erb
|
|
472
712
|
- registry/test/components/previews/ui/switch_preview/sizes.html.erb
|
|
@@ -499,6 +739,13 @@ files:
|
|
|
499
739
|
- registry/test/components/previews/ui/toast_preview/live_viewport.html.erb
|
|
500
740
|
- registry/test/components/previews/ui/toast_preview/variants.html.erb
|
|
501
741
|
- registry/test/components/previews/ui/toast_preview/with_action.html.erb
|
|
742
|
+
- registry/test/components/previews/ui/toggle_group_preview.rb
|
|
743
|
+
- registry/test/components/previews/ui/toggle_group_preview/icon_only.html.erb
|
|
744
|
+
- registry/test/components/previews/ui/toggle_group_preview/in_form.html.erb
|
|
745
|
+
- registry/test/components/previews/ui/toggle_group_preview/multiple.html.erb
|
|
746
|
+
- registry/test/components/previews/ui/toggle_group_preview/outline.html.erb
|
|
747
|
+
- registry/test/components/previews/ui/toggle_group_preview/sizes.html.erb
|
|
748
|
+
- registry/test/components/previews/ui/toggle_group_preview/with_icons.html.erb
|
|
502
749
|
- registry/test/components/previews/ui/tooltip_preview.rb
|
|
503
750
|
- registry/test/components/previews/ui/tooltip_preview/default.html.erb
|
|
504
751
|
- registry/test/components/previews/ui/tooltip_preview/positions.html.erb
|
|
@@ -536,12 +783,14 @@ files:
|
|
|
536
783
|
- registry/test/components/ui/card_test.rb
|
|
537
784
|
- registry/test/components/ui/checkbox_test.rb
|
|
538
785
|
- registry/test/components/ui/collapsible_test.rb
|
|
786
|
+
- registry/test/components/ui/confirm_dialog_test.rb
|
|
539
787
|
- registry/test/components/ui/data_grid_test.rb
|
|
540
788
|
- registry/test/components/ui/date_picker_test.rb
|
|
541
789
|
- registry/test/components/ui/dialog/content_test.rb
|
|
542
790
|
- registry/test/components/ui/dialog/trigger_test.rb
|
|
543
791
|
- registry/test/components/ui/dialog_test.rb
|
|
544
792
|
- registry/test/components/ui/divider_test.rb
|
|
793
|
+
- registry/test/components/ui/empty_state_test.rb
|
|
545
794
|
- registry/test/components/ui/file_field_test.rb
|
|
546
795
|
- registry/test/components/ui/form_field/messages_test.rb
|
|
547
796
|
- registry/test/components/ui/form_field_test.rb
|
|
@@ -579,6 +828,7 @@ files:
|
|
|
579
828
|
- registry/test/components/ui/sidebar_test.rb
|
|
580
829
|
- registry/test/components/ui/skeleton_test.rb
|
|
581
830
|
- registry/test/components/ui/spinner_test.rb
|
|
831
|
+
- registry/test/components/ui/stepper_test.rb
|
|
582
832
|
- registry/test/components/ui/switch_test.rb
|
|
583
833
|
- registry/test/components/ui/table_of_contents/item_test.rb
|
|
584
834
|
- registry/test/components/ui/table_of_contents_test.rb
|
|
@@ -592,6 +842,7 @@ files:
|
|
|
592
842
|
- registry/test/components/ui/theme_toggle_test.rb
|
|
593
843
|
- registry/test/components/ui/toast/viewport_test.rb
|
|
594
844
|
- registry/test/components/ui/toast_test.rb
|
|
845
|
+
- registry/test/components/ui/toggle_group_test.rb
|
|
595
846
|
- registry/test/components/ui/tooltip/content_test.rb
|
|
596
847
|
- registry/test/components/ui/tooltip/trigger_test.rb
|
|
597
848
|
- registry/test/components/ui/tooltip_test.rb
|