braid-design-system 34.1.0 → 34.2.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 +58 -0
- package/dist/color-mode/query-param.d.cts +1 -1
- package/dist/color-mode/query-param.d.mts +1 -1
- package/dist/css.cjs +3 -2
- package/dist/css.d.cts +4 -0
- package/dist/css.d.mts +4 -0
- package/dist/css.mjs +3 -2
- package/dist/lib/components/Badge/Badge.cjs +3 -1
- package/dist/lib/components/Badge/Badge.d.cts +2 -0
- package/dist/lib/components/Badge/Badge.d.mts +2 -0
- package/dist/lib/components/Badge/Badge.mjs +3 -1
- package/dist/lib/components/Drawer/Drawer.d.cts +1 -1
- package/dist/lib/components/Drawer/Drawer.d.mts +1 -1
- package/dist/lib/components/MenuRenderer/MenuRenderer.cjs +1 -1
- package/dist/lib/components/MenuRenderer/MenuRenderer.mjs +1 -1
- package/dist/lib/components/private/Modal/Modal.css.cjs +20 -3
- package/dist/lib/components/private/Modal/Modal.css.mjs +18 -5
- package/dist/lib/components/private/Modal/ModalContent.cjs +131 -67
- package/dist/lib/components/private/Modal/ModalContent.d.cts +9 -3
- package/dist/lib/components/private/Modal/ModalContent.d.mts +9 -3
- package/dist/lib/components/private/Modal/ModalContent.mjs +134 -70
- package/dist/lib/components/private/ScrollContainer/ScrollContainer.cjs +25 -6
- package/dist/lib/components/private/ScrollContainer/ScrollContainer.css.cjs +14 -6
- package/dist/lib/components/private/ScrollContainer/ScrollContainer.css.mjs +15 -7
- package/dist/lib/components/private/ScrollContainer/ScrollContainer.mjs +25 -6
- package/dist/lib/components/private/scrollbars.css.cjs +27 -0
- package/dist/lib/components/private/scrollbars.css.mjs +26 -0
- package/dist/lib/playroom/snippets/BrandedContainer.cjs +16 -0
- package/dist/lib/playroom/snippets/BrandedContainer.mjs +15 -0
- package/dist/lib/playroom/snippets/CardList.cjs +10 -0
- package/dist/lib/playroom/snippets/CardList.mjs +9 -0
- package/dist/lib/playroom/snippets/CompactPage.cjs +10 -0
- package/dist/lib/playroom/snippets/CompactPage.mjs +9 -0
- package/dist/lib/playroom/snippets/DividedList.cjs +10 -0
- package/dist/lib/playroom/snippets/DividedList.mjs +9 -0
- package/dist/lib/playroom/snippets/Form.cjs +14 -0
- package/dist/lib/playroom/snippets/Form.mjs +13 -0
- package/dist/lib/playroom/snippets/SpaciousPage.cjs +10 -0
- package/dist/lib/playroom/snippets/SpaciousPage.mjs +9 -0
- package/dist/lib/playroom/snippets/StandardPage.cjs +10 -0
- package/dist/lib/playroom/snippets/StandardPage.mjs +9 -0
- package/dist/lib/playroom/snippets/StandardSection.cjs +10 -0
- package/dist/lib/playroom/snippets/StandardSection.mjs +9 -0
- package/dist/lib/playroom/snippets/SteppedSection.cjs +10 -0
- package/dist/lib/playroom/snippets/SteppedSection.mjs +9 -0
- package/dist/lib/playroom/snippets/TabbedSection.cjs +10 -0
- package/dist/lib/playroom/snippets/TabbedSection.mjs +9 -0
- package/dist/lib/playroom/snippets/TableSection.cjs +10 -0
- package/dist/lib/playroom/snippets/TableSection.mjs +9 -0
- package/dist/lib/playroom/snippets.cjs +22 -4
- package/dist/lib/playroom/snippets.mjs +108 -90
- package/dist/lib/themes/baseTokens/nvl.cjs +1 -1
- package/dist/lib/themes/baseTokens/nvl.mjs +1 -1
- package/package.json +3 -4
- package/dist/lib/playroom/snippets/layouts.cjs +0 -22
- package/dist/lib/playroom/snippets/layouts.mjs +0 -21
- package/dist/lib/playroom/snippets/sections.cjs +0 -59
- package/dist/lib/playroom/snippets/sections.mjs +0 -58
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/CardList.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Sections",
|
|
5
|
+
name: "Card list",
|
|
6
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n\n <Stack component=\"ul\" space=\"small\">\n {[\n {\n title: \"Item 1\",\n subTitle: \"Ea proident nulla veniam\",\n description: \"Lorem ipsum\",\n date: \"2d ago\",\n },\n {\n title: \"Item 2\",\n subTitle: \"Occaecat ad sunt elit\",\n description: \"Consectetur adipiscing\",\n date: \"6d ago\",\n },\n {\n title: \"Item 3\",\n subTitle: \"Commodo exercitation nisi laborum\",\n description: \"Vel odio\",\n date: \"3w ago\",\n },\n ].map((item) => (\n <Box component=\"li\" key={item.title}>\n <Card component=\"article\">\n <Stack space=\"medium\">\n <Stack space=\"small\">\n <Heading level=\"4\">{item.title}</Heading>\n <Text>{item.subTitle}</Text>\n </Stack>\n <Text>{item.description}</Text>\n <Text tone=\"secondary\">{item.date}</Text>\n </Stack>\n </Card>\n </Box>\n ))}\n </Stack>\n\n <Actions>\n <Button>Action (optional)</Button>\n </Actions>\n </Stack>\n</PageBlock>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/CardList.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Sections",
|
|
4
|
+
name: "Card list",
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n\n <Stack component=\"ul\" space=\"small\">\n {[\n {\n title: \"Item 1\",\n subTitle: \"Ea proident nulla veniam\",\n description: \"Lorem ipsum\",\n date: \"2d ago\",\n },\n {\n title: \"Item 2\",\n subTitle: \"Occaecat ad sunt elit\",\n description: \"Consectetur adipiscing\",\n date: \"6d ago\",\n },\n {\n title: \"Item 3\",\n subTitle: \"Commodo exercitation nisi laborum\",\n description: \"Vel odio\",\n date: \"3w ago\",\n },\n ].map((item) => (\n <Box component=\"li\" key={item.title}>\n <Card component=\"article\">\n <Stack space=\"medium\">\n <Stack space=\"small\">\n <Heading level=\"4\">{item.title}</Heading>\n <Text>{item.subTitle}</Text>\n </Stack>\n <Text>{item.description}</Text>\n <Text tone=\"secondary\">{item.date}</Text>\n </Stack>\n </Card>\n </Box>\n ))}\n </Stack>\n\n <Actions>\n <Button>Action (optional)</Button>\n </Actions>\n </Stack>\n</PageBlock>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/CompactPage.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Layouts",
|
|
5
|
+
name: "Compact Page",
|
|
6
|
+
code: "<Page footer={<PlaceholderFooter />} footerPosition=\"belowFold\">\n <Stack space=\"xlarge\">\n <PlaceholderHeader />\n\n <PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"2\">Compact Page</Heading>\n\n <Text>\n Combines a <Strong>Heading level 2</Strong> with{\" \"}\n <Strong>xlarge Stack</Strong> spacing between sections, where each\n section uses a <Strong>medium PageBlock</Strong> to establish content\n max width and consistent screen gutters.\n </Text>\n\n <Text>\n If providing text immediately below the Heading, consider using{\" \"}\n <Strong>standard Text</Strong> and grouping with a{\" \"}\n <Strong>medium Stack</Strong>.\n </Text>\n\n <Text>\n Use this layout as a starting point where information density needs to\n be optimised.\n </Text>\n </Stack>\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={300} />\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={250} />\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={400} />\n </PageBlock>\n </Stack>\n</Page>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/CompactPage.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Layouts",
|
|
4
|
+
name: "Compact Page",
|
|
5
|
+
code: "<Page footer={<PlaceholderFooter />} footerPosition=\"belowFold\">\n <Stack space=\"xlarge\">\n <PlaceholderHeader />\n\n <PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"2\">Compact Page</Heading>\n\n <Text>\n Combines a <Strong>Heading level 2</Strong> with{\" \"}\n <Strong>xlarge Stack</Strong> spacing between sections, where each\n section uses a <Strong>medium PageBlock</Strong> to establish content\n max width and consistent screen gutters.\n </Text>\n\n <Text>\n If providing text immediately below the Heading, consider using{\" \"}\n <Strong>standard Text</Strong> and grouping with a{\" \"}\n <Strong>medium Stack</Strong>.\n </Text>\n\n <Text>\n Use this layout as a starting point where information density needs to\n be optimised.\n </Text>\n </Stack>\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={300} />\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={250} />\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={400} />\n </PageBlock>\n </Stack>\n</Page>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/DividedList.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Sections",
|
|
5
|
+
name: "Divided list",
|
|
6
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n\n {[\n {\n title: \"Item 1\",\n description: \"Lorem ipsum\",\n },\n {\n title: \"Item 2\",\n description: \"Consectetur adipiscing\",\n },\n {\n title: \"Item 3\",\n description: \"Vel odio\",\n },\n ].map((item) => (\n <Fragment key={item.title}>\n <Columns space=\"small\">\n <Column>\n <Stack space=\"small\">\n <Text component=\"h4\" weight=\"strong\">\n {item.title}\n </Text>\n <Text tone=\"secondary\">{item.description}</Text>\n </Stack>\n </Column>\n <Column width=\"content\">\n <ButtonIcon\n variant=\"transparent\"\n icon={<IconEdit />}\n label=\"Edit\"\n />\n </Column>\n </Columns>\n <Divider />\n </Fragment>\n ))}\n\n <Actions>\n <Button>Action (optional)</Button>\n </Actions>\n </Stack>\n</PageBlock>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/DividedList.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Sections",
|
|
4
|
+
name: "Divided list",
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n\n {[\n {\n title: \"Item 1\",\n description: \"Lorem ipsum\",\n },\n {\n title: \"Item 2\",\n description: \"Consectetur adipiscing\",\n },\n {\n title: \"Item 3\",\n description: \"Vel odio\",\n },\n ].map((item) => (\n <Fragment key={item.title}>\n <Columns space=\"small\">\n <Column>\n <Stack space=\"small\">\n <Text component=\"h4\" weight=\"strong\">\n {item.title}\n </Text>\n <Text tone=\"secondary\">{item.description}</Text>\n </Stack>\n </Column>\n <Column width=\"content\">\n <ButtonIcon\n variant=\"transparent\"\n icon={<IconEdit />}\n label=\"Edit\"\n />\n </Column>\n </Columns>\n <Divider />\n </Fragment>\n ))}\n\n <Actions>\n <Button>Action (optional)</Button>\n </Actions>\n </Stack>\n</PageBlock>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/Form.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Sections",
|
|
5
|
+
name: "Form (basic)",
|
|
6
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"xlarge\">\n <Stack space=\"small\">\n <Heading level=\"3\">Heading</Heading>\n\n <Text>\n For forms with minimal or no validation as errors will impact layout.\n </Text>\n\n <Text>\n Uses a <Strong>large Stack</Strong> for fields, with a{\" \"}\n <Strong>xlarge Stack</Strong> separating the actions from the form.\n </Text>\n </Stack>\n\n <Stack space=\"large\">\n <TextField label=\"TextField\" />\n\n <Dropdown\n label=\"Dropdown\"\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n >\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>\n\n <MonthPicker label=\"MonthPicker\" />\n\n <Checkbox label=\"Checkbox\" />\n </Stack>\n\n <Actions>\n <Button>Primary action</Button>\n <Button variant=\"transparent\" onClick={() => toggleState(\"error\")}>\n Toggle error\n </Button>\n </Actions>\n </Stack>\n</PageBlock>"
|
|
7
|
+
}, {
|
|
8
|
+
group: "Sections",
|
|
9
|
+
name: "Form (validation)",
|
|
10
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"xlarge\">\n <Stack space=\"small\">\n <Heading level=\"3\">Heading</Heading>\n\n <Text>\n For forms that are more likely to show validation errors, it is\n recommended to use <Strong>reserveMessageSpace</Strong> to prevent the\n elements shifting when messages appear.\n </Text>\n\n <Text>\n Uses a <Strong>small Stack</Strong> for fields, with a{\" \"}\n <Strong>large Stack</Strong> separating the actions from the form.\n </Text>\n </Stack>\n\n <Stack space=\"large\">\n <Stack space=\"small\">\n <TextField\n label=\"TextField\"\n reserveMessageSpace\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n />\n\n <Dropdown\n label=\"Dropdown\"\n reserveMessageSpace\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n >\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>\n\n <MonthPicker\n label=\"MonthPicker\"\n reserveMessageSpace\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n />\n\n <Checkbox\n label=\"Checkbox\"\n reserveMessageSpace\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n />\n </Stack>\n\n <Actions>\n <Button onClick={() => toggleState(\"error\")}>Toggle errors</Button>\n </Actions>\n </Stack>\n </Stack>\n</PageBlock>"
|
|
11
|
+
}];
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/Form.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Sections",
|
|
4
|
+
name: "Form (basic)",
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"xlarge\">\n <Stack space=\"small\">\n <Heading level=\"3\">Heading</Heading>\n\n <Text>\n For forms with minimal or no validation as errors will impact layout.\n </Text>\n\n <Text>\n Uses a <Strong>large Stack</Strong> for fields, with a{\" \"}\n <Strong>xlarge Stack</Strong> separating the actions from the form.\n </Text>\n </Stack>\n\n <Stack space=\"large\">\n <TextField label=\"TextField\" />\n\n <Dropdown\n label=\"Dropdown\"\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n >\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>\n\n <MonthPicker label=\"MonthPicker\" />\n\n <Checkbox label=\"Checkbox\" />\n </Stack>\n\n <Actions>\n <Button>Primary action</Button>\n <Button variant=\"transparent\" onClick={() => toggleState(\"error\")}>\n Toggle error\n </Button>\n </Actions>\n </Stack>\n</PageBlock>"
|
|
6
|
+
}, {
|
|
7
|
+
group: "Sections",
|
|
8
|
+
name: "Form (validation)",
|
|
9
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"xlarge\">\n <Stack space=\"small\">\n <Heading level=\"3\">Heading</Heading>\n\n <Text>\n For forms that are more likely to show validation errors, it is\n recommended to use <Strong>reserveMessageSpace</Strong> to prevent the\n elements shifting when messages appear.\n </Text>\n\n <Text>\n Uses a <Strong>small Stack</Strong> for fields, with a{\" \"}\n <Strong>large Stack</Strong> separating the actions from the form.\n </Text>\n </Stack>\n\n <Stack space=\"large\">\n <Stack space=\"small\">\n <TextField\n label=\"TextField\"\n reserveMessageSpace\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n />\n\n <Dropdown\n label=\"Dropdown\"\n reserveMessageSpace\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n >\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>\n\n <MonthPicker\n label=\"MonthPicker\"\n reserveMessageSpace\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n />\n\n <Checkbox\n label=\"Checkbox\"\n reserveMessageSpace\n tone={getState(\"error\") ? \"critical\" : undefined}\n message={getState(\"error\") ? \"Required field\" : undefined}\n />\n </Stack>\n\n <Actions>\n <Button onClick={() => toggleState(\"error\")}>Toggle errors</Button>\n </Actions>\n </Stack>\n </Stack>\n</PageBlock>"
|
|
10
|
+
}];
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { snippets };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/SpaciousPage.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Layouts",
|
|
5
|
+
name: "Spacious Page",
|
|
6
|
+
code: "<Page footer={<PlaceholderFooter />} footerPosition=\"belowFold\">\n <Stack space=\"xxxlarge\">\n <PlaceholderHeader />\n\n <PageBlock width=\"large\">\n <Stack space=\"large\">\n <Heading level=\"1\">Spacious Page</Heading>\n\n <Text size=\"large\">\n Combines a <Strong>Heading level 1</Strong> with{\" \"}\n <Strong>xxxlarge Stack</Strong> spacing between sections, where each\n section uses a <Strong>large PageBlock</Strong> to establish content\n max width and consistent screen gutters.\n </Text>\n\n <Text size=\"large\">\n If providing text immediately below the Heading, consider using{\" \"}\n <Strong>large Text</Strong> and grouping with a{\" \"}\n <Strong>large Stack</Strong>.\n </Text>\n\n <Text size=\"large\">\n Use this layout for landing pages and larger form content.\n </Text>\n </Stack>\n </PageBlock>\n\n <PageBlock width=\"large\">\n <Placeholder label=\"Section\" height={300} />\n </PageBlock>\n\n <PageBlock width=\"large\">\n <Placeholder label=\"Section\" height={250} />\n </PageBlock>\n\n <PageBlock width=\"large\">\n <Placeholder label=\"Section\" height={400} />\n </PageBlock>\n </Stack>\n</Page>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/SpaciousPage.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Layouts",
|
|
4
|
+
name: "Spacious Page",
|
|
5
|
+
code: "<Page footer={<PlaceholderFooter />} footerPosition=\"belowFold\">\n <Stack space=\"xxxlarge\">\n <PlaceholderHeader />\n\n <PageBlock width=\"large\">\n <Stack space=\"large\">\n <Heading level=\"1\">Spacious Page</Heading>\n\n <Text size=\"large\">\n Combines a <Strong>Heading level 1</Strong> with{\" \"}\n <Strong>xxxlarge Stack</Strong> spacing between sections, where each\n section uses a <Strong>large PageBlock</Strong> to establish content\n max width and consistent screen gutters.\n </Text>\n\n <Text size=\"large\">\n If providing text immediately below the Heading, consider using{\" \"}\n <Strong>large Text</Strong> and grouping with a{\" \"}\n <Strong>large Stack</Strong>.\n </Text>\n\n <Text size=\"large\">\n Use this layout for landing pages and larger form content.\n </Text>\n </Stack>\n </PageBlock>\n\n <PageBlock width=\"large\">\n <Placeholder label=\"Section\" height={300} />\n </PageBlock>\n\n <PageBlock width=\"large\">\n <Placeholder label=\"Section\" height={250} />\n </PageBlock>\n\n <PageBlock width=\"large\">\n <Placeholder label=\"Section\" height={400} />\n </PageBlock>\n </Stack>\n</Page>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/StandardPage.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Layouts",
|
|
5
|
+
name: "Standard Page",
|
|
6
|
+
code: "<Page footer={<PlaceholderFooter />} footerPosition=\"belowFold\">\n <Stack space=\"xxlarge\">\n <PlaceholderHeader />\n\n <PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"2\">Standard Page</Heading>\n\n <Text>\n Combines a <Strong>Heading level 2</Strong> with{\" \"}\n <Strong>xxlarge Stack</Strong> spacing between sections, where each\n section uses a <Strong>medium PageBlock</Strong> to establish content\n max width and consistent screen gutters.\n </Text>\n\n <Text>\n If providing text immediately below the Heading, consider using{\" \"}\n <Strong>standard Text</Strong> and grouping with a{\" \"}\n <Strong>medium Stack</Strong>.\n </Text>\n\n <Text>Use this layout as a starting point.</Text>\n </Stack>\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={300} />\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={250} />\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={400} />\n </PageBlock>\n </Stack>\n</Page>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/StandardPage.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Layouts",
|
|
4
|
+
name: "Standard Page",
|
|
5
|
+
code: "<Page footer={<PlaceholderFooter />} footerPosition=\"belowFold\">\n <Stack space=\"xxlarge\">\n <PlaceholderHeader />\n\n <PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"2\">Standard Page</Heading>\n\n <Text>\n Combines a <Strong>Heading level 2</Strong> with{\" \"}\n <Strong>xxlarge Stack</Strong> spacing between sections, where each\n section uses a <Strong>medium PageBlock</Strong> to establish content\n max width and consistent screen gutters.\n </Text>\n\n <Text>\n If providing text immediately below the Heading, consider using{\" \"}\n <Strong>standard Text</Strong> and grouping with a{\" \"}\n <Strong>medium Stack</Strong>.\n </Text>\n\n <Text>Use this layout as a starting point.</Text>\n </Stack>\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={300} />\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={250} />\n </PageBlock>\n\n <PageBlock width=\"medium\">\n <Placeholder label=\"Section\" height={400} />\n </PageBlock>\n </Stack>\n</Page>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/StandardSection.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Sections",
|
|
5
|
+
name: "Standard Section",
|
|
6
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Stack space=\"small\">\n <Heading level=\"3\">Heading</Heading>\n\n <Text tone=\"secondary\">\n Subtitle (optional, consider using secondary tone to avoid clashing with\n content below)\n </Text>\n </Stack>\n\n <Text>\n Combines a <Strong>Heading level 3</Strong> with a{\" \"}\n <Strong>medium Stack</Strong> spacing content groups within the section.\n </Text>\n\n <Text>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In convallis\n cursus quam nec volutpat. In hac habitasse platea dictumst. Praesent\n egestas erat id mollis imperdiet. Vestibulum non commodo nisi, sed tempus\n magna. Duis a malesuada diam.\n </Text>\n\n <Actions>\n <Button>Action (optional)</Button>\n </Actions>\n </Stack>\n</PageBlock>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/StandardSection.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Sections",
|
|
4
|
+
name: "Standard Section",
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Stack space=\"small\">\n <Heading level=\"3\">Heading</Heading>\n\n <Text tone=\"secondary\">\n Subtitle (optional, consider using secondary tone to avoid clashing with\n content below)\n </Text>\n </Stack>\n\n <Text>\n Combines a <Strong>Heading level 3</Strong> with a{\" \"}\n <Strong>medium Stack</Strong> spacing content groups within the section.\n </Text>\n\n <Text>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In convallis\n cursus quam nec volutpat. In hac habitasse platea dictumst. Praesent\n egestas erat id mollis imperdiet. Vestibulum non commodo nisi, sed tempus\n magna. Duis a malesuada diam.\n </Text>\n\n <Actions>\n <Button>Action (optional)</Button>\n </Actions>\n </Stack>\n</PageBlock>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/SteppedSection.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Sections",
|
|
5
|
+
name: "Stepped Section",
|
|
6
|
+
code: "<PageBlock width=\"medium\">\n {setDefaultState(\"progress\", 1)}\n {setDefaultState(\"activeStep\", 1)}\n <Stack space=\"large\">\n <Stepper\n label=\"Stepped Block\"\n align=\"left\"\n progress={getState(\"progress\")}\n activeStep={getState(\"activeStep\")}\n onStepClick={({ stepNumber }) => setState(\"activeStep\", stepNumber)}\n >\n <Step>Step 1</Step>\n <Step>Step 2</Step>\n <Step>Step 3</Step>\n <Step>Step 4</Step>\n <Step>Step 5</Step>\n </Stepper>\n\n {getState(\"activeStep\") === 1 && (\n <Placeholder label=\"Step content 1\" height={400} />\n )}\n {getState(\"activeStep\") === 2 && (\n <Placeholder label=\"Step content 2\" height={400} />\n )}\n {getState(\"activeStep\") === 3 && (\n <Placeholder label=\"Step content 3\" height={400} />\n )}\n {getState(\"activeStep\") === 4 && (\n <Placeholder label=\"Step content 4\" height={400} />\n )}\n {getState(\"activeStep\") === 5 && (\n <Placeholder label=\"Step content 5\" height={400} />\n )}\n\n <Columns space=\"small\">\n <Column>\n {getState(\"activeStep\") > 1 && (\n <Actions>\n <Button\n icon={<IconArrow direction=\"left\" />}\n onClick={() => setState(\"activeStep\", getState(\"activeStep\") - 1)}\n >\n Back\n </Button>\n </Actions>\n )}\n </Column>\n <Column width=\"content\">\n {getState(\"activeStep\") < 5 && (\n <Actions>\n <Button\n variant=\"solid\"\n tone=\"formAccent\"\n icon={<IconArrow direction=\"right\" />}\n iconPosition=\"trailing\"\n onClick={() => {\n const newStep = getState(\"activeStep\") + 1\n setState(\"activeStep\", newStep)\n if (newStep > getState(\"progress\")) {\n setState(\"progress\", newStep)\n }\n }}\n >\n Continue\n </Button>\n </Actions>\n )}\n </Column>\n </Columns>\n </Stack>\n</PageBlock>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/SteppedSection.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Sections",
|
|
4
|
+
name: "Stepped Section",
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n {setDefaultState(\"progress\", 1)}\n {setDefaultState(\"activeStep\", 1)}\n <Stack space=\"large\">\n <Stepper\n label=\"Stepped Block\"\n align=\"left\"\n progress={getState(\"progress\")}\n activeStep={getState(\"activeStep\")}\n onStepClick={({ stepNumber }) => setState(\"activeStep\", stepNumber)}\n >\n <Step>Step 1</Step>\n <Step>Step 2</Step>\n <Step>Step 3</Step>\n <Step>Step 4</Step>\n <Step>Step 5</Step>\n </Stepper>\n\n {getState(\"activeStep\") === 1 && (\n <Placeholder label=\"Step content 1\" height={400} />\n )}\n {getState(\"activeStep\") === 2 && (\n <Placeholder label=\"Step content 2\" height={400} />\n )}\n {getState(\"activeStep\") === 3 && (\n <Placeholder label=\"Step content 3\" height={400} />\n )}\n {getState(\"activeStep\") === 4 && (\n <Placeholder label=\"Step content 4\" height={400} />\n )}\n {getState(\"activeStep\") === 5 && (\n <Placeholder label=\"Step content 5\" height={400} />\n )}\n\n <Columns space=\"small\">\n <Column>\n {getState(\"activeStep\") > 1 && (\n <Actions>\n <Button\n icon={<IconArrow direction=\"left\" />}\n onClick={() => setState(\"activeStep\", getState(\"activeStep\") - 1)}\n >\n Back\n </Button>\n </Actions>\n )}\n </Column>\n <Column width=\"content\">\n {getState(\"activeStep\") < 5 && (\n <Actions>\n <Button\n variant=\"solid\"\n tone=\"formAccent\"\n icon={<IconArrow direction=\"right\" />}\n iconPosition=\"trailing\"\n onClick={() => {\n const newStep = getState(\"activeStep\") + 1\n setState(\"activeStep\", newStep)\n if (newStep > getState(\"progress\")) {\n setState(\"progress\", newStep)\n }\n }}\n >\n Continue\n </Button>\n </Actions>\n )}\n </Column>\n </Columns>\n </Stack>\n</PageBlock>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/TabbedSection.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Sections",
|
|
5
|
+
name: "Tabbed Section",
|
|
6
|
+
code: "<PageBlock width=\"medium\">\n <TabsProvider>\n <Stack space=\"large\">\n <Tabs divider=\"none\" label=\"Tabs Block\">\n <Tab>Tab 1</Tab>\n <Tab>Tab 2</Tab>\n <Tab>Tab 3</Tab>\n </Tabs>\n\n <TabPanels>\n <TabPanel>\n <Placeholder label=\"Tab 1 content\" height={500} />\n </TabPanel>\n <TabPanel>\n <Placeholder label=\"Tab 2 content\" height={300} />\n </TabPanel>\n <TabPanel>\n <Placeholder label=\"Tab 3 content\" height={400} />\n </TabPanel>\n </TabPanels>\n </Stack>\n </TabsProvider>\n</PageBlock>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/TabbedSection.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Sections",
|
|
4
|
+
name: "Tabbed Section",
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n <TabsProvider>\n <Stack space=\"large\">\n <Tabs divider=\"none\" label=\"Tabs Block\">\n <Tab>Tab 1</Tab>\n <Tab>Tab 2</Tab>\n <Tab>Tab 3</Tab>\n </Tabs>\n\n <TabPanels>\n <TabPanel>\n <Placeholder label=\"Tab 1 content\" height={500} />\n </TabPanel>\n <TabPanel>\n <Placeholder label=\"Tab 2 content\" height={300} />\n </TabPanel>\n <TabPanel>\n <Placeholder label=\"Tab 3 content\" height={400} />\n </TabPanel>\n </TabPanels>\n </Stack>\n </TabsProvider>\n</PageBlock>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/TableSection.ts
|
|
3
|
+
const snippets = [{
|
|
4
|
+
group: "Sections",
|
|
5
|
+
name: "Table Section",
|
|
6
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n\n <Table label=\"Table Block\">\n <TableHeader>\n <TableRow>\n <TableHeaderCell width=\"content\">\n <Text>Status</Text>\n </TableHeaderCell>\n <TableHeaderCell>\n <Text>Data 1</Text>\n </TableHeaderCell>\n <TableHeaderCell>\n <Text>Data 2</Text>\n </TableHeaderCell>\n <TableHeaderCell>\n <Text>Data 3</Text>\n </TableHeaderCell>\n <TableHeaderCell width=\"content\" align=\"right\">\n <Text>Actions</Text>\n </TableHeaderCell>\n </TableRow>\n </TableHeader>\n <TableBody>\n {[\n {\n status: \"Lorem\",\n data1: \"Sit\",\n data2: \"Amet\",\n data3: \"Consectetur\",\n },\n {\n status: \"Ipsum\",\n data1: \"Adipiscing\",\n data2: \"Elit\",\n data3: \"Praesent\",\n },\n {\n status: \"Dolor\",\n data1: \"Semper\",\n data2: \"Interdum\",\n data3: \"Viverra\",\n },\n ].map((row) => (\n <TableRow key={row.data1}>\n <TableCell width=\"content\">\n <Badge>{row.status}</Badge>\n </TableCell>\n <TableCell>\n <Text>{row.data1}</Text>\n </TableCell>\n <TableCell>\n <Text>{row.data2}</Text>\n </TableCell>\n <TableCell>\n <Text>{row.data3}</Text>\n </TableCell>\n <TableCell width=\"content\" align=\"right\">\n <OverflowMenu size=\"small\" label=\"Options\">\n <MenuItem>Option 1</MenuItem>\n <MenuItem>Option 2</MenuItem>\n </OverflowMenu>\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </Stack>\n</PageBlock>"
|
|
7
|
+
}];
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/TableSection.ts
|
|
2
|
+
const snippets = [{
|
|
3
|
+
group: "Sections",
|
|
4
|
+
name: "Table Section",
|
|
5
|
+
code: "<PageBlock width=\"medium\">\n <Stack space=\"medium\">\n <Heading level=\"3\">Heading (optional)</Heading>\n\n <Table label=\"Table Block\">\n <TableHeader>\n <TableRow>\n <TableHeaderCell width=\"content\">\n <Text>Status</Text>\n </TableHeaderCell>\n <TableHeaderCell>\n <Text>Data 1</Text>\n </TableHeaderCell>\n <TableHeaderCell>\n <Text>Data 2</Text>\n </TableHeaderCell>\n <TableHeaderCell>\n <Text>Data 3</Text>\n </TableHeaderCell>\n <TableHeaderCell width=\"content\" align=\"right\">\n <Text>Actions</Text>\n </TableHeaderCell>\n </TableRow>\n </TableHeader>\n <TableBody>\n {[\n {\n status: \"Lorem\",\n data1: \"Sit\",\n data2: \"Amet\",\n data3: \"Consectetur\",\n },\n {\n status: \"Ipsum\",\n data1: \"Adipiscing\",\n data2: \"Elit\",\n data3: \"Praesent\",\n },\n {\n status: \"Dolor\",\n data1: \"Semper\",\n data2: \"Interdum\",\n data3: \"Viverra\",\n },\n ].map((row) => (\n <TableRow key={row.data1}>\n <TableCell width=\"content\">\n <Badge>{row.status}</Badge>\n </TableCell>\n <TableCell>\n <Text>{row.data1}</Text>\n </TableCell>\n <TableCell>\n <Text>{row.data2}</Text>\n </TableCell>\n <TableCell>\n <Text>{row.data3}</Text>\n </TableCell>\n <TableCell width=\"content\" align=\"right\">\n <OverflowMenu size=\"small\" label=\"Options\">\n <MenuItem>Option 1</MenuItem>\n <MenuItem>Option 2</MenuItem>\n </OverflowMenu>\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </Stack>\n</PageBlock>"
|
|
6
|
+
}];
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { snippets };
|
|
@@ -4,19 +4,24 @@ const require_Alert = require('./snippets/Alert.cjs');
|
|
|
4
4
|
const require_Autosuggest = require('./snippets/Autosuggest.cjs');
|
|
5
5
|
const require_Badge = require('./snippets/Badge.cjs');
|
|
6
6
|
const require_Bleed = require('./snippets/Bleed.cjs');
|
|
7
|
+
const require_BrandedContainer = require('./snippets/BrandedContainer.cjs');
|
|
7
8
|
const require_Button = require('./snippets/Button.cjs');
|
|
8
9
|
const require_ButtonIcon = require('./snippets/ButtonIcon.cjs');
|
|
9
10
|
const require_Card = require('./snippets/Card.cjs');
|
|
11
|
+
const require_CardList = require('./snippets/CardList.cjs');
|
|
10
12
|
const require_Checkbox = require('./snippets/Checkbox.cjs');
|
|
11
13
|
const require_Columns = require('./snippets/Columns.cjs');
|
|
14
|
+
const require_CompactPage = require('./snippets/CompactPage.cjs');
|
|
12
15
|
const require_ContentBlock = require('./snippets/ContentBlock.cjs');
|
|
13
16
|
const require_Dialog = require('./snippets/Dialog.cjs');
|
|
14
17
|
const require_Disclosure = require('./snippets/Disclosure.cjs');
|
|
18
|
+
const require_DividedList = require('./snippets/DividedList.cjs');
|
|
15
19
|
const require_Divider = require('./snippets/Divider.cjs');
|
|
16
20
|
const require_Drawer = require('./snippets/Drawer.cjs');
|
|
17
21
|
const require_Dropdown = require('./snippets/Dropdown.cjs');
|
|
18
22
|
const require_FieldLabel = require('./snippets/FieldLabel.cjs');
|
|
19
23
|
const require_FieldMessage = require('./snippets/FieldMessage.cjs');
|
|
24
|
+
const require_Form = require('./snippets/Form.cjs');
|
|
20
25
|
const require_Heading = require('./snippets/Heading.cjs');
|
|
21
26
|
const require_Inline = require('./snippets/Inline.cjs');
|
|
22
27
|
const require_List = require('./snippets/List.cjs');
|
|
@@ -32,11 +37,17 @@ const require_PasswordField = require('./snippets/PasswordField.cjs');
|
|
|
32
37
|
const require_RadioGroup = require('./snippets/RadioGroup.cjs');
|
|
33
38
|
const require_Rating = require('./snippets/Rating.cjs');
|
|
34
39
|
const require_Secondary = require('./snippets/Secondary.cjs');
|
|
40
|
+
const require_SpaciousPage = require('./snippets/SpaciousPage.cjs');
|
|
35
41
|
const require_Spread = require('./snippets/Spread.cjs');
|
|
36
42
|
const require_Stack = require('./snippets/Stack.cjs');
|
|
43
|
+
const require_StandardPage = require('./snippets/StandardPage.cjs');
|
|
44
|
+
const require_StandardSection = require('./snippets/StandardSection.cjs');
|
|
45
|
+
const require_SteppedSection = require('./snippets/SteppedSection.cjs');
|
|
37
46
|
const require_Stepper = require('./snippets/Stepper.cjs');
|
|
38
47
|
const require_Strong = require('./snippets/Strong.cjs');
|
|
48
|
+
const require_TabbedSection = require('./snippets/TabbedSection.cjs');
|
|
39
49
|
const require_Table = require('./snippets/Table.cjs');
|
|
50
|
+
const require_TableSection = require('./snippets/TableSection.cjs');
|
|
40
51
|
const require_Tabs = require('./snippets/Tabs.cjs');
|
|
41
52
|
const require_Tag = require('./snippets/Tag.cjs');
|
|
42
53
|
const require_Text = require('./snippets/Text.cjs');
|
|
@@ -47,8 +58,6 @@ const require_Textarea = require('./snippets/Textarea.cjs');
|
|
|
47
58
|
const require_Tiles = require('./snippets/Tiles.cjs');
|
|
48
59
|
const require_Toggle = require('./snippets/Toggle.cjs');
|
|
49
60
|
const require_TooltipRenderer = require('./snippets/TooltipRenderer.cjs');
|
|
50
|
-
const require_layouts = require('./snippets/layouts.cjs');
|
|
51
|
-
const require_sections = require('./snippets/sections.cjs');
|
|
52
61
|
|
|
53
62
|
//#region src/lib/playroom/snippets.ts
|
|
54
63
|
const groupOrder = [
|
|
@@ -58,8 +67,17 @@ const groupOrder = [
|
|
|
58
67
|
];
|
|
59
68
|
const allSnippets = [];
|
|
60
69
|
const snippetsMap = {
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
BrandedContainer: require_BrandedContainer.snippets,
|
|
71
|
+
CardList: require_CardList.snippets,
|
|
72
|
+
CompactPage: require_CompactPage.snippets,
|
|
73
|
+
DividedList: require_DividedList.snippets,
|
|
74
|
+
Form: require_Form.snippets,
|
|
75
|
+
SpaciousPage: require_SpaciousPage.snippets,
|
|
76
|
+
StandardPage: require_StandardPage.snippets,
|
|
77
|
+
StandardSection: require_StandardSection.snippets,
|
|
78
|
+
SteppedSection: require_SteppedSection.snippets,
|
|
79
|
+
TabbedSection: require_TabbedSection.snippets,
|
|
80
|
+
TableSection: require_TableSection.snippets,
|
|
63
81
|
Accordion: require_Accordion.snippets,
|
|
64
82
|
Actions: require_Actions.snippets,
|
|
65
83
|
Alert: require_Alert.snippets,
|
|
@@ -4,51 +4,60 @@ import { snippets as snippets$2 } from "./snippets/Alert.mjs";
|
|
|
4
4
|
import { snippets as snippets$3 } from "./snippets/Autosuggest.mjs";
|
|
5
5
|
import { snippets as snippets$4 } from "./snippets/Badge.mjs";
|
|
6
6
|
import { snippets as snippets$5 } from "./snippets/Bleed.mjs";
|
|
7
|
-
import { snippets as snippets$6 } from "./snippets/
|
|
8
|
-
import { snippets as snippets$7 } from "./snippets/
|
|
9
|
-
import { snippets as snippets$8 } from "./snippets/
|
|
10
|
-
import { snippets as snippets$9 } from "./snippets/
|
|
11
|
-
import { snippets as snippets$10 } from "./snippets/
|
|
12
|
-
import { snippets as snippets$11 } from "./snippets/
|
|
13
|
-
import { snippets as snippets$12 } from "./snippets/
|
|
14
|
-
import { snippets as snippets$13 } from "./snippets/
|
|
15
|
-
import { snippets as snippets$14 } from "./snippets/
|
|
16
|
-
import { snippets as snippets$15 } from "./snippets/
|
|
17
|
-
import { snippets as snippets$16 } from "./snippets/
|
|
18
|
-
import { snippets as snippets$17 } from "./snippets/
|
|
19
|
-
import { snippets as snippets$18 } from "./snippets/
|
|
20
|
-
import { snippets as snippets$19 } from "./snippets/
|
|
21
|
-
import { snippets as snippets$20 } from "./snippets/
|
|
22
|
-
import { snippets as snippets$21 } from "./snippets/
|
|
23
|
-
import { snippets as snippets$22 } from "./snippets/
|
|
24
|
-
import { snippets as snippets$23 } from "./snippets/
|
|
25
|
-
import { snippets as snippets$24 } from "./snippets/
|
|
26
|
-
import { snippets as snippets$25 } from "./snippets/
|
|
27
|
-
import { snippets as snippets$26 } from "./snippets/
|
|
28
|
-
import { snippets as snippets$27 } from "./snippets/
|
|
29
|
-
import { snippets as snippets$28 } from "./snippets/
|
|
30
|
-
import { snippets as snippets$29 } from "./snippets/
|
|
31
|
-
import { snippets as snippets$30 } from "./snippets/
|
|
32
|
-
import { snippets as snippets$31 } from "./snippets/
|
|
33
|
-
import { snippets as snippets$32 } from "./snippets/
|
|
34
|
-
import { snippets as snippets$33 } from "./snippets/
|
|
35
|
-
import { snippets as snippets$34 } from "./snippets/
|
|
36
|
-
import { snippets as snippets$35 } from "./snippets/
|
|
37
|
-
import { snippets as snippets$36 } from "./snippets/
|
|
38
|
-
import { snippets as snippets$37 } from "./snippets/
|
|
39
|
-
import { snippets as snippets$38 } from "./snippets/
|
|
40
|
-
import { snippets as snippets$39 } from "./snippets/
|
|
41
|
-
import { snippets as snippets$40 } from "./snippets/
|
|
42
|
-
import { snippets as snippets$41 } from "./snippets/
|
|
43
|
-
import { snippets as snippets$42 } from "./snippets/
|
|
44
|
-
import { snippets as snippets$43 } from "./snippets/
|
|
45
|
-
import { snippets as snippets$44 } from "./snippets/
|
|
46
|
-
import { snippets as snippets$45 } from "./snippets/
|
|
47
|
-
import { snippets as snippets$46 } from "./snippets/
|
|
48
|
-
import { snippets as snippets$47 } from "./snippets/
|
|
49
|
-
import { snippets as snippets$48 } from "./snippets/
|
|
50
|
-
import { snippets as snippets$49 } from "./snippets/
|
|
51
|
-
import { snippets as snippets$50 } from "./snippets/
|
|
7
|
+
import { snippets as snippets$6 } from "./snippets/BrandedContainer.mjs";
|
|
8
|
+
import { snippets as snippets$7 } from "./snippets/Button.mjs";
|
|
9
|
+
import { snippets as snippets$8 } from "./snippets/ButtonIcon.mjs";
|
|
10
|
+
import { snippets as snippets$9 } from "./snippets/Card.mjs";
|
|
11
|
+
import { snippets as snippets$10 } from "./snippets/CardList.mjs";
|
|
12
|
+
import { snippets as snippets$11 } from "./snippets/Checkbox.mjs";
|
|
13
|
+
import { snippets as snippets$12 } from "./snippets/Columns.mjs";
|
|
14
|
+
import { snippets as snippets$13 } from "./snippets/CompactPage.mjs";
|
|
15
|
+
import { snippets as snippets$14 } from "./snippets/ContentBlock.mjs";
|
|
16
|
+
import { snippets as snippets$15 } from "./snippets/Dialog.mjs";
|
|
17
|
+
import { snippets as snippets$16 } from "./snippets/Disclosure.mjs";
|
|
18
|
+
import { snippets as snippets$17 } from "./snippets/DividedList.mjs";
|
|
19
|
+
import { snippets as snippets$18 } from "./snippets/Divider.mjs";
|
|
20
|
+
import { snippets as snippets$19 } from "./snippets/Drawer.mjs";
|
|
21
|
+
import { snippets as snippets$20 } from "./snippets/Dropdown.mjs";
|
|
22
|
+
import { snippets as snippets$21 } from "./snippets/FieldLabel.mjs";
|
|
23
|
+
import { snippets as snippets$22 } from "./snippets/FieldMessage.mjs";
|
|
24
|
+
import { snippets as snippets$23 } from "./snippets/Form.mjs";
|
|
25
|
+
import { snippets as snippets$24 } from "./snippets/Heading.mjs";
|
|
26
|
+
import { snippets as snippets$25 } from "./snippets/Inline.mjs";
|
|
27
|
+
import { snippets as snippets$26 } from "./snippets/List.mjs";
|
|
28
|
+
import { snippets as snippets$27 } from "./snippets/Loader.mjs";
|
|
29
|
+
import { snippets as snippets$28 } from "./snippets/MenuRenderer.mjs";
|
|
30
|
+
import { snippets as snippets$29 } from "./snippets/MonthPicker.mjs";
|
|
31
|
+
import { snippets as snippets$30 } from "./snippets/Notice.mjs";
|
|
32
|
+
import { snippets as snippets$31 } from "./snippets/OverflowMenu.mjs";
|
|
33
|
+
import { snippets as snippets$32 } from "./snippets/Page.mjs";
|
|
34
|
+
import { snippets as snippets$33 } from "./snippets/PageBlock.mjs";
|
|
35
|
+
import { snippets as snippets$34 } from "./snippets/Pagination.mjs";
|
|
36
|
+
import { snippets as snippets$35 } from "./snippets/PasswordField.mjs";
|
|
37
|
+
import { snippets as snippets$36 } from "./snippets/RadioGroup.mjs";
|
|
38
|
+
import { snippets as snippets$37 } from "./snippets/Rating.mjs";
|
|
39
|
+
import { snippets as snippets$38 } from "./snippets/Secondary.mjs";
|
|
40
|
+
import { snippets as snippets$39 } from "./snippets/SpaciousPage.mjs";
|
|
41
|
+
import { snippets as snippets$40 } from "./snippets/Spread.mjs";
|
|
42
|
+
import { snippets as snippets$41 } from "./snippets/Stack.mjs";
|
|
43
|
+
import { snippets as snippets$42 } from "./snippets/StandardPage.mjs";
|
|
44
|
+
import { snippets as snippets$43 } from "./snippets/StandardSection.mjs";
|
|
45
|
+
import { snippets as snippets$44 } from "./snippets/SteppedSection.mjs";
|
|
46
|
+
import { snippets as snippets$45 } from "./snippets/Stepper.mjs";
|
|
47
|
+
import { snippets as snippets$46 } from "./snippets/Strong.mjs";
|
|
48
|
+
import { snippets as snippets$47 } from "./snippets/TabbedSection.mjs";
|
|
49
|
+
import { snippets as snippets$48 } from "./snippets/Table.mjs";
|
|
50
|
+
import { snippets as snippets$49 } from "./snippets/TableSection.mjs";
|
|
51
|
+
import { snippets as snippets$50 } from "./snippets/Tabs.mjs";
|
|
52
|
+
import { snippets as snippets$51 } from "./snippets/Tag.mjs";
|
|
53
|
+
import { snippets as snippets$52 } from "./snippets/Text.mjs";
|
|
54
|
+
import { snippets as snippets$53 } from "./snippets/TextDropdown.mjs";
|
|
55
|
+
import { snippets as snippets$54 } from "./snippets/TextField.mjs";
|
|
56
|
+
import { snippets as snippets$55 } from "./snippets/TextLink.mjs";
|
|
57
|
+
import { snippets as snippets$56 } from "./snippets/Textarea.mjs";
|
|
58
|
+
import { snippets as snippets$57 } from "./snippets/Tiles.mjs";
|
|
59
|
+
import { snippets as snippets$58 } from "./snippets/Toggle.mjs";
|
|
60
|
+
import { snippets as snippets$59 } from "./snippets/TooltipRenderer.mjs";
|
|
52
61
|
|
|
53
62
|
//#region src/lib/playroom/snippets.ts
|
|
54
63
|
const groupOrder = [
|
|
@@ -58,57 +67,66 @@ const groupOrder = [
|
|
|
58
67
|
];
|
|
59
68
|
const allSnippets = [];
|
|
60
69
|
const snippetsMap = {
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
BrandedContainer: snippets$6,
|
|
71
|
+
CardList: snippets$10,
|
|
72
|
+
CompactPage: snippets$13,
|
|
73
|
+
DividedList: snippets$17,
|
|
74
|
+
Form: snippets$23,
|
|
75
|
+
SpaciousPage: snippets$39,
|
|
76
|
+
StandardPage: snippets$42,
|
|
77
|
+
StandardSection: snippets$43,
|
|
78
|
+
SteppedSection: snippets$44,
|
|
79
|
+
TabbedSection: snippets$47,
|
|
80
|
+
TableSection: snippets$49,
|
|
63
81
|
Accordion: snippets,
|
|
64
82
|
Actions: snippets$1,
|
|
65
83
|
Alert: snippets$2,
|
|
66
84
|
Autosuggest: snippets$3,
|
|
67
85
|
Badge: snippets$4,
|
|
68
86
|
Bleed: snippets$5,
|
|
69
|
-
Button: snippets$
|
|
70
|
-
ButtonIcon: snippets$
|
|
71
|
-
Card: snippets$
|
|
72
|
-
Checkbox: snippets$
|
|
73
|
-
Columns: snippets$
|
|
74
|
-
ContentBlock: snippets$
|
|
75
|
-
Dialog: snippets$
|
|
76
|
-
Disclosure: snippets$
|
|
77
|
-
Divider: snippets$
|
|
78
|
-
Drawer: snippets$
|
|
79
|
-
Dropdown: snippets$
|
|
80
|
-
FieldLabel: snippets$
|
|
81
|
-
FieldMessage: snippets$
|
|
82
|
-
Heading: snippets$
|
|
83
|
-
Inline: snippets$
|
|
84
|
-
List: snippets$
|
|
85
|
-
Loader: snippets$
|
|
86
|
-
MenuRenderer: snippets$
|
|
87
|
-
MonthPicker: snippets$
|
|
88
|
-
Notice: snippets$
|
|
89
|
-
OverflowMenu: snippets$
|
|
90
|
-
Page: snippets$
|
|
91
|
-
PageBlock: snippets$
|
|
92
|
-
Pagination: snippets$
|
|
93
|
-
PasswordField: snippets$
|
|
94
|
-
RadioGroup: snippets$
|
|
95
|
-
Rating: snippets$
|
|
96
|
-
Secondary: snippets$
|
|
97
|
-
Spread: snippets$
|
|
98
|
-
Stack: snippets$
|
|
99
|
-
Stepper: snippets$
|
|
100
|
-
Strong: snippets$
|
|
101
|
-
Table: snippets$
|
|
102
|
-
Tabs: snippets$
|
|
103
|
-
Tag: snippets$
|
|
104
|
-
Text: snippets$
|
|
105
|
-
TextDropdown: snippets$
|
|
106
|
-
TextField: snippets$
|
|
107
|
-
TextLink: snippets$
|
|
108
|
-
Textarea: snippets$
|
|
109
|
-
Tiles: snippets$
|
|
110
|
-
Toggle: snippets$
|
|
111
|
-
TooltipRenderer: snippets$
|
|
87
|
+
Button: snippets$7,
|
|
88
|
+
ButtonIcon: snippets$8,
|
|
89
|
+
Card: snippets$9,
|
|
90
|
+
Checkbox: snippets$11,
|
|
91
|
+
Columns: snippets$12,
|
|
92
|
+
ContentBlock: snippets$14,
|
|
93
|
+
Dialog: snippets$15,
|
|
94
|
+
Disclosure: snippets$16,
|
|
95
|
+
Divider: snippets$18,
|
|
96
|
+
Drawer: snippets$19,
|
|
97
|
+
Dropdown: snippets$20,
|
|
98
|
+
FieldLabel: snippets$21,
|
|
99
|
+
FieldMessage: snippets$22,
|
|
100
|
+
Heading: snippets$24,
|
|
101
|
+
Inline: snippets$25,
|
|
102
|
+
List: snippets$26,
|
|
103
|
+
Loader: snippets$27,
|
|
104
|
+
MenuRenderer: snippets$28,
|
|
105
|
+
MonthPicker: snippets$29,
|
|
106
|
+
Notice: snippets$30,
|
|
107
|
+
OverflowMenu: snippets$31,
|
|
108
|
+
Page: snippets$32,
|
|
109
|
+
PageBlock: snippets$33,
|
|
110
|
+
Pagination: snippets$34,
|
|
111
|
+
PasswordField: snippets$35,
|
|
112
|
+
RadioGroup: snippets$36,
|
|
113
|
+
Rating: snippets$37,
|
|
114
|
+
Secondary: snippets$38,
|
|
115
|
+
Spread: snippets$40,
|
|
116
|
+
Stack: snippets$41,
|
|
117
|
+
Stepper: snippets$45,
|
|
118
|
+
Strong: snippets$46,
|
|
119
|
+
Table: snippets$48,
|
|
120
|
+
Tabs: snippets$50,
|
|
121
|
+
Tag: snippets$51,
|
|
122
|
+
Text: snippets$52,
|
|
123
|
+
TextDropdown: snippets$53,
|
|
124
|
+
TextField: snippets$54,
|
|
125
|
+
TextLink: snippets$55,
|
|
126
|
+
Textarea: snippets$56,
|
|
127
|
+
Tiles: snippets$57,
|
|
128
|
+
Toggle: snippets$58,
|
|
129
|
+
TooltipRenderer: snippets$59
|
|
112
130
|
};
|
|
113
131
|
for (const [name, snippets] of Object.entries(snippetsMap)) for (const snippet of snippets) allSnippets.push({
|
|
114
132
|
...snippet,
|
|
@@ -18,7 +18,7 @@ const makeTokens = ({ name, displayName, brandAccent, brandAccentLight, brandAcc
|
|
|
18
18
|
displayName,
|
|
19
19
|
typography: {
|
|
20
20
|
fontFamily: "SeekSans, \"SeekSans Fallback\", Arial, Tahoma, sans-serif",
|
|
21
|
-
webFont: "https://www.seek.com
|
|
21
|
+
webFont: "https://www.seek.com/static/shared-web/seeksans.css",
|
|
22
22
|
fontMetrics: {
|
|
23
23
|
capHeight: 783,
|
|
24
24
|
ascent: 1057,
|
|
@@ -17,7 +17,7 @@ const makeTokens = ({ name, displayName, brandAccent, brandAccentLight, brandAcc
|
|
|
17
17
|
displayName,
|
|
18
18
|
typography: {
|
|
19
19
|
fontFamily: "SeekSans, \"SeekSans Fallback\", Arial, Tahoma, sans-serif",
|
|
20
|
-
webFont: "https://www.seek.com
|
|
20
|
+
webFont: "https://www.seek.com/static/shared-web/seeksans.css",
|
|
21
21
|
fontMetrics: {
|
|
22
22
|
capHeight: 783,
|
|
23
23
|
ascent: 1057,
|