@primer/styled-react 0.0.0-20251210204724 → 0.0.0-20260202191621

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 (83) hide show
  1. package/dist/components/ActionList.js +145 -89
  2. package/dist/components/ActionMenu.js +15 -15
  3. package/dist/components/Avatar.js +11 -13
  4. package/dist/components/BaseStyles.js +47 -28
  5. package/dist/components/Box.js +10 -18
  6. package/dist/components/Breadcrumbs.js +32 -22
  7. package/dist/components/Button.js +105 -41
  8. package/dist/components/Button.stories.d.ts +8 -0
  9. package/dist/components/Button.stories.d.ts.map +1 -0
  10. package/dist/components/CounterLabel.js +11 -13
  11. package/dist/components/DataTable.js +27 -19
  12. package/dist/components/Dialog.js +79 -53
  13. package/dist/components/Flash.js +9 -9
  14. package/dist/components/FormControl.js +15 -15
  15. package/dist/components/Header.js +44 -36
  16. package/dist/components/Heading.js +9 -9
  17. package/dist/components/IconButton.js +36 -23
  18. package/dist/components/Label.js +22 -17
  19. package/dist/components/Link.js +22 -17
  20. package/dist/components/LinkButton.js +9 -9
  21. package/dist/components/Overlay.js +9 -9
  22. package/dist/components/PageHeader.js +100 -62
  23. package/dist/components/SegmentedControl.js +25 -27
  24. package/dist/components/Spinner.js +9 -9
  25. package/dist/components/Text.js +22 -17
  26. package/dist/components/TextInput.js +32 -25
  27. package/dist/components/Textarea.js +22 -17
  28. package/dist/components/ThemeProvider.js +185 -132
  29. package/dist/components/Timeline.js +38 -40
  30. package/dist/components/ToggleSwitch.js +11 -13
  31. package/dist/components/Token.js +22 -17
  32. package/dist/components/Tooltip.js +12 -14
  33. package/dist/components/Truncate.js +9 -9
  34. package/dist/components/UnderlineNav.js +39 -27
  35. package/dist/components/deprecated/ActionList.js +39 -34
  36. package/dist/components/deprecated/DialogV1.js +38 -28
  37. package/dist/components/deprecated/Octicon.js +35 -28
  38. package/dist/components/deprecated/TabNav.js +38 -24
  39. package/dist/components/deprecated/Tooltip.js +28 -20
  40. package/dist/components.json +2 -28
  41. package/dist/deprecated.js +5 -7
  42. package/dist/experimental.d.ts +0 -21
  43. package/dist/experimental.d.ts.map +1 -1
  44. package/dist/experimental.js +4 -7
  45. package/dist/index.d.ts +0 -122
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +36 -48
  48. package/dist/sx.js +6 -7
  49. package/dist/theme-get.js +8 -8
  50. package/package.json +11 -7
  51. package/dist/components/Autocomplete.d.ts +0 -17
  52. package/dist/components/Autocomplete.d.ts.map +0 -1
  53. package/dist/components/Autocomplete.js +0 -23
  54. package/dist/components/Checkbox.d.ts +0 -5
  55. package/dist/components/Checkbox.d.ts.map +0 -1
  56. package/dist/components/Checkbox.js +0 -17
  57. package/dist/components/CheckboxGroup.d.ts +0 -34
  58. package/dist/components/CheckboxGroup.d.ts.map +0 -1
  59. package/dist/components/CheckboxGroup.js +0 -41
  60. package/dist/components/CircleBadge.d.ts +0 -8
  61. package/dist/components/CircleBadge.d.ts.map +0 -1
  62. package/dist/components/CircleBadge.js +0 -12
  63. package/dist/components/NavList.d.ts +0 -30
  64. package/dist/components/NavList.d.ts.map +0 -1
  65. package/dist/components/NavList.js +0 -55
  66. package/dist/components/RadioGroup.d.ts +0 -34
  67. package/dist/components/RadioGroup.d.ts.map +0 -1
  68. package/dist/components/RadioGroup.js +0 -41
  69. package/dist/components/RelativeTime.d.ts +0 -6
  70. package/dist/components/RelativeTime.d.ts.map +0 -1
  71. package/dist/components/RelativeTime.js +0 -14
  72. package/dist/components/Select.d.ts +0 -8
  73. package/dist/components/Select.d.ts.map +0 -1
  74. package/dist/components/Select.js +0 -19
  75. package/dist/components/StateLabel.d.ts +0 -10
  76. package/dist/components/StateLabel.d.ts.map +0 -1
  77. package/dist/components/StateLabel.js +0 -16
  78. package/dist/components/SubNav.d.ts +0 -10
  79. package/dist/components/SubNav.d.ts.map +0 -1
  80. package/dist/components/SubNav.js +0 -28
  81. package/dist/components/UnderlinePanels.d.ts +0 -14
  82. package/dist/components/UnderlinePanels.d.ts.map +0 -1
  83. package/dist/components/UnderlinePanels.js +0 -23
package/dist/index.d.ts CHANGED
@@ -10,18 +10,6 @@ Box,
10
10
  */
11
11
  type BoxProps, } from './components/Box';
12
12
  export {
13
- /**
14
- * @deprecated Usage of the `sx` prop with this component is no longer
15
- * supported. Use the component from `@primer/react` with CSS Modules instead.
16
- */
17
- Details, } from '@primer/react';
18
- export {
19
- /**
20
- * @deprecated Usage of the `sx` prop with this component is no longer
21
- * supported. Use the component from `@primer/react` with CSS Modules instead.
22
- */
23
- ProgressBar, } from '@primer/react';
24
- export {
25
13
  /**
26
14
  * @deprecated Theming in JavaScript is no longer supported. Prefer using
27
15
  * `@primer/primitives` and CSS Modules instead.
@@ -118,17 +106,6 @@ export {
118
106
  */
119
107
  ActionMenu, } from './components/ActionMenu';
120
108
  export {
121
- /**
122
- * @deprecated Usage of the `sx` prop with this component is no longer
123
- * supported. Use the component from `@primer/react` with CSS Modules instead.
124
- */
125
- Autocomplete,
126
- /**
127
- * @deprecated Usage of the `sx` prop with this component is no longer
128
- * supported. Use the component from `@primer/react` with CSS Modules instead.
129
- */
130
- type AutocompleteOverlayProps, } from './components/Autocomplete';
131
- export {
132
109
  /**
133
110
  * @deprecated Usage of the `sx` prop with this component is no longer
134
111
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -172,34 +149,6 @@ ButtonComponent as Button,
172
149
  */
173
150
  type ButtonComponentProps as ButtonProps, } from './components/Button';
174
151
  export {
175
- /**
176
- * @deprecated Usage of the `sx` prop with this component is no longer
177
- * supported. Use the component from `@primer/react` with CSS Modules instead.
178
- */
179
- Checkbox,
180
- /**
181
- * @deprecated Usage of the `sx` prop with this component is no longer
182
- * supported. Use the component from `@primer/react` with CSS Modules instead.
183
- */
184
- type CheckboxProps, } from './components/Checkbox';
185
- export {
186
- /**
187
- * @deprecated Usage of the `sx` prop with this component is no longer
188
- * supported. Use the component from `@primer/react` with CSS Modules instead.
189
- */
190
- CheckboxGroup,
191
- /**
192
- * @deprecated Usage of the `sx` prop with this component is no longer
193
- * supported. Use the component from `@primer/react` with CSS Modules instead.
194
- */
195
- type CheckboxGroupProps, } from './components/CheckboxGroup';
196
- export {
197
- /**
198
- * @deprecated Usage of the `sx` prop with this component is no longer
199
- * supported. Use the component from `@primer/react` with CSS Modules instead.
200
- */
201
- CircleBadge, } from './components/CircleBadge';
202
- export {
203
152
  /**
204
153
  * @deprecated Usage of the `sx` prop with this component is no longer
205
154
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -300,17 +249,6 @@ LinkButton,
300
249
  */
301
250
  type LinkButtonProps, } from './components/LinkButton';
302
251
  export {
303
- /**
304
- * @deprecated Usage of the `sx` prop with this component is no longer
305
- * supported. Use the component from `@primer/react` with CSS Modules instead.
306
- */
307
- NavList,
308
- /**
309
- * @deprecated Usage of the `sx` prop with this component is no longer
310
- * supported. Use the component from `@primer/react` with CSS Modules instead.
311
- */
312
- type NavListProps, } from './components/NavList';
313
- export {
314
252
  /**
315
253
  * @deprecated Usage of the `sx` prop with this component is no longer
316
254
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -338,28 +276,6 @@ type PageHeaderActionsProps,
338
276
  */
339
277
  type PageHeaderTitleProps, } from './components/PageHeader';
340
278
  export {
341
- /**
342
- * @deprecated Usage of the `sx` prop with this component is no longer
343
- * supported. Use the component from `@primer/react` with CSS Modules instead.
344
- */
345
- RadioGroup,
346
- /**
347
- * @deprecated Usage of the `sx` prop with this component is no longer
348
- * supported. Use the component from `@primer/react` with CSS Modules instead.
349
- */
350
- type RadioGroupProps, } from './components/RadioGroup';
351
- export {
352
- /**
353
- * @deprecated Usage of the `sx` prop with this component is no longer
354
- * supported. Use the component from `@primer/react` with CSS Modules instead.
355
- */
356
- RelativeTime,
357
- /**
358
- * @deprecated Usage of the `sx` prop with this component is no longer
359
- * supported. Use the component from `@primer/react` with CSS Modules instead.
360
- */
361
- type RelativeTimeProps, } from './components/RelativeTime';
362
- export {
363
279
  /**
364
280
  * @deprecated Usage of the `sx` prop with this component is no longer
365
281
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -381,17 +297,6 @@ type SegmentedControlButtonProps,
381
297
  */
382
298
  type SegmentedControlIconButtonProps, } from './components/SegmentedControl';
383
299
  export {
384
- /**
385
- * @deprecated Usage of the `sx` prop with this component is no longer
386
- * supported. Use the component from `@primer/react` with CSS Modules instead.
387
- */
388
- Select,
389
- /**
390
- * @deprecated Usage of the `sx` prop with this component is no longer
391
- * supported. Use the component from `@primer/react` with CSS Modules instead.
392
- */
393
- type SelectProps, } from './components/Select';
394
- export {
395
300
  /**
396
301
  * @deprecated Usage of the `sx` prop with this component is no longer
397
302
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -403,33 +308,6 @@ Spinner,
403
308
  */
404
309
  type SpinnerProps, } from './components/Spinner';
405
310
  export {
406
- /**
407
- * @deprecated Usage of the `sx` prop with this component is no longer
408
- * supported. Use the component from `@primer/react` with CSS Modules instead.
409
- */
410
- StateLabel,
411
- /**
412
- * @deprecated Usage of the `sx` prop with this component is no longer
413
- * supported. Use the component from `@primer/react` with CSS Modules instead.
414
- */
415
- type StateLabelProps, } from './components/StateLabel';
416
- export {
417
- /**
418
- * @deprecated Usage of the `sx` prop with this component is no longer
419
- * supported. Use the component from `@primer/react` with CSS Modules instead.
420
- */
421
- SubNav,
422
- /**
423
- * @deprecated Usage of the `sx` prop with this component is no longer
424
- * supported. Use the component from `@primer/react` with CSS Modules instead.
425
- */
426
- type SubNavProps,
427
- /**
428
- * @deprecated Usage of the `sx` prop with this component is no longer
429
- * supported. Use the component from `@primer/react` with CSS Modules instead.
430
- */
431
- type SubNavLinkProps, } from './components/SubNav';
432
- export {
433
311
  /**
434
312
  * @deprecated Usage of the `sx` prop with this component is no longer
435
313
  * supported. Use the component from `@primer/react` with CSS Modules instead.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO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AGG;AACH,YAAY;AAEZ;;;GAGG;AACH,KAAK,iBAAiB;AAEtB;;;GAGG;AACH,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAA;AAElC,OAAO;AACL;;;GAGG;AACH,KAAK;AAEL;;;GAGG;AACH,EAAE;AAEF;;;GAGG;AACH,KAAK,MAAM,GACZ,MAAM,MAAM,CAAA;AAEb,OAAO;AACL;;;GAGG;AACH,KAAK,uBAAuB,GAC7B,MAAM,MAAM,CAAA"}
package/dist/index.js CHANGED
@@ -1,48 +1,36 @@
1
- 'use client';
2
-
3
- import { merge, sx } from "./sx.js";
4
- import { Box } from "./components/Box.js";
5
- import { ThemeProvider, useColorSchemeVar, useTheme } from "./components/ThemeProvider.js";
6
- import { BaseStyles } from "./components/BaseStyles.js";
7
- import { get } from "./theme-get.js";
8
- import { ActionList } from "./components/ActionList.js";
9
- import { ActionMenu } from "./components/ActionMenu.js";
10
- import { Autocomplete } from "./components/Autocomplete.js";
11
- import { Avatar } from "./components/Avatar.js";
12
- import { Breadcrumb, Breadcrumbs } from "./components/Breadcrumbs.js";
13
- import { ButtonComponent } from "./components/Button.js";
14
- import { Checkbox } from "./components/Checkbox.js";
15
- import { CheckboxGroup } from "./components/CheckboxGroup.js";
16
- import { CircleBadge } from "./components/CircleBadge.js";
17
- import { CounterLabel } from "./components/CounterLabel.js";
18
- import { Dialog } from "./components/Dialog.js";
19
- import { Flash } from "./components/Flash.js";
20
- import { FormControl } from "./components/FormControl.js";
21
- import { Header } from "./components/Header.js";
22
- import { Heading } from "./components/Heading.js";
23
- import { IconButton } from "./components/IconButton.js";
24
- import { Label } from "./components/Label.js";
25
- import { Link } from "./components/Link.js";
26
- import { LinkButton } from "./components/LinkButton.js";
27
- import { NavList } from "./components/NavList.js";
28
- import { Overlay } from "./components/Overlay.js";
29
- import { PageHeader } from "./components/PageHeader.js";
30
- import { RadioGroup } from "./components/RadioGroup.js";
31
- import { RelativeTime } from "./components/RelativeTime.js";
32
- import { SegmentedControl } from "./components/SegmentedControl.js";
33
- import { Select } from "./components/Select.js";
34
- import { Spinner } from "./components/Spinner.js";
35
- import { StateLabel } from "./components/StateLabel.js";
36
- import { SubNav } from "./components/SubNav.js";
37
- import { Text } from "./components/Text.js";
38
- import { Textarea } from "./components/Textarea.js";
39
- import { TextInput } from "./components/TextInput.js";
40
- import { Timeline } from "./components/Timeline.js";
41
- import { ToggleSwitch } from "./components/ToggleSwitch.js";
42
- import { Tooltip } from "./components/Tooltip.js";
43
- import { Token } from "./components/Token.js";
44
- import { Truncate } from "./components/Truncate.js";
45
- import { UnderlineNav } from "./components/UnderlineNav.js";
46
- import { Details, ProgressBar, theme } from "@primer/react";
47
-
48
- export { ActionList, ActionMenu, Autocomplete, Avatar, BaseStyles, Box, Breadcrumb, Breadcrumbs, ButtonComponent as Button, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Details, Dialog, Flash, FormControl, Header, Heading, IconButton, Label, Link, LinkButton, NavList, Overlay, PageHeader, ProgressBar, RadioGroup, RelativeTime, SegmentedControl, Select, Spinner, StateLabel, SubNav, Text, TextInput, Textarea, ThemeProvider, Timeline, ToggleSwitch, Token, Tooltip, Truncate, UnderlineNav, merge, sx, theme, get as themeGet, useColorSchemeVar, useTheme };
1
+ "use client";
2
+ export { Box } from './components/Box.js';
3
+ export { ThemeProvider, useColorSchemeVar, useTheme } from './components/ThemeProvider.js';
4
+ export { BaseStyles } from './components/BaseStyles.js';
5
+ export { theme } from '@primer/react';
6
+ export { get as themeGet } from './theme-get.js';
7
+ export { ActionList } from './components/ActionList.js';
8
+ export { ActionMenu } from './components/ActionMenu.js';
9
+ export { Avatar } from './components/Avatar.js';
10
+ export { Breadcrumb, Breadcrumbs } from './components/Breadcrumbs.js';
11
+ export { ButtonComponent as Button } from './components/Button.js';
12
+ export { CounterLabel } from './components/CounterLabel.js';
13
+ export { Dialog } from './components/Dialog.js';
14
+ export { Flash } from './components/Flash.js';
15
+ export { FormControl } from './components/FormControl.js';
16
+ export { Header } from './components/Header.js';
17
+ export { Heading } from './components/Heading.js';
18
+ export { IconButton } from './components/IconButton.js';
19
+ export { Label } from './components/Label.js';
20
+ export { Link } from './components/Link.js';
21
+ export { LinkButton } from './components/LinkButton.js';
22
+ export { Overlay } from './components/Overlay.js';
23
+ export { PageHeader } from './components/PageHeader.js';
24
+ export { SegmentedControl } from './components/SegmentedControl.js';
25
+ export { Spinner } from './components/Spinner.js';
26
+ export { Text } from './components/Text.js';
27
+ export { Textarea } from './components/Textarea.js';
28
+ export { TextInput } from './components/TextInput.js';
29
+ export { Timeline } from './components/Timeline.js';
30
+ export { ToggleSwitch } from './components/ToggleSwitch.js';
31
+ export { Tooltip } from './components/Tooltip.js';
32
+ export { Token } from './components/Token.js';
33
+ export { Truncate } from './components/Truncate.js';
34
+ export { UnderlineNav } from './components/UnderlineNav.js';
35
+ export { sx } from './sx.js';
36
+ export { default as merge } from 'deepmerge';
package/dist/sx.js CHANGED
@@ -1,9 +1,8 @@
1
- import css from "@styled-system/css";
2
- import merge from "deepmerge";
1
+ import css from '@styled-system/css';
2
+ export { default as merge } from 'deepmerge';
3
3
 
4
- //#region src/sx.ts
5
- const sx = (props) => css(props.sx);
6
- var sx_default = sx;
4
+ // Support CSS custom properties in the `sx` prop
7
5
 
8
- //#endregion
9
- export { sx_default as default, merge, sx };
6
+ const sx = props => css(props.sx);
7
+
8
+ export { sx };
package/dist/theme-get.js CHANGED
@@ -1,10 +1,10 @@
1
- import * as styledSystem from "styled-system";
2
- import { theme } from "@primer/react";
3
- import { themeGet } from "@styled-system/theme-get";
1
+ import { themeGet } from '@styled-system/theme-get';
2
+ import * as styledSystem from 'styled-system';
3
+ import { theme } from '@primer/react';
4
4
 
5
- //#region src/theme-get.ts
6
- const { get: getKey } = styledSystem;
7
- const get = (key) => themeGet(key, getKey(theme, key));
5
+ const {
6
+ get: getKey
7
+ } = styledSystem;
8
+ const get = key => themeGet(key, getKey(theme, key));
8
9
 
9
- //#endregion
10
- export { get };
10
+ export { get };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/styled-react",
3
- "version": "0.0.0-20251210204724",
3
+ "version": "0.0.0-20260202191621",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -27,8 +27,10 @@
27
27
  },
28
28
  "scripts": {
29
29
  "build": "script/build",
30
+ "build:storybook": "storybook build",
30
31
  "clean": "rimraf dist",
31
32
  "lint:npm": "publint --types",
33
+ "storybook:dev": "storybook dev -p 6007",
32
34
  "type-check": "tsc --noEmit"
33
35
  },
34
36
  "dependencies": {
@@ -38,32 +40,34 @@
38
40
  "@types/styled-system": "^5.1.23",
39
41
  "@types/styled-system__css": "^5.0.16",
40
42
  "@types/styled-system__theme-get": "^5.0.1",
41
- "clsx": "^2.1.1",
42
- "deepmerge": "^4.3.1",
43
- "focus-visible": "^5.2.1",
44
43
  "styled-system": "^5.1.5"
45
44
  },
46
45
  "devDependencies": {
47
46
  "@babel/preset-react": "^7.28.5",
48
47
  "@babel/preset-typescript": "^7.28.5",
49
- "@primer/react": "0.0.0-20251210204724",
48
+ "@primer/primitives": "10.x || 11.x",
49
+ "@primer/react": "0.0.0-20260202191621",
50
50
  "@rollup/plugin-babel": "^6.1.0",
51
+ "@storybook/react-vite": "^10.1.11",
51
52
  "@types/react": "18.3.11",
52
53
  "@types/react-dom": "18.3.1",
53
54
  "@types/styled-components": "^5.1.26",
54
55
  "@vitejs/plugin-react": "^4.3.3",
56
+ "babel-plugin-react-compiler": "^1.0.0",
55
57
  "babel-plugin-styled-components": "2.1.4",
58
+ "postcss-preset-primer": "^0.0.0",
56
59
  "publint": "^0.3.15",
57
60
  "react": "18.3.1",
61
+ "react-compiler-runtime": "^1.0.0",
58
62
  "react-dom": "18.3.1",
59
63
  "rimraf": "^6.0.1",
60
- "rolldown": "^1.0.0-beta.53",
64
+ "rollup": "4.56.0",
61
65
  "rollup-plugin-typescript2": "^0.36.0",
62
66
  "styled-components": "5.3.11",
63
67
  "typescript": "^5.9.2"
64
68
  },
65
69
  "peerDependencies": {
66
- "@primer/react": "0.0.0-20251210204724",
70
+ "@primer/react": "0.0.0-20260202191621",
67
71
  "@types/react": "18.x || 19.x",
68
72
  "@types/react-dom": "18.x || 19.x",
69
73
  "@types/react-is": "18.x || 19.x",
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,23 +0,0 @@
1
- import { sx } from "../sx.js";
2
- import styled from "styled-components";
3
- import { Autocomplete } from "@primer/react";
4
-
5
- //#region src/components/Autocomplete.tsx
6
- const AutocompleteOverlay = styled(Autocomplete.Overlay).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
7
- displayName: "Autocomplete__AutocompleteOverlay",
8
- componentId: "sc-j8ax2e-0"
9
- })(["", ""], sx);
10
- const AutocompleteInput = styled(Autocomplete.Input).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
11
- displayName: "Autocomplete__AutocompleteInput",
12
- componentId: "sc-j8ax2e-1"
13
- })(["", ""], sx);
14
- const Autocomplete$1 = Object.assign(Autocomplete, {
15
- Context: Autocomplete.Context,
16
- Input: AutocompleteInput,
17
- Menu: Autocomplete.Menu,
18
- Overlay: AutocompleteOverlay
19
- });
20
- AutocompleteOverlay.__SLOT__ = Autocomplete.Overlay.__SLOT__;
21
-
22
- //#endregion
23
- export { Autocomplete$1 as Autocomplete };
@@ -1,5 +0,0 @@
1
- import { type CheckboxProps as PrimerCheckboxProps } from '@primer/react';
2
- import { type SxProp } from '../sx';
3
- export type CheckboxProps = PrimerCheckboxProps & SxProp;
4
- export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
5
- //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,IAAI,mBAAmB,EAAkB,MAAM,eAAe,CAAA;AAGpH,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,MAAM,CAAA;AAExD,eAAO,MAAM,QAAQ,yHAEnB,CACD"}
@@ -1,17 +0,0 @@
1
- import { Box } from "./Box.js";
2
- import { Checkbox } from "@primer/react";
3
- import { forwardRef } from "react";
4
- import { jsx } from "react/jsx-runtime";
5
-
6
- //#region src/components/Checkbox.tsx
7
- const Checkbox$1 = /* @__PURE__ */ forwardRef(function Checkbox$2(props, ref) {
8
- return /* @__PURE__ */ jsx(Box, {
9
- as: Checkbox,
10
- ref,
11
- ...props
12
- });
13
- });
14
- Checkbox$1.__SLOT__ = Checkbox.__SLOT__;
15
-
16
- //#endregion
17
- export { Checkbox$1 as Checkbox };
@@ -1,34 +0,0 @@
1
- import { type CheckboxGroupProps as PrimerCheckboxGroupProps } from '@primer/react';
2
- import React, { type PropsWithChildren } from 'react';
3
- import type { SxProp } from '../sx';
4
- export type CheckboxGroupProps = PropsWithChildren<PrimerCheckboxGroupProps> & SxProp;
5
- type CheckboxOrRadioGroupLabelProps = PropsWithChildren<{
6
- className?: string;
7
- visuallyHidden?: boolean;
8
- } & SxProp>;
9
- type CheckboxOrRadioGroupCaptionProps = PropsWithChildren<{
10
- className?: string;
11
- } & SxProp>;
12
- type CheckboxOrRadioGroupValidationProps = PropsWithChildren<{
13
- className?: string;
14
- variant: 'error' | 'success';
15
- } & SxProp>;
16
- export declare const CheckboxGroup: {
17
- (props: CheckboxGroupProps): React.JSX.Element;
18
- __SLOT__: symbol | undefined;
19
- } & {
20
- Label: {
21
- (props: CheckboxOrRadioGroupLabelProps): React.JSX.Element;
22
- __SLOT__: symbol | undefined;
23
- };
24
- Caption: {
25
- (props: CheckboxOrRadioGroupCaptionProps): React.JSX.Element;
26
- __SLOT__: symbol | undefined;
27
- };
28
- Validation: {
29
- (props: CheckboxOrRadioGroupValidationProps): React.JSX.Element;
30
- __SLOT__: symbol | undefined;
31
- };
32
- };
33
- export {};
34
- //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,kBAAkB,IAAI,wBAAwB,EAAC,MAAM,eAAe,CAAA;AACvH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,MAAM,CAAA;AAOrF,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,aAAa;YAlCQ,kBAAkB;;;;gBAWV,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
@@ -1,41 +0,0 @@
1
- import Box_default from "./Box.js";
2
- import { CheckboxGroup } from "@primer/react";
3
- import { jsx } from "react/jsx-runtime";
4
-
5
- //#region src/components/CheckboxGroup.tsx
6
- const CheckboxGroupImpl = (props) => {
7
- return /* @__PURE__ */ jsx(Box_default, {
8
- as: CheckboxGroup,
9
- ...props
10
- });
11
- };
12
- const CheckboxOrRadioGroupLabel = (props) => {
13
- return /* @__PURE__ */ jsx(Box_default, {
14
- as: CheckboxGroup.Label,
15
- ...props
16
- });
17
- };
18
- const CheckboxOrRadioGroupCaption = (props) => {
19
- return /* @__PURE__ */ jsx(Box_default, {
20
- as: CheckboxGroup.Caption,
21
- ...props
22
- });
23
- };
24
- const CheckboxOrRadioGroupValidation = (props) => {
25
- return /* @__PURE__ */ jsx(Box_default, {
26
- as: CheckboxGroup.Validation,
27
- ...props
28
- });
29
- };
30
- const CheckboxGroup$1 = Object.assign(CheckboxGroupImpl, {
31
- Label: CheckboxOrRadioGroupLabel,
32
- Caption: CheckboxOrRadioGroupCaption,
33
- Validation: CheckboxOrRadioGroupValidation
34
- });
35
- CheckboxGroupImpl.__SLOT__ = CheckboxGroup.__SLOT__;
36
- CheckboxOrRadioGroupLabel.__SLOT__ = CheckboxGroup.Label.__SLOT__;
37
- CheckboxOrRadioGroupCaption.__SLOT__ = CheckboxGroup.Caption.__SLOT__;
38
- CheckboxOrRadioGroupValidation.__SLOT__ = CheckboxGroup.Validation.__SLOT__;
39
-
40
- //#endregion
41
- export { CheckboxGroup$1 as CheckboxGroup };
@@ -1,8 +0,0 @@
1
- import { type CircleBadgeProps as PrimerCircleBadgeProps } from '@primer/react';
2
- import { type ForwardRefComponent } from '../polymorphic';
3
- import { type SxProp } from '../sx';
4
- type CircleBadgeProps<As extends React.ElementType> = PrimerCircleBadgeProps<As> & SxProp;
5
- declare const CircleBadge: ForwardRefComponent<React.ElementType, CircleBadgeProps<React.ElementType>>;
6
- export { CircleBadge };
7
- export type { CircleBadgeProps };
8
- //# sourceMappingURL=CircleBadge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,gBAAgB,IAAI,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAE/G,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAW,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,KAAK,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,sBAAsB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAEzF,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAM5F,CAAA;AAED,OAAO,EAAC,WAAW,EAAC,CAAA;AACpB,YAAY,EAAC,gBAAgB,EAAC,CAAA"}
@@ -1,12 +0,0 @@
1
- import sx_default from "../sx.js";
2
- import styled from "styled-components";
3
- import { CircleBadge } from "@primer/react";
4
-
5
- //#region src/components/CircleBadge.tsx
6
- const CircleBadge$1 = styled(CircleBadge).withConfig({ shouldForwardProp: (prop) => prop !== "sx" }).withConfig({
7
- displayName: "CircleBadge",
8
- componentId: "sc-1u7lp3v-0"
9
- })(["", ""], sx_default);
10
-
11
- //#endregion
12
- export { CircleBadge$1 as CircleBadge };
@@ -1,30 +0,0 @@
1
- import { NavList as PrimerNavList } from '@primer/react';
2
- import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
3
- import { type PropsWithChildren } from 'react';
4
- import { type SxProp } from '../sx';
5
- import type { ForwardRefComponent } from '../polymorphic';
6
- type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp & {
7
- as?: React.ElementType;
8
- };
9
- type NavListItemProps = PropsWithChildren<PrimerNavListItemProps> & SxProp & {
10
- as?: React.ElementType;
11
- };
12
- declare const NavListItem: ForwardRefComponent<"a", NavListItemProps>;
13
- type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp & {
14
- as?: React.ElementType;
15
- };
16
- declare const NavListLeadingVisual: ForwardRefComponent<"span", NavListLeadingVisualProps>;
17
- type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
18
- Item: typeof NavListItem;
19
- Group: typeof PrimerNavList.Group;
20
- GroupHeading: typeof PrimerNavList.GroupHeading;
21
- LeadingVisual: typeof NavListLeadingVisual;
22
- SubNav: typeof PrimerNavList.SubNav;
23
- Divider: typeof PrimerNavList.Divider;
24
- TrailingVisual: typeof PrimerNavList.TrailingVisual;
25
- TrailingAction: typeof PrimerNavList.TrailingAction;
26
- GroupExpand: typeof PrimerNavList.GroupExpand;
27
- };
28
- declare const NavList: NavListCompound;
29
- export { NavList, type NavListProps };
30
- //# sourceMappingURL=NavList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAC1C,yBAAyB,IAAI,+BAA+B,EAE7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,YAAY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