@codecademy/gamut 72.2.2-alpha.dfb0a2.0 → 72.2.2-alpha.f96392.0
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/dist/Alert/elements.d.ts +4 -4
- package/dist/Anchor/index.d.ts +9 -19
- package/dist/Anchor/index.js +6 -9
- package/dist/BarChart/BarRow/elements.d.ts +154 -156
- package/dist/BarChart/utils/hooks.d.ts +2 -2
- package/dist/BarChart/utils/hooks.js +1 -3
- package/dist/Box/GridBox.d.ts +0 -1
- package/dist/Box/GridBox.js +1 -1
- package/dist/Box/props.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +5 -5
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/Button/CTAButton.d.ts +2 -2
- package/dist/Button/FillButton.d.ts +4 -4
- package/dist/Button/IconButton.d.ts +4 -4
- package/dist/Button/StrokeButton.d.ts +4 -4
- package/dist/Button/TextButton.d.ts +4 -4
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/shared/InlineIconButton.d.ts +2 -2
- package/dist/Button/shared/styles.d.ts +3 -3
- package/dist/Button/shared/types.d.ts +1 -1
- package/dist/ButtonBase/ButtonBase.d.ts +4 -9
- package/dist/ButtonBase/ButtonBase.js +4 -11
- package/dist/ButtonBase/index.d.ts +1 -1
- package/dist/ButtonBase/index.js +1 -1
- package/dist/Card/elements.d.ts +430 -436
- package/dist/Card/styles.d.ts +8 -8
- package/dist/Coachmark/index.d.ts +1 -1
- package/dist/ConnectedForm/ConnectedForm.d.ts +1 -1
- package/dist/ConnectedForm/ConnectedFormGroup.js +7 -5
- package/dist/ConnectedForm/ConnectedInputs/ConnectedCheckbox.js +3 -1
- package/dist/ConnectedForm/utils.d.ts +1 -1
- package/dist/ConnectedForm/utils.js +1 -1
- package/dist/DataList/Tables/Rows/TableRow.js +5 -1
- package/dist/DatePicker/DatePickerInput/index.d.ts +1 -1
- package/dist/Disclosure/elements.d.ts +18 -24
- package/dist/FeatureShimmer/index.js +1 -1
- package/dist/Form/SelectDropdown/SelectDropdown.js +1 -1
- package/dist/Form/SelectDropdown/elements/containers.js +1 -1
- package/dist/Form/SelectDropdown/elements/controls.js +2 -2
- package/dist/Form/SelectDropdown/elements/multi-value.js +2 -2
- package/dist/Form/SelectDropdown/types/internal.d.ts +2 -2
- package/dist/Form/SelectDropdown/utils.js +1 -2
- package/dist/Form/elements/Form.d.ts +93 -93
- package/dist/Form/elements/FormGroup.d.ts +1 -1
- package/dist/Form/index.d.ts +0 -2
- package/dist/Form/index.js +1 -2
- package/dist/Form/styles/Checkbox-styles.d.ts +1 -1
- package/dist/GridForm/GridFormButtons/index.d.ts +7 -7
- package/dist/List/ListProvider.d.ts +1 -1
- package/dist/List/ListRow.js +3 -2
- package/dist/List/elements.d.ts +151 -153
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/Menu/MenuItem.js +8 -11
- package/dist/Menu/MenuSeparator.js +2 -2
- package/dist/Menu/elements.d.ts +2 -2
- package/dist/Menu/index.d.ts +0 -1
- package/dist/Menu/index.js +1 -2
- package/dist/Modals/Dialog.js +2 -6
- package/dist/Modals/Modal.js +2 -5
- package/dist/Modals/elements.d.ts +35 -35
- package/dist/Pagination/AnimatedPaginationButtons.d.ts +108 -110
- package/dist/Pagination/EllipsisButton.d.ts +4 -4
- package/dist/Pagination/PaginationButton.d.ts +6 -6
- package/dist/Pagination/utils.d.ts +108 -110
- package/dist/Pagination/utils.js +11 -14
- package/dist/PatternBackdrop/PatternBackdrop.d.ts +34 -34
- package/dist/Popover/Popover.js +6 -6
- package/dist/Popover/types.d.ts +3 -4
- package/dist/PopoverContainer/PopoverContainer.js +9 -9
- package/dist/PopoverContainer/hooks.d.ts +4 -16
- package/dist/PopoverContainer/hooks.js +27 -50
- package/dist/PopoverContainer/types.d.ts +1 -2
- package/dist/Tabs/TabButton.d.ts +2 -2
- package/dist/Tabs/TabNavLink.d.ts +2 -2
- package/dist/Tabs/TabNavLink.js +2 -2
- package/dist/Tag/elements.d.ts +10 -16
- package/dist/Tag/index.js +1 -1
- package/dist/Tip/InfoTip/InfoTipButton.d.ts +4 -4
- package/dist/Tip/PreviewTip/elements.d.ts +6 -12
- package/dist/Tip/__tests__/helpers.d.ts +1 -1
- package/dist/Tip/shared/FloatingTip.js +2 -2
- package/dist/Tip/shared/types.d.ts +2 -2
- package/dist/Tip/shared/utils.js +1 -1
- package/dist/Toggle/elements.d.ts +38 -38
- package/dist/Typography/Text.d.ts +1 -2
- package/dist/Typography/Text.js +2 -3
- package/dist/Video/lib/VidstackPlayer.d.ts +1 -1
- package/dist/Video/lib/VidstackPlayer.js +12 -5
- package/dist/Video/styles.d.ts +1 -0
- package/dist/Video/styles.js +10 -0
- package/dist/Video/vidstack-vendor.css +3 -0
- package/dist/utils/react.js +2 -4
- package/package.json +12 -19
- package/dist/Video/styles/vds_base_theme.scss +0 -101
- package/dist/utils/nullish.d.ts +0 -10
- package/dist/utils/nullish.js +0 -11
package/dist/Markdown/index.d.ts
CHANGED
|
@@ -29,4 +29,4 @@ export type MarkdownProps = {
|
|
|
29
29
|
export declare class Markdown extends PureComponent<MarkdownProps> {
|
|
30
30
|
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
31
31
|
}
|
|
32
|
-
export type {
|
|
32
|
+
export type { MarkdownOverrideSetting, MarkdownOverrideSettings, } from './libs/overrides';
|
package/dist/Markdown/index.js
CHANGED
|
@@ -31,7 +31,7 @@ const MarkdownWrapper = /*#__PURE__*/_styled("div", {
|
|
|
31
31
|
}) => {
|
|
32
32
|
const spacingStyleFunction = markdownStyles[spacing];
|
|
33
33
|
return spacingStyleFunction ? spacingStyleFunction(theme) : '';
|
|
34
|
-
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9NYXJrZG93bi9pbmRleC50c3giXSwibmFt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AgICAgICAvLyBOb3RlOiB0aGlzIHByb2Nlc3NOb2RlIG92ZXJyaWRlIGlzIG5lY2Vzc2FyeSBiZWNhdXNlIHdyYXBwaW5nIHRoaXMgY29tcG9uZW50XG4gICAgICAgICAgICAvLyBpbiBhbiBhbm9ueW1vdXMgZnVuY3Rpb25hbCBjb21wb25lbnQgYXMgd2l0aCB0aGUgVGFibGUgYmVsb3cgY2F1c2VzIHJlYWN0IHJlbmRlcmluZ1xuICAgICAgICAgICAgLy8gdG8gY3Jhc2ggd2l0aCBzb21lIGNocm9tZSB0cmFuc2xhdGlvbiBmZWF0dXJlcy5cbiAgICAgICAgICAgIC8vIFNlZSBodHRwczovL2NvZGVjYWRlbXkuYXRsYXNzaWFuLm5ldC9icm93c2UvV0VCLTEyMTRcbiAgICAgICAgICAgIGNvbnN0IHsga2V5OiBlbGVtZW50S2V5LCAuLi5yZXN0IH0gPVxuICAgICAgICAgICAgICBwcm9wcyBhcyBNYXJrZG93bkFuY2hvclByb3BzICYgeyBrZXk/OiBSZWFjdC5LZXkgfTtcbiAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgIDxNYXJrZG93bkFuY2hvclxuICAgICAgICAgICAgICAgIGtleT17ZWxlbWVudEtleX1cbiAgICAgICAgICAgICAgICBvbkNsaWNrPXtvbkFuY2hvckNsaWNrfVxuICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9LFxuICAgICAgICB9KSxcbiAgICAgICFza2lwRGVmYXVsdE92ZXJyaWRlcy50YWJsZSAmJlxuICAgICAgICBjcmVhdGVUYWdPdmVycmlkZSgndGFibGUnLCB7XG4gICAgICAgICAgY29tcG9uZW50OiBUYWJsZSxcbiAgICAgICAgICBhbGxvd2VkQXR0cmlidXRlczogWydzdHlsZSddLFxuICAgICAgICB9KSxcbiAgICAgICFza2lwRGVmYXVsdE92ZXJyaWRlcy52aWRlbyAmJlxuICA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oXG4gICAgICA8TWFya2Rvd25XcmFwcGVyXG4gICAgICAgIGFzPXtpbmxpbmUgPyAnc3BhbicgOiAnZGl2J31cbiAgICAgICAgey4uLm9taXRQcm9wcyhPYmplY3Qua2V5cyh0aGlzLnByb3BzKSwgdGhpcy5wcm9wcyl9XG4gICAgICAgIGNsYXNzTmFtZT17Y3goY2xhc3NOYW1lKX1cbiAgICAgICAgc3BhY2luZz17c3BhY2luZ31cbiAgICAgID5cbiAgICAgICAge3JlYWN0fVxuICAgICAgPC9NYXJrZG93bldyYXBwZXI+
|
|
34
|
+
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9NYXJrZG93bi9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0MyRSIsImZpbGUiOiIuLi8uLi9zcmMvTWFya2Rvd24vaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IGN4IGZyb20gJ2NsYXNzbmFtZXMnO1xuaW1wb3J0IEh0bWxUb1JlYWN0IGZyb20gJ2h0bWwtdG8tcmVhY3QnO1xuaW1wb3J0IHsgbWFya2VkIH0gZnJvbSAnbWFya2VkJztcbmltcG9ydCB7IFB1cmVDb21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgKiBhcyBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgc2FuaXRpemVNYXJrZG93biBmcm9tICdzYW5pdGl6ZS1tYXJrZG93bic7XG5cbmltcG9ydCB7IG9taXRQcm9wcyB9IGZyb20gJy4uL3V0aWxzL29taXRQcm9wcyc7XG5pbXBvcnQge1xuICBjcmVhdGVDb2RlQmxvY2tPdmVycmlkZSxcbiAgY3JlYXRlSW5wdXRPdmVycmlkZSxcbi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G93bkFuY2hvclxuICAgICAgICAgICAgICAgIGtleT17ZWxlbWVudEtleX1cbiAgICAgICAgICAgICAgICBvbkNsaWNrPXtvbkFuY2hvckNsaWNrfVxuICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9LFxuICAgICAgICB9KSxcbiAgICAgICFza2lwRGVmYXVsdE92ZXJyaWRlcy50YWJsZSAmJlxuICAgICAgICBjcmVhdGVUYWdPdmVycmlkZSgndGFibGUnLCB7XG4gICAgICAgICAgY29tcG9uZW50OiBUYWJsZSxcbiAgICAgICAgICBhbGxvd2VkQXR0cmlidXRlczogWydzdHlsZSddLFxuICAgICAgICB9KSxcbiAgICAgICFza2lwRGVmYXVsdE92ZXJyaWRlcy52aWRlbyAmJlxuICAgICAgICBjcmVhdGVWaWRlb092ZXJyaWRlKCd2aWRlbycsIHtcbiAgICAgICAgICBjb21wb25lbnQ6IE1hcmtkb3duVmlkZW8sXG4gICAgICAgIH0pLFxuICAgICAgIXNraXBEZWZhdWx0T3ZlcnJpZGVzLmRldGFpbHMgJiZcbiAgICAgICAgY3JlYXRlVGFnT3ZlcnJpZGUoJ2RldGFpbHMnLCB7XG4gICAgICAgICAgY29tcG9uZW50OiBEZXRhaWxzLFxuICAgICAgICAgIGFsbG93ZWRBdHRyaWJ1dGVzOiBbJ3N0eWxlJywgJ29wZW4nXSxcbiAgICAgICAgfSksXG4gICAgICAhc2tpcERlZmF1bHRPdmVycmlkZXMuY2hlY2tib3ggJiZcbiAgICAgICAgY3JlYXRlSW5wdXRPdmVycmlkZSgnY2hlY2tib3gnLCB7XG4gICAgICAgICAgY29tcG9uZW50OiBNYXJrZG93bkNoZWNrYm94LFxuICAgICAgICB9KSxcbiAgICAgIC4uLnN0YW5kYXJkT3ZlcnJpZGVzLFxuICAgIF0uZmlsdGVyKEJvb2xlYW4pO1xuXG4gICAgY29uc3QgbWFya2VkT3B0aW9ucyA9IHtc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XJDYXNlKCkpLFxuICAgICAgICAgIH07XG4gICAgICAgIH0sIHt9KSxcbiAgICAgIH0sXG4gICAgfTtcblxuICAgIGNvbnN0IGh0bWwgPSBzYW5pdGl6ZU1hcmtkb3duKHJhd0h0bWwsIHNhbml0aXphdGlvbkNvbmZpZyk7XG5cbiAgICAvLyBSZW5kZXIgaHRtbCB0byBhIHJlYWN0IHRyZWVcbiAgICBjb25zdCByZWFjdCA9IGh0bWxUb1JlYWN0UGFyc2VyLnBhcnNlV2l0aEluc3RydWN0aW9ucyhcbiAgICAgIGh0bWwsXG4gICAgICBpc1ZhbGlkTm9kZSxcbiAgICAgIHByb2Nlc3NpbmdJbnN0cnVjdGlvbnMsXG4gICAgICBwcmVwcm9jZXNzaW5nSW5zdHJ1Y3Rpb25zXG4gICAgKTtcblxuICAgIHJldHVybiAoXG4gICAgICA8TWFya2Rvd25XcmFwcGVyXG4gICAgICAgIGFzPXtpbmxpbmUgPyAnc3BhbicgOiAnZGl2J31cbiAgICAgICAgey4uLm9taXRQcm9wcyhPYmplY3Qua2V5cyh0aGlzLnByb3BzKSwgdGhpcy5wcm9wcyl9XG4gICAgICAgIGNsYXNzTmFtZT17Y3goY2xhc3NOYW1lKX1cbiAgICAgICAgc3BhY2luZz17c3BhY2luZ31cbiAgICAgID5cbiAgICAgICAge3JlYWN0fVxuICAgICAgPC9NYXJrZG93bldyYXBwZXI+XG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgdHlwZSB7XG4gIE1hcmtkb3duT3ZlcnJpZGVTZXR0aW5nLFxuICBNYXJrZG93bk92ZXJyaWRlU2V0dGluZ3MsXG59IGZyb20gJy4vbGlicy9vdmVycmlkZXMnO1xuIl19 */"));
|
|
35
35
|
export class Markdown extends PureComponent {
|
|
36
36
|
render() {
|
|
37
37
|
const {
|
package/dist/Menu/MenuItem.js
CHANGED
|
@@ -15,13 +15,6 @@ const currentItemText = {
|
|
|
15
15
|
button: 'current action',
|
|
16
16
|
item: 'current item'
|
|
17
17
|
};
|
|
18
|
-
/**
|
|
19
|
-
* Narrows the forwarded ref union to a specific element type for the current render branch.
|
|
20
|
-
* MenuItem renders exactly one of li, a, or button per call, so the ref is forwarded to that element.
|
|
21
|
-
*/
|
|
22
|
-
function narrowMenuItemRef(ref) {
|
|
23
|
-
return ref;
|
|
24
|
-
}
|
|
25
18
|
export const MenuItem = /*#__PURE__*/forwardRef(({
|
|
26
19
|
active,
|
|
27
20
|
children,
|
|
@@ -32,6 +25,7 @@ export const MenuItem = /*#__PURE__*/forwardRef(({
|
|
|
32
25
|
label,
|
|
33
26
|
target,
|
|
34
27
|
width = 1,
|
|
28
|
+
'aria-label': explicitAriaLabel,
|
|
35
29
|
...props
|
|
36
30
|
}, ref) => {
|
|
37
31
|
const {
|
|
@@ -58,7 +52,7 @@ export const MenuItem = /*#__PURE__*/forwardRef(({
|
|
|
58
52
|
variant: 'link',
|
|
59
53
|
role: role === 'menu' ? 'menuitem' : undefined,
|
|
60
54
|
[activeProp]: active,
|
|
61
|
-
'aria-label': isIconOnly ? ariaLabel : undefined,
|
|
55
|
+
'aria-label': isIconOnly ? ariaLabel ?? explicitAriaLabel : undefined,
|
|
62
56
|
'aria-describedby': !isIconOnly && ariaLabel ? tipId : undefined,
|
|
63
57
|
'aria-disabled': disabled,
|
|
64
58
|
isDisabled: disabled
|
|
@@ -77,6 +71,7 @@ export const MenuItem = /*#__PURE__*/forwardRef(({
|
|
|
77
71
|
}), children]
|
|
78
72
|
});
|
|
79
73
|
if (listItemType === 'link' && !disabled) {
|
|
74
|
+
const linkRef = ref;
|
|
80
75
|
return /*#__PURE__*/_jsx(ListItem, {
|
|
81
76
|
...listItemProps,
|
|
82
77
|
children: /*#__PURE__*/_jsx(MenuToolTipWrapper, {
|
|
@@ -85,7 +80,7 @@ export const MenuItem = /*#__PURE__*/forwardRef(({
|
|
|
85
80
|
children: /*#__PURE__*/_jsx(ListLink, {
|
|
86
81
|
...computed,
|
|
87
82
|
href: href,
|
|
88
|
-
ref:
|
|
83
|
+
ref: linkRef,
|
|
89
84
|
target: target,
|
|
90
85
|
children: content
|
|
91
86
|
})
|
|
@@ -93,6 +88,7 @@ export const MenuItem = /*#__PURE__*/forwardRef(({
|
|
|
93
88
|
});
|
|
94
89
|
}
|
|
95
90
|
if (listItemType === 'button' || listItemType === 'link' && disabled) {
|
|
91
|
+
const buttonRef = ref;
|
|
96
92
|
const handleClick = disabled ? () => null : props.onClick;
|
|
97
93
|
return /*#__PURE__*/_jsx(ListItem, {
|
|
98
94
|
...listItemProps,
|
|
@@ -101,19 +97,20 @@ export const MenuItem = /*#__PURE__*/forwardRef(({
|
|
|
101
97
|
tipId: tipId,
|
|
102
98
|
children: /*#__PURE__*/_jsx(ListButton, {
|
|
103
99
|
...computed,
|
|
104
|
-
ref:
|
|
100
|
+
ref: buttonRef,
|
|
105
101
|
onClick: handleClick,
|
|
106
102
|
children: content
|
|
107
103
|
})
|
|
108
104
|
})
|
|
109
105
|
});
|
|
110
106
|
}
|
|
107
|
+
const liRef = ref;
|
|
111
108
|
return (
|
|
112
109
|
/*#__PURE__*/
|
|
113
110
|
// These are non-interactive and will never have tooltips (nor should they).
|
|
114
111
|
_jsx(ListItem, {
|
|
115
112
|
...computed,
|
|
116
|
-
ref:
|
|
113
|
+
ref: liRef,
|
|
117
114
|
children: content
|
|
118
115
|
})
|
|
119
116
|
);
|
|
@@ -7,14 +7,14 @@ export const MenuSeparator = props => {
|
|
|
7
7
|
center: true,
|
|
8
8
|
fit: true,
|
|
9
9
|
height: 8,
|
|
10
|
-
role: "separator",
|
|
11
10
|
...props,
|
|
12
11
|
children: /*#__PURE__*/_jsx(Box, {
|
|
13
12
|
bg: "text-disabled",
|
|
14
13
|
borderRadius: "sm",
|
|
15
14
|
fit: true,
|
|
16
15
|
height: "1px",
|
|
17
|
-
mx: 16
|
|
16
|
+
mx: 16,
|
|
17
|
+
role: "separator"
|
|
18
18
|
})
|
|
19
19
|
});
|
|
20
20
|
};
|
package/dist/Menu/elements.d.ts
CHANGED
|
@@ -639,11 +639,11 @@ export interface ListLinkProps extends ListItemProps {
|
|
|
639
639
|
export declare const ListLink: import("react").ForwardRefExoticComponent<Omit<{
|
|
640
640
|
theme?: import("@emotion/react").Theme;
|
|
641
641
|
as?: React.ElementType;
|
|
642
|
-
} & ListLinkProps & Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "
|
|
642
|
+
} & ListLinkProps & Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "media" | "target" | "type" | "href" | keyof import("react").ClassAttributes<HTMLAnchorElement> | "download" | "hrefLang" | "ping" | "referrerPolicy">, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
643
643
|
export declare const ListButton: import("@emotion/styled").StyledComponent<{
|
|
644
644
|
theme?: import("@emotion/react").Theme;
|
|
645
645
|
as?: React.ElementType;
|
|
646
|
-
} & ListLinkProps, Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "disabled" | "name" | "form" | "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "
|
|
646
|
+
} & ListLinkProps, Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "disabled" | "name" | "form" | "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "type" | keyof import("react").ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value">, {}>;
|
|
647
647
|
export declare const MenuToolTipWrapper: React.FC<Pick<ComponentProps<typeof MenuItem>, 'children' | 'label'> & {
|
|
648
648
|
tipId: string;
|
|
649
649
|
}>;
|
package/dist/Menu/index.d.ts
CHANGED
package/dist/Menu/index.js
CHANGED
package/dist/Modals/Dialog.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { MiniDeleteIcon } from '@codecademy/gamut-icons';
|
|
2
|
-
import { useId } from 'react';
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { Box } from '../Box';
|
|
5
4
|
import { FillButton, IconButton, TextButton } from '../Button';
|
|
6
5
|
import { Overlay } from '../Overlay';
|
|
7
6
|
import { Text } from '../Typography';
|
|
8
|
-
import { isNullish } from '../utils/nullish';
|
|
9
7
|
import { ModalContainer } from './elements';
|
|
10
8
|
import { ImageContainer } from './ImageContainer';
|
|
11
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -28,7 +26,6 @@ export const Dialog = ({
|
|
|
28
26
|
size = 'small',
|
|
29
27
|
...rest
|
|
30
28
|
}) => {
|
|
31
|
-
const titleId = useId();
|
|
32
29
|
const onConfirm = e => {
|
|
33
30
|
onRequestClose();
|
|
34
31
|
confirmCta.onClick?.(e);
|
|
@@ -43,8 +40,8 @@ export const Dialog = ({
|
|
|
43
40
|
...rest,
|
|
44
41
|
children: /*#__PURE__*/_jsxs(ModalContainer, {
|
|
45
42
|
"aria-hidden": "false",
|
|
46
|
-
"aria-label":
|
|
47
|
-
"aria-labelledby":
|
|
43
|
+
"aria-label": "dialog",
|
|
44
|
+
"aria-labelledby": String(title),
|
|
48
45
|
"aria-modal": "true",
|
|
49
46
|
"data-autofocus": true,
|
|
50
47
|
layout: "dialog",
|
|
@@ -56,7 +53,6 @@ export const Dialog = ({
|
|
|
56
53
|
as: "h2",
|
|
57
54
|
fontSize: 20,
|
|
58
55
|
gridArea: "title",
|
|
59
|
-
id: !isNullish(title) ? titleId : undefined,
|
|
60
56
|
lineHeight: "base",
|
|
61
57
|
children: title
|
|
62
58
|
}), !hideCloseButton && /*#__PURE__*/_jsx(Box, {
|
package/dist/Modals/Modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MiniDeleteIcon } from '@codecademy/gamut-icons';
|
|
2
|
-
import {
|
|
2
|
+
import { useState } from 'react';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { Box } from '../Box';
|
|
5
5
|
import { FillButton, IconButton, TextButton } from '../Button';
|
|
@@ -28,12 +28,10 @@ export const Modal = ({
|
|
|
28
28
|
views,
|
|
29
29
|
...rest
|
|
30
30
|
}) => {
|
|
31
|
-
const titleId = useId();
|
|
32
31
|
const [currentView, setCurrentView] = useState(0);
|
|
33
32
|
const view = views?.[currentView];
|
|
34
33
|
const image = (view?.image || rest?.image) ?? null;
|
|
35
34
|
const titleText = title || views?.[currentView].title;
|
|
36
|
-
const needsLabelledBy = titleText && !ariaLabel;
|
|
37
35
|
return /*#__PURE__*/_jsx(Overlay, {
|
|
38
36
|
"data-testid": "modal",
|
|
39
37
|
shroud: true,
|
|
@@ -42,7 +40,7 @@ export const Modal = ({
|
|
|
42
40
|
children: /*#__PURE__*/_jsxs(ModalContainer, {
|
|
43
41
|
"aria-hidden": "false",
|
|
44
42
|
"aria-label": ariaLabel,
|
|
45
|
-
"aria-labelledby":
|
|
43
|
+
"aria-labelledby": titleText ? String(titleText) : undefined,
|
|
46
44
|
"aria-modal": "true",
|
|
47
45
|
className: className,
|
|
48
46
|
"data-autofocus": true,
|
|
@@ -55,7 +53,6 @@ export const Modal = ({
|
|
|
55
53
|
as: headingLevel,
|
|
56
54
|
fontSize: 20,
|
|
57
55
|
gridArea: "title",
|
|
58
|
-
id: titleId,
|
|
59
56
|
lineHeight: "base",
|
|
60
57
|
children: titleText
|
|
61
58
|
}), !hideCloseButton && /*#__PURE__*/_jsx(Box, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleProps } from '@codecademy/variance';
|
|
2
|
-
declare const sizeVariant: (props: import("@codecademy/variance/dist/types/config").VariantProps<"size", false | "small" | "
|
|
2
|
+
declare const sizeVariant: (props: import("@codecademy/variance/dist/types/config").VariantProps<"size", false | "small" | "large" | "medium" | "fluid"> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
}) => import("@codecademy/variance").CSSObject;
|
|
5
5
|
declare const layoutVariant: (props: import("@codecademy/variance/dist/types/config").VariantProps<"layout", false | "dialog" | "standard"> & {
|
|
@@ -11,11 +11,11 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
11
11
|
theme?: import("@emotion/react").Theme;
|
|
12
12
|
as?: React.ElementType;
|
|
13
13
|
} & {
|
|
14
|
-
p?: import("@codecademy/variance").Scale<{
|
|
14
|
+
p?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
15
15
|
readonly property: "padding";
|
|
16
16
|
readonly scale: "spacing";
|
|
17
17
|
}>;
|
|
18
|
-
height?: import("@codecademy/variance").Scale<{
|
|
18
|
+
height?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
19
19
|
readonly property: {
|
|
20
20
|
readonly physical: "height";
|
|
21
21
|
readonly logical: "blockSize";
|
|
@@ -23,7 +23,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
23
23
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
24
24
|
readonly transform: (value: string | number) => string | 0;
|
|
25
25
|
}>;
|
|
26
|
-
width?: import("@codecademy/variance").Scale<{
|
|
26
|
+
width?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
27
27
|
readonly property: {
|
|
28
28
|
readonly physical: "width";
|
|
29
29
|
readonly logical: "inlineSize";
|
|
@@ -31,43 +31,43 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
31
31
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
32
32
|
readonly transform: (value: string | number) => string | 0;
|
|
33
33
|
}>;
|
|
34
|
-
alignSelf?: import("@codecademy/variance").Scale<{
|
|
34
|
+
alignSelf?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
35
35
|
readonly property: "alignSelf";
|
|
36
36
|
}>;
|
|
37
|
-
containerType?: import("@codecademy/variance").Scale<{
|
|
37
|
+
containerType?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
38
38
|
readonly property: "containerType";
|
|
39
39
|
}>;
|
|
40
|
-
direction?: import("@codecademy/variance").Scale<{
|
|
40
|
+
direction?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
41
41
|
readonly property: "direction";
|
|
42
42
|
}>;
|
|
43
|
-
display?: import("@codecademy/variance").Scale<{
|
|
43
|
+
display?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
44
44
|
readonly property: "display";
|
|
45
45
|
}>;
|
|
46
|
-
flexBasis?: import("@codecademy/variance").Scale<{
|
|
46
|
+
flexBasis?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
47
47
|
readonly property: "flexBasis";
|
|
48
48
|
}>;
|
|
49
|
-
flexGrow?: import("@codecademy/variance").Scale<{
|
|
49
|
+
flexGrow?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
50
50
|
readonly property: "flexGrow";
|
|
51
51
|
}>;
|
|
52
|
-
flexShrink?: import("@codecademy/variance").Scale<{
|
|
52
|
+
flexShrink?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
53
53
|
readonly property: "flexShrink";
|
|
54
54
|
}>;
|
|
55
|
-
gridColumnEnd?: import("@codecademy/variance").Scale<{
|
|
55
|
+
gridColumnEnd?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
56
56
|
readonly property: "gridColumnEnd";
|
|
57
57
|
}>;
|
|
58
|
-
gridColumnStart?: import("@codecademy/variance").Scale<{
|
|
58
|
+
gridColumnStart?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
59
59
|
readonly property: "gridColumnStart";
|
|
60
60
|
}>;
|
|
61
|
-
gridRowEnd?: import("@codecademy/variance").Scale<{
|
|
61
|
+
gridRowEnd?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
62
62
|
readonly property: "gridRowEnd";
|
|
63
63
|
}>;
|
|
64
|
-
gridRowStart?: import("@codecademy/variance").Scale<{
|
|
64
|
+
gridRowStart?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
65
65
|
readonly property: "gridRowStart";
|
|
66
66
|
}>;
|
|
67
|
-
justifySelf?: import("@codecademy/variance").Scale<{
|
|
67
|
+
justifySelf?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
68
68
|
readonly property: "justifySelf";
|
|
69
69
|
}>;
|
|
70
|
-
maxHeight?: import("@codecademy/variance").Scale<{
|
|
70
|
+
maxHeight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
71
71
|
readonly property: {
|
|
72
72
|
readonly physical: "maxHeight";
|
|
73
73
|
readonly logical: "maxBlockSize";
|
|
@@ -75,7 +75,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
75
75
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
76
76
|
readonly transform: (value: string | number) => string | 0;
|
|
77
77
|
}>;
|
|
78
|
-
maxWidth?: import("@codecademy/variance").Scale<{
|
|
78
|
+
maxWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
79
79
|
readonly property: {
|
|
80
80
|
readonly physical: "maxWidth";
|
|
81
81
|
readonly logical: "maxInlineSize";
|
|
@@ -83,7 +83,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
83
83
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
84
84
|
readonly transform: (value: string | number) => string | 0;
|
|
85
85
|
}>;
|
|
86
|
-
minHeight?: import("@codecademy/variance").Scale<{
|
|
86
|
+
minHeight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
87
87
|
readonly property: {
|
|
88
88
|
readonly physical: "minHeight";
|
|
89
89
|
readonly logical: "minBlockSize";
|
|
@@ -91,7 +91,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
91
91
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
92
92
|
readonly transform: (value: string | number) => string | 0;
|
|
93
93
|
}>;
|
|
94
|
-
minWidth?: import("@codecademy/variance").Scale<{
|
|
94
|
+
minWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
95
95
|
readonly property: {
|
|
96
96
|
readonly physical: "minWidth";
|
|
97
97
|
readonly logical: "minInlineSize";
|
|
@@ -99,39 +99,39 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
99
99
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
100
100
|
readonly transform: (value: string | number) => string | 0;
|
|
101
101
|
}>;
|
|
102
|
-
order?: import("@codecademy/variance").Scale<{
|
|
102
|
+
order?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
103
103
|
readonly property: "order";
|
|
104
104
|
}>;
|
|
105
|
-
overflowX?: import("@codecademy/variance").Scale<{
|
|
105
|
+
overflowX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
106
106
|
readonly property: {
|
|
107
107
|
readonly physical: "overflowX";
|
|
108
108
|
readonly logical: "overflowInline";
|
|
109
109
|
};
|
|
110
110
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
111
111
|
}>;
|
|
112
|
-
overflowY?: import("@codecademy/variance").Scale<{
|
|
112
|
+
overflowY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
113
113
|
readonly property: {
|
|
114
114
|
readonly physical: "overflowY";
|
|
115
115
|
readonly logical: "overflowBlock";
|
|
116
116
|
};
|
|
117
117
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
118
118
|
}>;
|
|
119
|
-
verticalAlign?: import("@codecademy/variance").Scale<{
|
|
119
|
+
verticalAlign?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
120
120
|
readonly property: "verticalAlign";
|
|
121
121
|
}>;
|
|
122
|
-
gridArea?: import("@codecademy/variance").Scale<{
|
|
122
|
+
gridArea?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
123
123
|
readonly property: "gridArea";
|
|
124
124
|
}>;
|
|
125
|
-
gridColumn?: import("@codecademy/variance").Scale<{
|
|
125
|
+
gridColumn?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
126
126
|
readonly property: "gridColumn";
|
|
127
127
|
}>;
|
|
128
|
-
gridRow?: import("@codecademy/variance").Scale<{
|
|
128
|
+
gridRow?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
129
129
|
readonly property: "gridRow";
|
|
130
130
|
}>;
|
|
131
|
-
overflow?: import("@codecademy/variance").Scale<{
|
|
131
|
+
overflow?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
132
132
|
readonly property: "overflow";
|
|
133
133
|
}>;
|
|
134
|
-
px?: import("@codecademy/variance").Scale<{
|
|
134
|
+
px?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
135
135
|
readonly property: "padding";
|
|
136
136
|
readonly properties: {
|
|
137
137
|
readonly physical: readonly ["paddingLeft", "paddingRight"];
|
|
@@ -140,7 +140,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
140
140
|
readonly scale: "spacing";
|
|
141
141
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
142
142
|
}>;
|
|
143
|
-
py?: import("@codecademy/variance").Scale<{
|
|
143
|
+
py?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
144
144
|
readonly property: "padding";
|
|
145
145
|
readonly properties: {
|
|
146
146
|
readonly physical: readonly ["paddingTop", "paddingBottom"];
|
|
@@ -149,7 +149,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
149
149
|
readonly scale: "spacing";
|
|
150
150
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
151
151
|
}>;
|
|
152
|
-
pt?: import("@codecademy/variance").Scale<{
|
|
152
|
+
pt?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
153
153
|
readonly property: {
|
|
154
154
|
readonly physical: "paddingTop";
|
|
155
155
|
readonly logical: "paddingBlockStart";
|
|
@@ -157,7 +157,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
157
157
|
readonly scale: "spacing";
|
|
158
158
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
159
159
|
}>;
|
|
160
|
-
pb?: import("@codecademy/variance").Scale<{
|
|
160
|
+
pb?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
161
161
|
readonly property: {
|
|
162
162
|
readonly physical: "paddingBottom";
|
|
163
163
|
readonly logical: "paddingBlockEnd";
|
|
@@ -165,7 +165,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
165
165
|
readonly scale: "spacing";
|
|
166
166
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
167
167
|
}>;
|
|
168
|
-
pr?: import("@codecademy/variance").Scale<{
|
|
168
|
+
pr?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
169
169
|
readonly property: {
|
|
170
170
|
readonly physical: "paddingRight";
|
|
171
171
|
readonly logical: "paddingInlineEnd";
|
|
@@ -173,7 +173,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
173
173
|
readonly scale: "spacing";
|
|
174
174
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
175
175
|
}>;
|
|
176
|
-
pl?: import("@codecademy/variance").Scale<{
|
|
176
|
+
pl?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
177
177
|
readonly property: {
|
|
178
178
|
readonly physical: "paddingLeft";
|
|
179
179
|
readonly logical: "paddingInlineStart";
|
|
@@ -181,7 +181,7 @@ export declare const ModalContainer: import("@emotion/styled").StyledComponent<O
|
|
|
181
181
|
readonly scale: "spacing";
|
|
182
182
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
183
183
|
}>;
|
|
184
|
-
dimensions?: import("@codecademy/variance").Scale<{
|
|
184
|
+
dimensions?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
185
185
|
readonly property: "width";
|
|
186
186
|
readonly properties: {
|
|
187
187
|
readonly physical: readonly ["width", "height"];
|