@primer/styled-react 1.0.2 → 1.0.3-rc.1109fb986
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { ActionList as ActionList$1 } from '@primer/react';
|
|
4
|
-
import sx from '../sx.js';
|
|
4
|
+
import { sx } from '../sx.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
const StyledActionList = styled(ActionList$1).withConfig({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Avatar as Avatar$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
3
|
+
import { Box } from './Box.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
|
package/dist/components/Box.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { space, color, typography, layout, flexbox, grid, background, border, position, shadow } from 'styled-system';
|
|
3
|
-
import sx from '../sx.js';
|
|
3
|
+
import { sx } from '../sx.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated The Box component is deprecated. Replace with a `div` or
|
|
@@ -12,4 +12,4 @@ const Box = styled.div.withConfig({
|
|
|
12
12
|
componentId: "sc-62in7e-0"
|
|
13
13
|
})(space, color, typography, layout, flexbox, grid, background, border, position, shadow, sx);
|
|
14
14
|
|
|
15
|
-
export { Box
|
|
15
|
+
export { Box };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import sx from '../sx.js';
|
|
4
|
+
import { sx } from '../sx.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
const StyledButtonComponent = styled(Button).withConfig({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("../polymorphic").ForwardRefComponent<"button", import("./Button").ButtonComponentProps> & import("@primer/react").SlotMarker;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WithColor: () => import("react").JSX.Element;
|
|
7
|
+
export declare const WithFontSize: () => import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../src/components/Button.stories.tsx"],"names":[],"mappings":";;;;AAEA,wBAGC;AAED,eAAO,MAAM,SAAS,mCAAgE,CAAA;AAEtF,eAAO,MAAM,YAAY,mCAA0D,CAAA"}
|
package/dist/components/Flash.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormControl as FormControl$1 } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
3
|
+
import { sx } from '../sx.js';
|
|
4
4
|
|
|
5
5
|
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
6
6
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Header as Header$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
3
|
+
import { Box } from './Box.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
@@ -2,7 +2,7 @@ import { IconButton as IconButton$1 } from '@primer/react';
|
|
|
2
2
|
import { generateCustomSxProp } from './Button.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import sx from '../sx.js';
|
|
5
|
+
import { sx } from '../sx.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
const StyledIconButton = styled(IconButton$1).withConfig({
|
package/dist/components/Label.js
CHANGED
package/dist/components/Link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PageHeader as PageHeader$1 } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
|
-
import Box from './Box.js';
|
|
3
|
+
import { sx } from '../sx.js';
|
|
4
|
+
import { Box } from './Box.js';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
package/dist/components/Text.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
3
|
+
import { Box } from './Box.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
package/dist/components/Token.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
-
import Box from './Box.js';
|
|
2
|
+
import { Box } from './Box.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import sx from '../sx.js';
|
|
5
|
+
import { sx } from '../sx.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
const StyledUnderlineNav = /*#__PURE__*/forwardRef(function UnderlineNav(props, ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
-
import sx from '../../sx.js';
|
|
4
|
-
import Box from '../Box.js';
|
|
3
|
+
import { sx } from '../../sx.js';
|
|
4
|
+
import { Box } from '../Box.js';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Octicon as Octicon$1 } from '@primer/react/deprecated';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../../sx.js';
|
|
3
|
+
import { sx } from '../../sx.js';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -36,4 +36,4 @@ const Octicon = /*#__PURE__*/forwardRef(({
|
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
export { Octicon
|
|
39
|
+
export { Octicon };
|
package/dist/components.json
CHANGED
|
@@ -2,18 +2,13 @@
|
|
|
2
2
|
"components": [
|
|
3
3
|
"ActionList",
|
|
4
4
|
"ActionMenu",
|
|
5
|
-
"Autocomplete",
|
|
6
5
|
"Avatar",
|
|
7
6
|
"BaseStyles",
|
|
8
7
|
"Box",
|
|
9
8
|
"Breadcrumb",
|
|
10
9
|
"Breadcrumbs",
|
|
11
10
|
"Button",
|
|
12
|
-
"Checkbox",
|
|
13
|
-
"CheckboxGroup",
|
|
14
|
-
"CircleBadge",
|
|
15
11
|
"CounterLabel",
|
|
16
|
-
"Details",
|
|
17
12
|
"Dialog",
|
|
18
13
|
"Flash",
|
|
19
14
|
"FormControl",
|
|
@@ -23,18 +18,11 @@
|
|
|
23
18
|
"Label",
|
|
24
19
|
"Link",
|
|
25
20
|
"LinkButton",
|
|
26
|
-
"NavList",
|
|
27
21
|
"Octicon",
|
|
28
22
|
"Overlay",
|
|
29
23
|
"PageHeader",
|
|
30
|
-
"ProgressBar",
|
|
31
|
-
"RadioGroup",
|
|
32
|
-
"RelativeTime",
|
|
33
24
|
"SegmentedControl",
|
|
34
|
-
"Select",
|
|
35
25
|
"Spinner",
|
|
36
|
-
"StateLabel",
|
|
37
|
-
"SubNav",
|
|
38
26
|
"Table",
|
|
39
27
|
"TabNav",
|
|
40
28
|
"Text",
|
|
@@ -46,8 +34,7 @@
|
|
|
46
34
|
"Token",
|
|
47
35
|
"Tooltip",
|
|
48
36
|
"Truncate",
|
|
49
|
-
"UnderlineNav"
|
|
50
|
-
"UnderlinePanels"
|
|
37
|
+
"UnderlineNav"
|
|
51
38
|
],
|
|
52
39
|
"types": [
|
|
53
40
|
"ActionListDividerProps",
|
|
@@ -58,7 +45,6 @@
|
|
|
58
45
|
"ActionListProps",
|
|
59
46
|
"ActionListTrailingActionProps",
|
|
60
47
|
"ActionListTrailingVisualProps",
|
|
61
|
-
"AutocompleteOverlayProps",
|
|
62
48
|
"AvatarProps",
|
|
63
49
|
"BaseStylesProps",
|
|
64
50
|
"BetterSystemStyleObject",
|
|
@@ -66,8 +52,6 @@
|
|
|
66
52
|
"BreadcrumbsItemProps",
|
|
67
53
|
"BreadcrumbsProps",
|
|
68
54
|
"ButtonProps",
|
|
69
|
-
"CheckboxGroupProps",
|
|
70
|
-
"CheckboxProps",
|
|
71
55
|
"CounterLabelProps",
|
|
72
56
|
"DataTableContainerProps",
|
|
73
57
|
"DialogHeaderProps",
|
|
@@ -78,21 +62,14 @@
|
|
|
78
62
|
"LabelProps",
|
|
79
63
|
"LinkButtonProps",
|
|
80
64
|
"LinkProps",
|
|
81
|
-
"NavListProps",
|
|
82
65
|
"OcticonProps",
|
|
83
66
|
"PageHeaderActionsProps",
|
|
84
67
|
"PageHeaderProps",
|
|
85
68
|
"PageHeaderTitleProps",
|
|
86
|
-
"RadioGroupProps",
|
|
87
|
-
"RelativeTimeProps",
|
|
88
69
|
"SegmentedControlButtonProps",
|
|
89
70
|
"SegmentedControlIconButtonProps",
|
|
90
71
|
"SegmentedControlProps",
|
|
91
|
-
"SelectProps",
|
|
92
72
|
"SpinnerProps",
|
|
93
|
-
"StateLabelProps",
|
|
94
|
-
"SubNavLinkProps",
|
|
95
|
-
"SubNavProps",
|
|
96
73
|
"SxProp",
|
|
97
74
|
"TableActionsProps",
|
|
98
75
|
"TableBodyProps",
|
|
@@ -120,10 +97,7 @@
|
|
|
120
97
|
"TooltipProps",
|
|
121
98
|
"TruncateProps",
|
|
122
99
|
"UnderlineNavItemProps",
|
|
123
|
-
"UnderlineNavProps"
|
|
124
|
-
"UnderlinePanelsPanelProps",
|
|
125
|
-
"UnderlinePanelsProps",
|
|
126
|
-
"UnderlinePanelsTabProps"
|
|
100
|
+
"UnderlineNavProps"
|
|
127
101
|
],
|
|
128
102
|
"utilities": [
|
|
129
103
|
"merge",
|
package/dist/deprecated.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { TabNav } from './components/deprecated/TabNav.js';
|
|
2
2
|
export { Dialog } from './components/deprecated/DialogV1.js';
|
|
3
|
-
export {
|
|
3
|
+
export { Octicon } from './components/deprecated/Octicon.js';
|
|
4
4
|
export { Tooltip } from './components/deprecated/Tooltip.js';
|
|
5
5
|
export { ActionList } from './components/deprecated/ActionList.js';
|
package/dist/experimental.d.ts
CHANGED
|
@@ -42,27 +42,6 @@ Tooltip,
|
|
|
42
42
|
*/
|
|
43
43
|
type TooltipProps, } from './components/Tooltip';
|
|
44
44
|
export {
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
47
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
48
|
-
*/
|
|
49
|
-
UnderlinePanels,
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
52
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
53
|
-
*/
|
|
54
|
-
type UnderlinePanelsProps,
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
57
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
58
|
-
*/
|
|
59
|
-
type UnderlinePanelsTabProps,
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
62
|
-
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
63
|
-
*/
|
|
64
|
-
type UnderlinePanelsPanelProps, } from './components/UnderlinePanels';
|
|
65
|
-
export {
|
|
66
45
|
/**
|
|
67
46
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
|
68
47
|
* supported. Use the component from `@primer/react` with CSS Modules instead.
|
|
@@ -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;AAE5B,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,sBAAsB;AAE3B;;;GAGG;AACH,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAEhC,OAAO;AACL;;;GAGG;AACH,OAAO;AAEP;;;GAGG;AACH,KAAK,YAAY,GAClB,MAAM,sBAAsB,CAAA;AAE7B,OAAO;AACL;;;GAGG;AACH,
|
|
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;AAE5B,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,sBAAsB;AAE3B;;;GAGG;AACH,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAEhC,OAAO;AACL;;;GAGG;AACH,OAAO;AAEP;;;GAGG;AACH,KAAK,YAAY,GAClB,MAAM,sBAAsB,CAAA;AAE7B,OAAO;AACL;;;GAGG;AACH,KAAK;AAEL;;;GAGG;AACH,KAAK,uBAAuB;AAE5B;;;GAGG;AACH,KAAK,UAAU;AAEf;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,aAAa;AAElB;;;GAGG;AACH,KAAK,gBAAgB;AAErB;;;GAGG;AACH,KAAK,cAAc;AAEnB;;;GAGG;AACH,KAAK,eAAe;AAEpB;;;GAGG;AACH,KAAK,kBAAkB;AAEvB;;;GAGG;AACH,KAAK,iBAAiB,GACvB,MAAM,wBAAwB,CAAA"}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { Dialog } from './components/Dialog.js';
|
|
2
2
|
export { PageHeader } from './components/PageHeader.js';
|
|
3
3
|
export { Tooltip } from './components/Tooltip.js';
|
|
4
|
-
export { UnderlinePanels } from './components/UnderlinePanels.js';
|
|
5
4
|
export { Table } from './components/DataTable.js';
|