@tcn/ui 0.8.1 → 0.9.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.
Files changed (112) hide show
  1. package/dist/feedback/progress/progress_bar.js +13 -13
  2. package/dist/form/field/common/field_description.js +7 -8
  3. package/dist/form/field/common/field_description.js.map +1 -1
  4. package/dist/form/field/common/field_error.js +6 -6
  5. package/dist/form/field/common/field_label.js +7 -8
  6. package/dist/form/field/common/field_label.js.map +1 -1
  7. package/dist/form/field_set/field_set.js +7 -7
  8. package/dist/inputs/date_picker/date_picker_date.js +6 -6
  9. package/dist/inputs/date_picker/date_picker_day.js +6 -6
  10. package/dist/inputs/date_picker/date_picker_time_selector.js +5 -5
  11. package/dist/inputs/date_picker/date_picker_year_selector.js +5 -5
  12. package/dist/inputs/suggestions/suggestion_list.js +6 -6
  13. package/dist/layouts/index.d.ts +2 -0
  14. package/dist/layouts/index.d.ts.map +1 -1
  15. package/dist/layouts/index.js +46 -42
  16. package/dist/layouts/index.js.map +1 -1
  17. package/dist/layouts/responsive/breakpoint.d.ts +11 -0
  18. package/dist/layouts/responsive/breakpoint.d.ts.map +1 -0
  19. package/dist/layouts/responsive/breakpoint.js +15 -0
  20. package/dist/layouts/responsive/breakpoint.js.map +1 -0
  21. package/dist/layouts/responsive/responsive.d.ts +7 -0
  22. package/dist/layouts/responsive/responsive.d.ts.map +1 -0
  23. package/dist/layouts/responsive/responsive.js +11 -0
  24. package/dist/layouts/responsive/responsive.js.map +1 -0
  25. package/dist/layouts/responsive/responsive_container.d.ts +7 -0
  26. package/dist/layouts/responsive/responsive_container.d.ts.map +1 -0
  27. package/dist/layouts/responsive/responsive_container.js +30 -0
  28. package/dist/layouts/responsive/responsive_container.js.map +1 -0
  29. package/dist/layouts/responsive/responsive_viewport.d.ts +7 -0
  30. package/dist/layouts/responsive/responsive_viewport.d.ts.map +1 -0
  31. package/dist/layouts/responsive/responsive_viewport.js +12 -0
  32. package/dist/layouts/responsive/responsive_viewport.js.map +1 -0
  33. package/dist/surfaces/confirm/confirm.js +5 -5
  34. package/dist/surfaces/pop_confirm/pop_confirm.js +3 -2
  35. package/dist/surfaces/pop_confirm/pop_confirm.js.map +1 -1
  36. package/dist/typography/body_text/body_text.d.ts +2 -1
  37. package/dist/typography/body_text/body_text.d.ts.map +1 -1
  38. package/dist/typography/body_text/body_text.js +24 -23
  39. package/dist/typography/body_text/body_text.js.map +1 -1
  40. package/dist/typography/callout/callout.d.ts +2 -1
  41. package/dist/typography/callout/callout.d.ts.map +1 -1
  42. package/dist/typography/callout/callout.js +28 -27
  43. package/dist/typography/callout/callout.js.map +1 -1
  44. package/dist/typography/caption/caption.d.ts +2 -1
  45. package/dist/typography/caption/caption.d.ts.map +1 -1
  46. package/dist/typography/caption/caption.js +18 -17
  47. package/dist/typography/caption/caption.js.map +1 -1
  48. package/dist/typography/footnote/footnote.d.ts +2 -1
  49. package/dist/typography/footnote/footnote.d.ts.map +1 -1
  50. package/dist/typography/footnote/footnote.js +25 -24
  51. package/dist/typography/footnote/footnote.js.map +1 -1
  52. package/dist/typography/headline/headline.d.ts +2 -1
  53. package/dist/typography/headline/headline.d.ts.map +1 -1
  54. package/dist/typography/headline/headline.js +36 -33
  55. package/dist/typography/headline/headline.js.map +1 -1
  56. package/dist/typography/subheadline/subheadline.d.ts +2 -1
  57. package/dist/typography/subheadline/subheadline.d.ts.map +1 -1
  58. package/dist/typography/subheadline/subheadline.js +35 -32
  59. package/dist/typography/subheadline/subheadline.js.map +1 -1
  60. package/dist/utils/dnd/context.d.ts.map +1 -1
  61. package/dist/utils/dnd/context.js +9 -7
  62. package/dist/utils/dnd/context.js.map +1 -1
  63. package/dist/utils/dnd/hooks/use_drag_container.d.ts.map +1 -1
  64. package/dist/utils/dnd/hooks/use_drag_container.js +29 -15
  65. package/dist/utils/dnd/hooks/use_drag_container.js.map +1 -1
  66. package/dist/utils/dnd/types.d.ts +3 -4
  67. package/dist/utils/dnd/types.d.ts.map +1 -1
  68. package/dist/utils/hooks/use_media_query.d.ts +5 -8
  69. package/dist/utils/hooks/use_media_query.d.ts.map +1 -1
  70. package/dist/utils/hooks/use_media_query.js +10 -11
  71. package/dist/utils/hooks/use_media_query.js.map +1 -1
  72. package/dist/utils/index.d.ts +1 -2
  73. package/dist/utils/index.d.ts.map +1 -1
  74. package/dist/utils/index.js +19 -21
  75. package/dist/utils/index.js.map +1 -1
  76. package/package.json +1 -1
  77. package/src/layouts/index.ts +2 -0
  78. package/src/layouts/responsive/breakpoint.tsx +29 -0
  79. package/src/layouts/responsive/responsive.stories.tsx +37 -0
  80. package/src/layouts/responsive/responsive.tsx +18 -0
  81. package/src/layouts/responsive/responsive_container.tsx +51 -0
  82. package/src/layouts/responsive/responsive_viewport.tsx +17 -0
  83. package/src/typography/body_text/body_text.tsx +21 -17
  84. package/src/typography/callout/callout.tsx +20 -16
  85. package/src/typography/caption/caption.tsx +20 -16
  86. package/src/typography/footnote/footnote.tsx +20 -16
  87. package/src/typography/headline/headline.tsx +60 -54
  88. package/src/typography/subheadline/subheadline.tsx +60 -54
  89. package/src/utils/dnd/__stories__/draggable.stories.tsx +34 -0
  90. package/src/utils/dnd/context.ts +1 -0
  91. package/src/utils/dnd/hooks/use_drag_container.ts +18 -1
  92. package/src/utils/dnd/types.ts +4 -1
  93. package/src/utils/hooks/use_media_query.ts +16 -27
  94. package/src/utils/index.ts +1 -3
  95. package/dist/body_text.module-h4XQE2pC.js +0 -5
  96. package/dist/body_text.module-h4XQE2pC.js.map +0 -1
  97. package/dist/callout.module-D8ECmxpO.js +0 -5
  98. package/dist/callout.module-D8ECmxpO.js.map +0 -1
  99. package/dist/caption.module-DDq0H4xZ.js +0 -5
  100. package/dist/caption.module-DDq0H4xZ.js.map +0 -1
  101. package/dist/footnote.module-DEyFuqOr.js +0 -5
  102. package/dist/footnote.module-DEyFuqOr.js.map +0 -1
  103. package/dist/headline.module-BiwHBtGf.js +0 -5
  104. package/dist/headline.module-BiwHBtGf.js.map +0 -1
  105. package/dist/subheadline.module-C-v7zMkQ.js +0 -5
  106. package/dist/subheadline.module-C-v7zMkQ.js.map +0 -1
  107. package/dist/utils/responsive/responsive_renderer.d.ts +0 -21
  108. package/dist/utils/responsive/responsive_renderer.d.ts.map +0 -1
  109. package/dist/utils/responsive/responsive_renderer.js +0 -12
  110. package/dist/utils/responsive/responsive_renderer.js.map +0 -1
  111. package/src/utils/responsive/responsive_renderer.stories.tsx +0 -77
  112. package/src/utils/responsive/responsive_renderer.tsx +0 -31
@@ -1,33 +1,33 @@
1
1
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import m from "react";
3
3
  import { BodyText as t } from "../../typography/body_text/body_text.js";
4
- import l from "clsx";
5
- import "../../callout.module-D8ECmxpO.js";
6
- import "../../caption.module-DDq0H4xZ.js";
7
- import "../../footnote.module-DEyFuqOr.js";
8
- import "../../headline.module-BiwHBtGf.js";
9
- import "../../subheadline.module-C-v7zMkQ.js";
4
+ import "../../typography/callout/callout.js";
5
+ import "../../typography/caption/caption.js";
6
+ import "../../typography/footnote/footnote.js";
7
+ import "../../typography/headline/headline.js";
8
+ import "../../typography/subheadline/subheadline.js";
10
9
  import "../../typography/title/title.js";
11
- import { HStack as d } from "../../stacks/h_stack.js";
10
+ import { HStack as l } from "../../stacks/h_stack.js";
12
11
  import { Spacer as a } from "../../stacks/spacer.js";
13
- import { VStack as b } from "../../stacks/v_stack.js";
14
- import { ZStack as f } from "../../stacks/z_stack.js";
12
+ import { VStack as d } from "../../stacks/v_stack.js";
13
+ import { ZStack as b } from "../../stacks/z_stack.js";
14
+ import f from "clsx";
15
15
  import '../../progress_bar.css';const h = "_progress-bar-container_014b4d9", _ = "_progress-bar-background_9176cc0", x = "_progress-bar_057c33d", k = "_progress-bar-fill_00854f0", u = "_moveStripes_d219e85", s = { "progress-bar-container": h, "progress-bar-background": _, "progress-bar": x, "progress-bar-fill": k, moveStripes: u }, T = m.forwardRef(function({ message: i, value: p, ...c }, n) {
16
16
  const o = `${(p * 100).toFixed(0)}%`, g = { "--progress-percentage": o };
17
17
  return /* @__PURE__ */ e(
18
- b,
18
+ d,
19
19
  {
20
20
  ref: n,
21
- className: l(s["progress-bar-container"], "tcn-progress-bar"),
21
+ className: f(s["progress-bar-container"], "tcn-progress-bar"),
22
22
  ...c,
23
23
  children: [
24
- /* @__PURE__ */ e(d, { height: "auto", vAlign: "end", children: [
24
+ /* @__PURE__ */ e(l, { height: "auto", vAlign: "end", children: [
25
25
  /* @__PURE__ */ r(t, { children: i }),
26
26
  /* @__PURE__ */ r(a, {}),
27
27
  /* @__PURE__ */ r(a, { width: "8px" }),
28
28
  /* @__PURE__ */ r(t, { size: "sm", style: { flexShrink: 0 }, children: o })
29
29
  ] }),
30
- /* @__PURE__ */ e(f, { height: "8px", hAlign: "start", children: [
30
+ /* @__PURE__ */ e(b, { height: "8px", hAlign: "start", children: [
31
31
  /* @__PURE__ */ r("div", { className: s["progress-bar-background"] }),
32
32
  /* @__PURE__ */ r(
33
33
  "div",
@@ -1,13 +1,12 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { BodyText as i } from "../../../typography/body_text/body_text.js";
3
- import "clsx";
4
- import "../../../callout.module-D8ECmxpO.js";
5
- import "../../../caption.module-DDq0H4xZ.js";
6
- import "../../../footnote.module-DEyFuqOr.js";
7
- import "../../../headline.module-BiwHBtGf.js";
8
- import "../../../subheadline.module-C-v7zMkQ.js";
3
+ import "../../../typography/callout/callout.js";
4
+ import "../../../typography/caption/caption.js";
5
+ import "../../../typography/footnote/footnote.js";
6
+ import "../../../typography/headline/headline.js";
7
+ import "../../../typography/subheadline/subheadline.js";
9
8
  import "../../../typography/title/title.js";
10
- const x = ({ children: r, id: t }) => r ? typeof r == "string" ? /* @__PURE__ */ o(
9
+ const c = ({ children: r, id: t }) => r ? typeof r == "string" ? /* @__PURE__ */ o(
11
10
  i,
12
11
  {
13
12
  breakWords: !0,
@@ -20,6 +19,6 @@ const x = ({ children: r, id: t }) => r ? typeof r == "string" ? /* @__PURE__ */
20
19
  }
21
20
  ) : r : null;
22
21
  export {
23
- x as FieldDescription
22
+ c as FieldDescription
24
23
  };
25
24
  //# sourceMappingURL=field_description.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"field_description.js","sources":["../../../../src/form/field/common/field_description.tsx"],"sourcesContent":["import React from 'react';\nimport { BodyText } from '../../../typography/index.js';\n\nexport interface FieldDescriptionOwnProps {\n children?: React.ReactNode | string;\n id?: string;\n}\n\nexport const FieldDescription = ({ children, id }: FieldDescriptionOwnProps) => {\n if (!children) return null;\n if (typeof children === 'string') {\n return (\n <BodyText\n breakWords\n hierarchy=\"secondary\"\n emphasis=\"normal\"\n size=\"sm\"\n className=\"tcn-field-row-description-text\"\n id={id}\n >\n {children}\n </BodyText>\n );\n }\n return children;\n};\n"],"names":["FieldDescription","children","id","jsx","BodyText"],"mappings":";;;;;;;;;AAQO,MAAMA,IAAmB,CAAC,EAAE,UAAAC,GAAU,IAAAC,QACtCD,IACD,OAAOA,KAAa,WAEpB,gBAAAE;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,YAAU;AAAA,IACV,WAAU;AAAA,IACV,UAAS;AAAA,IACT,MAAK;AAAA,IACL,WAAU;AAAA,IACV,IAAAF;AAAA,IAEC,UAAAD;AAAA,EAAA;AAAA,IAIAA,IAfe;"}
1
+ {"version":3,"file":"field_description.js","sources":["../../../../src/form/field/common/field_description.tsx"],"sourcesContent":["import React from 'react';\nimport { BodyText } from '../../../typography/index.js';\n\nexport interface FieldDescriptionOwnProps {\n children?: React.ReactNode | string;\n id?: string;\n}\n\nexport const FieldDescription = ({ children, id }: FieldDescriptionOwnProps) => {\n if (!children) return null;\n if (typeof children === 'string') {\n return (\n <BodyText\n breakWords\n hierarchy=\"secondary\"\n emphasis=\"normal\"\n size=\"sm\"\n className=\"tcn-field-row-description-text\"\n id={id}\n >\n {children}\n </BodyText>\n );\n }\n return children;\n};\n"],"names":["FieldDescription","children","id","jsx","BodyText"],"mappings":";;;;;;;;AAQO,MAAMA,IAAmB,CAAC,EAAE,UAAAC,GAAU,IAAAC,QACtCD,IACD,OAAOA,KAAa,WAEpB,gBAAAE;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,YAAU;AAAA,IACV,WAAU;AAAA,IACV,UAAS;AAAA,IACT,MAAK;AAAA,IACL,WAAU;AAAA,IACV,IAAAF;AAAA,IAEC,UAAAD;AAAA,EAAA;AAAA,IAIAA,IAfe;"}
@@ -1,11 +1,10 @@
1
1
  import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
2
  import { BodyText as p } from "../../../typography/body_text/body_text.js";
3
- import "clsx";
4
- import "../../../callout.module-D8ECmxpO.js";
5
- import "../../../caption.module-DDq0H4xZ.js";
6
- import "../../../footnote.module-DEyFuqOr.js";
7
- import "../../../headline.module-BiwHBtGf.js";
8
- import "../../../subheadline.module-C-v7zMkQ.js";
3
+ import "../../../typography/callout/callout.js";
4
+ import "../../../typography/caption/caption.js";
5
+ import "../../../typography/footnote/footnote.js";
6
+ import "../../../typography/headline/headline.js";
7
+ import "../../../typography/subheadline/subheadline.js";
9
8
  import "../../../typography/title/title.js";
10
9
  import { theme as i } from "../../../themes/theme_variables.js";
11
10
  import "react";
@@ -16,6 +15,7 @@ import "../../../stacks/spacer.js";
16
15
  import "../../../stacks/v_collapsible_box.js";
17
16
  import "../../../stacks/v_stack.js";
18
17
  import "../../../stacks/z_stack.js";
18
+ import "clsx";
19
19
  import '../../../themes/stylesheets/reset.css';/* empty css */
20
20
  import "../../../theme_provider.module-ChZQ5Xsk.js";
21
21
  import "../../../themes/stylesheets/reset.js";
@@ -1,13 +1,12 @@
1
1
  import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
2
  import { BodyText as t } from "../../../typography/body_text/body_text.js";
3
- import "clsx";
4
- import "../../../callout.module-D8ECmxpO.js";
5
- import "../../../caption.module-DDq0H4xZ.js";
6
- import "../../../footnote.module-DEyFuqOr.js";
7
- import "../../../headline.module-BiwHBtGf.js";
8
- import "../../../subheadline.module-C-v7zMkQ.js";
3
+ import "../../../typography/callout/callout.js";
4
+ import "../../../typography/caption/caption.js";
5
+ import "../../../typography/footnote/footnote.js";
6
+ import "../../../typography/headline/headline.js";
7
+ import "../../../typography/subheadline/subheadline.js";
9
8
  import "../../../typography/title/title.js";
10
- const x = ({ children: r, id: e, required: i }) => r ? typeof r == "string" ? /* @__PURE__ */ o(
9
+ const u = ({ children: r, id: e, required: i }) => r ? typeof r == "string" ? /* @__PURE__ */ o(
11
10
  t,
12
11
  {
13
12
  breakWords: !0,
@@ -33,6 +32,6 @@ const x = ({ children: r, id: e, required: i }) => r ? typeof r == "string" ? /*
33
32
  }
34
33
  ) : r : null;
35
34
  export {
36
- x as FieldLabel
35
+ u as FieldLabel
37
36
  };
38
37
  //# sourceMappingURL=field_label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"field_label.js","sources":["../../../../src/form/field/common/field_label.tsx"],"sourcesContent":["import React from 'react';\nimport { BodyText } from '../../../typography/index.js';\n\nexport interface FieldLabelOwnProps {\n children?: React.ReactNode | string;\n id?: string;\n required?: boolean;\n}\n\nexport const FieldLabel = ({ children, id, required }: FieldLabelOwnProps) => {\n if (!children) return null;\n if (typeof children === 'string') {\n return (\n <BodyText\n breakWords\n color=\"inherit\"\n size=\"lg\"\n id={id}\n style={{\n justifyContent: 'center',\n alignItems: 'center',\n display: 'flex',\n }}\n >\n {children}\n {required && (\n <BodyText\n size=\"lg\"\n style={{ color: 'red', paddingInline: 'calc(var(--scalar, 1)*4px)' }}\n >\n *\n </BodyText>\n )}\n </BodyText>\n );\n }\n return children;\n};\n"],"names":["FieldLabel","children","id","required","jsxs","BodyText","jsx"],"mappings":";;;;;;;;;AASO,MAAMA,IAAa,CAAC,EAAE,UAAAC,GAAU,IAAAC,GAAI,UAAAC,QACpCF,IACD,OAAOA,KAAa,WAEpB,gBAAAG;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,YAAU;AAAA,IACV,OAAM;AAAA,IACN,MAAK;AAAA,IACL,IAAAH;AAAA,IACA,OAAO;AAAA,MACL,gBAAgB;AAAA,MAChB,YAAY;AAAA,MACZ,SAAS;AAAA,IAAA;AAAA,IAGV,UAAA;AAAA,MAAAD;AAAA,MACAE,KACC,gBAAAG;AAAA,QAACD;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAO,EAAE,OAAO,OAAO,eAAe,6BAAA;AAAA,UACvC,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAED;AAAA,EAAA;AAAA,IAKDJ,IA1Be;"}
1
+ {"version":3,"file":"field_label.js","sources":["../../../../src/form/field/common/field_label.tsx"],"sourcesContent":["import React from 'react';\nimport { BodyText } from '../../../typography/index.js';\n\nexport interface FieldLabelOwnProps {\n children?: React.ReactNode | string;\n id?: string;\n required?: boolean;\n}\n\nexport const FieldLabel = ({ children, id, required }: FieldLabelOwnProps) => {\n if (!children) return null;\n if (typeof children === 'string') {\n return (\n <BodyText\n breakWords\n color=\"inherit\"\n size=\"lg\"\n id={id}\n style={{\n justifyContent: 'center',\n alignItems: 'center',\n display: 'flex',\n }}\n >\n {children}\n {required && (\n <BodyText\n size=\"lg\"\n style={{ color: 'red', paddingInline: 'calc(var(--scalar, 1)*4px)' }}\n >\n *\n </BodyText>\n )}\n </BodyText>\n );\n }\n return children;\n};\n"],"names":["FieldLabel","children","id","required","jsxs","BodyText","jsx"],"mappings":";;;;;;;;AASO,MAAMA,IAAa,CAAC,EAAE,UAAAC,GAAU,IAAAC,GAAI,UAAAC,QACpCF,IACD,OAAOA,KAAa,WAEpB,gBAAAG;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,YAAU;AAAA,IACV,OAAM;AAAA,IACN,MAAK;AAAA,IACL,IAAAH;AAAA,IACA,OAAO;AAAA,MACL,gBAAgB;AAAA,MAChB,YAAY;AAAA,MACZ,SAAS;AAAA,IAAA;AAAA,IAGV,UAAA;AAAA,MAAAD;AAAA,MACAE,KACC,gBAAAG;AAAA,QAACD;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAO,EAAE,OAAO,OAAO,eAAe,6BAAA;AAAA,UACvC,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAED;AAAA,EAAA;AAAA,IAKDJ,IA1Be;"}
@@ -1,15 +1,15 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { clsx as i } from "clsx";
3
- import "../../body_text.module-h4XQE2pC.js";
4
- import "../../callout.module-D8ECmxpO.js";
5
- import "../../caption.module-DDq0H4xZ.js";
6
- import "../../footnote.module-DEyFuqOr.js";
7
- import "../../headline.module-BiwHBtGf.js";
8
- import "../../subheadline.module-C-v7zMkQ.js";
2
+ import "../../typography/body_text/body_text.js";
3
+ import "../../typography/callout/callout.js";
4
+ import "../../typography/caption/caption.js";
5
+ import "../../typography/footnote/footnote.js";
6
+ import "../../typography/headline/headline.js";
7
+ import "../../typography/subheadline/subheadline.js";
9
8
  import { Title as h } from "../../typography/title/title.js";
10
9
  import { HStack as b } from "../../stacks/h_stack.js";
11
10
  import { Spacer as c } from "../../stacks/spacer.js";
12
11
  import { VStack as f } from "../../stacks/v_stack.js";
12
+ import { clsx as i } from "clsx";
13
13
  import y, { useMemo as S } from "react";
14
14
  import '../../field_set.css';const u = "_field-set_8e981d9", x = "_field-set-body_4cd3139", m = { "field-set": u, "field-set-body": x };
15
15
  let _ = 0;
@@ -1,14 +1,14 @@
1
1
  import { jsx as n, jsxs as w } from "react/jsx-runtime";
2
2
  import { useSignalValue as u } from "@tcn/state";
3
3
  import { BodyText as b } from "../../typography/body_text/body_text.js";
4
- import { clsx as f } from "clsx";
5
- import "../../callout.module-D8ECmxpO.js";
6
- import "../../caption.module-DDq0H4xZ.js";
7
- import "../../footnote.module-DEyFuqOr.js";
8
- import "../../headline.module-BiwHBtGf.js";
9
- import "../../subheadline.module-C-v7zMkQ.js";
4
+ import "../../typography/callout/callout.js";
5
+ import "../../typography/caption/caption.js";
6
+ import "../../typography/footnote/footnote.js";
7
+ import "../../typography/headline/headline.js";
8
+ import "../../typography/subheadline/subheadline.js";
10
9
  import "../../typography/title/title.js";
11
10
  import { ZStack as M } from "../../stacks/z_stack.js";
11
+ import { clsx as f } from "clsx";
12
12
  import '../../date_picker_date.css';const B = "_date-picker-date_38d540e", _ = "_date-picker-today_af9d1ab", k = { "date-picker-date": B, "date-picker-today": _ };
13
13
  function C({ presenter: i, date: t }) {
14
14
  const {
@@ -1,14 +1,14 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import r from "clsx";
3
- import "../../body_text.module-h4XQE2pC.js";
4
- import "../../callout.module-D8ECmxpO.js";
5
- import "../../caption.module-DDq0H4xZ.js";
6
- import "../../footnote.module-DEyFuqOr.js";
2
+ import "../../typography/body_text/body_text.js";
3
+ import "../../typography/callout/callout.js";
4
+ import "../../typography/caption/caption.js";
5
+ import "../../typography/footnote/footnote.js";
7
6
  import { Headline as c } from "../../typography/headline/headline.js";
8
- import "../../subheadline.module-C-v7zMkQ.js";
7
+ import "../../typography/subheadline/subheadline.js";
9
8
  import "../../typography/title/title.js";
10
9
  import { ZStack as p } from "../../stacks/z_stack.js";
11
10
  import { useMemo as s } from "react";
11
+ import r from "clsx";
12
12
  import '../../date_picker_day.css';const d = "_date-picker-day_2945845", i = { "date-picker-day": d };
13
13
  function u({ dayOfTheWeek: o, countryCode: t }) {
14
14
  const e = /* @__PURE__ */ new Date();
@@ -10,11 +10,11 @@ import "../../actions/button/select_group/select_group.js";
10
10
  import "../../actions/button/select_group/single_select_group.js";
11
11
  import "../../actions/toggle/toggle.js";
12
12
  import { BodyText as $ } from "../../typography/body_text/body_text.js";
13
- import "../../callout.module-D8ECmxpO.js";
14
- import "../../caption.module-DDq0H4xZ.js";
15
- import "../../footnote.module-DEyFuqOr.js";
16
- import "../../headline.module-BiwHBtGf.js";
17
- import "../../subheadline.module-C-v7zMkQ.js";
13
+ import "../../typography/callout/callout.js";
14
+ import "../../typography/caption/caption.js";
15
+ import "../../typography/footnote/footnote.js";
16
+ import "../../typography/headline/headline.js";
17
+ import "../../typography/subheadline/subheadline.js";
18
18
  import "../../typography/title/title.js";
19
19
  import { ClockIcon as j } from "@tcn/icons/clock_icon.js";
20
20
  import '../../date_picker_time_selector.css';const z = "_time-box_f3145be", P = "_time-box-title_6cc801b", Z = "_time-box-title-container_22add52", v = "_selected-time_33e3aa3", m = { "time-box": z, "time-box-title": P, "time-box-title-container": Z, "selected-time": v };
@@ -14,18 +14,18 @@ import { HStack as t } from "../../stacks/h_stack.js";
14
14
  import { Spacer as x } from "../../stacks/spacer.js";
15
15
  import { VStack as E } from "../../stacks/v_stack.js";
16
16
  import { BodyText as L } from "../../typography/body_text/body_text.js";
17
- import { clsx as y } from "clsx";
18
- import "../../callout.module-D8ECmxpO.js";
19
- import "../../caption.module-DDq0H4xZ.js";
20
- import "../../footnote.module-DEyFuqOr.js";
17
+ import "../../typography/callout/callout.js";
18
+ import "../../typography/caption/caption.js";
19
+ import "../../typography/footnote/footnote.js";
21
20
  import { Headline as M } from "../../typography/headline/headline.js";
22
- import "../../subheadline.module-C-v7zMkQ.js";
21
+ import "../../typography/subheadline/subheadline.js";
23
22
  import "../../typography/title/title.js";
24
23
  import "../../utils/click_away_listener.js";
25
24
  import { FocusRedirect as T } from "../../utils/focus_redirect.js";
26
25
  import "../../utils/scroll_away_listener.js";
27
26
  import "../../utils/hooks/use_resize_observer.js";
28
27
  import "../../utils/dnd/context.js";
28
+ import { clsx as y } from "clsx";
29
29
  import "../../draggable.module-BgelQsuJ.js";
30
30
  import '../../date_picker_year_selector.css';const q = "_date-picker-year-selector_ab05e1f", A = "_date-picker-year-button_fded757", Y = { "date-picker-year-selector": q, "date-picker-year-button": A };
31
31
  function be({
@@ -1,14 +1,14 @@
1
1
  import { jsx as r, jsxs as N, Fragment as ce } from "react/jsx-runtime";
2
2
  import { BodyText as ae } from "../../typography/body_text/body_text.js";
3
- import { clsx as R } from "clsx";
4
- import "../../callout.module-D8ECmxpO.js";
5
- import "../../caption.module-DDq0H4xZ.js";
6
- import "../../footnote.module-DEyFuqOr.js";
7
- import "../../headline.module-BiwHBtGf.js";
8
- import "../../subheadline.module-C-v7zMkQ.js";
3
+ import "../../typography/callout/callout.js";
4
+ import "../../typography/caption/caption.js";
5
+ import "../../typography/footnote/footnote.js";
6
+ import "../../typography/headline/headline.js";
7
+ import "../../typography/subheadline/subheadline.js";
9
8
  import "../../typography/title/title.js";
10
9
  import { VStack as O } from "../../stacks/v_stack.js";
11
10
  import { ZStack as ue } from "../../stacks/z_stack.js";
11
+ import { clsx as R } from "clsx";
12
12
  import { Children as pe, isValidElement as de, useState as a, useRef as T, useLayoutEffect as S } from "react";
13
13
  import "../../utils/click_away_listener.js";
14
14
  import { FocusRedirect as fe } from "../../utils/focus_redirect.js";
@@ -14,6 +14,8 @@ 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
21
  export { Main, type MainProps } from './rail/main/main.js';
@@ -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;AAErE,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,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,uCAAuC,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,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,uCAAuC,CAAC"}
@@ -1,51 +1,55 @@
1
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";
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
- import { SidebarEnd as S } from "./sidebar_end/sidebar_end.js";
7
- import { SidebarStart as n } from "./sidebar_start/sidebar_start.js";
8
- import { Scaffold as H } from "./scaffold/scaffold.js";
9
- import { HBody as b } from "./body/h_body.js";
10
- import { VBody as c } from "./body/v_body.js";
11
- import { Footer as F } from "./footer/footer.js";
12
- import { Header as g } from "./header/header.js";
13
- import { UtilityBar as u } from "./utility_bar/utility_bar.js";
14
- import { Row as w } from "./row/row.js";
15
- import { Section as E } from "./section/section.js";
16
- import { Heading as I } from "./section/heading.js";
17
- import { TBody as M, TD as V, TFoot as h, TH as j, THead as k, TR as q, TTable as z } from "./table/table.js";
18
- import { Rail as J } from "./rail/rail.js";
19
- import { Main as N } from "./rail/main/main.js";
20
- import { Side as P } from "./rail/side/side.js";
21
- import { UtilityStrip as W } from "./rail/utility_strip/utility_strip.js";
6
+ import { SidebarEnd as n } from "./sidebar_end/sidebar_end.js";
7
+ import { SidebarStart as l } from "./sidebar_start/sidebar_start.js";
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 V } from "./responsive/breakpoint.js";
19
+ import { TBody as j, TD as q, TFoot as z, TH as A, THead as J, TR as K, TTable as N } from "./table/table.js";
20
+ import { Rail as P } from "./rail/rail.js";
21
+ import { Main as W } from "./rail/main/main.js";
22
+ import { Side as Y } from "./rail/side/side.js";
23
+ import { UtilityStrip as _ } from "./rail/utility_strip/utility_strip.js";
22
24
  export {
25
+ V as Breakpoint,
23
26
  e as Column,
24
- f as Divider,
25
- F as Footer,
26
- p as Grid,
27
- b as HBody,
28
- g as Header,
29
- I as Heading,
27
+ p as Divider,
28
+ v as Footer,
29
+ m as Grid,
30
+ R as HBody,
31
+ F as Header,
32
+ G as Heading,
30
33
  i as Item,
31
34
  a as List,
32
- N as Main,
33
- J as Rail,
34
- w as Row,
35
- H as Scaffold,
36
- E as Section,
37
- P as Side,
38
- S as SidebarEnd,
39
- n as SidebarStart,
40
- M as TBody,
41
- V as TD,
42
- h as TFoot,
43
- j as TH,
44
- k as THead,
45
- q as TR,
46
- z as TTable,
47
- u as UtilityBar,
48
- W as UtilityStrip,
49
- c as VBody
35
+ W as Main,
36
+ P as Rail,
37
+ L as Responsive,
38
+ u as Row,
39
+ B as Scaffold,
40
+ C as Section,
41
+ Y as Side,
42
+ n as SidebarEnd,
43
+ l as SidebarStart,
44
+ j as TBody,
45
+ q as TD,
46
+ z as TFoot,
47
+ A as TH,
48
+ J as THead,
49
+ K as TR,
50
+ N as TTable,
51
+ g as UtilityBar,
52
+ _ as UtilityStrip,
53
+ s as VBody
50
54
  };
51
55
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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;"}
@@ -6,11 +6,11 @@ import { VStack as T } from "../../stacks/v_stack.js";
6
6
  import { ZStack as R } from "../../stacks/z_stack.js";
7
7
  import { Portal as j } from "../../overlay/portal/portal.js";
8
8
  import { BodyText as B } from "../../typography/body_text/body_text.js";
9
- import "../../callout.module-D8ECmxpO.js";
10
- import "../../caption.module-DDq0H4xZ.js";
11
- import "../../footnote.module-DEyFuqOr.js";
12
- import "../../headline.module-BiwHBtGf.js";
13
- import "../../subheadline.module-C-v7zMkQ.js";
9
+ import "../../typography/callout/callout.js";
10
+ import "../../typography/caption/caption.js";
11
+ import "../../typography/footnote/footnote.js";
12
+ import "../../typography/headline/headline.js";
13
+ import "../../typography/subheadline/subheadline.js";
14
14
  import { Title as b } from "../../typography/title/title.js";
15
15
  import { Box as s } from "../../stacks/box/box.js";
16
16
  import '../../confirm.css';const v = "_confirm_e53f865", z = "_shake_d5d9154", A = "_actions_b7ffee5", m = { confirm: v, shake: z, actions: A }, U = w.forwardRef(function({