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