@guardian/stand 0.0.68 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/TextInput.d.cts +2 -2
- package/dist/TextInput.d.ts +2 -2
- package/dist/TextListInput.cjs +5 -0
- package/dist/TextListInput.d.cts +5 -0
- package/dist/TextListInput.d.ts +5 -0
- package/dist/TextListInput.js +3 -0
- package/dist/components/Icon/types.d.cts +0 -1
- package/dist/components/Icon/types.d.ts +0 -1
- package/dist/components/Menu/types.d.cts +0 -1
- package/dist/components/Menu/types.d.ts +0 -1
- package/dist/components/TextInput/styles.d.cts +3 -2
- package/dist/components/TextInput/styles.d.ts +3 -2
- package/dist/components/TextListInput/TextListInput.cjs +81 -0
- package/dist/components/TextListInput/TextListInput.d.cts +5 -0
- package/dist/components/TextListInput/TextListInput.d.ts +5 -0
- package/dist/components/TextListInput/TextListInput.js +81 -0
- package/dist/components/TextListInput/styles.cjs +28 -0
- package/dist/components/TextListInput/styles.d.cts +8 -0
- package/dist/components/TextListInput/styles.d.ts +8 -0
- package/dist/components/TextListInput/styles.js +25 -0
- package/dist/components/TextListInput/types.d.cts +33 -0
- package/dist/components/TextListInput/types.d.ts +33 -0
- package/dist/components/TopBar/TopBarItem/types.d.cts +0 -1
- package/dist/components/TopBar/TopBarItem/types.d.ts +0 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/styleD/build/css/component/textListInput.css +15 -0
- package/dist/styleD/build/typescript/component/textListInput.cjs +22 -0
- package/dist/styleD/build/typescript/component/textListInput.d.cts +25 -0
- package/dist/styleD/build/typescript/component/textListInput.d.ts +25 -0
- package/dist/styleD/build/typescript/component/textListInput.js +22 -0
- package/dist/util/types.d.cts +0 -1
- package/dist/util/types.d.ts +0 -1
- package/package.json +23 -7
package/README.md
CHANGED
|
@@ -115,6 +115,7 @@ The following steps are for **developing the Stand library itself**.
|
|
|
115
115
|
pnpm test:e2e # end-to-end tests (Playwright)
|
|
116
116
|
pnpm test:react-matrix # compatibility matrix tests (see Compatibility)
|
|
117
117
|
pnpm tsc # TypeScript type checking
|
|
118
|
+
pnpm tsc6 # TypeScript 6 type checking
|
|
118
119
|
pnpm lint # lint (pnpm lint:fix to auto-fix)
|
|
119
120
|
pnpm format:check # formatting check (pnpm format:fix to auto-fix)
|
|
120
121
|
```
|
|
@@ -146,7 +147,7 @@ Version sets for matrix testing live in `./scripts/deps-matrix-versions.json`. T
|
|
|
146
147
|
1. Explicit env var (e.g. `REACT_VERSIONS="18.0.0 19.0.0"`)
|
|
147
148
|
2. Value from `deps-matrix-versions.json`
|
|
148
149
|
|
|
149
|
-
All
|
|
150
|
+
All four variables (`REACT_VERSIONS`, `EMOTION_VERSIONS`, `TS_VERSIONS`, `RAC_VERSIONS`) must be defined after loading; otherwise the script exits with an error.
|
|
150
151
|
|
|
151
152
|
Matrix generation in CI uses the same JSON file in the workflow `../.github/workflows/stand-component-library-deps-matrix.yml` to ensure consistency.
|
|
152
153
|
|
package/dist/TextInput.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { PartialTextInputTheme } from "./components/TextInput/styles.cjs";
|
|
3
3
|
import { TextInputProps } from "./components/TextInput/types.cjs";
|
|
4
4
|
import { TextInput } from "./components/TextInput/TextInput.cjs";
|
|
5
|
-
export { type ComponentTextInput, TextInput, type TextInputProps, type TextInputTheme, componentTextInput };
|
|
5
|
+
export { type ComponentTextInput, TextInput, type TextInputProps, type PartialTextInputTheme as TextInputTheme, componentTextInput };
|
package/dist/TextInput.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.js";
|
|
2
|
-
import {
|
|
2
|
+
import { PartialTextInputTheme } from "./components/TextInput/styles.js";
|
|
3
3
|
import { TextInputProps } from "./components/TextInput/types.js";
|
|
4
4
|
import { TextInput } from "./components/TextInput/TextInput.js";
|
|
5
|
-
export { type ComponentTextInput, TextInput, type TextInputProps, type TextInputTheme, componentTextInput };
|
|
5
|
+
export { type ComponentTextInput, TextInput, type TextInputProps, type PartialTextInputTheme as TextInputTheme, componentTextInput };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_textListInput = require("./styleD/build/typescript/component/textListInput.cjs");
|
|
3
|
+
const require_TextListInput = require("./components/TextListInput/TextListInput.cjs");
|
|
4
|
+
exports.TextListInput = require_TextListInput.TextListInput;
|
|
5
|
+
exports.componentTextListInput = require_textListInput.componentTextListInput;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentTextListInput, componentTextListInput } from "./styleD/build/typescript/component/textListInput.cjs";
|
|
2
|
+
import { PartialTextListInputTheme } from "./components/TextListInput/styles.cjs";
|
|
3
|
+
import { TextListInputProps } from "./components/TextListInput/types.cjs";
|
|
4
|
+
import { TextListInput } from "./components/TextListInput/TextListInput.cjs";
|
|
5
|
+
export { type ComponentTextListInput, TextListInput, type TextListInputProps, type PartialTextListInputTheme as TextListInputTheme, componentTextListInput };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentTextListInput, componentTextListInput } from "./styleD/build/typescript/component/textListInput.js";
|
|
2
|
+
import { PartialTextListInputTheme } from "./components/TextListInput/styles.js";
|
|
3
|
+
import { TextListInputProps } from "./components/TextListInput/types.js";
|
|
4
|
+
import { TextListInput } from "./components/TextListInput/TextListInput.js";
|
|
5
|
+
export { type ComponentTextListInput, TextListInput, type TextListInputProps, type PartialTextListInputTheme as TextListInputTheme, componentTextListInput };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DefaultProps, DefaultPropsWithChildren } from "../../util/types.cjs";
|
|
3
2
|
import { IconProps } from "../Icon/types.cjs";
|
|
4
3
|
import { MenuItemTheme, MenuPopoverTheme, MenuSectionTheme, MenuSeparatorTheme, MenuTheme } from "./styles.cjs";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Prettify } from "../../util/types.cjs";
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentTextInput } from "../../styleD/build/typescript/component/textInput.cjs";
|
|
3
3
|
import "./types.cjs";
|
|
4
4
|
import { SerializedStyles } from "@emotion/react";
|
|
5
5
|
//#region src/components/TextInput/styles.d.ts
|
|
6
6
|
type TextInputTheme = Prettify<ComponentTextInput>;
|
|
7
|
+
type PartialTextInputTheme = Prettify<DeepPartial<ComponentTextInput>>;
|
|
7
8
|
//#endregion
|
|
8
|
-
export { TextInputTheme };
|
|
9
|
+
export { PartialTextInputTheme, TextInputTheme };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Prettify } from "../../util/types.js";
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentTextInput } from "../../styleD/build/typescript/component/textInput.js";
|
|
3
3
|
import "./types.js";
|
|
4
4
|
import { SerializedStyles } from "@emotion/react";
|
|
5
5
|
//#region src/components/TextInput/styles.d.ts
|
|
6
6
|
type TextInputTheme = Prettify<ComponentTextInput>;
|
|
7
|
+
type PartialTextInputTheme = Prettify<DeepPartial<ComponentTextInput>>;
|
|
7
8
|
//#endregion
|
|
8
|
-
export { TextInputTheme };
|
|
9
|
+
export { PartialTextInputTheme, TextInputTheme };
|
|
@@ -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
|
@@ -31,6 +31,7 @@ const require_typography = require("./styleD/build/typescript/component/typograp
|
|
|
31
31
|
const require_tabs = require("./styleD/build/typescript/component/tabs.cjs");
|
|
32
32
|
const require_userFeedbackSummary = require("./styleD/build/typescript/component/userFeedbackSummary.cjs");
|
|
33
33
|
const require_sidebarStepperNavigation = require("./styleD/build/typescript/component/sidebarStepperNavigation.cjs");
|
|
34
|
+
const require_textListInput = require("./styleD/build/typescript/component/textListInput.cjs");
|
|
34
35
|
const require_colors = require("./styleD/build/typescript/base/colors.cjs");
|
|
35
36
|
const require_radius = require("./styleD/build/typescript/base/radius.cjs");
|
|
36
37
|
const require_sizing = require("./styleD/build/typescript/base/sizing.cjs");
|
|
@@ -74,6 +75,7 @@ exports.componentTabs = require_tabs.componentTabs;
|
|
|
74
75
|
exports.componentTagTable = require_tagTable.componentTagTable;
|
|
75
76
|
exports.componentTextArea = require_textArea.componentTextArea;
|
|
76
77
|
exports.componentTextInput = require_textInput.componentTextInput;
|
|
78
|
+
exports.componentTextListInput = require_textListInput.componentTextListInput;
|
|
77
79
|
exports.componentTooltip = require_tooltip.componentTooltip;
|
|
78
80
|
exports.componentTopBar = require_topBar.componentTopBar;
|
|
79
81
|
exports.componentTypography = require_typography.componentTypography;
|
package/dist/index.d.cts
CHANGED
|
@@ -27,6 +27,7 @@ import { ComponentAutocomplete, componentAutocomplete } from "./styleD/build/typ
|
|
|
27
27
|
import { ComponentTagTable, componentTagTable } from "./styleD/build/typescript/component/tagTable.cjs";
|
|
28
28
|
import { ComponentTextArea, componentTextArea } from "./styleD/build/typescript/component/textArea.cjs";
|
|
29
29
|
import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.cjs";
|
|
30
|
+
import { ComponentTextListInput, componentTextListInput } from "./styleD/build/typescript/component/textListInput.cjs";
|
|
30
31
|
import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.cjs";
|
|
31
32
|
import { ComponentTopBar, componentTopBar } from "./styleD/build/typescript/component/topBar.cjs";
|
|
32
33
|
import { ComponentUserFeedbackSummary, componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.cjs";
|
|
@@ -42,4 +43,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
42
43
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.cjs";
|
|
43
44
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.cjs";
|
|
44
45
|
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 };
|
|
46
|
+
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 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, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { ComponentAutocomplete, componentAutocomplete } from "./styleD/build/typ
|
|
|
27
27
|
import { ComponentTagTable, componentTagTable } from "./styleD/build/typescript/component/tagTable.js";
|
|
28
28
|
import { ComponentTextArea, componentTextArea } from "./styleD/build/typescript/component/textArea.js";
|
|
29
29
|
import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.js";
|
|
30
|
+
import { ComponentTextListInput, componentTextListInput } from "./styleD/build/typescript/component/textListInput.js";
|
|
30
31
|
import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.js";
|
|
31
32
|
import { ComponentTopBar, componentTopBar } from "./styleD/build/typescript/component/topBar.js";
|
|
32
33
|
import { ComponentUserFeedbackSummary, componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.js";
|
|
@@ -42,4 +43,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
42
43
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
43
44
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
44
45
|
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 };
|
|
46
|
+
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 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, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ import { componentTypography } from "./styleD/build/typescript/component/typogra
|
|
|
30
30
|
import { componentTabs } from "./styleD/build/typescript/component/tabs.js";
|
|
31
31
|
import { componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.js";
|
|
32
32
|
import { componentSidebarStepperNavigation } from "./styleD/build/typescript/component/sidebarStepperNavigation.js";
|
|
33
|
+
import { componentTextListInput } from "./styleD/build/typescript/component/textListInput.js";
|
|
33
34
|
import { baseColors } from "./styleD/build/typescript/base/colors.js";
|
|
34
35
|
import { baseRadius } from "./styleD/build/typescript/base/radius.js";
|
|
35
36
|
import { baseSizing } from "./styleD/build/typescript/base/sizing.js";
|
|
@@ -42,4 +43,4 @@ import { semanticSizing } from "./styleD/build/typescript/semantic/sizing.js";
|
|
|
42
43
|
import { semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
43
44
|
import { semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
44
45
|
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 };
|
|
46
|
+
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, componentTextListInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
@@ -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,22 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/textListInput.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
const componentTextListInput = {
|
|
6
|
+
label: {
|
|
7
|
+
color: "#000000",
|
|
8
|
+
gap: "0.5rem",
|
|
9
|
+
typography: {
|
|
10
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
11
|
+
letterSpacing: "-0.03125rem",
|
|
12
|
+
fontWidth: 95
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
column: {
|
|
16
|
+
gap: "1rem",
|
|
17
|
+
marginTop: "0.5rem"
|
|
18
|
+
},
|
|
19
|
+
row: { gap: "0.5rem" }
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.componentTextListInput = componentTextListInput;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/textListInput.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
declare const componentTextListInput: {
|
|
6
|
+
label: {
|
|
7
|
+
color: string;
|
|
8
|
+
gap: string;
|
|
9
|
+
typography: {
|
|
10
|
+
font: string;
|
|
11
|
+
letterSpacing: string;
|
|
12
|
+
fontWidth: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
column: {
|
|
16
|
+
gap: string;
|
|
17
|
+
marginTop: string;
|
|
18
|
+
};
|
|
19
|
+
row: {
|
|
20
|
+
gap: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type ComponentTextListInput = typeof componentTextListInput;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { ComponentTextListInput, componentTextListInput };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/textListInput.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
declare const componentTextListInput: {
|
|
6
|
+
label: {
|
|
7
|
+
color: string;
|
|
8
|
+
gap: string;
|
|
9
|
+
typography: {
|
|
10
|
+
font: string;
|
|
11
|
+
letterSpacing: string;
|
|
12
|
+
fontWidth: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
column: {
|
|
16
|
+
gap: string;
|
|
17
|
+
marginTop: string;
|
|
18
|
+
};
|
|
19
|
+
row: {
|
|
20
|
+
gap: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type ComponentTextListInput = typeof componentTextListInput;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { ComponentTextListInput, componentTextListInput };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/textListInput.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
const componentTextListInput = {
|
|
6
|
+
label: {
|
|
7
|
+
color: "#000000",
|
|
8
|
+
gap: "0.5rem",
|
|
9
|
+
typography: {
|
|
10
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
11
|
+
letterSpacing: "-0.03125rem",
|
|
12
|
+
fontWidth: 95
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
column: {
|
|
16
|
+
gap: "1rem",
|
|
17
|
+
marginTop: "0.5rem"
|
|
18
|
+
},
|
|
19
|
+
row: { gap: "0.5rem" }
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { componentTextListInput };
|
package/dist/util/types.d.cts
CHANGED
package/dist/util/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.70",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/guardian/stand"
|
|
6
6
|
},
|
|
@@ -377,6 +377,16 @@
|
|
|
377
377
|
"default": "./dist/UserFeedbackSummary.cjs"
|
|
378
378
|
}
|
|
379
379
|
},
|
|
380
|
+
"./TextListInput": {
|
|
381
|
+
"import": {
|
|
382
|
+
"types": "./dist/TextListInput.d.ts",
|
|
383
|
+
"default": "./dist/TextListInput.js"
|
|
384
|
+
},
|
|
385
|
+
"require": {
|
|
386
|
+
"types": "./dist/TextListInput.d.cts",
|
|
387
|
+
"default": "./dist/TextListInput.cjs"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
380
390
|
"./utils": {
|
|
381
391
|
"import": {
|
|
382
392
|
"types": "./dist/utils.d.ts",
|
|
@@ -435,7 +445,8 @@
|
|
|
435
445
|
"./component/tabs.css": "./dist/styleD/build/css/component/tabs.css",
|
|
436
446
|
"./component/tooltip.css": "./dist/styleD/build/css/component/tooltip.css",
|
|
437
447
|
"./component/userFeedbackSummary.css": "./dist/styleD/build/css/component/userFeedbackSummary.css",
|
|
438
|
-
"./component/sidebarStepperNavigation.css": "./dist/styleD/build/css/component/sidebarStepperNavigation.css"
|
|
448
|
+
"./component/sidebarStepperNavigation.css": "./dist/styleD/build/css/component/sidebarStepperNavigation.css",
|
|
449
|
+
"./component/textListInput.css": "./dist/styleD/build/css/component/textListInput.css"
|
|
439
450
|
},
|
|
440
451
|
"main": "./dist/index.cjs",
|
|
441
452
|
"module": "./dist/index.js",
|
|
@@ -552,6 +563,9 @@
|
|
|
552
563
|
],
|
|
553
564
|
"UserFeedbackSummary": [
|
|
554
565
|
"./dist/UserFeedbackSummary.d.ts"
|
|
566
|
+
],
|
|
567
|
+
"TextListInput": [
|
|
568
|
+
"./dist/TextListInput.d.ts"
|
|
555
569
|
]
|
|
556
570
|
}
|
|
557
571
|
},
|
|
@@ -564,10 +578,10 @@
|
|
|
564
578
|
"@codesandbox/sandpack-react": "2.20.0",
|
|
565
579
|
"@emotion/react": "11.11.4",
|
|
566
580
|
"@figma/rest-api-spec": "0.41.0",
|
|
567
|
-
"@guardian/eslint-config": "
|
|
568
|
-
"@guardian/prettier": "
|
|
581
|
+
"@guardian/eslint-config": "16.0.0",
|
|
582
|
+
"@guardian/prettier": "11.0.0",
|
|
569
583
|
"@guardian/prosemirror-invisibles": "3.1.1",
|
|
570
|
-
"@guardian/tsconfig": "
|
|
584
|
+
"@guardian/tsconfig": "2.0.0",
|
|
571
585
|
"@internationalized/date": "3.12.1",
|
|
572
586
|
"@material-design-icons/svg": "0.14.15",
|
|
573
587
|
"@playwright/experimental-ct-react17": "1.62.1",
|
|
@@ -582,6 +596,7 @@
|
|
|
582
596
|
"@types/node": "24.10.1",
|
|
583
597
|
"@types/react": "17.0.76",
|
|
584
598
|
"@types/react-dom": "17.0.25",
|
|
599
|
+
"@typescript/typescript6": "6.0.2",
|
|
585
600
|
"change-case": "5.4.4",
|
|
586
601
|
"eslint": "9.39.3",
|
|
587
602
|
"eslint-plugin-check-file": "3.3.2",
|
|
@@ -626,7 +641,7 @@
|
|
|
626
641
|
"react": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
627
642
|
"react-aria-components": ">= 1.14.0 <= 1.20.0",
|
|
628
643
|
"react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
629
|
-
"typescript": ">=5.0.0
|
|
644
|
+
"typescript": ">=5.0.0 <7.0.0"
|
|
630
645
|
},
|
|
631
646
|
"peerDependenciesMeta": {
|
|
632
647
|
"@emotion/react": {
|
|
@@ -686,6 +701,7 @@
|
|
|
686
701
|
"test:e2e": "playwright test -c playwright-ct.config.ts",
|
|
687
702
|
"test:react-matrix": "./scripts/test-deps-matrix.sh",
|
|
688
703
|
"test:setup-e2e": "playwright install --with-deps",
|
|
689
|
-
"tsc": "tsc"
|
|
704
|
+
"tsc": "tsc",
|
|
705
|
+
"tsc6": "tsc6"
|
|
690
706
|
}
|
|
691
707
|
}
|