@primer/styled-react 1.0.2 → 1.0.3-rc.0c533afb8
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.js +1 -1
- package/dist/components/ActionMenu.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/Box.js +2 -2
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Button.stories.d.ts +8 -0
- package/dist/components/Button.stories.d.ts.map +1 -0
- package/dist/components/CounterLabel.js +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/Flash.js +1 -1
- package/dist/components/FormControl.js +1 -1
- package/dist/components/Header.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/IconButton.js +1 -1
- package/dist/components/Label.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/LinkButton.js +1 -1
- package/dist/components/Overlay.js +1 -1
- package/dist/components/PageHeader.js +2 -2
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/TextInput.js +1 -1
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeProvider.js +1 -1
- package/dist/components/Timeline.js +1 -1
- package/dist/components/ToggleSwitch.js +1 -1
- package/dist/components/Token.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Truncate.js +1 -1
- package/dist/components/UnderlineNav.js +2 -2
- package/dist/components/deprecated/ActionList.js +2 -2
- package/dist/components/deprecated/DialogV1.js +1 -1
- package/dist/components/deprecated/Octicon.js +2 -2
- package/dist/components/deprecated/TabNav.js +1 -1
- package/dist/components/deprecated/Tooltip.js +1 -1
- package/dist/components.json +2 -28
- package/dist/deprecated.js +1 -1
- package/dist/experimental.d.ts +0 -21
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +0 -1
- package/dist/index.d.ts +0 -122
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -13
- package/dist/sx.js +1 -1
- package/package.json +10 -3
- package/dist/components/Autocomplete.d.ts +0 -17
- package/dist/components/Autocomplete.d.ts.map +0 -1
- package/dist/components/Autocomplete.js +0 -25
- package/dist/components/Checkbox.d.ts +0 -5
- package/dist/components/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox.js +0 -15
- package/dist/components/CheckboxGroup.d.ts +0 -34
- package/dist/components/CheckboxGroup.d.ts.map +0 -1
- package/dist/components/CheckboxGroup.js +0 -43
- package/dist/components/CircleBadge.d.ts +0 -8
- package/dist/components/CircleBadge.d.ts.map +0 -1
- package/dist/components/CircleBadge.js +0 -12
- package/dist/components/NavList.d.ts +0 -30
- package/dist/components/NavList.d.ts.map +0 -1
- package/dist/components/NavList.js +0 -74
- package/dist/components/RadioGroup.d.ts +0 -34
- package/dist/components/RadioGroup.d.ts.map +0 -1
- package/dist/components/RadioGroup.js +0 -43
- package/dist/components/RelativeTime.d.ts +0 -6
- package/dist/components/RelativeTime.d.ts.map +0 -1
- package/dist/components/RelativeTime.js +0 -14
- package/dist/components/Select.d.ts +0 -8
- package/dist/components/Select.d.ts.map +0 -1
- package/dist/components/Select.js +0 -24
- package/dist/components/StateLabel.d.ts +0 -10
- package/dist/components/StateLabel.d.ts.map +0 -1
- package/dist/components/StateLabel.js +0 -14
- package/dist/components/SubNav.d.ts +0 -10
- package/dist/components/SubNav.d.ts.map +0 -1
- package/dist/components/SubNav.js +0 -26
- package/dist/components/UnderlinePanels.d.ts +0 -14
- package/dist/components/UnderlinePanels.d.ts.map +0 -1
- package/dist/components/UnderlinePanels.js +0 -28
package/dist/index.d.ts
CHANGED
|
@@ -10,18 +10,6 @@ Box,
|
|
|
10
10
|
*/
|
|
11
11
|
type BoxProps, } from './components/Box';
|
|
12
12
|
export {
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
15
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
16
|
-
*/
|
|
17
|
-
Details, } from '@primer/react';
|
|
18
|
-
export {
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
21
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
22
|
-
*/
|
|
23
|
-
ProgressBar, } from '@primer/react';
|
|
24
|
-
export {
|
|
25
13
|
/**
|
|
26
14
|
* @deprecated Theming in JavaScript is no longer supported. Prefer using
|
|
27
15
|
* `@primer/primitives` and CSS Modules instead.
|
|
@@ -118,17 +106,6 @@ export {
|
|
|
118
106
|
*/
|
|
119
107
|
ActionMenu, } from './components/ActionMenu';
|
|
120
108
|
export {
|
|
121
|
-
/**
|
|
122
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
123
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
124
|
-
*/
|
|
125
|
-
Autocomplete,
|
|
126
|
-
/**
|
|
127
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
128
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
129
|
-
*/
|
|
130
|
-
type AutocompleteOverlayProps, } from './components/Autocomplete';
|
|
131
|
-
export {
|
|
132
109
|
/**
|
|
133
110
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
134
111
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -172,34 +149,6 @@ ButtonComponent as Button,
|
|
|
172
149
|
*/
|
|
173
150
|
type ButtonComponentProps as ButtonProps, } from './components/Button';
|
|
174
151
|
export {
|
|
175
|
-
/**
|
|
176
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
177
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
178
|
-
*/
|
|
179
|
-
Checkbox,
|
|
180
|
-
/**
|
|
181
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
182
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
183
|
-
*/
|
|
184
|
-
type CheckboxProps, } from './components/Checkbox';
|
|
185
|
-
export {
|
|
186
|
-
/**
|
|
187
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
188
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
189
|
-
*/
|
|
190
|
-
CheckboxGroup,
|
|
191
|
-
/**
|
|
192
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
193
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
194
|
-
*/
|
|
195
|
-
type CheckboxGroupProps, } from './components/CheckboxGroup';
|
|
196
|
-
export {
|
|
197
|
-
/**
|
|
198
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
199
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
200
|
-
*/
|
|
201
|
-
CircleBadge, } from './components/CircleBadge';
|
|
202
|
-
export {
|
|
203
152
|
/**
|
|
204
153
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
205
154
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -300,17 +249,6 @@ LinkButton,
|
|
|
300
249
|
*/
|
|
301
250
|
type LinkButtonProps, } from './components/LinkButton';
|
|
302
251
|
export {
|
|
303
|
-
/**
|
|
304
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
305
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
306
|
-
*/
|
|
307
|
-
NavList,
|
|
308
|
-
/**
|
|
309
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
310
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
311
|
-
*/
|
|
312
|
-
type NavListProps, } from './components/NavList';
|
|
313
|
-
export {
|
|
314
252
|
/**
|
|
315
253
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
316
254
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -338,28 +276,6 @@ type PageHeaderActionsProps,
|
|
|
338
276
|
*/
|
|
339
277
|
type PageHeaderTitleProps, } from './components/PageHeader';
|
|
340
278
|
export {
|
|
341
|
-
/**
|
|
342
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
343
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
344
|
-
*/
|
|
345
|
-
RadioGroup,
|
|
346
|
-
/**
|
|
347
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
348
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
349
|
-
*/
|
|
350
|
-
type RadioGroupProps, } from './components/RadioGroup';
|
|
351
|
-
export {
|
|
352
|
-
/**
|
|
353
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
354
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
355
|
-
*/
|
|
356
|
-
RelativeTime,
|
|
357
|
-
/**
|
|
358
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
359
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
360
|
-
*/
|
|
361
|
-
type RelativeTimeProps, } from './components/RelativeTime';
|
|
362
|
-
export {
|
|
363
279
|
/**
|
|
364
280
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
365
281
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -381,17 +297,6 @@ type SegmentedControlButtonProps,
|
|
|
381
297
|
*/
|
|
382
298
|
type SegmentedControlIconButtonProps, } from './components/SegmentedControl';
|
|
383
299
|
export {
|
|
384
|
-
/**
|
|
385
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
386
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
387
|
-
*/
|
|
388
|
-
Select,
|
|
389
|
-
/**
|
|
390
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
391
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
392
|
-
*/
|
|
393
|
-
type SelectProps, } from './components/Select';
|
|
394
|
-
export {
|
|
395
300
|
/**
|
|
396
301
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
397
302
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -403,33 +308,6 @@ Spinner,
|
|
|
403
308
|
*/
|
|
404
309
|
type SpinnerProps, } from './components/Spinner';
|
|
405
310
|
export {
|
|
406
|
-
/**
|
|
407
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
408
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
409
|
-
*/
|
|
410
|
-
StateLabel,
|
|
411
|
-
/**
|
|
412
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
413
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
414
|
-
*/
|
|
415
|
-
type StateLabelProps, } from './components/StateLabel';
|
|
416
|
-
export {
|
|
417
|
-
/**
|
|
418
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
419
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
420
|
-
*/
|
|
421
|
-
SubNav,
|
|
422
|
-
/**
|
|
423
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
424
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
425
|
-
*/
|
|
426
|
-
type SubNavProps,
|
|
427
|
-
/**
|
|
428
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
429
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
430
|
-
*/
|
|
431
|
-
type SubNavLinkProps, } from './components/SubNav';
|
|
432
|
-
export {
|
|
433
311
|
/**
|
|
434
312
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
435
313
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO;AACL;;;GAGG;AACH,GAAG;AAEH;;;GAGG;AACH,KAAK,QAAQ,GACd,MAAM,kBAAkB,CAAA;
|
|
1
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AAK,iBAAiB;AAEtB;;;GAGG;AACH,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAA;AAElC,OAAO;AACL;;;GAGG;AACH,KAAK;AAEL;;;GAGG;AACH,EAAE;AAEF;;;GAGG;AACH,KAAK,MAAM,GACZ,MAAM,MAAM,CAAA;AAEb,OAAO;AACL;;;GAGG;AACH,KAAK,uBAAuB,GAC7B,MAAM,MAAM,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export {
|
|
3
|
-
export { Details, ProgressBar, theme } from '@primer/react';
|
|
2
|
+
export { Box } from './components/Box.js';
|
|
4
3
|
export { ThemeProvider, useColorSchemeVar, useTheme } from './components/ThemeProvider.js';
|
|
5
4
|
export { BaseStyles } from './components/BaseStyles.js';
|
|
5
|
+
export { theme } from '@primer/react';
|
|
6
6
|
export { get as themeGet } from './theme-get.js';
|
|
7
7
|
export { ActionList } from './components/ActionList.js';
|
|
8
8
|
export { ActionMenu } from './components/ActionMenu.js';
|
|
9
|
-
export { Autocomplete } from './components/Autocomplete.js';
|
|
10
9
|
export { Avatar } from './components/Avatar.js';
|
|
11
10
|
export { Breadcrumb, Breadcrumbs } from './components/Breadcrumbs.js';
|
|
12
11
|
export { ButtonComponent as Button } from './components/Button.js';
|
|
13
|
-
export { Checkbox } from './components/Checkbox.js';
|
|
14
|
-
export { CheckboxGroup } from './components/CheckboxGroup.js';
|
|
15
|
-
export { CircleBadge } from './components/CircleBadge.js';
|
|
16
12
|
export { CounterLabel } from './components/CounterLabel.js';
|
|
17
13
|
export { Dialog } from './components/Dialog.js';
|
|
18
14
|
export { Flash } from './components/Flash.js';
|
|
@@ -23,16 +19,10 @@ export { IconButton } from './components/IconButton.js';
|
|
|
23
19
|
export { Label } from './components/Label.js';
|
|
24
20
|
export { Link } from './components/Link.js';
|
|
25
21
|
export { LinkButton } from './components/LinkButton.js';
|
|
26
|
-
export { NavList } from './components/NavList.js';
|
|
27
22
|
export { Overlay } from './components/Overlay.js';
|
|
28
23
|
export { PageHeader } from './components/PageHeader.js';
|
|
29
|
-
export { RadioGroup } from './components/RadioGroup.js';
|
|
30
|
-
export { RelativeTime } from './components/RelativeTime.js';
|
|
31
24
|
export { SegmentedControl } from './components/SegmentedControl.js';
|
|
32
|
-
export { Select } from './components/Select.js';
|
|
33
25
|
export { Spinner } from './components/Spinner.js';
|
|
34
|
-
export { StateLabel } from './components/StateLabel.js';
|
|
35
|
-
export { SubNav } from './components/SubNav.js';
|
|
36
26
|
export { Text } from './components/Text.js';
|
|
37
27
|
export { Textarea } from './components/Textarea.js';
|
|
38
28
|
export { TextInput } from './components/TextInput.js';
|
|
@@ -42,5 +32,5 @@ export { Tooltip } from './components/Tooltip.js';
|
|
|
42
32
|
export { Token } from './components/Token.js';
|
|
43
33
|
export { Truncate } from './components/Truncate.js';
|
|
44
34
|
export { UnderlineNav } from './components/UnderlineNav.js';
|
|
45
|
-
export {
|
|
35
|
+
export { sx } from './sx.js';
|
|
46
36
|
export { default as merge } from 'deepmerge';
|
package/dist/sx.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3-rc.0c533afb8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -27,8 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "script/build",
|
|
30
|
+
"build:storybook": "storybook build",
|
|
30
31
|
"clean": "rimraf dist",
|
|
31
32
|
"lint:npm": "publint --types",
|
|
33
|
+
"storybook:dev": "storybook dev -p 6007",
|
|
32
34
|
"type-check": "tsc --noEmit"
|
|
33
35
|
},
|
|
34
36
|
"dependencies": {
|
|
@@ -43,18 +45,23 @@
|
|
|
43
45
|
"devDependencies": {
|
|
44
46
|
"@babel/preset-react": "^7.28.5",
|
|
45
47
|
"@babel/preset-typescript": "^7.28.5",
|
|
46
|
-
"@primer/
|
|
48
|
+
"@primer/primitives": "10.x || 11.x",
|
|
49
|
+
"@primer/react": "^38.10.0",
|
|
47
50
|
"@rollup/plugin-babel": "^6.1.0",
|
|
51
|
+
"@storybook/react-vite": "^10.1.11",
|
|
48
52
|
"@types/react": "18.3.11",
|
|
49
53
|
"@types/react-dom": "18.3.1",
|
|
50
54
|
"@types/styled-components": "^5.1.26",
|
|
51
55
|
"@vitejs/plugin-react": "^4.3.3",
|
|
56
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
52
57
|
"babel-plugin-styled-components": "2.1.4",
|
|
58
|
+
"postcss-preset-primer": "^0.0.0",
|
|
53
59
|
"publint": "^0.3.15",
|
|
54
60
|
"react": "18.3.1",
|
|
61
|
+
"react-compiler-runtime": "^1.0.0",
|
|
55
62
|
"react-dom": "18.3.1",
|
|
56
63
|
"rimraf": "^6.0.1",
|
|
57
|
-
"rollup": "4.
|
|
64
|
+
"rollup": "4.59.0",
|
|
58
65
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
59
66
|
"styled-components": "5.3.11",
|
|
60
67
|
"typescript": "^5.9.2"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Autocomplete as PrimerAutocomplete, type AutocompleteOverlayProps as PrimerAutocompleteOverlayProps, type AutocompleteInputProps as PrimerAutocompleteInputProps, type SlotMarker } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
import type { ComponentProps } from 'react';
|
|
4
|
-
export type AutocompleteOverlayProps = PrimerAutocompleteOverlayProps & SxProp;
|
|
5
|
-
declare const AutocompleteOverlay: React.ComponentType<AutocompleteOverlayProps> & SlotMarker;
|
|
6
|
-
export type AutocompleteInputProps = PrimerAutocompleteInputProps & SxProp;
|
|
7
|
-
declare const AutocompleteInput: React.ComponentType<AutocompleteInputProps>;
|
|
8
|
-
interface AutocompleteExport {
|
|
9
|
-
(props: ComponentProps<typeof PrimerAutocomplete>): React.ReactNode;
|
|
10
|
-
Context: typeof PrimerAutocomplete.Context;
|
|
11
|
-
Input: typeof AutocompleteInput;
|
|
12
|
-
Menu: typeof PrimerAutocomplete.Menu;
|
|
13
|
-
Overlay: typeof AutocompleteOverlay;
|
|
14
|
-
}
|
|
15
|
-
declare const Autocomplete: AutocompleteExport;
|
|
16
|
-
export { Autocomplete };
|
|
17
|
-
//# sourceMappingURL=Autocomplete.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../src/components/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,KAAK,wBAAwB,IAAI,8BAA8B,EAC/D,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,GAAG,MAAM,CAAA;AAE9E,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,GAAG,UAM1E,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAIlE,CAAA;AAED,UAAU,kBAAkB;IAC1B,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG,KAAK,CAAC,SAAS,CAAA;IACnE,OAAO,EAAE,OAAO,kBAAkB,CAAC,OAAO,CAAA;IAC1C,KAAK,EAAE,OAAO,iBAAiB,CAAA;IAC/B,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAA;IACpC,OAAO,EAAE,OAAO,mBAAmB,CAAA;CACpC;AAED,QAAA,MAAM,YAAY,EAAE,kBAKlB,CAAA;AAIF,OAAO,EAAC,YAAY,EAAC,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Autocomplete as Autocomplete$1 } from '@primer/react';
|
|
2
|
-
import sx from '../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
const AutocompleteOverlay = styled(Autocomplete$1.Overlay).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "Autocomplete__AutocompleteOverlay",
|
|
9
|
-
componentId: "sc-j8ax2e-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
const AutocompleteInput = styled(Autocomplete$1.Input).withConfig({
|
|
12
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
13
|
-
}).withConfig({
|
|
14
|
-
displayName: "Autocomplete__AutocompleteInput",
|
|
15
|
-
componentId: "sc-j8ax2e-1"
|
|
16
|
-
})(["", ""], sx);
|
|
17
|
-
const Autocomplete = Object.assign(Autocomplete$1, {
|
|
18
|
-
Context: Autocomplete$1.Context,
|
|
19
|
-
Input: AutocompleteInput,
|
|
20
|
-
Menu: Autocomplete$1.Menu,
|
|
21
|
-
Overlay: AutocompleteOverlay
|
|
22
|
-
});
|
|
23
|
-
AutocompleteOverlay.__SLOT__ = Autocomplete$1.Overlay.__SLOT__;
|
|
24
|
-
|
|
25
|
-
export { Autocomplete };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type CheckboxProps as PrimerCheckboxProps } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
export type CheckboxProps = PrimerCheckboxProps & SxProp;
|
|
4
|
-
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
-
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,IAAI,mBAAmB,EAAkB,MAAM,eAAe,CAAA;AAGpH,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,MAAM,CAAA;AAExD,eAAO,MAAM,QAAQ,yHAEnB,CACD"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Checkbox as Checkbox$1 } from '@primer/react';
|
|
2
|
-
import Box from './Box.js';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const Checkbox = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
|
|
7
|
-
return /*#__PURE__*/jsx(Box, {
|
|
8
|
-
as: Checkbox$1,
|
|
9
|
-
ref: ref,
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
Checkbox.__SLOT__ = Checkbox$1.__SLOT__;
|
|
14
|
-
|
|
15
|
-
export { Checkbox };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type CheckboxGroupProps as PrimerCheckboxGroupProps } from '@primer/react';
|
|
2
|
-
import React, { type PropsWithChildren } from 'react';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
|
-
export type CheckboxGroupProps = PropsWithChildren<PrimerCheckboxGroupProps> & SxProp;
|
|
5
|
-
type CheckboxOrRadioGroupLabelProps = PropsWithChildren<{
|
|
6
|
-
className?: string;
|
|
7
|
-
visuallyHidden?: boolean;
|
|
8
|
-
} & SxProp>;
|
|
9
|
-
type CheckboxOrRadioGroupCaptionProps = PropsWithChildren<{
|
|
10
|
-
className?: string;
|
|
11
|
-
} & SxProp>;
|
|
12
|
-
type CheckboxOrRadioGroupValidationProps = PropsWithChildren<{
|
|
13
|
-
className?: string;
|
|
14
|
-
variant: 'error' | 'success';
|
|
15
|
-
} & SxProp>;
|
|
16
|
-
export declare const CheckboxGroup: {
|
|
17
|
-
(props: CheckboxGroupProps): React.JSX.Element;
|
|
18
|
-
__SLOT__: symbol | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
Label: {
|
|
21
|
-
(props: CheckboxOrRadioGroupLabelProps): React.JSX.Element;
|
|
22
|
-
__SLOT__: symbol | undefined;
|
|
23
|
-
};
|
|
24
|
-
Caption: {
|
|
25
|
-
(props: CheckboxOrRadioGroupCaptionProps): React.JSX.Element;
|
|
26
|
-
__SLOT__: symbol | undefined;
|
|
27
|
-
};
|
|
28
|
-
Validation: {
|
|
29
|
-
(props: CheckboxOrRadioGroupValidationProps): React.JSX.Element;
|
|
30
|
-
__SLOT__: symbol | undefined;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=CheckboxGroup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,kBAAkB,IAAI,wBAAwB,EAAC,MAAM,eAAe,CAAA;AACvH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,MAAM,CAAA;AAOrF,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,aAAa;YAlCQ,kBAAkB;;;;gBAWV,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CheckboxGroup as CheckboxGroup$1 } from '@primer/react';
|
|
2
|
-
import 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const CheckboxGroupImpl = props => {
|
|
7
|
-
return /*#__PURE__*/jsx(Box, {
|
|
8
|
-
as: CheckboxGroup$1,
|
|
9
|
-
...props
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// Define local types based on the internal component props
|
|
14
|
-
|
|
15
|
-
const CheckboxOrRadioGroupLabel = props => {
|
|
16
|
-
return /*#__PURE__*/jsx(Box, {
|
|
17
|
-
as: CheckboxGroup$1.Label,
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
const CheckboxOrRadioGroupCaption = props => {
|
|
22
|
-
return /*#__PURE__*/jsx(Box, {
|
|
23
|
-
as: CheckboxGroup$1.Caption,
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const CheckboxOrRadioGroupValidation = props => {
|
|
28
|
-
return /*#__PURE__*/jsx(Box, {
|
|
29
|
-
as: CheckboxGroup$1.Validation,
|
|
30
|
-
...props
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
const CheckboxGroup = Object.assign(CheckboxGroupImpl, {
|
|
34
|
-
Label: CheckboxOrRadioGroupLabel,
|
|
35
|
-
Caption: CheckboxOrRadioGroupCaption,
|
|
36
|
-
Validation: CheckboxOrRadioGroupValidation
|
|
37
|
-
});
|
|
38
|
-
CheckboxGroupImpl.__SLOT__ = CheckboxGroup$1.__SLOT__;
|
|
39
|
-
CheckboxOrRadioGroupLabel.__SLOT__ = CheckboxGroup$1.Label.__SLOT__;
|
|
40
|
-
CheckboxOrRadioGroupCaption.__SLOT__ = CheckboxGroup$1.Caption.__SLOT__;
|
|
41
|
-
CheckboxOrRadioGroupValidation.__SLOT__ = CheckboxGroup$1.Validation.__SLOT__;
|
|
42
|
-
|
|
43
|
-
export { CheckboxGroup };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type CircleBadgeProps as PrimerCircleBadgeProps } from '@primer/react';
|
|
2
|
-
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
|
-
type CircleBadgeProps<As extends React.ElementType> = PrimerCircleBadgeProps<As> & SxProp;
|
|
5
|
-
declare const CircleBadge: ForwardRefComponent<React.ElementType, CircleBadgeProps<React.ElementType>>;
|
|
6
|
-
export { CircleBadge };
|
|
7
|
-
export type { CircleBadgeProps };
|
|
8
|
-
//# sourceMappingURL=CircleBadge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,gBAAgB,IAAI,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAE/G,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAW,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,sBAAsB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAEzF,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAM5F,CAAA;AAED,OAAO,EAAC,WAAW,EAAC,CAAA;AACpB,YAAY,EAAC,gBAAgB,EAAC,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CircleBadge as CircleBadge$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
|
|
5
|
-
const CircleBadge = styled(CircleBadge$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "CircleBadge",
|
|
9
|
-
componentId: "sc-1u7lp3v-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
|
|
12
|
-
export { CircleBadge };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { NavList as PrimerNavList } from '@primer/react';
|
|
2
|
-
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
|
|
3
|
-
import { type PropsWithChildren } from 'react';
|
|
4
|
-
import { type SxProp } from '../sx';
|
|
5
|
-
import type { ForwardRefComponent } from '../polymorphic';
|
|
6
|
-
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp & {
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
};
|
|
9
|
-
type NavListItemProps = PropsWithChildren<PrimerNavListItemProps> & SxProp & {
|
|
10
|
-
as?: React.ElementType;
|
|
11
|
-
};
|
|
12
|
-
declare const NavListItem: ForwardRefComponent<"a", NavListItemProps>;
|
|
13
|
-
type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp & {
|
|
14
|
-
as?: React.ElementType;
|
|
15
|
-
};
|
|
16
|
-
declare const NavListLeadingVisual: ForwardRefComponent<"span", NavListLeadingVisualProps>;
|
|
17
|
-
type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
|
|
18
|
-
Item: typeof NavListItem;
|
|
19
|
-
Group: typeof PrimerNavList.Group;
|
|
20
|
-
GroupHeading: typeof PrimerNavList.GroupHeading;
|
|
21
|
-
LeadingVisual: typeof NavListLeadingVisual;
|
|
22
|
-
SubNav: typeof PrimerNavList.SubNav;
|
|
23
|
-
Divider: typeof PrimerNavList.Divider;
|
|
24
|
-
TrailingVisual: typeof PrimerNavList.TrailingVisual;
|
|
25
|
-
TrailingAction: typeof PrimerNavList.TrailingAction;
|
|
26
|
-
GroupExpand: typeof PrimerNavList.GroupExpand;
|
|
27
|
-
};
|
|
28
|
-
declare const NavList: NavListCompound;
|
|
29
|
-
export { NavList, type NavListProps };
|
|
30
|
-
//# sourceMappingURL=NavList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAC1C,yBAAyB,IAAI,+BAA+B,EAE7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAY7F,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAC/D,MAAM,GAAG;IACP,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AAQH,QAAA,MAAM,WAAW,EAEX,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAA;AAEhD,KAAK,yBAAyB,GAAG,iBAAiB,CAAC,+BAA+B,CAAC,GACjF,MAAM,GAAG;IACP,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AAQH,QAAA,MAAM,oBAAoB,EAEpB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAE3D;AAED,KAAK,eAAe,GAAG,KAAK,CAAC,yBAAyB,CAAC,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG;IACxG,IAAI,EAAE,OAAO,WAAW,CAAA;IACxB,KAAK,EAAE,OAAO,aAAa,CAAC,KAAK,CAAA;IACjC,YAAY,EAAE,OAAO,aAAa,CAAC,YAAY,CAAA;IAC/C,aAAa,EAAE,OAAO,oBAAoB,CAAA;IAC1C,MAAM,EAAE,OAAO,aAAa,CAAC,MAAM,CAAA;IACnC,OAAO,EAAE,OAAO,aAAa,CAAC,OAAO,CAAA;IACrC,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,WAAW,EAAE,OAAO,aAAa,CAAC,WAAW,CAAA;CAC9C,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,eAUb,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { NavList as NavList$1 } from '@primer/react';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import sx from '../sx.js';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const StyledNavListImpl = styled(NavList$1).withConfig({
|
|
8
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
-
}).withConfig({
|
|
10
|
-
displayName: "NavList__StyledNavListImpl",
|
|
11
|
-
componentId: "sc-86jrwg-0"
|
|
12
|
-
})(["", ""], sx);
|
|
13
|
-
const NavListImpl = /*#__PURE__*/forwardRef(function NavList({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}, ref) {
|
|
17
|
-
return /*#__PURE__*/jsx(StyledNavListImpl, {
|
|
18
|
-
ref: ref,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {}),
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
const StyledNavListItem = styled(NavList$1.Item).withConfig({
|
|
26
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
27
|
-
}).withConfig({
|
|
28
|
-
displayName: "NavList__StyledNavListItem",
|
|
29
|
-
componentId: "sc-86jrwg-1"
|
|
30
|
-
})(["", ""], sx);
|
|
31
|
-
const NavListItem = /*#__PURE__*/forwardRef(({
|
|
32
|
-
as,
|
|
33
|
-
...props
|
|
34
|
-
}, ref) => {
|
|
35
|
-
return /*#__PURE__*/jsx(StyledNavListItem, {
|
|
36
|
-
...props,
|
|
37
|
-
...(as ? {
|
|
38
|
-
forwardedAs: as
|
|
39
|
-
} : {}),
|
|
40
|
-
ref: ref
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
const StyledNavListLeadingVisual = styled(NavList$1.LeadingVisual).withConfig({
|
|
44
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
45
|
-
}).withConfig({
|
|
46
|
-
displayName: "NavList__StyledNavListLeadingVisual",
|
|
47
|
-
componentId: "sc-86jrwg-2"
|
|
48
|
-
})(["", ""], sx);
|
|
49
|
-
const NavListLeadingVisual = /*#__PURE__*/forwardRef(({
|
|
50
|
-
as,
|
|
51
|
-
...props
|
|
52
|
-
}, ref) => {
|
|
53
|
-
return /*#__PURE__*/jsx(StyledNavListLeadingVisual, {
|
|
54
|
-
...props,
|
|
55
|
-
...(as ? {
|
|
56
|
-
forwardedAs: as
|
|
57
|
-
} : {}),
|
|
58
|
-
ref: ref
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
NavListLeadingVisual.__SLOT__ = NavList$1.LeadingVisual.__SLOT__;
|
|
62
|
-
const NavList = Object.assign(NavListImpl, {
|
|
63
|
-
Item: NavListItem,
|
|
64
|
-
Group: NavList$1.Group,
|
|
65
|
-
GroupHeading: NavList$1.GroupHeading,
|
|
66
|
-
LeadingVisual: NavListLeadingVisual,
|
|
67
|
-
SubNav: NavList$1.SubNav,
|
|
68
|
-
Divider: NavList$1.Divider,
|
|
69
|
-
TrailingVisual: NavList$1.TrailingVisual,
|
|
70
|
-
TrailingAction: NavList$1.TrailingAction,
|
|
71
|
-
GroupExpand: NavList$1.GroupExpand
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export { NavList };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type RadioGroupProps as PrimerRadioGroupProps } from '@primer/react';
|
|
2
|
-
import React, { type PropsWithChildren } from 'react';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
|
-
export type RadioGroupProps = PropsWithChildren<PrimerRadioGroupProps> & SxProp;
|
|
5
|
-
type CheckboxOrRadioGroupLabelProps = PropsWithChildren<{
|
|
6
|
-
className?: string;
|
|
7
|
-
visuallyHidden?: boolean;
|
|
8
|
-
} & SxProp>;
|
|
9
|
-
type CheckboxOrRadioGroupCaptionProps = PropsWithChildren<{
|
|
10
|
-
className?: string;
|
|
11
|
-
} & SxProp>;
|
|
12
|
-
type CheckboxOrRadioGroupValidationProps = PropsWithChildren<{
|
|
13
|
-
className?: string;
|
|
14
|
-
variant: 'error' | 'success';
|
|
15
|
-
} & SxProp>;
|
|
16
|
-
export declare const RadioGroup: {
|
|
17
|
-
(props: RadioGroupProps): React.JSX.Element;
|
|
18
|
-
__SLOT__: symbol;
|
|
19
|
-
} & {
|
|
20
|
-
Label: {
|
|
21
|
-
(props: CheckboxOrRadioGroupLabelProps): React.JSX.Element;
|
|
22
|
-
__SLOT__: symbol | undefined;
|
|
23
|
-
};
|
|
24
|
-
Caption: {
|
|
25
|
-
(props: CheckboxOrRadioGroupCaptionProps): React.JSX.Element;
|
|
26
|
-
__SLOT__: symbol | undefined;
|
|
27
|
-
};
|
|
28
|
-
Validation: {
|
|
29
|
-
(props: CheckboxOrRadioGroupValidationProps): React.JSX.Element;
|
|
30
|
-
__SLOT__: symbol | undefined;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAC3G,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAO/E,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,UAAU;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
|