@primer/styled-react 0.0.0-20251021155848 → 0.0.0-20251021160403

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 (85) hide show
  1. package/dist/components/ActionList.js +1 -2
  2. package/dist/components/ActionMenu.d.ts +1 -2
  3. package/dist/components/ActionMenu.d.ts.map +1 -1
  4. package/dist/components/ActionMenu.js +1 -2
  5. package/dist/components/Autocomplete.js +1 -2
  6. package/dist/components/Avatar.d.ts +1 -1
  7. package/dist/components/Avatar.d.ts.map +1 -1
  8. package/dist/components/Avatar.js +1 -2
  9. package/dist/components/Box.d.ts +1 -18
  10. package/dist/components/Box.d.ts.map +1 -1
  11. package/dist/components/Breadcrumbs.js +1 -2
  12. package/dist/components/Button.d.ts +2 -1
  13. package/dist/components/Button.d.ts.map +1 -1
  14. package/dist/components/Button.js +1 -2
  15. package/dist/components/Checkbox.js +1 -2
  16. package/dist/components/CheckboxGroup.d.ts.map +1 -1
  17. package/dist/components/CheckboxGroup.js +1 -2
  18. package/dist/components/CircleBadge.d.ts +1 -2
  19. package/dist/components/CircleBadge.d.ts.map +1 -1
  20. package/dist/components/CircleBadge.js +1 -2
  21. package/dist/components/CounterLabel.js +1 -2
  22. package/dist/components/DataTable.js +1 -1
  23. package/dist/components/Dialog.js +1 -2
  24. package/dist/components/FeatureFlaggedTheming.d.ts +1 -4
  25. package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -1
  26. package/dist/components/Flash.js +1 -2
  27. package/dist/components/FormControl.d.ts +1 -2
  28. package/dist/components/FormControl.d.ts.map +1 -1
  29. package/dist/components/FormControl.js +1 -2
  30. package/dist/components/Header.js +1 -2
  31. package/dist/components/Heading.js +1 -2
  32. package/dist/components/IconButton.d.ts +1 -2
  33. package/dist/components/IconButton.d.ts.map +1 -1
  34. package/dist/components/IconButton.js +1 -2
  35. package/dist/components/Label.js +1 -2
  36. package/dist/components/Link.js +1 -2
  37. package/dist/components/LinkButton.d.ts +1 -2
  38. package/dist/components/LinkButton.d.ts.map +1 -1
  39. package/dist/components/LinkButton.js +1 -2
  40. package/dist/components/NavList.d.ts +18 -15
  41. package/dist/components/NavList.d.ts.map +1 -1
  42. package/dist/components/NavList.js +34 -52
  43. package/dist/components/Overlay.d.ts +1 -2
  44. package/dist/components/Overlay.d.ts.map +1 -1
  45. package/dist/components/Overlay.js +1 -2
  46. package/dist/components/PageHeader.js +1 -3
  47. package/dist/components/PageLayout.js +1 -2
  48. package/dist/components/RadioGroup.d.ts.map +1 -1
  49. package/dist/components/RadioGroup.js +1 -2
  50. package/dist/components/RelativeTime.d.ts.map +1 -1
  51. package/dist/components/RelativeTime.js +1 -2
  52. package/dist/components/SegmentedControl.js +1 -2
  53. package/dist/components/Select.js +1 -2
  54. package/dist/components/Spinner.js +1 -2
  55. package/dist/components/StateLabel.d.ts +1 -1
  56. package/dist/components/StateLabel.js +1 -2
  57. package/dist/components/SubNav.js +1 -2
  58. package/dist/components/Text.js +1 -2
  59. package/dist/components/TextInput.js +1 -2
  60. package/dist/components/Textarea.js +1 -2
  61. package/dist/components/Timeline.js +1 -2
  62. package/dist/components/ToggleSwitch.js +1 -2
  63. package/dist/components/Token.js +1 -2
  64. package/dist/components/Tooltip.d.ts +1 -2
  65. package/dist/components/Tooltip.d.ts.map +1 -1
  66. package/dist/components/Tooltip.js +1 -2
  67. package/dist/components/Truncate.js +1 -2
  68. package/dist/components/UnderlineNav.js +1 -3
  69. package/dist/components/UnderlinePanels.js +1 -1
  70. package/dist/components/deprecated/ActionList.js +1 -2
  71. package/dist/components/deprecated/DialogV1.js +1 -1
  72. package/dist/components/deprecated/Octicon.js +1 -1
  73. package/dist/components/deprecated/TabNav.js +1 -1
  74. package/dist/components/deprecated/Tooltip.js +1 -1
  75. package/dist/components.json +0 -2
  76. package/dist/index.d.ts +4 -3
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +1 -4
  79. package/dist/styled-props.d.ts +1 -0
  80. package/dist/styled-props.d.ts.map +1 -1
  81. package/dist/sx.d.ts +1 -22
  82. package/dist/sx.d.ts.map +1 -1
  83. package/package.json +3 -3
  84. package/dist/components/Box.js +0 -15
  85. package/dist/sx.js +0 -8
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { ActionList as ActionList$1 } from '@primer/react';
4
- import sx from '../sx.js';
3
+ import { ActionList as ActionList$1, sx } from '@primer/react';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
7
6
  const StyledActionList = styled(ActionList$1).withConfig({
@@ -1,5 +1,4 @@
1
- import { ActionMenu as PrimerActionMenu, type SlotMarker } from '@primer/react';
2
- import { type SxProp } from '../sx';
1
+ import { ActionMenu as PrimerActionMenu, type SxProp, type SlotMarker } from '@primer/react';
3
2
  import type { ComponentProps } from 'react';
4
3
  type ActionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
5
4
  declare const ActionMenuOverlay: React.ComponentType<ActionMenuOverlayProps> & SlotMarker;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AAEzC,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,UAMtE,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;CAMxC,CAAA"}
1
+ {"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAG1F,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AAEzC,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,UAMtE,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;CAMxC,CAAA"}
@@ -1,5 +1,4 @@
1
- import { ActionMenu as ActionMenu$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { ActionMenu as ActionMenu$1, sx } from '@primer/react';
3
2
  import styled from 'styled-components';
4
3
 
5
4
  const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
@@ -1,5 +1,4 @@
1
- import { Autocomplete as Autocomplete$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { Autocomplete as Autocomplete$1, sx } from '@primer/react';
3
2
  import styled from 'styled-components';
4
3
 
5
4
  const AutocompleteOverlay = styled(Autocomplete$1.Overlay).withConfig({
@@ -7,7 +7,7 @@ declare const Avatar: import("react").ForwardRefExoticComponent<{
7
7
  src: string;
8
8
  alt?: string;
9
9
  className?: string;
10
- } & Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & import("..").SxProp & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("react").RefAttributes<HTMLImageElement>>;
10
+ } & Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & import("@primer/react").SxProp & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("react").RefAttributes<HTMLImageElement>>;
11
11
  export { Avatar };
12
12
  export type { AvatarProps };
13
13
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,IAAI,iBAAiB,EAAyB,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAGhD,KAAK,WAAW,GAAG,iBAAiB,GAAG,WAAW,CAAA;AAClD,QAAA,MAAM,MAAM;;;;;;ynDAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,IAAI,iBAAiB,EAAyB,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAGhD,KAAK,WAAW,GAAG,iBAAiB,GAAG,WAAW,CAAA;AAClD,QAAA,MAAM,MAAM;;;;;;ooDAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
@@ -1,6 +1,5 @@
1
- import { Avatar as Avatar$1 } from '@primer/react';
1
+ import { Box, Avatar as Avatar$1 } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
- import Box from './Box.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
@@ -1,19 +1,2 @@
1
- import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
2
- import type { SxProp } from '../sx';
3
- type ComponentProps<T> = T extends React.ComponentType<React.PropsWithChildren<infer Props>> ? (Props extends object ? Props : never) : never;
4
- type StyledBoxProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
5
- /**
6
- * @deprecated The Box component is deprecated. Replace with a `div` or
7
- * appropriate HTML element instead, with CSS modules for styling.
8
- * @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
9
- */
10
- declare const Box: import("styled-components").StyledComponent<"div", any, StyledBoxProps, never>;
11
- /**
12
- * @deprecated The Box component is deprecated. Replace with a `div` or
13
- * appropriate HTML element instead, with CSS modules for styling.
14
- * @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
15
- */
16
- export type BoxProps = ComponentProps<typeof Box>;
17
- export default Box;
18
- export { Box };
1
+ export { Box, type BoxProps } from '@primer/react';
19
2
  //# sourceMappingURL=Box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EAChB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,cAAc,CAAC,CAAC,IACnB,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,GAAG,KAAK,CAAA;AAEtH,KAAK,cAAc,GAAG,MAAM,GAC1B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA;AAEb;;;;GAIG;AACH,QAAA,MAAM,GAAG,gFAYR,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,CAAA;AACjD,eAAe,GAAG,CAAA;AAClB,OAAO,EAAC,GAAG,EAAC,CAAA"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,eAAe,CAAA"}
@@ -1,5 +1,4 @@
1
- import { Breadcrumbs as Breadcrumbs$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { Breadcrumbs as Breadcrumbs$1, sx } from '@primer/react';
3
2
  import styled from 'styled-components';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
@@ -1,5 +1,6 @@
1
1
  import { type ButtonProps as PrimerButtonProps, type SlotMarker } from '@primer/react';
2
- import type { SxProp, BetterSystemStyleObject } from '../sx';
2
+ import type { SxProp } from '../sx';
3
+ import type { BetterSystemStyleObject } from '../styled-props';
3
4
  import type { ForwardRefComponent } from '../polymorphic';
4
5
  type ButtonComponentProps = PrimerButtonProps & SxProp & {
5
6
  as?: React.ElementType;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EA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,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,GAAG,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,EACjH,UAAU,EAAE,uBAAuB;;EAmBpC;AAKD,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,CAAA"}
@@ -1,7 +1,6 @@
1
- import { Button } from '@primer/react';
1
+ import { Button, sx } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
3
  import styled from 'styled-components';
4
- import sx from '../sx.js';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
7
6
  const StyledButtonComponent = styled(Button).withConfig({
@@ -1,5 +1,4 @@
1
- import { Checkbox as Checkbox$1 } from '@primer/react';
2
- import Box from './Box.js';
1
+ import { Checkbox as Checkbox$1, Box } from '@primer/react';
3
2
  import { forwardRef } from 'react';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,kBAAkB,IAAI,wBAAwB,EAAC,MAAM,eAAe,CAAA;AACvH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,MAAM,CAAA;AAOrF,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,aAAa;YAlCQ,kBAAkB;;;;gBAWV,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
1
+ {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,IAAI,wBAAwB,EACpD,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,MAAM,CAAA;AAOrF,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,aAAa;YAlCQ,kBAAkB;;;;gBAWV,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
@@ -1,6 +1,5 @@
1
- import { CheckboxGroup as CheckboxGroup$1 } from '@primer/react';
1
+ import { CheckboxGroup as CheckboxGroup$1, Box } from '@primer/react';
2
2
  import 'react';
3
- import Box from './Box.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  const CheckboxGroupImpl = props => {
@@ -1,6 +1,5 @@
1
- import { type CircleBadgeProps as PrimerCircleBadgeProps } from '@primer/react';
1
+ import { type CircleBadgeProps as PrimerCircleBadgeProps, type SxProp } from '@primer/react';
2
2
  import { type ForwardRefComponent } from '../polymorphic';
3
- import { type SxProp } from '../sx';
4
3
  type CircleBadgeProps<As extends React.ElementType> = PrimerCircleBadgeProps<As> & SxProp;
5
4
  declare const CircleBadge: ForwardRefComponent<React.ElementType, CircleBadgeProps<React.ElementType>>;
6
5
  export { CircleBadge };
@@ -1 +1 @@
1
- {"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,gBAAgB,IAAI,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAE/G,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAW,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,sBAAsB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAEzF,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAM5F,CAAA;AAED,OAAO,EAAC,WAAW,EAAC,CAAA;AACpB,YAAY,EAAC,gBAAgB,EAAC,CAAA"}
1
+ {"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,IAAI,sBAAsB,EAE/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,sBAAsB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAEzF,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAM5F,CAAA;AAED,OAAO,EAAC,WAAW,EAAC,CAAA;AACpB,YAAY,EAAC,gBAAgB,EAAC,CAAA"}
@@ -1,6 +1,5 @@
1
- import { CircleBadge as CircleBadge$1 } from '@primer/react';
1
+ import { CircleBadge as CircleBadge$1, sx } from '@primer/react';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
4
3
 
5
4
  const CircleBadge = styled(CircleBadge$1).withConfig({
6
5
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,5 +1,4 @@
1
- import { CounterLabel as CounterLabel$1 } from '@primer/react';
2
- import Box from './Box.js';
1
+ import { Box, CounterLabel as CounterLabel$1 } from '@primer/react';
3
2
  import { forwardRef } from 'react';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
@@ -1,5 +1,5 @@
1
1
  import { Table as Table$1 } from '@primer/react/experimental';
2
- import sx from '../sx.js';
2
+ import { sx } from '@primer/react';
3
3
  import styled from 'styled-components';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,4 @@
1
- import { Dialog as Dialog$1 } from '@primer/react';
2
- import Box from './Box.js';
1
+ import { Dialog as Dialog$1, Box } from '@primer/react';
3
2
  import { forwardRef } from 'react';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
@@ -1,9 +1,6 @@
1
- import { useTheme as primerReactUseTheme, useColorSchemeVar as primerReactUseColorSchemeVar } from '@primer/react';
2
- import { type ThemeProviderProps } from './ThemeProvider';
3
- import { type BaseStylesProps } from './BaseStyles';
1
+ import { type ThemeProviderProps, type BaseStylesProps, useTheme as primerReactUseTheme, useColorSchemeVar as primerReactUseColorSchemeVar } from '@primer/react';
4
2
  export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
5
3
  export declare const BaseStyles: React.FC<React.PropsWithChildren<BaseStylesProps>>;
6
4
  export declare const useTheme: typeof primerReactUseTheme;
7
5
  export declare const useColorSchemeVar: typeof primerReactUseColorSchemeVar;
8
- export type { ThemeProviderProps, BaseStylesProps };
9
6
  //# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,IAAI,mBAAmB,EAC/B,iBAAiB,IAAI,4BAA4B,EAClD,MAAM,eAAe,CAAA;AACtB,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAsC,KAAK,eAAe,EAAC,MAAM,cAAc,CAAA;AAGtF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAO/E,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAOzE,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,mBAM7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,OAAO,4BAMtC,CAAA;AAED,YAAY,EAAC,kBAAkB,EAAE,eAAe,EAAC,CAAA"}
1
+ {"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EACpB,QAAQ,IAAI,mBAAmB,EAC/B,iBAAiB,IAAI,4BAA4B,EAClD,MAAM,eAAe,CAAA;AAStB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAO/E,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAOzE,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,mBAM7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,OAAO,4BAMtC,CAAA"}
@@ -1,6 +1,5 @@
1
- import { Flash as Flash$1 } from '@primer/react';
1
+ import { Flash as Flash$1, sx } from '@primer/react';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
4
3
 
5
4
  const Flash = styled(Flash$1).withConfig({
6
5
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,6 +1,5 @@
1
- import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps } from '@primer/react';
1
+ import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type SxProp } from '@primer/react';
2
2
  import { type PropsWithChildren } from 'react';
3
- import { type SxProp } from '../sx';
4
3
  type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
5
4
  declare const FormControlImpl: React.ComponentType<FormControlProps>;
6
5
  declare const FormControl: typeof FormControlImpl & {
@@ -1 +1 @@
1
- {"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,IAAI,iBAAiB,EAAE,KAAK,gBAAgB,IAAI,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAC/G,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE5C,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAI1D,CAAA;AAED,QAAA,MAAM,WAAW,EAMX,OAAO,eAAe,GAAG;IAC7B,OAAO,EAAE,OAAO,iBAAiB,CAAC,OAAO,CAAA;IACzC,aAAa,EAAE,OAAO,iBAAiB,CAAC,aAAa,CAAA;IACrD,UAAU,EAAE,OAAO,iBAAiB,CAAC,UAAU,CAAA;IAC/C,KAAK,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAA;CACtC,CAAA;AAED,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,CAAA"}
1
+ {"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,iBAAiB,EAChC,KAAK,gBAAgB,IAAI,sBAAsB,EAC/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAI5C,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAI1D,CAAA;AAED,QAAA,MAAM,WAAW,EAMX,OAAO,eAAe,GAAG;IAC7B,OAAO,EAAE,OAAO,iBAAiB,CAAC,OAAO,CAAA;IACzC,aAAa,EAAE,OAAO,iBAAiB,CAAC,aAAa,CAAA;IACrD,UAAU,EAAE,OAAO,iBAAiB,CAAC,UAAU,CAAA;IAC/C,KAAK,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAA;CACtC,CAAA;AAED,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,CAAA"}
@@ -1,6 +1,5 @@
1
- import { FormControl as FormControl$1 } from '@primer/react';
1
+ import { FormControl as FormControl$1, sx } from '@primer/react';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
4
3
 
5
4
  const FormControlImpl = styled(FormControl$1).withConfig({
6
5
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,6 +1,5 @@
1
- import { Header as Header$1 } from '@primer/react';
1
+ import { Box, Header as Header$1 } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
- import Box from './Box.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
@@ -1,5 +1,4 @@
1
- import { Heading as Heading$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { Heading as Heading$1, sx } from '@primer/react';
3
2
  import styled from 'styled-components';
4
3
 
5
4
  const Heading = styled(Heading$1).withConfig({
@@ -1,6 +1,5 @@
1
- import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker } from '@primer/react';
1
+ import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker, type SxProp } from '@primer/react';
2
2
  import { type ForwardRefComponent } from '../polymorphic';
3
- import { type SxProp } from '../sx';
4
3
  type IconButtonProps = PrimerIconButtonProps & SxProp & {
5
4
  as?: React.ElementType;
6
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAIvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQhF,QAAA,MAAM,UAAU,EAUV,mBAAmB,CAAC,GAAG,GAAG,QAAQ,EAAE,eAAe,CAAC,GAAG,UAAU,CAAA;AAIvE,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,UAAU,EACf,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAMvD,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQhF,QAAA,MAAM,UAAU,EAUV,mBAAmB,CAAC,GAAG,GAAG,QAAQ,EAAE,eAAe,CAAC,GAAG,UAAU,CAAA;AAIvE,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
@@ -1,8 +1,7 @@
1
- import { IconButton as IconButton$1 } from '@primer/react';
1
+ import { IconButton as IconButton$1, sx } 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';
6
5
  import { jsx } from 'react/jsx-runtime';
7
6
 
8
7
  const StyledIconButton = styled(IconButton$1).withConfig({
@@ -1,5 +1,4 @@
1
- import { Label as Label$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { Label as Label$1, sx } from '@primer/react';
3
2
  import { forwardRef } from 'react';
4
3
  import styled from 'styled-components';
5
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,5 @@
1
- import { Link as Link$1 } from '@primer/react';
1
+ import { Link as Link$1, sx } from '@primer/react';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
4
3
  import { forwardRef } from 'react';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
@@ -1,6 +1,5 @@
1
- import { type LinkButtonProps as PrimerLinkButtonProps } from '@primer/react';
1
+ import { type LinkButtonProps as PrimerLinkButtonProps, type SxProp } from '@primer/react';
2
2
  import { type ForwardRefComponent } from '../polymorphic';
3
- import { type SxProp } from '../sx';
4
3
  type LinkButtonProps = PrimerLinkButtonProps & SxProp;
5
4
  declare const LinkButton: ForwardRefComponent<'a', LinkButtonProps>;
6
5
  export { LinkButton };
@@ -1 +1 @@
1
- {"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/components/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAE3G,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAErD,QAAA,MAAM,UAAU,EAAE,mBAAmB,CAAC,GAAG,EAAE,eAAe,CAIzD,CAAA;AAED,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
1
+ {"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/components/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAE7C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAErD,QAAA,MAAM,UAAU,EAAE,mBAAmB,CAAC,GAAG,EAAE,eAAe,CAIzD,CAAA;AAED,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
@@ -1,6 +1,5 @@
1
- import { LinkButton as LinkButton$1 } from '@primer/react';
1
+ import { LinkButton as LinkButton$1, sx } from '@primer/react';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
4
3
 
5
4
  const LinkButton = styled(LinkButton$1).withConfig({
6
5
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,23 +1,26 @@
1
1
  import { NavList as PrimerNavList } from '@primer/react';
2
- import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
2
+ import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListGroupHeadingProps as PrimerNavListGroupHeadingProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
3
3
  import { type PropsWithChildren } from 'react';
4
4
  import { type SxProp } from '../sx';
5
- import type { ForwardRefComponent } from '../polymorphic';
6
- type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp & {
7
- as?: React.ElementType;
8
- };
9
- type NavListItemProps = PropsWithChildren<PrimerNavListItemProps> & SxProp & {
10
- as?: React.ElementType;
11
- };
12
- declare const NavListItem: ForwardRefComponent<"a", NavListItemProps>;
13
- type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp & {
14
- as?: React.ElementType;
15
- };
16
- declare const NavListLeadingVisual: ForwardRefComponent<"span", NavListLeadingVisualProps>;
5
+ type RefComponent<E extends HTMLElement, P> = React.ForwardRefExoticComponent<P & React.RefAttributes<E>>;
6
+ type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp;
7
+ declare const NavListItem: import("react").ForwardRefExoticComponent<PrimerNavListItemProps & {
8
+ children?: import("react").ReactNode | undefined;
9
+ } & SxProp & import("react").RefAttributes<HTMLAnchorElement>>;
10
+ declare const NavListGroup: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLLIElement> & {
11
+ children: React.ReactNode;
12
+ title?: string;
13
+ } & {
14
+ children?: import("react").ReactNode | undefined;
15
+ } & SxProp & import("react").RefAttributes<HTMLLIElement>>;
16
+ type NavListGroupHeadingProps = PropsWithChildren<PrimerNavListGroupHeadingProps> & SxProp;
17
+ declare const NavListGroupHeading: RefComponent<HTMLElement, NavListGroupHeadingProps>;
18
+ type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp;
19
+ declare const NavListLeadingVisual: RefComponent<HTMLSpanElement, NavListLeadingVisualProps>;
17
20
  type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
18
21
  Item: typeof NavListItem;
19
- Group: typeof PrimerNavList.Group;
20
- GroupHeading: typeof PrimerNavList.GroupHeading;
22
+ Group: typeof NavListGroup;
23
+ GroupHeading: typeof NavListGroupHeading;
21
24
  LeadingVisual: typeof NavListLeadingVisual;
22
25
  SubNav: typeof PrimerNavList.SubNav;
23
26
  Divider: typeof PrimerNavList.Divider;
@@ -1 +1 @@
1
- {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAC1C,yBAAyB,IAAI,+BAA+B,EAE7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAY7F,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAC/D,MAAM,GAAG;IACP,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AAQH,QAAA,MAAM,WAAW,EAEX,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAA;AAEhD,KAAK,yBAAyB,GAAG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,50 @@
1
- import { NavList as NavList$1 } from '@primer/react';
1
+ import { NavList as NavList$1, Box } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
- import styled from 'styled-components';
4
- import sx from '../sx.js';
5
3
  import { jsx } from 'react/jsx-runtime';
6
4
 
7
- const StyledNavListImpl = styled(NavList$1).withConfig({
8
- shouldForwardProp: prop => prop !== 'sx'
9
- }).withConfig({
10
- displayName: "NavList__StyledNavListImpl",
11
- componentId: "sc-86jrwg-0"
12
- })(["", ""], sx);
13
- const NavListImpl = /*#__PURE__*/forwardRef(function NavList({
14
- as,
15
- ...props
16
- }, ref) {
17
- return /*#__PURE__*/jsx(StyledNavListImpl, {
5
+ const NavListImpl = /*#__PURE__*/forwardRef(function NavList(props, ref) {
6
+ return /*#__PURE__*/jsx(Box, {
7
+ as: NavList$1,
18
8
  ref: ref,
19
- ...(as ? {
20
- forwardedAs: as
21
- } : {}),
22
9
  ...props
23
10
  });
24
11
  });
25
- const StyledNavListItem = styled(NavList$1.Item).withConfig({
26
- shouldForwardProp: prop => prop !== 'sx'
27
- }).withConfig({
28
- displayName: "NavList__StyledNavListItem",
29
- componentId: "sc-86jrwg-1"
30
- })(["", ""], sx);
31
- const NavListItem = /*#__PURE__*/forwardRef(({
32
- as,
33
- ...props
34
- }, ref) => {
35
- return /*#__PURE__*/jsx(StyledNavListItem, {
36
- ...props,
37
- ...(as ? {
38
- forwardedAs: as
39
- } : {}),
40
- ref: ref
12
+ const NavListItem = /*#__PURE__*/forwardRef(function NavListItem(props, ref) {
13
+ // @ts-expect-error - PrimerNavList.Item is not recognized as a valid component type
14
+ return /*#__PURE__*/jsx(Box, {
15
+ as: NavList$1.Item,
16
+ ref: ref,
17
+ ...props
18
+ });
19
+ });
20
+ const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
21
+ // @ts-expect-error - PrimerNavList.Group is not recognized as a valid component type
22
+ return /*#__PURE__*/jsx(Box, {
23
+ as: NavList$1.Group,
24
+ ref: ref,
25
+ ...props
41
26
  });
42
27
  });
43
- const StyledNavListLeadingVisual = styled(NavList$1.LeadingVisual).withConfig({
44
- shouldForwardProp: prop => prop !== 'sx'
45
- }).withConfig({
46
- displayName: "NavList__StyledNavListLeadingVisual",
47
- componentId: "sc-86jrwg-2"
48
- })(["", ""], sx);
49
- const NavListLeadingVisual = /*#__PURE__*/forwardRef(({
50
- as,
51
- ...props
52
- }, ref) => {
53
- return /*#__PURE__*/jsx(StyledNavListLeadingVisual, {
54
- ...props,
55
- ...(as ? {
56
- forwardedAs: as
57
- } : {}),
58
- ref: ref
28
+ const NavListGroupHeading = /*#__PURE__*/forwardRef(function NavListGroupHeading(props, ref) {
29
+ // @ts-expect-error - PrimerNavList.GroupHeading is not recognized as a valid component type
30
+ return /*#__PURE__*/jsx(Box, {
31
+ as: NavList$1.GroupHeading,
32
+ ref: ref,
33
+ ...props
34
+ });
35
+ });
36
+ const NavListLeadingVisual = /*#__PURE__*/forwardRef(function NavListLeadingVisual(props, ref) {
37
+ // @ts-expect-error - PrimerNavList.LeadingVisual is not recognized as a valid component type
38
+ return /*#__PURE__*/jsx(Box, {
39
+ as: NavList$1.LeadingVisual,
40
+ ref: ref,
41
+ ...props
59
42
  });
60
43
  });
61
- NavListLeadingVisual.__SLOT__ = NavList$1.LeadingVisual.__SLOT__;
62
44
  const NavList = Object.assign(NavListImpl, {
63
45
  Item: NavListItem,
64
- Group: NavList$1.Group,
65
- GroupHeading: NavList$1.GroupHeading,
46
+ Group: NavListGroup,
47
+ GroupHeading: NavListGroupHeading,
66
48
  LeadingVisual: NavListLeadingVisual,
67
49
  SubNav: NavList$1.SubNav,
68
50
  Divider: NavList$1.Divider,
@@ -1,6 +1,5 @@
1
- import { type OverlayProps as PrimerOverlayProps } from '@primer/react';
1
+ import { type OverlayProps as PrimerOverlayProps, type SxProp } from '@primer/react';
2
2
  import { type ForwardRefComponent } from '../polymorphic';
3
- import { type SxProp } from '../sx';
4
3
  type OverlayProps = PrimerOverlayProps & SxProp;
5
4
  declare const Overlay: ForwardRefComponent<'div', OverlayProps>;
6
5
  export { Overlay };
@@ -1 +1 @@
1
- {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;AAE/F,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,KAAK,EAAE,YAAY,CAIrD,CAAA;AAED,OAAO,EAAC,OAAO,EAAC,CAAA;AAChB,YAAY,EAAC,YAAY,EAAC,CAAA"}
1
+ {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAM,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAEhH,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,KAAK,EAAE,YAAY,CAIrD,CAAA;AAED,OAAO,EAAC,OAAO,EAAC,CAAA;AAChB,YAAY,EAAC,YAAY,EAAC,CAAA"}
@@ -1,6 +1,5 @@
1
- import { Overlay as Overlay$1 } from '@primer/react';
1
+ import { Overlay as Overlay$1, sx } from '@primer/react';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
4
3
 
5
4
  const Overlay = styled(Overlay$1).withConfig({
6
5
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,7 +1,5 @@
1
- import { PageHeader as PageHeader$1 } from '@primer/react';
1
+ import { PageHeader as PageHeader$1, sx, Box } from '@primer/react';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
4
- import Box from './Box.js';
5
3
  import React from 'react';
6
4
  import { jsx } from 'react/jsx-runtime';
7
5
 
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { PageLayout as PageLayout$1 } from '@primer/react';
4
- import sx from '../sx.js';
3
+ import { sx, PageLayout as PageLayout$1 } from '@primer/react';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
7
6
  const Wrapper = styled.div.withConfig({
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAC3G,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAO/E,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,UAAU;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAChH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAO/E,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,UAAU;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
@@ -1,6 +1,5 @@
1
- import { RadioGroup as RadioGroup$1 } from '@primer/react';
1
+ import { RadioGroup as RadioGroup$1, Box } from '@primer/react';
2
2
  import 'react';
3
- import Box from './Box.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  const RadioGroupImpl = props => {
@@ -1 +1 @@
1
- {"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACnH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
1
+ {"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACxH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
@@ -1,6 +1,5 @@
1
- import { RelativeTime as RelativeTime$1 } from '@primer/react';
1
+ import { Box, RelativeTime as RelativeTime$1 } from '@primer/react';
2
2
  import 'react';
3
- import Box from './Box.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  function RelativeTime(props) {
@@ -1,5 +1,4 @@
1
- import { SegmentedControl as SegmentedControl$1 } from '@primer/react';
2
- import Box from './Box.js';
1
+ import { SegmentedControl as SegmentedControl$1, Box } from '@primer/react';
3
2
  import { jsx } from 'react/jsx-runtime';
4
3
 
5
4
  const SegmentedControlButton = props => {
@@ -1,5 +1,4 @@
1
- import { Select as Select$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { Select as Select$1, sx } from '@primer/react';
3
2
  import styled from 'styled-components';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
@@ -1,5 +1,4 @@
1
- import { Spinner as Spinner$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { Spinner as Spinner$1, sx } from '@primer/react';
3
2
  import styled from 'styled-components';
4
3
 
5
4
  const Spinner = styled(Spinner$1).withConfig({
@@ -3,7 +3,7 @@ import type { SxProp } from '../sx';
3
3
  type StateLabelProps = PrimerStateLabelProps & SxProp;
4
4
  declare const StateLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
5
5
  variant?: "small" | "normal";
6
- status: "open" | "closed" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable";
6
+ status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
7
7
  } & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
8
8
  export { StateLabel, type StateLabelProps };
9
9
  //# sourceMappingURL=StateLabel.d.ts.map
@@ -1,6 +1,5 @@
1
- import { StateLabel as StateLabel$1 } from '@primer/react';
1
+ import { Box, StateLabel as StateLabel$1 } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
- import Box from './Box.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
@@ -1,6 +1,5 @@
1
- import { SubNav as SubNav$1 } from '@primer/react';
1
+ import { SubNav as SubNav$1, Box } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
- import Box from './Box.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
@@ -1,5 +1,4 @@
1
- import { Text as Text$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { Text as Text$1, sx } from '@primer/react';
3
2
  import styled from 'styled-components';
4
3
  import { forwardRef } from 'react';
5
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,5 @@
1
- import { TextInput as TextInput$1 } from '@primer/react';
1
+ import { TextInput as TextInput$1, sx } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
- import sx from '../sx.js';
4
3
  import styled from 'styled-components';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
@@ -1,6 +1,5 @@
1
- import { Textarea as Textarea$1 } from '@primer/react';
1
+ import { Textarea as Textarea$1, sx } from '@primer/react';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
4
3
  import { forwardRef } from 'react';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
@@ -1,5 +1,4 @@
1
- import { Timeline as Timeline$1 } from '@primer/react';
2
- import Box from './Box.js';
1
+ import { Box, Timeline as Timeline$1 } from '@primer/react';
3
2
  import { forwardRef } from 'react';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
@@ -1,6 +1,5 @@
1
- import { ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
1
+ import { Box, ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
- import Box from './Box.js';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
@@ -1,6 +1,5 @@
1
1
  import { forwardRef } from 'react';
2
- import { Token as Token$1 } from '@primer/react';
3
- import sx from '../sx.js';
2
+ import { Token as Token$1, sx } from '@primer/react';
4
3
  import styled from 'styled-components';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
@@ -1,6 +1,5 @@
1
- import { type TooltipProps as PrimerTooltipProps, type SlotMarker } from '@primer/react';
1
+ import { type TooltipProps as PrimerTooltipProps, type SxProp, type SlotMarker } from '@primer/react';
2
2
  import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
3
- import type { SxProp } from '../sx';
4
3
  type TooltipProps = PrimerTooltipProps & SxProp;
5
4
  declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>> & SlotMarker;
6
5
  export { Tooltip, type TooltipProps };
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAEhH,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AACpF,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,GAAG,UAKvF,CAAA;AAIF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,IAAI,kBAAkB,EACvC,KAAK,MAAM,EACX,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AAEpF,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,GAAG,UAKvF,CAAA;AAIF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -1,5 +1,4 @@
1
- import { Tooltip as Tooltip$1 } from '@primer/react';
2
- import Box from './Box.js';
1
+ import { Tooltip as Tooltip$1, Box } from '@primer/react';
3
2
  import { forwardRef } from 'react';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
@@ -1,5 +1,4 @@
1
- import { Truncate as Truncate$1 } from '@primer/react';
2
- import sx from '../sx.js';
1
+ import { Truncate as Truncate$1, sx } from '@primer/react';
3
2
  import styled from 'styled-components';
4
3
 
5
4
  const Truncate = styled(Truncate$1).withConfig({
@@ -1,8 +1,6 @@
1
- import { UnderlineNav as UnderlineNav$1 } from '@primer/react';
2
- import Box from './Box.js';
1
+ import { UnderlineNav as UnderlineNav$1, sx, Box } from '@primer/react';
3
2
  import { forwardRef } from 'react';
4
3
  import styled from 'styled-components';
5
- import sx from '../sx.js';
6
4
  import { jsx } from 'react/jsx-runtime';
7
5
 
8
6
  const StyledUnderlineNav = /*#__PURE__*/forwardRef(function UnderlineNav(props, ref) {
@@ -1,6 +1,6 @@
1
1
  import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
2
2
  import styled from 'styled-components';
3
- import sx from '../sx.js';
3
+ import { sx } from '@primer/react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
6
  const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
@@ -1,7 +1,6 @@
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, Box } from '@primer/react';
5
4
  import styled from 'styled-components';
6
5
  import { jsx } from 'react/jsx-runtime';
7
6
 
@@ -1,5 +1,5 @@
1
1
  import { Dialog as Dialog$1 } from '@primer/react/deprecated';
2
- import Box from '../Box.js';
2
+ import { Box } from '@primer/react';
3
3
  import { forwardRef } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -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 '@primer/react';
4
4
  import { forwardRef } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { TabNav as TabNav$1 } from '@primer/react/deprecated';
2
- import sx from '../../sx.js';
2
+ import { sx } from '@primer/react';
3
3
  import styled from 'styled-components';
4
4
  import { forwardRef } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  import { Tooltip as Tooltip$1 } from '@primer/react/deprecated';
2
2
  import { forwardRef } from 'react';
3
- import sx from '../../sx.js';
3
+ import { sx } from '@primer/react';
4
4
  import styled from 'styled-components';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
@@ -61,7 +61,6 @@
61
61
  "ActionListTrailingVisualProps",
62
62
  "AutocompleteOverlayProps",
63
63
  "AvatarProps",
64
- "BaseStylesProps",
65
64
  "BetterSystemStyleObject",
66
65
  "BoxProps",
67
66
  "BreadcrumbsItemProps",
@@ -111,7 +110,6 @@
111
110
  "TextInputActionProps",
112
111
  "TextInputProps",
113
112
  "TextProps",
114
- "ThemeProviderProps",
115
113
  "TimelineBadgeProps",
116
114
  "TimelineBodyProps",
117
115
  "TimelineBreakProps",
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export { Box, type BoxProps } from './components/Box';
2
2
  export { Details } from '@primer/react';
3
3
  export { ProgressBar } from '@primer/react';
4
- export { ThemeProvider, useTheme, useColorSchemeVar, BaseStyles, type ThemeProviderProps, type BaseStylesProps, } from './components/FeatureFlaggedTheming';
4
+ export { ThemeProvider, useTheme, useColorSchemeVar, BaseStyles } from './components/FeatureFlaggedTheming';
5
+ export { merge } from '@primer/react';
5
6
  export { theme } from '@primer/react';
6
7
  export { themeGet } from '@primer/react';
7
8
  export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListDividerProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, type ActionListTrailingActionProps, } from './components/ActionList';
@@ -43,6 +44,6 @@ export { Tooltip, type TooltipProps } from './components/Tooltip';
43
44
  export { Token, type TokenProps } from './components/Token';
44
45
  export { Truncate, type TruncateProps } from './components/Truncate';
45
46
  export { UnderlineNav, type UnderlineNavProps, type UnderlineNavItemProps } from './components/UnderlineNav';
46
- export { merge, sx, type SxProp } from './sx';
47
- export { type BetterSystemStyleObject } from './sx';
47
+ export { sx, type SxProp } from './sx';
48
+ export type { BetterSystemStyleObject } from './styled-props';
48
49
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AAGzC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAEtC,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,GACnC,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAC,YAAY,EAAE,KAAK,wBAAwB,EAAC,MAAM,2BAA2B,CAAA;AACrF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;AAClH,OAAO,EAAC,eAAe,IAAI,MAAM,EAAE,KAAK,oBAAoB,IAAI,WAAW,EAAC,MAAM,qBAAqB,CAAA;AACvG,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,MA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C,MAAM,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use client";
2
- export { default as Box } from './components/Box.js';
3
- export { Details, ProgressBar, theme, themeGet } from '@primer/react';
2
+ export { Box, Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
4
3
  export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme } from './components/FeatureFlaggedTheming.js';
5
4
  export { ActionList } from './components/ActionList.js';
6
5
  export { ActionMenu } from './components/ActionMenu.js';
@@ -41,5 +40,3 @@ export { Tooltip } from './components/Tooltip.js';
41
40
  export { Token } from './components/Token.js';
42
41
  export { Truncate } from './components/Truncate.js';
43
42
  export { UnderlineNav } from './components/UnderlineNav.js';
44
- export { default as sx } from './sx.js';
45
- export { default as merge } from 'deepmerge';
@@ -1,4 +1,5 @@
1
1
  import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
2
2
  import type { SxProp } from './sx';
3
3
  export type StyledProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
4
+ export type { BetterSystemStyleObject } from '@primer/react';
4
5
  //# sourceMappingURL=styled-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled-props.d.ts","sourceRoot":"","sources":["../src/styled-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EAChB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,GAC9B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA"}
1
+ {"version":3,"file":"styled-props.d.ts","sourceRoot":"","sources":["../src/styled-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EAChB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,GAC9B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA;AAEb,YAAY,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAA"}
package/dist/sx.d.ts CHANGED
@@ -1,26 +1,5 @@
1
- import type { SystemCssProperties, SystemStyleObject } from '@styled-system/css';
2
- import type { ThemeColorPaths, ThemeShadowPaths } from '@primer/react';
3
- import type { ColorProps, BorderColorProps, ShadowProps } from 'styled-system';
4
- import merge from 'deepmerge';
5
- export type BetterCssProperties = {
6
- [K in keyof SystemCssProperties]: K extends keyof ColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof BorderColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof ShadowProps ? ThemeShadowPaths | SystemCssProperties[K] : SystemCssProperties[K];
7
- };
1
+ export { sx, type SxProp } from '@primer/react';
8
2
  export type CSSCustomProperties = {
9
3
  [key: `--${string}`]: string | number;
10
4
  };
11
- type CSSSelectorObject = {
12
- [cssSelector: string]: SystemStyleObject | CSSCustomProperties;
13
- };
14
- export type BetterSystemStyleObject = BetterCssProperties | SystemStyleObject | CSSCustomProperties | CSSSelectorObject;
15
- export interface SxProp {
16
- /**
17
- * @deprecated The `sx` prop is deprecated. Replace with a `div` or
18
- * appropriate HTML element instead, with a CSS class for styling.
19
- * @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
20
- * */
21
- sx?: BetterSystemStyleObject;
22
- }
23
- declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
24
- export default sx;
25
- export { merge, sx };
26
5
  //# sourceMappingURL=sx.d.ts.map
package/dist/sx.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,oBAAoB,CAAA;AAE9E,OAAO,KAAK,EAAC,eAAe,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAA;AACpE,OAAO,KAAK,EAAC,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAC,MAAM,eAAe,CAAA;AAC5E,OAAO,KAAK,MAAM,WAAW,CAAA;AAE7B,MAAM,MAAM,mBAAmB,GAAG;KAC/B,CAAC,IAAI,MAAM,mBAAmB,GAAG,CAAC,SAAS,MAAM,UAAU,GACxD,eAAe,GAAG,mBAAmB,CAAC,CAAC,CAAC,GACxC,CAAC,SAAS,MAAM,gBAAgB,GAC9B,eAAe,GAAG,mBAAmB,CAAC,CAAC,CAAC,GACxC,CAAC,SAAS,MAAM,WAAW,GACzB,gBAAgB,GAAG,mBAAmB,CAAC,CAAC,CAAC,GACzC,mBAAmB,CAAC,CAAC,CAAC;CAC/B,CAAA;AAGD,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,GAAG,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;CACtC,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,GAAG,mBAAmB,CAAA;CAC/D,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,iBAAiB,CAAA;AAEvH,MAAM,WAAW,MAAM;IACrB;;;;SAIK;IACL,EAAE,CAAC,EAAE,uBAAuB,CAAA;CAC7B;AAED,QAAA,MAAM,EAAE,GAAI,OAAO,MAAM,uDAAkB,CAAA;AAE3C,eAAe,EAAE,CAAA;AAEjB,OAAO,EAAC,KAAK,EAAE,EAAE,EAAC,CAAA"}
1
+ {"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAC7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,GAAG,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;CACtC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20251021155848",
3
+ "version": "0.0.0-20251021160403",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@babel/preset-react": "^7.27.1",
32
32
  "@babel/preset-typescript": "^7.27.1",
33
- "@primer/react": "0.0.0-20251021155848",
33
+ "@primer/react": "0.0.0-20251021160403",
34
34
  "@rollup/plugin-babel": "^6.0.4",
35
35
  "@types/react": "18.3.11",
36
36
  "@types/react-dom": "18.3.1",
@@ -46,7 +46,7 @@
46
46
  "typescript": "^5.9.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "@primer/react": "0.0.0-20251021155848",
49
+ "@primer/react": "0.0.0-20251021160403",
50
50
  "@types/react": "18.x || 19.x",
51
51
  "@types/react-dom": "18.x || 19.x",
52
52
  "@types/react-is": "18.x || 19.x",
@@ -1,15 +0,0 @@
1
- import styled from 'styled-components';
2
- import { space, color, typography, layout, flexbox, grid, background, border, position, shadow } from 'styled-system';
3
- import sx from '../sx.js';
4
-
5
- /**
6
- * @deprecated The Box component is deprecated. Replace with a `div` or
7
- * appropriate HTML element instead, with CSS modules for styling.
8
- * @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
9
- */
10
- const Box = styled.div.withConfig({
11
- displayName: "Box",
12
- componentId: "sc-62in7e-0"
13
- })(space, color, typography, layout, flexbox, grid, background, border, position, shadow, sx);
14
-
15
- export { Box, Box as default };
package/dist/sx.js DELETED
@@ -1,8 +0,0 @@
1
- import css from '@styled-system/css';
2
- export { default as merge } from 'deepmerge';
3
-
4
- // Support CSS custom properties in the `sx` prop
5
-
6
- const sx = props => css(props.sx);
7
-
8
- export { sx as default, sx };