@cloudscape-design/components-themeable 3.0.1280 → 3.0.1281
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/drawer/styles.scss +10 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/template/date-range-picker/index.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/index.js +7 -6
- package/lib/internal/template/date-range-picker/index.js.map +1 -1
- package/lib/internal/template/date-range-picker/interfaces.d.ts +8 -0
- package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
- package/lib/internal/template/drawer/implementation.d.ts +3 -3
- package/lib/internal/template/drawer/implementation.d.ts.map +1 -1
- package/lib/internal/template/drawer/implementation.js +5 -2
- package/lib/internal/template/drawer/implementation.js.map +1 -1
- package/lib/internal/template/drawer/index.d.ts +2 -1
- package/lib/internal/template/drawer/index.d.ts.map +1 -1
- package/lib/internal/template/drawer/index.js +16 -4
- package/lib/internal/template/drawer/index.js.map +1 -1
- package/lib/internal/template/drawer/interfaces.d.ts +72 -7
- package/lib/internal/template/drawer/interfaces.d.ts.map +1 -1
- package/lib/internal/template/drawer/interfaces.js +2 -0
- package/lib/internal/template/drawer/interfaces.js.map +1 -1
- package/lib/internal/template/drawer/next.d.ts +5 -0
- package/lib/internal/template/drawer/next.d.ts.map +1 -0
- package/lib/internal/template/drawer/next.js +31 -0
- package/lib/internal/template/drawer/next.js.map +1 -0
- package/lib/internal/template/drawer/styles.css.js +16 -12
- package/lib/internal/template/drawer/styles.scoped.css +23 -17
- package/lib/internal/template/drawer/styles.selectors.js +16 -12
- package/lib/internal/template/drawer/utils.d.ts +9 -0
- package/lib/internal/template/drawer/utils.d.ts.map +1 -0
- package/lib/internal/template/drawer/utils.js +74 -0
- package/lib/internal/template/drawer/utils.js.map +1 -0
- package/lib/internal/template/internal/base-component/styles.scoped.css +9 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +31 -0
- package/lib/internal/template/internal/generated/theming/index.js +31 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/drawer/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface DrawerProps extends BaseComponentProps {\n /**\n * Header of the drawer.\n *\n * It should contain the only `h2` used in the drawer.\n */\n header?: React.ReactNode;\n\n /**\n * Main content of the drawer.\n
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/drawer/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","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 { BaseComponentProps } from '../internal/base-component';\n\nexport interface DrawerProps extends BaseComponentProps {\n /**\n * Header of the drawer.\n *\n * It should contain the only `h2` used in the drawer.\n */\n header?: React.ReactNode;\n\n /**\n * Main content of the drawer.\n */\n children?: React.ReactNode;\n\n /**\n * Renders the drawer in a loading state. We recommend that you also set a `i18nStrings.loadingText`.\n */\n loading?: boolean;\n\n /**\n * Determines whether the drawer content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * - `loadingText` - The text that's displayed when the drawer is in a loading state.\n * @i18n\n */\n i18nStrings?: DrawerProps.I18nStrings;\n\n /**\n * Actions for the header. Available only if you specify the `header` property.\n */\n headerActions?: React.ReactNode;\n\n /**\n * Sticky footer content that remains visible at the bottom during scroll.\n *\n * Automatically becomes non-sticky when scrollable content area is too small\n * to ensure content remains accessible (not covered by the footer).\n */\n footer?: React.ReactNode;\n}\n\nexport namespace DrawerProps {\n export interface I18nStrings {\n loadingText?: string;\n }\n}\n\n// Props for a future release\nexport interface NextDrawerProps extends DrawerProps {\n /**\n * Specifies the CSS positioning mode of the drawer, and supports the following options:\n * * `static` (default) - The drawer is positioned in the normal document flow.\n * * `sticky` - The drawer sticks to its nearest scrolling ancestor. Only meaningful with `placement=\"top\"` or `placement=\"bottom\"`. Using `sticky` with `placement=\"start\"` or `placement=\"end\"` falls back to `static`.\n * * `absolute` - The drawer is positioned relative to its nearest positioned ancestor.\n * * `fixed` - The drawer is positioned relative to the viewport.\n *\n * @awsuiSystem core\n */\n position?: NextDrawerProps.Position;\n\n /**\n * Specifies which edge of its container the drawer is anchored to, and supports these options:\n * * `start` - Anchored to the inline-start edge.\n * * `end` - (default) Anchored to the inline-end edge.\n * * `top` - Anchored to the top edge.\n * * `bottom` - Anchored to the bottom edge.\n *\n * @awsuiSystem core\n */\n placement?: NextDrawerProps.Placement;\n\n /**\n * Specifies the distance in pixels between the drawer and the edges of its container.\n * Applicable when using `position=\"absolute\"` or `position=\"fixed\"`.\n * Supported properties:\n * * `start` - Distance from the inline-start edge. Not applicable when `placement` is `\"end\"`.\n * * `end` - Distance from the inline-end edge. Not applicable when `placement` is `\"start\"`.\n * * `top` - Distance from the top edge. Not applicable when `placement` is `\"bottom\"`.\n * * `bottom` - Distance from the bottom edge. Not applicable when `placement` is `\"top\"`.\n *\n * @awsuiSystem core\n */\n offset?: NextDrawerProps.Offset;\n\n /**\n * Specifies the distance in pixels from the top or bottom edge of the scrolling container\n * at which the drawer sticks. Applicable only when using `position=\"sticky\"` with `placement=\"top\"` or `placement=\"bottom\"`.\n * * Supported properties:\n * * `top` - Distance from the top of the scrolling container.\n * * `bottom` - Distance from the bottom of the scrolling container.\n *\n * @awsuiSystem core\n */\n stickyOffset?: NextDrawerProps.StickyOffset;\n\n /**\n * Sets the CSS `z-index` of the drawer. Use this to control stacking order when the drawer\n * overlaps other positioned elements on the page.\n *\n * Applicable when using `position=\"sticky\"`, `position=\"absolute\"`, or `position=\"fixed\"`.\n *\n * @awsuiSystem core\n */\n zIndex?: number;\n}\n\nexport namespace NextDrawerProps {\n export type Position = 'static' | 'sticky' | 'absolute' | 'fixed';\n\n export type Placement = 'start' | 'end' | 'top' | 'bottom';\n\n export interface Offset {\n start?: number;\n end?: number;\n top?: number;\n bottom?: number;\n }\n\n export interface StickyOffset {\n top?: number;\n bottom?: number;\n }\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NextDrawerProps } from './interfaces';
|
|
2
|
+
export { NextDrawerProps };
|
|
3
|
+
declare const Drawer: ({ header, headerActions, footer, disableContentPaddings, loading, position, placement, offset, stickyOffset, zIndex, ...props }: NextDrawerProps) => JSX.Element;
|
|
4
|
+
export default Drawer;
|
|
5
|
+
//# sourceMappingURL=next.d.ts.map
|
|
@@ -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"}
|
|
@@ -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"]}
|
|
@@ -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_19ouv_189",
|
|
5
|
+
"position-absolute": "awsui_position-absolute_1sxt8_19ouv_222",
|
|
6
|
+
"position-sticky": "awsui_position-sticky_1sxt8_19ouv_222",
|
|
7
|
+
"position-fixed": "awsui_position-fixed_1sxt8_19ouv_222",
|
|
8
|
+
"with-footer": "awsui_with-footer_1sxt8_19ouv_225",
|
|
9
|
+
"position-static": "awsui_position-static_1sxt8_19ouv_229",
|
|
10
|
+
"content": "awsui_content_1sxt8_19ouv_232",
|
|
11
|
+
"header": "awsui_header_1sxt8_19ouv_236",
|
|
12
|
+
"with-additional-action": "awsui_with-additional-action_1sxt8_19ouv_253",
|
|
13
|
+
"with-runtime-context": "awsui_with-runtime-context_1sxt8_19ouv_261",
|
|
14
|
+
"with-toolbar": "awsui_with-toolbar_1sxt8_19ouv_264",
|
|
15
|
+
"header-actions": "awsui_header-actions_1sxt8_19ouv_283",
|
|
16
|
+
"content-with-paddings": "awsui_content-with-paddings_1sxt8_19ouv_289",
|
|
17
|
+
"footer": "awsui_footer_1sxt8_19ouv_296",
|
|
18
|
+
"is-sticky": "awsui_is-sticky_1sxt8_19ouv_302",
|
|
19
|
+
"test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_19ouv_310"
|
|
16
20
|
};
|
|
17
21
|
|
|
@@ -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_19ouv_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-v79o7e, #ffffff);
|
|
220
221
|
}
|
|
221
|
-
.
|
|
222
|
+
.awsui_drawer_1sxt8_19ouv_189.awsui_position-absolute_1sxt8_19ouv_222:not(#\9), .awsui_drawer_1sxt8_19ouv_189.awsui_position-sticky_1sxt8_19ouv_222:not(#\9), .awsui_drawer_1sxt8_19ouv_189.awsui_position-fixed_1sxt8_19ouv_222:not(#\9) {
|
|
223
|
+
box-shadow: var(--shadow-panel-ywy40s, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
|
|
224
|
+
}
|
|
225
|
+
.awsui_drawer_1sxt8_19ouv_189.awsui_with-footer_1sxt8_19ouv_225:not(#\9) {
|
|
222
226
|
display: flex;
|
|
223
227
|
flex-direction: column;
|
|
228
|
+
}
|
|
229
|
+
.awsui_drawer_1sxt8_19ouv_189.awsui_with-footer_1sxt8_19ouv_225.awsui_position-static_1sxt8_19ouv_229:not(#\9) {
|
|
224
230
|
min-block-size: 100%;
|
|
225
231
|
}
|
|
226
|
-
.
|
|
232
|
+
.awsui_drawer_1sxt8_19ouv_189.awsui_with-footer_1sxt8_19ouv_225 > .awsui_content_1sxt8_19ouv_232:not(#\9) {
|
|
227
233
|
flex: 1;
|
|
228
234
|
}
|
|
229
235
|
|
|
230
|
-
.
|
|
236
|
+
.awsui_header_1sxt8_19ouv_236:not(#\9) {
|
|
231
237
|
font-size: var(--font-panel-header-size-i1j838, 18px);
|
|
232
238
|
letter-spacing: var(--letter-spacing-heading-m-93y02s, normal);
|
|
233
239
|
line-height: var(--font-panel-header-line-height-z3wpa5, 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_19ouv_236.awsui_with-additional-action_1sxt8_19ouv_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-07kpj4, 32px) calc(var(--space-xxxl-qhelse, 40px) + var(--space-scaled-xxl-9ur2is, 32px));
|
|
253
259
|
}
|
|
254
260
|
}
|
|
255
|
-
.
|
|
261
|
+
.awsui_header_1sxt8_19ouv_236.awsui_with-runtime-context_1sxt8_19ouv_261:not(#\9) {
|
|
256
262
|
padding-block: 14px;
|
|
257
263
|
}
|
|
258
|
-
.awsui_with-
|
|
264
|
+
.awsui_with-toolbar_1sxt8_19ouv_264 > .awsui_header_1sxt8_19ouv_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_19ouv_236 h2:not(#\9),
|
|
269
|
+
.awsui_header_1sxt8_19ouv_236 h3:not(#\9),
|
|
270
|
+
.awsui_header_1sxt8_19ouv_236 h4:not(#\9),
|
|
271
|
+
.awsui_header_1sxt8_19ouv_236 h5:not(#\9),
|
|
272
|
+
.awsui_header_1sxt8_19ouv_236 h6:not(#\9) {
|
|
267
273
|
font-size: var(--font-panel-header-size-i1j838, 18px);
|
|
268
274
|
letter-spacing: var(--letter-spacing-heading-m-93y02s, normal);
|
|
269
275
|
line-height: var(--font-panel-header-line-height-z3wpa5, 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_19ouv_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_19ouv_289:not(#\9):not(:empty) {
|
|
284
290
|
padding-block-start: var(--space-panel-content-top-s8rcdz, 20px);
|
|
285
291
|
padding-inline-start: var(--space-panel-side-left-07kpj4, 32px);
|
|
286
292
|
padding-inline-end: var(--space-panel-side-right-b77xx0, 32px);
|
|
287
293
|
padding-block-end: var(--space-panel-content-bottom-igtxf0, 40px);
|
|
288
294
|
}
|
|
289
295
|
|
|
290
|
-
.
|
|
296
|
+
.awsui_footer_1sxt8_19ouv_296:not(#\9) {
|
|
291
297
|
background-color: var(--color-background-container-content-aemn43, #ffffff);
|
|
292
298
|
border-block-start: var(--border-divider-section-width-sznrdy, 1px) solid var(--color-border-panel-header-iffljr, #eaeded);
|
|
293
299
|
padding-block: var(--space-panel-content-top-s8rcdz, 20px);
|
|
294
300
|
padding-inline: var(--space-panel-side-left-07kpj4, 32px) var(--space-panel-side-right-b77xx0, 32px);
|
|
295
301
|
}
|
|
296
|
-
.
|
|
302
|
+
.awsui_footer_1sxt8_19ouv_296.awsui_is-sticky_1sxt8_19ouv_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_19ouv_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_19ouv_189",
|
|
6
|
+
"position-absolute": "awsui_position-absolute_1sxt8_19ouv_222",
|
|
7
|
+
"position-sticky": "awsui_position-sticky_1sxt8_19ouv_222",
|
|
8
|
+
"position-fixed": "awsui_position-fixed_1sxt8_19ouv_222",
|
|
9
|
+
"with-footer": "awsui_with-footer_1sxt8_19ouv_225",
|
|
10
|
+
"position-static": "awsui_position-static_1sxt8_19ouv_229",
|
|
11
|
+
"content": "awsui_content_1sxt8_19ouv_232",
|
|
12
|
+
"header": "awsui_header_1sxt8_19ouv_236",
|
|
13
|
+
"with-additional-action": "awsui_with-additional-action_1sxt8_19ouv_253",
|
|
14
|
+
"with-runtime-context": "awsui_with-runtime-context_1sxt8_19ouv_261",
|
|
15
|
+
"with-toolbar": "awsui_with-toolbar_1sxt8_19ouv_264",
|
|
16
|
+
"header-actions": "awsui_header-actions_1sxt8_19ouv_283",
|
|
17
|
+
"content-with-paddings": "awsui_content-with-paddings_1sxt8_19ouv_289",
|
|
18
|
+
"footer": "awsui_footer_1sxt8_19ouv_296",
|
|
19
|
+
"is-sticky": "awsui_is-sticky_1sxt8_19ouv_302",
|
|
20
|
+
"test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_19ouv_310"
|
|
17
21
|
};
|
|
18
22
|
|
|
@@ -0,0 +1,9 @@
|
|
|
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({ position, zIndex, ...props }: PositionProps): {
|
|
5
|
+
className: string;
|
|
6
|
+
style: React.CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -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"}
|
|
@@ -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"]}
|
|
@@ -287,6 +287,7 @@ body {
|
|
|
287
287
|
--color-background-input-disabled-4vlau3:var(--color-neutral-250-hdfqdx);
|
|
288
288
|
--color-background-item-selected-v20q4r:var(--color-primary-50-k00bx1);
|
|
289
289
|
--color-background-layout-main-05m5y6:var(--color-neutral-200-z3mmn9);
|
|
290
|
+
--color-background-drawer-v79o7e:var(--color-background-layout-panel-content-9tbx75);
|
|
290
291
|
--color-background-layout-mobile-panel-20j5lz:var(--color-background-layout-panel-content-9tbx75);
|
|
291
292
|
--color-background-layout-panel-content-9tbx75:var(--color-background-container-content-aemn43);
|
|
292
293
|
--color-background-layout-panel-hover-5jdzo1:var(--color-neutral-250-hdfqdx);
|
|
@@ -1410,6 +1411,7 @@ body {
|
|
|
1410
1411
|
--color-background-card-39vmsz:var(--color-background-container-content-aemn43);
|
|
1411
1412
|
--color-background-item-card-st2hxn:var(--color-background-card-39vmsz);
|
|
1412
1413
|
--color-background-dropdown-item-selected-1c9k0x:var(--color-background-item-selected-v20q4r);
|
|
1414
|
+
--color-background-drawer-v79o7e:var(--color-background-layout-panel-content-9tbx75);
|
|
1413
1415
|
--color-background-layout-mobile-panel-20j5lz:var(--color-background-layout-panel-content-9tbx75);
|
|
1414
1416
|
--color-background-layout-panel-content-9tbx75:var(--color-background-container-content-aemn43);
|
|
1415
1417
|
--color-background-segment-default-zwi7m6:var(--color-background-button-normal-default-odgg8b);
|
|
@@ -2467,6 +2469,7 @@ body {
|
|
|
2467
2469
|
--color-background-action-card-disabled-f0sl41:var(--color-neutral-850-m3u7h5);
|
|
2468
2470
|
--color-background-card-39vmsz:var(--color-background-container-content-aemn43);
|
|
2469
2471
|
--color-background-item-card-st2hxn:var(--color-background-card-39vmsz);
|
|
2472
|
+
--color-background-drawer-v79o7e:var(--color-background-layout-panel-content-9tbx75);
|
|
2470
2473
|
--color-background-layout-panel-content-9tbx75:var(--color-background-container-content-aemn43);
|
|
2471
2474
|
--color-background-segment-default-zwi7m6:var(--color-background-button-normal-default-odgg8b);
|
|
2472
2475
|
--color-background-segment-disabled-etp65k:var(--color-background-button-normal-disabled-rd09ns);
|
|
@@ -2657,6 +2660,7 @@ body {
|
|
|
2657
2660
|
--color-background-card-39vmsz:var(--color-background-container-content-aemn43);
|
|
2658
2661
|
--color-background-item-card-st2hxn:var(--color-background-card-39vmsz);
|
|
2659
2662
|
--color-background-dropdown-item-selected-1c9k0x:var(--color-background-item-selected-v20q4r);
|
|
2663
|
+
--color-background-drawer-v79o7e:var(--color-background-layout-panel-content-9tbx75);
|
|
2660
2664
|
--color-background-layout-panel-content-9tbx75:var(--color-background-container-content-aemn43);
|
|
2661
2665
|
--color-background-modal-overlay-i6vork:var(--color-grey-opaque-70-ueherc);
|
|
2662
2666
|
--color-background-segment-default-zwi7m6:var(--color-background-button-normal-default-odgg8b);
|
|
@@ -2927,6 +2931,7 @@ body {
|
|
|
2927
2931
|
--color-background-card-39vmsz:var(--color-background-container-content-aemn43);
|
|
2928
2932
|
--color-background-item-card-st2hxn:var(--color-background-card-39vmsz);
|
|
2929
2933
|
--color-background-dropdown-item-selected-1c9k0x:var(--color-background-item-selected-v20q4r);
|
|
2934
|
+
--color-background-drawer-v79o7e:var(--color-background-layout-panel-content-9tbx75);
|
|
2930
2935
|
--color-background-layout-panel-content-9tbx75:var(--color-background-container-content-aemn43);
|
|
2931
2936
|
--color-background-modal-overlay-i6vork:var(--color-grey-opaque-70-ueherc);
|
|
2932
2937
|
--color-background-segment-hover-bakufl:var(--color-background-button-normal-hover-r7x40d);
|
|
@@ -3196,6 +3201,7 @@ body {
|
|
|
3196
3201
|
--color-background-card-39vmsz:var(--color-background-container-content-aemn43);
|
|
3197
3202
|
--color-background-item-card-st2hxn:var(--color-background-card-39vmsz);
|
|
3198
3203
|
--color-background-dropdown-item-selected-1c9k0x:var(--color-background-item-selected-v20q4r);
|
|
3204
|
+
--color-background-drawer-v79o7e:var(--color-background-layout-panel-content-9tbx75);
|
|
3199
3205
|
--color-background-layout-panel-content-9tbx75:var(--color-background-container-content-aemn43);
|
|
3200
3206
|
--color-background-modal-overlay-i6vork:var(--color-grey-opaque-70-ueherc);
|
|
3201
3207
|
--color-background-segment-hover-bakufl:var(--color-background-button-normal-hover-r7x40d);
|
|
@@ -3674,6 +3680,7 @@ body {
|
|
|
3674
3680
|
--color-background-card-39vmsz:var(--color-background-container-content-aemn43);
|
|
3675
3681
|
--color-background-item-card-st2hxn:var(--color-background-card-39vmsz);
|
|
3676
3682
|
--color-background-dropdown-item-selected-1c9k0x:var(--color-background-item-selected-v20q4r);
|
|
3683
|
+
--color-background-drawer-v79o7e:var(--color-background-layout-panel-content-9tbx75);
|
|
3677
3684
|
--color-background-layout-panel-content-9tbx75:var(--color-background-container-content-aemn43);
|
|
3678
3685
|
--color-background-modal-overlay-i6vork:var(--color-grey-opaque-70-ueherc);
|
|
3679
3686
|
--color-background-segment-default-zwi7m6:var(--color-background-button-normal-default-odgg8b);
|
|
@@ -3931,6 +3938,7 @@ body {
|
|
|
3931
3938
|
--color-background-card-39vmsz:var(--color-background-container-content-aemn43);
|
|
3932
3939
|
--color-background-item-card-st2hxn:var(--color-background-card-39vmsz);
|
|
3933
3940
|
--color-background-dropdown-item-selected-1c9k0x:var(--color-background-item-selected-v20q4r);
|
|
3941
|
+
--color-background-drawer-v79o7e:var(--color-background-layout-panel-content-9tbx75);
|
|
3934
3942
|
--color-background-layout-panel-content-9tbx75:var(--color-background-container-content-aemn43);
|
|
3935
3943
|
--color-background-modal-overlay-i6vork:var(--color-grey-opaque-70-ueherc);
|
|
3936
3944
|
--color-background-segment-default-zwi7m6:var(--color-background-button-normal-default-odgg8b);
|
|
@@ -4174,5 +4182,5 @@ body {
|
|
|
4174
4182
|
}
|
|
4175
4183
|
}
|
|
4176
4184
|
:root {
|
|
4177
|
-
--awsui-version-info-
|
|
4185
|
+
--awsui-version-info-9d03c896: true;
|
|
4178
4186
|
}
|
|
@@ -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",
|