braid-design-system 32.5.0 → 32.7.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 +80 -0
- package/codemod/dist/wrapper.js +82628 -42142
- package/dist/ToastContext.chunk.cjs +10 -0
- package/dist/ToastContext.chunk.mjs +10 -0
- package/dist/{Toggle.chunk.cjs → index.chunk.cjs} +122 -52
- package/dist/{Toggle.chunk.mjs → index.chunk.mjs} +121 -51
- package/dist/index.cjs +137 -135
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -1
- package/dist/playroom/components.cjs +159 -150
- package/dist/playroom/components.d.ts +1 -1
- package/dist/playroom/components.mjs +16 -7
- package/dist/playroom/snippets.cjs +60 -52
- package/dist/playroom/snippets.mjs +60 -52
- package/dist/playroomState.chunk.cjs +1 -1
- package/dist/playroomState.chunk.mjs +1 -1
- package/dist/reset.cjs +5 -0
- package/dist/reset.d.ts +19 -5
- package/dist/reset.mjs +5 -0
- package/dist/styles/lib/components/private/Modal/Modal.css.cjs +15 -7
- package/dist/styles/lib/components/private/Modal/Modal.css.mjs +15 -7
- package/package.json +4 -2
|
@@ -6,14 +6,15 @@ import "../styles/lib/themes/seekJobs/seekJobs.css.mjs";
|
|
|
6
6
|
import "../styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs";
|
|
7
7
|
import { wireframe } from "../styles/lib/themes/wireframe/wireframeTheme.css.mjs";
|
|
8
8
|
import "../styles/lib/themes/docs/docsTheme.css.mjs";
|
|
9
|
-
import { Accordion as Accordion$1, validSpaceValues as validSpaceValues$1, AccordionItem as AccordionItem$1, Alert as Alert$1, Autosuggest as Autosuggest$1, Badge as Badge$1, ButtonLink as ButtonLink$1, Card as Card$1, validCardComponents, Checkbox as Checkbox$1, CheckboxStandalone as CheckboxStandalone$1, AllowCloseContext, Dialog as Dialog$1, Disclosure as Disclosure$1, Drawer as Drawer$1, Dropdown as Dropdown$1, FieldLabel as FieldLabel$1, FieldMessage as FieldMessage$1, tones, Heading as Heading$1, Link as Link$1, List as List$1, MonthPicker as MonthPicker$1, MenuItem as MenuItem$1, MenuItemLink as MenuItemLink$1, MenuItemCheckbox as MenuItemCheckbox$1, Notice as Notice$1, OverflowMenu as OverflowMenu$1, Pagination as Pagination$1, defaultPageLimit, PasswordField as PasswordField$1, Radio as Radio$1, RadioGroup as RadioGroup$1, Rating as Rating$1, TabsProvider as TabsProvider$1, Tabs as Tabs$1, Tab as Tab$1, Tag as Tag$1, Textarea as Textarea$1, TextDropdown as TextDropdown$1, parseSimpleToComplexOption, TextField as TextField$1, Tiles as Tiles$1, Toggle as Toggle$1 } from "../
|
|
10
|
-
import { Actions, BoxRenderer, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Loader, MenuItemDivider, MenuRenderer, RadioItem, Secondary, Step, Stepper, Strong, TabPanel, TabPanels, ThemeNameConsumer, filterSuggestions, useBreakpoint, useColor } from "../
|
|
9
|
+
import { Accordion as Accordion$1, validSpaceValues as validSpaceValues$1, AccordionItem as AccordionItem$1, Alert as Alert$1, Autosuggest as Autosuggest$1, Badge as Badge$1, ButtonLink as ButtonLink$1, Card as Card$1, validCardComponents, Checkbox as Checkbox$1, CheckboxStandalone as CheckboxStandalone$1, AllowCloseContext, Dialog as Dialog$1, Disclosure as Disclosure$1, Drawer as Drawer$1, Dropdown as Dropdown$1, FieldLabel as FieldLabel$1, FieldMessage as FieldMessage$1, tones, Heading as Heading$1, Link as Link$1, List as List$1, MonthPicker as MonthPicker$1, MenuItem as MenuItem$1, MenuItemLink as MenuItemLink$1, MenuItemCheckbox as MenuItemCheckbox$1, Notice as Notice$1, OverflowMenu as OverflowMenu$1, Pagination as Pagination$1, defaultPageLimit, PasswordField as PasswordField$1, Radio as Radio$1, RadioGroup as RadioGroup$1, Rating as Rating$1, TabsProvider as TabsProvider$1, Tabs as Tabs$1, Tab as Tab$1, Tag as Tag$1, Textarea as Textarea$1, TextDropdown as TextDropdown$1, parseSimpleToComplexOption, TextField as TextField$1, Tiles as Tiles$1, Toggle as Toggle$1 } from "../index.chunk.mjs";
|
|
10
|
+
import { Actions, BoxRenderer, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Loader, MenuItemDivider, MenuRenderer, PageBlock, RadioItem, Secondary, Step, Stepper, Strong, TabPanel, TabPanels, ThemeNameConsumer, filterSuggestions, useBreakpoint, useColor } from "../index.chunk.mjs";
|
|
11
11
|
import { useFallbackState } from "../playroomState.chunk.mjs";
|
|
12
12
|
import { useRef, forwardRef, useState, useEffect } from "react";
|
|
13
13
|
import { v4 } from "uuid";
|
|
14
14
|
import { Bleed as Bleed$1, validBleedComponents, Box as Box$1, Button as Button$1, buttonVariants, ButtonIcon as ButtonIcon$1, buttonIconVariants, Columns as Columns$1, validColumnsComponents, Inline as Inline$1, validInlineComponents, IconClear, Stack as Stack$1, validStackComponents, TooltipRenderer as TooltipRenderer$1, useBackgroundLightness, PublicBox, Text } from "../ToastContext.chunk.mjs";
|
|
15
15
|
import { BraidPortal, Column, ContentBlock, Divider, Hidden, IconCritical, IconPositive, IconRenderer, TextLink, TextLinkButton, ToastProvider, useResponsiveValue, useSpace, useThemeName, useToast } from "../ToastContext.chunk.mjs";
|
|
16
16
|
import { atoms } from "../styles/lib/css/atoms/atoms.mjs";
|
|
17
|
+
import { breakpointNames } from "../styles/lib/css/breakpoints.mjs";
|
|
17
18
|
import { space } from "../styles/lib/css/atoms/atomicProperties.mjs";
|
|
18
19
|
import { lightTheme, darkTheme, box, label, line } from "../styles/lib/components/private/Placeholder/Placeholder.css.mjs";
|
|
19
20
|
import { BraidProvider, makeLinkComponent } from "../side-effects/lib/components/BraidProvider/BraidProvider.mjs";
|
|
@@ -259,7 +260,13 @@ const CheckboxStandalone = ({
|
|
|
259
260
|
);
|
|
260
261
|
};
|
|
261
262
|
const validSpaceValues = Object.keys(space);
|
|
262
|
-
const cleanSpaceValue = (space2) =>
|
|
263
|
+
const cleanSpaceValue = (space2) => {
|
|
264
|
+
const validResponsiveObject = typeof space2 === "object" && Object.keys(space2).some(
|
|
265
|
+
(bp) => breakpointNames.includes(bp) && validSpaceValues.includes(space2[bp])
|
|
266
|
+
);
|
|
267
|
+
const validSpace = typeof space2 === "string" && validSpaceValues.includes(space2);
|
|
268
|
+
return validSpace || validResponsiveObject ? space2 : void 0;
|
|
269
|
+
};
|
|
263
270
|
const Columns = ({
|
|
264
271
|
space: space2,
|
|
265
272
|
align,
|
|
@@ -269,7 +276,7 @@ const Columns = ({
|
|
|
269
276
|
}) => /* @__PURE__ */ jsx(
|
|
270
277
|
Columns$1,
|
|
271
278
|
{
|
|
272
|
-
space: cleanSpaceValue(space2),
|
|
279
|
+
space: cleanSpaceValue(space2) || "none",
|
|
273
280
|
align: typeof align !== "boolean" ? align : void 0,
|
|
274
281
|
alignY: typeof alignY !== "boolean" ? alignY : void 0,
|
|
275
282
|
component: component && validColumnsComponents.indexOf(component) > -1 ? component : void 0,
|
|
@@ -429,7 +436,7 @@ const Inline = ({
|
|
|
429
436
|
}) => /* @__PURE__ */ jsx(
|
|
430
437
|
Inline$1,
|
|
431
438
|
{
|
|
432
|
-
space: cleanSpaceValue(space2),
|
|
439
|
+
space: cleanSpaceValue(space2) || "none",
|
|
433
440
|
align: typeof align !== "boolean" ? align : void 0,
|
|
434
441
|
alignY: typeof alignY !== "boolean" ? alignY : void 0,
|
|
435
442
|
component: component && validInlineComponents.indexOf(component) > -1 ? component : void 0,
|
|
@@ -645,7 +652,7 @@ const Stack = ({
|
|
|
645
652
|
}) => /* @__PURE__ */ jsx(
|
|
646
653
|
Stack$1,
|
|
647
654
|
{
|
|
648
|
-
space: cleanSpaceValue(space2),
|
|
655
|
+
space: cleanSpaceValue(space2) || "none",
|
|
649
656
|
align: typeof align !== "boolean" ? align : void 0,
|
|
650
657
|
component: component && validStackComponents.indexOf(component) > -1 ? component : void 0,
|
|
651
658
|
...restProps
|
|
@@ -782,7 +789,7 @@ const TextField = ({
|
|
|
782
789
|
const Tiles = ({ space: space2, columns, ...restProps }) => /* @__PURE__ */ jsx(
|
|
783
790
|
Tiles$1,
|
|
784
791
|
{
|
|
785
|
-
space: cleanSpaceValue(space2),
|
|
792
|
+
space: cleanSpaceValue(space2) || "none",
|
|
786
793
|
columns: typeof columns === "boolean" || !columns ? 1 : columns,
|
|
787
794
|
...restProps
|
|
788
795
|
}
|
|
@@ -957,6 +964,7 @@ export {
|
|
|
957
964
|
IconList,
|
|
958
965
|
IconLocation,
|
|
959
966
|
IconMail,
|
|
967
|
+
IconMessage,
|
|
960
968
|
IconMinus,
|
|
961
969
|
IconMobile,
|
|
962
970
|
IconMoney,
|
|
@@ -1017,6 +1025,7 @@ export {
|
|
|
1017
1025
|
MonthPicker,
|
|
1018
1026
|
Notice,
|
|
1019
1027
|
OverflowMenu,
|
|
1028
|
+
PageBlock,
|
|
1020
1029
|
Pagination,
|
|
1021
1030
|
PasswordField,
|
|
1022
1031
|
Placeholder,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const snippets$
|
|
2
|
+
const snippets$J = [{
|
|
3
3
|
name: "Large",
|
|
4
4
|
code: '<Accordion>\n <AccordionItem label="Item 1">\n <Placeholder height={100} />\n </AccordionItem>\n <AccordionItem label="Item 2">\n <Placeholder height={100} />\n </AccordionItem>\n <AccordionItem label="Item 3">\n <Placeholder height={100} />\n </AccordionItem>\n </Accordion>'
|
|
5
5
|
}, {
|
|
@@ -21,7 +21,7 @@ const snippets$I = [{
|
|
|
21
21
|
name: "Standalone item with a badge",
|
|
22
22
|
code: '<AccordionItem label="Label" badge={<Badge tone="promote" weight="strong">\n Badge\n </Badge>}>\n <Placeholder height={100} />\n </AccordionItem>'
|
|
23
23
|
}];
|
|
24
|
-
const snippets$
|
|
24
|
+
const snippets$I = [{
|
|
25
25
|
name: "With multiple buttons",
|
|
26
26
|
code: '<Actions>\n <Button>Submit</Button>\n <Button variant="transparent">Cancel</Button>\n </Actions>'
|
|
27
27
|
}, {
|
|
@@ -34,7 +34,7 @@ const snippets$H = [{
|
|
|
34
34
|
name: "Small size",
|
|
35
35
|
code: '<Actions size="small">\n <Button>Button 1</Button>\n <Button>Button 2</Button>\n <Button variant="transparent">Button 3</Button>\n </Actions>'
|
|
36
36
|
}];
|
|
37
|
-
const snippets$
|
|
37
|
+
const snippets$H = [{
|
|
38
38
|
name: "Critical",
|
|
39
39
|
code: '<Alert tone="critical">\n <Text>Critical Alert</Text>\n </Alert>'
|
|
40
40
|
}, {
|
|
@@ -53,7 +53,7 @@ const snippets$G = [{
|
|
|
53
53
|
name: "Dismissible alert",
|
|
54
54
|
code: '<Alert onClose={() => {}} closeLabel="Close">\n <Text>Dismissible Alert</Text>\n </Alert>'
|
|
55
55
|
}];
|
|
56
|
-
const snippets$
|
|
56
|
+
const snippets$G = [{
|
|
57
57
|
name: "Standard",
|
|
58
58
|
code: `<Autosuggest id="fruit" label="Fruit" suggestions={[{
|
|
59
59
|
text: 'Apples'
|
|
@@ -128,7 +128,7 @@ const snippets$F = [{
|
|
|
128
128
|
text: 'Sydney'
|
|
129
129
|
}]} />`
|
|
130
130
|
}];
|
|
131
|
-
const snippets$
|
|
131
|
+
const snippets$F = [{
|
|
132
132
|
name: "Info",
|
|
133
133
|
code: '<Badge tone="info">Badge</Badge>'
|
|
134
134
|
}, {
|
|
@@ -168,7 +168,7 @@ const snippets$E = [{
|
|
|
168
168
|
name: "Multiple",
|
|
169
169
|
code: '<Inline space="small">\n <Badge tone="info">Badge</Badge>\n <Badge tone="positive">Badge</Badge>\n <Badge tone="promote">Badge</Badge>\n </Inline>'
|
|
170
170
|
}];
|
|
171
|
-
const snippets$
|
|
171
|
+
const snippets$E = [{
|
|
172
172
|
name: "On all sides",
|
|
173
173
|
code: '<Bleed space="gutter">\n <Placeholder height={80} />\n </Bleed>'
|
|
174
174
|
}, {
|
|
@@ -190,7 +190,7 @@ const snippets$D = [{
|
|
|
190
190
|
name: "To the right",
|
|
191
191
|
code: '<Bleed right="gutter">\n <Placeholder height={80} />\n </Bleed>'
|
|
192
192
|
}];
|
|
193
|
-
const snippets$
|
|
193
|
+
const snippets$D = [{
|
|
194
194
|
name: "Solid",
|
|
195
195
|
code: "<Button>Button</Button>"
|
|
196
196
|
}, {
|
|
@@ -251,7 +251,7 @@ const snippets$C = [{
|
|
|
251
251
|
name: "Small Transparent",
|
|
252
252
|
code: '<Button size="small" variant="transparent">\n Button\n </Button>'
|
|
253
253
|
}];
|
|
254
|
-
const snippets$
|
|
254
|
+
const snippets$C = [{
|
|
255
255
|
name: "Soft",
|
|
256
256
|
code: '<ButtonIcon variant="soft" icon={<IconBookmark />} label="Bookmark" id="buttonicon-soft" />'
|
|
257
257
|
}, {
|
|
@@ -264,7 +264,7 @@ const snippets$B = [{
|
|
|
264
264
|
name: "Secondary",
|
|
265
265
|
code: '<ButtonIcon tone="secondary" icon={<IconClear />} label="Close" id="buttonicon-secondary" />'
|
|
266
266
|
}];
|
|
267
|
-
const snippets$
|
|
267
|
+
const snippets$B = [{
|
|
268
268
|
name: "With Heading",
|
|
269
269
|
code: '<Card>\n <Stack space="gutter">\n <Heading level="3">Heading</Heading>\n <Text>Text</Text>\n </Stack>\n </Card>'
|
|
270
270
|
}, {
|
|
@@ -280,7 +280,7 @@ const snippets$A = [{
|
|
|
280
280
|
name: "With Overflow Menu",
|
|
281
281
|
code: '<Card>\n <Stack space="gutter">\n <Columns space="gutter">\n <Column>\n <Heading level="3">Heading</Heading>\n </Column>\n <Column width="content">\n <OverflowMenu label="Options">\n <MenuItem>Menu Item</MenuItem>\n </OverflowMenu>\n </Column>\n </Columns>\n <Text>Text</Text>\n </Stack>\n </Card>'
|
|
282
282
|
}];
|
|
283
|
-
const snippets$
|
|
283
|
+
const snippets$A = [{
|
|
284
284
|
name: "Standard",
|
|
285
285
|
code: '<Checkbox label="Label" />'
|
|
286
286
|
}, {
|
|
@@ -299,7 +299,7 @@ const snippets$z = [{
|
|
|
299
299
|
name: "With nested content",
|
|
300
300
|
code: '<Checkbox label="Label">\n <Placeholder height={100} />\n </Checkbox>'
|
|
301
301
|
}];
|
|
302
|
-
const snippets$
|
|
302
|
+
const snippets$z = [{
|
|
303
303
|
name: "2 Columns",
|
|
304
304
|
code: '<Columns space="gutter">\n <Column>\n <Placeholder height={60} label="Column" />\n </Column>\n <Column>\n <Placeholder height={60} label="Column" />\n </Column>\n </Columns>'
|
|
305
305
|
}, {
|
|
@@ -315,7 +315,7 @@ const snippets$y = [{
|
|
|
315
315
|
name: "Main Content With Sidebar",
|
|
316
316
|
code: '<Columns space="gutter" collapseBelow="tablet">\n <Column width="2/3">\n <Placeholder height={400} label="Main" />\n </Column>\n <Column>\n <Placeholder height={100} label="Sidebar" />\n </Column>\n </Columns>'
|
|
317
317
|
}];
|
|
318
|
-
const snippets$
|
|
318
|
+
const snippets$y = [{
|
|
319
319
|
name: "Standard",
|
|
320
320
|
code: "<ContentBlock>\n <Placeholder height={100} />\n </ContentBlock>"
|
|
321
321
|
}, {
|
|
@@ -328,7 +328,7 @@ const snippets$x = [{
|
|
|
328
328
|
name: "Large",
|
|
329
329
|
code: '<ContentBlock width="large">\n <Placeholder height={100} />\n </ContentBlock>'
|
|
330
330
|
}];
|
|
331
|
-
const snippets$
|
|
331
|
+
const snippets$x = [{
|
|
332
332
|
name: "Standard",
|
|
333
333
|
code: '<Dialog title="Dialog Heading" open={true}>\n <Placeholder width={250} height={100} />\n </Dialog>'
|
|
334
334
|
}, {
|
|
@@ -347,18 +347,18 @@ const snippets$w = [{
|
|
|
347
347
|
name: "Large",
|
|
348
348
|
code: '<Dialog title="Dialog Heading" width="large" open={true}>\n <Placeholder width="100%" height={100} />\n </Dialog>'
|
|
349
349
|
}];
|
|
350
|
-
const snippets$
|
|
350
|
+
const snippets$w = [{
|
|
351
351
|
name: "Standard",
|
|
352
352
|
code: '<Disclosure expandLabel="Show" collapseLabel="Hide">\n <Stack space="large">\n <Text>Content</Text>\n </Stack>\n </Disclosure>'
|
|
353
353
|
}];
|
|
354
|
-
const snippets$
|
|
354
|
+
const snippets$v = [{
|
|
355
355
|
name: "Regular",
|
|
356
356
|
code: "<Divider />"
|
|
357
357
|
}, {
|
|
358
358
|
name: "Strong",
|
|
359
359
|
code: '<Divider weight="strong" />'
|
|
360
360
|
}];
|
|
361
|
-
const snippets$
|
|
361
|
+
const snippets$u = [{
|
|
362
362
|
name: "Default",
|
|
363
363
|
code: '<Drawer title="Drawer Heading" open={true}>\n <Placeholder width="100%" height={100} />\n </Drawer>'
|
|
364
364
|
}, {
|
|
@@ -371,7 +371,7 @@ const snippets$t = [{
|
|
|
371
371
|
name: "Large",
|
|
372
372
|
code: '<Drawer title="Drawer Heading" width="large" open={true}>\n <Placeholder width="100%" height={100} />\n </Drawer>'
|
|
373
373
|
}];
|
|
374
|
-
const snippets$
|
|
374
|
+
const snippets$t = [{
|
|
375
375
|
name: "Standard",
|
|
376
376
|
code: '<Dropdown label="Label" placeholder="Please select">\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
377
377
|
}, {
|
|
@@ -393,7 +393,7 @@ const snippets$s = [{
|
|
|
393
393
|
name: "With a positive message",
|
|
394
394
|
code: '<Dropdown label="Label" placeholder="Please select" tone="positive" message="Positive message">\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
395
395
|
}];
|
|
396
|
-
const snippets$
|
|
396
|
+
const snippets$s = [{
|
|
397
397
|
name: "Standard",
|
|
398
398
|
code: '<FieldLabel label="Label" />'
|
|
399
399
|
}, {
|
|
@@ -403,7 +403,7 @@ const snippets$r = [{
|
|
|
403
403
|
name: "Standard with tertiary label",
|
|
404
404
|
code: '<FieldLabel label="Label" secondaryLabel="Optional" tertiaryLabel={<TextLink href="#">Help?</TextLink>} />'
|
|
405
405
|
}];
|
|
406
|
-
const snippets$
|
|
406
|
+
const snippets$r = [{
|
|
407
407
|
name: "Standard",
|
|
408
408
|
code: '<FieldMessage message="This is a message" />'
|
|
409
409
|
}, {
|
|
@@ -416,7 +416,7 @@ const snippets$q = [{
|
|
|
416
416
|
name: "Secondary message",
|
|
417
417
|
code: '<FieldMessage message="This is a message" secondaryMessage={<Text size="small" tone="secondary">\n Secondary\n </Text>} />'
|
|
418
418
|
}];
|
|
419
|
-
const snippets$
|
|
419
|
+
const snippets$q = [{
|
|
420
420
|
name: "Level 1",
|
|
421
421
|
code: '<Heading level="1">Heading</Heading>'
|
|
422
422
|
}, {
|
|
@@ -444,7 +444,7 @@ const snippets$p = [{
|
|
|
444
444
|
name: "Level 4 (Weak)",
|
|
445
445
|
code: '<Heading level="4" weight="weak">\n Heading\n </Heading>'
|
|
446
446
|
}];
|
|
447
|
-
const snippets$
|
|
447
|
+
const snippets$p = [{
|
|
448
448
|
name: "Small space",
|
|
449
449
|
code: '<Inline space="small">\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n </Inline>'
|
|
450
450
|
}, {
|
|
@@ -467,7 +467,7 @@ const snippets$o = [{
|
|
|
467
467
|
name: "Vertically centered",
|
|
468
468
|
code: '<Inline space="small" alignY="center">\n <Placeholder width={48} height={40} />\n <Placeholder width={48} height={100} />\n <Placeholder width={48} height={60} />\n </Inline>'
|
|
469
469
|
}];
|
|
470
|
-
const snippets$
|
|
470
|
+
const snippets$o = [{
|
|
471
471
|
name: "XSmall Space",
|
|
472
472
|
code: '<List space="xsmall">\n <Text>Text</Text>\n <Text>Text</Text>\n <Text>Text</Text>\n </List>'
|
|
473
473
|
}, {
|
|
@@ -492,11 +492,11 @@ const snippets$n = [{
|
|
|
492
492
|
name: "Icon",
|
|
493
493
|
code: '<List space="medium" type="icon" icon={<IconTick tone="positive" />}>\n <Text>Text</Text>\n <Text>Text</Text>\n <Text>Text</Text>\n </List>'
|
|
494
494
|
}];
|
|
495
|
-
const snippets$
|
|
495
|
+
const snippets$n = [{
|
|
496
496
|
name: "Standard",
|
|
497
497
|
code: "<Loader />"
|
|
498
498
|
}];
|
|
499
|
-
const snippets$
|
|
499
|
+
const snippets$m = [{
|
|
500
500
|
name: "Standard",
|
|
501
501
|
code: '<MonthPicker label="Month" />'
|
|
502
502
|
}, {
|
|
@@ -518,7 +518,7 @@ const snippets$l = [{
|
|
|
518
518
|
name: "With custom months and years",
|
|
519
519
|
code: `<MonthPicker label="Started" monthLabel="MM" yearLabel="YYYY" monthNames={['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']} />`
|
|
520
520
|
}];
|
|
521
|
-
const snippets$
|
|
521
|
+
const snippets$l = [{
|
|
522
522
|
name: "Critical",
|
|
523
523
|
code: '<Notice tone="critical">\n <Text>Critical Notice</Text>\n </Notice>'
|
|
524
524
|
}, {
|
|
@@ -531,10 +531,17 @@ const snippets$k = [{
|
|
|
531
531
|
name: "Promote",
|
|
532
532
|
code: '<Notice tone="promote">\n <Text>Promote Notice</Text>\n </Notice>'
|
|
533
533
|
}];
|
|
534
|
-
const snippets$
|
|
534
|
+
const snippets$k = [{
|
|
535
535
|
name: "Standard",
|
|
536
536
|
code: '<OverflowMenu label="Options">\n <MenuItem>Option</MenuItem>\n <MenuItem>Option</MenuItem>\n </OverflowMenu>'
|
|
537
537
|
}];
|
|
538
|
+
const snippets$j = [{
|
|
539
|
+
name: "Medium",
|
|
540
|
+
code: '<PageBlock width="medium">\n <Placeholder height={100} />\n </PageBlock>'
|
|
541
|
+
}, {
|
|
542
|
+
name: "Large",
|
|
543
|
+
code: '<PageBlock width="large">\n <Placeholder height={100} />\n </PageBlock>'
|
|
544
|
+
}];
|
|
538
545
|
const snippets$i = [{
|
|
539
546
|
name: "Standard",
|
|
540
547
|
code: "<Pagination />"
|
|
@@ -807,32 +814,33 @@ const snippets$1 = [{
|
|
|
807
814
|
code: '<TooltipRenderer tooltip={<Text>This is a tooltip!</Text>}>\n {({\n triggerProps\n }) => <Box {...triggerProps}>\n <Placeholder label="Tooltip trigger" height={100} />\n </Box>}\n </TooltipRenderer>'
|
|
808
815
|
}];
|
|
809
816
|
const snippets = Object.entries({
|
|
810
|
-
Accordion: snippets$
|
|
811
|
-
Actions: snippets$
|
|
812
|
-
Alert: snippets$
|
|
813
|
-
Autosuggest: snippets$
|
|
814
|
-
Badge: snippets$
|
|
815
|
-
Bleed: snippets$
|
|
816
|
-
Button: snippets$
|
|
817
|
-
ButtonIcon: snippets$
|
|
818
|
-
Card: snippets$
|
|
819
|
-
Checkbox: snippets$
|
|
820
|
-
Columns: snippets$
|
|
821
|
-
ContentBlock: snippets$
|
|
822
|
-
Dialog: snippets$
|
|
823
|
-
Disclosure: snippets$
|
|
824
|
-
Divider: snippets$
|
|
825
|
-
Drawer: snippets$
|
|
826
|
-
Dropdown: snippets$
|
|
827
|
-
FieldLabel: snippets$
|
|
828
|
-
FieldMessage: snippets$
|
|
829
|
-
Heading: snippets$
|
|
830
|
-
Inline: snippets$
|
|
831
|
-
List: snippets$
|
|
832
|
-
Loader: snippets$
|
|
833
|
-
MonthPicker: snippets$
|
|
834
|
-
Notice: snippets$
|
|
835
|
-
OverflowMenu: snippets$
|
|
817
|
+
Accordion: snippets$J,
|
|
818
|
+
Actions: snippets$I,
|
|
819
|
+
Alert: snippets$H,
|
|
820
|
+
Autosuggest: snippets$G,
|
|
821
|
+
Badge: snippets$F,
|
|
822
|
+
Bleed: snippets$E,
|
|
823
|
+
Button: snippets$D,
|
|
824
|
+
ButtonIcon: snippets$C,
|
|
825
|
+
Card: snippets$B,
|
|
826
|
+
Checkbox: snippets$A,
|
|
827
|
+
Columns: snippets$z,
|
|
828
|
+
ContentBlock: snippets$y,
|
|
829
|
+
Dialog: snippets$x,
|
|
830
|
+
Disclosure: snippets$w,
|
|
831
|
+
Divider: snippets$v,
|
|
832
|
+
Drawer: snippets$u,
|
|
833
|
+
Dropdown: snippets$t,
|
|
834
|
+
FieldLabel: snippets$s,
|
|
835
|
+
FieldMessage: snippets$r,
|
|
836
|
+
Heading: snippets$q,
|
|
837
|
+
Inline: snippets$p,
|
|
838
|
+
List: snippets$o,
|
|
839
|
+
Loader: snippets$n,
|
|
840
|
+
MonthPicker: snippets$m,
|
|
841
|
+
Notice: snippets$l,
|
|
842
|
+
OverflowMenu: snippets$k,
|
|
843
|
+
PageBlock: snippets$j,
|
|
836
844
|
Pagination: snippets$i,
|
|
837
845
|
PasswordField: snippets$h,
|
|
838
846
|
RadioGroup: snippets$g,
|