@tcn/ui 0.3.1 → 0.3.3
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.
- package/README.md +2 -1
- package/dist/actions/button/base_button/base_button.d.ts.map +1 -1
- package/dist/actions/button/base_button/base_button.js +18 -18
- package/dist/actions/button/base_button/base_button.js.map +1 -1
- package/dist/actions/button/button_group/button_group.d.ts +1 -1
- package/dist/actions/button/button_group/button_group.d.ts.map +1 -1
- package/dist/actions/button/button_group/button_group.js +10 -7
- package/dist/actions/button/button_group/button_group.js.map +1 -1
- package/dist/actions/button/select_group/select_group.js +2 -2
- package/dist/actions/button/select_group/select_group.js.map +1 -1
- package/dist/badge.css +1 -1
- package/dist/base_button.css +1 -1
- package/dist/body_text.css +1 -1
- package/dist/bottom_resize_handle.css +1 -1
- package/dist/bubble.css +1 -1
- package/dist/button.css +1 -1
- package/dist/button_group.css +1 -1
- package/dist/callout.css +1 -1
- package/dist/caption.css +1 -1
- package/dist/checkbox.css +1 -1
- package/dist/chip.css +1 -1
- package/dist/circle.css +1 -1
- package/dist/collapsible_box.css +1 -1
- package/dist/color_input.css +1 -1
- package/dist/color_picker.css +1 -1
- package/dist/column.css +1 -1
- package/dist/confirm.css +1 -1
- package/dist/css/layers.css +1 -0
- package/dist/date_picker.css +1 -1
- package/dist/date_picker_date.css +1 -1
- package/dist/date_picker_day.css +1 -1
- package/dist/date_picker_header.css +1 -1
- package/dist/date_picker_input.css +1 -1
- package/dist/date_picker_time_selector.css +1 -1
- package/dist/date_picker_year_input.css +1 -1
- package/dist/date_picker_year_selector.css +1 -1
- package/dist/divider.css +1 -1
- package/dist/draggable.css +1 -1
- package/dist/drawer_bottom.css +1 -1
- package/dist/drawer_end.css +1 -1
- package/dist/drawer_start.css +1 -1
- package/dist/drawer_top.css +1 -1
- package/dist/end_resize_handle.css +1 -1
- package/dist/feedback/progress/progress_bar.d.ts.map +1 -1
- package/dist/feedback/progress/progress_bar.js +34 -26
- package/dist/feedback/progress/progress_bar.js.map +1 -1
- package/dist/field_control.css +1 -1
- package/dist/field_set.css +1 -1
- package/dist/footer.css +1 -1
- package/dist/footnote.css +1 -1
- package/dist/form/field/common/field_control/field_control.js +9 -9
- package/dist/form/field/common/field_control/field_control.js.map +1 -1
- package/dist/form/field/common/field_description.js +3 -3
- package/dist/form/field/common/field_description.js.map +1 -1
- package/dist/form/field/common/field_error.js +16 -8
- package/dist/form/field/common/field_error.js.map +1 -1
- package/dist/form/field/common/field_header.js +7 -7
- package/dist/form/field/common/field_header.js.map +1 -1
- package/dist/form/field/common/status_input/status_input.d.ts.map +1 -1
- package/dist/form/field/common/status_input/status_input.js +15 -9
- package/dist/form/field/common/status_input/status_input.js.map +1 -1
- package/dist/form/field/h_field/h_field.js +1 -1
- package/dist/form/field/h_field/h_field.js.map +1 -1
- package/dist/form/field/v_field/v_field.js +5 -5
- package/dist/form/field/v_field/v_field.js.map +1 -1
- package/dist/form/field_set/field_set.d.ts.map +1 -1
- package/dist/form/field_set/field_set.js +17 -10
- package/dist/form/field_set/field_set.js.map +1 -1
- package/dist/frame.css +1 -1
- package/dist/grid.css +1 -1
- package/dist/h_body.css +1 -1
- package/dist/h_field.css +1 -1
- package/dist/h_panel.css +1 -1
- package/dist/header.css +1 -1
- package/dist/headline.css +1 -1
- package/dist/input.css +1 -1
- package/dist/inputs/checkbox/checkbox.js +14 -14
- package/dist/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/inputs/checkbox/checkbox_row.d.ts +1 -1
- package/dist/inputs/checkbox/checkbox_row.d.ts.map +1 -1
- package/dist/inputs/checkbox/checkbox_row.js +19 -8
- package/dist/inputs/checkbox/checkbox_row.js.map +1 -1
- package/dist/inputs/color_input/color_input.d.ts.map +1 -1
- package/dist/inputs/color_input/color_input.js +32 -28
- package/dist/inputs/color_input/color_input.js.map +1 -1
- package/dist/inputs/color_input/color_picker.js +16 -16
- package/dist/inputs/color_input/color_picker.js.map +1 -1
- package/dist/inputs/combo_box/combo_box.js +1 -1
- package/dist/inputs/combo_box/combo_box.js.map +1 -1
- package/dist/inputs/date_picker/date_picker.js +10 -10
- package/dist/inputs/date_picker/date_picker.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_body.js +1 -1
- package/dist/inputs/date_picker/date_picker_body.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_date.js +2 -2
- package/dist/inputs/date_picker/date_picker_date.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_day.d.ts.map +1 -1
- package/dist/inputs/date_picker/date_picker_day.js +16 -8
- package/dist/inputs/date_picker/date_picker_day.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_header.js +1 -1
- package/dist/inputs/date_picker/date_picker_header.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_input.js +3 -3
- package/dist/inputs/date_picker/date_picker_input.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_time_selector.d.ts.map +1 -1
- package/dist/inputs/date_picker/date_picker_time_selector.js +14 -11
- package/dist/inputs/date_picker/date_picker_time_selector.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_input.js +4 -4
- package/dist/inputs/date_picker/date_picker_year_input.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_selector.d.ts.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_selector.js +13 -10
- package/dist/inputs/date_picker/date_picker_year_selector.js.map +1 -1
- package/dist/inputs/index.d.ts +0 -4
- package/dist/inputs/index.d.ts.map +1 -1
- package/dist/inputs/index.js +53 -61
- package/dist/inputs/index.js.map +1 -1
- package/dist/inputs/input/input.js +3 -3
- package/dist/inputs/input/input.js.map +1 -1
- package/dist/inputs/multiselect/multiselect.d.ts.map +1 -1
- package/dist/inputs/multiselect/multiselect.js +10 -9
- package/dist/inputs/multiselect/multiselect.js.map +1 -1
- package/dist/inputs/multiselect/multiselect_inline_values.d.ts.map +1 -1
- package/dist/inputs/multiselect/multiselect_inline_values.js +18 -17
- package/dist/inputs/multiselect/multiselect_inline_values.js.map +1 -1
- package/dist/inputs/multiselect/multiselect_values.js +20 -20
- package/dist/inputs/multiselect/multiselect_values.js.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.js +94 -81
- package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
- package/dist/inputs/radio/radio.js +11 -11
- package/dist/inputs/radio/radio.js.map +1 -1
- package/dist/inputs/select/select.d.ts.map +1 -1
- package/dist/inputs/select/select.js +33 -33
- package/dist/inputs/select/select.js.map +1 -1
- package/dist/inputs/slider/slider.js +4 -4
- package/dist/inputs/slider/slider.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_item.js +9 -9
- package/dist/inputs/suggestions/suggestion_item.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.d.ts.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.js +29 -22
- package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
- package/dist/inputs/switch/switch.js +14 -14
- package/dist/inputs/switch/switch.js.map +1 -1
- package/dist/inputs/textarea/textarea.js +6 -6
- package/dist/inputs/textarea/textarea.js.map +1 -1
- package/dist/inputs/unit_input/unit_input.js +8 -8
- package/dist/inputs/unit_input/unit_input.js.map +1 -1
- package/dist/layouts/body/h_body.js +7 -7
- package/dist/layouts/body/h_body.js.map +1 -1
- package/dist/layouts/column/column.js +8 -8
- package/dist/layouts/column/column.js.map +1 -1
- package/dist/layouts/divider/divider.d.ts.map +1 -1
- package/dist/layouts/divider/divider.js +11 -12
- package/dist/layouts/divider/divider.js.map +1 -1
- package/dist/layouts/grid/grid.d.ts.map +1 -1
- package/dist/layouts/grid/grid.js +26 -17
- package/dist/layouts/grid/grid.js.map +1 -1
- package/dist/layouts/header/header.js +4 -4
- package/dist/layouts/header/header.js.map +1 -1
- package/dist/layouts/list/section_header.d.ts.map +1 -1
- package/dist/layouts/list/section_header.js +15 -5
- package/dist/layouts/list/section_header.js.map +1 -1
- package/dist/layouts/sidebar_end/sidebar_end.js +26 -26
- package/dist/layouts/sidebar_end/sidebar_end.js.map +1 -1
- package/dist/layouts/sidebar_start/sidebar_start.js +24 -24
- package/dist/layouts/sidebar_start/sidebar_start.js.map +1 -1
- package/dist/layouts/utility_bar/utility_bar.d.ts.map +1 -1
- package/dist/layouts/utility_bar/utility_bar.js +10 -15
- package/dist/layouts/utility_bar/utility_bar.js.map +1 -1
- package/dist/left_resize_handle.css +1 -1
- package/dist/loading.css +1 -1
- package/dist/menu.css +1 -1
- package/dist/modal.css +1 -1
- package/dist/multi_combo_box.css +1 -1
- package/dist/multiselect.css +1 -1
- package/dist/multiselect_values.css +1 -1
- package/dist/navigation/index.d.ts +7 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/navigation/index.js +17 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/navigation/tabs/primitives/tabs_bar.d.ts +7 -0
- package/dist/navigation/tabs/primitives/tabs_bar.d.ts.map +1 -0
- package/dist/navigation/tabs/primitives/tabs_bar.js +21 -0
- package/dist/navigation/tabs/primitives/tabs_bar.js.map +1 -0
- package/dist/navigation/tabs/primitives/tabs_list.d.ts +10 -0
- package/dist/navigation/tabs/primitives/tabs_list.d.ts.map +1 -0
- package/dist/navigation/tabs/primitives/tabs_list.js +36 -0
- package/dist/navigation/tabs/primitives/tabs_list.js.map +1 -0
- package/dist/navigation/tabs/state/context.d.ts +21 -0
- package/dist/navigation/tabs/state/context.d.ts.map +1 -0
- package/dist/navigation/tabs/state/context.js +34 -0
- package/dist/navigation/tabs/state/context.js.map +1 -0
- package/dist/navigation/tabs/state/link/tab_link.d.ts +9 -0
- package/dist/navigation/tabs/state/link/tab_link.d.ts.map +1 -0
- package/dist/navigation/tabs/state/link/tab_link.js +36 -0
- package/dist/navigation/tabs/state/link/tab_link.js.map +1 -0
- package/dist/navigation/tabs/state/link/use_tab_link.d.ts +5 -0
- package/dist/navigation/tabs/state/link/use_tab_link.d.ts.map +1 -0
- package/dist/navigation/tabs/state/link/use_tab_link.js +13 -0
- package/dist/navigation/tabs/state/link/use_tab_link.js.map +1 -0
- package/dist/navigation/tabs/state/nav_bar.d.ts +5 -0
- package/dist/navigation/tabs/state/nav_bar.d.ts.map +1 -0
- package/dist/navigation/tabs/state/nav_bar.js +36 -0
- package/dist/navigation/tabs/state/nav_bar.js.map +1 -0
- package/dist/navigation/tabs/state/tab.d.ts +6 -0
- package/dist/navigation/tabs/state/tab.d.ts.map +1 -0
- package/dist/navigation/tabs/state/tab.js +6 -0
- package/dist/navigation/tabs/state/tab.js.map +1 -0
- package/dist/overlay/context_menu/context_menu.js +5 -5
- package/dist/overlay/context_menu/context_menu.js.map +1 -1
- package/dist/overlay/menu/menu.js +2 -2
- package/dist/overlay/menu/menu.js.map +1 -1
- package/dist/overlay/popper/legacy/popper.d.ts.map +1 -1
- package/dist/overlay/popper/legacy/popper.js +12 -11
- package/dist/overlay/popper/legacy/popper.js.map +1 -1
- package/dist/overlay/popper/preview_popper.js +16 -16
- package/dist/overlay/popper/preview_popper.js.map +1 -1
- package/dist/overlay/portal/portal.css +1 -0
- package/dist/overlay/portal/portal_platform.d.ts.map +1 -1
- package/dist/overlay/portal/portal_platform.js +8 -7
- package/dist/overlay/portal/portal_platform.js.map +1 -1
- package/dist/page.css +1 -1
- package/dist/phone_number_input.css +1 -1
- package/dist/picture_placeholder.css +1 -1
- package/dist/popper.css +1 -1
- package/dist/progress_bar.css +1 -1
- package/dist/radio.css +1 -1
- package/dist/rect.css +1 -1
- package/dist/right_resize_handle.css +1 -1
- package/dist/scaffold.css +1 -1
- package/dist/select.css +1 -1
- package/dist/select_group.css +1 -1
- package/dist/sidebar_end.css +1 -1
- package/dist/sidebar_start.css +1 -1
- package/dist/slider.css +1 -1
- package/dist/slim_button.css +1 -1
- package/dist/stack.css +1 -1
- package/dist/stacks/box/bottom_resize_handle.js +1 -1
- package/dist/stacks/box/bottom_resize_handle.js.map +1 -1
- package/dist/stacks/box/box.js +1 -1
- package/dist/stacks/box/box.js.map +1 -1
- package/dist/stacks/box/end_resize_handle.js +1 -1
- package/dist/stacks/box/end_resize_handle.js.map +1 -1
- package/dist/stacks/box/left_resize_handle.js +7 -7
- package/dist/stacks/box/left_resize_handle.js.map +1 -1
- package/dist/stacks/box/right_resize_handle.js +3 -3
- package/dist/stacks/box/right_resize_handle.js.map +1 -1
- package/dist/stacks/box/start_resize_handle.js +6 -6
- package/dist/stacks/box/start_resize_handle.js.map +1 -1
- package/dist/stacks/box/top_resize_handle.js +1 -1
- package/dist/stacks/box/top_resize_handle.js.map +1 -1
- package/dist/stacks/h_collapsible_box.d.ts.map +1 -1
- package/dist/stacks/h_collapsible_box.js +8 -4
- package/dist/stacks/h_collapsible_box.js.map +1 -1
- package/dist/stacks/h_stack.js +5 -5
- package/dist/stacks/h_stack.js.map +1 -1
- package/dist/stacks/spacer.js +13 -13
- package/dist/stacks/spacer.js.map +1 -1
- package/dist/stacks/story_components/circle.js +3 -3
- package/dist/stacks/story_components/circle.js.map +1 -1
- package/dist/stacks/story_components/picture_placeholder.d.ts.map +1 -1
- package/dist/stacks/story_components/picture_placeholder.js +5 -1
- package/dist/stacks/story_components/picture_placeholder.js.map +1 -1
- package/dist/stacks/story_components/rect.js +10 -10
- package/dist/stacks/story_components/rect.js.map +1 -1
- package/dist/stacks/v_collapsible_box.d.ts.map +1 -1
- package/dist/stacks/v_collapsible_box.js +12 -8
- package/dist/stacks/v_collapsible_box.js.map +1 -1
- package/dist/stacks/v_stack.js +4 -4
- package/dist/stacks/v_stack.js.map +1 -1
- package/dist/stacks/z_stack.js +7 -7
- package/dist/stacks/z_stack.js.map +1 -1
- package/dist/start_resize_handle.css +1 -1
- package/dist/status_input.css +1 -1
- package/dist/subheadline.css +1 -1
- package/dist/suggestion_item.css +1 -1
- package/dist/suggestion_list.css +1 -1
- package/dist/surfaces/alert/alert.js +6 -6
- package/dist/surfaces/alert/alert.js.map +1 -1
- package/dist/surfaces/confirm/confirm.d.ts.map +1 -1
- package/dist/surfaces/confirm/confirm.js +22 -15
- package/dist/surfaces/confirm/confirm.js.map +1 -1
- package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js +3 -3
- package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js.map +1 -1
- package/dist/surfaces/drawers/drawer_end/drawer_end.js +4 -4
- package/dist/surfaces/drawers/drawer_end/drawer_end.js.map +1 -1
- package/dist/surfaces/drawers/drawer_start/drawer_start.js +1 -1
- package/dist/surfaces/drawers/drawer_start/drawer_start.js.map +1 -1
- package/dist/surfaces/drawers/drawer_top/drawer_top.js +1 -1
- package/dist/surfaces/drawers/drawer_top/drawer_top.js.map +1 -1
- package/dist/surfaces/page/h_page.js +1 -1
- package/dist/surfaces/page/h_page.js.map +1 -1
- package/dist/surfaces/page/v_page.js +4 -4
- package/dist/surfaces/page/v_page.js.map +1 -1
- package/dist/surfaces/popover/popover.js +1 -1
- package/dist/surfaces/popover/popover.js.map +1 -1
- package/dist/switch.css +1 -1
- package/dist/tabs_bar.css +1 -0
- package/dist/tethered.css +1 -1
- package/dist/textarea.css +1 -1
- package/dist/theme_provider.css +1 -0
- package/dist/theme_provider.module-ChZQ5Xsk.js +5 -0
- package/dist/theme_provider.module-ChZQ5Xsk.js.map +1 -0
- package/dist/themes/stylesheets/reset.css +1 -0
- package/dist/themes/stylesheets/reset.js +134 -131
- package/dist/themes/stylesheets/reset.js.map +1 -1
- package/dist/themes/theme.d.ts +3 -2
- package/dist/themes/theme.d.ts.map +1 -1
- package/dist/themes/theme.js +24 -5
- package/dist/themes/theme.js.map +1 -1
- package/dist/themes/themes/ergo/ergo_theme.css +1 -0
- package/dist/themes/themes/ergo/ergo_theme.d.ts.map +1 -1
- package/dist/themes/themes/ergo/ergo_theme.js +608 -540
- package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
- package/dist/themes/themes/windows_98/windows_98.css +1 -0
- package/dist/themes/themes/windows_98/windows_98_theme.js +1071 -1167
- package/dist/themes/themes/windows_98/windows_98_theme.js.map +1 -1
- package/dist/title.css +1 -1
- package/dist/tokens/badge/badge.js +6 -6
- package/dist/tokens/badge/badge.js.map +1 -1
- package/dist/tokens/bubble/bubble.js +35 -27
- package/dist/tokens/bubble/bubble.js.map +1 -1
- package/dist/tokens/chip/chip.js +17 -9
- package/dist/tokens/chip/chip.js.map +1 -1
- package/dist/tooltip.css +1 -1
- package/dist/top_resize_handle.css +1 -1
- package/dist/typography/body_text/body_text.js +9 -9
- package/dist/typography/body_text/body_text.js.map +1 -1
- package/dist/typography/callout/callout.js +9 -9
- package/dist/typography/callout/callout.js.map +1 -1
- package/dist/typography/caption/caption.js +5 -5
- package/dist/typography/caption/caption.js.map +1 -1
- package/dist/typography/footnote/footnote.js +9 -9
- package/dist/typography/footnote/footnote.js.map +1 -1
- package/dist/typography/headline/headline.js +13 -13
- package/dist/typography/headline/headline.js.map +1 -1
- package/dist/typography/subheadline/subheadline.js +10 -10
- package/dist/typography/subheadline/subheadline.js.map +1 -1
- package/dist/typography/title/title.js +6 -6
- package/dist/typography/title/title.js.map +1 -1
- package/dist/unit_input.css +1 -1
- package/dist/utility_bar.css +1 -1
- package/dist/utils/css_utils.d.ts +9 -0
- package/dist/utils/css_utils.d.ts.map +1 -0
- package/dist/utils/css_utils.js +45 -0
- package/dist/utils/css_utils.js.map +1 -0
- package/dist/v_body.css +1 -1
- package/dist/window.css +1 -1
- package/package.json +10 -3
- package/src/actions/__docs__/actions.mdx +65 -2
- package/src/actions/__docs__/actions.stories.tsx +174 -2
- package/src/actions/button/__stories__/button_group.stories.tsx +63 -0
- package/src/actions/button/__stories__/select_group.stories.tsx +47 -4
- package/src/actions/button/base_button/base_button.module.css +15 -13
- package/src/actions/button/base_button/base_button.tsx +2 -1
- package/src/actions/button/button/button.module.css +52 -50
- package/src/actions/button/button_group/button_group.module.css +54 -52
- package/src/actions/button/button_group/button_group.tsx +9 -4
- package/src/actions/button/select_group/select_group.module.css +54 -52
- package/src/actions/button/select_group/select_group.tsx +2 -2
- package/src/actions/button/slim_button/slim_button.module.css +7 -5
- package/src/css/layers.css +1 -0
- package/src/feedback/loading/loading.module.css +17 -15
- package/src/feedback/progress/progress_bar.module.css +52 -50
- package/src/feedback/progress/progress_bar.tsx +6 -1
- package/src/form/field/common/field_control/field_control.module.css +17 -15
- package/src/form/field/common/field_control/field_control.tsx +1 -1
- package/src/form/field/common/field_description.tsx +1 -1
- package/src/form/field/common/field_error.tsx +1 -1
- package/src/form/field/common/field_header.tsx +1 -1
- package/src/form/field/common/status_input/status_input.module.css +10 -8
- package/src/form/field/common/status_input/status_input.tsx +8 -5
- package/src/form/field/h_field/h_field.module.css +7 -5
- package/src/form/field/h_field/h_field.tsx +1 -1
- package/src/form/field/v_field/v_field.tsx +1 -1
- package/src/form/field_set/field_set.module.css +16 -14
- package/src/form/field_set/field_set.tsx +7 -4
- package/src/inputs/checkbox/checkbox.module.css +45 -43
- package/src/inputs/checkbox/checkbox.tsx +1 -1
- package/src/inputs/checkbox/checkbox_row.tsx +9 -2
- package/src/inputs/color_input/color_input.module.css +58 -56
- package/src/inputs/color_input/color_input.tsx +8 -4
- package/src/inputs/color_input/color_picker.module.css +13 -11
- package/src/inputs/color_input/color_picker.tsx +2 -2
- package/src/inputs/combo_box/combo_box.tsx +1 -1
- package/src/inputs/date_picker/date_picker.module.css +19 -17
- package/src/inputs/date_picker/date_picker.tsx +2 -2
- package/src/inputs/date_picker/date_picker_body.tsx +1 -1
- package/src/inputs/date_picker/date_picker_date.module.css +71 -69
- package/src/inputs/date_picker/date_picker_date.tsx +2 -2
- package/src/inputs/date_picker/date_picker_day.module.css +5 -3
- package/src/inputs/date_picker/date_picker_day.tsx +7 -2
- package/src/inputs/date_picker/date_picker_header.module.css +4 -2
- package/src/inputs/date_picker/date_picker_header.tsx +1 -1
- package/src/inputs/date_picker/date_picker_input.module.css +55 -53
- package/src/inputs/date_picker/date_picker_input.tsx +3 -3
- package/src/inputs/date_picker/date_picker_time_selector.module.css +29 -28
- package/src/inputs/date_picker/date_picker_time_selector.tsx +7 -4
- package/src/inputs/date_picker/date_picker_year_input.module.css +46 -44
- package/src/inputs/date_picker/date_picker_year_input.tsx +1 -1
- package/src/inputs/date_picker/date_picker_year_selector.module.css +48 -46
- package/src/inputs/date_picker/date_picker_year_selector.tsx +5 -2
- package/src/inputs/index.ts +0 -4
- package/src/inputs/input/input.module.css +55 -79
- package/src/inputs/input/input.tsx +1 -1
- package/src/inputs/multi_combo_box/multi_combo_box.module.css +4 -2
- package/src/inputs/multiselect/multiselect.module.css +4 -2
- package/src/inputs/multiselect/multiselect.tsx +2 -1
- package/src/inputs/multiselect/multiselect_inline_values.tsx +3 -2
- package/src/inputs/multiselect/multiselect_values.module.css +28 -26
- package/src/inputs/multiselect/multiselect_values.tsx +3 -3
- package/src/inputs/phone_number_input/phone_number_input.module.css +54 -52
- package/src/inputs/phone_number_input/phone_number_input.tsx +15 -6
- package/src/inputs/radio/radio.module.css +48 -66
- package/src/inputs/radio/radio.tsx +2 -2
- package/src/inputs/select/select.module.css +57 -59
- package/src/inputs/select/select.tsx +4 -2
- package/src/inputs/slider/slider.module.css +151 -149
- package/src/inputs/slider/slider.tsx +1 -1
- package/src/inputs/suggestions/suggestion_item.module.css +35 -53
- package/src/inputs/suggestions/suggestion_item.tsx +1 -1
- package/src/inputs/suggestions/suggestion_list.module.css +29 -27
- package/src/inputs/suggestions/suggestion_list.tsx +6 -3
- package/src/inputs/switch/switch.module.css +111 -109
- package/src/inputs/switch/switch.tsx +3 -3
- package/src/inputs/textarea/textarea.module.css +46 -65
- package/src/inputs/textarea/textarea.tsx +1 -1
- package/src/inputs/unit_input/unit_input.module.css +20 -18
- package/src/inputs/unit_input/unit_input.tsx +3 -3
- package/src/layouts/body/h_body.module.css +7 -4
- package/src/layouts/body/h_body.tsx +1 -1
- package/src/layouts/body/v_body.module.css +6 -4
- package/src/layouts/column/column.module.css +30 -28
- package/src/layouts/column/column.tsx +2 -2
- package/src/layouts/divider/divider.module.css +103 -101
- package/src/layouts/divider/divider.tsx +1 -2
- package/src/layouts/footer/footer.module.css +24 -21
- package/src/layouts/grid/grid.module.css +20 -18
- package/src/layouts/grid/grid.tsx +6 -1
- package/src/layouts/header/header.module.css +7 -5
- package/src/layouts/header/header.tsx +1 -1
- package/src/layouts/list/section_header.module.css +16 -14
- package/src/layouts/list/section_header.tsx +7 -1
- package/src/layouts/scaffold/scaffold.module.css +6 -4
- package/src/layouts/sidebar_end/sidebar_end.module.css +28 -26
- package/src/layouts/sidebar_end/sidebar_end.tsx +2 -2
- package/src/layouts/sidebar_start/sidebar_start.module.css +28 -26
- package/src/layouts/sidebar_start/sidebar_start.tsx +2 -2
- package/src/layouts/utility_bar/utility_bar.module.css +5 -3
- package/src/layouts/utility_bar/utility_bar.tsx +1 -6
- package/src/navigation/index.ts +18 -0
- package/src/navigation/tabs/__stories__/state.stories.tsx +136 -0
- package/src/navigation/tabs/__stories__/tabs.stories.tsx +40 -0
- package/src/navigation/tabs/primitives/tabs_bar.module.css +13 -0
- package/src/navigation/tabs/primitives/tabs_bar.tsx +25 -0
- package/src/navigation/tabs/primitives/tabs_list.tsx +42 -0
- package/src/navigation/tabs/state/context.tsx +61 -0
- package/src/navigation/tabs/state/link/tab_link.tsx +45 -0
- package/src/navigation/tabs/state/link/use_tab_link.ts +17 -0
- package/src/navigation/tabs/state/nav_bar.tsx +37 -0
- package/src/navigation/tabs/state/tab.tsx +12 -0
- package/src/overlay/context_menu/context_menu.tsx +1 -1
- package/src/overlay/frame/frame.module.css +6 -4
- package/src/overlay/frame/frame_stories.module.css +14 -12
- package/src/overlay/menu/menu.module.css +30 -28
- package/src/overlay/menu/menu.tsx +2 -2
- package/src/overlay/popper/legacy/popper.module.css +10 -8
- package/src/overlay/popper/legacy/popper.tsx +2 -1
- package/src/overlay/popper/preview_popper.tsx +1 -1
- package/src/overlay/portal/portal.css +33 -31
- package/src/overlay/portal/portal_platform.tsx +6 -5
- package/src/overlay/tethered/tethered.module.css +9 -7
- package/src/stacks/box/bottom_resize_handle.module.css +11 -9
- package/src/stacks/box/bottom_resize_handle.tsx +1 -1
- package/src/stacks/box/box.tsx +1 -1
- package/src/stacks/box/end_resize_handle.module.css +16 -14
- package/src/stacks/box/end_resize_handle.tsx +1 -1
- package/src/stacks/box/left_resize_handle.module.css +11 -9
- package/src/stacks/box/left_resize_handle.tsx +1 -1
- package/src/stacks/box/right_resize_handle.module.css +11 -9
- package/src/stacks/box/right_resize_handle.tsx +1 -1
- package/src/stacks/box/start_resize_handle.module.css +16 -14
- package/src/stacks/box/start_resize_handle.tsx +1 -1
- package/src/stacks/box/top_resize_handle.module.css +11 -9
- package/src/stacks/box/top_resize_handle.tsx +1 -1
- package/src/stacks/collapsible_box.module.css +45 -29
- package/src/stacks/demo.module.css +5 -3
- package/src/stacks/h_collapsible_box.tsx +5 -1
- package/src/stacks/h_stack.tsx +1 -1
- package/src/stacks/spacer.tsx +1 -1
- package/src/stacks/stack.module.css +400 -393
- package/src/stacks/story_components/circle.module.css +8 -6
- package/src/stacks/story_components/circle.tsx +1 -1
- package/src/stacks/story_components/picture_placeholder.module.css +4 -2
- package/src/stacks/story_components/picture_placeholder.tsx +5 -1
- package/src/stacks/story_components/rect.module.css +9 -7
- package/src/stacks/story_components/rect.tsx +1 -1
- package/src/stacks/v_collapsible_box.tsx +5 -1
- package/src/stacks/v_stack.tsx +1 -1
- package/src/stacks/z_stack.tsx +1 -1
- package/src/surfaces/alert/alert.tsx +1 -1
- package/src/surfaces/card/card_stories.module.css +13 -11
- package/src/surfaces/confirm/confirm.module.css +37 -35
- package/src/surfaces/confirm/confirm.tsx +7 -4
- package/src/surfaces/drawers/drawer_bottom/drawer_bottom.module.css +4 -2
- package/src/surfaces/drawers/drawer_bottom/drawer_bottom.tsx +1 -1
- package/src/surfaces/drawers/drawer_end/drawer_end.module.css +4 -2
- package/src/surfaces/drawers/drawer_end/drawer_end.tsx +1 -1
- package/src/surfaces/drawers/drawer_start/drawer_start.module.css +4 -2
- package/src/surfaces/drawers/drawer_start/drawer_start.tsx +1 -1
- package/src/surfaces/drawers/drawer_top/drawer_top.module.css +4 -2
- package/src/surfaces/drawers/drawer_top/drawer_top.tsx +1 -1
- package/src/surfaces/modal/__stories__/modal.stories.tsx +3 -1
- package/src/surfaces/modal/modal.module.css +5 -3
- package/src/surfaces/page/h_page.tsx +1 -1
- package/src/surfaces/page/page.module.css +12 -10
- package/src/surfaces/page/v_page.tsx +1 -1
- package/src/surfaces/panel/panel.module.css +8 -7
- package/src/surfaces/popover/popover.tsx +1 -1
- package/src/surfaces/tooltip/tooltip.module.css +4 -2
- package/src/surfaces/window/window.module.css +6 -4
- package/src/themes/stylesheets/reset.css +134 -131
- package/src/themes/theme.tsx +29 -3
- package/src/themes/theme_provider.module.css +6 -0
- package/src/themes/themes/ergo/ergo_theme.css +607 -540
- package/src/themes/themes/ergo/ergo_theme.ts +1 -0
- package/src/themes/themes/windows_98/windows_98.css +1067 -1163
- package/src/tokens/badge/badge.module.css +13 -11
- package/src/tokens/badge/badge.tsx +2 -2
- package/src/tokens/bubble/bubble.module.css +12 -10
- package/src/tokens/bubble/bubble.tsx +1 -1
- package/src/tokens/chip/chip.module.css +14 -12
- package/src/tokens/chip/chip.tsx +1 -1
- package/src/typography/body_text/body_text.module.css +61 -59
- package/src/typography/body_text/body_text.tsx +1 -1
- package/src/typography/callout/callout.module.css +56 -54
- package/src/typography/callout/callout.tsx +1 -1
- package/src/typography/caption/caption.module.css +56 -54
- package/src/typography/caption/caption.tsx +1 -1
- package/src/typography/footnote/footnote.module.css +56 -54
- package/src/typography/footnote/footnote.tsx +1 -1
- package/src/typography/headline/headline.module.css +57 -55
- package/src/typography/headline/headline.tsx +1 -1
- package/src/typography/subheadline/subheadline.module.css +57 -55
- package/src/typography/subheadline/subheadline.tsx +1 -1
- package/src/typography/title/title.module.css +54 -52
- package/src/typography/title/title.tsx +1 -1
- package/src/utils/css_utils.ts +64 -0
- package/src/utils/dnd/draggable/draggable.module.css +8 -6
- package/dist/actions/types.js +0 -2
- package/dist/actions/types.js.map +0 -1
- package/dist/form/field/common/types.js +0 -2
- package/dist/form/field/common/types.js.map +0 -1
- package/dist/inputs/mask_input/mask_config.js +0 -2
- package/dist/inputs/mask_input/mask_config.js.map +0 -1
- package/dist/inputs/mask_input/mask_cursor.js +0 -2
- package/dist/inputs/mask_input/mask_cursor.js.map +0 -1
- package/dist/inputs/multiselect/multiselect_row.d.ts +0 -10
- package/dist/inputs/multiselect/multiselect_row.d.ts.map +0 -1
- package/dist/inputs/multiselect/multiselect_row.js +0 -35
- package/dist/inputs/multiselect/multiselect_row.js.map +0 -1
- package/dist/inputs/switch/switch_row.d.ts +0 -8
- package/dist/inputs/switch/switch_row.d.ts.map +0 -1
- package/dist/inputs/switch/switch_row.js +0 -16
- package/dist/inputs/switch/switch_row.js.map +0 -1
- package/dist/inputs/textarea/textarea_row.d.ts +0 -8
- package/dist/inputs/textarea/textarea_row.d.ts.map +0 -1
- package/dist/inputs/textarea/textarea_row.js +0 -12
- package/dist/inputs/textarea/textarea_row.js.map +0 -1
- package/dist/overlay/tethered/types.js +0 -2
- package/dist/overlay/tethered/types.js.map +0 -1
- package/dist/portal_platform.css +0 -1
- package/dist/stacks/box/handle_props.js +0 -2
- package/dist/stacks/box/handle_props.js.map +0 -1
- package/dist/utils/calendar/calendar_date.js +0 -2
- package/dist/utils/calendar/calendar_date.js.map +0 -1
- package/dist/utils/dnd/types.js +0 -2
- package/dist/utils/dnd/types.js.map +0 -1
- package/src/inputs/multiselect/multiselect_row.tsx +0 -57
- package/src/inputs/switch/TODO.md +0 -3
- package/src/inputs/switch/switch_row.tsx +0 -33
- package/src/inputs/textarea/textarea_row.tsx +0 -24
|
@@ -1,629 +1,696 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
applet,
|
|
7
|
-
object,
|
|
8
|
-
iframe,
|
|
9
|
-
h1,
|
|
10
|
-
h2,
|
|
11
|
-
h3,
|
|
12
|
-
h4,
|
|
13
|
-
h5,
|
|
14
|
-
h6,
|
|
15
|
-
p,
|
|
16
|
-
blockquote,
|
|
17
|
-
pre,
|
|
18
|
-
a,
|
|
19
|
-
abbr,
|
|
20
|
-
acronym,
|
|
21
|
-
address,
|
|
22
|
-
big,
|
|
23
|
-
cite,
|
|
24
|
-
code,
|
|
25
|
-
del,
|
|
26
|
-
dfn,
|
|
27
|
-
em,
|
|
28
|
-
img,
|
|
29
|
-
ins,
|
|
30
|
-
kbd,
|
|
31
|
-
q,
|
|
32
|
-
s,
|
|
33
|
-
samp,
|
|
34
|
-
small,
|
|
35
|
-
strike,
|
|
36
|
-
strong,
|
|
37
|
-
sub,
|
|
38
|
-
sup,
|
|
39
|
-
tt,
|
|
40
|
-
var,
|
|
41
|
-
b,
|
|
42
|
-
u,
|
|
43
|
-
i,
|
|
44
|
-
center,
|
|
45
|
-
dl,
|
|
46
|
-
dt,
|
|
47
|
-
dd,
|
|
48
|
-
ol,
|
|
49
|
-
ul,
|
|
50
|
-
li,
|
|
51
|
-
fieldset,
|
|
52
|
-
form,
|
|
53
|
-
label,
|
|
54
|
-
legend,
|
|
55
|
-
table,
|
|
56
|
-
caption,
|
|
57
|
-
tbody,
|
|
58
|
-
tfoot,
|
|
59
|
-
thead,
|
|
60
|
-
tr,
|
|
61
|
-
th,
|
|
62
|
-
td,
|
|
63
|
-
article,
|
|
64
|
-
aside,
|
|
65
|
-
canvas,
|
|
66
|
-
details,
|
|
67
|
-
embed,
|
|
68
|
-
figure,
|
|
69
|
-
figcaption,
|
|
70
|
-
footer,
|
|
71
|
-
header,
|
|
72
|
-
hgroup,
|
|
73
|
-
menu,
|
|
74
|
-
nav,
|
|
75
|
-
output,
|
|
76
|
-
ruby,
|
|
77
|
-
section,
|
|
78
|
-
summary,
|
|
79
|
-
time,
|
|
80
|
-
mark,
|
|
81
|
-
audio,
|
|
82
|
-
video {
|
|
83
|
-
margin: 0;
|
|
84
|
-
padding: 0;
|
|
85
|
-
border: 0;
|
|
86
|
-
font-size: 100%;
|
|
87
|
-
font: inherit;
|
|
88
|
-
vertical-align: baseline;
|
|
89
|
-
}
|
|
90
|
-
/* HTML5 display-role reset for older browsers */
|
|
91
|
-
article,
|
|
92
|
-
aside,
|
|
93
|
-
details,
|
|
94
|
-
figcaption,
|
|
95
|
-
figure,
|
|
96
|
-
footer,
|
|
97
|
-
header,
|
|
98
|
-
hgroup,
|
|
99
|
-
menu,
|
|
100
|
-
nav,
|
|
101
|
-
section {
|
|
102
|
-
display: block;
|
|
103
|
-
}
|
|
104
|
-
body {
|
|
105
|
-
line-height: 1;
|
|
106
|
-
}
|
|
107
|
-
ol,
|
|
108
|
-
ul {
|
|
109
|
-
list-style: none;
|
|
110
|
-
}
|
|
111
|
-
blockquote,
|
|
112
|
-
q {
|
|
113
|
-
quotes: none;
|
|
114
|
-
}
|
|
115
|
-
blockquote:before,
|
|
116
|
-
blockquote:after,
|
|
117
|
-
q:before,
|
|
118
|
-
q:after {
|
|
119
|
-
content: "";
|
|
120
|
-
content: none;
|
|
121
|
-
}
|
|
122
|
-
table {
|
|
123
|
-
border-collapse: collapse;
|
|
124
|
-
border-spacing: 0;
|
|
1
|
+
@layer tcn-reset {
|
|
2
|
+
* {
|
|
3
|
+
position: relative;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
125
6
|
}
|
|
126
7
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
8
|
+
@layer tcn-theme {
|
|
9
|
+
/* ===== CSS VARIABLES ===== */
|
|
10
|
+
:root {
|
|
11
|
+
--scalar: 1;
|
|
12
|
+
--accent-color: #cd6b2c;
|
|
13
|
+
|
|
14
|
+
/* Typography */
|
|
15
|
+
--font-color: #395578;
|
|
16
|
+
--font-family: "Lato", sans-serif;
|
|
17
|
+
--font-size: 12px;
|
|
18
|
+
|
|
19
|
+
/* Spacing */
|
|
20
|
+
--gap-small: 4px;
|
|
21
|
+
--gap-medium: 8px;
|
|
22
|
+
--gap-large: 16px;
|
|
23
|
+
|
|
24
|
+
--padding-small: 4px;
|
|
25
|
+
--padding-medium: 8px;
|
|
26
|
+
--padding-large: 16px;
|
|
27
|
+
|
|
28
|
+
/* Status Colors */
|
|
29
|
+
--status-color-disabled: #7f7f7f;
|
|
30
|
+
--status-color-info: #008cff;
|
|
31
|
+
--status-color-warning: #ffff00;
|
|
32
|
+
--status-color-positive: #00ff00;
|
|
33
|
+
--status-color-error: #ff0000;
|
|
34
|
+
|
|
35
|
+
--async-color-initial: #c0c0c0;
|
|
36
|
+
--async-color-pending: #008cff;
|
|
37
|
+
--async-color-success: #00ff00;
|
|
38
|
+
--async-color-failed: #ff0000;
|
|
39
|
+
|
|
40
|
+
/* Shape */
|
|
41
|
+
--shape-radius-small: 2px;
|
|
42
|
+
--shape-radius-medium: 4px;
|
|
43
|
+
--shape-radius-large: 8px;
|
|
44
|
+
|
|
45
|
+
/* Palette */
|
|
46
|
+
--primary-color-faint: #c0c0c0;
|
|
47
|
+
--primary-color: #008cff;
|
|
48
|
+
--primary-color-strong: #008cff;
|
|
49
|
+
|
|
50
|
+
--secondary-color-faint: #c0c0c0;
|
|
51
|
+
--secondary-color: #008cff;
|
|
52
|
+
--secondary-color-strong: #008cff;
|
|
53
|
+
|
|
54
|
+
--tertiary-color-faint: #c0c0c0;
|
|
55
|
+
--tertiary-color: #008cff;
|
|
56
|
+
--tertiary-color-strong: #008cff;
|
|
57
|
+
|
|
58
|
+
--quaternary-color-faint: #c0c0c0;
|
|
59
|
+
--quaternary-color: #008cff;
|
|
60
|
+
--quaternary-color-strong: #008cff;
|
|
61
|
+
|
|
62
|
+
--background-color-primary: #ffffff;
|
|
63
|
+
--background-color-secondary: #ffffff;
|
|
64
|
+
--background-color-tertiary: #ffffff;
|
|
65
|
+
--background-color-quaternary: #ffffff;
|
|
66
|
+
|
|
67
|
+
--foreground-color-primary: #aaa;
|
|
68
|
+
--foreground-color-secondary: #222222;
|
|
69
|
+
--foreground-color-tertiary: #222222;
|
|
70
|
+
--foreground-color-quaternary: #222222;
|
|
71
|
+
|
|
72
|
+
--material-disabled: #d3d3d3;
|
|
73
|
+
--material-line: #aaaaaa;
|
|
74
|
+
--material-secondary-dark: 197 29.1% 40.4%;
|
|
75
|
+
--material-tan: 33, 22%, 84%;
|
|
76
|
+
|
|
77
|
+
/* Default Material */
|
|
78
|
+
--action: 23, 65%, 49%;
|
|
79
|
+
--on-action: 0, 0%, 100%;
|
|
80
|
+
--material: 0, 0%, 100%;
|
|
81
|
+
--on-material: 213, 35.6%, 34.7%;
|
|
82
|
+
|
|
83
|
+
--action-dangerous: 0, 90%, 50%;
|
|
84
|
+
--action-cautious: 53, 90%, 60%;
|
|
85
|
+
--on-action-cautious: 213, 35.6%, 34.7%;
|
|
86
|
+
--action-neutral: var(--action);
|
|
87
|
+
--action-suggested: 202, 90%, 40%;
|
|
88
|
+
--action-encouraged: 120, 90%, 40%;
|
|
89
|
+
}
|
|
135
90
|
|
|
136
|
-
|
|
137
|
-
:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/* Typography */
|
|
142
|
-
--font-color: #395578;
|
|
143
|
-
--font-family: "Lato", sans-serif;
|
|
144
|
-
--font-size: 12px;
|
|
145
|
-
|
|
146
|
-
/* Spacing */
|
|
147
|
-
--gap-small: 4px;
|
|
148
|
-
--gap-medium: 8px;
|
|
149
|
-
--gap-large: 16px;
|
|
150
|
-
|
|
151
|
-
--padding-small: 4px;
|
|
152
|
-
--padding-medium: 8px;
|
|
153
|
-
--padding-large: 16px;
|
|
154
|
-
|
|
155
|
-
/* Status Colors */
|
|
156
|
-
--status-color-disabled: #7f7f7f;
|
|
157
|
-
--status-color-info: #008cff;
|
|
158
|
-
--status-color-warning: #ffff00;
|
|
159
|
-
--status-color-positive: #00ff00;
|
|
160
|
-
--status-color-error: #ff0000;
|
|
161
|
-
|
|
162
|
-
--async-color-initial: #c0c0c0;
|
|
163
|
-
--async-color-pending: #008cff;
|
|
164
|
-
--async-color-success: #00ff00;
|
|
165
|
-
--async-color-failed: #ff0000;
|
|
166
|
-
|
|
167
|
-
/* Shape */
|
|
168
|
-
--shape-radius-small: 2px;
|
|
169
|
-
--shape-radius-medium: 4px;
|
|
170
|
-
--shape-radius-large: 8px;
|
|
171
|
-
|
|
172
|
-
/* Palette */
|
|
173
|
-
--primary-color-faint: #c0c0c0;
|
|
174
|
-
--primary-color: #008cff;
|
|
175
|
-
--primary-color-strong: #008cff;
|
|
176
|
-
|
|
177
|
-
--secondary-color-faint: #c0c0c0;
|
|
178
|
-
--secondary-color: #008cff;
|
|
179
|
-
--secondary-color-strong: #008cff;
|
|
180
|
-
|
|
181
|
-
--tertiary-color-faint: #c0c0c0;
|
|
182
|
-
--tertiary-color: #008cff;
|
|
183
|
-
--tertiary-color-strong: #008cff;
|
|
184
|
-
|
|
185
|
-
--quaternary-color-faint: #c0c0c0;
|
|
186
|
-
--quaternary-color: #008cff;
|
|
187
|
-
--quaternary-color-strong: #008cff;
|
|
188
|
-
|
|
189
|
-
--background-color-primary: #ffffff;
|
|
190
|
-
--background-color-secondary: #ffffff;
|
|
191
|
-
--background-color-tertiary: #ffffff;
|
|
192
|
-
--background-color-quaternary: #ffffff;
|
|
193
|
-
|
|
194
|
-
--foreground-color-primary: #aaa;
|
|
195
|
-
--foreground-color-secondary: #222222;
|
|
196
|
-
--foreground-color-tertiary: #222222;
|
|
197
|
-
--foreground-color-quaternary: #222222;
|
|
198
|
-
|
|
199
|
-
--material-disabled: #d3d3d3;
|
|
200
|
-
--material-secondary-dark: 197 29.1% 40.4%;
|
|
201
|
-
--material-tan: 33, 22%, 84%;
|
|
202
|
-
|
|
203
|
-
/* Default Material */
|
|
204
|
-
--action: 23, 65%, 49%;
|
|
205
|
-
--on-action: 0, 0%, 100%;
|
|
206
|
-
--material: 0, 0%, 100%;
|
|
207
|
-
--on-material: 213, 35.6%, 34.7%;
|
|
208
|
-
|
|
209
|
-
--action-dangerous: 0, 90%, 50%;
|
|
210
|
-
--action-cautious: 53, 90%, 60%;
|
|
211
|
-
--action-neutral: var(--action);
|
|
212
|
-
--action-suggested: 202, 90%, 40%;
|
|
213
|
-
--action-encouraged: 120, 90%, 40%;
|
|
214
|
-
}
|
|
91
|
+
.tcn-theme-root {
|
|
92
|
+
font-family: var(--font-family);
|
|
93
|
+
color: var(--font-color);
|
|
94
|
+
background-color: var(--background-color-primary);
|
|
95
|
+
}
|
|
215
96
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
.
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
color
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
--mat-down: color-mix(in srgb, var(--mat), black 8%);
|
|
240
|
-
--mat-raised: color-mix(in srgb, var(--mat), white 8%);
|
|
241
|
-
}
|
|
97
|
+
/* ===== Actions ===== */
|
|
98
|
+
|
|
99
|
+
.tcn-interactive {
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
user-select: none;
|
|
102
|
+
transition:
|
|
103
|
+
transform 0.1s,
|
|
104
|
+
background 0.1s,
|
|
105
|
+
color 0.1s;
|
|
106
|
+
|
|
107
|
+
--act: hsl(var(--tcn-interactive-color, var(--action)));
|
|
108
|
+
--on-act: hsl(var(--on-action));
|
|
109
|
+
/* Could use hsl here if we made three color variables for each of the hsl values */
|
|
110
|
+
--act-down: color-mix(in srgb, var(--act), black 8%);
|
|
111
|
+
--act-raised: color-mix(in srgb, var(--act), white 8%);
|
|
112
|
+
--act-faint: hsla(var(--action), 0.2);
|
|
113
|
+
--on-mat: hsl(var(--on-material));
|
|
114
|
+
--on-mat-faint: hsla(var(--on-material), 0.2);
|
|
115
|
+
--on-mat-down: color-mix(in srgb, var(--on-mat), black 8%);
|
|
116
|
+
--mat: hsl(var(--material));
|
|
117
|
+
--mat-down: color-mix(in srgb, var(--mat), black 8%);
|
|
118
|
+
--mat-raised: color-mix(in srgb, var(--mat), white 8%);
|
|
119
|
+
}
|
|
242
120
|
|
|
243
|
-
.tcn-interactive[data-is-disabled="true"] {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
121
|
+
.tcn-interactive[data-is-disabled="true"] {
|
|
122
|
+
pointer-events: none;
|
|
123
|
+
cursor: not-allowed;
|
|
124
|
+
}
|
|
247
125
|
|
|
248
|
-
.tcn-interactive[data-hierarchy="primary"] {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
126
|
+
.tcn-interactive[data-hierarchy="primary"] {
|
|
127
|
+
background: var(--act);
|
|
128
|
+
color: var(--on-act);
|
|
129
|
+
border: 1px solid var(--act);
|
|
130
|
+
}
|
|
253
131
|
|
|
254
|
-
.tcn-interactive[data-hierarchy="primary"]:focus-visible {
|
|
255
|
-
|
|
256
|
-
}
|
|
132
|
+
.tcn-interactive[data-hierarchy="primary"]:focus-visible {
|
|
133
|
+
outline: 2px dashed var(--act);
|
|
134
|
+
}
|
|
257
135
|
|
|
258
|
-
.tcn-interactive[data-hierarchy="primary"][data-is-disabled="true"] {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
136
|
+
.tcn-interactive[data-hierarchy="primary"][data-is-disabled="true"] {
|
|
137
|
+
background: var(--material-disabled);
|
|
138
|
+
color: white;
|
|
139
|
+
border: 1px solid var(--material-disabled);
|
|
140
|
+
}
|
|
263
141
|
|
|
264
|
-
.tcn-interactive[data-hierarchy="primary"]:hover {
|
|
265
|
-
|
|
266
|
-
}
|
|
142
|
+
.tcn-interactive[data-hierarchy="primary"]:hover {
|
|
143
|
+
background: var(--act-raised);
|
|
144
|
+
}
|
|
267
145
|
|
|
268
|
-
.tcn-interactive[data-hierarchy="primary"]:active {
|
|
269
|
-
|
|
270
|
-
}
|
|
146
|
+
.tcn-interactive[data-hierarchy="primary"]:active {
|
|
147
|
+
background: var(--act-down);
|
|
148
|
+
}
|
|
271
149
|
|
|
272
|
-
.tcn-interactive[data-hierarchy="secondary"] {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
150
|
+
.tcn-interactive[data-hierarchy="secondary"] {
|
|
151
|
+
background: transparent;
|
|
152
|
+
color: var(--on-mat);
|
|
153
|
+
border: 1px solid var(--on-mat);
|
|
154
|
+
}
|
|
277
155
|
|
|
278
|
-
.tcn-interactive[data-hierarchy="secondary"]:focus-visible {
|
|
279
|
-
|
|
280
|
-
}
|
|
156
|
+
.tcn-interactive[data-hierarchy="secondary"]:focus-visible {
|
|
157
|
+
outline: 2px dashed var(--on-mat);
|
|
158
|
+
}
|
|
281
159
|
|
|
282
|
-
.tcn-interactive[data-hierarchy="secondary"][data-is-disabled="true"] {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}
|
|
160
|
+
.tcn-interactive[data-hierarchy="secondary"][data-is-disabled="true"] {
|
|
161
|
+
color: var(--material-disabled);
|
|
162
|
+
border: 1px solid var(--material-disabled);
|
|
163
|
+
}
|
|
286
164
|
|
|
287
|
-
.tcn-interactive[data-hierarchy="secondary"]:hover {
|
|
288
|
-
|
|
289
|
-
}
|
|
165
|
+
.tcn-interactive[data-hierarchy="secondary"]:hover {
|
|
166
|
+
background: var(--on-mat-faint);
|
|
167
|
+
}
|
|
290
168
|
|
|
291
|
-
.tcn-interactive[data-hierarchy="secondary"]:active {
|
|
292
|
-
|
|
293
|
-
}
|
|
169
|
+
.tcn-interactive[data-hierarchy="secondary"]:active {
|
|
170
|
+
background: var(--mat-down);
|
|
171
|
+
}
|
|
294
172
|
|
|
295
|
-
.tcn-interactive[data-hierarchy="tertiary"] {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
173
|
+
.tcn-interactive[data-hierarchy="tertiary"] {
|
|
174
|
+
background: transparent;
|
|
175
|
+
color: var(--on-mat);
|
|
176
|
+
border: 1px solid transparent;
|
|
177
|
+
}
|
|
300
178
|
|
|
301
|
-
.tcn-interactive[data-hierarchy="tertiary"]:focus-visible {
|
|
302
|
-
|
|
303
|
-
}
|
|
179
|
+
.tcn-interactive[data-hierarchy="tertiary"]:focus-visible {
|
|
180
|
+
outline: 2px dashed var(--on-mat);
|
|
181
|
+
}
|
|
304
182
|
|
|
305
|
-
.tcn-interactive[data-hierarchy="tertiary"][data-is-disabled="true"] {
|
|
306
|
-
|
|
307
|
-
}
|
|
183
|
+
.tcn-interactive[data-hierarchy="tertiary"][data-is-disabled="true"] {
|
|
184
|
+
color: var(--material-disabled);
|
|
185
|
+
}
|
|
308
186
|
|
|
309
|
-
.tcn-interactive[data-hierarchy="tertiary"]:hover {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
187
|
+
.tcn-interactive[data-hierarchy="tertiary"]:hover {
|
|
188
|
+
text-decoration: underline;
|
|
189
|
+
text-decoration-color: var(--on-mat);
|
|
190
|
+
text-decoration-thickness: 1px;
|
|
191
|
+
text-underline-offset: 4px;
|
|
192
|
+
color: var(--on-mat);
|
|
193
|
+
background: var(--on-mat-faint);
|
|
194
|
+
}
|
|
317
195
|
|
|
318
|
-
.tcn-interactive[data-hierarchy="tertiary"]:active {
|
|
319
|
-
|
|
320
|
-
}
|
|
196
|
+
.tcn-interactive[data-hierarchy="tertiary"]:active {
|
|
197
|
+
background: var(--mat-down);
|
|
198
|
+
}
|
|
321
199
|
|
|
322
|
-
/* Button */
|
|
200
|
+
/* Button */
|
|
323
201
|
|
|
324
|
-
.tcn-base-button {
|
|
325
|
-
|
|
326
|
-
}
|
|
202
|
+
.tcn-base-button {
|
|
203
|
+
--action: var(var(--button-color), var(--action));
|
|
204
|
+
}
|
|
327
205
|
|
|
328
|
-
.tcn-base-button[data-severity="dangerous"] {
|
|
329
|
-
|
|
330
|
-
|
|
206
|
+
.tcn-base-button[data-severity="dangerous"] {
|
|
207
|
+
--action: var(--action-dangerous);
|
|
208
|
+
--on-material: var(--action-dangerous);
|
|
209
|
+
}
|
|
331
210
|
|
|
332
|
-
.tcn-base-button[data-severity="cautious"] {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
211
|
+
.tcn-base-button[data-severity="cautious"] {
|
|
212
|
+
--action: var(--action-cautious);
|
|
213
|
+
--on-action: var(--on-action-cautious);
|
|
214
|
+
--on-material: var(--action-cautious);
|
|
215
|
+
}
|
|
336
216
|
|
|
337
|
-
/* .tcn-base-button[data-severity="neutral"] {
|
|
217
|
+
/* .tcn-base-button[data-severity="neutral"] {
|
|
338
218
|
--action: var(--action-neutral);
|
|
339
219
|
} */
|
|
340
220
|
|
|
341
|
-
.tcn-base-button[data-severity="suggested"] {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
.tcn-base-button[data-severity="encouraged"] {
|
|
346
|
-
--action: var(--action-encouraged);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.tcn-button {
|
|
350
|
-
border-radius: 4px;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.tcn-button[data-size="sm"] {
|
|
354
|
-
padding: 0px 8px;
|
|
355
|
-
min-height: 22px;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.tcn-button[data-size="md"] {
|
|
359
|
-
padding: 0px 12px;
|
|
360
|
-
min-height: 26px;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.tcn-button[data-size="lg"] {
|
|
364
|
-
padding: 0px 16px;
|
|
365
|
-
min-height: 32px;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.tcn-button:hover {
|
|
369
|
-
transform: translateY(-1px);
|
|
370
|
-
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.tcn-button:active {
|
|
374
|
-
transform: translateY(1px);
|
|
375
|
-
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.tcn-slim-button {
|
|
379
|
-
height: auto;
|
|
380
|
-
width: auto;
|
|
381
|
-
padding: 0;
|
|
382
|
-
}
|
|
221
|
+
.tcn-base-button[data-severity="suggested"] {
|
|
222
|
+
--action: var(--action-suggested);
|
|
223
|
+
--on-material: var(--action-suggested);
|
|
224
|
+
}
|
|
383
225
|
|
|
384
|
-
.tcn-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
padding: 0;
|
|
388
|
-
.tcn-icon {
|
|
389
|
-
min-height: 10px;
|
|
390
|
-
min-width: 10px;
|
|
226
|
+
.tcn-base-button[data-severity="encouraged"] {
|
|
227
|
+
--action: var(--action-encouraged);
|
|
228
|
+
--on-material: var(--action-encouraged);
|
|
391
229
|
}
|
|
392
|
-
}
|
|
393
230
|
|
|
394
|
-
.tcn-
|
|
395
|
-
|
|
396
|
-
min-width: 18px;
|
|
397
|
-
padding: 0;
|
|
398
|
-
.tcn-icon {
|
|
399
|
-
min-height: 14px;
|
|
400
|
-
min-width: 14px;
|
|
231
|
+
.tcn-button {
|
|
232
|
+
border-radius: 4px;
|
|
401
233
|
}
|
|
402
|
-
}
|
|
403
234
|
|
|
404
|
-
.tcn-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
padding: 0;
|
|
408
|
-
.tcn-icon {
|
|
409
|
-
min-height: 20px;
|
|
410
|
-
min-width: 20px;
|
|
235
|
+
.tcn-button[data-size="sm"] {
|
|
236
|
+
padding: 0px 8px;
|
|
237
|
+
min-height: 22px;
|
|
411
238
|
}
|
|
412
|
-
}
|
|
413
239
|
|
|
414
|
-
.
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}
|
|
240
|
+
.tcn-button[data-size="md"] {
|
|
241
|
+
padding: 0px 12px;
|
|
242
|
+
min-height: 26px;
|
|
243
|
+
}
|
|
418
244
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
cursor: move;
|
|
245
|
+
.tcn-button[data-size="lg"] {
|
|
246
|
+
padding: 0px 16px;
|
|
247
|
+
min-height: 32px;
|
|
423
248
|
}
|
|
424
|
-
}
|
|
425
249
|
|
|
426
|
-
.tcn-
|
|
427
|
-
|
|
428
|
-
|
|
250
|
+
.tcn-button:hover {
|
|
251
|
+
transform: translateY(-1px);
|
|
252
|
+
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
|
|
253
|
+
}
|
|
429
254
|
|
|
430
|
-
.tcn-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
border-radius: var(--shape-radius-medium);
|
|
435
|
-
padding: var(--padding-medium);
|
|
436
|
-
}
|
|
255
|
+
.tcn-button:active {
|
|
256
|
+
transform: translateY(1px);
|
|
257
|
+
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
258
|
+
}
|
|
437
259
|
|
|
438
|
-
.tcn-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
padding: 0px var(--padding-medium);
|
|
443
|
-
border-radius: var(--shape-radius-medium);
|
|
260
|
+
.tcn-slim-button {
|
|
261
|
+
height: auto;
|
|
262
|
+
width: auto;
|
|
263
|
+
padding: 0;
|
|
444
264
|
}
|
|
445
|
-
}
|
|
446
265
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
:where(.tcn-header) {
|
|
457
|
-
min-height: var(--scaffold-header-size);
|
|
458
|
-
padding: 0 var(--scaffold-v-inset);
|
|
459
|
-
gap: var(--gap-medium);
|
|
266
|
+
.tcn-slim-button[data-size="sm"] {
|
|
267
|
+
min-height: 12px;
|
|
268
|
+
min-width: 12px;
|
|
269
|
+
padding: 0;
|
|
270
|
+
.tcn-icon {
|
|
271
|
+
min-height: 10px;
|
|
272
|
+
min-width: 10px;
|
|
273
|
+
}
|
|
460
274
|
}
|
|
461
275
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
276
|
+
.tcn-slim-button[data-size="md"] {
|
|
277
|
+
min-height: 18px;
|
|
278
|
+
min-width: 18px;
|
|
279
|
+
padding: 0;
|
|
280
|
+
.tcn-icon {
|
|
281
|
+
min-height: 14px;
|
|
282
|
+
min-width: 14px;
|
|
283
|
+
}
|
|
467
284
|
}
|
|
468
285
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
286
|
+
.tcn-slim-button[data-size="lg"] {
|
|
287
|
+
min-height: 24px;
|
|
288
|
+
min-width: 24px;
|
|
289
|
+
padding: 0;
|
|
290
|
+
.tcn-icon {
|
|
291
|
+
min-height: 20px;
|
|
292
|
+
min-width: 20px;
|
|
293
|
+
}
|
|
473
294
|
}
|
|
474
295
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
padding: 0 var(--scaffold-v-inset);
|
|
478
|
-
gap: var(--gap-medium);
|
|
296
|
+
.tcn-button[data-size].tcn-select {
|
|
297
|
+
padding-inline-end: 26px;
|
|
479
298
|
}
|
|
480
299
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
300
|
+
.tcn-button-group {
|
|
301
|
+
.tcn-button-group-button:hover,
|
|
302
|
+
.tcn-button-group-button:active {
|
|
303
|
+
transform: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.tcn-button-group-button {
|
|
307
|
+
border-radius: 0;
|
|
308
|
+
}
|
|
309
|
+
.tcn-button-group-button:first-child {
|
|
310
|
+
border-top-left-radius: var(--shape-radius-medium);
|
|
311
|
+
border-bottom-left-radius: var(--shape-radius-medium);
|
|
312
|
+
}
|
|
313
|
+
.tcn-button-group-button:last-child {
|
|
314
|
+
border-top-right-radius: var(--shape-radius-medium);
|
|
315
|
+
border-bottom-right-radius: var(--shape-radius-medium);
|
|
316
|
+
}
|
|
317
|
+
.tcn-button-group-button[data-hierarchy="tertiary"] {
|
|
318
|
+
border: 0;
|
|
319
|
+
}
|
|
320
|
+
.tcn-button-group-button[data-hierarchy="tertiary"]:not(:last-child) {
|
|
321
|
+
border-right: 1px solid var(--on-mat-faint);
|
|
322
|
+
}
|
|
323
|
+
.tcn-button-group-button[data-hierarchy="tertiary"]:not(:first-child) {
|
|
324
|
+
border-left: 1px solid var(--on-mat-faint);
|
|
325
|
+
}
|
|
326
|
+
.tcn-button-group-button[data-hierarchy="primary"]:not(:last-child) {
|
|
327
|
+
border-right: 1px solid var(--act-down);
|
|
328
|
+
}
|
|
329
|
+
.tcn-button-group-button[data-hierarchy="primary"]:not(:first-child) {
|
|
330
|
+
border-left: 1px solid var(--act-down);
|
|
331
|
+
}
|
|
484
332
|
}
|
|
485
333
|
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
334
|
+
.tcn-select-group {
|
|
335
|
+
--action: var(--action-neutral);
|
|
336
|
+
.tcn-select-group-option:hover,
|
|
337
|
+
.tcn-select-group-option:active {
|
|
338
|
+
transform: none;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.tcn-select-group-option[data-hierarchy="secondary"] {
|
|
342
|
+
color: var(--act);
|
|
343
|
+
border-color: var(--act);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.tcn-select-group-option[data-hierarchy="secondary"]:hover {
|
|
347
|
+
background: var(--act-faint);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.tcn-select-group-option[data-hierarchy="secondary"]:active {
|
|
351
|
+
background: var(--act-down);
|
|
352
|
+
color: var(--on-act);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.tcn-select-group-option[data-hierarchy="secondary"][data-is-disabled="true"] {
|
|
356
|
+
color: var(--material-disabled);
|
|
357
|
+
border: 1px solid var(--material-disabled);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.tcn-select-group-option[data-hierarchy="primary"][data-is-disabled="true"] {
|
|
361
|
+
background: var(--material-disabled);
|
|
362
|
+
color: white;
|
|
363
|
+
border: 1px solid var(--material-disabled);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.tcn-select-group-option {
|
|
367
|
+
border-radius: 0;
|
|
368
|
+
}
|
|
369
|
+
.tcn-select-group-option:first-child {
|
|
370
|
+
border-top-left-radius: var(--shape-radius-medium);
|
|
371
|
+
border-bottom-left-radius: var(--shape-radius-medium);
|
|
372
|
+
}
|
|
373
|
+
.tcn-select-group-option:last-child {
|
|
374
|
+
border-top-right-radius: var(--shape-radius-medium);
|
|
375
|
+
border-bottom-right-radius: var(--shape-radius-medium);
|
|
376
|
+
}
|
|
490
377
|
}
|
|
491
|
-
}
|
|
492
378
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
379
|
+
/* ===== Tabs ===== */
|
|
380
|
+
.tcn-tabs-bar {
|
|
381
|
+
.tcn-tabs-list {
|
|
382
|
+
.tcn-tab-item {
|
|
383
|
+
min-height: 24px;
|
|
384
|
+
padding: 0px var(--padding-medium);
|
|
385
|
+
text-decoration: none;
|
|
386
|
+
text-overflow: ellipsis;
|
|
387
|
+
overflow: hidden;
|
|
388
|
+
white-space: nowrap;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
496
392
|
|
|
497
|
-
/*
|
|
498
|
-
.tcn-
|
|
499
|
-
|
|
393
|
+
/* Default */
|
|
394
|
+
.tcn-tabs-bar[data-variant="default"] {
|
|
395
|
+
.tcn-tabs-list {
|
|
396
|
+
.tcn-tab-item {
|
|
397
|
+
box-sizing: border-box;
|
|
398
|
+
border: none;
|
|
399
|
+
padding: 0px var(--padding-medium);
|
|
400
|
+
}
|
|
401
|
+
.tcn-tab-item[data-is-selected="true"] {
|
|
402
|
+
--on-material: var(--action);
|
|
403
|
+
}
|
|
404
|
+
.tcn-tab-item[data-is-selected="false"]:hover::after {
|
|
405
|
+
content: "";
|
|
406
|
+
display: block;
|
|
407
|
+
position: absolute;
|
|
408
|
+
left: 0;
|
|
409
|
+
right: 0;
|
|
410
|
+
bottom: 0px;
|
|
411
|
+
height: 1px;
|
|
412
|
+
background: var(--on-mat);
|
|
413
|
+
pointer-events: none;
|
|
414
|
+
z-index: 2;
|
|
415
|
+
width: 100%;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
&::after {
|
|
419
|
+
content: "";
|
|
420
|
+
position: absolute;
|
|
421
|
+
bottom: -1px;
|
|
422
|
+
left: 0;
|
|
423
|
+
min-height: 2px;
|
|
424
|
+
transform: translateX(var(--tabs-active-rectangle-position-x, 0));
|
|
425
|
+
width: var(--tabs-active-rectangle-width, 0);
|
|
426
|
+
background: hsl(var(--action));
|
|
427
|
+
pointer-events: none;
|
|
428
|
+
border-bottom-left-radius: 2px;
|
|
429
|
+
border-bottom-right-radius: 2px;
|
|
430
|
+
transition:
|
|
431
|
+
transform 300ms ease-in-out,
|
|
432
|
+
width 300ms ease-in-out;
|
|
433
|
+
will-change: transform, width;
|
|
434
|
+
z-index: 2;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
&::before {
|
|
439
|
+
content: "";
|
|
440
|
+
position: absolute;
|
|
441
|
+
bottom: 0;
|
|
442
|
+
left: 0;
|
|
443
|
+
width: 100%;
|
|
444
|
+
height: 1px;
|
|
445
|
+
background: var(--material-line);
|
|
446
|
+
pointer-events: none;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
500
449
|
|
|
501
|
-
|
|
450
|
+
/* Inline */
|
|
451
|
+
.tcn-tabs-bar[data-variant="inline"] {
|
|
452
|
+
min-width: min-content;
|
|
453
|
+
width: auto;
|
|
454
|
+
flex-grow: 0;
|
|
502
455
|
border-radius: var(--shape-radius-medium);
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
456
|
+
border: 1px solid hsl(var(--on-material));
|
|
457
|
+
--action: var(--on-material);
|
|
458
|
+
|
|
459
|
+
.tcn-tabs-list {
|
|
460
|
+
gap: var(--gap-small);
|
|
461
|
+
padding: var(--padding-small);
|
|
462
|
+
.tcn-tab-item {
|
|
463
|
+
border-radius: var(--shape-radius-medium);
|
|
464
|
+
}
|
|
465
|
+
.tcn-tab-item[data-is-selected="true"] {
|
|
466
|
+
background: var(--on-mat);
|
|
467
|
+
color: var(--mat);
|
|
468
|
+
}
|
|
469
|
+
.tcn-tab-item[data-is-selected="true"]:hover {
|
|
470
|
+
background: color-mix(in srgb, var(--on-mat), white 8%);
|
|
471
|
+
}
|
|
472
|
+
.tcn-tab-item[data-is-selected="true"]:active {
|
|
473
|
+
background: color-mix(in srgb, var(--on-mat), black 8%);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
506
476
|
}
|
|
507
477
|
|
|
508
|
-
|
|
509
|
-
color: inherit;
|
|
510
|
-
}
|
|
478
|
+
/* ===== MATERIAL ===== */
|
|
511
479
|
|
|
512
|
-
|
|
513
|
-
--material: var(--material-secondary-dark);
|
|
514
|
-
--on-material: 0, 0%, 100%;
|
|
515
|
-
--action: var(--material-tan);
|
|
516
|
-
--on-action: 0, 0%, 100%;
|
|
480
|
+
.material {
|
|
517
481
|
background-color: hsl(var(--material));
|
|
518
482
|
color: hsl(var(--on-material));
|
|
519
483
|
}
|
|
520
484
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
background-color: hsl(var(--material));
|
|
527
|
-
color: hsl(var(--on-material));
|
|
485
|
+
/* ===== SURFACES ===== */
|
|
486
|
+
.tcn-draggable[data-is-draggable="true"] {
|
|
487
|
+
.tcn-drag-handle {
|
|
488
|
+
cursor: move;
|
|
489
|
+
}
|
|
528
490
|
}
|
|
529
|
-
}
|
|
530
491
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
492
|
+
.tcn-frame[data-is-veil="true"] {
|
|
493
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
494
|
+
}
|
|
534
495
|
|
|
535
|
-
|
|
536
|
-
|
|
496
|
+
.tcn-tooltip {
|
|
497
|
+
background: rgba(57, 85, 120, 0.85);
|
|
498
|
+
box-shadow: 0px 4px 7px 0px rgba(65, 65, 65, 0.66);
|
|
499
|
+
color: rgba(255, 255, 255, 1);
|
|
537
500
|
border-radius: var(--shape-radius-medium);
|
|
538
|
-
|
|
539
|
-
overflow: hidden;
|
|
540
|
-
border: 2px solid white;
|
|
501
|
+
padding: var(--padding-medium);
|
|
541
502
|
}
|
|
542
503
|
|
|
543
|
-
|
|
544
|
-
|
|
504
|
+
.tcn-list {
|
|
505
|
+
gap: var(--gap-medium);
|
|
506
|
+
.tcn-item {
|
|
507
|
+
height: 24px;
|
|
508
|
+
padding: 0px var(--padding-medium);
|
|
509
|
+
border-radius: var(--shape-radius-medium);
|
|
510
|
+
}
|
|
545
511
|
}
|
|
546
512
|
|
|
547
|
-
:
|
|
548
|
-
|
|
549
|
-
--
|
|
550
|
-
--
|
|
551
|
-
--
|
|
552
|
-
|
|
553
|
-
|
|
513
|
+
/* Scaffold: */
|
|
514
|
+
.tcn-scaffold {
|
|
515
|
+
--scaffold-v-inset: var(--v-inset, var(--padding-large));
|
|
516
|
+
--scaffold-header-size: var(--header-size, 40px);
|
|
517
|
+
--scaffold-footer-size: var(--footer-size, 40px);
|
|
518
|
+
--scaffold-utility-bar-size: var(--utility-bar-size, 32px);
|
|
519
|
+
--scaffold-divide-footer: var(--divide-footer, 1);
|
|
520
|
+
--scaffold-divide-header: var(--divide-header, 1);
|
|
521
|
+
|
|
522
|
+
:where(.tcn-header) {
|
|
523
|
+
min-height: var(--scaffold-header-size);
|
|
524
|
+
padding: 0 var(--scaffold-v-inset);
|
|
525
|
+
gap: var(--gap-medium);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/* Border appears on body only when it follows header or utility-bar */
|
|
529
|
+
:where(.tcn-header) + :where(.tcn-body),
|
|
530
|
+
:where(.tcn-utility-bar) + :where(.tcn-body) {
|
|
531
|
+
border-top: calc(var(--scaffold-divide-header) * 1px) solid
|
|
532
|
+
var(--foreground-color-primary);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* Border appears on footer only when it follows body and --scaffold-divide-footer is 1 */
|
|
536
|
+
:where(.tcn-body) + :where(.tcn-footer) {
|
|
537
|
+
border-top: calc(var(--scaffold-divide-footer) * 1px) solid
|
|
538
|
+
var(--foreground-color-primary);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
:where(.tcn-utility-bar) {
|
|
542
|
+
min-height: var(--scaffold-utility-bar-size);
|
|
543
|
+
padding: 0 var(--scaffold-v-inset);
|
|
544
|
+
gap: var(--gap-medium);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
:where(.tcn-body) {
|
|
548
|
+
padding: 0 var(--scaffold-v-inset);
|
|
549
|
+
gap: var(--gap-medium);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
:where(.tcn-footer) {
|
|
553
|
+
gap: var(--gap-medium);
|
|
554
|
+
min-height: var(--scaffold-footer-size);
|
|
555
|
+
padding: 0 var(--scaffold-v-inset);
|
|
556
|
+
}
|
|
554
557
|
}
|
|
555
558
|
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
--on-material: 0, 0%, 100%;
|
|
559
|
-
--action: var(--material-tan);
|
|
560
|
-
--on-action: 0, 0%, 100%;
|
|
561
|
-
background-color: hsl(var(--material));
|
|
562
|
-
color: hsl(var(--on-material));
|
|
559
|
+
.tcn-frame-veil[data-is-veil="true"] {
|
|
560
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
563
561
|
}
|
|
564
|
-
}
|
|
565
562
|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
563
|
+
/* MODAL: */
|
|
564
|
+
.tcn-modal {
|
|
565
|
+
--divide-header: 0;
|
|
566
|
+
|
|
567
|
+
:where(.tcn-scaffold) {
|
|
568
|
+
border-radius: var(--shape-radius-medium);
|
|
569
|
+
background-color: var(--background-color-primary);
|
|
570
|
+
overflow: hidden;
|
|
571
|
+
border: 1px solid var(--foreground-color-primary);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
:where(.tcn-typography) {
|
|
575
|
+
color: inherit;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
:where(.tcn-header) {
|
|
579
|
+
--material: var(--material-secondary-dark);
|
|
580
|
+
--on-material: 0, 0%, 100%;
|
|
581
|
+
--action: var(--material-tan);
|
|
582
|
+
--on-action: 0, 0%, 100%;
|
|
583
|
+
background-color: hsl(var(--material));
|
|
584
|
+
color: hsl(var(--on-material));
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
:where(.tcn-utility-bar) {
|
|
588
|
+
--material: var(--material-secondary-dark);
|
|
589
|
+
--on-material: 0, 0%, 100%;
|
|
590
|
+
--action: var(--material-tan);
|
|
591
|
+
--on-action: 0, 0%, 100%;
|
|
592
|
+
background-color: hsl(var(--material));
|
|
593
|
+
color: hsl(var(--on-material));
|
|
594
|
+
}
|
|
575
595
|
}
|
|
576
596
|
|
|
577
|
-
:
|
|
578
|
-
|
|
597
|
+
/* WINDOW: */
|
|
598
|
+
.tcn-window {
|
|
599
|
+
--divide-header: 0;
|
|
600
|
+
|
|
601
|
+
:where(.tcn-scaffold) {
|
|
602
|
+
box-shadow: 0px 4px 34px 0px #00000096;
|
|
603
|
+
border-radius: var(--shape-radius-medium);
|
|
604
|
+
background-color: var(--background-color-primary);
|
|
605
|
+
overflow: hidden;
|
|
606
|
+
border: 2px solid white;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
:where(.tcn-typography) {
|
|
610
|
+
color: inherit;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
:where(.tcn-header) {
|
|
614
|
+
--material: var(--material-secondary-dark);
|
|
615
|
+
--on-material: 0, 0%, 100%;
|
|
616
|
+
--action: var(--material-tan);
|
|
617
|
+
--on-action: 0, 0%, 100%;
|
|
618
|
+
background-color: hsl(var(--material));
|
|
619
|
+
color: hsl(var(--on-material));
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
:where(.tcn-utility-bar) {
|
|
623
|
+
--material: var(--material-secondary-dark);
|
|
624
|
+
--on-material: 0, 0%, 100%;
|
|
625
|
+
--action: var(--material-tan);
|
|
626
|
+
--on-action: 0, 0%, 100%;
|
|
627
|
+
background-color: hsl(var(--material));
|
|
628
|
+
color: hsl(var(--on-material));
|
|
629
|
+
}
|
|
579
630
|
}
|
|
580
631
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
--
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
632
|
+
.tcn-pop-confirm {
|
|
633
|
+
--divide-header: 0;
|
|
634
|
+
--v-inset: var(--padding-medium);
|
|
635
|
+
|
|
636
|
+
:where(.tcn-scaffold) {
|
|
637
|
+
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.4);
|
|
638
|
+
border-radius: var(--shape-radius-medium);
|
|
639
|
+
background-color: var(--background-color-primary);
|
|
640
|
+
overflow: hidden;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
:where(.tcn-typography) {
|
|
644
|
+
color: inherit;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
:where(.tcn-header) {
|
|
648
|
+
min-height: 32px;
|
|
649
|
+
--material: var(--material-secondary-dark);
|
|
650
|
+
--on-material: 0, 0%, 100%;
|
|
651
|
+
--action: var(--material-tan);
|
|
652
|
+
--on-action: 0, 0%, 100%;
|
|
653
|
+
background-color: hsl(var(--material));
|
|
654
|
+
color: hsl(var(--on-material));
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
:where(.tcn-utility-bar) {
|
|
658
|
+
--material: var(--material-secondary-dark);
|
|
659
|
+
--on-material: 0, 0%, 100%;
|
|
660
|
+
--action: var(--material-tan);
|
|
661
|
+
--on-action: 0, 0%, 100%;
|
|
662
|
+
background-color: hsl(var(--material));
|
|
663
|
+
color: hsl(var(--on-material));
|
|
664
|
+
}
|
|
589
665
|
}
|
|
590
666
|
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
background-color: hsl(var(--material));
|
|
597
|
-
color: hsl(var(--on-material));
|
|
667
|
+
/* PANEL */
|
|
668
|
+
.tcn-panel {
|
|
669
|
+
background-color: var(--background-color-primary);
|
|
670
|
+
border-radius: var(--shape-radius-medium);
|
|
671
|
+
overflow: hidden;
|
|
598
672
|
}
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
/* PANEL */
|
|
602
|
-
.tcn-panel {
|
|
603
|
-
background-color: var(--background-color-primary);
|
|
604
|
-
border-radius: var(--shape-radius-medium);
|
|
605
|
-
overflow: hidden;
|
|
606
|
-
}
|
|
607
673
|
|
|
608
|
-
/* Card */
|
|
609
|
-
.tcn-card {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
674
|
+
/* Card */
|
|
675
|
+
.tcn-card {
|
|
676
|
+
--header-size: 32px;
|
|
677
|
+
--footer-size: 32px;
|
|
678
|
+
--utility-bar-size: 24px;
|
|
679
|
+
--divide-header: 0;
|
|
614
680
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
681
|
+
background-color: var(--background-color-primary);
|
|
682
|
+
border-radius: var(--shape-radius-medium);
|
|
683
|
+
border: 1px solid var(--foreground-color-primary);
|
|
684
|
+
overflow: hidden;
|
|
619
685
|
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
686
|
+
:where(.tcn-header) {
|
|
687
|
+
/* TODO: This should be a variable */
|
|
688
|
+
background-color: #ecf4fb;
|
|
689
|
+
}
|
|
624
690
|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
691
|
+
:where(.tcn-utility-bar) {
|
|
692
|
+
/* TODO: This should be a variable */
|
|
693
|
+
background-color: #ecf4fb;
|
|
694
|
+
}
|
|
628
695
|
}
|
|
629
696
|
}
|