@griddo/ax 11.11.7 → 11.11.8-rc.1
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/config/jest/componentsMock.js +7 -5
- package/package.json +2 -2
- package/src/__tests__/components/Browser/Browser.test.tsx +438 -87
- package/src/__tests__/components/Browser/Browser.utils.test.ts +55 -0
- package/src/__tests__/components/ConfigPanel/ConfigPanel.test.tsx +1 -3
- package/src/__tests__/components/Fields/Button/Button.test.tsx +29 -27
- package/src/__tests__/components/HeadingsPreviewModal/ErrorsBanner/ErrorItem/ErrorItem.test.tsx +158 -0
- package/src/__tests__/components/HeadingsPreviewModal/ErrorsBanner/ErrorsBanner.test.tsx +90 -0
- package/src/__tests__/components/HeadingsPreviewModal/HeadingsPreviewModal.test.tsx +178 -0
- package/src/__tests__/components/HeadingsPreviewModal/HeadingsPreviewModal.utils.test.tsx +150 -0
- package/src/__tests__/components/KeywordsPreviewModal/KeywordItem/KeywordItem.test.tsx +91 -0
- package/src/__tests__/components/KeywordsPreviewModal/KeywordsPreviewModal.test.tsx +122 -0
- package/src/__tests__/components/KeywordsPreviewModal/KeywordsPreviewModal.utils.test.ts +15 -0
- package/src/__tests__/components/KeywordsPreviewModal/atoms.test.tsx +101 -0
- package/src/__tests__/components/ResizePanel/ResizePanel.test.tsx +1 -1
- package/src/__tests__/modules/FramePreview/FramePreview.test.tsx +318 -0
- package/src/__tests__/modules/FramePreview/FramePreview.utils.test.ts +242 -0
- package/src/__tests__/modules/FramePreview/HeadingsOverlay/HeadingsOverlay.test.tsx +185 -0
- package/src/components/Browser/index.tsx +294 -144
- package/src/components/Browser/style.tsx +75 -6
- package/src/components/Browser/utils.tsx +13 -0
- package/src/components/BrowserContent/index.tsx +2 -2
- package/src/components/Button/index.tsx +2 -1
- package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/Field/index.tsx +2 -4
- package/src/components/Fields/AsyncSelect/style.tsx +13 -0
- package/src/components/Fields/FieldGroup/index.tsx +5 -2
- package/src/components/Fields/FieldGroup/style.tsx +32 -7
- package/src/components/Fields/HeadingField/index.tsx +2 -2
- package/src/components/Fields/HiddenField/style.tsx +1 -1
- package/src/components/Fields/NumberField/index.tsx +15 -16
- package/src/components/Fields/NumberField/style.tsx +2 -0
- package/src/components/Fields/ReferenceField/index.tsx +1 -1
- package/src/components/Fields/SEOPreview/index.tsx +36 -0
- package/src/components/Fields/SEOPreview/style.tsx +24 -0
- package/src/components/Fields/Select/index.tsx +5 -1
- package/src/components/Fields/Select/style.tsx +56 -0
- package/src/components/Fields/SummaryButton/index.tsx +18 -9
- package/src/components/Fields/SummaryButton/style.tsx +1 -2
- package/src/components/Fields/TagsField/index.tsx +8 -9
- package/src/components/Fields/UrlField/index.tsx +26 -27
- package/src/components/Fields/index.tsx +2 -0
- package/src/components/FloatingNote/index.tsx +35 -0
- package/src/components/FloatingNote/style.tsx +26 -0
- package/src/components/FloatingPanel/index.tsx +5 -2
- package/src/components/FloatingPanel/style.tsx +2 -1
- package/src/components/HeadingsPreviewModal/ErrorsBanner/ErrorItem/index.tsx +85 -0
- package/src/components/HeadingsPreviewModal/ErrorsBanner/ErrorItem/style.tsx +80 -0
- package/src/components/HeadingsPreviewModal/ErrorsBanner/index.tsx +57 -0
- package/src/components/HeadingsPreviewModal/ErrorsBanner/style.tsx +82 -0
- package/src/components/HeadingsPreviewModal/HeadingItem/index.tsx +71 -0
- package/src/components/HeadingsPreviewModal/HeadingItem/style.tsx +77 -0
- package/src/components/HeadingsPreviewModal/index.tsx +146 -0
- package/src/components/HeadingsPreviewModal/style.tsx +82 -0
- package/src/components/HeadingsPreviewModal/utils.tsx +257 -0
- package/src/components/IconAction/index.tsx +1 -1
- package/src/components/KeywordsPreviewModal/KeywordItem/index.tsx +46 -0
- package/src/components/KeywordsPreviewModal/KeywordItem/style.tsx +64 -0
- package/src/components/KeywordsPreviewModal/atoms.tsx +96 -0
- package/src/components/KeywordsPreviewModal/index.tsx +99 -0
- package/src/components/KeywordsPreviewModal/style.tsx +87 -0
- package/src/components/KeywordsPreviewModal/utils.tsx +22 -0
- package/src/components/MainWrapper/AppBar/index.tsx +8 -1
- package/src/components/MainWrapper/index.tsx +7 -1
- package/src/components/Notification/index.tsx +2 -2
- package/src/components/OcassionalToast/index.tsx +8 -1
- package/src/components/OcassionalToast/style.tsx +15 -1
- package/src/components/PageFinder/index.tsx +1 -1
- package/src/components/ResizePanel/index.tsx +4 -3
- package/src/components/ResizePanel/style.tsx +1 -1
- package/src/components/SearchField/style.tsx +2 -2
- package/src/components/SideModal/index.tsx +2 -1
- package/src/components/Tabs/index.tsx +13 -4
- package/src/components/Tabs/style.tsx +7 -8
- package/src/components/Toast/index.tsx +4 -2
- package/src/components/Tooltip/index.tsx +4 -3
- package/src/components/index.tsx +8 -2
- package/src/forms/fields.tsx +70 -68
- package/src/hooks/forms.tsx +22 -1
- package/src/hooks/index.tsx +13 -3
- package/src/hooks/modals.tsx +103 -15
- package/src/hooks/users.tsx +25 -8
- package/src/modules/Forms/atoms.tsx +2 -2
- package/src/modules/FramePreview/HeadingsOverlay/index.tsx +113 -0
- package/src/modules/FramePreview/HeadingsOverlay/style.tsx +24 -0
- package/src/modules/FramePreview/index.tsx +55 -16
- package/src/modules/FramePreview/style.tsx +34 -2
- package/src/modules/FramePreview/utils.tsx +140 -0
- package/src/modules/GlobalEditor/Editor/index.tsx +37 -3
- package/src/modules/GlobalEditor/PageBrowser/index.tsx +19 -2
- package/src/modules/GlobalEditor/Preview/index.tsx +0 -2
- package/src/modules/GlobalEditor/Preview/style.tsx +1 -1
- package/src/modules/GlobalEditor/index.tsx +119 -57
- package/src/modules/PageEditor/Editor/index.tsx +33 -2
- package/src/modules/PageEditor/PageBrowser/index.tsx +20 -2
- package/src/modules/PageEditor/Preview/index.tsx +0 -2
- package/src/modules/PageEditor/Preview/style.tsx +1 -1
- package/src/modules/PageEditor/atoms.tsx +1 -1
- package/src/modules/PageEditor/index.tsx +130 -66
- package/src/modules/PublicPreview/index.tsx +8 -5
- package/src/schemas/pages/GlobalPage.ts +87 -70
- package/src/schemas/pages/Page.ts +87 -70
- package/src/types/index.tsx +12 -0
- package/src/components/PageInfoBanner/index.tsx +0 -38
- package/src/components/PageInfoBanner/styles.tsx +0 -40
|
@@ -59,93 +59,110 @@ export default {
|
|
|
59
59
|
collapsed: true,
|
|
60
60
|
fields: [
|
|
61
61
|
{
|
|
62
|
-
title: "",
|
|
63
|
-
type: "
|
|
64
|
-
key: "
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
title: "
|
|
68
|
-
type: "TextField",
|
|
69
|
-
key: "metaTitle",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
title: "Meta description",
|
|
73
|
-
type: "TextArea",
|
|
74
|
-
key: "metaDescription",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
title: "Keywords",
|
|
78
|
-
type: "TagsField",
|
|
79
|
-
key: "metaKeywords",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
title: "Canonical URL",
|
|
83
|
-
type: "TextField",
|
|
84
|
-
key: "canonicalURL",
|
|
62
|
+
title: "SEO previews",
|
|
63
|
+
type: "FieldGroup",
|
|
64
|
+
key: "seopreviews",
|
|
65
|
+
collapsed: true,
|
|
66
|
+
solid: true,
|
|
67
|
+
fields: [{ title: "", type: "SEOPreview", key: "seoPreview" }],
|
|
85
68
|
},
|
|
86
69
|
{
|
|
87
|
-
title: "
|
|
88
|
-
type: "
|
|
89
|
-
key: "
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
title: "Index",
|
|
94
|
-
name: "index",
|
|
95
|
-
},
|
|
70
|
+
title: "SEO meta data",
|
|
71
|
+
type: "FieldGroup",
|
|
72
|
+
key: "metadata",
|
|
73
|
+
collapsed: true,
|
|
74
|
+
solid: true,
|
|
75
|
+
fields: [
|
|
96
76
|
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
77
|
+
title: "",
|
|
78
|
+
type: "SummaryButton",
|
|
79
|
+
key: "summary",
|
|
100
80
|
},
|
|
101
|
-
],
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
title: "Meta robots follow",
|
|
105
|
-
type: "RadioGroup",
|
|
106
|
-
key: "follow",
|
|
107
|
-
options: [
|
|
108
81
|
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
82
|
+
title: "Meta title",
|
|
83
|
+
type: "TextField",
|
|
84
|
+
key: "metaTitle",
|
|
112
85
|
},
|
|
113
86
|
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
87
|
+
title: "Meta description",
|
|
88
|
+
type: "TextArea",
|
|
89
|
+
key: "metaDescription",
|
|
117
90
|
},
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
title: "Meta robots advanced",
|
|
122
|
-
type: "CheckGroup",
|
|
123
|
-
key: "metasAdvanced",
|
|
124
|
-
options: [
|
|
125
91
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
92
|
+
title: "Keywords",
|
|
93
|
+
type: "TagsField",
|
|
94
|
+
key: "metaKeywords",
|
|
129
95
|
},
|
|
130
96
|
{
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
97
|
+
title: "Canonical URL",
|
|
98
|
+
type: "TextField",
|
|
99
|
+
key: "canonicalURL",
|
|
134
100
|
},
|
|
135
101
|
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
102
|
+
title: "Meta robots index",
|
|
103
|
+
type: "RadioGroup",
|
|
104
|
+
key: "isIndexed",
|
|
105
|
+
options: [
|
|
106
|
+
{
|
|
107
|
+
value: true,
|
|
108
|
+
title: "Index",
|
|
109
|
+
name: "index",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
value: false,
|
|
113
|
+
title: "No index",
|
|
114
|
+
name: "noindex",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
139
117
|
},
|
|
140
118
|
{
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
119
|
+
title: "Meta robots follow",
|
|
120
|
+
type: "RadioGroup",
|
|
121
|
+
key: "follow",
|
|
122
|
+
options: [
|
|
123
|
+
{
|
|
124
|
+
value: true,
|
|
125
|
+
title: "Follow",
|
|
126
|
+
name: "follow",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: false,
|
|
130
|
+
title: "No follow",
|
|
131
|
+
name: "nofollow",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
144
134
|
},
|
|
145
135
|
{
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
136
|
+
title: "Meta robots advanced",
|
|
137
|
+
type: "CheckGroup",
|
|
138
|
+
key: "metasAdvanced",
|
|
139
|
+
options: [
|
|
140
|
+
{
|
|
141
|
+
value: "noimageindex",
|
|
142
|
+
title: "No image index",
|
|
143
|
+
name: "noimage",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
value: "nosnippet",
|
|
147
|
+
title: "No snippet",
|
|
148
|
+
name: "nosnippet",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
value: "noodp",
|
|
152
|
+
title: "No ODP",
|
|
153
|
+
name: "noodp",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
value: "noarchive",
|
|
157
|
+
title: "No archive",
|
|
158
|
+
name: "noarchive",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
value: "noTranslate",
|
|
162
|
+
title: "No translate",
|
|
163
|
+
name: "noTranslate",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
149
166
|
},
|
|
150
167
|
],
|
|
151
168
|
},
|
|
@@ -125,93 +125,110 @@ export default {
|
|
|
125
125
|
collapsed: true,
|
|
126
126
|
fields: [
|
|
127
127
|
{
|
|
128
|
-
title: "",
|
|
129
|
-
type: "
|
|
130
|
-
key: "
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
title: "
|
|
134
|
-
type: "TextField",
|
|
135
|
-
key: "metaTitle",
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
title: "Meta description",
|
|
139
|
-
type: "TextArea",
|
|
140
|
-
key: "metaDescription",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
title: "Keywords",
|
|
144
|
-
type: "TagsField",
|
|
145
|
-
key: "metaKeywords",
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
title: "Canonical URL",
|
|
149
|
-
type: "TextField",
|
|
150
|
-
key: "canonicalURL",
|
|
128
|
+
title: "SEO previews",
|
|
129
|
+
type: "FieldGroup",
|
|
130
|
+
key: "seopreviews",
|
|
131
|
+
collapsed: true,
|
|
132
|
+
solid: true,
|
|
133
|
+
fields: [{ title: "", type: "SEOPreview", key: "seoPreview" }],
|
|
151
134
|
},
|
|
152
135
|
{
|
|
153
|
-
title: "
|
|
154
|
-
type: "
|
|
155
|
-
key: "
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
title: "Index",
|
|
160
|
-
name: "index",
|
|
161
|
-
},
|
|
136
|
+
title: "SEO meta data",
|
|
137
|
+
type: "FieldGroup",
|
|
138
|
+
key: "metadata",
|
|
139
|
+
collapsed: true,
|
|
140
|
+
solid: true,
|
|
141
|
+
fields: [
|
|
162
142
|
{
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
143
|
+
title: "",
|
|
144
|
+
type: "SummaryButton",
|
|
145
|
+
key: "summary",
|
|
166
146
|
},
|
|
167
|
-
],
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
title: "Meta robots follow",
|
|
171
|
-
type: "RadioGroup",
|
|
172
|
-
key: "follow",
|
|
173
|
-
options: [
|
|
174
147
|
{
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
148
|
+
title: "Meta title",
|
|
149
|
+
type: "TextField",
|
|
150
|
+
key: "metaTitle",
|
|
178
151
|
},
|
|
179
152
|
{
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
153
|
+
title: "Meta description",
|
|
154
|
+
type: "TextArea",
|
|
155
|
+
key: "metaDescription",
|
|
183
156
|
},
|
|
184
|
-
],
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
title: "Meta robots advanced",
|
|
188
|
-
type: "CheckGroup",
|
|
189
|
-
key: "metasAdvanced",
|
|
190
|
-
options: [
|
|
191
157
|
{
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
158
|
+
title: "Keywords",
|
|
159
|
+
type: "TagsField",
|
|
160
|
+
key: "metaKeywords",
|
|
195
161
|
},
|
|
196
162
|
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
163
|
+
title: "Canonical URL",
|
|
164
|
+
type: "TextField",
|
|
165
|
+
key: "canonicalURL",
|
|
200
166
|
},
|
|
201
167
|
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
168
|
+
title: "Meta robots index",
|
|
169
|
+
type: "RadioGroup",
|
|
170
|
+
key: "isIndexed",
|
|
171
|
+
options: [
|
|
172
|
+
{
|
|
173
|
+
value: true,
|
|
174
|
+
title: "Index",
|
|
175
|
+
name: "index",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
value: false,
|
|
179
|
+
title: "No index",
|
|
180
|
+
name: "noindex",
|
|
181
|
+
},
|
|
182
|
+
],
|
|
205
183
|
},
|
|
206
184
|
{
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
185
|
+
title: "Meta robots follow",
|
|
186
|
+
type: "RadioGroup",
|
|
187
|
+
key: "follow",
|
|
188
|
+
options: [
|
|
189
|
+
{
|
|
190
|
+
value: true,
|
|
191
|
+
title: "Follow",
|
|
192
|
+
name: "follow",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
value: false,
|
|
196
|
+
title: "No follow",
|
|
197
|
+
name: "nofollow",
|
|
198
|
+
},
|
|
199
|
+
],
|
|
210
200
|
},
|
|
211
201
|
{
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
202
|
+
title: "Meta robots advanced",
|
|
203
|
+
type: "CheckGroup",
|
|
204
|
+
key: "metasAdvanced",
|
|
205
|
+
options: [
|
|
206
|
+
{
|
|
207
|
+
value: "noimageindex",
|
|
208
|
+
title: "No image index",
|
|
209
|
+
name: "noimage",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
value: "nosnippet",
|
|
213
|
+
title: "No snippet",
|
|
214
|
+
name: "nosnippet",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
value: "noodp",
|
|
218
|
+
title: "No ODP",
|
|
219
|
+
name: "noodp",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
value: "noarchive",
|
|
223
|
+
title: "No archive",
|
|
224
|
+
name: "noarchive",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
value: "noTranslate",
|
|
228
|
+
title: "No translate",
|
|
229
|
+
name: "noTranslate",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
215
232
|
},
|
|
216
233
|
],
|
|
217
234
|
},
|
package/src/types/index.tsx
CHANGED
|
@@ -1118,6 +1118,18 @@ export interface IContainedComponent {
|
|
|
1118
1118
|
componentID: number;
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
1122
|
+
|
|
1123
|
+
export interface HeadingNode {
|
|
1124
|
+
level: HeadingLevel;
|
|
1125
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
1126
|
+
text: string;
|
|
1127
|
+
isHidden: boolean;
|
|
1128
|
+
children: HeadingNode[];
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
export type HeadingFilter = "all" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
1132
|
+
|
|
1121
1133
|
export type Field =
|
|
1122
1134
|
| "AsyncCheckGroup"
|
|
1123
1135
|
| "AsyncSelect"
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Icon } from "@ax/components";
|
|
2
|
-
|
|
3
|
-
import * as S from "./styles";
|
|
4
|
-
|
|
5
|
-
const PageInfoBanner = (props: PageInfoBannerProps) => {
|
|
6
|
-
const { message, actionLabel, onAction, onDismiss, icon = "view" } = props;
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<S.Container>
|
|
10
|
-
<S.Header>
|
|
11
|
-
<S.Info>
|
|
12
|
-
<Icon name={icon} size="16px" />
|
|
13
|
-
{message}{" "}
|
|
14
|
-
{onAction && (
|
|
15
|
-
<button type="button" onClick={onAction}>
|
|
16
|
-
<strong style={{ textDecoration: "underline" }}>{actionLabel}</strong>
|
|
17
|
-
</button>
|
|
18
|
-
)}
|
|
19
|
-
{onDismiss && (
|
|
20
|
-
<S.DismissButton type="button" onClick={onDismiss}>
|
|
21
|
-
<Icon name="close" size="16px" />
|
|
22
|
-
</S.DismissButton>
|
|
23
|
-
)}
|
|
24
|
-
</S.Info>
|
|
25
|
-
</S.Header>
|
|
26
|
-
</S.Container>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
interface PageInfoBannerProps {
|
|
31
|
-
message: string;
|
|
32
|
-
actionLabel?: string;
|
|
33
|
-
onAction?: () => void;
|
|
34
|
-
onDismiss?: () => void;
|
|
35
|
-
icon?: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default PageInfoBanner;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
|
|
3
|
-
const Container = styled.div`
|
|
4
|
-
left: 0px;
|
|
5
|
-
bottom: ${(p) => p.theme.spacing.s};
|
|
6
|
-
width: 100vw;
|
|
7
|
-
display: flex;
|
|
8
|
-
position: fixed;
|
|
9
|
-
z-index: 100;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
const Header = styled.span`
|
|
15
|
-
${({ theme }) => theme.textStyle.uiS}
|
|
16
|
-
border-radius: ${(p) => p.theme.radii.s};
|
|
17
|
-
background-color: ${(p) => p.theme.color.uiBackground04};
|
|
18
|
-
color: ${(p) => p.theme.color.textHighEmphasisInverse};
|
|
19
|
-
padding: ${(p) => p.theme.spacing.s};
|
|
20
|
-
svg {
|
|
21
|
-
path {
|
|
22
|
-
fill: ${(p) => p.theme.color.textHighEmphasisInverse};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
const Info = styled.div`
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
column-gap: ${(p) => p.theme.spacing.xs};
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
const DismissButton = styled.button`
|
|
34
|
-
background: none;
|
|
35
|
-
border: none;
|
|
36
|
-
color: inherit;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
`;
|
|
39
|
-
|
|
40
|
-
export { Container, DismissButton, Header, Info };
|