@primer/styled-react 0.0.0-20251007221437 → 0.0.0-20251007222317

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 (97) hide show
  1. package/dist/{PageHeader-BYlYLcfB.js → Tooltip-DIHgr01r.js} +77 -11
  2. package/dist/components/ActionList.d.ts +36 -0
  3. package/dist/components/ActionList.d.ts.map +1 -0
  4. package/dist/components/ActionMenu.d.ts +12 -0
  5. package/dist/components/ActionMenu.d.ts.map +1 -0
  6. package/dist/components/Autocomplete.d.ts +15 -0
  7. package/dist/components/Autocomplete.d.ts.map +1 -0
  8. package/dist/components/Avatar.d.ts +13 -0
  9. package/dist/components/Avatar.d.ts.map +1 -0
  10. package/dist/components/Breadcrumbs.d.ts +18 -0
  11. package/dist/components/Breadcrumbs.d.ts.map +1 -0
  12. package/dist/components/Button.d.ts +13 -0
  13. package/dist/components/Button.d.ts.map +1 -0
  14. package/dist/components/Checkbox.d.ts +5 -0
  15. package/dist/components/Checkbox.d.ts.map +1 -0
  16. package/dist/components/CheckboxGroup.d.ts +22 -0
  17. package/dist/components/CheckboxGroup.d.ts.map +1 -0
  18. package/dist/components/CircleBadge.d.ts +7 -0
  19. package/dist/components/CircleBadge.d.ts.map +1 -0
  20. package/dist/components/CounterLabel.d.ts +10 -0
  21. package/dist/components/CounterLabel.d.ts.map +1 -0
  22. package/dist/components/DataTable.d.ts +11 -0
  23. package/dist/components/DataTable.d.ts.map +1 -0
  24. package/dist/components/Dialog.d.ts +19 -0
  25. package/dist/components/Dialog.d.ts.map +1 -0
  26. package/dist/components/Header.d.ts.map +1 -1
  27. package/dist/components/Heading.d.ts +8 -0
  28. package/dist/components/Heading.d.ts.map +1 -0
  29. package/dist/components/IconButton.d.ts +9 -0
  30. package/dist/components/IconButton.d.ts.map +1 -0
  31. package/dist/components/Label.d.ts +9 -0
  32. package/dist/components/Label.d.ts.map +1 -0
  33. package/dist/components/Link.d.ts +7 -0
  34. package/dist/components/Link.d.ts.map +1 -0
  35. package/dist/components/NavList.d.ts +33 -0
  36. package/dist/components/NavList.d.ts.map +1 -0
  37. package/dist/components/Overlay.d.ts +7 -0
  38. package/dist/components/Overlay.d.ts.map +1 -0
  39. package/dist/components/PageHeader.d.ts +18 -14
  40. package/dist/components/PageHeader.d.ts.map +1 -1
  41. package/dist/components/PageLayout.d.ts +18 -0
  42. package/dist/components/PageLayout.d.ts.map +1 -0
  43. package/dist/components/RadioGroup.d.ts +22 -0
  44. package/dist/components/RadioGroup.d.ts.map +1 -0
  45. package/dist/components/RelativeTime.d.ts +6 -0
  46. package/dist/components/RelativeTime.d.ts.map +1 -0
  47. package/dist/components/SegmentedControl.d.ts +12 -0
  48. package/dist/components/SegmentedControl.d.ts.map +1 -0
  49. package/dist/components/Spinner.d.ts +6 -0
  50. package/dist/components/Spinner.d.ts.map +1 -0
  51. package/dist/components/StateLabel.d.ts +9 -0
  52. package/dist/components/StateLabel.d.ts.map +1 -0
  53. package/dist/components/SubNav.d.ts +9 -0
  54. package/dist/components/SubNav.d.ts.map +1 -0
  55. package/dist/components/Text.d.ts +7 -0
  56. package/dist/components/Text.d.ts.map +1 -0
  57. package/dist/components/TextInput.d.ts +20 -0
  58. package/dist/components/TextInput.d.ts.map +1 -0
  59. package/dist/components/Timeline.d.ts +26 -0
  60. package/dist/components/Timeline.d.ts.map +1 -0
  61. package/dist/components/ToggleSwitch.d.ts +6 -0
  62. package/dist/components/ToggleSwitch.d.ts.map +1 -0
  63. package/dist/components/Token.d.ts +7 -0
  64. package/dist/components/Token.d.ts.map +1 -0
  65. package/dist/components/Tooltip.d.ts +6 -0
  66. package/dist/components/Tooltip.d.ts.map +1 -0
  67. package/dist/components/Truncate.d.ts +7 -0
  68. package/dist/components/Truncate.d.ts.map +1 -0
  69. package/dist/components/UnderlineNav.d.ts +11 -0
  70. package/dist/components/UnderlineNav.d.ts.map +1 -0
  71. package/dist/components/UnderlinePanels.d.ts +12 -0
  72. package/dist/components/UnderlinePanels.d.ts.map +1 -0
  73. package/dist/components/deprecated/ActionList.d.ts +23 -0
  74. package/dist/components/deprecated/ActionList.d.ts.map +1 -0
  75. package/dist/components/deprecated/DialogV1.d.ts +11 -0
  76. package/dist/components/deprecated/DialogV1.d.ts.map +1 -0
  77. package/dist/components/deprecated/Octicon.d.ts +17 -0
  78. package/dist/components/deprecated/Octicon.d.ts.map +1 -0
  79. package/dist/components/deprecated/TabNav.d.ts +9 -0
  80. package/dist/components/deprecated/TabNav.d.ts.map +1 -0
  81. package/dist/components/deprecated/Tooltip.d.ts +13 -0
  82. package/dist/components/deprecated/Tooltip.d.ts.map +1 -0
  83. package/dist/components.json +62 -1
  84. package/dist/deprecated.d.ts +5 -1
  85. package/dist/deprecated.d.ts.map +1 -1
  86. package/dist/deprecated.js +179 -1
  87. package/dist/experimental.d.ts +4 -1
  88. package/dist/experimental.d.ts.map +1 -1
  89. package/dist/experimental.js +55 -5
  90. package/dist/index.d.ts +49 -81
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +646 -37
  93. package/dist/styled-props.d.ts +5 -0
  94. package/dist/styled-props.d.ts.map +1 -0
  95. package/dist/sx.d.ts +3 -0
  96. package/dist/sx.d.ts.map +1 -1
  97. package/package.json +3 -3
@@ -0,0 +1,6 @@
1
+ import { type RelativeTimeProps as PrimerRelativeTimeProps } from '@primer/react';
2
+ import React from 'react';
3
+ import type { SxProp } from '../sx';
4
+ export type RelativeTimeProps = PrimerRelativeTimeProps & SxProp;
5
+ export declare function RelativeTime(props: RelativeTimeProps): React.JSX.Element;
6
+ //# sourceMappingURL=RelativeTime.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,12 @@
1
+ import { type SegmentedControlProps as PrimerSegmentedControlProps, type SegmentedControlButtonProps as PrimerSegmentedControlButtonProps, type SegmentedControlIconButtonProps as PrimerSegmentedControlIconButtonProps } from '@primer/react';
2
+ import type { PropsWithChildren } from 'react';
3
+ import type { SxProp } from '../sx';
4
+ type SegmentedControlProps = PropsWithChildren<PrimerSegmentedControlProps> & SxProp;
5
+ type SegmentedControlButtonProps = PropsWithChildren<PrimerSegmentedControlButtonProps> & SxProp;
6
+ type SegmentedControlIconButtonProps = PropsWithChildren<PrimerSegmentedControlIconButtonProps> & SxProp;
7
+ declare const SegmentedControl: ((props: SegmentedControlProps) => import("react").JSX.Element) & {
8
+ Button: (props: SegmentedControlButtonProps) => import("react").JSX.Element;
9
+ IconButton: (props: SegmentedControlIconButtonProps) => import("react").JSX.Element;
10
+ };
11
+ export { SegmentedControl, type SegmentedControlProps, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, };
12
+ //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/components/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,IAAI,2BAA2B,EAEzD,KAAK,2BAA2B,IAAI,iCAAiC,EACrE,KAAK,+BAA+B,IAAI,qCAAqC,EAC9E,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,qBAAqB,GAAG,iBAAiB,CAAC,2BAA2B,CAAC,GAAG,MAAM,CAAA;AACpF,KAAK,2BAA2B,GAAG,iBAAiB,CAAC,iCAAiC,CAAC,GAAG,MAAM,CAAA;AAChG,KAAK,+BAA+B,GAAG,iBAAiB,CAAC,qCAAqC,CAAC,GAAG,MAAM,CAAA;AAcxG,QAAA,MAAM,gBAAgB,WAJe,qBAAqB;oBARnB,2BAA2B;wBAIvB,+BAA+B;CAWxE,CAAA;AAEF,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,GACrC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { type SpinnerProps as PrimerSpinnerProps } from '@primer/react';
2
+ import React from 'react';
3
+ import type { SxProp } from '../sx';
4
+ export type SpinnerProps = PrimerSpinnerProps & SxProp;
5
+ export declare function Spinner(props: SpinnerProps): React.JSX.Element;
6
+ //# sourceMappingURL=Spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;AACpG,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAEtD,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,qBAE1C"}
@@ -0,0 +1,9 @@
1
+ import { type StateLabelProps as PrimerStateLabelProps } from '@primer/react';
2
+ import type { SxProp } from '../sx';
3
+ type StateLabelProps = PrimerStateLabelProps & SxProp;
4
+ declare const StateLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
5
+ variant?: "small" | "normal";
6
+ status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
7
+ } & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
8
+ export { StateLabel, type StateLabelProps };
9
+ //# sourceMappingURL=StateLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StateLabel.d.ts","sourceRoot":"","sources":["../../src/components/StateLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAG3G,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAErD,QAAA,MAAM,UAAU;;;4DAEd,CAAA;AAEF,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { type SubNavProps as PrimerSubNavProps, type SubNavLinkProps as PrimerSubNavLinkProps } from '@primer/react';
2
+ import type { SxProp } from '../sx';
3
+ type SubNavProps = PrimerSubNavProps & SxProp;
4
+ type SubNavLinkProps = PrimerSubNavLinkProps & SxProp;
5
+ declare const SubNav: import("react").ForwardRefExoticComponent<Omit<SubNavProps, "ref"> & import("react").RefAttributes<HTMLElement>> & {
6
+ Link: import("react").ForwardRefExoticComponent<Omit<SubNavLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
7
+ };
8
+ export { SubNav, type SubNavProps, type SubNavLinkProps };
9
+ //# sourceMappingURL=SubNav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubNav.d.ts","sourceRoot":"","sources":["../../src/components/SubNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAC9C,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAM7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAMrD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { type TextProps as PrimerTextProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import { type StyledComponent } from 'styled-components';
4
+ type TextProps = PrimerTextProps & SxProp;
5
+ declare const Text: StyledComponent<"span", any, TextProps, never>;
6
+ export { Text, type TextProps };
7
+ //# sourceMappingURL=Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,IAAI,eAAe,EAAC,MAAM,eAAe,CAAA;AACnF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGrC,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAGtD,KAAK,SAAS,GAAG,eAAe,GAAG,MAAM,CAAA;AAQzC,QAAA,MAAM,IAAI,EAGJ,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;AAEpD,OAAO,EAAC,IAAI,EAAE,KAAK,SAAS,EAAC,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { type TextInputProps as PrimerTextInputProps, type TextInputActionProps as PrimerTextInputActionProps } from '@primer/react';
2
+ import type { SxProp } from '../sx';
3
+ import type { ForwardRefExoticComponent, RefAttributes } from 'react';
4
+ export type TextInputProps = PrimerTextInputProps & SxProp & {
5
+ as?: React.ElementType;
6
+ };
7
+ export type TextInputActionProps = PrimerTextInputActionProps & SxProp;
8
+ declare const TextInputAction: ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "size" | "aria-label" | "tooltipDirection"> & {
9
+ children?: React.ReactNode;
10
+ "aria-label"?: string;
11
+ tooltipDirection?: "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw";
12
+ icon?: React.FunctionComponent<React.PropsWithChildren<import("@primer/octicons-react").IconProps>>;
13
+ variant?: import("@primer/react").ButtonProps["variant"];
14
+ } & SxProp & RefAttributes<HTMLButtonElement>>;
15
+ type TextInputComposite = ForwardRefExoticComponent<TextInputProps & RefAttributes<HTMLInputElement>> & {
16
+ Action: typeof TextInputAction;
17
+ };
18
+ export declare const TextInput: TextInputComposite;
19
+ export {};
20
+ //# sourceMappingURL=TextInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/components/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,IAAI,oBAAoB,EAC3C,KAAK,oBAAoB,IAAI,0BAA0B,EACxD,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAC,yBAAyB,EAAE,aAAa,EAAC,MAAM,OAAO,CAAA;AAEnE,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AACrF,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,GAAG,MAAM,CAAA;AAUtE,QAAA,MAAM,eAAe;;;;;;8CAEnB,CAAA;AAEF,KAAK,kBAAkB,GAAG,yBAAyB,CAAC,cAAc,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC,GAAG;IACtG,MAAM,EAAE,OAAO,eAAe,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,kBAEtB,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { type TimelineProps as PrimerTimelineProps, type TimelineItemProps as PrimerTimelineItemProps, type TimelineBadgeProps as PrimerTimelineBadgeProps, type TimelineBodyProps as PrimerTimelineBodyProps, type TimelineBreakProps as PrimerTimelineBreakProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ export type TimelineProps = PrimerTimelineProps & SxProp;
4
+ export type TimelineItemProps = PrimerTimelineItemProps & SxProp;
5
+ export type TimelineBadgeProps = PrimerTimelineBadgeProps & SxProp;
6
+ export type TimelineBodyProps = PrimerTimelineBodyProps & SxProp;
7
+ export type TimelineBreakProps = PrimerTimelineBreakProps & SxProp;
8
+ declare function TimelineBadge(props: TimelineBadgeProps): import("react").JSX.Element;
9
+ export declare const Timeline: import("react").ForwardRefExoticComponent<{
10
+ clipSidebar?: boolean;
11
+ className?: string;
12
+ } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>> & {
13
+ Item: import("react").ForwardRefExoticComponent<{
14
+ condensed?: boolean;
15
+ className?: string;
16
+ } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
17
+ Badge: typeof TimelineBadge;
18
+ Body: import("react").ForwardRefExoticComponent<{
19
+ className?: string;
20
+ } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
21
+ Break: import("react").ForwardRefExoticComponent<{
22
+ className?: string;
23
+ } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
24
+ };
25
+ export {};
26
+ //# sourceMappingURL=Timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/components/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,IAAI,mBAAmB,EACzC,KAAK,iBAAiB,IAAI,uBAAuB,EACjD,KAAK,kBAAkB,IAAI,wBAAwB,EACnD,KAAK,iBAAiB,IAAI,uBAAuB,EACjD,KAAK,kBAAkB,IAAI,wBAAwB,EACpD,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,MAAM,CAAA;AACxD,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAChE,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,MAAM,CAAA;AAClE,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAChE,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,MAAM,CAAA;AAUlE,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAE/C;AAUD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAKnB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { type ToggleSwitchProps as PrimerToggleSwitchProps } from '@primer/react';
2
+ import type { StyledProps } from '../styled-props';
3
+ type ToggleSwitchProps = PrimerToggleSwitchProps & Omit<StyledProps, keyof PrimerToggleSwitchProps>;
4
+ declare const ToggleSwitch: import("react").ForwardRefExoticComponent<PrimerToggleSwitchProps & Omit<StyledProps, keyof PrimerToggleSwitchProps> & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export { ToggleSwitch, type ToggleSwitchProps };
6
+ //# sourceMappingURL=ToggleSwitch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../src/components/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AAGnH,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAEhD,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,uBAAuB,CAAC,CAAA;AAEnG,QAAA,MAAM,YAAY,0KAEhB,CAAA;AAEF,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { type TokenProps as PrimerTokenProps, type SxProp } from '@primer/react';
2
+ import type { ForwardRefComponent } from '../polymorphic';
3
+ import type { PropsWithChildren } from 'react';
4
+ type TokenProps = PropsWithChildren<PrimerTokenProps> & SxProp;
5
+ declare const Token: ForwardRefComponent<'a' | 'button' | 'span', TokenProps>;
6
+ export { Token, type TokenProps };
7
+ //# sourceMappingURL=Token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../src/components/Token.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,IAAI,gBAAgB,EACnC,KAAK,MAAM,EAIZ,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE5C,KAAK,UAAU,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAA;AAE9D,QAAA,MAAM,KAAK,EAAE,mBAAmB,CAAC,GAAG,GAAG,QAAQ,GAAG,MAAM,EAAE,UAAU,CAgBP,CAAA;AAE7D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { type TooltipProps as PrimerTooltipProps, type SxProp } from '@primer/react';
2
+ import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
3
+ type TooltipProps = PrimerTooltipProps & SxProp;
4
+ declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>>;
5
+ export { Tooltip, type TooltipProps };
6
+ //# sourceMappingURL=Tooltip.d.ts.map
@@ -0,0 +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,MAAM,EAAC,MAAM,eAAe,CAAA;AAE5G,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,CAKnF,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { type TruncateProps as PrimerTruncateProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { PropsWithChildren } from 'react';
4
+ import type { ForwardRefComponent } from '../polymorphic';
5
+ export type TruncateProps = PropsWithChildren<PrimerTruncateProps> & SxProp;
6
+ export declare const Truncate: ForwardRefComponent<'div', TruncateProps>;
7
+ //# sourceMappingURL=Truncate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Truncate.d.ts","sourceRoot":"","sources":["../../src/components/Truncate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,IAAI,mBAAmB,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAAA;AAE3E,eAAO,MAAM,QAAQ,EAAE,mBAAmB,CAAC,KAAK,EAAE,aAAa,CAI9D,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { type UnderlineNavProps as PrimerUnderlineNavProps, type UnderlineNavItemProps as PrimerUnderlineNavItemProps } from '@primer/react';
2
+ import type { ForwardRefComponent } from '../polymorphic';
3
+ import { type SxProp } from '../sx';
4
+ export type UnderlineNavProps = PrimerUnderlineNavProps & SxProp;
5
+ export declare const UnderlineNavImpl: ForwardRefComponent<"nav", UnderlineNavProps>;
6
+ export type UnderlineNavItemProps = PrimerUnderlineNavItemProps & SxProp & React.HTMLAttributes<HTMLElement>;
7
+ export declare const UnderlineNavItem: ForwardRefComponent<"a", UnderlineNavItemProps>;
8
+ export declare const UnderlineNav: ForwardRefComponent<"nav", UnderlineNavProps> & {
9
+ Item: ForwardRefComponent<"a", UnderlineNavItemProps>;
10
+ };
11
+ //# sourceMappingURL=UnderlineNav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnderlineNav.d.ts","sourceRoot":"","sources":["../../src/components/UnderlineNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,IAAI,uBAAuB,EACjD,KAAK,qBAAqB,IAAI,2BAA2B,EAC1D,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAMhE,eAAO,MAAM,gBAAgB,EAEvB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAA;AAEnD,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAAG,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAS5G,eAAO,MAAM,gBAAgB,EAEvB,mBAAmB,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAA;AAErD,eAAO,MAAM,YAAY;;CAEvB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { type UnderlinePanelsProps as PrimerUnderlinePanelsProps, type UnderlinePanelsPanelProps, type UnderlinePanelsTabProps } from '@primer/react/experimental';
2
+ import { type SxProp } from '../sx';
3
+ type UnderlinePanelsProps = PrimerUnderlinePanelsProps & SxProp;
4
+ declare const UnderlinePanels: {
5
+ ({ as, ...props }: UnderlinePanelsProps): import("react").JSX.Element;
6
+ displayName: string;
7
+ } & {
8
+ Tab: import("react").FC<UnderlinePanelsTabProps>;
9
+ Panel: import("react").FC<UnderlinePanelsPanelProps>;
10
+ };
11
+ export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps };
12
+ //# sourceMappingURL=UnderlinePanels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnderlinePanels.d.ts","sourceRoot":"","sources":["../../src/components/UnderlinePanels.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,oBAAoB,GAAG,0BAA0B,GAAG,MAAM,CAAA;AAe/D,QAAA,MAAM,eAAe;uBANwB,oBAAoB;;;;;CAS/D,CAAA;AAEF,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAC,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ import { type ActionListProps as PrimerActionListProps, type ActionListItemProps as PrimerActionListItemProps, type ActionListGroupProps as PrimerActionListGroupProps } from '@primer/react/deprecated';
3
+ import { type SxProp } from '../../sx';
4
+ import type { ActionListDividerProps } from '@primer/react';
5
+ type ActionListProps = PropsWithChildren<PrimerActionListProps & SxProp>;
6
+ type ActionListItemProps = PropsWithChildren<PrimerActionListItemProps & SxProp & {
7
+ as?: React.ElementType;
8
+ }>;
9
+ type ActionListGroupProps = PropsWithChildren<PrimerActionListGroupProps & SxProp>;
10
+ declare function ActionListGroup(props: ActionListGroupProps): import("react").JSX.Element;
11
+ declare function ActionListDivider(props: ActionListDividerProps): import("react").JSX.Element;
12
+ declare const ActionList: import("react").ForwardRefExoticComponent<ActionListProps & import("react").RefAttributes<HTMLDivElement>> & {
13
+ Item: import("react").ForwardRefExoticComponent<PrimerActionListItemProps & SxProp & {
14
+ as?: React.ElementType;
15
+ } & {
16
+ children?: import("react").ReactNode | undefined;
17
+ } & import("react").RefAttributes<HTMLLIElement>>;
18
+ Group: typeof ActionListGroup;
19
+ Divider: typeof ActionListDivider;
20
+ };
21
+ export type { ActionListProps, ActionListItemProps, ActionListGroupProps };
22
+ export { ActionList };
23
+ //# sourceMappingURL=ActionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionList.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/ActionList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,iBAAiB,EAAa,MAAM,OAAO,CAAA;AACxD,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,mBAAmB,IAAI,yBAAyB,EACrD,KAAK,oBAAoB,IAAI,0BAA0B,EACxD,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AAGxC,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAEzD,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,GAAG,MAAM,CAAC,CAAA;AAExE,KAAK,mBAAmB,GAAG,iBAAiB,CAAC,yBAAyB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAC,CAAA;AAC3G,KAAK,oBAAoB,GAAG,iBAAiB,CAAC,0BAA0B,GAAG,MAAM,CAAC,CAAA;AAgBlF,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAEnD;AAED,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAEvD;AAED,QAAA,MAAM,UAAU;;aAzBwE,KAAK,CAAC,WAAW;;;;;;CA6BvG,CAAA;AAEF,YAAY,EAAC,eAAe,EAAE,mBAAmB,EAAE,oBAAoB,EAAC,CAAA;AACxE,OAAO,EAAC,UAAU,EAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { DialogProps as PrimerDialogProps, DialogHeaderProps as PrimerDialogHeaderProps } from '@primer/react/deprecated';
2
+ import type { SxProp } from '../../sx';
3
+ import type { ForwardRefComponent } from '../../polymorphic';
4
+ type DialogProps = PrimerDialogProps & SxProp;
5
+ type DialogHeaderProps = PrimerDialogHeaderProps & SxProp;
6
+ declare const Dialog: ForwardRefComponent<"div", DialogProps> & {
7
+ Header: ForwardRefComponent<"div", DialogHeaderProps>;
8
+ };
9
+ export { Dialog };
10
+ export type { DialogProps, DialogHeaderProps };
11
+ //# sourceMappingURL=DialogV1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogV1.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/DialogV1.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,IAAI,iBAAiB,EAChC,iBAAiB,IAAI,uBAAuB,EAC7C,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAEpC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAA;AAE1D,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAU7C,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAUzD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAE,iBAAiB,EAAC,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { type OcticonProps as PrimerOcticonProps } from '@primer/react/deprecated';
2
+ import { type SxProp } from '../../sx';
3
+ /**
4
+ * @deprecated Use the icon component directly from `@primer/octicons-react` instead
5
+ */
6
+ export type OcticonProps = PrimerOcticonProps & SxProp & {
7
+ color?: string;
8
+ };
9
+ declare const Octicon: import("react").ForwardRefExoticComponent<{
10
+ icon: React.ElementType;
11
+ as?: React.ElementType;
12
+ } & import("@primer/octicons-react").IconProps & SxProp & {
13
+ color?: string;
14
+ } & import("react").RefAttributes<unknown>>;
15
+ export default Octicon;
16
+ export { Octicon };
17
+ //# sourceMappingURL=Octicon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Octicon.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Octicon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAC,KAAK,MAAM,EAAK,MAAM,UAAU,CAAA;AAGxC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,MAAM,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAazE,QAAA,MAAM,OAAO;;;;YAbqD,MAAM;2CAetE,CAAA;AAEF,eAAe,OAAO,CAAA;AACtB,OAAO,EAAC,OAAO,EAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { TabNavProps as PrimerTabNavProps, TabNavLinkProps as PrimerTabNavLinkProps } from '@primer/react/deprecated';
2
+ import { type SxProp } from '../../sx';
3
+ type TabNavProps = PrimerTabNavProps & SxProp;
4
+ type TabNavLinkProps = PrimerTabNavLinkProps & SxProp;
5
+ declare const TabNav: (({ as, ...props }: TabNavProps) => import("react").JSX.Element) & {
6
+ Link: import("react").ForwardRefExoticComponent<Omit<TabNavLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
7
+ };
8
+ export { TabNav, type TabNavProps, type TabNavLinkProps };
9
+ //# sourceMappingURL=TabNav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabNav.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/TabNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAE,eAAe,IAAI,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACxH,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AAIxC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAC7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAsBrD,QAAA,MAAM,MAAM,sBAdwB,WAAW;;CAgB7C,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { type TooltipProps as PrimerTooltipProps } from '@primer/react/deprecated';
2
+ import { type SxProp } from '../../sx';
3
+ import { type PropsWithChildren } from 'react';
4
+ type TooltipProps = PropsWithChildren<PrimerTooltipProps & SxProp & {
5
+ as?: React.ElementType;
6
+ }>;
7
+ declare const TooltipImpl: import("react").ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
8
+ declare const Tooltip: typeof TooltipImpl & {
9
+ alignments: string[];
10
+ directions: string[];
11
+ };
12
+ export { Tooltip, type TooltipProps };
13
+ //# sourceMappingURL=Tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AACxC,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAI5C,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAC,CAAA;AAQ7F,QAAA,MAAM,WAAW,uHAEf,CAAA;AAEF,QAAA,MAAM,OAAO,EAAkB,OAAO,WAAW,GAAG;IAClD,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAMD,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -5,6 +5,7 @@
5
5
  "Autocomplete",
6
6
  "Avatar",
7
7
  "Box",
8
+ "Breadcrumb",
8
9
  "Breadcrumbs",
9
10
  "Button",
10
11
  "Checkbox",
@@ -26,6 +27,7 @@
26
27
  "Overlay",
27
28
  "PageHeader",
28
29
  "PageLayout",
30
+ "ProgressBar",
29
31
  "RadioGroup",
30
32
  "RelativeTime",
31
33
  "SegmentedControl",
@@ -48,17 +50,76 @@
48
50
  "UnderlinePanels"
49
51
  ],
50
52
  "types": [
53
+ "ActionListDividerProps",
54
+ "ActionListGroupProps",
55
+ "ActionListItemProps",
56
+ "ActionListLeadingVisualProps",
57
+ "ActionListLinkItemProps",
58
+ "ActionListProps",
59
+ "ActionListTrailingActionProps",
60
+ "ActionListTrailingVisualProps",
61
+ "AutocompleteOverlayProps",
62
+ "AvatarProps",
51
63
  "BetterSystemStyleObject",
52
64
  "BoxProps",
65
+ "BreadcrumbsItemProps",
66
+ "BreadcrumbsProps",
67
+ "ButtonProps",
68
+ "CheckboxGroupProps",
69
+ "CheckboxProps",
70
+ "CounterLabelProps",
71
+ "DataTableContainerProps",
72
+ "DialogHeaderProps",
73
+ "DialogProps",
53
74
  "HeaderProps",
75
+ "IconButtonProps",
76
+ "LabelProps",
54
77
  "LinkButtonProps",
78
+ "LinkProps",
79
+ "NavListProps",
80
+ "OcticonProps",
55
81
  "PageHeaderActionsProps",
56
82
  "PageHeaderProps",
57
83
  "PageHeaderTitleProps",
84
+ "PageLayoutProps",
85
+ "RadioGroupProps",
86
+ "RelativeTimeProps",
87
+ "SegmentedControlButtonProps",
88
+ "SegmentedControlIconButtonProps",
89
+ "SegmentedControlProps",
90
+ "SpinnerProps",
91
+ "StateLabelProps",
92
+ "SubNavLinkProps",
93
+ "SubNavProps",
58
94
  "SxProp",
95
+ "TableActionsProps",
96
+ "TableBodyProps",
97
+ "TableCellProps",
98
+ "TableHeaderProps",
99
+ "TableHeadProps",
100
+ "TableProps",
101
+ "TableRowProps",
102
+ "TableSubtitleProps",
103
+ "TableTitleProps",
104
+ "TabNavLinkProps",
105
+ "TabNavProps",
106
+ "TextInputActionProps",
59
107
  "TextInputProps",
108
+ "TextProps",
109
+ "TimelineBadgeProps",
110
+ "TimelineBodyProps",
111
+ "TimelineBreakProps",
112
+ "TimelineItemProps",
113
+ "TimelineProps",
114
+ "ToggleSwitchProps",
60
115
  "TokenProps",
61
- "TooltipProps"
116
+ "TooltipProps",
117
+ "TruncateProps",
118
+ "UnderlineNavItemProps",
119
+ "UnderlineNavProps",
120
+ "UnderlinePanelsPanelProps",
121
+ "UnderlinePanelsProps",
122
+ "UnderlinePanelsTabProps"
62
123
  ],
63
124
  "utilities": [
64
125
  "merge",
@@ -1,2 +1,6 @@
1
- export { Dialog, Octicon, TabNav, Tooltip, type TooltipProps } from '@primer/react/deprecated';
1
+ export { TabNav, type TabNavProps, type TabNavLinkProps } from './components/deprecated/TabNav';
2
+ export { Dialog, type DialogProps, type DialogHeaderProps } from './components/deprecated/DialogV1';
3
+ export { Octicon, type OcticonProps } from './components/deprecated/Octicon';
4
+ export { Tooltip, type TooltipProps } from './components/deprecated/Tooltip';
5
+ export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListGroupProps, } from './components/deprecated/ActionList';
2
6
  //# sourceMappingURL=deprecated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAA"}
1
+ {"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,gCAAgC,CAAA;AAC7F,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,kCAAkC,CAAA;AACjG,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,oCAAoC,CAAA"}
@@ -1 +1,179 @@
1
- export { Dialog, Octicon, TabNav, Tooltip } from '@primer/react/deprecated';
1
+ import { TabNav as TabNav$1, Dialog as Dialog$1, Octicon as Octicon$1, Tooltip as Tooltip$1, ActionList as ActionList$1 } from '@primer/react/deprecated';
2
+ import { sx, Box } from '@primer/react';
3
+ import styled from 'styled-components';
4
+ import { forwardRef } from 'react';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ const StyledTabNav = styled(TabNav$1).withConfig({
8
+ shouldForwardProp: prop => prop !== 'sx'
9
+ }).withConfig({
10
+ displayName: "TabNav__StyledTabNav",
11
+ componentId: "sc-13kad3t-0"
12
+ })(["", ""], sx);
13
+ const TabNavImpl = ({
14
+ as,
15
+ ...props
16
+ }) => {
17
+ return /*#__PURE__*/jsx(StyledTabNav, {
18
+ ...props,
19
+ ...(as ? {
20
+ forwardedAs: as
21
+ } : {})
22
+ });
23
+ };
24
+ const StyledTabNavLink = styled(TabNav$1.Link).withConfig({
25
+ shouldForwardProp: prop => prop !== 'sx'
26
+ }).withConfig({
27
+ displayName: "TabNav__StyledTabNavLink",
28
+ componentId: "sc-13kad3t-1"
29
+ })(["", ""], sx);
30
+ const TabNavLink = /*#__PURE__*/forwardRef(({
31
+ as,
32
+ ...props
33
+ }, ref) => /*#__PURE__*/jsx(StyledTabNavLink, {
34
+ ...props,
35
+ ...(as ? {
36
+ forwardedAs: as
37
+ } : {}),
38
+ ref: ref
39
+ }));
40
+ const TabNav = Object.assign(TabNavImpl, {
41
+ Link: TabNavLink
42
+ });
43
+
44
+ const StyledDialog = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
45
+ return /*#__PURE__*/jsx(Box, {
46
+ as: Dialog$1,
47
+ ref: ref,
48
+ ...props
49
+ });
50
+ });
51
+ const DialogImpl = /*#__PURE__*/forwardRef(({
52
+ as,
53
+ ...props
54
+ }, ref) => /*#__PURE__*/jsx(StyledDialog, {
55
+ ...props,
56
+ ...(as ? {
57
+ forwardedAs: as
58
+ } : {}),
59
+ ref: ref
60
+ }));
61
+ const StyledDialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
62
+ return /*#__PURE__*/jsx(Box, {
63
+ as: Dialog$1.Header,
64
+ ref: ref,
65
+ ...props
66
+ });
67
+ });
68
+ const DialogHeader = /*#__PURE__*/forwardRef(({
69
+ as,
70
+ ...props
71
+ }, ref) => /*#__PURE__*/jsx(StyledDialogHeader, {
72
+ ...props,
73
+ ...(as ? {
74
+ forwardedAs: as
75
+ } : {}),
76
+ ref: ref
77
+ }));
78
+ const Dialog = Object.assign(DialogImpl, {
79
+ Header: DialogHeader
80
+ });
81
+
82
+ /**
83
+ * @deprecated Use the icon component directly from `@primer/octicons-react` instead
84
+ */
85
+ const StyledOcticon = styled(Octicon$1).withConfig({
86
+ shouldForwardProp(prop) {
87
+ return prop !== 'sx';
88
+ }
89
+ }).withConfig({
90
+ displayName: "Octicon__StyledOcticon",
91
+ componentId: "sc-jtj3m8-0"
92
+ })(["", ""], ({
93
+ color,
94
+ sx: sxProp
95
+ }) => sx({
96
+ sx: {
97
+ color,
98
+ ...sxProp
99
+ }
100
+ }));
101
+ const Octicon = /*#__PURE__*/forwardRef(({
102
+ as,
103
+ ...props
104
+ }, ref) => {
105
+ return /*#__PURE__*/jsx(StyledOcticon, {
106
+ ...props,
107
+ ...(as ? {
108
+ forwardedAs: as
109
+ } : {}),
110
+ ref: ref
111
+ });
112
+ });
113
+
114
+ const StyledTooltip = styled(Tooltip$1).withConfig({
115
+ shouldForwardProp: prop => prop !== 'sx'
116
+ }).withConfig({
117
+ displayName: "Tooltip__StyledTooltip",
118
+ componentId: "sc-145jcib-0"
119
+ })(["", ""], sx);
120
+ const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
121
+ as,
122
+ ...props
123
+ }, ref) {
124
+ return /*#__PURE__*/jsx(StyledTooltip, {
125
+ ...props,
126
+ ...(as ? {
127
+ forwardedAs: as
128
+ } : {}),
129
+ ref: ref
130
+ });
131
+ });
132
+ const Tooltip = TooltipImpl;
133
+
134
+ // Preserve static properties from the original component
135
+ Tooltip.alignments = Tooltip$1.alignments;
136
+ Tooltip.directions = Tooltip$1.directions;
137
+
138
+ const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
139
+ return /*#__PURE__*/jsx(Box, {
140
+ as: ActionList$1,
141
+ ref: ref,
142
+ ...props
143
+ });
144
+ });
145
+ const StyledActionListItem = styled(ActionList$1.Item).withConfig({
146
+ shouldForwardProp: prop => prop !== 'sx'
147
+ }).withConfig({
148
+ displayName: "ActionList__StyledActionListItem",
149
+ componentId: "sc-1ugfmds-0"
150
+ })(["", ""], sx);
151
+ const ActionListItem = /*#__PURE__*/forwardRef(({
152
+ as,
153
+ ...props
154
+ }, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
155
+ ...props,
156
+ ...(as ? {
157
+ forwardedAs: as
158
+ } : {}),
159
+ ref: ref
160
+ }));
161
+ function ActionListGroup(props) {
162
+ return /*#__PURE__*/jsx(Box, {
163
+ as: ActionList$1.Group,
164
+ ...props
165
+ });
166
+ }
167
+ function ActionListDivider(props) {
168
+ return /*#__PURE__*/jsx(Box, {
169
+ as: ActionList$1.Divider,
170
+ ...props
171
+ });
172
+ }
173
+ const ActionList = Object.assign(ActionListImpl, {
174
+ Item: ActionListItem,
175
+ Group: ActionListGroup,
176
+ Divider: ActionListDivider
177
+ });
178
+
179
+ export { ActionList, Dialog, Octicon, TabNav, Tooltip };
@@ -1,3 +1,6 @@
1
+ export { Dialog, type DialogProps } from './components/Dialog';
1
2
  export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
2
- export { Dialog, Table, Tooltip, UnderlinePanels } from '@primer/react/experimental';
3
+ export { Tooltip, type TooltipProps } from './components/Tooltip';
4
+ export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps, } from './components/UnderlinePanels';
5
+ export { Table, type DataTableContainerProps, type TableProps, type TableHeadProps, type TableBodyProps, type TableRowProps, type TableHeaderProps, type TableCellProps, type TableTitleProps, type TableSubtitleProps, type TableActionsProps, } from './components/DataTable';
3
6
  //# sourceMappingURL=experimental.d.ts.map