@guardian/stand 0.0.51 → 0.0.53
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/Modal.cjs +7 -0
- package/dist/Modal.d.cts +5 -0
- package/dist/Modal.d.ts +5 -0
- package/dist/Modal.js +3 -0
- package/dist/components/Form/Form.cjs +1 -0
- package/dist/components/Form/Form.js +1 -0
- package/dist/components/InlineMessage/InlineMessage.cjs +2 -1
- package/dist/components/InlineMessage/InlineMessage.d.cts +1 -0
- package/dist/components/InlineMessage/InlineMessage.d.ts +1 -0
- package/dist/components/InlineMessage/InlineMessage.js +2 -1
- package/dist/components/InlineMessage/types.d.cts +5 -0
- package/dist/components/InlineMessage/types.d.ts +5 -0
- package/dist/components/Modal/Modal.cjs +97 -0
- package/dist/components/Modal/Modal.d.cts +21 -0
- package/dist/components/Modal/Modal.d.ts +21 -0
- package/dist/components/Modal/Modal.js +93 -0
- package/dist/components/Modal/styles.cjs +100 -0
- package/dist/components/Modal/styles.d.cts +10 -0
- package/dist/components/Modal/styles.d.ts +10 -0
- package/dist/components/Modal/styles.js +92 -0
- package/dist/components/Modal/types.d.cts +20 -0
- package/dist/components/Modal/types.d.ts +20 -0
- package/dist/components/TagPicker/Autocomplete.js +11 -11
- package/dist/components/TagPicker/TagPicker.js +7 -7
- package/dist/components/TagPicker/TagSearchWithFilters.js +4 -4
- package/dist/components/TagPicker/TagTable.js +19 -19
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.cjs +2 -2
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.js +2 -2
- package/dist/components/TopBar/TopBarNavigation/styles.cjs +2 -2
- package/dist/components/TopBar/TopBarNavigation/styles.js +2 -2
- package/dist/components/Typography/Typography.cjs +7 -4
- package/dist/components/Typography/Typography.d.cts +1 -5
- package/dist/components/Typography/Typography.d.ts +1 -5
- package/dist/components/Typography/Typography.js +7 -4
- package/dist/components/Typography/types.d.cts +3 -2
- package/dist/components/Typography/types.d.ts +3 -2
- package/dist/components/UserMenu/PreferenceRadioGroup.js +5 -5
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -1
- package/dist/styleD/build/css/component/modal.css +51 -0
- package/dist/styleD/build/typescript/component/modal.cjs +72 -0
- package/dist/styleD/build/typescript/component/modal.d.cts +75 -0
- package/dist/styleD/build/typescript/component/modal.d.ts +75 -0
- package/dist/styleD/build/typescript/component/modal.js +72 -0
- package/package.json +16 -2
|
@@ -2,7 +2,7 @@ import { Icon } from "../Icon/Icon.js";
|
|
|
2
2
|
import { autocompleteInputStyles, iconStyles, listboxInfoStyles, listboxItemStyles, listboxStyles } from "./styles.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { css } from "@emotion/react";
|
|
5
|
-
import { jsx
|
|
5
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
6
6
|
import { Collection, ComboBox, Input, ListBox, ListBoxItem, ListBoxLoadMoreItem, Popover } from "react-aria-components";
|
|
7
7
|
//#region src/components/TagPicker/Autocomplete.tsx
|
|
8
8
|
/**
|
|
@@ -92,14 +92,14 @@ function Autocomplete({ addSelection, loading, onTextInputChange, options, label
|
|
|
92
92
|
const [hoveredItemId, setHoveredItemId] = useState();
|
|
93
93
|
const [upOrDownKeyPressed, setUpOrDownKeyPressed] = useState(false);
|
|
94
94
|
const listBoxIsInUse = upOrDownKeyPressed || !!hoveredItemId;
|
|
95
|
-
const iconContent = icon ? /* @__PURE__ */ jsx
|
|
95
|
+
const iconContent = icon ? /* @__PURE__ */ jsx(Icon, {
|
|
96
96
|
css: iconStyles(theme),
|
|
97
97
|
children: icon
|
|
98
|
-
}) : symbol ? /* @__PURE__ */ jsx
|
|
98
|
+
}) : symbol ? /* @__PURE__ */ jsx(Icon, {
|
|
99
99
|
symbol,
|
|
100
100
|
css: iconStyles(theme)
|
|
101
101
|
}) : null;
|
|
102
|
-
return /* @__PURE__ */ jsx
|
|
102
|
+
return /* @__PURE__ */ jsx("div", {
|
|
103
103
|
css: [css`
|
|
104
104
|
position: relative;
|
|
105
105
|
`, cssOverrides],
|
|
@@ -123,7 +123,7 @@ function Autocomplete({ addSelection, loading, onTextInputChange, options, label
|
|
|
123
123
|
menuTrigger: "focus",
|
|
124
124
|
shouldFocusWrap: true,
|
|
125
125
|
children: [
|
|
126
|
-
/* @__PURE__ */ jsx
|
|
126
|
+
/* @__PURE__ */ jsx(Input, {
|
|
127
127
|
css: autocompleteInputStyles(!!iconContent, theme),
|
|
128
128
|
placeholder,
|
|
129
129
|
disabled,
|
|
@@ -136,7 +136,7 @@ function Autocomplete({ addSelection, loading, onTextInputChange, options, label
|
|
|
136
136
|
}
|
|
137
137
|
} : void 0
|
|
138
138
|
}),
|
|
139
|
-
/* @__PURE__ */ jsx
|
|
139
|
+
/* @__PURE__ */ jsx(Popover, {
|
|
140
140
|
placement: "bottom",
|
|
141
141
|
css: css`
|
|
142
142
|
width: var(--trigger-width);
|
|
@@ -146,13 +146,13 @@ function Autocomplete({ addSelection, loading, onTextInputChange, options, label
|
|
|
146
146
|
children: /* @__PURE__ */ jsxs(ListBox, {
|
|
147
147
|
css: (value || options.length || loading) && listboxStyles(theme),
|
|
148
148
|
autoFocus: "first",
|
|
149
|
-
renderEmptyState: () => value && !loading && /* @__PURE__ */ jsx
|
|
149
|
+
renderEmptyState: () => value && !loading && /* @__PURE__ */ jsx("div", {
|
|
150
150
|
css: listboxInfoStyles(theme),
|
|
151
151
|
children: "No results"
|
|
152
152
|
}),
|
|
153
|
-
children: [/* @__PURE__ */ jsx
|
|
153
|
+
children: [/* @__PURE__ */ jsx(Collection, {
|
|
154
154
|
items: options,
|
|
155
|
-
children: (item) => /* @__PURE__ */ jsx
|
|
155
|
+
children: (item) => /* @__PURE__ */ jsx(ListBoxItem, {
|
|
156
156
|
css: listboxItemStyles(theme),
|
|
157
157
|
value: item,
|
|
158
158
|
onHoverChange: (isHovering) => {
|
|
@@ -163,10 +163,10 @@ function Autocomplete({ addSelection, loading, onTextInputChange, options, label
|
|
|
163
163
|
},
|
|
164
164
|
children: item.name
|
|
165
165
|
}, item.id)
|
|
166
|
-
}), /* @__PURE__ */ jsx
|
|
166
|
+
}), /* @__PURE__ */ jsx(ListBoxLoadMoreItem, {
|
|
167
167
|
css: listboxInfoStyles(theme),
|
|
168
168
|
isLoading: loading,
|
|
169
|
-
children: /* @__PURE__ */ jsx
|
|
169
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
170
170
|
"aria-label": "Loading",
|
|
171
171
|
children: loadingIcon ?? "Loading..."
|
|
172
172
|
})
|
|
@@ -4,7 +4,7 @@ import { offlineSectionStyles, tagPickerStyles } from "./styles.js";
|
|
|
4
4
|
import { TagTable } from "./TagTable.js";
|
|
5
5
|
import { TagSearchWithFilters } from "./TagSearchWithFilters.js";
|
|
6
6
|
import { css } from "@emotion/react";
|
|
7
|
-
import { Fragment, jsx
|
|
7
|
+
import { Fragment, jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
8
8
|
//#region src/components/TagPicker/TagPicker.tsx
|
|
9
9
|
/**
|
|
10
10
|
* ## TagPicker
|
|
@@ -34,7 +34,7 @@ function TagPicker({ addTag, loading, offline = false, onReorder, onSearch, opti
|
|
|
34
34
|
return /* @__PURE__ */ jsxs("div", {
|
|
35
35
|
css: [tagPickerStyles(theme), cssOverrides],
|
|
36
36
|
children: [
|
|
37
|
-
/* @__PURE__ */ jsx
|
|
37
|
+
/* @__PURE__ */ jsx(TagSearchWithFilters, {
|
|
38
38
|
icon: searchIcon,
|
|
39
39
|
onSearch,
|
|
40
40
|
addSelection: addTag,
|
|
@@ -58,15 +58,15 @@ function TagPicker({ addTag, loading, offline = false, onReorder, onSearch, opti
|
|
|
58
58
|
"Unfortunately, we can't fetch tag information.",
|
|
59
59
|
" ",
|
|
60
60
|
showBackupListWhenOffline && "Choose from the following tags",
|
|
61
|
-
showBackupListWhenOffline && retryConnection && /* @__PURE__ */ jsx
|
|
62
|
-
retryConnection && /* @__PURE__ */ jsx
|
|
61
|
+
showBackupListWhenOffline && retryConnection && /* @__PURE__ */ jsx(Fragment, { children: " or " }),
|
|
62
|
+
retryConnection && /* @__PURE__ */ jsx(Button, {
|
|
63
63
|
size: "xs",
|
|
64
64
|
variant: "secondary",
|
|
65
65
|
onClick: () => retryConnection(),
|
|
66
66
|
children: "Retry"
|
|
67
67
|
})
|
|
68
68
|
]
|
|
69
|
-
}), showBackupListWhenOffline && /* @__PURE__ */ jsx
|
|
69
|
+
}), showBackupListWhenOffline && /* @__PURE__ */ jsx(Fragment, { children: backupTagsWithoutSelected.map((tag, index) => /* @__PURE__ */ jsx(Button, {
|
|
70
70
|
onClick: () => addTag(tag),
|
|
71
71
|
variant: "tertiary",
|
|
72
72
|
size: "sm",
|
|
@@ -75,7 +75,7 @@ function TagPicker({ addTag, loading, offline = false, onReorder, onSearch, opti
|
|
|
75
75
|
children: tag.name
|
|
76
76
|
}, index)) })]
|
|
77
77
|
}),
|
|
78
|
-
/* @__PURE__ */ jsx
|
|
78
|
+
/* @__PURE__ */ jsx(TagTable, {
|
|
79
79
|
rows: tags,
|
|
80
80
|
canRemove,
|
|
81
81
|
removeAction: readOnly ? void 0 : removeTag,
|
|
@@ -88,7 +88,7 @@ function TagPicker({ addTag, loading, offline = false, onReorder, onSearch, opti
|
|
|
88
88
|
removeIcon,
|
|
89
89
|
theme: tagTableTheme
|
|
90
90
|
}),
|
|
91
|
-
!readOnly && /* @__PURE__ */ jsx
|
|
91
|
+
!readOnly && /* @__PURE__ */ jsx(TagTable, {
|
|
92
92
|
heading: "Proposed Tags",
|
|
93
93
|
theme: proposedTagTableTheme,
|
|
94
94
|
filterRows,
|
|
@@ -3,7 +3,7 @@ import { filterSelectCssOverrides, modifyFilterSelectTheme, tagSearchWithFilterS
|
|
|
3
3
|
import { Autocomplete } from "./Autocomplete.js";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { css } from "@emotion/react";
|
|
6
|
-
import { jsx
|
|
6
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
7
7
|
//#region src/components/TagPicker/TagSearchWithFilters.tsx
|
|
8
8
|
function TagSearchWithFilters({ addSelection, onSearch, filterOptions, disabled, theme, autoCompleteTheme, selectTheme = {}, ...tagAutocompleteProps }) {
|
|
9
9
|
const [queryText, setQueryText] = useState("");
|
|
@@ -18,7 +18,7 @@ function TagSearchWithFilters({ addSelection, onSearch, filterOptions, disabled,
|
|
|
18
18
|
const shouldRenderSelect = filterOptions && filterOptions.length > 1;
|
|
19
19
|
return /* @__PURE__ */ jsxs("div", {
|
|
20
20
|
css: tagSearchWithFilterStyles(theme),
|
|
21
|
-
children: [/* @__PURE__ */ jsx
|
|
21
|
+
children: [/* @__PURE__ */ jsx(Autocomplete, {
|
|
22
22
|
cssOverrides: css({ flex: 1 }),
|
|
23
23
|
onTextInputChange: setQueryText,
|
|
24
24
|
addSelection: (tag) => {
|
|
@@ -30,7 +30,7 @@ function TagSearchWithFilters({ addSelection, onSearch, filterOptions, disabled,
|
|
|
30
30
|
disabled,
|
|
31
31
|
theme: autoCompleteTheme,
|
|
32
32
|
addFirstOnEnter: true
|
|
33
|
-
}), shouldRenderSelect && /* @__PURE__ */ jsx
|
|
33
|
+
}), shouldRenderSelect && /* @__PURE__ */ jsx(Select, {
|
|
34
34
|
theme: modifyFilterSelectTheme(selectTheme),
|
|
35
35
|
cssOverrides: filterSelectCssOverrides(theme),
|
|
36
36
|
isDisabled: disabled,
|
|
@@ -41,7 +41,7 @@ function TagSearchWithFilters({ addSelection, onSearch, filterOptions, disabled,
|
|
|
41
41
|
if (Array.isArray(selection) || selection === null) return;
|
|
42
42
|
setFilterValue(selection.toString());
|
|
43
43
|
},
|
|
44
|
-
children: filterOptions.map((data, index) => /* @__PURE__ */ jsx
|
|
44
|
+
children: filterOptions.map((data, index) => /* @__PURE__ */ jsx(Option, {
|
|
45
45
|
value: data,
|
|
46
46
|
id: data.filter,
|
|
47
47
|
children: data.label
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { tagTableAddButtonStyles, tagTableCellStyles, tagTableDragButtonStyles, tagTableHeadingStyles, tagTableRemoveButtonStyles, tagTableRowStyles, tagTableStyles, tagTableTypeBadgeStyles } from "./styles.js";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
3
|
import { css } from "@emotion/react";
|
|
4
|
-
import { jsx
|
|
4
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
5
5
|
import { Button, Cell, Column, Row, Table, TableBody, TableHeader, useDragAndDrop } from "react-aria-components";
|
|
6
6
|
//#region src/components/TagPicker/TagTable.tsx
|
|
7
7
|
const rowToTag = (row) => "tag" in row ? row.tag : row;
|
|
8
8
|
const TypeBadge = (type, theme) => {
|
|
9
|
-
return /* @__PURE__ */ jsx
|
|
9
|
+
return /* @__PURE__ */ jsx("span", {
|
|
10
10
|
css: tagTableTypeBadgeStyles(theme),
|
|
11
11
|
children: type
|
|
12
12
|
});
|
|
@@ -90,7 +90,7 @@ function TagTable({ rows, filterRows, heading, showTagType, showTagSectionName,
|
|
|
90
90
|
if (filtered.length === 0) return null;
|
|
91
91
|
return /* @__PURE__ */ jsxs("div", {
|
|
92
92
|
css: cssOverrides,
|
|
93
|
-
children: [heading && /* @__PURE__ */ jsx
|
|
93
|
+
children: [heading && /* @__PURE__ */ jsx("div", {
|
|
94
94
|
css: tagTableHeadingStyles(theme),
|
|
95
95
|
children: heading
|
|
96
96
|
}), /* @__PURE__ */ jsxs(Table, {
|
|
@@ -101,17 +101,17 @@ function TagTable({ rows, filterRows, heading, showTagType, showTagSectionName,
|
|
|
101
101
|
children: [/* @__PURE__ */ jsxs(TableHeader, {
|
|
102
102
|
hidden: true,
|
|
103
103
|
children: [
|
|
104
|
-
onReorder && /* @__PURE__ */ jsx
|
|
105
|
-
showTagType && /* @__PURE__ */ jsx
|
|
106
|
-
/* @__PURE__ */ jsx
|
|
104
|
+
onReorder && /* @__PURE__ */ jsx(Column, {}),
|
|
105
|
+
showTagType && /* @__PURE__ */ jsx(Column, { children: "Type" }),
|
|
106
|
+
/* @__PURE__ */ jsx(Column, {
|
|
107
107
|
isRowHeader: true,
|
|
108
108
|
children: "Name"
|
|
109
109
|
}),
|
|
110
|
-
showTagSectionName && /* @__PURE__ */ jsx
|
|
111
|
-
removeTag && /* @__PURE__ */ jsx
|
|
112
|
-
addTag && /* @__PURE__ */ jsx
|
|
110
|
+
showTagSectionName && /* @__PURE__ */ jsx(Column, { children: "Section" }),
|
|
111
|
+
removeTag && /* @__PURE__ */ jsx(Column, {}),
|
|
112
|
+
addTag && /* @__PURE__ */ jsx(Column, {})
|
|
113
113
|
]
|
|
114
|
-
}), /* @__PURE__ */ jsx
|
|
114
|
+
}), /* @__PURE__ */ jsx(TableBody, {
|
|
115
115
|
items: filtered,
|
|
116
116
|
dependencies: [localRows],
|
|
117
117
|
children: (item) => /* @__PURE__ */ jsxs(Row, {
|
|
@@ -119,42 +119,42 @@ function TagTable({ rows, filterRows, heading, showTagType, showTagSectionName,
|
|
|
119
119
|
css: tagTableRowStyles(canDrag, highlightFirstRow, theme),
|
|
120
120
|
textValue: rowToTag(item).name,
|
|
121
121
|
children: [
|
|
122
|
-
onReorder && /* @__PURE__ */ jsx
|
|
122
|
+
onReorder && /* @__PURE__ */ jsx(Cell, {
|
|
123
123
|
css: [css`
|
|
124
124
|
width: 1%;
|
|
125
125
|
`],
|
|
126
|
-
children: /* @__PURE__ */ jsx
|
|
126
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
127
127
|
slot: "drag",
|
|
128
128
|
css: tagTableDragButtonStyles,
|
|
129
129
|
children: gripIcon
|
|
130
130
|
})
|
|
131
131
|
}),
|
|
132
|
-
showTagType && /* @__PURE__ */ jsx
|
|
132
|
+
showTagType && /* @__PURE__ */ jsx(Cell, {
|
|
133
133
|
css: [tagTableCellStyles(theme), css`
|
|
134
134
|
position: relative;
|
|
135
135
|
width: 15%;
|
|
136
136
|
`],
|
|
137
137
|
children: TypeBadge(rowToTag(item).type)
|
|
138
138
|
}),
|
|
139
|
-
/* @__PURE__ */ jsx
|
|
139
|
+
/* @__PURE__ */ jsx(Cell, {
|
|
140
140
|
css: [tagTableCellStyles(theme), css`
|
|
141
141
|
width: 50%;
|
|
142
142
|
`],
|
|
143
143
|
"data-testid": `tags-table-item-${filtered.indexOf(item)}-name`,
|
|
144
144
|
children: rowToTag(item).name
|
|
145
145
|
}),
|
|
146
|
-
showTagSectionName && /* @__PURE__ */ jsx
|
|
146
|
+
showTagSectionName && /* @__PURE__ */ jsx(Cell, {
|
|
147
147
|
css: [tagTableCellStyles(theme), css`
|
|
148
148
|
width: 20%;
|
|
149
149
|
`],
|
|
150
150
|
children: rowToTag(item).sectionName
|
|
151
151
|
}),
|
|
152
|
-
removeTag && /* @__PURE__ */ jsx
|
|
152
|
+
removeTag && /* @__PURE__ */ jsx(Cell, {
|
|
153
153
|
css: [tagTableCellStyles(theme), css`
|
|
154
154
|
text-align: center;
|
|
155
155
|
width: 10%;
|
|
156
156
|
`],
|
|
157
|
-
children: canRemove(item) && /* @__PURE__ */ jsx
|
|
157
|
+
children: canRemove(item) && /* @__PURE__ */ jsx(Button, {
|
|
158
158
|
css: tagTableRemoveButtonStyles,
|
|
159
159
|
onPress: () => {
|
|
160
160
|
removeTag(item);
|
|
@@ -163,12 +163,12 @@ function TagTable({ rows, filterRows, heading, showTagType, showTagSectionName,
|
|
|
163
163
|
children: removeIcon ?? "Remove"
|
|
164
164
|
})
|
|
165
165
|
}),
|
|
166
|
-
addTag && /* @__PURE__ */ jsx
|
|
166
|
+
addTag && /* @__PURE__ */ jsx(Cell, {
|
|
167
167
|
css: [tagTableCellStyles(theme), css`
|
|
168
168
|
text-align: center;
|
|
169
169
|
width: 10%;
|
|
170
170
|
`],
|
|
171
|
-
children: /* @__PURE__ */ jsx
|
|
171
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
172
172
|
css: tagTableAddButtonStyles(theme),
|
|
173
173
|
onPress: () => {
|
|
174
174
|
addTag(item);
|
|
@@ -32,7 +32,7 @@ function TopBarNavigation({ text, size = "md", isSelected = false, icon, menuChi
|
|
|
32
32
|
children: icon
|
|
33
33
|
}),
|
|
34
34
|
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
35
|
-
css: require_styles.topBarNavigationTextStyles(mergedTheme),
|
|
35
|
+
css: require_styles.topBarNavigationTextStyles(mergedTheme, { hasIcon: !!icon }),
|
|
36
36
|
children: text
|
|
37
37
|
}),
|
|
38
38
|
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("div", {
|
|
@@ -60,7 +60,7 @@ function TopBarNavigation({ text, size = "md", isSelected = false, icon, menuChi
|
|
|
60
60
|
size: iconSize,
|
|
61
61
|
children: icon
|
|
62
62
|
}), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
63
|
-
css: require_styles.topBarNavigationTextStyles(mergedTheme),
|
|
63
|
+
css: require_styles.topBarNavigationTextStyles(mergedTheme, { hasIcon: !!icon }),
|
|
64
64
|
children: text
|
|
65
65
|
})]
|
|
66
66
|
})
|
|
@@ -32,7 +32,7 @@ function TopBarNavigation({ text, size = "md", isSelected = false, icon, menuChi
|
|
|
32
32
|
children: icon
|
|
33
33
|
}),
|
|
34
34
|
/* @__PURE__ */ jsx("span", {
|
|
35
|
-
css: topBarNavigationTextStyles(mergedTheme),
|
|
35
|
+
css: topBarNavigationTextStyles(mergedTheme, { hasIcon: !!icon }),
|
|
36
36
|
children: text
|
|
37
37
|
}),
|
|
38
38
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -60,7 +60,7 @@ function TopBarNavigation({ text, size = "md", isSelected = false, icon, menuChi
|
|
|
60
60
|
size: iconSize,
|
|
61
61
|
children: icon
|
|
62
62
|
}), /* @__PURE__ */ jsx("span", {
|
|
63
|
-
css: topBarNavigationTextStyles(mergedTheme),
|
|
63
|
+
css: topBarNavigationTextStyles(mergedTheme, { hasIcon: !!icon }),
|
|
64
64
|
children: text
|
|
65
65
|
})]
|
|
66
66
|
})
|
|
@@ -78,8 +78,8 @@ const topBarNavigationDividerStyles = (theme, { alignment }, _menuOpen) => _emot
|
|
|
78
78
|
${alignment === "left" ? "border-right" : "border-left"}: ${theme.shared.divider};
|
|
79
79
|
`}
|
|
80
80
|
`;
|
|
81
|
-
const topBarNavigationTextStyles = (theme) => _emotion_react.css`
|
|
82
|
-
margin-left: ${theme.text.margin.left}
|
|
81
|
+
const topBarNavigationTextStyles = (theme, { hasIcon }) => _emotion_react.css`
|
|
82
|
+
${hasIcon && `margin-left: ${theme.text.margin.left};`}
|
|
83
83
|
`;
|
|
84
84
|
const topBarNavigationTypographyStyles = (theme, size) => {
|
|
85
85
|
return size == "md" ? _emotion_react.css`
|
|
@@ -78,8 +78,8 @@ const topBarNavigationDividerStyles = (theme, { alignment }, _menuOpen) => css`
|
|
|
78
78
|
${alignment === "left" ? "border-right" : "border-left"}: ${theme.shared.divider};
|
|
79
79
|
`}
|
|
80
80
|
`;
|
|
81
|
-
const topBarNavigationTextStyles = (theme) => css`
|
|
82
|
-
margin-left: ${theme.text.margin.left}
|
|
81
|
+
const topBarNavigationTextStyles = (theme, { hasIcon }) => css`
|
|
82
|
+
${hasIcon && `margin-left: ${theme.text.margin.left};`}
|
|
83
83
|
`;
|
|
84
84
|
const topBarNavigationTypographyStyles = (theme, size) => {
|
|
85
85
|
return size == "md" ? css`
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
2
2
|
const require_styles = require("./styles.cjs");
|
|
3
|
-
let
|
|
3
|
+
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
4
|
+
let react_aria_components = require("react-aria-components");
|
|
4
5
|
//#region src/components/Typography/Typography.tsx
|
|
5
6
|
const Typography = ({ element = "span", variant = "bodyMd", children, cssOverrides, theme = {}, ...props }) => {
|
|
6
|
-
return (0,
|
|
7
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(react_aria_components.Text, {
|
|
8
|
+
elementType: element,
|
|
7
9
|
css: [require_styles.typographyStyles(require_mergeDeep.mergeDeep(require_styles.defaultTypographyTheme, theme), { variant }), cssOverrides],
|
|
8
|
-
...props
|
|
9
|
-
|
|
10
|
+
...props,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
10
13
|
};
|
|
11
14
|
//#endregion
|
|
12
15
|
exports.Typography = Typography;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TypographyProps } from "./types.cjs";
|
|
3
2
|
|
|
4
3
|
//#region src/components/Typography/Typography.d.ts
|
|
@@ -9,9 +8,6 @@ declare const Typography: ({
|
|
|
9
8
|
cssOverrides,
|
|
10
9
|
theme,
|
|
11
10
|
...props
|
|
12
|
-
}: TypographyProps) => import("react").
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
css: (import("@emotion/react").SerializedStyles | import("@emotion/react").SerializedStyles[] | undefined)[];
|
|
15
|
-
}, HTMLElement>;
|
|
11
|
+
}: TypographyProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
12
|
//#endregion
|
|
17
13
|
export { Typography };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TypographyProps } from "./types.js";
|
|
3
2
|
|
|
4
3
|
//#region src/components/Typography/Typography.d.ts
|
|
@@ -9,9 +8,6 @@ declare const Typography: ({
|
|
|
9
8
|
cssOverrides,
|
|
10
9
|
theme,
|
|
11
10
|
...props
|
|
12
|
-
}: TypographyProps) => import("react").
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
css: (import("@emotion/react").SerializedStyles | import("@emotion/react").SerializedStyles[] | undefined)[];
|
|
15
|
-
}, HTMLElement>;
|
|
11
|
+
}: TypographyProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
12
|
//#endregion
|
|
17
13
|
export { Typography };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { mergeDeep } from "../../util/mergeDeep.js";
|
|
2
2
|
import { defaultTypographyTheme, typographyStyles } from "./styles.js";
|
|
3
|
-
import { jsx } from "@emotion/react";
|
|
3
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { Text } from "react-aria-components";
|
|
4
5
|
//#region src/components/Typography/Typography.tsx
|
|
5
6
|
const Typography = ({ element = "span", variant = "bodyMd", children, cssOverrides, theme = {}, ...props }) => {
|
|
6
|
-
return jsx(
|
|
7
|
+
return /* @__PURE__ */ jsx(Text, {
|
|
8
|
+
elementType: element,
|
|
7
9
|
css: [typographyStyles(mergeDeep(defaultTypographyTheme, theme), { variant }), cssOverrides],
|
|
8
|
-
...props
|
|
9
|
-
|
|
10
|
+
...props,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
10
13
|
};
|
|
11
14
|
//#endregion
|
|
12
15
|
export { Typography };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DefaultProps } from "../../util/types.cjs";
|
|
2
2
|
import { SemanticTypography } from "../../styleD/build/typescript/semantic/typography.cjs";
|
|
3
3
|
import { TypographyTheme } from "./styles.cjs";
|
|
4
|
+
import { TextProps } from "react-aria-components";
|
|
4
5
|
|
|
5
6
|
//#region src/components/Typography/types.d.ts
|
|
6
7
|
type TypographyVariant = keyof SemanticTypography;
|
|
7
|
-
interface TypographyProps extends
|
|
8
|
+
interface TypographyProps extends DefaultProps<TypographyTheme, TextProps['className']>, Omit<TextProps, 'elementType' | 'className'> {
|
|
8
9
|
/**
|
|
9
10
|
* HTML element to render with font applied to
|
|
10
11
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DefaultProps } from "../../util/types.js";
|
|
2
2
|
import { SemanticTypography } from "../../styleD/build/typescript/semantic/typography.js";
|
|
3
3
|
import { TypographyTheme } from "./styles.js";
|
|
4
|
+
import { TextProps } from "react-aria-components";
|
|
4
5
|
|
|
5
6
|
//#region src/components/Typography/types.d.ts
|
|
6
7
|
type TypographyVariant = keyof SemanticTypography;
|
|
7
|
-
interface TypographyProps extends
|
|
8
|
+
interface TypographyProps extends DefaultProps<TypographyTheme, TextProps['className']>, Omit<TextProps, 'elementType' | 'className'> {
|
|
8
9
|
/**
|
|
9
10
|
* HTML element to render with font applied to
|
|
10
11
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { radioGroupLabelStyles, toggleButtonRowsGroupStyles, toggleButtonStackedGroupStyles, toggleButtonStyles } from "./styles.js";
|
|
2
2
|
import { css } from "@emotion/react";
|
|
3
|
-
import { jsx
|
|
3
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { ToggleButton, ToggleButtonGroup } from "react-aria-components";
|
|
5
5
|
//#region src/components/UserMenu/PreferenceRadioGroup.tsx
|
|
6
6
|
function PreferenceRadioGroup({ name, options, currentValue, changeValue, theme, format = "stack" }) {
|
|
@@ -8,10 +8,10 @@ function PreferenceRadioGroup({ name, options, currentValue, changeValue, theme,
|
|
|
8
8
|
const buttonStyle = format === "stack" ? toggleButtonStyles(theme) : [toggleButtonStyles(theme), css({ flexBasis: "30%" })];
|
|
9
9
|
const defaultOptionId = options.find((option) => option.isDefault)?.id;
|
|
10
10
|
const selectedKeys = currentValue ? [currentValue] : defaultOptionId ? [defaultOptionId] : [];
|
|
11
|
-
return /* @__PURE__ */ jsxs("label", { children: [/* @__PURE__ */ jsx
|
|
11
|
+
return /* @__PURE__ */ jsxs("label", { children: [/* @__PURE__ */ jsx("div", {
|
|
12
12
|
css: radioGroupLabelStyles(theme),
|
|
13
13
|
children: name
|
|
14
|
-
}), /* @__PURE__ */ jsx
|
|
14
|
+
}), /* @__PURE__ */ jsx(ToggleButtonGroup, {
|
|
15
15
|
css: groupCss,
|
|
16
16
|
selectionMode: "single",
|
|
17
17
|
orientation: format === "stack" ? "vertical" : "horizontal",
|
|
@@ -24,10 +24,10 @@ function PreferenceRadioGroup({ name, options, currentValue, changeValue, theme,
|
|
|
24
24
|
id: option.id,
|
|
25
25
|
css: buttonStyle,
|
|
26
26
|
style: option.buttonStyle,
|
|
27
|
-
children: [/* @__PURE__ */ jsx
|
|
27
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
28
28
|
style: option.labelStyle,
|
|
29
29
|
children: option.label ?? option.id
|
|
30
|
-
}), /* @__PURE__ */ jsx
|
|
30
|
+
}), /* @__PURE__ */ jsx("div", { children: option.description })]
|
|
31
31
|
}, index))
|
|
32
32
|
})] });
|
|
33
33
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -16,6 +16,7 @@ const require_grid = require("./styleD/build/typescript/component/grid.cjs");
|
|
|
16
16
|
const require_form = require("./styleD/build/typescript/component/form.cjs");
|
|
17
17
|
const require_inlineMessage = require("./styleD/build/typescript/component/inlineMessage.cjs");
|
|
18
18
|
const require_menu = require("./styleD/build/typescript/component/menu.cjs");
|
|
19
|
+
const require_modal = require("./styleD/build/typescript/component/modal.cjs");
|
|
19
20
|
const require_layout = require("./styleD/build/typescript/component/layout.cjs");
|
|
20
21
|
const require_link = require("./styleD/build/typescript/component/link.cjs");
|
|
21
22
|
const require_radioGroup = require("./styleD/build/typescript/component/radioGroup.cjs");
|
|
@@ -57,6 +58,7 @@ exports.componentIntendedAudienceSignifier = require_intendedAudienceSignifier.c
|
|
|
57
58
|
exports.componentLayout = require_layout.componentLayout;
|
|
58
59
|
exports.componentLink = require_link.componentLink;
|
|
59
60
|
exports.componentMenu = require_menu.componentMenu;
|
|
61
|
+
exports.componentModal = require_modal.componentModal;
|
|
60
62
|
exports.componentRadioGroup = require_radioGroup.componentRadioGroup;
|
|
61
63
|
exports.componentSelect = require_select.componentSelect;
|
|
62
64
|
exports.componentTagTable = require_tagTable.componentTagTable;
|
package/dist/index.d.cts
CHANGED
|
@@ -9,13 +9,14 @@ import { ComponentDatePicker, componentDatePicker } from "./styleD/build/typescr
|
|
|
9
9
|
import { ComponentFavicon, componentFavicon } from "./styleD/build/typescript/component/favicon.cjs";
|
|
10
10
|
import { SemanticBreakpoints, semanticBreakpoints } from "./styleD/build/typescript/semantic/breakpoints.cjs";
|
|
11
11
|
import { ComponentGrid, componentGrid } from "./styleD/build/typescript/component/grid.cjs";
|
|
12
|
+
import { SemanticTypography, semanticTypography } from "./styleD/build/typescript/semantic/typography.cjs";
|
|
13
|
+
import { ComponentTypography, componentTypography } from "./styleD/build/typescript/component/typography.cjs";
|
|
12
14
|
import { ComponentInlineMessage, componentInlineMessage } from "./styleD/build/typescript/component/inlineMessage.cjs";
|
|
13
15
|
import { ComponentIntendedAudienceSignifier, componentIntendedAudienceSignifier } from "./styleD/build/typescript/component/intendedAudienceSignifier.cjs";
|
|
14
16
|
import { ComponentLayout, componentLayout } from "./styleD/build/typescript/component/layout.cjs";
|
|
15
|
-
import { SemanticTypography, semanticTypography } from "./styleD/build/typescript/semantic/typography.cjs";
|
|
16
|
-
import { ComponentTypography, componentTypography } from "./styleD/build/typescript/component/typography.cjs";
|
|
17
17
|
import { ComponentLink, componentLink } from "./styleD/build/typescript/component/link.cjs";
|
|
18
18
|
import { ComponentMenu, componentMenu } from "./styleD/build/typescript/component/menu.cjs";
|
|
19
|
+
import { ComponentModal, componentModal } from "./styleD/build/typescript/component/modal.cjs";
|
|
19
20
|
import { ComponentRadioGroup, componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.cjs";
|
|
20
21
|
import { ComponentSelect, componentSelect } from "./styleD/build/typescript/component/select.cjs";
|
|
21
22
|
import { ComponentAutocomplete, componentAutocomplete } from "./styleD/build/typescript/component/autocomplete.cjs";
|
|
@@ -35,4 +36,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
35
36
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.cjs";
|
|
36
37
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.cjs";
|
|
37
38
|
import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.cjs";
|
|
38
|
-
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, 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 ComponentRadioGroup, type ComponentSelect, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, 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, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
39
|
+
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, 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 ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, 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, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,13 +9,14 @@ import { ComponentDatePicker, componentDatePicker } from "./styleD/build/typescr
|
|
|
9
9
|
import { ComponentFavicon, componentFavicon } from "./styleD/build/typescript/component/favicon.js";
|
|
10
10
|
import { SemanticBreakpoints, semanticBreakpoints } from "./styleD/build/typescript/semantic/breakpoints.js";
|
|
11
11
|
import { ComponentGrid, componentGrid } from "./styleD/build/typescript/component/grid.js";
|
|
12
|
+
import { SemanticTypography, semanticTypography } from "./styleD/build/typescript/semantic/typography.js";
|
|
13
|
+
import { ComponentTypography, componentTypography } from "./styleD/build/typescript/component/typography.js";
|
|
12
14
|
import { ComponentInlineMessage, componentInlineMessage } from "./styleD/build/typescript/component/inlineMessage.js";
|
|
13
15
|
import { ComponentIntendedAudienceSignifier, componentIntendedAudienceSignifier } from "./styleD/build/typescript/component/intendedAudienceSignifier.js";
|
|
14
16
|
import { ComponentLayout, componentLayout } from "./styleD/build/typescript/component/layout.js";
|
|
15
|
-
import { SemanticTypography, semanticTypography } from "./styleD/build/typescript/semantic/typography.js";
|
|
16
|
-
import { ComponentTypography, componentTypography } from "./styleD/build/typescript/component/typography.js";
|
|
17
17
|
import { ComponentLink, componentLink } from "./styleD/build/typescript/component/link.js";
|
|
18
18
|
import { ComponentMenu, componentMenu } from "./styleD/build/typescript/component/menu.js";
|
|
19
|
+
import { ComponentModal, componentModal } from "./styleD/build/typescript/component/modal.js";
|
|
19
20
|
import { ComponentRadioGroup, componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.js";
|
|
20
21
|
import { ComponentSelect, componentSelect } from "./styleD/build/typescript/component/select.js";
|
|
21
22
|
import { ComponentAutocomplete, componentAutocomplete } from "./styleD/build/typescript/component/autocomplete.js";
|
|
@@ -35,4 +36,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
35
36
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
36
37
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
37
38
|
import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
|
|
38
|
-
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, 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 ComponentRadioGroup, type ComponentSelect, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, 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, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
39
|
+
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, 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 ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, 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, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import { componentGrid } from "./styleD/build/typescript/component/grid.js";
|
|
|
15
15
|
import { componentForm } from "./styleD/build/typescript/component/form.js";
|
|
16
16
|
import { componentInlineMessage } from "./styleD/build/typescript/component/inlineMessage.js";
|
|
17
17
|
import { componentMenu } from "./styleD/build/typescript/component/menu.js";
|
|
18
|
+
import { componentModal } from "./styleD/build/typescript/component/modal.js";
|
|
18
19
|
import { componentLayout } from "./styleD/build/typescript/component/layout.js";
|
|
19
20
|
import { componentLink } from "./styleD/build/typescript/component/link.js";
|
|
20
21
|
import { componentRadioGroup } from "./styleD/build/typescript/component/radioGroup.js";
|
|
@@ -35,4 +36,4 @@ import { semanticSizing } from "./styleD/build/typescript/semantic/sizing.js";
|
|
|
35
36
|
import { semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
36
37
|
import { semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
37
38
|
import { semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
|
|
38
|
-
export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
39
|
+
export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--component-modal-overlay-position: absolute;
|
|
7
|
+
--component-modal-overlay-top: 0;
|
|
8
|
+
--component-modal-overlay-left: 0;
|
|
9
|
+
--component-modal-overlay-width: 100%;
|
|
10
|
+
--component-modal-overlay-height: 100%;
|
|
11
|
+
--component-modal-overlay-background-color: rgba(0, 0, 0, 0.4);
|
|
12
|
+
--component-modal-overlay-overflow: clip;
|
|
13
|
+
--component-modal-overlay-z-index: 100;
|
|
14
|
+
--component-modal-modal-position: sticky;
|
|
15
|
+
--component-modal-modal-max-height: 90%;
|
|
16
|
+
--component-modal-modal-top: 50%;
|
|
17
|
+
--component-modal-modal-margin-left: 50svw;
|
|
18
|
+
--component-modal-modal-translate: -50% -50%;
|
|
19
|
+
--component-modal-modal-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3);
|
|
20
|
+
--component-modal-modal-border-radius: 0.5rem;
|
|
21
|
+
--component-modal-modal-width: max-content;
|
|
22
|
+
--component-modal-modal-max-width: min(484px, 90svw);
|
|
23
|
+
--component-modal-modal-background-color: #ffffff;
|
|
24
|
+
--component-modal-modal-padding-top: 1rem;
|
|
25
|
+
--component-modal-modal-padding-bottom: 2rem;
|
|
26
|
+
--component-modal-modal-padding-left: 2rem;
|
|
27
|
+
--component-modal-modal-padding-right: 2rem;
|
|
28
|
+
--component-modal-dialog-container-display: grid;
|
|
29
|
+
--component-modal-dialog-container-grid-template-areas: 'dismiss' 'title'
|
|
30
|
+
'children' 'ctas';
|
|
31
|
+
--component-modal-dialog-container-grid-template-columns: 1fr;
|
|
32
|
+
--component-modal-dialog-container-grid-template-rows: auto auto 1fr auto;
|
|
33
|
+
--component-modal-dialog-dismiss-grid-area: dismiss;
|
|
34
|
+
--component-modal-dialog-dismiss-margin-left: auto;
|
|
35
|
+
--component-modal-dialog-dismiss-margin-bottom: 1rem;
|
|
36
|
+
--component-modal-dialog-dismiss-border: none;
|
|
37
|
+
--component-modal-dialog-dismiss-height: 1rem;
|
|
38
|
+
--component-modal-dialog-dismiss-width: 1rem;
|
|
39
|
+
--component-modal-dialog-dismiss-hovered-background: none;
|
|
40
|
+
--component-modal-dialog-dismiss-hovered-border: none;
|
|
41
|
+
--component-modal-dialog-title-grid-area: title;
|
|
42
|
+
--component-modal-dialog-title-margin-bottom: 1rem;
|
|
43
|
+
--component-modal-dialog-children-grid-area: children;
|
|
44
|
+
--component-modal-dialog-children-margin-bottom: 2.5rem;
|
|
45
|
+
--component-modal-dialog-ctas-grid-area: ctas;
|
|
46
|
+
--component-modal-dialog-ctas-display: flex;
|
|
47
|
+
--component-modal-dialog-ctas-flex-direction: column;
|
|
48
|
+
--component-modal-dialog-ctas-gap: 1rem;
|
|
49
|
+
--component-modal-dialog-ctas-justify-content: flex-end;
|
|
50
|
+
--component-modal-dialog-ctas-md-flex-direction: row;
|
|
51
|
+
}
|