@tcn/ui 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Color-ASIRERSW-B4GaVKuQ.js +990 -0
- package/dist/Color-ASIRERSW-B4GaVKuQ.js.map +1 -0
- package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js +1485 -0
- package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js.map +1 -0
- package/dist/actions/__docs__/components/gallery.d.ts +8 -0
- package/dist/actions/__docs__/components/gallery.d.ts.map +1 -0
- package/dist/actions/__docs__/components/gallery.js +20 -0
- package/dist/actions/__docs__/components/gallery.js.map +1 -0
- package/dist/actions/__docs__/components/showcase.d.ts +27 -0
- package/dist/actions/__docs__/components/showcase.d.ts.map +1 -0
- package/dist/actions/__docs__/components/showcase.js +15 -0
- package/dist/actions/__docs__/components/showcase.js.map +1 -0
- package/dist/actions/button/base_button/base_button.d.ts +2 -0
- package/dist/actions/button/base_button/base_button.d.ts.map +1 -1
- package/dist/actions/button/base_button/base_button.js +18 -16
- package/dist/actions/button/base_button/base_button.js.map +1 -1
- package/dist/actions/button/button/button.js +6 -6
- package/dist/actions/button/button_group/button_group.js +1 -1
- package/dist/actions/button/select_group/select_group.js +13 -13
- package/dist/actions/button/select_group/single_select_group.js +6 -6
- package/dist/actions/button/slim_button/slim_button.js +2 -2
- package/dist/actions/types.d.ts +2 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/actions/types.js +2 -0
- package/dist/actions/types.js.map +1 -0
- package/dist/divider.module-FptFV0PX.js +5 -0
- package/dist/divider.module-FptFV0PX.js.map +1 -0
- package/dist/feedback/loading/loading.js +12 -12
- package/dist/feedback/loading/loading.js.map +1 -1
- package/dist/feedback/progress/progress_bar.js +1 -1
- package/dist/form/field/common/field_control/field_control.js +8 -8
- package/dist/form/field/common/status_input/status_input.js +6 -6
- package/dist/form/field/field.js +6 -6
- package/dist/form/field/h_field/h_field.js +11 -11
- package/dist/form/field/v_field/v_field.js +10 -10
- package/dist/form/field_set/field_set.js +3 -3
- package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js +6 -0
- package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js.map +1 -0
- package/dist/frame.css +1 -0
- package/dist/gallery.css +1 -0
- package/dist/inputs/checkbox/checkbox.js +11 -11
- package/dist/inputs/color_input/color_input.js +1 -1
- package/dist/inputs/color_input/color_input.js.map +1 -1
- package/dist/inputs/color_input/color_picker.js +6 -6
- package/dist/inputs/combo_box/combo_box.js +17 -17
- package/dist/inputs/date_picker/date_picker.js +19 -19
- package/dist/inputs/date_picker/date_picker_body.js +2 -2
- package/dist/inputs/date_picker/date_picker_input.js +20 -20
- package/dist/inputs/date_picker/date_picker_input.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_input.js +1 -1
- package/dist/inputs/date_picker/date_picker_year_input.js.map +1 -1
- package/dist/inputs/date_picker/date_picker_year_selector.js +1 -1
- package/dist/inputs/input/input.js +5 -5
- package/dist/inputs/mask_input/key_capture_input.js +8 -8
- package/dist/inputs/mask_input/mask_input.js +5 -5
- package/dist/inputs/multi_combo_box/multi_combo_box.js +17 -17
- package/dist/inputs/multiselect/multiselect.js +14 -14
- package/dist/inputs/multiselect/multiselect_row.js +8 -8
- package/dist/inputs/phone_number_input/phone_number_input.js +12 -12
- package/dist/inputs/radio/radio.js +10 -10
- package/dist/inputs/radio/radio_row.js +3 -3
- package/dist/inputs/select/select.js +15 -15
- package/dist/inputs/slider/slider.js +11 -11
- package/dist/inputs/suggestions/suggestion_list.js +2 -2
- package/dist/inputs/suggestions/suggestion_list.js.map +1 -1
- package/dist/inputs/switch/switch.js +5 -5
- package/dist/inputs/textarea/textarea.js +7 -7
- package/dist/inputs/unit_input/unit_input.js +5 -5
- package/dist/layouts/body/h_body.js +7 -7
- package/dist/layouts/body/v_body.js +6 -6
- package/dist/layouts/column/column.js +17 -17
- package/dist/layouts/divider/divider.js +24 -23
- package/dist/layouts/divider/divider.js.map +1 -1
- package/dist/layouts/footer/footer.js +7 -7
- package/dist/layouts/grid/grid.js +24 -24
- package/dist/layouts/header/header.js +2 -2
- package/dist/layouts/index.d.ts +6 -5
- package/dist/layouts/index.d.ts.map +1 -1
- package/dist/layouts/index.js +28 -26
- package/dist/layouts/index.js.map +1 -1
- package/dist/layouts/list/item.js +2 -2
- package/dist/layouts/list/list.js +7 -7
- package/dist/layouts/list/section_header.js +6 -6
- package/dist/layouts/scaffold/scaffold.d.ts +9 -0
- package/dist/layouts/scaffold/scaffold.d.ts.map +1 -0
- package/dist/layouts/scaffold/scaffold.js +55 -0
- package/dist/layouts/scaffold/scaffold.js.map +1 -0
- package/dist/layouts/sidebar_end/sidebar_end.js +14 -14
- package/dist/layouts/sidebar_start/sidebar_start.js +10 -10
- package/dist/layouts/utility_bar/utility_bar.js +10 -10
- package/dist/modal.css +1 -1
- package/dist/overlay/frame/frame.d.ts.map +1 -1
- package/dist/overlay/frame/frame.js +22 -5
- package/dist/overlay/frame/frame.js.map +1 -1
- package/dist/overlay/index.d.ts +9 -2
- package/dist/overlay/index.d.ts.map +1 -1
- package/dist/overlay/index.js +22 -10
- package/dist/overlay/index.js.map +1 -1
- package/dist/overlay/menu/menu.d.ts +1 -1
- package/dist/overlay/menu/menu.d.ts.map +1 -1
- package/dist/overlay/menu/menu.js +36 -36
- package/dist/overlay/menu/menu.js.map +1 -1
- package/dist/overlay/popper/base/base_popper.d.ts +11 -0
- package/dist/overlay/popper/base/base_popper.d.ts.map +1 -0
- package/dist/overlay/popper/base/base_popper.js +27 -0
- package/dist/overlay/popper/base/base_popper.js.map +1 -0
- package/dist/overlay/popper/base/dismissal_decorator.d.ts +16 -0
- package/dist/overlay/popper/base/dismissal_decorator.d.ts.map +1 -0
- package/dist/overlay/popper/base/dismissal_decorator.js +69 -0
- package/dist/overlay/popper/base/dismissal_decorator.js.map +1 -0
- package/dist/overlay/popper/context_popper.d.ts +11 -0
- package/dist/overlay/popper/context_popper.d.ts.map +1 -0
- package/dist/overlay/popper/context_popper.js +33 -0
- package/dist/overlay/popper/context_popper.js.map +1 -0
- package/dist/overlay/popper/element_popper.d.ts +7 -0
- package/dist/overlay/popper/element_popper.d.ts.map +1 -0
- package/dist/overlay/popper/element_popper.js +33 -0
- package/dist/overlay/popper/element_popper.js.map +1 -0
- package/dist/overlay/popper/hooks/use_context_trigger.d.ts +7 -0
- package/dist/overlay/popper/hooks/use_context_trigger.d.ts.map +1 -0
- package/dist/overlay/popper/hooks/use_context_trigger.js +31 -0
- package/dist/overlay/popper/hooks/use_context_trigger.js.map +1 -0
- package/dist/overlay/popper/hooks/use_hover_trigger.d.ts +6 -0
- package/dist/overlay/popper/hooks/use_hover_trigger.d.ts.map +1 -0
- package/dist/overlay/popper/hooks/use_hover_trigger.js +17 -0
- package/dist/overlay/popper/hooks/use_hover_trigger.js.map +1 -0
- package/dist/overlay/popper/hooks/use_restore_focus.d.ts +2 -0
- package/dist/overlay/popper/hooks/use_restore_focus.d.ts.map +1 -0
- package/dist/overlay/popper/hooks/use_restore_focus.js +18 -0
- package/dist/overlay/popper/hooks/use_restore_focus.js.map +1 -0
- package/dist/overlay/popper/legacy/popper.d.ts.map +1 -0
- package/dist/overlay/popper/{popper.js → legacy/popper.js} +6 -6
- package/dist/overlay/popper/legacy/popper.js.map +1 -0
- package/dist/overlay/popper/preview_popper.d.ts +7 -0
- package/dist/overlay/popper/preview_popper.d.ts.map +1 -0
- package/dist/overlay/popper/preview_popper.js +46 -0
- package/dist/overlay/popper/preview_popper.js.map +1 -0
- package/dist/overlay/portal/portal_platform_context.js +4 -4
- package/dist/overlay/tethered/element_tethered.d.ts +8 -0
- package/dist/overlay/tethered/element_tethered.d.ts.map +1 -0
- package/dist/overlay/tethered/element_tethered.js +33 -0
- package/dist/overlay/tethered/element_tethered.js.map +1 -0
- package/dist/overlay/tethered/hooks/calculate_position.d.ts +19 -0
- package/dist/overlay/tethered/hooks/calculate_position.d.ts.map +1 -0
- package/dist/overlay/tethered/hooks/calculate_position.js +43 -0
- package/dist/overlay/tethered/hooks/calculate_position.js.map +1 -0
- package/dist/overlay/tethered/hooks/useTether.d.ts +19 -0
- package/dist/overlay/tethered/hooks/useTether.d.ts.map +1 -0
- package/dist/overlay/tethered/hooks/useTether.js +61 -0
- package/dist/overlay/tethered/hooks/useTether.js.map +1 -0
- package/dist/overlay/tethered/tethered.d.ts +20 -0
- package/dist/overlay/tethered/tethered.d.ts.map +1 -0
- package/dist/overlay/tethered/tethered.js +59 -0
- package/dist/overlay/tethered/tethered.js.map +1 -0
- package/dist/overlay/tethered/types.d.ts +3 -0
- package/dist/overlay/tethered/types.d.ts.map +1 -0
- package/dist/overlay/tethered/types.js +2 -0
- package/dist/overlay/tethered/types.js.map +1 -0
- package/dist/popper.css +1 -1
- package/dist/scaffold.css +1 -0
- package/dist/showcase-WfP6kBEb.js +58401 -0
- package/dist/showcase-WfP6kBEb.js.map +1 -0
- package/dist/showcase.css +1 -0
- package/dist/stacks/box/box.js +24 -24
- package/dist/stacks/h_collapsible_box.js +3 -3
- package/dist/stacks/h_stack.js +41 -41
- package/dist/stacks/spacer.js +11 -11
- package/dist/stacks/story_components/circle.js +10 -10
- package/dist/stacks/story_components/picture_placeholder.js +9 -9
- package/dist/stacks/story_components/rect.js +7 -7
- package/dist/stacks/story_components/style_box.js +4 -4
- package/dist/stacks/utils/use_is_collapsed.js +6 -6
- package/dist/stacks/v_collapsible_box.js +3 -3
- package/dist/stacks/v_stack.js +42 -42
- package/dist/stacks/z_stack.js +39 -39
- package/dist/surfaces/alert/alert.js +4 -4
- package/dist/surfaces/card/card.d.ts +2 -2
- package/dist/surfaces/card/card.d.ts.map +1 -1
- package/dist/surfaces/card/card.js +7 -7
- package/dist/surfaces/card/card.js.map +1 -1
- package/dist/surfaces/confirm/confirm.js +9 -9
- package/dist/surfaces/drawers/drawer_start/drawer_start.js +2 -2
- package/dist/surfaces/drawers/drawer_top/drawer_top.js +2 -2
- package/dist/surfaces/index.d.ts +2 -0
- package/dist/surfaces/index.d.ts.map +1 -1
- package/dist/surfaces/index.js +22 -18
- package/dist/surfaces/index.js.map +1 -1
- package/dist/surfaces/modal/modal.d.ts +3 -3
- package/dist/surfaces/modal/modal.d.ts.map +1 -1
- package/dist/surfaces/modal/modal.js +14 -14
- package/dist/surfaces/modal/modal.js.map +1 -1
- package/dist/surfaces/page/h_page.js +7 -7
- package/dist/surfaces/page/v_page.js +5 -5
- package/dist/surfaces/panel/h_panel.js +29 -30
- package/dist/surfaces/panel/h_panel.js.map +1 -1
- package/dist/surfaces/panel/v_panel.d.ts +3 -7
- package/dist/surfaces/panel/v_panel.d.ts.map +1 -1
- package/dist/surfaces/panel/v_panel.js +12 -54
- package/dist/surfaces/panel/v_panel.js.map +1 -1
- package/dist/surfaces/pop_confirm/pop_confirm.d.ts +5 -0
- package/dist/surfaces/pop_confirm/pop_confirm.d.ts.map +1 -0
- package/dist/surfaces/pop_confirm/pop_confirm.js +37 -0
- package/dist/surfaces/pop_confirm/pop_confirm.js.map +1 -0
- package/dist/surfaces/popconfirm/pop_confirm.d.ts +5 -0
- package/dist/surfaces/popconfirm/pop_confirm.d.ts.map +1 -0
- package/dist/surfaces/popconfirm/pop_confirm.js +13 -0
- package/dist/surfaces/popconfirm/pop_confirm.js.map +1 -0
- package/dist/surfaces/popover/popover.d.ts +1 -1
- package/dist/surfaces/popover/popover.d.ts.map +1 -1
- package/dist/surfaces/popover/popover.js +1 -1
- package/dist/surfaces/popover/popover.js.map +1 -1
- package/dist/surfaces/tooltip/tooltip.d.ts +10 -0
- package/dist/surfaces/tooltip/tooltip.d.ts.map +1 -0
- package/dist/surfaces/tooltip/tooltip.js +38 -0
- package/dist/surfaces/tooltip/tooltip.js.map +1 -0
- package/dist/surfaces/window/window.d.ts +3 -3
- package/dist/surfaces/window/window.d.ts.map +1 -1
- package/dist/surfaces/window/window.js +15 -13
- package/dist/surfaces/window/window.js.map +1 -1
- package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js +3777 -0
- package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js.map +1 -0
- package/dist/tethered.css +1 -0
- package/dist/themes/themes/ergo/ergo_theme.js +177 -206
- package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
- package/dist/tokens/badge/badge.js +9 -9
- package/dist/tokens/bubble/bubble.js +8 -8
- package/dist/tokens/chip/chip.js +3 -3
- package/dist/tooltip.css +1 -1
- package/dist/utility_bar.css +1 -1
- package/dist/utils/click_away_listener.d.ts +1 -0
- package/dist/utils/click_away_listener.d.ts.map +1 -1
- package/dist/utils/click_away_listener.js +12 -11
- package/dist/utils/click_away_listener.js.map +1 -1
- package/dist/utils/dnd/draggable/draggable.js +4 -4
- package/dist/utils/dnd/handle.js +8 -8
- package/dist/utils/focus_redirect.js +5 -5
- package/dist/utils/hooks/make_context_hook.js +4 -4
- package/dist/utils/hooks/use_media_query.js +2 -2
- package/dist/utils/hooks/use_media_query.js.map +1 -1
- package/dist/utils/index.d.ts +6 -5
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +26 -23
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/mouse_leave_region.d.ts +8 -0
- package/dist/utils/mouse_leave_region.d.ts.map +1 -0
- package/dist/utils/mouse_leave_region.js +26 -0
- package/dist/utils/mouse_leave_region.js.map +1 -0
- package/dist/utils/types/dimensions.d.ts +11 -1
- package/dist/utils/types/dimensions.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/actions/__docs__/actions.mdx +131 -0
- package/src/actions/__docs__/actions.stories.tsx +309 -0
- package/src/actions/__docs__/components/gallery.module.css +6 -0
- package/src/actions/__docs__/components/gallery.tsx +28 -0
- package/src/actions/__docs__/components/showcase.module.css +55 -0
- package/src/actions/__docs__/components/showcase.tsx +121 -0
- package/src/actions/button/base_button/base_button.tsx +5 -1
- package/src/actions/types.ts +6 -0
- package/src/inputs/color_input/color_input.tsx +1 -1
- package/src/inputs/date_picker/date_picker_input.tsx +1 -1
- package/src/inputs/date_picker/date_picker_year_input.tsx +1 -1
- package/src/inputs/suggestions/suggestion_list.tsx +1 -1
- package/src/layouts/index.ts +7 -5
- package/src/layouts/scaffold/scaffold.module.css +5 -0
- package/src/layouts/scaffold/scaffold.tsx +60 -0
- package/src/layouts/utility_bar/utility_bar.module.css +0 -3
- package/src/overlay/frame/frame.module.css +5 -0
- package/src/overlay/frame/frame.stories.tsx +1 -1
- package/src/overlay/frame/frame.tsx +19 -3
- package/src/overlay/index.ts +29 -2
- package/src/overlay/menu/menu.tsx +1 -1
- package/src/overlay/popper/__stories__/base_args.ts +75 -0
- package/src/overlay/popper/__stories__/context_popper.stories.tsx +77 -0
- package/src/overlay/popper/__stories__/element_popper.stories.tsx +80 -0
- package/src/overlay/popper/__stories__/preview_popper.stories.tsx +73 -0
- package/src/overlay/popper/base/base_popper.tsx +55 -0
- package/src/overlay/popper/base/dismissal_decorator.tsx +80 -0
- package/src/overlay/popper/context_popper.tsx +43 -0
- package/src/overlay/popper/element_popper.tsx +42 -0
- package/src/overlay/popper/hooks/use_context_trigger.ts +50 -0
- package/src/overlay/popper/hooks/use_hover_trigger.ts +24 -0
- package/src/overlay/popper/hooks/use_restore_focus.ts +16 -0
- package/src/overlay/popper/{popper.stories.tsx → legacy/popper.stories.tsx} +11 -5
- package/src/overlay/popper/{popper.tsx → legacy/popper.tsx} +3 -2
- package/src/overlay/popper/preview_popper.tsx +54 -0
- package/src/overlay/tethered/__stories__/element/element_tethered.stories.tsx +57 -0
- package/src/overlay/tethered/__stories__/element/element_tethered_stories.module.css +14 -0
- package/src/overlay/tethered/__stories__/shared/base_story_config.ts +52 -0
- package/src/overlay/tethered/__stories__/shared/components/sb_point.module.css +20 -0
- package/src/overlay/tethered/__stories__/shared/components/sb_point.tsx +34 -0
- package/src/overlay/tethered/__stories__/shared/components/sb_reference_points.tsx +54 -0
- package/src/overlay/tethered/__stories__/tethered/tethered.stories.tsx +90 -0
- package/src/overlay/tethered/__stories__/tethered/tethered_stories.module.css +25 -0
- package/src/overlay/tethered/element_tethered.tsx +62 -0
- package/src/overlay/tethered/hooks/calculate_position.ts +110 -0
- package/src/overlay/tethered/hooks/useTether.ts +85 -0
- package/src/overlay/tethered/tethered.module.css +8 -0
- package/src/overlay/tethered/tethered.tsx +72 -0
- package/src/overlay/tethered/types.ts +2 -0
- package/src/stacks/h_stack.stories.tsx +2 -2
- package/src/stacks/v_stack.stories.tsx +2 -2
- package/src/surfaces/card/card.stories.tsx +64 -0
- package/src/surfaces/card/card.tsx +4 -4
- package/src/surfaces/card/card_stories.module.css +13 -0
- package/src/surfaces/index.ts +2 -0
- package/src/surfaces/modal/__stories__/modal.stories.tsx +12 -1
- package/src/surfaces/modal/modal.module.css +2 -2
- package/src/surfaces/modal/modal.tsx +14 -12
- package/src/surfaces/panel/__stories__/panel.stories.tsx +1 -1
- package/src/surfaces/panel/v_panel.tsx +8 -53
- package/src/surfaces/pop_confirm/pop_confirm.stories.tsx +70 -0
- package/src/surfaces/pop_confirm/pop_confirm.tsx +30 -0
- package/src/surfaces/popconfirm/pop_confirm.tsx +18 -0
- package/src/surfaces/popover/popover.tsx +1 -1
- package/src/surfaces/tooltip/tooltip.stories.tsx +54 -0
- package/src/surfaces/tooltip/tooltip.tsx +59 -0
- package/src/surfaces/window/window.stories.tsx +15 -1
- package/src/surfaces/window/window.tsx +16 -12
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_picker.tsx +7 -9
- package/src/themes/themes/ergo/__stories__/material.stories.tsx +2 -6
- package/src/themes/themes/ergo/__stories__/sb_materials.module.css +29 -21
- package/src/themes/themes/ergo/ergo_theme.css +177 -206
- package/src/utils/click_away_listener.tsx +1 -1
- package/src/utils/index.ts +7 -5
- package/src/utils/mouse_leave_region.tsx +38 -0
- package/src/utils/types/dimensions.ts +13 -1
- package/tsconfig.json +3 -0
- package/dist/overlay/popper/popper.d.ts.map +0 -1
- package/dist/overlay/popper/popper.js.map +0 -1
- package/dist/overlay/tooltip/tooltip.d.ts +0 -7
- package/dist/overlay/tooltip/tooltip.d.ts.map +0 -1
- package/dist/overlay/tooltip/tooltip.js +0 -20
- package/dist/overlay/tooltip/tooltip.js.map +0 -1
- package/dist/panel.module-DwGKncon.js +0 -5
- package/dist/panel.module-DwGKncon.js.map +0 -1
- package/src/overlay/tooltip/tooltip.stories.tsx +0 -22
- package/src/overlay/tooltip/tooltip.tsx +0 -24
- /package/dist/{panel.css → h_panel.css} +0 -0
- /package/dist/overlay/popper/{popper.d.ts → legacy/popper.d.ts} +0 -0
- /package/src/overlay/popper/{popper.module.css → legacy/popper.module.css} +0 -0
- /package/src/{overlay → surfaces}/tooltip/tooltip.module.css +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._showcase_57a1682{border:1px solid var(--docs-border-color, #e5e7eb);background-color:var(--docs-card-bg, #fff);border-radius:8px;overflow:hidden;height:fit-content}._toolbar_944adb6{display:flex;align-items:center;justify-content:space-between;padding:8px 16px}._header_7789d59{min-height:48px;background-color:var(--docs-header-bg, #fafafa)}._title_034d539{font-size:14px;font-weight:600;color:var(--docs-text-color, #1f2937);margin:0!important}._subtitle_2478529{background-color:var(--docs-header-bg, #fafafa);flex-grow:1}._documentation_1ba3d31{color:var(--docs-text-muted, #6b7280);padding:0 16px}._description_4ed9c28{font-size:12px;color:var(--docs-text-muted, #6b7280)}._content_2c42bfd{min-height:200px;background-color:red;width:100%;border:none!important;box-shadow:none!important;margin:0!important;border-radius:0!important}._content_2c42bfd .docs-story{min-height:200px!important}
|
package/dist/stacks/box/box.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import "../../utils/focus_redirect.js";
|
|
3
2
|
import "../../utils/click_away_listener.js";
|
|
3
|
+
import "../../utils/focus_redirect.js";
|
|
4
4
|
import "../../utils/scroll_away_listener.js";
|
|
5
5
|
import O, { useRef as oo } from "react";
|
|
6
6
|
import { useForkRef as ro } from "../../utils/hooks/use_fork_ref.js";
|
|
@@ -15,18 +15,18 @@ import { clsx as mo } from "clsx";
|
|
|
15
15
|
import { isCustomSizeProp as y } from "../utils/isCustomSizeProp.js";
|
|
16
16
|
import { removeUndefinedProperties as no } from "../utils/remove_undefined_properties.js";
|
|
17
17
|
import { s as k } from "../../stack.module-CBV1f12Z.js";
|
|
18
|
-
const
|
|
18
|
+
const Yo = O.forwardRef(function({
|
|
19
19
|
style: v,
|
|
20
20
|
className: P,
|
|
21
|
-
as:
|
|
22
|
-
children:
|
|
21
|
+
as: _ = "div",
|
|
22
|
+
children: H,
|
|
23
23
|
width: r = "default",
|
|
24
|
-
minWidth:
|
|
25
|
-
maxWidth:
|
|
24
|
+
minWidth: V,
|
|
25
|
+
maxWidth: b,
|
|
26
26
|
height: t = "default",
|
|
27
|
-
minHeight:
|
|
28
|
-
maxHeight:
|
|
29
|
-
zIndex:
|
|
27
|
+
minHeight: j,
|
|
28
|
+
maxHeight: w,
|
|
29
|
+
zIndex: Y,
|
|
30
30
|
padding: A,
|
|
31
31
|
paddingInline: B,
|
|
32
32
|
paddingBlock: C,
|
|
@@ -47,22 +47,22 @@ const _o = O.forwardRef(function({
|
|
|
47
47
|
enableResizeOnLeft: c = !1,
|
|
48
48
|
enableResizeOnRight: p = !1,
|
|
49
49
|
onWidthResize: e,
|
|
50
|
-
onHeightResize:
|
|
50
|
+
onHeightResize: i,
|
|
51
51
|
onWidthResizeEnd: f,
|
|
52
52
|
onHeightResizeEnd: u,
|
|
53
53
|
horizontalHandleProps: x,
|
|
54
|
-
verticalHandleProps:
|
|
54
|
+
verticalHandleProps: d,
|
|
55
55
|
...X
|
|
56
56
|
}, Z) {
|
|
57
|
-
const $ =
|
|
57
|
+
const $ = _, o = oo(null), L = ro(Z, o), R = l || n || c || p, T = m || s, z = R, E = T, g = z && r === "flex", S = E && t === "flex", F = !g && !S && (r === "flex" || t === "flex");
|
|
58
58
|
g && (r = "100%", console.warn("You cannot have a resizable box and flex simultaneously")), S && (t = "auto", console.warn("You cannot have a resizable box and flex simultaneously"));
|
|
59
59
|
const W = {
|
|
60
60
|
width: y(r) ? void 0 : r,
|
|
61
|
-
minWidth:
|
|
62
|
-
maxWidth:
|
|
61
|
+
minWidth: V,
|
|
62
|
+
maxWidth: b,
|
|
63
63
|
height: y(t) ? void 0 : t,
|
|
64
|
-
minHeight:
|
|
65
|
-
maxHeight:
|
|
64
|
+
minHeight: j,
|
|
65
|
+
maxHeight: w,
|
|
66
66
|
padding: A,
|
|
67
67
|
paddingInline: B,
|
|
68
68
|
paddingBlock: C,
|
|
@@ -76,7 +76,7 @@ const _o = O.forwardRef(function({
|
|
|
76
76
|
overflow: K,
|
|
77
77
|
overflowX: M,
|
|
78
78
|
overflowY: Q,
|
|
79
|
-
zIndex:
|
|
79
|
+
zIndex: Y
|
|
80
80
|
};
|
|
81
81
|
return /* @__PURE__ */ h(
|
|
82
82
|
$,
|
|
@@ -103,11 +103,11 @@ const _o = O.forwardRef(function({
|
|
|
103
103
|
),
|
|
104
104
|
...X,
|
|
105
105
|
children: [
|
|
106
|
-
|
|
106
|
+
H,
|
|
107
107
|
s && /* @__PURE__ */ a(
|
|
108
108
|
lo,
|
|
109
109
|
{
|
|
110
|
-
onHeightResize:
|
|
110
|
+
onHeightResize: i,
|
|
111
111
|
onHeightResizeEnd: u,
|
|
112
112
|
targetRef: o,
|
|
113
113
|
handleProps: x
|
|
@@ -116,10 +116,10 @@ const _o = O.forwardRef(function({
|
|
|
116
116
|
m && /* @__PURE__ */ a(
|
|
117
117
|
eo,
|
|
118
118
|
{
|
|
119
|
-
onHeightResize:
|
|
119
|
+
onHeightResize: i,
|
|
120
120
|
onHeightResizeEnd: u,
|
|
121
121
|
targetRef: o,
|
|
122
|
-
handleProps:
|
|
122
|
+
handleProps: d
|
|
123
123
|
}
|
|
124
124
|
),
|
|
125
125
|
n && /* @__PURE__ */ a(
|
|
@@ -146,7 +146,7 @@ const _o = O.forwardRef(function({
|
|
|
146
146
|
onWidthResize: e,
|
|
147
147
|
onWidthResizeEnd: f,
|
|
148
148
|
targetRef: o,
|
|
149
|
-
handleProps:
|
|
149
|
+
handleProps: d
|
|
150
150
|
}
|
|
151
151
|
),
|
|
152
152
|
p && /* @__PURE__ */ a(
|
|
@@ -155,7 +155,7 @@ const _o = O.forwardRef(function({
|
|
|
155
155
|
onWidthResize: e,
|
|
156
156
|
onWidthResizeEnd: f,
|
|
157
157
|
targetRef: o,
|
|
158
|
-
handleProps:
|
|
158
|
+
handleProps: d
|
|
159
159
|
}
|
|
160
160
|
)
|
|
161
161
|
]
|
|
@@ -163,6 +163,6 @@ const _o = O.forwardRef(function({
|
|
|
163
163
|
);
|
|
164
164
|
});
|
|
165
165
|
export {
|
|
166
|
-
|
|
166
|
+
Yo as Box
|
|
167
167
|
};
|
|
168
168
|
//# sourceMappingURL=box.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import t, { useLayoutEffect as p } from "react";
|
|
3
|
-
import "../utils/focus_redirect.js";
|
|
4
3
|
import "../utils/click_away_listener.js";
|
|
4
|
+
import "../utils/focus_redirect.js";
|
|
5
5
|
import "../utils/scroll_away_listener.js";
|
|
6
6
|
import { useForkRef as d } from "../utils/hooks/use_fork_ref.js";
|
|
7
7
|
import "../utils/hooks/use_resize_observer.js";
|
|
@@ -9,7 +9,7 @@ import { clsx as u } from "clsx";
|
|
|
9
9
|
import { Box as R } from "./box/box.js";
|
|
10
10
|
import { s as z } from "../collapsible_box.module-BiS98xXA.js";
|
|
11
11
|
import { useIsCollapsed as x } from "./utils/use_is_collapsed.js";
|
|
12
|
-
const
|
|
12
|
+
const j = t.forwardRef(function({ open: l = !1, defaultWidth: i = "400px", ...e }, a) {
|
|
13
13
|
const s = t.useRef(null), n = d(a, s), [c, r] = t.useState(!1);
|
|
14
14
|
p(() => {
|
|
15
15
|
s.current?.style.setProperty("--collapsible-size", i);
|
|
@@ -35,6 +35,6 @@ const F = t.forwardRef(function({ open: l = !1, defaultWidth: i = "400px", ...e
|
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
j as HCollapsibleBox
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=h_collapsible_box.js.map
|
package/dist/stacks/h_stack.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import
|
|
4
|
-
import { removeUndefinedProperties as
|
|
5
|
-
import { s as
|
|
1
|
+
import { jsx as J } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as K } from "clsx";
|
|
3
|
+
import L from "react";
|
|
4
|
+
import { removeUndefinedProperties as M } from "./utils/remove_undefined_properties.js";
|
|
5
|
+
import { s as O } from "../stack.module-CBV1f12Z.js";
|
|
6
6
|
import { isCustomSizeProp as r } from "./utils/isCustomSizeProp.js";
|
|
7
|
-
const tt =
|
|
7
|
+
const tt = L.forwardRef(function({
|
|
8
8
|
as: s = "div",
|
|
9
9
|
children: i,
|
|
10
10
|
style: n,
|
|
@@ -15,10 +15,10 @@ const tt = M.forwardRef(function({
|
|
|
15
15
|
allowFlow: c,
|
|
16
16
|
width: t = "default",
|
|
17
17
|
minWidth: p,
|
|
18
|
-
maxWidth:
|
|
18
|
+
maxWidth: u,
|
|
19
19
|
height: a = "default",
|
|
20
|
-
growWeight:
|
|
21
|
-
shrinkWeight:
|
|
20
|
+
growWeight: h,
|
|
21
|
+
shrinkWeight: k,
|
|
22
22
|
minHeight: g,
|
|
23
23
|
maxHeight: v,
|
|
24
24
|
padding: y,
|
|
@@ -30,29 +30,29 @@ const tt = M.forwardRef(function({
|
|
|
30
30
|
paddingBottom: P,
|
|
31
31
|
margin: R,
|
|
32
32
|
marginBlock: W,
|
|
33
|
-
marginInline:
|
|
34
|
-
marginInlineStart:
|
|
35
|
-
marginInlineEnd:
|
|
36
|
-
marginTop:
|
|
37
|
-
marginBottom:
|
|
38
|
-
zIndex:
|
|
33
|
+
marginInline: _,
|
|
34
|
+
marginInlineStart: j,
|
|
35
|
+
marginInlineEnd: z,
|
|
36
|
+
marginTop: A,
|
|
37
|
+
marginBottom: C,
|
|
38
|
+
zIndex: N,
|
|
39
39
|
overflowX: o,
|
|
40
40
|
overflowY: e,
|
|
41
|
-
gap:
|
|
42
|
-
rowGap:
|
|
43
|
-
columnGap:
|
|
44
|
-
...
|
|
45
|
-
},
|
|
46
|
-
const
|
|
41
|
+
gap: U,
|
|
42
|
+
rowGap: b,
|
|
43
|
+
columnGap: q,
|
|
44
|
+
...D
|
|
45
|
+
}, E) {
|
|
46
|
+
const F = s, G = {
|
|
47
47
|
minWidth: p,
|
|
48
48
|
width: r(t) ? void 0 : t,
|
|
49
|
-
maxWidth:
|
|
49
|
+
maxWidth: u,
|
|
50
50
|
minHeight: g,
|
|
51
51
|
height: r(a) ? void 0 : a,
|
|
52
52
|
maxHeight: v,
|
|
53
|
-
flexGrow:
|
|
54
|
-
flexShrink:
|
|
55
|
-
zIndex:
|
|
53
|
+
flexGrow: h,
|
|
54
|
+
flexShrink: k,
|
|
55
|
+
zIndex: N,
|
|
56
56
|
overflowX: o,
|
|
57
57
|
overflowY: e,
|
|
58
58
|
padding: y,
|
|
@@ -64,24 +64,24 @@ const tt = M.forwardRef(function({
|
|
|
64
64
|
paddingBottom: P,
|
|
65
65
|
margin: R,
|
|
66
66
|
marginBlock: W,
|
|
67
|
-
marginInline:
|
|
68
|
-
marginInlineStart:
|
|
69
|
-
marginInlineEnd:
|
|
70
|
-
marginTop:
|
|
71
|
-
marginBottom:
|
|
72
|
-
gap:
|
|
73
|
-
rowGap:
|
|
74
|
-
columnGap:
|
|
75
|
-
},
|
|
76
|
-
...
|
|
67
|
+
marginInline: _,
|
|
68
|
+
marginInlineStart: j,
|
|
69
|
+
marginInlineEnd: z,
|
|
70
|
+
marginTop: A,
|
|
71
|
+
marginBottom: C,
|
|
72
|
+
gap: U,
|
|
73
|
+
rowGap: b,
|
|
74
|
+
columnGap: q
|
|
75
|
+
}, I = {
|
|
76
|
+
...M(G),
|
|
77
77
|
...n
|
|
78
78
|
};
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
|
|
79
|
+
return /* @__PURE__ */ J(
|
|
80
|
+
F,
|
|
81
81
|
{
|
|
82
|
-
ref:
|
|
83
|
-
className:
|
|
84
|
-
style:
|
|
82
|
+
ref: E,
|
|
83
|
+
className: K(O["h-stack"], l, "h-stack", "stack"),
|
|
84
|
+
style: I,
|
|
85
85
|
"data-inline": !!f,
|
|
86
86
|
"data-allow-flow": !!c,
|
|
87
87
|
"data-v-alignment": m,
|
|
@@ -90,7 +90,7 @@ const tt = M.forwardRef(function({
|
|
|
90
90
|
"data-width": t,
|
|
91
91
|
"data-overflow-x": o,
|
|
92
92
|
"data-overflow-y": e,
|
|
93
|
-
...
|
|
93
|
+
...D,
|
|
94
94
|
children: i
|
|
95
95
|
}
|
|
96
96
|
);
|
package/dist/stacks/spacer.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import
|
|
4
|
-
const g =
|
|
5
|
-
width:
|
|
6
|
-
height:
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as m } from "clsx";
|
|
3
|
+
import p from "react";
|
|
4
|
+
const g = p.forwardRef(function({
|
|
5
|
+
width: t = "auto",
|
|
6
|
+
height: o = "auto",
|
|
7
7
|
fullHeight: n = !1,
|
|
8
|
-
fullWidth:
|
|
9
|
-
fillSpaceWeight:
|
|
8
|
+
fullWidth: a = !1,
|
|
9
|
+
fillSpaceWeight: r = 1,
|
|
10
10
|
style: s,
|
|
11
11
|
className: f
|
|
12
12
|
}, c) {
|
|
13
|
-
const l =
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
const l = t === "auto" && o === "auto" ? r : void 0, e = a ? "100%" : t, i = n ? "100%" : o;
|
|
14
|
+
return /* @__PURE__ */ d(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
17
|
ref: c,
|
|
@@ -27,7 +27,7 @@ const g = d.forwardRef(function({
|
|
|
27
27
|
zIndex: 1,
|
|
28
28
|
flex: l
|
|
29
29
|
},
|
|
30
|
-
className:
|
|
30
|
+
className: m("spacer", f)
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
});
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import s from "react";
|
|
3
3
|
import { ZStack as m } from "../z_stack.js";
|
|
4
|
-
import { clsx as
|
|
5
|
-
import '../../circle.css';const
|
|
6
|
-
const
|
|
4
|
+
import { clsx as a } from "clsx";
|
|
5
|
+
import '../../circle.css';const n = "_circle_2f733a0", p = { circle: n }, y = s.forwardRef(function({ color: r = "#90d9c7", size: c = "150px", style: t, className: o, ...e }, l) {
|
|
6
|
+
const i = {
|
|
7
7
|
...t,
|
|
8
8
|
"--color": r
|
|
9
9
|
};
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ f(
|
|
11
11
|
m,
|
|
12
12
|
{
|
|
13
|
-
ref:
|
|
14
|
-
style:
|
|
13
|
+
ref: l,
|
|
14
|
+
style: i,
|
|
15
15
|
width: c,
|
|
16
16
|
height: c,
|
|
17
|
-
className:
|
|
17
|
+
className: a(o, p.circle),
|
|
18
18
|
...e
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
});
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
y as Circle
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=circle.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
3
|
import { clsx as s } from "clsx";
|
|
4
4
|
import '../../picture_placeholder.css';const i = "_picture-placeholder_ec357fb", p = { "picture-placeholder": i }, f = m.forwardRef(function({
|
|
5
|
-
color:
|
|
5
|
+
color: r = "currentColor",
|
|
6
6
|
size: c = "150px",
|
|
7
7
|
style: l,
|
|
8
|
-
className:
|
|
9
|
-
...
|
|
8
|
+
className: t,
|
|
9
|
+
...o
|
|
10
10
|
}, h) {
|
|
11
11
|
const v = {
|
|
12
12
|
...l,
|
|
13
|
-
"--color":
|
|
13
|
+
"--color": r
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ e(
|
|
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(
|
|
23
|
+
className: s(t, p["picture-placeholder"]),
|
|
24
24
|
style: v,
|
|
25
|
-
...
|
|
26
|
-
children: /* @__PURE__ */
|
|
25
|
+
...o,
|
|
26
|
+
children: /* @__PURE__ */ e(
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Box as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { Box as n } from "../box/box.js";
|
|
4
4
|
import { clsx as i } from "clsx";
|
|
5
|
-
import '../../rect.css';const p = "_rect_60482cd",
|
|
5
|
+
import '../../rect.css';const p = "_rect_60482cd", d = { rect: p }, j = l.forwardRef(function({
|
|
6
6
|
color: t = "#acdef0",
|
|
7
7
|
style: o,
|
|
8
8
|
className: r,
|
|
@@ -14,12 +14,12 @@ import '../../rect.css';const p = "_rect_60482cd", x = { rect: p }, j = a.forwar
|
|
|
14
14
|
...o,
|
|
15
15
|
"--color": t
|
|
16
16
|
};
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
return /* @__PURE__ */ a(
|
|
18
|
+
n,
|
|
19
19
|
{
|
|
20
20
|
ref: f,
|
|
21
21
|
style: m,
|
|
22
|
-
className: i(r,
|
|
22
|
+
className: i(r, d.rect),
|
|
23
23
|
width: c,
|
|
24
24
|
height: e,
|
|
25
25
|
...s
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
3
|
import { Box as i } from "../box/box.js";
|
|
4
|
-
import { extractStyleProps as
|
|
5
|
-
const
|
|
6
|
-
const [m, f] =
|
|
4
|
+
import { extractStyleProps as l } from "../utils/extract_style_props.js";
|
|
5
|
+
const d = s.forwardRef(function({ className: o, children: r, ...t }, e) {
|
|
6
|
+
const [m, f] = l(t);
|
|
7
7
|
return /* @__PURE__ */ p(i, { ref: e, className: o, style: m, ...f, children: r });
|
|
8
8
|
});
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
d as StyleBox
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=style_box.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import d, { useLayoutEffect as l } from "react";
|
|
2
|
-
function c(
|
|
3
|
-
const [i, n] = d.useState(!
|
|
2
|
+
function c(r, s) {
|
|
3
|
+
const [i, n] = d.useState(!r);
|
|
4
4
|
return l(() => {
|
|
5
5
|
const t = s.current;
|
|
6
6
|
if (!t) return;
|
|
7
|
-
const
|
|
7
|
+
const a = () => {
|
|
8
8
|
const { isCollapsed: e } = t.dataset;
|
|
9
9
|
e === "false" && n(!1);
|
|
10
|
-
},
|
|
10
|
+
}, o = () => {
|
|
11
11
|
const { isCollapsed: e } = t.dataset;
|
|
12
12
|
e === "true" && n(!0);
|
|
13
13
|
};
|
|
14
|
-
return t.addEventListener("transitionstart",
|
|
15
|
-
t.removeEventListener("transitionstart",
|
|
14
|
+
return t.addEventListener("transitionstart", a), t.addEventListener("transitionend", o), () => {
|
|
15
|
+
t.removeEventListener("transitionstart", a), t.removeEventListener("transitionend", o);
|
|
16
16
|
};
|
|
17
17
|
}, [s]), i;
|
|
18
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import t, { useLayoutEffect as p } from "react";
|
|
3
|
-
import "../utils/focus_redirect.js";
|
|
4
3
|
import "../utils/click_away_listener.js";
|
|
4
|
+
import "../utils/focus_redirect.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";
|
|
@@ -9,7 +9,7 @@ import { clsx as d } from "clsx";
|
|
|
9
9
|
import { Box as R } from "./box/box.js";
|
|
10
10
|
import { s as x } from "../collapsible_box.module-BiS98xXA.js";
|
|
11
11
|
import { useIsCollapsed as z } from "./utils/use_is_collapsed.js";
|
|
12
|
-
const
|
|
12
|
+
const j = 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);
|
|
@@ -35,6 +35,6 @@ const v = t.forwardRef(function({ open: l = !1, defaultHeight: i = "400px", ...e
|
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
j as VCollapsibleBox
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=v_collapsible_box.js.map
|
package/dist/stacks/v_stack.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import
|
|
4
|
-
import { removeUndefinedProperties as
|
|
5
|
-
import { s as
|
|
1
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as J } from "clsx";
|
|
3
|
+
import K from "react";
|
|
4
|
+
import { removeUndefinedProperties as L } from "./utils/remove_undefined_properties.js";
|
|
5
|
+
import { s as M } from "../stack.module-CBV1f12Z.js";
|
|
6
6
|
import { isCustomSizeProp as s } from "./utils/isCustomSizeProp.js";
|
|
7
|
-
const tt =
|
|
8
|
-
as:
|
|
9
|
-
children:
|
|
7
|
+
const tt = K.forwardRef(function({
|
|
8
|
+
as: l = "div",
|
|
9
|
+
children: i,
|
|
10
10
|
style: d,
|
|
11
11
|
className: n,
|
|
12
12
|
hAlign: f = "center",
|
|
@@ -15,9 +15,9 @@ const tt = L.forwardRef(function({
|
|
|
15
15
|
allowFlow: c,
|
|
16
16
|
width: a = "default",
|
|
17
17
|
minWidth: p,
|
|
18
|
-
maxWidth:
|
|
18
|
+
maxWidth: u,
|
|
19
19
|
height: o = "default",
|
|
20
|
-
minHeight:
|
|
20
|
+
minHeight: v,
|
|
21
21
|
maxHeight: k,
|
|
22
22
|
growWeight: x,
|
|
23
23
|
shrinkWeight: y,
|
|
@@ -30,30 +30,30 @@ const tt = L.forwardRef(function({
|
|
|
30
30
|
paddingBottom: R,
|
|
31
31
|
margin: V,
|
|
32
32
|
marginBlock: W,
|
|
33
|
-
marginInline:
|
|
34
|
-
marginInlineStart:
|
|
35
|
-
marginInlineEnd:
|
|
36
|
-
marginTop:
|
|
37
|
-
marginBottom:
|
|
38
|
-
zIndex:
|
|
33
|
+
marginInline: _,
|
|
34
|
+
marginInlineStart: j,
|
|
35
|
+
marginInlineEnd: z,
|
|
36
|
+
marginTop: A,
|
|
37
|
+
marginBottom: C,
|
|
38
|
+
zIndex: N,
|
|
39
39
|
overflowY: e,
|
|
40
40
|
overflowX: r,
|
|
41
|
-
gap:
|
|
42
|
-
rowGap:
|
|
43
|
-
columnGap:
|
|
44
|
-
...
|
|
45
|
-
},
|
|
46
|
-
const
|
|
41
|
+
gap: U,
|
|
42
|
+
rowGap: b,
|
|
43
|
+
columnGap: q,
|
|
44
|
+
...D
|
|
45
|
+
}, E) {
|
|
46
|
+
const F = l, G = {
|
|
47
47
|
display: t == null ? void 0 : t ? "inline-flex" : "flex",
|
|
48
48
|
minWidth: p,
|
|
49
49
|
width: s(a) ? void 0 : a,
|
|
50
|
-
maxWidth:
|
|
51
|
-
minHeight:
|
|
50
|
+
maxWidth: u,
|
|
51
|
+
minHeight: v,
|
|
52
52
|
height: s(o) ? void 0 : o,
|
|
53
53
|
maxHeight: k,
|
|
54
54
|
flexGrow: x,
|
|
55
55
|
flexShrink: y,
|
|
56
|
-
zIndex:
|
|
56
|
+
zIndex: N,
|
|
57
57
|
overflowX: r,
|
|
58
58
|
overflowY: e,
|
|
59
59
|
padding: g,
|
|
@@ -65,24 +65,24 @@ const tt = L.forwardRef(function({
|
|
|
65
65
|
paddingBottom: R,
|
|
66
66
|
margin: V,
|
|
67
67
|
marginBlock: W,
|
|
68
|
-
marginInline:
|
|
69
|
-
marginInlineStart:
|
|
70
|
-
marginInlineEnd:
|
|
71
|
-
marginTop:
|
|
72
|
-
marginBottom:
|
|
73
|
-
gap:
|
|
74
|
-
rowGap:
|
|
75
|
-
columnGap:
|
|
76
|
-
},
|
|
77
|
-
...
|
|
68
|
+
marginInline: _,
|
|
69
|
+
marginInlineStart: j,
|
|
70
|
+
marginInlineEnd: z,
|
|
71
|
+
marginTop: A,
|
|
72
|
+
marginBottom: C,
|
|
73
|
+
gap: U,
|
|
74
|
+
rowGap: b,
|
|
75
|
+
columnGap: q
|
|
76
|
+
}, H = {
|
|
77
|
+
...L(G),
|
|
78
78
|
...d
|
|
79
79
|
};
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
|
|
80
|
+
return /* @__PURE__ */ I(
|
|
81
|
+
F,
|
|
82
82
|
{
|
|
83
|
-
ref:
|
|
84
|
-
className:
|
|
85
|
-
style:
|
|
83
|
+
ref: E,
|
|
84
|
+
className: J(M["v-stack"], n, "v-stack", "stack"),
|
|
85
|
+
style: H,
|
|
86
86
|
"data-inline": !!t,
|
|
87
87
|
"data-allow-flow": !!c,
|
|
88
88
|
"data-v-alignment": m,
|
|
@@ -91,8 +91,8 @@ const tt = L.forwardRef(function({
|
|
|
91
91
|
"data-width": a,
|
|
92
92
|
"data-overflow-y": e,
|
|
93
93
|
"data-overflow-x": r,
|
|
94
|
-
...
|
|
95
|
-
children:
|
|
94
|
+
...D,
|
|
95
|
+
children: i
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
98
|
});
|