@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,129 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Input as Component, InputProps } from './input.js';
|
|
3
|
+
import styles from '../__storybook__/stories.module.css';
|
|
4
|
+
import { VStack } from '../../stacks/v_stack.js';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Input',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function Base(props: InputProps) {
|
|
11
|
+
const [value, setValue] = React.useState(props.value || '');
|
|
12
|
+
|
|
13
|
+
return <Component onChange={setValue} {...props} value={value} />;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function Input() {
|
|
17
|
+
return (
|
|
18
|
+
<table className={styles.story}>
|
|
19
|
+
<thead>
|
|
20
|
+
<tr>
|
|
21
|
+
<th>Name</th>
|
|
22
|
+
<th>Component</th>
|
|
23
|
+
</tr>
|
|
24
|
+
</thead>
|
|
25
|
+
<tbody>
|
|
26
|
+
<tr>
|
|
27
|
+
<td>Baseline</td>
|
|
28
|
+
<td>
|
|
29
|
+
<Base value={'hello world!'} />
|
|
30
|
+
</td>
|
|
31
|
+
</tr>
|
|
32
|
+
<tr>
|
|
33
|
+
<td>Placeholder</td>
|
|
34
|
+
<td>
|
|
35
|
+
<Base placeholder="Enter text here..." />
|
|
36
|
+
</td>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<td>disabled</td>
|
|
40
|
+
<td>
|
|
41
|
+
<Base disabled />
|
|
42
|
+
</td>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<td>disabled with value</td>
|
|
46
|
+
<td>
|
|
47
|
+
<Base disabled value="i can't move" />
|
|
48
|
+
</td>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td>Time input (native)</td>
|
|
52
|
+
<td>
|
|
53
|
+
<Base type="time" />
|
|
54
|
+
</td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<td>Time input with value</td>
|
|
58
|
+
<td>
|
|
59
|
+
<Base type="time" value="14:30" />
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>Time input with min/max</td>
|
|
64
|
+
<td>
|
|
65
|
+
<Base type="time" min="09:00" max="17:00" value="12:00" />
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
</tbody>
|
|
69
|
+
</table>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function NativeInputTypes() {
|
|
74
|
+
const inputTypes = [
|
|
75
|
+
{ type: 'text', value: 'Hello World', description: 'Text input' },
|
|
76
|
+
{ type: 'password', value: 'secret123', description: 'Password input' },
|
|
77
|
+
{ type: 'email', value: 'user@example.com', description: 'Email input' },
|
|
78
|
+
{ type: 'url', value: 'https://example.com', description: 'URL input' },
|
|
79
|
+
{ type: 'tel', value: '+1-555-123-4567', description: 'Telephone input' },
|
|
80
|
+
{ type: 'number', value: '42', description: 'Number input' },
|
|
81
|
+
{ type: 'range', value: '50', description: 'Range slider' },
|
|
82
|
+
{ type: 'date', value: '2024-01-15', description: 'Date picker' },
|
|
83
|
+
{ type: 'time', value: '14:30', description: 'Time picker' },
|
|
84
|
+
{
|
|
85
|
+
type: 'datetime-local',
|
|
86
|
+
value: '2024-01-15T14:30',
|
|
87
|
+
description: 'Date and time picker',
|
|
88
|
+
},
|
|
89
|
+
{ type: 'month', value: '2024-01', description: 'Month picker' },
|
|
90
|
+
{ type: 'week', value: '2024-W03', description: 'Week picker' },
|
|
91
|
+
{ type: 'color', value: '#ff0000', description: 'Color picker' },
|
|
92
|
+
{ type: 'search', value: 'search term', description: 'Search input' },
|
|
93
|
+
{ type: 'file', description: 'File upload' },
|
|
94
|
+
{ type: 'checkbox', description: 'Checkbox' },
|
|
95
|
+
{ type: 'radio', description: 'Radio button' },
|
|
96
|
+
{ type: 'submit', value: 'Submit', description: 'Submit button' },
|
|
97
|
+
{ type: 'reset', value: 'Reset', description: 'Reset button' },
|
|
98
|
+
{ type: 'button', value: 'Button', description: 'Button' },
|
|
99
|
+
{ type: 'image', description: 'Image button' },
|
|
100
|
+
{ type: 'hidden', value: 'hidden value', description: 'Hidden input' },
|
|
101
|
+
];
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<VStack overflowY="auto">
|
|
105
|
+
<table className={styles.story}>
|
|
106
|
+
<thead>
|
|
107
|
+
<tr>
|
|
108
|
+
<th>Type</th>
|
|
109
|
+
<th>Description</th>
|
|
110
|
+
<th>Component</th>
|
|
111
|
+
</tr>
|
|
112
|
+
</thead>
|
|
113
|
+
<tbody>
|
|
114
|
+
{inputTypes.map(({ type, value, description }) => (
|
|
115
|
+
<tr key={type}>
|
|
116
|
+
<td>
|
|
117
|
+
<code>{type}</code>
|
|
118
|
+
</td>
|
|
119
|
+
<td>{description}</td>
|
|
120
|
+
<td>
|
|
121
|
+
<Base type={type} value={value} />
|
|
122
|
+
</td>
|
|
123
|
+
</tr>
|
|
124
|
+
))}
|
|
125
|
+
</tbody>
|
|
126
|
+
</table>
|
|
127
|
+
</VStack>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import classnames from 'classnames';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { HTMLAttributes } from 'react';
|
|
4
|
+
import styles from './input.module.css';
|
|
5
|
+
|
|
6
|
+
export interface InputProps extends Omit<HTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
7
|
+
type?: React.HTMLInputTypeAttribute;
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
min?: string;
|
|
13
|
+
max?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
onChange?: (value: string, event?: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const Input = React.forwardRef(function Input(
|
|
19
|
+
{ type = 'text', style, className, width, height, onChange, ...props }: InputProps,
|
|
20
|
+
ref: React.Ref<HTMLInputElement>
|
|
21
|
+
) {
|
|
22
|
+
return (
|
|
23
|
+
<input
|
|
24
|
+
className={classnames(styles.input, className, 'input')}
|
|
25
|
+
type={type}
|
|
26
|
+
ref={ref}
|
|
27
|
+
data-is-disabled={props.disabled || false}
|
|
28
|
+
aria-disabled={props.disabled || false}
|
|
29
|
+
onChange={e => {
|
|
30
|
+
onChange && onChange(e.currentTarget.value, e);
|
|
31
|
+
}}
|
|
32
|
+
{...props}
|
|
33
|
+
style={{ width, height, ...style }}
|
|
34
|
+
/>
|
|
35
|
+
);
|
|
36
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { MaskPresenter } from '../mask_presenter.js';
|
|
2
|
+
import { describe, expect, test } from 'vitest';
|
|
3
|
+
|
|
4
|
+
describe('MaskPresenter', () => {
|
|
5
|
+
test('Empty Mask', () => {
|
|
6
|
+
expect(() => {
|
|
7
|
+
new MaskPresenter([{ mask: '' }]);
|
|
8
|
+
}).toThrow();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
test('All Constants', () => {
|
|
12
|
+
expect(() => {
|
|
13
|
+
new MaskPresenter([{ mask: '()' }]);
|
|
14
|
+
}).toThrow();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
test('Valid Mask', () => {
|
|
18
|
+
const maskPresenter = new MaskPresenter([{ mask: '(9)' }]);
|
|
19
|
+
maskPresenter.insertText('(1)');
|
|
20
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(1)');
|
|
21
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(3);
|
|
22
|
+
maskPresenter.insertText('2');
|
|
23
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(1)');
|
|
24
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(3);
|
|
25
|
+
maskPresenter.moveCursorLeft();
|
|
26
|
+
maskPresenter.clearAll();
|
|
27
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(_)');
|
|
28
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(0);
|
|
29
|
+
maskPresenter.insertText('3');
|
|
30
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(3)');
|
|
31
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(2);
|
|
32
|
+
maskPresenter.setSelection(0, 3);
|
|
33
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(0);
|
|
34
|
+
maskPresenter.insertText('4');
|
|
35
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(4)');
|
|
36
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(2);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
test('Pasting around constants', () => {
|
|
40
|
+
const maskPresenter = new MaskPresenter([{ mask: '(9)(9)' }]);
|
|
41
|
+
maskPresenter.insertText('(1)');
|
|
42
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(1)(_)');
|
|
43
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(3);
|
|
44
|
+
maskPresenter.insertText('2');
|
|
45
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(1)(2)');
|
|
46
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(5);
|
|
47
|
+
maskPresenter.setSelection(0, 6);
|
|
48
|
+
maskPresenter.insertText('34');
|
|
49
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(3)(4)');
|
|
50
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(5);
|
|
51
|
+
maskPresenter.setSelection(0, 6);
|
|
52
|
+
maskPresenter.insertText('(5)(6)');
|
|
53
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('(5)(6)');
|
|
54
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(6);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
test('Date', () => {
|
|
58
|
+
const maskPresenter = new MaskPresenter([{ mask: '99/99/99' }]);
|
|
59
|
+
maskPresenter.insertText('01/aa/90');
|
|
60
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('01/90/__');
|
|
61
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(5);
|
|
62
|
+
maskPresenter.insertText('77');
|
|
63
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('01/90/77');
|
|
64
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(8);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
test('Initialize', () => {
|
|
68
|
+
const maskPresenter = new MaskPresenter([{ mask: '99/99/99' }]);
|
|
69
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('__/__/__');
|
|
70
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(0);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
test('Move Cursor and set slots.', () => {
|
|
74
|
+
const maskPresenter = new MaskPresenter([{ mask: '99/99/99' }]);
|
|
75
|
+
maskPresenter.moveCursorTo(2);
|
|
76
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(0);
|
|
77
|
+
maskPresenter.insertText('4');
|
|
78
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('4_/__/__');
|
|
79
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(1);
|
|
80
|
+
maskPresenter.moveCursorTo(5);
|
|
81
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(2);
|
|
82
|
+
maskPresenter.insertText('6');
|
|
83
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('4_/6_/__');
|
|
84
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(4);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
test('Escaping characters.', () => {
|
|
88
|
+
const maskPresenter = new MaskPresenter([{ mask: '\\99/99/99' }]);
|
|
89
|
+
maskPresenter.insertText('4');
|
|
90
|
+
expect(maskPresenter.cursorPositionBroadcast.get()).toBe(2);
|
|
91
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('94/__/__');
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
test.skip('Escaping characters all escaped.', () => {
|
|
95
|
+
expect(() => {
|
|
96
|
+
new MaskPresenter([{ mask: '\\9\\9' }]);
|
|
97
|
+
}).toThrow();
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
test('Invalid Mask Overlay.', () => {
|
|
101
|
+
expect(() => {
|
|
102
|
+
new MaskPresenter([{ mask: '99/99/9999', placeholder: '' }]);
|
|
103
|
+
}).toThrow();
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
test('Valid mask overlay', () => {
|
|
107
|
+
const maskPresenter = new MaskPresenter([
|
|
108
|
+
{ mask: '99/99/9999', placeholder: 'mm/dd/yyyy' },
|
|
109
|
+
]);
|
|
110
|
+
maskPresenter.insertText('0');
|
|
111
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('0m/dd/yyyy');
|
|
112
|
+
maskPresenter.insertText('9');
|
|
113
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('09/dd/yyyy');
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
test('Insert past the end', () => {
|
|
117
|
+
const maskPresenter = new MaskPresenter([
|
|
118
|
+
{ mask: '99/99/9999', placeholder: 'mm/dd/yyyy' },
|
|
119
|
+
]);
|
|
120
|
+
maskPresenter.insertText('000099998888');
|
|
121
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('00/00/9999');
|
|
122
|
+
maskPresenter.insertText('5');
|
|
123
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('00/00/9999');
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
test('Using an emoji in the mask.', () => {
|
|
127
|
+
const maskPresenter = new MaskPresenter([{ mask: '😀9😃9😄9😁' }]);
|
|
128
|
+
maskPresenter.insertText('0000');
|
|
129
|
+
expect(maskPresenter.valueBroadcast.get()).toBe('😀0😃0😄0😁');
|
|
130
|
+
});
|
|
131
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RegexCharacter } from './regex_character.js';
|
|
2
|
+
|
|
3
|
+
export class AlphaCharacter extends RegexCharacter {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param character The character supplied to the mask.
|
|
7
|
+
* @param placeholder The placeholder supplied to the mask.
|
|
8
|
+
*/
|
|
9
|
+
constructor(character: string, placeholder: string) {
|
|
10
|
+
super(character, /[a-zA-Z]/, placeholder);
|
|
11
|
+
this.type = 'alpha';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RegexCharacter } from './regex_character.js';
|
|
2
|
+
|
|
3
|
+
export class AlphaNumericCharacter extends RegexCharacter {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param character The character supplied to the mask.
|
|
7
|
+
* @param placeholder The placeholder supplied to the mask.
|
|
8
|
+
*/
|
|
9
|
+
constructor(character: string, placeholder: string) {
|
|
10
|
+
super(character, /[a-zA-Z0-9]/, placeholder);
|
|
11
|
+
this.type = 'alpha-numeric';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MaskCursor } from './mask_cursor.js';
|
|
2
|
+
|
|
3
|
+
export abstract class Character {
|
|
4
|
+
type: string;
|
|
5
|
+
value: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
|
|
8
|
+
constructor(_character: string, _placeholderCharacter?: string) {
|
|
9
|
+
this.type = 'character';
|
|
10
|
+
this.value = _character;
|
|
11
|
+
this.placeholder = _placeholderCharacter == null ? _character : _placeholderCharacter;
|
|
12
|
+
}
|
|
13
|
+
enterFromRight(_cursor: MaskCursor) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
enterFromLeft(_cursor: MaskCursor) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
enter(_cursor: MaskCursor) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
insert(_value: string, _cursor: MaskCursor): boolean {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
delete() {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
isFilled() {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { MaskCursor } from './mask_cursor.js';
|
|
2
|
+
import { Character } from './character.js';
|
|
3
|
+
|
|
4
|
+
export class ConstantCharacter extends Character {
|
|
5
|
+
constructor(character: string, placeholderCharacter?: string) {
|
|
6
|
+
super(character, placeholderCharacter);
|
|
7
|
+
this.type = 'constant';
|
|
8
|
+
this.value = character;
|
|
9
|
+
this.placeholder = placeholderCharacter == null ? character : placeholderCharacter;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
enterFromRight(cursor: MaskCursor): void {
|
|
13
|
+
const position = cursor.getCursorPosition();
|
|
14
|
+
const isEmptyBeforeCurrentPosition = cursor.isEmptyBeforeIndex(position);
|
|
15
|
+
if (isEmptyBeforeCurrentPosition) {
|
|
16
|
+
cursor.moveLeft();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (cursor.arePreviousCharactersAllConstants() || position === 0) {
|
|
20
|
+
cursor.moveRight();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enter(cursor: MaskCursor) {
|
|
25
|
+
if (cursor.isPreviousCharacterEmpty()) {
|
|
26
|
+
cursor.moveLeft();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
insert(value: string, cursor: MaskCursor): boolean {
|
|
31
|
+
if (value === this.value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
cursor.moveRight();
|
|
36
|
+
if (cursor.getCursorPosition() !== cursor.getCharacterLength() - 1) {
|
|
37
|
+
return cursor.insert(value);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
isFilled(): boolean {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { BodyText } from '../../typography/index.js';
|
|
3
|
+
import { Box } from '../../stacks/box/box.js';
|
|
4
|
+
import { Spacer } from '../../stacks/spacer.js';
|
|
5
|
+
import { VStack } from '../../stacks/v_stack.js';
|
|
6
|
+
import { ZStack } from '../../stacks/z_stack.js';
|
|
7
|
+
import { KeyCaptureInput as Component, Range } from './key_capture_input.js';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Key Capture Input',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export function KeyCaptureInput() {
|
|
14
|
+
const [value, setValue] = useState('');
|
|
15
|
+
const [key, setKey] = useState('');
|
|
16
|
+
const [meta, setMeta] = useState('');
|
|
17
|
+
|
|
18
|
+
function record(
|
|
19
|
+
input: string,
|
|
20
|
+
key: string,
|
|
21
|
+
selection: Range | null,
|
|
22
|
+
cursorPosition: number,
|
|
23
|
+
finalCursorPosition: number
|
|
24
|
+
) {
|
|
25
|
+
setKey(input);
|
|
26
|
+
setMeta(
|
|
27
|
+
`input: "${input}", key: ${key}, selection: ${selection?.start}-${selection?.end}, cursor: ${cursorPosition}, finalCursor: ${finalCursorPosition}`
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<VStack>
|
|
33
|
+
<Component
|
|
34
|
+
onKeyCapture={record}
|
|
35
|
+
value={value}
|
|
36
|
+
onChange={(value, _event) => {
|
|
37
|
+
setValue(value);
|
|
38
|
+
}}
|
|
39
|
+
/>
|
|
40
|
+
<Spacer height="10px" />
|
|
41
|
+
<ZStack
|
|
42
|
+
width="auto"
|
|
43
|
+
minWidth="50px"
|
|
44
|
+
paddingInline="8px"
|
|
45
|
+
height="50px"
|
|
46
|
+
style={{ borderRadius: '8px', boxShadow: '0 0 10px rgba(0, 0, 0, 0.25)' }}
|
|
47
|
+
>
|
|
48
|
+
<BodyText size="lg" emphasis="strong">
|
|
49
|
+
{key}
|
|
50
|
+
</BodyText>
|
|
51
|
+
</ZStack>
|
|
52
|
+
<Spacer />
|
|
53
|
+
<Box
|
|
54
|
+
width="auto"
|
|
55
|
+
minWidth="50px"
|
|
56
|
+
height="auto"
|
|
57
|
+
minHeight="50px"
|
|
58
|
+
style={{ borderRadius: '8px' }}
|
|
59
|
+
padding="8px"
|
|
60
|
+
>
|
|
61
|
+
<ZStack>
|
|
62
|
+
<BodyText size="lg" emphasis="strong">
|
|
63
|
+
{meta}
|
|
64
|
+
</BodyText>
|
|
65
|
+
</ZStack>
|
|
66
|
+
</Box>
|
|
67
|
+
</VStack>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { useForkRef } from '../../utils/index.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useRef } from 'react';
|
|
4
|
+
import { Input, InputProps } from '../input/input.js';
|
|
5
|
+
|
|
6
|
+
export interface Range {
|
|
7
|
+
start: number;
|
|
8
|
+
end: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface KeyCaptureInputProps extends InputProps {
|
|
12
|
+
onKeyCapture?: (
|
|
13
|
+
input: string,
|
|
14
|
+
key: string,
|
|
15
|
+
selection: Range | null,
|
|
16
|
+
cursorPosition: number,
|
|
17
|
+
finalCursorPosition: number,
|
|
18
|
+
inputElement: HTMLInputElement
|
|
19
|
+
) => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const KeyCaptureInput = React.forwardRef(function InputCapture(
|
|
23
|
+
{ onKeyCapture, onKeyDown, onInput, ...props }: KeyCaptureInputProps,
|
|
24
|
+
ref
|
|
25
|
+
) {
|
|
26
|
+
const valueLengthRef = useRef(0);
|
|
27
|
+
const selectionStartRef = useRef(0);
|
|
28
|
+
const selectionEndRef = useRef(0);
|
|
29
|
+
const minCursorPositionRef = useRef(0);
|
|
30
|
+
const maxCursorPositionRef = useRef(0);
|
|
31
|
+
const cursorPositionRef = useRef(0);
|
|
32
|
+
const inputRef = useRef<HTMLInputElement | null>(null);
|
|
33
|
+
const forkedRef = useForkRef(ref, inputRef);
|
|
34
|
+
|
|
35
|
+
function handleKeydown(event: React.KeyboardEvent<HTMLInputElement>) {
|
|
36
|
+
const inputElement = inputRef.current;
|
|
37
|
+
|
|
38
|
+
if (inputElement == null) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
valueLengthRef.current = inputElement.value.length;
|
|
43
|
+
selectionStartRef.current =
|
|
44
|
+
inputElement.selectionStart == null ? 0 : inputElement.selectionStart;
|
|
45
|
+
selectionEndRef.current =
|
|
46
|
+
inputElement.selectionEnd == null ? 0 : inputElement.selectionEnd;
|
|
47
|
+
cursorPositionRef.current = selectionEndRef.current;
|
|
48
|
+
minCursorPositionRef.current = Math.min(
|
|
49
|
+
selectionStartRef.current,
|
|
50
|
+
selectionEndRef.current
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
maxCursorPositionRef.current = Math.max(
|
|
54
|
+
selectionStartRef.current,
|
|
55
|
+
selectionEndRef.current
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
onKeyDown && onKeyDown(event);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function handleInput(event: React.ChangeEvent<HTMLInputElement>) {
|
|
62
|
+
const inputElement = inputRef.current;
|
|
63
|
+
|
|
64
|
+
if (inputElement == null) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const valueLength = inputElement.value.length;
|
|
69
|
+
const hadSelection = selectionStartRef.current !== selectionEndRef.current;
|
|
70
|
+
const inputSelectionStart =
|
|
71
|
+
inputElement.selectionStart == null ? 0 : inputElement.selectionStart;
|
|
72
|
+
const inputSelectionEnd =
|
|
73
|
+
inputElement.selectionEnd == null ? 0 : inputElement.selectionEnd;
|
|
74
|
+
const minCursorPosition = Math.min(inputSelectionStart, inputSelectionEnd);
|
|
75
|
+
const maxCursorPosition = Math.max(inputSelectionStart, inputSelectionEnd);
|
|
76
|
+
const cursorPosition = inputSelectionEnd;
|
|
77
|
+
|
|
78
|
+
if (hadSelection) {
|
|
79
|
+
const input = inputElement.value.slice(
|
|
80
|
+
minCursorPositionRef.current,
|
|
81
|
+
maxCursorPosition
|
|
82
|
+
);
|
|
83
|
+
const selection = {
|
|
84
|
+
start: selectionStartRef.current,
|
|
85
|
+
end: selectionEndRef.current,
|
|
86
|
+
};
|
|
87
|
+
onKeyCapture &&
|
|
88
|
+
onKeyCapture(
|
|
89
|
+
input,
|
|
90
|
+
'',
|
|
91
|
+
selection,
|
|
92
|
+
cursorPositionRef.current,
|
|
93
|
+
cursorPosition,
|
|
94
|
+
inputElement
|
|
95
|
+
);
|
|
96
|
+
} else {
|
|
97
|
+
const collapsed = valueLengthRef.current > valueLength;
|
|
98
|
+
if (collapsed) {
|
|
99
|
+
const deleted = minCursorPositionRef.current === minCursorPosition;
|
|
100
|
+
|
|
101
|
+
if (deleted) {
|
|
102
|
+
onKeyCapture &&
|
|
103
|
+
onKeyCapture(
|
|
104
|
+
'',
|
|
105
|
+
'Delete',
|
|
106
|
+
null,
|
|
107
|
+
cursorPositionRef.current,
|
|
108
|
+
cursorPosition,
|
|
109
|
+
inputElement
|
|
110
|
+
);
|
|
111
|
+
} else {
|
|
112
|
+
onKeyCapture &&
|
|
113
|
+
onKeyCapture(
|
|
114
|
+
'',
|
|
115
|
+
'Backspace',
|
|
116
|
+
null,
|
|
117
|
+
cursorPositionRef.current,
|
|
118
|
+
cursorPosition,
|
|
119
|
+
inputElement
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
} else {
|
|
123
|
+
const input = inputElement.value.slice(
|
|
124
|
+
minCursorPositionRef.current,
|
|
125
|
+
maxCursorPosition
|
|
126
|
+
);
|
|
127
|
+
onKeyCapture &&
|
|
128
|
+
onKeyCapture(
|
|
129
|
+
input,
|
|
130
|
+
'',
|
|
131
|
+
null,
|
|
132
|
+
cursorPositionRef.current,
|
|
133
|
+
cursorPosition,
|
|
134
|
+
inputElement
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
onInput && onInput(event);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return (
|
|
142
|
+
<Input ref={forkedRef} onKeyDown={handleKeydown} onInput={handleInput} {...props} />
|
|
143
|
+
);
|
|
144
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RegexCharacter } from './regex_character.js';
|
|
2
|
+
|
|
3
|
+
export class LanguageCharacter extends RegexCharacter {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param character The character supplied to the mask.
|
|
7
|
+
* @param placeholder The placeholder supplied to the mask.
|
|
8
|
+
*/
|
|
9
|
+
constructor(character: string, placeholder: string) {
|
|
10
|
+
super(character, /[\p{L}]/u, placeholder);
|
|
11
|
+
this.type = 'language-character';
|
|
12
|
+
}
|
|
13
|
+
}
|