@primer/styled-react 0.0.0-20251205021328 → 0.0.0-20251205154953

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.
Files changed (54) hide show
  1. package/dist/components/ActionList.js +89 -145
  2. package/dist/components/ActionMenu.js +15 -15
  3. package/dist/components/Autocomplete.js +18 -20
  4. package/dist/components/Avatar.js +13 -11
  5. package/dist/components/BaseStyles.js +28 -47
  6. package/dist/components/Box.js +18 -10
  7. package/dist/components/Breadcrumbs.js +22 -32
  8. package/dist/components/Button.js +41 -105
  9. package/dist/components/Checkbox.js +14 -12
  10. package/dist/components/CheckboxGroup.js +34 -36
  11. package/dist/components/CircleBadge.js +10 -10
  12. package/dist/components/CounterLabel.js +13 -11
  13. package/dist/components/DataTable.js +19 -27
  14. package/dist/components/Dialog.js +53 -79
  15. package/dist/components/Flash.js +9 -9
  16. package/dist/components/FormControl.js +15 -15
  17. package/dist/components/Header.js +36 -44
  18. package/dist/components/Heading.js +9 -9
  19. package/dist/components/IconButton.js +23 -36
  20. package/dist/components/Label.js +17 -22
  21. package/dist/components/Link.js +17 -22
  22. package/dist/components/LinkButton.js +9 -9
  23. package/dist/components/NavList.js +46 -65
  24. package/dist/components/Overlay.js +9 -9
  25. package/dist/components/PageHeader.js +62 -100
  26. package/dist/components/RadioGroup.js +34 -36
  27. package/dist/components/RelativeTime.js +11 -11
  28. package/dist/components/SegmentedControl.js +27 -25
  29. package/dist/components/Select.js +15 -20
  30. package/dist/components/Spinner.js +9 -9
  31. package/dist/components/StateLabel.js +13 -11
  32. package/dist/components/SubNav.js +23 -21
  33. package/dist/components/Text.js +17 -22
  34. package/dist/components/TextInput.js +25 -32
  35. package/dist/components/Textarea.js +17 -22
  36. package/dist/components/ThemeProvider.js +132 -185
  37. package/dist/components/Timeline.js +40 -38
  38. package/dist/components/ToggleSwitch.js +13 -11
  39. package/dist/components/Token.js +17 -22
  40. package/dist/components/Tooltip.js +14 -12
  41. package/dist/components/Truncate.js +9 -9
  42. package/dist/components/UnderlineNav.js +27 -39
  43. package/dist/components/UnderlinePanels.js +18 -23
  44. package/dist/components/deprecated/ActionList.js +34 -39
  45. package/dist/components/deprecated/DialogV1.js +28 -38
  46. package/dist/components/deprecated/Octicon.js +28 -35
  47. package/dist/components/deprecated/TabNav.js +24 -38
  48. package/dist/components/deprecated/Tooltip.js +20 -28
  49. package/dist/deprecated.js +7 -5
  50. package/dist/experimental.js +7 -5
  51. package/dist/index.js +48 -46
  52. package/dist/sx.js +7 -6
  53. package/dist/theme-get.js +8 -8
  54. package/package.json +7 -4
@@ -1,112 +1,48 @@
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';
1
+ import { sx } from "../sx.js";
2
+ import styled from "styled-components";
3
+ import { Button } from "@primer/react";
4
+ import { forwardRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
6
 
7
- const StyledButtonComponent = styled(Button).withConfig({
8
- shouldForwardProp: prop => prop !== 'sx'
9
- }).withConfig({
10
- displayName: "Button__StyledButtonComponent",
11
- componentId: "sc-vqy3e4-0"
7
+ //#region src/components/Button.tsx
8
+ const StyledButtonComponent = styled(Button).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
9
+ displayName: "Button__StyledButtonComponent",
10
+ componentId: "sc-vqy3e4-0"
12
11
  })(["", ""], sx);
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
- });
12
+ const ButtonComponent = /* @__PURE__ */ forwardRef(({ as, sx: sx$1, style: propStyle, ...props }, ref) => {
13
+ const { block, size = "medium", leadingVisual, trailingVisual, trailingAction } = props;
14
+ let sxStyles = {};
15
+ const style = { ...propStyle || {} };
16
+ if (sx$1 !== null && Object.keys(sx$1 || {}).length > 0) {
17
+ sxStyles = generateCustomSxProp({
18
+ block,
19
+ size,
20
+ leadingVisual,
21
+ trailingVisual,
22
+ trailingAction
23
+ }, sx$1);
24
+ const { color } = sx$1;
25
+ if (color) style["--button-color"] = color;
26
+ }
27
+ return /* @__PURE__ */ jsx(StyledButtonComponent, {
28
+ style,
29
+ sx: sxStyles,
30
+ ref,
31
+ ...props,
32
+ ...as ? { forwardedAs: as } : {}
33
+ });
52
34
  });
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
- */
94
35
  function generateCustomSxProp(props, providedSx) {
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
- }
36
+ const cssSelector = `&${`[data-size="${props.size}"]`}${props.block ? `[data-block="block"]` : ""}${props.leadingVisual || props.trailingVisual || props.trailingAction ? "" : "[data-no-visuals]"}`;
37
+ const customSxProp = {};
38
+ if (!providedSx) return customSxProp;
39
+ else {
40
+ customSxProp[cssSelector] = providedSx;
41
+ return customSxProp;
42
+ }
108
43
  }
109
- ButtonComponent.displayName = 'Button';
44
+ ButtonComponent.displayName = "Button";
110
45
  ButtonComponent.__SLOT__ = Button.__SLOT__;
111
46
 
112
- export { ButtonComponent, generateCustomSxProp };
47
+ //#endregion
48
+ export { ButtonComponent, generateCustomSxProp };
@@ -1,15 +1,17 @@
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';
1
+ import { Box } from "./Box.js";
2
+ import { Checkbox } from "@primer/react";
3
+ import { forwardRef } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
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
- });
6
+ //#region src/components/Checkbox.tsx
7
+ const Checkbox$1 = /* @__PURE__ */ forwardRef(function Checkbox$2(props, ref) {
8
+ return /* @__PURE__ */ jsx(Box, {
9
+ as: Checkbox,
10
+ ref,
11
+ ...props
12
+ });
12
13
  });
13
- Checkbox.__SLOT__ = Checkbox$1.__SLOT__;
14
+ Checkbox$1.__SLOT__ = Checkbox.__SLOT__;
14
15
 
15
- export { Checkbox };
16
+ //#endregion
17
+ export { Checkbox$1 as Checkbox };
@@ -1,43 +1,41 @@
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';
1
+ import Box_default from "./Box.js";
2
+ import { CheckboxGroup } from "@primer/react";
3
+ import { jsx } from "react/jsx-runtime";
5
4
 
6
- const CheckboxGroupImpl = props => {
7
- return /*#__PURE__*/jsx(Box, {
8
- as: CheckboxGroup$1,
9
- ...props
10
- });
5
+ //#region src/components/CheckboxGroup.tsx
6
+ const CheckboxGroupImpl = (props) => {
7
+ return /* @__PURE__ */ jsx(Box_default, {
8
+ as: CheckboxGroup,
9
+ ...props
10
+ });
11
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
- });
12
+ const CheckboxOrRadioGroupLabel = (props) => {
13
+ return /* @__PURE__ */ jsx(Box_default, {
14
+ as: CheckboxGroup.Label,
15
+ ...props
16
+ });
20
17
  };
21
- const CheckboxOrRadioGroupCaption = props => {
22
- return /*#__PURE__*/jsx(Box, {
23
- as: CheckboxGroup$1.Caption,
24
- ...props
25
- });
18
+ const CheckboxOrRadioGroupCaption = (props) => {
19
+ return /* @__PURE__ */ jsx(Box_default, {
20
+ as: CheckboxGroup.Caption,
21
+ ...props
22
+ });
26
23
  };
27
- const CheckboxOrRadioGroupValidation = props => {
28
- return /*#__PURE__*/jsx(Box, {
29
- as: CheckboxGroup$1.Validation,
30
- ...props
31
- });
24
+ const CheckboxOrRadioGroupValidation = (props) => {
25
+ return /* @__PURE__ */ jsx(Box_default, {
26
+ as: CheckboxGroup.Validation,
27
+ ...props
28
+ });
32
29
  };
33
- const CheckboxGroup = Object.assign(CheckboxGroupImpl, {
34
- Label: CheckboxOrRadioGroupLabel,
35
- Caption: CheckboxOrRadioGroupCaption,
36
- Validation: CheckboxOrRadioGroupValidation
30
+ const CheckboxGroup$1 = Object.assign(CheckboxGroupImpl, {
31
+ Label: CheckboxOrRadioGroupLabel,
32
+ Caption: CheckboxOrRadioGroupCaption,
33
+ Validation: CheckboxOrRadioGroupValidation
37
34
  });
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__;
35
+ CheckboxGroupImpl.__SLOT__ = CheckboxGroup.__SLOT__;
36
+ CheckboxOrRadioGroupLabel.__SLOT__ = CheckboxGroup.Label.__SLOT__;
37
+ CheckboxOrRadioGroupCaption.__SLOT__ = CheckboxGroup.Caption.__SLOT__;
38
+ CheckboxOrRadioGroupValidation.__SLOT__ = CheckboxGroup.Validation.__SLOT__;
42
39
 
43
- export { CheckboxGroup };
40
+ //#endregion
41
+ export { CheckboxGroup$1 as CheckboxGroup };
@@ -1,12 +1,12 @@
1
- import { CircleBadge as CircleBadge$1 } from '@primer/react';
2
- import styled from 'styled-components';
3
- import sx from '../sx.js';
1
+ import sx_default from "../sx.js";
2
+ import styled from "styled-components";
3
+ import { CircleBadge } from "@primer/react";
4
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);
5
+ //#region src/components/CircleBadge.tsx
6
+ const CircleBadge$1 = styled(CircleBadge).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
7
+ displayName: "CircleBadge",
8
+ componentId: "sc-1u7lp3v-0"
9
+ })(["", ""], sx_default);
11
10
 
12
- export { CircleBadge };
11
+ //#endregion
12
+ export { CircleBadge$1 as CircleBadge };
@@ -1,14 +1,16 @@
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';
1
+ import { Box } from "./Box.js";
2
+ import { CounterLabel } from "@primer/react";
3
+ import { forwardRef } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
5
 
6
- const CounterLabel = /*#__PURE__*/forwardRef(function CounterLabel(props, ref) {
7
- return /*#__PURE__*/jsx(Box, {
8
- as: CounterLabel$1,
9
- ref: ref,
10
- ...props
11
- });
6
+ //#region src/components/CounterLabel.tsx
7
+ const CounterLabel$1 = /* @__PURE__ */ forwardRef(function CounterLabel$2(props, ref) {
8
+ return /* @__PURE__ */ jsx(Box, {
9
+ as: CounterLabel,
10
+ ref,
11
+ ...props
12
+ });
12
13
  });
13
14
 
14
- export { CounterLabel };
15
+ //#endregion
16
+ export { CounterLabel$1 as CounterLabel };
@@ -1,32 +1,24 @@
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';
1
+ import { sx } from "../sx.js";
2
+ import styled from "styled-components";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Table } from "@primer/react/experimental";
5
5
 
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"
6
+ //#region src/components/DataTable.tsx
7
+ const { Container: PrimerDataTableContainer, ...rest } = Table;
8
+ const StyleDataTableContainer = styled(PrimerDataTableContainer).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
9
+ displayName: "DataTable__StyleDataTableContainer",
10
+ componentId: "sc-qy1ey2-0"
15
11
  })(["", ""], sx);
16
- function DataTableContainer({
17
- as,
18
- ...rest
19
- }) {
20
- return /*#__PURE__*/jsx(StyleDataTableContainer, {
21
- ...rest,
22
- ...(as ? {
23
- forwardedAs: as
24
- } : {})
25
- });
12
+ function DataTableContainer({ as, ...rest$1 }) {
13
+ return /* @__PURE__ */ jsx(StyleDataTableContainer, {
14
+ ...rest$1,
15
+ ...as ? { forwardedAs: as } : {}
16
+ });
26
17
  }
27
- const Table = Object.assign(Table$1, {
28
- Container: DataTableContainer,
29
- ...rest
18
+ const Table$1 = Object.assign(Table, {
19
+ Container: DataTableContainer,
20
+ ...rest
30
21
  });
31
22
 
32
- export { Table };
23
+ //#endregion
24
+ export { Table$1 as Table };
@@ -1,90 +1,64 @@
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';
1
+ import { sx } from "../sx.js";
2
+ import styled from "styled-components";
3
+ import { Dialog } from "@primer/react";
4
+ import { forwardRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
6
 
7
- const StyledDialog = styled(Dialog$1).withConfig({
8
- shouldForwardProp: prop => prop !== 'sx'
9
- }).withConfig({
10
- displayName: "Dialog__StyledDialog",
11
- componentId: "sc-19zph8h-0"
7
+ //#region src/components/Dialog.tsx
8
+ const StyledDialog = styled(Dialog).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
9
+ displayName: "Dialog__StyledDialog",
10
+ componentId: "sc-19zph8h-0"
12
11
  })(["", ""], sx);
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
- });
12
+ const DialogImpl = /* @__PURE__ */ forwardRef(function Dialog$2({ as, ...props }, ref) {
13
+ return /* @__PURE__ */ jsx(StyledDialog, {
14
+ ref,
15
+ ...as ? { forwardedAs: as } : {},
16
+ ...props
17
+ });
24
18
  });
25
- const StyledDialogHeader = styled(Dialog$1.Header).withConfig({
26
- shouldForwardProp: prop => prop !== 'sx'
27
- }).withConfig({
28
- displayName: "Dialog__StyledDialogHeader",
29
- componentId: "sc-19zph8h-1"
19
+ const StyledDialogHeader = styled(Dialog.Header).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
20
+ displayName: "Dialog__StyledDialogHeader",
21
+ componentId: "sc-19zph8h-1"
30
22
  })(["", ""], sx);
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
- });
23
+ const DialogHeader = /* @__PURE__ */ forwardRef(function DialogHeader$1({ as, ...props }, ref) {
24
+ return /* @__PURE__ */ jsx(StyledDialogHeader, {
25
+ ref,
26
+ ...as ? { forwardedAs: as } : {},
27
+ ...props
28
+ });
42
29
  });
43
- const StyledDialogBody = styled(Dialog$1.Body).withConfig({
44
- shouldForwardProp: prop => prop !== 'sx'
45
- }).withConfig({
46
- displayName: "Dialog__StyledDialogBody",
47
- componentId: "sc-19zph8h-2"
30
+ const StyledDialogBody = styled(Dialog.Body).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
31
+ displayName: "Dialog__StyledDialogBody",
32
+ componentId: "sc-19zph8h-2"
48
33
  })(["", ""], sx);
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
- });
34
+ const DialogBody = /* @__PURE__ */ forwardRef(function DialogBody$1({ as, ...props }, ref) {
35
+ return /* @__PURE__ */ jsx(StyledDialogBody, {
36
+ ref,
37
+ ...as ? { forwardedAs: as } : {},
38
+ ...props
39
+ });
60
40
  });
61
- const StyledDialogFooter = styled(Dialog$1.Footer).withConfig({
62
- shouldForwardProp: prop => prop !== 'sx'
63
- }).withConfig({
64
- displayName: "Dialog__StyledDialogFooter",
65
- componentId: "sc-19zph8h-3"
41
+ const StyledDialogFooter = styled(Dialog.Footer).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
42
+ displayName: "Dialog__StyledDialogFooter",
43
+ componentId: "sc-19zph8h-3"
66
44
  })(["", ""], sx);
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
- });
45
+ const DialogFooter = /* @__PURE__ */ forwardRef(function DialogFooter$1({ as, ...props }, ref) {
46
+ return /* @__PURE__ */ jsx(StyledDialogFooter, {
47
+ ref,
48
+ ...as ? { forwardedAs: as } : {},
49
+ ...props
50
+ });
78
51
  });
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
52
+ DialogHeader.__SLOT__ = Dialog.Header.__SLOT__;
53
+ DialogBody.__SLOT__ = Dialog.Body.__SLOT__;
54
+ DialogFooter.__SLOT__ = Dialog.Footer.__SLOT__;
55
+ const Dialog$1 = Object.assign(DialogImpl, {
56
+ __SLOT__: Dialog["__SLOT__"],
57
+ Buttons: Dialog.Buttons,
58
+ Header: DialogHeader,
59
+ Body: DialogBody,
60
+ Footer: DialogFooter
88
61
  });
89
62
 
90
- export { Dialog };
63
+ //#endregion
64
+ export { Dialog$1 as Dialog };
@@ -1,12 +1,12 @@
1
- import { Flash as Flash$1 } from '@primer/react';
2
- import styled from 'styled-components';
3
- import sx from '../sx.js';
1
+ import { sx } from "../sx.js";
2
+ import styled from "styled-components";
3
+ import { Flash } from "@primer/react";
4
4
 
5
- const Flash = styled(Flash$1).withConfig({
6
- shouldForwardProp: prop => prop !== 'sx'
7
- }).withConfig({
8
- displayName: "Flash",
9
- componentId: "sc-413izo-0"
5
+ //#region src/components/Flash.tsx
6
+ const Flash$1 = styled(Flash).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
7
+ displayName: "Flash",
8
+ componentId: "sc-413izo-0"
10
9
  })(["", ""], sx);
11
10
 
12
- export { Flash };
11
+ //#endregion
12
+ export { Flash$1 as Flash };
@@ -1,19 +1,19 @@
1
- import { FormControl as FormControl$1 } from '@primer/react';
2
- import styled from 'styled-components';
3
- import sx from '../sx.js';
1
+ import { sx } from "../sx.js";
2
+ import styled from "styled-components";
3
+ import { FormControl } from "@primer/react";
4
4
 
5
- const FormControlImpl = styled(FormControl$1).withConfig({
6
- shouldForwardProp: prop => prop !== 'sx'
7
- }).withConfig({
8
- displayName: "FormControl__FormControlImpl",
9
- componentId: "sc-1642wfe-0"
5
+ //#region src/components/FormControl.tsx
6
+ const FormControlImpl = styled(FormControl).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
7
+ displayName: "FormControl__FormControlImpl",
8
+ componentId: "sc-1642wfe-0"
10
9
  })(["", ""], 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
10
+ const FormControl$1 = Object.assign(FormControlImpl, {
11
+ __SLOT__: FormControl.__SLOT__,
12
+ Caption: FormControl.Caption,
13
+ LeadingVisual: FormControl.LeadingVisual,
14
+ Validation: FormControl.Validation,
15
+ Label: FormControl.Label
17
16
  });
18
17
 
19
- export { FormControl };
18
+ //#endregion
19
+ export { FormControl$1 as FormControl };