@primer/styled-react 1.0.6 → 1.0.7-rc.238d6453b
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/BaseStyles.d.ts.map +1 -1
- package/dist/components/BaseStyles.js +1 -1
- package/dist/components.json +0 -36
- package/dist/deprecated.d.ts +0 -16
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +0 -1
- package/dist/experimental.d.ts +0 -56
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +0 -1
- package/dist/index.d.ts +0 -117
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -7
- package/package.json +2 -2
- package/dist/components/Breadcrumbs.d.ts +0 -18
- package/dist/components/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs.js +0 -38
- package/dist/components/DataTable.d.ts +0 -11
- package/dist/components/DataTable.d.ts.map +0 -1
- package/dist/components/DataTable.js +0 -42
- package/dist/components/FormControl.d.ts +0 -13
- package/dist/components/FormControl.d.ts.map +0 -1
- package/dist/components/FormControl.js +0 -19
- package/dist/components/Header.d.ts +0 -11
- package/dist/components/Header.d.ts.map +0 -1
- package/dist/components/Header.js +0 -52
- package/dist/components/LinkButton.d.ts +0 -8
- package/dist/components/LinkButton.d.ts.map +0 -1
- package/dist/components/LinkButton.js +0 -12
- package/dist/components/SegmentedControl.d.ts +0 -19
- package/dist/components/SegmentedControl.d.ts.map +0 -1
- package/dist/components/SegmentedControl.js +0 -31
- package/dist/components/Timeline.d.ts +0 -26
- package/dist/components/Timeline.d.ts.map +0 -1
- package/dist/components/Timeline.js +0 -47
- package/dist/components/Truncate.d.ts +0 -7
- package/dist/components/Truncate.d.ts.map +0 -1
- package/dist/components/Truncate.js +0 -12
- package/dist/components/deprecated/TabNav.d.ts +0 -9
- package/dist/components/deprecated/TabNav.d.ts.map +0 -1
- package/dist/components/deprecated/TabNav.js +0 -44
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../../src/components/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,GAAG,EAAC,MAAM,OAAO,CAAA;AAG1E,OAAO,KAAK,KAAK,YAAY,MAAM,eAAe,CAAA;AAGlD,OAAO,eAAe,CAAA;AAGtB,MAAM,WAAW,iBACf,SAAQ,YAAY,CAAC,UAAU,EAC7B,YAAY,CAAC,UAAU,EACvB,YAAY,CAAC,YAAY;CAAG;AAEhC,MAAM,WAAW,qBAAsB,SAAQ,YAAY,CAAC,eAAe;IACzE,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAA;CACnE;
|
|
1
|
+
{"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../../src/components/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,GAAG,EAAC,MAAM,OAAO,CAAA;AAG1E,OAAO,KAAK,KAAK,YAAY,MAAM,eAAe,CAAA;AAGlD,OAAO,eAAe,CAAA;AAGtB,MAAM,WAAW,iBACf,SAAQ,YAAY,CAAC,UAAU,EAC7B,YAAY,CAAC,UAAU,EACvB,YAAY,CAAC,YAAY;CAAG;AAEhC,MAAM,WAAW,qBAAsB,SAAQ,YAAY,CAAC,eAAe;IACzE,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAA;CACnE;AA8ED,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,qBAAqB,GACvB,iBAAiB,CAAA;AAEnB,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,EAAE,EAAE,SAAiB,EACrB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,eA+BjB"}
|
|
@@ -4,7 +4,7 @@ import 'focus-visible';
|
|
|
4
4
|
import { createGlobalStyle } from 'styled-components';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
const GlobalStyle = createGlobalStyle(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[data-color-mode='light'] input{color-scheme:light;}[data-color-mode='dark'] input{color-scheme:dark;}@media (prefers-color-scheme:light){[data-color-mode='auto'][data-light-theme*='light']{color-scheme:light;}}@media (prefers-color-scheme:dark){[data-color-mode='auto'][data-dark-theme*='dark']{color-scheme:dark;}}[role='button']:focus:not(:focus-visible):not(:global(.focus-visible)),[role='tabpanel'][tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),button:focus:not(:focus-visible):not(:global(.focus-visible)),summary:focus:not(:focus-visible):not(:global(.focus-visible)),a:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;box-shadow:none;}[tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),details-dialog:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;}.BaseStyles{font-family:var(--BaseStyles-fontFamily,var(--fontStack-system));line-height:var(--BaseStyles-lineHeight,1.5);color:var(--BaseStyles-fgColor,var(--fgColor-default))
|
|
7
|
+
const GlobalStyle = createGlobalStyle(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[data-color-mode='light'] input{color-scheme:light;}[data-color-mode='dark'] input{color-scheme:dark;}@media (prefers-color-scheme:light){[data-color-mode='auto'][data-light-theme*='light']{color-scheme:light;}}@media (prefers-color-scheme:dark){[data-color-mode='auto'][data-dark-theme*='dark']{color-scheme:dark;}}[role='button']:focus:not(:focus-visible):not(:global(.focus-visible)),[role='tabpanel'][tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),button:focus:not(:focus-visible):not(:global(.focus-visible)),summary:focus:not(:focus-visible):not(:global(.focus-visible)),a:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;box-shadow:none;}[tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),details-dialog:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;}.BaseStyles{font-family:var(--BaseStyles-fontFamily,var(--fontStack-system));line-height:var(--BaseStyles-lineHeight,1.5);color:var(--BaseStyles-fgColor,var(--fgColor-default));:where(a:not([class*='prc-']):not([class*='PRC-']):not([class*='Primer_Brand__'])){color:var(--fgColor-accent,var(--color-accent-fg));text-decoration:none;&:hover{text-decoration:underline;}}}"]);
|
|
8
8
|
function BaseStyles({
|
|
9
9
|
children,
|
|
10
10
|
color,
|
package/dist/components.json
CHANGED
|
@@ -3,29 +3,19 @@
|
|
|
3
3
|
"ActionList",
|
|
4
4
|
"BaseStyles",
|
|
5
5
|
"Box",
|
|
6
|
-
"Breadcrumb",
|
|
7
|
-
"Breadcrumbs",
|
|
8
6
|
"Button",
|
|
9
7
|
"Dialog",
|
|
10
8
|
"Flash",
|
|
11
|
-
"FormControl",
|
|
12
|
-
"Header",
|
|
13
9
|
"Heading",
|
|
14
10
|
"IconButton",
|
|
15
11
|
"Label",
|
|
16
12
|
"Link",
|
|
17
|
-
"LinkButton",
|
|
18
13
|
"Octicon",
|
|
19
|
-
"SegmentedControl",
|
|
20
14
|
"Spinner",
|
|
21
|
-
"Table",
|
|
22
|
-
"TabNav",
|
|
23
15
|
"Text",
|
|
24
16
|
"TextInput",
|
|
25
17
|
"ThemeProvider",
|
|
26
|
-
"Timeline",
|
|
27
18
|
"ToggleSwitch",
|
|
28
|
-
"Truncate",
|
|
29
19
|
"UnderlineNav"
|
|
30
20
|
],
|
|
31
21
|
"types": [
|
|
@@ -40,46 +30,20 @@
|
|
|
40
30
|
"BaseStylesProps",
|
|
41
31
|
"BetterSystemStyleObject",
|
|
42
32
|
"BoxProps",
|
|
43
|
-
"BreadcrumbsItemProps",
|
|
44
|
-
"BreadcrumbsProps",
|
|
45
33
|
"ButtonProps",
|
|
46
|
-
"DataTableContainerProps",
|
|
47
34
|
"DialogHeaderProps",
|
|
48
35
|
"DialogProps",
|
|
49
|
-
"FormControlProps",
|
|
50
|
-
"HeaderProps",
|
|
51
36
|
"IconButtonProps",
|
|
52
37
|
"LabelProps",
|
|
53
|
-
"LinkButtonProps",
|
|
54
38
|
"LinkProps",
|
|
55
39
|
"OcticonProps",
|
|
56
|
-
"SegmentedControlButtonProps",
|
|
57
|
-
"SegmentedControlIconButtonProps",
|
|
58
|
-
"SegmentedControlProps",
|
|
59
40
|
"SpinnerProps",
|
|
60
41
|
"SxProp",
|
|
61
|
-
"TableActionsProps",
|
|
62
|
-
"TableBodyProps",
|
|
63
|
-
"TableCellProps",
|
|
64
|
-
"TableHeaderProps",
|
|
65
|
-
"TableHeadProps",
|
|
66
|
-
"TableProps",
|
|
67
|
-
"TableRowProps",
|
|
68
|
-
"TableSubtitleProps",
|
|
69
|
-
"TableTitleProps",
|
|
70
|
-
"TabNavLinkProps",
|
|
71
|
-
"TabNavProps",
|
|
72
42
|
"TextInputActionProps",
|
|
73
43
|
"TextInputProps",
|
|
74
44
|
"TextProps",
|
|
75
45
|
"ThemeProviderProps",
|
|
76
|
-
"TimelineBadgeProps",
|
|
77
|
-
"TimelineBodyProps",
|
|
78
|
-
"TimelineBreakProps",
|
|
79
|
-
"TimelineItemProps",
|
|
80
|
-
"TimelineProps",
|
|
81
46
|
"ToggleSwitchProps",
|
|
82
|
-
"TruncateProps",
|
|
83
47
|
"UnderlineNavItemProps",
|
|
84
48
|
"UnderlineNavProps"
|
|
85
49
|
],
|
package/dist/deprecated.d.ts
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
export {
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
4
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
5
|
-
*/
|
|
6
|
-
TabNav,
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
9
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
10
|
-
*/
|
|
11
|
-
type TabNavProps,
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
14
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
15
|
-
*/
|
|
16
|
-
type TabNavLinkProps, } from './components/deprecated/TabNav';
|
|
17
|
-
export {
|
|
18
2
|
/**
|
|
19
3
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
20
4
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
package/dist/deprecated.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW;AAEhB;;;GAGG;AACH,KAAK,
|
|
1
|
+
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW;AAEhB;;;GAGG;AACH,KAAK,iBAAiB,GACvB,MAAM,kCAAkC,CAAA;AAEzC,OAAO;AACL;;;GAGG;AACH,OAAO;AAEP;;;GAGG;AACH,KAAK,YAAY,GAClB,MAAM,iCAAiC,CAAA;AAExC,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,mBAAmB;AAExB;;;GAGG;AACH,KAAK,oBAAoB,GAC1B,MAAM,oCAAoC,CAAA"}
|
package/dist/deprecated.js
CHANGED
package/dist/experimental.d.ts
CHANGED
|
@@ -9,60 +9,4 @@ Dialog,
|
|
|
9
9
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
10
10
|
*/
|
|
11
11
|
type DialogProps, } from './components/Dialog';
|
|
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
|
-
Table,
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
20
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
21
|
-
*/
|
|
22
|
-
type DataTableContainerProps,
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
25
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
26
|
-
*/
|
|
27
|
-
type TableProps,
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
30
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
31
|
-
*/
|
|
32
|
-
type TableHeadProps,
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
35
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
36
|
-
*/
|
|
37
|
-
type TableBodyProps,
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
40
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
41
|
-
*/
|
|
42
|
-
type TableRowProps,
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
45
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
46
|
-
*/
|
|
47
|
-
type TableHeaderProps,
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
50
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
51
|
-
*/
|
|
52
|
-
type TableCellProps,
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
55
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
56
|
-
*/
|
|
57
|
-
type TableTitleProps,
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
60
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
61
|
-
*/
|
|
62
|
-
type TableSubtitleProps,
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
65
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
66
|
-
*/
|
|
67
|
-
type TableActionsProps, } from './components/DataTable';
|
|
68
12
|
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAA
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAA"}
|
package/dist/experimental.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -100,27 +100,6 @@ type ActionListTrailingVisualProps,
|
|
|
100
100
|
*/
|
|
101
101
|
type ActionListTrailingActionProps, } from './components/ActionList';
|
|
102
102
|
export {
|
|
103
|
-
/**
|
|
104
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
105
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
106
|
-
*/
|
|
107
|
-
Breadcrumbs,
|
|
108
|
-
/**
|
|
109
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
110
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
111
|
-
*/
|
|
112
|
-
Breadcrumb,
|
|
113
|
-
/**
|
|
114
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
115
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
116
|
-
*/
|
|
117
|
-
type BreadcrumbsProps,
|
|
118
|
-
/**
|
|
119
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
120
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
121
|
-
*/
|
|
122
|
-
type BreadcrumbsItemProps, } from './components/Breadcrumbs';
|
|
123
|
-
export {
|
|
124
103
|
/**
|
|
125
104
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
126
105
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -149,28 +128,6 @@ export {
|
|
|
149
128
|
*/
|
|
150
129
|
Flash, } from './components/Flash';
|
|
151
130
|
export {
|
|
152
|
-
/**
|
|
153
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
154
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
155
|
-
*/
|
|
156
|
-
FormControl,
|
|
157
|
-
/**
|
|
158
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
159
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
160
|
-
*/
|
|
161
|
-
type FormControlProps, } from './components/FormControl';
|
|
162
|
-
export {
|
|
163
|
-
/**
|
|
164
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
165
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
166
|
-
*/
|
|
167
|
-
Header,
|
|
168
|
-
/**
|
|
169
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
170
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
171
|
-
*/
|
|
172
|
-
type HeaderProps, } from './components/Header';
|
|
173
|
-
export {
|
|
174
131
|
/**
|
|
175
132
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
176
133
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -210,38 +167,6 @@ Link,
|
|
|
210
167
|
*/
|
|
211
168
|
type LinkProps, } from './components/Link';
|
|
212
169
|
export {
|
|
213
|
-
/**
|
|
214
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
215
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
216
|
-
*/
|
|
217
|
-
LinkButton,
|
|
218
|
-
/**
|
|
219
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
220
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
221
|
-
*/
|
|
222
|
-
type LinkButtonProps, } from './components/LinkButton';
|
|
223
|
-
export {
|
|
224
|
-
/**
|
|
225
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
226
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
227
|
-
*/
|
|
228
|
-
SegmentedControl,
|
|
229
|
-
/**
|
|
230
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
231
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
232
|
-
*/
|
|
233
|
-
type SegmentedControlProps,
|
|
234
|
-
/**
|
|
235
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
236
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
237
|
-
*/
|
|
238
|
-
type SegmentedControlButtonProps,
|
|
239
|
-
/**
|
|
240
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
241
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
242
|
-
*/
|
|
243
|
-
type SegmentedControlIconButtonProps, } from './components/SegmentedControl';
|
|
244
|
-
export {
|
|
245
170
|
/**
|
|
246
171
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
247
172
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -280,37 +205,6 @@ type TextInputProps,
|
|
|
280
205
|
*/
|
|
281
206
|
type TextInputActionProps, } from './components/TextInput';
|
|
282
207
|
export {
|
|
283
|
-
/**
|
|
284
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
285
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
286
|
-
*/
|
|
287
|
-
Timeline,
|
|
288
|
-
/**
|
|
289
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
290
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
291
|
-
*/
|
|
292
|
-
type TimelineProps,
|
|
293
|
-
/**
|
|
294
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
295
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
296
|
-
*/
|
|
297
|
-
type TimelineItemProps,
|
|
298
|
-
/**
|
|
299
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
300
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
301
|
-
*/
|
|
302
|
-
type TimelineBadgeProps,
|
|
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
|
-
type TimelineBodyProps,
|
|
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 TimelineBreakProps, } from './components/Timeline';
|
|
313
|
-
export {
|
|
314
208
|
/**
|
|
315
209
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
316
210
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -322,17 +216,6 @@ ToggleSwitch,
|
|
|
322
216
|
*/
|
|
323
217
|
type ToggleSwitchProps, } from './components/ToggleSwitch';
|
|
324
218
|
export {
|
|
325
|
-
/**
|
|
326
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
327
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
328
|
-
*/
|
|
329
|
-
Truncate,
|
|
330
|
-
/**
|
|
331
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
332
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
333
|
-
*/
|
|
334
|
-
type TruncateProps, } from './components/Truncate';
|
|
335
|
-
export {
|
|
336
219
|
/**
|
|
337
220
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
338
221
|
* 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;AAGzB,OAAO;AACL;;;GAGG;AACH,aAAa;AAEb;;;GAGG;AACH,QAAQ;AAER;;;GAGG;AACH,iBAAiB;AAEjB;;;GAGG;AACH,KAAK,kBAAkB,GACxB,MAAM,4BAA4B,CAAA;AAEnC,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAA;AAEhC,OAAO;AACL;;;GAGG;AACH,KAAK,GACN,MAAM,eAAe,CAAA;AAEtB,OAAO;AACL;;;GAGG;AACH,GAAG,IAAI,QAAQ,GAChB,MAAM,aAAa,CAAA;AAEpB,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,mBAAmB;AAExB;;;GAGG;AACH,KAAK,uBAAuB;AAE5B;;;GAGG;AACH,KAAK,oBAAoB;AAEzB;;;GAGG;AACH,KAAK,sBAAsB;AAE3B;;;GAGG;AACH,KAAK,4BAA4B;AAEjC;;;GAGG;AACH,KAAK,6BAA6B;AAElC;;;GAGG;AACH,KAAK,6BAA6B,GACnC,MAAM,yBAAyB,CAAA;AAEhC,OAAO;AACL;;;GAGG;AACH,
|
|
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;AAGzB,OAAO;AACL;;;GAGG;AACH,aAAa;AAEb;;;GAGG;AACH,QAAQ;AAER;;;GAGG;AACH,iBAAiB;AAEjB;;;GAGG;AACH,KAAK,kBAAkB,GACxB,MAAM,4BAA4B,CAAA;AAEnC,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAA;AAEhC,OAAO;AACL;;;GAGG;AACH,KAAK,GACN,MAAM,eAAe,CAAA;AAEtB,OAAO;AACL;;;GAGG;AACH,GAAG,IAAI,QAAQ,GAChB,MAAM,aAAa,CAAA;AAEpB,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,mBAAmB;AAExB;;;GAGG;AACH,KAAK,uBAAuB;AAE5B;;;GAGG;AACH,KAAK,oBAAoB;AAEzB;;;GAGG;AACH,KAAK,sBAAsB;AAE3B;;;GAGG;AACH,KAAK,4BAA4B;AAEjC;;;GAGG;AACH,KAAK,6BAA6B;AAElC;;;GAGG;AACH,KAAK,6BAA6B,GACnC,MAAM,yBAAyB,CAAA;AAEhC,OAAO;AACL;;;GAGG;AACH,eAAe,IAAI,MAAM;AAEzB;;;GAGG;AACH,KAAK,oBAAoB,IAAI,WAAW,GACzC,MAAM,qBAAqB,CAAA;AAE5B,OAAO;AACL;;;GAGG;AACH,MAAM;AAEN;;;GAGG;AACH,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAA;AAE5B,OAAO;AACL;;;GAGG;AACH,KAAK,GACN,MAAM,oBAAoB,CAAA;AAE3B,OAAO;AACL;;;GAGG;AACH,OAAO,GACR,MAAM,sBAAsB,CAAA;AAE7B,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAA;AAEhC,OAAO;AACL;;;GAGG;AACH,KAAK;AAEL;;;GAGG;AACH,KAAK,UAAU,GAChB,MAAM,oBAAoB,CAAA;AAE3B,OAAO;AACL;;;GAGG;AACH,IAAI;AAEJ;;;GAGG;AACH,KAAK,SAAS,GACf,MAAM,mBAAmB,CAAA;AAE1B,OAAO;AACL;;;GAGG;AACH,OAAO;AAEP;;;GAGG;AACH,KAAK,YAAY,GAClB,MAAM,sBAAsB,CAAA;AAE7B,OAAO;AACL;;;GAGG;AACH,IAAI;AAEJ;;;GAGG;AACH,KAAK,SAAS,GACf,MAAM,mBAAmB,CAAA;AAE1B,OAAO;AACL;;;GAGG;AACH,SAAS;AAET;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,oBAAoB,GAC1B,MAAM,wBAAwB,CAAA;AAE/B,OAAO;AACL;;;GAGG;AACH,YAAY;AAEZ;;;GAGG;AACH,KAAK,iBAAiB,GACvB,MAAM,2BAA2B,CAAA;AAElC,OAAO;AACL;;;GAGG;AACH,YAAY;AAEZ;;;GAGG;AACH,KAAK,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
|
@@ -5,24 +5,17 @@ export { BaseStyles } from './components/BaseStyles.js';
|
|
|
5
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
|
-
export { Breadcrumb, Breadcrumbs } from './components/Breadcrumbs.js';
|
|
9
8
|
export { ButtonComponent as Button } from './components/Button.js';
|
|
10
9
|
export { Dialog } from './components/Dialog.js';
|
|
11
10
|
export { Flash } from './components/Flash.js';
|
|
12
|
-
export { FormControl } from './components/FormControl.js';
|
|
13
|
-
export { Header } from './components/Header.js';
|
|
14
11
|
export { Heading } from './components/Heading.js';
|
|
15
12
|
export { IconButton } from './components/IconButton.js';
|
|
16
13
|
export { Label } from './components/Label.js';
|
|
17
14
|
export { Link } from './components/Link.js';
|
|
18
|
-
export { LinkButton } from './components/LinkButton.js';
|
|
19
|
-
export { SegmentedControl } from './components/SegmentedControl.js';
|
|
20
15
|
export { Spinner } from './components/Spinner.js';
|
|
21
16
|
export { Text } from './components/Text.js';
|
|
22
17
|
export { TextInput } from './components/TextInput.js';
|
|
23
|
-
export { Timeline } from './components/Timeline.js';
|
|
24
18
|
export { ToggleSwitch } from './components/ToggleSwitch.js';
|
|
25
|
-
export { Truncate } from './components/Truncate.js';
|
|
26
19
|
export { UnderlineNav } from './components/UnderlineNav.js';
|
|
27
20
|
export { sx } from './sx.js';
|
|
28
21
|
export { default as merge } from 'deepmerge';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7-rc.238d6453b",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@babel/preset-react": "^7.28.5",
|
|
50
50
|
"@babel/preset-typescript": "^7.28.5",
|
|
51
51
|
"@primer/primitives": "10.x || 11.x",
|
|
52
|
-
"@primer/react": "^38.
|
|
52
|
+
"@primer/react": "^38.22.0",
|
|
53
53
|
"@rollup/plugin-babel": "^6.1.0",
|
|
54
54
|
"@storybook/react-vite": "^10.3.3",
|
|
55
55
|
"@types/react": "18.3.11",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { BreadcrumbsProps as PrimerBreadcrumbsProps, BreadcrumbsItemProps as PrimerBreadcrumbsItemsProps } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
import { type ForwardRefComponent } from '../polymorphic';
|
|
4
|
-
import type React from 'react';
|
|
5
|
-
type BreadcrumbsProps = PrimerBreadcrumbsProps & SxProp;
|
|
6
|
-
type BreadcrumbsItemProps<As extends React.ElementType = 'a'> = PrimerBreadcrumbsItemsProps<As> & SxProp;
|
|
7
|
-
declare function BreadcrumbsItem<As extends React.ElementType = 'a'>({ as, ...props }: BreadcrumbsItemProps<As>): React.JSX.Element;
|
|
8
|
-
declare const Breadcrumbs: ForwardRefComponent<'nav', BreadcrumbsProps> & {
|
|
9
|
-
Item: typeof BreadcrumbsItem;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
|
|
13
|
-
*/
|
|
14
|
-
declare const Breadcrumb: ForwardRefComponent<"nav", BreadcrumbsProps> & {
|
|
15
|
-
Item: typeof BreadcrumbsItem;
|
|
16
|
-
};
|
|
17
|
-
export { Breadcrumbs, Breadcrumb, type BreadcrumbsProps, type BreadcrumbsItemProps };
|
|
18
|
-
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/components/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,IAAI,sBAAsB,EAC1C,oBAAoB,IAAI,2BAA2B,EACpD,MAAM,eAAe,CAAA;AACtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,KAAK,gBAAgB,GAAG,sBAAsB,GAAG,MAAM,CAAA;AACvD,KAAK,oBAAoB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,2BAA2B,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAgBxG,iBAAS,eAAe,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,EAAE,EAAC,EAAE,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,EAAE,CAAC,qBAEpG;AAED,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG;IAAC,IAAI,EAAE,OAAO,eAAe,CAAA;CAG9F,CAAA;AAED;;GAEG;AACH,QAAA,MAAM,UAAU;UARyD,OAAO,eAAe;CAQjE,CAAA;AAE9B,OAAO,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAC,CAAA"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Breadcrumbs as Breadcrumbs$1 } from '@primer/react';
|
|
2
|
-
import { sx } from '../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const BreadcrumbsImpl = styled(Breadcrumbs$1).withConfig({
|
|
7
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
8
|
-
}).withConfig({
|
|
9
|
-
displayName: "Breadcrumbs__BreadcrumbsImpl",
|
|
10
|
-
componentId: "sc-1qj8pw-0"
|
|
11
|
-
})(["", ""], sx);
|
|
12
|
-
const StyledBreadcrumbsItem = styled(Breadcrumbs$1.Item).withConfig({
|
|
13
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
14
|
-
}).withConfig({
|
|
15
|
-
displayName: "Breadcrumbs__StyledBreadcrumbsItem",
|
|
16
|
-
componentId: "sc-1qj8pw-1"
|
|
17
|
-
})(["", ""], sx);
|
|
18
|
-
function BreadcrumbsItem({
|
|
19
|
-
as,
|
|
20
|
-
...props
|
|
21
|
-
}) {
|
|
22
|
-
return /*#__PURE__*/jsx(StyledBreadcrumbsItem, {
|
|
23
|
-
...props,
|
|
24
|
-
...(as ? {
|
|
25
|
-
forwardedAs: as
|
|
26
|
-
} : {})
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
const Breadcrumbs = Object.assign(BreadcrumbsImpl, {
|
|
30
|
-
Item: BreadcrumbsItem
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
|
|
35
|
-
*/
|
|
36
|
-
const Breadcrumb = Breadcrumbs;
|
|
37
|
-
|
|
38
|
-
export { Breadcrumb, Breadcrumbs };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Table as PrimerDataTable, type TableContainerProps } from '@primer/react/experimental';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
type DataTableContainerProps<As extends React.ElementType = 'div'> = TableContainerProps<As> & SxProp;
|
|
5
|
-
declare function DataTableContainer<As extends React.ElementType = 'div'>({ as, ...rest }: DataTableContainerProps<As>): React.JSX.Element;
|
|
6
|
-
declare const Table: typeof PrimerDataTable & {
|
|
7
|
-
Container: typeof DataTableContainer;
|
|
8
|
-
};
|
|
9
|
-
export type { TableProps, TableHeadProps, TableBodyProps, TableRowProps, TableHeaderProps, TableCellProps, TableTitleProps, TableSubtitleProps, TableActionsProps, } from '@primer/react/experimental';
|
|
10
|
-
export { Table, type DataTableContainerProps };
|
|
11
|
-
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,eAAe,EAAE,KAAK,mBAAmB,EAAkB,MAAM,4BAA4B,CAAA;AAC9G,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,KAAK,uBAAuB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,IAAI,mBAAmB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAYrG,iBAAS,kBAAkB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,qBAE3G;AAUD,QAAA,MAAM,KAAK,EAAE,OAAO,eAAe,GAAG;IACpC,SAAS,EAAE,OAAO,kBAAkB,CAAA;CAIpC,CAAA;AAEF,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAC,KAAK,EAAE,KAAK,uBAAuB,EAAC,CAAA"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Table as Table$1 } from '@primer/react/experimental';
|
|
2
|
-
import { sx } from '../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const {
|
|
8
|
-
Container: PrimerDataTableContainer,
|
|
9
|
-
...rest
|
|
10
|
-
} = Table$1;
|
|
11
|
-
const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({
|
|
12
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
13
|
-
}).withConfig({
|
|
14
|
-
displayName: "DataTable__StyleDataTableContainer",
|
|
15
|
-
componentId: "sc-qy1ey2-0"
|
|
16
|
-
})(["", ""], sx);
|
|
17
|
-
function DataTableContainer({
|
|
18
|
-
as,
|
|
19
|
-
...rest
|
|
20
|
-
}) {
|
|
21
|
-
return /*#__PURE__*/jsx(StyleDataTableContainer, {
|
|
22
|
-
...rest,
|
|
23
|
-
...(as ? {
|
|
24
|
-
forwardedAs: as
|
|
25
|
-
} : {})
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Create a wrapper component to avoid mutating the original PrimerDataTable
|
|
30
|
-
const TableRoot = /*#__PURE__*/React.forwardRef(function TableRoot(props, ref) {
|
|
31
|
-
return /*#__PURE__*/jsx(Table$1, {
|
|
32
|
-
...props,
|
|
33
|
-
ref: ref
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
TableRoot.__SLOT__ = Table$1.__SLOT__;
|
|
37
|
-
const Table = Object.assign(TableRoot, {
|
|
38
|
-
Container: DataTableContainer,
|
|
39
|
-
...rest
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export { Table };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps } from '@primer/react';
|
|
2
|
-
import { type PropsWithChildren } from 'react';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
|
-
type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
|
|
5
|
-
declare const FormControlImpl: React.ComponentType<FormControlProps>;
|
|
6
|
-
declare const FormControl: typeof FormControlImpl & {
|
|
7
|
-
Caption: typeof PrimerFormControl.Caption;
|
|
8
|
-
LeadingVisual: typeof PrimerFormControl.LeadingVisual;
|
|
9
|
-
Validation: typeof PrimerFormControl.Validation;
|
|
10
|
-
Label: typeof PrimerFormControl.Label;
|
|
11
|
-
};
|
|
12
|
-
export { FormControl, type FormControlProps };
|
|
13
|
-
//# sourceMappingURL=FormControl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,IAAI,iBAAiB,EAAE,KAAK,gBAAgB,IAAI,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAC/G,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE5C,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAI1D,CAAA;AAED,QAAA,MAAM,WAAW,EAMX,OAAO,eAAe,GAAG;IAC7B,OAAO,EAAE,OAAO,iBAAiB,CAAC,OAAO,CAAA;IACzC,aAAa,EAAE,OAAO,iBAAiB,CAAC,aAAa,CAAA;IACrD,UAAU,EAAE,OAAO,iBAAiB,CAAC,UAAU,CAAA;IAC/C,KAAK,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAA;CACtC,CAAA;AAED,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FormControl as FormControl$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { sx } from '../sx.js';
|
|
4
|
-
|
|
5
|
-
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "FormControl__FormControlImpl",
|
|
9
|
-
componentId: "sc-1642wfe-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
const FormControl = Object.assign(FormControlImpl, {
|
|
12
|
-
__SLOT__: FormControl$1.__SLOT__,
|
|
13
|
-
Caption: FormControl$1.Caption,
|
|
14
|
-
LeadingVisual: FormControl$1.LeadingVisual,
|
|
15
|
-
Validation: FormControl$1.Validation,
|
|
16
|
-
Label: FormControl$1.Label
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export { FormControl };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type HeaderProps as PrimerHeaderProps, type HeaderItemProps as PrimerHeaderItemProps, type HeaderLinkProps as PrimerHeaderLinkProps } from '@primer/react';
|
|
2
|
-
import type { ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
|
-
type HeaderProps = PrimerHeaderProps & SxProp;
|
|
5
|
-
type HeaderItemProps = PrimerHeaderItemProps & SxProp;
|
|
6
|
-
declare const Header: ForwardRefComponent<"header", HeaderProps> & {
|
|
7
|
-
Item: import("react").ForwardRefExoticComponent<Omit<HeaderItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
Link: import("react").ForwardRefExoticComponent<Omit<PrimerHeaderLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
9
|
-
};
|
|
10
|
-
export { Header, type HeaderProps };
|
|
11
|
-
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,eAAe,IAAI,qBAAqB,EAG9C,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAU7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAcrD,QAAA,MAAM,MAAM;;;CAGV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,CAAA"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Header as Header$1 } from '@primer/react';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { Box } from './Box.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
7
|
-
return /*#__PURE__*/jsx(Box, {
|
|
8
|
-
as: Header$1,
|
|
9
|
-
ref: ref,
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
const HeaderImpl = /*#__PURE__*/forwardRef(({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}, ref) => /*#__PURE__*/jsx(StyledHeader, {
|
|
17
|
-
...props,
|
|
18
|
-
...(as ? {
|
|
19
|
-
forwardedAs: as
|
|
20
|
-
} : {}),
|
|
21
|
-
ref: ref
|
|
22
|
-
}));
|
|
23
|
-
const HeaderItem = /*#__PURE__*/forwardRef(function HeaderItem(props, ref) {
|
|
24
|
-
return /*#__PURE__*/jsx(Box, {
|
|
25
|
-
as: Header$1.Item,
|
|
26
|
-
ref: ref,
|
|
27
|
-
...props
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
const StyledHeaderLink = /*#__PURE__*/forwardRef(function HeaderLink(props, ref) {
|
|
31
|
-
return /*#__PURE__*/jsx(Box, {
|
|
32
|
-
as: Header$1.Link,
|
|
33
|
-
ref: ref,
|
|
34
|
-
...props
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
const HeaderLink = /*#__PURE__*/forwardRef(({
|
|
38
|
-
as,
|
|
39
|
-
...props
|
|
40
|
-
}, ref) => /*#__PURE__*/jsx(StyledHeaderLink, {
|
|
41
|
-
...props,
|
|
42
|
-
...(as ? {
|
|
43
|
-
forwardedAs: as
|
|
44
|
-
} : {}),
|
|
45
|
-
ref: ref
|
|
46
|
-
}));
|
|
47
|
-
const Header = Object.assign(HeaderImpl, {
|
|
48
|
-
Item: HeaderItem,
|
|
49
|
-
Link: HeaderLink
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export { Header };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type LinkButtonProps as PrimerLinkButtonProps } from '@primer/react';
|
|
2
|
-
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
|
-
type LinkButtonProps = PrimerLinkButtonProps & SxProp;
|
|
5
|
-
declare const LinkButton: ForwardRefComponent<'a', LinkButtonProps>;
|
|
6
|
-
export { LinkButton };
|
|
7
|
-
export type { LinkButtonProps };
|
|
8
|
-
//# sourceMappingURL=LinkButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/components/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAE3G,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAErD,QAAA,MAAM,UAAU,EAAE,mBAAmB,CAAC,GAAG,EAAE,eAAe,CAIzD,CAAA;AAED,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LinkButton as LinkButton$1 } from '@primer/react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { sx } from '../sx.js';
|
|
4
|
-
|
|
5
|
-
const LinkButton = styled(LinkButton$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "LinkButton",
|
|
9
|
-
componentId: "sc-1v6zkmg-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
|
|
12
|
-
export { LinkButton };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type SegmentedControlProps as PrimerSegmentedControlProps, type SegmentedControlButtonProps as PrimerSegmentedControlButtonProps, type SegmentedControlIconButtonProps as PrimerSegmentedControlIconButtonProps } from '@primer/react';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
|
-
type SegmentedControlProps = PropsWithChildren<PrimerSegmentedControlProps> & SxProp;
|
|
5
|
-
type SegmentedControlButtonProps = PropsWithChildren<PrimerSegmentedControlButtonProps> & SxProp;
|
|
6
|
-
type SegmentedControlIconButtonProps = PropsWithChildren<PrimerSegmentedControlIconButtonProps> & SxProp;
|
|
7
|
-
declare const SegmentedControl: ((props: SegmentedControlProps) => import("react").JSX.Element) & {
|
|
8
|
-
__SLOT__: symbol;
|
|
9
|
-
Button: {
|
|
10
|
-
(props: SegmentedControlButtonProps): import("react").JSX.Element;
|
|
11
|
-
__SLOT__: symbol | undefined;
|
|
12
|
-
};
|
|
13
|
-
IconButton: {
|
|
14
|
-
(props: SegmentedControlIconButtonProps): import("react").JSX.Element;
|
|
15
|
-
__SLOT__: symbol | undefined;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export { SegmentedControl, type SegmentedControlProps, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, };
|
|
19
|
-
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/components/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,IAAI,2BAA2B,EAEzD,KAAK,2BAA2B,IAAI,iCAAiC,EACrE,KAAK,+BAA+B,IAAI,qCAAqC,EAC9E,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,qBAAqB,GAAG,iBAAiB,CAAC,2BAA2B,CAAC,GAAG,MAAM,CAAA;AACpF,KAAK,2BAA2B,GAAG,iBAAiB,CAAC,iCAAiC,CAAC,GAAG,MAAM,CAAA;AAChG,KAAK,+BAA+B,GAAG,iBAAiB,CAAC,qCAAqC,CAAC,GAAG,MAAM,CAAA;AAcxG,QAAA,MAAM,gBAAgB,WAJe,qBAAqB;;;gBARnB,2BAA2B;;;;gBAIvB,+BAA+B;;;CAYxE,CAAA;AAKF,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,GACrC,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SegmentedControl as SegmentedControl$1 } from '@primer/react';
|
|
2
|
-
import { Box } from './Box.js';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
const SegmentedControlButton = props => {
|
|
6
|
-
return /*#__PURE__*/jsx(Box, {
|
|
7
|
-
as: SegmentedControl$1.Button,
|
|
8
|
-
...props
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
const SegmentedControlIconButton = props => {
|
|
12
|
-
return /*#__PURE__*/jsx(Box, {
|
|
13
|
-
as: SegmentedControl$1.IconButton,
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
const SegmentedControlImpl = props => {
|
|
18
|
-
return /*#__PURE__*/jsx(Box, {
|
|
19
|
-
as: SegmentedControl$1,
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
const SegmentedControl = Object.assign(SegmentedControlImpl, {
|
|
24
|
-
__SLOT__: SegmentedControl$1.__SLOT__,
|
|
25
|
-
Button: SegmentedControlButton,
|
|
26
|
-
IconButton: SegmentedControlIconButton
|
|
27
|
-
});
|
|
28
|
-
SegmentedControlButton.__SLOT__ = SegmentedControl$1.Button.__SLOT__;
|
|
29
|
-
SegmentedControlIconButton.__SLOT__ = SegmentedControl$1.IconButton.__SLOT__;
|
|
30
|
-
|
|
31
|
-
export { SegmentedControl };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type TimelineProps as PrimerTimelineProps, type TimelineItemProps as PrimerTimelineItemProps, type TimelineBadgeProps as PrimerTimelineBadgeProps, type TimelineBodyProps as PrimerTimelineBodyProps, type TimelineBreakProps as PrimerTimelineBreakProps } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
export type TimelineProps = PrimerTimelineProps & SxProp;
|
|
4
|
-
export type TimelineItemProps = PrimerTimelineItemProps & SxProp;
|
|
5
|
-
export type TimelineBadgeProps = PrimerTimelineBadgeProps & SxProp;
|
|
6
|
-
export type TimelineBodyProps = PrimerTimelineBodyProps & SxProp;
|
|
7
|
-
export type TimelineBreakProps = PrimerTimelineBreakProps & SxProp;
|
|
8
|
-
declare function TimelineBadge(props: TimelineBadgeProps): import("react").JSX.Element;
|
|
9
|
-
export declare const Timeline: import("react").ForwardRefExoticComponent<{
|
|
10
|
-
clipSidebar?: boolean | "start" | "end" | "both";
|
|
11
|
-
className?: string;
|
|
12
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>> & {
|
|
13
|
-
Item: import("react").ForwardRefExoticComponent<{
|
|
14
|
-
condensed?: boolean;
|
|
15
|
-
className?: string;
|
|
16
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
-
Badge: typeof TimelineBadge;
|
|
18
|
-
Body: import("react").ForwardRefExoticComponent<{
|
|
19
|
-
className?: string;
|
|
20
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
-
Break: import("react").ForwardRefExoticComponent<{
|
|
22
|
-
className?: string;
|
|
23
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/components/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,IAAI,mBAAmB,EACzC,KAAK,iBAAiB,IAAI,uBAAuB,EACjD,KAAK,kBAAkB,IAAI,wBAAwB,EACnD,KAAK,iBAAiB,IAAI,uBAAuB,EACjD,KAAK,kBAAkB,IAAI,wBAAwB,EACpD,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,MAAM,CAAA;AACxD,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAChE,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,MAAM,CAAA;AAClE,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAChE,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,MAAM,CAAA;AAUlE,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAE/C;AAUD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAKnB,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Timeline as Timeline$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 TimelineImpl = /*#__PURE__*/forwardRef(function Timeline(props, ref) {
|
|
7
|
-
return /*#__PURE__*/jsx(Box, {
|
|
8
|
-
as: Timeline$1,
|
|
9
|
-
ref: ref,
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
const TimelineItem = /*#__PURE__*/forwardRef(function TimelineItem(props, ref) {
|
|
14
|
-
return /*#__PURE__*/jsx(Box, {
|
|
15
|
-
as: Timeline$1.Item,
|
|
16
|
-
ref: ref,
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
function TimelineBadge(props) {
|
|
21
|
-
return /*#__PURE__*/jsx(Box, {
|
|
22
|
-
as: Timeline$1.Badge,
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
const TimelineBody = /*#__PURE__*/forwardRef(function TimelineBody(props, ref) {
|
|
27
|
-
return /*#__PURE__*/jsx(Box, {
|
|
28
|
-
as: Timeline$1.Body,
|
|
29
|
-
ref: ref,
|
|
30
|
-
...props
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
const TimelineBreak = /*#__PURE__*/forwardRef(function TimelineBreak(props, ref) {
|
|
34
|
-
return /*#__PURE__*/jsx(Box, {
|
|
35
|
-
as: Timeline$1.Break,
|
|
36
|
-
ref: ref,
|
|
37
|
-
...props
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
const Timeline = Object.assign(TimelineImpl, {
|
|
41
|
-
Item: TimelineItem,
|
|
42
|
-
Badge: TimelineBadge,
|
|
43
|
-
Body: TimelineBody,
|
|
44
|
-
Break: TimelineBreak
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
export { Timeline };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TruncateProps as PrimerTruncateProps } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
import type { PropsWithChildren } from 'react';
|
|
4
|
-
import type { ForwardRefComponent } from '../polymorphic';
|
|
5
|
-
export type TruncateProps = PropsWithChildren<PrimerTruncateProps> & SxProp;
|
|
6
|
-
export declare const Truncate: ForwardRefComponent<'div', TruncateProps>;
|
|
7
|
-
//# sourceMappingURL=Truncate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Truncate.d.ts","sourceRoot":"","sources":["../../src/components/Truncate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,IAAI,mBAAmB,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAAA;AAE3E,eAAO,MAAM,QAAQ,EAAE,mBAAmB,CAAC,KAAK,EAAE,aAAa,CAI9D,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Truncate as Truncate$1 } from '@primer/react';
|
|
2
|
-
import { sx } from '../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
const Truncate = styled(Truncate$1).withConfig({
|
|
6
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
-
}).withConfig({
|
|
8
|
-
displayName: "Truncate",
|
|
9
|
-
componentId: "sc-x3i4it-0"
|
|
10
|
-
})(["", ""], sx);
|
|
11
|
-
|
|
12
|
-
export { Truncate };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TabNavProps as PrimerTabNavProps, TabNavLinkProps as PrimerTabNavLinkProps } from '@primer/react/deprecated';
|
|
2
|
-
import { type SxProp } from '../../sx';
|
|
3
|
-
type TabNavProps = PrimerTabNavProps & SxProp;
|
|
4
|
-
type TabNavLinkProps = PrimerTabNavLinkProps & SxProp;
|
|
5
|
-
declare const TabNav: (({ as, ...props }: TabNavProps) => import("react").JSX.Element) & {
|
|
6
|
-
Link: import("react").ForwardRefExoticComponent<Omit<TabNavLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
7
|
-
};
|
|
8
|
-
export { TabNav, type TabNavProps, type TabNavLinkProps };
|
|
9
|
-
//# sourceMappingURL=TabNav.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabNav.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/TabNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAE,eAAe,IAAI,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACxH,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AAIxC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAC7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAsBrD,QAAA,MAAM,MAAM,sBAdwB,WAAW;;CAgB7C,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { TabNav as TabNav$1 } from '@primer/react/deprecated';
|
|
2
|
-
import { sx } from '../../sx.js';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const StyledTabNav = styled(TabNav$1).withConfig({
|
|
8
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
-
}).withConfig({
|
|
10
|
-
displayName: "TabNav__StyledTabNav",
|
|
11
|
-
componentId: "sc-13kad3t-0"
|
|
12
|
-
})(["", ""], sx);
|
|
13
|
-
const TabNavImpl = ({
|
|
14
|
-
as,
|
|
15
|
-
...props
|
|
16
|
-
}) => {
|
|
17
|
-
return /*#__PURE__*/jsx(StyledTabNav, {
|
|
18
|
-
...props,
|
|
19
|
-
...(as ? {
|
|
20
|
-
forwardedAs: as
|
|
21
|
-
} : {})
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
|
|
25
|
-
shouldForwardProp: prop => prop !== 'sx'
|
|
26
|
-
}).withConfig({
|
|
27
|
-
displayName: "TabNav__StyledTabNavLink",
|
|
28
|
-
componentId: "sc-13kad3t-1"
|
|
29
|
-
})(["", ""], sx);
|
|
30
|
-
const TabNavLink = /*#__PURE__*/forwardRef(({
|
|
31
|
-
as,
|
|
32
|
-
...props
|
|
33
|
-
}, ref) => /*#__PURE__*/jsx(StyledTabNavLink, {
|
|
34
|
-
...props,
|
|
35
|
-
...(as ? {
|
|
36
|
-
forwardedAs: as
|
|
37
|
-
} : {}),
|
|
38
|
-
ref: ref
|
|
39
|
-
}));
|
|
40
|
-
const TabNav = Object.assign(TabNavImpl, {
|
|
41
|
-
Link: TabNavLink
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export { TabNav };
|