@guardian/stand 0.0.69 → 0.0.71

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 (47) hide show
  1. package/dist/Table.cjs +10 -0
  2. package/dist/Table.d.cts +5 -0
  3. package/dist/Table.d.ts +5 -0
  4. package/dist/Table.js +3 -0
  5. package/dist/TextInput.d.cts +2 -2
  6. package/dist/TextInput.d.ts +2 -2
  7. package/dist/TextListInput.cjs +5 -0
  8. package/dist/TextListInput.d.cts +5 -0
  9. package/dist/TextListInput.d.ts +5 -0
  10. package/dist/TextListInput.js +3 -0
  11. package/dist/components/Table/Table.cjs +80 -0
  12. package/dist/components/Table/Table.d.cts +10 -0
  13. package/dist/components/Table/Table.d.ts +10 -0
  14. package/dist/components/Table/Table.js +75 -0
  15. package/dist/components/Table/styles.cjs +133 -0
  16. package/dist/components/Table/styles.d.cts +8 -0
  17. package/dist/components/Table/styles.d.ts +8 -0
  18. package/dist/components/Table/styles.js +126 -0
  19. package/dist/components/Table/types.d.cts +27 -0
  20. package/dist/components/Table/types.d.ts +27 -0
  21. package/dist/components/TextInput/styles.d.cts +3 -2
  22. package/dist/components/TextInput/styles.d.ts +3 -2
  23. package/dist/components/TextListInput/TextListInput.cjs +81 -0
  24. package/dist/components/TextListInput/TextListInput.d.cts +5 -0
  25. package/dist/components/TextListInput/TextListInput.d.ts +5 -0
  26. package/dist/components/TextListInput/TextListInput.js +81 -0
  27. package/dist/components/TextListInput/styles.cjs +28 -0
  28. package/dist/components/TextListInput/styles.d.cts +8 -0
  29. package/dist/components/TextListInput/styles.d.ts +8 -0
  30. package/dist/components/TextListInput/styles.js +25 -0
  31. package/dist/components/TextListInput/types.d.cts +33 -0
  32. package/dist/components/TextListInput/types.d.ts +33 -0
  33. package/dist/index.cjs +4 -0
  34. package/dist/index.d.cts +3 -1
  35. package/dist/index.d.ts +3 -1
  36. package/dist/index.js +3 -1
  37. package/dist/styleD/build/css/component/table.css +33 -0
  38. package/dist/styleD/build/css/component/textListInput.css +15 -0
  39. package/dist/styleD/build/typescript/component/table.cjs +51 -0
  40. package/dist/styleD/build/typescript/component/table.d.cts +54 -0
  41. package/dist/styleD/build/typescript/component/table.d.ts +54 -0
  42. package/dist/styleD/build/typescript/component/table.js +51 -0
  43. package/dist/styleD/build/typescript/component/textListInput.cjs +22 -0
  44. package/dist/styleD/build/typescript/component/textListInput.d.cts +25 -0
  45. package/dist/styleD/build/typescript/component/textListInput.d.ts +25 -0
  46. package/dist/styleD/build/typescript/component/textListInput.js +22 -0
  47. package/package.json +30 -2
@@ -0,0 +1,81 @@
1
+ const require_mergeDeep = require("../../util/mergeDeep.cjs");
2
+ const require_IconButton = require("../IconButton/IconButton.cjs");
3
+ const require_Badge = require("../Badge/Badge.cjs");
4
+ const require_Button = require("../Button/Button.cjs");
5
+ const require_InlineMessage = require("../InlineMessage/InlineMessage.cjs");
6
+ const require_TextInput = require("../TextInput/TextInput.cjs");
7
+ const require_styles = require("./styles.cjs");
8
+ let react = require("react");
9
+ let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
10
+ //#region src/components/TextListInput/TextListInput.tsx
11
+ const TextListInput = ({ label, size = "md", placeholder, initialData = [], errorMessage, onChange, theme = {}, cssOverrides, className }) => {
12
+ const [textListItems, setTextListItems] = (0, react.useState)(initialData);
13
+ const addItem = () => {
14
+ const newItems = [...textListItems, ""];
15
+ setTextListItems(newItems);
16
+ onChange(newItems);
17
+ };
18
+ const removeItem = (index) => {
19
+ const newItems = [...textListItems];
20
+ newItems.splice(index, 1);
21
+ setTextListItems(newItems);
22
+ onChange(newItems);
23
+ };
24
+ const updateValue = (index, value) => {
25
+ const newItems = [...textListItems];
26
+ newItems[index] = value;
27
+ setTextListItems(newItems);
28
+ onChange(newItems);
29
+ };
30
+ const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultTextListInputTheme, theme);
31
+ return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("fieldset", {
32
+ css: cssOverrides,
33
+ className,
34
+ children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("legend", {
35
+ css: require_styles.labelStyles(mergedTheme),
36
+ children: [label, textListItems.length > 0 && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)(require_Badge.Badge, {
37
+ color: "grey",
38
+ size: "xs",
39
+ children: [
40
+ textListItems.length,
41
+ " item",
42
+ textListItems.length > 1 ? "s" : ""
43
+ ]
44
+ })]
45
+ }), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("div", {
46
+ css: require_styles.columnStyles(mergedTheme),
47
+ children: [
48
+ textListItems.map((item, index) => /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("div", {
49
+ css: require_styles.rowStyles(mergedTheme),
50
+ children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_TextInput.TextInput, {
51
+ value: item,
52
+ size,
53
+ placeholder,
54
+ "aria-label": `${label} item`,
55
+ onChange: (value) => updateValue(index, value),
56
+ theme: { shared: { marginTop: "0" } }
57
+ }), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_IconButton.IconButton, {
58
+ variant: "tertiary",
59
+ size,
60
+ ariaLabel: "Remove item",
61
+ onClick: () => removeItem(index),
62
+ children: "remove"
63
+ })]
64
+ }, index)),
65
+ errorMessage && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_InlineMessage.InlineMessage, {
66
+ level: "error",
67
+ children: errorMessage
68
+ }),
69
+ /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Button.Button, {
70
+ variant: "tertiary",
71
+ size: "xs",
72
+ icon: "add",
73
+ onClick: addItem,
74
+ children: "Add new item"
75
+ }) })
76
+ ]
77
+ })]
78
+ });
79
+ };
80
+ //#endregion
81
+ exports.TextListInput = TextListInput;
@@ -0,0 +1,5 @@
1
+ import { TextListInputProps } from "./types.cjs";
2
+ //#region src/components/TextListInput/TextListInput.d.ts
3
+ declare const TextListInput: ({ label, size, placeholder, initialData, errorMessage, onChange, theme, cssOverrides, className }: TextListInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
4
+ //#endregion
5
+ export { TextListInput };
@@ -0,0 +1,5 @@
1
+ import { TextListInputProps } from "./types.js";
2
+ //#region src/components/TextListInput/TextListInput.d.ts
3
+ declare const TextListInput: ({ label, size, placeholder, initialData, errorMessage, onChange, theme, cssOverrides, className }: TextListInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
4
+ //#endregion
5
+ export { TextListInput };
@@ -0,0 +1,81 @@
1
+ import { mergeDeep } from "../../util/mergeDeep.js";
2
+ import { IconButton } from "../IconButton/IconButton.js";
3
+ import { Badge } from "../Badge/Badge.js";
4
+ import { Button } from "../Button/Button.js";
5
+ import { InlineMessage } from "../InlineMessage/InlineMessage.js";
6
+ import { TextInput } from "../TextInput/TextInput.js";
7
+ import { columnStyles, defaultTextListInputTheme, labelStyles, rowStyles } from "./styles.js";
8
+ import { useState } from "react";
9
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
10
+ //#region src/components/TextListInput/TextListInput.tsx
11
+ const TextListInput = ({ label, size = "md", placeholder, initialData = [], errorMessage, onChange, theme = {}, cssOverrides, className }) => {
12
+ const [textListItems, setTextListItems] = useState(initialData);
13
+ const addItem = () => {
14
+ const newItems = [...textListItems, ""];
15
+ setTextListItems(newItems);
16
+ onChange(newItems);
17
+ };
18
+ const removeItem = (index) => {
19
+ const newItems = [...textListItems];
20
+ newItems.splice(index, 1);
21
+ setTextListItems(newItems);
22
+ onChange(newItems);
23
+ };
24
+ const updateValue = (index, value) => {
25
+ const newItems = [...textListItems];
26
+ newItems[index] = value;
27
+ setTextListItems(newItems);
28
+ onChange(newItems);
29
+ };
30
+ const mergedTheme = mergeDeep(defaultTextListInputTheme, theme);
31
+ return /* @__PURE__ */ jsxs("fieldset", {
32
+ css: cssOverrides,
33
+ className,
34
+ children: [/* @__PURE__ */ jsxs("legend", {
35
+ css: labelStyles(mergedTheme),
36
+ children: [label, textListItems.length > 0 && /* @__PURE__ */ jsxs(Badge, {
37
+ color: "grey",
38
+ size: "xs",
39
+ children: [
40
+ textListItems.length,
41
+ " item",
42
+ textListItems.length > 1 ? "s" : ""
43
+ ]
44
+ })]
45
+ }), /* @__PURE__ */ jsxs("div", {
46
+ css: columnStyles(mergedTheme),
47
+ children: [
48
+ textListItems.map((item, index) => /* @__PURE__ */ jsxs("div", {
49
+ css: rowStyles(mergedTheme),
50
+ children: [/* @__PURE__ */ jsx(TextInput, {
51
+ value: item,
52
+ size,
53
+ placeholder,
54
+ "aria-label": `${label} item`,
55
+ onChange: (value) => updateValue(index, value),
56
+ theme: { shared: { marginTop: "0" } }
57
+ }), /* @__PURE__ */ jsx(IconButton, {
58
+ variant: "tertiary",
59
+ size,
60
+ ariaLabel: "Remove item",
61
+ onClick: () => removeItem(index),
62
+ children: "remove"
63
+ })]
64
+ }, index)),
65
+ errorMessage && /* @__PURE__ */ jsx(InlineMessage, {
66
+ level: "error",
67
+ children: errorMessage
68
+ }),
69
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, {
70
+ variant: "tertiary",
71
+ size: "xs",
72
+ icon: "add",
73
+ onClick: addItem,
74
+ children: "Add new item"
75
+ }) })
76
+ ]
77
+ })]
78
+ });
79
+ };
80
+ //#endregion
81
+ export { TextListInput };
@@ -0,0 +1,28 @@
1
+ const require_typography = require("../../styleD/utils/semantic/typography.cjs");
2
+ const require_textListInput = require("../../styleD/build/typescript/component/textListInput.cjs");
3
+ let _emotion_react = require("@emotion/react");
4
+ //#region src/components/TextListInput/styles.ts
5
+ const defaultTextListInputTheme = require_textListInput.componentTextListInput;
6
+ const labelStyles = (theme) => _emotion_react.css`
7
+ display: flex;
8
+ align-items: center;
9
+ gap: ${theme.label.gap};
10
+ color: ${theme.label.color};
11
+ ${require_typography.convertTypographyToEmotionStringStyle(theme.label.typography)}
12
+ `;
13
+ const columnStyles = (theme) => _emotion_react.css`
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: ${theme.column.gap};
17
+ margin-top: ${theme.column.marginTop};
18
+ `;
19
+ const rowStyles = (theme) => _emotion_react.css`
20
+ display: flex;
21
+ align-items: flex-start;
22
+ gap: ${theme.row.gap};
23
+ `;
24
+ //#endregion
25
+ exports.columnStyles = columnStyles;
26
+ exports.defaultTextListInputTheme = defaultTextListInputTheme;
27
+ exports.labelStyles = labelStyles;
28
+ exports.rowStyles = rowStyles;
@@ -0,0 +1,8 @@
1
+ import { DeepPartial, Prettify } from "../../util/types.cjs";
2
+ import { ComponentTextListInput } from "../../styleD/build/typescript/component/textListInput.cjs";
3
+ import { SerializedStyles } from "@emotion/react";
4
+ //#region src/components/TextListInput/styles.d.ts
5
+ type TextListInputTheme = Prettify<ComponentTextListInput>;
6
+ type PartialTextListInputTheme = Prettify<DeepPartial<TextListInputTheme>>;
7
+ //#endregion
8
+ export { PartialTextListInputTheme, TextListInputTheme };
@@ -0,0 +1,8 @@
1
+ import { DeepPartial, Prettify } from "../../util/types.js";
2
+ import { ComponentTextListInput } from "../../styleD/build/typescript/component/textListInput.js";
3
+ import { SerializedStyles } from "@emotion/react";
4
+ //#region src/components/TextListInput/styles.d.ts
5
+ type TextListInputTheme = Prettify<ComponentTextListInput>;
6
+ type PartialTextListInputTheme = Prettify<DeepPartial<TextListInputTheme>>;
7
+ //#endregion
8
+ export { PartialTextListInputTheme, TextListInputTheme };
@@ -0,0 +1,25 @@
1
+ import { convertTypographyToEmotionStringStyle } from "../../styleD/utils/semantic/typography.js";
2
+ import { componentTextListInput } from "../../styleD/build/typescript/component/textListInput.js";
3
+ import { css } from "@emotion/react";
4
+ //#region src/components/TextListInput/styles.ts
5
+ const defaultTextListInputTheme = componentTextListInput;
6
+ const labelStyles = (theme) => css`
7
+ display: flex;
8
+ align-items: center;
9
+ gap: ${theme.label.gap};
10
+ color: ${theme.label.color};
11
+ ${convertTypographyToEmotionStringStyle(theme.label.typography)}
12
+ `;
13
+ const columnStyles = (theme) => css`
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: ${theme.column.gap};
17
+ margin-top: ${theme.column.marginTop};
18
+ `;
19
+ const rowStyles = (theme) => css`
20
+ display: flex;
21
+ align-items: flex-start;
22
+ gap: ${theme.row.gap};
23
+ `;
24
+ //#endregion
25
+ export { columnStyles, defaultTextListInputTheme, labelStyles, rowStyles };
@@ -0,0 +1,33 @@
1
+ import { DefaultProps } from "../../util/types.cjs";
2
+ import { PartialTextInputTheme } from "../TextInput/styles.cjs";
3
+ import "../../TextInput.cjs";
4
+ import { TextListInputTheme } from "./styles.cjs";
5
+ //#region src/components/TextListInput/types.d.ts
6
+ type TextListInputProps = DefaultProps<TextListInputTheme> & {
7
+ /**
8
+ * Label text for text list group
9
+ */
10
+ label: string;
11
+ /**
12
+ * Size of text inputs in the group
13
+ */
14
+ size?: keyof Omit<PartialTextInputTheme, 'shared'>;
15
+ /**
16
+ * Temporary text that occupies the text input when it is empty
17
+ */
18
+ placeholder?: string;
19
+ /**
20
+ * Initial data to populate text list with (optional)
21
+ */
22
+ initialData?: string[];
23
+ /**
24
+ * Error message to display below text list (optional)
25
+ */
26
+ errorMessage?: string;
27
+ /**
28
+ * Function called when values of text inputs changes
29
+ */
30
+ onChange: (values: string[]) => void;
31
+ };
32
+ //#endregion
33
+ export { TextListInputProps };
@@ -0,0 +1,33 @@
1
+ import { DefaultProps } from "../../util/types.js";
2
+ import { PartialTextInputTheme } from "../TextInput/styles.js";
3
+ import "../../TextInput.js";
4
+ import { TextListInputTheme } from "./styles.js";
5
+ //#region src/components/TextListInput/types.d.ts
6
+ type TextListInputProps = DefaultProps<TextListInputTheme> & {
7
+ /**
8
+ * Label text for text list group
9
+ */
10
+ label: string;
11
+ /**
12
+ * Size of text inputs in the group
13
+ */
14
+ size?: keyof Omit<PartialTextInputTheme, 'shared'>;
15
+ /**
16
+ * Temporary text that occupies the text input when it is empty
17
+ */
18
+ placeholder?: string;
19
+ /**
20
+ * Initial data to populate text list with (optional)
21
+ */
22
+ initialData?: string[];
23
+ /**
24
+ * Error message to display below text list (optional)
25
+ */
26
+ errorMessage?: string;
27
+ /**
28
+ * Function called when values of text inputs changes
29
+ */
30
+ onChange: (values: string[]) => void;
31
+ };
32
+ //#endregion
33
+ export { TextListInputProps };
package/dist/index.cjs CHANGED
@@ -15,6 +15,7 @@ const require_intendedAudienceSignifier = require("./styleD/build/typescript/com
15
15
  const require_favicon = require("./styleD/build/typescript/component/favicon.cjs");
16
16
  const require_datePicker = require("./styleD/build/typescript/component/datePicker.cjs");
17
17
  const require_grid = require("./styleD/build/typescript/component/grid.cjs");
18
+ const require_table = require("./styleD/build/typescript/component/table.cjs");
18
19
  const require_form = require("./styleD/build/typescript/component/form.cjs");
19
20
  const require_inlineMessage = require("./styleD/build/typescript/component/inlineMessage.cjs");
20
21
  const require_menu = require("./styleD/build/typescript/component/menu.cjs");
@@ -31,6 +32,7 @@ const require_typography = require("./styleD/build/typescript/component/typograp
31
32
  const require_tabs = require("./styleD/build/typescript/component/tabs.cjs");
32
33
  const require_userFeedbackSummary = require("./styleD/build/typescript/component/userFeedbackSummary.cjs");
33
34
  const require_sidebarStepperNavigation = require("./styleD/build/typescript/component/sidebarStepperNavigation.cjs");
35
+ const require_textListInput = require("./styleD/build/typescript/component/textListInput.cjs");
34
36
  const require_colors = require("./styleD/build/typescript/base/colors.cjs");
35
37
  const require_radius = require("./styleD/build/typescript/base/radius.cjs");
36
38
  const require_sizing = require("./styleD/build/typescript/base/sizing.cjs");
@@ -70,10 +72,12 @@ exports.componentModal = require_modal.componentModal;
70
72
  exports.componentRadioGroup = require_radioGroup.componentRadioGroup;
71
73
  exports.componentSelect = require_select.componentSelect;
72
74
  exports.componentSidebarStepperNavigation = require_sidebarStepperNavigation.componentSidebarStepperNavigation;
75
+ exports.componentTable = require_table.componentTable;
73
76
  exports.componentTabs = require_tabs.componentTabs;
74
77
  exports.componentTagTable = require_tagTable.componentTagTable;
75
78
  exports.componentTextArea = require_textArea.componentTextArea;
76
79
  exports.componentTextInput = require_textInput.componentTextInput;
80
+ exports.componentTextListInput = require_textListInput.componentTextListInput;
77
81
  exports.componentTooltip = require_tooltip.componentTooltip;
78
82
  exports.componentTopBar = require_topBar.componentTopBar;
79
83
  exports.componentTypography = require_typography.componentTypography;
package/dist/index.d.cts CHANGED
@@ -22,11 +22,13 @@ import { ComponentModal, componentModal } from "./styleD/build/typescript/compon
22
22
  import { ComponentRadioGroup, componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.cjs";
23
23
  import { ComponentSelect, componentSelect } from "./styleD/build/typescript/component/select.cjs";
24
24
  import { ComponentSidebarStepperNavigation, componentSidebarStepperNavigation } from "./styleD/build/typescript/component/sidebarStepperNavigation.cjs";
25
+ import { ComponentTable, componentTable } from "./styleD/build/typescript/component/table.cjs";
25
26
  import { ComponentTabs, componentTabs } from "./styleD/build/typescript/component/tabs.cjs";
26
27
  import { ComponentAutocomplete, componentAutocomplete } from "./styleD/build/typescript/component/autocomplete.cjs";
27
28
  import { ComponentTagTable, componentTagTable } from "./styleD/build/typescript/component/tagTable.cjs";
28
29
  import { ComponentTextArea, componentTextArea } from "./styleD/build/typescript/component/textArea.cjs";
29
30
  import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.cjs";
31
+ import { ComponentTextListInput, componentTextListInput } from "./styleD/build/typescript/component/textListInput.cjs";
30
32
  import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.cjs";
31
33
  import { ComponentTopBar, componentTopBar } from "./styleD/build/typescript/component/topBar.cjs";
32
34
  import { ComponentUserFeedbackSummary, componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.cjs";
@@ -42,4 +44,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
42
44
  import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.cjs";
43
45
  import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.cjs";
44
46
  import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.cjs";
45
- export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentBadge, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
47
+ export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentBadge, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
package/dist/index.d.ts CHANGED
@@ -22,11 +22,13 @@ import { ComponentModal, componentModal } from "./styleD/build/typescript/compon
22
22
  import { ComponentRadioGroup, componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.js";
23
23
  import { ComponentSelect, componentSelect } from "./styleD/build/typescript/component/select.js";
24
24
  import { ComponentSidebarStepperNavigation, componentSidebarStepperNavigation } from "./styleD/build/typescript/component/sidebarStepperNavigation.js";
25
+ import { ComponentTable, componentTable } from "./styleD/build/typescript/component/table.js";
25
26
  import { ComponentTabs, componentTabs } from "./styleD/build/typescript/component/tabs.js";
26
27
  import { ComponentAutocomplete, componentAutocomplete } from "./styleD/build/typescript/component/autocomplete.js";
27
28
  import { ComponentTagTable, componentTagTable } from "./styleD/build/typescript/component/tagTable.js";
28
29
  import { ComponentTextArea, componentTextArea } from "./styleD/build/typescript/component/textArea.js";
29
30
  import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.js";
31
+ import { ComponentTextListInput, componentTextListInput } from "./styleD/build/typescript/component/textListInput.js";
30
32
  import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.js";
31
33
  import { ComponentTopBar, componentTopBar } from "./styleD/build/typescript/component/topBar.js";
32
34
  import { ComponentUserFeedbackSummary, componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.js";
@@ -42,4 +44,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
42
44
  import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
43
45
  import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
44
46
  import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
45
- export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentBadge, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
47
+ export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentBadge, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ import { componentIntendedAudienceSignifier } from "./styleD/build/typescript/co
14
14
  import { componentFavicon } from "./styleD/build/typescript/component/favicon.js";
15
15
  import { componentDatePicker } from "./styleD/build/typescript/component/datePicker.js";
16
16
  import { componentGrid } from "./styleD/build/typescript/component/grid.js";
17
+ import { componentTable } from "./styleD/build/typescript/component/table.js";
17
18
  import { componentForm } from "./styleD/build/typescript/component/form.js";
18
19
  import { componentInlineMessage } from "./styleD/build/typescript/component/inlineMessage.js";
19
20
  import { componentMenu } from "./styleD/build/typescript/component/menu.js";
@@ -30,6 +31,7 @@ import { componentTypography } from "./styleD/build/typescript/component/typogra
30
31
  import { componentTabs } from "./styleD/build/typescript/component/tabs.js";
31
32
  import { componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.js";
32
33
  import { componentSidebarStepperNavigation } from "./styleD/build/typescript/component/sidebarStepperNavigation.js";
34
+ import { componentTextListInput } from "./styleD/build/typescript/component/textListInput.js";
33
35
  import { baseColors } from "./styleD/build/typescript/base/colors.js";
34
36
  import { baseRadius } from "./styleD/build/typescript/base/radius.js";
35
37
  import { baseSizing } from "./styleD/build/typescript/base/sizing.js";
@@ -42,4 +44,4 @@ import { semanticSizing } from "./styleD/build/typescript/semantic/sizing.js";
42
44
  import { semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
43
45
  import { semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
44
46
  import { semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
45
- export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
47
+ export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentBadge, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-table-table-width: 100%;
7
+ --component-table-table-color: #000000;
8
+ --component-table-table-background-color: #ffffff;
9
+ --component-table-table-border: 0.0625rem solid #cccccc;
10
+ --component-table-table-border-radius: 0.25rem;
11
+ --component-table-header-background-color: #ededed;
12
+ --component-table-header-border: 0.0625rem solid #cccccc;
13
+ --component-table-row-background-color: #ffffff;
14
+ --component-table-row-hover-background-color: #f6f6f6;
15
+ --component-table-row-border: 0.0625rem solid #cccccc;
16
+ --component-table-row-focus-visible-outline: 0.125rem solid #0072a9;
17
+ --component-table-row-focus-visible-outline-offset: -0.0625rem;
18
+ --component-table-cell-padding-block: 0.5rem;
19
+ --component-table-cell-padding-inline: 0.75rem;
20
+ --component-table-cell-typography-font: normal 460 0.875rem/1.3 'Open Sans';
21
+ --component-table-cell-typography-letter-spacing: 0rem;
22
+ --component-table-cell-typography-font-width: 95;
23
+ --component-table-column-header-typography-font: normal 700 0.75rem/1.15
24
+ 'Open Sans';
25
+ --component-table-column-header-typography-letter-spacing: 0rem;
26
+ --component-table-column-header-typography-font-width: 95;
27
+ --component-table-compact-label-color: #545454;
28
+ --component-table-compact-label-gap: 0.25rem;
29
+ --component-table-compact-label-typography-font: normal 460 0.75rem/1.3
30
+ 'Open Sans';
31
+ --component-table-compact-label-typography-letter-spacing: 0rem;
32
+ --component-table-compact-label-typography-font-width: 95;
33
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-text-list-input-label-color: #000000;
7
+ --component-text-list-input-label-gap: 0.5rem;
8
+ --component-text-list-input-label-typography-font: normal 700 1rem/1.15
9
+ 'Open Sans';
10
+ --component-text-list-input-label-typography-letter-spacing: -0.03125rem;
11
+ --component-text-list-input-label-typography-font-width: 95;
12
+ --component-text-list-input-column-gap: 1rem;
13
+ --component-text-list-input-column-margin-top: 0.5rem;
14
+ --component-text-list-input-row-gap: 0.5rem;
15
+ }
@@ -0,0 +1,51 @@
1
+ //#region src/styleD/build/typescript/component/table.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ const componentTable = {
6
+ table: {
7
+ width: "100%",
8
+ color: "#000000",
9
+ backgroundColor: "#ffffff",
10
+ border: "0.0625rem solid #cccccc",
11
+ borderRadius: "0.25rem"
12
+ },
13
+ header: {
14
+ backgroundColor: "#ededed",
15
+ border: "0.0625rem solid #cccccc"
16
+ },
17
+ row: {
18
+ backgroundColor: "#ffffff",
19
+ hoverBackgroundColor: "#f6f6f6",
20
+ border: "0.0625rem solid #cccccc",
21
+ focusVisible: {
22
+ outline: "0.125rem solid #0072a9",
23
+ outlineOffset: "-0.0625rem"
24
+ }
25
+ },
26
+ cell: {
27
+ paddingBlock: "0.5rem",
28
+ paddingInline: "0.75rem",
29
+ typography: {
30
+ font: "normal 460 0.875rem/1.3 Open Sans",
31
+ letterSpacing: "0rem",
32
+ fontWidth: 95
33
+ }
34
+ },
35
+ columnHeader: { typography: {
36
+ font: "normal 700 0.75rem/1.15 Open Sans",
37
+ letterSpacing: "0rem",
38
+ fontWidth: 95
39
+ } },
40
+ compactLabel: {
41
+ color: "#545454",
42
+ gap: "0.25rem",
43
+ typography: {
44
+ font: "normal 460 0.75rem/1.3 Open Sans",
45
+ letterSpacing: "0rem",
46
+ fontWidth: 95
47
+ }
48
+ }
49
+ };
50
+ //#endregion
51
+ exports.componentTable = componentTable;
@@ -0,0 +1,54 @@
1
+ //#region src/styleD/build/typescript/component/table.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentTable: {
6
+ table: {
7
+ width: string;
8
+ color: string;
9
+ backgroundColor: string;
10
+ border: string;
11
+ borderRadius: string;
12
+ };
13
+ header: {
14
+ backgroundColor: string;
15
+ border: string;
16
+ };
17
+ row: {
18
+ backgroundColor: string;
19
+ hoverBackgroundColor: string;
20
+ border: string;
21
+ focusVisible: {
22
+ outline: string;
23
+ outlineOffset: string;
24
+ };
25
+ };
26
+ cell: {
27
+ paddingBlock: string;
28
+ paddingInline: string;
29
+ typography: {
30
+ font: string;
31
+ letterSpacing: string;
32
+ fontWidth: number;
33
+ };
34
+ };
35
+ columnHeader: {
36
+ typography: {
37
+ font: string;
38
+ letterSpacing: string;
39
+ fontWidth: number;
40
+ };
41
+ };
42
+ compactLabel: {
43
+ color: string;
44
+ gap: string;
45
+ typography: {
46
+ font: string;
47
+ letterSpacing: string;
48
+ fontWidth: number;
49
+ };
50
+ };
51
+ };
52
+ type ComponentTable = typeof componentTable;
53
+ //#endregion
54
+ export { ComponentTable, componentTable };
@@ -0,0 +1,54 @@
1
+ //#region src/styleD/build/typescript/component/table.d.ts
2
+ /**
3
+ * Do not edit directly, this file was auto-generated.
4
+ */
5
+ declare const componentTable: {
6
+ table: {
7
+ width: string;
8
+ color: string;
9
+ backgroundColor: string;
10
+ border: string;
11
+ borderRadius: string;
12
+ };
13
+ header: {
14
+ backgroundColor: string;
15
+ border: string;
16
+ };
17
+ row: {
18
+ backgroundColor: string;
19
+ hoverBackgroundColor: string;
20
+ border: string;
21
+ focusVisible: {
22
+ outline: string;
23
+ outlineOffset: string;
24
+ };
25
+ };
26
+ cell: {
27
+ paddingBlock: string;
28
+ paddingInline: string;
29
+ typography: {
30
+ font: string;
31
+ letterSpacing: string;
32
+ fontWidth: number;
33
+ };
34
+ };
35
+ columnHeader: {
36
+ typography: {
37
+ font: string;
38
+ letterSpacing: string;
39
+ fontWidth: number;
40
+ };
41
+ };
42
+ compactLabel: {
43
+ color: string;
44
+ gap: string;
45
+ typography: {
46
+ font: string;
47
+ letterSpacing: string;
48
+ fontWidth: number;
49
+ };
50
+ };
51
+ };
52
+ type ComponentTable = typeof componentTable;
53
+ //#endregion
54
+ export { ComponentTable, componentTable };