@primer/styled-react 0.0.0-20251205154953 → 0.0.0-20251205165836
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 +145 -89
- package/dist/components/ActionMenu.js +15 -15
- package/dist/components/Autocomplete.js +20 -18
- package/dist/components/Avatar.js +11 -13
- package/dist/components/BaseStyles.js +47 -28
- package/dist/components/Box.js +10 -18
- package/dist/components/Breadcrumbs.js +32 -22
- package/dist/components/Button.js +105 -41
- package/dist/components/Checkbox.js +12 -14
- package/dist/components/CheckboxGroup.js +36 -34
- package/dist/components/CircleBadge.js +10 -10
- package/dist/components/CounterLabel.js +11 -13
- package/dist/components/DataTable.js +27 -19
- package/dist/components/Dialog.js +79 -53
- package/dist/components/Flash.js +9 -9
- package/dist/components/FormControl.js +15 -15
- package/dist/components/Header.js +44 -36
- package/dist/components/Heading.js +9 -9
- package/dist/components/IconButton.js +36 -23
- package/dist/components/Label.js +22 -17
- package/dist/components/Link.js +22 -17
- package/dist/components/LinkButton.js +9 -9
- package/dist/components/NavList.js +65 -46
- package/dist/components/Overlay.js +9 -9
- package/dist/components/PageHeader.js +100 -62
- package/dist/components/RadioGroup.js +36 -34
- package/dist/components/RelativeTime.js +11 -11
- package/dist/components/SegmentedControl.js +25 -27
- package/dist/components/Select.js +20 -15
- package/dist/components/Spinner.js +9 -9
- package/dist/components/StateLabel.js +11 -13
- package/dist/components/SubNav.js +21 -23
- package/dist/components/Text.js +22 -17
- package/dist/components/TextInput.js +32 -25
- package/dist/components/Textarea.js +22 -17
- package/dist/components/ThemeProvider.js +185 -132
- package/dist/components/Timeline.js +38 -40
- package/dist/components/ToggleSwitch.js +11 -13
- package/dist/components/Token.js +22 -17
- package/dist/components/Tooltip.js +12 -14
- package/dist/components/Truncate.js +9 -9
- package/dist/components/UnderlineNav.js +39 -27
- package/dist/components/UnderlinePanels.js +23 -18
- package/dist/components/deprecated/ActionList.js +39 -34
- package/dist/components/deprecated/DialogV1.js +38 -28
- package/dist/components/deprecated/Octicon.js +35 -28
- package/dist/components/deprecated/TabNav.js +38 -24
- package/dist/components/deprecated/Tooltip.js +28 -20
- package/dist/deprecated.d.ts +5 -75
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +5 -7
- package/dist/experimental.d.ts +5 -120
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +5 -7
- package/dist/index.d.ts +47 -582
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -48
- package/dist/sx.js +6 -7
- package/dist/theme-get.js +8 -8
- package/package.json +4 -7
|
@@ -1,48 +1,112 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { jsx } from
|
|
1
|
+
import { Button } 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
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const StyledButtonComponent = styled(Button).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "Button__StyledButtonComponent",
|
|
11
|
+
componentId: "sc-vqy3e4-0"
|
|
11
12
|
})(["", ""], sx);
|
|
12
|
-
const ButtonComponent =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
13
|
+
const ButtonComponent = /*#__PURE__*/forwardRef(({
|
|
14
|
+
as,
|
|
15
|
+
sx,
|
|
16
|
+
style: propStyle,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => {
|
|
19
|
+
const {
|
|
20
|
+
block,
|
|
21
|
+
size = 'medium',
|
|
22
|
+
leadingVisual,
|
|
23
|
+
trailingVisual,
|
|
24
|
+
trailingAction
|
|
25
|
+
} = props;
|
|
26
|
+
let sxStyles = {};
|
|
27
|
+
const style = {
|
|
28
|
+
...(propStyle || {})
|
|
29
|
+
};
|
|
30
|
+
if (sx !== null && Object.keys(sx || {}).length > 0) {
|
|
31
|
+
sxStyles = generateCustomSxProp({
|
|
32
|
+
block,
|
|
33
|
+
size,
|
|
34
|
+
leadingVisual,
|
|
35
|
+
trailingVisual,
|
|
36
|
+
trailingAction
|
|
37
|
+
}, sx);
|
|
38
|
+
const {
|
|
39
|
+
color
|
|
40
|
+
} = sx;
|
|
41
|
+
if (color) style['--button-color'] = color;
|
|
42
|
+
}
|
|
43
|
+
return /*#__PURE__*/jsx(StyledButtonComponent, {
|
|
44
|
+
style: style,
|
|
45
|
+
sx: sxStyles,
|
|
46
|
+
ref: ref,
|
|
47
|
+
...props,
|
|
48
|
+
...(as ? {
|
|
49
|
+
forwardedAs: as
|
|
50
|
+
} : {})
|
|
51
|
+
});
|
|
34
52
|
});
|
|
53
|
+
|
|
54
|
+
// This function is used to generate a custom cssSelector for the sxProp
|
|
55
|
+
|
|
56
|
+
// The usual sx prop can like this:
|
|
57
|
+
// sx={{
|
|
58
|
+
// [`@media (max-width: 768px)`]: {
|
|
59
|
+
// '& > ul': {
|
|
60
|
+
// backgroundColor: 'deeppink',
|
|
61
|
+
// },
|
|
62
|
+
// '&:hover': {
|
|
63
|
+
// backgroundColor: 'yellow',
|
|
64
|
+
// },
|
|
65
|
+
// },
|
|
66
|
+
// '&:hover': {
|
|
67
|
+
// backgroundColor: 'yellow',
|
|
68
|
+
// },
|
|
69
|
+
// '&': {
|
|
70
|
+
// width : 320px
|
|
71
|
+
// }
|
|
72
|
+
// }}
|
|
73
|
+
//*
|
|
74
|
+
/* What we want for Button styles is this:
|
|
75
|
+
sx={{
|
|
76
|
+
// [`@media (max-width: 768px)`]: {
|
|
77
|
+
// '&[data-attribute="something"] > ul': {
|
|
78
|
+
// backgroundColor: 'deeppink',
|
|
79
|
+
// },
|
|
80
|
+
// '&[data-attribute="something"]:hover': {
|
|
81
|
+
// backgroundColor: 'yellow',
|
|
82
|
+
// },
|
|
83
|
+
// },
|
|
84
|
+
// '&[data-attribute="something"]:hover': {
|
|
85
|
+
// backgroundColor: 'yellow',
|
|
86
|
+
// },
|
|
87
|
+
// '&[data-attribute="something"]': {
|
|
88
|
+
// width : 320px
|
|
89
|
+
// }
|
|
90
|
+
// }}
|
|
91
|
+
|
|
92
|
+
// We need to make sure we append the customCSSSelector to the original class selector. i.e & - > &[data-attribute="Icon"][data-size="small"]
|
|
93
|
+
*/
|
|
35
94
|
function generateCustomSxProp(props, providedSx) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
95
|
+
// Possible data attributes: data-size, data-block, data-no-visuals
|
|
96
|
+
const size = `[data-size="${props.size}"]`;
|
|
97
|
+
const block = props.block ? `[data-block="block"]` : '';
|
|
98
|
+
const noVisuals = props.leadingVisual || props.trailingVisual || props.trailingAction ? '' : '[data-no-visuals]';
|
|
99
|
+
|
|
100
|
+
// this is a custom selector. We need to make sure we add the data attributes to the base css class (& -> &[data-attributename="value"]])
|
|
101
|
+
const cssSelector = `&${size}${block}${noVisuals}`; // &[data-size="small"][data-block="block"][data-no-visuals]
|
|
102
|
+
|
|
103
|
+
const customSxProp = {};
|
|
104
|
+
if (!providedSx) return customSxProp;else {
|
|
105
|
+
customSxProp[cssSelector] = providedSx;
|
|
106
|
+
return customSxProp;
|
|
107
|
+
}
|
|
43
108
|
}
|
|
44
|
-
ButtonComponent.displayName =
|
|
109
|
+
ButtonComponent.displayName = 'Button';
|
|
45
110
|
ButtonComponent.__SLOT__ = Button.__SLOT__;
|
|
46
111
|
|
|
47
|
-
|
|
48
|
-
export { ButtonComponent, generateCustomSxProp };
|
|
112
|
+
export { ButtonComponent, generateCustomSxProp };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef } from
|
|
4
|
-
import { jsx } from
|
|
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
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
6
|
+
const Checkbox = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: Checkbox$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
13
12
|
});
|
|
14
|
-
Checkbox
|
|
13
|
+
Checkbox.__SLOT__ = Checkbox$1.__SLOT__;
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
export { Checkbox$1 as Checkbox };
|
|
15
|
+
export { Checkbox };
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
});
|
|
6
|
+
const CheckboxGroupImpl = props => {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: CheckboxGroup$1,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
+
});
|
|
17
20
|
};
|
|
18
|
-
const CheckboxOrRadioGroupCaption =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const CheckboxOrRadioGroupCaption = props => {
|
|
22
|
+
return /*#__PURE__*/jsx(Box, {
|
|
23
|
+
as: CheckboxGroup$1.Caption,
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
23
26
|
};
|
|
24
|
-
const CheckboxOrRadioGroupValidation =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
const CheckboxOrRadioGroupValidation = props => {
|
|
28
|
+
return /*#__PURE__*/jsx(Box, {
|
|
29
|
+
as: CheckboxGroup$1.Validation,
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
29
32
|
};
|
|
30
|
-
const CheckboxGroup
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
const CheckboxGroup = Object.assign(CheckboxGroupImpl, {
|
|
34
|
+
Label: CheckboxOrRadioGroupLabel,
|
|
35
|
+
Caption: CheckboxOrRadioGroupCaption,
|
|
36
|
+
Validation: CheckboxOrRadioGroupValidation
|
|
34
37
|
});
|
|
35
|
-
CheckboxGroupImpl.__SLOT__ = CheckboxGroup.__SLOT__;
|
|
36
|
-
CheckboxOrRadioGroupLabel.__SLOT__ = CheckboxGroup.Label.__SLOT__;
|
|
37
|
-
CheckboxOrRadioGroupCaption.__SLOT__ = CheckboxGroup.Caption.__SLOT__;
|
|
38
|
-
CheckboxOrRadioGroupValidation.__SLOT__ = CheckboxGroup.Validation.__SLOT__;
|
|
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__;
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
export { CheckboxGroup$1 as CheckboxGroup };
|
|
43
|
+
export { CheckboxGroup };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import styled from
|
|
3
|
-
import
|
|
1
|
+
import { CircleBadge as CircleBadge$1 } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
const CircleBadge = styled(CircleBadge$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "CircleBadge",
|
|
9
|
+
componentId: "sc-1u7lp3v-0"
|
|
10
|
+
})(["", ""], sx);
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
export { CircleBadge$1 as CircleBadge };
|
|
12
|
+
export { CircleBadge };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef } from
|
|
4
|
-
import { jsx } from
|
|
1
|
+
import { CounterLabel as CounterLabel$1 } from '@primer/react';
|
|
2
|
+
import Box from './Box.js';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
6
|
+
const CounterLabel = /*#__PURE__*/forwardRef(function CounterLabel(props, ref) {
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: CounterLabel$1,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
13
12
|
});
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
export { CounterLabel$1 as CounterLabel };
|
|
14
|
+
export { CounterLabel };
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { Table as Table$1 } from '@primer/react/experimental';
|
|
2
|
+
import sx from '../sx.js';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const {
|
|
7
|
+
Container: PrimerDataTableContainer,
|
|
8
|
+
...rest
|
|
9
|
+
} = Table$1;
|
|
10
|
+
const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({
|
|
11
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
12
|
+
}).withConfig({
|
|
13
|
+
displayName: "DataTable__StyleDataTableContainer",
|
|
14
|
+
componentId: "sc-qy1ey2-0"
|
|
11
15
|
})(["", ""], sx);
|
|
12
|
-
function DataTableContainer({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
function DataTableContainer({
|
|
17
|
+
as,
|
|
18
|
+
...rest
|
|
19
|
+
}) {
|
|
20
|
+
return /*#__PURE__*/jsx(StyleDataTableContainer, {
|
|
21
|
+
...rest,
|
|
22
|
+
...(as ? {
|
|
23
|
+
forwardedAs: as
|
|
24
|
+
} : {})
|
|
25
|
+
});
|
|
17
26
|
}
|
|
18
|
-
const Table
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
const Table = Object.assign(Table$1, {
|
|
28
|
+
Container: DataTableContainer,
|
|
29
|
+
...rest
|
|
21
30
|
});
|
|
22
31
|
|
|
23
|
-
|
|
24
|
-
export { Table$1 as Table };
|
|
32
|
+
export { Table };
|
|
@@ -1,64 +1,90 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef } from
|
|
5
|
-
import { jsx } from
|
|
1
|
+
import { Dialog as Dialog$1 } from '@primer/react';
|
|
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
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const StyledDialog = styled(Dialog$1).withConfig({
|
|
8
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
9
|
+
}).withConfig({
|
|
10
|
+
displayName: "Dialog__StyledDialog",
|
|
11
|
+
componentId: "sc-19zph8h-0"
|
|
11
12
|
})(["", ""], sx);
|
|
12
|
-
const DialogImpl =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const DialogImpl = /*#__PURE__*/forwardRef(function Dialog({
|
|
14
|
+
as,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) {
|
|
17
|
+
return /*#__PURE__*/jsx(StyledDialog, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
...(as ? {
|
|
20
|
+
forwardedAs: as
|
|
21
|
+
} : {}),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
18
24
|
});
|
|
19
|
-
const StyledDialogHeader = styled(Dialog.Header).withConfig({
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
const StyledDialogHeader = styled(Dialog$1.Header).withConfig({
|
|
26
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
27
|
+
}).withConfig({
|
|
28
|
+
displayName: "Dialog__StyledDialogHeader",
|
|
29
|
+
componentId: "sc-19zph8h-1"
|
|
22
30
|
})(["", ""], sx);
|
|
23
|
-
const DialogHeader =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
const DialogHeader = /*#__PURE__*/forwardRef(function DialogHeader({
|
|
32
|
+
as,
|
|
33
|
+
...props
|
|
34
|
+
}, ref) {
|
|
35
|
+
return /*#__PURE__*/jsx(StyledDialogHeader, {
|
|
36
|
+
ref: ref,
|
|
37
|
+
...(as ? {
|
|
38
|
+
forwardedAs: as
|
|
39
|
+
} : {}),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
29
42
|
});
|
|
30
|
-
const StyledDialogBody = styled(Dialog.Body).withConfig({
|
|
31
|
-
|
|
32
|
-
|
|
43
|
+
const StyledDialogBody = styled(Dialog$1.Body).withConfig({
|
|
44
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
45
|
+
}).withConfig({
|
|
46
|
+
displayName: "Dialog__StyledDialogBody",
|
|
47
|
+
componentId: "sc-19zph8h-2"
|
|
33
48
|
})(["", ""], sx);
|
|
34
|
-
const DialogBody =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
const DialogBody = /*#__PURE__*/forwardRef(function DialogBody({
|
|
50
|
+
as,
|
|
51
|
+
...props
|
|
52
|
+
}, ref) {
|
|
53
|
+
return /*#__PURE__*/jsx(StyledDialogBody, {
|
|
54
|
+
ref: ref,
|
|
55
|
+
...(as ? {
|
|
56
|
+
forwardedAs: as
|
|
57
|
+
} : {}),
|
|
58
|
+
...props
|
|
59
|
+
});
|
|
40
60
|
});
|
|
41
|
-
const StyledDialogFooter = styled(Dialog.Footer).withConfig({
|
|
42
|
-
|
|
43
|
-
|
|
61
|
+
const StyledDialogFooter = styled(Dialog$1.Footer).withConfig({
|
|
62
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
63
|
+
}).withConfig({
|
|
64
|
+
displayName: "Dialog__StyledDialogFooter",
|
|
65
|
+
componentId: "sc-19zph8h-3"
|
|
44
66
|
})(["", ""], sx);
|
|
45
|
-
const DialogFooter =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
67
|
+
const DialogFooter = /*#__PURE__*/forwardRef(function DialogFooter({
|
|
68
|
+
as,
|
|
69
|
+
...props
|
|
70
|
+
}, ref) {
|
|
71
|
+
return /*#__PURE__*/jsx(StyledDialogFooter, {
|
|
72
|
+
ref: ref,
|
|
73
|
+
...(as ? {
|
|
74
|
+
forwardedAs: as
|
|
75
|
+
} : {}),
|
|
76
|
+
...props
|
|
77
|
+
});
|
|
51
78
|
});
|
|
52
|
-
DialogHeader.__SLOT__ = Dialog.Header.__SLOT__;
|
|
53
|
-
DialogBody.__SLOT__ = Dialog.Body.__SLOT__;
|
|
54
|
-
DialogFooter.__SLOT__ = Dialog.Footer.__SLOT__;
|
|
55
|
-
const Dialog
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
79
|
+
DialogHeader.__SLOT__ = Dialog$1.Header.__SLOT__;
|
|
80
|
+
DialogBody.__SLOT__ = Dialog$1.Body.__SLOT__;
|
|
81
|
+
DialogFooter.__SLOT__ = Dialog$1.Footer.__SLOT__;
|
|
82
|
+
const Dialog = Object.assign(DialogImpl, {
|
|
83
|
+
__SLOT__: Dialog$1['__SLOT__'],
|
|
84
|
+
Buttons: Dialog$1.Buttons,
|
|
85
|
+
Header: DialogHeader,
|
|
86
|
+
Body: DialogBody,
|
|
87
|
+
Footer: DialogFooter
|
|
61
88
|
});
|
|
62
89
|
|
|
63
|
-
|
|
64
|
-
export { Dialog$1 as Dialog };
|
|
90
|
+
export { Dialog };
|
package/dist/components/Flash.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import styled from
|
|
3
|
-
import
|
|
1
|
+
import { Flash as Flash$1 } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const Flash = styled(Flash$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "Flash",
|
|
9
|
+
componentId: "sc-413izo-0"
|
|
9
10
|
})(["", ""], sx);
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
export { Flash$1 as Flash };
|
|
12
|
+
export { Flash };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import styled from
|
|
3
|
-
import
|
|
1
|
+
import { FormControl as FormControl$1 } from '@primer/react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import sx from '../sx.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
6
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
7
|
+
}).withConfig({
|
|
8
|
+
displayName: "FormControl__FormControlImpl",
|
|
9
|
+
componentId: "sc-1642wfe-0"
|
|
9
10
|
})(["", ""], sx);
|
|
10
|
-
const FormControl
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
16
17
|
});
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
export { FormControl$1 as FormControl };
|
|
19
|
+
export { FormControl };
|