@tcn/ui 0.8.1 → 0.10.0
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/bar.css +1 -0
- package/dist/body.css +1 -1
- package/dist/body.module-BbFZ7KNP.js +5 -0
- package/dist/body.module-BbFZ7KNP.js.map +1 -0
- package/dist/divider.css +1 -1
- package/dist/feedback/progress/progress_bar.js +13 -13
- package/dist/footer.css +1 -1
- package/dist/form/field/common/field_description.js +7 -8
- package/dist/form/field/common/field_description.js.map +1 -1
- package/dist/form/field/common/field_error.js +6 -6
- package/dist/form/field/common/field_label.js +7 -8
- package/dist/form/field/common/field_label.js.map +1 -1
- package/dist/form/field_set/field_set.js +7 -7
- package/dist/inputs/date_picker/date_picker_date.js +6 -6
- package/dist/inputs/date_picker/date_picker_day.js +6 -6
- package/dist/inputs/date_picker/date_picker_time_selector.js +5 -5
- package/dist/inputs/date_picker/date_picker_year_selector.js +5 -5
- package/dist/inputs/suggestions/suggestion_list.js +6 -6
- package/dist/layouts/bar/bar.d.ts +5 -0
- package/dist/layouts/bar/bar.d.ts.map +1 -0
- package/dist/layouts/bar/bar.js +20 -0
- package/dist/layouts/bar/bar.js.map +1 -0
- package/dist/layouts/body/body.d.ts +2 -2
- package/dist/layouts/body/body.d.ts.map +1 -1
- package/dist/layouts/body/body.js +12 -12
- package/dist/layouts/body/body.js.map +1 -1
- package/dist/layouts/body/h_body.d.ts.map +1 -1
- package/dist/layouts/body/h_body.js +18 -12
- 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 +16 -10
- package/dist/layouts/body/v_body.js.map +1 -1
- package/dist/layouts/footer/footer.d.ts +2 -3
- package/dist/layouts/footer/footer.d.ts.map +1 -1
- package/dist/layouts/footer/footer.js +7 -7
- package/dist/layouts/footer/footer.js.map +1 -1
- package/dist/layouts/header/header.d.ts +2 -2
- package/dist/layouts/header/header.d.ts.map +1 -1
- package/dist/layouts/header/header.js +13 -21
- package/dist/layouts/header/header.js.map +1 -1
- package/dist/layouts/index.d.ts +2 -1
- package/dist/layouts/index.d.ts.map +1 -1
- package/dist/layouts/index.js +40 -38
- package/dist/layouts/index.js.map +1 -1
- package/dist/layouts/rail/rail.js +41 -41
- package/dist/layouts/rail/rail.js.map +1 -1
- package/dist/layouts/rail/side/side.d.ts.map +1 -1
- package/dist/layouts/rail/side/side.js +1 -1
- package/dist/layouts/rail/side/side.js.map +1 -1
- package/dist/layouts/rail/utility_strip/utility_strip.d.ts.map +1 -1
- package/dist/layouts/rail/utility_strip/utility_strip.js +21 -17
- package/dist/layouts/rail/utility_strip/utility_strip.js.map +1 -1
- package/dist/layouts/responsive/breakpoint.d.ts +11 -0
- package/dist/layouts/responsive/breakpoint.d.ts.map +1 -0
- package/dist/layouts/responsive/breakpoint.js +15 -0
- package/dist/layouts/responsive/breakpoint.js.map +1 -0
- package/dist/layouts/responsive/responsive.d.ts +7 -0
- package/dist/layouts/responsive/responsive.d.ts.map +1 -0
- package/dist/layouts/responsive/responsive.js +11 -0
- package/dist/layouts/responsive/responsive.js.map +1 -0
- package/dist/layouts/responsive/responsive_container.d.ts +7 -0
- package/dist/layouts/responsive/responsive_container.d.ts.map +1 -0
- package/dist/layouts/responsive/responsive_container.js +30 -0
- package/dist/layouts/responsive/responsive_container.js.map +1 -0
- package/dist/layouts/responsive/responsive_viewport.d.ts +7 -0
- package/dist/layouts/responsive/responsive_viewport.d.ts.map +1 -0
- package/dist/layouts/responsive/responsive_viewport.js +12 -0
- package/dist/layouts/responsive/responsive_viewport.js.map +1 -0
- package/dist/layouts/scaffold/scaffold.js +32 -32
- package/dist/layouts/scaffold/scaffold.js.map +1 -1
- package/dist/layouts/utility_bar/utility_bar.d.ts +2 -2
- package/dist/layouts/utility_bar/utility_bar.d.ts.map +1 -1
- package/dist/layouts/utility_bar/utility_bar.js +17 -19
- package/dist/layouts/utility_bar/utility_bar.js.map +1 -1
- package/dist/overlay/frame/frame.js +3 -3
- package/dist/overlay/frame/frame.js.map +1 -1
- package/dist/panel.css +1 -0
- package/dist/rail.css +1 -1
- package/dist/scaffold.css +1 -1
- package/dist/side.css +1 -1
- package/dist/stacks/box/bottom_resize_handle.d.ts +2 -2
- package/dist/stacks/box/bottom_resize_handle.d.ts.map +1 -1
- package/dist/stacks/box/bottom_resize_handle.js +12 -10
- package/dist/stacks/box/bottom_resize_handle.js.map +1 -1
- package/dist/stacks/box/box.d.ts +4 -4
- package/dist/stacks/box/box.d.ts.map +1 -1
- package/dist/stacks/box/box.js +26 -26
- package/dist/stacks/box/box.js.map +1 -1
- package/dist/stacks/box/end_resize_handle.d.ts +2 -2
- package/dist/stacks/box/end_resize_handle.d.ts.map +1 -1
- package/dist/stacks/box/end_resize_handle.js +6 -5
- package/dist/stacks/box/end_resize_handle.js.map +1 -1
- package/dist/stacks/box/left_resize_handle.d.ts +2 -2
- package/dist/stacks/box/left_resize_handle.d.ts.map +1 -1
- package/dist/stacks/box/left_resize_handle.js +10 -9
- package/dist/stacks/box/left_resize_handle.js.map +1 -1
- package/dist/stacks/box/resize_handlers.d.ts +2 -2
- package/dist/stacks/box/resize_handlers.d.ts.map +1 -1
- package/dist/stacks/box/resize_handlers.js +24 -24
- package/dist/stacks/box/resize_handlers.js.map +1 -1
- package/dist/stacks/box/right_resize_handle.d.ts +2 -2
- package/dist/stacks/box/right_resize_handle.d.ts.map +1 -1
- package/dist/stacks/box/right_resize_handle.js +6 -5
- package/dist/stacks/box/right_resize_handle.js.map +1 -1
- package/dist/stacks/box/start_resize_handle.d.ts +2 -2
- package/dist/stacks/box/start_resize_handle.d.ts.map +1 -1
- package/dist/stacks/box/start_resize_handle.js +4 -4
- package/dist/stacks/box/start_resize_handle.js.map +1 -1
- package/dist/stacks/box/top_resize_handle.d.ts +2 -2
- package/dist/stacks/box/top_resize_handle.d.ts.map +1 -1
- package/dist/stacks/box/top_resize_handle.js +2 -1
- package/dist/stacks/box/top_resize_handle.js.map +1 -1
- package/dist/stacks/h_collapsible_box.d.ts.map +1 -1
- package/dist/stacks/h_collapsible_box.js +24 -24
- package/dist/stacks/h_collapsible_box.js.map +1 -1
- package/dist/stacks/v_collapsible_box.js +25 -25
- package/dist/stacks/v_collapsible_box.js.map +1 -1
- package/dist/surfaces/confirm/confirm.js +5 -5
- package/dist/surfaces/index.d.ts +1 -2
- package/dist/surfaces/index.d.ts.map +1 -1
- package/dist/surfaces/index.js +18 -20
- package/dist/surfaces/index.js.map +1 -1
- package/dist/surfaces/panel/panel.d.ts +5 -0
- package/dist/surfaces/panel/panel.d.ts.map +1 -0
- package/dist/surfaces/panel/panel.js +19 -0
- package/dist/surfaces/panel/panel.js.map +1 -0
- package/dist/surfaces/pop_confirm/pop_confirm.js +1 -1
- package/dist/themes/theme.d.ts +2 -1
- package/dist/themes/theme.d.ts.map +1 -1
- package/dist/themes/theme.js +16 -9
- package/dist/themes/theme.js.map +1 -1
- package/dist/themes/themes/ergo/ergo_theme.css +1 -1
- package/dist/themes/themes/ergo/ergo_theme.js +27 -0
- package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
- package/dist/typography/body_text/body_text.d.ts +2 -1
- package/dist/typography/body_text/body_text.d.ts.map +1 -1
- package/dist/typography/body_text/body_text.js +24 -23
- package/dist/typography/body_text/body_text.js.map +1 -1
- package/dist/typography/callout/callout.d.ts +2 -1
- package/dist/typography/callout/callout.d.ts.map +1 -1
- package/dist/typography/callout/callout.js +28 -27
- package/dist/typography/callout/callout.js.map +1 -1
- package/dist/typography/caption/caption.d.ts +2 -1
- package/dist/typography/caption/caption.d.ts.map +1 -1
- package/dist/typography/caption/caption.js +18 -17
- package/dist/typography/caption/caption.js.map +1 -1
- package/dist/typography/footnote/footnote.d.ts +2 -1
- package/dist/typography/footnote/footnote.d.ts.map +1 -1
- package/dist/typography/footnote/footnote.js +25 -24
- package/dist/typography/footnote/footnote.js.map +1 -1
- package/dist/typography/headline/headline.d.ts +2 -1
- package/dist/typography/headline/headline.d.ts.map +1 -1
- package/dist/typography/headline/headline.js +36 -33
- package/dist/typography/headline/headline.js.map +1 -1
- package/dist/typography/subheadline/subheadline.d.ts +2 -1
- package/dist/typography/subheadline/subheadline.d.ts.map +1 -1
- package/dist/typography/subheadline/subheadline.js +35 -32
- package/dist/typography/subheadline/subheadline.js.map +1 -1
- package/dist/utils/dnd/context.d.ts.map +1 -1
- package/dist/utils/dnd/context.js +9 -7
- package/dist/utils/dnd/context.js.map +1 -1
- package/dist/utils/dnd/hooks/use_drag_container.d.ts.map +1 -1
- package/dist/utils/dnd/hooks/use_drag_container.js +29 -15
- package/dist/utils/dnd/hooks/use_drag_container.js.map +1 -1
- package/dist/utils/dnd/types.d.ts +3 -4
- package/dist/utils/dnd/types.d.ts.map +1 -1
- package/dist/utils/hooks/use_media_query.d.ts +5 -8
- package/dist/utils/hooks/use_media_query.d.ts.map +1 -1
- package/dist/utils/hooks/use_media_query.js +10 -11
- package/dist/utils/hooks/use_media_query.js.map +1 -1
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +19 -21
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/layouts/__stories__/composed.stories.tsx +0 -55
- package/src/layouts/__stories__/rail.stories.tsx +78 -0
- package/src/layouts/__stories__/scaffold.stories.tsx +90 -0
- package/src/layouts/__stories__/utils/content.tsx +27 -0
- package/src/layouts/__stories__/utils/layout_theme.css +88 -0
- package/src/layouts/__stories__/utils/layout_theme_provider.tsx +11 -0
- package/src/layouts/__stories__/utils.tsx +6 -6
- package/src/layouts/{utility_bar/utility_bar.module.css → bar/bar.module.css} +2 -1
- package/src/layouts/bar/bar.tsx +23 -0
- package/src/layouts/body/body.module.css +9 -4
- package/src/layouts/body/body.tsx +7 -6
- package/src/layouts/body/h_body.module.css +1 -2
- package/src/layouts/body/h_body.tsx +9 -4
- package/src/layouts/body/v_body.tsx +9 -4
- package/src/layouts/divider/divider.module.css +1 -1
- package/src/layouts/footer/footer.module.css +0 -3
- package/src/layouts/footer/footer.tsx +5 -6
- package/src/layouts/header/header.tsx +6 -15
- package/src/layouts/index.ts +2 -1
- package/src/layouts/rail/rail.module.css +9 -5
- package/src/layouts/rail/rail.tsx +1 -1
- package/src/layouts/rail/side/side.module.css +0 -1
- package/src/layouts/rail/side/side.tsx +1 -2
- package/src/layouts/rail/utility_strip/utility_strip.module.css +5 -0
- package/src/layouts/rail/utility_strip/utility_strip.tsx +4 -1
- package/src/layouts/responsive/breakpoint.tsx +29 -0
- package/src/layouts/responsive/responsive.stories.tsx +37 -0
- package/src/layouts/responsive/responsive.tsx +18 -0
- package/src/layouts/responsive/responsive_container.tsx +51 -0
- package/src/layouts/responsive/responsive_viewport.tsx +17 -0
- package/src/layouts/scaffold/scaffold.module.css +10 -7
- package/src/layouts/scaffold/scaffold.tsx +1 -1
- package/src/layouts/utility_bar/utility_bar.tsx +6 -9
- package/src/overlay/frame/frame.tsx +2 -2
- package/src/stacks/box/bottom_resize_handle.tsx +7 -5
- package/src/stacks/box/box.tsx +12 -18
- package/src/stacks/box/end_resize_handle.tsx +6 -6
- package/src/stacks/box/left_resize_handle.tsx +4 -3
- package/src/stacks/box/resize_handlers.ts +11 -9
- package/src/stacks/box/right_resize_handle.tsx +4 -3
- package/src/stacks/box/start_resize_handle.tsx +3 -3
- package/src/stacks/box/top_resize_handle.tsx +4 -3
- package/src/stacks/collapsible_box.stories.tsx +11 -11
- package/src/stacks/h_collapsible_box.tsx +5 -5
- package/src/stacks/v_collapsible_box.tsx +4 -4
- package/src/surfaces/index.ts +1 -2
- package/src/surfaces/panel/__stories__/panel.stories.tsx +12 -12
- package/src/surfaces/panel/__stories__/panel_stories.module.css +3 -3
- package/src/surfaces/panel/panel.module.css +1 -6
- package/src/surfaces/panel/panel.tsx +22 -0
- package/src/themes/theme.tsx +6 -2
- package/src/themes/themes/ergo/__stories__/material.stories.tsx +15 -16
- package/src/themes/themes/ergo/ergo_theme.css +27 -0
- package/src/typography/body_text/body_text.tsx +21 -17
- package/src/typography/callout/callout.tsx +20 -16
- package/src/typography/caption/caption.tsx +20 -16
- package/src/typography/footnote/footnote.tsx +20 -16
- package/src/typography/headline/headline.tsx +60 -54
- package/src/typography/subheadline/subheadline.tsx +60 -54
- package/src/utils/dnd/__stories__/draggable.stories.tsx +34 -0
- package/src/utils/dnd/context.ts +1 -0
- package/src/utils/dnd/hooks/use_drag_container.ts +18 -1
- package/src/utils/dnd/types.ts +4 -1
- package/src/utils/hooks/use_media_query.ts +16 -27
- package/src/utils/index.ts +1 -3
- package/dist/body_text.module-h4XQE2pC.js +0 -5
- package/dist/body_text.module-h4XQE2pC.js.map +0 -1
- package/dist/callout.module-D8ECmxpO.js +0 -5
- package/dist/callout.module-D8ECmxpO.js.map +0 -1
- package/dist/caption.module-DDq0H4xZ.js +0 -5
- package/dist/caption.module-DDq0H4xZ.js.map +0 -1
- package/dist/footnote.module-DEyFuqOr.js +0 -5
- package/dist/footnote.module-DEyFuqOr.js.map +0 -1
- package/dist/h_body.css +0 -1
- package/dist/h_panel.css +0 -1
- package/dist/header.css +0 -1
- package/dist/headline.module-BiwHBtGf.js +0 -5
- package/dist/headline.module-BiwHBtGf.js.map +0 -1
- package/dist/layouts/rail/main/main.d.ts +0 -6
- package/dist/layouts/rail/main/main.d.ts.map +0 -1
- package/dist/layouts/rail/main/main.js +0 -21
- package/dist/layouts/rail/main/main.js.map +0 -1
- package/dist/main.css +0 -1
- package/dist/subheadline.module-C-v7zMkQ.js +0 -5
- package/dist/subheadline.module-C-v7zMkQ.js.map +0 -1
- package/dist/surfaces/panel/h_panel.d.ts +0 -9
- package/dist/surfaces/panel/h_panel.d.ts.map +0 -1
- package/dist/surfaces/panel/h_panel.js +0 -60
- package/dist/surfaces/panel/h_panel.js.map +0 -1
- package/dist/surfaces/panel/v_panel.d.ts +0 -5
- package/dist/surfaces/panel/v_panel.d.ts.map +0 -1
- package/dist/surfaces/panel/v_panel.js +0 -19
- package/dist/surfaces/panel/v_panel.js.map +0 -1
- package/dist/utility_bar.css +0 -1
- package/dist/utils/responsive/responsive_renderer.d.ts +0 -21
- package/dist/utils/responsive/responsive_renderer.d.ts.map +0 -1
- package/dist/utils/responsive/responsive_renderer.js +0 -12
- package/dist/utils/responsive/responsive_renderer.js.map +0 -1
- package/dist/v_body.css +0 -1
- package/src/layouts/header/header.module.css +0 -8
- package/src/layouts/rail/__stories__/rail.stories.tsx +0 -64
- package/src/layouts/rail/__stories__/rail_stories.module.css +0 -25
- package/src/layouts/rail/main/main.module.css +0 -7
- package/src/layouts/rail/main/main.tsx +0 -26
- package/src/layouts/scaffold/__stories__/scaffold.stories.tsx +0 -53
- package/src/layouts/scaffold/__stories__/scaffold_stories.module.css +0 -31
- package/src/surfaces/panel/h_panel.tsx +0 -65
- package/src/surfaces/panel/v_panel.tsx +0 -20
- package/src/utils/responsive/responsive_renderer.stories.tsx +0 -77
- package/src/utils/responsive/responsive_renderer.tsx +0 -31
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { HStackProps } from '../../stacks/h_stack.js';
|
|
3
2
|
import { Hierarchy, Size } from '../../utils/index.js';
|
|
4
|
-
|
|
3
|
+
import { BarProps } from '../bar/bar.js';
|
|
4
|
+
export interface HeaderProps extends Omit<BarProps, 'as'> {
|
|
5
5
|
hierarchy?: Hierarchy;
|
|
6
6
|
size?: Size;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/layouts/header/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/layouts/header/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;IACvD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,eAAO,MAAM,MAAM,iFAgBjB,CAAC"}
|
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
3
|
import { clsx as f } from "clsx";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
children: a,
|
|
9
|
-
className: t,
|
|
10
|
-
size: o = "md",
|
|
11
|
-
...d
|
|
12
|
-
}, s) {
|
|
13
|
-
return /* @__PURE__ */ c(
|
|
14
|
-
n,
|
|
4
|
+
import { Bar as s } from "../bar/bar.js";
|
|
5
|
+
const u = c.forwardRef(function({ hierarchy: r = "secondary", size: a = "md", children: e, className: o, ...t }, d) {
|
|
6
|
+
return /* @__PURE__ */ m(
|
|
7
|
+
s,
|
|
15
8
|
{
|
|
16
|
-
ref:
|
|
9
|
+
ref: d,
|
|
17
10
|
as: "header",
|
|
18
|
-
className: f(
|
|
19
|
-
"data-hierarchy":
|
|
20
|
-
"data-size":
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
children: a
|
|
11
|
+
className: f(o, "tcn-header"),
|
|
12
|
+
"data-hierarchy": r,
|
|
13
|
+
"data-size": a,
|
|
14
|
+
...t,
|
|
15
|
+
children: e
|
|
24
16
|
}
|
|
25
17
|
);
|
|
26
18
|
});
|
|
27
19
|
export {
|
|
28
|
-
|
|
20
|
+
u as Header
|
|
29
21
|
};
|
|
30
22
|
//# sourceMappingURL=header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sources":["../../../src/layouts/header/header.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport {
|
|
1
|
+
{"version":3,"file":"header.js","sources":["../../../src/layouts/header/header.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport type { Hierarchy, Size } from '../../utils/index.js';\nimport { Bar, type BarProps } from '../bar/bar.js';\n\nexport interface HeaderProps extends Omit<BarProps, 'as'> {\n hierarchy?: Hierarchy;\n size?: Size;\n}\n\nexport const Header = React.forwardRef<HTMLElement, HeaderProps>(function Header(\n { hierarchy = 'secondary', size = 'md', children, className, ...props }: HeaderProps,\n ref\n) {\n return (\n <Bar\n ref={ref}\n as=\"header\"\n className={clsx(className, 'tcn-header')}\n data-hierarchy={hierarchy}\n data-size={size}\n {...props}\n >\n {children}\n </Bar>\n );\n});\n"],"names":["Header","React","hierarchy","size","children","className","props","ref","jsx","Bar","clsx"],"mappings":";;;;AAUO,MAAMA,IAASC,EAAM,WAAqC,SAC/D,EAAE,WAAAC,IAAY,aAAa,MAAAC,IAAO,MAAM,UAAAC,GAAU,WAAAC,GAAW,GAAGC,EAAA,GAChEC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,IAAG;AAAA,MACH,WAAWG,EAAKL,GAAW,YAAY;AAAA,MACvC,kBAAgBH;AAAA,MAChB,aAAWC;AAAA,MACV,GAAGG;AAAA,MAEH,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
|
package/dist/layouts/index.d.ts
CHANGED
|
@@ -14,9 +14,10 @@ export { UtilityBar, type UtilityBarProps } from './utility_bar/utility_bar.js';
|
|
|
14
14
|
export { Row } from './row/row.js';
|
|
15
15
|
export { Section } from './section/section.js';
|
|
16
16
|
export { Heading, type HeadingOwnProps } from './section/heading.js';
|
|
17
|
+
export { Responsive, type ResponsiveProps } from './responsive/responsive.js';
|
|
18
|
+
export { Breakpoint, type BreakpointProps } from './responsive/breakpoint.js';
|
|
17
19
|
export { TTable, THead, TBody, TFoot, TR, TH, TD } from './table/table.js';
|
|
18
20
|
export { Rail, type RailProps } from './rail/rail.js';
|
|
19
|
-
export { Main, type MainProps } from './rail/main/main.js';
|
|
20
21
|
export { Side, type SideProps } from './rail/side/side.js';
|
|
21
22
|
export { UtilityStrip, type UtilityStripProps, } from './rail/utility_strip/utility_strip.js';
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,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;AAChF,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,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,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;AAChF,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,uCAAuC,CAAC"}
|
package/dist/layouts/index.js
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
1
|
import { Column as e } from "./column/column.js";
|
|
2
|
-
import { Divider as
|
|
3
|
-
import { Grid as
|
|
2
|
+
import { Divider as p } from "./divider/divider.js";
|
|
3
|
+
import { Grid as m } from "./grid/grid.js";
|
|
4
4
|
import { Item as i } from "./list/item.js";
|
|
5
5
|
import { List as a } from "./list/list.js";
|
|
6
6
|
import { SidebarEnd as S } from "./sidebar_end/sidebar_end.js";
|
|
7
7
|
import { SidebarStart as n } from "./sidebar_start/sidebar_start.js";
|
|
8
|
-
import { Scaffold as
|
|
9
|
-
import { HBody as
|
|
10
|
-
import { VBody as
|
|
11
|
-
import { Footer as
|
|
12
|
-
import { Header as
|
|
13
|
-
import { UtilityBar as
|
|
14
|
-
import { Row as
|
|
15
|
-
import { Section as
|
|
16
|
-
import { Heading as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
8
|
+
import { Scaffold as B } from "./scaffold/scaffold.js";
|
|
9
|
+
import { HBody as R } from "./body/h_body.js";
|
|
10
|
+
import { VBody as s } from "./body/v_body.js";
|
|
11
|
+
import { Footer as v } from "./footer/footer.js";
|
|
12
|
+
import { Header as F } from "./header/header.js";
|
|
13
|
+
import { UtilityBar as g } from "./utility_bar/utility_bar.js";
|
|
14
|
+
import { Row as u } from "./row/row.js";
|
|
15
|
+
import { Section as C } from "./section/section.js";
|
|
16
|
+
import { Heading as G } from "./section/heading.js";
|
|
17
|
+
import { Responsive as L } from "./responsive/responsive.js";
|
|
18
|
+
import { Breakpoint as h } from "./responsive/breakpoint.js";
|
|
19
|
+
import { TBody as q, TD as z, TFoot as A, TH as J, THead as K, TR as M, TTable as N } from "./table/table.js";
|
|
20
|
+
import { Rail as P } from "./rail/rail.js";
|
|
21
|
+
import { Side as W } from "./rail/side/side.js";
|
|
22
|
+
import { UtilityStrip as Y } from "./rail/utility_strip/utility_strip.js";
|
|
22
23
|
export {
|
|
24
|
+
h as Breakpoint,
|
|
23
25
|
e as Column,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
p as Divider,
|
|
27
|
+
v as Footer,
|
|
28
|
+
m as Grid,
|
|
29
|
+
R as HBody,
|
|
30
|
+
F as Header,
|
|
31
|
+
G as Heading,
|
|
30
32
|
i as Item,
|
|
31
33
|
a as List,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
P as Rail,
|
|
35
|
+
L as Responsive,
|
|
36
|
+
u as Row,
|
|
37
|
+
B as Scaffold,
|
|
38
|
+
C as Section,
|
|
39
|
+
W as Side,
|
|
38
40
|
S as SidebarEnd,
|
|
39
41
|
n as SidebarStart,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
q as TBody,
|
|
43
|
+
z as TD,
|
|
44
|
+
A as TFoot,
|
|
45
|
+
J as TH,
|
|
46
|
+
K as THead,
|
|
47
|
+
M as TR,
|
|
48
|
+
N as TTable,
|
|
49
|
+
g as UtilityBar,
|
|
50
|
+
Y as UtilityStrip,
|
|
51
|
+
s as VBody
|
|
50
52
|
};
|
|
51
53
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { Box as
|
|
5
|
-
import { HStack as
|
|
6
|
-
import '../../rail.css';const
|
|
7
|
-
children:
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { clsx as n } from "clsx";
|
|
4
|
+
import { Box as R } from "../../stacks/box/box.js";
|
|
5
|
+
import { HStack as u } from "../../stacks/h_stack.js";
|
|
6
|
+
import '../../rail.css';const x = "_rail_adfa91f", N = "_rail-stack_76bc40f", f = { rail: x, "rail-stack": N }, B = d.forwardRef(function({
|
|
7
|
+
children: e,
|
|
8
8
|
width: m,
|
|
9
|
-
height:
|
|
10
|
-
minWidth:
|
|
11
|
-
maxWidth:
|
|
12
|
-
minHeight:
|
|
13
|
-
maxHeight:
|
|
14
|
-
hAlign:
|
|
15
|
-
vAlign:
|
|
16
|
-
className:
|
|
17
|
-
...
|
|
18
|
-
},
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
9
|
+
height: k = "100%",
|
|
10
|
+
minWidth: a,
|
|
11
|
+
maxWidth: t,
|
|
12
|
+
minHeight: r,
|
|
13
|
+
maxHeight: c,
|
|
14
|
+
hAlign: s = "start",
|
|
15
|
+
vAlign: o = "start",
|
|
16
|
+
className: p,
|
|
17
|
+
..._
|
|
18
|
+
}, l) {
|
|
19
|
+
return /* @__PURE__ */ i(
|
|
20
|
+
R,
|
|
21
21
|
{
|
|
22
|
-
ref:
|
|
22
|
+
ref: l,
|
|
23
23
|
width: m,
|
|
24
|
-
height:
|
|
25
|
-
minWidth:
|
|
26
|
-
maxWidth:
|
|
27
|
-
minHeight:
|
|
28
|
-
maxHeight:
|
|
29
|
-
"data-h-alignment":
|
|
30
|
-
"data-v-alignment":
|
|
31
|
-
className:
|
|
32
|
-
...
|
|
33
|
-
children: /* @__PURE__ */
|
|
34
|
-
|
|
24
|
+
height: k,
|
|
25
|
+
minWidth: a,
|
|
26
|
+
maxWidth: t,
|
|
27
|
+
minHeight: r,
|
|
28
|
+
maxHeight: c,
|
|
29
|
+
"data-h-alignment": s,
|
|
30
|
+
"data-v-alignment": o,
|
|
31
|
+
className: n(p, f.rail, "tcn-rail"),
|
|
32
|
+
..._,
|
|
33
|
+
children: /* @__PURE__ */ i(
|
|
34
|
+
u,
|
|
35
35
|
{
|
|
36
36
|
as: "section",
|
|
37
|
-
minWidth:
|
|
38
|
-
maxWidth:
|
|
39
|
-
minHeight:
|
|
40
|
-
maxHeight:
|
|
41
|
-
hAlign:
|
|
42
|
-
vAlign:
|
|
43
|
-
ref:
|
|
44
|
-
className:
|
|
37
|
+
minWidth: a,
|
|
38
|
+
maxWidth: t,
|
|
39
|
+
minHeight: r,
|
|
40
|
+
maxHeight: c,
|
|
41
|
+
hAlign: s,
|
|
42
|
+
vAlign: o,
|
|
43
|
+
ref: l,
|
|
44
|
+
className: n(f["rail-stack"], "tcn-rail-stack"),
|
|
45
45
|
zIndex: 0,
|
|
46
|
-
children:
|
|
46
|
+
children: e
|
|
47
47
|
}
|
|
48
48
|
)
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
B as Rail
|
|
54
54
|
};
|
|
55
55
|
//# sourceMappingURL=rail.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rail.js","sources":["../../../src/layouts/rail/rail.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 { HStack } from '../../stacks/h_stack.js';\n\n// Styles\nimport styles from './rail.module.css';\n\nexport interface RailProps extends Omit<BoxProps, 'as'> {\n vAlign?: Alignment;\n hAlign?: Alignment;\n}\n\n// WIP: This component is not fully implemented.\nexport const Rail = React.forwardRef<HTMLElement, RailProps>(function Rail(\n {\n children,\n width,\n height = '100%',\n minWidth,\n maxWidth,\n minHeight,\n maxHeight,\n hAlign = 'start',\n vAlign = 'start',\n className,\n ...props\n }: RailProps,\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-rail')}\n {...props}\n >\n <HStack\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['rail-stack'], 'tcn-rail-stack')}\n zIndex={0}\n >\n {children}\n </HStack>\n </Box>\n );\n});\n"],"names":["Rail","React","children","width","height","minWidth","maxWidth","minHeight","maxHeight","hAlign","vAlign","className","props","ref","jsx","Box","clsx","
|
|
1
|
+
{"version":3,"file":"rail.js","sources":["../../../src/layouts/rail/rail.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 { HStack } from '../../stacks/h_stack.js';\n\n// Styles\nimport styles from './rail.module.css';\n\nexport interface RailProps extends Omit<BoxProps, 'as'> {\n vAlign?: Alignment;\n hAlign?: Alignment;\n}\n\n// WIP: This component is not fully implemented.\nexport const Rail = React.forwardRef<HTMLElement, RailProps>(function Rail(\n {\n children,\n width,\n height = '100%',\n minWidth,\n maxWidth,\n minHeight,\n maxHeight,\n hAlign = 'start',\n vAlign = 'start',\n className,\n ...props\n }: RailProps,\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, styles['rail'], 'tcn-rail')}\n {...props}\n >\n <HStack\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['rail-stack'], 'tcn-rail-stack')}\n zIndex={0}\n >\n {children}\n </HStack>\n </Box>\n );\n});\n"],"names":["Rail","React","children","width","height","minWidth","maxWidth","minHeight","maxHeight","hAlign","vAlign","className","props","ref","jsx","Box","clsx","styles","HStack"],"mappings":";;;;;wFAeaA,IAAOC,EAAM,WAAmC,SAC3D;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,IAAS;AAAA,EACT,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,GAAWM,EAAO,MAAS,UAAU;AAAA,MACpD,GAAGL;AAAA,MAEJ,UAAA,gBAAAE;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,UAAAb;AAAA,UACA,UAAAC;AAAA,UACA,WAAAC;AAAA,UACA,WAAAC;AAAA,UACA,QAAAC;AAAA,UACA,QAAAC;AAAA,UACA,KAAAG;AAAA,UACA,WAAWG,EAAKC,EAAO,YAAY,GAAG,gBAAgB;AAAA,UACtD,QAAQ;AAAA,UAEP,UAAAf;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA;AAGN,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side.d.ts","sourceRoot":"","sources":["../../../../src/layouts/rail/side/side.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"side.d.ts","sourceRoot":"","sources":["../../../../src/layouts/rail/side/side.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAItE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC;CAAG;AAE7D,eAAO,MAAM,IAAI,+EAef,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side.js","sources":["../../../../src/layouts/rail/side/side.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport { VStack, type VStackProps } from '../../../stacks/v_stack.js';\n\nimport styles from './side.module.css';\n\
|
|
1
|
+
{"version":3,"file":"side.js","sources":["../../../../src/layouts/rail/side/side.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport { VStack, type VStackProps } from '../../../stacks/v_stack.js';\n\nimport styles from './side.module.css';\n\nexport interface SideProps extends Omit<VStackProps, 'as'> {}\n\nexport const Side = React.forwardRef<HTMLElement, SideProps>(function UtilityStrip(\n { children, className, width = 'auto', ...props }: SideProps,\n ref\n) {\n return (\n <VStack\n ref={ref}\n width={width}\n className={clsx(styles['side'], 'tcn-side', className)}\n as=\"section\"\n {...props}\n >\n {children}\n </VStack>\n );\n});\n"],"names":["Side","React","children","className","width","props","ref","jsx","VStack","clsx","styles"],"mappings":";;;;4CAQaA,IAAOC,EAAM,WAAmC,SAC3D,EAAE,UAAAC,GAAU,WAAAC,GAAW,OAAAC,IAAQ,QAAQ,GAAGC,EAAA,GAC1CC,GACA;AACA,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,OAAAF;AAAA,MACA,WAAWK,EAAKC,EAAO,MAAS,YAAYP,CAAS;AAAA,MACrD,IAAG;AAAA,MACF,GAAGE;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility_strip.d.ts","sourceRoot":"","sources":["../../../../src/layouts/rail/utility_strip/utility_strip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"utility_strip.d.ts","sourceRoot":"","sources":["../../../../src/layouts/rail/utility_strip/utility_strip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAItE,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC;IAChE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,eAAO,MAAM,YAAY,uFA8BxB,CAAC"}
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { VStack as
|
|
5
|
-
import '../../../utility_strip.css';const
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import { clsx as y } from "clsx";
|
|
4
|
+
import { VStack as f } from "../../../stacks/v_stack.js";
|
|
5
|
+
import '../../../utility_strip.css';const n = "_utility-strip_23b31df", u = { "utility-strip": n }, R = m.forwardRef(
|
|
6
6
|
function({
|
|
7
7
|
children: t,
|
|
8
8
|
className: i,
|
|
9
9
|
width: r = "auto",
|
|
10
|
-
hierarchy:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
hierarchy: s = "secondary",
|
|
11
|
+
vAlign: a = "start",
|
|
12
|
+
hAlign: o = "center",
|
|
13
|
+
size: e = "md",
|
|
14
|
+
...c
|
|
15
|
+
}, p) {
|
|
16
|
+
return /* @__PURE__ */ l(
|
|
17
|
+
f,
|
|
16
18
|
{
|
|
17
|
-
ref:
|
|
19
|
+
ref: p,
|
|
18
20
|
as: "header",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
21
|
+
vAlign: a,
|
|
22
|
+
hAlign: o,
|
|
23
|
+
className: y(u["utility-strip"], "tcn-utility-strip", i),
|
|
24
|
+
"data-hierarchy": s,
|
|
25
|
+
"data-size": e,
|
|
22
26
|
width: r,
|
|
23
|
-
...
|
|
27
|
+
...c,
|
|
24
28
|
children: t
|
|
25
29
|
}
|
|
26
30
|
);
|
|
27
31
|
}
|
|
28
32
|
);
|
|
29
33
|
export {
|
|
30
|
-
|
|
34
|
+
R as UtilityStrip
|
|
31
35
|
};
|
|
32
36
|
//# sourceMappingURL=utility_strip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility_strip.js","sources":["../../../../src/layouts/rail/utility_strip/utility_strip.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport type { Hierarchy, Size } from '../../../utils/index.js';\nimport { VStack, type VStackProps } from '../../../stacks/v_stack.js';\n\nimport styles from './utility_strip.module.css';\n\
|
|
1
|
+
{"version":3,"file":"utility_strip.js","sources":["../../../../src/layouts/rail/utility_strip/utility_strip.tsx"],"sourcesContent":["import React from 'react';\nimport { clsx } from 'clsx';\nimport type { Hierarchy, Size } from '../../../utils/index.js';\nimport { VStack, type VStackProps } from '../../../stacks/v_stack.js';\n\nimport styles from './utility_strip.module.css';\n\nexport interface UtilityStripProps extends Omit<VStackProps, 'as'> {\n hierarchy?: Hierarchy;\n size?: Size;\n}\n\nexport const UtilityStrip = React.forwardRef<HTMLElement, UtilityStripProps>(\n function UtilityStrip(\n {\n children,\n className,\n width = 'auto',\n hierarchy = 'secondary',\n vAlign = 'start',\n hAlign = 'center',\n size = 'md',\n ...props\n }: UtilityStripProps,\n ref\n ) {\n return (\n <VStack\n ref={ref}\n as=\"header\"\n vAlign={vAlign}\n hAlign={hAlign}\n className={clsx(styles['utility-strip'], 'tcn-utility-strip', className)}\n data-hierarchy={hierarchy}\n data-size={size}\n width={width}\n {...props}\n >\n {children}\n </VStack>\n );\n }\n);\n"],"names":["UtilityStrip","React","children","className","width","hierarchy","vAlign","hAlign","size","props","ref","jsx","VStack","clsx","styles"],"mappings":";;;;gEAYaA,IAAeC,EAAM;AAAA,EAChC,SACE;AAAA,IACE,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,WAAAC,IAAY;AAAA,IACZ,QAAAC,IAAS;AAAA,IACT,QAAAC,IAAS;AAAA,IACT,MAAAC,IAAO;AAAA,IACP,GAAGC;AAAA,EAAA,GAELC,GACA;AACA,WACE,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,KAAAF;AAAA,QACA,IAAG;AAAA,QACH,QAAAJ;AAAA,QACA,QAAAC;AAAA,QACA,WAAWM,EAAKC,EAAO,eAAe,GAAG,qBAAqBX,CAAS;AAAA,QACvE,kBAAgBE;AAAA,QAChB,aAAWG;AAAA,QACX,OAAAJ;AAAA,QACC,GAAGK;AAAA,QAEH,UAAAP;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface BreakpointProps {
|
|
2
|
+
from?: number | string;
|
|
3
|
+
to?: number | string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface InternalBreakpointProps extends BreakpointProps {
|
|
7
|
+
width: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function Breakpoint(_: BreakpointProps): null;
|
|
10
|
+
export declare function InternalBreakpoint(props: InternalBreakpointProps): import('react').ReactNode;
|
|
11
|
+
//# sourceMappingURL=breakpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../src/layouts/responsive/breakpoint.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,KAAK,EAAE,MAAM,CAAC;CACf;AAUD,wBAAgB,UAAU,CAAC,CAAC,EAAE,eAAe,QAE5C;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,6BAMhE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function t(n) {
|
|
2
|
+
return typeof n == "number" ? n : parseFloat(n);
|
|
3
|
+
}
|
|
4
|
+
function o(n) {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
function u(n) {
|
|
8
|
+
const i = t(n.from ?? 0), r = t(n.to ?? 1 / 0);
|
|
9
|
+
return n.width >= i && n.width < r ? n.children : null;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
o as Breakpoint,
|
|
13
|
+
u as InternalBreakpoint
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=breakpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoint.js","sources":["../../../src/layouts/responsive/breakpoint.tsx"],"sourcesContent":["export interface BreakpointProps {\n from?: number | string;\n to?: number | string;\n children: React.ReactNode;\n}\n\nexport interface InternalBreakpointProps extends BreakpointProps {\n width: number;\n}\n\nfunction toNumber(value: number | string) {\n if (typeof value === 'number') {\n return value;\n }\n\n return parseFloat(value);\n}\n\nexport function Breakpoint(_: BreakpointProps) {\n return null;\n}\n\nexport function InternalBreakpoint(props: InternalBreakpointProps) {\n const from = toNumber(props.from ?? 0);\n const to = toNumber(props.to ?? Infinity);\n const isWithinRange = props.width >= from && props.width < to;\n\n return isWithinRange ? props.children : null;\n}\n"],"names":["toNumber","value","Breakpoint","_","InternalBreakpoint","props","from","to"],"mappings":"AAUA,SAASA,EAASC,GAAwB;AACxC,SAAI,OAAOA,KAAU,WACZA,IAGF,WAAWA,CAAK;AACzB;AAEO,SAASC,EAAWC,GAAoB;AAC7C,SAAO;AACT;AAEO,SAASC,EAAmBC,GAAgC;AACjE,QAAMC,IAAON,EAASK,EAAM,QAAQ,CAAC,GAC/BE,IAAKP,EAASK,EAAM,MAAM,KAAQ;AAGxC,SAFsBA,EAAM,SAASC,KAAQD,EAAM,QAAQE,IAEpCF,EAAM,WAAW;AAC1C;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BreakpointProps } from './breakpoint.js';
|
|
2
|
+
export interface ResponsiveProps {
|
|
3
|
+
on?: 'viewport' | 'container';
|
|
4
|
+
children?: React.ReactElement<BreakpointProps>[] | React.ReactElement<BreakpointProps>;
|
|
5
|
+
}
|
|
6
|
+
export declare function Responsive(props: ResponsiveProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=responsive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../src/layouts/responsive/responsive.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAIvD,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE,GAAG,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;CACxF;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAQhD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ResponsiveContainer as i } from "./responsive_container.js";
|
|
3
|
+
import { ResponsiveViewport as t } from "./responsive_viewport.js";
|
|
4
|
+
function f(e) {
|
|
5
|
+
const { on: n = "container", children: o } = e;
|
|
6
|
+
return n === "viewport" ? /* @__PURE__ */ r(t, { children: o }) : /* @__PURE__ */ r(i, { children: o });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
f as Responsive
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=responsive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive.js","sources":["../../../src/layouts/responsive/responsive.tsx"],"sourcesContent":["import type { BreakpointProps } from './breakpoint.js';\nimport { ResponsiveContainer } from './responsive_container.js';\nimport { ResponsiveViewport } from './responsive_viewport.js';\n\nexport interface ResponsiveProps {\n on?: 'viewport' | 'container';\n children?: React.ReactElement<BreakpointProps>[] | React.ReactElement<BreakpointProps>;\n}\n\nexport function Responsive(props: ResponsiveProps) {\n const { on = 'container', children } = props;\n\n if (on === 'viewport') {\n return <ResponsiveViewport>{children}</ResponsiveViewport>;\n }\n\n return <ResponsiveContainer>{children}</ResponsiveContainer>;\n}\n"],"names":["Responsive","props","on","children","jsx","ResponsiveViewport","ResponsiveContainer"],"mappings":";;;AASO,SAASA,EAAWC,GAAwB;AACjD,QAAM,EAAE,IAAAC,IAAK,aAAa,UAAAC,EAAA,IAAaF;AAEvC,SAAIC,MAAO,aACF,gBAAAE,EAACC,KAAoB,UAAAF,GAAS,IAGhC,gBAAAC,EAACE,KAAqB,UAAAH,GAAS;AACxC;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BreakpointProps } from './breakpoint.js';
|
|
3
|
+
export interface ResponsiveContainerProps {
|
|
4
|
+
children?: React.ReactElement<BreakpointProps>[] | React.ReactElement<BreakpointProps>;
|
|
5
|
+
}
|
|
6
|
+
export declare function ResponsiveContainer(props: ResponsiveContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=responsive_container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive_container.d.ts","sourceRoot":"","sources":["../../../src/layouts/responsive/responsive_container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAGzD,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEtE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE,GAAG,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;CACxF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAyClE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as t, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import c, { useState as n, useLayoutEffect as h } from "react";
|
|
3
|
+
import { useForkRef as R } from "../../utils/hooks/use_fork_ref.js";
|
|
4
|
+
import { useResizeObserver as k } from "../../utils/hooks/use_resize_observer.js";
|
|
5
|
+
import { InternalBreakpoint as y } from "./breakpoint.js";
|
|
6
|
+
function z(o) {
|
|
7
|
+
const [s, r] = n(null), [i, l] = n(0), a = k((e) => {
|
|
8
|
+
l(e);
|
|
9
|
+
}), p = R((e) => {
|
|
10
|
+
e == null || e.parentElement == null || (a(e.parentElement), r(e.parentElement));
|
|
11
|
+
}), u = /* @__PURE__ */ t(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
ref: p,
|
|
15
|
+
style: {
|
|
16
|
+
display: "none"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
), f = c.Children.toArray(o.children).map((e) => /* @__PURE__ */ t(y, { ...e.props, width: i }, e.key));
|
|
20
|
+
return h(() => () => {
|
|
21
|
+
r(null);
|
|
22
|
+
}, []), /* @__PURE__ */ m(d, { children: [
|
|
23
|
+
s == null ? u : null,
|
|
24
|
+
f
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
z as ResponsiveContainer
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=responsive_container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive_container.js","sources":["../../../src/layouts/responsive/responsive_container.tsx"],"sourcesContent":["import React, { useLayoutEffect, useState } from 'react';\nimport { useForkRef } from '../../utils/hooks/use_fork_ref.js';\nimport { useResizeObserver } from '../../utils/hooks/use_resize_observer.js';\nimport { InternalBreakpoint, BreakpointProps } from './breakpoint.js';\n\nexport interface ResponsiveContainerProps {\n children?: React.ReactElement<BreakpointProps>[] | React.ReactElement<BreakpointProps>;\n}\n\nexport function ResponsiveContainer(props: ResponsiveContainerProps) {\n const [parent, setParent] = useState<Element | null>(null);\n const [width, setWidth] = useState(0);\n\n const resizeRef = useResizeObserver(width => {\n setWidth(width);\n });\n\n const forkedRef = useForkRef((element: any) => {\n if (element == null || element.parentElement == null) {\n return;\n }\n resizeRef(element.parentElement);\n setParent(element.parentElement);\n });\n\n const hiddenChild = (\n <div\n ref={forkedRef}\n style={{\n display: 'none',\n }}\n ></div>\n );\n\n const internalBreakpoints = React.Children.toArray(props.children).map((child: any) => {\n return <InternalBreakpoint key={child.key} {...child.props} width={width} />;\n });\n\n useLayoutEffect(() => {\n return () => {\n setParent(null);\n };\n }, []);\n\n return (\n <>\n {parent == null ? hiddenChild : null}\n {internalBreakpoints}\n </>\n );\n}\n"],"names":["ResponsiveContainer","props","parent","setParent","useState","width","setWidth","resizeRef","useResizeObserver","forkedRef","useForkRef","element","hiddenChild","jsx","internalBreakpoints","React","child","InternalBreakpoint","useLayoutEffect","jsxs","Fragment"],"mappings":";;;;;AASO,SAASA,EAAoBC,GAAiC;AACnE,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAyB,IAAI,GACnD,CAACC,GAAOC,CAAQ,IAAIF,EAAS,CAAC,GAE9BG,IAAYC,EAAkB,CAAAH,MAAS;AAC3C,IAAAC,EAASD,CAAK;AAAA,EAChB,CAAC,GAEKI,IAAYC,EAAW,CAACC,MAAiB;AAC7C,IAAIA,KAAW,QAAQA,EAAQ,iBAAiB,SAGhDJ,EAAUI,EAAQ,aAAa,GAC/BR,EAAUQ,EAAQ,aAAa;AAAA,EACjC,CAAC,GAEKC,IACJ,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKJ;AAAA,MACL,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,EAAA,GAIEK,IAAsBC,EAAM,SAAS,QAAQd,EAAM,QAAQ,EAAE,IAAI,CAACe,wBAC9DC,GAAA,EAAoC,GAAGD,EAAM,OAAO,OAAAX,EAAA,GAA5BW,EAAM,GAAoC,CAC3E;AAED,SAAAE,EAAgB,MACP,MAAM;AACX,IAAAf,EAAU,IAAI;AAAA,EAChB,GACC,CAAA,CAAE,GAGH,gBAAAgB,EAAAC,GAAA,EACG,UAAA;AAAA,IAAAlB,KAAU,OAAOU,IAAc;AAAA,IAC/BE;AAAA,EAAA,GACH;AAEJ;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BreakpointProps } from './breakpoint.js';
|
|
3
|
+
export interface ResponsiveViewportProps {
|
|
4
|
+
children?: React.ReactElement<BreakpointProps>[] | React.ReactElement<BreakpointProps>;
|
|
5
|
+
}
|
|
6
|
+
export declare function ResponsiveViewport(props: ResponsiveViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=responsive_viewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive_viewport.d.ts","sourceRoot":"","sources":["../../../src/layouts/responsive/responsive_viewport.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGtE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE,GAAG,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;CACxF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CAQhE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as e, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { InternalBreakpoint as a } from "./breakpoint.js";
|
|
4
|
+
import { useMediaQuery as m } from "../../utils/hooks/use_media_query.js";
|
|
5
|
+
function d(t) {
|
|
6
|
+
const { width: o } = m(), n = p.Children.toArray(t.children).map((r) => /* @__PURE__ */ e(a, { ...r.props, width: o }, r.key));
|
|
7
|
+
return /* @__PURE__ */ e(i, { children: n });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
d as ResponsiveViewport
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=responsive_viewport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive_viewport.js","sources":["../../../src/layouts/responsive/responsive_viewport.tsx"],"sourcesContent":["import React from 'react';\nimport { InternalBreakpoint, BreakpointProps } from './breakpoint.js';\nimport { useMediaQuery } from '../../utils/hooks/use_media_query.js';\n\nexport interface ResponsiveViewportProps {\n children?: React.ReactElement<BreakpointProps>[] | React.ReactElement<BreakpointProps>;\n}\n\nexport function ResponsiveViewport(props: ResponsiveViewportProps) {\n const { width } = useMediaQuery();\n\n const internalBreakpoints = React.Children.toArray(props.children).map((child: any) => {\n return <InternalBreakpoint key={child.key} {...child.props} width={width} />;\n });\n\n return <>{internalBreakpoints}</>;\n}\n"],"names":["ResponsiveViewport","props","width","useMediaQuery","internalBreakpoints","React","child","InternalBreakpoint"],"mappings":";;;;AAQO,SAASA,EAAmBC,GAAgC;AACjE,QAAM,EAAE,OAAAC,EAAA,IAAUC,EAAA,GAEZC,IAAsBC,EAAM,SAAS,QAAQJ,EAAM,QAAQ,EAAE,IAAI,CAACK,wBAC9DC,GAAA,EAAoC,GAAGD,EAAM,OAAO,OAAAJ,EAAA,GAA5BI,EAAM,GAAoC,CAC3E;AAED,gCAAU,UAAAF,EAAA,CAAoB;AAChC;"}
|