@primer/styled-react 0.0.0-20260325190039 → 0.0.0-20260325221512

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 (141) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +5 -0
  2. package/dist/_virtual/cjs.js +7 -0
  3. package/dist/_virtual/focus-visible.js +3 -0
  4. package/dist/_virtual/focus-visible2.js +3 -0
  5. package/dist/components.json +0 -4
  6. package/dist/node_modules/clsx/dist/clsx.js +3 -0
  7. package/dist/node_modules/deepmerge/dist/cjs.js +142 -0
  8. package/dist/node_modules/focus-visible/dist/focus-visible.js +324 -0
  9. package/dist/{components → packages/styled-react/src/components}/BaseStyles.js +2 -2
  10. package/dist/{components → packages/styled-react/src/components}/ThemeProvider.js +82 -40
  11. package/dist/{index.js → packages/styled-react/src/index.js} +1 -3
  12. package/dist/{sx.js → packages/styled-react/src/sx.js} +1 -1
  13. package/package.json +4 -4
  14. package/dist/components/ActionList.d.ts +0 -44
  15. package/dist/components/ActionList.d.ts.map +0 -1
  16. package/dist/components/ActionMenu.d.ts +0 -13
  17. package/dist/components/ActionMenu.d.ts.map +0 -1
  18. package/dist/components/Avatar.d.ts +0 -13
  19. package/dist/components/Avatar.d.ts.map +0 -1
  20. package/dist/components/Avatar.js +0 -14
  21. package/dist/components/BaseStyles.d.ts +0 -17
  22. package/dist/components/BaseStyles.d.ts.map +0 -1
  23. package/dist/components/Box.d.ts +0 -19
  24. package/dist/components/Box.d.ts.map +0 -1
  25. package/dist/components/Breadcrumbs.d.ts +0 -18
  26. package/dist/components/Breadcrumbs.d.ts.map +0 -1
  27. package/dist/components/Button.d.ts +0 -12
  28. package/dist/components/Button.d.ts.map +0 -1
  29. package/dist/components/Button.stories.d.ts +0 -8
  30. package/dist/components/Button.stories.d.ts.map +0 -1
  31. package/dist/components/CounterLabel.d.ts +0 -11
  32. package/dist/components/CounterLabel.d.ts.map +0 -1
  33. package/dist/components/DataTable.d.ts +0 -11
  34. package/dist/components/DataTable.d.ts.map +0 -1
  35. package/dist/components/Dialog.d.ts +0 -30
  36. package/dist/components/Dialog.d.ts.map +0 -1
  37. package/dist/components/Flash.d.ts +0 -8
  38. package/dist/components/Flash.d.ts.map +0 -1
  39. package/dist/components/FormControl.d.ts +0 -13
  40. package/dist/components/FormControl.d.ts.map +0 -1
  41. package/dist/components/Header.d.ts +0 -11
  42. package/dist/components/Header.d.ts.map +0 -1
  43. package/dist/components/Heading.d.ts +0 -8
  44. package/dist/components/Heading.d.ts.map +0 -1
  45. package/dist/components/IconButton.d.ts +0 -10
  46. package/dist/components/IconButton.d.ts.map +0 -1
  47. package/dist/components/Label.d.ts +0 -9
  48. package/dist/components/Label.d.ts.map +0 -1
  49. package/dist/components/Link.d.ts +0 -7
  50. package/dist/components/Link.d.ts.map +0 -1
  51. package/dist/components/LinkButton.d.ts +0 -8
  52. package/dist/components/LinkButton.d.ts.map +0 -1
  53. package/dist/components/Overlay.d.ts +0 -8
  54. package/dist/components/Overlay.d.ts.map +0 -1
  55. package/dist/components/PageHeader.d.ts +0 -31
  56. package/dist/components/PageHeader.d.ts.map +0 -1
  57. package/dist/components/SegmentedControl.d.ts +0 -19
  58. package/dist/components/SegmentedControl.d.ts.map +0 -1
  59. package/dist/components/Spinner.d.ts +0 -5
  60. package/dist/components/Spinner.d.ts.map +0 -1
  61. package/dist/components/Text.d.ts +0 -15
  62. package/dist/components/Text.d.ts.map +0 -1
  63. package/dist/components/TextInput.d.ts +0 -15
  64. package/dist/components/TextInput.d.ts.map +0 -1
  65. package/dist/components/Textarea.d.ts +0 -9
  66. package/dist/components/Textarea.d.ts.map +0 -1
  67. package/dist/components/Textarea.js +0 -26
  68. package/dist/components/ThemeProvider.d.ts +0 -30
  69. package/dist/components/ThemeProvider.d.ts.map +0 -1
  70. package/dist/components/Timeline.d.ts +0 -26
  71. package/dist/components/Timeline.d.ts.map +0 -1
  72. package/dist/components/ToggleSwitch.d.ts +0 -6
  73. package/dist/components/ToggleSwitch.d.ts.map +0 -1
  74. package/dist/components/Token.d.ts +0 -8
  75. package/dist/components/Token.d.ts.map +0 -1
  76. package/dist/components/Tooltip.d.ts +0 -7
  77. package/dist/components/Tooltip.d.ts.map +0 -1
  78. package/dist/components/Truncate.d.ts +0 -7
  79. package/dist/components/Truncate.d.ts.map +0 -1
  80. package/dist/components/UnderlineNav.d.ts +0 -11
  81. package/dist/components/UnderlineNav.d.ts.map +0 -1
  82. package/dist/components/deprecated/ActionList.d.ts +0 -23
  83. package/dist/components/deprecated/ActionList.d.ts.map +0 -1
  84. package/dist/components/deprecated/DialogV1.d.ts +0 -11
  85. package/dist/components/deprecated/DialogV1.d.ts.map +0 -1
  86. package/dist/components/deprecated/Octicon.d.ts +0 -17
  87. package/dist/components/deprecated/Octicon.d.ts.map +0 -1
  88. package/dist/components/deprecated/TabNav.d.ts +0 -9
  89. package/dist/components/deprecated/TabNav.d.ts.map +0 -1
  90. package/dist/components/deprecated/Tooltip.d.ts +0 -13
  91. package/dist/components/deprecated/Tooltip.d.ts.map +0 -1
  92. package/dist/deprecated.d.ts +0 -76
  93. package/dist/deprecated.d.ts.map +0 -1
  94. package/dist/experimental.d.ts +0 -100
  95. package/dist/experimental.d.ts.map +0 -1
  96. package/dist/index.d.ts +0 -461
  97. package/dist/index.d.ts.map +0 -1
  98. package/dist/polymorphic.d.ts +0 -39
  99. package/dist/polymorphic.d.ts.map +0 -1
  100. package/dist/styled-props.d.ts +0 -4
  101. package/dist/styled-props.d.ts.map +0 -1
  102. package/dist/sx.d.ts +0 -26
  103. package/dist/sx.d.ts.map +0 -1
  104. package/dist/theme-get.d.ts +0 -2
  105. package/dist/theme-get.d.ts.map +0 -1
  106. /package/dist/{components → packages/styled-react/src/components}/ActionList.js +0 -0
  107. /package/dist/{components → packages/styled-react/src/components}/ActionMenu.js +0 -0
  108. /package/dist/{components → packages/styled-react/src/components}/Box.js +0 -0
  109. /package/dist/{components → packages/styled-react/src/components}/Breadcrumbs.js +0 -0
  110. /package/dist/{components → packages/styled-react/src/components}/Button.js +0 -0
  111. /package/dist/{components → packages/styled-react/src/components}/CounterLabel.js +0 -0
  112. /package/dist/{components → packages/styled-react/src/components}/DataTable.js +0 -0
  113. /package/dist/{components → packages/styled-react/src/components}/Dialog.js +0 -0
  114. /package/dist/{components → packages/styled-react/src/components}/Flash.js +0 -0
  115. /package/dist/{components → packages/styled-react/src/components}/FormControl.js +0 -0
  116. /package/dist/{components → packages/styled-react/src/components}/Header.js +0 -0
  117. /package/dist/{components → packages/styled-react/src/components}/Heading.js +0 -0
  118. /package/dist/{components → packages/styled-react/src/components}/IconButton.js +0 -0
  119. /package/dist/{components → packages/styled-react/src/components}/Label.js +0 -0
  120. /package/dist/{components → packages/styled-react/src/components}/Link.js +0 -0
  121. /package/dist/{components → packages/styled-react/src/components}/LinkButton.js +0 -0
  122. /package/dist/{components → packages/styled-react/src/components}/Overlay.js +0 -0
  123. /package/dist/{components → packages/styled-react/src/components}/PageHeader.js +0 -0
  124. /package/dist/{components → packages/styled-react/src/components}/SegmentedControl.js +0 -0
  125. /package/dist/{components → packages/styled-react/src/components}/Spinner.js +0 -0
  126. /package/dist/{components → packages/styled-react/src/components}/Text.js +0 -0
  127. /package/dist/{components → packages/styled-react/src/components}/TextInput.js +0 -0
  128. /package/dist/{components → packages/styled-react/src/components}/Timeline.js +0 -0
  129. /package/dist/{components → packages/styled-react/src/components}/ToggleSwitch.js +0 -0
  130. /package/dist/{components → packages/styled-react/src/components}/Token.js +0 -0
  131. /package/dist/{components → packages/styled-react/src/components}/Tooltip.js +0 -0
  132. /package/dist/{components → packages/styled-react/src/components}/Truncate.js +0 -0
  133. /package/dist/{components → packages/styled-react/src/components}/UnderlineNav.js +0 -0
  134. /package/dist/{components → packages/styled-react/src/components}/deprecated/ActionList.js +0 -0
  135. /package/dist/{components → packages/styled-react/src/components}/deprecated/DialogV1.js +0 -0
  136. /package/dist/{components → packages/styled-react/src/components}/deprecated/Octicon.js +0 -0
  137. /package/dist/{components → packages/styled-react/src/components}/deprecated/TabNav.js +0 -0
  138. /package/dist/{components → packages/styled-react/src/components}/deprecated/Tooltip.js +0 -0
  139. /package/dist/{deprecated.js → packages/styled-react/src/deprecated.js} +0 -0
  140. /package/dist/{experimental.js → packages/styled-react/src/experimental.js} +0 -0
  141. /package/dist/{theme-get.js → packages/styled-react/src/theme-get.js} +0 -0
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
+ import ReactDOM from 'react-dom';
2
3
  import { ThemeProvider as ThemeProvider$1 } from 'styled-components';
3
4
  import { theme, useId, useSyncedState } from '@primer/react';
4
- import deepmerge from 'deepmerge';
5
+ import deepmerge from '../../../../_virtual/cjs.js';
5
6
  import { jsx, jsxs } from 'react/jsx-runtime';
6
7
 
7
8
  const defaultColorMode = 'day';
@@ -17,25 +18,15 @@ const ThemeContext = /*#__PURE__*/React.createContext({
17
18
  });
18
19
 
19
20
  // inspired from __NEXT_DATA__, we use application/json to avoid CSRF policy with inline scripts
20
- const serverHandoffCache = new Map();
21
21
  const getServerHandoff = id => {
22
- const cached = serverHandoffCache.get(id);
23
- if (cached !== undefined) return cached;
24
22
  try {
25
23
  const serverData = document.getElementById(`__PRIMER_DATA_${id}__`)?.textContent;
26
- if (serverData) {
27
- const parsed = JSON.parse(serverData);
28
- serverHandoffCache.set(id, parsed);
29
- return parsed;
30
- }
24
+ if (serverData) return JSON.parse(serverData);
31
25
  } catch (_error) {
32
26
  // if document/element does not exist or JSON is invalid, supress error
33
27
  }
34
- const empty = {};
35
- serverHandoffCache.set(id, empty);
36
- return empty;
28
+ return {};
37
29
  };
38
- const emptySubscribe = () => () => {};
39
30
  const ThemeProvider = ({
40
31
  children,
41
32
  ...props
@@ -51,33 +42,56 @@ const ThemeProvider = ({
51
42
  // Initialize state
52
43
  const theme$1 = props.theme ?? fallbackTheme ?? theme;
53
44
  const uniqueDataId = useId();
45
+ const {
46
+ resolvedServerColorMode
47
+ } = getServerHandoff(uniqueDataId);
48
+ const resolvedColorModePassthrough = React.useRef(resolvedServerColorMode);
54
49
  const [colorMode, setColorMode] = useSyncedState(props.colorMode ?? fallbackColorMode ?? defaultColorMode);
55
50
  const [dayScheme, setDayScheme] = useSyncedState(props.dayScheme ?? fallbackDayScheme ?? defaultDayScheme);
56
51
  const [nightScheme, setNightScheme] = useSyncedState(props.nightScheme ?? fallbackNightScheme ?? defaultNightScheme);
57
52
  const systemColorMode = useSystemColorMode();
58
- const clientColorMode = resolveColorMode(colorMode, systemColorMode);
59
- // During SSR/hydration, use the server-rendered color mode from the handoff script tag
60
- // to avoid mismatches. After hydration, resolve from client state.
61
- const resolvedColorMode = React.useSyncExternalStore(emptySubscribe, () => clientColorMode, () => getServerHandoff(uniqueDataId).resolvedServerColorMode ?? clientColorMode);
53
+ // eslint-disable-next-line react-hooks/refs
54
+ const resolvedColorMode = resolvedColorModePassthrough.current || resolveColorMode(colorMode, systemColorMode);
62
55
  const colorScheme = chooseColorScheme(resolvedColorMode, dayScheme, nightScheme);
63
56
  const {
64
57
  resolvedTheme,
65
58
  resolvedColorScheme
66
59
  } = React.useMemo(() => applyColorScheme(theme$1, colorScheme), [theme$1, colorScheme]);
67
- const contextValue = React.useMemo(() => ({
68
- theme: resolvedTheme,
69
- colorScheme,
70
- colorMode,
71
- resolvedColorMode,
72
- resolvedColorScheme,
73
- dayScheme,
74
- nightScheme,
75
- setColorMode,
76
- setDayScheme,
77
- setNightScheme
78
- }), [resolvedTheme, colorScheme, colorMode, resolvedColorMode, resolvedColorScheme, dayScheme, nightScheme, setColorMode, setDayScheme, setNightScheme]);
60
+
61
+ // this effect will only run on client
62
+ React.useEffect(function updateColorModeAfterServerPassthrough() {
63
+ const resolvedColorModeOnClient = resolveColorMode(colorMode, systemColorMode);
64
+ if (resolvedColorModePassthrough.current) {
65
+ // if the resolved color mode passed on from the server is not the resolved color mode on client, change it!
66
+ if (resolvedColorModePassthrough.current !== resolvedColorModeOnClient) {
67
+ window.setTimeout(() => {
68
+ // use ReactDOM.flushSync to prevent automatic batching of state updates since React 18
69
+ // ref: https://github.com/reactwg/react-18/discussions/21
70
+ ReactDOM.flushSync(() => {
71
+ // override colorMode to whatever is resolved on the client to get a re-render
72
+ setColorMode(resolvedColorModeOnClient);
73
+ });
74
+
75
+ // immediately after that, set the colorMode to what the user passed to respond to system color mode changes
76
+ setColorMode(colorMode);
77
+ });
78
+ }
79
+ resolvedColorModePassthrough.current = null;
80
+ }
81
+ }, [colorMode, systemColorMode, setColorMode]);
79
82
  return /*#__PURE__*/jsx(ThemeContext.Provider, {
80
- value: contextValue,
83
+ value: {
84
+ theme: resolvedTheme,
85
+ colorScheme,
86
+ colorMode,
87
+ resolvedColorMode,
88
+ resolvedColorScheme,
89
+ dayScheme,
90
+ nightScheme,
91
+ setColorMode,
92
+ setDayScheme,
93
+ setNightScheme
94
+ },
81
95
  children: /*#__PURE__*/jsxs(ThemeProvider$1, {
82
96
  theme: resolvedTheme,
83
97
  children: [children, props.preventSSRMismatch ? /*#__PURE__*/jsx("script", {
@@ -101,20 +115,48 @@ function useColorSchemeVar(values, fallback) {
101
115
  } = useTheme();
102
116
  return values[colorScheme] ?? fallback;
103
117
  }
104
- function subscribeToSystemColorMode(callback) {
105
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
106
- const media = window?.matchMedia?.('(prefers-color-scheme: dark)');
107
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
108
- media?.addEventListener('change', callback);
109
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
110
- return () => media?.removeEventListener('change', callback);
111
- }
112
118
  function useSystemColorMode() {
113
- return React.useSyncExternalStore(subscribeToSystemColorMode, getSystemColorMode, () => 'day');
119
+ const [systemColorMode, setSystemColorMode] = React.useState(getSystemColorMode);
120
+ React.useEffect(() => {
121
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
122
+ const media = window?.matchMedia?.('(prefers-color-scheme: dark)');
123
+ function matchesMediaToColorMode(matches) {
124
+ return matches ? 'night' : 'day';
125
+ }
126
+ function handleChange(event) {
127
+ const isNight = event.matches;
128
+ setSystemColorMode(matchesMediaToColorMode(isNight));
129
+ }
130
+
131
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
132
+ if (media) {
133
+ // just in case the preference changed before the event listener was attached
134
+ const isNight = media.matches;
135
+ setSystemColorMode(matchesMediaToColorMode(isNight));
136
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
137
+ if (media.addEventListener !== undefined) {
138
+ media.addEventListener('change', handleChange);
139
+ return function cleanup() {
140
+ media.removeEventListener('change', handleChange);
141
+ };
142
+ }
143
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
144
+ else if (media.addListener !== undefined) {
145
+ media.addListener(handleChange);
146
+ return function cleanup() {
147
+ media.removeListener(handleChange);
148
+ };
149
+ }
150
+ }
151
+ }, []);
152
+ return systemColorMode;
114
153
  }
115
154
  function getSystemColorMode() {
116
155
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
117
- return window?.matchMedia?.('(prefers-color-scheme: dark)')?.matches ? 'night' : 'day';
156
+ if (typeof window !== 'undefined' && window.matchMedia?.('(prefers-color-scheme: dark)')?.matches) {
157
+ return 'night';
158
+ }
159
+ return 'day';
118
160
  }
119
161
  function resolveColorMode(colorMode, systemColorMode) {
120
162
  switch (colorMode) {
@@ -6,7 +6,6 @@ export { theme } from '@primer/react';
6
6
  export { get as themeGet } from './theme-get.js';
7
7
  export { ActionList } from './components/ActionList.js';
8
8
  export { ActionMenu } from './components/ActionMenu.js';
9
- export { Avatar } from './components/Avatar.js';
10
9
  export { Breadcrumb, Breadcrumbs } from './components/Breadcrumbs.js';
11
10
  export { ButtonComponent as Button } from './components/Button.js';
12
11
  export { CounterLabel } from './components/CounterLabel.js';
@@ -24,7 +23,6 @@ export { PageHeader } from './components/PageHeader.js';
24
23
  export { SegmentedControl } from './components/SegmentedControl.js';
25
24
  export { Spinner } from './components/Spinner.js';
26
25
  export { Text } from './components/Text.js';
27
- export { Textarea } from './components/Textarea.js';
28
26
  export { TextInput } from './components/TextInput.js';
29
27
  export { Timeline } from './components/Timeline.js';
30
28
  export { ToggleSwitch } from './components/ToggleSwitch.js';
@@ -33,4 +31,4 @@ export { Token } from './components/Token.js';
33
31
  export { Truncate } from './components/Truncate.js';
34
32
  export { UnderlineNav } from './components/UnderlineNav.js';
35
33
  export { sx } from './sx.js';
36
- export { default as merge } from 'deepmerge';
34
+ export { default as merge } from '../../../_virtual/cjs.js';
@@ -1,5 +1,5 @@
1
1
  import css from '@styled-system/css';
2
- export { default as merge } from 'deepmerge';
2
+ export { default as merge } from '../../../_virtual/cjs.js';
3
3
 
4
4
  // Support CSS custom properties in the `sx` prop
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20260325190039",
3
+ "version": "0.0.0-20260325221512",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -46,9 +46,9 @@
46
46
  "@babel/preset-react": "^7.28.5",
47
47
  "@babel/preset-typescript": "^7.28.5",
48
48
  "@primer/primitives": "10.x || 11.x",
49
- "@primer/react": "0.0.0-20260325190039",
49
+ "@primer/react": "0.0.0-20260325221512",
50
50
  "@rollup/plugin-babel": "^6.1.0",
51
- "@storybook/react-vite": "^10.1.11",
51
+ "@storybook/react-vite": "^10.3.3",
52
52
  "@types/react": "18.3.11",
53
53
  "@types/react-dom": "18.3.1",
54
54
  "@types/styled-components": "^5.1.26",
@@ -67,7 +67,7 @@
67
67
  "typescript": "^5.9.2"
68
68
  },
69
69
  "peerDependencies": {
70
- "@primer/react": "0.0.0-20260325190039",
70
+ "@primer/react": "0.0.0-20260325221512",
71
71
  "@types/react": "18.x || 19.x",
72
72
  "@types/react-dom": "18.x || 19.x",
73
73
  "@types/react-is": "18.x || 19.x",
@@ -1,44 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionList.d.ts","sourceRoot":"","sources":["../../src/components/ActionList.tsx"],"names":[],"mappings":"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"}
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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,13 +0,0 @@
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
@@ -1 +0,0 @@
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,14 +0,0 @@
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 };
@@ -1,17 +0,0 @@
1
- import type React from 'react';
2
- import { type CSSProperties, type PropsWithChildren, type JSX } 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): JSX.Element;
17
- //# sourceMappingURL=BaseStyles.d.ts.map
@@ -1 +0,0 @@
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,EAAE,KAAK,GAAG,EAAC,MAAM,OAAO,CAAA;AAG1E,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,eA+BjB"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EAChB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,cAAc,CAAC,CAAC,IACnB,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,GAAG,KAAK,CAAA;AAEtH,KAAK,cAAc,GAAG,MAAM,GAC1B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA;AAEb;;;;GAIG;AACH,QAAA,MAAM,GAAG,gFAYR,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,CAAA;AACjD,eAAe,GAAG,CAAA;AAClB,OAAO,EAAC,GAAG,EAAC,CAAA"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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,8 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: import("../polymorphic").ForwardRefComponent<"button", import("./Button").ButtonComponentProps> & import("@primer/react").SlotMarker;
4
- };
5
- export default _default;
6
- export declare const WithColor: () => import("react").JSX.Element;
7
- export declare const WithFontSize: () => import("react").JSX.Element;
8
- //# sourceMappingURL=Button.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../src/components/Button.stories.tsx"],"names":[],"mappings":";;;;AAEA,wBAGC;AAED,eAAO,MAAM,SAAS,mCAAgE,CAAA;AAEtF,eAAO,MAAM,YAAY,mCAA0D,CAAA"}
@@ -1,11 +0,0 @@
1
- import { type CounterLabelProps as PrimerCounterLabelProps } from '@primer/react';
2
- import { type SxProp } from '../sx';
3
- export type CounterLabelProps = PrimerCounterLabelProps & SxProp;
4
- export declare const CounterLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
5
- scheme?: "primary" | "secondary";
6
- variant?: "primary" | "secondary";
7
- className?: string;
8
- } & {
9
- children?: import("react").ReactNode | undefined;
10
- } & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
11
- //# sourceMappingURL=CounterLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/components/CounterLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AAGnH,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,eAAO,MAAM,YAAY;;;;;;4DAEvB,CAAA"}
@@ -1,11 +0,0 @@
1
- import { Table as PrimerDataTable, type TableContainerProps } from '@primer/react/experimental';
2
- import { type SxProp } from '../sx';
3
- import type React from 'react';
4
- type DataTableContainerProps<As extends React.ElementType = 'div'> = TableContainerProps<As> & SxProp;
5
- declare function DataTableContainer<As extends React.ElementType = 'div'>({ as, ...rest }: DataTableContainerProps<As>): React.JSX.Element;
6
- declare const Table: typeof PrimerDataTable & {
7
- Container: typeof DataTableContainer;
8
- };
9
- export type { TableProps, TableHeadProps, TableBodyProps, TableRowProps, TableHeaderProps, TableCellProps, TableTitleProps, TableSubtitleProps, TableActionsProps, } from '@primer/react/experimental';
10
- export { Table, type DataTableContainerProps };
11
- //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,eAAe,EAAE,KAAK,mBAAmB,EAAC,MAAM,4BAA4B,CAAA;AAC7F,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,uBAAuB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,IAAI,mBAAmB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAYrG,iBAAS,kBAAkB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,qBAE3G;AAED,QAAA,MAAM,KAAK,EAAE,OAAO,eAAe,GAAG;IACpC,SAAS,EAAE,OAAO,kBAAkB,CAAA;CAIpC,CAAA;AAEF,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAC,KAAK,EAAE,KAAK,uBAAuB,EAAC,CAAA"}
@@ -1,30 +0,0 @@
1
- import type { DialogProps as PrimerDialogProps } from '@primer/react';
2
- import type { SxProp } from '../sx';
3
- import { type PropsWithChildren } from 'react';
4
- type DialogProps = PropsWithChildren<PrimerDialogProps> & SxProp & {
5
- as?: React.ElementType;
6
- };
7
- type StyledBodyProps = React.ComponentProps<'div'> & SxProp & {
8
- as?: React.ElementType;
9
- };
10
- type StyledFooterProps = React.ComponentProps<'div'> & SxProp & {
11
- as?: React.ElementType;
12
- };
13
- declare const Dialog: import("react").ForwardRefExoticComponent<PrimerDialogProps & {
14
- children?: import("react").ReactNode | undefined;
15
- } & SxProp & {
16
- as?: React.ElementType;
17
- } & import("react").RefAttributes<HTMLDivElement>> & {
18
- __SLOT__: symbol;
19
- Buttons: import("react").FC<PropsWithChildren<{
20
- buttons: import("@primer/react").DialogButtonProps[];
21
- }>>;
22
- Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & {
23
- as?: React.ElementType;
24
- } & import("react").RefAttributes<HTMLDivElement>>;
25
- Body: import("react").ForwardRefExoticComponent<Omit<StyledBodyProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
26
- Footer: import("react").ForwardRefExoticComponent<Omit<StyledFooterProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
27
- };
28
- export { Dialog };
29
- export type { DialogProps };
30
- //# sourceMappingURL=Dialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAa,MAAM,eAAe,CAAA;AAC/E,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,OAAO,EAA4C,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEvF,KAAK,WAAW,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAwB3F,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAYtF,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAgBxF,QAAA,MAAM,MAAM;;;SApD6D,KAAK,CAAC,WAAW;;;;;;;aAYhB,KAAK,CAAC,WAAW;;;;CA8CzF,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- import { type FlashProps as PrimerFlashProps } from '@primer/react';
2
- import { type SxProp } from '../sx';
3
- import type { ForwardRefComponent } from '../polymorphic';
4
- type FlashProps = PrimerFlashProps & SxProp;
5
- declare const Flash: ForwardRefComponent<'div', FlashProps>;
6
- export { Flash };
7
- export type { FlashProps };
8
- //# sourceMappingURL=Flash.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Flash.d.ts","sourceRoot":"","sources":["../../src/components/Flash.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,IAAI,gBAAgB,EAAuB,MAAM,eAAe,CAAA;AAEvF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,UAAU,GAAG,gBAAgB,GAAG,MAAM,CAAA;AAE3C,QAAA,MAAM,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAIjD,CAAA;AAED,OAAO,EAAC,KAAK,EAAC,CAAA;AACd,YAAY,EAAC,UAAU,EAAC,CAAA"}
@@ -1,13 +0,0 @@
1
- import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps } from '@primer/react';
2
- import { type PropsWithChildren } from 'react';
3
- import { type SxProp } from '../sx';
4
- type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
5
- declare const FormControlImpl: React.ComponentType<FormControlProps>;
6
- declare const FormControl: typeof FormControlImpl & {
7
- Caption: typeof PrimerFormControl.Caption;
8
- LeadingVisual: typeof PrimerFormControl.LeadingVisual;
9
- Validation: typeof PrimerFormControl.Validation;
10
- Label: typeof PrimerFormControl.Label;
11
- };
12
- export { FormControl, type FormControlProps };
13
- //# sourceMappingURL=FormControl.d.ts.map
@@ -1 +0,0 @@
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,11 +0,0 @@
1
- import { type HeaderProps as PrimerHeaderProps, type HeaderItemProps as PrimerHeaderItemProps, type HeaderLinkProps as PrimerHeaderLinkProps } from '@primer/react';
2
- import type { ForwardRefComponent } from '../polymorphic';
3
- import type { SxProp } from '../sx';
4
- type HeaderProps = PrimerHeaderProps & SxProp;
5
- type HeaderItemProps = PrimerHeaderItemProps & SxProp;
6
- declare const Header: ForwardRefComponent<"header", HeaderProps> & {
7
- Item: import("react").ForwardRefExoticComponent<Omit<HeaderItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
- Link: import("react").ForwardRefExoticComponent<Omit<PrimerHeaderLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
9
- };
10
- export { Header, type HeaderProps };
11
- //# sourceMappingURL=Header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,eAAe,IAAI,qBAAqB,EAG9C,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAU7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAcrD,QAAA,MAAM,MAAM;;;CAGV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- import { type HeadingProps as PrimerHeadingProps } from '@primer/react';
2
- import type { ForwardRefComponent } from '../polymorphic';
3
- import { type SxProp } from '../sx';
4
- type HeadingLevels = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
- type HeadingProps = PrimerHeadingProps & SxProp;
6
- declare const Heading: ForwardRefComponent<HeadingLevels, HeadingProps>;
7
- export { Heading, type HeadingProps };
8
- //# sourceMappingURL=Heading.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../src/components/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;AACrE,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGrC,KAAK,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE5D,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,aAAa,EAAE,YAAY,CAI7D,CAAA;AAED,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -1,10 +0,0 @@
1
- import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker } from '@primer/react';
2
- import { type ForwardRefComponent } from '../polymorphic';
3
- import { type SxProp } from '../sx';
4
- type IconButtonProps = PrimerIconButtonProps & SxProp & {
5
- as?: React.ElementType;
6
- };
7
- declare const IconButton: ForwardRefComponent<"a" | "button", IconButtonProps> & SlotMarker;
8
- export { IconButton };
9
- export type { IconButtonProps };
10
- //# sourceMappingURL=IconButton.d.ts.map
@@ -1 +0,0 @@
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,9 +0,0 @@
1
- import { type LabelProps as PrimerLabelProps } from '@primer/react';
2
- import { type SxProp } from '../sx';
3
- import type { ForwardRefComponent } from '../polymorphic';
4
- type LabelProps = PrimerLabelProps & SxProp & {
5
- as?: React.ElementType;
6
- };
7
- declare const Label: ForwardRefComponent<"span", LabelProps>;
8
- export { Label, type LabelProps };
9
- //# sourceMappingURL=Label.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/components/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,IAAI,gBAAgB,EAAuB,MAAM,eAAe,CAAA;AACvF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,KAAK,UAAU,GAAG,gBAAgB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQtE,QAAA,MAAM,KAAK,EAEL,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AAE7C,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,CAAA"}