@atlaskit/primitives 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +3 -0
- package/CHANGELOG.md +14 -0
- package/dist/cjs/components/box.js +3 -40
- package/dist/cjs/components/inline.partial.js +24 -91
- package/dist/cjs/components/internal/base-box.js +61 -0
- package/dist/cjs/components/stack.partial.js +24 -47
- package/dist/cjs/internal/style-maps.partial.js +370 -0
- package/dist/cjs/internal/xcss.js +17 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.js +1 -37
- package/dist/es2019/components/inline.partial.js +20 -63
- package/dist/es2019/components/internal/base-box.js +52 -0
- package/dist/es2019/components/stack.partial.js +20 -19
- package/dist/es2019/internal/style-maps.partial.js +341 -0
- package/dist/es2019/internal/xcss.js +13 -7
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.js +2 -40
- package/dist/esm/components/inline.partial.js +23 -91
- package/dist/esm/components/internal/base-box.js +53 -0
- package/dist/esm/components/stack.partial.js +23 -47
- package/dist/esm/internal/style-maps.partial.js +340 -0
- package/dist/esm/internal/xcss.js +17 -7
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.d.ts +2 -3
- package/dist/types/components/inline.partial.d.ts +23 -37
- package/dist/types/components/internal/base-box.d.ts +83 -0
- package/dist/types/components/stack.partial.d.ts +21 -19
- package/dist/types/components/types.d.ts +1 -47
- package/dist/types/internal/style-maps.partial.d.ts +396 -0
- package/dist/types/internal/xcss.d.ts +5 -5
- package/package.json +3 -3
- package/report.api.md +228 -394
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +313 -363
- package/scripts/border-codegen-template.tsx +79 -0
- package/scripts/codegen-file-templates/align-self.tsx +9 -0
- package/scripts/codegen-file-templates/border-style.tsx +6 -0
- package/scripts/codegen-file-templates/dimensions.tsx +17 -0
- package/scripts/codegen-file-templates/display.tsx +6 -0
- package/scripts/codegen-file-templates/flex-grow.tsx +6 -0
- package/scripts/codegen-file-templates/flex-shrink.tsx +6 -0
- package/scripts/codegen-file-templates/flex.tsx +5 -0
- package/scripts/codegen-file-templates/layer.tsx +13 -0
- package/scripts/codegen-file-templates/overflow.tsx +20 -0
- package/scripts/codegen-file-templates/position.tsx +8 -0
- package/scripts/codegen-styles.tsx +80 -120
- package/scripts/color-codegen-template.tsx +9 -19
- package/scripts/misc-codegen-template.tsx +20 -40
- package/scripts/spacing-codegen-template.tsx +22 -29
- package/scripts/utils.tsx +15 -4
- package/tmp/api-report-tmp.d.ts +223 -381
- package/dist/cjs/components/internal/base-box.partial.js +0 -843
- package/dist/cjs/components/internal/types.js +0 -8
- package/dist/cjs/components/internal/utils.js +0 -16
- package/dist/cjs/internal/color-map.js +0 -42
- package/dist/cjs/internal/style-maps.js +0 -130
- package/dist/es2019/components/internal/base-box.partial.js +0 -838
- package/dist/es2019/components/internal/types.js +0 -1
- package/dist/es2019/components/internal/utils.js +0 -2
- package/dist/es2019/internal/color-map.js +0 -35
- package/dist/es2019/internal/style-maps.js +0 -117
- package/dist/esm/components/internal/base-box.partial.js +0 -838
- package/dist/esm/components/internal/types.js +0 -1
- package/dist/esm/components/internal/utils.js +0 -7
- package/dist/esm/internal/color-map.js +0 -35
- package/dist/esm/internal/style-maps.js +0 -117
- package/dist/types/components/internal/base-box.partial.d.ts +0 -522
- package/dist/types/components/internal/types.d.ts +0 -8
- package/dist/types/components/internal/utils.d.ts +0 -3
- package/dist/types/internal/color-map.d.ts +0 -36
- package/dist/types/internal/style-maps.d.ts +0 -151
- package/scripts/color-map-template.tsx +0 -52
- package/scripts/dimension-codegen-template.tsx +0 -75
package/report.api.md
CHANGED
|
@@ -30,8 +30,8 @@ import { MemoExoticComponent } from 'react';
|
|
|
30
30
|
import { ReactElement } from 'react';
|
|
31
31
|
import { ReactNode } from 'react';
|
|
32
32
|
import { RefAttributes } from 'react';
|
|
33
|
-
import { SerializedStyles } from '@emotion/
|
|
34
|
-
import { SerializedStyles as SerializedStyles_2 } from '@emotion/
|
|
33
|
+
import { SerializedStyles } from '@emotion/serialize';
|
|
34
|
+
import { SerializedStyles as SerializedStyles_2 } from '@emotion/react';
|
|
35
35
|
|
|
36
36
|
// @public (undocumented)
|
|
37
37
|
type AlignBlock = 'baseline' | 'center' | 'end' | 'start';
|
|
@@ -48,13 +48,13 @@ type AlignInline_2 = 'center' | 'end' | 'start';
|
|
|
48
48
|
// @public (undocumented)
|
|
49
49
|
type AlignSelf = keyof typeof alignSelfMap;
|
|
50
50
|
|
|
51
|
-
// @public
|
|
51
|
+
// @public
|
|
52
52
|
const alignSelfMap: {
|
|
53
|
-
readonly center:
|
|
54
|
-
readonly start:
|
|
55
|
-
readonly stretch:
|
|
56
|
-
readonly end:
|
|
57
|
-
readonly baseline:
|
|
53
|
+
readonly center: 'center';
|
|
54
|
+
readonly start: 'start';
|
|
55
|
+
readonly stretch: 'stretch';
|
|
56
|
+
readonly end: 'end';
|
|
57
|
+
readonly baseline: 'baseline';
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// @public (undocumented)
|
|
@@ -66,102 +66,111 @@ type AllowedInlineStyles = 'backgroundColor' | 'padding';
|
|
|
66
66
|
// @public (undocumented)
|
|
67
67
|
type BackgroundColor = keyof typeof backgroundColorMap;
|
|
68
68
|
|
|
69
|
-
// @public (undocumented)
|
|
70
|
-
type BackgroundColor_2 = keyof typeof backgroundColorMap_2;
|
|
71
|
-
|
|
72
69
|
// @public (undocumented)
|
|
73
70
|
const backgroundColorMap: {
|
|
74
|
-
readonly 'accent.red.subtlest':
|
|
75
|
-
readonly 'accent.red.subtler':
|
|
76
|
-
readonly 'accent.red.subtle':
|
|
77
|
-
readonly 'accent.red.bolder':
|
|
78
|
-
readonly 'accent.orange.subtlest':
|
|
79
|
-
readonly 'accent.orange.subtler':
|
|
80
|
-
readonly 'accent.orange.subtle':
|
|
81
|
-
readonly 'accent.orange.bolder':
|
|
82
|
-
readonly 'accent.yellow.subtlest':
|
|
83
|
-
readonly 'accent.yellow.subtler':
|
|
84
|
-
readonly 'accent.yellow.subtle':
|
|
85
|
-
readonly 'accent.yellow.bolder':
|
|
86
|
-
readonly 'accent.green.subtlest':
|
|
87
|
-
readonly 'accent.green.subtler':
|
|
88
|
-
readonly 'accent.green.subtle':
|
|
89
|
-
readonly 'accent.green.bolder':
|
|
90
|
-
readonly 'accent.teal.subtlest':
|
|
91
|
-
readonly 'accent.teal.subtler':
|
|
92
|
-
readonly 'accent.teal.subtle':
|
|
93
|
-
readonly 'accent.teal.bolder':
|
|
94
|
-
readonly 'accent.blue.subtlest':
|
|
95
|
-
readonly 'accent.blue.subtler':
|
|
96
|
-
readonly 'accent.blue.subtle':
|
|
97
|
-
readonly 'accent.blue.bolder':
|
|
98
|
-
readonly 'accent.purple.subtlest':
|
|
99
|
-
readonly 'accent.purple.subtler':
|
|
100
|
-
readonly 'accent.purple.subtle':
|
|
101
|
-
readonly 'accent.purple.bolder':
|
|
102
|
-
readonly 'accent.magenta.subtlest':
|
|
103
|
-
readonly 'accent.magenta.subtler':
|
|
104
|
-
readonly 'accent.magenta.subtle':
|
|
105
|
-
readonly 'accent.magenta.bolder':
|
|
106
|
-
readonly 'accent.gray.subtlest':
|
|
107
|
-
readonly 'accent.gray.subtler':
|
|
108
|
-
readonly 'accent.gray.subtle':
|
|
109
|
-
readonly 'accent.gray.bolder':
|
|
110
|
-
readonly disabled: SerializedStyles;
|
|
111
|
-
readonly input: SerializedStyles;
|
|
112
|
-
readonly 'inverse.subtle': SerializedStyles;
|
|
113
|
-
readonly neutral: SerializedStyles;
|
|
114
|
-
readonly 'neutral.subtle': SerializedStyles;
|
|
115
|
-
readonly 'neutral.bold': SerializedStyles;
|
|
116
|
-
readonly selected: SerializedStyles;
|
|
117
|
-
readonly 'selected.bold': SerializedStyles;
|
|
118
|
-
readonly 'brand.bold': SerializedStyles;
|
|
119
|
-
readonly danger: SerializedStyles;
|
|
120
|
-
readonly 'danger.bold': SerializedStyles;
|
|
121
|
-
readonly warning: SerializedStyles;
|
|
122
|
-
readonly 'warning.bold': SerializedStyles;
|
|
123
|
-
readonly success: SerializedStyles;
|
|
124
|
-
readonly 'success.bold': SerializedStyles;
|
|
125
|
-
readonly discovery: SerializedStyles;
|
|
126
|
-
readonly 'discovery.bold': SerializedStyles;
|
|
127
|
-
readonly information: SerializedStyles;
|
|
128
|
-
readonly 'information.bold': SerializedStyles;
|
|
129
|
-
readonly 'color.blanket': SerializedStyles;
|
|
130
|
-
readonly 'color.blanket.selected': SerializedStyles;
|
|
131
|
-
readonly 'color.blanket.danger': SerializedStyles;
|
|
132
|
-
readonly 'elevation.surface': SerializedStyles;
|
|
133
|
-
readonly 'elevation.surface.overlay': SerializedStyles;
|
|
134
|
-
readonly 'elevation.surface.raised': SerializedStyles;
|
|
135
|
-
readonly 'elevation.surface.sunken': SerializedStyles;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// @public (undocumented)
|
|
139
|
-
const backgroundColorMap_2: {
|
|
71
|
+
readonly 'accent.red.subtlest': 'var(--ds-background-accent-red-subtlest)';
|
|
72
|
+
readonly 'accent.red.subtler': 'var(--ds-background-accent-red-subtler)';
|
|
73
|
+
readonly 'accent.red.subtle': 'var(--ds-background-accent-red-subtle)';
|
|
74
|
+
readonly 'accent.red.bolder': 'var(--ds-background-accent-red-bolder)';
|
|
75
|
+
readonly 'accent.orange.subtlest': 'var(--ds-background-accent-orange-subtlest)';
|
|
76
|
+
readonly 'accent.orange.subtler': 'var(--ds-background-accent-orange-subtler)';
|
|
77
|
+
readonly 'accent.orange.subtle': 'var(--ds-background-accent-orange-subtle)';
|
|
78
|
+
readonly 'accent.orange.bolder': 'var(--ds-background-accent-orange-bolder)';
|
|
79
|
+
readonly 'accent.yellow.subtlest': 'var(--ds-background-accent-yellow-subtlest)';
|
|
80
|
+
readonly 'accent.yellow.subtler': 'var(--ds-background-accent-yellow-subtler)';
|
|
81
|
+
readonly 'accent.yellow.subtle': 'var(--ds-background-accent-yellow-subtle)';
|
|
82
|
+
readonly 'accent.yellow.bolder': 'var(--ds-background-accent-yellow-bolder)';
|
|
83
|
+
readonly 'accent.green.subtlest': 'var(--ds-background-accent-green-subtlest)';
|
|
84
|
+
readonly 'accent.green.subtler': 'var(--ds-background-accent-green-subtler)';
|
|
85
|
+
readonly 'accent.green.subtle': 'var(--ds-background-accent-green-subtle)';
|
|
86
|
+
readonly 'accent.green.bolder': 'var(--ds-background-accent-green-bolder)';
|
|
87
|
+
readonly 'accent.teal.subtlest': 'var(--ds-background-accent-teal-subtlest)';
|
|
88
|
+
readonly 'accent.teal.subtler': 'var(--ds-background-accent-teal-subtler)';
|
|
89
|
+
readonly 'accent.teal.subtle': 'var(--ds-background-accent-teal-subtle)';
|
|
90
|
+
readonly 'accent.teal.bolder': 'var(--ds-background-accent-teal-bolder)';
|
|
91
|
+
readonly 'accent.blue.subtlest': 'var(--ds-background-accent-blue-subtlest)';
|
|
92
|
+
readonly 'accent.blue.subtler': 'var(--ds-background-accent-blue-subtler)';
|
|
93
|
+
readonly 'accent.blue.subtle': 'var(--ds-background-accent-blue-subtle)';
|
|
94
|
+
readonly 'accent.blue.bolder': 'var(--ds-background-accent-blue-bolder)';
|
|
95
|
+
readonly 'accent.purple.subtlest': 'var(--ds-background-accent-purple-subtlest)';
|
|
96
|
+
readonly 'accent.purple.subtler': 'var(--ds-background-accent-purple-subtler)';
|
|
97
|
+
readonly 'accent.purple.subtle': 'var(--ds-background-accent-purple-subtle)';
|
|
98
|
+
readonly 'accent.purple.bolder': 'var(--ds-background-accent-purple-bolder)';
|
|
99
|
+
readonly 'accent.magenta.subtlest': 'var(--ds-background-accent-magenta-subtlest)';
|
|
100
|
+
readonly 'accent.magenta.subtler': 'var(--ds-background-accent-magenta-subtler)';
|
|
101
|
+
readonly 'accent.magenta.subtle': 'var(--ds-background-accent-magenta-subtle)';
|
|
102
|
+
readonly 'accent.magenta.bolder': 'var(--ds-background-accent-magenta-bolder)';
|
|
103
|
+
readonly 'accent.gray.subtlest': 'var(--ds-background-accent-gray-subtlest)';
|
|
104
|
+
readonly 'accent.gray.subtler': 'var(--ds-background-accent-gray-subtler)';
|
|
105
|
+
readonly 'accent.gray.subtle': 'var(--ds-background-accent-gray-subtle)';
|
|
106
|
+
readonly 'accent.gray.bolder': 'var(--ds-background-accent-gray-bolder)';
|
|
140
107
|
readonly disabled: 'var(--ds-background-disabled)';
|
|
141
108
|
readonly input: 'var(--ds-background-input)';
|
|
109
|
+
readonly 'input.hovered': 'var(--ds-background-input-hovered)';
|
|
110
|
+
readonly 'input.pressed': 'var(--ds-background-input-pressed)';
|
|
142
111
|
readonly 'inverse.subtle': 'var(--ds-background-inverse-subtle)';
|
|
112
|
+
readonly 'inverse.subtle.hovered': 'var(--ds-background-inverse-subtle-hovered)';
|
|
113
|
+
readonly 'inverse.subtle.pressed': 'var(--ds-background-inverse-subtle-pressed)';
|
|
143
114
|
readonly neutral: 'var(--ds-background-neutral)';
|
|
115
|
+
readonly 'neutral.hovered': 'var(--ds-background-neutral-hovered)';
|
|
116
|
+
readonly 'neutral.pressed': 'var(--ds-background-neutral-pressed)';
|
|
144
117
|
readonly 'neutral.subtle': 'var(--ds-background-neutral-subtle)';
|
|
118
|
+
readonly 'neutral.subtle.hovered': 'var(--ds-background-neutral-subtle-hovered)';
|
|
119
|
+
readonly 'neutral.subtle.pressed': 'var(--ds-background-neutral-subtle-pressed)';
|
|
145
120
|
readonly 'neutral.bold': 'var(--ds-background-neutral-bold)';
|
|
121
|
+
readonly 'neutral.bold.hovered': 'var(--ds-background-neutral-bold-hovered)';
|
|
122
|
+
readonly 'neutral.bold.pressed': 'var(--ds-background-neutral-bold-pressed)';
|
|
146
123
|
readonly selected: 'var(--ds-background-selected)';
|
|
124
|
+
readonly 'selected.hovered': 'var(--ds-background-selected-hovered)';
|
|
125
|
+
readonly 'selected.pressed': 'var(--ds-background-selected-pressed)';
|
|
147
126
|
readonly 'selected.bold': 'var(--ds-background-selected-bold)';
|
|
127
|
+
readonly 'selected.bold.hovered': 'var(--ds-background-selected-bold-hovered)';
|
|
128
|
+
readonly 'selected.bold.pressed': 'var(--ds-background-selected-bold-pressed)';
|
|
148
129
|
readonly 'brand.bold': 'var(--ds-background-brand-bold)';
|
|
130
|
+
readonly 'brand.bold.hovered': 'var(--ds-background-brand-bold-hovered)';
|
|
131
|
+
readonly 'brand.bold.pressed': 'var(--ds-background-brand-bold-pressed)';
|
|
149
132
|
readonly danger: 'var(--ds-background-danger)';
|
|
133
|
+
readonly 'danger.hovered': 'var(--ds-background-danger-hovered)';
|
|
134
|
+
readonly 'danger.pressed': 'var(--ds-background-danger-pressed)';
|
|
150
135
|
readonly 'danger.bold': 'var(--ds-background-danger-bold)';
|
|
136
|
+
readonly 'danger.bold.hovered': 'var(--ds-background-danger-bold-hovered)';
|
|
137
|
+
readonly 'danger.bold.pressed': 'var(--ds-background-danger-bold-pressed)';
|
|
151
138
|
readonly warning: 'var(--ds-background-warning)';
|
|
139
|
+
readonly 'warning.hovered': 'var(--ds-background-warning-hovered)';
|
|
140
|
+
readonly 'warning.pressed': 'var(--ds-background-warning-pressed)';
|
|
152
141
|
readonly 'warning.bold': 'var(--ds-background-warning-bold)';
|
|
142
|
+
readonly 'warning.bold.hovered': 'var(--ds-background-warning-bold-hovered)';
|
|
143
|
+
readonly 'warning.bold.pressed': 'var(--ds-background-warning-bold-pressed)';
|
|
153
144
|
readonly success: 'var(--ds-background-success)';
|
|
145
|
+
readonly 'success.hovered': 'var(--ds-background-success-hovered)';
|
|
146
|
+
readonly 'success.pressed': 'var(--ds-background-success-pressed)';
|
|
154
147
|
readonly 'success.bold': 'var(--ds-background-success-bold)';
|
|
148
|
+
readonly 'success.bold.hovered': 'var(--ds-background-success-bold-hovered)';
|
|
149
|
+
readonly 'success.bold.pressed': 'var(--ds-background-success-bold-pressed)';
|
|
155
150
|
readonly discovery: 'var(--ds-background-discovery)';
|
|
151
|
+
readonly 'discovery.hovered': 'var(--ds-background-discovery-hovered)';
|
|
152
|
+
readonly 'discovery.pressed': 'var(--ds-background-discovery-pressed)';
|
|
156
153
|
readonly 'discovery.bold': 'var(--ds-background-discovery-bold)';
|
|
154
|
+
readonly 'discovery.bold.hovered': 'var(--ds-background-discovery-bold-hovered)';
|
|
155
|
+
readonly 'discovery.bold.pressed': 'var(--ds-background-discovery-bold-pressed)';
|
|
157
156
|
readonly information: 'var(--ds-background-information)';
|
|
157
|
+
readonly 'information.hovered': 'var(--ds-background-information-hovered)';
|
|
158
|
+
readonly 'information.pressed': 'var(--ds-background-information-pressed)';
|
|
158
159
|
readonly 'information.bold': 'var(--ds-background-information-bold)';
|
|
160
|
+
readonly 'information.bold.hovered': 'var(--ds-background-information-bold-hovered)';
|
|
161
|
+
readonly 'information.bold.pressed': 'var(--ds-background-information-bold-pressed)';
|
|
159
162
|
readonly 'color.blanket': 'var(--ds-blanket)';
|
|
160
163
|
readonly 'color.blanket.selected': 'var(--ds-blanket-selected)';
|
|
161
164
|
readonly 'color.blanket.danger': 'var(--ds-blanket-danger)';
|
|
162
165
|
readonly 'elevation.surface': 'var(--ds-surface)';
|
|
166
|
+
readonly 'elevation.surface.hovered': 'var(--ds-surface-hovered)';
|
|
167
|
+
readonly 'elevation.surface.pressed': 'var(--ds-surface-pressed)';
|
|
163
168
|
readonly 'elevation.surface.overlay': 'var(--ds-surface-overlay)';
|
|
169
|
+
readonly 'elevation.surface.overlay.hovered': 'var(--ds-surface-overlay-hovered)';
|
|
170
|
+
readonly 'elevation.surface.overlay.pressed': 'var(--ds-surface-overlay-pressed)';
|
|
164
171
|
readonly 'elevation.surface.raised': 'var(--ds-surface-raised)';
|
|
172
|
+
readonly 'elevation.surface.raised.hovered': 'var(--ds-surface-raised-hovered)';
|
|
173
|
+
readonly 'elevation.surface.raised.pressed': 'var(--ds-surface-raised-pressed)';
|
|
165
174
|
readonly 'elevation.surface.sunken': 'var(--ds-surface-sunken)';
|
|
166
175
|
};
|
|
167
176
|
|
|
@@ -178,34 +187,14 @@ type BaseBoxPropsFoundation<T extends ElementType> = {
|
|
|
178
187
|
as?: 'div' | 'li' | 'span';
|
|
179
188
|
className?: string;
|
|
180
189
|
children?: ReactNode;
|
|
181
|
-
color?: TextColor;
|
|
182
190
|
backgroundColor?: BackgroundColor;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
flexGrow?: FlexGrow;
|
|
191
|
-
flexShrink?: FlexShrink;
|
|
192
|
-
alignSelf?: AlignSelf;
|
|
193
|
-
overflow?: Overflow;
|
|
194
|
-
overflowInline?: OverflowInline;
|
|
195
|
-
overflowBlock?: OverflowBlock;
|
|
196
|
-
padding?: Padding | ResponsiveObject<Padding>;
|
|
197
|
-
paddingBlock?: PaddingBlock | ResponsiveObject<PaddingBlock>;
|
|
198
|
-
paddingBlockStart?: PaddingBlockStart | ResponsiveObject<PaddingBlockStart>;
|
|
199
|
-
paddingBlockEnd?: PaddingBlockEnd | ResponsiveObject<PaddingBlockEnd>;
|
|
200
|
-
paddingInline?: PaddingInline | ResponsiveObject<PaddingInline>;
|
|
201
|
-
paddingInlineStart?:
|
|
202
|
-
| PaddingInlineStart
|
|
203
|
-
| ResponsiveObject<PaddingInlineStart>;
|
|
204
|
-
paddingInlineEnd?: PaddingInlineEnd | ResponsiveObject<PaddingInlineEnd>;
|
|
205
|
-
width?: Width;
|
|
206
|
-
height?: Height;
|
|
207
|
-
display?: Display | ResponsiveObject<Display>;
|
|
208
|
-
position?: Position;
|
|
191
|
+
padding?: Padding;
|
|
192
|
+
paddingBlock?: PaddingBlock;
|
|
193
|
+
paddingBlockStart?: PaddingBlockStart;
|
|
194
|
+
paddingBlockEnd?: PaddingBlockEnd;
|
|
195
|
+
paddingInline?: PaddingInline;
|
|
196
|
+
paddingInlineStart?: PaddingInlineStart;
|
|
197
|
+
paddingInlineEnd?: PaddingInlineEnd;
|
|
209
198
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
210
199
|
};
|
|
211
200
|
|
|
@@ -218,38 +207,18 @@ type BasePrimitiveProps = {
|
|
|
218
207
|
// @public (undocumented)
|
|
219
208
|
type BorderColor = keyof typeof borderColorMap;
|
|
220
209
|
|
|
221
|
-
// @public (undocumented)
|
|
222
|
-
type BorderColor_2 = keyof typeof borderColorMap_2;
|
|
223
|
-
|
|
224
210
|
// @public
|
|
225
211
|
const borderColorMap: {
|
|
226
|
-
readonly 'color.border': SerializedStyles;
|
|
227
|
-
readonly 'accent.red': SerializedStyles;
|
|
228
|
-
readonly 'accent.orange': SerializedStyles;
|
|
229
|
-
readonly 'accent.yellow': SerializedStyles;
|
|
230
|
-
readonly 'accent.green': SerializedStyles;
|
|
231
|
-
readonly 'accent.teal': SerializedStyles;
|
|
232
|
-
readonly 'accent.blue': SerializedStyles;
|
|
233
|
-
readonly 'accent.purple': SerializedStyles;
|
|
234
|
-
readonly 'accent.magenta': SerializedStyles;
|
|
235
|
-
readonly 'accent.gray': SerializedStyles;
|
|
236
|
-
readonly disabled: SerializedStyles;
|
|
237
|
-
readonly focused: SerializedStyles;
|
|
238
|
-
readonly input: SerializedStyles;
|
|
239
|
-
readonly inverse: SerializedStyles;
|
|
240
|
-
readonly selected: SerializedStyles;
|
|
241
|
-
readonly brand: SerializedStyles;
|
|
242
|
-
readonly danger: SerializedStyles;
|
|
243
|
-
readonly warning: SerializedStyles;
|
|
244
|
-
readonly success: SerializedStyles;
|
|
245
|
-
readonly discovery: SerializedStyles;
|
|
246
|
-
readonly information: SerializedStyles;
|
|
247
|
-
readonly bold: SerializedStyles;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
// @public (undocumented)
|
|
251
|
-
const borderColorMap_2: {
|
|
252
212
|
readonly 'color.border': 'var(--ds-border)';
|
|
213
|
+
readonly 'accent.red': 'var(--ds-border-accent-red)';
|
|
214
|
+
readonly 'accent.orange': 'var(--ds-border-accent-orange)';
|
|
215
|
+
readonly 'accent.yellow': 'var(--ds-border-accent-yellow)';
|
|
216
|
+
readonly 'accent.green': 'var(--ds-border-accent-green)';
|
|
217
|
+
readonly 'accent.teal': 'var(--ds-border-accent-teal)';
|
|
218
|
+
readonly 'accent.blue': 'var(--ds-border-accent-blue)';
|
|
219
|
+
readonly 'accent.purple': 'var(--ds-border-accent-purple)';
|
|
220
|
+
readonly 'accent.magenta': 'var(--ds-border-accent-magenta)';
|
|
221
|
+
readonly 'accent.gray': 'var(--ds-border-accent-gray)';
|
|
253
222
|
readonly disabled: 'var(--ds-border-disabled)';
|
|
254
223
|
readonly focused: 'var(--ds-border-focused)';
|
|
255
224
|
readonly input: 'var(--ds-border-input)';
|
|
@@ -269,11 +238,12 @@ type BorderRadius = keyof typeof borderRadiusMap;
|
|
|
269
238
|
|
|
270
239
|
// @public (undocumented)
|
|
271
240
|
const borderRadiusMap: {
|
|
272
|
-
'radius.
|
|
273
|
-
'radius.
|
|
274
|
-
'radius.
|
|
275
|
-
'radius.300':
|
|
276
|
-
'radius.400':
|
|
241
|
+
readonly 'radius.050': 'var(--ds-radius-050)';
|
|
242
|
+
readonly 'radius.100': 'var(--ds-radius-100)';
|
|
243
|
+
readonly 'radius.200': 'var(--ds-radius-200)';
|
|
244
|
+
readonly 'radius.300': 'var(--ds-radius-300)';
|
|
245
|
+
readonly 'radius.400': 'var(--ds-radius-400)';
|
|
246
|
+
readonly 'radius.round': 'var(--ds-radius-round)';
|
|
277
247
|
};
|
|
278
248
|
|
|
279
249
|
// @public (undocumented)
|
|
@@ -281,46 +251,23 @@ type BorderStyle = keyof typeof borderStyleMap;
|
|
|
281
251
|
|
|
282
252
|
// @public (undocumented)
|
|
283
253
|
const borderStyleMap: {
|
|
284
|
-
readonly none:
|
|
285
|
-
readonly solid:
|
|
254
|
+
readonly none: 'none';
|
|
255
|
+
readonly solid: 'solid';
|
|
286
256
|
};
|
|
287
257
|
|
|
288
258
|
// @public (undocumented)
|
|
289
259
|
type BorderWidth = keyof typeof borderWidthMap;
|
|
290
260
|
|
|
291
|
-
// @public
|
|
292
|
-
type BorderWidth_2 = keyof typeof borderWidthMap_2;
|
|
293
|
-
|
|
294
|
-
// @public (undocumented)
|
|
261
|
+
// @public
|
|
295
262
|
const borderWidthMap: {
|
|
296
|
-
readonly '
|
|
297
|
-
readonly '
|
|
298
|
-
readonly '
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
// @public (undocumented)
|
|
302
|
-
const borderWidthMap_2: {
|
|
303
|
-
readonly 'size.0': 'var(--ds-width-0)';
|
|
304
|
-
readonly 'size.050': 'var(--ds-width-050)';
|
|
305
|
-
readonly 'size.100': 'var(--ds-width-100)';
|
|
263
|
+
readonly 'width.0': 'var(--ds-width-0)';
|
|
264
|
+
readonly 'width.050': 'var(--ds-width-050)';
|
|
265
|
+
readonly 'width.100': 'var(--ds-width-100)';
|
|
306
266
|
};
|
|
307
267
|
|
|
308
268
|
// @public
|
|
309
269
|
export const Box: BoxComponent;
|
|
310
270
|
|
|
311
|
-
// @public (undocumented)
|
|
312
|
-
const BOX_RESPONSIVE_PROPS: readonly [
|
|
313
|
-
'borderWidth',
|
|
314
|
-
'display',
|
|
315
|
-
'padding',
|
|
316
|
-
'paddingBlock',
|
|
317
|
-
'paddingBlockStart',
|
|
318
|
-
'paddingBlockEnd',
|
|
319
|
-
'paddingInline',
|
|
320
|
-
'paddingInlineStart',
|
|
321
|
-
'paddingInlineEnd',
|
|
322
|
-
];
|
|
323
|
-
|
|
324
271
|
// @public (undocumented)
|
|
325
272
|
type BoxComponent<T extends ElementType = 'div'> = (<
|
|
326
273
|
T extends ElementType = 'div',
|
|
@@ -332,15 +279,12 @@ type BoxComponent<T extends ElementType = 'div'> = (<
|
|
|
332
279
|
// @public (undocumented)
|
|
333
280
|
export type BoxProps<T extends ElementType = 'div'> = Omit<
|
|
334
281
|
BaseBoxProps<T>,
|
|
335
|
-
'className'
|
|
282
|
+
'className'
|
|
336
283
|
> &
|
|
337
284
|
PublicBoxPropsBase;
|
|
338
285
|
|
|
339
286
|
// @public (undocumented)
|
|
340
|
-
type
|
|
341
|
-
|
|
342
|
-
// @public (undocumented)
|
|
343
|
-
type BoxStyles = SerializedStyles_2 & {
|
|
287
|
+
type BoxStyles = SerializedStyles & {
|
|
344
288
|
[boxTag]: true;
|
|
345
289
|
};
|
|
346
290
|
|
|
@@ -354,9 +298,6 @@ type BoxXCSS = {
|
|
|
354
298
|
};
|
|
355
299
|
|
|
356
300
|
// @public
|
|
357
|
-
type Breakpoint = 'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxl' | 'xxs';
|
|
358
|
-
|
|
359
|
-
// @public (undocumented)
|
|
360
301
|
const dimensionMap: {
|
|
361
302
|
readonly '100%': '100%';
|
|
362
303
|
readonly 'size.100': '16px';
|
|
@@ -369,16 +310,7 @@ const dimensionMap: {
|
|
|
369
310
|
};
|
|
370
311
|
|
|
371
312
|
// @public (undocumented)
|
|
372
|
-
type Display =
|
|
373
|
-
|
|
374
|
-
// @public (undocumented)
|
|
375
|
-
const displayMap: {
|
|
376
|
-
readonly block: 'block';
|
|
377
|
-
readonly inline: 'inline';
|
|
378
|
-
readonly flex: 'flex';
|
|
379
|
-
readonly 'inline-flex': 'inline-flex';
|
|
380
|
-
readonly 'inline-block': 'inline-block';
|
|
381
|
-
};
|
|
313
|
+
type Display = 'block' | 'flex' | 'inline' | 'inline-block' | 'inline-flex';
|
|
382
314
|
|
|
383
315
|
// @public (undocumented)
|
|
384
316
|
type Flex = keyof typeof flexMap;
|
|
@@ -388,13 +320,13 @@ type FlexGrow = keyof typeof flexGrowMap;
|
|
|
388
320
|
|
|
389
321
|
// @public (undocumented)
|
|
390
322
|
const flexGrowMap: {
|
|
391
|
-
readonly '0':
|
|
392
|
-
readonly '1':
|
|
323
|
+
readonly '0': 0;
|
|
324
|
+
readonly '1': 1;
|
|
393
325
|
};
|
|
394
326
|
|
|
395
327
|
// @public (undocumented)
|
|
396
328
|
const flexMap: {
|
|
397
|
-
readonly '1':
|
|
329
|
+
readonly '1': 1;
|
|
398
330
|
};
|
|
399
331
|
|
|
400
332
|
// @public (undocumented)
|
|
@@ -402,33 +334,24 @@ type FlexShrink = keyof typeof flexShrinkMap;
|
|
|
402
334
|
|
|
403
335
|
// @public (undocumented)
|
|
404
336
|
const flexShrinkMap: {
|
|
405
|
-
readonly '0':
|
|
406
|
-
readonly '1':
|
|
337
|
+
readonly '0': 0;
|
|
338
|
+
readonly '1': 1;
|
|
407
339
|
};
|
|
408
340
|
|
|
409
341
|
// @public (undocumented)
|
|
410
|
-
type
|
|
342
|
+
type Gap = keyof typeof inlineSpaceMap.gap;
|
|
411
343
|
|
|
412
344
|
// @public (undocumented)
|
|
413
|
-
type
|
|
345
|
+
type Gap_2 = keyof typeof stackSpaceMap.gap;
|
|
414
346
|
|
|
415
347
|
// @public (undocumented)
|
|
416
|
-
type
|
|
348
|
+
type Grow = 'fill' | 'hug';
|
|
417
349
|
|
|
418
350
|
// @public (undocumented)
|
|
419
|
-
type
|
|
351
|
+
type Grow_2 = 'fill' | 'hug';
|
|
420
352
|
|
|
421
353
|
// @public (undocumented)
|
|
422
|
-
|
|
423
|
-
readonly '100%': SerializedStyles;
|
|
424
|
-
readonly 'size.100': SerializedStyles;
|
|
425
|
-
readonly 'size.200': SerializedStyles;
|
|
426
|
-
readonly 'size.300': SerializedStyles;
|
|
427
|
-
readonly 'size.400': SerializedStyles;
|
|
428
|
-
readonly 'size.500': SerializedStyles;
|
|
429
|
-
readonly 'size.600': SerializedStyles;
|
|
430
|
-
readonly 'size.1000': SerializedStyles;
|
|
431
|
-
};
|
|
354
|
+
type Height = keyof typeof dimensionMap;
|
|
432
355
|
|
|
433
356
|
// @public
|
|
434
357
|
export const Inline: MemoExoticComponent<
|
|
@@ -459,16 +382,36 @@ export interface InlineProps<T extends ElementType = 'div'> {
|
|
|
459
382
|
children: ReactNode;
|
|
460
383
|
grow?: Grow;
|
|
461
384
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
462
|
-
rowSpace?:
|
|
385
|
+
rowSpace?: RowGap;
|
|
463
386
|
separator?: string;
|
|
464
387
|
shouldWrap?: boolean;
|
|
465
|
-
space?:
|
|
388
|
+
space?: Gap;
|
|
466
389
|
spread?: Spread;
|
|
467
390
|
testId?: string;
|
|
468
391
|
}
|
|
469
392
|
|
|
470
|
-
// @public
|
|
471
|
-
|
|
393
|
+
// @public
|
|
394
|
+
const inlineSpaceMap: {
|
|
395
|
+
[k: string]: {
|
|
396
|
+
readonly '0': SerializedStyles_2;
|
|
397
|
+
readonly '025': SerializedStyles_2;
|
|
398
|
+
readonly '050': SerializedStyles_2;
|
|
399
|
+
readonly '075': SerializedStyles_2;
|
|
400
|
+
readonly '100': SerializedStyles_2;
|
|
401
|
+
readonly '150': SerializedStyles_2;
|
|
402
|
+
readonly '200': SerializedStyles_2;
|
|
403
|
+
readonly '250': SerializedStyles_2;
|
|
404
|
+
readonly '300': SerializedStyles_2;
|
|
405
|
+
readonly '400': SerializedStyles_2;
|
|
406
|
+
readonly '500': SerializedStyles_2;
|
|
407
|
+
readonly '600': SerializedStyles_2;
|
|
408
|
+
readonly '800': SerializedStyles_2;
|
|
409
|
+
readonly '1000': SerializedStyles_2;
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
// @public (undocumented)
|
|
414
|
+
type InlineStyles = SerializedStyles & {
|
|
472
415
|
[inlineTag]: true;
|
|
473
416
|
};
|
|
474
417
|
|
|
@@ -476,10 +419,10 @@ type InlineStyles = SerializedStyles_2 & {
|
|
|
476
419
|
const inlineTag: unique symbol;
|
|
477
420
|
|
|
478
421
|
// @public (undocumented)
|
|
479
|
-
type Layer = keyof typeof
|
|
422
|
+
type Layer = keyof typeof layerMap;
|
|
480
423
|
|
|
481
424
|
// @public (undocumented)
|
|
482
|
-
const
|
|
425
|
+
const layerMap: {
|
|
483
426
|
readonly card: 100;
|
|
484
427
|
readonly navigation: 200;
|
|
485
428
|
readonly dialog: 300;
|
|
@@ -511,8 +454,8 @@ type OverflowBlock = keyof typeof overflowBlockMap;
|
|
|
511
454
|
|
|
512
455
|
// @public (undocumented)
|
|
513
456
|
const overflowBlockMap: {
|
|
514
|
-
readonly auto:
|
|
515
|
-
readonly hidden:
|
|
457
|
+
readonly auto: 'auto';
|
|
458
|
+
readonly hidden: 'hidden';
|
|
516
459
|
};
|
|
517
460
|
|
|
518
461
|
// @public (undocumented)
|
|
@@ -520,22 +463,19 @@ type OverflowInline = keyof typeof overflowInlineMap;
|
|
|
520
463
|
|
|
521
464
|
// @public (undocumented)
|
|
522
465
|
const overflowInlineMap: {
|
|
523
|
-
readonly auto:
|
|
524
|
-
readonly hidden:
|
|
466
|
+
readonly auto: 'auto';
|
|
467
|
+
readonly hidden: 'hidden';
|
|
525
468
|
};
|
|
526
469
|
|
|
527
470
|
// @public (undocumented)
|
|
528
471
|
const overflowMap: {
|
|
529
|
-
readonly auto:
|
|
530
|
-
readonly hidden:
|
|
472
|
+
readonly auto: 'auto';
|
|
473
|
+
readonly hidden: 'hidden';
|
|
531
474
|
};
|
|
532
475
|
|
|
533
476
|
// @public (undocumented)
|
|
534
477
|
type Padding = keyof typeof paddingMap;
|
|
535
478
|
|
|
536
|
-
// @public (undocumented)
|
|
537
|
-
type Padding_2 = keyof typeof paddingMap_2;
|
|
538
|
-
|
|
539
479
|
// @public (undocumented)
|
|
540
480
|
type PaddingBlock = keyof typeof paddingMap;
|
|
541
481
|
|
|
@@ -572,72 +512,24 @@ const paddingMap: {
|
|
|
572
512
|
readonly 'space.1000': 'var(--ds-space-1000)';
|
|
573
513
|
};
|
|
574
514
|
|
|
575
|
-
// @public (undocumented)
|
|
576
|
-
const paddingMap_2: {
|
|
577
|
-
readonly 'space.0': 'var(--ds-space-0)';
|
|
578
|
-
readonly 'space.025': 'var(--ds-space-025)';
|
|
579
|
-
readonly 'space.050': 'var(--ds-space-050)';
|
|
580
|
-
readonly 'space.075': 'var(--ds-space-075)';
|
|
581
|
-
readonly 'space.100': 'var(--ds-space-100)';
|
|
582
|
-
readonly 'space.150': 'var(--ds-space-150)';
|
|
583
|
-
readonly 'space.200': 'var(--ds-space-200)';
|
|
584
|
-
readonly 'space.250': 'var(--ds-space-250)';
|
|
585
|
-
readonly 'space.300': 'var(--ds-space-300)';
|
|
586
|
-
readonly 'space.400': 'var(--ds-space-400)';
|
|
587
|
-
readonly 'space.500': 'var(--ds-space-500)';
|
|
588
|
-
readonly 'space.600': 'var(--ds-space-600)';
|
|
589
|
-
readonly 'space.800': 'var(--ds-space-800)';
|
|
590
|
-
readonly 'space.1000': 'var(--ds-space-1000)';
|
|
591
|
-
};
|
|
592
|
-
|
|
593
515
|
// @public (undocumented)
|
|
594
516
|
type Position = keyof typeof positionMap;
|
|
595
517
|
|
|
596
518
|
// @public (undocumented)
|
|
597
519
|
const positionMap: {
|
|
598
|
-
readonly absolute:
|
|
599
|
-
readonly fixed:
|
|
600
|
-
readonly relative:
|
|
601
|
-
readonly static:
|
|
520
|
+
readonly absolute: 'absolute';
|
|
521
|
+
readonly fixed: 'fixed';
|
|
522
|
+
readonly relative: 'relative';
|
|
523
|
+
readonly static: 'static';
|
|
602
524
|
};
|
|
603
525
|
|
|
604
526
|
// @public (undocumented)
|
|
605
527
|
type PublicBoxPropsBase = {
|
|
606
|
-
|
|
607
|
-
display?: Display;
|
|
608
|
-
padding?: Padding;
|
|
609
|
-
paddingBlock?: PaddingBlock;
|
|
610
|
-
paddingBlockStart?: PaddingBlockStart;
|
|
611
|
-
paddingBlockEnd?: PaddingBlockEnd;
|
|
612
|
-
paddingInline?: PaddingInline;
|
|
613
|
-
paddingInlineStart?: PaddingInlineStart;
|
|
614
|
-
paddingInlineEnd?: PaddingInlineEnd;
|
|
615
|
-
xcss?: BoxXCSS;
|
|
528
|
+
xcss?: Array<BoxXCSS | false | undefined> | BoxXCSS;
|
|
616
529
|
};
|
|
617
530
|
|
|
618
|
-
// @public
|
|
619
|
-
type
|
|
620
|
-
|
|
621
|
-
// @public (undocumented)
|
|
622
|
-
type RowSpace = keyof typeof rowSpaceMap;
|
|
623
|
-
|
|
624
|
-
// @public (undocumented)
|
|
625
|
-
const rowSpaceMap: {
|
|
626
|
-
readonly '0': SerializedStyles;
|
|
627
|
-
readonly '025': SerializedStyles;
|
|
628
|
-
readonly '050': SerializedStyles;
|
|
629
|
-
readonly '075': SerializedStyles;
|
|
630
|
-
readonly '100': SerializedStyles;
|
|
631
|
-
readonly '150': SerializedStyles;
|
|
632
|
-
readonly '200': SerializedStyles;
|
|
633
|
-
readonly '250': SerializedStyles;
|
|
634
|
-
readonly '300': SerializedStyles;
|
|
635
|
-
readonly '400': SerializedStyles;
|
|
636
|
-
readonly '500': SerializedStyles;
|
|
637
|
-
readonly '600': SerializedStyles;
|
|
638
|
-
readonly '800': SerializedStyles;
|
|
639
|
-
readonly '1000': SerializedStyles;
|
|
640
|
-
};
|
|
531
|
+
// @public (undocumented)
|
|
532
|
+
type RowGap = keyof typeof inlineSpaceMap.rowGap;
|
|
641
533
|
|
|
642
534
|
// @public (undocumented)
|
|
643
535
|
type SafeCSSObject = CSSPseudos &
|
|
@@ -655,53 +547,11 @@ type Shadow = keyof typeof shadowMap;
|
|
|
655
547
|
|
|
656
548
|
// @public (undocumented)
|
|
657
549
|
const shadowMap: {
|
|
658
|
-
readonly overflow:
|
|
659
|
-
readonly 'overflow.perimeter':
|
|
660
|
-
readonly 'overflow.spread':
|
|
661
|
-
readonly overlay:
|
|
662
|
-
readonly raised:
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
// @public (undocumented)
|
|
666
|
-
type Space = keyof typeof spaceMap;
|
|
667
|
-
|
|
668
|
-
// @public (undocumented)
|
|
669
|
-
type Space_2 = keyof typeof spaceMap_2;
|
|
670
|
-
|
|
671
|
-
// @public
|
|
672
|
-
const spaceMap: {
|
|
673
|
-
readonly '0': SerializedStyles;
|
|
674
|
-
readonly '025': SerializedStyles;
|
|
675
|
-
readonly '050': SerializedStyles;
|
|
676
|
-
readonly '075': SerializedStyles;
|
|
677
|
-
readonly '100': SerializedStyles;
|
|
678
|
-
readonly '150': SerializedStyles;
|
|
679
|
-
readonly '200': SerializedStyles;
|
|
680
|
-
readonly '250': SerializedStyles;
|
|
681
|
-
readonly '300': SerializedStyles;
|
|
682
|
-
readonly '400': SerializedStyles;
|
|
683
|
-
readonly '500': SerializedStyles;
|
|
684
|
-
readonly '600': SerializedStyles;
|
|
685
|
-
readonly '800': SerializedStyles;
|
|
686
|
-
readonly '1000': SerializedStyles;
|
|
687
|
-
};
|
|
688
|
-
|
|
689
|
-
// @public
|
|
690
|
-
const spaceMap_2: {
|
|
691
|
-
readonly '0': SerializedStyles;
|
|
692
|
-
readonly '025': SerializedStyles;
|
|
693
|
-
readonly '050': SerializedStyles;
|
|
694
|
-
readonly '075': SerializedStyles;
|
|
695
|
-
readonly '100': SerializedStyles;
|
|
696
|
-
readonly '150': SerializedStyles;
|
|
697
|
-
readonly '200': SerializedStyles;
|
|
698
|
-
readonly '250': SerializedStyles;
|
|
699
|
-
readonly '300': SerializedStyles;
|
|
700
|
-
readonly '400': SerializedStyles;
|
|
701
|
-
readonly '500': SerializedStyles;
|
|
702
|
-
readonly '600': SerializedStyles;
|
|
703
|
-
readonly '800': SerializedStyles;
|
|
704
|
-
readonly '1000': SerializedStyles;
|
|
550
|
+
readonly overflow: 'var(--ds-shadow-overflow)';
|
|
551
|
+
readonly 'overflow.perimeter': 'var(--ds-shadow-overflow-perimeter)';
|
|
552
|
+
readonly 'overflow.spread': 'var(--ds-shadow-overflow-spread)';
|
|
553
|
+
readonly overlay: 'var(--ds-shadow-overlay)';
|
|
554
|
+
readonly raised: 'var(--ds-shadow-raised)';
|
|
705
555
|
};
|
|
706
556
|
|
|
707
557
|
// @public (undocumented)
|
|
@@ -736,54 +586,36 @@ export interface StackProps<T extends ElementType = 'div'> {
|
|
|
736
586
|
children: ReactNode;
|
|
737
587
|
grow?: Grow_2;
|
|
738
588
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
739
|
-
space?:
|
|
589
|
+
space?: Gap_2;
|
|
740
590
|
spread?: Spread_2;
|
|
741
591
|
testId?: string;
|
|
742
592
|
}
|
|
743
593
|
|
|
744
|
-
// @public
|
|
745
|
-
|
|
594
|
+
// @public
|
|
595
|
+
const stackSpaceMap: {
|
|
596
|
+
[k: string]: {
|
|
597
|
+
readonly '0': SerializedStyles_2;
|
|
598
|
+
readonly '025': SerializedStyles_2;
|
|
599
|
+
readonly '050': SerializedStyles_2;
|
|
600
|
+
readonly '075': SerializedStyles_2;
|
|
601
|
+
readonly '100': SerializedStyles_2;
|
|
602
|
+
readonly '150': SerializedStyles_2;
|
|
603
|
+
readonly '200': SerializedStyles_2;
|
|
604
|
+
readonly '250': SerializedStyles_2;
|
|
605
|
+
readonly '300': SerializedStyles_2;
|
|
606
|
+
readonly '400': SerializedStyles_2;
|
|
607
|
+
readonly '500': SerializedStyles_2;
|
|
608
|
+
readonly '600': SerializedStyles_2;
|
|
609
|
+
readonly '800': SerializedStyles_2;
|
|
610
|
+
readonly '1000': SerializedStyles_2;
|
|
611
|
+
};
|
|
612
|
+
};
|
|
746
613
|
|
|
747
614
|
// @public (undocumented)
|
|
748
|
-
type
|
|
615
|
+
type TextColor = keyof typeof textColorMap;
|
|
749
616
|
|
|
750
617
|
// @public (undocumented)
|
|
751
618
|
const textColorMap: {
|
|
752
|
-
readonly 'color.text': SerializedStyles;
|
|
753
|
-
readonly 'accent.red': SerializedStyles;
|
|
754
|
-
readonly 'accent.red.bolder': SerializedStyles;
|
|
755
|
-
readonly 'accent.orange': SerializedStyles;
|
|
756
|
-
readonly 'accent.orange.bolder': SerializedStyles;
|
|
757
|
-
readonly 'accent.yellow': SerializedStyles;
|
|
758
|
-
readonly 'accent.yellow.bolder': SerializedStyles;
|
|
759
|
-
readonly 'accent.green': SerializedStyles;
|
|
760
|
-
readonly 'accent.green.bolder': SerializedStyles;
|
|
761
|
-
readonly 'accent.teal': SerializedStyles;
|
|
762
|
-
readonly 'accent.teal.bolder': SerializedStyles;
|
|
763
|
-
readonly 'accent.blue': SerializedStyles;
|
|
764
|
-
readonly 'accent.blue.bolder': SerializedStyles;
|
|
765
|
-
readonly 'accent.purple': SerializedStyles;
|
|
766
|
-
readonly 'accent.purple.bolder': SerializedStyles;
|
|
767
|
-
readonly 'accent.magenta': SerializedStyles;
|
|
768
|
-
readonly 'accent.magenta.bolder': SerializedStyles;
|
|
769
|
-
readonly 'accent.gray': SerializedStyles;
|
|
770
|
-
readonly 'accent.gray.bolder': SerializedStyles;
|
|
771
|
-
readonly disabled: SerializedStyles;
|
|
772
|
-
readonly inverse: SerializedStyles;
|
|
773
|
-
readonly selected: SerializedStyles;
|
|
774
|
-
readonly brand: SerializedStyles;
|
|
775
|
-
readonly danger: SerializedStyles;
|
|
776
|
-
readonly warning: SerializedStyles;
|
|
777
|
-
readonly 'warning.inverse': SerializedStyles;
|
|
778
|
-
readonly success: SerializedStyles;
|
|
779
|
-
readonly discovery: SerializedStyles;
|
|
780
|
-
readonly information: SerializedStyles;
|
|
781
|
-
readonly subtlest: SerializedStyles;
|
|
782
|
-
readonly subtle: SerializedStyles;
|
|
783
|
-
};
|
|
784
|
-
|
|
785
|
-
// @public (undocumented)
|
|
786
|
-
const textColorMap_2: {
|
|
787
619
|
readonly 'color.text': 'var(--ds-text)';
|
|
788
620
|
readonly 'accent.red': 'var(--ds-text-accent-red)';
|
|
789
621
|
readonly 'accent.red.bolder': 'var(--ds-text-accent-red-bolder)';
|
|
@@ -819,52 +651,54 @@ const textColorMap_2: {
|
|
|
819
651
|
|
|
820
652
|
// @public (undocumented)
|
|
821
653
|
type TokenisedProps = {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
654
|
+
alignSelf?: AlignSelf;
|
|
655
|
+
backgroundColor?: BackgroundColor;
|
|
656
|
+
borderColor?: BorderColor;
|
|
657
|
+
borderStyle?: BorderStyle;
|
|
658
|
+
borderRadius?: BorderRadius;
|
|
659
|
+
borderWidth?: BorderWidth;
|
|
660
|
+
display?: Display;
|
|
661
|
+
flex?: Flex;
|
|
662
|
+
flexGrow?: FlexGrow;
|
|
663
|
+
flexShrink?: FlexShrink;
|
|
664
|
+
height?: Height;
|
|
665
|
+
layer?: Layer;
|
|
830
666
|
maxWidth?: MaxWidth;
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
667
|
+
maxHeight?: MaxHeight;
|
|
668
|
+
minWidth?: MinWidth;
|
|
669
|
+
minHeight?: MinHeight;
|
|
670
|
+
overflow?: Overflow;
|
|
671
|
+
overflowInline?: OverflowInline;
|
|
672
|
+
overflowBlock?: OverflowBlock;
|
|
673
|
+
padding?: Padding;
|
|
674
|
+
paddingBlock?: PaddingBlock;
|
|
675
|
+
paddingBlockStart?: PaddingBlockStart;
|
|
676
|
+
paddingBlockEnd?: PaddingBlockEnd;
|
|
677
|
+
paddingInline?: PaddingInline;
|
|
678
|
+
paddingInlineStart?: PaddingInlineStart;
|
|
679
|
+
paddingInlineEnd?: PaddingInlineEnd;
|
|
680
|
+
position?: Position;
|
|
681
|
+
shadow?: Shadow;
|
|
682
|
+
textColor?: TextColor;
|
|
683
|
+
width?: Width;
|
|
839
684
|
};
|
|
840
685
|
|
|
841
686
|
// @public (undocumented)
|
|
842
687
|
const uniqueSymbol: unique symbol;
|
|
843
688
|
|
|
844
689
|
// @public (undocumented)
|
|
845
|
-
type Width = keyof typeof
|
|
846
|
-
|
|
847
|
-
// @public (undocumented)
|
|
848
|
-
type Width_2 = keyof typeof dimensionMap;
|
|
849
|
-
|
|
850
|
-
// @public
|
|
851
|
-
const widthMap: {
|
|
852
|
-
readonly '100%': SerializedStyles;
|
|
853
|
-
readonly 'size.100': SerializedStyles;
|
|
854
|
-
readonly 'size.200': SerializedStyles;
|
|
855
|
-
readonly 'size.300': SerializedStyles;
|
|
856
|
-
readonly 'size.400': SerializedStyles;
|
|
857
|
-
readonly 'size.500': SerializedStyles;
|
|
858
|
-
readonly 'size.600': SerializedStyles;
|
|
859
|
-
readonly 'size.1000': SerializedStyles;
|
|
860
|
-
};
|
|
690
|
+
type Width = keyof typeof dimensionMap;
|
|
861
691
|
|
|
862
692
|
// @public (undocumented)
|
|
863
693
|
export function xcss<Primitive extends typeof Box | typeof Inline = typeof Box>(
|
|
864
694
|
style: Primitive extends typeof Box
|
|
865
|
-
?
|
|
695
|
+
?
|
|
696
|
+
| ScopedSafeCSSObject<AllowedBoxStyles>
|
|
697
|
+
| ScopedSafeCSSObject<AllowedBoxStyles>[]
|
|
866
698
|
: Primitive extends typeof Inline
|
|
867
|
-
?
|
|
699
|
+
?
|
|
700
|
+
| ScopedSafeCSSObject<AllowedInlineStyles>
|
|
701
|
+
| ScopedSafeCSSObject<AllowedInlineStyles>[]
|
|
868
702
|
: never,
|
|
869
703
|
): {
|
|
870
704
|
readonly symbol: typeof uniqueSymbol;
|