braid-design-system 32.1.0 → 32.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 +133 -0
- package/codemod/dist/wrapper.js +181 -183
- package/color-mode/query-param/index.d.ts +1 -0
- package/color-mode/query-param/package.json +1 -1
- package/css/index.d.ts +1 -0
- package/css/package.json +1 -1
- package/dist/ToastContext.chunk.cjs +21 -21
- package/dist/ToastContext.chunk.mjs +120 -120
- package/dist/Toggle.chunk.cjs +22 -32
- package/dist/Toggle.chunk.mjs +199 -209
- package/dist/color-mode/query-param.mjs +1 -1
- package/dist/css.d.ts +1 -667
- package/dist/css.mjs +7 -7
- package/dist/index.d.ts +1 -3952
- package/dist/index.mjs +164 -164
- package/dist/playroom/FrameComponent.d.ts +1 -323
- package/dist/playroom/FrameComponent.mjs +4 -4
- package/dist/playroom/components.d.ts +1 -4027
- package/dist/playroom/components.mjs +124 -124
- package/dist/playroom/scope.d.ts +1 -385
- package/dist/playroom/scope.mjs +4 -4
- package/dist/playroom/snippets.d.ts +1 -7
- package/dist/playroomState.chunk.cjs +1 -1
- package/dist/playroomState.chunk.mjs +3 -3
- package/dist/reset.d.ts +5075 -1
- package/dist/side-effects/lib/components/BraidProvider/BraidProvider.mjs +12 -12
- package/dist/side-effects/lib/css/reset/index.mjs +1 -1
- package/dist/side-effects/lib/css/reset/resetTracker.mjs +2 -2
- package/dist/side-effects/lib/themes/baseTokens/apac.cjs +8 -9
- package/dist/side-effects/lib/themes/baseTokens/apac.mjs +8 -10
- package/dist/side-effects/lib/themes/index.mjs +5 -5
- package/dist/side-effects/lib/themes/makeRuntimeTokens.cjs +4 -10
- package/dist/side-effects/lib/themes/makeRuntimeTokens.mjs +5 -10
- package/dist/side-effects/lib/themes/tokenType.cjs +15 -0
- package/dist/side-effects/lib/themes/tokenType.mjs +16 -0
- package/dist/styles/lib/components/Accordion/AccordionItem.css.mjs +3 -3
- package/dist/styles/lib/components/Alert/Alert.css.mjs +3 -3
- package/dist/styles/lib/components/Autosuggest/Autosuggest.css.mjs +6 -6
- package/dist/styles/lib/components/Button/Button.css.cjs +24 -23
- package/dist/styles/lib/components/Button/Button.css.mjs +39 -38
- package/dist/styles/lib/components/ButtonIcon/ButtonIcon.css.mjs +1 -1
- package/dist/styles/lib/components/Column/Column.css.mjs +3 -3
- package/dist/styles/lib/components/ContentBlock/ContentBlock.css.mjs +1 -1
- package/dist/styles/lib/components/Divider/Divider.css.mjs +7 -7
- package/dist/styles/lib/components/Dropdown/Dropdown.css.mjs +2 -2
- package/dist/styles/lib/components/Hidden/Hidden.css.mjs +1 -1
- package/dist/styles/lib/components/HiddenVisually/HiddenVisually.css.mjs +1 -1
- package/dist/styles/lib/components/List/List.css.mjs +4 -4
- package/dist/styles/lib/components/Loader/Loader.css.mjs +7 -7
- package/dist/styles/lib/components/MenuItem/useMenuItem.css.mjs +1 -1
- package/dist/styles/lib/components/MenuRenderer/MenuRenderer.css.mjs +5 -5
- package/dist/styles/lib/components/MonthPicker/MonthPicker.css.mjs +1 -1
- package/dist/styles/lib/components/OverflowMenu/OverflowMenu.css.mjs +1 -1
- package/dist/styles/lib/components/Pagination/Pagination.css.mjs +6 -6
- package/dist/styles/lib/components/Rating/Rating.css.mjs +6 -6
- package/dist/styles/lib/components/Stepper/Stepper.css.mjs +21 -21
- package/dist/styles/lib/components/Tabs/Tabs.css.mjs +17 -17
- package/dist/styles/lib/components/Tag/Tag.css.mjs +1 -1
- package/dist/styles/lib/components/TextDropdown/TextDropdown.css.mjs +4 -4
- package/dist/styles/lib/components/TextLink/TextLink.css.mjs +8 -8
- package/dist/styles/lib/components/Textarea/Highlight/Highlight.css.mjs +1 -1
- package/dist/styles/lib/components/Textarea/Textarea.css.mjs +3 -3
- package/dist/styles/lib/components/Tiles/Tiles.css.mjs +5 -5
- package/dist/styles/lib/components/Toggle/Toggle.css.mjs +20 -20
- package/dist/styles/lib/components/TooltipRenderer/TooltipRenderer.css.cjs +1 -5
- package/dist/styles/lib/components/TooltipRenderer/TooltipRenderer.css.mjs +7 -11
- package/dist/styles/lib/components/icons/IconArrow/IconArrow.css.mjs +4 -4
- package/dist/styles/lib/components/icons/IconChevron/IconChevron.css.mjs +4 -4
- package/dist/styles/lib/components/icons/IconThumb/IconThumb.css.mjs +2 -2
- package/dist/styles/lib/components/private/AvoidWidowIcon/AvoidWidowIcon.css.mjs +1 -1
- package/dist/styles/lib/components/private/Field/Field.css.mjs +8 -8
- package/dist/styles/lib/components/private/InlineField/InlineField.css.mjs +17 -17
- package/dist/styles/lib/components/private/Keyline/Keyline.css.cjs +4 -0
- package/dist/styles/lib/components/private/Keyline/Keyline.css.mjs +11 -7
- package/dist/styles/lib/components/private/Modal/Modal.css.mjs +16 -16
- package/dist/styles/lib/components/private/Modal/ModalExternalGutter.mjs +1 -1
- package/dist/styles/lib/components/private/Placeholder/Placeholder.css.mjs +6 -6
- package/dist/styles/lib/components/private/Truncate/Truncate.css.mjs +1 -1
- package/dist/styles/lib/components/private/hideFocusRings/hideFocusRings.css.mjs +2 -2
- package/dist/styles/lib/components/private/hideFocusRings/hideFocusRingsDataAttribute.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/debugTouchable.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/hitArea.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/virtualTouchable.css.mjs +4 -4
- package/dist/styles/lib/components/private/touchable/virtualTouchableRules.mjs +2 -2
- package/dist/styles/lib/components/useToast/Toast.css.mjs +1 -1
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +6 -6
- package/dist/styles/lib/css/atoms/atoms.mjs +3 -3
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +8 -8
- package/dist/styles/lib/css/breakpoints.mjs +2 -2
- package/dist/styles/lib/css/colorModeStyle.mjs +2 -2
- package/dist/styles/lib/css/lineHeightContainer.css.mjs +3 -3
- package/dist/styles/lib/css/negativeMargin/negativeMargin.css.cjs +4 -9
- package/dist/styles/lib/css/negativeMargin/negativeMargin.css.mjs +3 -8
- package/dist/styles/lib/css/reset/reset.css.mjs +3 -3
- package/dist/styles/lib/css/responsiveStyle.cjs +2 -2
- package/dist/styles/lib/css/responsiveStyle.mjs +3 -3
- package/dist/styles/lib/css/textAlignedToIcon.css.mjs +3 -3
- package/dist/styles/lib/css/typography.css.cjs +1 -16
- package/dist/styles/lib/css/typography.css.mjs +5 -20
- package/dist/styles/lib/hooks/useIcon/icon.css.mjs +8 -8
- package/dist/styles/lib/themes/apac/apacTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/apac/tokens.mjs +2 -2
- package/dist/styles/lib/themes/docs/docsTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/docs/tokens.cjs +8 -8
- package/dist/styles/lib/themes/docs/tokens.mjs +8 -10
- package/dist/styles/lib/themes/makeBraidTheme.mjs +4 -4
- package/dist/styles/lib/themes/makeVanillaTheme.cjs +23 -10
- package/dist/styles/lib/themes/makeVanillaTheme.mjs +23 -10
- package/dist/styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/seekBusiness/tokens.mjs +2 -2
- package/dist/styles/lib/themes/vars.css.mjs +3 -3
- package/dist/styles/lib/themes/wireframe/tokens.cjs +25 -29
- package/dist/styles/lib/themes/wireframe/tokens.mjs +25 -31
- package/dist/styles/lib/themes/wireframe/wireframeTheme.css.mjs +3 -3
- package/dist/styles/lib/utils/index.mjs +6 -6
- package/dist/test.d.ts +1 -890
- package/dist/test.mjs +2 -2
- package/dist/themes/apac.d.ts +1 -137
- package/dist/themes/apac.mjs +2 -2
- package/dist/themes/docs.d.ts +1 -137
- package/dist/themes/docs.mjs +2 -2
- package/dist/themes/seekBusiness.d.ts +1 -137
- package/dist/themes/seekBusiness.mjs +2 -2
- package/dist/themes/wireframe.d.ts +1 -137
- package/dist/themes/wireframe.mjs +2 -2
- package/package.json +4 -3
- package/playroom/FrameComponent/index.d.ts +2 -0
- package/playroom/FrameComponent/package.json +1 -1
- package/playroom/components/index.d.ts +1 -0
- package/playroom/components/package.json +1 -1
- package/playroom/scope/index.d.ts +2 -0
- package/playroom/scope/package.json +1 -1
- package/playroom/snippets/index.d.ts +2 -0
- package/playroom/snippets/package.json +1 -1
- package/reset/index.d.ts +1 -0
- package/reset/package.json +1 -1
- package/test/index.d.ts +1 -0
- package/test/package.json +1 -1
- package/themes/apac/index.d.ts +2 -0
- package/themes/apac/package.json +1 -1
- package/themes/docs/index.d.ts +2 -0
- package/themes/docs/package.json +1 -1
- package/themes/seekBusiness/index.d.ts +2 -0
- package/themes/seekBusiness/package.json +1 -1
- package/themes/wireframe/index.d.ts +2 -0
- package/themes/wireframe/package.json +1 -1
- package/dist/styles/lib/components/Badge/Badge.css.cjs +0 -27
- package/dist/styles/lib/components/Badge/Badge.css.mjs +0 -28
package/dist/index.mjs
CHANGED
|
@@ -1,166 +1,166 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BraidProvider, makeLinkComponent } from "./side-effects/lib/components/BraidProvider/BraidProvider.mjs";
|
|
2
|
+
import { Bleed, PublicBox, BraidPortal, Button, ButtonIcon, Column, Columns, ContentBlock, Divider, Hidden, IconClear, IconCritical, IconPositive, IconRenderer, Inline, Stack, Text, TextLink, TextLinkButton, ToastProvider, TooltipRenderer, useResponsiveValue, useSpace, useThemeName, useToast } from "./ToastContext.chunk.mjs";
|
|
3
|
+
import { Accordion, AccordionItem, Actions, Alert, Autosuggest, Badge, BoxRenderer, ButtonLink, Card, Checkbox, CheckboxStandalone, Dialog, Disclosure, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Link, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Pagination, PasswordField, Radio, RadioGroup, RadioItem, Rating, Secondary, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Tabs, TabsProvider, Tag, TextDropdown, TextField, Textarea, ThemeNameConsumer, Tiles, Toggle, filterSuggestions, useBreakpoint, useColor } from "./Toggle.chunk.mjs";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
5
|
+
Accordion,
|
|
6
|
+
AccordionItem,
|
|
7
|
+
Actions,
|
|
8
|
+
Alert,
|
|
9
|
+
Autosuggest,
|
|
10
|
+
Badge,
|
|
11
|
+
Bleed,
|
|
12
|
+
PublicBox as Box,
|
|
13
|
+
BoxRenderer,
|
|
14
|
+
BraidPortal,
|
|
15
|
+
BraidProvider,
|
|
16
|
+
Button,
|
|
17
|
+
ButtonIcon,
|
|
18
|
+
ButtonLink,
|
|
19
|
+
Card,
|
|
20
|
+
Checkbox,
|
|
21
|
+
CheckboxStandalone,
|
|
22
|
+
Column,
|
|
23
|
+
Columns,
|
|
24
|
+
ContentBlock,
|
|
25
|
+
Dialog,
|
|
26
|
+
Disclosure,
|
|
27
|
+
Divider,
|
|
28
|
+
Drawer,
|
|
29
|
+
Dropdown,
|
|
30
|
+
FieldLabel,
|
|
31
|
+
FieldMessage,
|
|
32
|
+
Heading,
|
|
33
|
+
Hidden,
|
|
34
|
+
HiddenVisually,
|
|
35
|
+
IconAdd,
|
|
36
|
+
IconArrow,
|
|
37
|
+
IconBookmark,
|
|
38
|
+
IconCaution,
|
|
39
|
+
IconChevron,
|
|
40
|
+
IconClear,
|
|
41
|
+
IconCompany,
|
|
42
|
+
IconCompose,
|
|
43
|
+
IconCopy,
|
|
44
|
+
IconCreditCard,
|
|
45
|
+
IconCritical,
|
|
46
|
+
IconDate,
|
|
47
|
+
IconDelete,
|
|
48
|
+
IconDesktop,
|
|
49
|
+
IconDocument,
|
|
50
|
+
IconDocumentBroken,
|
|
51
|
+
IconDownload,
|
|
52
|
+
IconEdit,
|
|
53
|
+
IconEducation,
|
|
54
|
+
IconFilter,
|
|
55
|
+
IconFlag,
|
|
56
|
+
IconGrid,
|
|
57
|
+
IconHeart,
|
|
58
|
+
IconHelp,
|
|
59
|
+
IconHistory,
|
|
60
|
+
IconHome,
|
|
61
|
+
IconImage,
|
|
62
|
+
IconInfo,
|
|
63
|
+
IconInvoice,
|
|
64
|
+
IconLanguage,
|
|
65
|
+
IconLink,
|
|
66
|
+
IconLinkBroken,
|
|
67
|
+
IconList,
|
|
68
|
+
IconLocation,
|
|
69
|
+
IconMail,
|
|
70
|
+
IconMinus,
|
|
71
|
+
IconMobile,
|
|
72
|
+
IconMoney,
|
|
73
|
+
IconNewWindow,
|
|
74
|
+
IconNote,
|
|
75
|
+
IconNotification,
|
|
76
|
+
IconOverflow,
|
|
77
|
+
IconPeople,
|
|
78
|
+
IconPersonAdd,
|
|
79
|
+
IconPersonVerified,
|
|
80
|
+
IconPhone,
|
|
81
|
+
IconPlatformAndroid,
|
|
82
|
+
IconPlatformApple,
|
|
83
|
+
IconPositive,
|
|
84
|
+
IconPrint,
|
|
85
|
+
IconProfile,
|
|
86
|
+
IconPromote,
|
|
87
|
+
IconRecommended,
|
|
88
|
+
IconRefresh,
|
|
89
|
+
IconRenderer,
|
|
90
|
+
IconResume,
|
|
91
|
+
IconSearch,
|
|
92
|
+
IconSecurity,
|
|
93
|
+
IconSend,
|
|
94
|
+
IconSent,
|
|
95
|
+
IconSettings,
|
|
96
|
+
IconShare,
|
|
97
|
+
IconSocialFacebook,
|
|
98
|
+
IconSocialGitHub,
|
|
99
|
+
IconSocialInstagram,
|
|
100
|
+
IconSocialLinkedIn,
|
|
101
|
+
IconSocialMedium,
|
|
102
|
+
IconSocialTwitter,
|
|
103
|
+
IconSocialYouTube,
|
|
104
|
+
IconStar,
|
|
105
|
+
IconStatistics,
|
|
106
|
+
IconSubCategory,
|
|
107
|
+
IconTag,
|
|
108
|
+
IconThumb,
|
|
109
|
+
IconTick,
|
|
110
|
+
IconTime,
|
|
111
|
+
IconTip,
|
|
112
|
+
IconUpload,
|
|
113
|
+
IconVideo,
|
|
114
|
+
IconVisibility,
|
|
115
|
+
IconWorkExperience,
|
|
116
|
+
IconZoomIn,
|
|
117
|
+
IconZoomOut,
|
|
118
|
+
Inline,
|
|
119
|
+
Link,
|
|
120
|
+
List,
|
|
121
|
+
Loader,
|
|
122
|
+
MenuItem,
|
|
123
|
+
MenuItemCheckbox,
|
|
124
|
+
MenuItemDivider,
|
|
125
|
+
MenuItemLink,
|
|
126
|
+
MenuRenderer,
|
|
127
|
+
MonthPicker,
|
|
128
|
+
Notice,
|
|
129
|
+
OverflowMenu,
|
|
130
|
+
Pagination,
|
|
131
|
+
PasswordField,
|
|
132
|
+
Radio,
|
|
133
|
+
RadioGroup,
|
|
134
|
+
RadioItem,
|
|
135
|
+
Rating,
|
|
136
|
+
Secondary,
|
|
137
|
+
Stack,
|
|
138
|
+
Step,
|
|
139
|
+
Stepper,
|
|
140
|
+
Strong,
|
|
141
|
+
Tab,
|
|
142
|
+
TabPanel,
|
|
143
|
+
TabPanels,
|
|
144
|
+
Tabs,
|
|
145
|
+
TabsProvider,
|
|
146
|
+
Tag,
|
|
147
|
+
Text,
|
|
148
|
+
TextDropdown,
|
|
149
|
+
TextField,
|
|
150
|
+
TextLink,
|
|
151
|
+
TextLinkButton,
|
|
152
|
+
Textarea,
|
|
153
|
+
ThemeNameConsumer,
|
|
154
|
+
Tiles,
|
|
155
|
+
ToastProvider,
|
|
156
|
+
Toggle,
|
|
157
|
+
TooltipRenderer,
|
|
158
|
+
filterSuggestions,
|
|
159
|
+
makeLinkComponent,
|
|
160
|
+
useBreakpoint,
|
|
161
|
+
useColor,
|
|
162
|
+
useResponsiveValue,
|
|
163
|
+
useSpace,
|
|
164
|
+
useThemeName,
|
|
165
|
+
useToast
|
|
166
166
|
};
|
|
@@ -1,323 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FontMetrics } from '@capsizecss/core';
|
|
3
|
-
|
|
4
|
-
declare const breakpoints: {
|
|
5
|
-
readonly mobile: 0;
|
|
6
|
-
readonly tablet: 740;
|
|
7
|
-
readonly desktop: 992;
|
|
8
|
-
readonly wide: 1200;
|
|
9
|
-
};
|
|
10
|
-
type Breakpoint = keyof typeof breakpoints;
|
|
11
|
-
|
|
12
|
-
type TextBreakpoint = Exclude<Breakpoint, 'desktop' | 'wide'>;
|
|
13
|
-
type FontSizeText = {
|
|
14
|
-
fontSize: number;
|
|
15
|
-
rows: number;
|
|
16
|
-
};
|
|
17
|
-
type TextDefinition = Record<TextBreakpoint, FontSizeText>;
|
|
18
|
-
type FontWeight = 'regular' | 'medium' | 'strong';
|
|
19
|
-
interface BraidTokens {
|
|
20
|
-
name: string;
|
|
21
|
-
displayName: string;
|
|
22
|
-
typography: {
|
|
23
|
-
fontFamily: string;
|
|
24
|
-
webFont: string | null;
|
|
25
|
-
fontMetrics: Pick<FontMetrics, 'capHeight' | 'ascent' | 'descent' | 'lineGap' | 'unitsPerEm'>;
|
|
26
|
-
fontWeight: Record<FontWeight, 400 | 500 | 600 | 700 | 800>;
|
|
27
|
-
heading: {
|
|
28
|
-
weight: {
|
|
29
|
-
weak: FontWeight;
|
|
30
|
-
regular: FontWeight;
|
|
31
|
-
};
|
|
32
|
-
level: {
|
|
33
|
-
'1': TextDefinition;
|
|
34
|
-
'2': TextDefinition;
|
|
35
|
-
'3': TextDefinition;
|
|
36
|
-
'4': TextDefinition;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
text: {
|
|
40
|
-
xsmall: TextDefinition;
|
|
41
|
-
small: TextDefinition;
|
|
42
|
-
standard: TextDefinition;
|
|
43
|
-
large: TextDefinition;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
contentWidth: {
|
|
47
|
-
xsmall: number;
|
|
48
|
-
small: number;
|
|
49
|
-
medium: number;
|
|
50
|
-
large: number;
|
|
51
|
-
};
|
|
52
|
-
grid: number;
|
|
53
|
-
touchableSize: number;
|
|
54
|
-
space: {
|
|
55
|
-
gutter: number;
|
|
56
|
-
xxsmall: number;
|
|
57
|
-
xsmall: number;
|
|
58
|
-
small: number;
|
|
59
|
-
medium: number;
|
|
60
|
-
large: number;
|
|
61
|
-
xlarge: number;
|
|
62
|
-
xxlarge: number;
|
|
63
|
-
};
|
|
64
|
-
transforms: {
|
|
65
|
-
touchable: string;
|
|
66
|
-
};
|
|
67
|
-
transitions: {
|
|
68
|
-
fast: string;
|
|
69
|
-
touchable: string;
|
|
70
|
-
};
|
|
71
|
-
border: {
|
|
72
|
-
radius: {
|
|
73
|
-
standard: string;
|
|
74
|
-
large: string;
|
|
75
|
-
xlarge: string;
|
|
76
|
-
};
|
|
77
|
-
width: {
|
|
78
|
-
standard: number;
|
|
79
|
-
large: number;
|
|
80
|
-
};
|
|
81
|
-
color: {
|
|
82
|
-
brandAccent: string;
|
|
83
|
-
brandAccentLight: string;
|
|
84
|
-
caution: string;
|
|
85
|
-
cautionLight: string;
|
|
86
|
-
critical: string;
|
|
87
|
-
criticalLight: string;
|
|
88
|
-
field: string;
|
|
89
|
-
focus: string;
|
|
90
|
-
formAccent: string;
|
|
91
|
-
formAccentLight: string;
|
|
92
|
-
info: string;
|
|
93
|
-
infoLight: string;
|
|
94
|
-
neutral: string;
|
|
95
|
-
neutralInverted: string;
|
|
96
|
-
neutralLight: string;
|
|
97
|
-
positive: string;
|
|
98
|
-
positiveLight: string;
|
|
99
|
-
promote: string;
|
|
100
|
-
promoteLight: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
focusRingSize: number;
|
|
104
|
-
shadows: {
|
|
105
|
-
small: string;
|
|
106
|
-
medium: string;
|
|
107
|
-
large: string;
|
|
108
|
-
};
|
|
109
|
-
color: {
|
|
110
|
-
foreground: {
|
|
111
|
-
brandAccentLight: string;
|
|
112
|
-
brandAccent: string;
|
|
113
|
-
cautionLight: string;
|
|
114
|
-
caution: string;
|
|
115
|
-
criticalLight: string;
|
|
116
|
-
critical: string;
|
|
117
|
-
formAccentLight: string;
|
|
118
|
-
formAccent: string;
|
|
119
|
-
infoLight: string;
|
|
120
|
-
info: string;
|
|
121
|
-
linkLight: string;
|
|
122
|
-
link: string;
|
|
123
|
-
linkHover: string;
|
|
124
|
-
linkVisited: string;
|
|
125
|
-
linkLightVisited: string;
|
|
126
|
-
neutral: string;
|
|
127
|
-
neutralInverted: string;
|
|
128
|
-
positiveLight: string;
|
|
129
|
-
positive: string;
|
|
130
|
-
promoteLight: string;
|
|
131
|
-
promote: string;
|
|
132
|
-
rating: string;
|
|
133
|
-
secondary: string;
|
|
134
|
-
secondaryInverted: string;
|
|
135
|
-
};
|
|
136
|
-
background: {
|
|
137
|
-
body: string;
|
|
138
|
-
bodyDark: string;
|
|
139
|
-
brand: string;
|
|
140
|
-
brandAccent: string;
|
|
141
|
-
brandAccentActive: string;
|
|
142
|
-
brandAccentHover: string;
|
|
143
|
-
brandAccentSoft: string;
|
|
144
|
-
brandAccentSoftActive: string;
|
|
145
|
-
brandAccentSoftHover: string;
|
|
146
|
-
caution: string;
|
|
147
|
-
cautionLight: string;
|
|
148
|
-
critical: string;
|
|
149
|
-
criticalActive: string;
|
|
150
|
-
criticalHover: string;
|
|
151
|
-
criticalLight: string;
|
|
152
|
-
criticalSoft: string;
|
|
153
|
-
criticalSoftActive: string;
|
|
154
|
-
criticalSoftHover: string;
|
|
155
|
-
formAccent: string;
|
|
156
|
-
formAccentActive: string;
|
|
157
|
-
formAccentHover: string;
|
|
158
|
-
formAccentSoft: string;
|
|
159
|
-
formAccentSoftActive: string;
|
|
160
|
-
formAccentSoftHover: string;
|
|
161
|
-
info: string;
|
|
162
|
-
infoLight: string;
|
|
163
|
-
neutral: string;
|
|
164
|
-
neutralActive: string;
|
|
165
|
-
neutralHover: string;
|
|
166
|
-
neutralLight: string;
|
|
167
|
-
neutralSoft: string;
|
|
168
|
-
neutralSoftActive: string;
|
|
169
|
-
neutralSoftHover: string;
|
|
170
|
-
positive: string;
|
|
171
|
-
positiveLight: string;
|
|
172
|
-
promote: string;
|
|
173
|
-
promoteLight: string;
|
|
174
|
-
surface: string;
|
|
175
|
-
surfaceDark: string;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
declare const makeBraidTheme: (tokens: BraidTokens) => {
|
|
181
|
-
vanillaTheme: string;
|
|
182
|
-
name: string;
|
|
183
|
-
displayName: string;
|
|
184
|
-
background: {
|
|
185
|
-
lightMode: string;
|
|
186
|
-
darkMode: string;
|
|
187
|
-
};
|
|
188
|
-
webFonts: {
|
|
189
|
-
linkTag: string;
|
|
190
|
-
}[];
|
|
191
|
-
space: {
|
|
192
|
-
grid: number;
|
|
193
|
-
space: {
|
|
194
|
-
gutter: number;
|
|
195
|
-
xxsmall: number;
|
|
196
|
-
xsmall: number;
|
|
197
|
-
small: number;
|
|
198
|
-
medium: number;
|
|
199
|
-
large: number;
|
|
200
|
-
xlarge: number;
|
|
201
|
-
xxlarge: number;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
color: {
|
|
205
|
-
foreground: {
|
|
206
|
-
brandAccentLight: string;
|
|
207
|
-
brandAccent: string;
|
|
208
|
-
cautionLight: string;
|
|
209
|
-
caution: string;
|
|
210
|
-
criticalLight: string;
|
|
211
|
-
critical: string;
|
|
212
|
-
formAccentLight: string;
|
|
213
|
-
formAccent: string;
|
|
214
|
-
infoLight: string;
|
|
215
|
-
info: string;
|
|
216
|
-
linkLight: string;
|
|
217
|
-
link: string;
|
|
218
|
-
linkHover: string;
|
|
219
|
-
linkVisited: string;
|
|
220
|
-
linkLightVisited: string;
|
|
221
|
-
neutral: string;
|
|
222
|
-
neutralInverted: string;
|
|
223
|
-
positiveLight: string;
|
|
224
|
-
positive: string;
|
|
225
|
-
promoteLight: string;
|
|
226
|
-
promote: string;
|
|
227
|
-
rating: string;
|
|
228
|
-
secondary: string;
|
|
229
|
-
secondaryInverted: string;
|
|
230
|
-
};
|
|
231
|
-
background: {
|
|
232
|
-
body: string;
|
|
233
|
-
bodyDark: string;
|
|
234
|
-
brand: string;
|
|
235
|
-
brandAccent: string;
|
|
236
|
-
brandAccentActive: string;
|
|
237
|
-
brandAccentHover: string;
|
|
238
|
-
brandAccentSoft: string;
|
|
239
|
-
brandAccentSoftActive: string;
|
|
240
|
-
brandAccentSoftHover: string;
|
|
241
|
-
caution: string;
|
|
242
|
-
cautionLight: string;
|
|
243
|
-
critical: string;
|
|
244
|
-
criticalActive: string;
|
|
245
|
-
criticalHover: string;
|
|
246
|
-
criticalLight: string;
|
|
247
|
-
criticalSoft: string;
|
|
248
|
-
criticalSoftActive: string;
|
|
249
|
-
criticalSoftHover: string;
|
|
250
|
-
formAccent: string;
|
|
251
|
-
formAccentActive: string;
|
|
252
|
-
formAccentHover: string;
|
|
253
|
-
formAccentSoft: string;
|
|
254
|
-
formAccentSoftActive: string;
|
|
255
|
-
formAccentSoftHover: string;
|
|
256
|
-
info: string;
|
|
257
|
-
infoLight: string;
|
|
258
|
-
neutral: string;
|
|
259
|
-
neutralActive: string;
|
|
260
|
-
neutralHover: string;
|
|
261
|
-
neutralLight: string;
|
|
262
|
-
neutralSoft: string;
|
|
263
|
-
neutralSoftActive: string;
|
|
264
|
-
neutralSoftHover: string;
|
|
265
|
-
positive: string;
|
|
266
|
-
positiveLight: string;
|
|
267
|
-
promote: string;
|
|
268
|
-
promoteLight: string;
|
|
269
|
-
surface: string;
|
|
270
|
-
surfaceDark: string;
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
backgroundLightness: {
|
|
274
|
-
body: "light" | "dark";
|
|
275
|
-
bodyDark: "light" | "dark";
|
|
276
|
-
brand: "light" | "dark";
|
|
277
|
-
brandAccent: "light" | "dark";
|
|
278
|
-
brandAccentActive: "light" | "dark";
|
|
279
|
-
brandAccentHover: "light" | "dark";
|
|
280
|
-
brandAccentSoft: "light" | "dark";
|
|
281
|
-
brandAccentSoftActive: "light" | "dark";
|
|
282
|
-
brandAccentSoftHover: "light" | "dark";
|
|
283
|
-
caution: "light" | "dark";
|
|
284
|
-
cautionLight: "light" | "dark";
|
|
285
|
-
critical: "light" | "dark";
|
|
286
|
-
criticalActive: "light" | "dark";
|
|
287
|
-
criticalHover: "light" | "dark";
|
|
288
|
-
criticalLight: "light" | "dark";
|
|
289
|
-
criticalSoft: "light" | "dark";
|
|
290
|
-
criticalSoftActive: "light" | "dark";
|
|
291
|
-
criticalSoftHover: "light" | "dark";
|
|
292
|
-
formAccent: "light" | "dark";
|
|
293
|
-
formAccentActive: "light" | "dark";
|
|
294
|
-
formAccentHover: "light" | "dark";
|
|
295
|
-
formAccentSoft: "light" | "dark";
|
|
296
|
-
formAccentSoftActive: "light" | "dark";
|
|
297
|
-
formAccentSoftHover: "light" | "dark";
|
|
298
|
-
info: "light" | "dark";
|
|
299
|
-
infoLight: "light" | "dark";
|
|
300
|
-
neutral: "light" | "dark";
|
|
301
|
-
neutralActive: "light" | "dark";
|
|
302
|
-
neutralHover: "light" | "dark";
|
|
303
|
-
neutralLight: "light" | "dark";
|
|
304
|
-
neutralSoft: "light" | "dark";
|
|
305
|
-
neutralSoftActive: "light" | "dark";
|
|
306
|
-
neutralSoftHover: "light" | "dark";
|
|
307
|
-
positive: "light" | "dark";
|
|
308
|
-
positiveLight: "light" | "dark";
|
|
309
|
-
promote: "light" | "dark";
|
|
310
|
-
promoteLight: "light" | "dark";
|
|
311
|
-
surface: "light" | "dark";
|
|
312
|
-
surfaceDark: "light" | "dark";
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
type BraidTheme = ReturnType<typeof makeBraidTheme>;
|
|
316
|
-
|
|
317
|
-
interface Props {
|
|
318
|
-
theme: BraidTheme;
|
|
319
|
-
children: ReactNode;
|
|
320
|
-
}
|
|
321
|
-
declare const _default: ({ theme, children }: Props) => JSX.Element;
|
|
322
|
-
|
|
323
|
-
export { _default as default };
|
|
1
|
+
export { _default as default } from '../reset.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
2
|
import "../side-effects/lib/css/reset/index.mjs";
|
|
3
3
|
import { useEffect, Fragment } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { PlayroomStateProvider } from "../playroomState.chunk.mjs";
|
|
5
|
+
import { darkMode } from "../styles/lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
+
import { BraidProvider, makeLinkComponent } from "../side-effects/lib/components/BraidProvider/BraidProvider.mjs";
|
|
7
|
+
import { ToastProvider, useResponsiveValue } from "../ToastContext.chunk.mjs";
|
|
8
8
|
const PlayroomLink = makeLinkComponent(
|
|
9
9
|
({ href, onClick, ...restProps }, ref) => /* @__PURE__ */ jsx(
|
|
10
10
|
"a",
|