@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,102 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.divider) {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where(.divider-line) {
|
|
9
|
+
background: var(--material-line, #aaa);
|
|
10
|
+
border-radius: calc(4px * var(--scalar, 1));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Emphasis */
|
|
14
|
+
:where(.divider-line[data-emphasis="strong"]) {
|
|
15
|
+
background: color-mix(in srgb, #aaa, black 20%);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(.divider-line[data-emphasis="normal"]) {
|
|
19
|
+
background: #aaa;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(.divider-line[data-emphasis="light"]) {
|
|
23
|
+
background: color-mix(in srgb, #aaa, white 20%);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Horizontal Divider */
|
|
27
|
+
:where(.divider[data-orientation="horizontal"]) {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: auto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(.divider-line[data-orientation="horizontal"]) {
|
|
33
|
+
width: var(--divider-width, 100%);
|
|
34
|
+
height: calc(var(--divider-height, 1px) * var(--scalar, 1));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where(.divider-line[data-orientation="horizontal"][data-thickness="sm"]) {
|
|
38
|
+
height: calc(var(--divider-height, 1px) * var(--scalar, 1));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.divider-line[data-orientation="horizontal"][data-thickness="md"]) {
|
|
42
|
+
height: calc(var(--divider-height, 2px) * var(--scalar, 1));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where(.divider-line[data-orientation="horizontal"][data-thickness="lg"]) {
|
|
46
|
+
height: calc(var(--divider-height, 3px) * var(--scalar, 1));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where(.divider-line[data-orientation="horizontal"][data-length="full"]) {
|
|
50
|
+
width: var(--divider-width, 100%);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(.divider-line[data-orientation="horizontal"][data-length="sm"]) {
|
|
54
|
+
width: calc(var(--divider-width, 16px) * var(--scalar, 1));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where(.divider-line[data-orientation="horizontal"][data-length="md"]) {
|
|
58
|
+
width: calc(var(--divider-width, 20px) * var(--scalar, 1));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(.divider-line[data-orientation="horizontal"][data-length="lg"]) {
|
|
62
|
+
width: calc(var(--divider-width, 24px) * var(--scalar, 1));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Vertical Divider */
|
|
66
|
+
|
|
67
|
+
:where(.divider[data-orientation="vertical"]) {
|
|
68
|
+
height: 100%;
|
|
69
|
+
width: auto;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where(.divider-line[data-orientation="vertical"]) {
|
|
73
|
+
width: calc(var(--divider-width, 1px) * var(--scalar, 1));
|
|
74
|
+
height: var(--divider-height, 100%);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where(.divider-line[data-orientation="vertical"][data-thickness="sm"]) {
|
|
78
|
+
min-width: calc(var(--divider-width, 1px) * var(--scalar, 1));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where(.divider-line[data-orientation="vertical"][data-thickness="md"]) {
|
|
82
|
+
min-width: calc(var(--divider-width, 2px) * var(--scalar, 1));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(.divider-line[data-orientation="vertical"][data-thickness="lg"]) {
|
|
86
|
+
min-width: calc(var(--divider-width, 3px) * var(--scalar, 1));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.divider-line[data-orientation="vertical"][data-length="full"]) {
|
|
90
|
+
height: var(--divider-height, 100%);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:where(.divider-line[data-orientation="vertical"][data-length="sm"]) {
|
|
94
|
+
height: calc(var(--divider-height, 16px) * var(--scalar, 1));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:where(.divider-line[data-orientation="vertical"][data-length="md"]) {
|
|
98
|
+
height: calc(var(--divider-height, 20px) * var(--scalar, 1));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where(.divider-line[data-orientation="vertical"][data-length="lg"]) {
|
|
102
|
+
height: calc(var(--divider-height, 24px) * var(--scalar, 1));
|
|
103
|
+
}
|
|
102
104
|
}
|
|
@@ -59,7 +59,7 @@ export const Divider: React.FC<DividerProps> = ({
|
|
|
59
59
|
data-thickness={thickness}
|
|
60
60
|
data-length={length}
|
|
61
61
|
data-orientation={orientation}
|
|
62
|
-
className={clsx(styles[`divider`], '
|
|
62
|
+
className={clsx(styles[`divider`], 'tcn-divider', className)}
|
|
63
63
|
{...props}
|
|
64
64
|
>
|
|
65
65
|
<div
|
|
@@ -70,7 +70,6 @@ export const Divider: React.FC<DividerProps> = ({
|
|
|
70
70
|
style={cssVariables}
|
|
71
71
|
className={clsx(
|
|
72
72
|
styles[`divider-line`],
|
|
73
|
-
'divider-line',
|
|
74
73
|
'tcn-divider-line',
|
|
75
74
|
'material',
|
|
76
75
|
className
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.footer) {
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-height: 0;
|
|
5
|
+
padding: var(--padding) var(--padding-large);
|
|
6
|
+
gap: var(--gap);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/*
|
|
8
10
|
Kinds:
|
|
9
11
|
'default' | 'app' | 'nav' | 'toolbar' | 'window' | 'status';
|
|
10
12
|
*/
|
|
11
13
|
|
|
12
|
-
.footer[data-kind="app"] {
|
|
13
|
-
|
|
14
|
-
}
|
|
14
|
+
:where(.footer[data-kind="app"]) {
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
|
-
.footer[data-kind="nav"] {
|
|
17
|
-
|
|
18
|
-
}
|
|
18
|
+
:where(.footer[data-kind="nav"]) {
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
19
21
|
|
|
20
|
-
.footer[data-kind="toolbar"] {
|
|
21
|
-
|
|
22
|
-
}
|
|
22
|
+
:where(.footer[data-kind="toolbar"]) {
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
23
25
|
|
|
24
|
-
.footer[data-kind="window"] {
|
|
25
|
-
|
|
26
|
-
}
|
|
26
|
+
:where(.footer[data-kind="window"]) {
|
|
27
|
+
position: relative;
|
|
28
|
+
}
|
|
27
29
|
|
|
28
|
-
.footer[data-kind="status"] {
|
|
29
|
-
|
|
30
|
+
:where(.footer[data-kind="status"]) {
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
30
33
|
}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.grid) {
|
|
3
|
+
display: inline-grid;
|
|
4
|
+
grid-auto-flow: row;
|
|
5
|
+
height: auto;
|
|
6
|
+
grid-template-columns: var(--template);
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-width: var(--max-width);
|
|
9
|
+
grid-auto-rows: var(--item-height);
|
|
10
|
+
justify-items: center;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
:global([data-h-alignment="center"]) > .grid {
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
:where(:global([data-h-alignment="center"]) > .grid) {
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
:global([data-h-alignment="end"]) > .grid {
|
|
17
|
-
|
|
18
|
-
}
|
|
17
|
+
:where(:global([data-h-alignment="end"]) > .grid) {
|
|
18
|
+
justify-content: end;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
:global([data-h-alignment="start"]) > .grid {
|
|
21
|
-
|
|
21
|
+
:where(:global([data-h-alignment="start"]) > .grid) {
|
|
22
|
+
justify-content: start;
|
|
23
|
+
}
|
|
22
24
|
}
|
|
@@ -108,7 +108,12 @@ export const Grid = React.forwardRef(function Grid(
|
|
|
108
108
|
});
|
|
109
109
|
|
|
110
110
|
return (
|
|
111
|
-
<As
|
|
111
|
+
<As
|
|
112
|
+
ref={ref}
|
|
113
|
+
className={clsx(styles.grid, className, 'tcn-grid')}
|
|
114
|
+
style={gridStyles}
|
|
115
|
+
{...attr}
|
|
116
|
+
>
|
|
112
117
|
{children}
|
|
113
118
|
</As>
|
|
114
119
|
);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.header) {
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-height: 0;
|
|
5
|
+
padding: var(--padding) var(--padding-large);
|
|
6
|
+
gap: var(--gap);
|
|
7
|
+
}
|
|
6
8
|
}
|
|
@@ -24,7 +24,7 @@ export const Header = React.forwardRef<HTMLElement, HeaderProps>(function Header
|
|
|
24
24
|
<HStack
|
|
25
25
|
ref={ref}
|
|
26
26
|
as="header"
|
|
27
|
-
className={clsx(styles.header, className, 'tcn-header'
|
|
27
|
+
className={clsx(styles.header, className, 'tcn-header')}
|
|
28
28
|
data-hierarchy={hierarchy}
|
|
29
29
|
data-size={size}
|
|
30
30
|
height={height}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.section-header) {
|
|
3
|
+
position: sticky;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
.section-header[data-hierarchy="primary"] {
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
:where(.section-header[data-hierarchy="primary"]) {
|
|
10
|
+
background-color: #f1f1f1;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
.section-header[data-hierarchy="secondary"] {
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
:where(.section-header[data-hierarchy="secondary"]) {
|
|
14
|
+
background-color: #f1f1f1;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
.section-header[data-hierarchy="tertiary"] {
|
|
17
|
-
|
|
17
|
+
:where(.section-header[data-hierarchy="tertiary"]) {
|
|
18
|
+
background-color: #f1f1f1;
|
|
19
|
+
}
|
|
18
20
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HStack } from '../../stacks/h_stack.js';
|
|
3
3
|
import type { HStackProps } from '../../stacks/h_stack.js';
|
|
4
|
+
import clsx from 'clsx';
|
|
4
5
|
|
|
5
6
|
export interface SectionHeaderProps extends Omit<HStackProps, 'as'> {}
|
|
6
7
|
|
|
7
8
|
export const SectionHeader = React.forwardRef<HTMLDivElement, SectionHeaderProps>(
|
|
8
9
|
function SectionHeader({ children, className, ...props }: SectionHeaderProps, ref) {
|
|
9
10
|
return (
|
|
10
|
-
<HStack
|
|
11
|
+
<HStack
|
|
12
|
+
ref={ref}
|
|
13
|
+
as="li"
|
|
14
|
+
className={clsx(className, 'tcn-section-header')}
|
|
15
|
+
{...props}
|
|
16
|
+
>
|
|
11
17
|
{children}
|
|
12
18
|
</HStack>
|
|
13
19
|
);
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.sidebarEndBox) {
|
|
3
|
+
width: 250px;
|
|
4
|
+
height: 100%;
|
|
5
|
+
z-index: 2;
|
|
6
|
+
}
|
|
6
7
|
|
|
7
|
-
.sidebarEnd {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
8
|
+
:where(.sidebarEnd) {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
/* Primary hierarchy - main sidebar end */
|
|
13
|
-
.sidebarEnd[data-hierarchy="primary"] {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
13
|
+
/* Primary hierarchy - main sidebar end */
|
|
14
|
+
:where(.sidebarEnd[data-hierarchy="primary"]) {
|
|
15
|
+
background: #ffffff;
|
|
16
|
+
border-left: 1px solid #e0e0e0;
|
|
17
|
+
padding: 16px;
|
|
18
|
+
}
|
|
18
19
|
|
|
19
|
-
/* Secondary hierarchy - sub sidebar end */
|
|
20
|
-
.sidebarEnd[data-hierarchy="secondary"] {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
20
|
+
/* Secondary hierarchy - sub sidebar end */
|
|
21
|
+
:where(.sidebarEnd[data-hierarchy="secondary"]) {
|
|
22
|
+
background: #f8f9fa;
|
|
23
|
+
border-left: 1px solid #e9ecef;
|
|
24
|
+
padding: 12px;
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
/* Tertiary hierarchy - minor sidebar end */
|
|
27
|
-
.sidebarEnd[data-hierarchy="tertiary"] {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
/* Tertiary hierarchy - minor sidebar end */
|
|
28
|
+
:where(.sidebarEnd[data-hierarchy="tertiary"]) {
|
|
29
|
+
background: #f1f3f4;
|
|
30
|
+
border-left: 1px solid #dee2e6;
|
|
31
|
+
padding: 8px;
|
|
32
|
+
}
|
|
31
33
|
}
|
|
@@ -38,7 +38,7 @@ export const SidebarEnd = React.forwardRef<HTMLElement, SidebarEndProps>(
|
|
|
38
38
|
maxWidth={maxWidth}
|
|
39
39
|
minHeight={minHeight}
|
|
40
40
|
maxHeight={maxHeight}
|
|
41
|
-
className={styles.sidebarEndBox}
|
|
41
|
+
className={clsx(styles.sidebarEndBox, 'tcn-sidebar-end-container')}
|
|
42
42
|
as={'section'}
|
|
43
43
|
{...props}
|
|
44
44
|
>
|
|
@@ -53,7 +53,7 @@ export const SidebarEnd = React.forwardRef<HTMLElement, SidebarEndProps>(
|
|
|
53
53
|
vAlign={vAlign}
|
|
54
54
|
ref={ref}
|
|
55
55
|
data-hierarchy={hierarchy}
|
|
56
|
-
className={clsx(styles.sidebarEnd, className, 'sidebar-end')}
|
|
56
|
+
className={clsx(styles.sidebarEnd, className, 'tcn-sidebar-end')}
|
|
57
57
|
zIndex={0}
|
|
58
58
|
>
|
|
59
59
|
{children}
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.sidebarStartBox) {
|
|
3
|
+
width: 250px;
|
|
4
|
+
height: 100%;
|
|
5
|
+
z-index: 2;
|
|
6
|
+
}
|
|
6
7
|
|
|
7
|
-
.sidebarStart {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
8
|
+
:where(.sidebarStart) {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
/* Primary hierarchy - main sidebar start */
|
|
13
|
-
.sidebarStart[data-hierarchy="primary"] {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
13
|
+
/* Primary hierarchy - main sidebar start */
|
|
14
|
+
:where(.sidebarStart[data-hierarchy="primary"]) {
|
|
15
|
+
background: #ffffff;
|
|
16
|
+
border-right: 1px solid #e0e0e0;
|
|
17
|
+
padding: 16px;
|
|
18
|
+
}
|
|
18
19
|
|
|
19
|
-
/* Secondary hierarchy - sub sidebar start */
|
|
20
|
-
.sidebarStart[data-hierarchy="secondary"] {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
20
|
+
/* Secondary hierarchy - sub sidebar start */
|
|
21
|
+
:where(.sidebarStart[data-hierarchy="secondary"]) {
|
|
22
|
+
background: #f8f9fa;
|
|
23
|
+
border-right: 1px solid #e9ecef;
|
|
24
|
+
padding: 12px;
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
/* Tertiary hierarchy - minor sidebar start */
|
|
27
|
-
.sidebarStart[data-hierarchy="tertiary"] {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
/* Tertiary hierarchy - minor sidebar start */
|
|
28
|
+
:where(.sidebarStart[data-hierarchy="tertiary"]) {
|
|
29
|
+
background: #f1f3f4;
|
|
30
|
+
border-right: 1px solid #dee2e6;
|
|
31
|
+
padding: 8px;
|
|
32
|
+
}
|
|
31
33
|
}
|
|
@@ -38,7 +38,7 @@ export const SidebarStart = React.forwardRef<HTMLElement, SidebarStartProps>(
|
|
|
38
38
|
maxWidth={maxWidth}
|
|
39
39
|
minHeight={minHeight}
|
|
40
40
|
maxHeight={maxHeight}
|
|
41
|
-
className={styles.sidebarStartBox}
|
|
41
|
+
className={clsx(styles.sidebarStartBox, 'tcn-sidebar-start-container')}
|
|
42
42
|
{...props}
|
|
43
43
|
>
|
|
44
44
|
<VStack
|
|
@@ -50,7 +50,7 @@ export const SidebarStart = React.forwardRef<HTMLElement, SidebarStartProps>(
|
|
|
50
50
|
vAlign={vAlign}
|
|
51
51
|
ref={ref}
|
|
52
52
|
data-hierarchy={hierarchy}
|
|
53
|
-
className={clsx(styles.sidebarStart, className, 'sidebar-start')}
|
|
53
|
+
className={clsx(styles.sidebarStart, className, 'tcn-sidebar-start')}
|
|
54
54
|
zIndex={0}
|
|
55
55
|
>
|
|
56
56
|
{children}
|
|
@@ -26,12 +26,7 @@ export const UtilityBar = React.forwardRef<HTMLElement, UtilityBarProps>(
|
|
|
26
26
|
<HStack
|
|
27
27
|
ref={ref}
|
|
28
28
|
as="header"
|
|
29
|
-
className={clsx(
|
|
30
|
-
styles['utility-bar'],
|
|
31
|
-
className,
|
|
32
|
-
'utility-bar',
|
|
33
|
-
'tcn-utility-bar'
|
|
34
|
-
)}
|
|
29
|
+
className={clsx(styles['utility-bar'], className, 'tcn-utility-bar')}
|
|
35
30
|
data-hierarchy={hierarchy}
|
|
36
31
|
data-size={size}
|
|
37
32
|
height={height}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Stateful Components
|
|
2
|
+
export { Tabs, useTabs, type TabsProps, type TabsState } from './tabs/state/context.js';
|
|
3
|
+
export {
|
|
4
|
+
TabLink,
|
|
5
|
+
type TabLinkProps,
|
|
6
|
+
type TabLinkOwnProps,
|
|
7
|
+
} from './tabs/state/link/tab_link.js';
|
|
8
|
+
export { Tab, type TabProps } from './tabs/state/tab.js';
|
|
9
|
+
export { TabsNavbar, type TabsNavbarProps } from './tabs/state/nav_bar.js';
|
|
10
|
+
|
|
11
|
+
// Primitive Components
|
|
12
|
+
export { TabsBar, type TabsBarProps } from './tabs/primitives/tabs_bar.js';
|
|
13
|
+
export {
|
|
14
|
+
TabsList,
|
|
15
|
+
TabItem,
|
|
16
|
+
type TabsListProps,
|
|
17
|
+
type TabItemProps,
|
|
18
|
+
} from './tabs/primitives/tabs_list.js';
|