@primer/styled-react 1.0.0-rc.7 → 1.0.0-rc.8
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/dist/components/ActionList.d.ts +21 -13
- package/dist/components/ActionList.d.ts.map +1 -1
- package/dist/components/ActionList.js +162 -0
- package/dist/components/ActionMenu.d.ts +2 -2
- package/dist/components/ActionMenu.d.ts.map +1 -1
- package/dist/components/ActionMenu.js +18 -0
- package/dist/components/Autocomplete.d.ts +5 -3
- package/dist/components/Autocomplete.d.ts.map +1 -1
- package/dist/components/Autocomplete.js +24 -0
- package/dist/components/Avatar.js +13 -0
- package/dist/components/BaseStyles.d.ts +17 -0
- package/dist/components/BaseStyles.d.ts.map +1 -0
- package/dist/components/BaseStyles.js +51 -0
- package/dist/components/Breadcrumbs.js +37 -0
- package/dist/components/Button.d.ts +13 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +111 -0
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +14 -0
- package/dist/components/CheckboxGroup.d.ts +16 -4
- package/dist/components/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.js +42 -0
- package/dist/components/CircleBadge.js +11 -0
- package/dist/components/CounterLabel.js +13 -0
- package/dist/components/DataTable.js +32 -0
- package/dist/components/Dialog.js +42 -0
- package/dist/components/FeatureFlaggedTheming.d.ts +6 -0
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
- package/dist/components/FeatureFlaggedTheming.js +54 -0
- package/dist/components/Flash.js +11 -0
- package/dist/components/FormControl.d.ts +12 -0
- package/dist/components/FormControl.d.ts.map +1 -0
- package/dist/components/FormControl.js +18 -0
- package/dist/components/Header.js +51 -0
- package/dist/components/Heading.js +11 -0
- package/dist/components/IconButton.d.ts +9 -0
- package/dist/components/IconButton.d.ts.map +1 -0
- package/dist/components/IconButton.js +39 -0
- package/dist/components/Label.js +25 -0
- package/dist/components/Link.js +25 -0
- package/dist/components/LinkButton.js +11 -0
- package/dist/components/NavList.d.ts +27 -19
- package/dist/components/NavList.d.ts.map +1 -1
- package/dist/components/NavList.js +56 -0
- package/dist/components/Overlay.js +11 -0
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/{PageHeader-DCDIR2C1.js → components/PageHeader.js} +4 -41
- package/dist/components/PageLayout.d.ts +15 -10
- package/dist/components/PageLayout.d.ts.map +1 -1
- package/dist/components/PageLayout.js +42 -0
- package/dist/components/RadioGroup.d.ts +16 -4
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +42 -0
- package/dist/components/RelativeTime.js +13 -0
- package/dist/components/SegmentedControl.d.ts +9 -2
- package/dist/components/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl.js +30 -0
- package/dist/components/Select.d.ts +8 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/Select.js +23 -0
- package/dist/components/Spinner.js +11 -0
- package/dist/components/StateLabel.js +13 -0
- package/dist/components/SubNav.d.ts +1 -0
- package/dist/components/SubNav.d.ts.map +1 -1
- package/dist/components/SubNav.js +25 -0
- package/dist/components/Text.d.ts +11 -3
- package/dist/components/Text.d.ts.map +1 -1
- package/dist/components/Text.js +25 -0
- package/dist/components/TextInput.d.ts +15 -0
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput.js +37 -0
- package/dist/components/Textarea.d.ts +9 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea.js +25 -0
- package/dist/components/ThemeProvider.d.ts +30 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ThemeProvider.js +202 -0
- package/dist/components/Timeline.js +46 -0
- package/dist/components/ToggleSwitch.js +13 -0
- package/dist/components/Token.js +25 -0
- package/dist/components/Tooltip.d.ts +2 -6
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +14 -0
- package/dist/components/Truncate.js +11 -0
- package/dist/components/UnderlineNav.js +43 -0
- package/dist/components/UnderlinePanels.d.ts +7 -5
- package/dist/components/UnderlinePanels.d.ts.map +1 -1
- package/dist/components/UnderlinePanels.js +28 -0
- package/dist/components/deprecated/ActionList.js +48 -0
- package/dist/components/deprecated/DialogV1.js +44 -0
- package/dist/components/deprecated/Octicon.js +39 -0
- package/dist/components/deprecated/TabNav.js +44 -0
- package/dist/components/deprecated/Tooltip.d.ts.map +1 -1
- package/dist/components/deprecated/Tooltip.js +32 -0
- package/dist/components.json +27 -0
- package/dist/deprecated.d.ts +5 -4
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +5 -84
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +5 -32
- package/dist/index.d.ts +9 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -511
- package/dist/sx.d.ts +3 -0
- package/dist/sx.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/Tooltip-DIHgr01r.js +0 -152
- package/dist/Tooltip-YuSlJ5b_.js +0 -20
- package/dist/components/DialogV1.d.ts +0 -11
- package/dist/components/DialogV1.d.ts.map +0 -1
- package/dist/components/TabNav.d.ts +0 -9
- package/dist/components/TabNav.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,511 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
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
|
-
const BreadcrumbsImpl = styled(Breadcrumbs$1).withConfig({
|
|
45
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
46
|
-
}).withConfig({
|
|
47
|
-
displayName: "Breadcrumbs__BreadcrumbsImpl",
|
|
48
|
-
componentId: "sc-1qj8pw-0"
|
|
49
|
-
})(["", ""], sx);
|
|
50
|
-
const StyledBreadcrumbsItem = styled(Breadcrumbs$1.Item).withConfig({
|
|
51
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
52
|
-
}).withConfig({
|
|
53
|
-
displayName: "Breadcrumbs__StyledBreadcrumbsItem",
|
|
54
|
-
componentId: "sc-1qj8pw-1"
|
|
55
|
-
})(["", ""], sx);
|
|
56
|
-
function BreadcrumbsItem({
|
|
57
|
-
as,
|
|
58
|
-
...props
|
|
59
|
-
}) {
|
|
60
|
-
return /*#__PURE__*/jsx(StyledBreadcrumbsItem, {
|
|
61
|
-
...props,
|
|
62
|
-
...(as ? {
|
|
63
|
-
forwardedAs: as
|
|
64
|
-
} : {})
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
const Breadcrumbs = Object.assign(BreadcrumbsImpl, {
|
|
68
|
-
Item: BreadcrumbsItem
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
|
|
73
|
-
*/
|
|
74
|
-
const Breadcrumb = Breadcrumbs;
|
|
75
|
-
|
|
76
|
-
const Checkbox = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
|
|
77
|
-
return /*#__PURE__*/jsx(Box, {
|
|
78
|
-
as: Checkbox$1,
|
|
79
|
-
ref: ref,
|
|
80
|
-
...props
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
const CheckboxGroupImpl = props => {
|
|
85
|
-
return /*#__PURE__*/jsx(Box, {
|
|
86
|
-
as: CheckboxGroup$1,
|
|
87
|
-
...props
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
// Define local types based on the internal component props
|
|
92
|
-
|
|
93
|
-
const CheckboxOrRadioGroupLabel$1 = props => {
|
|
94
|
-
return /*#__PURE__*/jsx(Box, {
|
|
95
|
-
as: CheckboxGroup$1.Label,
|
|
96
|
-
...props
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
const CheckboxOrRadioGroupCaption$1 = props => {
|
|
100
|
-
return /*#__PURE__*/jsx(Box, {
|
|
101
|
-
as: CheckboxGroup$1.Caption,
|
|
102
|
-
...props
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
const CheckboxOrRadioGroupValidation$1 = props => {
|
|
106
|
-
return /*#__PURE__*/jsx(Box, {
|
|
107
|
-
as: CheckboxGroup$1.Validation,
|
|
108
|
-
...props
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
const CheckboxGroup = Object.assign(CheckboxGroupImpl, {
|
|
112
|
-
Label: CheckboxOrRadioGroupLabel$1,
|
|
113
|
-
Caption: CheckboxOrRadioGroupCaption$1,
|
|
114
|
-
Validation: CheckboxOrRadioGroupValidation$1
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
const CircleBadge = styled(CircleBadge$1).withConfig({
|
|
118
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
119
|
-
}).withConfig({
|
|
120
|
-
displayName: "CircleBadge",
|
|
121
|
-
componentId: "sc-1u7lp3v-0"
|
|
122
|
-
})(["", ""], sx);
|
|
123
|
-
|
|
124
|
-
const CounterLabel = /*#__PURE__*/forwardRef(function CounterLabel(props, ref) {
|
|
125
|
-
return /*#__PURE__*/jsx(Box, {
|
|
126
|
-
as: CounterLabel$1,
|
|
127
|
-
ref: ref,
|
|
128
|
-
...props
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
const Flash = styled(Flash$1).withConfig({
|
|
133
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
134
|
-
}).withConfig({
|
|
135
|
-
displayName: "Flash",
|
|
136
|
-
componentId: "sc-413izo-0"
|
|
137
|
-
})(["", ""], sx);
|
|
138
|
-
|
|
139
|
-
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
140
|
-
return /*#__PURE__*/jsx(Box, {
|
|
141
|
-
as: Header$1,
|
|
142
|
-
ref: ref,
|
|
143
|
-
...props
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
const HeaderImpl = /*#__PURE__*/forwardRef(({
|
|
147
|
-
as,
|
|
148
|
-
...props
|
|
149
|
-
}, ref) => /*#__PURE__*/jsx(StyledHeader, {
|
|
150
|
-
...props,
|
|
151
|
-
...(as ? {
|
|
152
|
-
forwardedAs: as
|
|
153
|
-
} : {}),
|
|
154
|
-
ref: ref
|
|
155
|
-
}));
|
|
156
|
-
const HeaderItem = /*#__PURE__*/forwardRef(function HeaderItem(props, ref) {
|
|
157
|
-
return /*#__PURE__*/jsx(Box, {
|
|
158
|
-
as: Header$1.Item,
|
|
159
|
-
ref: ref,
|
|
160
|
-
...props
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
const StyledHeaderLink = /*#__PURE__*/forwardRef(function HeaderLink(props, ref) {
|
|
164
|
-
return /*#__PURE__*/jsx(Box, {
|
|
165
|
-
as: Header$1.Link,
|
|
166
|
-
ref: ref,
|
|
167
|
-
...props
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
const HeaderLink = /*#__PURE__*/forwardRef(({
|
|
171
|
-
as,
|
|
172
|
-
...props
|
|
173
|
-
}, ref) => /*#__PURE__*/jsx(StyledHeaderLink, {
|
|
174
|
-
...props,
|
|
175
|
-
...(as ? {
|
|
176
|
-
forwardedAs: as
|
|
177
|
-
} : {}),
|
|
178
|
-
ref: ref
|
|
179
|
-
}));
|
|
180
|
-
const Header = Object.assign(HeaderImpl, {
|
|
181
|
-
Item: HeaderItem,
|
|
182
|
-
Link: HeaderLink
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
const Heading = styled(Heading$1).withConfig({
|
|
186
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
187
|
-
}).withConfig({
|
|
188
|
-
displayName: "Heading",
|
|
189
|
-
componentId: "sc-1vc165i-0"
|
|
190
|
-
})(["", ""], sx);
|
|
191
|
-
|
|
192
|
-
const StyledLabel = styled(Label$1).withConfig({
|
|
193
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
194
|
-
}).withConfig({
|
|
195
|
-
displayName: "Label__StyledLabel",
|
|
196
|
-
componentId: "sc-1cpass9-0"
|
|
197
|
-
})(["", ""], sx);
|
|
198
|
-
const Label = /*#__PURE__*/forwardRef(({
|
|
199
|
-
as,
|
|
200
|
-
...props
|
|
201
|
-
}, ref) => {
|
|
202
|
-
return /*#__PURE__*/jsx(StyledLabel, {
|
|
203
|
-
...props,
|
|
204
|
-
...(as ? {
|
|
205
|
-
forwardedAs: as
|
|
206
|
-
} : {}),
|
|
207
|
-
ref: ref
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
const StyledLink = styled(Link$1).withConfig({
|
|
212
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
213
|
-
}).withConfig({
|
|
214
|
-
displayName: "Link__StyledLink",
|
|
215
|
-
componentId: "sc-1syctfj-0"
|
|
216
|
-
})(["", ""], sx);
|
|
217
|
-
const Link = /*#__PURE__*/forwardRef(({
|
|
218
|
-
as,
|
|
219
|
-
...props
|
|
220
|
-
}, ref) => {
|
|
221
|
-
return /*#__PURE__*/jsx(StyledLink, {
|
|
222
|
-
...props,
|
|
223
|
-
...(as ? {
|
|
224
|
-
forwardedAs: as
|
|
225
|
-
} : {}),
|
|
226
|
-
ref: ref
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
const LinkButton = styled(LinkButton$1).withConfig({
|
|
231
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
232
|
-
}).withConfig({
|
|
233
|
-
displayName: "LinkButton",
|
|
234
|
-
componentId: "sc-1v6zkmg-0"
|
|
235
|
-
})(["", ""], sx);
|
|
236
|
-
|
|
237
|
-
const NavListImpl = /*#__PURE__*/forwardRef(function NavList(props, ref) {
|
|
238
|
-
return /*#__PURE__*/jsx(Box, {
|
|
239
|
-
as: NavList$1,
|
|
240
|
-
ref: ref,
|
|
241
|
-
...props
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
const NavListItem = /*#__PURE__*/forwardRef(function NavListItem(props, ref) {
|
|
245
|
-
// @ts-expect-error - PrimerNavList.Item is not recognized as a valid component type
|
|
246
|
-
return /*#__PURE__*/jsx(Box, {
|
|
247
|
-
as: NavList$1.Item,
|
|
248
|
-
ref: ref,
|
|
249
|
-
...props
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
|
|
253
|
-
// @ts-expect-error - PrimerNavList.Group is not recognized as a valid component type
|
|
254
|
-
return /*#__PURE__*/jsx(Box, {
|
|
255
|
-
as: NavList$1.Group,
|
|
256
|
-
ref: ref,
|
|
257
|
-
...props
|
|
258
|
-
});
|
|
259
|
-
});
|
|
260
|
-
const NavList = Object.assign(NavListImpl, {
|
|
261
|
-
// Wrapped components that need sx support added back in
|
|
262
|
-
Item: NavListItem,
|
|
263
|
-
Group: NavListGroup,
|
|
264
|
-
// Re-exporting others directly
|
|
265
|
-
// TODO: try to remove typecasts to work around "non-portable types" TS error
|
|
266
|
-
SubNav: NavList$1.SubNav,
|
|
267
|
-
Divider: NavList$1.Divider,
|
|
268
|
-
LeadingVisual: NavList$1.LeadingVisual,
|
|
269
|
-
TrailingVisual: NavList$1.TrailingVisual,
|
|
270
|
-
TrailingAction: NavList$1.TrailingAction,
|
|
271
|
-
GroupHeading: NavList$1.GroupHeading,
|
|
272
|
-
GroupExpand: NavList$1.GroupExpand
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
const Overlay = styled(Overlay$1).withConfig({
|
|
276
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
277
|
-
}).withConfig({
|
|
278
|
-
displayName: "Overlay",
|
|
279
|
-
componentId: "sc-tjbd74-0"
|
|
280
|
-
})(["", ""], sx);
|
|
281
|
-
|
|
282
|
-
const RadioGroupImpl = props => {
|
|
283
|
-
return /*#__PURE__*/jsx(Box, {
|
|
284
|
-
as: RadioGroup$1,
|
|
285
|
-
...props
|
|
286
|
-
});
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
// Define local types based on the internal component props
|
|
290
|
-
|
|
291
|
-
const CheckboxOrRadioGroupLabel = props => {
|
|
292
|
-
return /*#__PURE__*/jsx(Box, {
|
|
293
|
-
as: RadioGroup$1.Label,
|
|
294
|
-
...props
|
|
295
|
-
});
|
|
296
|
-
};
|
|
297
|
-
const CheckboxOrRadioGroupCaption = props => {
|
|
298
|
-
return /*#__PURE__*/jsx(Box, {
|
|
299
|
-
as: RadioGroup$1.Caption,
|
|
300
|
-
...props
|
|
301
|
-
});
|
|
302
|
-
};
|
|
303
|
-
const CheckboxOrRadioGroupValidation = props => {
|
|
304
|
-
return /*#__PURE__*/jsx(Box, {
|
|
305
|
-
as: RadioGroup$1.Validation,
|
|
306
|
-
...props
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
|
-
const RadioGroup = Object.assign(RadioGroupImpl, {
|
|
310
|
-
Label: CheckboxOrRadioGroupLabel,
|
|
311
|
-
Caption: CheckboxOrRadioGroupCaption,
|
|
312
|
-
Validation: CheckboxOrRadioGroupValidation
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
function RelativeTime(props) {
|
|
316
|
-
// @ts-expect-error the types for Box are not correctly inferred here
|
|
317
|
-
return /*#__PURE__*/jsx(Box, {
|
|
318
|
-
as: RelativeTime$1,
|
|
319
|
-
...props
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
const SegmentedControlButton = props => {
|
|
324
|
-
return /*#__PURE__*/jsx(Box, {
|
|
325
|
-
as: SegmentedControl$1.Button,
|
|
326
|
-
...props
|
|
327
|
-
});
|
|
328
|
-
};
|
|
329
|
-
const SegmentedControlIconButton = props => {
|
|
330
|
-
return /*#__PURE__*/jsx(Box, {
|
|
331
|
-
as: SegmentedControl$1.IconButton,
|
|
332
|
-
...props
|
|
333
|
-
});
|
|
334
|
-
};
|
|
335
|
-
const SegmentedControlImpl = props => {
|
|
336
|
-
return /*#__PURE__*/jsx(Box, {
|
|
337
|
-
as: SegmentedControl$1,
|
|
338
|
-
...props
|
|
339
|
-
});
|
|
340
|
-
};
|
|
341
|
-
const SegmentedControl = Object.assign(SegmentedControlImpl, {
|
|
342
|
-
Button: SegmentedControlButton,
|
|
343
|
-
IconButton: SegmentedControlIconButton
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
const Spinner = styled(Spinner$1).withConfig({
|
|
347
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
348
|
-
}).withConfig({
|
|
349
|
-
displayName: "Spinner",
|
|
350
|
-
componentId: "sc-jbw2a0-0"
|
|
351
|
-
})(["", ""], sx);
|
|
352
|
-
|
|
353
|
-
const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
|
|
354
|
-
return /*#__PURE__*/jsx(Box, {
|
|
355
|
-
as: StateLabel$1,
|
|
356
|
-
ref: ref,
|
|
357
|
-
...props
|
|
358
|
-
});
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
|
|
362
|
-
return /*#__PURE__*/jsx(Box, {
|
|
363
|
-
as: SubNav$1,
|
|
364
|
-
ref: ref,
|
|
365
|
-
...props
|
|
366
|
-
});
|
|
367
|
-
});
|
|
368
|
-
const SubNavLink = /*#__PURE__*/forwardRef(function SubNavLink(props, ref) {
|
|
369
|
-
return /*#__PURE__*/jsx(Box, {
|
|
370
|
-
as: SubNav$1.Link,
|
|
371
|
-
ref: ref,
|
|
372
|
-
...props
|
|
373
|
-
});
|
|
374
|
-
});
|
|
375
|
-
const SubNav = Object.assign(SubNavImpl, {
|
|
376
|
-
Link: SubNavLink
|
|
377
|
-
});
|
|
378
|
-
|
|
379
|
-
const StyledText = styled(Text$1).withConfig({
|
|
380
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
381
|
-
}).withConfig({
|
|
382
|
-
displayName: "Text__StyledText",
|
|
383
|
-
componentId: "sc-1klmep6-0"
|
|
384
|
-
})(["", ""], sx);
|
|
385
|
-
const Text = /*#__PURE__*/forwardRef(({
|
|
386
|
-
as,
|
|
387
|
-
...props
|
|
388
|
-
}, ref) => {
|
|
389
|
-
return /*#__PURE__*/jsx(StyledText, {
|
|
390
|
-
...props,
|
|
391
|
-
...(as ? {
|
|
392
|
-
forwardedAs: as
|
|
393
|
-
} : {}),
|
|
394
|
-
ref: ref
|
|
395
|
-
});
|
|
396
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
397
|
-
});
|
|
398
|
-
|
|
399
|
-
const TimelineImpl = /*#__PURE__*/forwardRef(function Timeline(props, ref) {
|
|
400
|
-
return /*#__PURE__*/jsx(Box, {
|
|
401
|
-
as: Timeline$1,
|
|
402
|
-
ref: ref,
|
|
403
|
-
...props
|
|
404
|
-
});
|
|
405
|
-
});
|
|
406
|
-
const TimelineItem = /*#__PURE__*/forwardRef(function TimelineItem(props, ref) {
|
|
407
|
-
return /*#__PURE__*/jsx(Box, {
|
|
408
|
-
as: Timeline$1.Item,
|
|
409
|
-
ref: ref,
|
|
410
|
-
...props
|
|
411
|
-
});
|
|
412
|
-
});
|
|
413
|
-
function TimelineBadge(props) {
|
|
414
|
-
return /*#__PURE__*/jsx(Box, {
|
|
415
|
-
as: Timeline$1.Badge,
|
|
416
|
-
...props
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
const TimelineBody = /*#__PURE__*/forwardRef(function TimelineBody(props, ref) {
|
|
420
|
-
return /*#__PURE__*/jsx(Box, {
|
|
421
|
-
as: Timeline$1.Body,
|
|
422
|
-
ref: ref,
|
|
423
|
-
...props
|
|
424
|
-
});
|
|
425
|
-
});
|
|
426
|
-
const TimelineBreak = /*#__PURE__*/forwardRef(function TimelineBreak(props, ref) {
|
|
427
|
-
return /*#__PURE__*/jsx(Box, {
|
|
428
|
-
as: Timeline$1.Break,
|
|
429
|
-
ref: ref,
|
|
430
|
-
...props
|
|
431
|
-
});
|
|
432
|
-
});
|
|
433
|
-
const Timeline = Object.assign(TimelineImpl, {
|
|
434
|
-
Item: TimelineItem,
|
|
435
|
-
Badge: TimelineBadge,
|
|
436
|
-
Body: TimelineBody,
|
|
437
|
-
Break: TimelineBreak
|
|
438
|
-
});
|
|
439
|
-
|
|
440
|
-
const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
|
441
|
-
return /*#__PURE__*/jsx(Box, {
|
|
442
|
-
as: ToggleSwitch$1,
|
|
443
|
-
ref: ref,
|
|
444
|
-
...props
|
|
445
|
-
});
|
|
446
|
-
});
|
|
447
|
-
|
|
448
|
-
const StyledToken = styled(Token$1).withConfig({
|
|
449
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
450
|
-
}).withConfig({
|
|
451
|
-
displayName: "Token__StyledToken",
|
|
452
|
-
componentId: "sc-ldn0r8-0"
|
|
453
|
-
})(["", ""], sx);
|
|
454
|
-
const Token = /*#__PURE__*/forwardRef(({
|
|
455
|
-
as,
|
|
456
|
-
...props
|
|
457
|
-
}, ref) => {
|
|
458
|
-
return /*#__PURE__*/jsx(StyledToken, {
|
|
459
|
-
...props,
|
|
460
|
-
...(as ? {
|
|
461
|
-
forwardedAs: as
|
|
462
|
-
} : {}),
|
|
463
|
-
ref: ref
|
|
464
|
-
});
|
|
465
|
-
});
|
|
466
|
-
|
|
467
|
-
const Truncate = styled(Truncate$1).withConfig({
|
|
468
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
469
|
-
}).withConfig({
|
|
470
|
-
displayName: "Truncate",
|
|
471
|
-
componentId: "sc-x3i4it-0"
|
|
472
|
-
})(["", ""], sx);
|
|
473
|
-
|
|
474
|
-
const StyledUnderlineNav = /*#__PURE__*/forwardRef(function UnderlineNav(props, ref) {
|
|
475
|
-
return /*#__PURE__*/jsx(Box, {
|
|
476
|
-
as: UnderlineNav$1,
|
|
477
|
-
ref: ref,
|
|
478
|
-
...props
|
|
479
|
-
});
|
|
480
|
-
});
|
|
481
|
-
const UnderlineNavImpl = /*#__PURE__*/forwardRef(({
|
|
482
|
-
as,
|
|
483
|
-
...props
|
|
484
|
-
}, ref) => /*#__PURE__*/jsx(StyledUnderlineNav, {
|
|
485
|
-
...props,
|
|
486
|
-
...(as ? {
|
|
487
|
-
forwardedAs: as
|
|
488
|
-
} : {}),
|
|
489
|
-
ref: ref
|
|
490
|
-
}));
|
|
491
|
-
const StyledUnderlineNavItem = styled(UnderlineNav$1.Item).withConfig({
|
|
492
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
493
|
-
}).withConfig({
|
|
494
|
-
displayName: "UnderlineNav__StyledUnderlineNavItem",
|
|
495
|
-
componentId: "sc-dx6br2-0"
|
|
496
|
-
})(["", ""], sx);
|
|
497
|
-
const UnderlineNavItem = /*#__PURE__*/forwardRef(({
|
|
498
|
-
as,
|
|
499
|
-
...props
|
|
500
|
-
}, ref) => /*#__PURE__*/jsx(StyledUnderlineNavItem, {
|
|
501
|
-
...props,
|
|
502
|
-
...(as ? {
|
|
503
|
-
forwardedAs: as
|
|
504
|
-
} : {}),
|
|
505
|
-
ref: ref
|
|
506
|
-
}));
|
|
507
|
-
const UnderlineNav = Object.assign(UnderlineNavImpl, {
|
|
508
|
-
Item: UnderlineNavItem
|
|
509
|
-
});
|
|
510
|
-
|
|
511
|
-
export { ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, Header, Heading, Label, Link, LinkButton, NavList, Overlay, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Text, Timeline, ToggleSwitch, Token, Truncate, UnderlineNav };
|
|
1
|
+
"use client";
|
|
2
|
+
export { Box, Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
|
|
3
|
+
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme } from './components/FeatureFlaggedTheming.js';
|
|
4
|
+
export { ActionList } from './components/ActionList.js';
|
|
5
|
+
export { ActionMenu } from './components/ActionMenu.js';
|
|
6
|
+
export { Autocomplete } from './components/Autocomplete.js';
|
|
7
|
+
export { Avatar } from './components/Avatar.js';
|
|
8
|
+
export { Breadcrumb, Breadcrumbs } from './components/Breadcrumbs.js';
|
|
9
|
+
export { ButtonComponent as Button } from './components/Button.js';
|
|
10
|
+
export { Checkbox } from './components/Checkbox.js';
|
|
11
|
+
export { CheckboxGroup } from './components/CheckboxGroup.js';
|
|
12
|
+
export { CircleBadge } from './components/CircleBadge.js';
|
|
13
|
+
export { CounterLabel } from './components/CounterLabel.js';
|
|
14
|
+
export { Dialog } from './components/Dialog.js';
|
|
15
|
+
export { Flash } from './components/Flash.js';
|
|
16
|
+
export { FormControl } from './components/FormControl.js';
|
|
17
|
+
export { Header } from './components/Header.js';
|
|
18
|
+
export { Heading } from './components/Heading.js';
|
|
19
|
+
export { IconButton } from './components/IconButton.js';
|
|
20
|
+
export { Label } from './components/Label.js';
|
|
21
|
+
export { Link } from './components/Link.js';
|
|
22
|
+
export { LinkButton } from './components/LinkButton.js';
|
|
23
|
+
export { NavList } from './components/NavList.js';
|
|
24
|
+
export { Overlay } from './components/Overlay.js';
|
|
25
|
+
export { PageLayout } from './components/PageLayout.js';
|
|
26
|
+
export { PageHeader } from './components/PageHeader.js';
|
|
27
|
+
export { RadioGroup } from './components/RadioGroup.js';
|
|
28
|
+
export { RelativeTime } from './components/RelativeTime.js';
|
|
29
|
+
export { SegmentedControl } from './components/SegmentedControl.js';
|
|
30
|
+
export { Select } from './components/Select.js';
|
|
31
|
+
export { Spinner } from './components/Spinner.js';
|
|
32
|
+
export { StateLabel } from './components/StateLabel.js';
|
|
33
|
+
export { SubNav } from './components/SubNav.js';
|
|
34
|
+
export { Text } from './components/Text.js';
|
|
35
|
+
export { Textarea } from './components/Textarea.js';
|
|
36
|
+
export { TextInput } from './components/TextInput.js';
|
|
37
|
+
export { Timeline } from './components/Timeline.js';
|
|
38
|
+
export { ToggleSwitch } from './components/ToggleSwitch.js';
|
|
39
|
+
export { Tooltip } from './components/Tooltip.js';
|
|
40
|
+
export { Token } from './components/Token.js';
|
|
41
|
+
export { Truncate } from './components/Truncate.js';
|
|
42
|
+
export { UnderlineNav } from './components/UnderlineNav.js';
|
package/dist/sx.d.ts
CHANGED
package/dist/sx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAC7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,GAAG,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;CACtC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/preset-react": "^7.27.1",
|
|
32
32
|
"@babel/preset-typescript": "^7.27.1",
|
|
33
|
-
"@primer/react": "^38.0.0-rc.
|
|
33
|
+
"@primer/react": "^38.0.0-rc.7",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@types/react": "18.3.11",
|
|
36
36
|
"@types/react-dom": "18.3.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.9.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@primer/react": "38.0.0-rc.
|
|
49
|
+
"@primer/react": "38.0.0-rc.7",
|
|
50
50
|
"@types/react": "18.x || 19.x",
|
|
51
51
|
"@types/react-dom": "18.x || 19.x",
|
|
52
52
|
"@types/react-is": "18.x || 19.x",
|