shadcn-rails 0.2.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/CHANGELOG.md +66 -2
- data/README.md +21 -8
- data/__mocks__/@floating-ui/dom.js +67 -0
- data/app/assets/javascripts/shadcn/controllers/combobox_controller.js +23 -2
- data/app/assets/javascripts/shadcn/controllers/context_menu_controller.js +4 -31
- data/app/assets/javascripts/shadcn/controllers/dropdown_controller.js +32 -41
- data/app/assets/javascripts/shadcn/controllers/hover_card_controller.js +29 -55
- data/app/assets/javascripts/shadcn/controllers/popover_controller.js +29 -54
- data/app/assets/javascripts/shadcn/controllers/select_controller.js +26 -8
- data/app/assets/javascripts/shadcn/controllers/tooltip_controller.js +28 -59
- data/app/assets/javascripts/shadcn/index.js +7 -1
- data/app/assets/javascripts/shadcn/utils/floating.js +179 -0
- data/app/assets/stylesheets/shadcn/base.css +32 -0
- data/app/components/shadcn/accordion_component.html.erb +8 -0
- data/app/components/shadcn/accordion_component.rb +6 -15
- data/app/components/shadcn/alert_component.html.erb +6 -0
- data/app/components/shadcn/alert_component.rb +0 -18
- data/app/components/shadcn/alert_dialog_component.html.erb +12 -0
- data/app/components/shadcn/alert_dialog_component.rb +7 -27
- data/app/components/shadcn/aspect_ratio_component.html.erb +7 -0
- data/app/components/shadcn/aspect_ratio_component.rb +4 -19
- data/app/components/shadcn/avatar_component.html.erb +20 -0
- data/app/components/shadcn/avatar_component.rb +8 -36
- data/app/components/shadcn/badge_component.html.erb +1 -0
- data/app/components/shadcn/badge_component.rb +0 -11
- data/app/components/shadcn/base_component.rb +15 -2
- data/app/components/shadcn/breadcrumb_component.html.erb +5 -0
- data/app/components/shadcn/breadcrumb_component.rb +6 -16
- data/app/components/shadcn/button_component.html.erb +18 -0
- data/app/components/shadcn/button_component.rb +1 -41
- data/app/components/shadcn/card_component.html.erb +8 -0
- data/app/components/shadcn/card_component.rb +2 -6
- data/app/components/shadcn/checkbox_component.html.erb +32 -0
- data/app/components/shadcn/checkbox_component.rb +4 -43
- data/app/components/shadcn/collapsible_component.html.erb +8 -0
- data/app/components/shadcn/collapsible_component.rb +6 -15
- data/app/components/shadcn/context_menu_component.html.erb +11 -0
- data/app/components/shadcn/context_menu_component.rb +6 -26
- data/app/components/shadcn/dialog_component.html.erb +14 -0
- data/app/components/shadcn/dialog_component.rb +8 -29
- data/app/components/shadcn/drawer_component.html.erb +12 -0
- data/app/components/shadcn/drawer_component.rb +7 -27
- data/app/components/shadcn/dropdown_menu_component.html.erb +14 -0
- data/app/components/shadcn/dropdown_menu_component.rb +9 -29
- data/app/components/shadcn/field_component.rb +7 -8
- data/app/components/shadcn/hover_card_component.html.erb +12 -0
- data/app/components/shadcn/hover_card_component.rb +7 -26
- data/app/components/shadcn/input_component.html.erb +18 -0
- data/app/components/shadcn/input_component.rb +2 -27
- data/app/components/shadcn/input_otp_component.rb +3 -3
- data/app/components/shadcn/kbd_component.html.erb +1 -0
- data/app/components/shadcn/kbd_component.rb +3 -10
- data/app/components/shadcn/label_component.html.erb +3 -0
- data/app/components/shadcn/label_component.rb +2 -18
- data/app/components/shadcn/menubar_component.html.erb +6 -0
- data/app/components/shadcn/menubar_component.rb +4 -15
- data/app/components/shadcn/native_select_component.html.erb +22 -0
- data/app/components/shadcn/native_select_component.rb +9 -39
- data/app/components/shadcn/navigation_menu_component.html.erb +6 -0
- data/app/components/shadcn/navigation_menu_component.rb +4 -15
- data/app/components/shadcn/pagination_component.html.erb +5 -0
- data/app/components/shadcn/pagination_component.rb +11 -15
- data/app/components/shadcn/popover_component.html.erb +15 -0
- data/app/components/shadcn/popover_component.rb +10 -30
- data/app/components/shadcn/progress_component.html.erb +13 -0
- data/app/components/shadcn/progress_component.rb +6 -26
- data/app/components/shadcn/radio_group_component.html.erb +8 -0
- data/app/components/shadcn/radio_group_component.rb +12 -26
- data/app/components/shadcn/scroll_area_component.html.erb +7 -0
- data/app/components/shadcn/scroll_area_component.rb +4 -16
- data/app/components/shadcn/select_component.html.erb +46 -0
- data/app/components/shadcn/select_component.rb +6 -80
- data/app/components/shadcn/separator_component.html.erb +5 -0
- data/app/components/shadcn/separator_component.rb +6 -14
- data/app/components/shadcn/sheet_component.html.erb +12 -0
- data/app/components/shadcn/sheet_component.rb +7 -27
- data/app/components/shadcn/sidebar_component.rb +2 -2
- data/app/components/shadcn/skeleton_component.html.erb +1 -0
- data/app/components/shadcn/skeleton_component.rb +4 -2
- data/app/components/shadcn/slider_component.html.erb +12 -0
- data/app/components/shadcn/slider_component.rb +2 -21
- data/app/components/shadcn/spinner_component.html.erb +18 -0
- data/app/components/shadcn/spinner_component.rb +2 -30
- data/app/components/shadcn/switch_component.html.erb +72 -0
- data/app/components/shadcn/switch_component.rb +4 -82
- data/app/components/shadcn/table_component.html.erb +9 -0
- data/app/components/shadcn/table_component.rb +2 -10
- data/app/components/shadcn/tabs_component.html.erb +8 -0
- data/app/components/shadcn/tabs_component.rb +4 -17
- data/app/components/shadcn/textarea_component.html.erb +13 -0
- data/app/components/shadcn/textarea_component.rb +6 -22
- data/app/components/shadcn/toast_component.html.erb +36 -0
- data/app/components/shadcn/toast_component.rb +6 -54
- data/app/components/shadcn/toggle_component.html.erb +12 -0
- data/app/components/shadcn/toggle_component.rb +6 -21
- data/app/components/shadcn/toggle_group_component.html.erb +14 -0
- data/app/components/shadcn/toggle_group_component.rb +6 -29
- data/app/components/shadcn/tooltip_component.html.erb +20 -0
- data/app/components/shadcn/tooltip_component.rb +13 -38
- data/lib/generators/shadcn/add/USAGE +24 -0
- data/lib/generators/shadcn/add/add_generator.rb +279 -0
- data/lib/generators/shadcn/install/USAGE +22 -0
- data/lib/generators/shadcn/install/install_generator.rb +8 -3
- data/lib/generators/shadcn/install/templates/initializer.rb.tt +7 -27
- data/lib/generators/shadcn/install/templates/shadcn.yml.tt +15 -31
- data/lib/shadcn/rails/version.rb +1 -1
- metadata +47 -45
- data/.dockerignore +0 -40
- data/CLAUDE.md +0 -612
- data/PROGRESS.md +0 -495
- data/Rakefile +0 -95
- data/__tests__/controllers/__snapshots__/calendar_controller.test.js.snap +0 -13
- data/__tests__/controllers/__snapshots__/popover_controller.test.js.snap +0 -46
- data/__tests__/controllers/__snapshots__/sheet_controller.test.js.snap +0 -111
- data/__tests__/controllers/__snapshots__/tabs_controller.test.js.snap +0 -27
- data/__tests__/controllers/accordion_controller.test.js +0 -904
- data/__tests__/controllers/calendar_controller.test.js +0 -1370
- data/__tests__/controllers/carousel_controller.test.js +0 -912
- data/__tests__/controllers/checkbox_controller.test.js +0 -454
- data/__tests__/controllers/collapsible_controller.test.js +0 -407
- data/__tests__/controllers/combobox_controller.test.js +0 -971
- data/__tests__/controllers/context_menu_controller.test.js +0 -905
- data/__tests__/controllers/date_picker_controller.test.js +0 -636
- data/__tests__/controllers/dialog_controller.test.js +0 -878
- data/__tests__/controllers/drawer_controller.test.js +0 -995
- data/__tests__/controllers/menubar_controller.test.js +0 -737
- data/__tests__/controllers/navigation_menu_controller.test.js +0 -599
- data/__tests__/controllers/popover_controller.test.js +0 -982
- data/__tests__/controllers/radio_group_controller.test.js +0 -640
- data/__tests__/controllers/resizable_controller.test.js +0 -680
- data/__tests__/controllers/select_controller.test.js +0 -678
- data/__tests__/controllers/sheet_controller.test.js +0 -986
- data/__tests__/controllers/slider_controller.test.js +0 -1036
- data/__tests__/controllers/switch_controller.test.js +0 -424
- data/__tests__/controllers/tabs_controller.test.js +0 -907
- data/__tests__/controllers/toggle_group_controller.test.js +0 -839
- data/__tests__/controllers/tooltip_controller.test.js +0 -808
- data/__tests__/helpers/stimulus-test-helper.js +0 -203
- data/babel.config.cjs +0 -5
- data/bin/bump +0 -321
- data/bin/console +0 -11
- data/bin/release +0 -205
- data/bin/setup +0 -8
- data/bin/test +0 -75
- data/jest.config.js +0 -19
- data/jest.setup.js +0 -8
- data/lib/generators/shadcn/component/component_generator.rb +0 -188
- data/lib/generators/shadcn/theme/theme_generator.rb +0 -128
- data/package-lock.json +0 -7438
- data/package.json +0 -71
- data/rollup.config.js +0 -29
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`CalendarController range mode CSS rendering range mode snapshot 1`] = `"<button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-31" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">31</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-01" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">1</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-02" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">2</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-03" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">3</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-04" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">4</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-05" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">5</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-06" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">6</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-07" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">7</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-08" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">8</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-09" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">9</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-l-md bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground cursor-pointer" data-date="2024-11-10" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-selected="true" tabindex="-1">10</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring bg-accent/50 cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-11" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">11</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring bg-accent/50 cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-12" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">12</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring bg-accent/50 cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-13" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">13</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring bg-accent/50 cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-14" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">14</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-r-md bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground cursor-pointer" data-date="2024-11-15" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-selected="true" tabindex="-1">15</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-16" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">16</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-17" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">17</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-18" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">18</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-19" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">19</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-20" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">20</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-21" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">21</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-22" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">22</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-23" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">23</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-24" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">24</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-25" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">25</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-26" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">26</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button>"`;
|
|
4
|
-
|
|
5
|
-
exports[`CalendarController snapshots renders calendar with disabled dates correctly 1`] = `"<button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-31" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">31</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-01" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">1</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-02" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">2</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-03" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">3</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-04" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">4</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-05" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">5</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-06" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">6</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-07" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">7</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-08" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">8</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-09" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">9</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-10" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">10</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-11" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">11</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-12" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">12</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-13" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">13</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-14" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">14</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-15" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">15</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-16" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">16</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-17" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">17</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-18" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">18</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-19" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">19</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-20" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">20</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-21" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">21</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-22" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">22</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-23" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">23</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-24" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">24</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-25" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">25</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-26" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">26</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button>"`;
|
|
6
|
-
|
|
7
|
-
exports[`CalendarController snapshots renders calendar with disabled weekends correctly 1`] = `"<button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-10-27" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-31" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">31</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-01" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">1</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-02" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">2</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-03" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">3</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-04" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">4</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-05" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">5</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-06" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">6</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-07" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">7</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-08" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">8</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-09" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">9</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-10" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">10</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-11" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">11</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-12" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">12</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-13" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">13</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-14" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">14</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-15" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">15</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-16" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">16</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-17" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">17</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-18" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">18</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-19" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">19</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-20" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">20</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-21" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">21</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-22" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">22</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-23" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">23</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-24" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">24</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-25" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">25</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-26" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">26</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-30" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">30</button>"`;
|
|
8
|
-
|
|
9
|
-
exports[`CalendarController snapshots renders calendar with min and max dates correctly 1`] = `"<button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-10-27" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-10-28" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-10-29" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-10-30" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">30</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-10-31" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">31</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-01" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">1</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-02" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">2</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-03" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">3</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-04" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">4</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-05" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">5</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-06" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">6</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-07" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">7</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-08" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">8</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-09" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">9</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-10" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">10</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-11" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">11</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-12" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">12</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-13" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">13</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-14" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">14</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-15" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">15</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-16" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">16</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-17" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">17</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-18" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">18</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-19" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">19</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-20" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">20</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-21" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">21</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-22" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">22</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-23" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">23</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-24" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">24</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-25" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">25</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-26" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">26</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-27" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-28" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-29" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md text-muted-foreground opacity-50 cursor-not-allowed" data-date="2024-11-30" data-shadcn--calendar-target="day" data-action="focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-disabled="true" disabled="" tabindex="-1">30</button>"`;
|
|
10
|
-
|
|
11
|
-
exports[`CalendarController snapshots renders calendar with selected date correctly 1`] = `"<button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-31" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">31</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-01" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">1</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-02" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">2</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-03" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">3</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-04" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">4</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-05" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">5</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-06" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">6</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-07" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">7</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-08" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">8</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-09" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">9</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-10" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">10</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-11" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">11</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-12" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">12</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-13" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">13</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-14" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">14</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground cursor-pointer" data-date="2024-11-15" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" aria-selected="true" tabindex="-1">15</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-16" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">16</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-17" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">17</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-18" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">18</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-19" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">19</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-20" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">20</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-21" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">21</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-22" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">22</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-23" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">23</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-24" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">24</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-25" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">25</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-26" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">26</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button>"`;
|
|
12
|
-
|
|
13
|
-
exports[`CalendarController snapshots renders default calendar grid correctly 1`] = `"<button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground text-muted-foreground opacity-50" data-date="2024-10-31" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">31</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-01" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">1</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-02" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">2</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-03" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">3</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-04" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">4</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-05" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">5</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-06" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">6</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-07" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">7</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-08" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">8</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-09" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">9</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-10" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">10</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-11" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">11</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-12" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">12</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-13" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">13</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-14" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">14</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-15" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">15</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-16" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">16</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-17" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">17</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-18" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">18</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-19" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">19</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-20" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">20</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-21" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">21</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-22" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">22</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-23" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">23</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-24" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">24</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-25" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">25</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-26" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">26</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-27" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">27</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-28" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">28</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-29" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">29</button><button type="button" class="h-8 w-8 text-center text-sm p-0 relative flex items-center justify-center focus:outline-none focus:ring-1 focus:ring-ring rounded-md cursor-pointer hover:bg-accent hover:text-accent-foreground" data-date="2024-11-30" data-shadcn--calendar-target="day" data-action="click->shadcn--calendar#selectDay focus->shadcn--calendar#enableKeyboard blur->shadcn--calendar#disableKeyboard" tabindex="-1">30</button>"`;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`PopoverController snapshots renders closed popover correctly 1`] = `
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
<button data-shadcn--popover-target="trigger" data-action="click->shadcn--popover#toggle">
|
|
7
|
-
Open
|
|
8
|
-
</button>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<div data-shadcn--popover-target="content" hidden="">
|
|
12
|
-
Popover content
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
exports[`PopoverController snapshots renders modal popover correctly 1`] = `
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
<button data-shadcn--popover-target="trigger" data-action="click->shadcn--popover#toggle">
|
|
22
|
-
Open
|
|
23
|
-
</button>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<div data-shadcn--popover-target="content" hidden="">
|
|
27
|
-
Popover content
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
exports[`PopoverController snapshots renders open popover correctly 1`] = `
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
<button data-shadcn--popover-target="trigger" data-action="click->shadcn--popover#toggle">
|
|
37
|
-
Open
|
|
38
|
-
</button>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<div data-shadcn--popover-target="content" data-state="open" data-side="bottom" style="position: absolute; top: 100%; bottom: auto; margin-top: 8px; left: 50%; transform: translateX(-50%);">
|
|
42
|
-
Popover content
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
`;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`SheetController snapshots renders closed sheet correctly 1`] = `
|
|
4
|
-
"
|
|
5
|
-
<button data-shadcn--sheet-target="trigger" data-action="click->shadcn--sheet#toggle">
|
|
6
|
-
Open Sheet
|
|
7
|
-
</button>
|
|
8
|
-
|
|
9
|
-
<template data-shadcn--sheet-target="template">
|
|
10
|
-
<div data-shadcn--sheet-target="overlay" data-state="closed" hidden="" data-action="click->shadcn--sheet#close" class="fixed inset-0 z-50 bg-black/80">
|
|
11
|
-
</div>
|
|
12
|
-
<div data-shadcn--sheet-target="content" data-state="closed" hidden="" data-side="right" class="fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out">
|
|
13
|
-
<button data-action="click->shadcn--sheet#close" class="close-button">
|
|
14
|
-
Close
|
|
15
|
-
</button>
|
|
16
|
-
<input type="text" class="first-input" placeholder="First input">
|
|
17
|
-
<button class="action-button">Action</button>
|
|
18
|
-
<a href="#" class="link">Link</a>
|
|
19
|
-
<input type="text" class="last-input" placeholder="Last input">
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
"
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
exports[`SheetController snapshots renders with different sides: side-bottom 1`] = `
|
|
26
|
-
"
|
|
27
|
-
<button data-shadcn--sheet-target="trigger" data-action="click->shadcn--sheet#toggle">
|
|
28
|
-
Open Sheet
|
|
29
|
-
</button>
|
|
30
|
-
|
|
31
|
-
<template data-shadcn--sheet-target="template">
|
|
32
|
-
<div data-shadcn--sheet-target="overlay" data-state="closed" hidden="" data-action="click->shadcn--sheet#close" class="fixed inset-0 z-50 bg-black/80">
|
|
33
|
-
</div>
|
|
34
|
-
<div data-shadcn--sheet-target="content" data-state="closed" hidden="" data-side="bottom" class="fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out">
|
|
35
|
-
<button data-action="click->shadcn--sheet#close" class="close-button">
|
|
36
|
-
Close
|
|
37
|
-
</button>
|
|
38
|
-
<input type="text" class="first-input" placeholder="First input">
|
|
39
|
-
<button class="action-button">Action</button>
|
|
40
|
-
<a href="#" class="link">Link</a>
|
|
41
|
-
<input type="text" class="last-input" placeholder="Last input">
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
|
44
|
-
"
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
exports[`SheetController snapshots renders with different sides: side-left 1`] = `
|
|
48
|
-
"
|
|
49
|
-
<button data-shadcn--sheet-target="trigger" data-action="click->shadcn--sheet#toggle">
|
|
50
|
-
Open Sheet
|
|
51
|
-
</button>
|
|
52
|
-
|
|
53
|
-
<template data-shadcn--sheet-target="template">
|
|
54
|
-
<div data-shadcn--sheet-target="overlay" data-state="closed" hidden="" data-action="click->shadcn--sheet#close" class="fixed inset-0 z-50 bg-black/80">
|
|
55
|
-
</div>
|
|
56
|
-
<div data-shadcn--sheet-target="content" data-state="closed" hidden="" data-side="left" class="fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out">
|
|
57
|
-
<button data-action="click->shadcn--sheet#close" class="close-button">
|
|
58
|
-
Close
|
|
59
|
-
</button>
|
|
60
|
-
<input type="text" class="first-input" placeholder="First input">
|
|
61
|
-
<button class="action-button">Action</button>
|
|
62
|
-
<a href="#" class="link">Link</a>
|
|
63
|
-
<input type="text" class="last-input" placeholder="Last input">
|
|
64
|
-
</div>
|
|
65
|
-
</template>
|
|
66
|
-
"
|
|
67
|
-
`;
|
|
68
|
-
|
|
69
|
-
exports[`SheetController snapshots renders with different sides: side-right 1`] = `
|
|
70
|
-
"
|
|
71
|
-
<button data-shadcn--sheet-target="trigger" data-action="click->shadcn--sheet#toggle">
|
|
72
|
-
Open Sheet
|
|
73
|
-
</button>
|
|
74
|
-
|
|
75
|
-
<template data-shadcn--sheet-target="template">
|
|
76
|
-
<div data-shadcn--sheet-target="overlay" data-state="closed" hidden="" data-action="click->shadcn--sheet#close" class="fixed inset-0 z-50 bg-black/80">
|
|
77
|
-
</div>
|
|
78
|
-
<div data-shadcn--sheet-target="content" data-state="closed" hidden="" data-side="right" class="fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out">
|
|
79
|
-
<button data-action="click->shadcn--sheet#close" class="close-button">
|
|
80
|
-
Close
|
|
81
|
-
</button>
|
|
82
|
-
<input type="text" class="first-input" placeholder="First input">
|
|
83
|
-
<button class="action-button">Action</button>
|
|
84
|
-
<a href="#" class="link">Link</a>
|
|
85
|
-
<input type="text" class="last-input" placeholder="Last input">
|
|
86
|
-
</div>
|
|
87
|
-
</template>
|
|
88
|
-
"
|
|
89
|
-
`;
|
|
90
|
-
|
|
91
|
-
exports[`SheetController snapshots renders with different sides: side-top 1`] = `
|
|
92
|
-
"
|
|
93
|
-
<button data-shadcn--sheet-target="trigger" data-action="click->shadcn--sheet#toggle">
|
|
94
|
-
Open Sheet
|
|
95
|
-
</button>
|
|
96
|
-
|
|
97
|
-
<template data-shadcn--sheet-target="template">
|
|
98
|
-
<div data-shadcn--sheet-target="overlay" data-state="closed" hidden="" data-action="click->shadcn--sheet#close" class="fixed inset-0 z-50 bg-black/80">
|
|
99
|
-
</div>
|
|
100
|
-
<div data-shadcn--sheet-target="content" data-state="closed" hidden="" data-side="top" class="fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out">
|
|
101
|
-
<button data-action="click->shadcn--sheet#close" class="close-button">
|
|
102
|
-
Close
|
|
103
|
-
</button>
|
|
104
|
-
<input type="text" class="first-input" placeholder="First input">
|
|
105
|
-
<button class="action-button">Action</button>
|
|
106
|
-
<a href="#" class="link">Link</a>
|
|
107
|
-
<input type="text" class="last-input" placeholder="Last input">
|
|
108
|
-
</div>
|
|
109
|
-
</template>
|
|
110
|
-
"
|
|
111
|
-
`;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
-
|
|
3
|
-
exports[`TabsController snapshots renders default tabs correctly 1`] = `
|
|
4
|
-
"
|
|
5
|
-
<div data-shadcn--tabs-target="list" role="tablist">
|
|
6
|
-
<button data-shadcn--tabs-target="trigger" data-value="tab1" role="tab" data-action="click->shadcn--tabs#selectTab keydown->shadcn--tabs#handleKeydown" data-state="active" aria-selected="true" tabindex="0">Tab 1</button>
|
|
7
|
-
<button data-shadcn--tabs-target="trigger" data-value="tab2" role="tab" data-action="click->shadcn--tabs#selectTab keydown->shadcn--tabs#handleKeydown" data-state="inactive" aria-selected="false" tabindex="-1">Tab 2</button>
|
|
8
|
-
<button data-shadcn--tabs-target="trigger" data-value="tab3" role="tab" data-action="click->shadcn--tabs#selectTab keydown->shadcn--tabs#handleKeydown" data-state="inactive" aria-selected="false" tabindex="-1">Tab 3</button>
|
|
9
|
-
</div>
|
|
10
|
-
<div data-shadcn--tabs-target="content" data-value="tab1" role="tabpanel" data-state="active">Content 1</div>
|
|
11
|
-
<div data-shadcn--tabs-target="content" data-value="tab2" role="tabpanel" hidden="" data-state="inactive">Content 2</div>
|
|
12
|
-
<div data-shadcn--tabs-target="content" data-value="tab3" role="tabpanel" hidden="" data-state="inactive">Content 3</div>
|
|
13
|
-
"
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
exports[`TabsController snapshots renders tabs with tab2 active 1`] = `
|
|
17
|
-
"
|
|
18
|
-
<div data-shadcn--tabs-target="list" role="tablist">
|
|
19
|
-
<button data-shadcn--tabs-target="trigger" data-value="tab1" role="tab" data-action="click->shadcn--tabs#selectTab keydown->shadcn--tabs#handleKeydown" data-state="inactive" aria-selected="false" tabindex="-1">Tab 1</button>
|
|
20
|
-
<button data-shadcn--tabs-target="trigger" data-value="tab2" role="tab" data-action="click->shadcn--tabs#selectTab keydown->shadcn--tabs#handleKeydown" data-state="active" aria-selected="true" tabindex="0">Tab 2</button>
|
|
21
|
-
<button data-shadcn--tabs-target="trigger" data-value="tab3" role="tab" data-action="click->shadcn--tabs#selectTab keydown->shadcn--tabs#handleKeydown" data-state="inactive" aria-selected="false" tabindex="-1">Tab 3</button>
|
|
22
|
-
</div>
|
|
23
|
-
<div data-shadcn--tabs-target="content" data-value="tab1" role="tabpanel" data-state="inactive" hidden="">Content 1</div>
|
|
24
|
-
<div data-shadcn--tabs-target="content" data-value="tab2" role="tabpanel" data-state="active">Content 2</div>
|
|
25
|
-
<div data-shadcn--tabs-target="content" data-value="tab3" role="tabpanel" hidden="" data-state="inactive">Content 3</div>
|
|
26
|
-
"
|
|
27
|
-
`;
|