@plitzi/sdk-elements 0.39.15 → 0.39.16

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 (35) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/elements/declarations/index.d.ts +115 -1
  3. package/dist/elements/declarations/index.mjs +19 -15
  4. package/dist/elements/index.d.ts +3 -1
  5. package/dist/elements/index.mjs +14 -12
  6. package/dist/elements/settings.mjs +18 -14
  7. package/dist/elements/structure/Disclosure/DisclosureSummary/DisclosureSummary.d.ts +6 -1
  8. package/dist/elements/structure/Disclosure/DisclosureSummary/DisclosureSummary.mjs +4 -3
  9. package/dist/elements/structure/Disclosure/DisclosureSummary/Settings.d.ts +3 -2
  10. package/dist/elements/structure/Disclosure/DisclosureSummary/Settings.mjs +23 -12
  11. package/dist/elements/structure/Disclosure/DisclosureSummary/declaration.d.ts +2 -0
  12. package/dist/elements/structure/Disclosure/DisclosureSummary/declaration.mjs +5 -2
  13. package/dist/elements/structure/Disclosure/DisclosureSummary/index.d.ts +2 -0
  14. package/dist/elements/structure/Disclosure/index.d.ts +2 -0
  15. package/dist/elements/structure/Table/Settings.d.ts +8 -0
  16. package/dist/elements/structure/Table/Settings.mjs +25 -0
  17. package/dist/elements/structure/Table/Table.d.ts +25 -0
  18. package/dist/elements/structure/Table/Table.mjs +79 -0
  19. package/dist/elements/structure/Table/TableColumn/Settings.d.ts +8 -0
  20. package/dist/elements/structure/Table/TableColumn/Settings.mjs +31 -0
  21. package/dist/elements/structure/Table/TableColumn/TableColumn.d.ts +20 -0
  22. package/dist/elements/structure/Table/TableColumn/TableColumn.mjs +25 -0
  23. package/dist/elements/structure/Table/TableColumn/declaration.d.ts +47 -0
  24. package/dist/elements/structure/Table/TableColumn/declaration.mjs +36 -0
  25. package/dist/elements/structure/Table/TableColumn/index.d.ts +45 -0
  26. package/dist/elements/structure/Table/TableColumn/index.mjs +5 -0
  27. package/dist/elements/structure/Table/TablePart.d.ts +6 -0
  28. package/dist/elements/structure/Table/TablePart.mjs +4 -0
  29. package/dist/elements/structure/Table/declaration.d.ts +73 -0
  30. package/dist/elements/structure/Table/declaration.mjs +57 -0
  31. package/dist/elements/structure/Table/index.d.ts +118 -0
  32. package/dist/elements/structure/Table/index.mjs +9 -0
  33. package/dist/index.d.ts +117 -0
  34. package/dist/index.mjs +21 -19
  35. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @plitzi/sdk-elements
2
2
 
3
+ ## 0.39.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 0389dd0: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
8
+ `@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
9
+ - Updated dependencies [0389dd0]
10
+ - @plitzi/sdk-auth@0.39.16
11
+ - @plitzi/sdk-event-bridge@0.39.16
12
+ - @plitzi/sdk-interactions@0.39.16
13
+ - @plitzi/sdk-navigation@0.39.16
14
+ - @plitzi/sdk-schema@0.39.16
15
+ - @plitzi/sdk-shared@0.39.16
16
+
3
17
  ## 0.39.15
4
18
 
5
19
  ### Patch Changes
@@ -44,6 +44,8 @@ import { default as TabContainerDeclaration } from '../structure/TabContainer/de
44
44
  import { default as TabContainerBodyDeclaration } from '../structure/TabContainer/TabContainerBody/declaration';
45
45
  import { default as TabContainerHeaderDeclaration } from '../structure/TabContainer/TabContainerHeader/declaration';
46
46
  import { default as TabContainerItemDeclaration } from '../structure/TabContainer/TabContainerItem/declaration';
47
+ import { default as TableDeclaration } from '../structure/Table/declaration';
48
+ import { default as TableColumnDeclaration } from '../structure/Table/TableColumn/declaration';
47
49
  import { default as TimeWindowDeclaration } from '../structure/TimeWindow/declaration';
48
50
  import { default as VariantsDeclaration } from '../structure/Variants/declaration';
49
51
  import { default as VariantItemDeclaration } from '../structure/Variants/VariantItem/declaration';
@@ -1180,6 +1182,7 @@ export declare const elementDeclarations: {
1180
1182
  readonly content: {
1181
1183
  readonly attributes: {
1182
1184
  readonly marker: true;
1185
+ readonly label: "";
1183
1186
  };
1184
1187
  readonly definition: {
1185
1188
  readonly label: "Disclosure Summary";
@@ -1226,6 +1229,7 @@ export declare const elementDeclarations: {
1226
1229
  };
1227
1230
  };
1228
1231
  }, Partial<{
1232
+ label?: string | undefined;
1229
1233
  marker?: boolean | undefined;
1230
1234
  }>>;
1231
1235
  readonly FocusGroup: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
@@ -2751,6 +2755,116 @@ export declare const elementDeclarations: {
2751
2755
  };
2752
2756
  };
2753
2757
  }, unknown>;
2758
+ readonly Table: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
2759
+ readonly type: "table";
2760
+ readonly sourceType: "table";
2761
+ readonly publishes: {
2762
+ readonly items: "Every row it draws, as its items give them";
2763
+ readonly item: "Inside a row: that row's item";
2764
+ readonly index: "Inside a row: its place, from 0";
2765
+ };
2766
+ readonly content: {
2767
+ readonly attributes: {
2768
+ readonly items: readonly [];
2769
+ readonly caption: "";
2770
+ };
2771
+ readonly definition: {
2772
+ readonly label: "Table";
2773
+ readonly description: string;
2774
+ readonly items: [];
2775
+ readonly styleSelectors: {
2776
+ readonly caption: "";
2777
+ readonly head: "";
2778
+ readonly row: "";
2779
+ };
2780
+ };
2781
+ readonly builder: {
2782
+ readonly itemsAllowed: ["tableColumn"];
2783
+ };
2784
+ readonly market: {
2785
+ readonly category: "structure";
2786
+ readonly icon: "fa-solid fa-table";
2787
+ };
2788
+ readonly defaultStyle: {
2789
+ readonly style: {
2790
+ readonly base: {
2791
+ readonly default: {
2792
+ readonly width: "100%";
2793
+ readonly 'border-collapse': "collapse";
2794
+ readonly 'text-align': "left";
2795
+ };
2796
+ };
2797
+ readonly caption: {
2798
+ readonly default: {
2799
+ readonly 'text-align': "left";
2800
+ readonly 'padding-bottom': "8px";
2801
+ };
2802
+ };
2803
+ readonly head: {
2804
+ readonly default: {
2805
+ readonly 'border-bottom-width': "1px";
2806
+ readonly 'border-bottom-style': "solid";
2807
+ readonly 'border-bottom-color': "currentColor";
2808
+ };
2809
+ };
2810
+ readonly row: {
2811
+ readonly default: {
2812
+ readonly 'border-bottom-width': "1px";
2813
+ readonly 'border-bottom-style': "solid";
2814
+ readonly 'border-bottom-color': "rgba(127, 127, 127, 0.25)";
2815
+ };
2816
+ };
2817
+ };
2818
+ readonly subTypes: {};
2819
+ };
2820
+ };
2821
+ }, Partial<{
2822
+ caption?: string | undefined;
2823
+ items?: unknown[] | undefined;
2824
+ itemKey?: string | undefined;
2825
+ }>>;
2826
+ readonly TableColumn: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
2827
+ readonly type: "tableColumn";
2828
+ readonly ancestorType: "table";
2829
+ readonly content: {
2830
+ readonly attributes: {
2831
+ readonly header: "";
2832
+ readonly rowHeader: false;
2833
+ };
2834
+ readonly definition: {
2835
+ readonly label: "Table Column";
2836
+ readonly description: string;
2837
+ readonly items: [];
2838
+ readonly styleSelectors: {
2839
+ readonly header: "";
2840
+ };
2841
+ };
2842
+ readonly market: {
2843
+ readonly category: "structure";
2844
+ readonly icon: "fa-solid fa-table-columns";
2845
+ };
2846
+ readonly defaultStyle: {
2847
+ readonly style: {
2848
+ readonly base: {
2849
+ readonly default: {
2850
+ readonly padding: "8px 12px";
2851
+ readonly 'vertical-align': "top";
2852
+ };
2853
+ };
2854
+ readonly header: {
2855
+ readonly default: {
2856
+ readonly 'font-weight': "600";
2857
+ readonly 'white-space': "nowrap";
2858
+ };
2859
+ };
2860
+ };
2861
+ readonly subTypes: {};
2862
+ };
2863
+ };
2864
+ }, Partial<{
2865
+ header?: string | undefined;
2866
+ rowHeader?: boolean | undefined;
2867
+ }>>;
2754
2868
  readonly Loading: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
2755
2869
  readonly type: "loading";
2756
2870
  readonly content: {
@@ -4553,7 +4667,7 @@ export declare const elementDeclarations: {
4553
4667
  }>>;
4554
4668
  };
4555
4669
  export type ElementDeclarationName = keyof typeof elementDeclarations;
4556
- export { ApiContainerDeclaration, BlockHtmlDeclaration, BlockJsxDeclaration, ButtonDeclaration, CountdownDeclaration, CarouselDeclaration, CarouselTrackDeclaration, ChannelDeclaration, ContainerDeclaration, CustomDeclaration, DialogContainerDeclaration, DisclosureDeclaration, DisclosureSummaryDeclaration, FocusGroupDeclaration, DropdownDeclaration, DropdownPopupDeclaration, EmbedDeclaration, FontAwesomeDeclaration, FormControlDeclaration, FormDeclaration, HeadingDeclaration, ImageDeclaration, LayoutContainerDeclaration, LinkDeclaration, ListDeclaration, ListItemDeclaration, LoadingDeclaration, MarkdownDeclaration, ModalContainerDeclaration, NodeHtmlDeclaration, NotFoundDeclaration, PageDeclaration, PaginationDeclaration, ParagraphDeclaration, PlitziSdkDeclaration, ReferenceDeclaration, RichTextDeclaration, ChartDeclaration, SvgDeclaration, TabContainerBodyDeclaration, TabContainerDeclaration, TabContainerHeaderDeclaration, TabContainerItemDeclaration, TextDeclaration, ThemeToggleDeclaration, TimeWindowDeclaration, VariantsDeclaration, VariantItemDeclaration, AccountDeclaration, AvatarDeclaration, SignInFormDeclaration, VideoDeclaration };
4670
+ export { ApiContainerDeclaration, BlockHtmlDeclaration, BlockJsxDeclaration, ButtonDeclaration, CountdownDeclaration, CarouselDeclaration, CarouselTrackDeclaration, ChannelDeclaration, ContainerDeclaration, CustomDeclaration, DialogContainerDeclaration, DisclosureDeclaration, DisclosureSummaryDeclaration, FocusGroupDeclaration, DropdownDeclaration, DropdownPopupDeclaration, EmbedDeclaration, FontAwesomeDeclaration, FormControlDeclaration, FormDeclaration, HeadingDeclaration, ImageDeclaration, LayoutContainerDeclaration, LinkDeclaration, ListDeclaration, ListItemDeclaration, TableDeclaration, TableColumnDeclaration, LoadingDeclaration, MarkdownDeclaration, ModalContainerDeclaration, NodeHtmlDeclaration, NotFoundDeclaration, PageDeclaration, PaginationDeclaration, ParagraphDeclaration, PlitziSdkDeclaration, ReferenceDeclaration, RichTextDeclaration, ChartDeclaration, SvgDeclaration, TabContainerBodyDeclaration, TabContainerDeclaration, TabContainerHeaderDeclaration, TabContainerItemDeclaration, TextDeclaration, ThemeToggleDeclaration, TimeWindowDeclaration, VariantsDeclaration, VariantItemDeclaration, AccountDeclaration, AvatarDeclaration, SignInFormDeclaration, VideoDeclaration };
4557
4671
  /**
4558
4672
  * Each type's `serverTemplates`, by the type a document names: the attributes the page server evaluates against a
4559
4673
  * context of its own, which the element runtime leaves as written and the authoring lint holds to that context.
@@ -44,17 +44,19 @@ import V from "../structure/TabContainer/declaration.mjs";
44
44
  import H from "../structure/TabContainer/TabContainerBody/declaration.mjs";
45
45
  import U from "../structure/TabContainer/TabContainerHeader/declaration.mjs";
46
46
  import W from "../structure/TabContainer/TabContainerItem/declaration.mjs";
47
- import G from "../structure/TimeWindow/declaration.mjs";
48
- import K from "../structure/Variants/declaration.mjs";
49
- import q from "../structure/Variants/VariantItem/declaration.mjs";
50
- import J from "../user/Account/declaration.mjs";
51
- import Y from "../user/Avatar/declaration.mjs";
52
- import X from "../user/SignInForm/declaration.mjs";
47
+ import G from "../structure/Table/declaration.mjs";
48
+ import K from "../structure/Table/TableColumn/declaration.mjs";
49
+ import q from "../structure/TimeWindow/declaration.mjs";
50
+ import J from "../structure/Variants/declaration.mjs";
51
+ import Y from "../structure/Variants/VariantItem/declaration.mjs";
52
+ import X from "../user/Account/declaration.mjs";
53
+ import Z from "../user/Avatar/declaration.mjs";
54
+ import Q from "../user/SignInForm/declaration.mjs";
53
55
  import { interactionBasicTriggers as ie } from "../../Element/helpers/elementConstants.mjs";
54
56
  import { HTML_TAG_PARTS as ae } from "../basic/RichText/classHtmlParts.mjs";
55
57
  import { isSvgMarkup as oe } from "../media/Svg/sanitizeSvg.mjs";
56
58
  // src/elements/declarations/index.ts
57
- var Z = {
59
+ var $ = {
58
60
  ApiContainer: ne,
59
61
  BlockHtml: e,
60
62
  BlockJsx: t,
@@ -81,6 +83,8 @@ var Z = {
81
83
  Link: d,
82
84
  List: L,
83
85
  ListItem: R,
86
+ Table: G,
87
+ TableColumn: K,
84
88
  Loading: b,
85
89
  Markdown: f,
86
90
  ModalContainer: z,
@@ -100,12 +104,12 @@ var Z = {
100
104
  TabContainerItem: W,
101
105
  Text: h,
102
106
  ThemeToggle: g,
103
- TimeWindow: G,
104
- Variants: K,
105
- VariantItem: q,
106
- Account: J,
107
- Avatar: Y,
108
- SignInForm: X,
107
+ TimeWindow: q,
108
+ Variants: J,
109
+ VariantItem: Y,
110
+ Account: X,
111
+ Avatar: Z,
112
+ SignInForm: Q,
109
113
  Video: O
110
- }, se = Object.fromEntries(Object.values(Z).flatMap((e) => "serverTemplates" in e ? [[e.type, e.serverTemplates]] : [])), Q = Object.fromEntries(Object.values(Z).flatMap((e) => "contentAttributes" in e ? [[e.type, e.contentAttributes]] : [])), ce = (e) => Q[e] ?? [], $ = Object.fromEntries(Object.values(Z).flatMap((e) => "ancestorType" in e ? [[e.type, e.ancestorType]] : [])), le = (e) => $[e];
111
- export { J as AccountDeclaration, ne as ApiContainerDeclaration, Y as AvatarDeclaration, e as BlockHtmlDeclaration, t as BlockJsxDeclaration, o as ButtonDeclaration, j as CarouselDeclaration, A as CarouselTrackDeclaration, k as ChannelDeclaration, C as ChartDeclaration, M as ContainerDeclaration, s as CountdownDeclaration, n as CustomDeclaration, ee as DOCUMENT_SCROLLS, N as DialogContainerDeclaration, P as DisclosureDeclaration, F as DisclosureSummaryDeclaration, c as DropdownDeclaration, l as DropdownPopupDeclaration, w as EmbedDeclaration, I as FocusGroupDeclaration, T as FontAwesomeDeclaration, v as FormControlDeclaration, _ as FormDeclaration, ae as HTML_TAG_PARTS, u as HeadingDeclaration, E as ImageDeclaration, y as LayoutContainerDeclaration, d as LinkDeclaration, L as ListDeclaration, R as ListItemDeclaration, b as LoadingDeclaration, f as MarkdownDeclaration, z as ModalContainerDeclaration, re as NAMEABLE_CONTAINER_TAGS, r as NodeHtmlDeclaration, x as NotFoundDeclaration, S as PageDeclaration, B as PaginationDeclaration, p as ParagraphDeclaration, i as PlitziSdkDeclaration, a as ReferenceDeclaration, m as RichTextDeclaration, X as SignInFormDeclaration, D as SvgDeclaration, H as TabContainerBodyDeclaration, V as TabContainerDeclaration, U as TabContainerHeaderDeclaration, W as TabContainerItemDeclaration, h as TextDeclaration, g as ThemeToggleDeclaration, G as TimeWindowDeclaration, q as VariantItemDeclaration, K as VariantsDeclaration, O as VideoDeclaration, $ as ancestorTypeByType, le as ancestorTypeOf, Q as contentAttributesByType, ce as contentAttributesOf, Z as elementDeclarations, ie as interactionBasicTriggers, te as isDocumentScroll, oe as isSvgMarkup, se as serverTemplatesByType };
114
+ }, se = Object.fromEntries(Object.values($).flatMap((e) => "serverTemplates" in e ? [[e.type, e.serverTemplates]] : [])), ce = Object.fromEntries(Object.values($).flatMap((e) => "contentAttributes" in e ? [[e.type, e.contentAttributes]] : [])), le = (e) => ce[e] ?? [], ue = Object.fromEntries(Object.values($).flatMap((e) => "ancestorType" in e ? [[e.type, e.ancestorType]] : [])), de = (e) => ue[e];
115
+ export { X as AccountDeclaration, ne as ApiContainerDeclaration, Z as AvatarDeclaration, e as BlockHtmlDeclaration, t as BlockJsxDeclaration, o as ButtonDeclaration, j as CarouselDeclaration, A as CarouselTrackDeclaration, k as ChannelDeclaration, C as ChartDeclaration, M as ContainerDeclaration, s as CountdownDeclaration, n as CustomDeclaration, ee as DOCUMENT_SCROLLS, N as DialogContainerDeclaration, P as DisclosureDeclaration, F as DisclosureSummaryDeclaration, c as DropdownDeclaration, l as DropdownPopupDeclaration, w as EmbedDeclaration, I as FocusGroupDeclaration, T as FontAwesomeDeclaration, v as FormControlDeclaration, _ as FormDeclaration, ae as HTML_TAG_PARTS, u as HeadingDeclaration, E as ImageDeclaration, y as LayoutContainerDeclaration, d as LinkDeclaration, L as ListDeclaration, R as ListItemDeclaration, b as LoadingDeclaration, f as MarkdownDeclaration, z as ModalContainerDeclaration, re as NAMEABLE_CONTAINER_TAGS, r as NodeHtmlDeclaration, x as NotFoundDeclaration, S as PageDeclaration, B as PaginationDeclaration, p as ParagraphDeclaration, i as PlitziSdkDeclaration, a as ReferenceDeclaration, m as RichTextDeclaration, Q as SignInFormDeclaration, D as SvgDeclaration, H as TabContainerBodyDeclaration, V as TabContainerDeclaration, U as TabContainerHeaderDeclaration, W as TabContainerItemDeclaration, K as TableColumnDeclaration, G as TableDeclaration, h as TextDeclaration, g as ThemeToggleDeclaration, q as TimeWindowDeclaration, Y as VariantItemDeclaration, J as VariantsDeclaration, O as VideoDeclaration, ue as ancestorTypeByType, de as ancestorTypeOf, ce as contentAttributesByType, le as contentAttributesOf, $ as elementDeclarations, ie as interactionBasicTriggers, te as isDocumentScroll, oe as isSvgMarkup, se as serverTemplatesByType };
@@ -36,6 +36,7 @@ import { default as List } from './structure/List';
36
36
  import { default as ModalContainer } from './structure/ModalContainer';
37
37
  import { default as Pagination } from './structure/Pagination';
38
38
  import { default as TabContainer } from './structure/TabContainer';
39
+ import { default as Table } from './structure/Table';
39
40
  import { default as TimeWindow } from './structure/TimeWindow';
40
41
  import { default as Variants } from './structure/Variants';
41
42
  import { default as Account } from './user/Account';
@@ -74,6 +75,7 @@ export * from './structure/DialogContainer';
74
75
  export * from './structure/Disclosure';
75
76
  export * from './structure/FocusGroup';
76
77
  export * from './structure/List';
78
+ export * from './structure/Table';
77
79
  export * from './structure/ModalContainer';
78
80
  export * from './structure/Pagination';
79
81
  export * from './structure/Carousel';
@@ -83,4 +85,4 @@ export * from './structure/Variants';
83
85
  export * from './user/Account';
84
86
  export * from './user/Avatar';
85
87
  export * from './user/SignInForm';
86
- export { NodeHtml, Dropdown, NotFound, Loading, Custom, Reference, BlockHtml, BlockJsx, Page, Container, FocusGroup, LayoutContainer, DialogContainer, Disclosure, ModalContainer, TabContainer, TimeWindow, Variants, Account, Avatar, SignInForm, Carousel, Heading, Image, Video, Embed, Chart, Svg, FontAwesome, Button, Countdown, Paragraph, RichText, Text, ThemeToggle, List, Link, Markdown, Pagination, Form, FormControl, ApiContainer, Channel };
88
+ export { NodeHtml, Dropdown, NotFound, Loading, Custom, Reference, BlockHtml, BlockJsx, Page, Container, FocusGroup, LayoutContainer, DialogContainer, Disclosure, ModalContainer, TabContainer, TimeWindow, Variants, Account, Avatar, SignInForm, Carousel, Heading, Image, Video, Embed, Chart, Svg, FontAwesome, Button, Countdown, Paragraph, RichText, Text, ThemeToggle, List, Table, Link, Markdown, Pagination, Form, FormControl, ApiContainer, Channel };
@@ -37,16 +37,17 @@ import F from "./structure/List/index.mjs";
37
37
  import I from "./structure/ModalContainer/index.mjs";
38
38
  import L from "./structure/Pagination/index.mjs";
39
39
  import R from "./structure/TabContainer/index.mjs";
40
- import z from "./structure/TimeWindow/index.mjs";
41
- import B from "./structure/Variants/index.mjs";
42
- import V from "./user/Account/index.mjs";
43
- import H from "./user/Avatar/index.mjs";
44
- import U from "./user/SignInForm/index.mjs";
40
+ import z from "./structure/Table/index.mjs";
41
+ import B from "./structure/TimeWindow/index.mjs";
42
+ import V from "./structure/Variants/index.mjs";
43
+ import H from "./user/Account/index.mjs";
44
+ import U from "./user/Avatar/index.mjs";
45
+ import W from "./user/SignInForm/index.mjs";
45
46
  // src/elements/index.ts
46
- var W = /* @__PURE__ */ e({
47
- Account: () => V,
47
+ var G = /* @__PURE__ */ e({
48
+ Account: () => H,
48
49
  ApiContainer: () => O,
49
- Avatar: () => H,
50
+ Avatar: () => U,
50
51
  BlockHtml: () => t,
51
52
  BlockJsx: () => n,
52
53
  Button: () => o,
@@ -79,13 +80,14 @@ var W = /* @__PURE__ */ e({
79
80
  Paragraph: () => f,
80
81
  Reference: () => a,
81
82
  RichText: () => p,
82
- SignInForm: () => U,
83
+ SignInForm: () => W,
83
84
  Svg: () => E,
84
85
  TabContainer: () => R,
86
+ Table: () => z,
85
87
  Text: () => m,
86
88
  ThemeToggle: () => h,
87
- TimeWindow: () => z,
88
- Variants: () => B,
89
+ TimeWindow: () => B,
90
+ Variants: () => V,
89
91
  Video: () => D
90
92
  });
91
- export { V as Account, O as ApiContainer, H as Avatar, t as BlockHtml, n as BlockJsx, o as Button, A as Carousel, k as Channel, S as Chart, j as Container, s as Countdown, r as Custom, M as DialogContainer, N as Disclosure, c as Dropdown, C as Embed, P as FocusGroup, w as FontAwesome, g as Form, _ as FormControl, l as Heading, T as Image, v as LayoutContainer, u as Link, F as List, y as Loading, d as Markdown, I as ModalContainer, i as NodeHtml, b as NotFound, x as Page, L as Pagination, f as Paragraph, a as Reference, p as RichText, U as SignInForm, E as Svg, R as TabContainer, m as Text, h as ThemeToggle, z as TimeWindow, B as Variants, D as Video, W as elements_exports };
93
+ export { H as Account, O as ApiContainer, U as Avatar, t as BlockHtml, n as BlockJsx, o as Button, A as Carousel, k as Channel, S as Chart, j as Container, s as Countdown, r as Custom, M as DialogContainer, N as Disclosure, c as Dropdown, C as Embed, P as FocusGroup, w as FontAwesome, g as Form, _ as FormControl, l as Heading, T as Image, v as LayoutContainer, u as Link, F as List, y as Loading, d as Markdown, I as ModalContainer, i as NodeHtml, b as NotFound, x as Page, L as Pagination, f as Paragraph, a as Reference, p as RichText, W as SignInForm, E as Svg, R as TabContainer, z as Table, m as Text, h as ThemeToggle, B as TimeWindow, V as Variants, D as Video, G as elements_exports };
@@ -44,14 +44,16 @@ import H from "./structure/TabContainer/Settings.mjs";
44
44
  import U from "./structure/TabContainer/TabContainerBody/Settings.mjs";
45
45
  import W from "./structure/TabContainer/TabContainerHeader/Settings.mjs";
46
46
  import G from "./structure/TabContainer/TabContainerItem/Settings.mjs";
47
- import K from "./structure/TimeWindow/Settings.mjs";
48
- import q from "./structure/Variants/Settings.mjs";
49
- import J from "./structure/Variants/VariantItem/Settings.mjs";
50
- import Y from "./user/Account/Settings.mjs";
51
- import X from "./user/Avatar/Settings.mjs";
52
- import Z from "./user/SignInForm/Settings.mjs";
47
+ import K from "./structure/Table/Settings.mjs";
48
+ import q from "./structure/Table/TableColumn/Settings.mjs";
49
+ import J from "./structure/TimeWindow/Settings.mjs";
50
+ import Y from "./structure/Variants/Settings.mjs";
51
+ import X from "./structure/Variants/VariantItem/Settings.mjs";
52
+ import Z from "./user/Account/Settings.mjs";
53
+ import Q from "./user/Avatar/Settings.mjs";
54
+ import $ from "./user/SignInForm/Settings.mjs";
53
55
  // src/elements/settings.ts
54
- var Q = {
56
+ var ee = {
55
57
  dropdown: l,
56
58
  dropdownPopup: c,
57
59
  plitziSdk: i,
@@ -75,12 +77,12 @@ var Q = {
75
77
  tabContainerBody: U,
76
78
  tabContainerHeader: W,
77
79
  tabContainerItem: G,
78
- timeWindow: K,
79
- variants: q,
80
- variantItem: J,
81
- account: Y,
82
- avatar: X,
83
- signInForm: Z,
80
+ timeWindow: J,
81
+ variants: Y,
82
+ variantItem: X,
83
+ account: Z,
84
+ avatar: Q,
85
+ signInForm: $,
84
86
  heading: u,
85
87
  image: E,
86
88
  video: O,
@@ -99,10 +101,12 @@ var Q = {
99
101
  nodeHtml: r,
100
102
  list: z,
101
103
  listItem: R,
104
+ table: K,
105
+ tableColumn: q,
102
106
  link: d,
103
107
  form: _,
104
108
  formControl: v,
105
109
  apiContainer: k,
106
110
  channel: A
107
111
  };
108
- export { Q as defaultElementsSettings };
112
+ export { ee as defaultElementsSettings };
@@ -8,9 +8,14 @@ export type DisclosureSummaryProps = {
8
8
  * it, turned by the parent's `expanded` state.
9
9
  */
10
10
  marker?: boolean;
11
+ /**
12
+ * Its name for a screen reader and a browser agent when its words do not say it — a menu's burger, an icon alone
13
+ * (`aria-label` on the `<summary>`). Words inside it name it already.
14
+ */
15
+ label?: string;
11
16
  };
12
17
  /** What is pressed to open a disclosure and close it: its `<summary>`, whose text is the control's name. */
13
- declare const DisclosureSummary: ({ ref, className, children, marker }: DisclosureSummaryProps) => import('react').JSX.Element;
18
+ declare const DisclosureSummary: ({ ref, className, children, marker, label }: DisclosureSummaryProps) => import('react').JSX.Element;
14
19
  declare const _default: import('react').FC<import('../../../..').WithElementProps<DisclosureSummaryProps>>;
15
20
  export default _default;
16
21
  export { DisclosureSummary };
@@ -4,14 +4,15 @@ import { RootElement as n } from "../../../../Element/RootElement.mjs";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import a from "clsx";
6
6
  // src/elements/structure/Disclosure/DisclosureSummary/DisclosureSummary.tsx
7
- var o = ({ ref: e, className: o = "", children: s, marker: c = !0 }) => {
8
- let { definition: { styleSelectors: l } } = t();
7
+ var o = ({ ref: e, className: o = "", children: s, marker: c = !0, label: l = "" }) => {
8
+ let { definition: { styleSelectors: u } } = t();
9
9
  return /* @__PURE__ */ i(n, {
10
10
  tag: "summary",
11
11
  ref: e,
12
12
  className: a("plitzi-component__disclosure-summary", o),
13
+ ...l ? { "aria-label": l } : {},
13
14
  children: [s, c && /* @__PURE__ */ r("span", {
14
- className: a("plitzi-component__disclosure-marker", l.marker),
15
+ className: a("plitzi-component__disclosure-marker", u.marker),
15
16
  "aria-hidden": "true"
16
17
  })]
17
18
  });
@@ -1,7 +1,8 @@
1
1
  type SettingsProps = {
2
2
  marker?: boolean;
3
+ label?: string;
3
4
  onUpdate?: (key: string, value: string | boolean | number) => void;
4
5
  };
5
- /** A disclosure summary's settings: whether it draws the sign that turns as the disclosure opens. */
6
- declare const Settings: ({ marker, onUpdate }: SettingsProps) => import('react').JSX.Element;
6
+ /** A disclosure summary's settings: whether it draws the sign that turns as it opens, and its name when an icon alone. */
7
+ declare const Settings: ({ marker, label, onUpdate }: SettingsProps) => import('react').JSX.Element;
7
8
  export default Settings;
@@ -1,20 +1,31 @@
1
1
  import e from "../../../useSettingsUpdate.mjs";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import r from "@plitzi/plitzi-ui/Checkbox";
4
+ import i from "@plitzi/plitzi-ui/Input";
4
5
  // src/elements/structure/Disclosure/DisclosureSummary/Settings.tsx
5
- var i = ({ marker: i = !0, onUpdate: a }) => {
6
- let o = e(a);
6
+ var a = ({ marker: a = !0, label: o = "", onUpdate: s }) => {
7
+ let c = e(s);
7
8
  return /* @__PURE__ */ n("div", {
8
9
  className: "flex flex-col gap-4 py-2",
9
- children: [/* @__PURE__ */ t(r, {
10
- label: "Marker",
11
- size: "xs",
12
- checked: i,
13
- onChange: o.checked("marker")
14
- }), /* @__PURE__ */ t("span", {
15
- className: "text-ui-fg-subtle text-xs",
16
- children: "The sign at the end that turns as it opens; its look is the Marker slot. Off, put a sign of your own inside and turn it with the summary’s Expanded state."
17
- })]
10
+ children: [
11
+ /* @__PURE__ */ t(r, {
12
+ label: "Marker",
13
+ size: "xs",
14
+ checked: a,
15
+ onChange: c.checked("marker")
16
+ }),
17
+ /* @__PURE__ */ t("span", {
18
+ className: "text-ui-fg-subtle text-xs",
19
+ children: "The sign at the end that turns as it opens; its look is the Marker slot. Off, put a sign of your own inside and turn it with the summary’s Expanded state."
20
+ }),
21
+ /* @__PURE__ */ t(i, {
22
+ value: o,
23
+ label: "Accessible Name",
24
+ placeholder: "For an icon alone: a menu’s burger",
25
+ onChange: c.text("label"),
26
+ size: "sm"
27
+ })
28
+ ]
18
29
  });
19
30
  };
20
- export { i as default };
31
+ export { a as default };
@@ -8,6 +8,7 @@ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElemen
8
8
  readonly content: {
9
9
  readonly attributes: {
10
10
  readonly marker: true;
11
+ readonly label: "";
11
12
  };
12
13
  readonly definition: {
13
14
  readonly label: "Disclosure Summary";
@@ -54,6 +55,7 @@ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElemen
54
55
  };
55
56
  };
56
57
  }, Partial<{
58
+ label?: string | undefined;
57
59
  marker?: boolean | undefined;
58
60
  }>>;
59
61
  export default declaration;
@@ -4,10 +4,13 @@ var t = e()({
4
4
  type: "disclosureSummary",
5
5
  ancestorType: "disclosure",
6
6
  content: {
7
- attributes: { marker: !0 },
7
+ attributes: {
8
+ marker: !0,
9
+ label: ""
10
+ },
8
11
  definition: {
9
12
  label: "Disclosure Summary",
10
- description: "What is pressed to open and close a disclosure — its first child, and its name for a screen reader: a text or a heading in it, never a button or a link (it is the control itself). Its `marker` is the sign at its end that turns as the disclosure opens (the `marker` slot styles it); off, for a sign of its own.",
13
+ description: "What is pressed to open and close a disclosure — its first child, and its name for a screen reader: a text or a heading in it, never a button or a link (it is the control itself), or its `label` when it holds an icon alone (a menu’s burger). Its `marker` is the sign at its end that turns as the disclosure opens (the `marker` slot styles it); off, for a sign of its own.",
11
14
  items: [],
12
15
  styleSelectors: { marker: "" }
13
16
  },
@@ -4,6 +4,7 @@ declare const DisclosureSummary: import('react').FC<import('../../../..').WithEl
4
4
  readonly content: {
5
5
  readonly attributes: {
6
6
  readonly marker: true;
7
+ readonly label: "";
7
8
  };
8
9
  readonly definition: {
9
10
  readonly label: "Disclosure Summary";
@@ -52,6 +53,7 @@ declare const DisclosureSummary: import('react').FC<import('../../../..').WithEl
52
53
  } & {
53
54
  content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
54
55
  } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
56
+ label?: string | undefined;
55
57
  marker?: boolean | undefined;
56
58
  }>>;
57
59
  export default DisclosureSummary;
@@ -6,6 +6,7 @@ declare const Disclosure: import('react').FC<import('../../..').WithElementProps
6
6
  readonly content: {
7
7
  readonly attributes: {
8
8
  readonly marker: true;
9
+ readonly label: "";
9
10
  };
10
11
  readonly definition: {
11
12
  readonly label: "Disclosure Summary";
@@ -54,6 +55,7 @@ declare const Disclosure: import('react').FC<import('../../..').WithElementProps
54
55
  } & {
55
56
  content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
56
57
  } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
58
+ label?: string | undefined;
57
59
  marker?: boolean | undefined;
58
60
  }>>;
59
61
  };
@@ -0,0 +1,8 @@
1
+ type SettingsProps = {
2
+ caption?: string;
3
+ itemKey?: string;
4
+ onUpdate?: (key: string, value: string | boolean | number) => void;
5
+ };
6
+ /** A table's settings: what it is (its caption) and the field that names each row. Its rows come from its items. */
7
+ declare const Settings: ({ caption, itemKey, onUpdate }: SettingsProps) => import('react').JSX.Element;
8
+ export default Settings;
@@ -0,0 +1,25 @@
1
+ import e from "../../useSettingsUpdate.mjs";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import r from "@plitzi/plitzi-ui/Input";
4
+ // src/elements/structure/Table/Settings.tsx
5
+ var i = ({ caption: i = "", itemKey: a = "", onUpdate: o }) => {
6
+ let s = e(o);
7
+ return /* @__PURE__ */ n("div", {
8
+ className: "flex flex-col gap-4 py-2",
9
+ children: [/* @__PURE__ */ t(r, {
10
+ value: i,
11
+ label: "Caption",
12
+ placeholder: "e.g. Plans compared, Leads this week",
13
+ onChange: s.text("caption"),
14
+ size: "xs"
15
+ }), /* @__PURE__ */ t(r, {
16
+ label: "Row key",
17
+ size: "xs",
18
+ placeholder: "id",
19
+ value: a,
20
+ title: "The field of each item that names it, so a row stays with its item when the table is filtered.",
21
+ onChange: s.text("itemKey")
22
+ })]
23
+ });
24
+ };
25
+ export { i as default };
@@ -0,0 +1,25 @@
1
+ import { ReactNode, RefObject } from 'react';
2
+ export type TableProps<T = unknown> = {
3
+ ref?: RefObject<HTMLElement>;
4
+ className?: string;
5
+ /** Its columns: `tableColumn` elements, each a header and the cell every row draws. */
6
+ children?: ReactNode;
7
+ /** Its rows, one an item: written out, or bound to a source. */
8
+ items?: T[];
9
+ /**
10
+ * The field of each item that names it — `'slug'`, `'sku'` — so a row stays with its item when the items are
11
+ * filtered or reordered. Left out: the item's `id`, else its position.
12
+ */
13
+ itemKey?: string;
14
+ /** What the table is, said before it by a screen reader and drawn above it (`<caption>`). */
15
+ caption?: string;
16
+ };
17
+ /**
18
+ * A table of data: a `<table>` whose head is each column's header (`<th scope="col">`) and whose rows are its items, each
19
+ * column drawing that row's cell — read as a table by a screen reader and a search engine, which a grid of rows is not.
20
+ * A column shown or hidden (its `visible`) is gone from the head and every row at once.
21
+ */
22
+ declare const Table: ({ ref, className, children, items, itemKey, caption }: TableProps) => import('react').JSX.Element;
23
+ declare const _default: import('react').FC<import('../../..').WithElementProps<TableProps<unknown>>>;
24
+ export default _default;
25
+ export { Table };