@codecademy/gamut 68.6.1-alpha.f6b2ce.0 → 68.6.2-alpha.1fc7ca.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/Modals/elements.d.ts +186 -1
- package/dist/Modals/elements.js +3 -3
- package/dist/{InternalFloatingCard/InternalFloatingCard.d.ts → PatternBackdrop/PatternBackdrop.d.ts} +8 -24
- package/dist/PatternBackdrop/PatternBackdrop.js +42 -0
- package/dist/Toast/Toast.js +4 -4
- package/package.json +8 -11
- package/agent-tools/.claude-plugin/marketplace.json +0 -16
- package/agent-tools/.claude-plugin/plugin.json +0 -7
- package/agent-tools/.cursor-plugin/plugin.json +0 -7
- package/agent-tools/DESIGN.Codecademy.md +0 -696
- package/agent-tools/DESIGN.LXStudio.md +0 -512
- package/agent-tools/DESIGN.Percipio.md +0 -513
- package/agent-tools/DESIGN.md +0 -1
- package/agent-tools/agents/.gitkeep +0 -0
- package/agent-tools/commands/gamut-review.md +0 -259
- package/agent-tools/guidelines/components/animations.md +0 -74
- package/agent-tools/guidelines/components/buttons.md +0 -95
- package/agent-tools/guidelines/components/card.md +0 -19
- package/agent-tools/guidelines/components/coachmark.md +0 -21
- package/agent-tools/guidelines/components/data-table.md +0 -79
- package/agent-tools/guidelines/components/forms.md +0 -106
- package/agent-tools/guidelines/components/loading-states.md +0 -17
- package/agent-tools/guidelines/components/menu.md +0 -58
- package/agent-tools/guidelines/components/overview.md +0 -124
- package/agent-tools/guidelines/components/radial-progress.md +0 -13
- package/agent-tools/guidelines/components/select.md +0 -23
- package/agent-tools/guidelines/components/tooltips.md +0 -22
- package/agent-tools/guidelines/components/video.md +0 -29
- package/agent-tools/guidelines/foundations/color.md +0 -168
- package/agent-tools/guidelines/foundations/modes.md +0 -69
- package/agent-tools/guidelines/foundations/spacing.md +0 -107
- package/agent-tools/guidelines/foundations/typography.md +0 -82
- package/agent-tools/guidelines/overview-icons.md +0 -19
- package/agent-tools/guidelines/overview-illustrations.md +0 -7
- package/agent-tools/guidelines/overview-patterns.md +0 -7
- package/agent-tools/guidelines/overview.md +0 -84
- package/agent-tools/guidelines/setup.md +0 -83
- package/agent-tools/rules/accessibility.mdc +0 -78
- package/agent-tools/skills/gamut-accessibility/SKILL.md +0 -224
- package/agent-tools/skills/gamut-color-mode/SKILL.md +0 -149
- package/agent-tools/skills/gamut-components/SKILL.md +0 -46
- package/agent-tools/skills/gamut-forms/SKILL.md +0 -101
- package/agent-tools/skills/gamut-style-utilities/SKILL.md +0 -111
- package/agent-tools/skills/gamut-system-props/SKILL.md +0 -225
- package/agent-tools/skills/gamut-testing/SKILL.md +0 -225
- package/agent-tools/skills/gamut-theming/SKILL.md +0 -63
- package/agent-tools/skills/gamut-typography/SKILL.md +0 -79
- package/bin/commands/plugin/install.mjs +0 -213
- package/bin/commands/plugin/list.mjs +0 -73
- package/bin/commands/plugin/remove.mjs +0 -108
- package/bin/commands/plugin/update.mjs +0 -59
- package/bin/gamut.mjs +0 -96
- package/bin/lib/claude.mjs +0 -52
- package/bin/lib/cursor.mjs +0 -40
- package/bin/lib/design.mjs +0 -71
- package/bin/lib/io.mjs +0 -14
- package/bin/lib/resolve-plugin-dir.mjs +0 -38
- package/bin/lib/run-command.mjs +0 -22
- package/dist/InternalFloatingCard/InternalFloatingCard.js +0 -98
|
@@ -7,7 +7,192 @@ declare const layoutVariant: (props: import("@codecademy/variance/dist/types/con
|
|
|
7
7
|
}) => import("@codecademy/variance").CSSObject;
|
|
8
8
|
export interface ModalContainerProps extends StyleProps<typeof sizeVariant>, StyleProps<typeof layoutVariant> {
|
|
9
9
|
}
|
|
10
|
-
export declare const ModalContainer: import("@emotion/styled").StyledComponent<Omit<
|
|
10
|
+
export declare const ModalContainer: import("@emotion/styled").StyledComponent<Omit<{
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
} & {
|
|
14
|
+
p?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
15
|
+
readonly property: "padding";
|
|
16
|
+
readonly scale: "spacing";
|
|
17
|
+
}>;
|
|
18
|
+
height?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
19
|
+
readonly property: {
|
|
20
|
+
readonly physical: "height";
|
|
21
|
+
readonly logical: "blockSize";
|
|
22
|
+
};
|
|
23
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
24
|
+
readonly transform: (value: string | number) => string | 0;
|
|
25
|
+
}>;
|
|
26
|
+
width?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
27
|
+
readonly property: {
|
|
28
|
+
readonly physical: "width";
|
|
29
|
+
readonly logical: "inlineSize";
|
|
30
|
+
};
|
|
31
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
32
|
+
readonly transform: (value: string | number) => string | 0;
|
|
33
|
+
}>;
|
|
34
|
+
alignSelf?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
35
|
+
readonly property: "alignSelf";
|
|
36
|
+
}>;
|
|
37
|
+
containerType?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
38
|
+
readonly property: "containerType";
|
|
39
|
+
}>;
|
|
40
|
+
direction?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
41
|
+
readonly property: "direction";
|
|
42
|
+
}>;
|
|
43
|
+
display?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
44
|
+
readonly property: "display";
|
|
45
|
+
}>;
|
|
46
|
+
flexBasis?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
47
|
+
readonly property: "flexBasis";
|
|
48
|
+
}>;
|
|
49
|
+
flexGrow?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
50
|
+
readonly property: "flexGrow";
|
|
51
|
+
}>;
|
|
52
|
+
flexShrink?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
53
|
+
readonly property: "flexShrink";
|
|
54
|
+
}>;
|
|
55
|
+
gridColumnEnd?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
56
|
+
readonly property: "gridColumnEnd";
|
|
57
|
+
}>;
|
|
58
|
+
gridColumnStart?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
59
|
+
readonly property: "gridColumnStart";
|
|
60
|
+
}>;
|
|
61
|
+
gridRowEnd?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
62
|
+
readonly property: "gridRowEnd";
|
|
63
|
+
}>;
|
|
64
|
+
gridRowStart?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
65
|
+
readonly property: "gridRowStart";
|
|
66
|
+
}>;
|
|
67
|
+
justifySelf?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
68
|
+
readonly property: "justifySelf";
|
|
69
|
+
}>;
|
|
70
|
+
maxHeight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
71
|
+
readonly property: {
|
|
72
|
+
readonly physical: "maxHeight";
|
|
73
|
+
readonly logical: "maxBlockSize";
|
|
74
|
+
};
|
|
75
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
76
|
+
readonly transform: (value: string | number) => string | 0;
|
|
77
|
+
}>;
|
|
78
|
+
maxWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
79
|
+
readonly property: {
|
|
80
|
+
readonly physical: "maxWidth";
|
|
81
|
+
readonly logical: "maxInlineSize";
|
|
82
|
+
};
|
|
83
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
84
|
+
readonly transform: (value: string | number) => string | 0;
|
|
85
|
+
}>;
|
|
86
|
+
minHeight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
87
|
+
readonly property: {
|
|
88
|
+
readonly physical: "minHeight";
|
|
89
|
+
readonly logical: "minBlockSize";
|
|
90
|
+
};
|
|
91
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
92
|
+
readonly transform: (value: string | number) => string | 0;
|
|
93
|
+
}>;
|
|
94
|
+
minWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
95
|
+
readonly property: {
|
|
96
|
+
readonly physical: "minWidth";
|
|
97
|
+
readonly logical: "minInlineSize";
|
|
98
|
+
};
|
|
99
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
100
|
+
readonly transform: (value: string | number) => string | 0;
|
|
101
|
+
}>;
|
|
102
|
+
order?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
103
|
+
readonly property: "order";
|
|
104
|
+
}>;
|
|
105
|
+
overflowX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
106
|
+
readonly property: {
|
|
107
|
+
readonly physical: "overflowX";
|
|
108
|
+
readonly logical: "overflowInline";
|
|
109
|
+
};
|
|
110
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
111
|
+
}>;
|
|
112
|
+
overflowY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
113
|
+
readonly property: {
|
|
114
|
+
readonly physical: "overflowY";
|
|
115
|
+
readonly logical: "overflowBlock";
|
|
116
|
+
};
|
|
117
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
118
|
+
}>;
|
|
119
|
+
verticalAlign?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
120
|
+
readonly property: "verticalAlign";
|
|
121
|
+
}>;
|
|
122
|
+
gridArea?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
123
|
+
readonly property: "gridArea";
|
|
124
|
+
}>;
|
|
125
|
+
gridColumn?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
126
|
+
readonly property: "gridColumn";
|
|
127
|
+
}>;
|
|
128
|
+
gridRow?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
129
|
+
readonly property: "gridRow";
|
|
130
|
+
}>;
|
|
131
|
+
overflow?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
132
|
+
readonly property: "overflow";
|
|
133
|
+
}>;
|
|
134
|
+
px?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
135
|
+
readonly property: "padding";
|
|
136
|
+
readonly properties: {
|
|
137
|
+
readonly physical: readonly ["paddingLeft", "paddingRight"];
|
|
138
|
+
readonly logical: readonly ["paddingInlineStart", "paddingInlineEnd"];
|
|
139
|
+
};
|
|
140
|
+
readonly scale: "spacing";
|
|
141
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
142
|
+
}>;
|
|
143
|
+
py?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
144
|
+
readonly property: "padding";
|
|
145
|
+
readonly properties: {
|
|
146
|
+
readonly physical: readonly ["paddingTop", "paddingBottom"];
|
|
147
|
+
readonly logical: readonly ["paddingBlockStart", "paddingBlockEnd"];
|
|
148
|
+
};
|
|
149
|
+
readonly scale: "spacing";
|
|
150
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
151
|
+
}>;
|
|
152
|
+
pt?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
153
|
+
readonly property: {
|
|
154
|
+
readonly physical: "paddingTop";
|
|
155
|
+
readonly logical: "paddingBlockStart";
|
|
156
|
+
};
|
|
157
|
+
readonly scale: "spacing";
|
|
158
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
159
|
+
}>;
|
|
160
|
+
pb?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
161
|
+
readonly property: {
|
|
162
|
+
readonly physical: "paddingBottom";
|
|
163
|
+
readonly logical: "paddingBlockEnd";
|
|
164
|
+
};
|
|
165
|
+
readonly scale: "spacing";
|
|
166
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
167
|
+
}>;
|
|
168
|
+
pr?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
169
|
+
readonly property: {
|
|
170
|
+
readonly physical: "paddingRight";
|
|
171
|
+
readonly logical: "paddingInlineEnd";
|
|
172
|
+
};
|
|
173
|
+
readonly scale: "spacing";
|
|
174
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
175
|
+
}>;
|
|
176
|
+
pl?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
177
|
+
readonly property: {
|
|
178
|
+
readonly physical: "paddingLeft";
|
|
179
|
+
readonly logical: "paddingInlineStart";
|
|
180
|
+
};
|
|
181
|
+
readonly scale: "spacing";
|
|
182
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
183
|
+
}>;
|
|
184
|
+
dimensions?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
185
|
+
readonly property: "width";
|
|
186
|
+
readonly properties: {
|
|
187
|
+
readonly physical: readonly ["width", "height"];
|
|
188
|
+
readonly logical: readonly ["inlineSize", "blockSize"];
|
|
189
|
+
};
|
|
190
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
191
|
+
readonly transform: (value: string | number) => string | 0;
|
|
192
|
+
}>;
|
|
193
|
+
} & {
|
|
194
|
+
theme?: import("@emotion/react").Theme;
|
|
195
|
+
} & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | keyof import("react").ClassAttributes<HTMLDivElement> | "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">, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
11
196
|
theme?: import("@emotion/react").Theme;
|
|
12
197
|
} & ModalContainerProps, {}, {}>;
|
|
13
198
|
export {};
|
package/dist/Modals/elements.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
import { variant } from '@codecademy/gamut-styles';
|
|
3
|
-
import {
|
|
3
|
+
import { PatternBackdrop } from '../PatternBackdrop/PatternBackdrop';
|
|
4
4
|
import { focusVisibleStyle } from '../utils';
|
|
5
5
|
const modalFocusVisibleStyle = focusVisibleStyle();
|
|
6
6
|
const sizeVariant = variant({
|
|
@@ -53,7 +53,7 @@ const layoutVariant = variant({
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
export const ModalContainer = /*#__PURE__*/_styled(
|
|
56
|
+
export const ModalContainer = /*#__PURE__*/_styled(PatternBackdrop, {
|
|
57
57
|
target: "e1phvfxv0",
|
|
58
58
|
label: "ModalContainer"
|
|
59
|
-
})(sizeVariant, layoutVariant, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
59
|
+
})(sizeVariant, layoutVariant, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Nb2RhbHMvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EOEIiLCJmaWxlI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l19 */");
|
package/dist/{InternalFloatingCard/InternalFloatingCard.d.ts → PatternBackdrop/PatternBackdrop.d.ts}
RENAMED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const
|
|
1
|
+
/**
|
|
2
|
+
* Internal bordered surface with a bottom-left checker pattern offset.
|
|
3
|
+
* Composed via `styled(PatternBackdrop)` by Toast and Modal; not exported — use those or `Card`.
|
|
4
|
+
*/
|
|
5
|
+
export declare const PatternBackdrop: import("react").ForwardRefExoticComponent<Omit<{
|
|
6
6
|
theme?: import("@emotion/react").Theme;
|
|
7
7
|
as?: React.ElementType;
|
|
8
|
-
} & import("@codecademy/variance/dist/types/config").VariantProps<"beak", false | "bottom-left" | "bottom-right" | "top-left" | "top-right"> & {
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
8
|
} & {
|
|
11
9
|
p?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
12
10
|
readonly property: "padding";
|
|
@@ -187,20 +185,6 @@ declare const CardBody: import("@emotion/styled").StyledComponent<{
|
|
|
187
185
|
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
188
186
|
readonly transform: (value: string | number) => string | 0;
|
|
189
187
|
}>;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
};
|
|
194
|
-
export type InternalFloatingCardProps = {
|
|
195
|
-
className?: string;
|
|
196
|
-
pattern?: React.ComponentType<PatternProps>;
|
|
197
|
-
shadow?: 'bottomLeft' | 'bottomRight';
|
|
198
|
-
} & ComponentProps<typeof CardBody>;
|
|
199
|
-
export type InternalFloatingCardWithWrapper = InternalFloatingCardProps & InternalFloatingCardWrapper;
|
|
200
|
-
/**
|
|
201
|
-
* @deprecated
|
|
202
|
-
* This component is strictly for internal Gamut usage.
|
|
203
|
-
* Please use the `Card` component instead.
|
|
204
|
-
*/
|
|
205
|
-
export declare const InternalFloatingCard: React.ForwardRefExoticComponent<Omit<InternalFloatingCardWithWrapper, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
206
|
-
export {};
|
|
188
|
+
} & {
|
|
189
|
+
theme?: import("@emotion/react").Theme;
|
|
190
|
+
} & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | keyof import("react").ClassAttributes<HTMLDivElement> | "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">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
import { CheckerDense } from '@codecademy/gamut-patterns';
|
|
4
|
+
import { styledOptions, system } from '@codecademy/gamut-styles';
|
|
5
|
+
import { variance } from '@codecademy/variance';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { Box } from '../Box';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const backdropBodyProps = variance.compose(system.layout, system.padding);
|
|
10
|
+
const PatternBackdropBody = /*#__PURE__*/_styled('div', _extends({}, {
|
|
11
|
+
target: "ezdf3zh0",
|
|
12
|
+
label: "PatternBackdropBody"
|
|
13
|
+
}, styledOptions))(system.css({
|
|
14
|
+
position: 'relative',
|
|
15
|
+
zIndex: 1,
|
|
16
|
+
bg: 'background',
|
|
17
|
+
border: 1,
|
|
18
|
+
maxWidth: 1
|
|
19
|
+
}), backdropBodyProps, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9QYXR0ZXJuQmFja2Ryb3AvUGF0dGVybkJhY2tkcm9wLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVNEIiLCJmaWxlIjoiLi4vLi4vc3JjL1BhdHRlcm5CYWNrZHJvcC9QYXR0ZXJuQmFja2Ryb3AudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2hlY2tlckRlbnNlIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtcGF0dGVybnMnO1xuaW1wb3J0IHsgc3R5bGVkT3B0aW9ucywgc3lzdGVtIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtc3R5bGVzJztcbmltcG9ydCB7IFN0eWxlUHJvcHMsIHZhcmlhbmNlIH0gZnJvbSAnQGNvZGVjYWRlbXkvdmFyaWFuY2UnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgQ29tcG9uZW50UHJvcHMsIGZvcndhcmRSZWYgfSBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IEJveCB9IGZyb20gJy4uL0JveCc7XG5cbmNvbnN0IGJhY2tkcm9wQm9keVByb3BzID0gdmFyaWFuY2UuY29tcG9zZShzeXN0ZW0ubGF5b3V0LCBzeXN0ZW0ucGFkZG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gcG9zaXRpb249XCJhYnNvbHV0ZVwiXG4gICAgICAgIHRvcD1cIjAuNXJlbVwiXG4gICAgICAvPlxuICAgICAgPFBhdHRlcm5CYWNrZHJvcEJvZHkgey4uLnJlc3R9IHJlZj17cmVmfT5cbiAgICAgICAge2NoaWxkcmVufVxuICAgICAgPC9QYXR0ZXJuQmFja2Ryb3BCb2R5PlxuICAgIDwvQm94PlxuICApXG4pO1xuIl19 */");
|
|
20
|
+
/**
|
|
21
|
+
* Internal bordered surface with a bottom-left checker pattern offset.
|
|
22
|
+
* Composed via `styled(PatternBackdrop)` by Toast and Modal; not exported — use those or `Card`.
|
|
23
|
+
*/
|
|
24
|
+
export const PatternBackdrop = /*#__PURE__*/forwardRef(({
|
|
25
|
+
children,
|
|
26
|
+
...rest
|
|
27
|
+
}, ref) => /*#__PURE__*/_jsxs(Box, {
|
|
28
|
+
display: "inline-block",
|
|
29
|
+
maxWidth: "100%",
|
|
30
|
+
position: "relative",
|
|
31
|
+
zIndex: 1,
|
|
32
|
+
children: [/*#__PURE__*/_jsx(CheckerDense, {
|
|
33
|
+
dimensions: 1,
|
|
34
|
+
left: "-0.5rem",
|
|
35
|
+
position: "absolute",
|
|
36
|
+
top: "0.5rem"
|
|
37
|
+
}), /*#__PURE__*/_jsx(PatternBackdropBody, {
|
|
38
|
+
...rest,
|
|
39
|
+
ref: ref,
|
|
40
|
+
children: children
|
|
41
|
+
})]
|
|
42
|
+
}));
|
package/dist/Toast/Toast.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useMemo } from 'react';
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { Box, FlexBox } from '../Box';
|
|
7
7
|
import { IconButton } from '../Button/IconButton';
|
|
8
|
-
import {
|
|
8
|
+
import { PatternBackdrop } from '../PatternBackdrop/PatternBackdrop';
|
|
9
9
|
import { Text } from '../Typography';
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
const layoutVariants = system.variant({
|
|
@@ -26,7 +26,7 @@ const layoutVariants = system.variant({
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
const ToastContainer = /*#__PURE__*/_styled(
|
|
29
|
+
const ToastContainer = /*#__PURE__*/_styled(PatternBackdrop, {
|
|
30
30
|
target: "evqdr6g1",
|
|
31
31
|
label: "ToastContainer"
|
|
32
32
|
})(system.css({
|
|
@@ -37,7 +37,7 @@ const ToastContainer = /*#__PURE__*/_styled(InternalFloatingCard, {
|
|
|
37
37
|
pr: 12,
|
|
38
38
|
columnGap: 12,
|
|
39
39
|
gridTemplateColumns: '4rem 1fr 2rem'
|
|
40
|
-
}), layoutVariants, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
40
|
+
}), layoutVariants, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Ub2FzdC9Ub2FzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0N1QiIsImZpbGUiOiIuLi8uLi9zcmMvVG9hc3QvVG9hc3QudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWluaURlbGV0ZUljb24gfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1pY29ucyc7XG5pbXBvcnQgeyBzeXN0ZW0gfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHsgU3R5bGVQcm9wcyB9IGZyb20gJ0Bjb2RlY2FkZW15L3ZhcmlhbmNlJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IFJlYWN0Tm9kZSwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHsg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yaW5nJykge1xuICAgICAgcmV0dXJuIChcbiAgICAgICAgPEljb25Db250YWluZXJcbiAgICAgICAgICBiYWNrZ3JvdW5kSW1hZ2U9e2B1cmwoJHtpY29ufSlgfVxuICAgICAgICAgIGJvcmRlclJhZGl1cz1cImZ1bGxcIlxuICAgICAgICAgIGdyaWRBcmVhPVwiaWNvblwiXG4gICAgICAgIC8+XG4gICAgICApO1xuICAgIH1cbiAgICByZXR1cm4gKFxuICAgICAgPEljb25Db250YWluZXIgY2VudGVyIGdyaWRBcmVhPVwiaWNvblwiPlxuICAgICAgICB7aWNvbn1cbiAgICAgIDwvSWNvbkNvbnRhaW5lcj5cbiAgICApO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPFRvYXN0Q29udGFpbmVyIGFyaWEtbGl2ZT1cInBvbGl0ZVwiIGxheW91dD17bGF5b3V0VHlwZX0gcm9sZT1cInN0YXR1c1wiPlxuICAgICAge3JlbmRlckljb24oKX1cbiAgICAgIDxCb3ggZ3JpZEFyZWE9XCJtZXNzYWdlXCIgcHk9ezR9PlxuICAgICAgICB7dGl0bGUgJiYgKFxuICAgICAgICAgIDxUZXh0IGZvbnRXZWlnaHQ9XCJ0aXRsZVwiIG1iPXs0fSB2YXJpYW50PVwicC1iYXNlXCI+XG4gICAgICAgICAgICB7dGl0bGV9XG4gICAgICAgICAgPC9UZXh0PlxuICAgICAgICApfVxuICAgICAgICA8VGV4dCBhcz1cImRpdlwiIHZhcmlhbnQ9XCJwLXNtYWxsXCI+XG4gICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICA8L1RleHQ+XG4gICAgICA8L0JveD5cbiAgICAgIDxJY29uQnV0dG9uXG4gICAgICAgIGFsaWduU2VsZj1cInN0YXJ0XCJcbiAgICAgICAgaWNvbj17TWluaURlbGV0ZUljb259XG4gICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgIHRpcD1cIkRpc21pc3MgVG9hc3RcIlxuICAgICAgICB0aXBQcm9wcz17eyBwbGFjZW1lbnQ6ICdmbG9hdGluZycgfX1cbiAgICAgICAgdmFyaWFudD1cInNlY29uZGFyeVwiXG4gICAgICAgIG9uQ2xpY2s9e29uQ2xvc2V9XG4gICAgICAvPlxuICAgIDwvVG9hc3RDb250YWluZXI+XG4gICk7XG59O1xuIl19 */");
|
|
41
41
|
const IconContainer = /*#__PURE__*/_styled(FlexBox, {
|
|
42
42
|
target: "evqdr6g0",
|
|
43
43
|
label: "IconContainer"
|
|
@@ -47,7 +47,7 @@ const IconContainer = /*#__PURE__*/_styled(FlexBox, {
|
|
|
47
47
|
height: 64,
|
|
48
48
|
gridArea: 'icon',
|
|
49
49
|
backgroundSize: 'contain'
|
|
50
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
50
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Ub2FzdC9Ub2FzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0NzQiIsImZpbGUiOiIuLi8uLi9zcmMvVG9hc3QvVG9hc3QudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWluaURlbGV0ZUljb24gfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1pY29ucyc7XG5pbXBvcnQgeyBzeXN0ZW0gfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHsgU3R5bGVQcm9wcyB9IGZyb20gJ0Bjb2RlY2FkZW15L3ZhcmlhbmNlJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IFJlYWN0Tm9kZSwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHsg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yaW5nJykge1xuICAgICAgcmV0dXJuIChcbiAgICAgICAgPEljb25Db250YWluZXJcbiAgICAgICAgICBiYWNrZ3JvdW5kSW1hZ2U9e2B1cmwoJHtpY29ufSlgfVxuICAgICAgICAgIGJvcmRlclJhZGl1cz1cImZ1bGxcIlxuICAgICAgICAgIGdyaWRBcmVhPVwiaWNvblwiXG4gICAgICAgIC8+XG4gICAgICApO1xuICAgIH1cbiAgICByZXR1cm4gKFxuICAgICAgPEljb25Db250YWluZXIgY2VudGVyIGdyaWRBcmVhPVwiaWNvblwiPlxuICAgICAgICB7aWNvbn1cbiAgICAgIDwvSWNvbkNvbnRhaW5lcj5cbiAgICApO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPFRvYXN0Q29udGFpbmVyIGFyaWEtbGl2ZT1cInBvbGl0ZVwiIGxheW91dD17bGF5b3V0VHlwZX0gcm9sZT1cInN0YXR1c1wiPlxuICAgICAge3JlbmRlckljb24oKX1cbiAgICAgIDxCb3ggZ3JpZEFyZWE9XCJtZXNzYWdlXCIgcHk9ezR9PlxuICAgICAgICB7dGl0bGUgJiYgKFxuICAgICAgICAgIDxUZXh0IGZvbnRXZWlnaHQ9XCJ0aXRsZVwiIG1iPXs0fSB2YXJpYW50PVwicC1iYXNlXCI+XG4gICAgICAgICAgICB7dGl0bGV9XG4gICAgICAgICAgPC9UZXh0PlxuICAgICAgICApfVxuICAgICAgICA8VGV4dCBhcz1cImRpdlwiIHZhcmlhbnQ9XCJwLXNtYWxsXCI+XG4gICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICA8L1RleHQ+XG4gICAgICA8L0JveD5cbiAgICAgIDxJY29uQnV0dG9uXG4gICAgICAgIGFsaWduU2VsZj1cInN0YXJ0XCJcbiAgICAgICAgaWNvbj17TWluaURlbGV0ZUljb259XG4gICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgIHRpcD1cIkRpc21pc3MgVG9hc3RcIlxuICAgICAgICB0aXBQcm9wcz17eyBwbGFjZW1lbnQ6ICdmbG9hdGluZycgfX1cbiAgICAgICAgdmFyaWFudD1cInNlY29uZGFyeVwiXG4gICAgICAgIG9uQ2xpY2s9e29uQ2xvc2V9XG4gICAgICAvPlxuICAgIDwvVG9hc3RDb250YWluZXI+XG4gICk7XG59O1xuIl19 */");
|
|
51
51
|
export const Toast = ({
|
|
52
52
|
title,
|
|
53
53
|
children,
|
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut",
|
|
3
3
|
"description": "Styleguide & Component library for Codecademy",
|
|
4
|
-
"version": "68.6.
|
|
4
|
+
"version": "68.6.2-alpha.1fc7ca.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
|
-
"bin": "./bin/gamut.mjs",
|
|
7
6
|
"dependencies": {
|
|
8
|
-
"@codecademy/gamut-icons": "9.57.6-alpha.
|
|
9
|
-
"@codecademy/gamut-illustrations": "0.58.12-alpha.
|
|
10
|
-
"@codecademy/gamut-patterns": "0.10.31-alpha.
|
|
11
|
-
"@codecademy/gamut-styles": "18.0.1-alpha.
|
|
12
|
-
"@codecademy/variance": "0.26.2-alpha.
|
|
7
|
+
"@codecademy/gamut-icons": "9.57.6-alpha.1fc7ca.0",
|
|
8
|
+
"@codecademy/gamut-illustrations": "0.58.12-alpha.1fc7ca.0",
|
|
9
|
+
"@codecademy/gamut-patterns": "0.10.31-alpha.1fc7ca.0",
|
|
10
|
+
"@codecademy/gamut-styles": "18.0.1-alpha.1fc7ca.0",
|
|
11
|
+
"@codecademy/variance": "0.26.2-alpha.1fc7ca.0",
|
|
13
12
|
"@formatjs/intl-locale": "5.3.1",
|
|
14
13
|
"@react-aria/interactions": "3.25.0",
|
|
15
14
|
"@types/marked": "^4.0.8",
|
|
@@ -31,9 +30,7 @@
|
|
|
31
30
|
"sanitize-markdown": "^2.6.7"
|
|
32
31
|
},
|
|
33
32
|
"files": [
|
|
34
|
-
"dist"
|
|
35
|
-
"bin",
|
|
36
|
-
"agent-tools"
|
|
33
|
+
"dist"
|
|
37
34
|
],
|
|
38
35
|
"license": "MIT",
|
|
39
36
|
"main": "./dist/index.js",
|
|
@@ -55,7 +52,7 @@
|
|
|
55
52
|
"build": "nx build @codecademy/gamut",
|
|
56
53
|
"build:watch": "yarn build && onchange ./src -- yarn build",
|
|
57
54
|
"compile": "babel ./src --out-dir ./dist --extensions \".ts,.tsx\"",
|
|
58
|
-
"verify": "tsc --noEmit
|
|
55
|
+
"verify": "tsc --noEmit"
|
|
59
56
|
},
|
|
60
57
|
"sideEffects": [
|
|
61
58
|
"**/*.css",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gamut-design-system",
|
|
3
|
-
"owner": {
|
|
4
|
-
"name": "Codecademy"
|
|
5
|
-
},
|
|
6
|
-
"metadata": {
|
|
7
|
-
"description": "Local marketplace for @codecademy/gamut agent tools."
|
|
8
|
-
},
|
|
9
|
-
"plugins": [
|
|
10
|
-
{
|
|
11
|
-
"name": "gamut-design-system",
|
|
12
|
-
"source": "./",
|
|
13
|
-
"description": "Gamut design system agent tools: skills and rules for AI-assisted development."
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gamut-design-system",
|
|
3
|
-
"displayName": "Gamut Design System",
|
|
4
|
-
"version": "0.0.1",
|
|
5
|
-
"description": "Gamut design system agent tools: skills, rules, and guidelines for AI-assisted development.",
|
|
6
|
-
"keywords": ["codecademy", "gamut", "design-system", "agent-skills"]
|
|
7
|
-
}
|