@tcn/ui 0.0.3 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/button/base_button/base_button.d.ts.map +1 -1
- package/dist/actions/button/base_button/base_button.js +20 -15
- package/dist/actions/button/base_button/base_button.js.map +1 -1
- package/dist/actions/button/button/button.d.ts.map +1 -1
- package/dist/actions/button/button/button.js +7 -7
- package/dist/actions/button/button/button.js.map +1 -1
- package/dist/actions/button/button_group/button_group.d.ts.map +1 -1
- package/dist/actions/button/button_group/button_group.js +2 -5
- package/dist/actions/button/button_group/button_group.js.map +1 -1
- package/dist/actions/button/select_group/select_group.js +7 -7
- package/dist/actions/button/select_group/select_group.js.map +1 -1
- package/dist/actions/button/slim_button/slim_button.d.ts.map +1 -1
- package/dist/actions/button/slim_button/slim_button.js +5 -5
- package/dist/actions/button/slim_button/slim_button.js.map +1 -1
- package/dist/button.css +1 -1
- package/dist/feedback/progress/progress_bar.js +1 -1
- package/dist/footer.css +1 -1
- package/dist/form/field/common/field_control/field_control.js +6 -6
- package/dist/form/field/common/field_control/field_control.js.map +1 -1
- package/dist/form/field/common/field_description.js +1 -1
- package/dist/form/field/common/field_error.js +2 -2
- package/dist/form/field/common/field_header.js +8 -8
- package/dist/form/field/common/field_header.js.map +1 -1
- package/dist/form/field/common/field_label.js +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 +9 -15
- package/dist/form/field/common/status_input/status_input.js.map +1 -1
- package/dist/form/field/h_field/h_field.js +9 -9
- package/dist/form/field/h_field/h_field.js.map +1 -1
- package/dist/form/field/v_field/v_field.js +8 -8
- 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 +12 -19
- package/dist/form/field_set/field_set.js.map +1 -1
- package/dist/inputs/checkbox/checkbox.js +12 -12
- package/dist/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/inputs/color_input/color_input.d.ts.map +1 -1
- package/dist/inputs/color_input/color_input.js +13 -17
- package/dist/inputs/color_input/color_input.js.map +1 -1
- package/dist/inputs/color_input/color_picker.js +6 -6
- package/dist/inputs/color_input/color_picker.js.map +1 -1
- package/dist/inputs/combo_box/combo_box.js +15 -15
- package/dist/inputs/combo_box/combo_box.js.map +1 -1
- package/dist/inputs/date_picker/date_picker.js +6 -6
- package/dist/inputs/date_picker/date_picker.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_date.js +13 -13
- package/dist/inputs/date_picker/date_picker_date.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_day.js +1 -1
- package/dist/inputs/date_picker/date_picker_header.js +24 -24
- package/dist/inputs/date_picker/date_picker_header.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_input.js +19 -19
- 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 +6 -9
- package/dist/inputs/date_picker/date_picker_time_selector.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_input.js +3 -3
- 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 +18 -24
- package/dist/inputs/date_picker/date_picker_year_selector.js.map +1 -1
- package/dist/inputs/input/input.d.ts +2 -2
- package/dist/inputs/input/input.d.ts.map +1 -1
- package/dist/inputs/input/input.js +4 -4
- package/dist/inputs/input/input.js.map +1 -1
- package/dist/inputs/multi_combo_box/multi_combo_box.js +1 -1
- package/dist/inputs/multi_combo_box/multi_combo_box.js.map +1 -1
- package/dist/inputs/multiselect/multiselect_values.js +8 -8
- package/dist/inputs/multiselect/multiselect_values.js.map +1 -1
- package/dist/inputs/options/option.d.ts +1 -0
- package/dist/inputs/options/option.d.ts.map +1 -1
- package/dist/inputs/options/option.js.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.d.ts +6 -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 +169 -128
- package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
- package/dist/inputs/radio/radio.js +14 -14
- package/dist/inputs/radio/radio.js.map +1 -1
- package/dist/inputs/select/select.js +16 -16
- package/dist/inputs/select/select.js.map +1 -1
- package/dist/inputs/slider/slider.js +7 -7
- package/dist/inputs/slider/slider.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_item.d.ts +1 -1
- package/dist/inputs/suggestions/suggestion_item.d.ts.map +1 -1
- package/dist/inputs/suggestions/suggestion_item.js +23 -18
- package/dist/inputs/suggestions/suggestion_item.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.d.ts +1 -1
- package/dist/inputs/suggestions/suggestion_list.d.ts.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.js +105 -95
- 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 +5 -5
- package/dist/inputs/unit_input/unit_input.js.map +1 -1
- package/dist/layouts/body/h_body.js +10 -10
- package/dist/layouts/body/h_body.js.map +1 -1
- package/dist/layouts/body/v_body.js +8 -8
- package/dist/layouts/body/v_body.js.map +1 -1
- package/dist/layouts/column/column.js +16 -16
- package/dist/layouts/column/column.js.map +1 -1
- package/dist/layouts/divider/divider.js +9 -9
- package/dist/layouts/divider/divider.js.map +1 -1
- package/dist/layouts/footer/footer.js +6 -6
- package/dist/layouts/footer/footer.js.map +1 -1
- package/dist/layouts/grid/grid.d.ts.map +1 -1
- package/dist/layouts/grid/grid.js +22 -31
- package/dist/layouts/grid/grid.js.map +1 -1
- package/dist/layouts/header/header.js +11 -11
- package/dist/layouts/header/header.js.map +1 -1
- package/dist/layouts/index.d.ts +3 -2
- package/dist/layouts/index.d.ts.map +1 -1
- package/dist/layouts/index.js +26 -24
- package/dist/layouts/index.js.map +1 -1
- package/dist/layouts/list/item.d.ts +1 -0
- package/dist/layouts/list/item.d.ts.map +1 -1
- package/dist/layouts/list/item.js +18 -7
- package/dist/layouts/list/item.js.map +1 -1
- package/dist/layouts/list/list.js +12 -12
- package/dist/layouts/list/list.js.map +1 -1
- package/dist/layouts/sidebar_end/sidebar_end.js +15 -15
- package/dist/layouts/sidebar_end/sidebar_end.js.map +1 -1
- package/dist/layouts/sidebar_start/sidebar_start.js +16 -16
- package/dist/layouts/sidebar_start/sidebar_start.js.map +1 -1
- package/dist/layouts/utility_bar/utility_bar.js +14 -14
- package/dist/layouts/utility_bar/utility_bar.js.map +1 -1
- package/dist/modal.css +1 -1
- package/dist/overlay/context_menu/context_menu.js +4 -4
- package/dist/overlay/index.js +3 -3
- package/dist/overlay/menu/menu.js +8 -8
- package/dist/overlay/menu/menu.js.map +1 -1
- package/dist/overlay/popper/popper.js +12 -12
- package/dist/{portal-qqIp4SIl.js → overlay/portal/portal.js} +3 -3
- package/dist/overlay/portal/portal.js.map +1 -0
- package/dist/overlay/portal/portal_platform.js +3 -4
- package/dist/overlay/portal/portal_platform.js.map +1 -1
- package/dist/overlay/tooltip/tooltip.js +10 -10
- package/dist/overlay/tooltip/tooltip.js.map +1 -1
- package/dist/phone_number_input.css +1 -1
- package/dist/slim_button.css +1 -1
- package/dist/stacks/box/bottom_resize_handle.js +9 -9
- package/dist/stacks/box/bottom_resize_handle.js.map +1 -1
- package/dist/stacks/box/box.js +42 -42
- package/dist/stacks/box/box.js.map +1 -1
- package/dist/stacks/box/end_resize_handle.js +6 -6
- package/dist/stacks/box/end_resize_handle.js.map +1 -1
- package/dist/stacks/box/left_resize_handle.js +3 -3
- package/dist/stacks/box/left_resize_handle.js.map +1 -1
- package/dist/stacks/box/right_resize_handle.js +8 -8
- package/dist/stacks/box/right_resize_handle.js.map +1 -1
- package/dist/stacks/box/start_resize_handle.js +7 -7
- package/dist/stacks/box/start_resize_handle.js.map +1 -1
- package/dist/stacks/box/top_resize_handle.js +8 -8
- package/dist/stacks/box/top_resize_handle.js.map +1 -1
- package/dist/stacks/h_collapsible_box.js +5 -5
- package/dist/stacks/h_collapsible_box.js.map +1 -1
- package/dist/stacks/h_stack.js +26 -26
- package/dist/stacks/h_stack.js.map +1 -1
- package/dist/stacks/spacer.js +5 -5
- package/dist/stacks/spacer.js.map +1 -1
- package/dist/stacks/story_components/circle.js +6 -6
- package/dist/stacks/story_components/circle.js.map +1 -1
- package/dist/stacks/story_components/picture_placeholder.js +8 -8
- package/dist/stacks/story_components/picture_placeholder.js.map +1 -1
- package/dist/stacks/story_components/rect.js +11 -11
- package/dist/stacks/story_components/rect.js.map +1 -1
- package/dist/stacks/v_collapsible_box.js +8 -8
- package/dist/stacks/v_collapsible_box.js.map +1 -1
- package/dist/stacks/v_stack.js +35 -35
- package/dist/stacks/v_stack.js.map +1 -1
- package/dist/stacks/z_stack.js +34 -34
- package/dist/stacks/z_stack.js.map +1 -1
- package/dist/surfaces/alert/alert.js +8 -8
- package/dist/surfaces/alert/alert.js.map +1 -1
- package/dist/surfaces/card/card.d.ts.map +1 -1
- package/dist/surfaces/card/card.js +6 -15
- package/dist/surfaces/card/card.js.map +1 -1
- package/dist/surfaces/confirm/confirm.d.ts.map +1 -1
- package/dist/surfaces/confirm/confirm.js +17 -24
- package/dist/surfaces/confirm/confirm.js.map +1 -1
- package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js +5 -5
- package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js.map +1 -1
- package/dist/surfaces/drawers/drawer_end/drawer_end.js +8 -8
- package/dist/surfaces/drawers/drawer_end/drawer_end.js.map +1 -1
- package/dist/surfaces/drawers/drawer_start/drawer_start.js +4 -4
- package/dist/surfaces/drawers/drawer_start/drawer_start.js.map +1 -1
- package/dist/surfaces/drawers/drawer_top/drawer_top.js +4 -4
- package/dist/surfaces/drawers/drawer_top/drawer_top.js.map +1 -1
- package/dist/surfaces/modal/modal.d.ts +2 -4
- package/dist/surfaces/modal/modal.d.ts.map +1 -1
- package/dist/surfaces/modal/modal.js +16 -7
- package/dist/surfaces/modal/modal.js.map +1 -1
- package/dist/surfaces/page/h_page.js +6 -6
- package/dist/surfaces/page/h_page.js.map +1 -1
- package/dist/surfaces/page/v_page.js +9 -9
- package/dist/surfaces/page/v_page.js.map +1 -1
- package/dist/surfaces/panel/h_panel.d.ts.map +1 -1
- package/dist/surfaces/panel/h_panel.js +18 -24
- package/dist/surfaces/panel/h_panel.js.map +1 -1
- package/dist/surfaces/panel/v_panel.js +9 -9
- package/dist/surfaces/panel/v_panel.js.map +1 -1
- package/dist/surfaces/popover/popover.js +34 -34
- package/dist/surfaces/popover/popover.js.map +1 -1
- package/dist/surfaces/window/window.d.ts.map +1 -1
- package/dist/surfaces/window/window.js +6 -14
- package/dist/surfaces/window/window.js.map +1 -1
- package/dist/themes/index.d.ts +0 -2
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/themes/index.js +6 -402
- package/dist/themes/index.js.map +1 -1
- package/dist/themes/stylesheets/reset.js +140 -0
- package/dist/themes/stylesheets/reset.js.map +1 -0
- package/dist/themes/themes/ergo/ergo_theme.js +595 -0
- package/dist/themes/themes/ergo/ergo_theme.js.map +1 -0
- package/dist/tokens/badge/badge.js +13 -13
- package/dist/tokens/badge/badge.js.map +1 -1
- package/dist/tokens/bubble/bubble.js +11 -11
- package/dist/tokens/bubble/bubble.js.map +1 -1
- package/dist/tokens/chip/chip.js +11 -11
- package/dist/tokens/chip/chip.js.map +1 -1
- package/dist/typography/body_text/body_text.js +21 -21
- package/dist/typography/body_text/body_text.js.map +1 -1
- package/dist/typography/callout/callout.js +16 -16
- package/dist/typography/callout/callout.js.map +1 -1
- package/dist/typography/caption/caption.js +13 -13
- package/dist/typography/caption/caption.js.map +1 -1
- package/dist/typography/footnote/footnote.js +14 -14
- package/dist/typography/footnote/footnote.js.map +1 -1
- package/dist/typography/headline/headline.js +12 -12
- package/dist/typography/headline/headline.js.map +1 -1
- package/dist/typography/subheadline/subheadline.js +13 -13
- package/dist/typography/subheadline/subheadline.js.map +1 -1
- package/dist/typography/title/title.js +17 -17
- package/dist/typography/title/title.js.map +1 -1
- package/package.json +23 -4
- package/src/actions/button/__stories__/button.stories.tsx +1 -1
- package/src/actions/button/__stories__/button_group.stories.tsx +1 -1
- package/src/actions/button/__stories__/select_group.stories.tsx +1 -1
- package/src/actions/button/__stories__/slim_button.stories.tsx +1 -1
- package/src/actions/button/base_button/base_button.tsx +8 -3
- package/src/actions/button/button/button.module.css +0 -78
- package/src/actions/button/button/button.tsx +3 -5
- package/src/actions/button/button_group/button_group.tsx +4 -7
- package/src/actions/button/select_group/select_group.tsx +3 -3
- package/src/actions/button/slim_button/slim_button.module.css +0 -26
- package/src/actions/button/slim_button/slim_button.tsx +3 -2
- package/src/feedback/lazy/lazy.stories.tsx +1 -1
- package/src/feedback/loading/__storybook__/loading.stories.tsx +1 -1
- package/src/feedback/progress/progress_bar.stories.tsx +1 -1
- package/src/form/field/common/field_control/field_control.tsx +2 -2
- package/src/form/field/common/field_header.tsx +2 -2
- package/src/form/field/common/status_input/status_input.tsx +3 -6
- package/src/form/field/field.stories.tsx +2 -1
- package/src/form/field/h_field/h_field.stories.tsx +10 -1
- package/src/form/field/h_field/h_field.tsx +2 -2
- package/src/form/field/v_field/v_field.stories.tsx +10 -1
- package/src/form/field/v_field/v_field.tsx +2 -2
- package/src/form/field_set/field_set.stories.tsx +9 -1
- package/src/form/field_set/field_set.tsx +4 -7
- package/src/inputs/checkbox/checkbox.stories.tsx +9 -1
- package/src/inputs/checkbox/checkbox.tsx +2 -2
- package/src/inputs/color_input/color_input.stories.tsx +9 -1
- package/src/inputs/color_input/color_input.tsx +2 -6
- package/src/inputs/color_input/color_picker.tsx +2 -2
- package/src/inputs/combo_box/combo_box.stories.tsx +14 -5
- package/src/inputs/combo_box/combo_box.tsx +2 -2
- package/src/inputs/date_picker/date_picker.stories.tsx +18 -10
- package/src/inputs/date_picker/date_picker.tsx +3 -3
- package/src/inputs/date_picker/date_picker_date.tsx +3 -3
- package/src/inputs/date_picker/date_picker_header.tsx +2 -2
- package/src/inputs/date_picker/date_picker_input.stories.tsx +15 -7
- package/src/inputs/date_picker/date_picker_input.tsx +3 -3
- package/src/inputs/date_picker/date_picker_time_selector.tsx +5 -8
- package/src/inputs/date_picker/date_picker_year_input.tsx +2 -2
- package/src/inputs/date_picker/date_picker_year_selector.tsx +3 -9
- package/src/inputs/input/input.stories.tsx +9 -1
- package/src/inputs/input/input.tsx +5 -4
- package/src/inputs/mask_input/key_capture_input.stories.tsx +9 -1
- package/src/inputs/mask_input/mask_input.stories.tsx +10 -1
- package/src/inputs/multi_combo_box/multi_combo_box.stories.tsx +10 -1
- package/src/inputs/multi_combo_box/multi_combo_box.tsx +2 -2
- package/src/inputs/multiselect/multiselect_values.tsx +2 -2
- package/src/inputs/multiselect/mutliselect.stories.tsx +10 -1
- package/src/inputs/options/option.tsx +1 -0
- package/src/inputs/phone_number_input/phone_number_input.module.css +12 -0
- package/src/inputs/phone_number_input/phone_number_input.stories.tsx +18 -1
- package/src/inputs/phone_number_input/phone_number_input.tsx +104 -29
- package/src/inputs/radio/radio.stories.tsx +14 -6
- package/src/inputs/radio/radio.tsx +2 -2
- package/src/inputs/select/select.stories.tsx +18 -9
- package/src/inputs/select/select.tsx +2 -2
- package/src/inputs/slider/slider.stories.tsx +9 -1
- package/src/inputs/slider/slider.tsx +2 -2
- package/src/inputs/suggestions/suggestion_item.tsx +14 -4
- package/src/inputs/suggestions/suggestion_list.stories.tsx +21 -12
- package/src/inputs/suggestions/suggestion_list.tsx +25 -6
- package/src/inputs/switch/switch.stories.tsx +9 -1
- package/src/inputs/switch/switch.tsx +4 -4
- package/src/inputs/textarea/textarea.stories.tsx +9 -1
- package/src/inputs/textarea/textarea.tsx +2 -2
- package/src/inputs/unit_input/unit_input.stories.tsx +9 -1
- package/src/inputs/unit_input/unit_input.tsx +4 -4
- package/src/layouts/body/h_body.tsx +2 -2
- package/src/layouts/body/v_body.tsx +2 -2
- package/src/layouts/column/column.tsx +3 -3
- package/src/layouts/divider/__stories__/divider.stories.tsx +59 -19
- package/src/layouts/divider/divider.tsx +3 -3
- package/src/layouts/footer/footer.module.css +0 -1
- package/src/layouts/footer/footer.tsx +2 -2
- package/src/layouts/grid/grid.stories.tsx +42 -34
- package/src/layouts/grid/grid.tsx +2 -7
- package/src/layouts/header/header.tsx +2 -2
- package/src/layouts/index.ts +3 -2
- package/src/layouts/list/item.tsx +11 -3
- package/src/layouts/list/list.tsx +3 -3
- package/src/layouts/sidebar_end/sidebar_end.tsx +2 -2
- package/src/layouts/sidebar_start/sidebar_start.tsx +2 -2
- package/src/layouts/utility_bar/utility_bar.tsx +2 -2
- package/src/overlay/context_menu/context_menu.stories.tsx +13 -5
- package/src/overlay/menu/menu.stories.tsx +22 -14
- package/src/overlay/menu/menu.tsx +3 -3
- package/src/overlay/popper/popper.stories.tsx +43 -22
- package/src/overlay/portal/portal.stories.tsx +10 -1
- package/src/overlay/tooltip/tooltip.stories.tsx +9 -2
- package/src/overlay/tooltip/tooltip.tsx +2 -2
- package/src/stacks/box/bottom_resize_handle.tsx +2 -2
- package/src/stacks/box/box.tsx +2 -2
- package/src/stacks/box/end_resize_handle.tsx +2 -2
- package/src/stacks/box/left_resize_handle.tsx +2 -2
- package/src/stacks/box/right_resize_handle.tsx +2 -2
- package/src/stacks/box/start_resize_handle.tsx +2 -2
- package/src/stacks/box/top_resize_handle.tsx +2 -2
- package/src/stacks/collapsible_box.stories.tsx +10 -1
- package/src/stacks/h_collapsible_box.tsx +2 -2
- package/src/stacks/h_stack.stories.tsx +104 -59
- package/src/stacks/h_stack.tsx +2 -2
- package/src/stacks/spacer.tsx +2 -2
- package/src/stacks/story_components/circle.tsx +2 -2
- package/src/stacks/story_components/picture_placeholder.tsx +2 -2
- package/src/stacks/story_components/rect.tsx +2 -2
- package/src/stacks/v_collapsible_box.tsx +2 -2
- package/src/stacks/v_stack.stories.tsx +91 -10
- package/src/stacks/v_stack.tsx +2 -2
- package/src/stacks/z_stack.stories.tsx +9 -1
- package/src/stacks/z_stack.tsx +2 -2
- package/src/surfaces/alert/alert.stories.tsx +4 -4
- package/src/surfaces/alert/alert.tsx +2 -2
- package/src/surfaces/card/card.tsx +3 -9
- package/src/surfaces/confirm/confirm.stories.tsx +4 -4
- package/src/surfaces/confirm/confirm.tsx +3 -6
- package/src/surfaces/drawers/__stories__/drawers.stories.tsx +1 -1
- package/src/surfaces/drawers/drawer_bottom/drawer_bottom.tsx +2 -2
- package/src/surfaces/drawers/drawer_end/drawer_end.tsx +2 -2
- package/src/surfaces/drawers/drawer_start/drawer_start.tsx +2 -2
- package/src/surfaces/drawers/drawer_top/drawer_top.tsx +2 -2
- package/src/surfaces/modal/__stories__/modal.stories.tsx +54 -0
- package/src/surfaces/modal/modal.module.css +2 -1
- package/src/surfaces/modal/modal.tsx +9 -6
- package/src/surfaces/page/h_page.tsx +2 -2
- package/src/surfaces/page/v_page.tsx +2 -2
- package/src/surfaces/panel/__stories__/panel.stories.tsx +13 -12
- package/src/surfaces/panel/h_panel.tsx +3 -9
- package/src/surfaces/panel/v_panel.tsx +3 -3
- package/src/surfaces/popover/popover.tsx +2 -2
- package/src/surfaces/window/window.stories.tsx +1 -1
- package/src/surfaces/window/window.tsx +2 -6
- package/src/themes/index.ts +0 -2
- package/src/themes/stories/themes.stories.tsx +1 -1
- package/src/themes/themes/ergo/__stories__/components/material_picker/sb_inverted_materials.module.css +34 -0
- package/src/themes/themes/ergo/__stories__/components/material_picker/sb_material_picker.tsx +52 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_card.module.css +5 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_card.tsx +40 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_picker.tsx +83 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/types.ts +7 -0
- package/src/themes/themes/ergo/__stories__/material.stories.tsx +154 -0
- package/src/themes/themes/ergo/__stories__/sb_materials.module.css +110 -0
- package/src/themes/themes/ergo/__stories__/utils.ts +92 -0
- package/src/themes/themes/ergo/ergo_theme.css +348 -15
- package/src/tokens/badge/badge.stories.tsx +6 -6
- package/src/tokens/badge/badge.tsx +3 -3
- package/src/tokens/bubble/bubble.stories.tsx +16 -9
- package/src/tokens/bubble/bubble.tsx +2 -2
- package/src/tokens/chip/chip.stories.tsx +1 -1
- package/src/tokens/chip/chip.tsx +2 -2
- package/src/typography/body_text/body_text.tsx +2 -2
- package/src/typography/callout/callout.tsx +2 -2
- package/src/typography/caption/caption.tsx +2 -2
- package/src/typography/footnote/footnote.tsx +2 -2
- package/src/typography/headline/headline.tsx +2 -2
- package/src/typography/subheadline/subheadline.tsx +2 -2
- package/src/typography/title/title.tsx +2 -2
- package/src/typography/typography-showcase.stories.tsx +2 -2
- package/src/utils/click_away_listener.stories.tsx +21 -11
- package/src/utils/responsive/responsive_renderer.stories.tsx +7 -7
- package/src/utils/scroll_away_listener.stories.tsx +11 -1
- package/tsconfig.json +0 -3
- package/dist/card.css +0 -1
- package/dist/portal-qqIp4SIl.js.map +0 -1
- package/dist/themes/stylesheets/reset.css +0 -1
- package/dist/themes/themes/ergo/ergo_theme.css +0 -1
- package/dist/themes/themes/windows_98/windows_98.css +0 -1
- package/src/surfaces/card/card.module.css +0 -5
- package/src/surfaces/modal/modal.stories.tsx +0 -15
- /package/dist/{overlay/portal/portal.css → portal_platform.css} +0 -0
|
@@ -146,7 +146,8 @@ legend {
|
|
|
146
146
|
|
|
147
147
|
--status-color-disabled: #7f7f7f;
|
|
148
148
|
--status-color-info: #008cff;
|
|
149
|
-
--status-color-warning: #
|
|
149
|
+
--status-color-warning: #ffff00;
|
|
150
|
+
--status-color-positive: #00ff00;
|
|
150
151
|
--status-color-error: #ff0000;
|
|
151
152
|
|
|
152
153
|
--async-color-initial: #c0c0c0;
|
|
@@ -184,42 +185,304 @@ legend {
|
|
|
184
185
|
--foreground-color-tertiary: #222222;
|
|
185
186
|
--foreground-color-quaternary: #222222;
|
|
186
187
|
|
|
187
|
-
--
|
|
188
|
+
--material-disabled: #d3d3d3;
|
|
189
|
+
--material-secondary-dark: 197 29.1% 40.4%;
|
|
190
|
+
--material-tan: 33, 22%, 84%;
|
|
188
191
|
|
|
189
192
|
--shape-radius-small: 2px;
|
|
190
193
|
--shape-radius-medium: 4px;
|
|
191
194
|
--shape-radius-large: 8px;
|
|
195
|
+
|
|
196
|
+
--accent-color: #cd6b2c;
|
|
197
|
+
|
|
198
|
+
--action: 23, 65%, 49%;
|
|
199
|
+
--on-action: 0, 0%, 100%;
|
|
200
|
+
--material: 0, 0%, 100%;
|
|
201
|
+
--on-material: 213, 35.6%, 34.7%;
|
|
192
202
|
}
|
|
193
203
|
|
|
194
204
|
* {
|
|
195
205
|
position: relative;
|
|
196
206
|
box-sizing: border-box;
|
|
197
207
|
}
|
|
208
|
+
/* ===== Actions ===== */
|
|
209
|
+
|
|
210
|
+
.tcn-interactive {
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
user-select: none;
|
|
213
|
+
transition:
|
|
214
|
+
transform 0.1s,
|
|
215
|
+
background 0.1s,
|
|
216
|
+
color 0.1s;
|
|
217
|
+
|
|
218
|
+
--act: hsl(var(--action));
|
|
219
|
+
--on-act: hsl(var(--on-action));
|
|
220
|
+
/* Could use hsl here if we made three color variables for each of the hsl values */
|
|
221
|
+
--act-down: color-mix(in srgb, var(--act), black 8%);
|
|
222
|
+
--act-raised: color-mix(in srgb, var(--act), white 8%);
|
|
223
|
+
--act-faint: hsla(var(--action), 0.2);
|
|
224
|
+
--on-mat: hsl(var(--on-material));
|
|
225
|
+
--on-mat-faint: hsla(var(--on-material), 0.2);
|
|
226
|
+
--mat: hsl(var(--material));
|
|
227
|
+
--mat-down: color-mix(in srgb, var(--mat), black 8%);
|
|
228
|
+
--mat-raised: color-mix(in srgb, var(--mat), white 8%);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.tcn-interactive[data-is-disabled="true"] {
|
|
232
|
+
pointer-events: none;
|
|
233
|
+
cursor: not-allowed;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.tcn-interactive[data-hierarchy="primary"] {
|
|
237
|
+
background: var(--act);
|
|
238
|
+
color: var(--on-act);
|
|
239
|
+
border: 1px solid var(--act);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.tcn-interactive[data-hierarchy="primary"]:focus-visible {
|
|
243
|
+
outline: 2px dashed var(--act);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.tcn-interactive[data-hierarchy="primary"][data-is-disabled="true"] {
|
|
247
|
+
background: var(--material-disabled);
|
|
248
|
+
color: white;
|
|
249
|
+
border: 1px solid var(--material-disabled);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.tcn-interactive[data-hierarchy="primary"]:hover {
|
|
253
|
+
background: var(--act-raised);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.tcn-interactive[data-hierarchy="primary"]:active {
|
|
257
|
+
background: var(--act-down);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.tcn-interactive[data-hierarchy="secondary"] {
|
|
261
|
+
background: transparent;
|
|
262
|
+
color: var(--on-mat);
|
|
263
|
+
border: 1px solid var(--on-mat);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.tcn-interactive[data-hierarchy="secondary"]:focus-visible {
|
|
267
|
+
outline: 2px dashed var(--on-mat);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.tcn-interactive[data-hierarchy="secondary"][data-is-disabled="true"] {
|
|
271
|
+
color: var(--material-disabled);
|
|
272
|
+
border: 1px solid var(--material-disabled);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.tcn-interactive[data-hierarchy="secondary"]:hover {
|
|
276
|
+
background: var(--on-mat-faint);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.tcn-interactive[data-hierarchy="secondary"]:active {
|
|
280
|
+
background: var(--mat-down);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.tcn-interactive[data-hierarchy="tertiary"] {
|
|
284
|
+
background: transparent;
|
|
285
|
+
color: var(--on-mat);
|
|
286
|
+
border: 1px solid transparent;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.tcn-interactive[data-hierarchy="tertiary"]:focus-visible {
|
|
290
|
+
outline: 2px dashed var(--on-mat);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.tcn-interactive[data-hierarchy="tertiary"][data-is-disabled="true"] {
|
|
294
|
+
color: var(--material-disabled);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.tcn-interactive[data-hierarchy="tertiary"]:hover {
|
|
298
|
+
text-decoration: underline;
|
|
299
|
+
text-decoration-color: var(--on-mat);
|
|
300
|
+
text-decoration-thickness: 1px;
|
|
301
|
+
text-underline-offset: 4px;
|
|
302
|
+
color: var(--on-mat);
|
|
303
|
+
background: var(--on-mat-faint);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.tcn-interactive[data-hierarchy="tertiary"]:active {
|
|
307
|
+
background: var(--mat-down);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* Button */
|
|
311
|
+
.tcn-button {
|
|
312
|
+
border-radius: 4px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.tcn-button[data-size="sm"] {
|
|
316
|
+
padding: 0px 8px;
|
|
317
|
+
min-height: 22px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.tcn-button[data-size="md"] {
|
|
321
|
+
padding: 0px 12px;
|
|
322
|
+
min-height: 26px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.tcn-button[data-size="lg"] {
|
|
326
|
+
padding: 0px 16px;
|
|
327
|
+
min-height: 32px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.tcn-button:hover {
|
|
331
|
+
transform: translateY(-1px);
|
|
332
|
+
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.tcn-button:active {
|
|
336
|
+
transform: translateY(1px);
|
|
337
|
+
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.tcn-slim-button {
|
|
341
|
+
height: auto;
|
|
342
|
+
width: auto;
|
|
343
|
+
padding: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.tcn-slim-button[data-size="sm"] {
|
|
347
|
+
min-height: 12px;
|
|
348
|
+
min-width: 12px;
|
|
349
|
+
padding: 0;
|
|
350
|
+
.tcn-icon {
|
|
351
|
+
min-height: 10px;
|
|
352
|
+
min-width: 10px;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.tcn-slim-button[data-size="md"] {
|
|
357
|
+
min-height: 18px;
|
|
358
|
+
min-width: 18px;
|
|
359
|
+
padding: 0;
|
|
360
|
+
.tcn-icon {
|
|
361
|
+
min-height: 14px;
|
|
362
|
+
min-width: 14px;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.tcn-slim-button[data-size="lg"] {
|
|
367
|
+
min-height: 24px;
|
|
368
|
+
min-width: 24px;
|
|
369
|
+
padding: 0;
|
|
370
|
+
.tcn-icon {
|
|
371
|
+
min-height: 20px;
|
|
372
|
+
min-width: 20px;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* ===== Materials ===== */
|
|
377
|
+
|
|
378
|
+
/* White on Gray */
|
|
379
|
+
.material-status-disabled {
|
|
380
|
+
--action: 0, 0%, 100%;
|
|
381
|
+
--on-action: 0, 0%, 49.8%;
|
|
382
|
+
--material: 0, 0%, 49.8%;
|
|
383
|
+
--on-material: 0, 0%, 100%;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* White on Vivid Blue */
|
|
387
|
+
.material-status-info {
|
|
388
|
+
--action: 0, 0%, 100%;
|
|
389
|
+
--on-action: 207, 100%, 50%;
|
|
390
|
+
--material: 207, 100%, 50%;
|
|
391
|
+
--on-material: 0, 0%, 100%;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/* Navy on Yellow */
|
|
395
|
+
.material-status-warning {
|
|
396
|
+
--action: 213, 35.6%, 34.7%;
|
|
397
|
+
--on-action: 60, 100%, 50%;
|
|
398
|
+
--material: 60, 100%, 50%;
|
|
399
|
+
--on-material: 213, 35.6%, 34.7%;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* White on Red */
|
|
403
|
+
.material-status-error {
|
|
404
|
+
--action: 0, 0%, 100%;
|
|
405
|
+
--on-action: 0, 100%, 50%;
|
|
406
|
+
--material: 0, 100%, 50%;
|
|
407
|
+
--on-material: 0, 0%, 100%;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* Navy on Light Grey */
|
|
411
|
+
.material-async-initial {
|
|
412
|
+
--action: 213, 35.6%, 34.7%;
|
|
413
|
+
--on-action: 0, 0%, 75.3%;
|
|
414
|
+
--material: 0, 0%, 75.3%;
|
|
415
|
+
--on-material: 213, 35.6%, 34.7%;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* White on Loading Blue */
|
|
419
|
+
.material-async-pending {
|
|
420
|
+
--action: 0, 0%, 100%;
|
|
421
|
+
--on-action: 207, 100%, 50%;
|
|
422
|
+
--material: 207, 100%, 50%;
|
|
423
|
+
--on-material: 0, 0%, 100%;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* White on Vivid Green */
|
|
427
|
+
.material-async-success {
|
|
428
|
+
--action: 0, 0%, 100%;
|
|
429
|
+
--on-action: 120, 100%, 50%;
|
|
430
|
+
--material: 120, 100%, 50%;
|
|
431
|
+
--on-material: 0, 0%, 100%;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* White on Red */
|
|
435
|
+
.material-async-failed {
|
|
436
|
+
--action: 0, 0%, 100%;
|
|
437
|
+
--on-action: 0, 100%, 50%;
|
|
438
|
+
--material: 0, 100%, 50%;
|
|
439
|
+
--on-material: 0, 0%, 100%;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.material {
|
|
443
|
+
background-color: hsl(var(--material));
|
|
444
|
+
color: hsl(var(--on-material));
|
|
445
|
+
}
|
|
198
446
|
|
|
199
447
|
/* ===== SURFACES ===== */
|
|
448
|
+
.tcn-list {
|
|
449
|
+
gap: var(--gap-medium);
|
|
450
|
+
.tcn-item {
|
|
451
|
+
height: 24px;
|
|
452
|
+
padding: 0px var(--padding-medium);
|
|
453
|
+
border-radius: var(--shape-radius-medium);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
200
456
|
|
|
201
|
-
|
|
202
|
-
|
|
457
|
+
.tcn-veil {
|
|
458
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/* TODO: FIX Borders on modal header and footer -- when there are multiple header/footers */
|
|
462
|
+
/* MODAL: */
|
|
463
|
+
.tcn-modal {
|
|
203
464
|
--v-inset: var(--padding-large);
|
|
204
465
|
background-color: var(--background-color-primary);
|
|
205
466
|
border-radius: var(--shape-radius-medium);
|
|
467
|
+
/* TODO: This should be a variable */
|
|
468
|
+
border: 1px solid rgba(170, 170, 170, 1);
|
|
469
|
+
overflow: hidden;
|
|
470
|
+
|
|
471
|
+
:where(.tcn-typography) {
|
|
472
|
+
color: inherit;
|
|
473
|
+
}
|
|
206
474
|
|
|
207
475
|
:where(.tcn-header) {
|
|
476
|
+
--material: var(--material-secondary-dark);
|
|
477
|
+
--on-material: 0, 0%, 100%;
|
|
478
|
+
--action: var(--material-tan);
|
|
479
|
+
--on-action: 0, 0%, 100%;
|
|
480
|
+
background-color: hsl(var(--material));
|
|
481
|
+
color: hsl(var(--on-material));
|
|
208
482
|
min-height: 40px;
|
|
209
|
-
border-bottom: 1px solid var(--foreground-color-primary);
|
|
210
483
|
padding: 0 var(--v-inset);
|
|
211
484
|
gap: var(--gap-medium);
|
|
212
485
|
|
|
213
|
-
:where(.tcn-title) {
|
|
214
|
-
font-weight: 700;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
:where(.tcn-button) {
|
|
218
|
-
padding: 0;
|
|
219
|
-
min-width: 18px;
|
|
220
|
-
min-height: 18px;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
486
|
:where(.tcn-divider) {
|
|
224
487
|
padding: 4px 0;
|
|
225
488
|
:where(.tcn-divider-line) {
|
|
@@ -254,3 +517,73 @@ legend {
|
|
|
254
517
|
padding: 0 var(--v-inset);
|
|
255
518
|
}
|
|
256
519
|
}
|
|
520
|
+
|
|
521
|
+
/* PANEL */
|
|
522
|
+
.tcn-panel {
|
|
523
|
+
--v-inset: var(--padding-large);
|
|
524
|
+
background-color: var(--background-color-primary);
|
|
525
|
+
border-radius: var(--shape-radius-medium);
|
|
526
|
+
overflow: hidden;
|
|
527
|
+
|
|
528
|
+
:where(.tcn-header) {
|
|
529
|
+
min-height: 40px;
|
|
530
|
+
padding: 0 var(--v-inset);
|
|
531
|
+
gap: var(--gap-medium);
|
|
532
|
+
|
|
533
|
+
:where(.tcn-title) {
|
|
534
|
+
font-weight: 700;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
:where(.tcn-divider) {
|
|
538
|
+
padding: 4px 0;
|
|
539
|
+
:where(.tcn-divider-line) {
|
|
540
|
+
width: 1.5px;
|
|
541
|
+
min-height: 18px;
|
|
542
|
+
height: auto;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/* Border appears on body only when it follows header or utility-bar */
|
|
548
|
+
:where(.tcn-header) + :where(.tcn-body),
|
|
549
|
+
:where(.tcn-utility-bar) + :where(.tcn-body) {
|
|
550
|
+
border-top: 1px solid var(--foreground-color-primary);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* Border appears on footer only when it follows body */
|
|
554
|
+
:where(.tcn-body) + :where(.tcn-footer) {
|
|
555
|
+
border-top: 1px solid var(--foreground-color-primary);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
:where(.tcn-utility-bar) {
|
|
559
|
+
min-height: 32px;
|
|
560
|
+
padding: 0 var(--v-inset);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
:where(.tcn-body) {
|
|
564
|
+
padding: 0 var(--v-inset);
|
|
565
|
+
gap: var(--gap-medium);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
:where(.tcn-footer) {
|
|
569
|
+
gap: var(--gap-medium);
|
|
570
|
+
min-height: 40px;
|
|
571
|
+
padding: 0 var(--v-inset);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/* Card */
|
|
576
|
+
.tcn-card {
|
|
577
|
+
padding: 0;
|
|
578
|
+
gap: 0px;
|
|
579
|
+
border: 1px solid var(--foreground-color-primary);
|
|
580
|
+
border-radius: var(--shape-radius-medium);
|
|
581
|
+
overflow: hidden;
|
|
582
|
+
:where(.tcn-header) {
|
|
583
|
+
/* TODO: Color header */
|
|
584
|
+
min-height: 32px;
|
|
585
|
+
}
|
|
586
|
+
:where(.tcn-body) {
|
|
587
|
+
padding: var(--padding-medium) var(--v-inset);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { ZStack } from '../../stacks/z_stack.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Badge } from './badge.js';
|
|
3
|
+
import { Badge as BadgeComponent } from './badge.js';
|
|
4
4
|
import { Button } from '../../actions/index.js';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title: '
|
|
8
|
-
component:
|
|
7
|
+
title: 'Tokens/Badge',
|
|
8
|
+
component: BadgeComponent,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
export function
|
|
12
|
+
export function Badge(props: any) {
|
|
13
13
|
return (
|
|
14
14
|
<ZStack>
|
|
15
|
-
<
|
|
15
|
+
<BadgeComponent
|
|
16
16
|
value={10}
|
|
17
17
|
// backgroundColor="var(--accent-color)"
|
|
18
18
|
// textColor="white"
|
|
19
19
|
{...props}
|
|
20
20
|
>
|
|
21
21
|
<Button>Hello</Button>
|
|
22
|
-
</
|
|
22
|
+
</BadgeComponent>
|
|
23
23
|
</ZStack>
|
|
24
24
|
);
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import { Spacer } from '../../stacks/spacer.js';
|
|
4
4
|
import { VStack } from '../../stacks/v_stack.js';
|
|
5
5
|
import { ZStack } from '../../stacks/z_stack.js';
|
|
@@ -33,7 +33,7 @@ export const Badge = React.forwardRef(
|
|
|
33
33
|
vAlign="end"
|
|
34
34
|
hAlign="end"
|
|
35
35
|
zIndex={0}
|
|
36
|
-
className={
|
|
36
|
+
className={clsx('badge', className)}
|
|
37
37
|
{...props}
|
|
38
38
|
>
|
|
39
39
|
<ZStack zIndex={0} inline width="auto" height="auto">
|
|
@@ -41,7 +41,7 @@ export const Badge = React.forwardRef(
|
|
|
41
41
|
</ZStack>
|
|
42
42
|
<VStack zIndex={1} height="100%" width="auto">
|
|
43
43
|
<Bubble
|
|
44
|
-
className={
|
|
44
|
+
className={clsx(styles['badge-bubble'], 'badge-bubble')}
|
|
45
45
|
backgroundColor={backgroundColor}
|
|
46
46
|
textColor={color}
|
|
47
47
|
elevate
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Bubble } from './bubble.js';
|
|
2
|
+
import { Bubble as BubbleComponent } from './bubble.js';
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Tokens/Bubble',
|
|
6
|
+
component: BubbleComponent,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
parameters: {
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component: 'A bubble component that can be used to display a badge.',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
6
15
|
};
|
|
7
16
|
|
|
17
|
+
export function Bubble(args: any) {
|
|
18
|
+
return <BubbleComponent {...args}>0</BubbleComponent>;
|
|
19
|
+
}
|
|
20
|
+
|
|
8
21
|
export const Styled = () => {
|
|
9
22
|
return (
|
|
10
23
|
<div>This story needs to be updated.</div>
|
|
@@ -160,9 +173,3 @@ const _randomWords = [
|
|
|
160
173
|
'Enduring',
|
|
161
174
|
'Lasting',
|
|
162
175
|
];
|
|
163
|
-
|
|
164
|
-
export default {
|
|
165
|
-
title: 'src/Bubble',
|
|
166
|
-
component: Bubble,
|
|
167
|
-
tags: ['autodocs'],
|
|
168
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
2
|
import React, { HTMLAttributes } from 'react';
|
|
3
3
|
import styles from './bubble.module.css';
|
|
4
4
|
import { theme } from '../../themes/index.js';
|
|
@@ -35,7 +35,7 @@ export const Bubble = React.forwardRef(function Bubble(
|
|
|
35
35
|
return (
|
|
36
36
|
<HStack
|
|
37
37
|
inline
|
|
38
|
-
className={
|
|
38
|
+
className={clsx(styles.bubble, 'bubble', className)}
|
|
39
39
|
width="auto"
|
|
40
40
|
height="auto"
|
|
41
41
|
ref={ref}
|
package/src/tokens/chip/chip.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HStack, HStackProps } from '../../stacks/h_stack.js';
|
|
2
|
-
import
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import styles from './chip.module.css';
|
|
5
5
|
import { theme } from '../../themes/index.js';
|
|
@@ -26,7 +26,7 @@ export const Chip = React.forwardRef(function Chip(
|
|
|
26
26
|
width="auto"
|
|
27
27
|
height="auto"
|
|
28
28
|
vAlign="center"
|
|
29
|
-
className={
|
|
29
|
+
className={clsx(styles.chip, 'chip', className)}
|
|
30
30
|
style={finalStyle}
|
|
31
31
|
{...props}
|
|
32
32
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Emphasis, Hierarchy, Size } from '../../utils/index.js';
|
|
3
3
|
import type { WithDetailedHTMLProps } from '../../stacks/types/as.js';
|
|
4
|
-
import
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
5
|
import styles from './body_text.module.css';
|
|
6
6
|
|
|
7
7
|
export interface BodyTextOwnProps {
|
|
@@ -65,7 +65,7 @@ export function BodyText({
|
|
|
65
65
|
data-hierarchy={hierarchy}
|
|
66
66
|
data-emphasis={emphasis}
|
|
67
67
|
data-selectable={selectable}
|
|
68
|
-
className={
|
|
68
|
+
className={clsx(styles['body-text'], 'body-text', className)}
|
|
69
69
|
style={style}
|
|
70
70
|
data-size={size}
|
|
71
71
|
data-word-break={breakWords}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import { Emphasis, Hierarchy, Size } from '../../utils/index.js';
|
|
4
4
|
import type { WithDetailedHTMLProps } from '../../stacks/types/as.js';
|
|
5
5
|
import styles from './callout.module.css';
|
|
@@ -64,7 +64,7 @@ export function Callout({
|
|
|
64
64
|
data-hierarchy={hierarchy}
|
|
65
65
|
data-emphasis={emphasis}
|
|
66
66
|
data-selectable={selectable}
|
|
67
|
-
className={
|
|
67
|
+
className={clsx(styles['callout'], 'callout', className)}
|
|
68
68
|
style={style}
|
|
69
69
|
data-size={size}
|
|
70
70
|
>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import { Emphasis, Hierarchy, Size } from '../../utils/index.js';
|
|
4
4
|
import type { WithDetailedHTMLProps } from '../../stacks/types/as.js';
|
|
5
5
|
import styles from './caption.module.css';
|
|
@@ -64,7 +64,7 @@ export function Caption({
|
|
|
64
64
|
data-hierarchy={hierarchy}
|
|
65
65
|
data-emphasis={emphasis}
|
|
66
66
|
data-selectable={selectable}
|
|
67
|
-
className={
|
|
67
|
+
className={clsx(styles['caption'], 'caption', className)}
|
|
68
68
|
style={style}
|
|
69
69
|
data-size={size}
|
|
70
70
|
>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import { Emphasis, Hierarchy, Size } from '../../utils/index.js';
|
|
4
4
|
import type { WithDetailedHTMLProps } from '../../stacks/types/as.js';
|
|
5
5
|
import styles from './footnote.module.css';
|
|
@@ -64,7 +64,7 @@ export function Footnote({
|
|
|
64
64
|
data-hierarchy={hierarchy}
|
|
65
65
|
data-emphasis={emphasis}
|
|
66
66
|
data-selectable={selectable}
|
|
67
|
-
className={
|
|
67
|
+
className={clsx(styles['footnote'], 'footnote', className)}
|
|
68
68
|
style={style}
|
|
69
69
|
data-size={size}
|
|
70
70
|
>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import { Emphasis, Hierarchy, Size } from '../../utils/index.js';
|
|
4
4
|
import type { WithDetailedHTMLProps } from '../../stacks/types/as.js';
|
|
5
5
|
import styles from './headline.module.css';
|
|
@@ -74,7 +74,7 @@ export function Headline({
|
|
|
74
74
|
data-hierarchy={hierarchy}
|
|
75
75
|
data-emphasis={emphasis}
|
|
76
76
|
data-selectable={selectable}
|
|
77
|
-
className={
|
|
77
|
+
className={clsx(styles['headline'], 'headline', className)}
|
|
78
78
|
style={style}
|
|
79
79
|
data-size={size}
|
|
80
80
|
>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import { Emphasis, Hierarchy, Size } from '../../utils/index.js';
|
|
4
4
|
import type { WithDetailedHTMLProps } from '../../stacks/types/as.js';
|
|
5
5
|
import styles from './subheadline.module.css';
|
|
@@ -77,7 +77,7 @@ export function Subheadline({
|
|
|
77
77
|
data-hierarchy={hierarchy}
|
|
78
78
|
data-emphasis={emphasis}
|
|
79
79
|
data-selectable={selectable}
|
|
80
|
-
className={
|
|
80
|
+
className={clsx(styles['subheadline'], 'subheadline', className)}
|
|
81
81
|
style={style}
|
|
82
82
|
data-size={size}
|
|
83
83
|
>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import type { WithDetailedHTMLProps } from '../../stacks/types/as.js';
|
|
4
4
|
import type { Emphasis, Hierarchy, Size } from '../../utils/index.js';
|
|
5
5
|
import styles from './title.module.css';
|
|
@@ -78,7 +78,7 @@ export function Title({
|
|
|
78
78
|
data-hierarchy={hierarchy}
|
|
79
79
|
data-emphasis={emphasis}
|
|
80
80
|
data-selectable={selectable}
|
|
81
|
-
className={
|
|
81
|
+
className={clsx(styles['title'], 'title', 'tcn-typography', 'tcn-title', className)}
|
|
82
82
|
style={style}
|
|
83
83
|
data-size={size}
|
|
84
84
|
>
|
|
@@ -11,13 +11,13 @@ import { Subheadline } from './subheadline/subheadline.js';
|
|
|
11
11
|
import { Title } from './title/title.js';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
-
title: 'Showcase',
|
|
14
|
+
title: 'Typography/Showcase',
|
|
15
15
|
parameters: {
|
|
16
16
|
layout: 'fullscreen',
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
export function
|
|
20
|
+
export function Showcase() {
|
|
21
21
|
return (
|
|
22
22
|
<VStack gap="30px" maxWidth="800px">
|
|
23
23
|
<HStack height="auto">
|