braid-design-system 34.0.3 → 34.0.4
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 +14 -0
- package/dist/color-mode/query-param.d.cts +1 -1
- package/dist/color-mode/query-param.d.mts +1 -1
- package/dist/lib/components/Accordion/AccordionContext.d.mts +0 -2
- package/dist/lib/components/Box/Box.playroom.cjs +1 -0
- package/dist/lib/components/Box/Box.playroom.mjs +1 -0
- package/dist/lib/components/Button/Button.d.mts +0 -3
- package/dist/lib/components/Columns/ColumnsContext.d.mts +0 -5
- package/dist/lib/components/Dialog/Dialog.d.mts +0 -3
- package/dist/lib/components/Drawer/Drawer.d.mts +0 -3
- package/dist/lib/components/Hidden/Hidden.d.cts +1 -1
- package/dist/lib/components/Hidden/Hidden.d.mts +1 -1
- package/dist/lib/components/Hidden/Hidden.playroom.cjs +10 -0
- package/dist/lib/components/Hidden/Hidden.playroom.d.cts +7 -0
- package/dist/lib/components/Hidden/Hidden.playroom.d.mts +7 -0
- package/dist/lib/components/Hidden/Hidden.playroom.mjs +9 -0
- package/dist/lib/components/HiddenVisually/HiddenVisually.playroom.cjs +10 -0
- package/dist/lib/components/HiddenVisually/HiddenVisually.playroom.d.cts +7 -0
- package/dist/lib/components/HiddenVisually/HiddenVisually.playroom.d.mts +7 -0
- package/dist/lib/components/HiddenVisually/HiddenVisually.playroom.mjs +9 -0
- package/dist/lib/components/MenuItem/useMenuItem.d.mts +0 -3
- package/dist/lib/components/MenuRenderer/MenuRenderer.d.mts +0 -2
- package/dist/lib/components/Stack/Stack.playroom.cjs +52 -5
- package/dist/lib/components/Stack/Stack.playroom.mjs +53 -6
- package/dist/lib/components/Stepper/StepperContext.d.mts +0 -2
- package/dist/lib/components/Tabs/Tab.d.mts +0 -2
- package/dist/lib/components/Tabs/TabListContext.d.mts +0 -2
- package/dist/lib/components/TextLink/TextLink.d.mts +0 -3
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.d.mts +0 -2
- package/dist/lib/components/icons/IconContainer.d.mts +0 -3
- package/dist/lib/components/icons/SVGTypes.d.mts +0 -2
- package/dist/lib/components/index.d.mts +0 -2
- package/dist/lib/components/private/Field/Field.d.mts +0 -3
- package/dist/lib/components/private/FieldGroup/FieldGroup.d.mts +0 -4
- package/dist/lib/components/private/Modal/Modal.d.mts +0 -3
- package/dist/lib/components/private/Modal/ModalContent.d.mts +0 -2
- package/dist/lib/components/private/Typography/Typography.d.mts +0 -2
- package/dist/lib/css/typography.css.d.mts +0 -2
- package/dist/lib/hooks/useIcon/index.d.mts +0 -1
- package/dist/lib/playroom/FrameComponent.cjs +15 -27
- package/dist/lib/playroom/FrameComponent.d.cts +3 -1
- package/dist/lib/playroom/FrameComponent.d.mts +3 -1
- package/dist/lib/playroom/FrameComponent.mjs +16 -28
- package/dist/lib/playroom/SpaceDebugContext.cjs +8 -0
- package/dist/lib/playroom/SpaceDebugContext.mjs +7 -0
- package/dist/lib/playroom/components/DebugSpace/DebugSpace.cjs +86 -0
- package/dist/lib/playroom/components/DebugSpace/DebugSpace.css.cjs +34 -0
- package/dist/lib/playroom/components/DebugSpace/DebugSpace.css.mjs +28 -0
- package/dist/lib/playroom/components/DebugSpace/DebugSpace.mjs +85 -0
- package/dist/lib/playroom/components.cjs +2 -2
- package/dist/lib/playroom/components.d.cts +2 -2
- package/dist/lib/playroom/components.d.mts +2 -2
- package/dist/lib/playroom/components.mjs +2 -2
- package/dist/lib/playroom/playroomState.d.cts +1 -1
- package/dist/lib/playroom/playroomState.d.mts +1 -3
- package/dist/lib/playroom/snippets/blocks.cjs +59 -0
- package/dist/lib/playroom/snippets/blocks.mjs +58 -0
- package/dist/lib/playroom/snippets/layouts.cjs +22 -0
- package/dist/lib/playroom/snippets/layouts.mjs +21 -0
- package/dist/lib/playroom/snippets.cjs +22 -5
- package/dist/lib/playroom/snippets.d.cts +2 -6
- package/dist/lib/playroom/snippets.d.mts +2 -6
- package/dist/lib/playroom/snippets.mjs +22 -5
- package/dist/lib/playroom/useScope.d.mts +0 -1
- package/dist/lib/utils/align.d.mts +0 -2
- package/dist/playroom/components.cjs +4 -4
- package/dist/playroom/components.d.cts +2 -2
- package/dist/playroom/components.d.mts +2 -2
- package/dist/playroom/components.mjs +2 -2
- package/dist/playroom/frameSettings.cjs +15 -0
- package/dist/playroom/frameSettings.d.cts +8 -0
- package/dist/playroom/frameSettings.d.mts +8 -0
- package/dist/playroom/frameSettings.mjs +13 -0
- package/dist/playroom/snippets.d.cts +2 -2
- package/dist/playroom/snippets.d.mts +2 -2
- package/dist/playroom/snippets.mjs +2 -2
- package/dist/reset.d.mts +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/lib/playroom/snippets/layouts.ts
|
|
3
|
+
const snippets = [
|
|
4
|
+
{
|
|
5
|
+
group: "Layouts",
|
|
6
|
+
name: "Standard Page",
|
|
7
|
+
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>"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
group: "Layouts",
|
|
11
|
+
name: "Compact Page",
|
|
12
|
+
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>"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
group: "Layouts",
|
|
16
|
+
name: "Spacious Page",
|
|
17
|
+
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>"
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.snippets = snippets;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/lib/playroom/snippets/layouts.ts
|
|
2
|
+
const snippets = [
|
|
3
|
+
{
|
|
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
|
+
group: "Layouts",
|
|
10
|
+
name: "Compact Page",
|
|
11
|
+
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>"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
group: "Layouts",
|
|
15
|
+
name: "Spacious Page",
|
|
16
|
+
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>"
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { snippets };
|
|
@@ -47,9 +47,19 @@ const require_Textarea = require('./snippets/Textarea.cjs');
|
|
|
47
47
|
const require_Tiles = require('./snippets/Tiles.cjs');
|
|
48
48
|
const require_Toggle = require('./snippets/Toggle.cjs');
|
|
49
49
|
const require_TooltipRenderer = require('./snippets/TooltipRenderer.cjs');
|
|
50
|
+
const require_blocks = require('./snippets/blocks.cjs');
|
|
51
|
+
const require_layouts = require('./snippets/layouts.cjs');
|
|
50
52
|
|
|
51
53
|
//#region src/lib/playroom/snippets.ts
|
|
52
|
-
|
|
54
|
+
const groupOrder = [
|
|
55
|
+
"Layouts",
|
|
56
|
+
"Blocks",
|
|
57
|
+
"Components"
|
|
58
|
+
];
|
|
59
|
+
const allSnippets = [];
|
|
60
|
+
const snippetsMap = {
|
|
61
|
+
blocks: require_blocks.snippets,
|
|
62
|
+
layouts: require_layouts.snippets,
|
|
53
63
|
Accordion: require_Accordion.snippets,
|
|
54
64
|
Actions: require_Actions.snippets,
|
|
55
65
|
Alert: require_Alert.snippets,
|
|
@@ -99,10 +109,17 @@ var snippets_default = Object.entries({
|
|
|
99
109
|
Tiles: require_Tiles.snippets,
|
|
100
110
|
Toggle: require_Toggle.snippets,
|
|
101
111
|
TooltipRenderer: require_TooltipRenderer.snippets
|
|
102
|
-
}
|
|
112
|
+
};
|
|
113
|
+
for (const [name, snippets] of Object.entries(snippetsMap)) for (const snippet of snippets) allSnippets.push({
|
|
103
114
|
...snippet,
|
|
104
|
-
name: "name" in snippet ? snippet.name : name
|
|
105
|
-
|
|
115
|
+
name: "name" in snippet ? snippet.name : name,
|
|
116
|
+
group: "group" in snippet ? snippet.group : "Components"
|
|
117
|
+
});
|
|
118
|
+
allSnippets.sort((a, b) => {
|
|
119
|
+
const aIndex = groupOrder.indexOf(a.group);
|
|
120
|
+
const bIndex = groupOrder.indexOf(b.group);
|
|
121
|
+
return (aIndex === -1 ? 3 : aIndex) - (bIndex === -1 ? 3 : bIndex);
|
|
122
|
+
});
|
|
106
123
|
|
|
107
124
|
//#endregion
|
|
108
|
-
exports.default =
|
|
125
|
+
exports.default = allSnippets;
|
|
@@ -47,9 +47,19 @@ import { snippets as snippets$45 } from "./snippets/Textarea.mjs";
|
|
|
47
47
|
import { snippets as snippets$46 } from "./snippets/Tiles.mjs";
|
|
48
48
|
import { snippets as snippets$47 } from "./snippets/Toggle.mjs";
|
|
49
49
|
import { snippets as snippets$48 } from "./snippets/TooltipRenderer.mjs";
|
|
50
|
+
import { snippets as snippets$49 } from "./snippets/blocks.mjs";
|
|
51
|
+
import { snippets as snippets$50 } from "./snippets/layouts.mjs";
|
|
50
52
|
|
|
51
53
|
//#region src/lib/playroom/snippets.ts
|
|
52
|
-
|
|
54
|
+
const groupOrder = [
|
|
55
|
+
"Layouts",
|
|
56
|
+
"Blocks",
|
|
57
|
+
"Components"
|
|
58
|
+
];
|
|
59
|
+
const allSnippets = [];
|
|
60
|
+
const snippetsMap = {
|
|
61
|
+
blocks: snippets$49,
|
|
62
|
+
layouts: snippets$50,
|
|
53
63
|
Accordion: snippets,
|
|
54
64
|
Actions: snippets$1,
|
|
55
65
|
Alert: snippets$2,
|
|
@@ -99,10 +109,17 @@ var snippets_default = Object.entries({
|
|
|
99
109
|
Tiles: snippets$46,
|
|
100
110
|
Toggle: snippets$47,
|
|
101
111
|
TooltipRenderer: snippets$48
|
|
102
|
-
}
|
|
112
|
+
};
|
|
113
|
+
for (const [name, snippets] of Object.entries(snippetsMap)) for (const snippet of snippets) allSnippets.push({
|
|
103
114
|
...snippet,
|
|
104
|
-
name: "name" in snippet ? snippet.name : name
|
|
105
|
-
|
|
115
|
+
name: "name" in snippet ? snippet.name : name,
|
|
116
|
+
group: "group" in snippet ? snippet.group : "Components"
|
|
117
|
+
});
|
|
118
|
+
allSnippets.sort((a, b) => {
|
|
119
|
+
const aIndex = groupOrder.indexOf(a.group);
|
|
120
|
+
const bIndex = groupOrder.indexOf(b.group);
|
|
121
|
+
return (aIndex === -1 ? 3 : aIndex) - (bIndex === -1 ? 3 : bIndex);
|
|
122
|
+
});
|
|
106
123
|
|
|
107
124
|
//#endregion
|
|
108
|
-
export {
|
|
125
|
+
export { allSnippets as default };
|
|
@@ -2,7 +2,6 @@ import { breakpoints } from "../css/breakpoints.mjs";
|
|
|
2
2
|
import { RequiredResponsiveObject } from "../css/atoms/sprinkles.css.mjs";
|
|
3
3
|
import { atoms, vars } from "../../css.mjs";
|
|
4
4
|
import { useToast } from "../components/useToast/ToastContext.mjs";
|
|
5
|
-
import "../components/index.mjs";
|
|
6
5
|
import { usePlayroomStore } from "./playroomState.mjs";
|
|
7
6
|
|
|
8
7
|
//#region src/lib/playroom/useScope.d.ts
|
|
@@ -121,7 +121,6 @@ const require_IconZoomOut = require('../lib/components/icons/IconZoomOut/IconZoo
|
|
|
121
121
|
const require_Actions = require('../lib/components/Actions/Actions.cjs');
|
|
122
122
|
const require_Column = require('../lib/components/Column/Column.cjs');
|
|
123
123
|
const require_TooltipRenderer = require('../lib/components/TooltipRenderer/TooltipRenderer.cjs');
|
|
124
|
-
const require_HiddenVisually = require('../lib/components/HiddenVisually/HiddenVisually.cjs');
|
|
125
124
|
const require_Strong = require('../lib/components/Strong/Strong.cjs');
|
|
126
125
|
const require_Secondary = require('../lib/components/Secondary/Secondary.cjs');
|
|
127
126
|
const require_filterSuggestions = require('../lib/components/Autosuggest/filterSuggestions.cjs');
|
|
@@ -129,7 +128,6 @@ const require_BoxRenderer = require('../lib/components/Box/BoxRenderer.cjs');
|
|
|
129
128
|
const require_ContentBlock = require('../lib/components/ContentBlock/ContentBlock.cjs');
|
|
130
129
|
const require_TextLink = require('../lib/components/TextLink/TextLink.cjs');
|
|
131
130
|
const require_TextLinkButton = require('../lib/components/TextLinkButton/TextLinkButton.cjs');
|
|
132
|
-
const require_Hidden = require('../lib/components/Hidden/Hidden.cjs');
|
|
133
131
|
const require_Loader = require('../lib/components/Loader/Loader.cjs');
|
|
134
132
|
const require_MenuItemDivider = require('../lib/components/MenuItemDivider/MenuItemDivider.cjs');
|
|
135
133
|
const require_MenuRenderer = require('../lib/components/MenuRenderer/MenuRenderer.cjs');
|
|
@@ -170,6 +168,8 @@ const require_Dropdown_playroom = require('../lib/components/Dropdown/Dropdown.p
|
|
|
170
168
|
const require_FieldLabel_playroom = require('../lib/components/FieldLabel/FieldLabel.playroom.cjs');
|
|
171
169
|
const require_FieldMessage_playroom = require('../lib/components/FieldMessage/FieldMessage.playroom.cjs');
|
|
172
170
|
const require_Heading_playroom = require('../lib/components/Heading/Heading.playroom.cjs');
|
|
171
|
+
const require_Hidden_playroom = require('../lib/components/Hidden/Hidden.playroom.cjs');
|
|
172
|
+
const require_HiddenVisually_playroom = require('../lib/components/HiddenVisually/HiddenVisually.playroom.cjs');
|
|
173
173
|
const require_Inline_playroom = require('../lib/components/Inline/Inline.playroom.cjs');
|
|
174
174
|
const require_Link_playroom = require('../lib/components/Link/Link.playroom.cjs');
|
|
175
175
|
const require_List_playroom = require('../lib/components/List/List.playroom.cjs');
|
|
@@ -237,8 +237,8 @@ exports.Dropdown = require_Dropdown_playroom.Dropdown;
|
|
|
237
237
|
exports.FieldLabel = require_FieldLabel_playroom.FieldLabel;
|
|
238
238
|
exports.FieldMessage = require_FieldMessage_playroom.FieldMessage;
|
|
239
239
|
exports.Heading = require_Heading_playroom.Heading;
|
|
240
|
-
exports.Hidden =
|
|
241
|
-
exports.HiddenVisually =
|
|
240
|
+
exports.Hidden = require_Hidden_playroom.Hidden;
|
|
241
|
+
exports.HiddenVisually = require_HiddenVisually_playroom.HiddenVisually;
|
|
242
242
|
exports.IconAI = require_IconAI.IconAI;
|
|
243
243
|
exports.IconAdd = require_IconAdd.IconAdd;
|
|
244
244
|
exports.IconArrow = require_IconArrow.IconArrow;
|
|
@@ -12,8 +12,6 @@ import { ContentBlock } from "../lib/components/ContentBlock/ContentBlock.cjs";
|
|
|
12
12
|
import { TextLink } from "../lib/components/TextLink/TextLink.cjs";
|
|
13
13
|
import { TextLinkButton } from "../lib/components/TextLinkButton/TextLinkButton.cjs";
|
|
14
14
|
import { Divider } from "../lib/components/Divider/Divider.cjs";
|
|
15
|
-
import { Hidden } from "../lib/components/Hidden/Hidden.cjs";
|
|
16
|
-
import { HiddenVisually } from "../lib/components/HiddenVisually/HiddenVisually.cjs";
|
|
17
15
|
import { IconRenderer } from "../lib/components/icons/IconRenderer.cjs";
|
|
18
16
|
import { Loader } from "../lib/components/Loader/Loader.cjs";
|
|
19
17
|
import { MenuRenderer } from "../lib/components/MenuRenderer/MenuRenderer.cjs";
|
|
@@ -169,6 +167,8 @@ import { Dropdown } from "../lib/components/Dropdown/Dropdown.playroom.cjs";
|
|
|
169
167
|
import { FieldLabel } from "../lib/components/FieldLabel/FieldLabel.playroom.cjs";
|
|
170
168
|
import { FieldMessage } from "../lib/components/FieldMessage/FieldMessage.playroom.cjs";
|
|
171
169
|
import { Heading } from "../lib/components/Heading/Heading.playroom.cjs";
|
|
170
|
+
import { Hidden } from "../lib/components/Hidden/Hidden.playroom.cjs";
|
|
171
|
+
import { HiddenVisually } from "../lib/components/HiddenVisually/HiddenVisually.playroom.cjs";
|
|
172
172
|
import { Inline } from "../lib/components/Inline/Inline.playroom.cjs";
|
|
173
173
|
import { Link } from "../lib/components/Link/Link.playroom.cjs";
|
|
174
174
|
import { List } from "../lib/components/List/List.playroom.cjs";
|
|
@@ -12,8 +12,6 @@ import { ContentBlock } from "../lib/components/ContentBlock/ContentBlock.mjs";
|
|
|
12
12
|
import { TextLink } from "../lib/components/TextLink/TextLink.mjs";
|
|
13
13
|
import { TextLinkButton } from "../lib/components/TextLinkButton/TextLinkButton.mjs";
|
|
14
14
|
import { Divider } from "../lib/components/Divider/Divider.mjs";
|
|
15
|
-
import { Hidden } from "../lib/components/Hidden/Hidden.mjs";
|
|
16
|
-
import { HiddenVisually } from "../lib/components/HiddenVisually/HiddenVisually.mjs";
|
|
17
15
|
import { IconRenderer } from "../lib/components/icons/IconRenderer.mjs";
|
|
18
16
|
import { Loader } from "../lib/components/Loader/Loader.mjs";
|
|
19
17
|
import { MenuRenderer } from "../lib/components/MenuRenderer/MenuRenderer.mjs";
|
|
@@ -169,6 +167,8 @@ import { Dropdown } from "../lib/components/Dropdown/Dropdown.playroom.mjs";
|
|
|
169
167
|
import { FieldLabel } from "../lib/components/FieldLabel/FieldLabel.playroom.mjs";
|
|
170
168
|
import { FieldMessage } from "../lib/components/FieldMessage/FieldMessage.playroom.mjs";
|
|
171
169
|
import { Heading } from "../lib/components/Heading/Heading.playroom.mjs";
|
|
170
|
+
import { Hidden } from "../lib/components/Hidden/Hidden.playroom.mjs";
|
|
171
|
+
import { HiddenVisually } from "../lib/components/HiddenVisually/HiddenVisually.playroom.mjs";
|
|
172
172
|
import { Inline } from "../lib/components/Inline/Inline.playroom.mjs";
|
|
173
173
|
import { Link } from "../lib/components/Link/Link.playroom.mjs";
|
|
174
174
|
import { List } from "../lib/components/List/List.playroom.mjs";
|
|
@@ -119,7 +119,6 @@ import { IconZoomOut } from "../lib/components/icons/IconZoomOut/IconZoomOut.mjs
|
|
|
119
119
|
import { Actions } from "../lib/components/Actions/Actions.mjs";
|
|
120
120
|
import { Column } from "../lib/components/Column/Column.mjs";
|
|
121
121
|
import { TooltipRenderer } from "../lib/components/TooltipRenderer/TooltipRenderer.mjs";
|
|
122
|
-
import { HiddenVisually } from "../lib/components/HiddenVisually/HiddenVisually.mjs";
|
|
123
122
|
import { Strong } from "../lib/components/Strong/Strong.mjs";
|
|
124
123
|
import { Secondary } from "../lib/components/Secondary/Secondary.mjs";
|
|
125
124
|
import { filterSuggestions } from "../lib/components/Autosuggest/filterSuggestions.mjs";
|
|
@@ -127,7 +126,6 @@ import { BoxRenderer } from "../lib/components/Box/BoxRenderer.mjs";
|
|
|
127
126
|
import { ContentBlock } from "../lib/components/ContentBlock/ContentBlock.mjs";
|
|
128
127
|
import { TextLink } from "../lib/components/TextLink/TextLink.mjs";
|
|
129
128
|
import { TextLinkButton } from "../lib/components/TextLinkButton/TextLinkButton.mjs";
|
|
130
|
-
import { Hidden } from "../lib/components/Hidden/Hidden.mjs";
|
|
131
129
|
import { Loader } from "../lib/components/Loader/Loader.mjs";
|
|
132
130
|
import { MenuItemDivider } from "../lib/components/MenuItemDivider/MenuItemDivider.mjs";
|
|
133
131
|
import { MenuRenderer } from "../lib/components/MenuRenderer/MenuRenderer.mjs";
|
|
@@ -168,6 +166,8 @@ import { Dropdown } from "../lib/components/Dropdown/Dropdown.playroom.mjs";
|
|
|
168
166
|
import { FieldLabel } from "../lib/components/FieldLabel/FieldLabel.playroom.mjs";
|
|
169
167
|
import { FieldMessage } from "../lib/components/FieldMessage/FieldMessage.playroom.mjs";
|
|
170
168
|
import { Heading } from "../lib/components/Heading/Heading.playroom.mjs";
|
|
169
|
+
import { Hidden } from "../lib/components/Hidden/Hidden.playroom.mjs";
|
|
170
|
+
import { HiddenVisually } from "../lib/components/HiddenVisually/HiddenVisually.playroom.mjs";
|
|
171
171
|
import { Inline } from "../lib/components/Inline/Inline.playroom.mjs";
|
|
172
172
|
import { Link } from "../lib/components/Link/Link.playroom.mjs";
|
|
173
173
|
import { List } from "../lib/components/List/List.playroom.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
//#region src/playroom/frameSettings.ts
|
|
4
|
+
const frameSettings = [{
|
|
5
|
+
id: "stackDebug",
|
|
6
|
+
label: "Stack Debug",
|
|
7
|
+
defaultValue: false
|
|
8
|
+
}, {
|
|
9
|
+
id: "darkMode",
|
|
10
|
+
label: "Dark Mode (beta)",
|
|
11
|
+
defaultValue: false
|
|
12
|
+
}];
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.frameSettings = frameSettings;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/playroom/frameSettings.ts
|
|
2
|
+
const frameSettings = [{
|
|
3
|
+
id: "stackDebug",
|
|
4
|
+
label: "Stack Debug",
|
|
5
|
+
defaultValue: false
|
|
6
|
+
}, {
|
|
7
|
+
id: "darkMode",
|
|
8
|
+
label: "Dark Mode (beta)",
|
|
9
|
+
defaultValue: false
|
|
10
|
+
}];
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { frameSettings };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export =
|
|
1
|
+
import { allSnippets } from "../lib/playroom/snippets.cjs";
|
|
2
|
+
export = allSnippets;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { allSnippets } from "../lib/playroom/snippets.mjs";
|
|
2
|
+
export { allSnippets as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import allSnippets from "../lib/playroom/snippets.mjs";
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { allSnippets as default };
|
package/dist/reset.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "braid-design-system",
|
|
3
|
-
"version": "34.0.
|
|
3
|
+
"version": "34.0.4",
|
|
4
4
|
"description": "Themeable design system for the SEEK Group",
|
|
5
5
|
"homepage": "https://seek-oss.github.io/braid-design-system/",
|
|
6
6
|
"bugs": {
|
|
@@ -44,6 +44,10 @@
|
|
|
44
44
|
"import": "./dist/playroom/FrameComponent.mjs",
|
|
45
45
|
"require": "./dist/playroom/FrameComponent.cjs"
|
|
46
46
|
},
|
|
47
|
+
"./playroom/frameSettings": {
|
|
48
|
+
"import": "./dist/playroom/frameSettings.mjs",
|
|
49
|
+
"require": "./dist/playroom/frameSettings.cjs"
|
|
50
|
+
},
|
|
47
51
|
"./playroom/scope": {
|
|
48
52
|
"import": "./dist/playroom/scope.mjs",
|
|
49
53
|
"require": "./dist/playroom/scope.cjs"
|