@cloudscape-design/components 3.0.1275 → 3.0.1276
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/date-range-picker/index.d.ts.map +1 -1
- package/date-range-picker/index.js +7 -6
- package/date-range-picker/index.js.map +1 -1
- package/date-range-picker/interfaces.d.ts +8 -0
- package/date-range-picker/interfaces.d.ts.map +1 -1
- package/date-range-picker/interfaces.js.map +1 -1
- package/drawer/implementation.d.ts +7 -2
- package/drawer/implementation.d.ts.map +1 -1
- package/drawer/implementation.js +5 -2
- package/drawer/implementation.js.map +1 -1
- package/drawer/index.d.ts +11 -1
- package/drawer/index.d.ts.map +1 -1
- package/drawer/index.js +16 -4
- package/drawer/index.js.map +1 -1
- package/drawer/interfaces.d.ts +72 -7
- package/drawer/interfaces.d.ts.map +1 -1
- package/drawer/interfaces.js +2 -0
- package/drawer/interfaces.js.map +1 -1
- package/drawer/next.d.ts +16 -0
- package/drawer/next.d.ts.map +1 -0
- package/drawer/next.js +31 -0
- package/drawer/next.js.map +1 -0
- package/drawer/styles.css.js +16 -12
- package/drawer/styles.scoped.css +23 -17
- package/drawer/styles.selectors.js +16 -12
- package/drawer/utils.d.ts +12 -0
- package/drawer/utils.d.ts.map +1 -0
- package/drawer/utils.js +74 -0
- package/drawer/utils.js.map +1 -0
- package/internal/base-component/styles.scoped.css +5 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/styles/tokens.d.ts +1 -0
- package/internal/generated/styles/tokens.js +1 -0
- package/internal/generated/theming/index.cjs +31 -0
- package/internal/generated/theming/index.js +31 -0
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
package/drawer/next.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NextDrawerProps } from './interfaces';
|
|
2
|
+
export { NextDrawerProps };
|
|
3
|
+
declare const Drawer: ({
|
|
4
|
+
header,
|
|
5
|
+
headerActions,
|
|
6
|
+
footer,
|
|
7
|
+
disableContentPaddings,
|
|
8
|
+
loading,
|
|
9
|
+
position,
|
|
10
|
+
placement,
|
|
11
|
+
offset,
|
|
12
|
+
stickyOffset,
|
|
13
|
+
zIndex,
|
|
14
|
+
...props
|
|
15
|
+
}: NextDrawerProps) => JSX.Element;
|
|
16
|
+
export default Drawer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../src/drawer/next.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,MAAM,GAAmB,iIAY5B,eAAe,gBAiCjB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/drawer/next.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// eslint-disable-next-line @cloudscape-design/build-tools/react-server-components-directive
|
|
4
|
+
'use client';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
7
|
+
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
8
|
+
import { getExternalProps } from '../internal/utils/external-props';
|
|
9
|
+
import { InternalDrawer } from './internal';
|
|
10
|
+
const Drawer = function Drawer({ header, headerActions, footer, disableContentPaddings = false, loading = false, position = 'static', placement = 'end', offset, stickyOffset, zIndex, ...props }) {
|
|
11
|
+
const baseComponentProps = useBaseComponent('Drawer', {
|
|
12
|
+
props: {
|
|
13
|
+
disableContentPaddings,
|
|
14
|
+
loading,
|
|
15
|
+
placement,
|
|
16
|
+
position,
|
|
17
|
+
zIndex,
|
|
18
|
+
},
|
|
19
|
+
metadata: {
|
|
20
|
+
hasHeader: !!header,
|
|
21
|
+
hasHeaderActions: !!headerActions,
|
|
22
|
+
hasFooter: !!footer,
|
|
23
|
+
hasOffset: !!offset,
|
|
24
|
+
hasStickyOffset: !!stickyOffset,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
return (React.createElement(InternalDrawer, { ...getExternalProps(props), ...baseComponentProps, header: header, headerActions: headerActions, footer: footer, disableContentPaddings: disableContentPaddings, loading: loading, placement: placement, position: position, offset: offset, stickyOffset: stickyOffset, zIndex: zIndex }));
|
|
28
|
+
};
|
|
29
|
+
export default Drawer;
|
|
30
|
+
applyDisplayName(Drawer, 'Drawer');
|
|
31
|
+
//# sourceMappingURL=next.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next.js","sourceRoot":"","sources":["../../../src/drawer/next.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,4FAA4F;AAC5F,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAI5C,MAAM,MAAM,GAAG,SAAS,MAAM,CAAC,EAC7B,MAAM,EACN,aAAa,EACb,MAAM,EACN,sBAAsB,GAAG,KAAK,EAC9B,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,QAAQ,EACnB,SAAS,GAAG,KAAK,EACjB,MAAM,EACN,YAAY,EACZ,MAAM,EACN,GAAG,KAAK,EACQ;IAChB,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,QAAQ,EAAE;QACpD,KAAK,EAAE;YACL,sBAAsB;YACtB,OAAO;YACP,SAAS;YACT,QAAQ;YACR,MAAM;SACP;QACD,QAAQ,EAAE;YACR,SAAS,EAAE,CAAC,CAAC,MAAM;YACnB,gBAAgB,EAAE,CAAC,CAAC,aAAa;YACjC,SAAS,EAAE,CAAC,CAAC,MAAM;YACnB,SAAS,EAAE,CAAC,CAAC,MAAM;YACnB,eAAe,EAAE,CAAC,CAAC,YAAY;SAChC;KACF,CAAC,CAAC;IACH,OAAO,CACL,oBAAC,cAAc,OACT,gBAAgB,CAAC,KAAK,CAAC,KACvB,kBAAkB,EACtB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC;AAEtB,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// eslint-disable-next-line @cloudscape-design/build-tools/react-server-components-directive\n'use client';\nimport React from 'react';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { NextDrawerProps } from './interfaces';\nimport { InternalDrawer } from './internal';\n\nexport { NextDrawerProps };\n\nconst Drawer = function Drawer({\n header,\n headerActions,\n footer,\n disableContentPaddings = false,\n loading = false,\n position = 'static',\n placement = 'end',\n offset,\n stickyOffset,\n zIndex,\n ...props\n}: NextDrawerProps) {\n const baseComponentProps = useBaseComponent('Drawer', {\n props: {\n disableContentPaddings,\n loading,\n placement,\n position,\n zIndex,\n },\n metadata: {\n hasHeader: !!header,\n hasHeaderActions: !!headerActions,\n hasFooter: !!footer,\n hasOffset: !!offset,\n hasStickyOffset: !!stickyOffset,\n },\n });\n return (\n <InternalDrawer\n {...getExternalProps(props)}\n {...baseComponentProps}\n header={header}\n headerActions={headerActions}\n footer={footer}\n disableContentPaddings={disableContentPaddings}\n loading={loading}\n placement={placement}\n position={position}\n offset={offset}\n stickyOffset={stickyOffset}\n zIndex={zIndex}\n />\n );\n};\n\nexport default Drawer;\n\napplyDisplayName(Drawer, 'Drawer');\n"]}
|
package/drawer/styles.css.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"drawer": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"with-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"header
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
4
|
+
"drawer": "awsui_drawer_1sxt8_zqi16_189",
|
|
5
|
+
"position-absolute": "awsui_position-absolute_1sxt8_zqi16_222",
|
|
6
|
+
"position-sticky": "awsui_position-sticky_1sxt8_zqi16_222",
|
|
7
|
+
"position-fixed": "awsui_position-fixed_1sxt8_zqi16_222",
|
|
8
|
+
"with-footer": "awsui_with-footer_1sxt8_zqi16_225",
|
|
9
|
+
"position-static": "awsui_position-static_1sxt8_zqi16_229",
|
|
10
|
+
"content": "awsui_content_1sxt8_zqi16_232",
|
|
11
|
+
"header": "awsui_header_1sxt8_zqi16_236",
|
|
12
|
+
"with-additional-action": "awsui_with-additional-action_1sxt8_zqi16_253",
|
|
13
|
+
"with-runtime-context": "awsui_with-runtime-context_1sxt8_zqi16_261",
|
|
14
|
+
"with-toolbar": "awsui_with-toolbar_1sxt8_zqi16_264",
|
|
15
|
+
"header-actions": "awsui_header-actions_1sxt8_zqi16_283",
|
|
16
|
+
"content-with-paddings": "awsui_content-with-paddings_1sxt8_zqi16_289",
|
|
17
|
+
"footer": "awsui_footer_1sxt8_zqi16_296",
|
|
18
|
+
"is-sticky": "awsui_is-sticky_1sxt8_zqi16_302",
|
|
19
|
+
"test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_zqi16_310"
|
|
16
20
|
};
|
|
17
21
|
|
package/drawer/styles.scoped.css
CHANGED
|
@@ -186,7 +186,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
186
186
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
187
187
|
SPDX-License-Identifier: Apache-2.0
|
|
188
188
|
*/
|
|
189
|
-
.
|
|
189
|
+
.awsui_drawer_1sxt8_zqi16_189:not(#\9) {
|
|
190
190
|
border-collapse: separate;
|
|
191
191
|
border-spacing: 0;
|
|
192
192
|
box-sizing: border-box;
|
|
@@ -217,17 +217,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
217
217
|
-webkit-font-smoothing: auto;
|
|
218
218
|
-moz-osx-font-smoothing: auto;
|
|
219
219
|
word-wrap: break-word;
|
|
220
|
+
background-color: var(--color-background-drawer-5hs0eh, #ffffff);
|
|
220
221
|
}
|
|
221
|
-
.
|
|
222
|
+
.awsui_drawer_1sxt8_zqi16_189.awsui_position-absolute_1sxt8_zqi16_222:not(#\9), .awsui_drawer_1sxt8_zqi16_189.awsui_position-sticky_1sxt8_zqi16_222:not(#\9), .awsui_drawer_1sxt8_zqi16_189.awsui_position-fixed_1sxt8_zqi16_222:not(#\9) {
|
|
223
|
+
box-shadow: var(--shadow-panel-vk7iea, 0px 0px 0px 1px #b6bec9);
|
|
224
|
+
}
|
|
225
|
+
.awsui_drawer_1sxt8_zqi16_189.awsui_with-footer_1sxt8_zqi16_225:not(#\9) {
|
|
222
226
|
display: flex;
|
|
223
227
|
flex-direction: column;
|
|
228
|
+
}
|
|
229
|
+
.awsui_drawer_1sxt8_zqi16_189.awsui_with-footer_1sxt8_zqi16_225.awsui_position-static_1sxt8_zqi16_229:not(#\9) {
|
|
224
230
|
min-block-size: 100%;
|
|
225
231
|
}
|
|
226
|
-
.
|
|
232
|
+
.awsui_drawer_1sxt8_zqi16_189.awsui_with-footer_1sxt8_zqi16_225 > .awsui_content_1sxt8_zqi16_232:not(#\9) {
|
|
227
233
|
flex: 1;
|
|
228
234
|
}
|
|
229
235
|
|
|
230
|
-
.
|
|
236
|
+
.awsui_header_1sxt8_zqi16_236:not(#\9) {
|
|
231
237
|
font-size: var(--font-panel-header-size-33h9j8, 18px);
|
|
232
238
|
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
233
239
|
line-height: var(--font-panel-header-line-height-8xb2qj, 22px);
|
|
@@ -244,7 +250,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
244
250
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
245
251
|
}
|
|
246
252
|
@media (min-width: 689px) {
|
|
247
|
-
.
|
|
253
|
+
.awsui_header_1sxt8_zqi16_236.awsui_with-additional-action_1sxt8_zqi16_253:not(#\9) {
|
|
248
254
|
/*
|
|
249
255
|
this padding is needed when the drawer renders inside a runtime drawer and the runtime drawer has an additional action
|
|
250
256
|
on the right (or left in rtl). in this case this padding ensures that the drawer's content does not overlap with runtime actions
|
|
@@ -252,18 +258,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
252
258
|
padding-inline: var(--space-panel-side-left-u1m3s9, 28px) calc(var(--space-xxxl-aut1u7, 40px) + var(--space-scaled-xxl-6wgq96, 32px));
|
|
253
259
|
}
|
|
254
260
|
}
|
|
255
|
-
.
|
|
261
|
+
.awsui_header_1sxt8_zqi16_236.awsui_with-runtime-context_1sxt8_zqi16_261:not(#\9) {
|
|
256
262
|
padding-block: 14px;
|
|
257
263
|
}
|
|
258
|
-
.awsui_with-
|
|
264
|
+
.awsui_with-toolbar_1sxt8_zqi16_264 > .awsui_header_1sxt8_zqi16_236:not(#\9) {
|
|
259
265
|
border-color: transparent;
|
|
260
266
|
margin-block-end: 0px;
|
|
261
267
|
}
|
|
262
|
-
.
|
|
263
|
-
.
|
|
264
|
-
.
|
|
265
|
-
.
|
|
266
|
-
.
|
|
268
|
+
.awsui_header_1sxt8_zqi16_236 h2:not(#\9),
|
|
269
|
+
.awsui_header_1sxt8_zqi16_236 h3:not(#\9),
|
|
270
|
+
.awsui_header_1sxt8_zqi16_236 h4:not(#\9),
|
|
271
|
+
.awsui_header_1sxt8_zqi16_236 h5:not(#\9),
|
|
272
|
+
.awsui_header_1sxt8_zqi16_236 h6:not(#\9) {
|
|
267
273
|
font-size: var(--font-panel-header-size-33h9j8, 18px);
|
|
268
274
|
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
269
275
|
line-height: var(--font-panel-header-line-height-8xb2qj, 22px);
|
|
@@ -274,26 +280,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
274
280
|
margin-block: 0;
|
|
275
281
|
}
|
|
276
282
|
|
|
277
|
-
.awsui_header-
|
|
283
|
+
.awsui_header-actions_1sxt8_zqi16_283:not(#\9) {
|
|
278
284
|
display: inline-flex;
|
|
279
285
|
align-items: flex-start;
|
|
280
286
|
z-index: 1;
|
|
281
287
|
}
|
|
282
288
|
|
|
283
|
-
.awsui_content-with-
|
|
289
|
+
.awsui_content-with-paddings_1sxt8_zqi16_289:not(#\9):not(:empty) {
|
|
284
290
|
padding-block-start: var(--space-panel-content-top-qvd1dr, 20px);
|
|
285
291
|
padding-inline-start: var(--space-panel-side-left-u1m3s9, 28px);
|
|
286
292
|
padding-inline-end: var(--space-panel-side-right-8wwirc, 24px);
|
|
287
293
|
padding-block-end: var(--space-panel-content-bottom-24c6lu, 40px);
|
|
288
294
|
}
|
|
289
295
|
|
|
290
|
-
.
|
|
296
|
+
.awsui_footer_1sxt8_zqi16_296:not(#\9) {
|
|
291
297
|
background-color: var(--color-background-container-content-6u8rvp, #ffffff);
|
|
292
298
|
border-block-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-panel-header-ygztvl, #c6c6cd);
|
|
293
299
|
padding-block: var(--space-panel-content-top-qvd1dr, 20px);
|
|
294
300
|
padding-inline: var(--space-panel-side-left-u1m3s9, 28px) var(--space-panel-side-right-8wwirc, 24px);
|
|
295
301
|
}
|
|
296
|
-
.
|
|
302
|
+
.awsui_footer_1sxt8_zqi16_296.awsui_is-sticky_1sxt8_zqi16_302:not(#\9) {
|
|
297
303
|
position: sticky;
|
|
298
304
|
inset-block-end: 0;
|
|
299
305
|
inset-inline-start: 0;
|
|
@@ -301,6 +307,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
301
307
|
z-index: 810;
|
|
302
308
|
}
|
|
303
309
|
|
|
304
|
-
.awsui_test-utils-drawer-
|
|
310
|
+
.awsui_test-utils-drawer-content_1sxt8_zqi16_310:not(#\9) {
|
|
305
311
|
/* used in test-utils */
|
|
306
312
|
}
|
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"drawer": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"with-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"header
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
5
|
+
"drawer": "awsui_drawer_1sxt8_zqi16_189",
|
|
6
|
+
"position-absolute": "awsui_position-absolute_1sxt8_zqi16_222",
|
|
7
|
+
"position-sticky": "awsui_position-sticky_1sxt8_zqi16_222",
|
|
8
|
+
"position-fixed": "awsui_position-fixed_1sxt8_zqi16_222",
|
|
9
|
+
"with-footer": "awsui_with-footer_1sxt8_zqi16_225",
|
|
10
|
+
"position-static": "awsui_position-static_1sxt8_zqi16_229",
|
|
11
|
+
"content": "awsui_content_1sxt8_zqi16_232",
|
|
12
|
+
"header": "awsui_header_1sxt8_zqi16_236",
|
|
13
|
+
"with-additional-action": "awsui_with-additional-action_1sxt8_zqi16_253",
|
|
14
|
+
"with-runtime-context": "awsui_with-runtime-context_1sxt8_zqi16_261",
|
|
15
|
+
"with-toolbar": "awsui_with-toolbar_1sxt8_zqi16_264",
|
|
16
|
+
"header-actions": "awsui_header-actions_1sxt8_zqi16_283",
|
|
17
|
+
"content-with-paddings": "awsui_content-with-paddings_1sxt8_zqi16_289",
|
|
18
|
+
"footer": "awsui_footer_1sxt8_zqi16_296",
|
|
19
|
+
"is-sticky": "awsui_is-sticky_1sxt8_zqi16_302",
|
|
20
|
+
"test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_zqi16_310"
|
|
17
21
|
};
|
|
18
22
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NextDrawerProps } from './interfaces';
|
|
3
|
+
type PositionProps = Pick<NextDrawerProps, 'position' | 'placement' | 'offset' | 'stickyOffset' | 'zIndex'>;
|
|
4
|
+
export declare function getPositionStyles({
|
|
5
|
+
position,
|
|
6
|
+
zIndex,
|
|
7
|
+
...props
|
|
8
|
+
}: PositionProps): {
|
|
9
|
+
className: string;
|
|
10
|
+
style: React.CSSProperties;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/drawer/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/C,KAAK,aAAa,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,cAAc,GAAG,QAAQ,CAAC,CAAC;AAE5G,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,GAAG;IAChF,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B,CAmBA"}
|
package/drawer/utils.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
|
|
4
|
+
import styles from './styles.css.js';
|
|
5
|
+
export function getPositionStyles({ position, zIndex, ...props }) {
|
|
6
|
+
if (position === 'sticky' && (props.placement === 'start' || props.placement === 'end')) {
|
|
7
|
+
warnOnce('Drawer', `position="sticky" is not supported with placement="${props.placement}" and falls back to position="static".`);
|
|
8
|
+
position = 'static';
|
|
9
|
+
}
|
|
10
|
+
switch (position) {
|
|
11
|
+
case 'absolute':
|
|
12
|
+
return getStyles(position, { position: 'absolute', zIndex, ...computeAbsoluteOffsets(props) });
|
|
13
|
+
case 'sticky':
|
|
14
|
+
return getStyles(position, { position: 'sticky', zIndex, ...computeStickyOffsets(props) });
|
|
15
|
+
case 'fixed':
|
|
16
|
+
return getStyles(position, { position: 'fixed', zIndex, ...computeAbsoluteOffsets(props) });
|
|
17
|
+
case 'static':
|
|
18
|
+
default:
|
|
19
|
+
return getStyles(position);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function getStyles(position = 'static', style = {}) {
|
|
23
|
+
return { className: styles[`position-${position}`], style };
|
|
24
|
+
}
|
|
25
|
+
function computeAbsoluteOffsets({ placement, offset: { top, bottom, start, end } = {}, }) {
|
|
26
|
+
const style = {};
|
|
27
|
+
const offset = { top: top !== null && top !== void 0 ? top : 0, bottom: bottom !== null && bottom !== void 0 ? bottom : 0, start: start !== null && start !== void 0 ? start : 0, end: end !== null && end !== void 0 ? end : 0 };
|
|
28
|
+
switch (placement) {
|
|
29
|
+
case 'top':
|
|
30
|
+
style.insetBlockStart = offset.top;
|
|
31
|
+
style.insetInlineStart = offset.start;
|
|
32
|
+
style.insetInlineEnd = offset.end;
|
|
33
|
+
break;
|
|
34
|
+
case 'bottom':
|
|
35
|
+
style.insetBlockEnd = offset.bottom;
|
|
36
|
+
style.insetInlineStart = offset.start;
|
|
37
|
+
style.insetInlineEnd = offset.end;
|
|
38
|
+
break;
|
|
39
|
+
case 'start':
|
|
40
|
+
style.insetInlineStart = offset.start;
|
|
41
|
+
style.insetBlockStart = offset.top;
|
|
42
|
+
style.insetBlockEnd = offset.bottom;
|
|
43
|
+
break;
|
|
44
|
+
case 'end':
|
|
45
|
+
style.insetInlineEnd = offset.end;
|
|
46
|
+
style.insetBlockStart = offset.top;
|
|
47
|
+
style.insetBlockEnd = offset.bottom;
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
return style;
|
|
51
|
+
}
|
|
52
|
+
function computeStickyOffsets({ placement, offset: { top, bottom, start, end } = {}, stickyOffset: { top: stickyTop, bottom: stickyBottom } = {}, }) {
|
|
53
|
+
const style = {};
|
|
54
|
+
const offset = { top: top !== null && top !== void 0 ? top : 0, bottom: bottom !== null && bottom !== void 0 ? bottom : 0, start: start !== null && start !== void 0 ? start : 0, end: end !== null && end !== void 0 ? end : 0 };
|
|
55
|
+
const stickyOffset = { top: stickyTop !== null && stickyTop !== void 0 ? stickyTop : 0, bottom: stickyBottom !== null && stickyBottom !== void 0 ? stickyBottom : 0 };
|
|
56
|
+
switch (placement) {
|
|
57
|
+
case 'top':
|
|
58
|
+
style.insetBlockStart = stickyOffset.top;
|
|
59
|
+
style.marginBlockStart = offset.top;
|
|
60
|
+
style.marginInlineStart = offset.start;
|
|
61
|
+
style.marginInlineEnd = offset.end;
|
|
62
|
+
style.inlineSize = `calc(100% - ${offset.start + offset.end}px)`;
|
|
63
|
+
break;
|
|
64
|
+
case 'bottom':
|
|
65
|
+
style.insetBlockEnd = stickyOffset.bottom;
|
|
66
|
+
style.marginBlockEnd = offset.bottom;
|
|
67
|
+
style.marginInlineStart = offset.start;
|
|
68
|
+
style.marginInlineEnd = offset.end;
|
|
69
|
+
style.inlineSize = `calc(100% - ${offset.start + offset.end}px)`;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
return style;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/drawer/utils.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { NextDrawerProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype PositionProps = Pick<NextDrawerProps, 'position' | 'placement' | 'offset' | 'stickyOffset' | 'zIndex'>;\n\nexport function getPositionStyles({ position, zIndex, ...props }: PositionProps): {\n className: string;\n style: React.CSSProperties;\n} {\n if (position === 'sticky' && (props.placement === 'start' || props.placement === 'end')) {\n warnOnce(\n 'Drawer',\n `position=\"sticky\" is not supported with placement=\"${props.placement}\" and falls back to position=\"static\".`\n );\n position = 'static';\n }\n switch (position) {\n case 'absolute':\n return getStyles(position, { position: 'absolute', zIndex, ...computeAbsoluteOffsets(props) });\n case 'sticky':\n return getStyles(position, { position: 'sticky', zIndex, ...computeStickyOffsets(props) });\n case 'fixed':\n return getStyles(position, { position: 'fixed', zIndex, ...computeAbsoluteOffsets(props) });\n case 'static':\n default:\n return getStyles(position);\n }\n}\n\nfunction getStyles(position: NextDrawerProps.Position = 'static', style: React.CSSProperties = {}) {\n return { className: styles[`position-${position}`], style };\n}\n\nfunction computeAbsoluteOffsets({\n placement,\n offset: { top, bottom, start, end } = {},\n}: Pick<NextDrawerProps, 'placement' | 'offset'>) {\n const style: React.CSSProperties = {};\n const offset = { top: top ?? 0, bottom: bottom ?? 0, start: start ?? 0, end: end ?? 0 };\n switch (placement) {\n case 'top':\n style.insetBlockStart = offset.top;\n style.insetInlineStart = offset.start;\n style.insetInlineEnd = offset.end;\n break;\n case 'bottom':\n style.insetBlockEnd = offset.bottom;\n style.insetInlineStart = offset.start;\n style.insetInlineEnd = offset.end;\n break;\n case 'start':\n style.insetInlineStart = offset.start;\n style.insetBlockStart = offset.top;\n style.insetBlockEnd = offset.bottom;\n break;\n case 'end':\n style.insetInlineEnd = offset.end;\n style.insetBlockStart = offset.top;\n style.insetBlockEnd = offset.bottom;\n break;\n }\n return style;\n}\n\nfunction computeStickyOffsets({\n placement,\n offset: { top, bottom, start, end } = {},\n stickyOffset: { top: stickyTop, bottom: stickyBottom } = {},\n}: Pick<NextDrawerProps, 'placement' | 'offset' | 'stickyOffset'>) {\n const style: React.CSSProperties = {};\n const offset = { top: top ?? 0, bottom: bottom ?? 0, start: start ?? 0, end: end ?? 0 };\n const stickyOffset = { top: stickyTop ?? 0, bottom: stickyBottom ?? 0 };\n switch (placement) {\n case 'top':\n style.insetBlockStart = stickyOffset.top;\n style.marginBlockStart = offset.top;\n style.marginInlineStart = offset.start;\n style.marginInlineEnd = offset.end;\n style.inlineSize = `calc(100% - ${offset.start + offset.end}px)`;\n break;\n case 'bottom':\n style.insetBlockEnd = stickyOffset.bottom;\n style.marginBlockEnd = offset.bottom;\n style.marginInlineStart = offset.start;\n style.marginInlineEnd = offset.end;\n style.inlineSize = `calc(100% - ${offset.start + offset.end}px)`;\n break;\n }\n return style;\n}\n"]}
|
|
@@ -283,6 +283,7 @@ body {
|
|
|
283
283
|
--color-background-input-disabled-dihaja:var(--color-neutral-250-vs1is4);
|
|
284
284
|
--color-background-item-selected-9gppru:var(--color-primary-50-1y05xv);
|
|
285
285
|
--color-background-layout-main-5ilwcb:var(--color-white-p1zlvy);
|
|
286
|
+
--color-background-drawer-5hs0eh:var(--color-background-layout-panel-content-xto15e);
|
|
286
287
|
--color-background-layout-mobile-panel-ed0ava:var(--color-neutral-950-lxybh8);
|
|
287
288
|
--color-background-layout-panel-content-xto15e:var(--color-background-container-content-6u8rvp);
|
|
288
289
|
--color-background-layout-panel-hover-tguulw:var(--color-neutral-250-vs1is4);
|
|
@@ -1401,6 +1402,7 @@ body {
|
|
|
1401
1402
|
--color-background-card-p5vrq0:var(--color-background-container-content-6u8rvp);
|
|
1402
1403
|
--color-background-item-card-ww2wfv:var(--color-background-card-p5vrq0);
|
|
1403
1404
|
--color-background-dropdown-item-selected-f3v6te:var(--color-background-item-selected-9gppru);
|
|
1405
|
+
--color-background-drawer-5hs0eh:var(--color-background-layout-panel-content-xto15e);
|
|
1404
1406
|
--color-background-layout-panel-content-xto15e:var(--color-background-container-content-6u8rvp);
|
|
1405
1407
|
--color-background-modal-overlay-d7uby0:var(--color-grey-opaque-70-p0svy7);
|
|
1406
1408
|
--color-background-segment-default-b0r494:var(--color-background-button-normal-default-7f99mv);
|
|
@@ -1668,6 +1670,7 @@ body {
|
|
|
1668
1670
|
--color-background-card-p5vrq0:var(--color-background-container-content-6u8rvp);
|
|
1669
1671
|
--color-background-item-card-ww2wfv:var(--color-background-card-p5vrq0);
|
|
1670
1672
|
--color-background-dropdown-item-selected-f3v6te:var(--color-background-item-selected-9gppru);
|
|
1673
|
+
--color-background-drawer-5hs0eh:var(--color-background-layout-panel-content-xto15e);
|
|
1671
1674
|
--color-background-layout-panel-content-xto15e:var(--color-background-container-content-6u8rvp);
|
|
1672
1675
|
--color-background-modal-overlay-d7uby0:var(--color-grey-opaque-70-p0svy7);
|
|
1673
1676
|
--color-background-segment-hover-800sl4:var(--color-background-button-normal-hover-53op9s);
|
|
@@ -2067,6 +2070,7 @@ body {
|
|
|
2067
2070
|
--color-background-card-p5vrq0:var(--color-background-container-content-6u8rvp);
|
|
2068
2071
|
--color-background-item-card-ww2wfv:var(--color-background-card-p5vrq0);
|
|
2069
2072
|
--color-background-dropdown-item-selected-f3v6te:var(--color-background-item-selected-9gppru);
|
|
2073
|
+
--color-background-drawer-5hs0eh:var(--color-background-layout-panel-content-xto15e);
|
|
2070
2074
|
--color-background-layout-panel-content-xto15e:var(--color-background-container-content-6u8rvp);
|
|
2071
2075
|
--color-background-modal-overlay-d7uby0:var(--color-grey-opaque-70-p0svy7);
|
|
2072
2076
|
--color-background-segment-default-b0r494:var(--color-background-button-normal-default-7f99mv);
|
|
@@ -2232,5 +2236,5 @@ body {
|
|
|
2232
2236
|
}
|
|
2233
2237
|
}
|
|
2234
2238
|
:root {
|
|
2235
|
-
--awsui-version-info-
|
|
2239
|
+
--awsui-version-info-9d03c896: true;
|
|
2236
2240
|
}
|
package/internal/environment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (9d03c896)";
|
|
3
|
+
export var GIT_SHA = "9d03c896";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "core";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|
|
@@ -325,6 +325,7 @@ export const colorBackgroundInputDefault: string;
|
|
|
325
325
|
export const colorBackgroundInputDisabled: string;
|
|
326
326
|
export const colorBackgroundItemSelected: string;
|
|
327
327
|
export const colorBackgroundLayoutMain: string;
|
|
328
|
+
export const colorBackgroundDrawer: string;
|
|
328
329
|
export const colorBackgroundLayoutMobilePanel: string;
|
|
329
330
|
export const colorBackgroundLayoutPanelContent: string;
|
|
330
331
|
export const colorBackgroundLayoutPanelHover: string;
|
|
@@ -325,6 +325,7 @@ export var colorBackgroundInputDefault = "var(--color-background-input-default-i
|
|
|
325
325
|
export var colorBackgroundInputDisabled = "var(--color-background-input-disabled-dihaja, #ebebf0)";
|
|
326
326
|
export var colorBackgroundItemSelected = "var(--color-background-item-selected-9gppru, #f0fbff)";
|
|
327
327
|
export var colorBackgroundLayoutMain = "var(--color-background-layout-main-5ilwcb, #ffffff)";
|
|
328
|
+
export var colorBackgroundDrawer = "var(--color-background-drawer-5hs0eh, #ffffff)";
|
|
328
329
|
export var colorBackgroundLayoutMobilePanel = "var(--color-background-layout-mobile-panel-ed0ava, #0f141a)";
|
|
329
330
|
export var colorBackgroundLayoutPanelContent = "var(--color-background-layout-panel-content-xto15e, #ffffff)";
|
|
330
331
|
export var colorBackgroundLayoutPanelHover = "var(--color-background-layout-panel-hover-tguulw, #ebebf0)";
|
|
@@ -1347,6 +1347,10 @@ module.exports.preset = {
|
|
|
1347
1347
|
"light": "{colorWhite}",
|
|
1348
1348
|
"dark": "{colorNeutral850}"
|
|
1349
1349
|
},
|
|
1350
|
+
"colorBackgroundDrawer": {
|
|
1351
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
1352
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
1353
|
+
},
|
|
1350
1354
|
"colorBackgroundLayoutMobilePanel": {
|
|
1351
1355
|
"light": "{colorNeutral950}",
|
|
1352
1356
|
"dark": "{colorNeutral950}"
|
|
@@ -3921,6 +3925,10 @@ module.exports.preset = {
|
|
|
3921
3925
|
"light": "{colorNeutral850}",
|
|
3922
3926
|
"dark": "{colorNeutral850}"
|
|
3923
3927
|
},
|
|
3928
|
+
"colorBackgroundDrawer": {
|
|
3929
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
3930
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
3931
|
+
},
|
|
3924
3932
|
"colorBackgroundLayoutMobilePanel": {
|
|
3925
3933
|
"light": "{colorNeutral950}",
|
|
3926
3934
|
"dark": "{colorNeutral950}"
|
|
@@ -5366,6 +5374,10 @@ module.exports.preset = {
|
|
|
5366
5374
|
"light": "{colorNeutral950}",
|
|
5367
5375
|
"dark": "{colorNeutral950}"
|
|
5368
5376
|
},
|
|
5377
|
+
"colorBackgroundDrawer": {
|
|
5378
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
5379
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
5380
|
+
},
|
|
5369
5381
|
"colorBackgroundLayoutMobilePanel": {
|
|
5370
5382
|
"light": "{colorNeutral950}",
|
|
5371
5383
|
"dark": "{colorNeutral950}"
|
|
@@ -6739,6 +6751,10 @@ module.exports.preset = {
|
|
|
6739
6751
|
"light": "{colorWhite}",
|
|
6740
6752
|
"dark": "{colorNeutral850}"
|
|
6741
6753
|
},
|
|
6754
|
+
"colorBackgroundDrawer": {
|
|
6755
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
6756
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
6757
|
+
},
|
|
6742
6758
|
"colorBackgroundLayoutMobilePanel": {
|
|
6743
6759
|
"light": "{colorNeutral950}",
|
|
6744
6760
|
"dark": "{colorNeutral950}"
|
|
@@ -7997,6 +8013,10 @@ module.exports.preset = {
|
|
|
7997
8013
|
"light": "{colorWhite}",
|
|
7998
8014
|
"dark": "{colorNeutral850}"
|
|
7999
8015
|
},
|
|
8016
|
+
"colorBackgroundDrawer": {
|
|
8017
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
8018
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
8019
|
+
},
|
|
8000
8020
|
"colorBackgroundLayoutMobilePanel": {
|
|
8001
8021
|
"light": "{colorNeutral950}",
|
|
8002
8022
|
"dark": "{colorNeutral950}"
|
|
@@ -9255,6 +9275,10 @@ module.exports.preset = {
|
|
|
9255
9275
|
"light": "{colorWhite}",
|
|
9256
9276
|
"dark": "{colorNeutral850}"
|
|
9257
9277
|
},
|
|
9278
|
+
"colorBackgroundDrawer": {
|
|
9279
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
9280
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
9281
|
+
},
|
|
9258
9282
|
"colorBackgroundLayoutMobilePanel": {
|
|
9259
9283
|
"light": "{colorNeutral950}",
|
|
9260
9284
|
"dark": "{colorNeutral950}"
|
|
@@ -10515,6 +10539,10 @@ module.exports.preset = {
|
|
|
10515
10539
|
"light": "{colorNeutral850}",
|
|
10516
10540
|
"dark": "{colorNeutral850}"
|
|
10517
10541
|
},
|
|
10542
|
+
"colorBackgroundDrawer": {
|
|
10543
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
10544
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
10545
|
+
},
|
|
10518
10546
|
"colorBackgroundLayoutMobilePanel": {
|
|
10519
10547
|
"light": "{colorNeutral950}",
|
|
10520
10548
|
"dark": "{colorNeutral950}"
|
|
@@ -11884,6 +11912,7 @@ module.exports.preset = {
|
|
|
11884
11912
|
"colorBackgroundInputDisabled": "color",
|
|
11885
11913
|
"colorBackgroundItemSelected": "color",
|
|
11886
11914
|
"colorBackgroundLayoutMain": "color",
|
|
11915
|
+
"colorBackgroundDrawer": "color",
|
|
11887
11916
|
"colorBackgroundLayoutMobilePanel": "color",
|
|
11888
11917
|
"colorBackgroundLayoutPanelContent": "color",
|
|
11889
11918
|
"colorBackgroundLayoutPanelHover": "color",
|
|
@@ -13664,6 +13693,7 @@ module.exports.preset = {
|
|
|
13664
13693
|
"colorBackgroundInputDisabled": "color-background-input-disabled",
|
|
13665
13694
|
"colorBackgroundItemSelected": "color-background-item-selected",
|
|
13666
13695
|
"colorBackgroundLayoutMain": "color-background-layout-main",
|
|
13696
|
+
"colorBackgroundDrawer": "color-background-drawer",
|
|
13667
13697
|
"colorBackgroundLayoutMobilePanel": "color-background-layout-mobile-panel",
|
|
13668
13698
|
"colorBackgroundLayoutPanelContent": "color-background-layout-panel-content",
|
|
13669
13699
|
"colorBackgroundLayoutPanelHover": "color-background-layout-panel-hover",
|
|
@@ -14554,6 +14584,7 @@ module.exports.preset = {
|
|
|
14554
14584
|
"colorBackgroundInputDisabled": "--color-background-input-disabled-dihaja",
|
|
14555
14585
|
"colorBackgroundItemSelected": "--color-background-item-selected-9gppru",
|
|
14556
14586
|
"colorBackgroundLayoutMain": "--color-background-layout-main-5ilwcb",
|
|
14587
|
+
"colorBackgroundDrawer": "--color-background-drawer-5hs0eh",
|
|
14557
14588
|
"colorBackgroundLayoutMobilePanel": "--color-background-layout-mobile-panel-ed0ava",
|
|
14558
14589
|
"colorBackgroundLayoutPanelContent": "--color-background-layout-panel-content-xto15e",
|
|
14559
14590
|
"colorBackgroundLayoutPanelHover": "--color-background-layout-panel-hover-tguulw",
|
|
@@ -1347,6 +1347,10 @@ export var preset = {
|
|
|
1347
1347
|
"light": "{colorWhite}",
|
|
1348
1348
|
"dark": "{colorNeutral850}"
|
|
1349
1349
|
},
|
|
1350
|
+
"colorBackgroundDrawer": {
|
|
1351
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
1352
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
1353
|
+
},
|
|
1350
1354
|
"colorBackgroundLayoutMobilePanel": {
|
|
1351
1355
|
"light": "{colorNeutral950}",
|
|
1352
1356
|
"dark": "{colorNeutral950}"
|
|
@@ -3921,6 +3925,10 @@ export var preset = {
|
|
|
3921
3925
|
"light": "{colorNeutral850}",
|
|
3922
3926
|
"dark": "{colorNeutral850}"
|
|
3923
3927
|
},
|
|
3928
|
+
"colorBackgroundDrawer": {
|
|
3929
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
3930
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
3931
|
+
},
|
|
3924
3932
|
"colorBackgroundLayoutMobilePanel": {
|
|
3925
3933
|
"light": "{colorNeutral950}",
|
|
3926
3934
|
"dark": "{colorNeutral950}"
|
|
@@ -5366,6 +5374,10 @@ export var preset = {
|
|
|
5366
5374
|
"light": "{colorNeutral950}",
|
|
5367
5375
|
"dark": "{colorNeutral950}"
|
|
5368
5376
|
},
|
|
5377
|
+
"colorBackgroundDrawer": {
|
|
5378
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
5379
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
5380
|
+
},
|
|
5369
5381
|
"colorBackgroundLayoutMobilePanel": {
|
|
5370
5382
|
"light": "{colorNeutral950}",
|
|
5371
5383
|
"dark": "{colorNeutral950}"
|
|
@@ -6739,6 +6751,10 @@ export var preset = {
|
|
|
6739
6751
|
"light": "{colorWhite}",
|
|
6740
6752
|
"dark": "{colorNeutral850}"
|
|
6741
6753
|
},
|
|
6754
|
+
"colorBackgroundDrawer": {
|
|
6755
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
6756
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
6757
|
+
},
|
|
6742
6758
|
"colorBackgroundLayoutMobilePanel": {
|
|
6743
6759
|
"light": "{colorNeutral950}",
|
|
6744
6760
|
"dark": "{colorNeutral950}"
|
|
@@ -7997,6 +8013,10 @@ export var preset = {
|
|
|
7997
8013
|
"light": "{colorWhite}",
|
|
7998
8014
|
"dark": "{colorNeutral850}"
|
|
7999
8015
|
},
|
|
8016
|
+
"colorBackgroundDrawer": {
|
|
8017
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
8018
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
8019
|
+
},
|
|
8000
8020
|
"colorBackgroundLayoutMobilePanel": {
|
|
8001
8021
|
"light": "{colorNeutral950}",
|
|
8002
8022
|
"dark": "{colorNeutral950}"
|
|
@@ -9255,6 +9275,10 @@ export var preset = {
|
|
|
9255
9275
|
"light": "{colorWhite}",
|
|
9256
9276
|
"dark": "{colorNeutral850}"
|
|
9257
9277
|
},
|
|
9278
|
+
"colorBackgroundDrawer": {
|
|
9279
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
9280
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
9281
|
+
},
|
|
9258
9282
|
"colorBackgroundLayoutMobilePanel": {
|
|
9259
9283
|
"light": "{colorNeutral950}",
|
|
9260
9284
|
"dark": "{colorNeutral950}"
|
|
@@ -10515,6 +10539,10 @@ export var preset = {
|
|
|
10515
10539
|
"light": "{colorNeutral850}",
|
|
10516
10540
|
"dark": "{colorNeutral850}"
|
|
10517
10541
|
},
|
|
10542
|
+
"colorBackgroundDrawer": {
|
|
10543
|
+
"light": "{colorBackgroundLayoutPanelContent}",
|
|
10544
|
+
"dark": "{colorBackgroundLayoutPanelContent}"
|
|
10545
|
+
},
|
|
10518
10546
|
"colorBackgroundLayoutMobilePanel": {
|
|
10519
10547
|
"light": "{colorNeutral950}",
|
|
10520
10548
|
"dark": "{colorNeutral950}"
|
|
@@ -11884,6 +11912,7 @@ export var preset = {
|
|
|
11884
11912
|
"colorBackgroundInputDisabled": "color",
|
|
11885
11913
|
"colorBackgroundItemSelected": "color",
|
|
11886
11914
|
"colorBackgroundLayoutMain": "color",
|
|
11915
|
+
"colorBackgroundDrawer": "color",
|
|
11887
11916
|
"colorBackgroundLayoutMobilePanel": "color",
|
|
11888
11917
|
"colorBackgroundLayoutPanelContent": "color",
|
|
11889
11918
|
"colorBackgroundLayoutPanelHover": "color",
|
|
@@ -13664,6 +13693,7 @@ export var preset = {
|
|
|
13664
13693
|
"colorBackgroundInputDisabled": "color-background-input-disabled",
|
|
13665
13694
|
"colorBackgroundItemSelected": "color-background-item-selected",
|
|
13666
13695
|
"colorBackgroundLayoutMain": "color-background-layout-main",
|
|
13696
|
+
"colorBackgroundDrawer": "color-background-drawer",
|
|
13667
13697
|
"colorBackgroundLayoutMobilePanel": "color-background-layout-mobile-panel",
|
|
13668
13698
|
"colorBackgroundLayoutPanelContent": "color-background-layout-panel-content",
|
|
13669
13699
|
"colorBackgroundLayoutPanelHover": "color-background-layout-panel-hover",
|
|
@@ -14554,6 +14584,7 @@ export var preset = {
|
|
|
14554
14584
|
"colorBackgroundInputDisabled": "--color-background-input-disabled-dihaja",
|
|
14555
14585
|
"colorBackgroundItemSelected": "--color-background-item-selected-9gppru",
|
|
14556
14586
|
"colorBackgroundLayoutMain": "--color-background-layout-main-5ilwcb",
|
|
14587
|
+
"colorBackgroundDrawer": "--color-background-drawer-5hs0eh",
|
|
14557
14588
|
"colorBackgroundLayoutMobilePanel": "--color-background-layout-mobile-panel-ed0ava",
|
|
14558
14589
|
"colorBackgroundLayoutPanelContent": "--color-background-layout-panel-content-xto15e",
|
|
14559
14590
|
"colorBackgroundLayoutPanelHover": "--color-background-layout-panel-hover-tguulw",
|
package/internal/manifest.json
CHANGED