@tcn/ui 0.0.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/README.md +11 -0
- package/dist/actions/button/base_button/base_button.d.ts +15 -0
- package/dist/actions/button/base_button/base_button.d.ts.map +1 -0
- package/dist/actions/button/base_button/base_button.js +56 -0
- package/dist/actions/button/base_button/base_button.js.map +1 -0
- package/dist/actions/button/button/button.d.ts +6 -0
- package/dist/actions/button/button/button.d.ts.map +1 -0
- package/dist/actions/button/button/button.js +11 -0
- package/dist/actions/button/button/button.js.map +1 -0
- package/dist/actions/button/button_group/button_group.d.ts +12 -0
- package/dist/actions/button/button_group/button_group.d.ts.map +1 -0
- package/dist/actions/button/button_group/button_group.js +57 -0
- package/dist/actions/button/button_group/button_group.js.map +1 -0
- package/dist/actions/button/select_group/select_group.d.ts +13 -0
- package/dist/actions/button/select_group/select_group.d.ts.map +1 -0
- package/dist/actions/button/select_group/select_group.js +51 -0
- package/dist/actions/button/select_group/select_group.js.map +1 -0
- package/dist/actions/button/select_group/single_select_group.d.ts +10 -0
- package/dist/actions/button/select_group/single_select_group.d.ts.map +1 -0
- package/dist/actions/button/select_group/single_select_group.js +34 -0
- package/dist/actions/button/select_group/single_select_group.js.map +1 -0
- package/dist/actions/button/slim_button/slim_button.d.ts +4 -0
- package/dist/actions/button/slim_button/slim_button.d.ts.map +1 -0
- package/dist/actions/button/slim_button/slim_button.js +19 -0
- package/dist/actions/button/slim_button/slim_button.js.map +1 -0
- package/dist/actions/index.d.ts +7 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +15 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/badge.css +1 -0
- package/dist/base_button.css +1 -0
- package/dist/body_text.css +1 -0
- package/dist/body_text.module-h4XQE2pC.js +5 -0
- package/dist/body_text.module-h4XQE2pC.js.map +1 -0
- package/dist/bottom_resize_handle.css +1 -0
- package/dist/bubble.css +1 -0
- package/dist/button.css +1 -0
- package/dist/button_group.css +1 -0
- package/dist/callout.css +1 -0
- package/dist/callout.module-D8ECmxpO.js +5 -0
- package/dist/callout.module-D8ECmxpO.js.map +1 -0
- package/dist/caption.css +1 -0
- package/dist/caption.module-DDq0H4xZ.js +5 -0
- package/dist/caption.module-DDq0H4xZ.js.map +1 -0
- package/dist/card.css +1 -0
- package/dist/checkbox.css +1 -0
- package/dist/chip.css +1 -0
- package/dist/circle.css +1 -0
- package/dist/collapsible_box.css +1 -0
- package/dist/collapsible_box.module-BiS98xXA.js +5 -0
- package/dist/collapsible_box.module-BiS98xXA.js.map +1 -0
- package/dist/color_input.css +1 -0
- package/dist/color_picker.css +1 -0
- package/dist/column.css +1 -0
- package/dist/confirm.css +1 -0
- package/dist/date_picker.css +1 -0
- package/dist/date_picker_date.css +1 -0
- package/dist/date_picker_day.css +1 -0
- package/dist/date_picker_header.css +1 -0
- package/dist/date_picker_input.css +1 -0
- package/dist/date_picker_time_selector.css +1 -0
- package/dist/date_picker_year_input.css +1 -0
- package/dist/date_picker_year_selector.css +1 -0
- package/dist/divider.css +1 -0
- package/dist/drawer_bottom.css +1 -0
- package/dist/drawer_end.css +1 -0
- package/dist/drawer_start.css +1 -0
- package/dist/drawer_top.css +1 -0
- package/dist/end_resize_handle.css +1 -0
- package/dist/feedback/index.d.ts +4 -0
- package/dist/feedback/index.d.ts.map +1 -0
- package/dist/feedback/index.js +9 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/feedback/lazy/lazy.d.ts +11 -0
- package/dist/feedback/lazy/lazy.d.ts.map +1 -0
- package/dist/feedback/lazy/lazy.js +27 -0
- package/dist/feedback/lazy/lazy.js.map +1 -0
- package/dist/feedback/loading/loading.d.ts +11 -0
- package/dist/feedback/loading/loading.d.ts.map +1 -0
- package/dist/feedback/loading/loading.js +52 -0
- package/dist/feedback/loading/loading.js.map +1 -0
- package/dist/feedback/progress/progress_bar.d.ts +7 -0
- package/dist/feedback/progress/progress_bar.d.ts.map +1 -0
- package/dist/feedback/progress/progress_bar.js +41 -0
- package/dist/feedback/progress/progress_bar.js.map +1 -0
- package/dist/field_control.css +1 -0
- package/dist/field_set.css +1 -0
- package/dist/footer.css +1 -0
- package/dist/footnote.css +1 -0
- package/dist/footnote.module-DEyFuqOr.js +5 -0
- package/dist/footnote.module-DEyFuqOr.js.map +1 -0
- package/dist/form/field/common/field_control/field_control.d.ts +13 -0
- package/dist/form/field/common/field_control/field_control.d.ts.map +1 -0
- package/dist/form/field/common/field_control/field_control.js +38 -0
- package/dist/form/field/common/field_control/field_control.js.map +1 -0
- package/dist/form/field/common/field_description.d.ts +7 -0
- package/dist/form/field/common/field_description.d.ts.map +1 -0
- package/dist/form/field/common/field_description.js +25 -0
- package/dist/form/field/common/field_description.js.map +1 -0
- package/dist/form/field/common/field_error.d.ts +6 -0
- package/dist/form/field/common/field_error.d.ts.map +1 -0
- package/dist/form/field/common/field_error.js +35 -0
- package/dist/form/field/common/field_error.js.map +1 -0
- package/dist/form/field/common/field_header.d.ts +12 -0
- package/dist/form/field/common/field_header.d.ts.map +1 -0
- package/dist/form/field/common/field_header.js +28 -0
- package/dist/form/field/common/field_header.js.map +1 -0
- package/dist/form/field/common/field_label.d.ts +8 -0
- package/dist/form/field/common/field_label.d.ts.map +1 -0
- package/dist/form/field/common/field_label.js +38 -0
- package/dist/form/field/common/field_label.js.map +1 -0
- package/dist/form/field/common/status_input/status_input.d.ts +14 -0
- package/dist/form/field/common/status_input/status_input.d.ts.map +1 -0
- package/dist/form/field/common/status_input/status_input.js +56 -0
- package/dist/form/field/common/status_input/status_input.js.map +1 -0
- package/dist/form/field/common/types.d.ts +10 -0
- package/dist/form/field/common/types.d.ts.map +1 -0
- package/dist/form/field/common/types.js +2 -0
- package/dist/form/field/common/types.js.map +1 -0
- package/dist/form/field/field.d.ts +10 -0
- package/dist/form/field/field.d.ts.map +1 -0
- package/dist/form/field/field.js +19 -0
- package/dist/form/field/field.js.map +1 -0
- package/dist/form/field/form_field.d.ts +6 -0
- package/dist/form/field/form_field.d.ts.map +1 -0
- package/dist/form/field/form_field.js +18 -0
- package/dist/form/field/form_field.js.map +1 -0
- package/dist/form/field/h_field/h_field.d.ts +11 -0
- package/dist/form/field/h_field/h_field.d.ts.map +1 -0
- package/dist/form/field/h_field/h_field.js +60 -0
- package/dist/form/field/h_field/h_field.js.map +1 -0
- package/dist/form/field/v_field/v_field.d.ts +10 -0
- package/dist/form/field/v_field/v_field.d.ts.map +1 -0
- package/dist/form/field/v_field/v_field.js +68 -0
- package/dist/form/field/v_field/v_field.js.map +1 -0
- package/dist/form/field_presenters/field_presenter.d.ts +39 -0
- package/dist/form/field_presenters/field_presenter.d.ts.map +1 -0
- package/dist/form/field_presenters/field_presenter.js +71 -0
- package/dist/form/field_presenters/field_presenter.js.map +1 -0
- package/dist/form/field_presenters/options_field_presenter.d.ts +15 -0
- package/dist/form/field_presenters/options_field_presenter.d.ts.map +1 -0
- package/dist/form/field_presenters/options_field_presenter.js +18 -0
- package/dist/form/field_presenters/options_field_presenter.js.map +1 -0
- package/dist/form/field_set/field_set.d.ts +13 -0
- package/dist/form/field_set/field_set.d.ts.map +1 -0
- package/dist/form/field_set/field_set.js +65 -0
- package/dist/form/field_set/field_set.js.map +1 -0
- package/dist/form/form_field.d.ts +6 -0
- package/dist/form/form_field.d.ts.map +1 -0
- package/dist/form/form_field.js +18 -0
- package/dist/form/form_field.js.map +1 -0
- package/dist/form/index.d.ts +6 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form/index.js +11 -0
- package/dist/form/index.js.map +1 -0
- package/dist/grid.css +1 -0
- package/dist/h_field.css +1 -0
- package/dist/header.css +1 -0
- package/dist/headline.css +1 -0
- package/dist/headline.module-BiwHBtGf.js +5 -0
- package/dist/headline.module-BiwHBtGf.js.map +1 -0
- package/dist/input.css +1 -0
- package/dist/inputs/checkbox/checkbox.d.ts +11 -0
- package/dist/inputs/checkbox/checkbox.d.ts.map +1 -0
- package/dist/inputs/checkbox/checkbox.js +34 -0
- package/dist/inputs/checkbox/checkbox.js.map +1 -0
- package/dist/inputs/checkbox/checkbox_row.d.ts +8 -0
- package/dist/inputs/checkbox/checkbox_row.d.ts.map +1 -0
- package/dist/inputs/checkbox/checkbox_row.js +16 -0
- package/dist/inputs/checkbox/checkbox_row.js.map +1 -0
- package/dist/inputs/color_input/color_input.d.ts +13 -0
- package/dist/inputs/color_input/color_input.d.ts.map +1 -0
- package/dist/inputs/color_input/color_input.js +145 -0
- package/dist/inputs/color_input/color_input.js.map +1 -0
- package/dist/inputs/color_input/color_picker.d.ts +8 -0
- package/dist/inputs/color_input/color_picker.d.ts.map +1 -0
- package/dist/inputs/color_input/color_picker.js +39 -0
- package/dist/inputs/color_input/color_picker.js.map +1 -0
- package/dist/inputs/combo_box/combo_box.d.ts +11 -0
- package/dist/inputs/combo_box/combo_box.d.ts.map +1 -0
- package/dist/inputs/combo_box/combo_box.js +91 -0
- package/dist/inputs/combo_box/combo_box.js.map +1 -0
- package/dist/inputs/date_picker/date_picker.d.ts +20 -0
- package/dist/inputs/date_picker/date_picker.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker.js +114 -0
- package/dist/inputs/date_picker/date_picker.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_body.d.ts +7 -0
- package/dist/inputs/date_picker/date_picker_body.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_body.js +26 -0
- package/dist/inputs/date_picker/date_picker_body.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_date.d.ts +8 -0
- package/dist/inputs/date_picker/date_picker_date.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_date.js +71 -0
- package/dist/inputs/date_picker/date_picker_date.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_day.d.ts +6 -0
- package/dist/inputs/date_picker/date_picker_day.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_day.js +25 -0
- package/dist/inputs/date_picker/date_picker_day.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_header.d.ts +7 -0
- package/dist/inputs/date_picker/date_picker_header.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_header.js +87 -0
- package/dist/inputs/date_picker/date_picker_header.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_input.d.ts +24 -0
- package/dist/inputs/date_picker/date_picker_input.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_input.js +139 -0
- package/dist/inputs/date_picker/date_picker_input.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_presenter.d.ts +45 -0
- package/dist/inputs/date_picker/date_picker_presenter.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_presenter.js +170 -0
- package/dist/inputs/date_picker/date_picker_presenter.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_time_selector.d.ts +13 -0
- package/dist/inputs/date_picker/date_picker_time_selector.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_time_selector.js +90 -0
- package/dist/inputs/date_picker/date_picker_time_selector.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_year_input.d.ts +6 -0
- package/dist/inputs/date_picker/date_picker_year_input.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_year_input.js +51 -0
- package/dist/inputs/date_picker/date_picker_year_input.js.map +1 -0
- package/dist/inputs/date_picker/date_picker_year_selector.d.ts +7 -0
- package/dist/inputs/date_picker/date_picker_year_selector.d.ts.map +1 -0
- package/dist/inputs/date_picker/date_picker_year_selector.js +116 -0
- package/dist/inputs/date_picker/date_picker_year_selector.js.map +1 -0
- package/dist/inputs/index.d.ts +46 -0
- package/dist/inputs/index.d.ts.map +1 -0
- package/dist/inputs/index.js +90 -0
- package/dist/inputs/index.js.map +1 -0
- package/dist/inputs/input/input.d.ts +14 -0
- package/dist/inputs/input/input.d.ts.map +1 -0
- package/dist/inputs/input/input.js +24 -0
- package/dist/inputs/input/input.js.map +1 -0
- package/dist/inputs/mask_input/alpha_character.d.ts +10 -0
- package/dist/inputs/mask_input/alpha_character.d.ts.map +1 -0
- package/dist/inputs/mask_input/alpha_character.js +15 -0
- package/dist/inputs/mask_input/alpha_character.js.map +1 -0
- package/dist/inputs/mask_input/alpha_numeric_character.d.ts +10 -0
- package/dist/inputs/mask_input/alpha_numeric_character.d.ts.map +1 -0
- package/dist/inputs/mask_input/alpha_numeric_character.js +15 -0
- package/dist/inputs/mask_input/alpha_numeric_character.js.map +1 -0
- package/dist/inputs/mask_input/character.d.ts +14 -0
- package/dist/inputs/mask_input/character.d.ts.map +1 -0
- package/dist/inputs/mask_input/character.js +26 -0
- package/dist/inputs/mask_input/character.js.map +1 -0
- package/dist/inputs/mask_input/constant_character.d.ts +10 -0
- package/dist/inputs/mask_input/constant_character.d.ts.map +1 -0
- package/dist/inputs/mask_input/constant_character.js +23 -0
- package/dist/inputs/mask_input/constant_character.js.map +1 -0
- package/dist/inputs/mask_input/key_capture_input.d.ts +11 -0
- package/dist/inputs/mask_input/key_capture_input.d.ts.map +1 -0
- package/dist/inputs/mask_input/key_capture_input.js +79 -0
- package/dist/inputs/mask_input/key_capture_input.js.map +1 -0
- package/dist/inputs/mask_input/language_character.d.ts +10 -0
- package/dist/inputs/mask_input/language_character.d.ts.map +1 -0
- package/dist/inputs/mask_input/language_character.js +15 -0
- package/dist/inputs/mask_input/language_character.js.map +1 -0
- package/dist/inputs/mask_input/mask.d.ts +38 -0
- package/dist/inputs/mask_input/mask.d.ts.map +1 -0
- package/dist/inputs/mask_input/mask.js +174 -0
- package/dist/inputs/mask_input/mask.js.map +1 -0
- package/dist/inputs/mask_input/mask_config.d.ts +26 -0
- package/dist/inputs/mask_input/mask_config.d.ts.map +1 -0
- package/dist/inputs/mask_input/mask_config.js +2 -0
- package/dist/inputs/mask_input/mask_config.js.map +1 -0
- package/dist/inputs/mask_input/mask_cursor.d.ts +14 -0
- package/dist/inputs/mask_input/mask_cursor.d.ts.map +1 -0
- package/dist/inputs/mask_input/mask_cursor.js +2 -0
- package/dist/inputs/mask_input/mask_cursor.js.map +1 -0
- package/dist/inputs/mask_input/mask_input.d.ts +13 -0
- package/dist/inputs/mask_input/mask_input.d.ts.map +1 -0
- package/dist/inputs/mask_input/mask_input.js +122 -0
- package/dist/inputs/mask_input/mask_input.js.map +1 -0
- package/dist/inputs/mask_input/mask_presenter.d.ts +45 -0
- package/dist/inputs/mask_input/mask_presenter.d.ts.map +1 -0
- package/dist/inputs/mask_input/mask_presenter.js +146 -0
- package/dist/inputs/mask_input/mask_presenter.js.map +1 -0
- package/dist/inputs/mask_input/numeric_character.d.ts +10 -0
- package/dist/inputs/mask_input/numeric_character.d.ts.map +1 -0
- package/dist/inputs/mask_input/numeric_character.js +15 -0
- package/dist/inputs/mask_input/numeric_character.js.map +1 -0
- package/dist/inputs/mask_input/regex_character.d.ts +13 -0
- package/dist/inputs/mask_input/regex_character.d.ts.map +1 -0
- package/dist/inputs/mask_input/regex_character.js +33 -0
- package/dist/inputs/mask_input/regex_character.js.map +1 -0
- package/dist/inputs/multi_combo_box/multi_combo_box.d.ts +16 -0
- package/dist/inputs/multi_combo_box/multi_combo_box.d.ts.map +1 -0
- package/dist/inputs/multi_combo_box/multi_combo_box.js +101 -0
- package/dist/inputs/multi_combo_box/multi_combo_box.js.map +1 -0
- package/dist/inputs/multiselect/multiselect.d.ts +11 -0
- package/dist/inputs/multiselect/multiselect.d.ts.map +1 -0
- package/dist/inputs/multiselect/multiselect.js +105 -0
- package/dist/inputs/multiselect/multiselect.js.map +1 -0
- package/dist/inputs/multiselect/multiselect_inline_values.d.ts +9 -0
- package/dist/inputs/multiselect/multiselect_inline_values.d.ts.map +1 -0
- package/dist/inputs/multiselect/multiselect_inline_values.js +49 -0
- package/dist/inputs/multiselect/multiselect_inline_values.js.map +1 -0
- package/dist/inputs/multiselect/multiselect_row.d.ts +10 -0
- package/dist/inputs/multiselect/multiselect_row.d.ts.map +1 -0
- package/dist/inputs/multiselect/multiselect_row.js +35 -0
- package/dist/inputs/multiselect/multiselect_row.js.map +1 -0
- package/dist/inputs/multiselect/multiselect_values.d.ts +10 -0
- package/dist/inputs/multiselect/multiselect_values.d.ts.map +1 -0
- package/dist/inputs/multiselect/multiselect_values.js +62 -0
- package/dist/inputs/multiselect/multiselect_values.js.map +1 -0
- package/dist/inputs/options/option.d.ts +11 -0
- package/dist/inputs/options/option.d.ts.map +1 -0
- package/dist/inputs/options/option.js +10 -0
- package/dist/inputs/options/option.js.map +1 -0
- package/dist/inputs/options/utils.d.ts +5 -0
- package/dist/inputs/options/utils.d.ts.map +1 -0
- package/dist/inputs/options/utils.js +13 -0
- package/dist/inputs/options/utils.js.map +1 -0
- package/dist/inputs/phone_number_input/countries_phone_information.d.ts +11 -0
- package/dist/inputs/phone_number_input/countries_phone_information.d.ts.map +1 -0
- package/dist/inputs/phone_number_input/countries_phone_information.js +840 -0
- package/dist/inputs/phone_number_input/countries_phone_information.js.map +1 -0
- package/dist/inputs/phone_number_input/phone_number_input.d.ts +15 -0
- package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -0
- package/dist/inputs/phone_number_input/phone_number_input.js +209 -0
- package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -0
- package/dist/inputs/phone_number_input/utils.d.ts +2 -0
- package/dist/inputs/phone_number_input/utils.d.ts.map +1 -0
- package/dist/inputs/phone_number_input/utils.js +7 -0
- package/dist/inputs/phone_number_input/utils.js.map +1 -0
- package/dist/inputs/radio/radio.d.ts +13 -0
- package/dist/inputs/radio/radio.d.ts.map +1 -0
- package/dist/inputs/radio/radio.js +57 -0
- package/dist/inputs/radio/radio.js.map +1 -0
- package/dist/inputs/radio/radio_row.d.ts +9 -0
- package/dist/inputs/radio/radio_row.d.ts.map +1 -0
- package/dist/inputs/radio/radio_row.js +19 -0
- package/dist/inputs/radio/radio_row.js.map +1 -0
- package/dist/inputs/select/select.d.ts +13 -0
- package/dist/inputs/select/select.d.ts.map +1 -0
- package/dist/inputs/select/select.js +107 -0
- package/dist/inputs/select/select.js.map +1 -0
- package/dist/inputs/slider/slider.d.ts +12 -0
- package/dist/inputs/slider/slider.d.ts.map +1 -0
- package/dist/inputs/slider/slider.js +42 -0
- package/dist/inputs/slider/slider.js.map +1 -0
- package/dist/inputs/slider/slider_row.d.ts +8 -0
- package/dist/inputs/slider/slider_row.d.ts.map +1 -0
- package/dist/inputs/slider/slider_row.js +16 -0
- package/dist/inputs/slider/slider_row.js.map +1 -0
- package/dist/inputs/suggestions/suggestion_item.d.ts +9 -0
- package/dist/inputs/suggestions/suggestion_item.d.ts.map +1 -0
- package/dist/inputs/suggestions/suggestion_item.js +38 -0
- package/dist/inputs/suggestions/suggestion_item.js.map +1 -0
- package/dist/inputs/suggestions/suggestion_list.d.ts +15 -0
- package/dist/inputs/suggestions/suggestion_list.d.ts.map +1 -0
- package/dist/inputs/suggestions/suggestion_list.js +240 -0
- package/dist/inputs/suggestions/suggestion_list.js.map +1 -0
- package/dist/inputs/switch/switch.d.ts +11 -0
- package/dist/inputs/switch/switch.d.ts.map +1 -0
- package/dist/inputs/switch/switch.js +71 -0
- package/dist/inputs/switch/switch.js.map +1 -0
- package/dist/inputs/switch/switch_row.d.ts +8 -0
- package/dist/inputs/switch/switch_row.d.ts.map +1 -0
- package/dist/inputs/switch/switch_row.js +16 -0
- package/dist/inputs/switch/switch_row.js.map +1 -0
- package/dist/inputs/textarea/textarea.d.ts +11 -0
- package/dist/inputs/textarea/textarea.d.ts.map +1 -0
- package/dist/inputs/textarea/textarea.js +22 -0
- package/dist/inputs/textarea/textarea.js.map +1 -0
- package/dist/inputs/textarea/textarea_row.d.ts +8 -0
- package/dist/inputs/textarea/textarea_row.d.ts.map +1 -0
- package/dist/inputs/textarea/textarea_row.js +12 -0
- package/dist/inputs/textarea/textarea_row.js.map +1 -0
- package/dist/inputs/unit_input/unit_input.d.ts +14 -0
- package/dist/inputs/unit_input/unit_input.d.ts.map +1 -0
- package/dist/inputs/unit_input/unit_input.js +83 -0
- package/dist/inputs/unit_input/unit_input.js.map +1 -0
- package/dist/layouts/column/column.d.ts +10 -0
- package/dist/layouts/column/column.d.ts.map +1 -0
- package/dist/layouts/column/column.js +52 -0
- package/dist/layouts/column/column.js.map +1 -0
- package/dist/layouts/divider/divider.d.ts +26 -0
- package/dist/layouts/divider/divider.d.ts.map +1 -0
- package/dist/layouts/divider/divider.js +54 -0
- package/dist/layouts/divider/divider.js.map +1 -0
- package/dist/layouts/draggable_list/draggable_list.d.ts +2 -0
- package/dist/layouts/draggable_list/draggable_list.d.ts.map +1 -0
- package/dist/layouts/draggable_list/draggable_list.js +6 -0
- package/dist/layouts/draggable_list/draggable_list.js.map +1 -0
- package/dist/layouts/drawers/drawer_bottom/drawer_bottom.d.ts +7 -0
- package/dist/layouts/drawers/drawer_bottom/drawer_bottom.d.ts.map +1 -0
- package/dist/layouts/drawers/drawer_bottom/drawer_bottom.js +22 -0
- package/dist/layouts/drawers/drawer_bottom/drawer_bottom.js.map +1 -0
- package/dist/layouts/drawers/drawer_end/drawer_end.d.ts +7 -0
- package/dist/layouts/drawers/drawer_end/drawer_end.d.ts.map +1 -0
- package/dist/layouts/drawers/drawer_end/drawer_end.js +20 -0
- package/dist/layouts/drawers/drawer_end/drawer_end.js.map +1 -0
- package/dist/layouts/drawers/drawer_start/drawer_start.d.ts +7 -0
- package/dist/layouts/drawers/drawer_start/drawer_start.d.ts.map +1 -0
- package/dist/layouts/drawers/drawer_start/drawer_start.js +22 -0
- package/dist/layouts/drawers/drawer_start/drawer_start.js.map +1 -0
- package/dist/layouts/drawers/drawer_top/drawer_top.d.ts +7 -0
- package/dist/layouts/drawers/drawer_top/drawer_top.d.ts.map +1 -0
- package/dist/layouts/drawers/drawer_top/drawer_top.js +20 -0
- package/dist/layouts/drawers/drawer_top/drawer_top.js.map +1 -0
- package/dist/layouts/footer/footer.d.ts +10 -0
- package/dist/layouts/footer/footer.d.ts.map +1 -0
- package/dist/layouts/footer/footer.js +22 -0
- package/dist/layouts/footer/footer.js.map +1 -0
- package/dist/layouts/grid/grid.d.ts +29 -0
- package/dist/layouts/grid/grid.d.ts.map +1 -0
- package/dist/layouts/grid/grid.js +78 -0
- package/dist/layouts/grid/grid.js.map +1 -0
- package/dist/layouts/header/header.d.ts +9 -0
- package/dist/layouts/header/header.d.ts.map +1 -0
- package/dist/layouts/header/header.js +30 -0
- package/dist/layouts/header/header.js.map +1 -0
- package/dist/layouts/index.d.ts +15 -0
- package/dist/layouts/index.d.ts.map +1 -0
- package/dist/layouts/index.js +31 -0
- package/dist/layouts/index.js.map +1 -0
- package/dist/layouts/list/item.d.ts +7 -0
- package/dist/layouts/list/item.d.ts.map +1 -0
- package/dist/layouts/list/item.js +11 -0
- package/dist/layouts/list/item.js.map +1 -0
- package/dist/layouts/list/list.d.ts +7 -0
- package/dist/layouts/list/list.d.ts.map +1 -0
- package/dist/layouts/list/list.js +20 -0
- package/dist/layouts/list/list.js.map +1 -0
- package/dist/layouts/list/section_header.d.ts +6 -0
- package/dist/layouts/list/section_header.d.ts.map +1 -0
- package/dist/layouts/list/section_header.js +12 -0
- package/dist/layouts/list/section_header.js.map +1 -0
- package/dist/layouts/sidebar_end/sidebar_end.d.ts +11 -0
- package/dist/layouts/sidebar_end/sidebar_end.d.ts.map +1 -0
- package/dist/layouts/sidebar_end/sidebar_end.js +58 -0
- package/dist/layouts/sidebar_end/sidebar_end.js.map +1 -0
- package/dist/layouts/sidebar_start/sidebar_start.d.ts +11 -0
- package/dist/layouts/sidebar_start/sidebar_start.d.ts.map +1 -0
- package/dist/layouts/sidebar_start/sidebar_start.js +55 -0
- package/dist/layouts/sidebar_start/sidebar_start.js.map +1 -0
- package/dist/layouts/utility_bar/utility_bar.d.ts +9 -0
- package/dist/layouts/utility_bar/utility_bar.d.ts.map +1 -0
- package/dist/layouts/utility_bar/utility_bar.js +32 -0
- package/dist/layouts/utility_bar/utility_bar.js.map +1 -0
- package/dist/left_resize_handle.css +1 -0
- package/dist/loading.css +1 -0
- package/dist/menu.css +1 -0
- package/dist/modal.css +1 -0
- package/dist/multi_combo_box.css +1 -0
- package/dist/multiselect.css +1 -0
- package/dist/multiselect_values.css +1 -0
- package/dist/multiselect_values.module-BMJOyYHe.js +5 -0
- package/dist/multiselect_values.module-BMJOyYHe.js.map +1 -0
- package/dist/overlay/context_menu/context_menu.d.ts +10 -0
- package/dist/overlay/context_menu/context_menu.d.ts.map +1 -0
- package/dist/overlay/context_menu/context_menu.js +45 -0
- package/dist/overlay/context_menu/context_menu.js.map +1 -0
- package/dist/overlay/menu/menu.d.ts +29 -0
- package/dist/overlay/menu/menu.d.ts.map +1 -0
- package/dist/overlay/menu/menu.js +165 -0
- package/dist/overlay/menu/menu.js.map +1 -0
- package/dist/overlay/popper/popper.d.ts +22 -0
- package/dist/overlay/popper/popper.d.ts.map +1 -0
- package/dist/overlay/popper/popper.js +111 -0
- package/dist/overlay/popper/popper.js.map +1 -0
- package/dist/overlay/portal/portal.css +1 -0
- package/dist/overlay/portal/portal.d.ts +7 -0
- package/dist/overlay/portal/portal.d.ts.map +1 -0
- package/dist/overlay/portal/portal_platform.d.ts +27 -0
- package/dist/overlay/portal/portal_platform.d.ts.map +1 -0
- package/dist/overlay/portal/portal_platform.js +70 -0
- package/dist/overlay/portal/portal_platform.js.map +1 -0
- package/dist/overlay/portal/portal_platform_context.d.ts +6 -0
- package/dist/overlay/portal/portal_platform_context.d.ts.map +1 -0
- package/dist/overlay/portal/portal_platform_context.js +12 -0
- package/dist/overlay/portal/portal_platform_context.js.map +1 -0
- package/dist/overlay/tooltip/tooltip.d.ts +7 -0
- package/dist/overlay/tooltip/tooltip.d.ts.map +1 -0
- package/dist/overlay/tooltip/tooltip.js +20 -0
- package/dist/overlay/tooltip/tooltip.js.map +1 -0
- package/dist/page.css +1 -0
- package/dist/page.module-DXhph-u6.js +5 -0
- package/dist/page.module-DXhph-u6.js.map +1 -0
- package/dist/panel.css +1 -0
- package/dist/panel.module-CtikcmYB.js +5 -0
- package/dist/panel.module-CtikcmYB.js.map +1 -0
- package/dist/phone_number_input.css +1 -0
- package/dist/picture_placeholder.css +1 -0
- package/dist/popper.css +1 -0
- package/dist/portal-qqIp4SIl.js +12 -0
- package/dist/portal-qqIp4SIl.js.map +1 -0
- package/dist/progress_bar.css +1 -0
- package/dist/radio.css +1 -0
- package/dist/rect.css +1 -0
- package/dist/right_resize_handle.css +1 -0
- package/dist/select.css +1 -0
- package/dist/select_group.css +1 -0
- package/dist/sidebar_end.css +1 -0
- package/dist/sidebar_start.css +1 -0
- package/dist/slider.css +1 -0
- package/dist/slim_button.css +1 -0
- package/dist/stack.css +1 -0
- package/dist/stack.module-CBV1f12Z.js +5 -0
- package/dist/stack.module-CBV1f12Z.js.map +1 -0
- package/dist/stacks/box/bottom_resize_handle.d.ts +10 -0
- package/dist/stacks/box/bottom_resize_handle.d.ts.map +1 -0
- package/dist/stacks/box/bottom_resize_handle.js +33 -0
- package/dist/stacks/box/bottom_resize_handle.js.map +1 -0
- package/dist/stacks/box/box.d.ts +42 -0
- package/dist/stacks/box/box.d.ts.map +1 -0
- package/dist/stacks/box/box.js +168 -0
- package/dist/stacks/box/box.js.map +1 -0
- package/dist/stacks/box/end_resize_handle.d.ts +10 -0
- package/dist/stacks/box/end_resize_handle.d.ts.map +1 -0
- package/dist/stacks/box/end_resize_handle.js +33 -0
- package/dist/stacks/box/end_resize_handle.js.map +1 -0
- package/dist/stacks/box/handle_props.d.ts +7 -0
- package/dist/stacks/box/handle_props.d.ts.map +1 -0
- package/dist/stacks/box/handle_props.js +2 -0
- package/dist/stacks/box/handle_props.js.map +1 -0
- package/dist/stacks/box/left_resize_handle.d.ts +10 -0
- package/dist/stacks/box/left_resize_handle.d.ts.map +1 -0
- package/dist/stacks/box/left_resize_handle.js +35 -0
- package/dist/stacks/box/left_resize_handle.js.map +1 -0
- package/dist/stacks/box/resize_handlers.d.ts +3 -0
- package/dist/stacks/box/resize_handlers.d.ts.map +1 -0
- package/dist/stacks/box/resize_handlers.js +50 -0
- package/dist/stacks/box/resize_handlers.js.map +1 -0
- package/dist/stacks/box/right_resize_handle.d.ts +10 -0
- package/dist/stacks/box/right_resize_handle.d.ts.map +1 -0
- package/dist/stacks/box/right_resize_handle.js +35 -0
- package/dist/stacks/box/right_resize_handle.js.map +1 -0
- package/dist/stacks/box/start_resize_handle.d.ts +10 -0
- package/dist/stacks/box/start_resize_handle.d.ts.map +1 -0
- package/dist/stacks/box/start_resize_handle.js +34 -0
- package/dist/stacks/box/start_resize_handle.js.map +1 -0
- package/dist/stacks/box/top_resize_handle.d.ts +10 -0
- package/dist/stacks/box/top_resize_handle.d.ts.map +1 -0
- package/dist/stacks/box/top_resize_handle.js +34 -0
- package/dist/stacks/box/top_resize_handle.js.map +1 -0
- package/dist/stacks/h_collapsible_box.d.ts +8 -0
- package/dist/stacks/h_collapsible_box.d.ts.map +1 -0
- package/dist/stacks/h_collapsible_box.js +40 -0
- package/dist/stacks/h_collapsible_box.js.map +1 -0
- package/dist/stacks/h_stack.d.ts +10 -0
- package/dist/stacks/h_stack.d.ts.map +1 -0
- package/dist/stacks/h_stack.js +101 -0
- package/dist/stacks/h_stack.js.map +1 -0
- package/dist/stacks/index.d.ts +12 -0
- package/dist/stacks/index.d.ts.map +1 -0
- package/dist/stacks/index.js +17 -0
- package/dist/stacks/index.js.map +1 -0
- package/dist/stacks/spacer.d.ts +12 -0
- package/dist/stacks/spacer.d.ts.map +1 -0
- package/dist/stacks/spacer.js +37 -0
- package/dist/stacks/spacer.js.map +1 -0
- package/dist/stacks/story_components/circle.d.ts +8 -0
- package/dist/stacks/story_components/circle.d.ts.map +1 -0
- package/dist/stacks/story_components/circle.js +25 -0
- package/dist/stacks/story_components/circle.js.map +1 -0
- package/dist/stacks/story_components/horizontal_border.d.ts +5 -0
- package/dist/stacks/story_components/horizontal_border.d.ts.map +1 -0
- package/dist/stacks/story_components/horizontal_border.js +18 -0
- package/dist/stacks/story_components/horizontal_border.js.map +1 -0
- package/dist/stacks/story_components/picture_placeholder.d.ts +7 -0
- package/dist/stacks/story_components/picture_placeholder.d.ts.map +1 -0
- package/dist/stacks/story_components/picture_placeholder.js +39 -0
- package/dist/stacks/story_components/picture_placeholder.js.map +1 -0
- package/dist/stacks/story_components/rect.d.ts +7 -0
- package/dist/stacks/story_components/rect.d.ts.map +1 -0
- package/dist/stacks/story_components/rect.js +32 -0
- package/dist/stacks/story_components/rect.js.map +1 -0
- package/dist/stacks/story_components/style_box.d.ts +5 -0
- package/dist/stacks/story_components/style_box.d.ts.map +1 -0
- package/dist/stacks/story_components/style_box.js +12 -0
- package/dist/stacks/story_components/style_box.js.map +1 -0
- package/dist/stacks/types/alignment.d.ts +2 -0
- package/dist/stacks/types/alignment.d.ts.map +1 -0
- package/dist/stacks/types/as.d.ts +5 -0
- package/dist/stacks/types/as.d.ts.map +1 -0
- package/dist/stacks/types/common.d.ts +5 -0
- package/dist/stacks/types/common.d.ts.map +1 -0
- package/dist/stacks/types/styles.d.ts +42 -0
- package/dist/stacks/types/styles.d.ts.map +1 -0
- package/dist/stacks/utils/extract_style_props.d.ts +10 -0
- package/dist/stacks/utils/extract_style_props.d.ts.map +1 -0
- package/dist/stacks/utils/extract_style_props.js +297 -0
- package/dist/stacks/utils/extract_style_props.js.map +1 -0
- package/dist/stacks/utils/isCustomSizeProp.d.ts +2 -0
- package/dist/stacks/utils/isCustomSizeProp.d.ts.map +1 -0
- package/dist/stacks/utils/isCustomSizeProp.js +7 -0
- package/dist/stacks/utils/isCustomSizeProp.js.map +1 -0
- package/dist/stacks/utils/remove_undefined_properties.d.ts +2 -0
- package/dist/stacks/utils/remove_undefined_properties.d.ts.map +1 -0
- package/dist/stacks/utils/remove_undefined_properties.js +10 -0
- package/dist/stacks/utils/remove_undefined_properties.js.map +1 -0
- package/dist/stacks/utils/use_is_collapsed.d.ts +3 -0
- package/dist/stacks/utils/use_is_collapsed.d.ts.map +1 -0
- package/dist/stacks/utils/use_is_collapsed.js +22 -0
- package/dist/stacks/utils/use_is_collapsed.js.map +1 -0
- package/dist/stacks/v_collapsible_box.d.ts +8 -0
- package/dist/stacks/v_collapsible_box.d.ts.map +1 -0
- package/dist/stacks/v_collapsible_box.js +40 -0
- package/dist/stacks/v_collapsible_box.js.map +1 -0
- package/dist/stacks/v_stack.d.ts +10 -0
- package/dist/stacks/v_stack.d.ts.map +1 -0
- package/dist/stacks/v_stack.js +102 -0
- package/dist/stacks/v_stack.js.map +1 -0
- package/dist/stacks/z_stack.d.ts +12 -0
- package/dist/stacks/z_stack.d.ts.map +1 -0
- package/dist/stacks/z_stack.js +89 -0
- package/dist/stacks/z_stack.js.map +1 -0
- package/dist/start_resize_handle.css +1 -0
- package/dist/status_input.css +1 -0
- package/dist/subheadline.css +1 -0
- package/dist/subheadline.module-C-v7zMkQ.js +5 -0
- package/dist/subheadline.module-C-v7zMkQ.js.map +1 -0
- package/dist/suggestion_item.css +1 -0
- package/dist/suggestion_list.css +1 -0
- package/dist/surfaces/alert/alert.d.ts +11 -0
- package/dist/surfaces/alert/alert.d.ts.map +1 -0
- package/dist/surfaces/alert/alert.js +25 -0
- package/dist/surfaces/alert/alert.js.map +1 -0
- package/dist/surfaces/card/card.d.ts +7 -0
- package/dist/surfaces/card/card.d.ts.map +1 -0
- package/dist/surfaces/card/card.js +20 -0
- package/dist/surfaces/card/card.js.map +1 -0
- package/dist/surfaces/confirm/confirm.d.ts +12 -0
- package/dist/surfaces/confirm/confirm.d.ts.map +1 -0
- package/dist/surfaces/confirm/confirm.js +70 -0
- package/dist/surfaces/confirm/confirm.js.map +1 -0
- package/dist/surfaces/index.d.ts +11 -0
- package/dist/surfaces/index.d.ts.map +1 -0
- package/dist/surfaces/index.js +23 -0
- package/dist/surfaces/index.js.map +1 -0
- package/dist/surfaces/modal/modal.d.ts +7 -0
- package/dist/surfaces/modal/modal.d.ts.map +1 -0
- package/dist/surfaces/modal/modal.js +11 -0
- package/dist/surfaces/modal/modal.js.map +1 -0
- package/dist/surfaces/page/h_page.d.ts +6 -0
- package/dist/surfaces/page/h_page.d.ts.map +1 -0
- package/dist/surfaces/page/h_page.js +22 -0
- package/dist/surfaces/page/h_page.js.map +1 -0
- package/dist/surfaces/page/v_page.d.ts +6 -0
- package/dist/surfaces/page/v_page.d.ts.map +1 -0
- package/dist/surfaces/page/v_page.js +21 -0
- package/dist/surfaces/page/v_page.js.map +1 -0
- package/dist/surfaces/panel/h_panel.d.ts +9 -0
- package/dist/surfaces/panel/h_panel.d.ts.map +1 -0
- package/dist/surfaces/panel/h_panel.js +56 -0
- package/dist/surfaces/panel/h_panel.js.map +1 -0
- package/dist/surfaces/panel/v_panel.d.ts +9 -0
- package/dist/surfaces/panel/v_panel.d.ts.map +1 -0
- package/dist/surfaces/panel/v_panel.js +56 -0
- package/dist/surfaces/panel/v_panel.js.map +1 -0
- package/dist/surfaces/popover/popover.d.ts +6 -0
- package/dist/surfaces/popover/popover.d.ts.map +1 -0
- package/dist/surfaces/popover/popover.js +52 -0
- package/dist/surfaces/popover/popover.js.map +1 -0
- package/dist/surfaces/window/window.d.ts +5 -0
- package/dist/surfaces/window/window.d.ts.map +1 -0
- package/dist/surfaces/window/window.js +19 -0
- package/dist/surfaces/window/window.js.map +1 -0
- package/dist/switch.css +1 -0
- package/dist/textarea.css +1 -0
- package/dist/themes/index.d.ts +6 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +343 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/themes/stories/button_showcase.d.ts +2 -0
- package/dist/themes/stories/button_showcase.d.ts.map +1 -0
- package/dist/themes/stories/controls_fieldset.d.ts +2 -0
- package/dist/themes/stories/controls_fieldset.d.ts.map +1 -0
- package/dist/themes/stories/menu_showcase.d.ts +2 -0
- package/dist/themes/stories/menu_showcase.d.ts.map +1 -0
- package/dist/themes/stylesheets/reset.css +1 -0
- package/dist/themes/stylesheets/reset.d.ts +2 -0
- package/dist/themes/stylesheets/reset.d.ts.map +1 -0
- package/dist/themes/theme.d.ts +7 -0
- package/dist/themes/theme.d.ts.map +1 -0
- package/dist/themes/theme.js +10 -0
- package/dist/themes/theme.js.map +1 -0
- package/dist/themes/theme_variables.d.ts +66 -0
- package/dist/themes/theme_variables.d.ts.map +1 -0
- package/dist/themes/theme_variables.js +69 -0
- package/dist/themes/theme_variables.js.map +1 -0
- package/dist/themes/themes/ergo/ergo_theme.css +1 -0
- package/dist/themes/themes/ergo/ergo_theme.d.ts +2 -0
- package/dist/themes/themes/ergo/ergo_theme.d.ts.map +1 -0
- package/dist/themes/themes/windows_98/windows_98.css +1 -0
- package/dist/themes/themes/windows_98/windows_98_theme.d.ts +2 -0
- package/dist/themes/themes/windows_98/windows_98_theme.d.ts.map +1 -0
- package/dist/themes/themes/windows_98/windows_98_theme.js +1171 -0
- package/dist/themes/themes/windows_98/windows_98_theme.js.map +1 -0
- package/dist/title.css +1 -0
- package/dist/title.module-B16de2jd.js +5 -0
- package/dist/title.module-B16de2jd.js.map +1 -0
- package/dist/tokens/badge/badge.d.ts +8 -0
- package/dist/tokens/badge/badge.d.ts.map +1 -0
- package/dist/tokens/badge/badge.js +50 -0
- package/dist/tokens/badge/badge.js.map +1 -0
- package/dist/tokens/bubble/bubble.d.ts +11 -0
- package/dist/tokens/bubble/bubble.d.ts.map +1 -0
- package/dist/tokens/bubble/bubble.js +44 -0
- package/dist/tokens/bubble/bubble.js.map +1 -0
- package/dist/tokens/chip/chip.d.ts +9 -0
- package/dist/tokens/chip/chip.d.ts.map +1 -0
- package/dist/tokens/chip/chip.js +30 -0
- package/dist/tokens/chip/chip.js.map +1 -0
- package/dist/tokens/index.d.ts +4 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +9 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tooltip.css +1 -0
- package/dist/top_resize_handle.css +1 -0
- package/dist/typography/body_text/body_text.d.ts +18 -0
- package/dist/typography/body_text/body_text.d.ts.map +1 -0
- package/dist/typography/body_text/body_text.js +37 -0
- package/dist/typography/body_text/body_text.js.map +1 -0
- package/dist/typography/callout/callout.d.ts +18 -0
- package/dist/typography/callout/callout.d.ts.map +1 -0
- package/dist/typography/callout/callout.js +35 -0
- package/dist/typography/callout/callout.js.map +1 -0
- package/dist/typography/caption/caption.d.ts +18 -0
- package/dist/typography/caption/caption.d.ts.map +1 -0
- package/dist/typography/caption/caption.js +35 -0
- package/dist/typography/caption/caption.js.map +1 -0
- package/dist/typography/footnote/footnote.d.ts +18 -0
- package/dist/typography/footnote/footnote.d.ts.map +1 -0
- package/dist/typography/footnote/footnote.js +35 -0
- package/dist/typography/footnote/footnote.js.map +1 -0
- package/dist/typography/headline/headline.d.ts +18 -0
- package/dist/typography/headline/headline.d.ts.map +1 -0
- package/dist/typography/headline/headline.js +36 -0
- package/dist/typography/headline/headline.js.map +1 -0
- package/dist/typography/index.d.ts +8 -0
- package/dist/typography/index.d.ts.map +1 -0
- package/dist/typography/index.js +17 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/typography/subheadline/subheadline.d.ts +18 -0
- package/dist/typography/subheadline/subheadline.d.ts.map +1 -0
- package/dist/typography/subheadline/subheadline.js +36 -0
- package/dist/typography/subheadline/subheadline.js.map +1 -0
- package/dist/typography/title/title.d.ts +19 -0
- package/dist/typography/title/title.d.ts.map +1 -0
- package/dist/typography/title/title.js +37 -0
- package/dist/typography/title/title.js.map +1 -0
- package/dist/unit_input.css +1 -0
- package/dist/utility_bar.css +1 -0
- package/dist/utils/calendar/calendar_date.d.ts +10 -0
- package/dist/utils/calendar/calendar_date.d.ts.map +1 -0
- package/dist/utils/calendar/calendar_date.js +2 -0
- package/dist/utils/calendar/calendar_date.js.map +1 -0
- package/dist/utils/calendar/calendar_dates_generator.d.ts +10 -0
- package/dist/utils/calendar/calendar_dates_generator.d.ts.map +1 -0
- package/dist/utils/calendar/calendar_dates_generator.js +37 -0
- package/dist/utils/calendar/calendar_dates_generator.js.map +1 -0
- package/dist/utils/calendar/get_days_of_week.d.ts +2 -0
- package/dist/utils/calendar/get_days_of_week.d.ts.map +1 -0
- package/dist/utils/calendar/get_days_of_week.js +12 -0
- package/dist/utils/calendar/get_days_of_week.js.map +1 -0
- package/dist/utils/calendar/get_months_of_year.d.ts +2 -0
- package/dist/utils/calendar/get_months_of_year.d.ts.map +1 -0
- package/dist/utils/calendar/get_months_of_year.js +18 -0
- package/dist/utils/calendar/get_months_of_year.js.map +1 -0
- package/dist/utils/calendar/month.d.ts +16 -0
- package/dist/utils/calendar/month.d.ts.map +1 -0
- package/dist/utils/calendar/month.js +18 -0
- package/dist/utils/calendar/month.js.map +1 -0
- package/dist/utils/click_away_listener.d.ts +11 -0
- package/dist/utils/click_away_listener.d.ts.map +1 -0
- package/dist/utils/click_away_listener.js +58 -0
- package/dist/utils/click_away_listener.js.map +1 -0
- package/dist/utils/default_value.d.ts +2 -0
- package/dist/utils/default_value.d.ts.map +1 -0
- package/dist/utils/default_value.js +7 -0
- package/dist/utils/default_value.js.map +1 -0
- package/dist/utils/focus_redirect.d.ts +6 -0
- package/dist/utils/focus_redirect.d.ts.map +1 -0
- package/dist/utils/focus_redirect.js +24 -0
- package/dist/utils/focus_redirect.js.map +1 -0
- package/dist/utils/hooks/make_context_hook.d.ts +5 -0
- package/dist/utils/hooks/make_context_hook.d.ts.map +1 -0
- package/dist/utils/hooks/make_context_hook.js +11 -0
- package/dist/utils/hooks/make_context_hook.js.map +1 -0
- package/dist/utils/hooks/use_draggable.d.ts +8 -0
- package/dist/utils/hooks/use_draggable.d.ts.map +1 -0
- package/dist/utils/hooks/use_draggable.js +30 -0
- package/dist/utils/hooks/use_draggable.js.map +1 -0
- package/dist/utils/hooks/use_fork_ref.d.ts +3 -0
- package/dist/utils/hooks/use_fork_ref.d.ts.map +1 -0
- package/dist/utils/hooks/use_fork_ref.js +12 -0
- package/dist/utils/hooks/use_fork_ref.js.map +1 -0
- package/dist/utils/hooks/use_media_query.d.ts +9 -0
- package/dist/utils/hooks/use_media_query.d.ts.map +1 -0
- package/dist/utils/hooks/use_media_query.js +16 -0
- package/dist/utils/hooks/use_media_query.js.map +1 -0
- package/dist/utils/hooks/use_resize_observer.d.ts +9 -0
- package/dist/utils/hooks/use_resize_observer.d.ts.map +1 -0
- package/dist/utils/hooks/use_resize_observer.js +78 -0
- package/dist/utils/hooks/use_resize_observer.js.map +1 -0
- package/dist/utils/index.d.ts +17 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +30 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/responsive/responsive_renderer.d.ts +21 -0
- package/dist/utils/responsive/responsive_renderer.d.ts.map +1 -0
- package/dist/utils/responsive/responsive_renderer.js +12 -0
- package/dist/utils/responsive/responsive_renderer.js.map +1 -0
- package/dist/utils/scroll_away_listener.d.ts +18 -0
- package/dist/utils/scroll_away_listener.d.ts.map +1 -0
- package/dist/utils/scroll_away_listener.js +23 -0
- package/dist/utils/scroll_away_listener.js.map +1 -0
- package/dist/utils/types/dimensions.d.ts +15 -0
- package/dist/utils/types/dimensions.d.ts.map +1 -0
- package/dist/utils/types/variations.d.ts +5 -0
- package/dist/utils/types/variations.d.ts.map +1 -0
- package/dist/v_field.css +0 -0
- package/dist/window.css +1 -0
- package/package.json +136 -0
- package/src/actions/button/__stories__/button.stories.tsx +159 -0
- package/src/actions/button/__stories__/button_group.stories.tsx +106 -0
- package/src/actions/button/__stories__/select_group.stories.tsx +156 -0
- package/src/actions/button/__stories__/slim_button.stories.tsx +274 -0
- package/src/actions/button/base_button/base_button.module.css +15 -0
- package/src/actions/button/base_button/base_button.tsx +81 -0
- package/src/actions/button/button/button.module.css +129 -0
- package/src/actions/button/button/button.tsx +21 -0
- package/src/actions/button/button_group/button_group.module.css +67 -0
- package/src/actions/button/button_group/button_group.tsx +69 -0
- package/src/actions/button/select_group/select_group.module.css +67 -0
- package/src/actions/button/select_group/select_group.tsx +78 -0
- package/src/actions/button/select_group/single_select_group.tsx +48 -0
- package/src/actions/button/slim_button/slim_button.module.css +33 -0
- package/src/actions/button/slim_button/slim_button.tsx +18 -0
- package/src/actions/index.ts +19 -0
- package/src/feedback/index.ts +3 -0
- package/src/feedback/lazy/lazy.stories.tsx +56 -0
- package/src/feedback/lazy/lazy.tsx +53 -0
- package/src/feedback/loading/__storybook__/loading.stories.tsx +81 -0
- package/src/feedback/loading/__storybook__/storybook_custom_lines.module.css +3 -0
- package/src/feedback/loading/loading.module.css +20 -0
- package/src/feedback/loading/loading.tsx +71 -0
- package/src/feedback/progress/progress_bar.module.css +59 -0
- package/src/feedback/progress/progress_bar.stories.tsx +48 -0
- package/src/feedback/progress/progress_bar.tsx +43 -0
- package/src/feedback/storybook.module.css +5 -0
- package/src/form/field/common/field_control/field_control.module.css +20 -0
- package/src/form/field/common/field_control/field_control.tsx +53 -0
- package/src/form/field/common/field_description.tsx +26 -0
- package/src/form/field/common/field_error.tsx +37 -0
- package/src/form/field/common/field_header.tsx +40 -0
- package/src/form/field/common/field_label.tsx +38 -0
- package/src/form/field/common/status_input/status_input.module.css +10 -0
- package/src/form/field/common/status_input/status_input.tsx +84 -0
- package/src/form/field/common/types.ts +9 -0
- package/src/form/field/field.stories.tsx +131 -0
- package/src/form/field/field.tsx +37 -0
- package/src/form/field/form_field.tsx +29 -0
- package/src/form/field/h_field/h_field.module.css +6 -0
- package/src/form/field/h_field/h_field.stories.tsx +90 -0
- package/src/form/field/h_field/h_field.tsx +70 -0
- package/src/form/field/v_field/v_field.module.css +0 -0
- package/src/form/field/v_field/v_field.stories.tsx +90 -0
- package/src/form/field/v_field/v_field.tsx +74 -0
- package/src/form/field_presenters/field_presenter.ts +162 -0
- package/src/form/field_presenters/options_field_presenter.ts +36 -0
- package/src/form/field_set/field_set.module.css +17 -0
- package/src/form/field_set/field_set.stories.tsx +102 -0
- package/src/form/field_set/field_set.tsx +65 -0
- package/src/form/form_field.tsx +29 -0
- package/src/form/index.ts +5 -0
- package/src/inputs/__storybook__/stories.module.css +5 -0
- package/src/inputs/checkbox/checkbox.module.css +51 -0
- package/src/inputs/checkbox/checkbox.stories.tsx +48 -0
- package/src/inputs/checkbox/checkbox.tsx +43 -0
- package/src/inputs/checkbox/checkbox_row.tsx +29 -0
- package/src/inputs/color_input/color_input.module.css +62 -0
- package/src/inputs/color_input/color_input.stories.tsx +39 -0
- package/src/inputs/color_input/color_input.tsx +153 -0
- package/src/inputs/color_input/color_picker.module.css +13 -0
- package/src/inputs/color_input/color_picker.tsx +41 -0
- package/src/inputs/combo_box/combo_box.stories.tsx +93 -0
- package/src/inputs/combo_box/combo_box.tsx +153 -0
- package/src/inputs/date_picker/date_picker.module.css +20 -0
- package/src/inputs/date_picker/date_picker.stories.tsx +126 -0
- package/src/inputs/date_picker/date_picker.tsx +170 -0
- package/src/inputs/date_picker/date_picker_body.tsx +53 -0
- package/src/inputs/date_picker/date_picker_date.module.css +78 -0
- package/src/inputs/date_picker/date_picker_date.tsx +99 -0
- package/src/inputs/date_picker/date_picker_day.module.css +4 -0
- package/src/inputs/date_picker/date_picker_day.tsx +29 -0
- package/src/inputs/date_picker/date_picker_header.module.css +3 -0
- package/src/inputs/date_picker/date_picker_header.tsx +98 -0
- package/src/inputs/date_picker/date_picker_input.module.css +61 -0
- package/src/inputs/date_picker/date_picker_input.stories.tsx +108 -0
- package/src/inputs/date_picker/date_picker_input.tsx +180 -0
- package/src/inputs/date_picker/date_picker_presenter.ts +426 -0
- package/src/inputs/date_picker/date_picker_time_selector.module.css +33 -0
- package/src/inputs/date_picker/date_picker_time_selector.tsx +112 -0
- package/src/inputs/date_picker/date_picker_year_input.module.css +49 -0
- package/src/inputs/date_picker/date_picker_year_input.tsx +51 -0
- package/src/inputs/date_picker/date_picker_year_selector.module.css +51 -0
- package/src/inputs/date_picker/date_picker_year_selector.tsx +130 -0
- package/src/inputs/index.ts +60 -0
- package/src/inputs/input/input.module.css +80 -0
- package/src/inputs/input/input.stories.tsx +129 -0
- package/src/inputs/input/input.tsx +36 -0
- package/src/inputs/mask_input/__tests__/mask_presenter.test.ts +131 -0
- package/src/inputs/mask_input/alpha_character.ts +13 -0
- package/src/inputs/mask_input/alpha_numeric_character.ts +13 -0
- package/src/inputs/mask_input/character.ts +31 -0
- package/src/inputs/mask_input/constant_character.ts +46 -0
- package/src/inputs/mask_input/key_capture_input.stories.tsx +69 -0
- package/src/inputs/mask_input/key_capture_input.tsx +144 -0
- package/src/inputs/mask_input/language_character.ts +13 -0
- package/src/inputs/mask_input/mask.ts +309 -0
- package/src/inputs/mask_input/mask_config.ts +25 -0
- package/src/inputs/mask_input/mask_cursor.ts +23 -0
- package/src/inputs/mask_input/mask_input.stories.tsx +63 -0
- package/src/inputs/mask_input/mask_input.tsx +246 -0
- package/src/inputs/mask_input/mask_presenter.ts +306 -0
- package/src/inputs/mask_input/numeric_character.ts +13 -0
- package/src/inputs/mask_input/regex_character.ts +62 -0
- package/src/inputs/multi_combo_box/multi_combo_box.module.css +3 -0
- package/src/inputs/multi_combo_box/multi_combo_box.stories.tsx +71 -0
- package/src/inputs/multi_combo_box/multi_combo_box.tsx +133 -0
- package/src/inputs/multiselect/multiselect.module.css +3 -0
- package/src/inputs/multiselect/multiselect.tsx +133 -0
- package/src/inputs/multiselect/multiselect_inline_values.tsx +49 -0
- package/src/inputs/multiselect/multiselect_row.tsx +57 -0
- package/src/inputs/multiselect/multiselect_values.module.css +31 -0
- package/src/inputs/multiselect/multiselect_values.tsx +63 -0
- package/src/inputs/multiselect/mutliselect.stories.tsx +112 -0
- package/src/inputs/options/option.tsx +23 -0
- package/src/inputs/options/utils.ts +18 -0
- package/src/inputs/phone_number_input/__tests__/utils.test.ts +52 -0
- package/src/inputs/phone_number_input/countries_phone_information.ts +846 -0
- package/src/inputs/phone_number_input/phone_number_input.module.css +50 -0
- package/src/inputs/phone_number_input/phone_number_input.stories.tsx +119 -0
- package/src/inputs/phone_number_input/phone_number_input.tsx +329 -0
- package/src/inputs/phone_number_input/utils.ts +7 -0
- package/src/inputs/radio/radio.module.css +87 -0
- package/src/inputs/radio/radio.stories.tsx +20 -0
- package/src/inputs/radio/radio.tsx +68 -0
- package/src/inputs/radio/radio_row.tsx +45 -0
- package/src/inputs/select/select.module.css +66 -0
- package/src/inputs/select/select.stories.tsx +173 -0
- package/src/inputs/select/select.tsx +160 -0
- package/src/inputs/slider/slider.module.css +150 -0
- package/src/inputs/slider/slider.stories.tsx +52 -0
- package/src/inputs/slider/slider.tsx +57 -0
- package/src/inputs/slider/slider_row.tsx +33 -0
- package/src/inputs/suggestions/suggestion_item.module.css +54 -0
- package/src/inputs/suggestions/suggestion_item.tsx +53 -0
- package/src/inputs/suggestions/suggestion_list.module.css +29 -0
- package/src/inputs/suggestions/suggestion_list.stories.tsx +348 -0
- package/src/inputs/suggestions/suggestion_list.tsx +411 -0
- package/src/inputs/switch/TODO.md +3 -0
- package/src/inputs/switch/switch.module.css +110 -0
- package/src/inputs/switch/switch.stories.tsx +63 -0
- package/src/inputs/switch/switch.tsx +82 -0
- package/src/inputs/switch/switch_row.tsx +33 -0
- package/src/inputs/textarea/textarea.module.css +66 -0
- package/src/inputs/textarea/textarea.stories.tsx +44 -0
- package/src/inputs/textarea/textarea.tsx +32 -0
- package/src/inputs/textarea/textarea_row.tsx +24 -0
- package/src/inputs/unit_input/unit_input.module.css +23 -0
- package/src/inputs/unit_input/unit_input.stories.tsx +100 -0
- package/src/inputs/unit_input/unit_input.tsx +115 -0
- package/src/layouts/column/column.module.css +33 -0
- package/src/layouts/column/column.tsx +57 -0
- package/src/layouts/divider/__stories__/divider.stories.tsx +103 -0
- package/src/layouts/divider/divider.module.css +102 -0
- package/src/layouts/divider/divider.tsx +81 -0
- package/src/layouts/draggable_list/draggable_list.tsx +5 -0
- package/src/layouts/drawers/__stories__/drawers.stories.tsx +26 -0
- package/src/layouts/drawers/drawer_bottom/drawer_bottom.module.css +3 -0
- package/src/layouts/drawers/drawer_bottom/drawer_bottom.tsx +23 -0
- package/src/layouts/drawers/drawer_end/drawer_end.module.css +3 -0
- package/src/layouts/drawers/drawer_end/drawer_end.tsx +24 -0
- package/src/layouts/drawers/drawer_start/drawer_start.module.css +3 -0
- package/src/layouts/drawers/drawer_start/drawer_start.tsx +23 -0
- package/src/layouts/drawers/drawer_top/drawer_top.module.css +3 -0
- package/src/layouts/drawers/drawer_top/drawer_top.tsx +24 -0
- package/src/layouts/footer/footer.module.css +31 -0
- package/src/layouts/footer/footer.tsx +29 -0
- package/src/layouts/grid/grid.module.css +22 -0
- package/src/layouts/grid/grid.stories.tsx +260 -0
- package/src/layouts/grid/grid.tsx +120 -0
- package/src/layouts/header/header.module.css +6 -0
- package/src/layouts/header/header.tsx +37 -0
- package/src/layouts/index.ts +14 -0
- package/src/layouts/list/item.tsx +18 -0
- package/src/layouts/list/list.tsx +23 -0
- package/src/layouts/list/section_header.module.css +18 -0
- package/src/layouts/list/section_header.tsx +15 -0
- package/src/layouts/sidebar_end/sidebar_end.module.css +31 -0
- package/src/layouts/sidebar_end/sidebar_end.tsx +64 -0
- package/src/layouts/sidebar_start/sidebar_start.module.css +31 -0
- package/src/layouts/sidebar_start/sidebar_start.tsx +61 -0
- package/src/layouts/utility_bar/utility_bar.module.css +7 -0
- package/src/layouts/utility_bar/utility_bar.tsx +39 -0
- package/src/overlay/context_menu/context_menu.stories.tsx +79 -0
- package/src/overlay/context_menu/context_menu.tsx +55 -0
- package/src/overlay/menu/menu.module.css +33 -0
- package/src/overlay/menu/menu.stories.tsx +345 -0
- package/src/overlay/menu/menu.tsx +267 -0
- package/src/overlay/popper/popper.module.css +10 -0
- package/src/overlay/popper/popper.stories.tsx +431 -0
- package/src/overlay/popper/popper.tsx +218 -0
- package/src/overlay/portal/portal.css +35 -0
- package/src/overlay/portal/portal.stories.tsx +43 -0
- package/src/overlay/portal/portal.tsx +26 -0
- package/src/overlay/portal/portal_platform.tsx +120 -0
- package/src/overlay/portal/portal_platform_context.ts +11 -0
- package/src/overlay/tooltip/tooltip.module.css +3 -0
- package/src/overlay/tooltip/tooltip.stories.tsx +15 -0
- package/src/overlay/tooltip/tooltip.tsx +24 -0
- package/src/stacks/box/bottom_resize_handle.module.css +10 -0
- package/src/stacks/box/bottom_resize_handle.tsx +42 -0
- package/src/stacks/box/box.tsx +220 -0
- package/src/stacks/box/end_resize_handle.module.css +17 -0
- package/src/stacks/box/end_resize_handle.tsx +42 -0
- package/src/stacks/box/handle_props.ts +6 -0
- package/src/stacks/box/left_resize_handle.module.css +10 -0
- package/src/stacks/box/left_resize_handle.tsx +43 -0
- package/src/stacks/box/resize_handlers.ts +129 -0
- package/src/stacks/box/right_resize_handle.module.css +10 -0
- package/src/stacks/box/right_resize_handle.tsx +43 -0
- package/src/stacks/box/start_resize_handle.module.css +17 -0
- package/src/stacks/box/start_resize_handle.tsx +42 -0
- package/src/stacks/box/top_resize_handle.module.css +10 -0
- package/src/stacks/box/top_resize_handle.tsx +41 -0
- package/src/stacks/collapsible_box.module.css +37 -0
- package/src/stacks/collapsible_box.stories.tsx +66 -0
- package/src/stacks/demo.module.css +4 -0
- package/src/stacks/demo.stories.tsx +145 -0
- package/src/stacks/h_collapsible_box.tsx +48 -0
- package/src/stacks/h_stack.stories.tsx +107 -0
- package/src/stacks/h_stack.tsx +114 -0
- package/src/stacks/index.ts +11 -0
- package/src/stacks/spacer.tsx +47 -0
- package/src/stacks/stack.module.css +357 -0
- package/src/stacks/stacks.mdx +240 -0
- package/src/stacks/story_components/circle.module.css +7 -0
- package/src/stacks/story_components/circle.tsx +30 -0
- package/src/stacks/story_components/horizontal_border.tsx +15 -0
- package/src/stacks/story_components/picture_placeholder.module.css +3 -0
- package/src/stacks/story_components/picture_placeholder.tsx +42 -0
- package/src/stacks/story_components/rect.module.css +8 -0
- package/src/stacks/story_components/rect.tsx +36 -0
- package/src/stacks/story_components/style_box.tsx +19 -0
- package/src/stacks/types/alignment.ts +1 -0
- package/src/stacks/types/as.tsx +11 -0
- package/src/stacks/types/common.ts +4 -0
- package/src/stacks/types/styles.ts +44 -0
- package/src/stacks/utils/extract_style_props.ts +323 -0
- package/src/stacks/utils/isCustomSizeProp.ts +3 -0
- package/src/stacks/utils/remove_undefined_properties.ts +11 -0
- package/src/stacks/utils/use_is_collapsed.ts +33 -0
- package/src/stacks/v_collapsible_box.tsx +48 -0
- package/src/stacks/v_stack.stories.tsx +40 -0
- package/src/stacks/v_stack.tsx +118 -0
- package/src/stacks/z_stack.stories.tsx +119 -0
- package/src/stacks/z_stack.tsx +104 -0
- package/src/surfaces/alert/alert.stories.tsx +33 -0
- package/src/surfaces/alert/alert.tsx +30 -0
- package/src/surfaces/card/card.module.css +5 -0
- package/src/surfaces/card/card.tsx +24 -0
- package/src/surfaces/confirm/confirm.module.css +40 -0
- package/src/surfaces/confirm/confirm.stories.tsx +43 -0
- package/src/surfaces/confirm/confirm.tsx +91 -0
- package/src/surfaces/index.ts +10 -0
- package/src/surfaces/modal/modal.module.css +3 -0
- package/src/surfaces/modal/modal.stories.tsx +15 -0
- package/src/surfaces/modal/modal.tsx +19 -0
- package/src/surfaces/page/h_page.tsx +23 -0
- package/src/surfaces/page/page.module.css +12 -0
- package/src/surfaces/page/v_page.tsx +22 -0
- package/src/surfaces/panel/h_panel.tsx +59 -0
- package/src/surfaces/panel/panel.module.css +14 -0
- package/src/surfaces/panel/v_panel.tsx +59 -0
- package/src/surfaces/popover/popover.tsx +53 -0
- package/src/surfaces/window/window.module.css +5 -0
- package/src/surfaces/window/window.stories.tsx +15 -0
- package/src/surfaces/window/window.tsx +21 -0
- package/src/themes/index.ts +5 -0
- package/src/themes/stories/button_showcase.tsx +153 -0
- package/src/themes/stories/controls_fieldset.tsx +249 -0
- package/src/themes/stories/menu_showcase.tsx +508 -0
- package/src/themes/stories/themes.stories.tsx +35 -0
- package/src/themes/stylesheets/reset.css +134 -0
- package/src/themes/stylesheets/reset.ts +4 -0
- package/src/themes/theme.tsx +14 -0
- package/src/themes/theme_variables.ts +81 -0
- package/src/themes/themes/ergo/ergo_theme.css +194 -0
- package/src/themes/themes/ergo/ergo_theme.ts +4 -0
- package/src/themes/themes/windows_98/windows_98.css +1165 -0
- package/src/themes/themes/windows_98/windows_98_theme.ts +4 -0
- package/src/tokens/badge/badge.module.css +14 -0
- package/src/tokens/badge/badge.stories.tsx +25 -0
- package/src/tokens/badge/badge.tsx +56 -0
- package/src/tokens/bubble/bubble.module.css +11 -0
- package/src/tokens/bubble/bubble.stories.tsx +168 -0
- package/src/tokens/bubble/bubble.tsx +53 -0
- package/src/tokens/chip/chip.module.css +13 -0
- package/src/tokens/chip/chip.stories.tsx +51 -0
- package/src/tokens/chip/chip.tsx +36 -0
- package/src/tokens/index.ts +3 -0
- package/src/typography/__tests__/sanity.test.ts +7 -0
- package/src/typography/body_text/body_text.module.css +60 -0
- package/src/typography/body_text/body_text.stories.tsx +46 -0
- package/src/typography/body_text/body_text.tsx +76 -0
- package/src/typography/callout/callout.module.css +55 -0
- package/src/typography/callout/callout.stories.tsx +94 -0
- package/src/typography/callout/callout.tsx +74 -0
- package/src/typography/caption/caption.module.css +55 -0
- package/src/typography/caption/caption.stories.tsx +94 -0
- package/src/typography/caption/caption.tsx +74 -0
- package/src/typography/footnote/footnote.module.css +55 -0
- package/src/typography/footnote/footnote.stories.tsx +94 -0
- package/src/typography/footnote/footnote.tsx +74 -0
- package/src/typography/headline/headline.module.css +56 -0
- package/src/typography/headline/headline.stories.tsx +94 -0
- package/src/typography/headline/headline.tsx +84 -0
- package/src/typography/index.ts +7 -0
- package/src/typography/subheadline/subheadline.module.css +56 -0
- package/src/typography/subheadline/subheadline.stories.tsx +94 -0
- package/src/typography/subheadline/subheadline.tsx +87 -0
- package/src/typography/title/title.module.css +53 -0
- package/src/typography/title/title.stories.tsx +46 -0
- package/src/typography/title/title.tsx +88 -0
- package/src/typography/typography-showcase.stories.tsx +347 -0
- package/src/utils/__stories__/use_draggable.stories.tsx +217 -0
- package/src/utils/calendar/calendar_date.ts +10 -0
- package/src/utils/calendar/calendar_dates_generator.ts +59 -0
- package/src/utils/calendar/get_days_of_week.ts +17 -0
- package/src/utils/calendar/get_months_of_year.ts +32 -0
- package/src/utils/calendar/month.ts +16 -0
- package/src/utils/click_away_listener.stories.tsx +264 -0
- package/src/utils/click_away_listener.tsx +124 -0
- package/src/utils/default_value.test.ts +20 -0
- package/src/utils/default_value.ts +3 -0
- package/src/utils/focus_redirect.tsx +26 -0
- package/src/utils/hooks/make_context_hook.ts +17 -0
- package/src/utils/hooks/use_draggable.ts +74 -0
- package/src/utils/hooks/use_fork_ref.ts +18 -0
- package/src/utils/hooks/use_media_query.ts +32 -0
- package/src/utils/hooks/use_resize_observer.ts +148 -0
- package/src/utils/index.ts +20 -0
- package/src/utils/responsive/responsive_renderer.stories.tsx +77 -0
- package/src/utils/responsive/responsive_renderer.tsx +31 -0
- package/src/utils/scroll_away_listener.stories.tsx +293 -0
- package/src/utils/scroll_away_listener.tsx +55 -0
- package/src/utils/types/dimensions.ts +16 -0
- package/src/utils/types/variations.ts +4 -0
- package/tsconfig.json +30 -0
- package/types/css_variables.d.ts +8 -0
- package/types/file_types.d.ts +54 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { ISubscription, Runner, Signal, WeakPromise } from '@tcn/state';
|
|
2
|
+
|
|
3
|
+
function fastCopy<T>(value: T): T {
|
|
4
|
+
return JSON.parse(JSON.stringify(value));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function fastDeepEqual<T>(a: T, b: T): boolean {
|
|
8
|
+
return JSON.stringify(a) === JSON.stringify(b);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface FieldState<T> {
|
|
12
|
+
label: string;
|
|
13
|
+
value: T;
|
|
14
|
+
error: string | null;
|
|
15
|
+
hasError: boolean;
|
|
16
|
+
description?: string;
|
|
17
|
+
isDirty: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface FieldOptions<T> {
|
|
21
|
+
description?: string;
|
|
22
|
+
validate?: (value: T) => Promise<void> | void;
|
|
23
|
+
validateOnChange?: boolean;
|
|
24
|
+
equalityCheck?: (a: T, b: T) => boolean;
|
|
25
|
+
copyInitialValue?: (value: T) => T;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const noop = () => {};
|
|
29
|
+
const defaultCopy = <T>(value: T): T => fastCopy(value);
|
|
30
|
+
|
|
31
|
+
export class FieldPresenter<T> {
|
|
32
|
+
protected _state: Signal<FieldState<T>>;
|
|
33
|
+
private _initialValue: T;
|
|
34
|
+
private _equalityCheck: (a: T, b: T) => boolean;
|
|
35
|
+
private _cloneInitialValue: (v: T) => T;
|
|
36
|
+
|
|
37
|
+
private _validationRunner: Runner<void>;
|
|
38
|
+
private _validate: (value: T) => Promise<void> | void | WeakPromise<void>;
|
|
39
|
+
private _subscriptions: ISubscription<any>[];
|
|
40
|
+
private _validateOnChange: boolean;
|
|
41
|
+
private _cancelToken = 'field_presenter_cancel';
|
|
42
|
+
|
|
43
|
+
get stateBroadcast() {
|
|
44
|
+
return this._state.broadcast;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
get state() {
|
|
48
|
+
return this._state.get();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
constructor(label: string, value: T, options: FieldOptions<T> = {}) {
|
|
52
|
+
this._validate = options.validate || noop;
|
|
53
|
+
this._validationRunner = new Runner<void>(undefined);
|
|
54
|
+
this._subscriptions = [];
|
|
55
|
+
this._cloneInitialValue = options.copyInitialValue || defaultCopy;
|
|
56
|
+
this._initialValue = this._cloneInitialValue(value);
|
|
57
|
+
this._equalityCheck = options.equalityCheck || ((a, b) => fastDeepEqual(a, b));
|
|
58
|
+
this._state = new Signal<FieldState<T>>({
|
|
59
|
+
label,
|
|
60
|
+
value,
|
|
61
|
+
error: null,
|
|
62
|
+
hasError: false,
|
|
63
|
+
description: options.description,
|
|
64
|
+
isDirty: false,
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
this._validateOnChange = options.validateOnChange ?? false;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
setLabel = (label: string) => {
|
|
71
|
+
this._state.transform(s => {
|
|
72
|
+
s.label = label;
|
|
73
|
+
return s;
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
setDescription = (description: string) => {
|
|
78
|
+
this._state.transform(s => {
|
|
79
|
+
s.description = description;
|
|
80
|
+
return s;
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
setValue = (value: T) => {
|
|
85
|
+
if (this._equalityCheck(this.state.value, value)) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
this._state.transform(s => {
|
|
90
|
+
if (this._validateOnChange) {
|
|
91
|
+
s.error = null;
|
|
92
|
+
s.hasError = false;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
s.value = value;
|
|
96
|
+
s.isDirty = !this._equalityCheck(value, this._initialValue);
|
|
97
|
+
return s;
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
if (this._validateOnChange) {
|
|
101
|
+
this.validate();
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
setError = (error: string | null) => {
|
|
106
|
+
this._validationRunner.cancel(this._cancelToken);
|
|
107
|
+
|
|
108
|
+
this._state.transform(s => {
|
|
109
|
+
s.error = error;
|
|
110
|
+
s.hasError = error != null;
|
|
111
|
+
return s;
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
validate = async () => {
|
|
116
|
+
try {
|
|
117
|
+
this._validationRunner.cancel(this._cancelToken);
|
|
118
|
+
await this._validationRunner.execute(() => {
|
|
119
|
+
return this._validate(this.state.value);
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
this._state.transform(s => {
|
|
123
|
+
s.error = null;
|
|
124
|
+
s.hasError = false;
|
|
125
|
+
return s;
|
|
126
|
+
});
|
|
127
|
+
} catch (e: any) {
|
|
128
|
+
const message = e.message || e.toString();
|
|
129
|
+
if (message === this._cancelToken) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
this._state.transform(s => {
|
|
134
|
+
s.error = message;
|
|
135
|
+
s.hasError = true;
|
|
136
|
+
return s;
|
|
137
|
+
});
|
|
138
|
+
throw e;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
upgrade = () => {
|
|
143
|
+
if (this._equalityCheck(this.state.value, this._initialValue)) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
this._initialValue = this._cloneInitialValue(this.state.value);
|
|
148
|
+
this._state.transform(s => {
|
|
149
|
+
s.isDirty = false;
|
|
150
|
+
return s;
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
clearError = () => {
|
|
155
|
+
this.setError(null);
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
dispose() {
|
|
159
|
+
this._validationRunner.cancel(this._cancelToken);
|
|
160
|
+
this._subscriptions.forEach(s => s.unsubscribe());
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Signal } from '@tcn/state';
|
|
2
|
+
import { FieldOptions, FieldPresenter, FieldState } from './field_presenter.js';
|
|
3
|
+
|
|
4
|
+
export interface OptionsFieldState<TValue = string, TOption = string>
|
|
5
|
+
extends FieldState<TValue> {
|
|
6
|
+
options: TOption[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface OptionsFieldOptions<TValue = string, TOption = string>
|
|
10
|
+
extends FieldOptions<TValue> {
|
|
11
|
+
options?: TOption[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class OptionsFieldPresenter<
|
|
15
|
+
TValue = string,
|
|
16
|
+
TOption = TValue,
|
|
17
|
+
> extends FieldPresenter<TValue> {
|
|
18
|
+
protected _options: Signal<TOption[]>;
|
|
19
|
+
|
|
20
|
+
get optionsBroadcast() {
|
|
21
|
+
return this._options.broadcast;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
label: string,
|
|
26
|
+
value: TValue,
|
|
27
|
+
options: OptionsFieldOptions<TValue, TOption>
|
|
28
|
+
) {
|
|
29
|
+
super(label, value, options);
|
|
30
|
+
this._options = new Signal(options.options || []);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
setOptions(options: TOption[]) {
|
|
34
|
+
this._options.set(options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.field-set {
|
|
2
|
+
position: relative;
|
|
3
|
+
border-radius: 4px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.field-set {
|
|
7
|
+
gap: 4px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.field-set > .field-set-body {
|
|
11
|
+
background: #ffffff; /* tcn neutral white */
|
|
12
|
+
width: 100%;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
gap: 8px;
|
|
16
|
+
padding: 8px;
|
|
17
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Divider } from '../../layouts/divider/divider.js';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { FieldSet } from './field_set.js';
|
|
4
|
+
import {
|
|
5
|
+
Input,
|
|
6
|
+
MaskInput,
|
|
7
|
+
MultiComboBox,
|
|
8
|
+
Multiselect,
|
|
9
|
+
PhoneNumberInput,
|
|
10
|
+
Select,
|
|
11
|
+
Textarea,
|
|
12
|
+
UnitInput,
|
|
13
|
+
Option,
|
|
14
|
+
} from '../../inputs/index.js';
|
|
15
|
+
import { HField } from '../field/h_field/h_field.js';
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
title: 'Fieldset',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export function Baseline() {
|
|
22
|
+
const [multiselectValues, setMultiselectValues] = useState<string[]>([]);
|
|
23
|
+
const [freeformMultiselectValues, setFreeformMultiselectValues] = useState<string[]>(
|
|
24
|
+
[]
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<FieldSet maxWidth="600px" minWidth="300px" legend="Fieldset" gap="8px" padding="8px">
|
|
29
|
+
<HField label="Input" id="field-1">
|
|
30
|
+
<Input />
|
|
31
|
+
</HField>
|
|
32
|
+
<Divider />
|
|
33
|
+
<HField label="Textarea" id="field-2">
|
|
34
|
+
<Textarea />
|
|
35
|
+
</HField>
|
|
36
|
+
<Divider />
|
|
37
|
+
<HField label="Mask" id="field-3">
|
|
38
|
+
<MaskInput mask={{ mask: '99/99/9999' }} />
|
|
39
|
+
</HField>
|
|
40
|
+
<Divider />
|
|
41
|
+
<HField label="Phone Number" id="field-4">
|
|
42
|
+
<PhoneNumberInput />
|
|
43
|
+
</HField>
|
|
44
|
+
<Divider />
|
|
45
|
+
<HField label="Unit" id="field-5">
|
|
46
|
+
<UnitInput>
|
|
47
|
+
<Option value="miles" label="Miles">
|
|
48
|
+
Miles
|
|
49
|
+
</Option>
|
|
50
|
+
<Option value="kilometers" label="Kilometers">
|
|
51
|
+
Kilometers
|
|
52
|
+
</Option>
|
|
53
|
+
</UnitInput>
|
|
54
|
+
</HField>
|
|
55
|
+
<Divider />
|
|
56
|
+
<HField label="Select" id="field-6">
|
|
57
|
+
<Select>
|
|
58
|
+
<Option value="option-1" label="Option 1">
|
|
59
|
+
Option 1
|
|
60
|
+
</Option>
|
|
61
|
+
<Option value="option-2" label="Option 2">
|
|
62
|
+
Option 2
|
|
63
|
+
</Option>
|
|
64
|
+
<Option value="option-3" label="Option 3">
|
|
65
|
+
Option 3
|
|
66
|
+
</Option>
|
|
67
|
+
</Select>
|
|
68
|
+
</HField>
|
|
69
|
+
<Divider />
|
|
70
|
+
<HField label="Multiselect" id="field-7">
|
|
71
|
+
<Multiselect value={multiselectValues} onChange={setMultiselectValues}>
|
|
72
|
+
<Option value="option-1" label="Option 1">
|
|
73
|
+
Option 1
|
|
74
|
+
</Option>
|
|
75
|
+
<Option value="option-2" label="Option 2">
|
|
76
|
+
Option 2
|
|
77
|
+
</Option>
|
|
78
|
+
<Option value="option-3" label="Option 3">
|
|
79
|
+
Option 3
|
|
80
|
+
</Option>
|
|
81
|
+
</Multiselect>
|
|
82
|
+
</HField>
|
|
83
|
+
<Divider />
|
|
84
|
+
<HField label="Multi Combo Box" id="field-8">
|
|
85
|
+
<MultiComboBox
|
|
86
|
+
value={freeformMultiselectValues}
|
|
87
|
+
onChange={setFreeformMultiselectValues}
|
|
88
|
+
>
|
|
89
|
+
<Option value="option-1" label="Option 1">
|
|
90
|
+
Option 1
|
|
91
|
+
</Option>
|
|
92
|
+
<Option value="option-2" label="Option 2">
|
|
93
|
+
Option 2
|
|
94
|
+
</Option>
|
|
95
|
+
<Option value="option-3" label="Option 3">
|
|
96
|
+
Option 3
|
|
97
|
+
</Option>
|
|
98
|
+
</MultiComboBox>
|
|
99
|
+
</HField>
|
|
100
|
+
</FieldSet>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Title } from '../../typography/index.js';
|
|
2
|
+
import { HStack } from '../../stacks/h_stack.js';
|
|
3
|
+
import { Spacer } from '../../stacks/spacer.js';
|
|
4
|
+
import { VStack } from '../../stacks/v_stack.js';
|
|
5
|
+
import type { VStackProps } from '../../stacks/v_stack.js';
|
|
6
|
+
import classnames from 'classnames';
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import styles from './field_set.module.css';
|
|
9
|
+
|
|
10
|
+
let fieldsetIdCount = 0;
|
|
11
|
+
|
|
12
|
+
export type FieldSetProps = VStackProps<HTMLFieldSetElement> & {
|
|
13
|
+
legend?: string;
|
|
14
|
+
startAdornments?: React.ReactNode;
|
|
15
|
+
endAdornments?: React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const FieldSet = React.forwardRef(function FieldSet(
|
|
19
|
+
{
|
|
20
|
+
legend,
|
|
21
|
+
startAdornments,
|
|
22
|
+
endAdornments,
|
|
23
|
+
className,
|
|
24
|
+
children,
|
|
25
|
+
...props
|
|
26
|
+
}: FieldSetProps,
|
|
27
|
+
ref: React.Ref<HTMLFieldSetElement>
|
|
28
|
+
) {
|
|
29
|
+
const id = useMemo(() => {
|
|
30
|
+
return fieldsetIdCount++;
|
|
31
|
+
}, []);
|
|
32
|
+
|
|
33
|
+
const labelId = `field-set-${id}`;
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<VStack
|
|
37
|
+
as="fieldset"
|
|
38
|
+
aria-labelledby={labelId}
|
|
39
|
+
ref={ref}
|
|
40
|
+
className={classnames(styles['field-set'], className, 'field-set')}
|
|
41
|
+
{...props}
|
|
42
|
+
>
|
|
43
|
+
{legend && (
|
|
44
|
+
<HStack
|
|
45
|
+
id={labelId}
|
|
46
|
+
className={classnames('legend', 'field-set-legend')}
|
|
47
|
+
hAlign="start"
|
|
48
|
+
height={props.height}
|
|
49
|
+
>
|
|
50
|
+
{startAdornments}
|
|
51
|
+
{startAdornments && <Spacer width="8px" />}
|
|
52
|
+
<Title className="field-set-legend-text">{legend}</Title>
|
|
53
|
+
{endAdornments && <Spacer />}
|
|
54
|
+
{endAdornments}
|
|
55
|
+
</HStack>
|
|
56
|
+
)}
|
|
57
|
+
<VStack
|
|
58
|
+
className={classnames('field-set-body', styles['field-set-body'])}
|
|
59
|
+
{...props}
|
|
60
|
+
>
|
|
61
|
+
{children}
|
|
62
|
+
</VStack>
|
|
63
|
+
</VStack>
|
|
64
|
+
);
|
|
65
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
import { useSignalValue } from '@tcn/state';
|
|
3
|
+
import { FieldPresenter, FieldState } from './field_presenters/field_presenter.js';
|
|
4
|
+
|
|
5
|
+
export function FormField<T>({
|
|
6
|
+
field,
|
|
7
|
+
children,
|
|
8
|
+
}: {
|
|
9
|
+
field: FieldPresenter<T>;
|
|
10
|
+
children: (
|
|
11
|
+
state: FieldState<T>,
|
|
12
|
+
setValue: (value: T) => void,
|
|
13
|
+
validate: () => Promise<void>
|
|
14
|
+
) => React.ReactElement;
|
|
15
|
+
}) {
|
|
16
|
+
const state = useSignalValue(field.stateBroadcast);
|
|
17
|
+
const setValue = useCallback(
|
|
18
|
+
(value: T) => {
|
|
19
|
+
field.setValue(value);
|
|
20
|
+
},
|
|
21
|
+
[field]
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
const validate = useCallback(() => {
|
|
25
|
+
return field.validate();
|
|
26
|
+
}, [field]);
|
|
27
|
+
|
|
28
|
+
return children(state, setValue, validate);
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.checkbox {
|
|
2
|
+
-webkit-appearance: none;
|
|
3
|
+
-moz-appearance: none;
|
|
4
|
+
-webkit-tap-highlight-color: transparent;
|
|
5
|
+
appearance: none;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
width: calc(var(--scalar, 1) * 15px);
|
|
8
|
+
height: calc(var(--scalar, 1) * 15px);
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
outline: none;
|
|
11
|
+
outline-offset: 0;
|
|
12
|
+
border: 1px solid var(--accent-color);
|
|
13
|
+
margin: 0;
|
|
14
|
+
background-color: #fff;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
background-size: calc(12px * var(--scalar, 1)) calc(12px * var(--scalar, 1));
|
|
17
|
+
background-position: center;
|
|
18
|
+
background-repeat: no-repeat;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.checkbox[data-is-disabled="false"]:active {
|
|
22
|
+
background-color: var(--accent-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.checkbox[data-is-disabled="true"] {
|
|
26
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
opacity: 0.5;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.checkbox:focus {
|
|
32
|
+
outline: 3px solid color-mix(in srgb, var(--accent-color) 40%, transparent);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.checkbox[data-checked="true"] {
|
|
36
|
+
background-color: var(--accent-color);
|
|
37
|
+
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5068 5.44714C20.8121 5.72703 20.8328 6.20146 20.5529 6.5068L9.55287 18.5068C9.41464 18.6576 9.22081 18.7454 9.01629 18.7498C8.81178 18.7543 8.61432 18.675 8.46967 18.5303L3.46967 13.5303C3.17678 13.2374 3.17678 12.7626 3.46967 12.4697C3.76256 12.1768 4.23744 12.1768 4.53033 12.4697L8.97644 16.9158L19.4471 5.49321C19.727 5.18787 20.2015 5.16724 20.5068 5.44714Z' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.checkbox[data-is-disabled="false"]:active {
|
|
41
|
+
background-color: var(--accent-color);
|
|
42
|
+
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5068 5.44714C20.8121 5.72703 20.8328 6.20146 20.5529 6.5068L9.55287 18.5068C9.41464 18.6576 9.22081 18.7454 9.01629 18.7498C8.81178 18.7543 8.61432 18.675 8.46967 18.5303L3.46967 13.5303C3.17678 13.2374 3.17678 12.7626 3.46967 12.4697C3.76256 12.1768 4.23744 12.1768 4.53033 12.4697L8.97644 16.9158L19.4471 5.49321C19.727 5.18787 20.2015 5.16724 20.5068 5.44714Z' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.checkbox[data-is-disabled="true"] {
|
|
46
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.checkbox[data-checked="true"][data-is-disabled="true"] {
|
|
50
|
+
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='rgba(255,255,255,0.3)' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.5068 5.44714C20.8121 5.72703 20.8328 6.20146 20.5529 6.5068L9.55287 18.5068C9.41464 18.6576 9.22081 18.7454 9.01629 18.7498C8.81178 18.7543 8.61432 18.675 8.46967 18.5303L3.46967 13.5303C3.17678 13.2374 3.17678 12.7626 3.46967 12.4697C3.76256 12.1768 4.23744 12.1768 4.53033 12.4697L8.97644 16.9158L19.4471 5.49321C19.727 5.18787 20.2015 5.16724 20.5068 5.44714Z' stroke='rgba(255,255,255,0.3)' stroke-width='2'/%3E%3C/svg%3E");
|
|
51
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Checkbox as Component, CheckboxProps } from './checkbox.js';
|
|
3
|
+
import styles from '../__storybook__/stories.module.css';
|
|
4
|
+
|
|
5
|
+
function Base(props: CheckboxProps) {
|
|
6
|
+
const [checked, setChecked] = React.useState(props.checked ?? false);
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<Component
|
|
10
|
+
checked={checked}
|
|
11
|
+
onChange={v => {
|
|
12
|
+
setChecked(v);
|
|
13
|
+
}}
|
|
14
|
+
{...props}
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
title: 'Checkbox',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export function Checkbox() {
|
|
24
|
+
return (
|
|
25
|
+
<table className={styles.story}>
|
|
26
|
+
<thead>
|
|
27
|
+
<tr>
|
|
28
|
+
<th>Baseline</th>
|
|
29
|
+
<th>Disabled</th>
|
|
30
|
+
<th>Disabled Checked</th>
|
|
31
|
+
</tr>
|
|
32
|
+
</thead>
|
|
33
|
+
<tbody>
|
|
34
|
+
<tr>
|
|
35
|
+
<td>
|
|
36
|
+
<Base />
|
|
37
|
+
</td>
|
|
38
|
+
<td>
|
|
39
|
+
<Base disabled />
|
|
40
|
+
</td>
|
|
41
|
+
<td>
|
|
42
|
+
<Base disabled checked />
|
|
43
|
+
</td>
|
|
44
|
+
</tr>
|
|
45
|
+
</tbody>
|
|
46
|
+
</table>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import classnames from 'classnames';
|
|
2
|
+
import React, { HTMLAttributes } from 'react';
|
|
3
|
+
import styles from './checkbox.module.css';
|
|
4
|
+
|
|
5
|
+
export interface CheckboxProps
|
|
6
|
+
extends Omit<HTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
7
|
+
width?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onChange?: (value: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Checkbox = React.forwardRef(function Checkbox(
|
|
16
|
+
{
|
|
17
|
+
style,
|
|
18
|
+
className,
|
|
19
|
+
width,
|
|
20
|
+
height,
|
|
21
|
+
checked,
|
|
22
|
+
inputRef,
|
|
23
|
+
onChange,
|
|
24
|
+
...props
|
|
25
|
+
}: CheckboxProps,
|
|
26
|
+
ref: React.Ref<HTMLInputElement>
|
|
27
|
+
) {
|
|
28
|
+
return (
|
|
29
|
+
<input
|
|
30
|
+
ref={ref}
|
|
31
|
+
data-checked={checked}
|
|
32
|
+
data-is-disabled={props.disabled || false}
|
|
33
|
+
checked={checked}
|
|
34
|
+
type="checkbox"
|
|
35
|
+
onChange={e => {
|
|
36
|
+
onChange && onChange(Boolean(e.currentTarget.checked), e);
|
|
37
|
+
}}
|
|
38
|
+
{...props}
|
|
39
|
+
className={classnames(className, styles.checkbox, 'checkbox')}
|
|
40
|
+
style={{ width, height, ...style }}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { useSignalValue } from '@tcn/state';
|
|
3
|
+
import { Checkbox, CheckboxProps } from './checkbox.js';
|
|
4
|
+
import { FieldPresenter } from '../../form/field_presenters/field_presenter.js';
|
|
5
|
+
import { HField } from '../../form/field/h_field/h_field.js';
|
|
6
|
+
|
|
7
|
+
export interface CheckboxRowProps extends Omit<CheckboxProps, 'onChange' | 'checked'> {
|
|
8
|
+
presenter?: FieldPresenter<boolean>;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function CheckboxRow({ presenter, id, ...props }: CheckboxRowProps) {
|
|
13
|
+
const [finalPresenter] = useState(() => {
|
|
14
|
+
if (presenter == null) {
|
|
15
|
+
return new FieldPresenter<boolean>('Label', false);
|
|
16
|
+
}
|
|
17
|
+
return presenter;
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const { label, value, description, error } = useSignalValue(
|
|
21
|
+
finalPresenter.stateBroadcast
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<HField id={id} label={label} description={description} errorMessage={error}>
|
|
26
|
+
<Checkbox {...props} checked={value} onChange={finalPresenter.setValue} />
|
|
27
|
+
</HField>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.checker-board {
|
|
2
|
+
background-color: white;
|
|
3
|
+
background-image:
|
|
4
|
+
linear-gradient(45deg, #ccc 25%, transparent 25%),
|
|
5
|
+
linear-gradient(-45deg, #ccc 25%, transparent 25%),
|
|
6
|
+
linear-gradient(45deg, transparent 75%, #ccc 75%),
|
|
7
|
+
linear-gradient(-45deg, transparent 75%, #ccc 75%);
|
|
8
|
+
background-size: 10px 10px; /* Adjusting the size to 5px squares */
|
|
9
|
+
background-position:
|
|
10
|
+
0 0,
|
|
11
|
+
0 5px,
|
|
12
|
+
5px -5px,
|
|
13
|
+
-5px 0px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.color-input-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: #808080;
|
|
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
|
+
}
|
|
31
|
+
|
|
32
|
+
.color-input-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: #808080;
|
|
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
|
+
}
|
|
47
|
+
|
|
48
|
+
.color-input-select[data-hierarchy="secondary"] {
|
|
49
|
+
height: calc(16px * var(--scalar, 1));
|
|
50
|
+
border: 1px solid #aaa;
|
|
51
|
+
color: var(--font-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.color-input-select:hover::after {
|
|
55
|
+
background-color: var(--accent-color);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.color-input-select[data-hierarchy="secondary"]:hover {
|
|
59
|
+
color: var(--accent-color);
|
|
60
|
+
border-color: var(--accent-color);
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
}
|