@cloudscape-design/components-themeable 3.0.1259 → 3.0.1261
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/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/list/interfaces.d.ts +2 -2
- package/lib/internal/template/list/interfaces.d.ts.map +1 -1
- package/lib/internal/template/list/interfaces.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 (8b4eaf96)";
|
|
3
|
+
export var GIT_SHA = "8b4eaf96";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "core";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|
|
@@ -12,7 +12,7 @@ export interface ListProps<T = any> {
|
|
|
12
12
|
* * `content` (React.ReactNode) - The content of the item.
|
|
13
13
|
* * `secondaryContent` (React.ReactNode) - (Optional) Secondary content, for example item description.
|
|
14
14
|
* * `icon` (React.ReactNode) - (Optional) An icon, displayed at the start.
|
|
15
|
-
* * `
|
|
15
|
+
* * `actions` (React.ReactNode) - (Optional) Action button(s).
|
|
16
16
|
* * `announcementLabel` (string) - (Optional) An announcement label for the item, used when sorting.
|
|
17
17
|
* By default, the `content` is used: a custom label should be provided if `content` is not a string.
|
|
18
18
|
*/
|
|
@@ -21,7 +21,7 @@ export interface ListProps<T = any> {
|
|
|
21
21
|
content: ReactNode;
|
|
22
22
|
secondaryContent?: ReactNode;
|
|
23
23
|
icon?: ReactNode;
|
|
24
|
-
|
|
24
|
+
actions?: ReactNode;
|
|
25
25
|
announcementLabel?: string;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/list/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAExB;;;;;;;;;OASG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,SAAS,CAAC;QACnB,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/list/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAExB;;;;;;;;;OASG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,SAAS,CAAC;QACnB,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,OAAO,CAAC,EAAE,SAAS,CAAC;QACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;CACrC;AAED,yBAAiB,SAAS,CAAC;IACzB,UAAiB,YAAY,CAAC,CAAC;QAC7B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACzB;IAED,KAAY,WAAW,GAAG,iBAAiB,CAAC,kBAAkB,CAAC;CAChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/list/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 { ReactNode } from 'react';\n\nimport { SortableAreaProps } from '../internal/components/sortable-area';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface ListProps<T = any> {\n /**\n * The items to display in the list.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Render an item. The function should return an object with the following keys:\n * * `id` (string) - A unique identifier for the item.\n * * `content` (React.ReactNode) - The content of the item.\n * * `secondaryContent` (React.ReactNode) - (Optional) Secondary content, for example item description.\n * * `icon` (React.ReactNode) - (Optional) An icon, displayed at the start.\n * * `
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/list/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 { ReactNode } from 'react';\n\nimport { SortableAreaProps } from '../internal/components/sortable-area';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface ListProps<T = any> {\n /**\n * The items to display in the list.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Render an item. The function should return an object with the following keys:\n * * `id` (string) - A unique identifier for the item.\n * * `content` (React.ReactNode) - The content of the item.\n * * `secondaryContent` (React.ReactNode) - (Optional) Secondary content, for example item description.\n * * `icon` (React.ReactNode) - (Optional) An icon, displayed at the start.\n * * `actions` (React.ReactNode) - (Optional) Action button(s).\n * * `announcementLabel` (string) - (Optional) An announcement label for the item, used when sorting.\n * By default, the `content` is used: a custom label should be provided if `content` is not a string.\n */\n renderItem: (item: T) => {\n id: string;\n content: ReactNode;\n secondaryContent?: ReactNode;\n icon?: ReactNode;\n actions?: ReactNode;\n announcementLabel?: string;\n };\n\n /**\n * The HTML tag to render. By default `ul` is used for standard lists and `ol` for sortable lists.\n */\n tagOverride?: 'ol' | 'ul';\n\n /**\n * Adds an aria-label to the list.\n */\n ariaLabel?: string;\n /**\n * Adds an aria-labelledby to the list.\n */\n ariaLabelledby?: string;\n /**\n * Adds an aria-describedby to the list.\n */\n ariaDescribedby?: string;\n /**\n * Makes the list sortable by enabling drag and drop functionality.\n */\n sortable?: boolean;\n /**\n * Disables sorting drag handles. Use this to temporarily prevent users from reordering the list.\n */\n sortDisabled?: boolean;\n /**\n * Removes padding around and inside list items.\n */\n disableItemPaddings?: boolean;\n /**\n * Removes top and bottom padding around the list. Does not apply for sortable lists.\n */\n disablePaddings?: boolean;\n /**\n * Called when items are reordered in a sortable list.\n */\n onSortingChange?: NonCancelableEventHandler<ListProps.SortingState<T>>;\n /**\n * An object containing all the localized strings required by the component.\n *\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is picked for reordering.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n *\n * @i18n\n */\n i18nStrings?: ListProps.I18nStrings;\n}\n\nexport namespace ListProps {\n export interface SortingState<T> {\n items: ReadonlyArray<T>;\n }\n\n export type I18nStrings = SortableAreaProps.DndAreaI18nStrings;\n}\n"]}
|