@tcn/ui 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/button/base_button/base_button.js +8 -8
- package/dist/actions/button/base_button/base_button.js.map +1 -1
- package/dist/actions/button/button/button.d.ts.map +1 -1
- package/dist/actions/button/button/button.js +13 -5
- package/dist/actions/button/button/button.js.map +1 -1
- package/dist/actions/button/button_group/button_group.d.ts.map +1 -1
- package/dist/actions/button/button_group/button_group.js +2 -5
- package/dist/actions/button/button_group/button_group.js.map +1 -1
- package/dist/actions/button/select_group/select_group.js +7 -7
- package/dist/actions/button/select_group/select_group.js.map +1 -1
- package/dist/actions/button/slim_button/slim_button.d.ts.map +1 -1
- package/dist/actions/button/slim_button/slim_button.js +4 -4
- package/dist/actions/button/slim_button/slim_button.js.map +1 -1
- package/dist/feedback/progress/progress_bar.js +1 -1
- package/dist/form/field/common/field_control/field_control.js +6 -6
- package/dist/form/field/common/field_control/field_control.js.map +1 -1
- package/dist/form/field/common/field_description.js +1 -1
- package/dist/form/field/common/field_error.js +3 -4
- package/dist/form/field/common/field_error.js.map +1 -1
- package/dist/form/field/common/field_header.js +8 -8
- package/dist/form/field/common/field_header.js.map +1 -1
- package/dist/form/field/common/field_label.js +1 -1
- package/dist/form/field/common/status_input/status_input.d.ts.map +1 -1
- package/dist/form/field/common/status_input/status_input.js +9 -15
- package/dist/form/field/common/status_input/status_input.js.map +1 -1
- package/dist/form/field/h_field/h_field.d.ts.map +1 -1
- package/dist/form/field/h_field/h_field.js +9 -9
- package/dist/form/field/h_field/h_field.js.map +1 -1
- package/dist/form/field/v_field/v_field.d.ts.map +1 -1
- package/dist/form/field/v_field/v_field.js +8 -8
- package/dist/form/field/v_field/v_field.js.map +1 -1
- package/dist/form/field_presenters/options_field_presenter.d.ts.map +1 -1
- package/dist/form/field_presenters/options_field_presenter.js.map +1 -1
- package/dist/form/field_set/field_set.d.ts.map +1 -1
- package/dist/form/field_set/field_set.js +12 -19
- package/dist/form/field_set/field_set.js.map +1 -1
- package/dist/form/form_field.d.ts.map +1 -1
- package/dist/form/form_field.js.map +1 -1
- package/dist/form/index.d.ts +14 -11
- package/dist/form/index.d.ts.map +1 -1
- package/dist/form/index.js +27 -20
- package/dist/form/index.js.map +1 -1
- package/dist/h_body.css +1 -1
- package/dist/inputs/checkbox/checkbox.js +12 -12
- package/dist/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/inputs/color_input/color_input.d.ts.map +1 -1
- package/dist/inputs/color_input/color_input.js +13 -17
- package/dist/inputs/color_input/color_input.js.map +1 -1
- package/dist/inputs/color_input/color_picker.js +6 -6
- package/dist/inputs/color_input/color_picker.js.map +1 -1
- package/dist/inputs/combo_box/combo_box.js +15 -15
- package/dist/inputs/combo_box/combo_box.js.map +1 -1
- package/dist/inputs/date_picker/date_picker.js +6 -6
- package/dist/inputs/date_picker/date_picker.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_date.js +13 -13
- package/dist/inputs/date_picker/date_picker_date.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_day.js +1 -1
- package/dist/inputs/date_picker/date_picker_header.js +24 -24
- package/dist/inputs/date_picker/date_picker_header.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_input.js +19 -19
- package/dist/inputs/date_picker/date_picker_input.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_time_selector.d.ts.map +1 -1
- package/dist/inputs/date_picker/date_picker_time_selector.js +6 -9
- package/dist/inputs/date_picker/date_picker_time_selector.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_input.js +3 -3
- package/dist/inputs/date_picker/date_picker_year_input.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_selector.d.ts.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_selector.js +18 -24
- package/dist/inputs/date_picker/date_picker_year_selector.js.map +1 -1
- package/dist/inputs/input/input.js +4 -4
- package/dist/inputs/input/input.js.map +1 -1
- package/dist/inputs/multi_combo_box/multi_combo_box.js +1 -1
- package/dist/inputs/multi_combo_box/multi_combo_box.js.map +1 -1
- package/dist/inputs/multiselect/multiselect_values.js +8 -8
- package/dist/inputs/multiselect/multiselect_values.js.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.d.ts.map +1 -1
- package/dist/inputs/phone_number_input/phone_number_input.js +28 -31
- package/dist/inputs/phone_number_input/phone_number_input.js.map +1 -1
- package/dist/inputs/radio/radio.js +14 -14
- package/dist/inputs/radio/radio.js.map +1 -1
- package/dist/inputs/select/select.js +16 -16
- package/dist/inputs/select/select.js.map +1 -1
- package/dist/inputs/slider/slider.js +7 -7
- package/dist/inputs/slider/slider.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_item.js +3 -3
- package/dist/inputs/suggestions/suggestion_item.js.map +1 -1
- package/dist/inputs/suggestions/suggestion_list.js +8 -8
- package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
- package/dist/inputs/switch/switch.js +14 -14
- package/dist/inputs/switch/switch.js.map +1 -1
- package/dist/inputs/textarea/textarea.js +6 -6
- package/dist/inputs/textarea/textarea.js.map +1 -1
- package/dist/inputs/unit_input/unit_input.js +5 -5
- package/dist/inputs/unit_input/unit_input.js.map +1 -1
- package/dist/layouts/body/h_body.d.ts.map +1 -1
- package/dist/layouts/body/h_body.js +12 -11
- package/dist/layouts/body/h_body.js.map +1 -1
- package/dist/layouts/body/v_body.d.ts.map +1 -1
- package/dist/layouts/body/v_body.js +11 -10
- package/dist/layouts/body/v_body.js.map +1 -1
- package/dist/layouts/column/column.js +16 -16
- package/dist/layouts/column/column.js.map +1 -1
- package/dist/layouts/divider/divider.d.ts +2 -2
- package/dist/layouts/divider/divider.d.ts.map +1 -1
- package/dist/layouts/divider/divider.js +22 -21
- package/dist/layouts/divider/divider.js.map +1 -1
- package/dist/layouts/footer/footer.d.ts +1 -1
- package/dist/layouts/footer/footer.d.ts.map +1 -1
- package/dist/layouts/footer/footer.js +10 -10
- package/dist/layouts/footer/footer.js.map +1 -1
- package/dist/layouts/grid/grid.d.ts.map +1 -1
- package/dist/layouts/grid/grid.js +22 -31
- package/dist/layouts/grid/grid.js.map +1 -1
- package/dist/layouts/header/header.d.ts +1 -1
- package/dist/layouts/header/header.d.ts.map +1 -1
- package/dist/layouts/header/header.js +20 -20
- package/dist/layouts/header/header.js.map +1 -1
- package/dist/layouts/list/item.js +6 -6
- package/dist/layouts/list/item.js.map +1 -1
- package/dist/layouts/list/list.js +6 -6
- package/dist/layouts/list/list.js.map +1 -1
- package/dist/layouts/sidebar_end/sidebar_end.js +15 -15
- package/dist/layouts/sidebar_end/sidebar_end.js.map +1 -1
- package/dist/layouts/sidebar_start/sidebar_start.js +16 -16
- package/dist/layouts/sidebar_start/sidebar_start.js.map +1 -1
- package/dist/layouts/utility_bar/utility_bar.d.ts +1 -1
- package/dist/layouts/utility_bar/utility_bar.d.ts.map +1 -1
- package/dist/layouts/utility_bar/utility_bar.js +20 -15
- package/dist/layouts/utility_bar/utility_bar.js.map +1 -1
- package/dist/modal.css +1 -1
- package/dist/overlay/menu/menu.js +8 -8
- package/dist/overlay/menu/menu.js.map +1 -1
- package/dist/overlay/tooltip/tooltip.js +10 -10
- package/dist/overlay/tooltip/tooltip.js.map +1 -1
- package/dist/panel.css +1 -1
- package/dist/panel.module-DwGKncon.js +5 -0
- package/dist/panel.module-DwGKncon.js.map +1 -0
- package/dist/stack.css +1 -1
- package/dist/stacks/box/bottom_resize_handle.js +9 -9
- package/dist/stacks/box/bottom_resize_handle.js.map +1 -1
- package/dist/stacks/box/box.js +42 -42
- package/dist/stacks/box/box.js.map +1 -1
- package/dist/stacks/box/end_resize_handle.js +6 -6
- package/dist/stacks/box/end_resize_handle.js.map +1 -1
- package/dist/stacks/box/left_resize_handle.js +3 -3
- package/dist/stacks/box/left_resize_handle.js.map +1 -1
- package/dist/stacks/box/right_resize_handle.js +8 -8
- package/dist/stacks/box/right_resize_handle.js.map +1 -1
- package/dist/stacks/box/start_resize_handle.js +7 -7
- package/dist/stacks/box/start_resize_handle.js.map +1 -1
- package/dist/stacks/box/top_resize_handle.js +8 -8
- package/dist/stacks/box/top_resize_handle.js.map +1 -1
- package/dist/stacks/h_collapsible_box.js +5 -5
- package/dist/stacks/h_collapsible_box.js.map +1 -1
- package/dist/stacks/h_stack.js +26 -26
- package/dist/stacks/h_stack.js.map +1 -1
- package/dist/stacks/spacer.js +5 -5
- package/dist/stacks/spacer.js.map +1 -1
- package/dist/stacks/story_components/circle.js +6 -6
- package/dist/stacks/story_components/circle.js.map +1 -1
- package/dist/stacks/story_components/picture_placeholder.js +8 -8
- package/dist/stacks/story_components/picture_placeholder.js.map +1 -1
- package/dist/stacks/story_components/rect.js +11 -11
- package/dist/stacks/story_components/rect.js.map +1 -1
- package/dist/stacks/types/styles.d.ts +2 -2
- package/dist/stacks/types/styles.d.ts.map +1 -1
- package/dist/stacks/v_collapsible_box.js +8 -8
- package/dist/stacks/v_collapsible_box.js.map +1 -1
- package/dist/stacks/v_stack.js +35 -35
- package/dist/stacks/v_stack.js.map +1 -1
- package/dist/stacks/z_stack.js +34 -34
- package/dist/stacks/z_stack.js.map +1 -1
- package/dist/surfaces/alert/alert.js +8 -8
- package/dist/surfaces/alert/alert.js.map +1 -1
- package/dist/surfaces/card/card.js +8 -8
- package/dist/surfaces/card/card.js.map +1 -1
- package/dist/surfaces/confirm/confirm.d.ts.map +1 -1
- package/dist/surfaces/confirm/confirm.js +13 -20
- package/dist/surfaces/confirm/confirm.js.map +1 -1
- package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js +5 -5
- package/dist/surfaces/drawers/drawer_bottom/drawer_bottom.js.map +1 -1
- package/dist/surfaces/drawers/drawer_end/drawer_end.js +8 -8
- package/dist/surfaces/drawers/drawer_end/drawer_end.js.map +1 -1
- package/dist/surfaces/drawers/drawer_start/drawer_start.js +4 -4
- package/dist/surfaces/drawers/drawer_start/drawer_start.js.map +1 -1
- package/dist/surfaces/drawers/drawer_top/drawer_top.js +4 -4
- package/dist/surfaces/drawers/drawer_top/drawer_top.js.map +1 -1
- package/dist/surfaces/modal/modal.d.ts +2 -4
- package/dist/surfaces/modal/modal.d.ts.map +1 -1
- package/dist/surfaces/modal/modal.js +16 -7
- package/dist/surfaces/modal/modal.js.map +1 -1
- package/dist/surfaces/page/h_page.js +6 -6
- package/dist/surfaces/page/h_page.js.map +1 -1
- package/dist/surfaces/page/v_page.js +9 -9
- package/dist/surfaces/page/v_page.js.map +1 -1
- package/dist/surfaces/panel/h_panel.d.ts +1 -1
- package/dist/surfaces/panel/h_panel.d.ts.map +1 -1
- package/dist/surfaces/panel/h_panel.js +36 -31
- package/dist/surfaces/panel/h_panel.js.map +1 -1
- package/dist/surfaces/panel/v_panel.d.ts +1 -1
- package/dist/surfaces/panel/v_panel.d.ts.map +1 -1
- package/dist/surfaces/panel/v_panel.js +39 -34
- package/dist/surfaces/panel/v_panel.js.map +1 -1
- package/dist/surfaces/popover/popover.js +34 -34
- package/dist/surfaces/popover/popover.js.map +1 -1
- package/dist/surfaces/window/window.d.ts.map +1 -1
- package/dist/surfaces/window/window.js +6 -14
- package/dist/surfaces/window/window.js.map +1 -1
- package/dist/themes/index.d.ts +0 -2
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/themes/index.js +5 -204
- package/dist/themes/index.js.map +1 -1
- package/dist/themes/themes/ergo/ergo_theme.css +1 -1
- package/dist/tokens/badge/badge.js +13 -13
- package/dist/tokens/badge/badge.js.map +1 -1
- package/dist/tokens/bubble/bubble.js +16 -17
- package/dist/tokens/bubble/bubble.js.map +1 -1
- package/dist/tokens/chip/chip.js +10 -11
- package/dist/tokens/chip/chip.js.map +1 -1
- package/dist/typography/body_text/body_text.js +21 -21
- package/dist/typography/body_text/body_text.js.map +1 -1
- package/dist/typography/callout/callout.js +16 -16
- package/dist/typography/callout/callout.js.map +1 -1
- package/dist/typography/caption/caption.js +13 -13
- package/dist/typography/caption/caption.js.map +1 -1
- package/dist/typography/footnote/footnote.js +14 -14
- package/dist/typography/footnote/footnote.js.map +1 -1
- package/dist/typography/headline/headline.js +12 -12
- package/dist/typography/headline/headline.js.map +1 -1
- package/dist/typography/subheadline/subheadline.js +13 -13
- package/dist/typography/subheadline/subheadline.js.map +1 -1
- package/dist/typography/title/title.d.ts +1 -1
- package/dist/typography/title/title.d.ts.map +1 -1
- package/dist/typography/title/title.js +19 -19
- package/dist/typography/title/title.js.map +1 -1
- package/dist/v_body.css +1 -1
- package/package.json +23 -4
- package/src/actions/button/__stories__/button.stories.tsx +1 -1
- package/src/actions/button/__stories__/button_group.stories.tsx +1 -1
- package/src/actions/button/__stories__/select_group.stories.tsx +1 -1
- package/src/actions/button/__stories__/slim_button.stories.tsx +1 -1
- package/src/actions/button/base_button/base_button.tsx +2 -2
- package/src/actions/button/button/button.tsx +10 -4
- package/src/actions/button/button_group/button_group.tsx +4 -7
- package/src/actions/button/select_group/select_group.tsx +3 -3
- package/src/actions/button/slim_button/slim_button.tsx +3 -2
- package/src/feedback/lazy/lazy.stories.tsx +1 -1
- package/src/feedback/loading/__storybook__/loading.stories.tsx +1 -1
- package/src/feedback/progress/progress_bar.stories.tsx +1 -1
- package/src/form/field/common/field_control/field_control.tsx +2 -2
- package/src/form/field/common/field_header.tsx +2 -2
- package/src/form/field/common/status_input/status_input.tsx +4 -7
- package/src/form/field/field.stories.tsx +2 -1
- package/src/form/field/h_field/h_field.stories.tsx +10 -1
- package/src/form/field/h_field/h_field.tsx +3 -3
- package/src/form/field/v_field/v_field.stories.tsx +10 -1
- package/src/form/field/v_field/v_field.tsx +3 -3
- package/src/form/field_presenters/options_field_presenter.ts +1 -1
- package/src/form/field_set/field_set.stories.tsx +9 -1
- package/src/form/field_set/field_set.tsx +4 -7
- package/src/form/form_field.tsx +1 -1
- package/src/form/index.ts +50 -11
- package/src/inputs/checkbox/checkbox.stories.tsx +9 -1
- package/src/inputs/checkbox/checkbox.tsx +2 -2
- package/src/inputs/color_input/color_input.stories.tsx +9 -1
- package/src/inputs/color_input/color_input.tsx +2 -6
- package/src/inputs/color_input/color_picker.tsx +2 -2
- package/src/inputs/combo_box/combo_box.stories.tsx +14 -5
- package/src/inputs/combo_box/combo_box.tsx +2 -2
- package/src/inputs/date_picker/date_picker.stories.tsx +18 -10
- package/src/inputs/date_picker/date_picker.tsx +3 -3
- package/src/inputs/date_picker/date_picker_date.tsx +3 -3
- package/src/inputs/date_picker/date_picker_header.tsx +2 -2
- package/src/inputs/date_picker/date_picker_input.stories.tsx +15 -7
- package/src/inputs/date_picker/date_picker_input.tsx +3 -3
- package/src/inputs/date_picker/date_picker_time_selector.tsx +5 -8
- package/src/inputs/date_picker/date_picker_year_input.tsx +2 -2
- package/src/inputs/date_picker/date_picker_year_selector.tsx +3 -9
- package/src/inputs/input/input.stories.tsx +9 -1
- package/src/inputs/input/input.tsx +2 -2
- package/src/inputs/mask_input/key_capture_input.stories.tsx +9 -1
- package/src/inputs/mask_input/mask_input.stories.tsx +10 -1
- package/src/inputs/multi_combo_box/multi_combo_box.stories.tsx +10 -1
- package/src/inputs/multi_combo_box/multi_combo_box.tsx +2 -2
- package/src/inputs/multiselect/multiselect_values.tsx +2 -2
- package/src/inputs/multiselect/mutliselect.stories.tsx +10 -1
- package/src/inputs/phone_number_input/phone_number_input.stories.tsx +10 -1
- package/src/inputs/phone_number_input/phone_number_input.tsx +6 -9
- package/src/inputs/radio/radio.stories.tsx +14 -6
- package/src/inputs/radio/radio.tsx +2 -2
- package/src/inputs/select/select.stories.tsx +18 -9
- package/src/inputs/select/select.tsx +2 -2
- package/src/inputs/slider/slider.stories.tsx +9 -1
- package/src/inputs/slider/slider.tsx +2 -2
- package/src/inputs/suggestions/suggestion_item.tsx +2 -2
- package/src/inputs/suggestions/suggestion_list.stories.tsx +21 -12
- package/src/inputs/suggestions/suggestion_list.tsx +3 -3
- package/src/inputs/switch/switch.stories.tsx +9 -1
- package/src/inputs/switch/switch.tsx +4 -4
- package/src/inputs/textarea/textarea.stories.tsx +9 -1
- package/src/inputs/textarea/textarea.tsx +2 -2
- package/src/inputs/unit_input/unit_input.stories.tsx +9 -1
- package/src/inputs/unit_input/unit_input.tsx +4 -4
- package/src/layouts/body/h_body.module.css +3 -2
- package/src/layouts/body/h_body.tsx +5 -4
- package/src/layouts/body/v_body.module.css +3 -2
- package/src/layouts/body/v_body.tsx +5 -4
- package/src/layouts/column/column.tsx +3 -3
- package/src/layouts/divider/__stories__/divider.stories.tsx +59 -19
- package/src/layouts/divider/divider.tsx +6 -5
- package/src/layouts/footer/footer.tsx +4 -4
- package/src/layouts/grid/grid.stories.tsx +42 -34
- package/src/layouts/grid/grid.tsx +2 -7
- package/src/layouts/header/header.tsx +4 -4
- package/src/layouts/list/item.tsx +2 -2
- package/src/layouts/list/list.tsx +2 -2
- package/src/layouts/sidebar_end/sidebar_end.tsx +2 -2
- package/src/layouts/sidebar_start/sidebar_start.tsx +2 -2
- package/src/layouts/utility_bar/utility_bar.tsx +9 -4
- package/src/overlay/context_menu/context_menu.stories.tsx +13 -5
- package/src/overlay/menu/menu.stories.tsx +22 -14
- package/src/overlay/menu/menu.tsx +3 -3
- package/src/overlay/popper/popper.stories.tsx +43 -22
- package/src/overlay/portal/portal.stories.tsx +10 -1
- package/src/overlay/tooltip/tooltip.stories.tsx +9 -2
- package/src/overlay/tooltip/tooltip.tsx +2 -2
- package/src/stacks/box/bottom_resize_handle.tsx +2 -2
- package/src/stacks/box/box.tsx +2 -2
- package/src/stacks/box/end_resize_handle.tsx +2 -2
- package/src/stacks/box/left_resize_handle.tsx +2 -2
- package/src/stacks/box/right_resize_handle.tsx +2 -2
- package/src/stacks/box/start_resize_handle.tsx +2 -2
- package/src/stacks/box/top_resize_handle.tsx +2 -2
- package/src/stacks/collapsible_box.stories.tsx +10 -1
- package/src/stacks/h_collapsible_box.tsx +2 -2
- package/src/stacks/h_stack.stories.tsx +104 -59
- package/src/stacks/h_stack.tsx +2 -2
- package/src/stacks/spacer.tsx +2 -2
- package/src/stacks/stack.module.css +54 -5
- package/src/stacks/stacks.mdx +28 -28
- package/src/stacks/story_components/circle.tsx +2 -2
- package/src/stacks/story_components/picture_placeholder.tsx +2 -2
- package/src/stacks/story_components/rect.tsx +2 -2
- package/src/stacks/types/styles.ts +2 -2
- package/src/stacks/v_collapsible_box.tsx +2 -2
- package/src/stacks/v_stack.stories.tsx +91 -10
- package/src/stacks/v_stack.tsx +2 -2
- package/src/stacks/z_stack.stories.tsx +9 -1
- package/src/stacks/z_stack.tsx +2 -2
- package/src/surfaces/alert/alert.stories.tsx +4 -4
- package/src/surfaces/alert/alert.tsx +2 -2
- package/src/surfaces/card/card.tsx +2 -2
- package/src/surfaces/confirm/confirm.stories.tsx +4 -4
- package/src/surfaces/confirm/confirm.tsx +3 -6
- package/src/surfaces/drawers/__stories__/drawers.stories.tsx +1 -1
- package/src/surfaces/drawers/drawer_bottom/drawer_bottom.tsx +2 -2
- package/src/surfaces/drawers/drawer_end/drawer_end.tsx +2 -2
- package/src/surfaces/drawers/drawer_start/drawer_start.tsx +2 -2
- package/src/surfaces/drawers/drawer_top/drawer_top.tsx +2 -2
- package/src/surfaces/modal/__stories__/modal.stories.tsx +54 -0
- package/src/surfaces/modal/modal.module.css +2 -1
- package/src/surfaces/modal/modal.tsx +9 -6
- package/src/surfaces/page/h_page.tsx +2 -2
- package/src/surfaces/page/v_page.tsx +2 -2
- package/src/surfaces/panel/__stories__/panel.stories.tsx +68 -0
- package/src/surfaces/panel/__stories__/panel_stories.module.css +13 -0
- package/src/surfaces/panel/h_panel.tsx +12 -6
- package/src/surfaces/panel/panel.module.css +2 -7
- package/src/surfaces/panel/v_panel.tsx +11 -5
- package/src/surfaces/popover/popover.tsx +2 -2
- package/src/surfaces/window/window.stories.tsx +1 -1
- package/src/surfaces/window/window.tsx +2 -6
- package/src/themes/index.ts +0 -2
- package/src/themes/stories/themes.stories.tsx +1 -1
- package/src/themes/themes/ergo/ergo_theme.css +142 -10
- package/src/tokens/badge/badge.stories.tsx +6 -6
- package/src/tokens/badge/badge.tsx +3 -3
- package/src/tokens/bubble/bubble.stories.tsx +16 -9
- package/src/tokens/bubble/bubble.tsx +2 -2
- package/src/tokens/chip/chip.stories.tsx +1 -1
- package/src/tokens/chip/chip.tsx +2 -2
- package/src/typography/body_text/body_text.tsx +2 -2
- package/src/typography/callout/callout.tsx +2 -2
- package/src/typography/caption/caption.tsx +2 -2
- package/src/typography/footnote/footnote.tsx +2 -2
- package/src/typography/headline/headline.tsx +2 -2
- package/src/typography/subheadline/subheadline.tsx +2 -2
- package/src/typography/title/title.tsx +3 -3
- package/src/typography/typography-showcase.stories.tsx +2 -2
- package/src/utils/click_away_listener.stories.tsx +21 -11
- package/src/utils/responsive/responsive_renderer.stories.tsx +7 -7
- package/src/utils/scroll_away_listener.stories.tsx +11 -1
- package/dist/form/field/form_field.d.ts +0 -6
- package/dist/form/field/form_field.d.ts.map +0 -1
- package/dist/form/field/form_field.js +0 -18
- package/dist/form/field/form_field.js.map +0 -1
- package/dist/panel.module-CtikcmYB.js +0 -5
- package/dist/panel.module-CtikcmYB.js.map +0 -1
- package/src/form/field/form_field.tsx +0 -29
- package/src/surfaces/modal/modal.stories.tsx +0 -15
package/dist/stacks/h_stack.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as K } from "react/jsx-runtime";
|
|
2
|
-
import L from "
|
|
2
|
+
import { clsx as L } from "clsx";
|
|
3
3
|
import M from "react";
|
|
4
4
|
import { removeUndefinedProperties as O } from "./utils/remove_undefined_properties.js";
|
|
5
5
|
import { s as Q } from "../stack.module-CBV1f12Z.js";
|
|
6
|
-
import { isCustomSizeProp as
|
|
6
|
+
import { isCustomSizeProp as r } from "./utils/isCustomSizeProp.js";
|
|
7
7
|
const tt = M.forwardRef(function({
|
|
8
|
-
as:
|
|
8
|
+
as: s = "div",
|
|
9
9
|
children: i,
|
|
10
10
|
style: n,
|
|
11
11
|
className: l,
|
|
12
|
-
hAlign:
|
|
13
|
-
vAlign:
|
|
12
|
+
hAlign: d = "start",
|
|
13
|
+
vAlign: m = "center",
|
|
14
14
|
inline: f,
|
|
15
15
|
allowFlow: c,
|
|
16
16
|
width: t = "default",
|
|
@@ -27,14 +27,14 @@ const tt = M.forwardRef(function({
|
|
|
27
27
|
paddingInlineStart: x,
|
|
28
28
|
paddingInlineEnd: B,
|
|
29
29
|
paddingTop: H,
|
|
30
|
-
paddingBottom:
|
|
31
|
-
margin:
|
|
32
|
-
marginBlock:
|
|
33
|
-
marginInline:
|
|
34
|
-
marginInlineStart:
|
|
35
|
-
marginInlineEnd:
|
|
36
|
-
marginTop:
|
|
37
|
-
marginBottom:
|
|
30
|
+
paddingBottom: P,
|
|
31
|
+
margin: R,
|
|
32
|
+
marginBlock: W,
|
|
33
|
+
marginInline: j,
|
|
34
|
+
marginInlineStart: z,
|
|
35
|
+
marginInlineEnd: A,
|
|
36
|
+
marginTop: C,
|
|
37
|
+
marginBottom: N,
|
|
38
38
|
zIndex: U,
|
|
39
39
|
overflowX: o,
|
|
40
40
|
overflowY: e,
|
|
@@ -43,12 +43,12 @@ const tt = M.forwardRef(function({
|
|
|
43
43
|
columnGap: D,
|
|
44
44
|
...E
|
|
45
45
|
}, F) {
|
|
46
|
-
const G =
|
|
46
|
+
const G = s, I = {
|
|
47
47
|
minWidth: p,
|
|
48
|
-
width:
|
|
48
|
+
width: r(t) ? void 0 : t,
|
|
49
49
|
maxWidth: h,
|
|
50
50
|
minHeight: g,
|
|
51
|
-
height:
|
|
51
|
+
height: r(a) ? void 0 : a,
|
|
52
52
|
maxHeight: v,
|
|
53
53
|
flexGrow: k,
|
|
54
54
|
flexShrink: u,
|
|
@@ -61,14 +61,14 @@ const tt = M.forwardRef(function({
|
|
|
61
61
|
paddingInlineStart: x,
|
|
62
62
|
paddingInlineEnd: B,
|
|
63
63
|
paddingTop: H,
|
|
64
|
-
paddingBottom:
|
|
65
|
-
margin:
|
|
66
|
-
marginBlock:
|
|
67
|
-
marginInline:
|
|
68
|
-
marginInlineStart:
|
|
69
|
-
marginInlineEnd:
|
|
70
|
-
marginTop:
|
|
71
|
-
marginBottom:
|
|
64
|
+
paddingBottom: P,
|
|
65
|
+
margin: R,
|
|
66
|
+
marginBlock: W,
|
|
67
|
+
marginInline: j,
|
|
68
|
+
marginInlineStart: z,
|
|
69
|
+
marginInlineEnd: A,
|
|
70
|
+
marginTop: C,
|
|
71
|
+
marginBottom: N,
|
|
72
72
|
gap: b,
|
|
73
73
|
rowGap: q,
|
|
74
74
|
columnGap: D
|
|
@@ -84,8 +84,8 @@ const tt = M.forwardRef(function({
|
|
|
84
84
|
style: J,
|
|
85
85
|
"data-inline": !!f,
|
|
86
86
|
"data-allow-flow": !!c,
|
|
87
|
-
"data-v-alignment":
|
|
88
|
-
"data-h-alignment":
|
|
87
|
+
"data-v-alignment": m,
|
|
88
|
+
"data-h-alignment": d,
|
|
89
89
|
"data-height": a,
|
|
90
90
|
"data-width": t,
|
|
91
91
|
"data-overflow-x": o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"h_stack.js","sources":["../../src/stacks/h_stack.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"h_stack.js","sources":["../../src/stacks/h_stack.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport React, { HTMLAttributes } from 'react';\nimport { removeUndefinedProperties } from './utils/remove_undefined_properties.js';\nimport { CommonProps } from './types/common.js';\nimport { HorizontalProps, StackStyleProps } from './types/styles.js';\nimport styles from './stack.module.css';\nimport { isCustomSizeProp } from './utils/isCustomSizeProp.js';\n\nexport type HStackOwnProps = CommonProps & StackStyleProps & HorizontalProps;\nexport interface HStackProps<T extends HTMLElement = HTMLElement>\n extends HStackOwnProps,\n HTMLAttributes<T> {\n as?: string;\n children?: React.ReactNode;\n}\n\nexport const HStack = React.forwardRef(function HStack<T extends HTMLElement>(\n {\n as = 'div',\n children,\n style,\n className,\n hAlign = 'start',\n vAlign = 'center',\n inline,\n allowFlow,\n width = 'default',\n minWidth,\n maxWidth,\n height = 'default',\n growWeight: flexGrow,\n shrinkWeight: flexShrink,\n minHeight,\n maxHeight,\n padding,\n paddingBlock,\n paddingInline,\n paddingInlineStart,\n paddingInlineEnd,\n paddingTop,\n paddingBottom,\n margin,\n marginBlock,\n marginInline,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n zIndex,\n overflowX,\n overflowY,\n gap,\n rowGap,\n columnGap,\n ...attr\n }: HStackProps<T>,\n ref: React.Ref<T>\n) {\n const As = as as React.ElementType;\n const defaultStyles: any = {\n minWidth,\n width: !isCustomSizeProp(width) ? width : undefined,\n maxWidth,\n minHeight,\n height: !isCustomSizeProp(height) ? height : undefined,\n maxHeight,\n flexGrow,\n flexShrink,\n zIndex,\n overflowX,\n overflowY,\n padding,\n paddingBlock,\n paddingInline,\n paddingInlineStart,\n paddingInlineEnd,\n paddingTop,\n paddingBottom,\n margin,\n marginBlock,\n marginInline,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n gap,\n rowGap,\n columnGap,\n };\n\n const finalStyles: any = {\n ...removeUndefinedProperties(defaultStyles),\n ...style,\n };\n\n return (\n <As\n ref={ref}\n className={clsx(styles['h-stack'], className, 'h-stack', 'stack')}\n style={finalStyles}\n data-inline={Boolean(inline)}\n data-allow-flow={Boolean(allowFlow)}\n data-v-alignment={vAlign}\n data-h-alignment={hAlign}\n data-height={height}\n data-width={width}\n data-overflow-x={overflowX}\n data-overflow-y={overflowY}\n {...attr}\n >\n {children}\n </As>\n );\n});\n"],"names":["HStack","React","as","children","style","className","hAlign","vAlign","inline","allowFlow","width","minWidth","maxWidth","height","flexGrow","flexShrink","minHeight","maxHeight","padding","paddingBlock","paddingInline","paddingInlineStart","paddingInlineEnd","paddingTop","paddingBottom","margin","marginBlock","marginInline","marginInlineStart","marginInlineEnd","marginTop","marginBottom","zIndex","overflowX","overflowY","gap","rowGap","columnGap","attr","ref","As","defaultStyles","isCustomSizeProp","finalStyles","removeUndefinedProperties","jsx","clsx","styles"],"mappings":";;;;;;AAgBO,MAAMA,KAASC,EAAM,WAAW,SACrC;AAAA,EACE,IAAAC,IAAK;AAAA,EACL,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,QAAAC,IAAS;AAAA,EACT,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,YAAYC;AAAA,EACZ,cAAcC;AAAA,EACd,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,eAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAKtC,GACLuC,IAAqB;AAAA,IACzB,UAAA9B;AAAA,IACA,OAAQ+B,EAAiBhC,CAAK,IAAY,SAARA;AAAA,IAClC,UAAAE;AAAA,IACA,WAAAI;AAAA,IACA,QAAS0B,EAAiB7B,CAAM,IAAa,SAATA;AAAA,IACpC,WAAAI;AAAA,IACA,UAAAH;AAAA,IACA,YAAAC;AAAA,IACA,QAAAiB;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,SAAAhB;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,eAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,cAAAC;AAAA,IACA,KAAAI;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,EAAA,GAGIM,IAAmB;AAAA,IACvB,GAAGC,EAA0BH,CAAa;AAAA,IAC1C,GAAGrC;AAAA,EAAA;AAGL,SACE,gBAAAyC;AAAA,IAACL;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWO,EAAKC,EAAO,SAAS,GAAG1C,GAAW,WAAW,OAAO;AAAA,MAChE,OAAOsC;AAAA,MACP,eAAa,EAAQnC;AAAA,MACrB,mBAAiB,EAAQC;AAAA,MACzB,oBAAkBF;AAAA,MAClB,oBAAkBD;AAAA,MAClB,eAAaO;AAAA,MACb,cAAYH;AAAA,MACZ,mBAAiBuB;AAAA,MACjB,mBAAiBC;AAAA,MAChB,GAAGI;AAAA,MAEH,UAAAnC;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
|
package/dist/stacks/spacer.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import p from "
|
|
2
|
+
import { clsx as p } from "clsx";
|
|
3
3
|
import d from "react";
|
|
4
4
|
const g = d.forwardRef(function({
|
|
5
5
|
width: o = "auto",
|
|
6
6
|
height: t = "auto",
|
|
7
|
-
fullHeight:
|
|
8
|
-
fullWidth:
|
|
9
|
-
fillSpaceWeight:
|
|
7
|
+
fullHeight: n = !1,
|
|
8
|
+
fullWidth: r = !1,
|
|
9
|
+
fillSpaceWeight: a = 1,
|
|
10
10
|
style: s,
|
|
11
11
|
className: f
|
|
12
12
|
}, c) {
|
|
13
|
-
const l = o === "auto" && t === "auto" ?
|
|
13
|
+
const l = o === "auto" && t === "auto" ? a : void 0, e = r ? "100%" : o, i = n ? "100%" : t;
|
|
14
14
|
return /* @__PURE__ */ m(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacer.js","sources":["../../src/stacks/spacer.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"spacer.js","sources":["../../src/stacks/spacer.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport React from 'react';\n\nexport interface SpacerProps {\n width?: React.CSSProperties['width'];\n height?: React.CSSProperties['height'];\n fullHeight?: boolean;\n fullWidth?: boolean;\n fillSpaceWeight?: number;\n style?: React.CSSProperties;\n className?: string;\n}\n\nexport const Spacer = React.forwardRef<HTMLDivElement, SpacerProps>(function Spacer(\n {\n width = 'auto',\n height = 'auto',\n fullHeight = false,\n fullWidth = false,\n fillSpaceWeight = 1,\n style,\n className,\n }: SpacerProps,\n ref\n) {\n const flex = width === 'auto' && height === 'auto' ? fillSpaceWeight : undefined;\n const finalWidth = fullWidth ? '100%' : width;\n const finalHeight = fullHeight ? '100%' : height;\n return (\n <div\n ref={ref}\n style={{\n ...style,\n position: 'relative',\n width: finalWidth,\n minWidth: finalWidth,\n height: finalHeight,\n minHeight: finalHeight,\n overflow: 'hidden',\n pointerEvents: 'none',\n zIndex: 1,\n flex,\n }}\n className={clsx('spacer', className)}\n ></div>\n );\n});\n"],"names":["Spacer","React","width","height","fullHeight","fullWidth","fillSpaceWeight","style","className","ref","flex","finalWidth","finalHeight","jsx","clsx"],"mappings":";;;AAaO,MAAMA,IAASC,EAAM,WAAwC,SAClE;AAAA,EACE,OAAAC,IAAQ;AAAA,EACR,QAAAC,IAAS;AAAA,EACT,YAAAC,IAAa;AAAA,EACb,WAAAC,IAAY;AAAA,EACZ,iBAAAC,IAAkB;AAAA,EAClB,OAAAC;AAAA,EACA,WAAAC;AACF,GACAC,GACA;AACA,QAAMC,IAAOR,MAAU,UAAUC,MAAW,SAASG,IAAkB,QACjEK,IAAaN,IAAY,SAASH,GAClCU,IAAcR,IAAa,SAASD;AAC1C,SACE,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAJ;AAAA,MACA,OAAO;AAAA,QACL,GAAGF;AAAA,QACH,UAAU;AAAA,QACV,OAAOI;AAAA,QACP,UAAUA;AAAA,QACV,QAAQC;AAAA,QACR,WAAWA;AAAA,QACX,UAAU;AAAA,QACV,eAAe;AAAA,QACf,QAAQ;AAAA,QACR,MAAAF;AAAA,MAAA;AAAA,MAEF,WAAWI,EAAK,UAAUN,CAAS;AAAA,IAAA;AAAA,EAAA;AAGzC,CAAC;"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { ZStack as
|
|
4
|
-
import
|
|
5
|
-
import '../../circle.css';const
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { ZStack as m } from "../z_stack.js";
|
|
4
|
+
import { clsx as n } from "clsx";
|
|
5
|
+
import '../../circle.css';const a = "_circle_2f733a0", p = { circle: a }, w = f.forwardRef(function({ color: r = "#90d9c7", size: c = "150px", style: t, className: o, ...e }, i) {
|
|
6
6
|
const l = {
|
|
7
7
|
...t,
|
|
8
8
|
"--color": r
|
|
9
9
|
};
|
|
10
10
|
return /* @__PURE__ */ s(
|
|
11
|
-
|
|
11
|
+
m,
|
|
12
12
|
{
|
|
13
13
|
ref: i,
|
|
14
14
|
style: l,
|
|
15
15
|
width: c,
|
|
16
16
|
height: c,
|
|
17
|
-
className:
|
|
17
|
+
className: n(o, p.circle),
|
|
18
18
|
...e
|
|
19
19
|
}
|
|
20
20
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.js","sources":["../../../src/stacks/story_components/circle.tsx"],"sourcesContent":["import React from 'react';\nimport { ZStack, ZStackProps } from '../z_stack.js';\nimport styles from './circle.module.css';\nimport
|
|
1
|
+
{"version":3,"file":"circle.js","sources":["../../../src/stacks/story_components/circle.tsx"],"sourcesContent":["import React from 'react';\nimport { ZStack, ZStackProps } from '../z_stack.js';\nimport styles from './circle.module.css';\nimport { clsx } from 'clsx';\n\nexport interface CircleProps extends ZStackProps {\n color?: string;\n size?: string;\n}\n\nexport const Circle = React.forwardRef(function Circle(\n { color = '#90d9c7', size = '150px', style, className, ...props }: CircleProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const finalStyle = {\n ...style,\n '--color': color,\n };\n\n return (\n <ZStack\n ref={ref}\n style={finalStyle}\n width={size}\n height={size}\n className={clsx(className, styles['circle'])}\n {...props}\n />\n );\n});\n"],"names":["Circle","React","color","size","style","className","props","ref","finalStyle","jsx","ZStack","clsx","styles"],"mappings":";;;;gDAUaA,IAASC,EAAM,WAAW,SACrC,EAAE,OAAAC,IAAQ,WAAW,MAAAC,IAAO,SAAS,OAAAC,GAAO,WAAAC,GAAW,GAAGC,EAAA,GAC1DC,GACA;AACA,QAAMC,IAAa;AAAA,IACjB,GAAGJ;AAAA,IACH,WAAWF;AAAA,EAAA;AAGb,SACE,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAH;AAAA,MACA,OAAOC;AAAA,MACP,OAAOL;AAAA,MACP,QAAQA;AAAA,MACR,WAAWQ,EAAKN,GAAWO,EAAO,MAAS;AAAA,MAC1C,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
|
-
import s from "
|
|
4
|
-
import '../../picture_placeholder.css';const i = "_picture-placeholder_ec357fb",
|
|
5
|
-
color:
|
|
3
|
+
import { clsx as s } from "clsx";
|
|
4
|
+
import '../../picture_placeholder.css';const i = "_picture-placeholder_ec357fb", p = { "picture-placeholder": i }, f = m.forwardRef(function({
|
|
5
|
+
color: e = "currentColor",
|
|
6
6
|
size: c = "150px",
|
|
7
7
|
style: l,
|
|
8
8
|
className: o,
|
|
@@ -10,9 +10,9 @@ import '../../picture_placeholder.css';const i = "_picture-placeholder_ec357fb",
|
|
|
10
10
|
}, h) {
|
|
11
11
|
const v = {
|
|
12
12
|
...l,
|
|
13
|
-
"--color":
|
|
13
|
+
"--color": e
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ r(
|
|
16
16
|
"svg",
|
|
17
17
|
{
|
|
18
18
|
ref: h,
|
|
@@ -20,10 +20,10 @@ import '../../picture_placeholder.css';const i = "_picture-placeholder_ec357fb",
|
|
|
20
20
|
height: c,
|
|
21
21
|
viewBox: "0 0 16 16",
|
|
22
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
-
className: s(o,
|
|
23
|
+
className: s(o, p["picture-placeholder"]),
|
|
24
24
|
style: v,
|
|
25
25
|
...t,
|
|
26
|
-
children: /* @__PURE__ */
|
|
26
|
+
children: /* @__PURE__ */ r(
|
|
27
27
|
"path",
|
|
28
28
|
{
|
|
29
29
|
d: "m 4 1 c -1.644531 0 -3 1.355469 -3 3 v 1 h 1 v -1 c 0 -1.109375 0.890625 -2 2 -2 h 1 v -1 z m 2 0 v 1 h 4 v -1 z m 5 0 v 1 h 1 c 1.109375 0 2 0.890625 2 2 v 1 h 1 v -1 c 0 -1.644531 -1.355469 -3 -3 -3 z m -5 4 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 s 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m -5 1 v 4 h 1 v -4 z m 13 0 v 4 h 1 v -4 z m -4.5 2 l -2 2 l -1.5 -1 l -2 2 v 0.5 c 0 0.5 0.5 0.5 0.5 0.5 h 7 s 0.472656 -0.035156 0.5 -0.5 v -1 z m -8.5 3 v 1 c 0 1.644531 1.355469 3 3 3 h 1 v -1 h -1 c -1.109375 0 -2 -0.890625 -2 -2 v -1 z m 13 0 v 1 c 0 1.109375 -0.890625 2 -2 2 h -1 v 1 h 1 c 1.644531 0 3 -1.355469 3 -3 v -1 z m -8 3 v 1 h 4 v -1 z m 0 0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture_placeholder.js","sources":["../../../src/stacks/story_components/picture_placeholder.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\nimport styles from './picture_placeholder.module.css';\nimport
|
|
1
|
+
{"version":3,"file":"picture_placeholder.js","sources":["../../../src/stacks/story_components/picture_placeholder.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\nimport styles from './picture_placeholder.module.css';\nimport { clsx } from 'clsx';\n\nexport interface PicturePlaceholderProps extends HTMLAttributes<SVGSVGElement> {\n color?: string;\n size?: string;\n}\n\nexport const PicturePlaceholder = React.forwardRef(function PicturePlaceholder(\n {\n color = 'currentColor',\n size = '150px',\n style,\n className,\n ...props\n }: PicturePlaceholderProps,\n ref: React.Ref<SVGSVGElement>\n) {\n const finalStyle = {\n ...style,\n '--color': color,\n };\n\n return (\n <svg\n ref={ref}\n width={size}\n height={size}\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={clsx(className, styles['picture-placeholder'])}\n style={finalStyle}\n {...props}\n >\n <path\n d=\"m 4 1 c -1.644531 0 -3 1.355469 -3 3 v 1 h 1 v -1 c 0 -1.109375 0.890625 -2 2 -2 h 1 v -1 z m 2 0 v 1 h 4 v -1 z m 5 0 v 1 h 1 c 1.109375 0 2 0.890625 2 2 v 1 h 1 v -1 c 0 -1.644531 -1.355469 -3 -3 -3 z m -5 4 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 s 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m -5 1 v 4 h 1 v -4 z m 13 0 v 4 h 1 v -4 z m -4.5 2 l -2 2 l -1.5 -1 l -2 2 v 0.5 c 0 0.5 0.5 0.5 0.5 0.5 h 7 s 0.472656 -0.035156 0.5 -0.5 v -1 z m -8.5 3 v 1 c 0 1.644531 1.355469 3 3 3 h 1 v -1 h -1 c -1.109375 0 -2 -0.890625 -2 -2 v -1 z m 13 0 v 1 c 0 1.109375 -0.890625 2 -2 2 h -1 v 1 h 1 c 1.644531 0 3 -1.355469 3 -3 v -1 z m -8 3 v 1 h 4 v -1 z m 0 0\"\n fill=\"currentColor\"\n />\n </svg>\n );\n});\n"],"names":["PicturePlaceholder","React","color","size","style","className","props","ref","finalStyle","jsx","clsx","styles"],"mappings":";;;4EASaA,IAAqBC,EAAM,WAAW,SACjD;AAAA,EACE,OAAAC,IAAQ;AAAA,EACR,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAa;AAAA,IACjB,GAAGJ;AAAA,IACH,WAAWF;AAAA,EAAA;AAGb,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,OAAOJ;AAAA,MACP,QAAQA;AAAA,MACR,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,WAAWO,EAAKL,GAAWM,EAAO,qBAAqB,CAAC;AAAA,MACxD,OAAOH;AAAA,MACN,GAAGF;AAAA,MAEJ,UAAA,gBAAAG;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,GAAE;AAAA,UACF,MAAK;AAAA,QAAA;AAAA,MAAA;AAAA,IACP;AAAA,EAAA;AAGN,CAAC;"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
3
|
import { Box as l } from "../box/box.js";
|
|
4
|
-
import i from "
|
|
5
|
-
import '../../rect.css';const p = "_rect_60482cd",
|
|
4
|
+
import { clsx as i } from "clsx";
|
|
5
|
+
import '../../rect.css';const p = "_rect_60482cd", x = { rect: p }, j = a.forwardRef(function({
|
|
6
6
|
color: t = "#acdef0",
|
|
7
7
|
style: o,
|
|
8
8
|
className: r,
|
|
9
9
|
width: c = "100%",
|
|
10
10
|
height: e = "auto",
|
|
11
11
|
...s
|
|
12
|
-
},
|
|
13
|
-
const
|
|
12
|
+
}, f) {
|
|
13
|
+
const m = {
|
|
14
14
|
...o,
|
|
15
15
|
"--color": t
|
|
16
16
|
};
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ n(
|
|
18
18
|
l,
|
|
19
19
|
{
|
|
20
|
-
ref:
|
|
21
|
-
style:
|
|
22
|
-
className: i(r,
|
|
20
|
+
ref: f,
|
|
21
|
+
style: m,
|
|
22
|
+
className: i(r, x.rect),
|
|
23
23
|
width: c,
|
|
24
24
|
height: e,
|
|
25
25
|
...s
|
|
@@ -27,6 +27,6 @@ import '../../rect.css';const p = "_rect_60482cd", R = { rect: p }, _ = n.forwar
|
|
|
27
27
|
);
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
j as Rect
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=rect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rect.js","sources":["../../../src/stacks/story_components/rect.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, BoxProps } from '../box/box.js';\nimport styles from './rect.module.css';\nimport
|
|
1
|
+
{"version":3,"file":"rect.js","sources":["../../../src/stacks/story_components/rect.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, BoxProps } from '../box/box.js';\nimport styles from './rect.module.css';\nimport { clsx } from 'clsx';\n\nexport interface RectProps extends BoxProps {\n color?: string;\n}\n\nexport const Rect = React.forwardRef(function Rect(\n {\n color = '#acdef0',\n style,\n className,\n width = '100%',\n height = 'auto',\n ...props\n }: RectProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const finalStyle = {\n ...style,\n '--color': color,\n };\n\n return (\n <Box\n ref={ref}\n style={finalStyle}\n className={clsx(className, styles['rect'])}\n width={width}\n height={height}\n {...props}\n />\n );\n});\n"],"names":["Rect","React","color","style","className","width","height","props","ref","finalStyle","jsx","Box","clsx","styles"],"mappings":";;;;4CASaA,IAAOC,EAAM,WAAW,SACnC;AAAA,EACE,OAAAC,IAAQ;AAAA,EACR,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,QAAAC,IAAS;AAAA,EACT,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAa;AAAA,IACjB,GAAGN;AAAA,IACH,WAAWD;AAAA,EAAA;AAGb,SACE,gBAAAQ;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAH;AAAA,MACA,OAAOC;AAAA,MACP,WAAWG,EAAKR,GAAWS,EAAO,IAAO;AAAA,MACzC,OAAAR;AAAA,MACA,QAAAC;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
|
|
@@ -2,10 +2,10 @@ import { Alignment } from './alignment.js';
|
|
|
2
2
|
export interface StackStyleProps {
|
|
3
3
|
hAlign?: Alignment;
|
|
4
4
|
vAlign?: Alignment;
|
|
5
|
-
width?: 'default' | 'flex' | 'auto' | string | number;
|
|
5
|
+
width?: 'default' | 'flex' | 'auto' | 'fill' | string | number;
|
|
6
6
|
minWidth?: string | number;
|
|
7
7
|
maxWidth?: string | number;
|
|
8
|
-
height?: 'default' | 'flex' | 'auto' | string | number;
|
|
8
|
+
height?: 'default' | 'flex' | 'auto' | 'fill' | string | number;
|
|
9
9
|
minHeight?: string | number;
|
|
10
10
|
maxHeight?: string | number;
|
|
11
11
|
growWeight?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/stacks/types/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/stacks/types/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CACtD;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACrD,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import t, { useLayoutEffect as p } from "react";
|
|
3
3
|
import "../utils/focus_redirect.js";
|
|
4
4
|
import "../utils/click_away_listener.js";
|
|
5
5
|
import "../utils/scroll_away_listener.js";
|
|
6
6
|
import { useForkRef as u } from "../utils/hooks/use_fork_ref.js";
|
|
7
7
|
import "../utils/hooks/use_resize_observer.js";
|
|
8
|
-
import d from "
|
|
8
|
+
import { clsx as d } from "clsx";
|
|
9
9
|
import { Box as R } from "./box/box.js";
|
|
10
|
-
import { s as
|
|
11
|
-
import { useIsCollapsed as
|
|
10
|
+
import { s as x } from "../collapsible_box.module-BiS98xXA.js";
|
|
11
|
+
import { useIsCollapsed as z } from "./utils/use_is_collapsed.js";
|
|
12
12
|
const v = t.forwardRef(function({ open: l = !1, defaultHeight: i = "400px", ...e }, a) {
|
|
13
13
|
const s = t.useRef(null), n = u(a, s), [c, r] = t.useState(!1);
|
|
14
14
|
p(() => {
|
|
15
15
|
s.current?.style.setProperty("--collapsible-size", i);
|
|
16
16
|
}, [i]);
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
const f = z(l, s) && !l ? null : e.children;
|
|
18
|
+
return /* @__PURE__ */ m(
|
|
19
19
|
R,
|
|
20
20
|
{
|
|
21
21
|
ref: n,
|
|
@@ -29,8 +29,8 @@ const v = t.forwardRef(function({ open: l = !1, defaultHeight: i = "400px", ...e
|
|
|
29
29
|
onHeightResizeEnd: (o) => {
|
|
30
30
|
r(!1), s.current?.style.setProperty("--collapsible-size", `${o}px`), e.onHeightResizeEnd?.(o);
|
|
31
31
|
},
|
|
32
|
-
className: d(e.className,
|
|
33
|
-
children:
|
|
32
|
+
className: d(e.className, x["collapsible-box"]),
|
|
33
|
+
children: f
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v_collapsible_box.js","sources":["../../src/stacks/v_collapsible_box.tsx"],"sourcesContent":["import React, { useLayoutEffect } from 'react';\nimport { useForkRef } from '../utils/index.js';\nimport
|
|
1
|
+
{"version":3,"file":"v_collapsible_box.js","sources":["../../src/stacks/v_collapsible_box.tsx"],"sourcesContent":["import React, { useLayoutEffect } from 'react';\nimport { useForkRef } from '../utils/index.js';\nimport { clsx } from 'clsx';\nimport { Box, BoxProps } from './box/box.js';\nimport styles from './collapsible_box.module.css';\nimport { useIsCollapsed } from './utils/use_is_collapsed.js';\n\nexport interface VCollapsibleBoxProps extends BoxProps {\n open?: boolean;\n defaultHeight?: string;\n}\n\nexport const VCollapsibleBox = React.forwardRef(function CollapsibleBox(\n { open = false, defaultHeight = '400px', ...props }: VCollapsibleBoxProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const collapsibleRef = React.useRef<HTMLDivElement | null>(null);\n const forkRef = useForkRef(ref, collapsibleRef);\n const [resizing, setIsResizing] = React.useState(false);\n\n useLayoutEffect(() => {\n collapsibleRef.current?.style.setProperty('--collapsible-size', defaultHeight);\n }, [defaultHeight]);\n\n const isCollapsed = useIsCollapsed(open, collapsibleRef);\n const children = isCollapsed && !open ? null : props.children;\n\n return (\n <Box\n ref={forkRef}\n {...props}\n data-is-collapsed={!open}\n data-collapse-orientation=\"vertical\"\n data-is-resizing={resizing}\n onHeightResize={height => {\n setIsResizing(true);\n props.onHeightResize?.(height);\n }}\n onHeightResizeEnd={height => {\n setIsResizing(false);\n collapsibleRef.current?.style.setProperty('--collapsible-size', `${height}px`);\n props.onHeightResizeEnd?.(height);\n }}\n className={clsx(props.className, styles['collapsible-box'])}\n children={children}\n />\n );\n});\n"],"names":["VCollapsibleBox","React","open","defaultHeight","props","ref","collapsibleRef","forkRef","useForkRef","resizing","setIsResizing","useLayoutEffect","children","useIsCollapsed","jsx","Box","height","clsx","styles"],"mappings":";;;;;;;;;;;AAYO,MAAMA,IAAkBC,EAAM,WAAW,SAC9C,EAAE,MAAAC,IAAO,IAAO,eAAAC,IAAgB,SAAS,GAAGC,EAAA,GAC5CC,GACA;AACA,QAAMC,IAAiBL,EAAM,OAA8B,IAAI,GACzDM,IAAUC,EAAWH,GAAKC,CAAc,GACxC,CAACG,GAAUC,CAAa,IAAIT,EAAM,SAAS,EAAK;AAEtD,EAAAU,EAAgB,MAAM;AACpB,IAAAL,EAAe,SAAS,MAAM,YAAY,sBAAsBH,CAAa;AAAA,EAC/E,GAAG,CAACA,CAAa,CAAC;AAGlB,QAAMS,IADcC,EAAeX,GAAMI,CAAc,KACvB,CAACJ,IAAO,OAAOE,EAAM;AAErD,SACE,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAKR;AAAA,MACJ,GAAGH;AAAA,MACJ,qBAAmB,CAACF;AAAA,MACpB,6BAA0B;AAAA,MAC1B,oBAAkBO;AAAA,MAClB,gBAAgB,CAAAO,MAAU;AACxB,QAAAN,EAAc,EAAI,GAClBN,EAAM,iBAAiBY,CAAM;AAAA,MAC/B;AAAA,MACA,mBAAmB,CAAAA,MAAU;AAC3B,QAAAN,EAAc,EAAK,GACnBJ,EAAe,SAAS,MAAM,YAAY,sBAAsB,GAAGU,CAAM,IAAI,GAC7EZ,EAAM,oBAAoBY,CAAM;AAAA,MAClC;AAAA,MACA,WAAWC,EAAKb,EAAM,WAAWc,EAAO,iBAAiB,CAAC;AAAA,MAC1D,UAAAN;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
|
package/dist/stacks/v_stack.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as J } from "react/jsx-runtime";
|
|
2
|
-
import K from "
|
|
2
|
+
import { clsx as K } from "clsx";
|
|
3
3
|
import L from "react";
|
|
4
4
|
import { removeUndefinedProperties as M } from "./utils/remove_undefined_properties.js";
|
|
5
5
|
import { s as O } from "../stack.module-CBV1f12Z.js";
|
|
6
|
-
import { isCustomSizeProp as
|
|
6
|
+
import { isCustomSizeProp as s } from "./utils/isCustomSizeProp.js";
|
|
7
7
|
const tt = L.forwardRef(function({
|
|
8
8
|
as: i = "div",
|
|
9
9
|
children: l,
|
|
10
10
|
style: d,
|
|
11
11
|
className: n,
|
|
12
|
-
hAlign:
|
|
13
|
-
vAlign:
|
|
12
|
+
hAlign: f = "center",
|
|
13
|
+
vAlign: m = "start",
|
|
14
14
|
inline: t,
|
|
15
15
|
allowFlow: c,
|
|
16
16
|
width: a = "default",
|
|
@@ -19,25 +19,25 @@ const tt = L.forwardRef(function({
|
|
|
19
19
|
height: o = "default",
|
|
20
20
|
minHeight: u,
|
|
21
21
|
maxHeight: k,
|
|
22
|
-
growWeight:
|
|
23
|
-
shrinkWeight:
|
|
24
|
-
padding:
|
|
22
|
+
growWeight: x,
|
|
23
|
+
shrinkWeight: y,
|
|
24
|
+
padding: g,
|
|
25
25
|
paddingBlock: S,
|
|
26
26
|
paddingInline: h,
|
|
27
27
|
paddingInlineStart: w,
|
|
28
28
|
paddingInlineEnd: B,
|
|
29
|
-
paddingTop:
|
|
30
|
-
paddingBottom:
|
|
31
|
-
margin:
|
|
32
|
-
marginBlock:
|
|
33
|
-
marginInline:
|
|
34
|
-
marginInlineStart:
|
|
35
|
-
marginInlineEnd:
|
|
36
|
-
marginTop:
|
|
37
|
-
marginBottom:
|
|
29
|
+
paddingTop: P,
|
|
30
|
+
paddingBottom: R,
|
|
31
|
+
margin: V,
|
|
32
|
+
marginBlock: W,
|
|
33
|
+
marginInline: j,
|
|
34
|
+
marginInlineStart: z,
|
|
35
|
+
marginInlineEnd: A,
|
|
36
|
+
marginTop: C,
|
|
37
|
+
marginBottom: N,
|
|
38
38
|
zIndex: U,
|
|
39
39
|
overflowY: e,
|
|
40
|
-
overflowX:
|
|
40
|
+
overflowX: r,
|
|
41
41
|
gap: b,
|
|
42
42
|
rowGap: q,
|
|
43
43
|
columnGap: D,
|
|
@@ -46,30 +46,30 @@ const tt = L.forwardRef(function({
|
|
|
46
46
|
const G = i, H = {
|
|
47
47
|
display: t == null ? void 0 : t ? "inline-flex" : "flex",
|
|
48
48
|
minWidth: p,
|
|
49
|
-
width:
|
|
49
|
+
width: s(a) ? void 0 : a,
|
|
50
50
|
maxWidth: v,
|
|
51
51
|
minHeight: u,
|
|
52
|
-
height:
|
|
52
|
+
height: s(o) ? void 0 : o,
|
|
53
53
|
maxHeight: k,
|
|
54
|
-
flexGrow:
|
|
55
|
-
flexShrink:
|
|
54
|
+
flexGrow: x,
|
|
55
|
+
flexShrink: y,
|
|
56
56
|
zIndex: U,
|
|
57
|
-
overflowX:
|
|
57
|
+
overflowX: r,
|
|
58
58
|
overflowY: e,
|
|
59
|
-
padding:
|
|
59
|
+
padding: g,
|
|
60
60
|
paddingBlock: S,
|
|
61
61
|
paddingInline: h,
|
|
62
62
|
paddingInlineStart: w,
|
|
63
63
|
paddingInlineEnd: B,
|
|
64
|
-
paddingTop:
|
|
65
|
-
paddingBottom:
|
|
66
|
-
margin:
|
|
67
|
-
marginBlock:
|
|
68
|
-
marginInline:
|
|
69
|
-
marginInlineStart:
|
|
70
|
-
marginInlineEnd:
|
|
71
|
-
marginTop:
|
|
72
|
-
marginBottom:
|
|
64
|
+
paddingTop: P,
|
|
65
|
+
paddingBottom: R,
|
|
66
|
+
margin: V,
|
|
67
|
+
marginBlock: W,
|
|
68
|
+
marginInline: j,
|
|
69
|
+
marginInlineStart: z,
|
|
70
|
+
marginInlineEnd: A,
|
|
71
|
+
marginTop: C,
|
|
72
|
+
marginBottom: N,
|
|
73
73
|
gap: b,
|
|
74
74
|
rowGap: q,
|
|
75
75
|
columnGap: D
|
|
@@ -85,12 +85,12 @@ const tt = L.forwardRef(function({
|
|
|
85
85
|
style: I,
|
|
86
86
|
"data-inline": !!t,
|
|
87
87
|
"data-allow-flow": !!c,
|
|
88
|
-
"data-v-alignment":
|
|
89
|
-
"data-h-alignment":
|
|
88
|
+
"data-v-alignment": m,
|
|
89
|
+
"data-h-alignment": f,
|
|
90
90
|
"data-height": o,
|
|
91
91
|
"data-width": a,
|
|
92
92
|
"data-overflow-y": e,
|
|
93
|
-
"data-overflow-x":
|
|
93
|
+
"data-overflow-x": r,
|
|
94
94
|
...E,
|
|
95
95
|
children: l
|
|
96
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v_stack.js","sources":["../../src/stacks/v_stack.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"v_stack.js","sources":["../../src/stacks/v_stack.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport React, { HTMLAttributes } from 'react';\nimport { removeUndefinedProperties } from './utils/remove_undefined_properties.js';\nimport { CommonProps } from './types/common.js';\nimport { StackStyleProps, VerticalProps } from './types/styles.js';\nimport styles from './stack.module.css';\nimport { isCustomSizeProp } from './utils/isCustomSizeProp.js';\n\nexport type VStackOwnProps = CommonProps & StackStyleProps & VerticalProps;\n\nexport interface VStackProps<T extends HTMLElement = HTMLElement>\n extends VStackOwnProps,\n HTMLAttributes<T> {\n as?: string;\n children?: React.ReactNode;\n}\n\nexport const VStack = React.forwardRef(function VStack<\n T extends HTMLElement = HTMLElement,\n>(\n {\n as = 'div',\n children,\n style,\n className,\n hAlign = 'center',\n vAlign = 'start',\n inline,\n allowFlow,\n width = 'default',\n minWidth,\n maxWidth,\n height = 'default',\n minHeight,\n maxHeight,\n growWeight: flexGrow,\n shrinkWeight: flexShrink,\n padding,\n paddingBlock,\n paddingInline,\n paddingInlineStart,\n paddingInlineEnd,\n paddingTop,\n paddingBottom,\n margin,\n marginBlock,\n marginInline,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n zIndex,\n overflowY,\n overflowX,\n gap,\n rowGap,\n columnGap,\n ...attr\n }: VStackProps<T>,\n ref: React.Ref<T>\n) {\n const As = as as React.ElementType;\n const defaultStyles: any = {\n display: inline == null ? undefined : inline ? 'inline-flex' : 'flex',\n minWidth,\n width: !isCustomSizeProp(width) ? width : undefined,\n maxWidth,\n minHeight,\n height: !isCustomSizeProp(height) ? height : undefined,\n maxHeight,\n flexGrow,\n flexShrink,\n zIndex,\n overflowX,\n overflowY,\n padding,\n paddingBlock,\n paddingInline,\n paddingInlineStart,\n paddingInlineEnd,\n paddingTop,\n paddingBottom,\n margin,\n marginBlock,\n marginInline,\n marginInlineStart,\n marginInlineEnd,\n marginTop,\n marginBottom,\n gap,\n rowGap,\n columnGap,\n };\n\n const finalStyles: React.CSSProperties = {\n ...removeUndefinedProperties(defaultStyles),\n ...style,\n };\n\n return (\n <As\n ref={ref}\n className={clsx(styles['v-stack'], className, 'v-stack', 'stack')}\n style={finalStyles}\n data-inline={Boolean(inline)}\n data-allow-flow={Boolean(allowFlow)}\n data-v-alignment={vAlign}\n data-h-alignment={hAlign}\n data-height={height}\n data-width={width}\n data-overflow-y={overflowY}\n data-overflow-x={overflowX}\n {...attr}\n >\n {children}\n </As>\n );\n});\n"],"names":["VStack","React","as","children","style","className","hAlign","vAlign","inline","allowFlow","width","minWidth","maxWidth","height","minHeight","maxHeight","flexGrow","flexShrink","padding","paddingBlock","paddingInline","paddingInlineStart","paddingInlineEnd","paddingTop","paddingBottom","margin","marginBlock","marginInline","marginInlineStart","marginInlineEnd","marginTop","marginBottom","zIndex","overflowY","overflowX","gap","rowGap","columnGap","attr","ref","As","defaultStyles","isCustomSizeProp","finalStyles","removeUndefinedProperties","jsx","clsx","styles"],"mappings":";;;;;;AAiBO,MAAMA,KAASC,EAAM,WAAW,SAGrC;AAAA,EACE,IAAAC,IAAK;AAAA,EACL,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,QAAAC,IAAS;AAAA,EACT,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAYC;AAAA,EACZ,cAAcC;AAAA,EACd,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,eAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAKtC,GACLuC,IAAqB;AAAA,IACzB,SAASjC,KAAU,OAAO,SAAYA,IAAS,gBAAgB;AAAA,IAC/D,UAAAG;AAAA,IACA,OAAQ+B,EAAiBhC,CAAK,IAAY,SAARA;AAAA,IAClC,UAAAE;AAAA,IACA,WAAAE;AAAA,IACA,QAAS4B,EAAiB7B,CAAM,IAAa,SAATA;AAAA,IACpC,WAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAe;AAAA,IACA,WAAAE;AAAA,IACA,WAAAD;AAAA,IACA,SAAAf;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,eAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,cAAAC;AAAA,IACA,KAAAI;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,EAAA,GAGIM,IAAmC;AAAA,IACvC,GAAGC,EAA0BH,CAAa;AAAA,IAC1C,GAAGrC;AAAA,EAAA;AAGL,SACE,gBAAAyC;AAAA,IAACL;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWO,EAAKC,EAAO,SAAS,GAAG1C,GAAW,WAAW,OAAO;AAAA,MAChE,OAAOsC;AAAA,MACP,eAAa,EAAQnC;AAAA,MACrB,mBAAiB,EAAQC;AAAA,MACzB,oBAAkBF;AAAA,MAClB,oBAAkBD;AAAA,MAClB,eAAaO;AAAA,MACb,cAAYH;AAAA,MACZ,mBAAiBuB;AAAA,MACjB,mBAAiBC;AAAA,MAChB,GAAGI;AAAA,MAEH,UAAAnC;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
|