@primer/styled-react 0.0.0-20251022234008 → 0.0.0-20251023002909

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 (66) hide show
  1. package/dist/components/ActionList.js +2 -1
  2. package/dist/components/ActionMenu.d.ts +2 -1
  3. package/dist/components/ActionMenu.d.ts.map +1 -1
  4. package/dist/components/ActionMenu.js +2 -1
  5. package/dist/components/Autocomplete.js +2 -1
  6. package/dist/components/Avatar.d.ts +1 -1
  7. package/dist/components/Avatar.d.ts.map +1 -1
  8. package/dist/components/Box.js +1 -1
  9. package/dist/components/Breadcrumbs.js +2 -1
  10. package/dist/components/Button.d.ts +1 -2
  11. package/dist/components/Button.d.ts.map +1 -1
  12. package/dist/components/Button.js +2 -1
  13. package/dist/components/CircleBadge.d.ts +2 -1
  14. package/dist/components/CircleBadge.d.ts.map +1 -1
  15. package/dist/components/CircleBadge.js +2 -1
  16. package/dist/components/DataTable.js +1 -1
  17. package/dist/components/Flash.js +2 -1
  18. package/dist/components/FormControl.d.ts +2 -1
  19. package/dist/components/FormControl.d.ts.map +1 -1
  20. package/dist/components/FormControl.js +2 -1
  21. package/dist/components/Heading.js +2 -1
  22. package/dist/components/IconButton.d.ts +2 -1
  23. package/dist/components/IconButton.d.ts.map +1 -1
  24. package/dist/components/IconButton.js +2 -1
  25. package/dist/components/Label.js +2 -1
  26. package/dist/components/Link.js +2 -1
  27. package/dist/components/LinkButton.d.ts +2 -1
  28. package/dist/components/LinkButton.d.ts.map +1 -1
  29. package/dist/components/LinkButton.js +2 -1
  30. package/dist/components/NavList.js +2 -1
  31. package/dist/components/Overlay.d.ts +2 -1
  32. package/dist/components/Overlay.d.ts.map +1 -1
  33. package/dist/components/Overlay.js +2 -1
  34. package/dist/components/PageHeader.js +2 -1
  35. package/dist/components/PageLayout.js +2 -1
  36. package/dist/components/Select.js +2 -1
  37. package/dist/components/Spinner.js +2 -1
  38. package/dist/components/StateLabel.d.ts +1 -1
  39. package/dist/components/Text.js +2 -1
  40. package/dist/components/TextInput.js +2 -1
  41. package/dist/components/Textarea.js +2 -1
  42. package/dist/components/Token.js +2 -1
  43. package/dist/components/Tooltip.d.ts +2 -1
  44. package/dist/components/Tooltip.d.ts.map +1 -1
  45. package/dist/components/Truncate.js +2 -1
  46. package/dist/components/UnderlineNav.js +2 -1
  47. package/dist/components/UnderlinePanels.js +1 -1
  48. package/dist/components/deprecated/ActionList.js +1 -1
  49. package/dist/components/deprecated/Octicon.js +1 -1
  50. package/dist/components/deprecated/TabNav.js +1 -1
  51. package/dist/components/deprecated/Tooltip.js +1 -1
  52. package/dist/index.d.ts +5 -5
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +6 -2
  55. package/dist/styled-props.d.ts +0 -1
  56. package/dist/styled-props.d.ts.map +1 -1
  57. package/dist/sx.d.ts +22 -1
  58. package/dist/sx.d.ts.map +1 -1
  59. package/dist/sx.js +8 -0
  60. package/dist/theme-get.d.ts +2 -0
  61. package/dist/theme-get.d.ts.map +1 -0
  62. package/dist/theme-get.js +10 -0
  63. package/package.json +13 -3
  64. package/dist/components/FeatureFlaggedTheming.d.ts +0 -9
  65. package/dist/components/FeatureFlaggedTheming.d.ts.map +0 -1
  66. package/dist/components/FeatureFlaggedTheming.js +0 -54
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { ActionList as ActionList$1, sx } from '@primer/react';
3
+ import { ActionList as ActionList$1 } from '@primer/react';
4
+ import sx from '../sx.js';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  const StyledActionList = styled(ActionList$1).withConfig({
@@ -1,4 +1,5 @@
1
- import { ActionMenu as PrimerActionMenu, type SxProp, type SlotMarker } from '@primer/react';
1
+ import { ActionMenu as PrimerActionMenu, type SlotMarker } from '@primer/react';
2
+ import { type SxProp } from '../sx';
2
3
  import type { ComponentProps } from 'react';
3
4
  type ActionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
4
5
  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,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
+ {"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,4 +1,5 @@
1
- import { ActionMenu as ActionMenu$1, sx } from '@primer/react';
1
+ import { ActionMenu as ActionMenu$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import styled from 'styled-components';
3
4
 
4
5
  const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
@@ -1,4 +1,5 @@
1
- import { Autocomplete as Autocomplete$1, sx } from '@primer/react';
1
+ import { Autocomplete as Autocomplete$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import styled from 'styled-components';
3
4
 
4
5
  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("@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>>;
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>>;
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;;;;;;ooDAEV,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;;;;;;ynDAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { space, color, typography, layout, flexbox, grid, background, border, position, shadow } from 'styled-system';
3
- import { sx } from '@primer/react';
3
+ import sx from '../sx.js';
4
4
 
5
5
  /**
6
6
  * @deprecated The Box component is deprecated. Replace with a `div` or
@@ -1,4 +1,5 @@
1
- import { Breadcrumbs as Breadcrumbs$1, sx } from '@primer/react';
1
+ import { Breadcrumbs as Breadcrumbs$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import styled from 'styled-components';
3
4
  import { jsx } from 'react/jsx-runtime';
4
5
 
@@ -1,6 +1,5 @@
1
1
  import { type ButtonProps as PrimerButtonProps, type SlotMarker } from '@primer/react';
2
- import type { SxProp } from '../sx';
3
- import type { BetterSystemStyleObject } from '../styled-props';
2
+ import type { SxProp, BetterSystemStyleObject } from '../sx';
4
3
  import type { ForwardRefComponent } from '../polymorphic';
5
4
  type ButtonComponentProps = PrimerButtonProps & SxProp & {
6
5
  as?: React.ElementType;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,KAAK,EAAC,MAAM,EAAsB,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAA;AAE5D,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAIvD,KAAK,oBAAoB,GAAG,iBAAiB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQjF,QAAA,MAAM,eAAe,EAgBf,mBAAmB,CAAC,QAAQ,EAAE,oBAAoB,CAAC,GAAG,UAAU,CAAA;AA0CtE,wBAAgB,oBAAoB,CAClC,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
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,KAAK,EAAC,MAAM,EAAuB,uBAAuB,EAAC,MAAM,OAAO,CAAA;AAE/E,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAIvD,KAAK,oBAAoB,GAAG,iBAAiB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQjF,QAAA,MAAM,eAAe,EAgBf,mBAAmB,CAAC,QAAQ,EAAE,oBAAoB,CAAC,GAAG,UAAU,CAAA;AA0CtE,wBAAgB,oBAAoB,CAClC,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,6 +1,7 @@
1
- import { Button, sx } from '@primer/react';
1
+ import { Button } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
3
  import styled from 'styled-components';
4
+ import sx from '../sx.js';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  const StyledButtonComponent = styled(Button).withConfig({
@@ -1,5 +1,6 @@
1
- import { type CircleBadgeProps as PrimerCircleBadgeProps, type SxProp } from '@primer/react';
1
+ import { type CircleBadgeProps as PrimerCircleBadgeProps } from '@primer/react';
2
2
  import { type ForwardRefComponent } from '../polymorphic';
3
+ import { type SxProp } from '../sx';
3
4
  type CircleBadgeProps<As extends React.ElementType> = PrimerCircleBadgeProps<As> & SxProp;
4
5
  declare const CircleBadge: ForwardRefComponent<React.ElementType, CircleBadgeProps<React.ElementType>>;
5
6
  export { CircleBadge };
@@ -1 +1 @@
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
+ {"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,5 +1,6 @@
1
- import { CircleBadge as CircleBadge$1, sx } from '@primer/react';
1
+ import { CircleBadge as CircleBadge$1 } from '@primer/react';
2
2
  import styled from 'styled-components';
3
+ import sx from '../sx.js';
3
4
 
4
5
  const CircleBadge = styled(CircleBadge$1).withConfig({
5
6
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,5 +1,5 @@
1
1
  import { Table as Table$1 } from '@primer/react/experimental';
2
- import { sx } from '@primer/react';
2
+ import sx from '../sx.js';
3
3
  import styled from 'styled-components';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,6 @@
1
- import { Flash as Flash$1, sx } from '@primer/react';
1
+ import { Flash as Flash$1 } from '@primer/react';
2
2
  import styled from 'styled-components';
3
+ import sx from '../sx.js';
3
4
 
4
5
  const Flash = styled(Flash$1).withConfig({
5
6
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,5 +1,6 @@
1
- import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type SxProp } from '@primer/react';
1
+ import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps } from '@primer/react';
2
2
  import { type PropsWithChildren } from 'react';
3
+ import { type SxProp } from '../sx';
3
4
  type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
4
5
  declare const FormControlImpl: React.ComponentType<FormControlProps>;
5
6
  declare const FormControl: typeof FormControlImpl & {
@@ -1 +1 @@
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
+ {"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,5 +1,6 @@
1
- import { FormControl as FormControl$1, sx } from '@primer/react';
1
+ import { FormControl as FormControl$1 } from '@primer/react';
2
2
  import styled from 'styled-components';
3
+ import sx from '../sx.js';
3
4
 
4
5
  const FormControlImpl = styled(FormControl$1).withConfig({
5
6
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,4 +1,5 @@
1
- import { Heading as Heading$1, sx } from '@primer/react';
1
+ import { Heading as Heading$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import styled from 'styled-components';
3
4
 
4
5
  const Heading = styled(Heading$1).withConfig({
@@ -1,5 +1,6 @@
1
- import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker, type SxProp } from '@primer/react';
1
+ import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker } from '@primer/react';
2
2
  import { type ForwardRefComponent } from '../polymorphic';
3
+ import { type SxProp } from '../sx';
3
4
  type IconButtonProps = PrimerIconButtonProps & SxProp & {
4
5
  as?: React.ElementType;
5
6
  };
@@ -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,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
+ {"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,7 +1,8 @@
1
- import { IconButton as IconButton$1, sx } from '@primer/react';
1
+ import { IconButton as IconButton$1 } 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';
5
6
  import { jsx } from 'react/jsx-runtime';
6
7
 
7
8
  const StyledIconButton = styled(IconButton$1).withConfig({
@@ -1,4 +1,5 @@
1
- import { Label as Label$1, sx } from '@primer/react';
1
+ import { Label as Label$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import { forwardRef } from 'react';
3
4
  import styled from 'styled-components';
4
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,5 +1,6 @@
1
- import { Link as Link$1, sx } from '@primer/react';
1
+ import { Link as Link$1 } from '@primer/react';
2
2
  import styled from 'styled-components';
3
+ import sx from '../sx.js';
3
4
  import { forwardRef } from 'react';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
@@ -1,5 +1,6 @@
1
- import { type LinkButtonProps as PrimerLinkButtonProps, type SxProp } from '@primer/react';
1
+ import { type LinkButtonProps as PrimerLinkButtonProps } from '@primer/react';
2
2
  import { type ForwardRefComponent } from '../polymorphic';
3
+ import { type SxProp } from '../sx';
3
4
  type LinkButtonProps = PrimerLinkButtonProps & SxProp;
4
5
  declare const LinkButton: ForwardRefComponent<'a', LinkButtonProps>;
5
6
  export { LinkButton };
@@ -1 +1 @@
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
+ {"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,5 +1,6 @@
1
- import { LinkButton as LinkButton$1, sx } from '@primer/react';
1
+ import { LinkButton as LinkButton$1 } from '@primer/react';
2
2
  import styled from 'styled-components';
3
+ import sx from '../sx.js';
3
4
 
4
5
  const LinkButton = styled(LinkButton$1).withConfig({
5
6
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,6 +1,7 @@
1
- import { NavList as NavList$1, sx } from '@primer/react';
1
+ import { NavList as NavList$1 } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
3
  import styled from 'styled-components';
4
+ import sx from '../sx.js';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  const StyledNavListImpl = styled(NavList$1).withConfig({
@@ -1,5 +1,6 @@
1
- import { type OverlayProps as PrimerOverlayProps, type SxProp } from '@primer/react';
1
+ import { type OverlayProps as PrimerOverlayProps } from '@primer/react';
2
2
  import { type ForwardRefComponent } from '../polymorphic';
3
+ import { type SxProp } from '../sx';
3
4
  type OverlayProps = PrimerOverlayProps & SxProp;
4
5
  declare const Overlay: ForwardRefComponent<'div', OverlayProps>;
5
6
  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,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
+ {"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,5 +1,6 @@
1
- import { Overlay as Overlay$1, sx } from '@primer/react';
1
+ import { Overlay as Overlay$1 } from '@primer/react';
2
2
  import styled from 'styled-components';
3
+ import sx from '../sx.js';
3
4
 
4
5
  const Overlay = styled(Overlay$1).withConfig({
5
6
  shouldForwardProp: prop => prop !== 'sx'
@@ -1,5 +1,6 @@
1
- import { PageHeader as PageHeader$1, sx } from '@primer/react';
1
+ import { PageHeader as PageHeader$1 } from '@primer/react';
2
2
  import styled from 'styled-components';
3
+ import sx from '../sx.js';
3
4
  import Box from './Box.js';
4
5
  import React from 'react';
5
6
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { sx, PageLayout as PageLayout$1 } from '@primer/react';
3
+ import { PageLayout as PageLayout$1 } from '@primer/react';
4
+ import sx from '../sx.js';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  const Wrapper = styled.div.withConfig({
@@ -1,4 +1,5 @@
1
- import { Select as Select$1, sx } from '@primer/react';
1
+ import { Select as Select$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import styled from 'styled-components';
3
4
  import { jsx } from 'react/jsx-runtime';
4
5
 
@@ -1,4 +1,5 @@
1
- import { Spinner as Spinner$1, sx } from '@primer/react';
1
+ import { Spinner as Spinner$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import styled from 'styled-components';
3
4
 
4
5
  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" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
6
+ status: "open" | "closed" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable";
7
7
  } & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
8
8
  export { StateLabel, type StateLabelProps };
9
9
  //# sourceMappingURL=StateLabel.d.ts.map
@@ -1,4 +1,5 @@
1
- import { Text as Text$1, sx } from '@primer/react';
1
+ import { Text as Text$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import styled from 'styled-components';
3
4
  import { forwardRef } from 'react';
4
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,5 +1,6 @@
1
- import { TextInput as TextInput$1, sx } from '@primer/react';
1
+ import { TextInput as TextInput$1 } from '@primer/react';
2
2
  import { forwardRef } from 'react';
3
+ import sx from '../sx.js';
3
4
  import styled from 'styled-components';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
@@ -1,5 +1,6 @@
1
- import { Textarea as Textarea$1, sx } from '@primer/react';
1
+ import { Textarea as Textarea$1 } from '@primer/react';
2
2
  import styled from 'styled-components';
3
+ import sx from '../sx.js';
3
4
  import { forwardRef } from 'react';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
@@ -1,5 +1,6 @@
1
1
  import { forwardRef } from 'react';
2
- import { Token as Token$1, sx } from '@primer/react';
2
+ import { Token as Token$1 } from '@primer/react';
3
+ import sx from '../sx.js';
3
4
  import styled from 'styled-components';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
@@ -1,5 +1,6 @@
1
- import { type TooltipProps as PrimerTooltipProps, type SxProp, type SlotMarker } from '@primer/react';
1
+ import { type TooltipProps as PrimerTooltipProps, type SlotMarker } from '@primer/react';
2
2
  import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
3
+ import type { SxProp } from '../sx';
3
4
  type TooltipProps = PrimerTooltipProps & SxProp;
4
5
  declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>> & SlotMarker;
5
6
  export { Tooltip, type TooltipProps };
@@ -1 +1 @@
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
+ {"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,4 +1,5 @@
1
- import { Truncate as Truncate$1, sx } from '@primer/react';
1
+ import { Truncate as Truncate$1 } from '@primer/react';
2
+ import sx from '../sx.js';
2
3
  import styled from 'styled-components';
3
4
 
4
5
  const Truncate = styled(Truncate$1).withConfig({
@@ -1,7 +1,8 @@
1
- import { UnderlineNav as UnderlineNav$1, sx } from '@primer/react';
1
+ import { UnderlineNav as UnderlineNav$1 } from '@primer/react';
2
2
  import Box from './Box.js';
3
3
  import { forwardRef } from 'react';
4
4
  import styled from 'styled-components';
5
+ import sx from '../sx.js';
5
6
  import { jsx } from 'react/jsx-runtime';
6
7
 
7
8
  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 '@primer/react';
3
+ import sx from '../sx.js';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
6
  const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
@@ -1,6 +1,6 @@
1
1
  import { forwardRef } from 'react';
2
2
  import { ActionList as ActionList$1 } from '@primer/react/deprecated';
3
- import { sx } from '@primer/react';
3
+ import sx from '../../sx.js';
4
4
  import Box from '../Box.js';
5
5
  import styled from 'styled-components';
6
6
  import { jsx } from 'react/jsx-runtime';
@@ -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 '@primer/react';
3
+ import sx from '../../sx.js';
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 '@primer/react';
2
+ import sx from '../../sx.js';
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 '@primer/react';
3
+ import sx from '../../sx.js';
4
4
  import styled from 'styled-components';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
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';
5
- export { merge } from '@primer/react';
4
+ export { ThemeProvider, useTheme, useColorSchemeVar, type ThemeProviderProps } from './components/ThemeProvider';
5
+ export { BaseStyles, type BaseStylesProps } from './components/BaseStyles';
6
6
  export { theme } from '@primer/react';
7
- export { themeGet } from '@primer/react';
7
+ export { get as themeGet } from './theme-get';
8
8
  export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListDividerProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, type ActionListTrailingActionProps, } from './components/ActionList';
9
9
  export { ActionMenu } from './components/ActionMenu';
10
10
  export { Autocomplete, type AutocompleteOverlayProps } from './components/Autocomplete';
@@ -44,6 +44,6 @@ export { Tooltip, type TooltipProps } from './components/Tooltip';
44
44
  export { Token, type TokenProps } from './components/Token';
45
45
  export { Truncate, type TruncateProps } from './components/Truncate';
46
46
  export { UnderlineNav, type UnderlineNavProps, type UnderlineNavItemProps } from './components/UnderlineNav';
47
- export { sx, type SxProp } from './sx';
48
- export type { BetterSystemStyleObject } from './styled-props';
47
+ export { merge, sx, type SxProp } from './sx';
48
+ export { type BetterSystemStyleObject } from './sx';
49
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,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,6BA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B,EACtB,KAAK,kBAAkB,GACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAE1G,OAAO,EAAC,KAAK,EAAE,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,MAAM,CAAA;AAE3C,OAAO,EAAC,KAAK,uBAAuB,EAAC,MAAM,MAAM,CAAA"}
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use client";
2
2
  export { default as Box } from './components/Box.js';
3
- export { Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
4
- export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme } from './components/FeatureFlaggedTheming.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';
5
7
  export { ActionList } from './components/ActionList.js';
6
8
  export { ActionMenu } from './components/ActionMenu.js';
7
9
  export { Autocomplete } from './components/Autocomplete.js';
@@ -41,3 +43,5 @@ export { Tooltip } from './components/Tooltip.js';
41
43
  export { Token } from './components/Token.js';
42
44
  export { Truncate } from './components/Truncate.js';
43
45
  export { UnderlineNav } from './components/UnderlineNav.js';
46
+ export { default as sx } from './sx.js';
47
+ export { default as merge } from 'deepmerge';
@@ -1,5 +1,4 @@
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';
5
4
  //# 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;AAEb,YAAY,EAAC,uBAAuB,EAAC,MAAM,eAAe,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"}
package/dist/sx.d.ts CHANGED
@@ -1,5 +1,26 @@
1
- export { sx, type SxProp } from '@primer/react';
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
+ };
2
8
  export type CSSCustomProperties = {
3
9
  [key: `--${string}`]: string | number;
4
10
  };
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 };
5
26
  //# 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,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"}
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"}
package/dist/sx.js ADDED
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,2 @@
1
+ export declare const get: (key: string) => (props: any) => any;
2
+ //# sourceMappingURL=theme-get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-get.d.ts","sourceRoot":"","sources":["../src/theme-get.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,wBAAsC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { themeGet } from '@styled-system/theme-get';
2
+ import * as styledSystem from 'styled-system';
3
+ import { theme } from '@primer/react';
4
+
5
+ const {
6
+ get: getKey
7
+ } = styledSystem;
8
+ const get = key => themeGet(key, getKey(theme, key));
9
+
10
+ export { get };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20251022234008",
3
+ "version": "0.0.0-20251023002909",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -27,13 +27,23 @@
27
27
  "lint:npm": "publint --types",
28
28
  "type-check": "tsc --noEmit"
29
29
  },
30
+ "dependencies": {
31
+ "@styled-system/css": "^5.1.5",
32
+ "@styled-system/props": "^5.1.5",
33
+ "@styled-system/theme-get": "^5.1.2",
34
+ "styled-system": "^5.1.5"
35
+ },
30
36
  "devDependencies": {
31
37
  "@babel/preset-react": "^7.27.1",
32
38
  "@babel/preset-typescript": "^7.27.1",
33
- "@primer/react": "0.0.0-20251022234008",
39
+ "@primer/react": "0.0.0-20251023002909",
34
40
  "@rollup/plugin-babel": "^6.0.4",
35
41
  "@types/react": "18.3.11",
36
42
  "@types/react-dom": "18.3.1",
43
+ "@types/styled-components": "^5.1.26",
44
+ "@types/styled-system": "^5.1.23",
45
+ "@types/styled-system__css": "^5.0.16",
46
+ "@types/styled-system__theme-get": "^5.0.1",
37
47
  "@vitejs/plugin-react": "^4.3.3",
38
48
  "babel-plugin-styled-components": "2.1.4",
39
49
  "publint": "^0.3.12",
@@ -46,7 +56,7 @@
46
56
  "typescript": "^5.9.2"
47
57
  },
48
58
  "peerDependencies": {
49
- "@primer/react": "0.0.0-20251022234008",
59
+ "@primer/react": "0.0.0-20251023002909",
50
60
  "@types/react": "18.x || 19.x",
51
61
  "@types/react-dom": "18.x || 19.x",
52
62
  "@types/react-is": "18.x || 19.x",
@@ -1,9 +0,0 @@
1
- import { useTheme as primerReactUseTheme, useColorSchemeVar as primerReactUseColorSchemeVar } from '@primer/react';
2
- import { type ThemeProviderProps } from './ThemeProvider';
3
- import { type BaseStylesProps } from './BaseStyles';
4
- export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
5
- export declare const BaseStyles: React.FC<React.PropsWithChildren<BaseStylesProps>>;
6
- export declare const useTheme: typeof primerReactUseTheme;
7
- export declare const useColorSchemeVar: typeof primerReactUseColorSchemeVar;
8
- export type { ThemeProviderProps, BaseStylesProps };
9
- //# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
@@ -1 +0,0 @@
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,54 +0,0 @@
1
- import { ThemeProvider as ThemeProvider$2, useTheme as useTheme$2, useColorSchemeVar as useColorSchemeVar$2, BaseStyles as BaseStyles$2 } from '@primer/react';
2
- import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1, useColorSchemeVar as useColorSchemeVar$1 } from './ThemeProvider.js';
3
- import { BaseStyles as BaseStyles$1 } from './BaseStyles.js';
4
- import { useFeatureFlag } from '@primer/react/experimental';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- const ThemeProvider = ({
8
- children,
9
- ...props
10
- }) => {
11
- const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
12
- if (enabled) {
13
- return /*#__PURE__*/jsx(ThemeProvider$1, {
14
- ...props,
15
- children: children
16
- });
17
- } else {
18
- return /*#__PURE__*/jsx(ThemeProvider$2, {
19
- ...props,
20
- children: children
21
- });
22
- }
23
- };
24
- const BaseStyles = ({
25
- children,
26
- ...props
27
- }) => {
28
- const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
29
- if (enabled) {
30
- return /*#__PURE__*/jsx(BaseStyles$1, {
31
- ...props,
32
- children: children
33
- });
34
- } else {
35
- return /*#__PURE__*/jsx(BaseStyles$2, {
36
- ...props,
37
- children: children
38
- });
39
- }
40
- };
41
- const useTheme = () => {
42
- const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
43
- const styledReactResults = useTheme$1();
44
- const primerReactResults = useTheme$2();
45
- return enabled ? styledReactResults : primerReactResults;
46
- };
47
- const useColorSchemeVar = (values, fallback) => {
48
- const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
49
- const styledReactResults = useColorSchemeVar$1(values, fallback);
50
- const primerReactResults = useColorSchemeVar$2(values, fallback);
51
- return enabled ? styledReactResults : primerReactResults;
52
- };
53
-
54
- export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme };