@tcn/ui 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +8 -7
- 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/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 +6 -5
- 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/tethered.css +1 -1
- package/dist/textarea.css +1 -1
- package/dist/themes/stylesheets/reset.css +1 -0
- package/dist/themes/stylesheets/reset.js +133 -131
- package/dist/themes/stylesheets/reset.js.map +1 -1
- package/dist/themes/theme.d.ts.map +1 -1
- package/dist/themes/theme.js +15 -6
- 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.js +503 -545
- 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 +1034 -1168
- 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 +13 -12
- package/dist/tokens/bubble/bubble.js.map +1 -1
- package/dist/tokens/chip/chip.js +4 -3
- 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/v_body.css +1 -1
- package/dist/window.css +1 -1
- package/package.json +3 -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 +30 -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 +56 -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 +47 -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/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 +5 -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/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 +133 -131
- package/src/themes/theme.tsx +17 -0
- package/src/themes/themes/ergo/ergo_theme.css +503 -545
- package/src/themes/themes/windows_98/windows_98.css +1030 -1164
- 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/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,78 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.date-picker-date) {
|
|
3
|
+
padding: 0;
|
|
4
|
+
border: 2px solid transparent;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
color: var(--font-color);
|
|
9
|
+
-webkit-tap-highlight-color: transparent;
|
|
10
|
+
-webkit-touch-callout: none;
|
|
11
|
+
-webkit-user-select: none;
|
|
12
|
+
-moz-user-select: none;
|
|
13
|
+
-ms-user-select: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
-webkit-appearance: none;
|
|
16
|
+
-moz-appearance: none;
|
|
17
|
+
appearance: none;
|
|
18
|
+
outline: none;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
.date-picker-date:hover,
|
|
21
|
-
.date-picker-date:focus,
|
|
22
|
-
.date-picker-date[data-is-today]:hover,
|
|
23
|
-
.date-picker-date[data-is-today]:focus {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
21
|
+
:where(.date-picker-date:hover),
|
|
22
|
+
:where(.date-picker-date:focus),
|
|
23
|
+
:where(.date-picker-date[data-is-today]:hover),
|
|
24
|
+
:where(.date-picker-date[data-is-today]:focus) {
|
|
25
|
+
border: 2px dotted var(--accent-color);
|
|
26
|
+
outline: none;
|
|
27
|
+
-webkit-tap-highlight-color: transparent;
|
|
28
|
+
-webkit-touch-callout: none;
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
.date-picker-date[data-is-within-month="false"],
|
|
31
|
-
.date-picker-date[data-is-within-month="false"]:hover,
|
|
32
|
-
.date-picker-date[data-is-within-range="false"],
|
|
33
|
-
.date-picker-date[data-is-disabled="true"],
|
|
34
|
-
.date-picker-date[data-is-disabled="true"]:hover {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
31
|
+
:where(.date-picker-date[data-is-within-month="false"]),
|
|
32
|
+
:where(.date-picker-date[data-is-within-month="false"]:hover),
|
|
33
|
+
:where(.date-picker-date[data-is-within-range="false"]),
|
|
34
|
+
:where(.date-picker-date[data-is-disabled="true"]),
|
|
35
|
+
:where(.date-picker-date[data-is-disabled="true"]:hover) {
|
|
36
|
+
border: 2px dotted transparent;
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
opacity: 0.5;
|
|
39
|
+
-webkit-tap-highlight-color: transparent;
|
|
40
|
+
-webkit-touch-callout: none;
|
|
41
|
+
}
|
|
41
42
|
|
|
42
|
-
.date-picker-date[data-is-selected="true"],
|
|
43
|
-
.date-picker-date[data-is-today="true"][data-is-selected="true"] {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
43
|
+
:where(.date-picker-date[data-is-selected="true"]),
|
|
44
|
+
:where(.date-picker-date[data-is-today="true"][data-is-selected="true"]) {
|
|
45
|
+
border: 2px solid var(--accent-color);
|
|
46
|
+
background-color: var(--accent-color);
|
|
47
|
+
color: #fff;
|
|
48
|
+
box-shadow: 0 0px 4px rgba(0, 0, 0, 0.35);
|
|
49
|
+
-webkit-tap-highlight-color: transparent;
|
|
50
|
+
-webkit-touch-callout: none;
|
|
51
|
+
}
|
|
51
52
|
|
|
52
|
-
.date-picker-date[data-is-selected="true"][data-is-disabled="true"],
|
|
53
|
-
.date-picker-date[data-is-selected="true"][data-is-within-range="false"] {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
53
|
+
:where(.date-picker-date[data-is-selected="true"][data-is-disabled="true"]),
|
|
54
|
+
:where(.date-picker-date[data-is-selected="true"][data-is-within-range="false"]) {
|
|
55
|
+
border: 2px solid var(--error-color, var(--default-error-color));
|
|
56
|
+
background-color: var(--error-color, var(--default-error-color));
|
|
57
|
+
color: rgba(255, 255, 255, 0.5);
|
|
58
|
+
opacity: 1;
|
|
59
|
+
}
|
|
59
60
|
|
|
60
|
-
.date-picker-date[data-is-disabled="true"] * {
|
|
61
|
-
|
|
62
|
-
}
|
|
61
|
+
:where(.date-picker-date[data-is-disabled="true"] *) {
|
|
62
|
+
text-decoration: line-through;
|
|
63
|
+
}
|
|
63
64
|
|
|
64
|
-
.date-picker-today {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
65
|
+
:where(.date-picker-today) {
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
border: 2px solid #dcdcdc;
|
|
70
|
+
}
|
|
70
71
|
|
|
71
|
-
.date-picker-today[data-is-selected="true"] {
|
|
72
|
-
|
|
73
|
-
}
|
|
72
|
+
:where(.date-picker-today[data-is-selected="true"]) {
|
|
73
|
+
border: 2px solid rgb(255, 255, 255, 0.5);
|
|
74
|
+
}
|
|
74
75
|
|
|
75
|
-
.date-picker-date {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
:where(.date-picker-date) {
|
|
77
|
+
height: calc(32px * var(--scalar, 1));
|
|
78
|
+
width: calc(32px * var(--scalar, 1));
|
|
79
|
+
}
|
|
78
80
|
}
|
|
@@ -77,7 +77,7 @@ export function DatePickerDate({ presenter, date: calendarDate }: DatePickerDate
|
|
|
77
77
|
return (
|
|
78
78
|
<button
|
|
79
79
|
disabled={!isWithinMonth || isDisabled || !isWithinRange}
|
|
80
|
-
className={clsx(styles['date-picker-date'], 'date-picker-date')}
|
|
80
|
+
className={clsx(styles['date-picker-date'], 'tcn-date-picker-date')}
|
|
81
81
|
onClick={select}
|
|
82
82
|
data-is-within-month={String(isWithinMonth)}
|
|
83
83
|
data-is-selected={String(isSelected)}
|
|
@@ -89,7 +89,7 @@ export function DatePickerDate({ presenter, date: calendarDate }: DatePickerDate
|
|
|
89
89
|
<BodyText>{String(calendarDate.date)}</BodyText>
|
|
90
90
|
{isToday && (
|
|
91
91
|
<div
|
|
92
|
-
className={clsx(styles['date-picker-today'], 'date-picker-today')}
|
|
92
|
+
className={clsx(styles['date-picker-today'], 'tcn-date-picker-today')}
|
|
93
93
|
data-is-selected={String(isSelected)}
|
|
94
94
|
></div>
|
|
95
95
|
)}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.date-picker-day) {
|
|
3
|
+
height: calc(32px * var(--scalar, 1)) !important;
|
|
4
|
+
width: calc(32px * var(--scalar, 1)) !important;
|
|
5
|
+
}
|
|
4
6
|
}
|
|
@@ -2,6 +2,7 @@ import { Headline } from '../../typography/index.js';
|
|
|
2
2
|
import { ZStack } from '../../stacks/z_stack.js';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import styles from './date_picker_day.module.css';
|
|
5
|
+
import clsx from 'clsx';
|
|
5
6
|
|
|
6
7
|
export interface DatePickerDayProps {
|
|
7
8
|
dayOfTheWeek: number;
|
|
@@ -20,8 +21,12 @@ export function DatePickerDay({ dayOfTheWeek, countryCode }: DatePickerDayProps)
|
|
|
20
21
|
);
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
|
-
<ZStack className={styles['date-picker-day']}>
|
|
24
|
-
<Headline
|
|
24
|
+
<ZStack className={clsx(styles['date-picker-day'], 'tcn-date-picker-day')}>
|
|
25
|
+
<Headline
|
|
26
|
+
size="sm"
|
|
27
|
+
emphasis="faint"
|
|
28
|
+
className={clsx(styles['date-picker-day-text'], 'tcn-date-picker-day-text')}
|
|
29
|
+
>
|
|
25
30
|
{weekdayName[0]}
|
|
26
31
|
</Headline>
|
|
27
32
|
</ZStack>
|
|
@@ -61,7 +61,7 @@ export function DatePickerHeader({ presenter, countryCode }: DatePickerHeaderPro
|
|
|
61
61
|
|
|
62
62
|
return (
|
|
63
63
|
<HStack
|
|
64
|
-
className={clsx(styles['date-picker-header'], 'date-picker-header')}
|
|
64
|
+
className={clsx(styles['date-picker-header'], 'tcn-date-picker-header')}
|
|
65
65
|
minWidth="35px"
|
|
66
66
|
width="100%"
|
|
67
67
|
>
|
|
@@ -1,61 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.button) {
|
|
3
|
+
padding-inline-end: calc(24px * var(--scalar, 1));
|
|
4
|
+
}
|
|
4
5
|
|
|
5
|
-
.button:focus {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
:where(.button:focus) {
|
|
7
|
+
outline: 3px solid color-mix(in srgb, var(--accent-color) 40%, transparent);
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
.button[data-hierarchy="secondary"] {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
10
|
+
:where(.button[data-hierarchy="secondary"]) {
|
|
11
|
+
border: 1px solid #aaa;
|
|
12
|
+
color: var(--font-color);
|
|
13
|
+
}
|
|
13
14
|
|
|
14
|
-
.button:dir(ltr)::after {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
15
|
+
:where(.button:dir(ltr)::after) {
|
|
16
|
+
content: "";
|
|
17
|
+
position: absolute;
|
|
18
|
+
right: calc(4px * var(--scalar, 1));
|
|
19
|
+
top: 50%;
|
|
20
|
+
transform: translateY(-50%);
|
|
21
|
+
width: calc(18px * var(--scalar, 1));
|
|
22
|
+
height: calc(18px * var(--scalar, 1));
|
|
23
|
+
background-color: #808080;
|
|
24
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.46967 8.46967C5.76256 8.17678 6.23744 8.17678 6.53033 8.46967L12 13.9393L17.4697 8.46967C17.7626 8.17678 18.2374 8.17678 18.5303 8.46967C18.8232 8.76256 18.8232 9.23744 18.5303 9.53033L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46967 9.53033C5.17678 9.23744 5.17678 8.76256 5.46967 8.46967Z'%3E%3C/path%3E%3C/svg%3E");
|
|
25
|
+
mask-repeat: no-repeat;
|
|
26
|
+
mask-position: center;
|
|
27
|
+
mask-size: contain;
|
|
28
|
+
pointer-events: none; /* Ensure the chevron doesn't interfere with button clicks */
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
.button:dir(rtl)::after {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
31
|
+
:where(.button:dir(rtl)::after) {
|
|
32
|
+
content: "";
|
|
33
|
+
position: absolute;
|
|
34
|
+
left: calc(4px * var(--scalar, 1));
|
|
35
|
+
top: 50%;
|
|
36
|
+
transform: translateY(-50%);
|
|
37
|
+
width: calc(18px * var(--scalar, 1));
|
|
38
|
+
height: calc(18px * var(--scalar, 1));
|
|
39
|
+
background-color: #808080;
|
|
40
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.46967 8.46967C5.76256 8.17678 6.23744 8.17678 6.53033 8.46967L12 13.9393L17.4697 8.46967C17.7626 8.17678 18.2374 8.17678 18.5303 8.46967C18.8232 8.76256 18.8232 9.23744 18.5303 9.53033L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46967 9.53033C5.17678 9.23744 5.17678 8.76256 5.46967 8.46967Z'%3E%3C/path%3E%3C/svg%3E");
|
|
41
|
+
mask-repeat: no-repeat;
|
|
42
|
+
mask-position: center;
|
|
43
|
+
mask-size: contain;
|
|
44
|
+
pointer-events: none; /* Ensure the chevron doesn't interfere with button clicks */
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
.button:hover::after {
|
|
47
|
-
|
|
48
|
-
}
|
|
47
|
+
:where(.button:hover::after) {
|
|
48
|
+
background-color: var(--accent-color);
|
|
49
|
+
}
|
|
49
50
|
|
|
50
|
-
.button[data-hierarchy="secondary"]:hover {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
51
|
+
:where(.button[data-hierarchy="secondary"]:hover) {
|
|
52
|
+
color: var(--accent-color);
|
|
53
|
+
border-color: var(--accent-color);
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
}
|
|
55
56
|
|
|
56
|
-
.popover {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
:where(.popover) {
|
|
58
|
+
box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
|
|
59
|
+
border-radius: 8px;
|
|
60
|
+
background-color: rgb(241, 241, 241);
|
|
61
|
+
height: auto;
|
|
62
|
+
}
|
|
61
63
|
}
|
|
@@ -60,7 +60,7 @@ export const DatePickerInput = React.forwardRef<HTMLButtonElement, DatePickerInp
|
|
|
60
60
|
const pickerRef = useRef<HTMLDivElement | null>(null);
|
|
61
61
|
|
|
62
62
|
const isException = useCallback((target: HTMLElement) => {
|
|
63
|
-
return target.closest('.suggestion-list') != null;
|
|
63
|
+
return target.closest('.tcn-suggestion-list') != null;
|
|
64
64
|
}, []);
|
|
65
65
|
|
|
66
66
|
const formatter = useMemo(() => {
|
|
@@ -125,7 +125,7 @@ export const DatePickerInput = React.forwardRef<HTMLButtonElement, DatePickerInp
|
|
|
125
125
|
<>
|
|
126
126
|
<Button
|
|
127
127
|
ref={ref}
|
|
128
|
-
className={clsx(styles.button, 'select')}
|
|
128
|
+
className={clsx(styles.button, 'tcn-select')}
|
|
129
129
|
hAlign="start"
|
|
130
130
|
disabled={disabled}
|
|
131
131
|
hierarchy={hierarchy}
|
|
@@ -153,7 +153,7 @@ export const DatePickerInput = React.forwardRef<HTMLButtonElement, DatePickerInp
|
|
|
153
153
|
>
|
|
154
154
|
<ZStack
|
|
155
155
|
padding="8px"
|
|
156
|
-
className={clsx(styles.popover, 'date-picker-popover')}
|
|
156
|
+
className={clsx(styles.popover, 'tcn-date-picker-popover')}
|
|
157
157
|
onKeyDown={processKeyInput}
|
|
158
158
|
>
|
|
159
159
|
<DatePicker
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.time-box) {
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
color: var(--font-color);
|
|
6
|
+
border: 0;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
padding: 4px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
11
|
+
color: rgba(0, 0, 0, 0.85);
|
|
12
|
+
-webkit-tap-highlight-color: transparent;
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
.time-box[data-is-disabled="true"] {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
:where(.time-box[data-is-disabled="true"]) {
|
|
17
|
+
opacity: 0.5;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
.time-box-title {
|
|
21
|
-
|
|
22
|
-
}
|
|
21
|
+
:where(.time-box-title) {
|
|
22
|
+
color: rgb(110, 110, 110);
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
.time-box-title-container {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
25
|
+
:where(.time-box-title-container) {
|
|
26
|
+
border-bottom: 1px solid rgb(222, 222, 222);
|
|
27
|
+
min-height: 35px;
|
|
28
|
+
height: 35px;
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
.selected-time {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
:where(.selected-time) {
|
|
32
|
+
background-color: var(--accent-color) !important;
|
|
33
|
+
color: rgba(255, 255, 255, 0.9) !important;
|
|
34
|
+
}
|
|
33
35
|
}
|
|
@@ -63,7 +63,7 @@ export function DatePickerTimeSelector({
|
|
|
63
63
|
key={x}
|
|
64
64
|
width="flex"
|
|
65
65
|
hierarchy="tertiary"
|
|
66
|
-
className={clsx('selected-time', isSelected && styles['selected-time'])}
|
|
66
|
+
className={clsx('tcn-selected-time', isSelected && styles['selected-time'])}
|
|
67
67
|
disabled={origin == null || disabled || isOutOfRange}
|
|
68
68
|
onClick={() => {
|
|
69
69
|
onSelect(date.getHours(), date.getMinutes(), date.getSeconds());
|
|
@@ -87,12 +87,15 @@ export function DatePickerTimeSelector({
|
|
|
87
87
|
width="auto"
|
|
88
88
|
height={height}
|
|
89
89
|
data-is-disabled={disabled || origin == null}
|
|
90
|
-
className={clsx(styles['time-box'], 'time-box')}
|
|
90
|
+
className={clsx(styles['time-box'], 'tcn-time-box')}
|
|
91
91
|
>
|
|
92
92
|
<ZStack
|
|
93
|
-
className={clsx(
|
|
93
|
+
className={clsx(
|
|
94
|
+
styles['time-box-title-container'],
|
|
95
|
+
'tcn-time-box-title-container'
|
|
96
|
+
)}
|
|
94
97
|
>
|
|
95
|
-
<BodyText className={clsx(styles['time-box-title'], 'time-box-title')}>
|
|
98
|
+
<BodyText className={clsx(styles['time-box-title'], 'tcn-time-box-title')}>
|
|
96
99
|
<ClockIcon size="lg" />
|
|
97
100
|
</BodyText>
|
|
98
101
|
</ZStack>
|
|
@@ -1,49 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
@layer tcn-system {
|
|
2
|
+
:where(.year-select) {
|
|
3
|
+
/* Base select styles */
|
|
4
|
+
position: relative;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
padding-inline-end: calc(
|
|
7
|
+
24px *
|
|
8
|
+
var(--scalar, 1)
|
|
9
|
+
); /* Add padding to prevent text overlap with chevron */
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.year-select:focus {
|
|
12
|
-
|
|
13
|
-
}
|
|
12
|
+
:where(.year-select:focus) {
|
|
13
|
+
outline: 3px solid color-mix(in srgb, var(--accent-color) 40%, transparent);
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
.year-select:dir(ltr)::after {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
16
|
+
:where(.year-select:dir(ltr)::after) {
|
|
17
|
+
content: "";
|
|
18
|
+
position: absolute;
|
|
19
|
+
right: calc(4px * var(--scalar, 1));
|
|
20
|
+
top: 50%;
|
|
21
|
+
transform: translateY(-50%);
|
|
22
|
+
width: calc(18px * var(--scalar, 1));
|
|
23
|
+
height: calc(18px * var(--scalar, 1));
|
|
24
|
+
background-color: currentColor;
|
|
25
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.46967 8.46967C5.76256 8.17678 6.23744 8.17678 6.53033 8.46967L12 13.9393L17.4697 8.46967C17.7626 8.17678 18.2374 8.17678 18.5303 8.46967C18.8232 8.76256 18.8232 9.23744 18.5303 9.53033L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46967 9.53033C5.17678 9.23744 5.17678 8.76256 5.46967 8.46967Z'%3E%3C/path%3E%3C/svg%3E");
|
|
26
|
+
mask-repeat: no-repeat;
|
|
27
|
+
mask-position: center;
|
|
28
|
+
mask-size: contain;
|
|
29
|
+
pointer-events: none; /* Ensure the chevron doesn't interfere with button clicks */
|
|
30
|
+
}
|
|
30
31
|
|
|
31
|
-
.year-select:dir(rtl)::after {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
32
|
+
:where(.year-select:dir(rtl)::after) {
|
|
33
|
+
content: "";
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: calc(4px * var(--scalar, 1));
|
|
36
|
+
top: 50%;
|
|
37
|
+
transform: translateY(-50%);
|
|
38
|
+
width: calc(18px * var(--scalar, 1));
|
|
39
|
+
height: calc(18px * var(--scalar, 1));
|
|
40
|
+
background-color: currentColor;
|
|
41
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.46967 8.46967C5.76256 8.17678 6.23744 8.17678 6.53033 8.46967L12 13.9393L17.4697 8.46967C17.7626 8.17678 18.2374 8.17678 18.5303 8.46967C18.8232 8.76256 18.8232 9.23744 18.5303 9.53033L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46967 9.53033C5.17678 9.23744 5.17678 8.76256 5.46967 8.46967Z'%3E%3C/path%3E%3C/svg%3E");
|
|
42
|
+
mask-repeat: no-repeat;
|
|
43
|
+
mask-position: center;
|
|
44
|
+
mask-size: contain;
|
|
45
|
+
pointer-events: none; /* Ensure the chevron doesn't interfere with button clicks */
|
|
46
|
+
}
|
|
46
47
|
|
|
47
|
-
.year-select:hover::after {
|
|
48
|
-
|
|
48
|
+
:where(.year-select:hover::after) {
|
|
49
|
+
background-color: currentColor;
|
|
50
|
+
}
|
|
49
51
|
}
|
|
@@ -29,7 +29,7 @@ export function DatePickerYearInput({ presenter }: DatePickerYearInputProps) {
|
|
|
29
29
|
<>
|
|
30
30
|
<Button
|
|
31
31
|
hierarchy="tertiary"
|
|
32
|
-
className={clsx('date-picker-year-select', styles['year-select'])}
|
|
32
|
+
className={clsx('tcn-date-picker-year-select', styles['year-select'])}
|
|
33
33
|
width="auto"
|
|
34
34
|
hAlign="start"
|
|
35
35
|
onClick={open}
|