@cloudscape-design/components-themeable 3.0.1399 → 3.0.1401
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/autosuggest/styles.scss +5 -0
- package/lib/internal/scss/copy-to-clipboard/styles.scss +7 -7
- package/lib/internal/scss/flashbar/collapsible.scss +21 -11
- package/lib/internal/scss/flashbar/styles.scss +26 -8
- package/lib/internal/scss/icon/hover-motion.scss +21 -0
- package/lib/internal/scss/icon/styles.scss +2 -1
- package/lib/internal/scss/input/styles.scss +32 -15
- package/lib/internal/scss/internal/components/autosuggest-input/styles.scss +4 -90
- package/lib/internal/scss/internal/components/option/styles.scss +8 -0
- package/lib/internal/scss/internal/components/radio-button/styles.scss +2 -0
- package/lib/internal/scss/internal/components/sticky-header/mixins.scss +11 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/multiselect/styles.scss +22 -0
- package/lib/internal/scss/radio-button/styles.scss +1 -2
- package/lib/internal/scss/radio-group/styles.scss +3 -0
- package/lib/internal/scss/segmented-control/segment.scss +29 -6
- package/lib/internal/scss/segmented-control/styles.scss +26 -4
- package/lib/internal/scss/select/parts/styles.scss +15 -2
- package/lib/internal/scss/select/styles.scss +20 -0
- package/lib/internal/scss/table/resizer/styles.scss +4 -4
- package/lib/internal/scss/table/styles.scss +2 -5
- package/lib/internal/template/autosuggest/index.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/index.js +1 -1
- package/lib/internal/template/autosuggest/index.js.map +1 -1
- package/lib/internal/template/autosuggest/internal.d.ts +6 -0
- package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/internal.js +2 -2
- package/lib/internal/template/autosuggest/internal.js.map +1 -1
- package/lib/internal/template/autosuggest/styles.css.js +3 -3
- package/lib/internal/template/autosuggest/styles.scoped.css +5 -3
- package/lib/internal/template/autosuggest/styles.selectors.js +3 -3
- package/lib/internal/template/button-dropdown/filter.d.ts +1 -1
- package/lib/internal/template/button-dropdown/filter.d.ts.map +1 -1
- package/lib/internal/template/cards/index.js +1 -1
- package/lib/internal/template/cards/index.js.map +1 -1
- package/lib/internal/template/container/internal.d.ts +3 -2
- package/lib/internal/template/container/internal.d.ts.map +1 -1
- package/lib/internal/template/container/internal.js +2 -2
- package/lib/internal/template/container/internal.js.map +1 -1
- package/lib/internal/template/container/use-sticky-header.d.ts +0 -8
- package/lib/internal/template/container/use-sticky-header.d.ts.map +1 -1
- package/lib/internal/template/container/use-sticky-header.js +9 -92
- package/lib/internal/template/container/use-sticky-header.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.js +2 -16
- package/lib/internal/template/copy-to-clipboard/internal.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/styles.css.js +10 -10
- package/lib/internal/template/copy-to-clipboard/styles.scoped.css +19 -19
- package/lib/internal/template/copy-to-clipboard/styles.selectors.js +10 -10
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.js +10 -4
- package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/flash.d.ts +6 -0
- package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
- package/lib/internal/template/flashbar/flash.js +6 -6
- package/lib/internal/template/flashbar/flash.js.map +1 -1
- package/lib/internal/template/flashbar/internal-interfaces.d.ts +11 -1
- package/lib/internal/template/flashbar/internal-interfaces.d.ts.map +1 -1
- package/lib/internal/template/flashbar/internal-interfaces.js.map +1 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js +8 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +184 -161
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/icon/generated/icons.d.ts +4 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +14 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon/styles.css.js +44 -43
- package/lib/internal/template/icon/styles.scoped.css +109 -107
- package/lib/internal/template/icon/styles.selectors.js +44 -43
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/input/internal.d.ts +1 -1
- package/lib/internal/template/input/internal.d.ts.map +1 -1
- package/lib/internal/template/input/internal.js +4 -2
- package/lib/internal/template/input/internal.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +45 -44
- package/lib/internal/template/input/styles.scoped.css +102 -94
- package/lib/internal/template/input/styles.selectors.js +45 -44
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +5 -0
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js +22 -61
- package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.d.ts +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.js +4 -2
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.js.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/styles.css.js +11 -33
- package/lib/internal/template/internal/components/autosuggest-input/styles.scoped.css +15 -233
- package/lib/internal/template/internal/components/autosuggest-input/styles.selectors.js +11 -33
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.d.ts +4 -8
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.js +16 -29
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.js.map +1 -1
- package/lib/internal/template/internal/components/option/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/option/index.js +2 -2
- package/lib/internal/template/internal/components/option/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/styles.css.js +19 -18
- package/lib/internal/template/internal/components/option/styles.scoped.css +39 -33
- package/lib/internal/template/internal/components/option/styles.selectors.js +19 -18
- package/lib/internal/template/internal/components/radio-button/index.d.ts +1 -1
- package/lib/internal/template/internal/components/radio-button/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/radio-button/index.js.map +1 -1
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +36 -12
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/sortable-area/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/sortable-area/index.js +34 -4
- package/lib/internal/template/internal/components/sortable-area/index.js.map +1 -1
- package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/index.js +1 -1
- package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/index.js.map +1 -1
- package/lib/internal/template/{table → internal/components/sticky-header}/sticky-scrolling.d.ts +1 -6
- package/lib/internal/template/internal/components/sticky-header/sticky-scrolling.d.ts.map +1 -0
- package/lib/internal/template/{table → internal/components/sticky-header}/sticky-scrolling.js +2 -7
- package/lib/internal/template/internal/components/sticky-header/sticky-scrolling.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.d.ts +2 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.js +39 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.d.ts +8 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.js +35 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.d.ts +14 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.d.ts.map +1 -0
- package/lib/internal/template/{table/use-sticky-header.js → internal/components/sticky-header/use-sticky-header-copy.js} +7 -8
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.d.ts +22 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.js +57 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.js.map +1 -0
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/multiselect/index.d.ts.map +1 -1
- package/lib/internal/template/multiselect/index.js +1 -1
- package/lib/internal/template/multiselect/index.js.map +1 -1
- package/lib/internal/template/multiselect/internal.d.ts +12 -1
- package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
- package/lib/internal/template/multiselect/internal.js +10 -6
- package/lib/internal/template/multiselect/internal.js.map +1 -1
- package/lib/internal/template/multiselect/styles.css.js +5 -5
- package/lib/internal/template/multiselect/styles.scoped.css +17 -5
- package/lib/internal/template/multiselect/styles.selectors.js +5 -5
- package/lib/internal/template/radio-button/styles.css.js +1 -1
- package/lib/internal/template/radio-button/styles.scoped.css +1 -25
- package/lib/internal/template/radio-button/styles.selectors.js +1 -1
- package/lib/internal/template/radio-group/internal.d.ts +7 -1
- package/lib/internal/template/radio-group/internal.d.ts.map +1 -1
- package/lib/internal/template/radio-group/internal.js +2 -2
- package/lib/internal/template/radio-group/internal.js.map +1 -1
- package/lib/internal/template/radio-group/styles.css.js +5 -5
- package/lib/internal/template/radio-group/styles.scoped.css +7 -6
- package/lib/internal/template/radio-group/styles.selectors.js +5 -5
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts +3 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.js +3 -3
- package/lib/internal/template/segmented-control/internal-segmented-control.js.map +1 -1
- package/lib/internal/template/segmented-control/internal.d.ts +11 -2
- package/lib/internal/template/segmented-control/internal.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal.js +3 -2
- package/lib/internal/template/segmented-control/internal.js.map +1 -1
- package/lib/internal/template/segmented-control/segment.d.ts +2 -0
- package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/segment.js +4 -2
- package/lib/internal/template/segmented-control/segment.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +31 -31
- package/lib/internal/template/segmented-control/styles.scoped.css +119 -82
- package/lib/internal/template/segmented-control/styles.selectors.js +31 -31
- package/lib/internal/template/select/index.d.ts.map +1 -1
- package/lib/internal/template/select/index.js +1 -1
- package/lib/internal/template/select/index.js.map +1 -1
- package/lib/internal/template/select/internal.d.ts +8 -0
- package/lib/internal/template/select/internal.d.ts.map +1 -1
- package/lib/internal/template/select/internal.js +5 -5
- package/lib/internal/template/select/internal.js.map +1 -1
- package/lib/internal/template/select/parts/filter.d.ts +1 -1
- package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
- package/lib/internal/template/select/parts/styles.css.js +22 -21
- package/lib/internal/template/select/parts/styles.scoped.css +28 -24
- package/lib/internal/template/select/parts/styles.selectors.js +22 -21
- package/lib/internal/template/select/parts/trigger.d.ts +6 -0
- package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
- package/lib/internal/template/select/parts/trigger.js +4 -4
- package/lib/internal/template/select/parts/trigger.js.map +1 -1
- package/lib/internal/template/select/styles.css.js +3 -3
- package/lib/internal/template/select/styles.scoped.css +14 -3
- package/lib/internal/template/select/styles.selectors.js +3 -3
- package/lib/internal/template/styling/autosuggest.scss +1 -0
- package/lib/internal/template/styling/flashbar.scss +127 -0
- package/lib/internal/template/styling/multiselect.scss +80 -0
- package/lib/internal/template/styling/radio-group.scss +1 -0
- package/lib/internal/template/styling/segmented-control.scss +111 -0
- package/lib/internal/template/styling/select.scss +80 -0
- package/lib/internal/template/table/resizer/styles.css.js +17 -17
- package/lib/internal/template/table/resizer/styles.scoped.css +30 -29
- package/lib/internal/template/table/resizer/styles.selectors.js +17 -17
- package/lib/internal/template/table/sticky-header.d.ts.map +1 -1
- package/lib/internal/template/table/sticky-header.js +8 -2
- package/lib/internal/template/table/sticky-header.js.map +1 -1
- package/lib/internal/template/table/styles.css.js +37 -37
- package/lib/internal/template/table/styles.scoped.css +47 -47
- package/lib/internal/template/table/styles.selectors.js +37 -37
- package/lib/internal/template/table/use-column-widths.d.ts.map +1 -1
- package/lib/internal/template/table/use-column-widths.js +4 -16
- package/lib/internal/template/table/use-column-widths.js.map +1 -1
- package/lib/internal/template/toggle/internal.d.ts.map +1 -1
- package/lib/internal/template/toggle/internal.js +1 -1
- package/lib/internal/template/toggle/internal.js.map +1 -1
- package/lib/internal/template/token-group/internal.d.ts +5 -1
- package/lib/internal/template/token-group/internal.d.ts.map +1 -1
- package/lib/internal/template/token-group/internal.js +2 -2
- package/lib/internal/template/token-group/internal.js.map +1 -1
- package/package.json +1 -1
- package/lib/internal/template/table/sticky-scrolling.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrolling.js.map +0 -1
- package/lib/internal/template/table/use-sticky-header.d.ts +0 -6
- package/lib/internal/template/table/use-sticky-header.d.ts.map +0 -1
- package/lib/internal/template/table/use-sticky-header.js.map +0 -1
|
@@ -9,7 +9,7 @@ import { useVisualRefresh } from '../../internal/hooks/use-visual-mode';
|
|
|
9
9
|
import { joinStrings } from '../../internal/utils/strings';
|
|
10
10
|
import InternalToken from '../../token/internal';
|
|
11
11
|
import styles from './styles.css.js';
|
|
12
|
-
const Trigger = React.forwardRef(({ ariaLabelledby, ariaDescribedby, controlId, invalid, inlineLabelText, warning, triggerProps, selectedOption, selectedOptions, triggerVariant, inFilteringToken, isOpen, placeholder, disabled, readOnly, renderOption, groupedControlProps, }, ref) => {
|
|
12
|
+
const Trigger = React.forwardRef(({ ariaLabelledby, ariaDescribedby, controlId, invalid, inlineLabelText, warning, triggerProps, selectedOption, selectedOptions, triggerVariant, inFilteringToken, isOpen, placeholder, disabled, readOnly, renderOption, groupedControlProps, styleClassNames, }, ref) => {
|
|
13
13
|
const isVisualRefresh = useVisualRefresh();
|
|
14
14
|
const generatedId = useUniqueId();
|
|
15
15
|
const id = controlId !== null && controlId !== void 0 ? controlId : generatedId;
|
|
@@ -20,7 +20,7 @@ const Trigger = React.forwardRef(({ ariaLabelledby, ariaDescribedby, controlId,
|
|
|
20
20
|
if (triggerVariant === 'tokens') {
|
|
21
21
|
if (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) {
|
|
22
22
|
triggerContent = (React.createElement("span", { className: clsx(styles['inline-token-trigger'], disabled && styles['inline-token-trigger--disabled'], isVisualRefresh && styles['visual-refresh']) },
|
|
23
|
-
React.createElement("span", { className: styles['inline-token-list'] }, selectedOptions.map(({ label }, i) => (React.createElement(InternalToken, { key: i, label: label, variant: "inline", disabled: disabled })))),
|
|
23
|
+
React.createElement("span", { className: styles['inline-token-list'] }, selectedOptions.map(({ label }, i) => (React.createElement(InternalToken, { key: i, label: label, variant: "inline", disabled: disabled, styleClassNames: styleClassNames === null || styleClassNames === void 0 ? void 0 : styleClassNames.token })))),
|
|
24
24
|
React.createElement("span", { className: styles['inline-token-counter'], id: triggerContentId },
|
|
25
25
|
React.createElement("span", { className: styles['inline-token-hidden-placeholder'] }, placeholder),
|
|
26
26
|
React.createElement("span", null,
|
|
@@ -56,9 +56,9 @@ const Trigger = React.forwardRef(({ ariaLabelledby, ariaDescribedby, controlId,
|
|
|
56
56
|
triggerContent = (React.createElement("span", { id: triggerContentId, className: styles.trigger }, selectedOption.label || selectedOption.value));
|
|
57
57
|
}
|
|
58
58
|
const mergedRef = useMergeRefs(triggerProps.ref, ref);
|
|
59
|
-
const triggerButton = (React.createElement(ButtonTrigger, { ...triggerProps, id: id, ref: mergedRef, pressed: !!isOpen, disabled: disabled, readOnly: readOnly, invalid: invalid, warning: warning && !invalid, inFilteringToken: inFilteringToken, inlineTokens: triggerVariant === 'tokens', hasCustomContent: hasCustomContent, ariaDescribedby: ariaDescribedby, ariaLabelledby: ariaLabelledbyIds, groupedControlProps: groupedControlProps }, triggerContent));
|
|
59
|
+
const triggerButton = (React.createElement(ButtonTrigger, { ...triggerProps, id: id, ref: mergedRef, className: clsx(styleClassNames === null || styleClassNames === void 0 ? void 0 : styleClassNames.trigger, styles['trigger-button']), pressed: !!isOpen, disabled: disabled, readOnly: readOnly, invalid: invalid, warning: warning && !invalid, inFilteringToken: inFilteringToken, inlineTokens: triggerVariant === 'tokens', hasCustomContent: hasCustomContent, ariaDescribedby: ariaDescribedby, ariaLabelledby: ariaLabelledbyIds, groupedControlProps: groupedControlProps }, triggerContent));
|
|
60
60
|
return (React.createElement(React.Fragment, null, inlineLabelText ? (React.createElement("div", { className: styles['inline-label-wrapper'] },
|
|
61
|
-
React.createElement("label", { htmlFor: controlId, className: clsx(styles['inline-label'], disabled && styles['inline-label-disabled'], triggerVariant === 'tokens' && styles['inline-label-inline-tokens']) }, inlineLabelText),
|
|
61
|
+
React.createElement("label", { htmlFor: controlId, className: clsx(styleClassNames === null || styleClassNames === void 0 ? void 0 : styleClassNames.inlineLabel, styles['inline-label'], disabled && styles['inline-label-disabled'], triggerVariant === 'tokens' && styles['inline-label-inline-tokens']) }, inlineLabelText),
|
|
62
62
|
React.createElement("div", { className: styles['inline-label-trigger-wrapper'] }, triggerButton))) : (React.createElement(React.Fragment, null, triggerButton))));
|
|
63
63
|
});
|
|
64
64
|
export default Trigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../src/select/parts/trigger.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE1F,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,MAAM,MAAM,kCAAkC,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAMjD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAiBrC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAC9B,CACE,EACE,cAAc,EACd,eAAe,EACf,SAAS,EACT,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,mBAAmB,GACN,EACf,GAAiC,EACjC,EAAE;IACF,MAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAC3C,MAAM,WAAW,GAAG,WAAW,EAAE,CAAC;IAClC,MAAM,EAAE,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,WAAW,CAAC;IACpC,MAAM,gBAAgB,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAEzD,IAAI,iBAAiB,GAAG,WAAW,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;IAEtE,IAAI,cAAc,GAAG,IAAI,CAAC;IAC1B,IAAI,gBAAgB,GAAG,KAAK,CAAC;IAC7B,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,CAAC,OAAO,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,cAAc,KAAK,QAAQ,EACzC,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,iBAAiB,EACjC,mBAAmB,EAAE,mBAAmB,IAEvC,cAAc,CACD,CACjB,CAAC;IACF,OAAO,CACL,0CACG,eAAe,CAAC,CAAC,CAAC,CACjB,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC;QAC5C,+BACE,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,cAAc,CAAC,EACtB,QAAQ,IAAI,MAAM,CAAC,uBAAuB,CAAC,EAC3C,cAAc,KAAK,QAAQ,IAAI,MAAM,CAAC,4BAA4B,CAAC,CACpE,IAEA,eAAe,CACV;QACR,6BAAK,SAAS,EAAE,MAAM,CAAC,8BAA8B,CAAC,IAAG,aAAa,CAAO,CACzE,CACP,CAAC,CAAC,CAAC,CACF,0CAAG,aAAa,CAAI,CACrB,CACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport ButtonTrigger from '../../internal/components/button-trigger';\nimport Option from '../../internal/components/option';\nimport { GroupedControlContextProps } from '../../internal/context/control-group-context';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { joinStrings } from '../../internal/utils/strings';\nimport { MultiselectProps } from '../../multiselect/interfaces';\nimport InternalToken from '../../token/internal';\nimport { FormFieldValidationControlProps } from '../../types/form-field';\nimport { OptionDefinition } from '../../types/option';\nimport { SelectProps } from '../interfaces';\nimport { SelectTriggerProps } from '../utils/use-select';\n\nimport styles from './styles.css.js';\n\nexport interface TriggerProps extends FormFieldValidationControlProps {\n placeholder: string | undefined;\n disabled: boolean | undefined;\n readOnly?: boolean;\n triggerProps: SelectTriggerProps;\n selectedOption: OptionDefinition | null;\n inlineLabelText?: string;\n isOpen?: boolean;\n triggerVariant?: SelectProps.TriggerVariant | MultiselectProps.TriggerVariant;\n inFilteringToken?: 'root' | 'nested';\n selectedOptions?: ReadonlyArray<OptionDefinition>;\n renderOption?: SelectProps.SelectOptionItemRenderer;\n groupedControlProps?: GroupedControlContextProps;\n}\n\nconst Trigger = React.forwardRef(\n (\n {\n ariaLabelledby,\n ariaDescribedby,\n controlId,\n invalid,\n inlineLabelText,\n warning,\n triggerProps,\n selectedOption,\n selectedOptions,\n triggerVariant,\n inFilteringToken,\n isOpen,\n placeholder,\n disabled,\n readOnly,\n renderOption,\n groupedControlProps,\n }: TriggerProps,\n ref: React.Ref<HTMLButtonElement>\n ) => {\n const isVisualRefresh = useVisualRefresh();\n const generatedId = useUniqueId();\n const id = controlId ?? generatedId;\n const triggerContentId = useUniqueId('trigger-content-');\n\n let ariaLabelledbyIds = joinStrings(ariaLabelledby, triggerContentId);\n\n let triggerContent = null;\n let hasCustomContent = false;\n if (triggerVariant === 'tokens') {\n if (selectedOptions?.length) {\n triggerContent = (\n <span\n className={clsx(\n styles['inline-token-trigger'],\n disabled && styles['inline-token-trigger--disabled'],\n isVisualRefresh && styles['visual-refresh']\n )}\n >\n <span className={styles['inline-token-list']}>\n {selectedOptions.map(({ label }, i) => (\n <InternalToken key={i} label={label} variant=\"inline\" disabled={disabled} />\n ))}\n </span>\n <span className={styles['inline-token-counter']} id={triggerContentId}>\n <span className={styles['inline-token-hidden-placeholder']}>{placeholder}</span>\n <span>({selectedOptions.length})</span>\n </span>\n </span>\n );\n ariaLabelledbyIds = ariaLabelledby;\n } else {\n triggerContent = (\n <span className={clsx(styles.placeholder, styles.trigger, disabled && styles.disabled)} id={triggerContentId}>\n {placeholder}\n </span>\n );\n }\n } else if (!selectedOption) {\n triggerContent = (\n <span className={clsx(styles.placeholder, styles.trigger, disabled && styles.disabled)} id={triggerContentId}>\n {placeholder}\n </span>\n );\n } else if (triggerVariant === 'option') {\n const triggerCustomContent = renderOption?.({\n filterText: undefined,\n item: {\n type: 'trigger',\n option: selectedOption,\n },\n });\n if (triggerCustomContent) {\n hasCustomContent = true;\n triggerContent = (\n <Option\n customContent={triggerCustomContent}\n id={triggerContentId}\n option={{ ...selectedOption, disabled }}\n triggerVariant={true}\n />\n );\n } else {\n triggerContent = (\n <Option id={triggerContentId} option={{ ...selectedOption, disabled }} triggerVariant={true} />\n );\n }\n } else {\n triggerContent = (\n <span id={triggerContentId} className={styles.trigger}>\n {selectedOption.label || selectedOption.value}\n </span>\n );\n }\n\n const mergedRef = useMergeRefs(triggerProps.ref, ref);\n const triggerButton = (\n <ButtonTrigger\n {...triggerProps}\n id={id}\n ref={mergedRef}\n pressed={!!isOpen}\n disabled={disabled}\n readOnly={readOnly}\n invalid={invalid}\n warning={warning && !invalid}\n inFilteringToken={inFilteringToken}\n inlineTokens={triggerVariant === 'tokens'}\n hasCustomContent={hasCustomContent}\n ariaDescribedby={ariaDescribedby}\n ariaLabelledby={ariaLabelledbyIds}\n groupedControlProps={groupedControlProps}\n >\n {triggerContent}\n </ButtonTrigger>\n );\n return (\n <>\n {inlineLabelText ? (\n <div className={styles['inline-label-wrapper']}>\n <label\n htmlFor={controlId}\n className={clsx(\n styles['inline-label'],\n disabled && styles['inline-label-disabled'],\n triggerVariant === 'tokens' && styles['inline-label-inline-tokens']\n )}\n >\n {inlineLabelText}\n </label>\n <div className={styles['inline-label-trigger-wrapper']}>{triggerButton}</div>\n </div>\n ) : (\n <>{triggerButton}</>\n )}\n </>\n );\n }\n);\n\nexport default Trigger;\n"]}
|
|
1
|
+
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../src/select/parts/trigger.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;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E,gBAAgB,EAClC,YAAY,EAAE,cAAc,KAAK,QAAQ,EACzC,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,iBAAiB,EACjC,mBAAmB,EAAE,mBAAmB,IAEvC,cAAc,CACD,CACjB,CAAC;IACF,OAAO,CACL,0CACG,eAAe,CAAC,CAAC,CAAC,CACjB,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC;QAC5C,+BACE,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,IAAI,CACb,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,WAAW,EAC5B,MAAM,CAAC,cAAc,CAAC,EACtB,QAAQ,IAAI,MAAM,CAAC,uBAAuB,CAAC,EAC3C,cAAc,KAAK,QAAQ,IAAI,MAAM,CAAC,4BAA4B,CAAC,CACpE,IAEA,eAAe,CACV;QACR,6BAAK,SAAS,EAAE,MAAM,CAAC,8BAA8B,CAAC,IAAG,aAAa,CAAO,CACzE,CACP,CAAC,CAAC,CAAC,CACF,0CAAG,aAAa,CAAI,CACrB,CACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport ButtonTrigger from '../../internal/components/button-trigger';\nimport Option from '../../internal/components/option';\nimport { GroupedControlContextProps } from '../../internal/context/control-group-context';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { joinStrings } from '../../internal/utils/strings';\nimport { MultiselectProps } from '../../multiselect/interfaces';\nimport InternalToken, { StyleClassNames as TokenStyleClassNames } from '../../token/internal';\nimport { FormFieldValidationControlProps } from '../../types/form-field';\nimport { OptionDefinition } from '../../types/option';\nimport { SelectProps } from '../interfaces';\nimport { SelectTriggerProps } from '../utils/use-select';\n\nimport styles from './styles.css.js';\n\nexport interface TriggerProps extends FormFieldValidationControlProps {\n placeholder: string | undefined;\n disabled: boolean | undefined;\n readOnly?: boolean;\n triggerProps: SelectTriggerProps;\n selectedOption: OptionDefinition | null;\n inlineLabelText?: string;\n isOpen?: boolean;\n triggerVariant?: SelectProps.TriggerVariant | MultiselectProps.TriggerVariant;\n inFilteringToken?: 'root' | 'nested';\n selectedOptions?: ReadonlyArray<OptionDefinition>;\n renderOption?: SelectProps.SelectOptionItemRenderer;\n groupedControlProps?: GroupedControlContextProps;\n styleClassNames?: { trigger?: string; inlineLabel?: string; token?: TokenStyleClassNames };\n}\n\nconst Trigger = React.forwardRef(\n (\n {\n ariaLabelledby,\n ariaDescribedby,\n controlId,\n invalid,\n inlineLabelText,\n warning,\n triggerProps,\n selectedOption,\n selectedOptions,\n triggerVariant,\n inFilteringToken,\n isOpen,\n placeholder,\n disabled,\n readOnly,\n renderOption,\n groupedControlProps,\n styleClassNames,\n }: TriggerProps,\n ref: React.Ref<HTMLButtonElement>\n ) => {\n const isVisualRefresh = useVisualRefresh();\n const generatedId = useUniqueId();\n const id = controlId ?? generatedId;\n const triggerContentId = useUniqueId('trigger-content-');\n\n let ariaLabelledbyIds = joinStrings(ariaLabelledby, triggerContentId);\n\n let triggerContent = null;\n let hasCustomContent = false;\n if (triggerVariant === 'tokens') {\n if (selectedOptions?.length) {\n triggerContent = (\n <span\n className={clsx(\n styles['inline-token-trigger'],\n disabled && styles['inline-token-trigger--disabled'],\n isVisualRefresh && styles['visual-refresh']\n )}\n >\n <span className={styles['inline-token-list']}>\n {selectedOptions.map(({ label }, i) => (\n <InternalToken\n key={i}\n label={label}\n variant=\"inline\"\n disabled={disabled}\n styleClassNames={styleClassNames?.token}\n />\n ))}\n </span>\n <span className={styles['inline-token-counter']} id={triggerContentId}>\n <span className={styles['inline-token-hidden-placeholder']}>{placeholder}</span>\n <span>({selectedOptions.length})</span>\n </span>\n </span>\n );\n ariaLabelledbyIds = ariaLabelledby;\n } else {\n triggerContent = (\n <span className={clsx(styles.placeholder, styles.trigger, disabled && styles.disabled)} id={triggerContentId}>\n {placeholder}\n </span>\n );\n }\n } else if (!selectedOption) {\n triggerContent = (\n <span className={clsx(styles.placeholder, styles.trigger, disabled && styles.disabled)} id={triggerContentId}>\n {placeholder}\n </span>\n );\n } else if (triggerVariant === 'option') {\n const triggerCustomContent = renderOption?.({\n filterText: undefined,\n item: {\n type: 'trigger',\n option: selectedOption,\n },\n });\n if (triggerCustomContent) {\n hasCustomContent = true;\n triggerContent = (\n <Option\n customContent={triggerCustomContent}\n id={triggerContentId}\n option={{ ...selectedOption, disabled }}\n triggerVariant={true}\n />\n );\n } else {\n triggerContent = (\n <Option id={triggerContentId} option={{ ...selectedOption, disabled }} triggerVariant={true} />\n );\n }\n } else {\n triggerContent = (\n <span id={triggerContentId} className={styles.trigger}>\n {selectedOption.label || selectedOption.value}\n </span>\n );\n }\n\n const mergedRef = useMergeRefs(triggerProps.ref, ref);\n const triggerButton = (\n <ButtonTrigger\n {...triggerProps}\n id={id}\n ref={mergedRef}\n className={clsx(styleClassNames?.trigger, styles['trigger-button'])}\n pressed={!!isOpen}\n disabled={disabled}\n readOnly={readOnly}\n invalid={invalid}\n warning={warning && !invalid}\n inFilteringToken={inFilteringToken}\n inlineTokens={triggerVariant === 'tokens'}\n hasCustomContent={hasCustomContent}\n ariaDescribedby={ariaDescribedby}\n ariaLabelledby={ariaLabelledbyIds}\n groupedControlProps={groupedControlProps}\n >\n {triggerContent}\n </ButtonTrigger>\n );\n return (\n <>\n {inlineLabelText ? (\n <div className={styles['inline-label-wrapper']}>\n <label\n htmlFor={controlId}\n className={clsx(\n styleClassNames?.inlineLabel,\n styles['inline-label'],\n disabled && styles['inline-label-disabled'],\n triggerVariant === 'tokens' && styles['inline-label-inline-tokens']\n )}\n >\n {inlineLabelText}\n </label>\n <div className={styles['inline-label-trigger-wrapper']}>{triggerButton}</div>\n </div>\n ) : (\n <>{triggerButton}</>\n )}\n </>\n );\n }\n);\n\nexport default Trigger;\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"dropdown-header": "awsui_dropdown-
|
|
6
|
-
"dropdown-footer": "awsui_dropdown-
|
|
4
|
+
"root": "awsui_root_r2vco_12rwf_20",
|
|
5
|
+
"dropdown-header": "awsui_dropdown-header_r2vco_12rwf_52",
|
|
6
|
+
"dropdown-footer": "awsui_dropdown-footer_r2vco_12rwf_58"
|
|
7
7
|
};
|
|
8
8
|
|
|
@@ -6,7 +6,18 @@
|
|
|
6
6
|
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
7
7
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
8
8
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
9
|
-
|
|
9
|
+
@property --awsui-style-placeholder-color {
|
|
10
|
+
syntax: "*";
|
|
11
|
+
inherits: false;
|
|
12
|
+
}
|
|
13
|
+
/* awsui:style-api-slot name=trigger tokens=placeholder-color properties=color, background, border, border-radius, box-shadow, padding, font-family, font-size, font-weight */
|
|
14
|
+
/* awsui:style-api-description slot=trigger kind=slot name=trigger text=The trigger button, which is also the field box. Pass a different class for the states you control (`invalid`, `warning`, `disabled`, `readOnly`); use `:hover` and `:focus` for interaction states. */
|
|
15
|
+
/* awsui:style-api-description slot=trigger kind=property name=color text=The placeholder is styled with `--awsui-style-placeholder-color`. */
|
|
16
|
+
/* awsui:style-api-description slot=trigger kind=property name=box-shadow text=Also draws the focus ring under `:focus`. */
|
|
17
|
+
/* awsui:style-api-slot name=inlineLabel tokens= properties=color, background, font-family, font-size, font-weight */
|
|
18
|
+
/* awsui:style-api-slot name=filter component=input */
|
|
19
|
+
/* awsui:style-api-slot name=dropdown component=dropdown slot=container */
|
|
20
|
+
.awsui_root_r2vco_12rwf_20:not(#\9) {
|
|
10
21
|
border-collapse: separate;
|
|
11
22
|
border-spacing: 0;
|
|
12
23
|
box-sizing: border-box;
|
|
@@ -38,12 +49,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
38
49
|
-moz-osx-font-smoothing: auto;
|
|
39
50
|
}
|
|
40
51
|
|
|
41
|
-
.awsui_dropdown-
|
|
52
|
+
.awsui_dropdown-header_r2vco_12rwf_52:not(#\9) {
|
|
42
53
|
inline-size: 100%;
|
|
43
54
|
position: relative;
|
|
44
55
|
z-index: 4;
|
|
45
56
|
}
|
|
46
57
|
|
|
47
|
-
.awsui_dropdown-
|
|
58
|
+
.awsui_dropdown-footer_r2vco_12rwf_58:not(#\9) {
|
|
48
59
|
inline-size: 100%;
|
|
49
60
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"dropdown-header": "awsui_dropdown-
|
|
7
|
-
"dropdown-footer": "awsui_dropdown-
|
|
5
|
+
"root": "awsui_root_r2vco_12rwf_20",
|
|
6
|
+
"dropdown-header": "awsui_dropdown-header_r2vco_12rwf_52",
|
|
7
|
+
"dropdown-footer": "awsui_dropdown-footer_r2vco_12rwf_58"
|
|
8
8
|
};
|
|
9
9
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED from the autosuggest Style API docs — do not edit.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// GENERATED from the flashbar Style API docs — do not edit.
|
|
2
|
+
@use '@cloudscape-design/component-toolkit/internal/style-api/slot-mixins' as slot-mixins;
|
|
3
|
+
|
|
4
|
+
@mixin notificationBar(
|
|
5
|
+
$focus-ring-color: null,
|
|
6
|
+
$focus-ring-width: null,
|
|
7
|
+
$focus-ring-radius: null,
|
|
8
|
+
$color: null,
|
|
9
|
+
$background: null,
|
|
10
|
+
$border-color: null,
|
|
11
|
+
$border-width: null,
|
|
12
|
+
$border-style: null,
|
|
13
|
+
$border-block-color: null,
|
|
14
|
+
$border-block-width: null,
|
|
15
|
+
$border-block-style: null,
|
|
16
|
+
$border-inline-color: null,
|
|
17
|
+
$border-inline-width: null,
|
|
18
|
+
$border-inline-style: null,
|
|
19
|
+
$border-radius: null,
|
|
20
|
+
$border-start-start-radius: null,
|
|
21
|
+
$border-start-end-radius: null,
|
|
22
|
+
$border-end-start-radius: null,
|
|
23
|
+
$border-end-end-radius: null,
|
|
24
|
+
$box-shadow: null,
|
|
25
|
+
$padding: null,
|
|
26
|
+
$padding-block: null,
|
|
27
|
+
$padding-inline: null
|
|
28
|
+
) {
|
|
29
|
+
@include slot-mixins.apply(
|
|
30
|
+
'flashbar.notificationBar',
|
|
31
|
+
$tokens: (
|
|
32
|
+
'focus-ring-color': $focus-ring-color,
|
|
33
|
+
'focus-ring-width': $focus-ring-width,
|
|
34
|
+
'focus-ring-radius': $focus-ring-radius,
|
|
35
|
+
),
|
|
36
|
+
$properties: (
|
|
37
|
+
'color': $color,
|
|
38
|
+
'background': $background,
|
|
39
|
+
'border-color': $border-color,
|
|
40
|
+
'border-width': $border-width,
|
|
41
|
+
'border-style': $border-style,
|
|
42
|
+
'border-block-color': $border-block-color,
|
|
43
|
+
'border-block-width': $border-block-width,
|
|
44
|
+
'border-block-style': $border-block-style,
|
|
45
|
+
'border-inline-color': $border-inline-color,
|
|
46
|
+
'border-inline-width': $border-inline-width,
|
|
47
|
+
'border-inline-style': $border-inline-style,
|
|
48
|
+
'border-radius': $border-radius,
|
|
49
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
50
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
51
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
52
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
53
|
+
'box-shadow': $box-shadow,
|
|
54
|
+
'padding': $padding,
|
|
55
|
+
'padding-block': $padding-block,
|
|
56
|
+
'padding-inline': $padding-inline,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin item(
|
|
62
|
+
$focus-ring-color: null,
|
|
63
|
+
$focus-ring-width: null,
|
|
64
|
+
$focus-ring-radius: null,
|
|
65
|
+
$color: null,
|
|
66
|
+
$background: null,
|
|
67
|
+
$border-color: null,
|
|
68
|
+
$border-width: null,
|
|
69
|
+
$border-style: null,
|
|
70
|
+
$border-block-color: null,
|
|
71
|
+
$border-block-width: null,
|
|
72
|
+
$border-block-style: null,
|
|
73
|
+
$border-inline-color: null,
|
|
74
|
+
$border-inline-width: null,
|
|
75
|
+
$border-inline-style: null,
|
|
76
|
+
$border-radius: null,
|
|
77
|
+
$border-start-start-radius: null,
|
|
78
|
+
$border-start-end-radius: null,
|
|
79
|
+
$border-end-start-radius: null,
|
|
80
|
+
$border-end-end-radius: null,
|
|
81
|
+
$box-shadow: null,
|
|
82
|
+
$padding: null,
|
|
83
|
+
$padding-block: null,
|
|
84
|
+
$padding-inline: null
|
|
85
|
+
) {
|
|
86
|
+
@include slot-mixins.apply(
|
|
87
|
+
'flashbar.item',
|
|
88
|
+
$tokens: (
|
|
89
|
+
'focus-ring-color': $focus-ring-color,
|
|
90
|
+
'focus-ring-width': $focus-ring-width,
|
|
91
|
+
'focus-ring-radius': $focus-ring-radius,
|
|
92
|
+
),
|
|
93
|
+
$properties: (
|
|
94
|
+
'color': $color,
|
|
95
|
+
'background': $background,
|
|
96
|
+
'border-color': $border-color,
|
|
97
|
+
'border-width': $border-width,
|
|
98
|
+
'border-style': $border-style,
|
|
99
|
+
'border-block-color': $border-block-color,
|
|
100
|
+
'border-block-width': $border-block-width,
|
|
101
|
+
'border-block-style': $border-block-style,
|
|
102
|
+
'border-inline-color': $border-inline-color,
|
|
103
|
+
'border-inline-width': $border-inline-width,
|
|
104
|
+
'border-inline-style': $border-inline-style,
|
|
105
|
+
'border-radius': $border-radius,
|
|
106
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
107
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
108
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
109
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
110
|
+
'box-shadow': $box-shadow,
|
|
111
|
+
'padding': $padding,
|
|
112
|
+
'padding-block': $padding-block,
|
|
113
|
+
'padding-inline': $padding-inline,
|
|
114
|
+
),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@mixin icon(
|
|
119
|
+
$color: null
|
|
120
|
+
) {
|
|
121
|
+
@include slot-mixins.apply(
|
|
122
|
+
'flashbar.icon',
|
|
123
|
+
$properties: (
|
|
124
|
+
'color': $color,
|
|
125
|
+
),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// GENERATED from the multiselect Style API docs — do not edit.
|
|
2
|
+
@use '@cloudscape-design/component-toolkit/internal/style-api/slot-mixins' as slot-mixins;
|
|
3
|
+
|
|
4
|
+
@mixin trigger(
|
|
5
|
+
$placeholder-color: null,
|
|
6
|
+
$color: null,
|
|
7
|
+
$background: null,
|
|
8
|
+
$border-color: null,
|
|
9
|
+
$border-width: null,
|
|
10
|
+
$border-style: null,
|
|
11
|
+
$border-block-color: null,
|
|
12
|
+
$border-block-width: null,
|
|
13
|
+
$border-block-style: null,
|
|
14
|
+
$border-inline-color: null,
|
|
15
|
+
$border-inline-width: null,
|
|
16
|
+
$border-inline-style: null,
|
|
17
|
+
$border-radius: null,
|
|
18
|
+
$border-start-start-radius: null,
|
|
19
|
+
$border-start-end-radius: null,
|
|
20
|
+
$border-end-start-radius: null,
|
|
21
|
+
$border-end-end-radius: null,
|
|
22
|
+
$box-shadow: null,
|
|
23
|
+
$padding: null,
|
|
24
|
+
$padding-block: null,
|
|
25
|
+
$padding-inline: null,
|
|
26
|
+
$font-family: null,
|
|
27
|
+
$font-size: null,
|
|
28
|
+
$font-weight: null
|
|
29
|
+
) {
|
|
30
|
+
@include slot-mixins.apply(
|
|
31
|
+
'multiselect.trigger',
|
|
32
|
+
$tokens: (
|
|
33
|
+
'placeholder-color': $placeholder-color,
|
|
34
|
+
),
|
|
35
|
+
$properties: (
|
|
36
|
+
'color': $color,
|
|
37
|
+
'background': $background,
|
|
38
|
+
'border-color': $border-color,
|
|
39
|
+
'border-width': $border-width,
|
|
40
|
+
'border-style': $border-style,
|
|
41
|
+
'border-block-color': $border-block-color,
|
|
42
|
+
'border-block-width': $border-block-width,
|
|
43
|
+
'border-block-style': $border-block-style,
|
|
44
|
+
'border-inline-color': $border-inline-color,
|
|
45
|
+
'border-inline-width': $border-inline-width,
|
|
46
|
+
'border-inline-style': $border-inline-style,
|
|
47
|
+
'border-radius': $border-radius,
|
|
48
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
49
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
50
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
51
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
52
|
+
'box-shadow': $box-shadow,
|
|
53
|
+
'padding': $padding,
|
|
54
|
+
'padding-block': $padding-block,
|
|
55
|
+
'padding-inline': $padding-inline,
|
|
56
|
+
'font-family': $font-family,
|
|
57
|
+
'font-size': $font-size,
|
|
58
|
+
'font-weight': $font-weight,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin inlineLabel(
|
|
64
|
+
$color: null,
|
|
65
|
+
$background: null,
|
|
66
|
+
$font-family: null,
|
|
67
|
+
$font-size: null,
|
|
68
|
+
$font-weight: null
|
|
69
|
+
) {
|
|
70
|
+
@include slot-mixins.apply(
|
|
71
|
+
'multiselect.inlineLabel',
|
|
72
|
+
$properties: (
|
|
73
|
+
'color': $color,
|
|
74
|
+
'background': $background,
|
|
75
|
+
'font-family': $font-family,
|
|
76
|
+
'font-size': $font-size,
|
|
77
|
+
'font-weight': $font-weight,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED from the radio-group Style API docs — do not edit.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// GENERATED from the segmented-control Style API docs — do not edit.
|
|
2
|
+
@use '@cloudscape-design/component-toolkit/internal/style-api/slot-mixins' as slot-mixins;
|
|
3
|
+
|
|
4
|
+
@mixin root(
|
|
5
|
+
$border-radius: null,
|
|
6
|
+
$background: null,
|
|
7
|
+
$border-color: null,
|
|
8
|
+
$border-width: null,
|
|
9
|
+
$border-style: null,
|
|
10
|
+
$border-block-color: null,
|
|
11
|
+
$border-block-width: null,
|
|
12
|
+
$border-block-style: null,
|
|
13
|
+
$border-inline-color: null,
|
|
14
|
+
$border-inline-width: null,
|
|
15
|
+
$border-inline-style: null
|
|
16
|
+
) {
|
|
17
|
+
@include slot-mixins.apply(
|
|
18
|
+
'segmented-control.root',
|
|
19
|
+
$tokens: (
|
|
20
|
+
'border-radius': $border-radius,
|
|
21
|
+
),
|
|
22
|
+
$properties: (
|
|
23
|
+
'background': $background,
|
|
24
|
+
'border-color': $border-color,
|
|
25
|
+
'border-width': $border-width,
|
|
26
|
+
'border-style': $border-style,
|
|
27
|
+
'border-block-color': $border-block-color,
|
|
28
|
+
'border-block-width': $border-block-width,
|
|
29
|
+
'border-block-style': $border-block-style,
|
|
30
|
+
'border-inline-color': $border-inline-color,
|
|
31
|
+
'border-inline-width': $border-inline-width,
|
|
32
|
+
'border-inline-style': $border-inline-style,
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin segment(
|
|
38
|
+
$focus-ring-color: null,
|
|
39
|
+
$focus-ring-width: null,
|
|
40
|
+
$focus-ring-radius: null,
|
|
41
|
+
$color: null,
|
|
42
|
+
$background: null,
|
|
43
|
+
$border-color: null,
|
|
44
|
+
$border-width: null,
|
|
45
|
+
$border-style: null,
|
|
46
|
+
$border-block-color: null,
|
|
47
|
+
$border-block-width: null,
|
|
48
|
+
$border-block-style: null,
|
|
49
|
+
$border-inline-color: null,
|
|
50
|
+
$border-inline-width: null,
|
|
51
|
+
$border-inline-style: null,
|
|
52
|
+
$border-radius: null,
|
|
53
|
+
$border-start-start-radius: null,
|
|
54
|
+
$border-start-end-radius: null,
|
|
55
|
+
$border-end-start-radius: null,
|
|
56
|
+
$border-end-end-radius: null,
|
|
57
|
+
$box-shadow: null,
|
|
58
|
+
$padding: null,
|
|
59
|
+
$padding-block: null,
|
|
60
|
+
$padding-inline: null,
|
|
61
|
+
$font-family: null,
|
|
62
|
+
$font-size: null,
|
|
63
|
+
$font-weight: null
|
|
64
|
+
) {
|
|
65
|
+
@include slot-mixins.apply(
|
|
66
|
+
'segmented-control.segment',
|
|
67
|
+
$tokens: (
|
|
68
|
+
'focus-ring-color': $focus-ring-color,
|
|
69
|
+
'focus-ring-width': $focus-ring-width,
|
|
70
|
+
'focus-ring-radius': $focus-ring-radius,
|
|
71
|
+
),
|
|
72
|
+
$properties: (
|
|
73
|
+
'color': $color,
|
|
74
|
+
'background': $background,
|
|
75
|
+
'border-color': $border-color,
|
|
76
|
+
'border-width': $border-width,
|
|
77
|
+
'border-style': $border-style,
|
|
78
|
+
'border-block-color': $border-block-color,
|
|
79
|
+
'border-block-width': $border-block-width,
|
|
80
|
+
'border-block-style': $border-block-style,
|
|
81
|
+
'border-inline-color': $border-inline-color,
|
|
82
|
+
'border-inline-width': $border-inline-width,
|
|
83
|
+
'border-inline-style': $border-inline-style,
|
|
84
|
+
'border-radius': $border-radius,
|
|
85
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
86
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
87
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
88
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
89
|
+
'box-shadow': $box-shadow,
|
|
90
|
+
'padding': $padding,
|
|
91
|
+
'padding-block': $padding-block,
|
|
92
|
+
'padding-inline': $padding-inline,
|
|
93
|
+
'font-family': $font-family,
|
|
94
|
+
'font-size': $font-size,
|
|
95
|
+
'font-weight': $font-weight,
|
|
96
|
+
),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin divider(
|
|
101
|
+
$color: null,
|
|
102
|
+
$width: null
|
|
103
|
+
) {
|
|
104
|
+
@include slot-mixins.apply(
|
|
105
|
+
'segmented-control.divider',
|
|
106
|
+
$tokens: (
|
|
107
|
+
'color': $color,
|
|
108
|
+
'width': $width,
|
|
109
|
+
),
|
|
110
|
+
);
|
|
111
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// GENERATED from the select Style API docs — do not edit.
|
|
2
|
+
@use '@cloudscape-design/component-toolkit/internal/style-api/slot-mixins' as slot-mixins;
|
|
3
|
+
|
|
4
|
+
@mixin trigger(
|
|
5
|
+
$placeholder-color: null,
|
|
6
|
+
$color: null,
|
|
7
|
+
$background: null,
|
|
8
|
+
$border-color: null,
|
|
9
|
+
$border-width: null,
|
|
10
|
+
$border-style: null,
|
|
11
|
+
$border-block-color: null,
|
|
12
|
+
$border-block-width: null,
|
|
13
|
+
$border-block-style: null,
|
|
14
|
+
$border-inline-color: null,
|
|
15
|
+
$border-inline-width: null,
|
|
16
|
+
$border-inline-style: null,
|
|
17
|
+
$border-radius: null,
|
|
18
|
+
$border-start-start-radius: null,
|
|
19
|
+
$border-start-end-radius: null,
|
|
20
|
+
$border-end-start-radius: null,
|
|
21
|
+
$border-end-end-radius: null,
|
|
22
|
+
$box-shadow: null,
|
|
23
|
+
$padding: null,
|
|
24
|
+
$padding-block: null,
|
|
25
|
+
$padding-inline: null,
|
|
26
|
+
$font-family: null,
|
|
27
|
+
$font-size: null,
|
|
28
|
+
$font-weight: null
|
|
29
|
+
) {
|
|
30
|
+
@include slot-mixins.apply(
|
|
31
|
+
'select.trigger',
|
|
32
|
+
$tokens: (
|
|
33
|
+
'placeholder-color': $placeholder-color,
|
|
34
|
+
),
|
|
35
|
+
$properties: (
|
|
36
|
+
'color': $color,
|
|
37
|
+
'background': $background,
|
|
38
|
+
'border-color': $border-color,
|
|
39
|
+
'border-width': $border-width,
|
|
40
|
+
'border-style': $border-style,
|
|
41
|
+
'border-block-color': $border-block-color,
|
|
42
|
+
'border-block-width': $border-block-width,
|
|
43
|
+
'border-block-style': $border-block-style,
|
|
44
|
+
'border-inline-color': $border-inline-color,
|
|
45
|
+
'border-inline-width': $border-inline-width,
|
|
46
|
+
'border-inline-style': $border-inline-style,
|
|
47
|
+
'border-radius': $border-radius,
|
|
48
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
49
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
50
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
51
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
52
|
+
'box-shadow': $box-shadow,
|
|
53
|
+
'padding': $padding,
|
|
54
|
+
'padding-block': $padding-block,
|
|
55
|
+
'padding-inline': $padding-inline,
|
|
56
|
+
'font-family': $font-family,
|
|
57
|
+
'font-size': $font-size,
|
|
58
|
+
'font-weight': $font-weight,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin inlineLabel(
|
|
64
|
+
$color: null,
|
|
65
|
+
$background: null,
|
|
66
|
+
$font-family: null,
|
|
67
|
+
$font-size: null,
|
|
68
|
+
$font-weight: null
|
|
69
|
+
) {
|
|
70
|
+
@include slot-mixins.apply(
|
|
71
|
+
'select.inlineLabel',
|
|
72
|
+
$properties: (
|
|
73
|
+
'color': $color,
|
|
74
|
+
'background': $background,
|
|
75
|
+
'font-family': $font-family,
|
|
76
|
+
'font-size': $font-size,
|
|
77
|
+
'font-weight': $font-weight,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"resize-active": "awsui_resize-
|
|
5
|
-
"resize-active-with-focus": "awsui_resize-active-with-
|
|
6
|
-
"resizer-wrapper": "awsui_resizer-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"divider": "
|
|
11
|
-
"divider-
|
|
12
|
-
"divider-position-
|
|
13
|
-
"divider-position-
|
|
14
|
-
"divider-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"resizer": "
|
|
19
|
-
"has-focus": "awsui_has-
|
|
20
|
-
"tracker": "
|
|
4
|
+
"resize-active": "awsui_resize-active_x7peu_p6la0_9",
|
|
5
|
+
"resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_p6la0_9",
|
|
6
|
+
"resizer-wrapper": "awsui_resizer-wrapper_x7peu_p6la0_14",
|
|
7
|
+
"resizer-button-wrapper": "awsui_resizer-button-wrapper_x7peu_p6la0_23",
|
|
8
|
+
"divider": "awsui_divider_x7peu_p6la0_27",
|
|
9
|
+
"divider-interactive": "awsui_divider-interactive_x7peu_p6la0_28",
|
|
10
|
+
"divider-grouped": "awsui_divider-grouped_x7peu_p6la0_46",
|
|
11
|
+
"divider-position-top": "awsui_divider-position-top_x7peu_p6la0_50",
|
|
12
|
+
"divider-position-bottom": "awsui_divider-position-bottom_x7peu_p6la0_56",
|
|
13
|
+
"divider-position-full": "awsui_divider-position-full_x7peu_p6la0_62",
|
|
14
|
+
"divider-active": "awsui_divider-active_x7peu_p6la0_72",
|
|
15
|
+
"is-borderless": "awsui_is-borderless_x7peu_p6la0_76",
|
|
16
|
+
"is-last": "awsui_is-last_x7peu_p6la0_76",
|
|
17
|
+
"visual-refresh": "awsui_visual-refresh_x7peu_p6la0_80",
|
|
18
|
+
"resizer": "awsui_resizer_x7peu_p6la0_14",
|
|
19
|
+
"has-focus": "awsui_has-focus_x7peu_p6la0_129",
|
|
20
|
+
"tracker": "awsui_tracker_x7peu_p6la0_151"
|
|
21
21
|
};
|
|
22
22
|
|