@guardian/stand 0.0.74 → 0.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SearchInput.cjs +5 -0
- package/dist/SearchInput.d.cts +5 -0
- package/dist/SearchInput.d.ts +5 -0
- package/dist/SearchInput.js +3 -0
- package/dist/components/AlertBanner/AlertBanner.cjs +1 -1
- package/dist/components/AlertBanner/AlertBanner.js +1 -1
- package/dist/components/Form/types.cjs +1 -0
- package/dist/components/Form/types.js +2 -1
- package/dist/components/SearchInput/SearchInput.cjs +33 -0
- package/dist/components/SearchInput/SearchInput.d.cts +4 -0
- package/dist/components/SearchInput/SearchInput.d.ts +4 -0
- package/dist/components/SearchInput/SearchInput.js +33 -0
- package/dist/components/SearchInput/styles.cjs +87 -0
- package/dist/components/SearchInput/styles.d.cts +8 -0
- package/dist/components/SearchInput/styles.d.ts +8 -0
- package/dist/components/SearchInput/styles.js +86 -0
- package/dist/components/SearchInput/types.d.cts +9 -0
- package/dist/components/SearchInput/types.d.ts +9 -0
- 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/alertBanner.css +4 -1
- package/dist/styleD/build/css/component/badge.css +2 -2
- package/dist/styleD/build/css/component/searchInput.css +34 -0
- package/dist/styleD/build/typescript/component/alertBanner.cjs +17 -6
- package/dist/styleD/build/typescript/component/alertBanner.d.cts +12 -3
- package/dist/styleD/build/typescript/component/alertBanner.d.ts +12 -3
- package/dist/styleD/build/typescript/component/alertBanner.js +17 -6
- package/dist/styleD/build/typescript/component/badge.cjs +2 -2
- package/dist/styleD/build/typescript/component/badge.js +2 -2
- package/dist/styleD/build/typescript/component/searchInput.cjs +49 -0
- package/dist/styleD/build/typescript/component/searchInput.d.cts +53 -0
- package/dist/styleD/build/typescript/component/searchInput.d.ts +53 -0
- package/dist/styleD/build/typescript/component/searchInput.js +49 -0
- package/package.json +15 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_searchInput = require("./styleD/build/typescript/component/searchInput.cjs");
|
|
3
|
+
const require_SearchInput = require("./components/SearchInput/SearchInput.cjs");
|
|
4
|
+
exports.SearchInput = require_SearchInput.SearchInput;
|
|
5
|
+
exports.componentSearchInput = require_searchInput.componentSearchInput;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentSearchInput, componentSearchInput } from "./styleD/build/typescript/component/searchInput.cjs";
|
|
2
|
+
import { PartialSearchInputTheme } from "./components/SearchInput/styles.cjs";
|
|
3
|
+
import { SearchInputProps } from "./components/SearchInput/types.cjs";
|
|
4
|
+
import { SearchInput } from "./components/SearchInput/SearchInput.cjs";
|
|
5
|
+
export { type ComponentSearchInput, SearchInput, type SearchInputProps, type PartialSearchInputTheme as SearchInputTheme, componentSearchInput };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentSearchInput, componentSearchInput } from "./styleD/build/typescript/component/searchInput.js";
|
|
2
|
+
import { PartialSearchInputTheme } from "./components/SearchInput/styles.js";
|
|
3
|
+
import { SearchInputProps } from "./components/SearchInput/types.js";
|
|
4
|
+
import { SearchInput } from "./components/SearchInput/SearchInput.js";
|
|
5
|
+
export { type ComponentSearchInput, SearchInput, type SearchInputProps, type PartialSearchInputTheme as SearchInputTheme, componentSearchInput };
|
|
@@ -24,7 +24,7 @@ function AlertBanner({ level, showIcon = false, icon, closeButtonProps, children
|
|
|
24
24
|
css: require_styles.alertBannerContentStyles(mergedTheme),
|
|
25
25
|
children: [showIcon && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
26
26
|
size: "md",
|
|
27
|
-
fill: mergedTheme.
|
|
27
|
+
fill: mergedTheme[level].icon.color,
|
|
28
28
|
children: determinedIcon
|
|
29
29
|
}), children]
|
|
30
30
|
}), closeButtonProps && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_IconButton.IconButton, {
|
|
@@ -24,7 +24,7 @@ function AlertBanner({ level, showIcon = false, icon, closeButtonProps, children
|
|
|
24
24
|
css: alertBannerContentStyles(mergedTheme),
|
|
25
25
|
children: [showIcon && /* @__PURE__ */ jsx(Icon, {
|
|
26
26
|
size: "md",
|
|
27
|
-
fill: mergedTheme.
|
|
27
|
+
fill: mergedTheme[level].icon.color,
|
|
28
28
|
children: determinedIcon
|
|
29
29
|
}), children]
|
|
30
30
|
}), closeButtonProps && /* @__PURE__ */ jsx(IconButton, {
|
|
@@ -6,6 +6,7 @@ let react_aria_components = require("react-aria-components");
|
|
|
6
6
|
*/
|
|
7
7
|
const ALLOWED_FORM_CONTAINERS = [
|
|
8
8
|
react_aria_components.TextField,
|
|
9
|
+
react_aria_components.SearchField,
|
|
9
10
|
react_aria_components.Select,
|
|
10
11
|
react_aria_components.RadioGroup,
|
|
11
12
|
react_aria_components.CheckboxGroup,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckboxGroup, DatePicker, RadioGroup, Select, TextField } from "react-aria-components";
|
|
1
|
+
import { CheckboxGroup, DatePicker, RadioGroup, SearchField, Select, TextField } from "react-aria-components";
|
|
2
2
|
//#region src/components/Form/types.ts
|
|
3
3
|
/**
|
|
4
4
|
* The React Aria form container components FormInputContainer supports.
|
|
@@ -6,6 +6,7 @@ import { CheckboxGroup, DatePicker, RadioGroup, Select, TextField } from "react-
|
|
|
6
6
|
*/
|
|
7
7
|
const ALLOWED_FORM_CONTAINERS = [
|
|
8
8
|
TextField,
|
|
9
|
+
SearchField,
|
|
9
10
|
Select,
|
|
10
11
|
RadioGroup,
|
|
11
12
|
CheckboxGroup,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
2
|
+
const require_Icon = require("../Icon/Icon.cjs");
|
|
3
|
+
const require_Form = require("../Form/Form.cjs");
|
|
4
|
+
const require_styles = require("./styles.cjs");
|
|
5
|
+
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
6
|
+
let react_aria_components = require("react-aria-components");
|
|
7
|
+
//#region src/components/SearchInput/SearchInput.tsx
|
|
8
|
+
const increaseIconSize = (s) => {
|
|
9
|
+
if (s === "sm") return "md";
|
|
10
|
+
return "lg";
|
|
11
|
+
};
|
|
12
|
+
function SearchInput({ size = "md", isInvalid = false, theme = {}, placeholder, ...props }) {
|
|
13
|
+
const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultSearchInputTheme, theme);
|
|
14
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Form.FormInputContainer, {
|
|
15
|
+
as: react_aria_components.SearchField,
|
|
16
|
+
size,
|
|
17
|
+
isInvalid,
|
|
18
|
+
...props,
|
|
19
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("div", {
|
|
20
|
+
css: require_styles.searchInputStyles(mergedTheme, {
|
|
21
|
+
size,
|
|
22
|
+
isInvalid
|
|
23
|
+
}),
|
|
24
|
+
children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
25
|
+
size: increaseIconSize(size),
|
|
26
|
+
symbol: "search",
|
|
27
|
+
className: "search-icon"
|
|
28
|
+
}), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(react_aria_components.Input, { placeholder })]
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.SearchInput = SearchInput;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SearchInputProps } from "./types.cjs";
|
|
2
|
+
//#region src/components/SearchInput/SearchInput.d.ts
|
|
3
|
+
export declare function SearchInput({ size, isInvalid, theme, placeholder, ...props }: SearchInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SearchInputProps } from "./types.js";
|
|
2
|
+
//#region src/components/SearchInput/SearchInput.d.ts
|
|
3
|
+
export declare function SearchInput({ size, isInvalid, theme, placeholder, ...props }: SearchInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { mergeDeep } from "../../util/mergeDeep.js";
|
|
2
|
+
import { Icon } from "../Icon/Icon.js";
|
|
3
|
+
import { FormInputContainer } from "../Form/Form.js";
|
|
4
|
+
import { defaultSearchInputTheme, searchInputStyles } from "./styles.js";
|
|
5
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Input, SearchField } from "react-aria-components";
|
|
7
|
+
//#region src/components/SearchInput/SearchInput.tsx
|
|
8
|
+
const increaseIconSize = (s) => {
|
|
9
|
+
if (s === "sm") return "md";
|
|
10
|
+
return "lg";
|
|
11
|
+
};
|
|
12
|
+
function SearchInput({ size = "md", isInvalid = false, theme = {}, placeholder, ...props }) {
|
|
13
|
+
const mergedTheme = mergeDeep(defaultSearchInputTheme, theme);
|
|
14
|
+
return /* @__PURE__ */ jsx(FormInputContainer, {
|
|
15
|
+
as: SearchField,
|
|
16
|
+
size,
|
|
17
|
+
isInvalid,
|
|
18
|
+
...props,
|
|
19
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
20
|
+
css: searchInputStyles(mergedTheme, {
|
|
21
|
+
size,
|
|
22
|
+
isInvalid
|
|
23
|
+
}),
|
|
24
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
25
|
+
size: increaseIconSize(size),
|
|
26
|
+
symbol: "search",
|
|
27
|
+
className: "search-icon"
|
|
28
|
+
}), /* @__PURE__ */ jsx(Input, { placeholder })]
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { SearchInput };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const require_typography = require("../../styleD/utils/semantic/typography.cjs");
|
|
2
|
+
const require_searchInput = require("../../styleD/build/typescript/component/searchInput.cjs");
|
|
3
|
+
let _emotion_react = require("@emotion/react");
|
|
4
|
+
//#region src/components/SearchInput/styles.ts
|
|
5
|
+
const defaultSearchInputTheme = require_searchInput.componentSearchInput;
|
|
6
|
+
const searchInputStyles = (theme, { size, isInvalid }) => {
|
|
7
|
+
return _emotion_react.css`
|
|
8
|
+
${require_typography.convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
9
|
+
background-color: ${theme.shared.backgroundColor};
|
|
10
|
+
border-radius: ${theme.shared.borderRadius};
|
|
11
|
+
border: ${theme.shared.border};
|
|
12
|
+
color: ${theme.shared.color};
|
|
13
|
+
cursor: ${theme.shared.cursor};
|
|
14
|
+
height: ${theme[size].height};
|
|
15
|
+
margin-top: ${theme.shared.marginTop};
|
|
16
|
+
padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
|
|
17
|
+
${theme.shared.padding.bottom} ${theme.shared.padding.left};
|
|
18
|
+
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
align-items: center;
|
|
22
|
+
|
|
23
|
+
::placeholder {
|
|
24
|
+
color: ${theme.shared.placeholderColor};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& input {
|
|
28
|
+
${require_typography.convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
border-radius: 0;
|
|
31
|
+
border: 0;
|
|
32
|
+
color: ${theme.shared.color};
|
|
33
|
+
cursor: ${theme.shared.cursor};
|
|
34
|
+
height: ${theme[size].height};
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
width: 100%;
|
|
38
|
+
|
|
39
|
+
::placeholder {
|
|
40
|
+
color: ${theme.shared.placeholderColor};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-disabled] {
|
|
44
|
+
color: ${theme.shared.disabled.color};
|
|
45
|
+
cursor: ${theme.shared.disabled.cursor};
|
|
46
|
+
|
|
47
|
+
::placeholder {
|
|
48
|
+
color: ${theme.shared.disabled.color};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-focused] {
|
|
53
|
+
outline: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& .search-icon {
|
|
58
|
+
margin-right: 8px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:focus-within {
|
|
62
|
+
outline: ${theme.shared.focused.outline};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
${isInvalid && _emotion_react.css`
|
|
66
|
+
border: ${theme.shared.error.border};
|
|
67
|
+
`}
|
|
68
|
+
|
|
69
|
+
&:has(:disabled) {
|
|
70
|
+
background-color: ${theme.shared.disabled.backgroundColor};
|
|
71
|
+
border: ${theme.shared.disabled.border};
|
|
72
|
+
color: ${theme.shared.disabled.color};
|
|
73
|
+
cursor: ${theme.shared.disabled.cursor};
|
|
74
|
+
|
|
75
|
+
::placeholder {
|
|
76
|
+
color: ${theme.shared.disabled.color};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
& svg {
|
|
80
|
+
stroke: ${theme.shared.disabled.color};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
};
|
|
85
|
+
//#endregion
|
|
86
|
+
exports.defaultSearchInputTheme = defaultSearchInputTheme;
|
|
87
|
+
exports.searchInputStyles = searchInputStyles;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
|
+
import { ComponentSearchInput } from "../../styleD/build/typescript/component/searchInput.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
4
|
+
import { SerializedStyles } from "@emotion/react";
|
|
5
|
+
//#region src/components/SearchInput/styles.d.ts
|
|
6
|
+
export type SearchInputTheme = Prettify<ComponentSearchInput>;
|
|
7
|
+
export type PartialSearchInputTheme = Prettify<DeepPartial<ComponentSearchInput>>;
|
|
8
|
+
//#endregion
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
|
+
import { ComponentSearchInput } from "../../styleD/build/typescript/component/searchInput.js";
|
|
3
|
+
import "./types.js";
|
|
4
|
+
import { SerializedStyles } from "@emotion/react";
|
|
5
|
+
//#region src/components/SearchInput/styles.d.ts
|
|
6
|
+
export type SearchInputTheme = Prettify<ComponentSearchInput>;
|
|
7
|
+
export type PartialSearchInputTheme = Prettify<DeepPartial<ComponentSearchInput>>;
|
|
8
|
+
//#endregion
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { convertTypographyToEmotionStringStyle } from "../../styleD/utils/semantic/typography.js";
|
|
2
|
+
import { componentSearchInput } from "../../styleD/build/typescript/component/searchInput.js";
|
|
3
|
+
import { css } from "@emotion/react";
|
|
4
|
+
//#region src/components/SearchInput/styles.ts
|
|
5
|
+
const defaultSearchInputTheme = componentSearchInput;
|
|
6
|
+
const searchInputStyles = (theme, { size, isInvalid }) => {
|
|
7
|
+
return css`
|
|
8
|
+
${convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
9
|
+
background-color: ${theme.shared.backgroundColor};
|
|
10
|
+
border-radius: ${theme.shared.borderRadius};
|
|
11
|
+
border: ${theme.shared.border};
|
|
12
|
+
color: ${theme.shared.color};
|
|
13
|
+
cursor: ${theme.shared.cursor};
|
|
14
|
+
height: ${theme[size].height};
|
|
15
|
+
margin-top: ${theme.shared.marginTop};
|
|
16
|
+
padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
|
|
17
|
+
${theme.shared.padding.bottom} ${theme.shared.padding.left};
|
|
18
|
+
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
align-items: center;
|
|
22
|
+
|
|
23
|
+
::placeholder {
|
|
24
|
+
color: ${theme.shared.placeholderColor};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& input {
|
|
28
|
+
${convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
border-radius: 0;
|
|
31
|
+
border: 0;
|
|
32
|
+
color: ${theme.shared.color};
|
|
33
|
+
cursor: ${theme.shared.cursor};
|
|
34
|
+
height: ${theme[size].height};
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
width: 100%;
|
|
38
|
+
|
|
39
|
+
::placeholder {
|
|
40
|
+
color: ${theme.shared.placeholderColor};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-disabled] {
|
|
44
|
+
color: ${theme.shared.disabled.color};
|
|
45
|
+
cursor: ${theme.shared.disabled.cursor};
|
|
46
|
+
|
|
47
|
+
::placeholder {
|
|
48
|
+
color: ${theme.shared.disabled.color};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-focused] {
|
|
53
|
+
outline: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& .search-icon {
|
|
58
|
+
margin-right: 8px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:focus-within {
|
|
62
|
+
outline: ${theme.shared.focused.outline};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
${isInvalid && css`
|
|
66
|
+
border: ${theme.shared.error.border};
|
|
67
|
+
`}
|
|
68
|
+
|
|
69
|
+
&:has(:disabled) {
|
|
70
|
+
background-color: ${theme.shared.disabled.backgroundColor};
|
|
71
|
+
border: ${theme.shared.disabled.border};
|
|
72
|
+
color: ${theme.shared.disabled.color};
|
|
73
|
+
cursor: ${theme.shared.disabled.cursor};
|
|
74
|
+
|
|
75
|
+
::placeholder {
|
|
76
|
+
color: ${theme.shared.disabled.color};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
& svg {
|
|
80
|
+
stroke: ${theme.shared.disabled.color};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
};
|
|
85
|
+
//#endregion
|
|
86
|
+
export { defaultSearchInputTheme, searchInputStyles };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormInputContainerDefaultProps } from "../Form/types.cjs";
|
|
2
|
+
import { SearchInputTheme } from "./styles.cjs";
|
|
3
|
+
import { SearchFieldProps } from "react-aria-components";
|
|
4
|
+
//#region src/components/SearchInput/types.d.ts
|
|
5
|
+
export interface SearchInputProps extends FormInputContainerDefaultProps<SearchFieldProps, SearchInputTheme> {
|
|
6
|
+
/** Temporary text that occupies the text input when it is empty */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormInputContainerDefaultProps } from "../Form/types.js";
|
|
2
|
+
import { SearchInputTheme } from "./styles.js";
|
|
3
|
+
import { SearchFieldProps } from "react-aria-components";
|
|
4
|
+
//#region src/components/SearchInput/types.d.ts
|
|
5
|
+
export interface SearchInputProps extends FormInputContainerDefaultProps<SearchFieldProps, SearchInputTheme> {
|
|
6
|
+
/** Temporary text that occupies the text input when it is empty */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
package/dist/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ const require_link = require("./styleD/build/typescript/component/link.cjs");
|
|
|
28
28
|
const require_radioGroup = require("./styleD/build/typescript/component/radioGroup.cjs");
|
|
29
29
|
const require_select = require("./styleD/build/typescript/component/select.cjs");
|
|
30
30
|
const require_textArea = require("./styleD/build/typescript/component/textArea.cjs");
|
|
31
|
+
const require_searchInput = require("./styleD/build/typescript/component/searchInput.cjs");
|
|
31
32
|
const require_textInput = require("./styleD/build/typescript/component/textInput.cjs");
|
|
32
33
|
const require_tooltip = require("./styleD/build/typescript/component/tooltip.cjs");
|
|
33
34
|
const require_topBar = require("./styleD/build/typescript/component/topBar.cjs");
|
|
@@ -74,6 +75,7 @@ exports.componentMenu = require_menu.componentMenu;
|
|
|
74
75
|
exports.componentModal = require_modal.componentModal;
|
|
75
76
|
exports.componentPagination = require_pagination.componentPagination;
|
|
76
77
|
exports.componentRadioGroup = require_radioGroup.componentRadioGroup;
|
|
78
|
+
exports.componentSearchInput = require_searchInput.componentSearchInput;
|
|
77
79
|
exports.componentSelect = require_select.componentSelect;
|
|
78
80
|
exports.componentSidebarStepperNavigation = require_sidebarStepperNavigation.componentSidebarStepperNavigation;
|
|
79
81
|
exports.componentTable = require_table.componentTable;
|
package/dist/index.d.cts
CHANGED
|
@@ -21,6 +21,7 @@ import { ComponentMenu, componentMenu } from "./styleD/build/typescript/componen
|
|
|
21
21
|
import { ComponentModal, componentModal } from "./styleD/build/typescript/component/modal.cjs";
|
|
22
22
|
import { ComponentPagination, componentPagination } from "./styleD/build/typescript/component/pagination.cjs";
|
|
23
23
|
import { ComponentRadioGroup, componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.cjs";
|
|
24
|
+
import { ComponentSearchInput, componentSearchInput } from "./styleD/build/typescript/component/searchInput.cjs";
|
|
24
25
|
import { ComponentSelect, componentSelect } from "./styleD/build/typescript/component/select.cjs";
|
|
25
26
|
import { ComponentSidebarStepperNavigation, componentSidebarStepperNavigation } from "./styleD/build/typescript/component/sidebarStepperNavigation.cjs";
|
|
26
27
|
import { ComponentTable, componentTable } from "./styleD/build/typescript/component/table.cjs";
|
|
@@ -47,4 +48,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
47
48
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.cjs";
|
|
48
49
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.cjs";
|
|
49
50
|
import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.cjs";
|
|
50
|
-
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 ComponentPagination, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentTile, type ComponentToggleSwitch, 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, componentPagination, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTile, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
51
|
+
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 ComponentPagination, type ComponentRadioGroup, type ComponentSearchInput, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentTile, type ComponentToggleSwitch, 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, componentPagination, componentRadioGroup, componentSearchInput, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTile, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { ComponentMenu, componentMenu } from "./styleD/build/typescript/componen
|
|
|
21
21
|
import { ComponentModal, componentModal } from "./styleD/build/typescript/component/modal.js";
|
|
22
22
|
import { ComponentPagination, componentPagination } from "./styleD/build/typescript/component/pagination.js";
|
|
23
23
|
import { ComponentRadioGroup, componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.js";
|
|
24
|
+
import { ComponentSearchInput, componentSearchInput } from "./styleD/build/typescript/component/searchInput.js";
|
|
24
25
|
import { ComponentSelect, componentSelect } from "./styleD/build/typescript/component/select.js";
|
|
25
26
|
import { ComponentSidebarStepperNavigation, componentSidebarStepperNavigation } from "./styleD/build/typescript/component/sidebarStepperNavigation.js";
|
|
26
27
|
import { ComponentTable, componentTable } from "./styleD/build/typescript/component/table.js";
|
|
@@ -47,4 +48,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
47
48
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
48
49
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
49
50
|
import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
|
|
50
|
-
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 ComponentPagination, type ComponentRadioGroup, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentTile, type ComponentToggleSwitch, 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, componentPagination, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTile, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
51
|
+
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 ComponentPagination, type ComponentRadioGroup, type ComponentSearchInput, type ComponentSelect, type ComponentSidebarStepperNavigation, type ComponentTable, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTextListInput, type ComponentTile, type ComponentToggleSwitch, 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, componentPagination, componentRadioGroup, componentSearchInput, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTile, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ import { componentLink } from "./styleD/build/typescript/component/link.js";
|
|
|
27
27
|
import { componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.js";
|
|
28
28
|
import { componentSelect } from "./styleD/build/typescript/component/select.js";
|
|
29
29
|
import { componentTextArea } from "./styleD/build/typescript/component/textArea.js";
|
|
30
|
+
import { componentSearchInput } from "./styleD/build/typescript/component/searchInput.js";
|
|
30
31
|
import { componentTextInput } from "./styleD/build/typescript/component/textInput.js";
|
|
31
32
|
import { componentTooltip } from "./styleD/build/typescript/component/tooltip.js";
|
|
32
33
|
import { componentTopBar } from "./styleD/build/typescript/component/topBar.js";
|
|
@@ -47,4 +48,4 @@ import { semanticSizing } from "./styleD/build/typescript/semantic/sizing.js";
|
|
|
47
48
|
import { semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
48
49
|
import { semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
49
50
|
import { semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
|
|
50
|
-
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, componentPagination, componentRadioGroup, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTile, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
51
|
+
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, componentPagination, componentRadioGroup, componentSearchInput, componentSelect, componentSidebarStepperNavigation, componentTable, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTextListInput, componentTile, componentToggleSwitch, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
@@ -23,9 +23,12 @@
|
|
|
23
23
|
0.875rem/1.3 'Open Sans';
|
|
24
24
|
--component-alert-banner-shared-content-typography-letter-spacing: 0rem;
|
|
25
25
|
--component-alert-banner-shared-content-typography-font-width: 95;
|
|
26
|
-
--component-alert-banner-shared-content-icon-color: #545454;
|
|
27
26
|
--component-alert-banner-information-background-color: #e8f0fb;
|
|
27
|
+
--component-alert-banner-information-icon-color: #00344e;
|
|
28
28
|
--component-alert-banner-success-background-color: #cde4c9;
|
|
29
|
+
--component-alert-banner-success-icon-color: #326528;
|
|
29
30
|
--component-alert-banner-warning-background-color: #ffedac;
|
|
31
|
+
--component-alert-banner-warning-icon-color: #433608;
|
|
30
32
|
--component-alert-banner-error-background-color: #f5c6c0;
|
|
33
|
+
--component-alert-banner-error-icon-color: #8c2113;
|
|
31
34
|
}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
--component-badge-shared-align-items: center;
|
|
8
8
|
--component-badge-shared-justify-content: center;
|
|
9
9
|
--component-badge-size-md-padding-top: 4px;
|
|
10
|
-
--component-badge-size-md-padding-right:
|
|
10
|
+
--component-badge-size-md-padding-right: 10px;
|
|
11
11
|
--component-badge-size-md-padding-bottom: 4px;
|
|
12
|
-
--component-badge-size-md-padding-left:
|
|
12
|
+
--component-badge-size-md-padding-left: 10px;
|
|
13
13
|
--component-badge-size-md-weight-strong-typography-font: normal 700 1rem/1.15
|
|
14
14
|
'Open Sans';
|
|
15
15
|
--component-badge-size-md-weight-strong-typography-letter-spacing: -0.03125rem;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--component-search-input-shared-color: #000000;
|
|
7
|
+
--component-search-input-shared-cursor: text;
|
|
8
|
+
--component-search-input-shared-padding-top: 0;
|
|
9
|
+
--component-search-input-shared-padding-right: 0.75rem;
|
|
10
|
+
--component-search-input-shared-padding-bottom: 0;
|
|
11
|
+
--component-search-input-shared-padding-left: 0.75rem;
|
|
12
|
+
--component-search-input-shared-margin-top: 0.25rem; /** spacing between the input itself and the previous element (label or description) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 8px, then margin-top should be 4px */
|
|
13
|
+
--component-search-input-shared-border-radius: 0.25rem;
|
|
14
|
+
--component-search-input-shared-border: 0.0625rem solid #545454;
|
|
15
|
+
--component-search-input-shared-background-color: #ffffff;
|
|
16
|
+
--component-search-input-shared-placeholder-color: #545454;
|
|
17
|
+
--component-search-input-shared-disabled-background-color: #ffffff;
|
|
18
|
+
--component-search-input-shared-disabled-cursor: not-allowed;
|
|
19
|
+
--component-search-input-shared-disabled-color: #999999;
|
|
20
|
+
--component-search-input-shared-disabled-border: 0.0625rem solid #dcdcdc;
|
|
21
|
+
--component-search-input-shared-focused-outline: 0.125rem auto #0072a9;
|
|
22
|
+
--component-search-input-shared-error-border: 0.0625rem solid #b42a19;
|
|
23
|
+
--component-search-input-sm-height: 2rem;
|
|
24
|
+
--component-search-input-sm-icon-margin-right: 6px;
|
|
25
|
+
--component-search-input-sm-typography-font: normal 460 0.875rem/1.3
|
|
26
|
+
'Open Sans';
|
|
27
|
+
--component-search-input-sm-typography-letter-spacing: 0rem;
|
|
28
|
+
--component-search-input-sm-typography-font-width: 95;
|
|
29
|
+
--component-search-input-md-height: 2.5rem;
|
|
30
|
+
--component-search-input-md-icon-margin-right: 8px;
|
|
31
|
+
--component-search-input-md-typography-font: normal 460 1rem/1.3 'Open Sans';
|
|
32
|
+
--component-search-input-md-typography-letter-spacing: 0rem;
|
|
33
|
+
--component-search-input-md-typography-font-width: 95;
|
|
34
|
+
}
|
|
@@ -27,14 +27,25 @@ const componentAlertBanner = {
|
|
|
27
27
|
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
28
28
|
letterSpacing: "0rem",
|
|
29
29
|
fontWidth: 95
|
|
30
|
-
}
|
|
31
|
-
icon: { color: "#545454" }
|
|
30
|
+
}
|
|
32
31
|
}
|
|
33
32
|
},
|
|
34
|
-
information: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
information: {
|
|
34
|
+
backgroundColor: "#e8f0fb",
|
|
35
|
+
icon: { color: "#00344e" }
|
|
36
|
+
},
|
|
37
|
+
success: {
|
|
38
|
+
backgroundColor: "#cde4c9",
|
|
39
|
+
icon: { color: "#326528" }
|
|
40
|
+
},
|
|
41
|
+
warning: {
|
|
42
|
+
backgroundColor: "#ffedac",
|
|
43
|
+
icon: { color: "#433608" }
|
|
44
|
+
},
|
|
45
|
+
error: {
|
|
46
|
+
backgroundColor: "#f5c6c0",
|
|
47
|
+
icon: { color: "#8c2113" }
|
|
48
|
+
}
|
|
38
49
|
};
|
|
39
50
|
//#endregion
|
|
40
51
|
exports.componentAlertBanner = componentAlertBanner;
|
|
@@ -28,22 +28,31 @@ export declare const componentAlertBanner: {
|
|
|
28
28
|
letterSpacing: string;
|
|
29
29
|
fontWidth: number;
|
|
30
30
|
};
|
|
31
|
-
icon: {
|
|
32
|
-
color: string;
|
|
33
|
-
};
|
|
34
31
|
};
|
|
35
32
|
};
|
|
36
33
|
information: {
|
|
37
34
|
backgroundColor: string;
|
|
35
|
+
icon: {
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
38
|
};
|
|
39
39
|
success: {
|
|
40
40
|
backgroundColor: string;
|
|
41
|
+
icon: {
|
|
42
|
+
color: string;
|
|
43
|
+
};
|
|
41
44
|
};
|
|
42
45
|
warning: {
|
|
43
46
|
backgroundColor: string;
|
|
47
|
+
icon: {
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
44
50
|
};
|
|
45
51
|
error: {
|
|
46
52
|
backgroundColor: string;
|
|
53
|
+
icon: {
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
47
56
|
};
|
|
48
57
|
};
|
|
49
58
|
export type ComponentAlertBanner = typeof componentAlertBanner;
|
|
@@ -28,22 +28,31 @@ export declare const componentAlertBanner: {
|
|
|
28
28
|
letterSpacing: string;
|
|
29
29
|
fontWidth: number;
|
|
30
30
|
};
|
|
31
|
-
icon: {
|
|
32
|
-
color: string;
|
|
33
|
-
};
|
|
34
31
|
};
|
|
35
32
|
};
|
|
36
33
|
information: {
|
|
37
34
|
backgroundColor: string;
|
|
35
|
+
icon: {
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
38
|
};
|
|
39
39
|
success: {
|
|
40
40
|
backgroundColor: string;
|
|
41
|
+
icon: {
|
|
42
|
+
color: string;
|
|
43
|
+
};
|
|
41
44
|
};
|
|
42
45
|
warning: {
|
|
43
46
|
backgroundColor: string;
|
|
47
|
+
icon: {
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
44
50
|
};
|
|
45
51
|
error: {
|
|
46
52
|
backgroundColor: string;
|
|
53
|
+
icon: {
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
47
56
|
};
|
|
48
57
|
};
|
|
49
58
|
export type ComponentAlertBanner = typeof componentAlertBanner;
|
|
@@ -27,14 +27,25 @@ const componentAlertBanner = {
|
|
|
27
27
|
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
28
28
|
letterSpacing: "0rem",
|
|
29
29
|
fontWidth: 95
|
|
30
|
-
}
|
|
31
|
-
icon: { color: "#545454" }
|
|
30
|
+
}
|
|
32
31
|
}
|
|
33
32
|
},
|
|
34
|
-
information: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
information: {
|
|
34
|
+
backgroundColor: "#e8f0fb",
|
|
35
|
+
icon: { color: "#00344e" }
|
|
36
|
+
},
|
|
37
|
+
success: {
|
|
38
|
+
backgroundColor: "#cde4c9",
|
|
39
|
+
icon: { color: "#326528" }
|
|
40
|
+
},
|
|
41
|
+
warning: {
|
|
42
|
+
backgroundColor: "#ffedac",
|
|
43
|
+
icon: { color: "#433608" }
|
|
44
|
+
},
|
|
45
|
+
error: {
|
|
46
|
+
backgroundColor: "#f5c6c0",
|
|
47
|
+
icon: { color: "#8c2113" }
|
|
48
|
+
}
|
|
38
49
|
};
|
|
39
50
|
//#endregion
|
|
40
51
|
export { componentAlertBanner };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/searchInput.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
const componentSearchInput = {
|
|
6
|
+
shared: {
|
|
7
|
+
color: "#000000",
|
|
8
|
+
cursor: "text",
|
|
9
|
+
padding: {
|
|
10
|
+
top: "0",
|
|
11
|
+
right: "0.75rem",
|
|
12
|
+
bottom: "0",
|
|
13
|
+
left: "0.75rem"
|
|
14
|
+
},
|
|
15
|
+
marginTop: "0.25rem",
|
|
16
|
+
borderRadius: "0.25rem",
|
|
17
|
+
border: "0.0625rem solid #545454",
|
|
18
|
+
backgroundColor: "#ffffff",
|
|
19
|
+
placeholderColor: "#545454",
|
|
20
|
+
disabled: {
|
|
21
|
+
backgroundColor: "#ffffff",
|
|
22
|
+
cursor: "not-allowed",
|
|
23
|
+
color: "#999999",
|
|
24
|
+
border: "0.0625rem solid #dcdcdc"
|
|
25
|
+
},
|
|
26
|
+
focused: { outline: "0.125rem auto #0072a9" },
|
|
27
|
+
error: { border: "0.0625rem solid #b42a19" }
|
|
28
|
+
},
|
|
29
|
+
sm: {
|
|
30
|
+
height: "2rem",
|
|
31
|
+
iconMarginRight: "6px",
|
|
32
|
+
typography: {
|
|
33
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
34
|
+
letterSpacing: "0rem",
|
|
35
|
+
fontWidth: 95
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
md: {
|
|
39
|
+
height: "2.5rem",
|
|
40
|
+
iconMarginRight: "8px",
|
|
41
|
+
typography: {
|
|
42
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
43
|
+
letterSpacing: "0rem",
|
|
44
|
+
fontWidth: 95
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.componentSearchInput = componentSearchInput;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/searchInput.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
export declare const componentSearchInput: {
|
|
6
|
+
shared: {
|
|
7
|
+
color: string;
|
|
8
|
+
cursor: string;
|
|
9
|
+
padding: {
|
|
10
|
+
top: string;
|
|
11
|
+
right: string;
|
|
12
|
+
bottom: string;
|
|
13
|
+
left: string;
|
|
14
|
+
};
|
|
15
|
+
marginTop: string;
|
|
16
|
+
borderRadius: string;
|
|
17
|
+
border: string;
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
placeholderColor: string;
|
|
20
|
+
disabled: {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
cursor: string;
|
|
23
|
+
color: string;
|
|
24
|
+
border: string;
|
|
25
|
+
};
|
|
26
|
+
focused: {
|
|
27
|
+
outline: string;
|
|
28
|
+
};
|
|
29
|
+
error: {
|
|
30
|
+
border: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
sm: {
|
|
34
|
+
height: string;
|
|
35
|
+
iconMarginRight: string;
|
|
36
|
+
typography: {
|
|
37
|
+
font: string;
|
|
38
|
+
letterSpacing: string;
|
|
39
|
+
fontWidth: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
md: {
|
|
43
|
+
height: string;
|
|
44
|
+
iconMarginRight: string;
|
|
45
|
+
typography: {
|
|
46
|
+
font: string;
|
|
47
|
+
letterSpacing: string;
|
|
48
|
+
fontWidth: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type ComponentSearchInput = typeof componentSearchInput;
|
|
53
|
+
//#endregion
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/searchInput.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
export declare const componentSearchInput: {
|
|
6
|
+
shared: {
|
|
7
|
+
color: string;
|
|
8
|
+
cursor: string;
|
|
9
|
+
padding: {
|
|
10
|
+
top: string;
|
|
11
|
+
right: string;
|
|
12
|
+
bottom: string;
|
|
13
|
+
left: string;
|
|
14
|
+
};
|
|
15
|
+
marginTop: string;
|
|
16
|
+
borderRadius: string;
|
|
17
|
+
border: string;
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
placeholderColor: string;
|
|
20
|
+
disabled: {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
cursor: string;
|
|
23
|
+
color: string;
|
|
24
|
+
border: string;
|
|
25
|
+
};
|
|
26
|
+
focused: {
|
|
27
|
+
outline: string;
|
|
28
|
+
};
|
|
29
|
+
error: {
|
|
30
|
+
border: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
sm: {
|
|
34
|
+
height: string;
|
|
35
|
+
iconMarginRight: string;
|
|
36
|
+
typography: {
|
|
37
|
+
font: string;
|
|
38
|
+
letterSpacing: string;
|
|
39
|
+
fontWidth: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
md: {
|
|
43
|
+
height: string;
|
|
44
|
+
iconMarginRight: string;
|
|
45
|
+
typography: {
|
|
46
|
+
font: string;
|
|
47
|
+
letterSpacing: string;
|
|
48
|
+
fontWidth: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type ComponentSearchInput = typeof componentSearchInput;
|
|
53
|
+
//#endregion
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/searchInput.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
const componentSearchInput = {
|
|
6
|
+
shared: {
|
|
7
|
+
color: "#000000",
|
|
8
|
+
cursor: "text",
|
|
9
|
+
padding: {
|
|
10
|
+
top: "0",
|
|
11
|
+
right: "0.75rem",
|
|
12
|
+
bottom: "0",
|
|
13
|
+
left: "0.75rem"
|
|
14
|
+
},
|
|
15
|
+
marginTop: "0.25rem",
|
|
16
|
+
borderRadius: "0.25rem",
|
|
17
|
+
border: "0.0625rem solid #545454",
|
|
18
|
+
backgroundColor: "#ffffff",
|
|
19
|
+
placeholderColor: "#545454",
|
|
20
|
+
disabled: {
|
|
21
|
+
backgroundColor: "#ffffff",
|
|
22
|
+
cursor: "not-allowed",
|
|
23
|
+
color: "#999999",
|
|
24
|
+
border: "0.0625rem solid #dcdcdc"
|
|
25
|
+
},
|
|
26
|
+
focused: { outline: "0.125rem auto #0072a9" },
|
|
27
|
+
error: { border: "0.0625rem solid #b42a19" }
|
|
28
|
+
},
|
|
29
|
+
sm: {
|
|
30
|
+
height: "2rem",
|
|
31
|
+
iconMarginRight: "6px",
|
|
32
|
+
typography: {
|
|
33
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
34
|
+
letterSpacing: "0rem",
|
|
35
|
+
fontWidth: 95
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
md: {
|
|
39
|
+
height: "2.5rem",
|
|
40
|
+
iconMarginRight: "8px",
|
|
41
|
+
typography: {
|
|
42
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
43
|
+
letterSpacing: "0rem",
|
|
44
|
+
fontWidth: 95
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { componentSearchInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.76",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/guardian/stand"
|
|
6
6
|
},
|
|
@@ -197,6 +197,16 @@
|
|
|
197
197
|
"default": "./dist/Select.cjs"
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
|
+
"./SearchInput": {
|
|
201
|
+
"import": {
|
|
202
|
+
"types": "./dist/SearchInput.d.ts",
|
|
203
|
+
"default": "./dist/SearchInput.js"
|
|
204
|
+
},
|
|
205
|
+
"require": {
|
|
206
|
+
"types": "./dist/SearchInput.d.cts",
|
|
207
|
+
"default": "./dist/SearchInput.cjs"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
200
210
|
"./TextInput": {
|
|
201
211
|
"import": {
|
|
202
212
|
"types": "./dist/TextInput.d.ts",
|
|
@@ -472,6 +482,7 @@
|
|
|
472
482
|
"./component/form.css": "./dist/styleD/build/css/component/form.css",
|
|
473
483
|
"./component/inlineMessage.css": "./dist/styleD/build/css/component/inlineMessage.css",
|
|
474
484
|
"./component/select.css": "./dist/styleD/build/css/component/select.css",
|
|
485
|
+
"./component/searchInput.css": "./dist/styleD/build/css/component/searchInput.css",
|
|
475
486
|
"./component/textInput.css": "./dist/styleD/build/css/component/textInput.css",
|
|
476
487
|
"./component/radioGroup.css": "./dist/styleD/build/css/component/radioGroup.css",
|
|
477
488
|
"./component/checkbox.css": "./dist/styleD/build/css/component/checkbox.css",
|
|
@@ -566,6 +577,9 @@
|
|
|
566
577
|
"Select": [
|
|
567
578
|
"./dist/Select.d.ts"
|
|
568
579
|
],
|
|
580
|
+
"SearchInput": [
|
|
581
|
+
"./dist/SearchInput.d.ts"
|
|
582
|
+
],
|
|
569
583
|
"TextInput": [
|
|
570
584
|
"./dist/TextInput.d.ts"
|
|
571
585
|
],
|