@primer/styled-react 1.0.0-rc.1 → 1.0.0-rc.10

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 (171) hide show
  1. package/README.md +18 -0
  2. package/dist/components/ActionList.d.ts +44 -0
  3. package/dist/components/ActionList.d.ts.map +1 -0
  4. package/dist/components/ActionList.js +163 -0
  5. package/dist/components/ActionMenu.d.ts +13 -0
  6. package/dist/components/ActionMenu.d.ts.map +1 -0
  7. package/dist/components/ActionMenu.js +19 -0
  8. package/dist/components/Autocomplete.d.ts +17 -0
  9. package/dist/components/Autocomplete.d.ts.map +1 -0
  10. package/dist/components/Autocomplete.js +25 -0
  11. package/dist/components/Avatar.d.ts +13 -0
  12. package/dist/components/Avatar.d.ts.map +1 -0
  13. package/dist/components/Avatar.js +14 -0
  14. package/dist/components/BaseStyles.d.ts +17 -0
  15. package/dist/components/BaseStyles.d.ts.map +1 -0
  16. package/dist/components/BaseStyles.js +51 -0
  17. package/dist/components/Box.d.ts +19 -0
  18. package/dist/components/Box.d.ts.map +1 -0
  19. package/dist/components/Box.js +15 -0
  20. package/dist/components/Breadcrumbs.d.ts +18 -0
  21. package/dist/components/Breadcrumbs.d.ts.map +1 -0
  22. package/dist/components/Breadcrumbs.js +38 -0
  23. package/dist/components/Button.d.ts +12 -0
  24. package/dist/components/Button.d.ts.map +1 -0
  25. package/dist/components/Button.js +112 -0
  26. package/dist/components/Checkbox.d.ts +5 -0
  27. package/dist/components/Checkbox.d.ts.map +1 -0
  28. package/dist/components/Checkbox.js +15 -0
  29. package/dist/components/CheckboxGroup.d.ts +34 -0
  30. package/dist/components/CheckboxGroup.d.ts.map +1 -0
  31. package/dist/components/CheckboxGroup.js +43 -0
  32. package/dist/components/CircleBadge.d.ts +8 -0
  33. package/dist/components/CircleBadge.d.ts.map +1 -0
  34. package/dist/components/CircleBadge.js +12 -0
  35. package/dist/components/CounterLabel.d.ts +10 -0
  36. package/dist/components/CounterLabel.d.ts.map +1 -0
  37. package/dist/components/CounterLabel.js +14 -0
  38. package/dist/components/DataTable.d.ts +11 -0
  39. package/dist/components/DataTable.d.ts.map +1 -0
  40. package/dist/components/DataTable.js +32 -0
  41. package/dist/components/Dialog.d.ts +19 -0
  42. package/dist/components/Dialog.d.ts.map +1 -0
  43. package/dist/components/Dialog.js +43 -0
  44. package/dist/components/FeatureFlaggedTheming.d.ts +9 -0
  45. package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
  46. package/dist/components/FeatureFlaggedTheming.js +54 -0
  47. package/dist/components/Flash.d.ts +8 -0
  48. package/dist/components/Flash.d.ts.map +1 -0
  49. package/dist/components/Flash.js +12 -0
  50. package/dist/components/FormControl.d.ts +13 -0
  51. package/dist/components/FormControl.d.ts.map +1 -0
  52. package/dist/components/FormControl.js +19 -0
  53. package/dist/components/Header.d.ts +11 -0
  54. package/dist/components/Header.d.ts.map +1 -0
  55. package/dist/components/Header.js +52 -0
  56. package/dist/components/Heading.d.ts +8 -0
  57. package/dist/components/Heading.d.ts.map +1 -0
  58. package/dist/components/Heading.js +12 -0
  59. package/dist/components/IconButton.d.ts +10 -0
  60. package/dist/components/IconButton.d.ts.map +1 -0
  61. package/dist/components/IconButton.js +40 -0
  62. package/dist/components/Label.d.ts +9 -0
  63. package/dist/components/Label.d.ts.map +1 -0
  64. package/dist/components/Label.js +26 -0
  65. package/dist/components/Link.d.ts +7 -0
  66. package/dist/components/Link.d.ts.map +1 -0
  67. package/dist/components/Link.js +26 -0
  68. package/dist/components/LinkButton.d.ts +8 -0
  69. package/dist/components/LinkButton.d.ts.map +1 -0
  70. package/dist/components/LinkButton.js +12 -0
  71. package/dist/components/NavList.d.ts +30 -0
  72. package/dist/components/NavList.d.ts.map +1 -0
  73. package/dist/components/NavList.js +74 -0
  74. package/dist/components/Overlay.d.ts +8 -0
  75. package/dist/components/Overlay.d.ts.map +1 -0
  76. package/dist/components/Overlay.js +12 -0
  77. package/dist/components/PageHeader.d.ts +31 -0
  78. package/dist/components/PageHeader.d.ts.map +1 -0
  79. package/dist/components/PageHeader.js +109 -0
  80. package/dist/components/PageLayout.d.ts +23 -0
  81. package/dist/components/PageLayout.d.ts.map +1 -0
  82. package/dist/components/PageLayout.js +43 -0
  83. package/dist/components/RadioGroup.d.ts +34 -0
  84. package/dist/components/RadioGroup.d.ts.map +1 -0
  85. package/dist/components/RadioGroup.js +43 -0
  86. package/dist/components/RelativeTime.d.ts +6 -0
  87. package/dist/components/RelativeTime.d.ts.map +1 -0
  88. package/dist/components/RelativeTime.js +14 -0
  89. package/dist/components/SegmentedControl.d.ts +19 -0
  90. package/dist/components/SegmentedControl.d.ts.map +1 -0
  91. package/dist/components/SegmentedControl.js +31 -0
  92. package/dist/components/Select.d.ts +8 -0
  93. package/dist/components/Select.d.ts.map +1 -0
  94. package/dist/components/Select.js +24 -0
  95. package/dist/components/Spinner.d.ts +5 -0
  96. package/dist/components/Spinner.d.ts.map +1 -0
  97. package/dist/components/Spinner.js +12 -0
  98. package/dist/components/StateLabel.d.ts +9 -0
  99. package/dist/components/StateLabel.d.ts.map +1 -0
  100. package/dist/components/StateLabel.js +14 -0
  101. package/dist/components/SubNav.d.ts +10 -0
  102. package/dist/components/SubNav.d.ts.map +1 -0
  103. package/dist/components/SubNav.js +26 -0
  104. package/dist/components/Text.d.ts +15 -0
  105. package/dist/components/Text.d.ts.map +1 -0
  106. package/dist/components/Text.js +26 -0
  107. package/dist/components/TextInput.d.ts +15 -0
  108. package/dist/components/TextInput.d.ts.map +1 -0
  109. package/dist/components/TextInput.js +38 -0
  110. package/dist/components/Textarea.d.ts +9 -0
  111. package/dist/components/Textarea.d.ts.map +1 -0
  112. package/dist/components/Textarea.js +26 -0
  113. package/dist/components/ThemeProvider.d.ts +30 -0
  114. package/dist/components/ThemeProvider.d.ts.map +1 -0
  115. package/dist/components/ThemeProvider.js +202 -0
  116. package/dist/components/Timeline.d.ts +26 -0
  117. package/dist/components/Timeline.d.ts.map +1 -0
  118. package/dist/components/Timeline.js +47 -0
  119. package/dist/components/ToggleSwitch.d.ts +6 -0
  120. package/dist/components/ToggleSwitch.d.ts.map +1 -0
  121. package/dist/components/ToggleSwitch.js +14 -0
  122. package/dist/components/Token.d.ts +8 -0
  123. package/dist/components/Token.d.ts.map +1 -0
  124. package/dist/components/Token.js +26 -0
  125. package/dist/components/Tooltip.d.ts +7 -0
  126. package/dist/components/Tooltip.d.ts.map +1 -0
  127. package/dist/components/Tooltip.js +15 -0
  128. package/dist/components/Truncate.d.ts +7 -0
  129. package/dist/components/Truncate.d.ts.map +1 -0
  130. package/dist/components/Truncate.js +12 -0
  131. package/dist/components/UnderlineNav.d.ts +11 -0
  132. package/dist/components/UnderlineNav.d.ts.map +1 -0
  133. package/dist/components/UnderlineNav.js +45 -0
  134. package/dist/components/UnderlinePanels.d.ts +14 -0
  135. package/dist/components/UnderlinePanels.d.ts.map +1 -0
  136. package/dist/components/UnderlinePanels.js +28 -0
  137. package/dist/components/deprecated/ActionList.d.ts +23 -0
  138. package/dist/components/deprecated/ActionList.d.ts.map +1 -0
  139. package/dist/components/deprecated/ActionList.js +49 -0
  140. package/dist/components/deprecated/DialogV1.d.ts +11 -0
  141. package/dist/components/deprecated/DialogV1.d.ts.map +1 -0
  142. package/dist/components/deprecated/DialogV1.js +44 -0
  143. package/dist/components/deprecated/Octicon.d.ts +17 -0
  144. package/dist/components/deprecated/Octicon.d.ts.map +1 -0
  145. package/dist/components/deprecated/Octicon.js +39 -0
  146. package/dist/components/deprecated/TabNav.d.ts +9 -0
  147. package/dist/components/deprecated/TabNav.d.ts.map +1 -0
  148. package/dist/components/deprecated/TabNav.js +44 -0
  149. package/dist/components/deprecated/Tooltip.d.ts +13 -0
  150. package/dist/components/deprecated/Tooltip.d.ts.map +1 -0
  151. package/dist/components/deprecated/Tooltip.js +32 -0
  152. package/dist/components.json +138 -0
  153. package/dist/deprecated.d.ts +5 -1
  154. package/dist/deprecated.d.ts.map +1 -1
  155. package/dist/deprecated.js +5 -1
  156. package/dist/experimental.d.ts +5 -1
  157. package/dist/experimental.d.ts.map +1 -1
  158. package/dist/experimental.js +5 -1
  159. package/dist/index.d.ts +47 -4
  160. package/dist/index.d.ts.map +1 -1
  161. package/dist/index.js +45 -12
  162. package/dist/polymorphic.d.ts +38 -0
  163. package/dist/polymorphic.d.ts.map +1 -0
  164. package/dist/styled-props.d.ts +4 -0
  165. package/dist/styled-props.d.ts.map +1 -0
  166. package/dist/sx.d.ts +26 -0
  167. package/dist/sx.d.ts.map +1 -0
  168. package/dist/sx.js +8 -0
  169. package/package.json +8 -5
  170. package/dist/utils/createStyledComponent.d.ts +0 -20
  171. package/dist/utils/createStyledComponent.d.ts.map +0 -1
package/README.md CHANGED
@@ -28,6 +28,24 @@ to an alternative styling solution, such as CSS Modules.
28
28
 
29
29
  The documentation for `@primer/react` lives at [primer.style](https://primer.style). There, you'll find detailed documentation on getting started, all of the components, our theme, our principles, and more.
30
30
 
31
+ ## Components List
32
+
33
+ A machine-readable list of all exported components, utilities, and types is available at build time:
34
+
35
+ ```javascript
36
+ import componentsData from '@primer/styled-react/components.json' with {type: 'json'}
37
+
38
+ console.log(componentsData.components) // Array of component names
39
+ console.log(componentsData.utilities) // Array of utility names
40
+ console.log(componentsData.types) // Array of type names
41
+ ```
42
+
43
+ This JSON file is automatically generated during the build process and includes:
44
+
45
+ - `components`: All React components exported by the package
46
+ - `utilities`: Theme utilities and helper functions
47
+ - `types`: TypeScript type definitions
48
+
31
49
  ## 🙌 Contributing
32
50
 
33
51
  We love collaborating with folks inside and outside of GitHub and welcome contributions! If you're interested, check out our [contributing docs](contributor-docs/CONTRIBUTING.md) for more info on how to get started.
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { ActionList as PrimerActionList, type ActionListProps as PrimerActionListProps, type ActionListItemProps as PrimerActionListItemProps, type ActionListLinkItemProps as PrimerActionListLinkItemProps, type ActionListGroupProps as PrimerActionListGroupProps, type ActionListDividerProps as PrimerActionListDividerProps, type ActionListLeadingVisualProps as PrimerActionListLeadingVisualProps, type ActionListTrailingVisualProps as PrimerActionListTrailingVisualProps, type SlotMarker } from '@primer/react';
3
+ import { type SxProp } from '../sx';
4
+ import type { ForwardRefComponent } from '../polymorphic';
5
+ type PrimerActionListTrailingActionProps = React.ComponentProps<typeof PrimerActionList.TrailingAction>;
6
+ export type ActionListProps<As extends React.ElementType = 'ul'> = PrimerActionListProps<As> & SxProp;
7
+ export type ActionListItemProps = React.PropsWithChildren<PrimerActionListItemProps & SxProp>;
8
+ export type ActionListLinkItemProps = React.PropsWithChildren<PrimerActionListLinkItemProps & SxProp> & {
9
+ as?: React.ElementType;
10
+ };
11
+ export type ActionListGroupProps = React.PropsWithChildren<PrimerActionListGroupProps & SxProp> & {
12
+ as?: React.ElementType;
13
+ };
14
+ export type ActionListDividerProps = React.PropsWithChildren<PrimerActionListDividerProps & SxProp>;
15
+ export type ActionListLeadingVisualProps = React.PropsWithChildren<PrimerActionListLeadingVisualProps & SxProp> & {
16
+ as?: React.ElementType;
17
+ };
18
+ export type ActionListTrailingVisualProps = React.PropsWithChildren<PrimerActionListTrailingVisualProps & SxProp> & {
19
+ as?: React.ElementType;
20
+ };
21
+ export type ActionListTrailingActionProps = React.PropsWithChildren<PrimerActionListTrailingActionProps & SxProp>;
22
+ declare const ActionListImpl: React.ForwardRefExoticComponent<Omit<ActionListProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>>;
23
+ declare const ActionListLinkItem: ForwardRefComponent<"a", ActionListLinkItemProps> & SlotMarker;
24
+ type TrailingActionElements = 'button' | 'a';
25
+ declare const ActionListTrailingAction: ForwardRefComponent<TrailingActionElements, ActionListTrailingActionProps> & SlotMarker;
26
+ declare const ActionListItem: ForwardRefComponent<"li", ActionListItemProps> & SlotMarker;
27
+ declare const ActionListGroup: React.ComponentType<ActionListGroupProps> & SlotMarker;
28
+ declare const ActionListDivider: React.ComponentType<ActionListDividerProps> & SlotMarker;
29
+ declare const ActionListLeadingVisual: React.ComponentType<ActionListLeadingVisualProps> & SlotMarker;
30
+ declare const ActionListTrailingVisual: React.ComponentType<ActionListTrailingVisualProps> & SlotMarker;
31
+ export declare const ActionList: typeof ActionListImpl & {
32
+ Item: typeof ActionListItem;
33
+ LinkItem: typeof ActionListLinkItem;
34
+ Group: typeof ActionListGroup;
35
+ GroupHeading: typeof PrimerActionList.GroupHeading;
36
+ Divider: typeof ActionListDivider;
37
+ Description: typeof PrimerActionList.Description;
38
+ LeadingVisual: typeof ActionListLeadingVisual;
39
+ TrailingVisual: typeof ActionListTrailingVisual;
40
+ Heading: typeof PrimerActionList.Heading;
41
+ TrailingAction: typeof ActionListTrailingAction;
42
+ } & SlotMarker;
43
+ export {};
44
+ //# sourceMappingURL=ActionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionList.d.ts","sourceRoot":"","sources":["../../src/components/ActionList.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,163 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { ActionList as ActionList$1 } from '@primer/react';
4
+ import sx from '../sx.js';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ const StyledActionList = styled(ActionList$1).withConfig({
8
+ shouldForwardProp: prop => prop !== 'sx'
9
+ }).withConfig({
10
+ displayName: "ActionList__StyledActionList",
11
+ componentId: "sc-hw2362-0"
12
+ })(["", ""], sx);
13
+ const ActionListImpl = /*#__PURE__*/React.forwardRef(function ActionListImpl({
14
+ as,
15
+ ...rest
16
+ }, ref) {
17
+ return /*#__PURE__*/jsx(StyledActionList, {
18
+ ref: ref,
19
+ ...rest,
20
+ ...(as ? {
21
+ forwardedAs: as
22
+ } : {})
23
+ });
24
+ });
25
+ const StyledActionListLinkItem = styled(ActionList$1.LinkItem).withConfig({
26
+ shouldForwardProp: prop => prop !== 'sx'
27
+ }).withConfig({
28
+ displayName: "ActionList__StyledActionListLinkItem",
29
+ componentId: "sc-hw2362-1"
30
+ })(["", ""], sx);
31
+ const ActionListLinkItem = /*#__PURE__*/React.forwardRef(({
32
+ children,
33
+ as,
34
+ ...props
35
+ }, ref) => /*#__PURE__*/jsx(StyledActionListLinkItem, {
36
+ ref: ref,
37
+ ...props,
38
+ ...(as ? {
39
+ forwardedAs: as
40
+ } : {}),
41
+ children: children
42
+ }));
43
+ ActionListLinkItem.displayName = 'ActionList.LinkItem';
44
+ const StyledActionListTrailingAction = styled(ActionList$1.TrailingAction).withConfig({
45
+ shouldForwardProp: prop => prop !== 'sx'
46
+ }).withConfig({
47
+ displayName: "ActionList__StyledActionListTrailingAction",
48
+ componentId: "sc-hw2362-2"
49
+ })(["", ""], sx);
50
+ const ActionListTrailingAction = /*#__PURE__*/React.forwardRef((props, ref) => {
51
+ const {
52
+ as,
53
+ ...rest
54
+ } = props;
55
+ return /*#__PURE__*/jsx(StyledActionListTrailingAction, {
56
+ ...rest,
57
+ ...(as ? {
58
+ forwardedAs: as
59
+ } : {}),
60
+ ref: ref
61
+ });
62
+ });
63
+ const StyledActionListItem = styled(ActionList$1.Item).withConfig({
64
+ shouldForwardProp: prop => prop !== 'sx'
65
+ }).withConfig({
66
+ displayName: "ActionList__StyledActionListItem",
67
+ componentId: "sc-hw2362-3"
68
+ })(["", ""], sx);
69
+ const ActionListItem = /*#__PURE__*/React.forwardRef(({
70
+ children,
71
+ as,
72
+ ...props
73
+ }, ref) => /*#__PURE__*/jsx(StyledActionListItem, {
74
+ ref: ref,
75
+ ...props,
76
+ ...(as ? {
77
+ forwardedAs: as
78
+ } : {}),
79
+ children: children
80
+ }));
81
+ const StyledActionListGroup = styled(ActionList$1.Group).withConfig({
82
+ shouldForwardProp: prop => prop !== 'sx'
83
+ }).withConfig({
84
+ displayName: "ActionList__StyledActionListGroup",
85
+ componentId: "sc-hw2362-4"
86
+ })(["", ""], sx);
87
+ const ActionListGroup = ({
88
+ children,
89
+ as,
90
+ ...props
91
+ }) => /*#__PURE__*/jsx(StyledActionListGroup, {
92
+ ...props,
93
+ ...(as ? {
94
+ forwardedAs: as
95
+ } : {}),
96
+ children: children
97
+ });
98
+ ActionListGroup.displayName = 'ActionList.Group';
99
+ const ActionListDivider = styled(ActionList$1.Divider).withConfig({
100
+ shouldForwardProp: prop => prop !== 'sx'
101
+ }).withConfig({
102
+ displayName: "ActionList__ActionListDivider",
103
+ componentId: "sc-hw2362-5"
104
+ })(["", ""], sx);
105
+ const StyledActionListLeadingVisual = styled(ActionList$1.LeadingVisual).withConfig({
106
+ shouldForwardProp: prop => prop !== 'sx'
107
+ }).withConfig({
108
+ displayName: "ActionList__StyledActionListLeadingVisual",
109
+ componentId: "sc-hw2362-6"
110
+ })(["", ""], sx);
111
+ const ActionListLeadingVisual = ({
112
+ children,
113
+ as,
114
+ ...props
115
+ }) => /*#__PURE__*/jsx(StyledActionListLeadingVisual, {
116
+ ...props,
117
+ ...(as ? {
118
+ forwardedAs: as
119
+ } : {}),
120
+ children: children
121
+ });
122
+ ActionListLeadingVisual.displayName = 'ActionList.LeadingVisual';
123
+ const StyledActionListTrailingVisual = styled(ActionList$1.TrailingVisual).withConfig({
124
+ shouldForwardProp: prop => prop !== 'sx'
125
+ }).withConfig({
126
+ displayName: "ActionList__StyledActionListTrailingVisual",
127
+ componentId: "sc-hw2362-7"
128
+ })(["", ""], sx);
129
+ const ActionListTrailingVisual = ({
130
+ children,
131
+ as,
132
+ ...props
133
+ }) => /*#__PURE__*/jsx(StyledActionListTrailingVisual, {
134
+ ...props,
135
+ ...(as ? {
136
+ forwardedAs: as
137
+ } : {}),
138
+ children: children
139
+ });
140
+ ActionListTrailingVisual.displayName = 'ActionList.TrailingVisual';
141
+ const ActionList = Object.assign(ActionListImpl, {
142
+ Item: ActionListItem,
143
+ LinkItem: ActionListLinkItem,
144
+ Group: ActionListGroup,
145
+ GroupHeading: ActionList$1.GroupHeading,
146
+ Divider: ActionListDivider,
147
+ Description: ActionList$1.Description,
148
+ LeadingVisual: ActionListLeadingVisual,
149
+ TrailingVisual: ActionListTrailingVisual,
150
+ Heading: ActionList$1.Heading,
151
+ TrailingAction: ActionListTrailingAction
152
+ });
153
+
154
+ // Assign slot markers after component definitions
155
+ ActionListItem.__SLOT__ = ActionList$1.Item.__SLOT__;
156
+ ActionListLinkItem.__SLOT__ = ActionList$1.LinkItem.__SLOT__;
157
+ ActionListGroup.__SLOT__ = ActionList$1.Group.__SLOT__;
158
+ ActionListDivider.__SLOT__ = ActionList$1.Divider.__SLOT__;
159
+ ActionListLeadingVisual.__SLOT__ = ActionList$1.LeadingVisual.__SLOT__;
160
+ ActionListTrailingVisual.__SLOT__ = ActionList$1.TrailingVisual.__SLOT__;
161
+ ActionListTrailingAction.__SLOT__ = ActionList$1.TrailingAction.__SLOT__;
162
+
163
+ export { ActionList };
@@ -0,0 +1,13 @@
1
+ import { ActionMenu as PrimerActionMenu, type SlotMarker } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { ComponentProps } from 'react';
4
+ type ActionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
5
+ declare const ActionMenuOverlay: React.ComponentType<ActionMenuOverlayProps> & SlotMarker;
6
+ export declare const ActionMenu: typeof PrimerActionMenu & {
7
+ Button: typeof PrimerActionMenu.Button;
8
+ Anchor: typeof PrimerActionMenu.Anchor;
9
+ Overlay: typeof ActionMenuOverlay;
10
+ Divider: typeof PrimerActionMenu.Divider;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=ActionMenu.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,19 @@
1
+ import { ActionMenu as ActionMenu$1 } from '@primer/react';
2
+ import sx from '../sx.js';
3
+ import styled from 'styled-components';
4
+
5
+ const ActionMenuOverlay = styled(ActionMenu$1.Overlay).withConfig({
6
+ shouldForwardProp: prop => prop !== 'sx'
7
+ }).withConfig({
8
+ displayName: "ActionMenu__ActionMenuOverlay",
9
+ componentId: "sc-w5s60e-0"
10
+ })(["", ""], sx);
11
+ const ActionMenu = Object.assign(ActionMenu$1, {
12
+ Button: ActionMenu$1.Button,
13
+ Anchor: ActionMenu$1.Anchor,
14
+ Overlay: ActionMenuOverlay,
15
+ Divider: ActionMenu$1.Divider
16
+ });
17
+ ActionMenuOverlay.__SLOT__ = ActionMenu$1.Overlay.__SLOT__;
18
+
19
+ export { ActionMenu };
@@ -0,0 +1,17 @@
1
+ import { Autocomplete as PrimerAutocomplete, type AutocompleteOverlayProps as PrimerAutocompleteOverlayProps, type AutocompleteInputProps as PrimerAutocompleteInputProps, type SlotMarker } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { ComponentProps } from 'react';
4
+ export type AutocompleteOverlayProps = PrimerAutocompleteOverlayProps & SxProp;
5
+ declare const AutocompleteOverlay: React.ComponentType<AutocompleteOverlayProps> & SlotMarker;
6
+ export type AutocompleteInputProps = PrimerAutocompleteInputProps & SxProp;
7
+ declare const AutocompleteInput: React.ComponentType<AutocompleteInputProps>;
8
+ interface AutocompleteExport {
9
+ (props: ComponentProps<typeof PrimerAutocomplete>): React.ReactNode;
10
+ Context: typeof PrimerAutocomplete.Context;
11
+ Input: typeof AutocompleteInput;
12
+ Menu: typeof PrimerAutocomplete.Menu;
13
+ Overlay: typeof AutocompleteOverlay;
14
+ }
15
+ declare const Autocomplete: AutocompleteExport;
16
+ export { Autocomplete };
17
+ //# sourceMappingURL=Autocomplete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../src/components/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,KAAK,wBAAwB,IAAI,8BAA8B,EAC/D,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,GAAG,MAAM,CAAA;AAE9E,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,GAAG,UAM1E,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAIlE,CAAA;AAED,UAAU,kBAAkB;IAC1B,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG,KAAK,CAAC,SAAS,CAAA;IACnE,OAAO,EAAE,OAAO,kBAAkB,CAAC,OAAO,CAAA;IAC1C,KAAK,EAAE,OAAO,iBAAiB,CAAA;IAC/B,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAA;IACpC,OAAO,EAAE,OAAO,mBAAmB,CAAA;CACpC;AAED,QAAA,MAAM,YAAY,EAAE,kBAKlB,CAAA;AAIF,OAAO,EAAC,YAAY,EAAC,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { Autocomplete as Autocomplete$1 } from '@primer/react';
2
+ import sx from '../sx.js';
3
+ import styled from 'styled-components';
4
+
5
+ const AutocompleteOverlay = styled(Autocomplete$1.Overlay).withConfig({
6
+ shouldForwardProp: prop => prop !== 'sx'
7
+ }).withConfig({
8
+ displayName: "Autocomplete__AutocompleteOverlay",
9
+ componentId: "sc-j8ax2e-0"
10
+ })(["", ""], sx);
11
+ const AutocompleteInput = styled(Autocomplete$1.Input).withConfig({
12
+ shouldForwardProp: prop => prop !== 'sx'
13
+ }).withConfig({
14
+ displayName: "Autocomplete__AutocompleteInput",
15
+ componentId: "sc-j8ax2e-1"
16
+ })(["", ""], sx);
17
+ const Autocomplete = Object.assign(Autocomplete$1, {
18
+ Context: Autocomplete$1.Context,
19
+ Input: AutocompleteInput,
20
+ Menu: Autocomplete$1.Menu,
21
+ Overlay: AutocompleteOverlay
22
+ });
23
+ AutocompleteOverlay.__SLOT__ = Autocomplete$1.Overlay.__SLOT__;
24
+
25
+ export { Autocomplete };
@@ -0,0 +1,13 @@
1
+ import { type AvatarProps as PrimerAvatarProps } from '@primer/react';
2
+ import type { StyledProps } from '../styled-props';
3
+ type AvatarProps = PrimerAvatarProps & StyledProps;
4
+ declare const Avatar: import("react").ForwardRefExoticComponent<{
5
+ size?: number | import("@primer/react").ResponsiveValue<number>;
6
+ square?: boolean;
7
+ src: string;
8
+ alt?: string;
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>>;
11
+ export { Avatar };
12
+ export type { AvatarProps };
13
+ //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,14 @@
1
+ import { Avatar as Avatar$1 } from '@primer/react';
2
+ import { forwardRef } from 'react';
3
+ import Box from './Box.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
7
+ return /*#__PURE__*/jsx(Box, {
8
+ as: Avatar$1,
9
+ ref: ref,
10
+ ...props
11
+ });
12
+ });
13
+
14
+ export { Avatar };
@@ -0,0 +1,17 @@
1
+ import type React from 'react';
2
+ import { type CSSProperties, type PropsWithChildren } from 'react';
3
+ import type * as styledSystem from 'styled-system';
4
+ import 'focus-visible';
5
+ export interface SystemCommonProps extends styledSystem.ColorProps, styledSystem.SpaceProps, styledSystem.DisplayProps {
6
+ }
7
+ export interface SystemTypographyProps extends styledSystem.TypographyProps {
8
+ whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line';
9
+ }
10
+ export type BaseStylesProps = PropsWithChildren & {
11
+ as?: React.ComponentType<any> | keyof JSX.IntrinsicElements;
12
+ className?: string;
13
+ style?: CSSProperties;
14
+ color?: string;
15
+ } & SystemTypographyProps & SystemCommonProps;
16
+ export declare function BaseStyles({ children, color, fontFamily, lineHeight, className, as: Component, style, ...rest }: BaseStylesProps): React.JSX.Element;
17
+ //# sourceMappingURL=BaseStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../../src/components/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAGhE,OAAO,KAAK,KAAK,YAAY,MAAM,eAAe,CAAA;AAGlD,OAAO,eAAe,CAAA;AAGtB,MAAM,WAAW,iBACf,SAAQ,YAAY,CAAC,UAAU,EAC7B,YAAY,CAAC,UAAU,EACvB,YAAY,CAAC,YAAY;CAAG;AAEhC,MAAM,WAAW,qBAAsB,SAAQ,YAAY,CAAC,eAAe;IACzE,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAA;CACnE;AAqFD,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,qBAAqB,GACvB,iBAAiB,CAAA;AAEnB,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,EAAE,EAAE,SAAiB,EACrB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,qBA+BjB"}
@@ -0,0 +1,51 @@
1
+ import { clsx } from 'clsx';
2
+ import { useTheme } from './ThemeProvider.js';
3
+ import 'focus-visible';
4
+ import { createGlobalStyle } from 'styled-components';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ const GlobalStyle = createGlobalStyle(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[data-color-mode='light'] input{color-scheme:light;}[data-color-mode='dark'] input{color-scheme:dark;}@media (prefers-color-scheme:light){[data-color-mode='auto'][data-light-theme*='light']{color-scheme:light;}}@media (prefers-color-scheme:dark){[data-color-mode='auto'][data-dark-theme*='dark']{color-scheme:dark;}}[role='button']:focus:not(:focus-visible):not(:global(.focus-visible)),[role='tabpanel'][tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),button:focus:not(:focus-visible):not(:global(.focus-visible)),summary:focus:not(:focus-visible):not(:global(.focus-visible)),a:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;box-shadow:none;}[tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),details-dialog:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;}.BaseStyles{font-family:var(--BaseStyles-fontFamily,var(--fontStack-system));line-height:var(--BaseStyles-lineHeight,1.5);color:var(--BaseStyles-fgColor,var(--fgColor-default));&:has([data-color-mode='light']){input &{color-scheme:light;}}&:has([data-color-mode='dark']){input &{color-scheme:dark;}}:where(a:not([class*='prc-']):not([class*='PRC-']):not([class*='Primer_Brand__'])){color:var(--fgColor-accent,var(--color-accent-fg));text-decoration:none;&:hover{text-decoration:underline;}}}"]);
8
+ function BaseStyles({
9
+ children,
10
+ color,
11
+ fontFamily,
12
+ lineHeight,
13
+ className,
14
+ as: Component = 'div',
15
+ style,
16
+ ...rest
17
+ }) {
18
+ const {
19
+ colorMode,
20
+ colorScheme,
21
+ dayScheme,
22
+ nightScheme
23
+ } = useTheme();
24
+ const baseStyles = {
25
+ ['--BaseStyles-fgColor']: color,
26
+ ['--BaseStyles-fontFamily']: fontFamily,
27
+ ['--BaseStyles-lineHeight']: lineHeight
28
+ };
29
+ return /*#__PURE__*/jsxs(Component, {
30
+ className: clsx('BaseStyles', className),
31
+ "data-portal-root": true
32
+ /**
33
+ * We need to map valid primer/react color modes onto valid color modes for primer/primitives
34
+ * valid color modes for primer/primitives: auto | light | dark
35
+ * valid color modes for primer/primer: auto | day | night | light | dark
36
+ */,
37
+ "data-color-mode": colorMode === 'auto' ? 'auto' : colorScheme?.includes('dark') ? 'dark' : 'light',
38
+ "data-light-theme": dayScheme,
39
+ "data-dark-theme": nightScheme,
40
+ style: {
41
+ ...baseStyles,
42
+ ...style
43
+ },
44
+ ...rest,
45
+ children: [/*#__PURE__*/jsx(GlobalStyle, {
46
+ colorScheme: colorScheme?.includes('dark') ? 'dark' : 'light'
47
+ }), children]
48
+ });
49
+ }
50
+
51
+ export { BaseStyles };
@@ -0,0 +1,19 @@
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 };
19
+ //# sourceMappingURL=Box.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,15 @@
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 };
@@ -0,0 +1,18 @@
1
+ import type { BreadcrumbsProps as PrimerBreadcrumbsProps, BreadcrumbsItemProps as PrimerBreadcrumbsItemsProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import { type ForwardRefComponent } from '../polymorphic';
4
+ import type React from 'react';
5
+ type BreadcrumbsProps = PrimerBreadcrumbsProps & SxProp;
6
+ type BreadcrumbsItemProps<As extends React.ElementType = 'a'> = PrimerBreadcrumbsItemsProps<As> & SxProp;
7
+ declare function BreadcrumbsItem<As extends React.ElementType = 'a'>({ as, ...props }: BreadcrumbsItemProps<As>): React.JSX.Element;
8
+ declare const Breadcrumbs: ForwardRefComponent<'nav', BreadcrumbsProps> & {
9
+ Item: typeof BreadcrumbsItem;
10
+ };
11
+ /**
12
+ * @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
13
+ */
14
+ declare const Breadcrumb: ForwardRefComponent<"nav", BreadcrumbsProps> & {
15
+ Item: typeof BreadcrumbsItem;
16
+ };
17
+ export { Breadcrumbs, Breadcrumb, type BreadcrumbsProps, type BreadcrumbsItemProps };
18
+ //# sourceMappingURL=Breadcrumbs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/components/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,IAAI,sBAAsB,EAC1C,oBAAoB,IAAI,2BAA2B,EACpD,MAAM,eAAe,CAAA;AACtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,KAAK,gBAAgB,GAAG,sBAAsB,GAAG,MAAM,CAAA;AACvD,KAAK,oBAAoB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,2BAA2B,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAgBxG,iBAAS,eAAe,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,EAAE,EAAC,EAAE,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,EAAE,CAAC,qBAEpG;AAED,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG;IAAC,IAAI,EAAE,OAAO,eAAe,CAAA;CAG9F,CAAA;AAED;;GAEG;AACH,QAAA,MAAM,UAAU;UARyD,OAAO,eAAe;CAQjE,CAAA;AAE9B,OAAO,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAC,CAAA"}
@@ -0,0 +1,38 @@
1
+ import { Breadcrumbs as Breadcrumbs$1 } from '@primer/react';
2
+ import sx from '../sx.js';
3
+ import styled from 'styled-components';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const BreadcrumbsImpl = styled(Breadcrumbs$1).withConfig({
7
+ shouldForwardProp: prop => prop !== 'sx'
8
+ }).withConfig({
9
+ displayName: "Breadcrumbs__BreadcrumbsImpl",
10
+ componentId: "sc-1qj8pw-0"
11
+ })(["", ""], sx);
12
+ const StyledBreadcrumbsItem = styled(Breadcrumbs$1.Item).withConfig({
13
+ shouldForwardProp: prop => prop !== 'sx'
14
+ }).withConfig({
15
+ displayName: "Breadcrumbs__StyledBreadcrumbsItem",
16
+ componentId: "sc-1qj8pw-1"
17
+ })(["", ""], sx);
18
+ function BreadcrumbsItem({
19
+ as,
20
+ ...props
21
+ }) {
22
+ return /*#__PURE__*/jsx(StyledBreadcrumbsItem, {
23
+ ...props,
24
+ ...(as ? {
25
+ forwardedAs: as
26
+ } : {})
27
+ });
28
+ }
29
+ const Breadcrumbs = Object.assign(BreadcrumbsImpl, {
30
+ Item: BreadcrumbsItem
31
+ });
32
+
33
+ /**
34
+ * @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
35
+ */
36
+ const Breadcrumb = Breadcrumbs;
37
+
38
+ export { Breadcrumb, Breadcrumbs };
@@ -0,0 +1,12 @@
1
+ import { type ButtonProps as PrimerButtonProps, type SlotMarker } from '@primer/react';
2
+ import type { SxProp, BetterSystemStyleObject } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
+ type ButtonComponentProps = PrimerButtonProps & SxProp & {
5
+ as?: React.ElementType;
6
+ };
7
+ declare const ButtonComponent: ForwardRefComponent<"button", ButtonComponentProps> & SlotMarker;
8
+ export declare function generateCustomSxProp(props: Partial<Pick<PrimerButtonProps, 'size' | 'block' | 'leadingVisual' | 'trailingVisual' | 'trailingAction'>>, providedSx: BetterSystemStyleObject): {
9
+ [key: string]: BetterSystemStyleObject;
10
+ };
11
+ export { ButtonComponent, type ButtonComponentProps };
12
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +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,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"}