@primer/styled-react 0.0.0-20251205012831 → 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,28 +1,23 @@
1
- import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
2
- import styled from 'styled-components';
3
- import sx from '../sx.js';
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 { UnderlinePanels } from "@primer/react/experimental";
5
5
 
6
- const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
7
- shouldForwardProp: prop => prop !== 'sx'
8
- }).withConfig({
9
- displayName: "UnderlinePanels__StyledUnderlinePanels",
10
- componentId: "sc-1w35i85-0"
6
+ //#region src/components/UnderlinePanels.tsx
7
+ const StyledUnderlinePanels = styled(UnderlinePanels).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
8
+ displayName: "UnderlinePanels__StyledUnderlinePanels",
9
+ componentId: "sc-1w35i85-0"
11
10
  })(["", ""], sx);
12
-
13
- // @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
14
- const UnderlinePanelsImpl = ({
15
- as,
16
- ...props
17
- }) => /*#__PURE__*/jsx(StyledUnderlinePanels, {
18
- forwardedAs: as,
19
- ...props
11
+ const UnderlinePanelsImpl = ({ as, ...props }) => /* @__PURE__ */ jsx(StyledUnderlinePanels, {
12
+ forwardedAs: as,
13
+ ...props
20
14
  });
21
- UnderlinePanelsImpl.displayName = 'UnderlinePanels';
22
- const UnderlinePanels = Object.assign(UnderlinePanelsImpl, {
23
- Tab: UnderlinePanels$1.Tab,
24
- Panel: UnderlinePanels$1.Panel
15
+ UnderlinePanelsImpl.displayName = "UnderlinePanels";
16
+ const UnderlinePanels$1 = Object.assign(UnderlinePanelsImpl, {
17
+ Tab: UnderlinePanels.Tab,
18
+ Panel: UnderlinePanels.Panel
25
19
  });
26
- UnderlinePanelsImpl.__SLOT__ = UnderlinePanels$1.__SLOT__;
20
+ UnderlinePanelsImpl.__SLOT__ = UnderlinePanels.__SLOT__;
27
21
 
28
- export { UnderlinePanels };
22
+ //#endregion
23
+ export { UnderlinePanels$1 as UnderlinePanels };
@@ -1,49 +1,44 @@
1
- import { forwardRef } from 'react';
2
- import { ActionList as ActionList$1 } from '@primer/react/deprecated';
3
- import sx from '../../sx.js';
4
- import Box from '../Box.js';
5
- import styled from 'styled-components';
6
- import { jsx } from 'react/jsx-runtime';
1
+ import { sx } from "../../sx.js";
2
+ import { Box } from "../Box.js";
3
+ import styled from "styled-components";
4
+ import { forwardRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { ActionList } from "@primer/react/deprecated";
7
7
 
8
- const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
9
- return /*#__PURE__*/jsx(Box, {
10
- as: ActionList$1,
11
- ref: ref,
12
- ...props
13
- });
8
+ //#region src/components/deprecated/ActionList.tsx
9
+ const ActionListImpl = /* @__PURE__ */ forwardRef(function ActionList$2(props, ref) {
10
+ return /* @__PURE__ */ jsx(Box, {
11
+ as: ActionList,
12
+ ref,
13
+ ...props
14
+ });
14
15
  });
15
- const StyledActionListItem = styled(ActionList$1.Item).withConfig({
16
- shouldForwardProp: prop => prop !== 'sx'
17
- }).withConfig({
18
- displayName: "ActionList__StyledActionListItem",
19
- componentId: "sc-1ugfmds-0"
16
+ const StyledActionListItem = styled(ActionList.Item).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
17
+ displayName: "ActionList__StyledActionListItem",
18
+ componentId: "sc-1ugfmds-0"
20
19
  })(["", ""], sx);
21
- const ActionListItem = /*#__PURE__*/forwardRef(({
22
- as,
23
- ...props
24
- }, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
25
- ...props,
26
- ...(as ? {
27
- forwardedAs: as
28
- } : {}),
29
- ref: ref
20
+ const ActionListItem = /* @__PURE__ */ forwardRef(({ as, ...props }, ref) => /* @__PURE__ */ jsx(StyledActionListItem, {
21
+ ...props,
22
+ ...as ? { forwardedAs: as } : {},
23
+ ref
30
24
  }));
31
25
  function ActionListGroup(props) {
32
- return /*#__PURE__*/jsx(Box, {
33
- as: ActionList$1.Group,
34
- ...props
35
- });
26
+ return /* @__PURE__ */ jsx(Box, {
27
+ as: ActionList.Group,
28
+ ...props
29
+ });
36
30
  }
37
31
  function ActionListDivider(props) {
38
- return /*#__PURE__*/jsx(Box, {
39
- as: ActionList$1.Divider,
40
- ...props
41
- });
32
+ return /* @__PURE__ */ jsx(Box, {
33
+ as: ActionList.Divider,
34
+ ...props
35
+ });
42
36
  }
43
- const ActionList = Object.assign(ActionListImpl, {
44
- Item: ActionListItem,
45
- Group: ActionListGroup,
46
- Divider: ActionListDivider
37
+ const ActionList$1 = Object.assign(ActionListImpl, {
38
+ Item: ActionListItem,
39
+ Group: ActionListGroup,
40
+ Divider: ActionListDivider
47
41
  });
48
42
 
49
- export { ActionList };
43
+ //#endregion
44
+ export { ActionList$1 as ActionList };
@@ -1,44 +1,34 @@
1
- import { Dialog as Dialog$1 } from '@primer/react/deprecated';
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 { forwardRef } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Dialog } from "@primer/react/deprecated";
5
5
 
6
- const StyledDialog = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
7
- return /*#__PURE__*/jsx(Box, {
8
- as: Dialog$1,
9
- ref: ref,
10
- ...props
11
- });
6
+ //#region src/components/deprecated/DialogV1.tsx
7
+ const StyledDialog = /* @__PURE__ */ forwardRef(function Dialog$2(props, ref) {
8
+ return /* @__PURE__ */ jsx(Box, {
9
+ as: Dialog,
10
+ ref,
11
+ ...props
12
+ });
12
13
  });
13
- const DialogImpl = /*#__PURE__*/forwardRef(({
14
- as,
15
- ...props
16
- }, ref) => /*#__PURE__*/jsx(StyledDialog, {
17
- ...props,
18
- ...(as ? {
19
- forwardedAs: as
20
- } : {}),
21
- ref: ref
14
+ const DialogImpl = /* @__PURE__ */ forwardRef(({ as, ...props }, ref) => /* @__PURE__ */ jsx(StyledDialog, {
15
+ ...props,
16
+ ...as ? { forwardedAs: as } : {},
17
+ ref
22
18
  }));
23
- const StyledDialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
24
- return /*#__PURE__*/jsx(Box, {
25
- as: Dialog$1.Header,
26
- ref: ref,
27
- ...props
28
- });
19
+ const StyledDialogHeader = /* @__PURE__ */ forwardRef(function DialogHeader$1(props, ref) {
20
+ return /* @__PURE__ */ jsx(Box, {
21
+ as: Dialog.Header,
22
+ ref,
23
+ ...props
24
+ });
29
25
  });
30
- const DialogHeader = /*#__PURE__*/forwardRef(({
31
- as,
32
- ...props
33
- }, ref) => /*#__PURE__*/jsx(StyledDialogHeader, {
34
- ...props,
35
- ...(as ? {
36
- forwardedAs: as
37
- } : {}),
38
- ref: ref
26
+ const DialogHeader = /* @__PURE__ */ forwardRef(({ as, ...props }, ref) => /* @__PURE__ */ jsx(StyledDialogHeader, {
27
+ ...props,
28
+ ...as ? { forwardedAs: as } : {},
29
+ ref
39
30
  }));
40
- const Dialog = Object.assign(DialogImpl, {
41
- Header: DialogHeader
42
- });
31
+ const Dialog$1 = Object.assign(DialogImpl, { Header: DialogHeader });
43
32
 
44
- export { Dialog };
33
+ //#endregion
34
+ export { Dialog$1 as Dialog };
@@ -1,39 +1,32 @@
1
- import { Octicon as Octicon$1 } from '@primer/react/deprecated';
2
- import styled from 'styled-components';
3
- import sx from '../../sx.js';
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 { forwardRef } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { Octicon } from "@primer/react/deprecated";
6
6
 
7
+ //#region src/components/deprecated/Octicon.tsx
7
8
  /**
8
- * @deprecated Use the icon component directly from `@primer/octicons-react` instead
9
- */
10
- const StyledOcticon = styled(Octicon$1).withConfig({
11
- shouldForwardProp(prop) {
12
- return prop !== 'sx';
13
- }
14
- }).withConfig({
15
- displayName: "Octicon__StyledOcticon",
16
- componentId: "sc-jtj3m8-0"
17
- })(["", ""], ({
18
- color,
19
- sx: sxProp
20
- }) => sx({
21
- sx: {
22
- color,
23
- ...sxProp
24
- }
25
- }));
26
- const Octicon = /*#__PURE__*/forwardRef(({
27
- as,
28
- ...props
29
- }, ref) => {
30
- return /*#__PURE__*/jsx(StyledOcticon, {
31
- ...props,
32
- ...(as ? {
33
- forwardedAs: as
34
- } : {}),
35
- ref: ref
36
- });
9
+ * @deprecated Use the icon component directly from `@primer/octicons-react` instead
10
+ */
11
+ /**
12
+ * @deprecated Use the icon component directly from `@primer/octicons-react` instead
13
+ */
14
+ const StyledOcticon = styled(Octicon).withConfig({ shouldForwardProp(prop) {
15
+ return prop !== "sx";
16
+ } }).withConfig({
17
+ displayName: "Octicon__StyledOcticon",
18
+ componentId: "sc-jtj3m8-0"
19
+ })(["", ""], ({ color, sx: sxProp }) => sx({ sx: {
20
+ color,
21
+ ...sxProp
22
+ } }));
23
+ const Octicon$1 = /* @__PURE__ */ forwardRef(({ as, ...props }, ref) => {
24
+ return /* @__PURE__ */ jsx(StyledOcticon, {
25
+ ...props,
26
+ ...as ? { forwardedAs: as } : {},
27
+ ref
28
+ });
37
29
  });
38
30
 
39
- export { Octicon, Octicon as default };
31
+ //#endregion
32
+ export { Octicon$1 as Octicon };
@@ -1,44 +1,30 @@
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';
1
+ import { sx } from "../../sx.js";
2
+ import styled from "styled-components";
3
+ import { forwardRef } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { TabNav } from "@primer/react/deprecated";
6
6
 
7
- const StyledTabNav = styled(TabNav$1).withConfig({
8
- shouldForwardProp: prop => prop !== 'sx'
9
- }).withConfig({
10
- displayName: "TabNav__StyledTabNav",
11
- componentId: "sc-13kad3t-0"
7
+ //#region src/components/deprecated/TabNav.tsx
8
+ const StyledTabNav = styled(TabNav).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
9
+ displayName: "TabNav__StyledTabNav",
10
+ componentId: "sc-13kad3t-0"
12
11
  })(["", ""], sx);
13
- const TabNavImpl = ({
14
- as,
15
- ...props
16
- }) => {
17
- return /*#__PURE__*/jsx(StyledTabNav, {
18
- ...props,
19
- ...(as ? {
20
- forwardedAs: as
21
- } : {})
22
- });
12
+ const TabNavImpl = ({ as, ...props }) => {
13
+ return /* @__PURE__ */ jsx(StyledTabNav, {
14
+ ...props,
15
+ ...as ? { forwardedAs: as } : {}
16
+ });
23
17
  };
24
- const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
25
- shouldForwardProp: prop => prop !== 'sx'
26
- }).withConfig({
27
- displayName: "TabNav__StyledTabNavLink",
28
- componentId: "sc-13kad3t-1"
18
+ const StyledTabNavLink = styled(TabNav.Link).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
19
+ displayName: "TabNav__StyledTabNavLink",
20
+ componentId: "sc-13kad3t-1"
29
21
  })(["", ""], 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
22
+ const TabNavLink = /* @__PURE__ */ forwardRef(({ as, ...props }, ref) => /* @__PURE__ */ jsx(StyledTabNavLink, {
23
+ ...props,
24
+ ...as ? { forwardedAs: as } : {},
25
+ ref
39
26
  }));
40
- const TabNav = Object.assign(TabNavImpl, {
41
- Link: TabNavLink
42
- });
27
+ const TabNav$1 = Object.assign(TabNavImpl, { Link: TabNavLink });
43
28
 
44
- export { TabNav };
29
+ //#endregion
30
+ export { TabNav$1 as TabNav };
@@ -1,32 +1,24 @@
1
- import { Tooltip as Tooltip$1 } from '@primer/react/deprecated';
2
- import { forwardRef } from 'react';
3
- import sx from '../../sx.js';
4
- import styled from 'styled-components';
5
- import { jsx } from 'react/jsx-runtime';
1
+ import { sx } from "../../sx.js";
2
+ import styled from "styled-components";
3
+ import { forwardRef } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { Tooltip } from "@primer/react/deprecated";
6
6
 
7
- const StyledTooltip = styled(Tooltip$1).withConfig({
8
- shouldForwardProp: prop => prop !== 'sx'
9
- }).withConfig({
10
- displayName: "Tooltip__StyledTooltip",
11
- componentId: "sc-145jcib-0"
7
+ //#region src/components/deprecated/Tooltip.tsx
8
+ const StyledTooltip = styled(Tooltip).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
9
+ displayName: "Tooltip__StyledTooltip",
10
+ componentId: "sc-145jcib-0"
12
11
  })(["", ""], sx);
13
- const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
14
- as,
15
- ...props
16
- }, ref) {
17
- return /*#__PURE__*/jsx(StyledTooltip, {
18
- ...props,
19
- ...(as ? {
20
- forwardedAs: as
21
- } : {}),
22
- ref: ref
23
- });
12
+ const Tooltip$1 = /* @__PURE__ */ forwardRef(function Tooltip$2({ as, ...props }, ref) {
13
+ return /* @__PURE__ */ jsx(StyledTooltip, {
14
+ ...props,
15
+ ...as ? { forwardedAs: as } : {},
16
+ ref
17
+ });
24
18
  });
25
- const Tooltip = TooltipImpl;
19
+ Tooltip$1.alignments = Tooltip.alignments;
20
+ Tooltip$1.directions = Tooltip.directions;
21
+ Tooltip$1.__SLOT__ = Tooltip.__SLOT__;
26
22
 
27
- // Preserve static properties from the original component
28
- Tooltip.alignments = Tooltip$1.alignments;
29
- Tooltip.directions = Tooltip$1.directions;
30
- Tooltip.__SLOT__ = Tooltip$1.__SLOT__;
31
-
32
- export { Tooltip };
23
+ //#endregion
24
+ export { Tooltip$1 as Tooltip };
@@ -1,5 +1,7 @@
1
- export { TabNav } from './components/deprecated/TabNav.js';
2
- export { Dialog } from './components/deprecated/DialogV1.js';
3
- export { default as Octicon } from './components/deprecated/Octicon.js';
4
- export { Tooltip } from './components/deprecated/Tooltip.js';
5
- export { ActionList } from './components/deprecated/ActionList.js';
1
+ import { TabNav } from "./components/deprecated/TabNav.js";
2
+ import { Dialog } from "./components/deprecated/DialogV1.js";
3
+ import { Octicon } from "./components/deprecated/Octicon.js";
4
+ import { Tooltip } from "./components/deprecated/Tooltip.js";
5
+ import { ActionList } from "./components/deprecated/ActionList.js";
6
+
7
+ export { ActionList, Dialog, Octicon, TabNav, Tooltip };
@@ -1,5 +1,7 @@
1
- export { Dialog } from './components/Dialog.js';
2
- export { PageHeader } from './components/PageHeader.js';
3
- export { Tooltip } from './components/Tooltip.js';
4
- export { UnderlinePanels } from './components/UnderlinePanels.js';
5
- export { Table } from './components/DataTable.js';
1
+ import { Dialog } from "./components/Dialog.js";
2
+ import { PageHeader } from "./components/PageHeader.js";
3
+ import { Tooltip } from "./components/Tooltip.js";
4
+ import { UnderlinePanels } from "./components/UnderlinePanels.js";
5
+ import { Table } from "./components/DataTable.js";
6
+
7
+ export { Dialog, PageHeader, Table, Tooltip, UnderlinePanels };
package/dist/index.js CHANGED
@@ -1,46 +1,48 @@
1
- "use client";
2
- export { default as Box } from './components/Box.js';
3
- export { Details, ProgressBar, theme } from '@primer/react';
4
- export { ThemeProvider, useColorSchemeVar, useTheme } from './components/ThemeProvider.js';
5
- export { BaseStyles } from './components/BaseStyles.js';
6
- export { get as themeGet } from './theme-get.js';
7
- export { ActionList } from './components/ActionList.js';
8
- export { ActionMenu } from './components/ActionMenu.js';
9
- export { Autocomplete } from './components/Autocomplete.js';
10
- export { Avatar } from './components/Avatar.js';
11
- export { Breadcrumb, Breadcrumbs } from './components/Breadcrumbs.js';
12
- export { ButtonComponent as Button } from './components/Button.js';
13
- export { Checkbox } from './components/Checkbox.js';
14
- export { CheckboxGroup } from './components/CheckboxGroup.js';
15
- export { CircleBadge } from './components/CircleBadge.js';
16
- export { CounterLabel } from './components/CounterLabel.js';
17
- export { Dialog } from './components/Dialog.js';
18
- export { Flash } from './components/Flash.js';
19
- export { FormControl } from './components/FormControl.js';
20
- export { Header } from './components/Header.js';
21
- export { Heading } from './components/Heading.js';
22
- export { IconButton } from './components/IconButton.js';
23
- export { Label } from './components/Label.js';
24
- export { Link } from './components/Link.js';
25
- export { LinkButton } from './components/LinkButton.js';
26
- export { NavList } from './components/NavList.js';
27
- export { Overlay } from './components/Overlay.js';
28
- export { PageHeader } from './components/PageHeader.js';
29
- export { RadioGroup } from './components/RadioGroup.js';
30
- export { RelativeTime } from './components/RelativeTime.js';
31
- export { SegmentedControl } from './components/SegmentedControl.js';
32
- export { Select } from './components/Select.js';
33
- export { Spinner } from './components/Spinner.js';
34
- export { StateLabel } from './components/StateLabel.js';
35
- export { SubNav } from './components/SubNav.js';
36
- export { Text } from './components/Text.js';
37
- export { Textarea } from './components/Textarea.js';
38
- export { TextInput } from './components/TextInput.js';
39
- export { Timeline } from './components/Timeline.js';
40
- export { ToggleSwitch } from './components/ToggleSwitch.js';
41
- export { Tooltip } from './components/Tooltip.js';
42
- export { Token } from './components/Token.js';
43
- export { Truncate } from './components/Truncate.js';
44
- export { UnderlineNav } from './components/UnderlineNav.js';
45
- export { default as sx } from './sx.js';
46
- export { default as merge } from 'deepmerge';
1
+ 'use client';
2
+
3
+ import { merge, sx } from "./sx.js";
4
+ import { Box } from "./components/Box.js";
5
+ import { ThemeProvider, useColorSchemeVar, useTheme } from "./components/ThemeProvider.js";
6
+ import { BaseStyles } from "./components/BaseStyles.js";
7
+ import { get } from "./theme-get.js";
8
+ import { ActionList } from "./components/ActionList.js";
9
+ import { ActionMenu } from "./components/ActionMenu.js";
10
+ import { Autocomplete } from "./components/Autocomplete.js";
11
+ import { Avatar } from "./components/Avatar.js";
12
+ import { Breadcrumb, Breadcrumbs } from "./components/Breadcrumbs.js";
13
+ import { ButtonComponent } from "./components/Button.js";
14
+ import { Checkbox } from "./components/Checkbox.js";
15
+ import { CheckboxGroup } from "./components/CheckboxGroup.js";
16
+ import { CircleBadge } from "./components/CircleBadge.js";
17
+ import { CounterLabel } from "./components/CounterLabel.js";
18
+ import { Dialog } from "./components/Dialog.js";
19
+ import { Flash } from "./components/Flash.js";
20
+ import { FormControl } from "./components/FormControl.js";
21
+ import { Header } from "./components/Header.js";
22
+ import { Heading } from "./components/Heading.js";
23
+ import { IconButton } from "./components/IconButton.js";
24
+ import { Label } from "./components/Label.js";
25
+ import { Link } from "./components/Link.js";
26
+ import { LinkButton } from "./components/LinkButton.js";
27
+ import { NavList } from "./components/NavList.js";
28
+ import { Overlay } from "./components/Overlay.js";
29
+ import { PageHeader } from "./components/PageHeader.js";
30
+ import { RadioGroup } from "./components/RadioGroup.js";
31
+ import { RelativeTime } from "./components/RelativeTime.js";
32
+ import { SegmentedControl } from "./components/SegmentedControl.js";
33
+ import { Select } from "./components/Select.js";
34
+ import { Spinner } from "./components/Spinner.js";
35
+ import { StateLabel } from "./components/StateLabel.js";
36
+ import { SubNav } from "./components/SubNav.js";
37
+ import { Text } from "./components/Text.js";
38
+ import { Textarea } from "./components/Textarea.js";
39
+ import { TextInput } from "./components/TextInput.js";
40
+ import { Timeline } from "./components/Timeline.js";
41
+ import { ToggleSwitch } from "./components/ToggleSwitch.js";
42
+ import { Tooltip } from "./components/Tooltip.js";
43
+ import { Token } from "./components/Token.js";
44
+ import { Truncate } from "./components/Truncate.js";
45
+ import { UnderlineNav } from "./components/UnderlineNav.js";
46
+ import { Details, ProgressBar, theme } from "@primer/react";
47
+
48
+ export { ActionList, ActionMenu, Autocomplete, Avatar, BaseStyles, Box, Breadcrumb, Breadcrumbs, ButtonComponent as Button, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Details, Dialog, Flash, FormControl, Header, Heading, IconButton, Label, Link, LinkButton, NavList, Overlay, PageHeader, ProgressBar, RadioGroup, RelativeTime, SegmentedControl, Select, Spinner, StateLabel, SubNav, Text, TextInput, Textarea, ThemeProvider, Timeline, ToggleSwitch, Token, Tooltip, Truncate, UnderlineNav, merge, sx, theme, get as themeGet, useColorSchemeVar, useTheme };
package/dist/sx.js CHANGED
@@ -1,8 +1,9 @@
1
- import css from '@styled-system/css';
2
- export { default as merge } from 'deepmerge';
1
+ import css from "@styled-system/css";
2
+ import merge from "deepmerge";
3
3
 
4
- // Support CSS custom properties in the `sx` prop
4
+ //#region src/sx.ts
5
+ const sx = (props) => css(props.sx);
6
+ var sx_default = sx;
5
7
 
6
- const sx = props => css(props.sx);
7
-
8
- export { sx as default, sx };
8
+ //#endregion
9
+ export { sx_default as default, merge, sx };
package/dist/theme-get.js CHANGED
@@ -1,10 +1,10 @@
1
- import { themeGet } from '@styled-system/theme-get';
2
- import * as styledSystem from 'styled-system';
3
- import { theme } from '@primer/react';
1
+ import * as styledSystem from "styled-system";
2
+ import { theme } from "@primer/react";
3
+ import { themeGet } from "@styled-system/theme-get";
4
4
 
5
- const {
6
- get: getKey
7
- } = styledSystem;
8
- const get = key => themeGet(key, getKey(theme, key));
5
+ //#region src/theme-get.ts
6
+ const { get: getKey } = styledSystem;
7
+ const get = (key) => themeGet(key, getKey(theme, key));
9
8
 
10
- export { get };
9
+ //#endregion
10
+ export { get };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20251205012831",
3
+ "version": "0.0.0-20251205154953",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -38,12 +38,15 @@
38
38
  "@types/styled-system": "^5.1.23",
39
39
  "@types/styled-system__css": "^5.0.16",
40
40
  "@types/styled-system__theme-get": "^5.0.1",
41
+ "clsx": "^2.1.1",
42
+ "deepmerge": "^4.3.1",
43
+ "focus-visible": "^5.2.1",
41
44
  "styled-system": "^5.1.5"
42
45
  },
43
46
  "devDependencies": {
44
47
  "@babel/preset-react": "^7.28.5",
45
48
  "@babel/preset-typescript": "^7.28.5",
46
- "@primer/react": "0.0.0-20251205012831",
49
+ "@primer/react": "0.0.0-20251205154953",
47
50
  "@rollup/plugin-babel": "^6.1.0",
48
51
  "@types/react": "18.3.11",
49
52
  "@types/react-dom": "18.3.1",
@@ -54,13 +57,13 @@
54
57
  "react": "18.3.1",
55
58
  "react-dom": "18.3.1",
56
59
  "rimraf": "^6.0.1",
57
- "rollup": "4.53.3",
60
+ "rolldown": "^1.0.0-beta.52",
58
61
  "rollup-plugin-typescript2": "^0.36.0",
59
62
  "styled-components": "5.3.11",
60
63
  "typescript": "^5.9.2"
61
64
  },
62
65
  "peerDependencies": {
63
- "@primer/react": "0.0.0-20251205012831",
66
+ "@primer/react": "0.0.0-20251205154953",
64
67
  "@types/react": "18.x || 19.x",
65
68
  "@types/react-dom": "18.x || 19.x",
66
69
  "@types/react-is": "18.x || 19.x",