braid-design-system 34.8.2 → 34.9.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/CHANGELOG.md +50 -0
- package/dist/color-mode/query-param.d.cts +1 -1
- package/dist/color-mode/query-param.d.mts +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +3 -2
- package/dist/lib/components/Avatar/Avatar.cjs +213 -0
- package/dist/lib/components/Avatar/Avatar.css.cjs +31 -0
- package/dist/lib/components/Avatar/Avatar.css.d.cts +4 -0
- package/dist/lib/components/Avatar/Avatar.css.d.mts +4 -0
- package/dist/lib/components/Avatar/Avatar.css.mjs +29 -0
- package/dist/lib/components/Avatar/Avatar.d.cts +21 -0
- package/dist/lib/components/Avatar/Avatar.d.mts +21 -0
- package/dist/lib/components/Avatar/Avatar.mjs +211 -0
- package/dist/lib/components/Avatar/Avatar.playroom.cjs +14 -0
- package/dist/lib/components/Avatar/Avatar.playroom.d.cts +8 -0
- package/dist/lib/components/Avatar/Avatar.playroom.d.mts +8 -0
- package/dist/lib/components/Avatar/Avatar.playroom.mjs +14 -0
- package/dist/lib/components/Drawer/Drawer.cjs +26 -0
- package/dist/lib/components/Drawer/Drawer.d.cts +15 -4
- package/dist/lib/components/Drawer/Drawer.d.mts +15 -4
- package/dist/lib/components/Drawer/Drawer.mjs +25 -0
- package/dist/lib/components/Heading/Heading.cjs +2 -1
- package/dist/lib/components/Heading/Heading.mjs +3 -2
- package/dist/lib/components/List/List.cjs +16 -16
- package/dist/lib/components/List/List.mjs +16 -16
- package/dist/lib/components/Rating/Rating.cjs +48 -20
- package/dist/lib/components/Rating/Rating.css.cjs +34 -0
- package/dist/lib/components/Rating/Rating.css.mjs +31 -1
- package/dist/lib/components/Rating/Rating.d.cts +11 -2
- package/dist/lib/components/Rating/Rating.d.mts +11 -2
- package/dist/lib/components/Rating/Rating.mjs +50 -22
- package/dist/lib/components/Text/Text.cjs +2 -1
- package/dist/lib/components/Text/Text.mjs +2 -1
- package/dist/lib/components/index.d.cts +2 -1
- package/dist/lib/components/index.d.mts +2 -1
- package/dist/lib/components/private/InlineField/StyledInput.cjs +3 -4
- package/dist/lib/components/private/InlineField/StyledInput.mjs +3 -4
- package/dist/lib/components/private/Modal/Modal.cjs +6 -2
- package/dist/lib/components/private/Modal/Modal.mjs +6 -2
- package/dist/lib/components/private/Modal/ModalContent.cjs +104 -71
- package/dist/lib/components/private/Modal/ModalContent.mjs +104 -71
- package/dist/lib/components/private/Skeleton/Skeleton.cjs +14 -0
- package/dist/lib/components/private/Skeleton/Skeleton.css.cjs +25 -0
- package/dist/lib/components/private/Skeleton/Skeleton.css.mjs +25 -0
- package/dist/lib/components/private/Skeleton/Skeleton.mjs +14 -0
- package/dist/lib/css/atoms/sprinkles.css.d.cts +1 -1
- package/dist/lib/css/atoms/sprinkles.css.d.mts +1 -1
- package/dist/lib/css/typography.css.cjs +12 -0
- package/dist/lib/css/typography.css.mjs +12 -2
- package/dist/lib/playroom/components.cjs +2 -0
- package/dist/lib/playroom/components.d.cts +2 -1
- package/dist/lib/playroom/components.d.mts +2 -1
- package/dist/lib/playroom/components.mjs +2 -1
- package/dist/lib/playroom/snippets/Avatar.cjs +41 -0
- package/dist/lib/playroom/snippets/Avatar.mjs +41 -0
- package/dist/lib/playroom/snippets/CardList.cjs +1 -1
- package/dist/lib/playroom/snippets/CardList.mjs +1 -1
- package/dist/lib/playroom/snippets.cjs +2 -10
- package/dist/lib/playroom/snippets.mjs +94 -102
- package/dist/lib/themes/docs/tokens.cjs +4 -4
- package/dist/lib/themes/docs/tokens.mjs +4 -4
- package/dist/lib/themes/wireframe/tokens.cjs +1 -1
- package/dist/lib/themes/wireframe/tokens.mjs +1 -1
- package/dist/node_modules/.pnpm/{@capsizecss_metrics@4.2.0 → @capsizecss_metrics@4.3.0}/node_modules/@capsizecss/metrics/entireMetricsCollection/appleSystem/index.cjs +1 -1
- package/dist/node_modules/.pnpm/{@capsizecss_metrics@4.2.0 → @capsizecss_metrics@4.3.0}/node_modules/@capsizecss/metrics/entireMetricsCollection/appleSystem/index.mjs +1 -1
- package/dist/node_modules/.pnpm/{@capsizecss_metrics@4.2.0 → @capsizecss_metrics@4.3.0}/node_modules/@capsizecss/metrics/entireMetricsCollection/courierNew/index.cjs +1 -1
- package/dist/node_modules/.pnpm/{@capsizecss_metrics@4.2.0 → @capsizecss_metrics@4.3.0}/node_modules/@capsizecss/metrics/entireMetricsCollection/courierNew/index.mjs +1 -1
- package/dist/playroom/components.cjs +2 -0
- package/dist/playroom/components.d.cts +2 -1
- package/dist/playroom/components.d.mts +2 -1
- package/dist/playroom/components.mjs +2 -1
- package/package.json +3 -3
- package/dist/lib/playroom/snippets/DividedList.cjs +0 -8
- package/dist/lib/playroom/snippets/DividedList.mjs +0 -8
- package/dist/lib/playroom/snippets/Form.cjs +0 -12
- package/dist/lib/playroom/snippets/Form.mjs +0 -12
- package/dist/lib/playroom/snippets/SteppedSection.cjs +0 -8
- package/dist/lib/playroom/snippets/SteppedSection.mjs +0 -8
- package/dist/lib/playroom/snippets/TabbedSection.cjs +0 -8
- package/dist/lib/playroom/snippets/TabbedSection.mjs +0 -8
- package/dist/lib/playroom/snippets/TableSection.cjs +0 -8
- package/dist/lib/playroom/snippets/TableSection.mjs +0 -8
|
@@ -3,11 +3,13 @@ import buildDataAttributes_default from "../buildDataAttributes.mjs";
|
|
|
3
3
|
import { Box } from "../../Box/Box.mjs";
|
|
4
4
|
import { Stack } from "../../Stack/Stack.mjs";
|
|
5
5
|
import { useFallbackId } from "../../../hooks/useFallbackId.mjs";
|
|
6
|
+
import { iconSize } from "../../../hooks/useIcon/index.mjs";
|
|
6
7
|
import { IconClear } from "../../icons/IconClear/IconClear.mjs";
|
|
7
8
|
import { Column } from "../../Column/Column.mjs";
|
|
8
9
|
import { Columns } from "../../Columns/Columns.mjs";
|
|
9
10
|
import { Bleed } from "../../Bleed/Bleed.mjs";
|
|
10
11
|
import { ButtonIcon } from "../../ButtonIcon/ButtonIcon.mjs";
|
|
12
|
+
import { HiddenVisually } from "../../HiddenVisually/HiddenVisually.mjs";
|
|
11
13
|
import { normalizeKey } from "../normalizeKey.mjs";
|
|
12
14
|
import { Heading } from "../../Heading/Heading.mjs";
|
|
13
15
|
import { pageBlockGutters } from "../../PageBlock/pageBlockGutters.mjs";
|
|
@@ -22,6 +24,7 @@ const modalPadding = {
|
|
|
22
24
|
mobile: "gutter",
|
|
23
25
|
tablet: "large"
|
|
24
26
|
};
|
|
27
|
+
const modalContentGap = "large";
|
|
25
28
|
const ModalContentHeader = forwardRef(({ title, headingLevel, description, descriptionId, illustration, reserveCloseArea }, ref) => {
|
|
26
29
|
const header = /* @__PURE__ */ jsxs(Stack, {
|
|
27
30
|
space: headingLevel === "2" ? {
|
|
@@ -79,7 +82,7 @@ const ModalContentScrollLayout = ({ children, contentStartRef, coverImageEnabled
|
|
|
79
82
|
direction: "vertical",
|
|
80
83
|
children: [coverImageEnabled && /* @__PURE__ */ jsx("span", { ref: contentStartRef }), /* @__PURE__ */ jsx(Box, {
|
|
81
84
|
display: "flex",
|
|
82
|
-
gap:
|
|
85
|
+
gap: modalContentGap,
|
|
83
86
|
flexDirection: "column",
|
|
84
87
|
height: applyFullHeight ? "full" : void 0,
|
|
85
88
|
paddingTop: modalPadding,
|
|
@@ -128,7 +131,7 @@ const ModalCoverImageLayout = ({ width, image, children, footer, applyHeightLimi
|
|
|
128
131
|
children: [/* @__PURE__ */ jsx(Column, { children: coverImage$1 }), /* @__PURE__ */ jsx(Column, { children: content })]
|
|
129
132
|
});
|
|
130
133
|
};
|
|
131
|
-
const ModalContent = ({ id, children, description, onClose, width, closeLabel = "Close", illustration, coverImage, title, headingRef: headingRefProp, modalRef: modalRefProp, scrollLock = true, position, headingLevel, data, footer, ...restProps }) => {
|
|
134
|
+
const ModalContent = ({ id, children, description, onClose, width, closeLabel = "Close", illustration, coverImage, title, "aria-label": ariaLabel, "aria-description": ariaDescription, headingRef: headingRefProp, dialogRef, modalRef: modalRefProp, scrollLock = true, position, headingLevel, data, footer, ...restProps }) => {
|
|
132
135
|
const resolvedId = useFallbackId(id);
|
|
133
136
|
const descriptionId = useId();
|
|
134
137
|
const defaultModalRef = useRef(null);
|
|
@@ -161,25 +164,48 @@ const ModalContent = ({ id, children, description, onClose, width, closeLabel =
|
|
|
161
164
|
contentStartRef,
|
|
162
165
|
coverImageEnabled,
|
|
163
166
|
hasFooter: Boolean(footer),
|
|
164
|
-
children: [
|
|
165
|
-
title,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
children: [
|
|
168
|
+
title ? /* @__PURE__ */ jsx(ModalContentHeader, {
|
|
169
|
+
title,
|
|
170
|
+
headingLevel,
|
|
171
|
+
description,
|
|
172
|
+
descriptionId,
|
|
173
|
+
illustration: illustration && !coverImageEnabled ? illustration : void 0,
|
|
174
|
+
ref: headingRef,
|
|
175
|
+
reserveCloseArea: true
|
|
176
|
+
}) : null,
|
|
177
|
+
isDrawer && !title ? /* @__PURE__ */ jsx(
|
|
178
|
+
Bleed,
|
|
179
|
+
/**
|
|
180
|
+
* Matches close button size so content starts below it. `bottom`
|
|
181
|
+
* cancels the gap that follows the spacer.
|
|
182
|
+
*/
|
|
183
|
+
{
|
|
184
|
+
top: "xxsmall",
|
|
185
|
+
bottom: modalContentGap,
|
|
186
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
187
|
+
padding: "xsmall",
|
|
188
|
+
children: /* @__PURE__ */ jsx(Box, { className: iconSize({
|
|
189
|
+
size: "standard",
|
|
190
|
+
crop: true
|
|
191
|
+
}) })
|
|
192
|
+
})
|
|
193
|
+
}
|
|
194
|
+
) : null,
|
|
195
|
+
children
|
|
196
|
+
]
|
|
173
197
|
});
|
|
174
198
|
const modalFooter = footer ? /* @__PURE__ */ jsx(ModalFooter, {
|
|
175
199
|
applyPageBlockGutters: isDrawer,
|
|
176
200
|
children: footer
|
|
177
201
|
}) : null;
|
|
178
202
|
return /* @__PURE__ */ jsx(Box, {
|
|
203
|
+
ref: dialogRef,
|
|
179
204
|
role: "dialog",
|
|
180
|
-
"aria-label": title,
|
|
181
|
-
"aria-describedby": description ? descriptionId : void 0,
|
|
205
|
+
"aria-label": ariaLabel || title,
|
|
206
|
+
"aria-describedby": title && description || ariaDescription ? descriptionId : void 0,
|
|
182
207
|
"aria-modal": "true",
|
|
208
|
+
tabIndex: title ? void 0 : -1,
|
|
183
209
|
id: resolvedId,
|
|
184
210
|
onKeyDown: handleEscape,
|
|
185
211
|
position: "relative",
|
|
@@ -201,68 +227,75 @@ const ModalContent = ({ id, children, description, onClose, width, closeLabel =
|
|
|
201
227
|
borderRadius: modalRadius,
|
|
202
228
|
width: width !== "content" ? "full" : void 0,
|
|
203
229
|
maxWidth: width !== "content" ? width : void 0,
|
|
204
|
-
children: [
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
height: isDrawer ? "full" : void 0,
|
|
217
|
-
className: {
|
|
218
|
-
[pointerEventsAll]: true,
|
|
219
|
-
[maxSize[position]]: !isDrawer,
|
|
220
|
-
[hideOverflowAboveMobile]: allowColumnLayout
|
|
221
|
-
},
|
|
222
|
-
...buildDataAttributes_default({
|
|
223
|
-
data,
|
|
224
|
-
validateRestProps: restProps
|
|
225
|
-
}),
|
|
226
|
-
children: [coverImageEnabled && coverImage ? /* @__PURE__ */ jsx(ScrollContainer, {
|
|
227
|
-
direction: "vertical",
|
|
228
|
-
startRef: contentStartRef,
|
|
229
|
-
children: /* @__PURE__ */ jsx(ModalCoverImageLayout, {
|
|
230
|
-
width,
|
|
231
|
-
image: coverImage,
|
|
232
|
-
footer: !isMobile ? modalFooter : null,
|
|
233
|
-
applyHeightLimit: allowColumnLayout,
|
|
234
|
-
children: modalLayout
|
|
235
|
-
})
|
|
236
|
-
}) : modalLayout, (!coverImageEnabled || isMobile) && modalFooter]
|
|
237
|
-
})
|
|
238
|
-
}), /* @__PURE__ */ jsx(Box, {
|
|
239
|
-
position: "absolute",
|
|
240
|
-
zIndex: "sticky",
|
|
241
|
-
top: 0,
|
|
242
|
-
pointerEvents: "none",
|
|
243
|
-
width: "full",
|
|
244
|
-
display: "flex",
|
|
245
|
-
justifyContent: "flexEnd",
|
|
246
|
-
paddingTop: modalPadding,
|
|
247
|
-
paddingRight: isDrawer ? pageBlockGutters : modalPadding,
|
|
248
|
-
className: !isDrawer && maxSize[position],
|
|
249
|
-
children: /* @__PURE__ */ jsx(Bleed, {
|
|
250
|
-
space: "xxsmall",
|
|
251
|
-
children: /* @__PURE__ */ jsx(Box, {
|
|
252
|
-
position: "relative",
|
|
230
|
+
children: [
|
|
231
|
+
ariaDescription ? /* @__PURE__ */ jsx(HiddenVisually, {
|
|
232
|
+
id: descriptionId,
|
|
233
|
+
children: ariaDescription
|
|
234
|
+
}) : null,
|
|
235
|
+
/* @__PURE__ */ jsx(RemoveScroll, {
|
|
236
|
+
noRelative: true,
|
|
237
|
+
forwardProps: true,
|
|
238
|
+
enabled: scrollLock,
|
|
239
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
240
|
+
display: "flex",
|
|
241
|
+
flexDirection: "column",
|
|
253
242
|
background: "surface",
|
|
254
|
-
borderRadius:
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
243
|
+
borderRadius: modalRadius,
|
|
244
|
+
overflow: "auto",
|
|
245
|
+
position: "relative",
|
|
246
|
+
width: width !== "content" ? "full" : void 0,
|
|
247
|
+
height: isDrawer ? "full" : void 0,
|
|
248
|
+
className: {
|
|
249
|
+
[pointerEventsAll]: true,
|
|
250
|
+
[maxSize[position]]: !isDrawer,
|
|
251
|
+
[hideOverflowAboveMobile]: allowColumnLayout
|
|
252
|
+
},
|
|
253
|
+
...buildDataAttributes_default({
|
|
254
|
+
data,
|
|
255
|
+
validateRestProps: restProps
|
|
256
|
+
}),
|
|
257
|
+
children: [coverImageEnabled && coverImage ? /* @__PURE__ */ jsx(ScrollContainer, {
|
|
258
|
+
direction: "vertical",
|
|
259
|
+
startRef: contentStartRef,
|
|
260
|
+
children: /* @__PURE__ */ jsx(ModalCoverImageLayout, {
|
|
261
|
+
width,
|
|
262
|
+
image: coverImage,
|
|
263
|
+
footer: !isMobile ? modalFooter : null,
|
|
264
|
+
applyHeightLimit: allowColumnLayout,
|
|
265
|
+
children: modalLayout
|
|
266
|
+
})
|
|
267
|
+
}) : modalLayout, (!coverImageEnabled || isMobile) && modalFooter]
|
|
268
|
+
})
|
|
269
|
+
}),
|
|
270
|
+
/* @__PURE__ */ jsx(Box, {
|
|
271
|
+
position: "absolute",
|
|
272
|
+
zIndex: "sticky",
|
|
273
|
+
top: 0,
|
|
274
|
+
pointerEvents: "none",
|
|
275
|
+
width: "full",
|
|
276
|
+
display: "flex",
|
|
277
|
+
justifyContent: "flexEnd",
|
|
278
|
+
paddingTop: modalPadding,
|
|
279
|
+
paddingRight: isDrawer ? pageBlockGutters : modalPadding,
|
|
280
|
+
className: !isDrawer && maxSize[position],
|
|
281
|
+
children: /* @__PURE__ */ jsx(Bleed, {
|
|
282
|
+
space: "xxsmall",
|
|
283
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
284
|
+
position: "relative",
|
|
285
|
+
background: "surface",
|
|
286
|
+
borderRadius: "full",
|
|
287
|
+
padding: "xsmall",
|
|
288
|
+
className: [closeIconOffset, pointerEventsAll],
|
|
289
|
+
children: /* @__PURE__ */ jsx(ButtonIcon, {
|
|
290
|
+
label: closeLabel,
|
|
291
|
+
icon: /* @__PURE__ */ jsx(IconClear, { tone: "secondary" }),
|
|
292
|
+
variant: "transparent",
|
|
293
|
+
onClick: onClose
|
|
294
|
+
})
|
|
262
295
|
})
|
|
263
296
|
})
|
|
264
297
|
})
|
|
265
|
-
|
|
298
|
+
]
|
|
266
299
|
})
|
|
267
300
|
});
|
|
268
301
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_Box = require("../../Box/Box.cjs");
|
|
2
|
+
const require_Skeleton_css = require("./Skeleton.css.cjs");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
//#region src/lib/components/private/Skeleton/Skeleton.tsx
|
|
5
|
+
const Skeleton = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
|
|
6
|
+
"aria-hidden": true,
|
|
7
|
+
overflow: "hidden",
|
|
8
|
+
width: "full",
|
|
9
|
+
height: "full",
|
|
10
|
+
className: require_Skeleton_css.shimmerAnimation
|
|
11
|
+
});
|
|
12
|
+
Skeleton.displayName = "Skeleton";
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.Skeleton = Skeleton;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_vars_css = require("../../../themes/vars.css.cjs");
|
|
2
|
+
let _vanilla_extract_css_fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
let _vanilla_extract_css = require("@vanilla-extract/css");
|
|
4
|
+
//#region src/lib/components/private/Skeleton/Skeleton.css.ts
|
|
5
|
+
(0, _vanilla_extract_css_fileScope.setFileScope)("src/lib/components/private/Skeleton/Skeleton.css.ts", "braid-design-system");
|
|
6
|
+
const bone = require_vars_css.vars.backgroundColor.neutralLight;
|
|
7
|
+
const sheen = require_vars_css.vars.backgroundColor.surface;
|
|
8
|
+
const shimmer = (0, _vanilla_extract_css.keyframes)({
|
|
9
|
+
"0%": { backgroundPosition: "140% 0" },
|
|
10
|
+
"100%": { backgroundPosition: "-130% 0" }
|
|
11
|
+
}, "shimmer");
|
|
12
|
+
const shimmerAnimation = (0, _vanilla_extract_css.style)({
|
|
13
|
+
backgroundColor: bone,
|
|
14
|
+
backgroundImage: `linear-gradient(90deg, ${bone} 0%, ${sheen} 28%, ${bone} 56%)`,
|
|
15
|
+
backgroundRepeat: "no-repeat",
|
|
16
|
+
backgroundSize: "200% 100%",
|
|
17
|
+
animation: `${shimmer} 2s linear infinite`,
|
|
18
|
+
"@media": { "screen and (prefers-reduced-motion)": {
|
|
19
|
+
animation: "none",
|
|
20
|
+
backgroundImage: "none"
|
|
21
|
+
} }
|
|
22
|
+
}, "shimmerAnimation");
|
|
23
|
+
(0, _vanilla_extract_css_fileScope.endFileScope)();
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.shimmerAnimation = shimmerAnimation;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { vars } from "../../../themes/vars.css.mjs";
|
|
2
|
+
import { endFileScope, setFileScope } from "@vanilla-extract/css/fileScope";
|
|
3
|
+
import { keyframes, style } from "@vanilla-extract/css";
|
|
4
|
+
//#region src/lib/components/private/Skeleton/Skeleton.css.ts
|
|
5
|
+
setFileScope("src/lib/components/private/Skeleton/Skeleton.css.ts", "braid-design-system");
|
|
6
|
+
const bone = vars.backgroundColor.neutralLight;
|
|
7
|
+
const sheen = vars.backgroundColor.surface;
|
|
8
|
+
const shimmer = keyframes({
|
|
9
|
+
"0%": { backgroundPosition: "140% 0" },
|
|
10
|
+
"100%": { backgroundPosition: "-130% 0" }
|
|
11
|
+
}, "shimmer");
|
|
12
|
+
const shimmerAnimation = style({
|
|
13
|
+
backgroundColor: bone,
|
|
14
|
+
backgroundImage: `linear-gradient(90deg, ${bone} 0%, ${sheen} 28%, ${bone} 56%)`,
|
|
15
|
+
backgroundRepeat: "no-repeat",
|
|
16
|
+
backgroundSize: "200% 100%",
|
|
17
|
+
animation: `${shimmer} 2s linear infinite`,
|
|
18
|
+
"@media": { "screen and (prefers-reduced-motion)": {
|
|
19
|
+
animation: "none",
|
|
20
|
+
backgroundImage: "none"
|
|
21
|
+
} }
|
|
22
|
+
}, "shimmerAnimation");
|
|
23
|
+
endFileScope();
|
|
24
|
+
//#endregion
|
|
25
|
+
export { shimmerAnimation };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Box } from "../../Box/Box.mjs";
|
|
2
|
+
import { shimmerAnimation } from "./Skeleton.css.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/lib/components/private/Skeleton/Skeleton.tsx
|
|
5
|
+
const Skeleton = () => /* @__PURE__ */ jsx(Box, {
|
|
6
|
+
"aria-hidden": true,
|
|
7
|
+
overflow: "hidden",
|
|
8
|
+
width: "full",
|
|
9
|
+
height: "full",
|
|
10
|
+
className: shimmerAnimation
|
|
11
|
+
});
|
|
12
|
+
Skeleton.displayName = "Skeleton";
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Skeleton };
|
|
@@ -4,7 +4,7 @@ import { ConditionalValue, RequiredConditionalValue } from "@vanilla-extract/spr
|
|
|
4
4
|
declare const colorAtomicProperties: {
|
|
5
5
|
conditions: {
|
|
6
6
|
defaultCondition: "lightMode";
|
|
7
|
-
conditionNames: ("
|
|
7
|
+
conditionNames: ("lightMode" | "darkMode")[];
|
|
8
8
|
};
|
|
9
9
|
styles: {
|
|
10
10
|
readonly background: {
|
|
@@ -4,7 +4,7 @@ import { ConditionalValue, RequiredConditionalValue } from "@vanilla-extract/spr
|
|
|
4
4
|
declare const colorAtomicProperties: {
|
|
5
5
|
conditions: {
|
|
6
6
|
defaultCondition: "lightMode";
|
|
7
|
-
conditionNames: ("
|
|
7
|
+
conditionNames: ("lightMode" | "darkMode")[];
|
|
8
8
|
};
|
|
9
9
|
styles: {
|
|
10
10
|
readonly background: {
|
|
@@ -29,6 +29,11 @@ const textSizeUntrimmed = (0, _vanilla_extract_css.styleVariants)(require_vars_c
|
|
|
29
29
|
lineHeight: tablet.lineHeight
|
|
30
30
|
}
|
|
31
31
|
}), "textSizeUntrimmed");
|
|
32
|
+
const textSubSupScript = (0, _vanilla_extract_css.style)({}, "textSubSupScript");
|
|
33
|
+
(0, _vanilla_extract_css.globalStyle)(`${textSubSupScript} sup, ${textSubSupScript} sub`, {
|
|
34
|
+
fontSize: "0.7em",
|
|
35
|
+
lineHeight: "1em"
|
|
36
|
+
});
|
|
32
37
|
const headingWeight = (0, _vanilla_extract_css.styleVariants)(require_vars_css.vars.headingWeight, require_mapToProperty.mapToProperty("fontWeight"), "headingWeight");
|
|
33
38
|
const heading = (0, _vanilla_extract_css.styleVariants)(require_vars_css.vars.headingLevel, ({ mobile, tablet }, variant) => [(0, _capsizecss_vanilla_extract.createTextStyle)({
|
|
34
39
|
fontSize: mobile.fontSize,
|
|
@@ -39,6 +44,11 @@ const heading = (0, _vanilla_extract_css.styleVariants)(require_vars_css.vars.he
|
|
|
39
44
|
lineHeight: tablet.lineHeight,
|
|
40
45
|
...tablet.capsizeTrims
|
|
41
46
|
} } }, `heading_${variant}`)], "heading");
|
|
47
|
+
const headingSubSupScript = (0, _vanilla_extract_css.style)({}, "headingSubSupScript");
|
|
48
|
+
(0, _vanilla_extract_css.globalStyle)(`${headingSubSupScript} sup, ${headingSubSupScript} sub`, {
|
|
49
|
+
fontSize: "0.55em",
|
|
50
|
+
lineHeight: "1em"
|
|
51
|
+
});
|
|
42
52
|
const textToneVars = (0, _vanilla_extract_css.createThemeContract)({
|
|
43
53
|
critical: null,
|
|
44
54
|
caution: null,
|
|
@@ -115,10 +125,12 @@ exports.darkModeTone = darkModeTone;
|
|
|
115
125
|
exports.fontFamily = fontFamily;
|
|
116
126
|
exports.fontWeight = fontWeight;
|
|
117
127
|
exports.heading = heading;
|
|
128
|
+
exports.headingSubSupScript = headingSubSupScript;
|
|
118
129
|
exports.headingWeight = headingWeight;
|
|
119
130
|
exports.lightModeNeutralOverride = lightModeNeutralOverride;
|
|
120
131
|
exports.lightModeTone = lightModeTone;
|
|
121
132
|
exports.textSizeTrimmed = textSizeTrimmed;
|
|
122
133
|
exports.textSizeUntrimmed = textSizeUntrimmed;
|
|
134
|
+
exports.textSubSupScript = textSubSupScript;
|
|
123
135
|
exports.tone = tone;
|
|
124
136
|
exports.touchableText = touchableText;
|
|
@@ -4,7 +4,7 @@ import { breakpointQuery, responsiveStyle } from "./responsiveStyle.mjs";
|
|
|
4
4
|
import { mapToProperty } from "../utils/mapToProperty.mjs";
|
|
5
5
|
import { endFileScope, setFileScope } from "@vanilla-extract/css/fileScope";
|
|
6
6
|
import { createTextStyle } from "@capsizecss/vanilla-extract";
|
|
7
|
-
import { assignVars, createThemeContract, style, styleVariants } from "@vanilla-extract/css";
|
|
7
|
+
import { assignVars, createThemeContract, globalStyle, style, styleVariants } from "@vanilla-extract/css";
|
|
8
8
|
import { calc } from "@vanilla-extract/css-utils";
|
|
9
9
|
//#region src/lib/css/typography.css.ts
|
|
10
10
|
setFileScope("src/lib/css/typography.css.ts", "braid-design-system");
|
|
@@ -29,6 +29,11 @@ const textSizeUntrimmed = styleVariants(vars.textSize, ({ mobile, tablet }) => r
|
|
|
29
29
|
lineHeight: tablet.lineHeight
|
|
30
30
|
}
|
|
31
31
|
}), "textSizeUntrimmed");
|
|
32
|
+
const textSubSupScript = style({}, "textSubSupScript");
|
|
33
|
+
globalStyle(`${textSubSupScript} sup, ${textSubSupScript} sub`, {
|
|
34
|
+
fontSize: "0.7em",
|
|
35
|
+
lineHeight: "1em"
|
|
36
|
+
});
|
|
32
37
|
const headingWeight = styleVariants(vars.headingWeight, mapToProperty("fontWeight"), "headingWeight");
|
|
33
38
|
const heading = styleVariants(vars.headingLevel, ({ mobile, tablet }, variant) => [createTextStyle({
|
|
34
39
|
fontSize: mobile.fontSize,
|
|
@@ -39,6 +44,11 @@ const heading = styleVariants(vars.headingLevel, ({ mobile, tablet }, variant) =
|
|
|
39
44
|
lineHeight: tablet.lineHeight,
|
|
40
45
|
...tablet.capsizeTrims
|
|
41
46
|
} } }, `heading_${variant}`)], "heading");
|
|
47
|
+
const headingSubSupScript = style({}, "headingSubSupScript");
|
|
48
|
+
globalStyle(`${headingSubSupScript} sup, ${headingSubSupScript} sub`, {
|
|
49
|
+
fontSize: "0.55em",
|
|
50
|
+
lineHeight: "1em"
|
|
51
|
+
});
|
|
42
52
|
const textToneVars = createThemeContract({
|
|
43
53
|
critical: null,
|
|
44
54
|
caution: null,
|
|
@@ -110,4 +120,4 @@ const touchableText = styleVariants(vars.textSize, (textDefinition) => responsiv
|
|
|
110
120
|
}), "touchableText");
|
|
111
121
|
endFileScope();
|
|
112
122
|
//#endregion
|
|
113
|
-
export { darkModeNeutralOverride, darkModeTone, fontFamily, fontWeight, heading, headingWeight, lightModeNeutralOverride, lightModeTone, textSizeTrimmed, textSizeUntrimmed, tone, touchableText };
|
|
123
|
+
export { darkModeNeutralOverride, darkModeTone, fontFamily, fontWeight, heading, headingSubSupScript, headingWeight, lightModeNeutralOverride, lightModeTone, textSizeTrimmed, textSizeUntrimmed, textSubSupScript, tone, touchableText };
|
|
@@ -152,6 +152,7 @@ const require_Accordion_playroom = require("../components/Accordion/Accordion.pl
|
|
|
152
152
|
const require_AccordionItem_playroom = require("../components/Accordion/AccordionItem.playroom.cjs");
|
|
153
153
|
const require_Alert_playroom = require("../components/Alert/Alert.playroom.cjs");
|
|
154
154
|
const require_Autosuggest_playroom = require("../components/Autosuggest/Autosuggest.playroom.cjs");
|
|
155
|
+
const require_Avatar_playroom = require("../components/Avatar/Avatar.playroom.cjs");
|
|
155
156
|
const require_Badge_playroom = require("../components/Badge/Badge.playroom.cjs");
|
|
156
157
|
const require_Bleed_playroom = require("../components/Bleed/Bleed.playroom.cjs");
|
|
157
158
|
const require_Box_playroom = require("../components/Box/Box.playroom.cjs");
|
|
@@ -208,6 +209,7 @@ exports.AccordionItem = require_AccordionItem_playroom.AccordionItem;
|
|
|
208
209
|
exports.Actions = require_Actions.Actions;
|
|
209
210
|
exports.Alert = require_Alert_playroom.Alert;
|
|
210
211
|
exports.Autosuggest = require_Autosuggest_playroom.Autosuggest;
|
|
212
|
+
exports.Avatar = require_Avatar_playroom.Avatar;
|
|
211
213
|
exports.Badge = require_Badge_playroom.Badge;
|
|
212
214
|
exports.Bleed = require_Bleed_playroom.Bleed;
|
|
213
215
|
exports.Box = require_Box_playroom.Box;
|
|
@@ -153,6 +153,7 @@ import { Accordion } from "../components/Accordion/Accordion.playroom.cjs";
|
|
|
153
153
|
import { AccordionItem } from "../components/Accordion/AccordionItem.playroom.cjs";
|
|
154
154
|
import { Alert } from "../components/Alert/Alert.playroom.cjs";
|
|
155
155
|
import { Autosuggest } from "../components/Autosuggest/Autosuggest.playroom.cjs";
|
|
156
|
+
import { Avatar } from "../components/Avatar/Avatar.playroom.cjs";
|
|
156
157
|
import { Badge } from "../components/Badge/Badge.playroom.cjs";
|
|
157
158
|
import { Bleed } from "../components/Bleed/Bleed.playroom.cjs";
|
|
158
159
|
import { Box } from "../components/Box/Box.playroom.cjs";
|
|
@@ -204,4 +205,4 @@ declare const BraidPortal: undefined;
|
|
|
204
205
|
declare const BraidProvider: undefined;
|
|
205
206
|
declare const makeLinkComponent: undefined;
|
|
206
207
|
//#endregion
|
|
207
|
-
export { Accordion, AccordionItem, Actions, Alert, Autosuggest, Badge, Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button, ButtonIcon, ButtonLink, Card, Checkbox, CheckboxStandalone, Column, Columns, ContentBlock, Dialog, Disclosure, Divider, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, Placeholder, PlaceholderFooter, PlaceholderHeader, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
|
|
208
|
+
export { Accordion, AccordionItem, Actions, Alert, Autosuggest, Avatar, Badge, Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button, ButtonIcon, ButtonLink, Card, Checkbox, CheckboxStandalone, Column, Columns, ContentBlock, Dialog, Disclosure, Divider, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, Placeholder, PlaceholderFooter, PlaceholderHeader, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
|
|
@@ -153,6 +153,7 @@ import { Accordion } from "../components/Accordion/Accordion.playroom.mjs";
|
|
|
153
153
|
import { AccordionItem } from "../components/Accordion/AccordionItem.playroom.mjs";
|
|
154
154
|
import { Alert } from "../components/Alert/Alert.playroom.mjs";
|
|
155
155
|
import { Autosuggest } from "../components/Autosuggest/Autosuggest.playroom.mjs";
|
|
156
|
+
import { Avatar } from "../components/Avatar/Avatar.playroom.mjs";
|
|
156
157
|
import { Badge } from "../components/Badge/Badge.playroom.mjs";
|
|
157
158
|
import { Bleed } from "../components/Bleed/Bleed.playroom.mjs";
|
|
158
159
|
import { Box } from "../components/Box/Box.playroom.mjs";
|
|
@@ -204,4 +205,4 @@ declare const BraidPortal: undefined;
|
|
|
204
205
|
declare const BraidProvider: undefined;
|
|
205
206
|
declare const makeLinkComponent: undefined;
|
|
206
207
|
//#endregion
|
|
207
|
-
export { Accordion, AccordionItem, Actions, Alert, Autosuggest, Badge, Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button, ButtonIcon, ButtonLink, Card, Checkbox, CheckboxStandalone, Column, Columns, ContentBlock, Dialog, Disclosure, Divider, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, Placeholder, PlaceholderFooter, PlaceholderHeader, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
|
|
208
|
+
export { Accordion, AccordionItem, Actions, Alert, Autosuggest, Avatar, Badge, Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button, ButtonIcon, ButtonLink, Card, Checkbox, CheckboxStandalone, Column, Columns, ContentBlock, Dialog, Disclosure, Divider, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, Placeholder, PlaceholderFooter, PlaceholderHeader, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
|
|
@@ -152,6 +152,7 @@ import { Accordion } from "../components/Accordion/Accordion.playroom.mjs";
|
|
|
152
152
|
import { AccordionItem } from "../components/Accordion/AccordionItem.playroom.mjs";
|
|
153
153
|
import { Alert } from "../components/Alert/Alert.playroom.mjs";
|
|
154
154
|
import { Autosuggest } from "../components/Autosuggest/Autosuggest.playroom.mjs";
|
|
155
|
+
import { Avatar } from "../components/Avatar/Avatar.playroom.mjs";
|
|
155
156
|
import { Badge } from "../components/Badge/Badge.playroom.mjs";
|
|
156
157
|
import { Bleed } from "../components/Bleed/Bleed.playroom.mjs";
|
|
157
158
|
import { Box } from "../components/Box/Box.playroom.mjs";
|
|
@@ -203,4 +204,4 @@ const BraidPortal = void 0;
|
|
|
203
204
|
const BraidProvider = void 0;
|
|
204
205
|
const makeLinkComponent = void 0;
|
|
205
206
|
//#endregion
|
|
206
|
-
export { Accordion, AccordionItem, Actions, Alert, Autosuggest, Badge, Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button, ButtonIcon, ButtonLink, Card, Checkbox, CheckboxStandalone, Column, Columns, ContentBlock, Dialog, Disclosure, Divider, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, Placeholder, PlaceholderFooter, PlaceholderHeader, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
|
|
207
|
+
export { Accordion, AccordionItem, Actions, Alert, Autosuggest, Avatar, Badge, Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button, ButtonIcon, ButtonLink, Card, Checkbox, CheckboxStandalone, Column, Columns, ContentBlock, Dialog, Disclosure, Divider, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, Placeholder, PlaceholderFooter, PlaceholderHeader, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/Avatar.ts
|
|
2
|
+
const snippets = [
|
|
3
|
+
{
|
|
4
|
+
description: "Initials",
|
|
5
|
+
code: "<Avatar name=\"Leia Organa\" />"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
description: "Empty",
|
|
9
|
+
code: "<Avatar />"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
description: "Image",
|
|
13
|
+
code: "<Avatar name=\"Leia Organa\" imageUrl=\"https://example.com/photo.jpg\" />"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
description: "With name",
|
|
17
|
+
code: "<Columns space=\"medium\" alignY=\"center\">\n <Column width=\"content\">\n <Avatar name=\"Leia Organa\" />\n </Column>\n <Column>\n <Stack space=\"xsmall\">\n <Text>Leia Organa</Text>\n <Text size=\"small\" tone=\"secondary\">\n Product Designer\n </Text>\n </Stack>\n </Column>\n</Columns>"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
description: "Sizes",
|
|
21
|
+
code: "<Inline space=\"small\" alignY=\"center\">\n <Avatar name=\"Leia Organa\" size=\"xsmall\" />\n <Avatar name=\"Leia Organa\" size=\"small\" />\n <Avatar name=\"Leia Organa\" size=\"standard\" />\n <Avatar name=\"Leia Organa\" size=\"large\" />\n <Avatar name=\"Leia Organa\" size=\"xlarge\" />\n <Avatar name=\"Leia Organa\" size=\"xxlarge\" />\n</Inline>"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
description: "Loading",
|
|
25
|
+
code: "<Avatar name=\"Leia Organa\" loading />"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
description: "Company",
|
|
29
|
+
code: "<Avatar icon={<IconCompany />} />"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
description: "Add photo",
|
|
33
|
+
code: "<Avatar\n icon={<IconPhotoAdd />}\n aria-label=\"Add photo\"\n onClick={() => undefined}\n/>"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
description: "With tooltip",
|
|
37
|
+
code: "<TooltipRenderer tooltip={<Text>Leia Organa</Text>}>\n {({ triggerProps }) => (\n <Avatar name=\"Leia Organa\" aria-label=\"Leia Organa\" {...triggerProps} />\n )}\n</TooltipRenderer>"
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/Avatar.ts
|
|
2
|
+
const snippets = [
|
|
3
|
+
{
|
|
4
|
+
description: "Initials",
|
|
5
|
+
code: "<Avatar name=\"Leia Organa\" />"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
description: "Empty",
|
|
9
|
+
code: "<Avatar />"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
description: "Image",
|
|
13
|
+
code: "<Avatar name=\"Leia Organa\" imageUrl=\"https://example.com/photo.jpg\" />"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
description: "With name",
|
|
17
|
+
code: "<Columns space=\"medium\" alignY=\"center\">\n <Column width=\"content\">\n <Avatar name=\"Leia Organa\" />\n </Column>\n <Column>\n <Stack space=\"xsmall\">\n <Text>Leia Organa</Text>\n <Text size=\"small\" tone=\"secondary\">\n Product Designer\n </Text>\n </Stack>\n </Column>\n</Columns>"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
description: "Sizes",
|
|
21
|
+
code: "<Inline space=\"small\" alignY=\"center\">\n <Avatar name=\"Leia Organa\" size=\"xsmall\" />\n <Avatar name=\"Leia Organa\" size=\"small\" />\n <Avatar name=\"Leia Organa\" size=\"standard\" />\n <Avatar name=\"Leia Organa\" size=\"large\" />\n <Avatar name=\"Leia Organa\" size=\"xlarge\" />\n <Avatar name=\"Leia Organa\" size=\"xxlarge\" />\n</Inline>"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
description: "Loading",
|
|
25
|
+
code: "<Avatar name=\"Leia Organa\" loading />"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
description: "Company",
|
|
29
|
+
code: "<Avatar icon={<IconCompany />} />"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
description: "Add photo",
|
|
33
|
+
code: "<Avatar\n icon={<IconPhotoAdd />}\n aria-label=\"Add photo\"\n onClick={() => undefined}\n/>"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
description: "With tooltip",
|
|
37
|
+
code: "<TooltipRenderer tooltip={<Text>Leia Organa</Text>}>\n {({ triggerProps }) => (\n <Avatar name=\"Leia Organa\" aria-label=\"Leia Organa\" {...triggerProps} />\n )}\n</TooltipRenderer>"
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
//#endregion
|
|
41
|
+
export { snippets };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const snippets = [{
|
|
3
3
|
group: "Sections",
|
|
4
4
|
name: "Card list",
|
|
5
|
-
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n <Stack component=\"ul\" space=\"small\">\n {[1, 2, 3].map((item) => (\n <Box component=\"li\" key={item}>\n <Card component=\"article\">\n <Stack space=\"medium\">\n <Stack space=\"small\">\n <Spread space=\"small\">\n <Heading level=\"4\">Heading level 4</Heading>\n <OverflowMenu label=\"Options\">\n <MenuItem icon={<IconNote />}>Menu item 1</MenuItem>\n <MenuItem icon={<IconBookmark />}>Menu item 2</MenuItem>\n </OverflowMenu>\n </Spread>\n <Text>Standard text</Text>\n </Stack>\n <Text>\n Standard text lorem ipsum dolor sit amet consectetur adipiscing\n elit. Vivamus iaculis ut neque sit amet egestas.\n </Text>\n <Text tone=\"secondary\">Standard, secondary text</Text>\n <Actions>\n <Button>Button</Button>\n </Actions>\n </Stack>\n </Card>\n </Box>\n ))}\n </Stack>\n </Stack>\n</PageBlock>"
|
|
6
6
|
}];
|
|
7
7
|
//#endregion
|
|
8
8
|
exports.snippets = snippets;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const snippets = [{
|
|
3
3
|
group: "Sections",
|
|
4
4
|
name: "Card list",
|
|
5
|
-
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n <Stack component=\"ul\" space=\"small\">\n {[1, 2, 3].map((item) => (\n <Box component=\"li\" key={item}>\n <Card component=\"article\">\n <Stack space=\"medium\">\n <Stack space=\"small\">\n <Spread space=\"small\">\n <Heading level=\"4\">Heading level 4</Heading>\n <OverflowMenu label=\"Options\">\n <MenuItem icon={<IconNote />}>Menu item 1</MenuItem>\n <MenuItem icon={<IconBookmark />}>Menu item 2</MenuItem>\n </OverflowMenu>\n </Spread>\n <Text>Standard text</Text>\n </Stack>\n <Text>\n Standard text lorem ipsum dolor sit amet consectetur adipiscing\n elit. Vivamus iaculis ut neque sit amet egestas.\n </Text>\n <Text tone=\"secondary\">Standard, secondary text</Text>\n <Actions>\n <Button>Button</Button>\n </Actions>\n </Stack>\n </Card>\n </Box>\n ))}\n </Stack>\n </Stack>\n</PageBlock>"
|
|
6
6
|
}];
|
|
7
7
|
//#endregion
|
|
8
8
|
export { snippets };
|