poetry-ui 0.0.2
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 +7 -0
- data/.gitattributes +6 -0
- data/CHANGELOG.md +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +87 -0
- data/THIRD_PARTY_NOTICES.md +201 -0
- data/app/components/poetry/ui/accordion/component.html.erb +3 -0
- data/app/components/poetry/ui/accordion/component.rb +197 -0
- data/app/components/poetry/ui/accordion/preview.rb +39 -0
- data/app/components/poetry/ui/accordion/style.rb +37 -0
- data/app/components/poetry/ui/alert/component.html.erb +6 -0
- data/app/components/poetry/ui/alert/component.rb +61 -0
- data/app/components/poetry/ui/alert/preview.rb +35 -0
- data/app/components/poetry/ui/alert/style.rb +24 -0
- data/app/components/poetry/ui/alert_dialog/component.html.erb +17 -0
- data/app/components/poetry/ui/alert_dialog/component.rb +208 -0
- data/app/components/poetry/ui/alert_dialog/preview.rb +48 -0
- data/app/components/poetry/ui/alert_dialog/style.rb +46 -0
- data/app/components/poetry/ui/aspect_ratio/component.rb +63 -0
- data/app/components/poetry/ui/aspect_ratio/preview.rb +29 -0
- data/app/components/poetry/ui/aspect_ratio/style.rb +13 -0
- data/app/components/poetry/ui/attachment/component.html.erb +13 -0
- data/app/components/poetry/ui/attachment/component.rb +139 -0
- data/app/components/poetry/ui/attachment/preview.rb +83 -0
- data/app/components/poetry/ui/attachment/style.rb +59 -0
- data/app/components/poetry/ui/autocomplete/component.html.erb +16 -0
- data/app/components/poetry/ui/autocomplete/component.rb +193 -0
- data/app/components/poetry/ui/autocomplete/preview.rb +39 -0
- data/app/components/poetry/ui/autocomplete/style.rb +18 -0
- data/app/components/poetry/ui/avatar/component.rb +103 -0
- data/app/components/poetry/ui/avatar/group_preview.html.erb +11 -0
- data/app/components/poetry/ui/avatar/preview.rb +50 -0
- data/app/components/poetry/ui/avatar/style.rb +34 -0
- data/app/components/poetry/ui/badge/component.rb +73 -0
- data/app/components/poetry/ui/badge/preview.rb +54 -0
- data/app/components/poetry/ui/badge/style.rb +35 -0
- data/app/components/poetry/ui/breadcrumb/component.html.erb +32 -0
- data/app/components/poetry/ui/breadcrumb/component.rb +102 -0
- data/app/components/poetry/ui/breadcrumb/dropdown_crumb_preview.html.erb +21 -0
- data/app/components/poetry/ui/breadcrumb/preview.rb +45 -0
- data/app/components/poetry/ui/breadcrumb/style.rb +25 -0
- data/app/components/poetry/ui/bubble/component.html.erb +4 -0
- data/app/components/poetry/ui/bubble/component.rb +106 -0
- data/app/components/poetry/ui/bubble/preview.rb +62 -0
- data/app/components/poetry/ui/bubble/style.rb +47 -0
- data/app/components/poetry/ui/button/component.html.erb +14 -0
- data/app/components/poetry/ui/button/component.rb +168 -0
- data/app/components/poetry/ui/button/preview.rb +94 -0
- data/app/components/poetry/ui/button/style.rb +41 -0
- data/app/components/poetry/ui/button_group/component.rb +70 -0
- data/app/components/poetry/ui/button_group/popup_triggers_preview.html.erb +21 -0
- data/app/components/poetry/ui/button_group/preview.rb +46 -0
- data/app/components/poetry/ui/button_group/style.rb +27 -0
- data/app/components/poetry/ui/button_group/text_prefix_preview.html.erb +7 -0
- data/app/components/poetry/ui/calendar/component.html.erb +72 -0
- data/app/components/poetry/ui/calendar/component.rb +366 -0
- data/app/components/poetry/ui/calendar/preview.rb +55 -0
- data/app/components/poetry/ui/calendar/style.rb +55 -0
- data/app/components/poetry/ui/card/component.html.erb +11 -0
- data/app/components/poetry/ui/card/component.rb +90 -0
- data/app/components/poetry/ui/card/preview.rb +29 -0
- data/app/components/poetry/ui/card/style.rb +23 -0
- data/app/components/poetry/ui/carousel/component.html.erb +17 -0
- data/app/components/poetry/ui/carousel/component.rb +179 -0
- data/app/components/poetry/ui/carousel/preview.rb +67 -0
- data/app/components/poetry/ui/carousel/style.rb +39 -0
- data/app/components/poetry/ui/checkbox/component.html.erb +22 -0
- data/app/components/poetry/ui/checkbox/component.rb +179 -0
- data/app/components/poetry/ui/checkbox/preview.rb +68 -0
- data/app/components/poetry/ui/checkbox/style.rb +28 -0
- data/app/components/poetry/ui/clipboard_text/component.html.erb +15 -0
- data/app/components/poetry/ui/clipboard_text/component.rb +154 -0
- data/app/components/poetry/ui/clipboard_text/preview.rb +24 -0
- data/app/components/poetry/ui/clipboard_text/style.rb +23 -0
- data/app/components/poetry/ui/code_block/component.html.erb +13 -0
- data/app/components/poetry/ui/code_block/component.rb +141 -0
- data/app/components/poetry/ui/code_block/preview.rb +40 -0
- data/app/components/poetry/ui/code_block/style.rb +38 -0
- data/app/components/poetry/ui/collapsible/component.html.erb +4 -0
- data/app/components/poetry/ui/collapsible/component.rb +134 -0
- data/app/components/poetry/ui/collapsible/preview.rb +24 -0
- data/app/components/poetry/ui/combobox/component.html.erb +49 -0
- data/app/components/poetry/ui/combobox/component.rb +1086 -0
- data/app/components/poetry/ui/combobox/preview.rb +164 -0
- data/app/components/poetry/ui/combobox/style.rb +148 -0
- data/app/components/poetry/ui/command/component.html.erb +20 -0
- data/app/components/poetry/ui/command/component.rb +526 -0
- data/app/components/poetry/ui/command/dialog_component.html.erb +14 -0
- data/app/components/poetry/ui/command/dialog_component.rb +206 -0
- data/app/components/poetry/ui/command/dialog_preview.rb +39 -0
- data/app/components/poetry/ui/command/preview.rb +121 -0
- data/app/components/poetry/ui/command/style.rb +78 -0
- data/app/components/poetry/ui/composable_trigger.rb +63 -0
- data/app/components/poetry/ui/context_menu/component.html.erb +6 -0
- data/app/components/poetry/ui/context_menu/component.rb +358 -0
- data/app/components/poetry/ui/context_menu/preview.rb +111 -0
- data/app/components/poetry/ui/context_menu/style.rb +59 -0
- data/app/components/poetry/ui/data_table/component.html.erb +78 -0
- data/app/components/poetry/ui/data_table/component.rb +277 -0
- data/app/components/poetry/ui/data_table/preview.rb +68 -0
- data/app/components/poetry/ui/data_table/state.rb +115 -0
- data/app/components/poetry/ui/data_table/style.rb +42 -0
- data/app/components/poetry/ui/date_field/component.html.erb +7 -0
- data/app/components/poetry/ui/date_field/component.rb +209 -0
- data/app/components/poetry/ui/date_field/preview.rb +42 -0
- data/app/components/poetry/ui/date_field/style.rb +35 -0
- data/app/components/poetry/ui/date_picker/component.html.erb +23 -0
- data/app/components/poetry/ui/date_picker/component.rb +242 -0
- data/app/components/poetry/ui/date_picker/preview.rb +31 -0
- data/app/components/poetry/ui/date_picker/style.rb +25 -0
- data/app/components/poetry/ui/deferred/component.html.erb +16 -0
- data/app/components/poetry/ui/deferred/component.rb +90 -0
- data/app/components/poetry/ui/deferred/preview.rb +24 -0
- data/app/components/poetry/ui/dialog/component.html.erb +21 -0
- data/app/components/poetry/ui/dialog/component.rb +194 -0
- data/app/components/poetry/ui/dialog/preview.rb +33 -0
- data/app/components/poetry/ui/dialog/style.rb +30 -0
- data/app/components/poetry/ui/drawer/component.html.erb +16 -0
- data/app/components/poetry/ui/drawer/component.rb +207 -0
- data/app/components/poetry/ui/drawer/preview.rb +69 -0
- data/app/components/poetry/ui/drawer/style.rb +105 -0
- data/app/components/poetry/ui/dropdown_menu/component.html.erb +6 -0
- data/app/components/poetry/ui/dropdown_menu/component.rb +350 -0
- data/app/components/poetry/ui/dropdown_menu/preview.rb +101 -0
- data/app/components/poetry/ui/dropdown_menu/style.rb +60 -0
- data/app/components/poetry/ui/empty/component.html.erb +10 -0
- data/app/components/poetry/ui/empty/component.rb +79 -0
- data/app/components/poetry/ui/empty/preview.rb +27 -0
- data/app/components/poetry/ui/empty/style.rb +27 -0
- data/app/components/poetry/ui/family_identity.rb +52 -0
- data/app/components/poetry/ui/field/component.html.erb +19 -0
- data/app/components/poetry/ui/field/component.rb +183 -0
- data/app/components/poetry/ui/field/preview.html.erb +30 -0
- data/app/components/poetry/ui/field/preview.rb +72 -0
- data/app/components/poetry/ui/field/style.rb +68 -0
- data/app/components/poetry/ui/field_group/component.rb +61 -0
- data/app/components/poetry/ui/field_group/preview.html.erb +30 -0
- data/app/components/poetry/ui/field_group/preview.rb +20 -0
- data/app/components/poetry/ui/field_group/style.rb +25 -0
- data/app/components/poetry/ui/field_separator/component.rb +70 -0
- data/app/components/poetry/ui/field_separator/preview.rb +18 -0
- data/app/components/poetry/ui/field_separator/style.rb +20 -0
- data/app/components/poetry/ui/fieldset/component.rb +90 -0
- data/app/components/poetry/ui/fieldset/preview.html.erb +22 -0
- data/app/components/poetry/ui/fieldset/preview.rb +25 -0
- data/app/components/poetry/ui/fieldset/style.rb +18 -0
- data/app/components/poetry/ui/file_input/component.html.erb +14 -0
- data/app/components/poetry/ui/file_input/component.rb +188 -0
- data/app/components/poetry/ui/file_input/preview.rb +30 -0
- data/app/components/poetry/ui/file_input/style.rb +35 -0
- data/app/components/poetry/ui/hover_card/component.html.erb +6 -0
- data/app/components/poetry/ui/hover_card/component.rb +201 -0
- data/app/components/poetry/ui/hover_card/preview.rb +60 -0
- data/app/components/poetry/ui/hover_card/style.rb +17 -0
- data/app/components/poetry/ui/icon/component.rb +127 -0
- data/app/components/poetry/ui/icon/preview.rb +21 -0
- data/app/components/poetry/ui/input/component.rb +80 -0
- data/app/components/poetry/ui/input/preview.rb +35 -0
- data/app/components/poetry/ui/input/style.rb +18 -0
- data/app/components/poetry/ui/input_group/button_preview.html.erb +12 -0
- data/app/components/poetry/ui/input_group/component.rb +69 -0
- data/app/components/poetry/ui/input_group/preview.rb +23 -0
- data/app/components/poetry/ui/input_group/search_preview.html.erb +13 -0
- data/app/components/poetry/ui/input_group/style.rb +40 -0
- data/app/components/poetry/ui/input_group/textarea_preview.html.erb +10 -0
- data/app/components/poetry/ui/input_group_field.rb +61 -0
- data/app/components/poetry/ui/input_otp/component.html.erb +25 -0
- data/app/components/poetry/ui/input_otp/component.rb +250 -0
- data/app/components/poetry/ui/input_otp/preview.rb +91 -0
- data/app/components/poetry/ui/input_otp/style.rb +36 -0
- data/app/components/poetry/ui/item/component.html.erb +13 -0
- data/app/components/poetry/ui/item/component.rb +99 -0
- data/app/components/poetry/ui/item/group_preview.html.erb +15 -0
- data/app/components/poetry/ui/item/preview.rb +52 -0
- data/app/components/poetry/ui/item/style.rb +45 -0
- data/app/components/poetry/ui/kbd/component.rb +47 -0
- data/app/components/poetry/ui/kbd/group_preview.html.erb +4 -0
- data/app/components/poetry/ui/kbd/preview.rb +23 -0
- data/app/components/poetry/ui/kbd/style.rb +13 -0
- data/app/components/poetry/ui/label/component.rb +46 -0
- data/app/components/poetry/ui/label/preview.html.erb +5 -0
- data/app/components/poetry/ui/label/preview.rb +16 -0
- data/app/components/poetry/ui/label/style.rb +13 -0
- data/app/components/poetry/ui/link/component.rb +62 -0
- data/app/components/poetry/ui/link/preview.rb +31 -0
- data/app/components/poetry/ui/link/style.rb +20 -0
- data/app/components/poetry/ui/marker/component.html.erb +4 -0
- data/app/components/poetry/ui/marker/component.rb +81 -0
- data/app/components/poetry/ui/marker/preview.rb +43 -0
- data/app/components/poetry/ui/marker/style.rb +24 -0
- data/app/components/poetry/ui/menubar/component.html.erb +3 -0
- data/app/components/poetry/ui/menubar/component.rb +493 -0
- data/app/components/poetry/ui/menubar/preview.rb +164 -0
- data/app/components/poetry/ui/menubar/style.rb +71 -0
- data/app/components/poetry/ui/menus.rb +386 -0
- data/app/components/poetry/ui/message/component.html.erb +8 -0
- data/app/components/poetry/ui/message/component.rb +64 -0
- data/app/components/poetry/ui/message/preview.rb +33 -0
- data/app/components/poetry/ui/message/style.rb +29 -0
- data/app/components/poetry/ui/message_scroller/component.html.erb +15 -0
- data/app/components/poetry/ui/message_scroller/component.rb +163 -0
- data/app/components/poetry/ui/message_scroller/preview.rb +33 -0
- data/app/components/poetry/ui/message_scroller/style.rb +39 -0
- data/app/components/poetry/ui/metadata_list/component.rb +88 -0
- data/app/components/poetry/ui/metadata_list/preview.rb +55 -0
- data/app/components/poetry/ui/metadata_list/style.rb +35 -0
- data/app/components/poetry/ui/meter/component.rb +117 -0
- data/app/components/poetry/ui/meter/preview.rb +28 -0
- data/app/components/poetry/ui/meter/style.rb +16 -0
- data/app/components/poetry/ui/native_select/component.rb +124 -0
- data/app/components/poetry/ui/native_select/labelled_preview.html.erb +7 -0
- data/app/components/poetry/ui/native_select/preview.rb +20 -0
- data/app/components/poetry/ui/native_select/style.rb +22 -0
- data/app/components/poetry/ui/navigation_menu/bar_preview.html.erb +14 -0
- data/app/components/poetry/ui/navigation_menu/component.html.erb +25 -0
- data/app/components/poetry/ui/navigation_menu/component.rb +254 -0
- data/app/components/poetry/ui/navigation_menu/preview.rb +20 -0
- data/app/components/poetry/ui/navigation_menu/style.rb +73 -0
- data/app/components/poetry/ui/navigation_menu/viewport_preview.html.erb +23 -0
- data/app/components/poetry/ui/number_field/component.html.erb +19 -0
- data/app/components/poetry/ui/number_field/component.rb +263 -0
- data/app/components/poetry/ui/number_field/preview.rb +66 -0
- data/app/components/poetry/ui/number_field/style.rb +14 -0
- data/app/components/poetry/ui/pagination/component.html.erb +40 -0
- data/app/components/poetry/ui/pagination/component.rb +182 -0
- data/app/components/poetry/ui/pagination/preview.rb +47 -0
- data/app/components/poetry/ui/pagination/style.rb +27 -0
- data/app/components/poetry/ui/popover/component.html.erb +17 -0
- data/app/components/poetry/ui/popover/component.rb +203 -0
- data/app/components/poetry/ui/popover/preview.html.erb +29 -0
- data/app/components/poetry/ui/popover/preview.rb +66 -0
- data/app/components/poetry/ui/popover/style.rb +26 -0
- data/app/components/poetry/ui/popper_consumer.rb +69 -0
- data/app/components/poetry/ui/progress/component.rb +95 -0
- data/app/components/poetry/ui/progress/preview.rb +22 -0
- data/app/components/poetry/ui/progress/style.rb +19 -0
- data/app/components/poetry/ui/questionnaire/component.html.erb +80 -0
- data/app/components/poetry/ui/questionnaire/component.rb +396 -0
- data/app/components/poetry/ui/questionnaire/preview.rb +99 -0
- data/app/components/poetry/ui/questionnaire/style.rb +53 -0
- data/app/components/poetry/ui/radio_group/component.html.erb +4 -0
- data/app/components/poetry/ui/radio_group/component.rb +323 -0
- data/app/components/poetry/ui/radio_group/preview.rb +109 -0
- data/app/components/poetry/ui/radio_group/style.rb +53 -0
- data/app/components/poetry/ui/resizable/component.html.erb +10 -0
- data/app/components/poetry/ui/resizable/component.rb +178 -0
- data/app/components/poetry/ui/resizable/preview.rb +42 -0
- data/app/components/poetry/ui/resizable/style.rb +30 -0
- data/app/components/poetry/ui/scroll_area/component.rb +76 -0
- data/app/components/poetry/ui/scroll_area/preview.rb +35 -0
- data/app/components/poetry/ui/scroll_area/style.rb +19 -0
- data/app/components/poetry/ui/search_field/component.html.erb +15 -0
- data/app/components/poetry/ui/search_field/component.rb +137 -0
- data/app/components/poetry/ui/search_field/preview.rb +23 -0
- data/app/components/poetry/ui/search_field/style.rb +18 -0
- data/app/components/poetry/ui/select/component.html.erb +15 -0
- data/app/components/poetry/ui/select/component.rb +639 -0
- data/app/components/poetry/ui/select/preview.rb +113 -0
- data/app/components/poetry/ui/select/style.rb +58 -0
- data/app/components/poetry/ui/sensitive_input/component.html.erb +29 -0
- data/app/components/poetry/ui/sensitive_input/component.rb +274 -0
- data/app/components/poetry/ui/sensitive_input/preview.rb +40 -0
- data/app/components/poetry/ui/sensitive_input/style.rb +49 -0
- data/app/components/poetry/ui/separator/component.rb +57 -0
- data/app/components/poetry/ui/separator/preview.rb +19 -0
- data/app/components/poetry/ui/separator/style.rb +15 -0
- data/app/components/poetry/ui/sheet/component.html.erb +21 -0
- data/app/components/poetry/ui/sheet/component.rb +97 -0
- data/app/components/poetry/ui/sheet/preview.rb +57 -0
- data/app/components/poetry/ui/sheet/style.rb +47 -0
- data/app/components/poetry/ui/sidebar/component.html.erb +20 -0
- data/app/components/poetry/ui/sidebar/component.rb +249 -0
- data/app/components/poetry/ui/sidebar/preview.rb +21 -0
- data/app/components/poetry/ui/sidebar/shell_preview.html.erb +47 -0
- data/app/components/poetry/ui/sidebar/style.rb +139 -0
- data/app/components/poetry/ui/skeleton/component.rb +39 -0
- data/app/components/poetry/ui/skeleton/preview.rb +22 -0
- data/app/components/poetry/ui/skeleton/style.rb +13 -0
- data/app/components/poetry/ui/slider/component.html.erb +13 -0
- data/app/components/poetry/ui/slider/component.rb +360 -0
- data/app/components/poetry/ui/slider/preview.rb +73 -0
- data/app/components/poetry/ui/slider/style.rb +55 -0
- data/app/components/poetry/ui/spinner/component.rb +58 -0
- data/app/components/poetry/ui/spinner/preview.rb +22 -0
- data/app/components/poetry/ui/spinner/style.rb +12 -0
- data/app/components/poetry/ui/stat/component.html.erb +13 -0
- data/app/components/poetry/ui/stat/component.rb +102 -0
- data/app/components/poetry/ui/stat/preview.rb +47 -0
- data/app/components/poetry/ui/stat/style.rb +29 -0
- data/app/components/poetry/ui/switch/component.html.erb +15 -0
- data/app/components/poetry/ui/switch/component.rb +136 -0
- data/app/components/poetry/ui/switch/preview.rb +66 -0
- data/app/components/poetry/ui/switch/style.rb +22 -0
- data/app/components/poetry/ui/table/component.html.erb +3 -0
- data/app/components/poetry/ui/table/component.rb +93 -0
- data/app/components/poetry/ui/table/preview.rb +96 -0
- data/app/components/poetry/ui/table/style.rb +26 -0
- data/app/components/poetry/ui/tabs/component.html.erb +10 -0
- data/app/components/poetry/ui/tabs/component.rb +253 -0
- data/app/components/poetry/ui/tabs/preview.rb +43 -0
- data/app/components/poetry/ui/tabs/style.rb +49 -0
- data/app/components/poetry/ui/tag_group/component.html.erb +8 -0
- data/app/components/poetry/ui/tag_group/component.rb +203 -0
- data/app/components/poetry/ui/tag_group/preview.rb +43 -0
- data/app/components/poetry/ui/tag_group/style.rb +29 -0
- data/app/components/poetry/ui/textarea/component.rb +64 -0
- data/app/components/poetry/ui/textarea/preview.rb +75 -0
- data/app/components/poetry/ui/textarea/style.rb +18 -0
- data/app/components/poetry/ui/time_field/component.html.erb +6 -0
- data/app/components/poetry/ui/time_field/component.rb +85 -0
- data/app/components/poetry/ui/time_field/preview.rb +40 -0
- data/app/components/poetry/ui/time_field/style.rb +30 -0
- data/app/components/poetry/ui/timeline/component.rb +134 -0
- data/app/components/poetry/ui/timeline/preview.rb +61 -0
- data/app/components/poetry/ui/timeline/style.rb +54 -0
- data/app/components/poetry/ui/toast/component.html.erb +24 -0
- data/app/components/poetry/ui/toast/component.rb +178 -0
- data/app/components/poetry/ui/toast/preview.rb +69 -0
- data/app/components/poetry/ui/toast/style.rb +33 -0
- data/app/components/poetry/ui/toast_trigger/addressed_preview.html.erb +12 -0
- data/app/components/poetry/ui/toast_trigger/component.html.erb +3 -0
- data/app/components/poetry/ui/toast_trigger/component.rb +82 -0
- data/app/components/poetry/ui/toast_trigger/default_preview.html.erb +11 -0
- data/app/components/poetry/ui/toast_trigger/preview.rb +19 -0
- data/app/components/poetry/ui/toaster/component.html.erb +1 -0
- data/app/components/poetry/ui/toaster/component.rb +99 -0
- data/app/components/poetry/ui/toaster/positions_preview.html.erb +24 -0
- data/app/components/poetry/ui/toaster/preview.rb +46 -0
- data/app/components/poetry/ui/toaster/stamp_preview.html.erb +15 -0
- data/app/components/poetry/ui/toaster/style.rb +26 -0
- data/app/components/poetry/ui/toggle/component.rb +120 -0
- data/app/components/poetry/ui/toggle/preview.rb +79 -0
- data/app/components/poetry/ui/toggle/style.rb +33 -0
- data/app/components/poetry/ui/toggle_group/component.html.erb +4 -0
- data/app/components/poetry/ui/toggle_group/component.rb +252 -0
- data/app/components/poetry/ui/toggle_group/preview.rb +143 -0
- data/app/components/poetry/ui/toggle_group/style.rb +33 -0
- data/app/components/poetry/ui/toolbar/component.rb +125 -0
- data/app/components/poetry/ui/toolbar/preview.rb +41 -0
- data/app/components/poetry/ui/toolbar/style.rb +20 -0
- data/app/components/poetry/ui/tooltip/component.html.erb +20 -0
- data/app/components/poetry/ui/tooltip/component.rb +185 -0
- data/app/components/poetry/ui/tooltip/preview.rb +74 -0
- data/app/components/poetry/ui/tooltip/previews/provider_row.html.erb +25 -0
- data/app/components/poetry/ui/tooltip/style.rb +24 -0
- data/app/components/poetry/ui/tree/component.html.erb +32 -0
- data/app/components/poetry/ui/tree/component.rb +233 -0
- data/app/components/poetry/ui/tree/preview.rb +55 -0
- data/app/components/poetry/ui/tree/style.rb +29 -0
- data/app/components/poetry/ui/typeset/component.rb +73 -0
- data/app/components/poetry/ui/typeset/preview.rb +45 -0
- data/app/components/poetry/ui/typeset/style.rb +15 -0
- data/app/controllers/poetry/ui/llms_controller.rb +28 -0
- data/app/helpers/poetry/ui/components_helper.rb +1794 -0
- data/app/helpers/poetry/ui/form_builder/type_inference.rb +117 -0
- data/app/helpers/poetry/ui/form_builder.rb +916 -0
- data/app/helpers/poetry/ui/optimistic_form_builder.rb +55 -0
- data/app/helpers/poetry/ui/toast_stream_actions.rb +27 -0
- data/config/component_descriptions.yml +96 -0
- data/config/component_registry.yml +12257 -0
- data/config/locales/en.yml +93 -0
- data/config/routes.rb +8 -0
- data/config/template_classes.txt +113 -0
- data/lib/generators/poetry/add/add_generator.rb +218 -0
- data/lib/generators/poetry/agent_rules/agent_rules_generator.rb +91 -0
- data/lib/generators/poetry/agents/agents_generator.rb +24 -0
- data/lib/generators/poetry/agents_section.rb +148 -0
- data/lib/generators/poetry/block/block_generator.rb +67 -0
- data/lib/generators/poetry/block/templates/action_bar.html.erb +45 -0
- data/lib/generators/poetry/block/templates/app_shell.html.erb +139 -0
- data/lib/generators/poetry/block/templates/data_index.html.erb +85 -0
- data/lib/generators/poetry/block/templates/destructive_panel.html.erb +26 -0
- data/lib/generators/poetry/block/templates/page_header.html.erb +25 -0
- data/lib/generators/poetry/block/templates/section_card.html.erb +42 -0
- data/lib/generators/poetry/block/templates/stepper.html.erb +79 -0
- data/lib/generators/poetry/block/templates/top_nav.html.erb +44 -0
- data/lib/generators/poetry/diff/diff_generator.rb +135 -0
- data/lib/generators/poetry/editor/editor_generator.rb +344 -0
- data/lib/generators/poetry/editor/templates/poetry-check-hook +81 -0
- data/lib/generators/poetry/install/install_generator.rb +364 -0
- data/lib/generators/poetry/pagination/pagination_generator.rb +76 -0
- data/lib/generators/poetry/pagination/templates/kaminari_paginator.html.erb +29 -0
- data/lib/generators/poetry/pagination/templates/poetry_link_renderer.rb +34 -0
- data/lib/generators/poetry/pagination/templates/poetry_pagy_helper.rb +28 -0
- data/lib/generators/poetry/recipes/agent_embed/app/javascript/controllers/agent_demo_controller.js +131 -0
- data/lib/generators/poetry/recipes/screen_data_index/app/controllers/orders_controller.rb +15 -0
- data/lib/generators/poetry/recipes/screen_data_index/app/views/orders/index.html.erb +7 -0
- data/lib/generators/poetry/recipes/screen_data_index/test/system/orders_index_test.rb +16 -0
- data/lib/generators/poetry/recipes/screen_settings/app/controllers/settings_controller.rb +14 -0
- data/lib/generators/poetry/recipes/screen_settings/app/views/settings/show.html.erb +9 -0
- data/lib/generators/poetry/recipes/screen_settings/test/system/settings_show_test.rb +16 -0
- data/lib/generators/poetry/scaffold_templates/scaffold_templates_generator.rb +60 -0
- data/lib/generators/poetry/scaffold_templates/templates/_form.html.erb.tt +77 -0
- data/lib/generators/poetry/scaffold_templates/templates/controller.rb.tt +78 -0
- data/lib/generators/poetry/scaffold_templates/templates/edit.html.erb.tt +14 -0
- data/lib/generators/poetry/scaffold_templates/templates/index.html.erb.tt +24 -0
- data/lib/generators/poetry/scaffold_templates/templates/new.html.erb.tt +11 -0
- data/lib/generators/poetry/scaffold_templates/templates/partial.html.erb.tt +13 -0
- data/lib/generators/poetry/scaffold_templates/templates/show.html.erb.tt +18 -0
- data/lib/generators/poetry/skill/skill_generator.rb +34 -0
- data/lib/generators/poetry/skill/templates/poetry-component/SKILL.md +58 -0
- data/lib/generators/poetry/skill/templates/poetry-component/references/anatomy.md +152 -0
- data/lib/generators/poetry/skill/templates/poetry-component/references/checklist.md +67 -0
- data/lib/generators/poetry/skill/templates/poetry-component/references/documentation.md +137 -0
- data/lib/generators/poetry/skill/templates/poetry-design/SKILL.md +56 -0
- data/lib/generators/poetry/skill/templates/poetry-design/references/audit.md +123 -0
- data/lib/generators/poetry/skill/templates/poetry-design/references/compose.md +73 -0
- data/lib/generators/poetry/skill/templates/poetry-design/references/figma.md +68 -0
- data/lib/generators/poetry/skill/templates/poetry-design/references/paper.md +56 -0
- data/lib/generators/poetry/skill/templates/poetry-design/references/study.md +47 -0
- data/lib/generators/poetry/skill/templates/poetry-design/references/theme.md +70 -0
- data/lib/generators/poetry/skills_section.rb +58 -0
- data/lib/poetry/ui/chat.rb +283 -0
- data/lib/poetry/ui/code_block_highlighter.rb +60 -0
- data/lib/poetry/ui/engine.rb +55 -0
- data/lib/poetry/ui/recipes.rb +157 -0
- data/lib/poetry/ui/testing/combobox.rb +167 -0
- data/lib/poetry/ui/testing/dialog.rb +73 -0
- data/lib/poetry/ui/testing/menu.rb +127 -0
- data/lib/poetry/ui/testing/registration.rb +58 -0
- data/lib/poetry/ui/testing/select.rb +147 -0
- data/lib/poetry/ui/testing/tester.rb +130 -0
- data/lib/poetry/ui/testing.rb +130 -0
- data/lib/poetry/ui/themes.rb +109 -0
- data/lib/poetry/ui/version.rb +8 -0
- data/lib/poetry/ui/webmcp.rb +91 -0
- data/lib/poetry/ui.rb +285 -0
- data/lib/poetry-ui.rb +5 -0
- data/lib/tasks/poetry/check.rake +73 -0
- data/lib/tasks/poetry/design.rake +293 -0
- data/lib/tasks/poetry/verify.rake +36 -0
- data/themes/default.css +1793 -0
- data/themes/luma.css +1764 -0
- data/themes/lyra.css +1768 -0
- data/themes/maia.css +1768 -0
- data/themes/mira.css +1760 -0
- data/themes/nova.css +1755 -0
- data/themes/rhea.css +1771 -0
- data/themes/sera.css +1757 -0
- data/themes/vega.css +1775 -0
- data/typeset/typeset.css +499 -0
- metadata +502 -0
data/themes/mira.css
ADDED
|
@@ -0,0 +1,1760 @@
|
|
|
1
|
+
/* poetry mira theme - upstream style-mira.css ported onto the
|
|
2
|
+
* cn-* layer (pinned clone 1773ecfe, the shadcn@4.19.0 release). Same contract as default.css:
|
|
3
|
+
* imported layer(base); bare selectors while installs carry ONE theme;
|
|
4
|
+
* rule order per component = base < elements < variants < compounds;
|
|
5
|
+
* split-side, no-empty-rules and cross-component-last rules apply.
|
|
6
|
+
*
|
|
7
|
+
* Port disciplines identical to vega (see
|
|
8
|
+
* docs/mira-port-ledger.txt): verbatim where poetry speaks the
|
|
9
|
+
* vocabulary; data-vertical -> data-[orientation=*]; overlays ->
|
|
10
|
+
* native-dialog backdrop:*; upstream ! stripped except the sidebar
|
|
11
|
+
* collapse geometry; icon paddings ship upstream's has-data-[icon=*]
|
|
12
|
+
* (inert) plus working >svg:first/last-child twins; soft destructive
|
|
13
|
+
* holds AA via relative-oklch light-mode darkening (AA-contrast posture).
|
|
14
|
+
* Mira-judged: boxed accordion root (the root hook); accordion trigger
|
|
15
|
+
* carries poetry's focus-visible cluster (upstream ships none); the
|
|
16
|
+
* floating drawer geometry is live (ported from the source popup
|
|
17
|
+
* rules); input-group-button-size-sm dropped (no poetry sm size);
|
|
18
|
+
* calendar cell density (--cell-size 6) deferred.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/* MARK: Alert */
|
|
22
|
+
.cn-alert {
|
|
23
|
+
@apply grid grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 [&>svg]:size-3.5 [&>svg]:translate-y-0.5 [&>svg]:text-current;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cn-alert-action {
|
|
27
|
+
@apply absolute top-1.5 right-2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cn-alert-title {
|
|
31
|
+
@apply col-start-2 font-medium;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cn-alert-description {
|
|
35
|
+
@apply col-start-2 text-xs/relaxed text-muted-foreground text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cn-alert-variant-default {
|
|
39
|
+
@apply bg-card text-card-foreground;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cn-alert-variant-destructive {
|
|
43
|
+
@apply text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* MARK: Accordion */
|
|
47
|
+
/* Root hook: boxed-root themes (mira/rhea, later luma/maia)
|
|
48
|
+
* style this; every fragment must give the name content (the compile
|
|
49
|
+
* gate), so default carries the upstream demo idiom. */
|
|
50
|
+
.cn-accordion {
|
|
51
|
+
@apply w-full overflow-hidden rounded-md border;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cn-accordion-item {
|
|
55
|
+
@apply data-open:bg-muted/50 not-last:border-b;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.cn-accordion-trigger {
|
|
59
|
+
@apply gap-6 p-2 text-left text-xs/relaxed font-medium hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cn-accordion-trigger-icon {
|
|
63
|
+
@apply ml-auto size-4 text-muted-foreground;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cn-accordion-content {
|
|
67
|
+
@apply data-open:animate-accordion-down data-closed:animate-accordion-up px-2 text-xs/relaxed;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.cn-accordion-content-inner {
|
|
71
|
+
@apply pt-0 pb-4;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* MARK: AlertDialog */
|
|
75
|
+
.cn-alert-dialog-content {
|
|
76
|
+
@apply w-full max-w-[calc(100%-2rem)] bg-popover text-popover-foreground ring-foreground/10 gap-3 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm backdrop:bg-black/10 supports-backdrop-filter:backdrop:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.cn-alert-dialog-header {
|
|
80
|
+
@apply gap-1 has-data-[slot=alert-dialog-media]:gap-x-4;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cn-alert-dialog-media {
|
|
84
|
+
@apply mb-2 size-16 rounded-md bg-muted *:[svg:not([class*='size-'])]:size-8;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cn-alert-dialog-title {
|
|
88
|
+
@apply text-sm font-medium;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.cn-alert-dialog-description {
|
|
92
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Footer hook: nova bands it; gap-2 moved here from the inline
|
|
96
|
+
* set with the name (direction/justify stay inline - the sm-size grid
|
|
97
|
+
* branch replaces them consumer-side). */
|
|
98
|
+
.cn-alert-dialog-footer {
|
|
99
|
+
@apply gap-2;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* MARK: Attachment */
|
|
103
|
+
/* w-fit lives here so the vertical orientation's w-24 beats it in-layer
|
|
104
|
+
* (split-side rule). */
|
|
105
|
+
.cn-attachment {
|
|
106
|
+
@apply rounded-lg w-fit focus-within:ring-1 focus-within:ring-ring/30;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.cn-attachment-actions {
|
|
110
|
+
@apply group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 relative z-20 group-data-[orientation=vertical]/attachment:gap-1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cn-attachment-trigger {
|
|
114
|
+
@apply absolute inset-0 z-10 outline-none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.cn-attachment-media-variant-image {
|
|
118
|
+
@apply opacity-60 group-data-[state=idle]/attachment:opacity-100 group-data-[state=done]/attachment:opacity-100;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.cn-attachment-size-default {
|
|
122
|
+
@apply gap-2 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5 text-xs;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.cn-attachment-size-sm {
|
|
126
|
+
@apply gap-2.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.cn-attachment-size-xs {
|
|
130
|
+
@apply gap-1.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs rounded-md;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.cn-attachment-orientation-horizontal {
|
|
134
|
+
@apply min-w-40;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.cn-attachment-orientation-vertical {
|
|
138
|
+
@apply w-24 has-data-[slot=attachment-content]:w-30;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.cn-attachment-media {
|
|
142
|
+
@apply bg-muted text-foreground w-10 rounded-md group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-sm [&_svg:not([class*='size-'])]:size-4 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5 group-data-[orientation=vertical]/attachment:w-full group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.cn-attachment-content {
|
|
146
|
+
@apply leading-tight group-data-[orientation=vertical]/attachment:px-1;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.cn-attachment-title {
|
|
150
|
+
@apply font-medium;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.cn-attachment-description {
|
|
154
|
+
@apply mt-0.5 text-xs;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.cn-attachment-group {
|
|
158
|
+
@apply gap-3 py-1 scroll-px-1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* MARK: Avatar */
|
|
162
|
+
.cn-avatar {
|
|
163
|
+
@apply size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.cn-avatar-image {
|
|
167
|
+
@apply rounded-full;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.cn-avatar-fallback {
|
|
171
|
+
@apply rounded-full bg-muted text-muted-foreground;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.cn-avatar-badge {
|
|
175
|
+
@apply bg-primary text-primary-foreground ring-background group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2 group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.cn-avatar-group-count {
|
|
179
|
+
@apply bg-muted text-muted-foreground size-8 rounded-full text-xs/relaxed group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* MARK: Badge */
|
|
183
|
+
/* The focus/invalid ring chain lives HERE (upstream keeps it inline): the
|
|
184
|
+
* destructive variant re-colors focus-visible:ring-* and can only beat
|
|
185
|
+
* the base treatment from the same layer. */
|
|
186
|
+
.cn-badge {
|
|
187
|
+
@apply h-5 gap-1 rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 has-[>svg:first-child]:pl-1.5 has-[>svg:last-child]:pr-1.5 [&>svg]:size-2.5 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 aria-invalid:ring-2 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.cn-badge-variant-ghost {
|
|
191
|
+
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.cn-badge-variant-link {
|
|
195
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.cn-badge-variant-default {
|
|
199
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.cn-badge-variant-secondary {
|
|
203
|
+
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.cn-badge-variant-destructive {
|
|
207
|
+
@apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-[oklch(from_var(--destructive)_calc(l*0.85)_c_h)] dark:text-destructive dark:bg-destructive/20;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.cn-badge-variant-outline {
|
|
211
|
+
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/20 dark:bg-input/30;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.cn-badge-variant-success {
|
|
215
|
+
@apply bg-success/10 [a]:hover:bg-success/20 focus-visible:ring-success/20 dark:focus-visible:ring-success/40 text-[oklch(from_var(--success)_calc(l*0.85)_c_h)] dark:text-success dark:bg-success/20;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.cn-badge-variant-warning {
|
|
219
|
+
@apply bg-warning/10 [a]:hover:bg-warning/20 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40 text-[oklch(from_var(--warning)_calc(l*0.85)_c_h)] dark:text-warning dark:bg-warning/20;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.cn-badge-variant-info {
|
|
223
|
+
@apply bg-info/10 [a]:hover:bg-info/20 focus-visible:ring-info/20 dark:focus-visible:ring-info/40 text-[oklch(from_var(--info)_calc(l*0.85)_c_h)] dark:text-info dark:bg-info/20;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* MARK: Breadcrumb */
|
|
227
|
+
.cn-breadcrumb-list {
|
|
228
|
+
@apply text-muted-foreground gap-1.5 text-xs/relaxed;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.cn-breadcrumb-item {
|
|
232
|
+
@apply gap-1;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.cn-breadcrumb-link {
|
|
236
|
+
@apply transition-colors hover:text-foreground;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.cn-breadcrumb-page {
|
|
240
|
+
@apply font-normal text-foreground;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.cn-breadcrumb-separator {
|
|
244
|
+
@apply [&>svg]:size-3.5;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.cn-breadcrumb-ellipsis {
|
|
248
|
+
@apply size-4 [&>svg]:size-3.5;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* MARK: Bubble */
|
|
252
|
+
.cn-bubble {
|
|
253
|
+
@apply gap-1 data-[align=end]:self-end max-w-[80%] data-[variant=ghost]:max-w-full group-data-[align=end]/message:self-end;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.cn-bubble-group {
|
|
257
|
+
@apply gap-2;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.cn-bubble-variant-default {
|
|
261
|
+
@apply *:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.cn-bubble-variant-secondary {
|
|
265
|
+
@apply *:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.cn-bubble-variant-muted {
|
|
269
|
+
@apply *:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.cn-bubble-variant-tinted {
|
|
273
|
+
@apply *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)];
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.cn-bubble-variant-outline {
|
|
277
|
+
@apply *:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.cn-bubble-variant-ghost {
|
|
281
|
+
@apply border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.cn-bubble-variant-destructive {
|
|
285
|
+
@apply *:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.cn-bubble-content {
|
|
289
|
+
@apply rounded-lg border border-transparent px-2.5 py-1.5 text-xs/relaxed [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-2 [button,a]:focus-visible:ring-ring/30 group-data-[align=end]/bubble:self-end;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.cn-bubble-reactions {
|
|
293
|
+
@apply rounded-full ring-2 ring-card bg-muted gap-1 px-1.5 py-0.5 has-[button]:p-0 text-xs;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* MARK: Button */
|
|
297
|
+
.cn-button {
|
|
298
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.cn-button-variant-default {
|
|
302
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.cn-button-variant-destructive {
|
|
306
|
+
@apply bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-[oklch(from_var(--destructive)_calc(l*0.85)_c_h)] dark:text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.cn-button-variant-outline {
|
|
310
|
+
@apply border-border dark:bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.cn-button-variant-secondary {
|
|
314
|
+
@apply bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.cn-button-variant-ghost {
|
|
318
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.cn-button-variant-link {
|
|
322
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.cn-button-size-default {
|
|
326
|
+
@apply h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 has-[>svg:first-child]:pl-1.5 has-[>svg:last-child]:pr-1.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.cn-button-size-xs {
|
|
330
|
+
@apply h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 has-[>svg:first-child]:pl-1.5 has-[>svg:last-child]:pr-1.5 [&_svg:not([class*='size-'])]:size-2.5;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.cn-button-size-sm {
|
|
334
|
+
@apply h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 has-[>svg:first-child]:pl-1.5 has-[>svg:last-child]:pr-1.5 [&_svg:not([class*='size-'])]:size-3;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.cn-button-size-lg {
|
|
338
|
+
@apply h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 has-[>svg:first-child]:pl-2 has-[>svg:last-child]:pr-2 [&_svg:not([class*='size-'])]:size-4;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.cn-button-size-icon {
|
|
342
|
+
@apply size-7 [&_svg:not([class*='size-'])]:size-3.5;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.cn-button-size-icon-xs {
|
|
346
|
+
@apply size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.cn-button-size-icon-sm {
|
|
350
|
+
@apply size-6 [&_svg:not([class*='size-'])]:size-3;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.cn-button-size-icon-lg {
|
|
354
|
+
@apply size-8 [&_svg:not([class*='size-'])]:size-4;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* MARK: ButtonGroup */
|
|
358
|
+
.cn-button-group {
|
|
359
|
+
@apply has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.cn-button-group-orientation-horizontal {
|
|
363
|
+
@apply *:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0 [&>:is([data-slot=select],[data-slot=dropdown-menu],[data-slot=popover]):has(~[data-slot])_:is([data-slot=select-trigger],[data-slot=dropdown-menu-trigger],[data-slot=popover-trigger])]:rounded-r-none [&>:is([data-slot=select],[data-slot=dropdown-menu],[data-slot=popover]):not(:has(~[data-slot]))_:is([data-slot=select-trigger],[data-slot=dropdown-menu-trigger],[data-slot=popover-trigger])]:rounded-r-md! [&>[data-slot]~:is([data-slot=select],[data-slot=dropdown-menu],[data-slot=popover])_:is([data-slot=select-trigger],[data-slot=dropdown-menu-trigger],[data-slot=popover-trigger])]:rounded-l-none [&>[data-slot]~:is([data-slot=select],[data-slot=dropdown-menu],[data-slot=popover])_:is([data-slot=select-trigger],[data-slot=dropdown-menu-trigger],[data-slot=popover-trigger])]:border-l-0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.cn-button-group-orientation-vertical {
|
|
367
|
+
@apply flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0 [&>:is([data-slot=select],[data-slot=dropdown-menu],[data-slot=popover]):has(~[data-slot])_:is([data-slot=select-trigger],[data-slot=dropdown-menu-trigger],[data-slot=popover-trigger])]:rounded-b-none [&>:is([data-slot=select],[data-slot=dropdown-menu],[data-slot=popover]):not(:has(~[data-slot]))_:is([data-slot=select-trigger],[data-slot=dropdown-menu-trigger],[data-slot=popover-trigger])]:rounded-b-md! [&>[data-slot]~:is([data-slot=select],[data-slot=dropdown-menu],[data-slot=popover])_:is([data-slot=select-trigger],[data-slot=dropdown-menu-trigger],[data-slot=popover-trigger])]:rounded-t-none [&>[data-slot]~:is([data-slot=select],[data-slot=dropdown-menu],[data-slot=popover])_:is([data-slot=select-trigger],[data-slot=dropdown-menu-trigger],[data-slot=popover-trigger])]:border-t-0;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.cn-button-group-text {
|
|
371
|
+
@apply bg-muted gap-2 rounded-md border px-2.5 text-xs/relaxed font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.cn-button-group-separator {
|
|
375
|
+
@apply bg-input!;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* MARK: Calendar */
|
|
379
|
+
.cn-calendar {
|
|
380
|
+
@apply p-3;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.cn-calendar-caption {
|
|
384
|
+
@apply text-sm font-medium;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.cn-calendar-weekday {
|
|
388
|
+
@apply rounded-md text-[0.8rem] font-normal text-muted-foreground;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.cn-calendar-day-button {
|
|
392
|
+
@apply rounded-md text-sm leading-none font-normal hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:text-muted-foreground disabled:opacity-50 data-today:bg-muted data-today:text-foreground data-outside:text-muted-foreground data-selected:bg-primary data-selected:text-primary-foreground data-selected:hover:bg-primary data-selected:hover:text-primary-foreground data-range-start:rounded-l-md data-range-start:bg-primary data-range-start:text-primary-foreground data-range-middle:rounded-none data-range-middle:bg-muted data-range-middle:text-foreground data-range-end:rounded-r-md data-range-end:bg-primary data-range-end:text-primary-foreground;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/* MARK: Card */
|
|
396
|
+
.cn-card {
|
|
397
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-lg py-(--card-spacing) text-xs/relaxed ring-1 [--card-spacing:--spacing(4)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.cn-card-header {
|
|
401
|
+
@apply gap-1 rounded-t-lg px-(--card-spacing) [.border-b]:pb-(--card-spacing);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.cn-card-title {
|
|
405
|
+
@apply text-sm font-medium;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.cn-card-description {
|
|
409
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.cn-card-content {
|
|
413
|
+
@apply px-(--card-spacing);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.cn-card-footer {
|
|
417
|
+
@apply rounded-b-lg px-(--card-spacing) [.border-t]:pt-(--card-spacing);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* MARK: Checkbox */
|
|
421
|
+
.cn-checkbox {
|
|
422
|
+
@apply border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-shadow focus-visible:ring-2 aria-invalid:ring-2 group-has-[:focus-visible]/field-label:data-checked:border-primary group-has-[:focus-visible]/field-label:not-data-checked:border-input group-has-[:focus-visible]/field-label:ring-0 group-has-disabled/field:opacity-50;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.cn-checkbox-indicator {
|
|
426
|
+
@apply [&>svg]:size-3.5;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* MARK: CodeBlock */
|
|
430
|
+
/* The syntax palette: seven vars the dictionary's token map reads
|
|
431
|
+
* (GitHub light/dark is the shared v1 baseline - a theme restyles code by
|
|
432
|
+
* redefining the vars); .hll is highlight_lines:, .line::before the CSS
|
|
433
|
+
* counters (out of copied text by construction). */
|
|
434
|
+
.cn-code-block {
|
|
435
|
+
@apply bg-muted/30 rounded-lg border text-foreground [--syntax-keyword:#a40e26] [--syntax-constant:#0550ae] [--syntax-string:#0a3069] [--syntax-entity:#7f3400] [--syntax-markup:#116329] [--syntax-function:#6639ba] [--syntax-comment:#57606a] dark:[--syntax-keyword:#ff7b72] dark:[--syntax-constant:#79c0ff] dark:[--syntax-string:#a5d6ff] dark:[--syntax-entity:#ffa657] dark:[--syntax-markup:#7ee787] dark:[--syntax-function:#d2a8ff] dark:[--syntax-comment:#8b949e];
|
|
436
|
+
}
|
|
437
|
+
.cn-code-block .hll {
|
|
438
|
+
@apply bg-primary/10 -mx-4 w-[calc(100%+2rem)] px-4;
|
|
439
|
+
}
|
|
440
|
+
.cn-code-block[data-line-numbers] .line::before {
|
|
441
|
+
@apply text-muted-foreground me-4 inline-block w-6 text-right content-[counter(line)] [counter-increment:line];
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* MARK: Command */
|
|
445
|
+
.cn-command {
|
|
446
|
+
@apply bg-popover text-popover-foreground rounded-xl p-1;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.cn-input-otp-group {
|
|
450
|
+
@apply has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive rounded-md has-aria-invalid:ring-2;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.cn-input-otp-separator {
|
|
454
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.cn-command-input-icon {
|
|
458
|
+
@apply size-3.5 shrink-0 opacity-50;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.cn-command-input-wrapper {
|
|
462
|
+
@apply m-1 mb-0 h-7 gap-2 rounded-md border-none bg-input/20 dark:bg-input/30 px-2 shadow-none;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.cn-command-input {
|
|
466
|
+
@apply w-full bg-transparent text-xs/relaxed placeholder:text-muted-foreground;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/* Loose items (direct children, no group): the source's palette never
|
|
470
|
+
* renders them, so the list carries the inset itself and its groups drop
|
|
471
|
+
* their horizontal padding - every row aligns; group-only lists keep the
|
|
472
|
+
* cmdk geometry. */
|
|
473
|
+
.cn-command-list {
|
|
474
|
+
@apply no-scrollbar max-h-72 scroll-py-1 outline-none has-[>[data-slot=command-item]]:p-1 has-[>[data-slot=command-item]]:*:data-[slot=command-group]:px-0;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.cn-command-empty {
|
|
478
|
+
@apply py-6 text-center text-xs/relaxed;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.cn-command-group {
|
|
482
|
+
@apply text-foreground p-1;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.cn-command-group-heading {
|
|
486
|
+
@apply px-2 py-1.5 text-xs font-medium text-muted-foreground;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.cn-command-item {
|
|
490
|
+
@apply data-highlighted:bg-muted data-highlighted:text-foreground data-highlighted:*:[svg]:text-foreground min-h-7 items-center gap-2 rounded-md px-2.5 py-1.5 text-xs/relaxed outline-hidden select-none in-data-[slot=dialog-content]:rounded-md [&_svg:not([class*='size-'])]:size-3.5;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.cn-command-shortcut {
|
|
494
|
+
@apply text-muted-foreground group-data-highlighted/command-item:text-foreground ml-auto text-[0.625rem] tracking-widest;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.cn-command-separator {
|
|
498
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* MARK: Combobox */
|
|
502
|
+
.cn-combobox-trigger {
|
|
503
|
+
@apply h-9 w-[200px] gap-2 rounded-md border bg-background px-4 py-2 text-sm font-normal shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:aria-invalid:ring-destructive/40 dark:border-input dark:bg-input/30 dark:hover:bg-input/50 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-4;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.cn-combobox-content {
|
|
507
|
+
@apply bg-popover dark:bg-popover text-popover-foreground ring-foreground/10 max-h-72 min-w-32 overflow-hidden rounded-lg p-0 shadow-md ring-1 duration-100 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/* The popup's list and group label: the source's combobox rules (the
|
|
511
|
+
* inset rides the LIST, the group stays unpadded). */
|
|
512
|
+
.cn-combobox-label {
|
|
513
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.cn-combobox-list {
|
|
517
|
+
@apply no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.cn-combobox-item-indicator {
|
|
521
|
+
@apply pointer-events-none absolute right-2 flex items-center justify-center;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* The chips FIELD (multiple:) - mira's compact field; micro chips on
|
|
525
|
+
* the badge's full-round micro type. */
|
|
526
|
+
.cn-combobox-chips {
|
|
527
|
+
@apply min-h-7 gap-1 rounded-md border border-input bg-input/20 px-2 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30 dark:bg-input/30 has-data-[slot=combobox-chip]:px-1 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 has-aria-invalid:ring-2 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.cn-combobox-chip {
|
|
531
|
+
@apply h-4.5 gap-1 rounded-full bg-muted px-1.5 text-[0.625rem] font-medium focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.cn-combobox-chip-remove {
|
|
535
|
+
@apply -ml-1 rounded-full opacity-50 hover:opacity-100 focus-visible:opacity-100;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.cn-combobox-chip-input {
|
|
539
|
+
@apply min-w-16 placeholder:text-muted-foreground;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/* MARK: ContextMenu */
|
|
543
|
+
.cn-context-menu-content {
|
|
544
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.cn-context-menu-item {
|
|
548
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.cn-context-menu-checkbox-item {
|
|
552
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.cn-context-menu-radio-item {
|
|
556
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.cn-context-menu-label {
|
|
560
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs data-inset:pl-7.5;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.cn-context-menu-separator {
|
|
564
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.cn-context-menu-shortcut {
|
|
568
|
+
@apply text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.cn-context-menu-sub-trigger {
|
|
572
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5 data-popup-open:bg-accent data-popup-open:text-accent-foreground;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.cn-context-menu-sub-content {
|
|
576
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.cn-context-menu-item-indicator {
|
|
580
|
+
@apply right-2 flex items-center justify-center;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/* MARK: DataTable */
|
|
584
|
+
.cn-data-table-toolbar {
|
|
585
|
+
@apply py-4;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.cn-data-table-container {
|
|
589
|
+
@apply rounded-md border;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.cn-data-table-footer {
|
|
593
|
+
@apply py-4;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.cn-data-table-empty {
|
|
597
|
+
@apply h-24 text-center;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* MARK: Dialog */
|
|
601
|
+
.cn-dialog-content {
|
|
602
|
+
@apply w-full max-w-[calc(100%-2rem)] bg-popover text-popover-foreground ring-foreground/10 gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm backdrop:bg-black/10 supports-backdrop-filter:backdrop:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.cn-dialog-footer {
|
|
606
|
+
@apply gap-2;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.cn-dialog-header {
|
|
610
|
+
@apply gap-1;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.cn-dialog-title {
|
|
614
|
+
@apply text-sm font-medium;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.cn-dialog-description {
|
|
618
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.cn-dialog-close {
|
|
622
|
+
@apply absolute top-2 right-2;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/* MARK: Drawer */
|
|
626
|
+
/* Floating drawer (source .cn-drawer-popup): --drawer-inset gaps the
|
|
627
|
+
viewport edges, so the surface rounds and borders on ALL sides; the
|
|
628
|
+
per-direction rules repeat the radius so they never re-square it. */
|
|
629
|
+
.cn-drawer-content {
|
|
630
|
+
@apply bg-popover text-xs/relaxed text-popover-foreground rounded-xl border border-popover [--drawer-inset:--spacing(2)] backdrop:bg-black/80 supports-backdrop-filter:backdrop:backdrop-blur-xs dark:border-border;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.cn-drawer-direction-down {
|
|
634
|
+
@apply rounded-xl;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.cn-drawer-direction-up {
|
|
638
|
+
@apply rounded-xl;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.cn-drawer-direction-left {
|
|
642
|
+
@apply rounded-xl;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.cn-drawer-direction-right {
|
|
646
|
+
@apply rounded-xl;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.cn-drawer-swipe-handle {
|
|
650
|
+
@apply after:h-1.5 after:w-[100px] after:rounded-full after:bg-muted;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.cn-drawer-header {
|
|
654
|
+
@apply gap-1 p-4 pb-0 md:text-left;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.cn-drawer-footer {
|
|
658
|
+
@apply gap-2 p-4 pt-0;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.cn-drawer-title {
|
|
662
|
+
@apply text-foreground text-sm font-medium;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.cn-drawer-description {
|
|
666
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.cn-drawer-body {
|
|
670
|
+
@apply p-4;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/* MARK: DropdownMenu */
|
|
674
|
+
.cn-dropdown-menu-content {
|
|
675
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.cn-dropdown-menu-item {
|
|
679
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.cn-dropdown-menu-checkbox-item {
|
|
683
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.cn-dropdown-menu-radio-item {
|
|
687
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.cn-dropdown-menu-label {
|
|
691
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs data-inset:pl-7.5;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.cn-dropdown-menu-separator {
|
|
695
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.cn-dropdown-menu-shortcut {
|
|
699
|
+
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-[0.625rem] tracking-widest;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.cn-dropdown-menu-sub-trigger {
|
|
703
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5 data-popup-open:bg-accent data-popup-open:text-accent-foreground;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.cn-dropdown-menu-sub-content {
|
|
707
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.cn-dropdown-menu-item-indicator {
|
|
711
|
+
@apply right-2 flex items-center justify-center;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/* MARK: Empty */
|
|
715
|
+
.cn-empty {
|
|
716
|
+
@apply gap-4 rounded-xl border-dashed p-6;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.cn-empty-header {
|
|
720
|
+
@apply gap-1;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.cn-empty-media {
|
|
724
|
+
@apply mb-2;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.cn-empty-media-default {
|
|
728
|
+
@apply bg-transparent;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.cn-empty-media-icon {
|
|
732
|
+
@apply bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-md [&_svg:not([class*='size-'])]:size-4;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.cn-empty-title {
|
|
736
|
+
@apply text-sm font-medium tracking-tight;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.cn-empty-description {
|
|
740
|
+
@apply text-xs/relaxed;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.cn-empty-content {
|
|
744
|
+
@apply gap-2 text-xs/relaxed;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/* MARK: Field */
|
|
748
|
+
.cn-field {
|
|
749
|
+
@apply data-[invalid=true]:text-destructive gap-2;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.cn-field-description {
|
|
753
|
+
@apply text-muted-foreground text-left text-xs/relaxed [[data-variant=legend]+&]:-mt-1.5;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.cn-field-error {
|
|
757
|
+
@apply text-destructive text-xs/relaxed;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.cn-field-orientation-horizontal {
|
|
761
|
+
@apply gap-x-3;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/* Row layout: the label + hint pair packs at the theme's
|
|
765
|
+
cn-field-content rhythm; the field gap keeps the column axis. */
|
|
766
|
+
.cn-field-orientation-responsive {
|
|
767
|
+
@apply @md/field-group:gap-y-0.5;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.cn-field-set {
|
|
771
|
+
@apply gap-4 has-[>.cn-field-group-choices]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.cn-field-legend {
|
|
775
|
+
@apply mb-2 font-medium data-[variant=legend]:text-sm data-[variant=label]:text-xs/relaxed;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.cn-field-group {
|
|
779
|
+
@apply gap-4 *:data-[slot=field-group]:gap-4;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.cn-field-group-choices {
|
|
783
|
+
@apply gap-3;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.cn-field-content {
|
|
787
|
+
@apply gap-0.5;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.cn-field-label {
|
|
791
|
+
@apply has-data-checked:bg-primary/5 dark:has-data-checked:bg-primary/10 gap-2 leading-snug *:data-[slot=field]:p-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:border has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-2 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/30 has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-input/40 has-[>[data-slot=field]]:rounded-md;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.cn-field-label-card {
|
|
795
|
+
@apply rounded-md border p-2;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.cn-field-title {
|
|
799
|
+
@apply gap-2 text-xs/relaxed font-medium;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.cn-field-separator {
|
|
803
|
+
@apply -my-2 h-5 text-xs/relaxed;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.cn-field-separator-content {
|
|
807
|
+
@apply px-2 text-muted-foreground;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/* MARK: HoverCard */
|
|
811
|
+
.cn-hover-card-content {
|
|
812
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-72 rounded-lg p-2.5 text-xs/relaxed shadow-md ring-1 duration-100;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/* MARK: Input */
|
|
816
|
+
.cn-input {
|
|
817
|
+
@apply bg-input/20 dark:bg-input/30 border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/* MARK: InputGroup */
|
|
821
|
+
.cn-input-group {
|
|
822
|
+
@apply border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-7 rounded-md border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot][aria-invalid=true]]:ring-2 has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.cn-input-group-button-size-sm {
|
|
826
|
+
@apply gap-1;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/* kbd hint AA hold: micro type on the doubled tint (kbd's
|
|
830
|
+
* muted-foreground/10 over the group's bg-input/20) drops under 4.5:1 -
|
|
831
|
+
* light mode darkens the kbd text via relative oklch, dark restores the
|
|
832
|
+
* token (the tinted-Bubble idiom, AA-contrast posture; axe caught it live). */
|
|
833
|
+
.cn-input-group-addon {
|
|
834
|
+
@apply text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-2 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] **:data-[slot=kbd]:text-[oklch(from_var(--muted-foreground)_calc(l*0.8)_c_h)] dark:**:data-[slot=kbd]:text-muted-foreground [&>svg:not([class*='size-'])]:size-3.5;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.cn-input-group-addon-align-inline-start {
|
|
838
|
+
@apply pl-2 has-[>button]:ml-[-0.275rem] has-[>kbd]:ml-[-0.275rem];
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
.cn-input-group-addon-align-inline-end {
|
|
842
|
+
@apply pr-2 has-[>button]:mr-[-0.275rem] has-[>kbd]:mr-[-0.275rem];
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.cn-input-group-addon-align-block-start {
|
|
846
|
+
@apply px-2 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.cn-input-group-addon-align-block-end {
|
|
850
|
+
@apply px-2 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.cn-input-group-text {
|
|
854
|
+
@apply text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/* MARK: InputOTP */
|
|
858
|
+
.cn-input-otp {
|
|
859
|
+
@apply gap-2;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.cn-input-otp-slot {
|
|
863
|
+
@apply bg-input/20 dark:bg-input/30 border-input data-[active=true]:border-ring data-[active=true]:ring-ring/30 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive size-7 border-y border-r text-xs/relaxed transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:ring-2;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.cn-input-otp-caret-line {
|
|
867
|
+
@apply bg-foreground h-4 w-px;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
/* MARK: Item */
|
|
871
|
+
.cn-item {
|
|
872
|
+
@apply [a]:hover:bg-muted rounded-md border text-xs/relaxed;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.cn-item-media {
|
|
876
|
+
@apply gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.cn-item-media-variant-default {
|
|
880
|
+
@apply bg-transparent;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.cn-item-media-variant-icon {
|
|
884
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.cn-item-media-variant-image {
|
|
888
|
+
@apply size-8 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.cn-item-content {
|
|
892
|
+
@apply gap-1 group-data-[size=xs]/item:gap-0.5;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.cn-item-title {
|
|
896
|
+
@apply gap-2 text-xs/relaxed leading-snug font-medium underline-offset-4;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.cn-item-description {
|
|
900
|
+
@apply text-muted-foreground text-left text-xs/relaxed;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.cn-item-actions {
|
|
904
|
+
@apply gap-2;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.cn-item-header {
|
|
908
|
+
@apply gap-2;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.cn-item-footer {
|
|
912
|
+
@apply gap-2;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.cn-item-group {
|
|
916
|
+
@apply gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.cn-item-separator {
|
|
920
|
+
@apply my-2;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.cn-item-variant-default {
|
|
924
|
+
@apply border-transparent;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.cn-item-variant-outline {
|
|
928
|
+
@apply border-border;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.cn-item-variant-muted {
|
|
932
|
+
@apply border-transparent bg-muted/50;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
.cn-item-size-default {
|
|
936
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.cn-item-size-sm {
|
|
940
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.cn-item-size-xs {
|
|
944
|
+
@apply gap-2.5 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/* MARK: Kbd */
|
|
948
|
+
.cn-kbd {
|
|
949
|
+
@apply bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-xs px-1 font-sans text-[0.625rem] font-medium [&_svg:not([class*='size-'])]:size-3;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.cn-kbd-group {
|
|
953
|
+
@apply gap-1;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/* MARK: Label */
|
|
957
|
+
.cn-label {
|
|
958
|
+
@apply gap-2 text-xs/relaxed leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/* MARK: Link */
|
|
962
|
+
.cn-link {
|
|
963
|
+
@apply gap-1 rounded-sm text-primary underline-offset-4 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.cn-link-underline-hover {
|
|
967
|
+
@apply no-underline hover:underline;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.cn-link-underline-always {
|
|
971
|
+
@apply underline;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.cn-link-underline-none {
|
|
975
|
+
@apply no-underline;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/* MARK: Marker */
|
|
979
|
+
.cn-marker {
|
|
980
|
+
@apply gap-2 text-xs/relaxed text-muted-foreground [a]:hover:text-foreground [a]:underline-offset-3 [a]:underline [&_svg:not([class*='size-'])]:size-3.5 min-h-4 text-left;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.cn-marker-variant-separator {
|
|
984
|
+
@apply before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.cn-marker-variant-border {
|
|
988
|
+
@apply border-b border-border pb-2;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.cn-marker-icon {
|
|
992
|
+
@apply size-3.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.cn-marker-content {
|
|
996
|
+
@apply group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
/* MARK: Menubar */
|
|
1000
|
+
.cn-menubar {
|
|
1001
|
+
@apply h-9 rounded-lg border p-1;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.cn-menubar-checkbox-item-indicator {
|
|
1005
|
+
@apply left-2 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.cn-menubar-radio-item-indicator {
|
|
1009
|
+
@apply left-2 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.cn-navigation-menu {
|
|
1013
|
+
@apply max-w-max;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.cn-menubar-trigger {
|
|
1017
|
+
@apply hover:bg-muted aria-expanded:bg-muted rounded-[calc(var(--radius-md)-2px)] px-2 py-[calc(--spacing(0.85))] text-xs/relaxed font-medium;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.cn-menubar-content {
|
|
1021
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
.cn-menubar-item {
|
|
1025
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed data-disabled:opacity-50 data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.cn-menubar-checkbox-item {
|
|
1029
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-2 pl-7.5 text-xs data-inset:pl-7.5;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.cn-menubar-radio-item {
|
|
1033
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-2 pl-7.5 text-xs data-disabled:opacity-50 data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.cn-menubar-label {
|
|
1037
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs data-inset:pl-7.5;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
.cn-menubar-separator {
|
|
1041
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.cn-menubar-shortcut {
|
|
1045
|
+
@apply text-muted-foreground group-focus/menubar-item:text-accent-foreground text-[0.625rem] tracking-widest;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.cn-menubar-sub-trigger {
|
|
1049
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5 data-popup-open:bg-accent data-popup-open:text-accent-foreground;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.cn-menubar-sub-content {
|
|
1053
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
/* MARK: Message */
|
|
1058
|
+
.cn-message {
|
|
1059
|
+
@apply text-xs/relaxed gap-1.5;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.cn-message-group {
|
|
1063
|
+
@apply gap-1.5;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.cn-message-avatar {
|
|
1067
|
+
@apply min-w-8 group-has-data-[slot=message-footer]/message:-translate-y-8;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.cn-message-content {
|
|
1071
|
+
@apply gap-2 group-data-[align=end]/message:*:data-slot:self-end;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.cn-message-header {
|
|
1075
|
+
@apply text-[0.625rem] font-medium text-muted-foreground px-2.5 group-has-data-[variant=ghost]/message:px-0;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.cn-message-footer {
|
|
1079
|
+
@apply text-[0.625rem] font-medium text-muted-foreground px-2.5 group-has-data-[variant=ghost]/message:px-0;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
/* MARK: MessageScroller */
|
|
1083
|
+
.cn-message-scroller-content {
|
|
1084
|
+
@apply gap-6;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/* MARK: NavigationMenu */
|
|
1088
|
+
.cn-navigation-menu-list {
|
|
1089
|
+
@apply gap-0;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.cn-navigation-menu-trigger {
|
|
1093
|
+
@apply hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/30 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted rounded-lg px-2.5 py-1.5 text-xs/relaxed font-medium transition-all focus-visible:ring-2 focus-visible:outline-1 disabled:opacity-50;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.cn-navigation-menu-trigger-icon {
|
|
1097
|
+
@apply ml-1 size-3 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
.cn-navigation-menu-content {
|
|
1101
|
+
@apply data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-xl group-data-[viewport=false]/navigation-menu:shadow-md group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
.cn-navigation-menu-popup {
|
|
1105
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-xl shadow ring-1 transition-all ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.cn-navigation-menu-link {
|
|
1109
|
+
@apply data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/30 hover:bg-muted focus:bg-muted gap-1.5 rounded-lg p-2 text-xs/relaxed transition-all focus-visible:ring-2 focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4 in-data-[slot=navigation-menu-content]:rounded-md;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/* MARK: NativeSelect */
|
|
1113
|
+
.cn-native-select {
|
|
1114
|
+
@apply border-input bg-input/20 placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 min-w-0 rounded-md border py-0.5 pr-6 pl-2 text-xs/relaxed transition-colors select-none focus-visible:ring-2 aria-invalid:ring-2 data-[size=sm]:h-6 data-[size=sm]:text-[0.625rem];
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
.cn-native-select-icon {
|
|
1118
|
+
@apply text-muted-foreground;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
/* MARK: Pagination */
|
|
1122
|
+
.cn-pagination-content {
|
|
1123
|
+
@apply gap-0.5;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.cn-carousel-previous {
|
|
1127
|
+
@apply rounded-full;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
.cn-carousel-next {
|
|
1131
|
+
@apply rounded-full;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.cn-pagination-previous {
|
|
1135
|
+
@apply pl-2!;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.cn-pagination-next {
|
|
1139
|
+
@apply pr-2!;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
.cn-pagination-ellipsis {
|
|
1143
|
+
@apply size-7 [&_svg:not([class*='size-'])]:size-3.5;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
/* MARK: Popover */
|
|
1147
|
+
.cn-popover-content {
|
|
1148
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-4 rounded-lg p-2.5 text-xs shadow-md ring-1 duration-100;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.cn-popover-header {
|
|
1152
|
+
@apply gap-1 text-xs;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.cn-popover-title {
|
|
1156
|
+
@apply text-sm font-medium;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.cn-popover-description {
|
|
1160
|
+
@apply text-muted-foreground;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/* MARK: Progress */
|
|
1164
|
+
.cn-progress-track {
|
|
1165
|
+
@apply bg-muted h-1 rounded-md;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.cn-progress-indicator {
|
|
1169
|
+
@apply bg-primary;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.cn-progress-label {
|
|
1173
|
+
@apply text-xs/relaxed font-medium;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.cn-progress-value {
|
|
1177
|
+
@apply text-muted-foreground ml-auto text-xs/relaxed tabular-nums;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/* MARK: RadioGroup */
|
|
1181
|
+
.cn-radio-group {
|
|
1182
|
+
@apply grid gap-3;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
.cn-radio-group-item {
|
|
1186
|
+
@apply border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 flex size-4 rounded-full focus-visible:ring-3 aria-invalid:ring-3 group-has-[:focus-visible]/field-label:data-checked:border-primary group-has-[:focus-visible]/field-label:not-data-checked:border-input group-has-[:focus-visible]/field-label:ring-0;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.cn-radio-group-indicator {
|
|
1190
|
+
@apply flex size-4 items-center justify-center;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.cn-radio-group-indicator-icon {
|
|
1194
|
+
@apply bg-primary-foreground absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/* MARK: Resizable */
|
|
1198
|
+
.cn-resizable-handle-icon {
|
|
1199
|
+
@apply bg-border h-6 w-1 rounded-lg;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/* MARK: Select */
|
|
1203
|
+
.cn-select-trigger {
|
|
1204
|
+
@apply border-input data-placeholder:text-muted-foreground bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2 data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.cn-select-trigger-icon {
|
|
1208
|
+
@apply text-muted-foreground size-3.5;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.cn-select-content {
|
|
1212
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg shadow-md ring-1 duration-100;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.cn-select-group {
|
|
1216
|
+
@apply scroll-my-1 p-1;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.cn-select-value {
|
|
1220
|
+
@apply flex flex-1 text-left;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
.cn-select-item-text {
|
|
1224
|
+
@apply flex flex-1 gap-2;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
.cn-select-scroll-up-button {
|
|
1228
|
+
@apply bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
.cn-select-scroll-down-button {
|
|
1232
|
+
@apply bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.cn-select-viewport {
|
|
1236
|
+
@apply p-1 scroll-my-1;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.cn-select-item {
|
|
1240
|
+
@apply focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
.cn-select-label {
|
|
1244
|
+
@apply px-2 py-1.5 text-xs text-muted-foreground;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
.cn-select-separator {
|
|
1248
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
.cn-select-item-indicator {
|
|
1252
|
+
@apply pointer-events-none absolute right-2 flex items-center justify-center;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/* MARK: Sheet */
|
|
1256
|
+
/* w-full lives here so the sides' w-3/4 can beat it in-layer (split-side
|
|
1257
|
+
* rule) - a latent full-width regression the visual gate cannot see on a
|
|
1258
|
+
* closed dialog. */
|
|
1259
|
+
.cn-sheet-content {
|
|
1260
|
+
@apply m-0 w-full bg-popover text-popover-foreground text-xs/relaxed bg-clip-padding shadow-lg transition duration-200 ease-in-out data-open:animate-in data-closed:animate-out backdrop:bg-black/10 supports-backdrop-filter:backdrop:backdrop-blur-xs;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
.cn-sheet-side-top {
|
|
1264
|
+
@apply bottom-auto mb-auto h-auto w-full max-w-none border-b data-open:slide-in-from-top data-closed:slide-out-to-top;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
.cn-sheet-side-right {
|
|
1268
|
+
@apply ml-auto h-full max-h-none w-3/4 border-l data-open:slide-in-from-right data-closed:slide-out-to-right sm:max-w-sm;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
.cn-sheet-side-bottom {
|
|
1272
|
+
@apply top-auto mt-auto h-auto w-full max-w-none border-t data-open:slide-in-from-bottom data-closed:slide-out-to-bottom;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
.cn-sheet-side-left {
|
|
1276
|
+
@apply mr-auto h-full max-h-none w-3/4 border-r data-open:slide-in-from-left data-closed:slide-out-to-left sm:max-w-sm;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.cn-sheet-header {
|
|
1280
|
+
@apply gap-1.5 p-6;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
.cn-sheet-title {
|
|
1284
|
+
@apply text-foreground text-sm font-medium;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
.cn-sheet-description {
|
|
1288
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
.cn-sheet-footer {
|
|
1292
|
+
@apply gap-2 p-6;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
.cn-sheet-close {
|
|
1296
|
+
@apply absolute top-4 right-4;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/* MARK: SensitiveInput */
|
|
1300
|
+
/* The masked MASK OVERLAY is the focusable reveal button (the
|
|
1301
|
+
* group would trip axe nested-interactive around the inert input) - the
|
|
1302
|
+
* bordered group wears the ring when the mask inside holds focus. */
|
|
1303
|
+
.cn-sensitive-input-group:has([data-slot=sensitive-input-mask]:focus-visible) {
|
|
1304
|
+
@apply outline-none border-ring ring-ring/30 ring-2;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/* MARK: Sidebar */
|
|
1308
|
+
.cn-sidebar-mobile {
|
|
1309
|
+
@apply bg-sidebar p-0 text-sidebar-foreground shadow-lg transition duration-200 ease-in-out data-open:animate-in data-closed:animate-out backdrop:bg-black/10 supports-backdrop-filter:backdrop:backdrop-blur-xs;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.cn-sidebar-mobile-left {
|
|
1313
|
+
@apply border-r data-open:slide-in-from-left data-closed:slide-out-to-left;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
.cn-sidebar-mobile-right {
|
|
1317
|
+
@apply border-l data-open:slide-in-from-right data-closed:slide-out-to-right;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
.cn-sidebar-inner {
|
|
1321
|
+
@apply bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
.cn-sidebar-header {
|
|
1325
|
+
@apply gap-2 p-2;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.cn-sidebar-footer {
|
|
1329
|
+
@apply gap-2 p-2;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
.cn-sidebar-separator {
|
|
1333
|
+
@apply mx-2 bg-sidebar-border;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
.cn-sidebar-content {
|
|
1337
|
+
@apply gap-0;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
.cn-sidebar-gap {
|
|
1341
|
+
@apply transition-[width] duration-200 ease-linear;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
.cn-sidebar-rail {
|
|
1345
|
+
@apply hover:after:bg-sidebar-border;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
.cn-sidebar-inset {
|
|
1349
|
+
@apply bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
.cn-sidebar-group {
|
|
1353
|
+
@apply px-2 py-1;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.cn-sidebar-group-label {
|
|
1357
|
+
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
.cn-sidebar-group-content {
|
|
1361
|
+
@apply text-xs;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.cn-sidebar-menu {
|
|
1365
|
+
@apply gap-px;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
.cn-sidebar-menu-button {
|
|
1369
|
+
@apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium [&_svg]:size-4;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
.cn-sidebar-input {
|
|
1373
|
+
@apply bg-muted/20 dark:bg-muted/30 border-input h-8 w-full;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.cn-sidebar-group-action {
|
|
1377
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-md p-0 focus-visible:ring-2 [&>svg]:size-4;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.cn-sidebar-menu-button-variant-default {
|
|
1381
|
+
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.cn-sidebar-menu-button-variant-outline {
|
|
1385
|
+
@apply bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)];
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.cn-sidebar-menu-skeleton {
|
|
1389
|
+
@apply h-8 gap-2 rounded-md px-2;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
.cn-sidebar-menu-skeleton-icon {
|
|
1393
|
+
@apply size-4 rounded-md;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.cn-sidebar-menu-skeleton-text {
|
|
1397
|
+
@apply h-4;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.cn-sidebar-menu-button-size-default {
|
|
1401
|
+
@apply h-8 text-xs;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
.cn-sidebar-menu-button-size-sm {
|
|
1405
|
+
@apply h-7 text-xs;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
.cn-sidebar-menu-button-size-lg {
|
|
1409
|
+
@apply h-12 text-xs group-data-[collapsible=icon]:p-0!;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
.cn-sidebar-menu-action {
|
|
1413
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground w-5 rounded-[calc(var(--radius-sm)-2px)] p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.cn-sidebar-menu-badge {
|
|
1417
|
+
@apply text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground h-5 min-w-5 rounded-[calc(var(--radius-sm)-2px)] px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
.cn-sidebar-menu-sub {
|
|
1421
|
+
@apply border-sidebar-border gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
.cn-sidebar-menu-sub-button {
|
|
1425
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-xs data-[size=sm]:text-xs [&>svg]:size-4;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
/* MARK: Skeleton */
|
|
1429
|
+
.cn-skeleton {
|
|
1430
|
+
@apply rounded-md bg-muted;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/* MARK: Slider */
|
|
1434
|
+
.cn-slider {
|
|
1435
|
+
@apply data-[orientation=vertical]:min-h-40;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.cn-slider-track {
|
|
1439
|
+
@apply bg-muted rounded-md data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
.cn-slider-range {
|
|
1443
|
+
@apply bg-primary;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
.cn-slider-thumb {
|
|
1447
|
+
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow] after:absolute after:-inset-2 hover:ring-2 focus-visible:ring-2 focus-visible:outline-hidden active:ring-2;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/* MARK: Switch */
|
|
1451
|
+
.cn-switch {
|
|
1452
|
+
@apply data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent focus-visible:ring-2 aria-invalid:ring-2 data-[size=default]:h-[16.6px] data-[size=default]:w-[28px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] group-has-[:focus-visible]/field-label:border-transparent group-has-[:focus-visible]/field-label:ring-0;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
.cn-switch-thumb {
|
|
1456
|
+
@apply rounded-full bg-background group-data-[size=default]/switch:size-3.5 group-data-[size=sm]/switch:size-3 data-checked:translate-x-[calc(100%-2px)] data-unchecked:translate-x-0 rtl:data-checked:-translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
/* MARK: Table */
|
|
1460
|
+
.cn-table {
|
|
1461
|
+
@apply w-full caption-bottom text-xs;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
.cn-table-container {
|
|
1465
|
+
@apply relative w-full overflow-x-auto;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
.cn-table-header {
|
|
1469
|
+
@apply [&_tr]:border-b;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
.cn-table-body {
|
|
1473
|
+
@apply [&_tr:last-child]:border-0;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
.cn-table-footer {
|
|
1477
|
+
@apply border-t bg-muted/50 font-medium [&>tr]:last:border-b-0;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
.cn-table-row {
|
|
1481
|
+
@apply border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-selected:bg-muted;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
.cn-table-head {
|
|
1485
|
+
@apply h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
.cn-table-cell {
|
|
1489
|
+
@apply p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
.cn-table-caption {
|
|
1493
|
+
@apply text-muted-foreground mt-4 text-xs;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
/* MARK: Tabs */
|
|
1497
|
+
.cn-tabs {
|
|
1498
|
+
@apply gap-2;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.cn-tabs-list {
|
|
1502
|
+
@apply rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.cn-tabs-list-variant-default {
|
|
1506
|
+
@apply bg-muted;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
.cn-tabs-list-variant-line {
|
|
1510
|
+
@apply gap-1 bg-transparent;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
/* The whole text-color cluster lives here (split-side rule): the base
|
|
1514
|
+
* dims (text-foreground/60, dark:text-muted-foreground) must lose to the
|
|
1515
|
+
* data-active colors, which they only can in-layer. */
|
|
1516
|
+
.cn-tabs-trigger {
|
|
1517
|
+
@apply gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium text-foreground/60 hover:text-foreground has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground after:bg-foreground group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.cn-tabs-content {
|
|
1521
|
+
@apply text-xs/relaxed;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
/* MARK: Textarea */
|
|
1525
|
+
.cn-textarea {
|
|
1526
|
+
@apply border-input bg-input/20 dark:bg-input/30 placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-md border px-2 py-2 text-sm transition-colors focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
/* MARK: Toast */
|
|
1530
|
+
.cn-toast {
|
|
1531
|
+
@apply gap-3 rounded-md border bg-popover p-4 text-popover-foreground shadow-lg data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-bottom-2 group-data-[position^=top]/toaster:data-open:slide-in-from-top-2 data-closed:animate-out data-closed:fade-out-80 data-closed:slide-out-to-bottom-2 group-data-[position^=top]/toaster:data-closed:slide-out-to-top-2;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
.cn-toast-variant-success {
|
|
1535
|
+
@apply [&_[data-slot=toast-icon]]:text-primary;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.cn-toast-variant-info {
|
|
1539
|
+
@apply [&_[data-slot=toast-icon]]:text-muted-foreground;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
.cn-toast-variant-warning {
|
|
1543
|
+
@apply [&_[data-slot=toast-icon]]:text-primary;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
.cn-toast-variant-destructive {
|
|
1547
|
+
@apply text-destructive [&_[data-slot=toast-icon]]:text-destructive;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
.cn-toast-icon {
|
|
1551
|
+
@apply mt-0.5 size-4 [&_svg]:size-4;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
.cn-toast-body {
|
|
1555
|
+
@apply gap-1;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
.cn-toast-title {
|
|
1559
|
+
@apply text-sm font-medium;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
.cn-toast-description {
|
|
1563
|
+
@apply text-sm text-muted-foreground;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/* MARK: Toaster */
|
|
1567
|
+
/* max-w-full lives here WITH its sm: cap (the split-side rule extends to
|
|
1568
|
+
* responsive pairs: a bare utility would beat the themed breakpoint
|
|
1569
|
+
* override from the utilities layer at every width). */
|
|
1570
|
+
.cn-toaster {
|
|
1571
|
+
@apply max-w-full gap-2 p-4 sm:max-w-[420px];
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
/* MARK: Toggle */
|
|
1575
|
+
/* hover:bg-muted lives HERE (not inline, where upstream keeps it): the
|
|
1576
|
+
* outline variant's hover:bg-accent must beat it, and it only can when
|
|
1577
|
+
* both sides share the base layer (in-layer order = the merger's old
|
|
1578
|
+
* last-wins). An inline utility would win the cascade unconditionally. */
|
|
1579
|
+
.cn-toggle {
|
|
1580
|
+
@apply hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-pressed:bg-muted gap-1 rounded-md text-xs font-medium transition-all [&_svg:not([class*='size-'])]:size-4;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
.cn-toggle-variant-default {
|
|
1584
|
+
@apply bg-transparent;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
.cn-toggle-variant-outline {
|
|
1588
|
+
@apply border-input hover:bg-muted border bg-transparent;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
.cn-toggle-size-default {
|
|
1592
|
+
@apply h-7 min-w-7 px-2 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 has-[>svg:first-child]:pl-1.5 has-[>svg:last-child]:pr-1.5;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
.cn-toggle-size-sm {
|
|
1596
|
+
@apply h-6 min-w-6 rounded-[min(var(--radius-md),8px)] px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 has-[>svg:first-child]:pl-1.5 has-[>svg:last-child]:pr-1.5 [&_svg:not([class*='size-'])]:size-3;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
.cn-toggle-size-lg {
|
|
1600
|
+
@apply h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 has-[>svg:first-child]:pl-2 has-[>svg:last-child]:pr-2;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
/* MARK: ToggleGroup */
|
|
1604
|
+
.cn-toggle-group {
|
|
1605
|
+
@apply rounded-md data-[size=sm]:rounded-[min(var(--radius-md),8px)];
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
/* Segmented edge radii live theme-side (side-move): each theme
|
|
1609
|
+
* rounds spacing=0 segments in its own radius language. */
|
|
1610
|
+
.cn-toggle-group-item {
|
|
1611
|
+
@apply group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-md;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/* MARK: Tooltip */
|
|
1615
|
+
.cn-tooltip-content {
|
|
1616
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
.cn-tooltip-arrow {
|
|
1620
|
+
@apply size-2.5 rounded-[2px];
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
/* MARK: Consumer utilities
|
|
1624
|
+
* Standalone cn-* classes templates and consumers apply directly (they
|
|
1625
|
+
* ride the css:verify_theme allowlist - no dictionary emits cn-rtl-flip).
|
|
1626
|
+
* cn-font-heading: upstream globals (@apply font-heading); poetry inlines
|
|
1627
|
+
* the var with a sans fallback so it is a no-op until a theme defines
|
|
1628
|
+
* --font-heading. cn-rtl-flip: upstream ships the NAME with no rule
|
|
1629
|
+
* anywhere (dead in source); poetry authors the intended RTL mirror. */
|
|
1630
|
+
.cn-font-heading {
|
|
1631
|
+
font-family: var(--font-heading, var(--font-sans));
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
.cn-rtl-flip {
|
|
1635
|
+
@apply rtl:-scale-x-100;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
/* MARK: Cross-component overrides
|
|
1639
|
+
* Rules that restyle ANOTHER component's cn surface must come after every
|
|
1640
|
+
* rule they override - in-layer order is what lets an override win, so
|
|
1641
|
+
* alphabetical placement would silently lose (cn-input-group-textarea vs
|
|
1642
|
+
* the later cn-textarea). Keep every such rule in this closing section. */
|
|
1643
|
+
.cn-input-group-input {
|
|
1644
|
+
@apply rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
.cn-input-group-textarea {
|
|
1648
|
+
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
.cn-input-group-button {
|
|
1652
|
+
@apply gap-2 rounded-md text-xs/relaxed;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
.cn-input-group-button-size-xs {
|
|
1656
|
+
@apply h-5 gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1 [&>svg:not([class*='size-'])]:size-3;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
.cn-input-group-button-size-icon-xs {
|
|
1660
|
+
@apply size-6 p-0 has-[>svg]:p-0;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
.cn-input-group-button-size-icon-sm {
|
|
1664
|
+
@apply size-7 p-0 has-[>svg]:p-0;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
/* CommandDialog re-tunes the Dialog panel (p-0 must beat cn-dialog-content's p-6). */
|
|
1668
|
+
.cn-command-dialog {
|
|
1669
|
+
@apply rounded-xl! p-0;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
/* MARK: Stat */
|
|
1673
|
+
.cn-stat-delta-positive {
|
|
1674
|
+
@apply text-[oklch(from_var(--success)_calc(l*0.85)_c_h)] dark:text-success;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
/* MARK: Questionnaire */
|
|
1678
|
+
.cn-questionnaire {
|
|
1679
|
+
@apply gap-4;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.cn-questionnaire-progress {
|
|
1683
|
+
@apply text-[0.625rem];
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
.cn-questionnaire-item {
|
|
1687
|
+
@apply flex flex-col gap-3;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.cn-questionnaire-title {
|
|
1691
|
+
@apply text-sm font-semibold [&:not(:has(~[data-slot=questionnaire-description]))]:mb-3;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
.cn-questionnaire-description {
|
|
1695
|
+
@apply text-xs/relaxed;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.cn-questionnaire-choices {
|
|
1699
|
+
@apply gap-1.5;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
.cn-questionnaire-choice {
|
|
1703
|
+
@apply border-input hover:bg-input/40 data-checked:border-primary/40 data-checked:bg-primary/10 in-data-invalid:border-destructive has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/30 gap-2.5 rounded-xl border px-3 py-2.5 text-xs/relaxed has-[>input:focus-visible]:ring-2;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
.cn-questionnaire-choice-indicator {
|
|
1707
|
+
@apply border-input dark:bg-input/30 group-data-checked/questionnaire-choice:bg-primary dark:group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground group-data-checked/questionnaire-choice:border-primary size-4 rounded-[4px];
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.cn-questionnaire-choice-indicator-dot {
|
|
1711
|
+
@apply bg-primary-foreground size-2;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
.cn-questionnaire-choice-indicator-check {
|
|
1715
|
+
@apply size-3.5;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
.cn-questionnaire-choice-content {
|
|
1719
|
+
@apply gap-0.5;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.cn-questionnaire-choice-description {
|
|
1723
|
+
@apply text-muted-foreground;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
.cn-questionnaire-shortcut {
|
|
1727
|
+
@apply border-input bg-background/80 text-muted-foreground size-4 translate-y-[--spacing(0.45)] group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 items-center justify-center rounded-sm border font-mono text-[0.5625rem] font-medium leading-none;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.cn-questionnaire-input-wrapper {
|
|
1731
|
+
@apply w-full;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.cn-questionnaire-input {
|
|
1735
|
+
@apply bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.cn-questionnaire-error {
|
|
1739
|
+
@apply mt-2 text-xs/relaxed;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
.cn-questionnaire-actions {
|
|
1743
|
+
@apply gap-1.5 sm:min-h-7;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
/* MARK: WebMCP agent focus (declarative tools) - the browser marks the
|
|
1747
|
+
form an agent is filling and its submit; :where() keeps the rule
|
|
1748
|
+
forgiving in browsers that lack the pseudo-classes. */
|
|
1749
|
+
:where(form:tool-form-active) {
|
|
1750
|
+
@apply rounded-lg outline-2 outline-dashed outline-offset-4 outline-ring/60;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
:where(:tool-submit-active) {
|
|
1754
|
+
@apply border-ring ring-3 ring-ring/50;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
/* MARK: Menu translucent (shared, LAST - wins the content bg cascade) */
|
|
1758
|
+
.cn-menu-translucent {
|
|
1759
|
+
@apply animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!;
|
|
1760
|
+
}
|