@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
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { clsx as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as s } from "clsx";
|
|
3
3
|
import x from "react";
|
|
4
4
|
import { Box as b } from "../../stacks/box/box.js";
|
|
5
|
-
import { VStack as
|
|
6
|
-
import '../../column.css';const
|
|
7
|
-
children:
|
|
5
|
+
import { VStack as d } from "../../stacks/v_stack.js";
|
|
6
|
+
import '../../column.css';const i = "_column_ce05462", C = "_column-stack_80b940b", l = { column: i, "column-stack": C }, z = x.forwardRef(function({
|
|
7
|
+
children: r,
|
|
8
8
|
width: u,
|
|
9
9
|
height: a,
|
|
10
10
|
minWidth: o,
|
|
11
11
|
maxWidth: c,
|
|
12
|
-
minHeight:
|
|
13
|
-
maxHeight:
|
|
12
|
+
minHeight: t,
|
|
13
|
+
maxHeight: m,
|
|
14
14
|
hAlign: e,
|
|
15
15
|
vAlign: f = "start",
|
|
16
16
|
className: k,
|
|
17
17
|
...p
|
|
18
18
|
}, _) {
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ n(
|
|
20
20
|
b,
|
|
21
21
|
{
|
|
22
22
|
width: u,
|
|
23
23
|
height: a,
|
|
24
24
|
minWidth: o,
|
|
25
25
|
maxWidth: c,
|
|
26
|
-
minHeight:
|
|
27
|
-
maxHeight:
|
|
28
|
-
className:
|
|
26
|
+
minHeight: t,
|
|
27
|
+
maxHeight: m,
|
|
28
|
+
className: s(k, l.column, "column"),
|
|
29
29
|
...p,
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
-
|
|
30
|
+
children: /* @__PURE__ */ n(
|
|
31
|
+
d,
|
|
32
32
|
{
|
|
33
33
|
minWidth: o,
|
|
34
34
|
maxWidth: c,
|
|
35
|
-
minHeight:
|
|
36
|
-
maxHeight:
|
|
35
|
+
minHeight: t,
|
|
36
|
+
maxHeight: m,
|
|
37
37
|
hAlign: e,
|
|
38
38
|
vAlign: f,
|
|
39
39
|
ref: _,
|
|
40
40
|
as: "section",
|
|
41
|
-
className:
|
|
41
|
+
className: s(l["column-stack"], "column-stack"),
|
|
42
42
|
zIndex: 0,
|
|
43
|
-
children:
|
|
43
|
+
children: r
|
|
44
44
|
}
|
|
45
45
|
)
|
|
46
46
|
}
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { jsxs as h, jsx as
|
|
1
|
+
import { jsxs as h, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { clsx as r } from "clsx";
|
|
3
|
-
import
|
|
3
|
+
import { s } from "../../divider.module-FptFV0PX.js";
|
|
4
|
+
const u = ({
|
|
4
5
|
emphasis: i = "normal",
|
|
5
|
-
thickness:
|
|
6
|
-
length:
|
|
7
|
-
style:
|
|
8
|
-
horizontal:
|
|
9
|
-
vertical:
|
|
10
|
-
width:
|
|
11
|
-
height:
|
|
12
|
-
className:
|
|
6
|
+
thickness: t = "sm",
|
|
7
|
+
length: a = "full",
|
|
8
|
+
style: f,
|
|
9
|
+
horizontal: n,
|
|
10
|
+
vertical: x,
|
|
11
|
+
width: o,
|
|
12
|
+
height: l,
|
|
13
|
+
className: e,
|
|
13
14
|
children: v,
|
|
14
15
|
...c
|
|
15
16
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
"--divider-width":
|
|
18
|
-
"--divider-height":
|
|
17
|
+
const d = n ? "horizontal" : "vertical", m = {
|
|
18
|
+
"--divider-width": o,
|
|
19
|
+
"--divider-height": l
|
|
19
20
|
};
|
|
20
21
|
return /* @__PURE__ */ h(
|
|
21
22
|
"div",
|
|
22
23
|
{
|
|
23
24
|
"data-emphasis": i,
|
|
24
|
-
"data-thickness":
|
|
25
|
-
"data-length":
|
|
26
|
-
"data-orientation":
|
|
27
|
-
className: r(
|
|
25
|
+
"data-thickness": t,
|
|
26
|
+
"data-length": a,
|
|
27
|
+
"data-orientation": d,
|
|
28
|
+
className: r(s.divider, "divider", "tcn-divider", e),
|
|
28
29
|
...c,
|
|
29
30
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ p(
|
|
31
32
|
"div",
|
|
32
33
|
{
|
|
33
34
|
"data-emphasis": i,
|
|
34
|
-
"data-thickness":
|
|
35
|
-
"data-length":
|
|
36
|
-
"data-orientation":
|
|
35
|
+
"data-thickness": t,
|
|
36
|
+
"data-length": a,
|
|
37
|
+
"data-orientation": d,
|
|
37
38
|
style: m,
|
|
38
39
|
className: r(
|
|
39
|
-
|
|
40
|
+
s["divider-line"],
|
|
40
41
|
"divider-line",
|
|
41
42
|
"tcn-divider-line",
|
|
42
43
|
"material",
|
|
43
|
-
|
|
44
|
+
e
|
|
44
45
|
)
|
|
45
46
|
}
|
|
46
47
|
),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.js","sources":["../../../src/layouts/divider/divider.tsx"],"sourcesContent":["import React, { type CSSProperties } from 'react';\nimport { clsx } from 'clsx';\nimport type { WithDetailedHTMLProps } from '../../stacks/types/as.js';\nimport type { Emphasis, Size } from '../../utils/index.js';\nimport styles from './divider.module.css';\n\nexport type DividerOrientation =\n | {\n horizontal?: boolean;\n vertical?: never;\n }\n | {\n horizontal?: never;\n vertical?: boolean;\n };\n\nexport interface DividerClasses {\n line?: string;\n}\n\nexport interface DividerProperties {\n width?: CSSProperties['width'];\n height?: CSSProperties['height'];\n}\n\nexport type DividerOwnProps = DividerOrientation &\n DividerProperties & {\n emphasis?: Emphasis;\n thickness?: Size;\n length?: Size | 'full';\n classes?: Partial<DividerClasses>;\n };\n\nexport type DividerProps = WithDetailedHTMLProps<DividerOwnProps, 'div'>;\n\nexport const Divider: React.FC<DividerProps> = ({\n emphasis = 'normal',\n thickness = 'sm',\n length = 'full',\n style,\n horizontal,\n vertical,\n width,\n height,\n className,\n children,\n ...props\n}) => {\n const orientation = horizontal ? 'horizontal' : 'vertical';\n\n const cssVariables = {\n '--divider-width': width,\n '--divider-height': height,\n } as CSSProperties;\n\n return (\n <div\n data-emphasis={emphasis}\n data-thickness={thickness}\n data-length={length}\n data-orientation={orientation}\n className={clsx(styles[`divider`], 'divider', 'tcn-divider', className)}\n {...props}\n >\n <div\n data-emphasis={emphasis}\n data-thickness={thickness}\n data-length={length}\n data-orientation={orientation}\n style={cssVariables}\n className={clsx(\n styles[`divider-line`],\n 'divider-line',\n 'tcn-divider-line',\n 'material',\n className\n )}\n />\n {children}\n </div>\n );\n};\n"],"names":["Divider","emphasis","thickness","length","style","horizontal","vertical","width","height","className","children","props","orientation","cssVariables","jsxs","clsx","styles","jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"divider.js","sources":["../../../src/layouts/divider/divider.tsx"],"sourcesContent":["import React, { type CSSProperties } from 'react';\nimport { clsx } from 'clsx';\nimport type { WithDetailedHTMLProps } from '../../stacks/types/as.js';\nimport type { Emphasis, Size } from '../../utils/index.js';\nimport styles from './divider.module.css';\n\nexport type DividerOrientation =\n | {\n horizontal?: boolean;\n vertical?: never;\n }\n | {\n horizontal?: never;\n vertical?: boolean;\n };\n\nexport interface DividerClasses {\n line?: string;\n}\n\nexport interface DividerProperties {\n width?: CSSProperties['width'];\n height?: CSSProperties['height'];\n}\n\nexport type DividerOwnProps = DividerOrientation &\n DividerProperties & {\n emphasis?: Emphasis;\n thickness?: Size;\n length?: Size | 'full';\n classes?: Partial<DividerClasses>;\n };\n\nexport type DividerProps = WithDetailedHTMLProps<DividerOwnProps, 'div'>;\n\nexport const Divider: React.FC<DividerProps> = ({\n emphasis = 'normal',\n thickness = 'sm',\n length = 'full',\n style,\n horizontal,\n vertical,\n width,\n height,\n className,\n children,\n ...props\n}) => {\n const orientation = horizontal ? 'horizontal' : 'vertical';\n\n const cssVariables = {\n '--divider-width': width,\n '--divider-height': height,\n } as CSSProperties;\n\n return (\n <div\n data-emphasis={emphasis}\n data-thickness={thickness}\n data-length={length}\n data-orientation={orientation}\n className={clsx(styles[`divider`], 'divider', 'tcn-divider', className)}\n {...props}\n >\n <div\n data-emphasis={emphasis}\n data-thickness={thickness}\n data-length={length}\n data-orientation={orientation}\n style={cssVariables}\n className={clsx(\n styles[`divider-line`],\n 'divider-line',\n 'tcn-divider-line',\n 'material',\n className\n )}\n />\n {children}\n </div>\n );\n};\n"],"names":["Divider","emphasis","thickness","length","style","horizontal","vertical","width","height","className","children","props","orientation","cssVariables","jsxs","clsx","styles","jsx"],"mappings":";;;AAmCO,MAAMA,IAAkC,CAAC;AAAA,EAC9C,UAAAC,IAAW;AAAA,EACX,WAAAC,IAAY;AAAA,EACZ,QAAAC,IAAS;AAAA,EACT,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAcP,IAAa,eAAe,YAE1CQ,IAAe;AAAA,IACnB,mBAAmBN;AAAA,IACnB,oBAAoBC;AAAA,EAAA;AAGtB,SACE,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,iBAAeb;AAAA,MACf,kBAAgBC;AAAA,MAChB,eAAaC;AAAA,MACb,oBAAkBS;AAAA,MAClB,WAAWG,EAAKC,EAAO,SAAY,WAAW,eAAeP,CAAS;AAAA,MACrE,GAAGE;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAM;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,iBAAehB;AAAA,YACf,kBAAgBC;AAAA,YAChB,eAAaC;AAAA,YACb,oBAAkBS;AAAA,YAClB,OAAOC;AAAA,YACP,WAAWE;AAAA,cACTC,EAAO,cAAc;AAAA,cACrB;AAAA,cACA;AAAA,cACA;AAAA,cACAP;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,QAEDC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
3
|
import { clsx as m } from "clsx";
|
|
4
4
|
import { HStack as n } from "../../stacks/h_stack.js";
|
|
5
|
-
import '../../footer.css';const i = "_footer_4a43c3e", d = { footer: i },
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
import '../../footer.css';const i = "_footer_4a43c3e", d = { footer: i }, y = s.forwardRef(function({ hierarchy: o = "secondary", size: t = "md", children: r, className: e, ...a }, f) {
|
|
6
|
+
return /* @__PURE__ */ c(
|
|
7
7
|
n,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
9
|
+
ref: f,
|
|
10
10
|
as: "footer",
|
|
11
11
|
className: m(d.footer, e, "tcn-footer"),
|
|
12
12
|
"data-hierarchy": o,
|
|
13
|
-
"data-size":
|
|
13
|
+
"data-size": t,
|
|
14
14
|
...a,
|
|
15
|
-
children:
|
|
15
|
+
children: r
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
});
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
y as Footer
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=footer.js.map
|
|
@@ -4,13 +4,13 @@ import c from "react";
|
|
|
4
4
|
import { removeUndefinedProperties as z } from "../../stacks/utils/remove_undefined_properties.js";
|
|
5
5
|
import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwardRef(function({
|
|
6
6
|
as: l = "div",
|
|
7
|
-
children:
|
|
7
|
+
children: r,
|
|
8
8
|
style: d,
|
|
9
9
|
className: a,
|
|
10
10
|
itemHeight: m,
|
|
11
11
|
itemWidth: o,
|
|
12
12
|
columnAmount: i,
|
|
13
|
-
gap:
|
|
13
|
+
gap: e,
|
|
14
14
|
rowGap: f,
|
|
15
15
|
columnGap: p,
|
|
16
16
|
padding: h,
|
|
@@ -18,27 +18,27 @@ import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwar
|
|
|
18
18
|
paddingBlock: y,
|
|
19
19
|
paddingInlineStart: g,
|
|
20
20
|
paddingInlineEnd: u,
|
|
21
|
-
paddingTop:
|
|
22
|
-
paddingBottom:
|
|
23
|
-
margin:
|
|
24
|
-
marginInline:
|
|
25
|
-
marginBlock:
|
|
26
|
-
marginInlineStart:
|
|
27
|
-
marginInlineEnd:
|
|
28
|
-
marginTop:
|
|
29
|
-
marginBottom:
|
|
21
|
+
paddingTop: _,
|
|
22
|
+
paddingBottom: $,
|
|
23
|
+
margin: A,
|
|
24
|
+
marginInline: v,
|
|
25
|
+
marginBlock: w,
|
|
26
|
+
marginInlineStart: C,
|
|
27
|
+
marginInlineEnd: G,
|
|
28
|
+
marginTop: R,
|
|
29
|
+
marginBottom: S,
|
|
30
30
|
zIndex: j,
|
|
31
31
|
...M
|
|
32
32
|
}, N) {
|
|
33
|
-
const P = l, U = c.Children.toArray(
|
|
33
|
+
const P = l, U = c.Children.toArray(r).length, W = `repeat(auto-fill, ${o}px)`;
|
|
34
34
|
let t;
|
|
35
35
|
if (i) {
|
|
36
36
|
const n = Math.min(i, U), s = String(n * o) + "px";
|
|
37
|
-
|
|
37
|
+
e ? t = `calc(${s} + ${e} * ${n - 1})` : t = s;
|
|
38
38
|
} else
|
|
39
39
|
t = "100%";
|
|
40
40
|
const b = z({
|
|
41
|
-
gap:
|
|
41
|
+
gap: e,
|
|
42
42
|
rowGap: f,
|
|
43
43
|
columnGap: p,
|
|
44
44
|
"--item-height": m + "px",
|
|
@@ -49,19 +49,19 @@ import '../../grid.css';const B = "_grid_d0ae3e3", D = { grid: B }, L = c.forwar
|
|
|
49
49
|
paddingBlock: y,
|
|
50
50
|
paddingInlineStart: g,
|
|
51
51
|
paddingInlineEnd: u,
|
|
52
|
-
paddingTop:
|
|
53
|
-
paddingBottom:
|
|
54
|
-
margin:
|
|
55
|
-
marginInline:
|
|
56
|
-
marginBlock:
|
|
57
|
-
marginInlineStart:
|
|
58
|
-
marginInlineEnd:
|
|
59
|
-
marginTop:
|
|
60
|
-
marginBottom:
|
|
52
|
+
paddingTop: _,
|
|
53
|
+
paddingBottom: $,
|
|
54
|
+
margin: A,
|
|
55
|
+
marginInline: v,
|
|
56
|
+
marginBlock: w,
|
|
57
|
+
marginInlineStart: C,
|
|
58
|
+
marginInlineEnd: G,
|
|
59
|
+
marginTop: R,
|
|
60
|
+
marginBottom: S,
|
|
61
61
|
zIndex: j,
|
|
62
62
|
...d
|
|
63
63
|
});
|
|
64
|
-
return /* @__PURE__ */ k(P, { ref: N, className: q(D.grid, a), style: b, ...M, children:
|
|
64
|
+
return /* @__PURE__ */ k(P, { ref: N, className: q(D.grid, a), style: b, ...M, children: r });
|
|
65
65
|
});
|
|
66
66
|
export {
|
|
67
67
|
L as Grid
|
|
@@ -2,7 +2,7 @@ import { jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import m from "react";
|
|
3
3
|
import { clsx as f } from "clsx";
|
|
4
4
|
import { HStack as h } from "../../stacks/h_stack.js";
|
|
5
|
-
import '../../header.css';const n = "_header_3155fa4", i = { header: n },
|
|
5
|
+
import '../../header.css';const n = "_header_3155fa4", i = { header: n }, y = m.forwardRef(function({
|
|
6
6
|
hierarchy: e = "secondary",
|
|
7
7
|
height: r = "auto",
|
|
8
8
|
children: a,
|
|
@@ -25,6 +25,6 @@ import '../../header.css';const n = "_header_3155fa4", i = { header: n }, H = m.
|
|
|
25
25
|
);
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
y as Header
|
|
29
29
|
};
|
|
30
30
|
//# sourceMappingURL=header.js.map
|
package/dist/layouts/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export * from './body/h_body.js';
|
|
2
|
-
export * from './body/v_body.js';
|
|
3
1
|
export * from './column/column.js';
|
|
4
2
|
export * from './divider/divider.js';
|
|
5
|
-
export * from './footer/footer.js';
|
|
6
3
|
export * from './grid/grid.js';
|
|
7
|
-
export * from './header/header.js';
|
|
8
4
|
export * from './list/item.js';
|
|
9
5
|
export * from './list/list.js';
|
|
10
6
|
export * from './list/section_header.js';
|
|
11
7
|
export * from './sidebar_end/sidebar_end.js';
|
|
12
8
|
export * from './sidebar_start/sidebar_start.js';
|
|
13
|
-
export
|
|
9
|
+
export { Scaffold, type ScaffoldProps } from './scaffold/scaffold.js';
|
|
10
|
+
export { HBody, type HBodyProps } from './body/h_body.js';
|
|
11
|
+
export { VBody, type VBodyProps } from './body/v_body.js';
|
|
12
|
+
export { Footer, type FooterProps } from './footer/footer.js';
|
|
13
|
+
export { Header, type HeaderProps } from './header/header.js';
|
|
14
|
+
export { UtilityBar, type UtilityBarProps } from './utility_bar/utility_bar.js';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/layouts/index.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { Column as e } from "./column/column.js";
|
|
2
|
+
import { Divider as f } from "./divider/divider.js";
|
|
3
|
+
import { Grid as p } from "./grid/grid.js";
|
|
4
|
+
import { Item as d } from "./list/item.js";
|
|
5
|
+
import { List as a } from "./list/list.js";
|
|
6
|
+
import { SectionHeader as l } from "./list/section_header.js";
|
|
7
|
+
import { SidebarEnd as y } from "./sidebar_end/sidebar_end.js";
|
|
8
|
+
import { SidebarStart as H } from "./sidebar_start/sidebar_start.js";
|
|
9
|
+
import { Scaffold as c } from "./scaffold/scaffold.js";
|
|
10
|
+
import { HBody as u } from "./body/h_body.js";
|
|
11
|
+
import { VBody as C } from "./body/v_body.js";
|
|
12
|
+
import { Footer as E } from "./footer/footer.js";
|
|
13
|
+
import { Header as G } from "./header/header.js";
|
|
14
|
+
import { UtilityBar as L } from "./utility_bar/utility_bar.js";
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
e as Column,
|
|
17
|
+
f as Divider,
|
|
18
|
+
E as Footer,
|
|
19
|
+
p as Grid,
|
|
20
|
+
u as HBody,
|
|
21
|
+
G as Header,
|
|
22
|
+
d as Item,
|
|
23
|
+
a as List,
|
|
24
|
+
c as Scaffold,
|
|
25
|
+
l as SectionHeader,
|
|
26
|
+
y as SidebarEnd,
|
|
27
|
+
H as SidebarStart,
|
|
28
|
+
L as UtilityBar,
|
|
29
|
+
C as VBody
|
|
28
30
|
};
|
|
29
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import o from "react";
|
|
3
3
|
import { HStack as c } from "../../stacks/h_stack.js";
|
|
4
4
|
import { clsx as f } from "clsx";
|
|
5
|
-
const
|
|
5
|
+
const u = o.forwardRef(function({ children: r, className: a, selected: t = !1, ...e }, i) {
|
|
6
6
|
return /* @__PURE__ */ m(
|
|
7
7
|
c,
|
|
8
8
|
{
|
|
@@ -17,6 +17,6 @@ const x = o.forwardRef(function({ children: r, className: a, selected: t = !1, .
|
|
|
17
17
|
);
|
|
18
18
|
});
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
u as Item
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=item.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { clsx as i } from "clsx";
|
|
4
4
|
import { VStack as c } from "../../stacks/v_stack.js";
|
|
5
|
-
const x =
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
const x = a.forwardRef(function({ children: t, className: o, isOrdered: r = !1, ...s }, f) {
|
|
6
|
+
return /* @__PURE__ */ m(
|
|
7
7
|
c,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
9
|
+
ref: f,
|
|
10
10
|
as: r ? "ol" : "ul",
|
|
11
|
-
className:
|
|
11
|
+
className: i("tcn-list", o),
|
|
12
12
|
...s,
|
|
13
13
|
children: t
|
|
14
14
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { HStack as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { HStack as i } from "../../stacks/h_stack.js";
|
|
4
|
+
const p = f.forwardRef(
|
|
5
5
|
function({ children: r, className: o, ...t }, e) {
|
|
6
|
-
return /* @__PURE__ */ i
|
|
6
|
+
return /* @__PURE__ */ a(i, { ref: e, as: "li", className: o, ...t, children: r });
|
|
7
7
|
}
|
|
8
8
|
);
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
p as SectionHeader
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=section_header.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BoxProps } from '../../stacks/box/box.js';
|
|
3
|
+
import { Alignment } from '../../stacks/types/alignment.js';
|
|
4
|
+
export interface ScaffoldProps extends Omit<BoxProps, 'as'> {
|
|
5
|
+
vAlign?: Alignment;
|
|
6
|
+
hAlign?: Alignment;
|
|
7
|
+
}
|
|
8
|
+
export declare const Scaffold: React.ForwardRefExoticComponent<ScaffoldProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/layouts/scaffold/scaffold.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAKjE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;IACzD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,mFA8CnB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import S from "react";
|
|
3
|
+
import { clsx as d } from "clsx";
|
|
4
|
+
import { Box as _ } from "../../stacks/box/box.js";
|
|
5
|
+
import { VStack as u } from "../../stacks/v_stack.js";
|
|
6
|
+
import '../../scaffold.css';const x = "_scaffold-stack_8f97a6a", i = { "scaffold-stack": x }, B = S.forwardRef(function({
|
|
7
|
+
children: n,
|
|
8
|
+
width: e,
|
|
9
|
+
height: m = "100%",
|
|
10
|
+
minWidth: a,
|
|
11
|
+
maxWidth: c,
|
|
12
|
+
minHeight: o,
|
|
13
|
+
maxHeight: f,
|
|
14
|
+
hAlign: t,
|
|
15
|
+
vAlign: s = "start",
|
|
16
|
+
className: k,
|
|
17
|
+
...p
|
|
18
|
+
}, r) {
|
|
19
|
+
return /* @__PURE__ */ l(
|
|
20
|
+
_,
|
|
21
|
+
{
|
|
22
|
+
ref: r,
|
|
23
|
+
width: e,
|
|
24
|
+
height: m,
|
|
25
|
+
minWidth: a,
|
|
26
|
+
maxWidth: c,
|
|
27
|
+
minHeight: o,
|
|
28
|
+
maxHeight: f,
|
|
29
|
+
"data-h-alignment": t,
|
|
30
|
+
"data-v-alignment": s,
|
|
31
|
+
className: d(k, "tcn-scaffold"),
|
|
32
|
+
...p,
|
|
33
|
+
children: /* @__PURE__ */ l(
|
|
34
|
+
u,
|
|
35
|
+
{
|
|
36
|
+
as: "section",
|
|
37
|
+
minWidth: a,
|
|
38
|
+
maxWidth: c,
|
|
39
|
+
minHeight: o,
|
|
40
|
+
maxHeight: f,
|
|
41
|
+
hAlign: t,
|
|
42
|
+
vAlign: s,
|
|
43
|
+
ref: r,
|
|
44
|
+
className: d(i["scaffold-stack"], "tcn-scaffold-stack"),
|
|
45
|
+
zIndex: 0,
|
|
46
|
+
children: n
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
B as Scaffold
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=scaffold.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.js","sources":["../../../src/layouts/scaffold/scaffold.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport { Box, type BoxProps } from '../../stacks/box/box.js';\nimport type { Alignment } from '../../stacks/types/alignment.js';\nimport { VStack } from '../../stacks/v_stack.js';\n// Styles\nimport styles from './scaffold.module.css';\n\nexport interface ScaffoldProps extends Omit<BoxProps, 'as'> {\n vAlign?: Alignment;\n hAlign?: Alignment;\n}\n\nexport const Scaffold = React.forwardRef<HTMLElement, ScaffoldProps>(function Scaffold(\n {\n children,\n width,\n height = '100%',\n minWidth,\n maxWidth,\n minHeight,\n maxHeight,\n hAlign,\n vAlign = 'start',\n className,\n ...props\n }: ScaffoldProps,\n ref\n) {\n return (\n <Box\n ref={ref}\n width={width}\n height={height}\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n data-h-alignment={hAlign}\n data-v-alignment={vAlign}\n className={clsx(className, 'tcn-scaffold')}\n {...props}\n >\n <VStack\n as=\"section\"\n minWidth={minWidth}\n maxWidth={maxWidth}\n minHeight={minHeight}\n maxHeight={maxHeight}\n hAlign={hAlign}\n vAlign={vAlign}\n ref={ref}\n className={clsx(styles['scaffold-stack'], 'tcn-scaffold-stack')}\n zIndex={0}\n >\n {children}\n </VStack>\n </Box>\n );\n});\n"],"names":["Scaffold","React","children","width","height","minWidth","maxWidth","minHeight","maxHeight","hAlign","vAlign","className","props","ref","jsx","Box","clsx","VStack","styles"],"mappings":";;;;;kEAaaA,IAAWC,EAAM,WAAuC,SACnE;AAAA,EACE,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,WAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,OAAAV;AAAA,MACA,QAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,WAAAC;AAAA,MACA,WAAAC;AAAA,MACA,oBAAkBC;AAAA,MAClB,oBAAkBC;AAAA,MAClB,WAAWM,EAAKL,GAAW,cAAc;AAAA,MACxC,GAAGC;AAAA,MAEJ,UAAA,gBAAAE;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,UAAAZ;AAAA,UACA,UAAAC;AAAA,UACA,WAAAC;AAAA,UACA,WAAAC;AAAA,UACA,QAAAC;AAAA,UACA,QAAAC;AAAA,UACA,KAAAG;AAAA,UACA,WAAWG,EAAKE,EAAO,gBAAgB,GAAG,oBAAoB;AAAA,UAC9D,QAAQ;AAAA,UAEP,UAAAhB;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA;AAGN,CAAC;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Box as
|
|
3
|
-
import { VStack as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import
|
|
6
|
-
import '../../sidebar_end.css';const
|
|
2
|
+
import { Box as p } from "../../stacks/box/box.js";
|
|
3
|
+
import { VStack as x } from "../../stacks/v_stack.js";
|
|
4
|
+
import { clsx as _ } from "clsx";
|
|
5
|
+
import B from "react";
|
|
6
|
+
import '../../sidebar_end.css';const u = "_sidebarEndBox_25f69cc", y = "_sidebarEnd_cb253a2", c = { sidebarEndBox: u, sidebarEnd: y }, I = B.forwardRef(
|
|
7
7
|
function({
|
|
8
8
|
hierarchy: t = "secondary",
|
|
9
9
|
children: b,
|
|
@@ -13,13 +13,13 @@ import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", S = "_sidebar
|
|
|
13
13
|
maxWidth: a,
|
|
14
14
|
minHeight: d,
|
|
15
15
|
maxHeight: e,
|
|
16
|
-
hAlign:
|
|
17
|
-
vAlign:
|
|
16
|
+
hAlign: f,
|
|
17
|
+
vAlign: i = "start",
|
|
18
18
|
className: m,
|
|
19
19
|
...E
|
|
20
|
-
},
|
|
20
|
+
}, l) {
|
|
21
21
|
return /* @__PURE__ */ n(
|
|
22
|
-
|
|
22
|
+
p,
|
|
23
23
|
{
|
|
24
24
|
width: r,
|
|
25
25
|
height: o,
|
|
@@ -31,7 +31,7 @@ import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", S = "_sidebar
|
|
|
31
31
|
as: "section",
|
|
32
32
|
...E,
|
|
33
33
|
children: /* @__PURE__ */ n(
|
|
34
|
-
|
|
34
|
+
x,
|
|
35
35
|
{
|
|
36
36
|
width: r,
|
|
37
37
|
height: o,
|
|
@@ -39,11 +39,11 @@ import '../../sidebar_end.css';const y = "_sidebarEndBox_25f69cc", S = "_sidebar
|
|
|
39
39
|
maxWidth: a,
|
|
40
40
|
minHeight: d,
|
|
41
41
|
maxHeight: e,
|
|
42
|
-
hAlign:
|
|
43
|
-
vAlign:
|
|
44
|
-
ref:
|
|
42
|
+
hAlign: f,
|
|
43
|
+
vAlign: i,
|
|
44
|
+
ref: l,
|
|
45
45
|
"data-hierarchy": t,
|
|
46
|
-
className:
|
|
46
|
+
className: _(c.sidebarEnd, m, "sidebar-end"),
|
|
47
47
|
zIndex: 0,
|
|
48
48
|
children: b
|
|
49
49
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { Box as
|
|
3
|
-
import { VStack as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import
|
|
6
|
-
import '../../sidebar_start.css';const
|
|
2
|
+
import { Box as p } from "../../stacks/box/box.js";
|
|
3
|
+
import { VStack as x } from "../../stacks/v_stack.js";
|
|
4
|
+
import { clsx as _ } from "clsx";
|
|
5
|
+
import B from "react";
|
|
6
|
+
import '../../sidebar_start.css';const u = "_sidebarStartBox_4353011", y = "_sidebarStart_5b1e45b", e = { sidebarStartBox: u, sidebarStart: y }, I = B.forwardRef(
|
|
7
7
|
function({
|
|
8
8
|
hierarchy: c = "secondary",
|
|
9
9
|
children: d,
|
|
@@ -17,9 +17,9 @@ import '../../sidebar_start.css';const y = "_sidebarStartBox_4353011", u = "_sid
|
|
|
17
17
|
vAlign: f = "start",
|
|
18
18
|
className: m,
|
|
19
19
|
...n
|
|
20
|
-
},
|
|
20
|
+
}, l) {
|
|
21
21
|
return /* @__PURE__ */ s(
|
|
22
|
-
|
|
22
|
+
p,
|
|
23
23
|
{
|
|
24
24
|
width: b,
|
|
25
25
|
height: i,
|
|
@@ -30,7 +30,7 @@ import '../../sidebar_start.css';const y = "_sidebarStartBox_4353011", u = "_sid
|
|
|
30
30
|
className: e.sidebarStartBox,
|
|
31
31
|
...n,
|
|
32
32
|
children: /* @__PURE__ */ s(
|
|
33
|
-
|
|
33
|
+
x,
|
|
34
34
|
{
|
|
35
35
|
minWidth: r,
|
|
36
36
|
maxWidth: t,
|
|
@@ -38,9 +38,9 @@ import '../../sidebar_start.css';const y = "_sidebarStartBox_4353011", u = "_sid
|
|
|
38
38
|
maxHeight: o,
|
|
39
39
|
hAlign: S,
|
|
40
40
|
vAlign: f,
|
|
41
|
-
ref:
|
|
41
|
+
ref: l,
|
|
42
42
|
"data-hierarchy": c,
|
|
43
|
-
className:
|
|
43
|
+
className: _(e.sidebarStart, m, "sidebar-start"),
|
|
44
44
|
zIndex: 0,
|
|
45
45
|
children: d
|
|
46
46
|
}
|