braid-design-system 32.12.0 → 32.12.2
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 +16 -0
- package/codemod/dist/wrapper.js +36678 -44907
- package/dist/ToastContext.chunk.cjs +45 -4
- package/dist/ToastContext.chunk.mjs +46 -5
- package/dist/index.chunk.cjs +1 -1
- package/dist/index.chunk.mjs +1 -1
- package/dist/playroom/components.cjs +8 -3
- package/dist/playroom/components.mjs +9 -4
- package/dist/playroom/snippets.cjs +128 -102
- package/dist/playroom/snippets.mjs +128 -102
- package/dist/reset.d.ts +45 -43
- package/package.json +6 -9
|
@@ -19,7 +19,7 @@ const snippets$K = [{
|
|
|
19
19
|
code: '<AccordionItem label="Label" size="standard">\n <Placeholder height={100} />\n </AccordionItem>'
|
|
20
20
|
}, {
|
|
21
21
|
name: "Standalone item with a badge",
|
|
22
|
-
code: '<AccordionItem
|
|
22
|
+
code: '<AccordionItem\n label="Label"\n badge={\n <Badge tone="promote" weight="strong">\n Badge\n </Badge>}>\n\n\n <Placeholder height={100} />\n </AccordionItem>'
|
|
23
23
|
}];
|
|
24
24
|
const snippets$J = [{
|
|
25
25
|
name: "With multiple buttons",
|
|
@@ -55,78 +55,81 @@ const snippets$I = [{
|
|
|
55
55
|
}];
|
|
56
56
|
const snippets$H = [{
|
|
57
57
|
name: "Standard",
|
|
58
|
-
code: `<Autosuggest
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
text: '
|
|
64
|
-
}]} />`
|
|
58
|
+
code: `<Autosuggest
|
|
59
|
+
id="fruit"
|
|
60
|
+
label="Fruit"
|
|
61
|
+
suggestions={[
|
|
62
|
+
{ text: 'Apples' },
|
|
63
|
+
{ text: 'Bananas' },
|
|
64
|
+
{ text: 'Carrots' }]} />`
|
|
65
65
|
}, {
|
|
66
66
|
name: "Grouped suggestions",
|
|
67
|
-
code: `<Autosuggest
|
|
68
|
-
label
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
text: '
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
text: 'Carrots'
|
|
84
|
-
|
|
85
|
-
|
|
67
|
+
code: `<Autosuggest
|
|
68
|
+
label="I like to eat"
|
|
69
|
+
id="grouped"
|
|
70
|
+
suggestions={[
|
|
71
|
+
{
|
|
72
|
+
label: 'Fruit',
|
|
73
|
+
suggestions: [
|
|
74
|
+
{ text: 'Apples' },
|
|
75
|
+
{ text: 'Bananas' },
|
|
76
|
+
{ text: 'Carrots' }]
|
|
77
|
+
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: 'Vegetables',
|
|
81
|
+
suggestions: [
|
|
82
|
+
{ text: 'Broccoli' },
|
|
83
|
+
{ text: 'Carrots' },
|
|
84
|
+
{ text: 'Carrots' }]
|
|
85
|
+
|
|
86
|
+
}]} />`
|
|
86
87
|
}, {
|
|
87
88
|
name: "With mobile backdrop",
|
|
88
|
-
code: `<Autosuggest
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
text: '
|
|
94
|
-
}
|
|
89
|
+
code: `<Autosuggest
|
|
90
|
+
showMobileBackdrop
|
|
91
|
+
id="mobile"
|
|
92
|
+
label="Fruit"
|
|
93
|
+
suggestions={[
|
|
94
|
+
{ text: 'Apples' },
|
|
95
|
+
{ text: 'Bananas' },
|
|
96
|
+
{ text: 'Carrots' }]} />`
|
|
95
97
|
}, {
|
|
96
98
|
name: "With error",
|
|
97
|
-
code: `<Autosuggest
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
99
|
+
code: `<Autosuggest
|
|
100
|
+
label="I like to eat"
|
|
101
|
+
id="error"
|
|
102
|
+
tone="critical"
|
|
103
|
+
message="You must make a selection"
|
|
104
|
+
suggestions={[
|
|
105
|
+
{ text: 'Apples' },
|
|
106
|
+
{ text: 'Bananas' },
|
|
107
|
+
{ text: 'Carrots' }]} />`
|
|
104
108
|
}, {
|
|
105
109
|
name: "With description",
|
|
106
|
-
code: `<Autosuggest
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
text: '
|
|
112
|
-
}
|
|
110
|
+
code: `<Autosuggest
|
|
111
|
+
label="Fruit"
|
|
112
|
+
id="error"
|
|
113
|
+
description="Select your favourite fruit to eat from the available suggestions."
|
|
114
|
+
suggestions={[
|
|
115
|
+
{ text: 'Apples' },
|
|
116
|
+
{ text: 'Bananas' },
|
|
117
|
+
{ text: 'Carrots' }]} />`
|
|
113
118
|
}, {
|
|
114
119
|
name: "With icon",
|
|
115
|
-
code: `<Autosuggest
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
},
|
|
122
|
-
text: '
|
|
123
|
-
},
|
|
124
|
-
text: '
|
|
125
|
-
},
|
|
126
|
-
text: 'Perth'
|
|
127
|
-
}
|
|
128
|
-
text: 'Sydney'
|
|
129
|
-
}]} />`
|
|
120
|
+
code: `<Autosuggest
|
|
121
|
+
id="location"
|
|
122
|
+
aria-label="Location"
|
|
123
|
+
icon={<IconLocation />}
|
|
124
|
+
placeholder="Enter a location"
|
|
125
|
+
suggestions={[
|
|
126
|
+
{ text: 'Adelaide' },
|
|
127
|
+
{ text: 'Brisbane' },
|
|
128
|
+
{ text: 'Darwin' },
|
|
129
|
+
{ text: 'Hobart' },
|
|
130
|
+
{ text: 'Melbourne' },
|
|
131
|
+
{ text: 'Perth' },
|
|
132
|
+
{ text: 'Sydney' }]} />`
|
|
130
133
|
}];
|
|
131
134
|
const snippets$G = [{
|
|
132
135
|
name: "Info",
|
|
@@ -253,16 +256,16 @@ const snippets$E = [{
|
|
|
253
256
|
}];
|
|
254
257
|
const snippets$D = [{
|
|
255
258
|
name: "Soft",
|
|
256
|
-
code: '<ButtonIcon
|
|
259
|
+
code: '<ButtonIcon\n variant="soft"\n icon={<IconBookmark />}\n label="Bookmark"\n id="buttonicon-soft" />'
|
|
257
260
|
}, {
|
|
258
261
|
name: "Transparent",
|
|
259
|
-
code: '<ButtonIcon
|
|
262
|
+
code: '<ButtonIcon\n variant="transparent"\n icon={<IconHelp />}\n label="Help"\n id="buttonicon-transparent" />'
|
|
260
263
|
}, {
|
|
261
264
|
name: "Large",
|
|
262
|
-
code: '<ButtonIcon
|
|
265
|
+
code: '<ButtonIcon\n size="large"\n icon={<IconAdd />}\n label="Add"\n id="buttonicon-large" />'
|
|
263
266
|
}, {
|
|
264
267
|
name: "Secondary",
|
|
265
|
-
code: '<ButtonIcon
|
|
268
|
+
code: '<ButtonIcon\n tone="secondary"\n icon={<IconClear />}\n label="Close"\n id="buttonicon-secondary" />'
|
|
266
269
|
}];
|
|
267
270
|
const snippets$C = [{
|
|
268
271
|
name: "With Heading",
|
|
@@ -333,7 +336,7 @@ const snippets$y = [{
|
|
|
333
336
|
code: '<Dialog title="Dialog Heading" open={true}>\n <Placeholder width={250} height={100} />\n </Dialog>'
|
|
334
337
|
}, {
|
|
335
338
|
name: "With illustration",
|
|
336
|
-
code: '<Dialog
|
|
339
|
+
code: '<Dialog\n title="Illustrated Dialog"\n open={true}\n illustration={\n <Box style={{ height: 100, width: 100 }}>\n <IconMail size="fill" />\n </Box>}>\n\n\n <Stack space="xlarge" align="center">\n <Placeholder width="100%" height={100} />\n <Inline space="small">\n <Button>Got it</Button>\n <Button variant="transparent">Cancel</Button>\n </Inline>\n </Stack>\n </Dialog>'
|
|
337
340
|
}, {
|
|
338
341
|
name: "Xsmall",
|
|
339
342
|
code: '<Dialog title="Dialog Heading" width="xsmall" open={true}>\n <Placeholder width="100%" height={100} />\n </Dialog>'
|
|
@@ -379,19 +382,19 @@ const snippets$u = [{
|
|
|
379
382
|
code: '<Dropdown label="Label" placeholder="Please select">\n <optgroup label="Group 1">\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </optgroup>\n <optgroup label="Group 2">\n <option>Option A</option>\n <option>Option B</option>\n <option>Option C</option>\n </optgroup>\n </Dropdown>'
|
|
380
383
|
}, {
|
|
381
384
|
name: "With additional labels",
|
|
382
|
-
code: '<Dropdown
|
|
385
|
+
code: '<Dropdown\n label="Label"\n placeholder="Please select"\n secondaryLabel="optional"\n tertiaryLabel={\n <TextLink href="#">\n <IconHelp /> Help\n </TextLink>}>\n\n\n <option>Option 1</option>\n <option>Option 2</option>\n </Dropdown>'
|
|
383
386
|
}, {
|
|
384
387
|
name: "With a description",
|
|
385
|
-
code: '<Dropdown
|
|
388
|
+
code: '<Dropdown\n label="Label"\n placeholder="Please select"\n description="Extra information about the field">\n\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
386
389
|
}, {
|
|
387
390
|
name: "With an icon",
|
|
388
|
-
code: '<Dropdown
|
|
391
|
+
code: '<Dropdown\n label="Label"\n placeholder="Please select"\n icon={<IconLocation />}>\n\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
389
392
|
}, {
|
|
390
393
|
name: "With a critical message",
|
|
391
|
-
code: '<Dropdown
|
|
394
|
+
code: '<Dropdown\n label="Label"\n placeholder="Please select"\n tone="critical"\n message="Critical message">\n\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
392
395
|
}, {
|
|
393
396
|
name: "With a positive message",
|
|
394
|
-
code: '<Dropdown
|
|
397
|
+
code: '<Dropdown\n label="Label"\n placeholder="Please select"\n tone="positive"\n message="Positive message">\n\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
395
398
|
}];
|
|
396
399
|
const snippets$t = [{
|
|
397
400
|
name: "Standard",
|
|
@@ -401,7 +404,7 @@ const snippets$t = [{
|
|
|
401
404
|
code: '<FieldLabel label="Label" secondaryLabel="Optional" />'
|
|
402
405
|
}, {
|
|
403
406
|
name: "Standard with tertiary label",
|
|
404
|
-
code: '<FieldLabel
|
|
407
|
+
code: '<FieldLabel\n label="Label"\n secondaryLabel="Optional"\n tertiaryLabel={<TextLink href="#">Help?</TextLink>} />'
|
|
405
408
|
}];
|
|
406
409
|
const snippets$s = [{
|
|
407
410
|
name: "Standard",
|
|
@@ -414,7 +417,7 @@ const snippets$s = [{
|
|
|
414
417
|
code: '<FieldMessage tone="critical" message="This is a critical message" />'
|
|
415
418
|
}, {
|
|
416
419
|
name: "Secondary message",
|
|
417
|
-
code: '<FieldMessage
|
|
420
|
+
code: '<FieldMessage\n message="This is a message"\n secondaryMessage={\n <Text size="small" tone="secondary">\n Secondary\n </Text>} />'
|
|
418
421
|
}];
|
|
419
422
|
const snippets$r = [{
|
|
420
423
|
name: "Level 1",
|
|
@@ -452,13 +455,10 @@ const snippets$q = [{
|
|
|
452
455
|
code: '<Inline space="medium">\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n </Inline>'
|
|
453
456
|
}, {
|
|
454
457
|
name: "Responsive space",
|
|
455
|
-
code: "<Inline space={{
|
|
458
|
+
code: "<Inline space={{ mobile: 'small', tablet: 'large' }}>\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n </Inline>"
|
|
456
459
|
}, {
|
|
457
460
|
name: "Responsive horizontal alignment",
|
|
458
|
-
code: `<Inline space="small" align={{
|
|
459
|
-
mobile: 'center',
|
|
460
|
-
tablet: 'left'
|
|
461
|
-
}}>
|
|
461
|
+
code: `<Inline space="small" align={{ mobile: 'center', tablet: 'left' }}>
|
|
462
462
|
<Placeholder width={48} height={48} />
|
|
463
463
|
<Placeholder width={48} height={48} />
|
|
464
464
|
<Placeholder width={48} height={48} />
|
|
@@ -501,10 +501,10 @@ const snippets$n = [{
|
|
|
501
501
|
code: '<MonthPicker label="Month" />'
|
|
502
502
|
}, {
|
|
503
503
|
name: "With additional labels",
|
|
504
|
-
code: '<MonthPicker
|
|
504
|
+
code: '<MonthPicker\n label="Label"\n secondaryLabel="optional"\n tertiaryLabel={\n <TextLink href="#">\n <IconHelp /> Help\n </TextLink>} />'
|
|
505
505
|
}, {
|
|
506
506
|
name: "With a description",
|
|
507
|
-
code: '<MonthPicker
|
|
507
|
+
code: '<MonthPicker\n label="Label"\n description="More detailed description of field." />'
|
|
508
508
|
}, {
|
|
509
509
|
name: "With a critical message",
|
|
510
510
|
code: '<MonthPicker label="Month" tone="critical" message="Critical message" />'
|
|
@@ -516,7 +516,23 @@ const snippets$n = [{
|
|
|
516
516
|
code: '<MonthPicker label="Month" tone="neutral" message="Neutral message" />'
|
|
517
517
|
}, {
|
|
518
518
|
name: "With custom months and years",
|
|
519
|
-
code: `<MonthPicker
|
|
519
|
+
code: `<MonthPicker
|
|
520
|
+
label="Started"
|
|
521
|
+
monthLabel="MM"
|
|
522
|
+
yearLabel="YYYY"
|
|
523
|
+
monthNames={[
|
|
524
|
+
'01',
|
|
525
|
+
'02',
|
|
526
|
+
'03',
|
|
527
|
+
'04',
|
|
528
|
+
'05',
|
|
529
|
+
'06',
|
|
530
|
+
'07',
|
|
531
|
+
'08',
|
|
532
|
+
'09',
|
|
533
|
+
'10',
|
|
534
|
+
'11',
|
|
535
|
+
'12']} />`
|
|
520
536
|
}];
|
|
521
537
|
const snippets$m = [{
|
|
522
538
|
name: "Critical",
|
|
@@ -540,7 +556,7 @@ const snippets$k = [{
|
|
|
540
556
|
code: '<Page footer={<Placeholder label="Footer" height={100} />}>\n <Placeholder label="Header" height={60} />\n </Page>'
|
|
541
557
|
}, {
|
|
542
558
|
name: "Footer below fold",
|
|
543
|
-
code: '<Page
|
|
559
|
+
code: '<Page\n footer={<Placeholder label="Footer" height={100} />}\n footerPosition="belowFold">\n\n <Placeholder label="Header" height={60} />\n </Page>'
|
|
544
560
|
}];
|
|
545
561
|
const snippets$j = [{
|
|
546
562
|
name: "Medium",
|
|
@@ -558,16 +574,16 @@ const snippets$h = [{
|
|
|
558
574
|
code: '<PasswordField label="Password" />'
|
|
559
575
|
}, {
|
|
560
576
|
name: "With additional labels",
|
|
561
|
-
code: '<PasswordField
|
|
577
|
+
code: '<PasswordField\n label="Password"\n secondaryLabel="optional"\n tertiaryLabel={<TextLink href="#">Forgot password?</TextLink>} />'
|
|
562
578
|
}, {
|
|
563
579
|
name: "With a description",
|
|
564
|
-
code: '<PasswordField
|
|
580
|
+
code: '<PasswordField\n label="Label"\n description="More detailed description of field." />'
|
|
565
581
|
}, {
|
|
566
582
|
name: "With a critical message",
|
|
567
|
-
code: '<PasswordField
|
|
583
|
+
code: '<PasswordField\n label="Label"\n tone="critical"\n message="Critical message" />'
|
|
568
584
|
}, {
|
|
569
585
|
name: "With a positive message",
|
|
570
|
-
code: '<PasswordField
|
|
586
|
+
code: '<PasswordField\n label="Label"\n tone="positive"\n message="Positive message" />'
|
|
571
587
|
}, {
|
|
572
588
|
name: "With a neutral message",
|
|
573
589
|
code: '<PasswordField label="Label" tone="neutral" message="Neutral message" />'
|
|
@@ -586,7 +602,7 @@ const snippets$g = [{
|
|
|
586
602
|
code: '<RadioGroup label="Label">\n <RadioItem label="One" value="1" description="Description for item 1" />\n <RadioItem label="Two" value="2" description="Description for item 2" />\n </RadioGroup>'
|
|
587
603
|
}, {
|
|
588
604
|
name: "With a Badge",
|
|
589
|
-
code: '<RadioGroup label="Label">\n <RadioItem label="One" value="1" />\n <RadioItem
|
|
605
|
+
code: '<RadioGroup label="Label">\n <RadioItem label="One" value="1" />\n <RadioItem\n label="Two"\n value="2"\n badge={\n <Badge tone="positive" weight="strong">\n Badge\n </Badge>} />\n\n\n </RadioGroup>'
|
|
590
606
|
}, {
|
|
591
607
|
name: "Small",
|
|
592
608
|
code: '<RadioGroup label="Label" size="small">\n <RadioItem label="One" value="1" />\n <RadioItem label="Two" value="2" />\n </RadioGroup>'
|
|
@@ -631,7 +647,7 @@ const snippets$d = [{
|
|
|
631
647
|
code: '<Stack space="large">\n <Placeholder height={40} />\n <Placeholder height={40} />\n <Placeholder height={40} />\n </Stack>'
|
|
632
648
|
}, {
|
|
633
649
|
name: "Responsive Space",
|
|
634
|
-
code: "<Stack space={{
|
|
650
|
+
code: "<Stack space={{ mobile: 'small', tablet: 'large', desktop: 'none' }}>\n <Placeholder height={40} />\n <Placeholder height={40} />\n <Placeholder height={40} />\n </Stack>"
|
|
635
651
|
}];
|
|
636
652
|
const snippets$c = [{
|
|
637
653
|
name: "Default",
|
|
@@ -707,21 +723,31 @@ const snippets$8 = [{
|
|
|
707
723
|
const snippets$7 = [{
|
|
708
724
|
name: "Standard",
|
|
709
725
|
code: `<Text>
|
|
710
|
-
<TextDropdown
|
|
726
|
+
<TextDropdown
|
|
727
|
+
label="Label"
|
|
728
|
+
value="Option 1"
|
|
729
|
+
options={['Option 1', 'Option 2', 'Option 3']} />
|
|
730
|
+
|
|
711
731
|
</Text>`
|
|
712
732
|
}, {
|
|
713
733
|
name: "Emphasised within a sentence",
|
|
714
734
|
code: `<Text>
|
|
715
735
|
Sort by{' '}
|
|
716
736
|
<Strong>
|
|
717
|
-
<TextDropdown
|
|
737
|
+
<TextDropdown
|
|
738
|
+
label="Sort by"
|
|
739
|
+
options={['Relevance', 'Date', 'Keyword']} />
|
|
740
|
+
|
|
718
741
|
</Strong>
|
|
719
742
|
</Text>`
|
|
720
743
|
}, {
|
|
721
744
|
name: "Within a heading",
|
|
722
745
|
code: `<Heading level="2">
|
|
723
746
|
Heading with{' '}
|
|
724
|
-
<TextDropdown
|
|
747
|
+
<TextDropdown
|
|
748
|
+
label="Options"
|
|
749
|
+
options={['Option 1', 'Option 2', 'Option 3']} />
|
|
750
|
+
|
|
725
751
|
</Heading>`
|
|
726
752
|
}];
|
|
727
753
|
const snippets$6 = [{
|
|
@@ -729,10 +755,10 @@ const snippets$6 = [{
|
|
|
729
755
|
code: '<TextField label="Label" />'
|
|
730
756
|
}, {
|
|
731
757
|
name: "With additional labels",
|
|
732
|
-
code: '<TextField
|
|
758
|
+
code: '<TextField\n label="Label"\n secondaryLabel="optional"\n tertiaryLabel={\n <TextLink href="#">\n <IconHelp /> Help\n </TextLink>} />'
|
|
733
759
|
}, {
|
|
734
760
|
name: "With a description",
|
|
735
|
-
code: '<TextField
|
|
761
|
+
code: '<TextField\n label="Label"\n description="More detailed description of field." />'
|
|
736
762
|
}, {
|
|
737
763
|
name: "With an icon",
|
|
738
764
|
code: '<TextField label="Label" icon={<IconSearch />} placeholder="Search" />'
|
|
@@ -764,10 +790,10 @@ const snippets$4 = [{
|
|
|
764
790
|
code: '<Textarea label="Label" />'
|
|
765
791
|
}, {
|
|
766
792
|
name: "With additional labels",
|
|
767
|
-
code: '<Textarea
|
|
793
|
+
code: '<Textarea\n label="Label"\n secondaryLabel="optional"\n tertiaryLabel={\n <TextLink href="#">\n <IconHelp /> Help\n </TextLink>} />'
|
|
768
794
|
}, {
|
|
769
795
|
name: "With a description",
|
|
770
|
-
code: '<Textarea
|
|
796
|
+
code: '<Textarea\n label="Label"\n description="More detailed description of field." />'
|
|
771
797
|
}, {
|
|
772
798
|
name: "With a critical message",
|
|
773
799
|
code: '<Textarea label="Label" tone="critical" message="Critical message" />'
|
|
@@ -785,10 +811,10 @@ const snippets$4 = [{
|
|
|
785
811
|
code: '<Textarea label="Label" grow={true} lineLimit={7} />'
|
|
786
812
|
}, {
|
|
787
813
|
name: "With character limit",
|
|
788
|
-
code: '<Textarea
|
|
814
|
+
code: '<Textarea\n label="Label"\n description="Character limit of 100"\n characterLimit={100} />'
|
|
789
815
|
}, {
|
|
790
816
|
name: "With a highlighted range",
|
|
791
|
-
code: '<Textarea
|
|
817
|
+
code: '<Textarea\n label="Label"\n description="Characters 11-20 are highlighted"\n tone="critical"\n message="Critical message"\n highlightRanges={[{ start: 11, end: 20 }]} />'
|
|
792
818
|
}];
|
|
793
819
|
const snippets$3 = [{
|
|
794
820
|
name: "2 columns, small space",
|
|
@@ -798,10 +824,10 @@ const snippets$3 = [{
|
|
|
798
824
|
code: '<Tiles space="medium" columns={3}>\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n </Tiles>'
|
|
799
825
|
}, {
|
|
800
826
|
name: "2 columns on mobile, 4 above tablet",
|
|
801
|
-
code: '<Tiles space="small" columns={{
|
|
827
|
+
code: '<Tiles space="small" columns={{ mobile: 2, tablet: 4 }}>\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n </Tiles>'
|
|
802
828
|
}, {
|
|
803
829
|
name: "Dividers in single column",
|
|
804
|
-
code: '<Tiles space="small" columns={{
|
|
830
|
+
code: '<Tiles space="small" columns={{ mobile: 1, tablet: 2 }} dividers>\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n <Placeholder height={48} />\n </Tiles>'
|
|
805
831
|
}];
|
|
806
832
|
const snippets$2 = [{
|
|
807
833
|
name: "Standard",
|
|
@@ -818,7 +844,7 @@ const snippets$2 = [{
|
|
|
818
844
|
}];
|
|
819
845
|
const snippets$1 = [{
|
|
820
846
|
name: "Standard",
|
|
821
|
-
code: '<TooltipRenderer tooltip={<Text>This is a tooltip!</Text>}>\n {({
|
|
847
|
+
code: '<TooltipRenderer tooltip={<Text>This is a tooltip!</Text>}>\n {({ triggerProps }) =>\n <Box {...triggerProps}>\n <Placeholder label="Tooltip trigger" height={100} />\n </Box>}\n\n </TooltipRenderer>'
|
|
822
848
|
}];
|
|
823
849
|
const snippets = Object.entries({
|
|
824
850
|
Accordion: snippets$K,
|