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