@primer/styled-react 1.0.0-rc.7 → 1.0.0-rc.9

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 (117) hide show
  1. package/dist/components/ActionList.d.ts +21 -13
  2. package/dist/components/ActionList.d.ts.map +1 -1
  3. package/dist/components/ActionList.js +162 -0
  4. package/dist/components/ActionMenu.d.ts +2 -2
  5. package/dist/components/ActionMenu.d.ts.map +1 -1
  6. package/dist/components/ActionMenu.js +18 -0
  7. package/dist/components/Autocomplete.d.ts +5 -3
  8. package/dist/components/Autocomplete.d.ts.map +1 -1
  9. package/dist/components/Autocomplete.js +24 -0
  10. package/dist/components/Avatar.js +14 -0
  11. package/dist/components/BaseStyles.d.ts +17 -0
  12. package/dist/components/BaseStyles.d.ts.map +1 -0
  13. package/dist/components/BaseStyles.js +51 -0
  14. package/dist/components/Box.d.ts +18 -1
  15. package/dist/components/Box.d.ts.map +1 -1
  16. package/dist/components/Box.js +15 -0
  17. package/dist/components/Breadcrumbs.js +37 -0
  18. package/dist/components/Button.d.ts +13 -0
  19. package/dist/components/Button.d.ts.map +1 -0
  20. package/dist/components/Button.js +111 -0
  21. package/dist/components/Checkbox.d.ts.map +1 -1
  22. package/dist/components/Checkbox.js +15 -0
  23. package/dist/components/CheckboxGroup.d.ts +16 -4
  24. package/dist/components/CheckboxGroup.d.ts.map +1 -1
  25. package/dist/components/CheckboxGroup.js +43 -0
  26. package/dist/components/CircleBadge.js +11 -0
  27. package/dist/components/CounterLabel.js +14 -0
  28. package/dist/components/DataTable.js +32 -0
  29. package/dist/components/Dialog.js +43 -0
  30. package/dist/components/FeatureFlaggedTheming.d.ts +9 -0
  31. package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
  32. package/dist/components/FeatureFlaggedTheming.js +54 -0
  33. package/dist/components/Flash.js +11 -0
  34. package/dist/components/FormControl.d.ts +12 -0
  35. package/dist/components/FormControl.d.ts.map +1 -0
  36. package/dist/components/FormControl.js +18 -0
  37. package/dist/components/Header.js +52 -0
  38. package/dist/components/Heading.js +11 -0
  39. package/dist/components/IconButton.d.ts +9 -0
  40. package/dist/components/IconButton.d.ts.map +1 -0
  41. package/dist/components/IconButton.js +39 -0
  42. package/dist/components/Label.js +25 -0
  43. package/dist/components/Link.js +25 -0
  44. package/dist/components/LinkButton.js +11 -0
  45. package/dist/components/NavList.d.ts +25 -20
  46. package/dist/components/NavList.d.ts.map +1 -1
  47. package/dist/components/NavList.js +73 -0
  48. package/dist/components/Overlay.js +11 -0
  49. package/dist/components/PageHeader.d.ts.map +1 -1
  50. package/dist/{PageHeader-DCDIR2C1.js → components/PageHeader.js} +5 -41
  51. package/dist/components/PageLayout.d.ts +15 -10
  52. package/dist/components/PageLayout.d.ts.map +1 -1
  53. package/dist/components/PageLayout.js +42 -0
  54. package/dist/components/RadioGroup.d.ts +16 -4
  55. package/dist/components/RadioGroup.d.ts.map +1 -1
  56. package/dist/components/RadioGroup.js +43 -0
  57. package/dist/components/RelativeTime.d.ts.map +1 -1
  58. package/dist/components/RelativeTime.js +14 -0
  59. package/dist/components/SegmentedControl.d.ts +9 -2
  60. package/dist/components/SegmentedControl.d.ts.map +1 -1
  61. package/dist/components/SegmentedControl.js +31 -0
  62. package/dist/components/Select.d.ts +8 -0
  63. package/dist/components/Select.d.ts.map +1 -0
  64. package/dist/components/Select.js +23 -0
  65. package/dist/components/Spinner.js +11 -0
  66. package/dist/components/StateLabel.js +14 -0
  67. package/dist/components/SubNav.d.ts +1 -0
  68. package/dist/components/SubNav.d.ts.map +1 -1
  69. package/dist/components/SubNav.js +26 -0
  70. package/dist/components/Text.d.ts +11 -3
  71. package/dist/components/Text.d.ts.map +1 -1
  72. package/dist/components/Text.js +25 -0
  73. package/dist/components/TextInput.d.ts +15 -0
  74. package/dist/components/TextInput.d.ts.map +1 -0
  75. package/dist/components/TextInput.js +37 -0
  76. package/dist/components/Textarea.d.ts +9 -0
  77. package/dist/components/Textarea.d.ts.map +1 -0
  78. package/dist/components/Textarea.js +25 -0
  79. package/dist/components/ThemeProvider.d.ts +30 -0
  80. package/dist/components/ThemeProvider.d.ts.map +1 -0
  81. package/dist/components/ThemeProvider.js +202 -0
  82. package/dist/components/Timeline.js +47 -0
  83. package/dist/components/ToggleSwitch.js +14 -0
  84. package/dist/components/Token.js +25 -0
  85. package/dist/components/Tooltip.d.ts +2 -6
  86. package/dist/components/Tooltip.d.ts.map +1 -1
  87. package/dist/components/Tooltip.js +15 -0
  88. package/dist/components/Truncate.js +11 -0
  89. package/dist/components/UnderlineNav.js +44 -0
  90. package/dist/components/UnderlinePanels.d.ts +7 -5
  91. package/dist/components/UnderlinePanels.d.ts.map +1 -1
  92. package/dist/components/UnderlinePanels.js +28 -0
  93. package/dist/components/deprecated/ActionList.js +49 -0
  94. package/dist/components/deprecated/DialogV1.js +44 -0
  95. package/dist/components/deprecated/Octicon.js +39 -0
  96. package/dist/components/deprecated/TabNav.js +44 -0
  97. package/dist/components/deprecated/Tooltip.d.ts.map +1 -1
  98. package/dist/components/deprecated/Tooltip.js +32 -0
  99. package/dist/components.json +29 -0
  100. package/dist/deprecated.d.ts +5 -4
  101. package/dist/deprecated.d.ts.map +1 -1
  102. package/dist/deprecated.js +5 -84
  103. package/dist/experimental.d.ts +1 -1
  104. package/dist/experimental.d.ts.map +1 -1
  105. package/dist/experimental.js +5 -32
  106. package/dist/index.d.ts +9 -12
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +43 -511
  109. package/dist/sx.d.ts +3 -0
  110. package/dist/sx.d.ts.map +1 -1
  111. package/package.json +3 -3
  112. package/dist/Tooltip-DIHgr01r.js +0 -152
  113. package/dist/Tooltip-YuSlJ5b_.js +0 -20
  114. package/dist/components/DialogV1.d.ts +0 -11
  115. package/dist/components/DialogV1.d.ts.map +0 -1
  116. package/dist/components/TabNav.d.ts +0 -9
  117. package/dist/components/TabNav.d.ts.map +0 -1
@@ -1,44 +1,8 @@
1
- import { Dialog as Dialog$1, Box, PageHeader as PageHeader$1, sx } from '@primer/react';
2
- import React, { forwardRef } from 'react';
3
- import { jsx } from 'react/jsx-runtime';
1
+ import { PageHeader as PageHeader$1, sx } from '@primer/react';
4
2
  import styled from 'styled-components';
5
-
6
- const DialogImpl = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
7
- // @ts-expect-error - PrimerDialog is not recognized as a valid component type
8
- return /*#__PURE__*/jsx(Box, {
9
- as: Dialog$1,
10
- ref: ref,
11
- ...props
12
- });
13
- });
14
- const DialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
15
- return /*#__PURE__*/jsx(Box, {
16
- as: Dialog$1.Header,
17
- ref: ref,
18
- ...props
19
- });
20
- });
21
- const DialogBody = /*#__PURE__*/forwardRef(function DialogBody(props, ref) {
22
- // @ts-expect-error - PrimerDialog.Body is not recognized as a valid component type
23
- return /*#__PURE__*/jsx(Box, {
24
- as: Dialog$1.Body,
25
- ref: ref,
26
- ...props
27
- });
28
- });
29
- const DialogFooter = /*#__PURE__*/forwardRef(function DialogFooter(props, ref) {
30
- return /*#__PURE__*/jsx(Box, {
31
- as: Dialog$1.Footer,
32
- ref: ref,
33
- ...props
34
- });
35
- });
36
- const Dialog = Object.assign(DialogImpl, {
37
- Buttons: Dialog$1.Buttons,
38
- Header: DialogHeader,
39
- Body: DialogBody,
40
- Footer: DialogFooter
41
- });
3
+ import Box from './Box.js';
4
+ import React from 'react';
5
+ import { jsx } from 'react/jsx-runtime';
42
6
 
43
7
  const StyledPageHeader = styled(PageHeader$1).withConfig({
44
8
  shouldForwardProp: prop => prop !== 'sx'
@@ -141,4 +105,4 @@ const PageHeader = Object.assign(PageHeaderImpl, {
141
105
  TrailingAction: PageHeader$1.TrailingAction
142
106
  });
143
107
 
144
- export { Dialog as D, PageHeader as P };
108
+ export { PageHeader };
@@ -1,18 +1,23 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
2
  import type { PageLayoutProps as PrimerPageLayoutProps, PageLayoutContentProps as PrimerPageLayoutContentProps, PageLayoutPaneProps as PrimerPageLayoutPaneProps } from '@primer/react';
3
+ import { PageLayout as PrimerPageLayout } from '@primer/react';
3
4
  import { type SxProp } from '../sx';
4
5
  type PageLayoutProps = PropsWithChildren<PrimerPageLayoutProps> & SxProp;
5
- declare const PageLayout: React.ForwardRefExoticComponent<PrimerPageLayoutProps & {
6
+ declare const PageLayoutImpl: React.ForwardRefExoticComponent<PrimerPageLayoutProps & {
6
7
  children?: React.ReactNode | undefined;
7
- } & SxProp & React.RefAttributes<HTMLDivElement>> & {
8
- Content: React.ForwardRefExoticComponent<PrimerPageLayoutContentProps & {
9
- children?: React.ReactNode | undefined;
10
- } & SxProp & React.RefAttributes<HTMLDivElement>>;
11
- Header: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutHeaderProps>>;
12
- Pane: React.ForwardRefExoticComponent<PrimerPageLayoutPaneProps & {
13
- children?: React.ReactNode | undefined;
14
- } & SxProp & React.RefAttributes<HTMLDivElement>>;
15
- Footer: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutFooterProps>>;
8
+ } & SxProp & React.RefAttributes<HTMLDivElement>>;
9
+ declare const PageLayoutContent: React.ForwardRefExoticComponent<PrimerPageLayoutContentProps & {
10
+ children?: React.ReactNode | undefined;
11
+ } & SxProp & React.RefAttributes<HTMLDivElement>>;
12
+ declare const PageLayoutPane: React.ForwardRefExoticComponent<PrimerPageLayoutPaneProps & {
13
+ children?: React.ReactNode | undefined;
14
+ } & SxProp & React.RefAttributes<HTMLDivElement>>;
15
+ type PageLayoutType = typeof PageLayoutImpl & {
16
+ Content: typeof PageLayoutContent;
17
+ Header: typeof PrimerPageLayout.Header;
18
+ Pane: typeof PageLayoutPane;
19
+ Footer: typeof PrimerPageLayout.Footer;
16
20
  };
21
+ declare const PageLayout: PageLayoutType;
17
22
  export { PageLayout, type PageLayoutProps };
18
23
  //# sourceMappingURL=PageLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,EACtD,mBAAmB,IAAI,yBAAyB,EACjD,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAmBxE,QAAA,MAAM,UAAU;;;;;;;;;;;CAKd,CAAA;AAEF,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
1
+ {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,EACtD,mBAAmB,IAAI,yBAAyB,EAEjD,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAC,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAExE,QAAA,MAAM,cAAc;;iDAGlB,CAAA;AAIF,QAAA,MAAM,iBAAiB;;iDAErB,CAAA;AAIF,QAAA,MAAM,cAAc;;iDAElB,CAAA;AAEF,KAAK,cAAc,GAAG,OAAO,cAAc,GAAG;IAC5C,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,IAAI,EAAE,OAAO,cAAc,CAAA;IAC3B,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;CACvC,CAAA;AAED,QAAA,MAAM,UAAU,EAAE,cAMhB,CAED;AAGD,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { sx, PageLayout as PageLayout$1 } from '@primer/react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const Wrapper = styled.div.withConfig({
7
+ displayName: "PageLayout__Wrapper",
8
+ componentId: "sc-pjybtc-0"
9
+ })(["", ""], sx);
10
+ const PageLayoutImpl = /*#__PURE__*/React.forwardRef((props, ref) => {
11
+ // @ts-expect-error - PrimerPageLayout is not recognized as a valid component type
12
+ return /*#__PURE__*/jsx(Wrapper, {
13
+ as: PageLayout$1,
14
+ ref: ref,
15
+ ...props
16
+ });
17
+ });
18
+ const PageLayoutContent = /*#__PURE__*/React.forwardRef((props, ref) => {
19
+ return /*#__PURE__*/jsx(Wrapper, {
20
+ as: PageLayout$1.Content,
21
+ ref: ref,
22
+ ...props
23
+ });
24
+ });
25
+ const PageLayoutPane = /*#__PURE__*/React.forwardRef((props, ref) => {
26
+ return /*#__PURE__*/jsx(Wrapper, {
27
+ as: PageLayout$1.Pane,
28
+ ref: ref,
29
+ ...props
30
+ });
31
+ });
32
+ const PageLayout = Object.assign(PageLayoutImpl, {
33
+ __SLOT__: PageLayout$1.__SLOT__,
34
+ Content: PageLayoutContent,
35
+ Header: PageLayout$1.Header,
36
+ Pane: PageLayoutPane,
37
+ Footer: PageLayout$1.Footer
38
+ });
39
+ PageLayoutContent.__SLOT__ = PageLayout$1.Content.__SLOT__;
40
+ PageLayoutPane.__SLOT__ = PageLayout$1.Pane.__SLOT__;
41
+
42
+ export { PageLayout };
@@ -13,10 +13,22 @@ type CheckboxOrRadioGroupValidationProps = PropsWithChildren<{
13
13
  className?: string;
14
14
  variant: 'error' | 'success';
15
15
  } & SxProp>;
16
- export declare const RadioGroup: ((props: RadioGroupProps) => React.JSX.Element) & {
17
- Label: (props: CheckboxOrRadioGroupLabelProps) => React.JSX.Element;
18
- Caption: (props: CheckboxOrRadioGroupCaptionProps) => React.JSX.Element;
19
- Validation: (props: CheckboxOrRadioGroupValidationProps) => React.JSX.Element;
16
+ export declare const RadioGroup: {
17
+ (props: RadioGroupProps): React.JSX.Element;
18
+ __SLOT__: symbol;
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
+ };
20
32
  };
21
33
  export {};
22
34
  //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAChH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAO/E,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,UAAU,WAlCQ,eAAe;mBAWJ,8BAA8B;qBAS5B,gCAAgC;wBAU7B,mCAAmC;CAQhF,CAAA"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAC3G,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAO/E,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,UAAU;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { RadioGroup as RadioGroup$1 } from '@primer/react';
2
+ import 'react';
3
+ import Box from './Box.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const RadioGroupImpl = props => {
7
+ return /*#__PURE__*/jsx(Box, {
8
+ as: RadioGroup$1,
9
+ ...props
10
+ });
11
+ };
12
+
13
+ // Define local types based on the internal component props
14
+
15
+ const CheckboxOrRadioGroupLabel = props => {
16
+ return /*#__PURE__*/jsx(Box, {
17
+ as: RadioGroup$1.Label,
18
+ ...props
19
+ });
20
+ };
21
+ const CheckboxOrRadioGroupCaption = props => {
22
+ return /*#__PURE__*/jsx(Box, {
23
+ as: RadioGroup$1.Caption,
24
+ ...props
25
+ });
26
+ };
27
+ const CheckboxOrRadioGroupValidation = props => {
28
+ return /*#__PURE__*/jsx(Box, {
29
+ as: RadioGroup$1.Validation,
30
+ ...props
31
+ });
32
+ };
33
+ const RadioGroup = Object.assign(RadioGroupImpl, {
34
+ Label: CheckboxOrRadioGroupLabel,
35
+ Caption: CheckboxOrRadioGroupCaption,
36
+ Validation: CheckboxOrRadioGroupValidation
37
+ });
38
+ RadioGroupImpl.__SLOT__ = RadioGroup$1.__SLOT__;
39
+ CheckboxOrRadioGroupLabel.__SLOT__ = RadioGroup$1.Label.__SLOT__;
40
+ CheckboxOrRadioGroupCaption.__SLOT__ = RadioGroup$1.Caption.__SLOT__;
41
+ CheckboxOrRadioGroupValidation.__SLOT__ = RadioGroup$1.Validation.__SLOT__;
42
+
43
+ export { RadioGroup };
@@ -1 +1 @@
1
- {"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACxH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
1
+ {"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACnH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
@@ -0,0 +1,14 @@
1
+ import { RelativeTime as RelativeTime$1 } from '@primer/react';
2
+ import 'react';
3
+ import Box from './Box.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function RelativeTime(props) {
7
+ // @ts-expect-error the types for Box are not correctly inferred here
8
+ return /*#__PURE__*/jsx(Box, {
9
+ as: RelativeTime$1,
10
+ ...props
11
+ });
12
+ }
13
+
14
+ export { RelativeTime };
@@ -5,8 +5,15 @@ type SegmentedControlProps = PropsWithChildren<PrimerSegmentedControlProps> & Sx
5
5
  type SegmentedControlButtonProps = PropsWithChildren<PrimerSegmentedControlButtonProps> & SxProp;
6
6
  type SegmentedControlIconButtonProps = PropsWithChildren<PrimerSegmentedControlIconButtonProps> & SxProp;
7
7
  declare const SegmentedControl: ((props: SegmentedControlProps) => import("react").JSX.Element) & {
8
- Button: (props: SegmentedControlButtonProps) => import("react").JSX.Element;
9
- IconButton: (props: SegmentedControlIconButtonProps) => import("react").JSX.Element;
8
+ __SLOT__: symbol;
9
+ Button: {
10
+ (props: SegmentedControlButtonProps): import("react").JSX.Element;
11
+ __SLOT__: symbol | undefined;
12
+ };
13
+ IconButton: {
14
+ (props: SegmentedControlIconButtonProps): import("react").JSX.Element;
15
+ __SLOT__: symbol | undefined;
16
+ };
10
17
  };
11
18
  export { SegmentedControl, type SegmentedControlProps, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, };
12
19
  //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/components/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,IAAI,2BAA2B,EAEzD,KAAK,2BAA2B,IAAI,iCAAiC,EACrE,KAAK,+BAA+B,IAAI,qCAAqC,EAC9E,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,qBAAqB,GAAG,iBAAiB,CAAC,2BAA2B,CAAC,GAAG,MAAM,CAAA;AACpF,KAAK,2BAA2B,GAAG,iBAAiB,CAAC,iCAAiC,CAAC,GAAG,MAAM,CAAA;AAChG,KAAK,+BAA+B,GAAG,iBAAiB,CAAC,qCAAqC,CAAC,GAAG,MAAM,CAAA;AAcxG,QAAA,MAAM,gBAAgB,WAJe,qBAAqB;oBARnB,2BAA2B;wBAIvB,+BAA+B;CAWxE,CAAA;AAEF,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,GACrC,CAAA"}
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/components/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,IAAI,2BAA2B,EAEzD,KAAK,2BAA2B,IAAI,iCAAiC,EACrE,KAAK,+BAA+B,IAAI,qCAAqC,EAC9E,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,qBAAqB,GAAG,iBAAiB,CAAC,2BAA2B,CAAC,GAAG,MAAM,CAAA;AACpF,KAAK,2BAA2B,GAAG,iBAAiB,CAAC,iCAAiC,CAAC,GAAG,MAAM,CAAA;AAChG,KAAK,+BAA+B,GAAG,iBAAiB,CAAC,qCAAqC,CAAC,GAAG,MAAM,CAAA;AAcxG,QAAA,MAAM,gBAAgB,WAJe,qBAAqB;;;gBARnB,2BAA2B;;;;gBAIvB,+BAA+B;;;CAYxE,CAAA;AAKF,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,GACrC,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { SegmentedControl as SegmentedControl$1 } from '@primer/react';
2
+ import Box from './Box.js';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ const SegmentedControlButton = props => {
6
+ return /*#__PURE__*/jsx(Box, {
7
+ as: SegmentedControl$1.Button,
8
+ ...props
9
+ });
10
+ };
11
+ const SegmentedControlIconButton = props => {
12
+ return /*#__PURE__*/jsx(Box, {
13
+ as: SegmentedControl$1.IconButton,
14
+ ...props
15
+ });
16
+ };
17
+ const SegmentedControlImpl = props => {
18
+ return /*#__PURE__*/jsx(Box, {
19
+ as: SegmentedControl$1,
20
+ ...props
21
+ });
22
+ };
23
+ const SegmentedControl = Object.assign(SegmentedControlImpl, {
24
+ __SLOT__: SegmentedControl$1.__SLOT__,
25
+ Button: SegmentedControlButton,
26
+ IconButton: SegmentedControlIconButton
27
+ });
28
+ SegmentedControlButton.__SLOT__ = SegmentedControl$1.Button.__SLOT__;
29
+ SegmentedControlIconButton.__SLOT__ = SegmentedControl$1.IconButton.__SLOT__;
30
+
31
+ export { SegmentedControl };
@@ -0,0 +1,8 @@
1
+ import { type SelectProps as PrimerSelectProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ type SelectProps = PrimerSelectProps & SxProp & {
4
+ as?: React.ElementType;
5
+ };
6
+ declare const Select: ({ as, ...props }: SelectProps) => import("react").JSX.Element;
7
+ export { Select, type SelectProps };
8
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAC3F,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAIrC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAOxE,QAAA,MAAM,MAAM,GAAI,kBAAgB,WAAW,gCAE1C,CAAA;AAED,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { Select as Select$1, sx } from '@primer/react';
2
+ import styled from 'styled-components';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ const StyledSelect = styled(Select$1).withConfig({
6
+ shouldForwardProp: prop => prop !== 'sx'
7
+ }).withConfig({
8
+ displayName: "Select__StyledSelect",
9
+ componentId: "sc-1pyiuc8-0"
10
+ })(["", ""], sx);
11
+ const Select = ({
12
+ as,
13
+ ...props
14
+ }) => {
15
+ return /*#__PURE__*/jsx(StyledSelect, {
16
+ ...props,
17
+ ...(as ? {
18
+ forwardedAs: as
19
+ } : {})
20
+ });
21
+ };
22
+
23
+ export { Select };
@@ -0,0 +1,11 @@
1
+ import { Spinner as Spinner$1, sx } from '@primer/react';
2
+ import styled from 'styled-components';
3
+
4
+ const Spinner = styled(Spinner$1).withConfig({
5
+ shouldForwardProp: prop => prop !== 'sx'
6
+ }).withConfig({
7
+ displayName: "Spinner",
8
+ componentId: "sc-jbw2a0-0"
9
+ })(["", ""], sx);
10
+
11
+ export { Spinner };
@@ -0,0 +1,14 @@
1
+ import { StateLabel as StateLabel$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 StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
7
+ return /*#__PURE__*/jsx(Box, {
8
+ as: StateLabel$1,
9
+ ref: ref,
10
+ ...props
11
+ });
12
+ });
13
+
14
+ export { StateLabel };
@@ -3,6 +3,7 @@ import type { SxProp } from '../sx';
3
3
  type SubNavProps = PrimerSubNavProps & SxProp;
4
4
  type SubNavLinkProps = PrimerSubNavLinkProps & SxProp;
5
5
  declare const SubNav: import("react").ForwardRefExoticComponent<Omit<SubNavProps, "ref"> & import("react").RefAttributes<HTMLElement>> & {
6
+ __SLOT__: symbol;
6
7
  Link: import("react").ForwardRefExoticComponent<Omit<SubNavLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
7
8
  };
8
9
  export { SubNav, type SubNavProps, type SubNavLinkProps };
@@ -1 +1 @@
1
- {"version":3,"file":"SubNav.d.ts","sourceRoot":"","sources":["../../src/components/SubNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAC9C,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAM7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAMrD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
1
+ {"version":3,"file":"SubNav.d.ts","sourceRoot":"","sources":["../../src/components/SubNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAE9C,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAM7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAMrD,QAAA,MAAM,MAAM;;;CAGV,CAED;AAED,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { SubNav as SubNav$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 SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
7
+ return /*#__PURE__*/jsx(Box, {
8
+ as: SubNav$1,
9
+ ref: ref,
10
+ ...props
11
+ });
12
+ });
13
+ const SubNavLink = /*#__PURE__*/forwardRef(function SubNavLink(props, ref) {
14
+ return /*#__PURE__*/jsx(Box, {
15
+ as: SubNav$1.Link,
16
+ ref: ref,
17
+ ...props
18
+ });
19
+ });
20
+ const SubNav = Object.assign(SubNavImpl, {
21
+ __SLOT__: SubNav$1.__SLOT__,
22
+ Link: SubNavLink
23
+ });
24
+ SubNavLink.__SLOT__ = SubNav$1.Link.__SLOT__;
25
+
26
+ export { SubNav };
@@ -1,7 +1,15 @@
1
1
  import { type TextProps as PrimerTextProps } from '@primer/react';
2
2
  import { type SxProp } from '../sx';
3
- import { type StyledComponent } from 'styled-components';
4
- type TextProps = PrimerTextProps & SxProp;
5
- declare const Text: StyledComponent<"span", any, TextProps, never>;
3
+ import type React from 'react';
4
+ import type { ForwardRefComponent } from '../polymorphic';
5
+ type BaseTextProps = {
6
+ size?: 'large' | 'medium' | 'small';
7
+ weight?: 'light' | 'normal' | 'medium' | 'semibold';
8
+ className?: string;
9
+ children?: React.ReactNode;
10
+ as?: React.ElementType;
11
+ } & SxProp & React.HTMLAttributes<HTMLElement>;
12
+ type TextProps<As extends React.ElementType = 'span'> = PrimerTextProps<As> & SxProp;
13
+ declare const Text: ForwardRefComponent<"span", BaseTextProps>;
6
14
  export { Text, type TextProps };
7
15
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,IAAI,eAAe,EAAC,MAAM,eAAe,CAAA;AACnF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGrC,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAGtD,KAAK,SAAS,GAAG,eAAe,GAAG,MAAM,CAAA;AAQzC,QAAA,MAAM,IAAI,EAGJ,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;AAEpD,OAAO,EAAC,IAAI,EAAE,KAAK,SAAS,EAAC,CAAA"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,IAAI,eAAe,EAAC,MAAM,eAAe,CAAA;AACnF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAA;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,GAAG,MAAM,GACR,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAGnC,KAAK,SAAS,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,IAAI,eAAe,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAQpF,QAAA,MAAM,IAAI,EAEJ,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;AAEhD,OAAO,EAAC,IAAI,EAAE,KAAK,SAAS,EAAC,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { Text as Text$1, sx } from '@primer/react';
2
+ import styled from 'styled-components';
3
+ import { forwardRef } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const StyledText = styled(Text$1).withConfig({
7
+ shouldForwardProp: prop => prop !== 'sx'
8
+ }).withConfig({
9
+ displayName: "Text__StyledText",
10
+ componentId: "sc-1klmep6-0"
11
+ })(["", ""], sx);
12
+ const Text = /*#__PURE__*/forwardRef(({
13
+ as,
14
+ ...props
15
+ }, ref) => {
16
+ return /*#__PURE__*/jsx(StyledText, {
17
+ ...props,
18
+ ...(as ? {
19
+ forwardedAs: as
20
+ } : {}),
21
+ ref: ref
22
+ });
23
+ });
24
+
25
+ export { Text };
@@ -0,0 +1,15 @@
1
+ import { type TextInputProps as PrimerTextInputProps, type TextInputActionProps as PrimerTextInputActionProps } from '@primer/react';
2
+ import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
3
+ import { type SxProp } from '../sx';
4
+ import { type ForwardRefComponent } from '../polymorphic';
5
+ export type TextInputProps = PrimerTextInputProps & SxProp & {
6
+ as?: React.ElementType;
7
+ };
8
+ export type TextInputActionProps = PrimerTextInputActionProps & SxProp;
9
+ declare const TextInputAction: ForwardRefComponent<'button', TextInputActionProps>;
10
+ type TextInputComposite = ForwardRefExoticComponent<TextInputProps & RefAttributes<HTMLInputElement>> & {
11
+ Action: typeof TextInputAction;
12
+ };
13
+ export declare const TextInput: TextInputComposite;
14
+ export {};
15
+ //# sourceMappingURL=TextInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/components/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,IAAI,oBAAoB,EAC3C,KAAK,oBAAoB,IAAI,0BAA0B,EACxD,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AACpF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AACrF,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,GAAG,MAAM,CAAA;AAYtE,QAAA,MAAM,eAAe,EAAE,mBAAmB,CAAC,QAAQ,EAAE,oBAAoB,CAIxE,CAAA;AAED,KAAK,kBAAkB,GAAG,yBAAyB,CAAC,cAAc,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC,GAAG;IACtG,MAAM,EAAE,OAAO,eAAe,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,kBAGtB,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { TextInput as TextInput$1, sx } from '@primer/react';
2
+ import { forwardRef } from 'react';
3
+ import styled from 'styled-components';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const StyledTextInput = styled(TextInput$1).withConfig({
7
+ shouldForwardProp: prop => prop !== 'sx'
8
+ }).withConfig({
9
+ displayName: "TextInput__StyledTextInput",
10
+ componentId: "sc-ttxlvl-0"
11
+ })(["", ""], sx);
12
+ const TextInputImpl = /*#__PURE__*/forwardRef(({
13
+ as,
14
+ ...props
15
+ }, ref) => {
16
+ return /*#__PURE__*/jsx(StyledTextInput, {
17
+ ref: ref,
18
+ ...props,
19
+ ...(as ? {
20
+ forwardedAs: as
21
+ } : {})
22
+ });
23
+ });
24
+ const TextInputAction = styled(TextInput$1.Action).withConfig({
25
+ shouldForwardProp: prop => prop !== 'sx'
26
+ }).withConfig({
27
+ displayName: "TextInput__TextInputAction",
28
+ componentId: "sc-ttxlvl-1"
29
+ })(["", ""], sx);
30
+ const TextInput = Object.assign(TextInputImpl, {
31
+ __SLOT__: TextInput$1.__SLOT__,
32
+ Action: TextInputAction
33
+ });
34
+ TextInputAction.displayName = 'TextInputAction';
35
+ TextInputImpl.displayName = 'TextInput';
36
+
37
+ export { TextInput };
@@ -0,0 +1,9 @@
1
+ import { type TextareaProps as PrimerTextareaProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
+ type TextareaProps = PrimerTextareaProps & SxProp & {
5
+ as?: React.ElementType;
6
+ };
7
+ declare const Textarea: ForwardRefComponent<"textarea", TextareaProps>;
8
+ export { Textarea, type TextareaProps };
9
+ //# sourceMappingURL=Textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,IAAI,mBAAmB,EAAC,MAAM,eAAe,CAAA;AAEnG,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,KAAK,aAAa,GAAG,mBAAmB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQ5E,QAAA,MAAM,QAAQ,EAER,mBAAmB,CAAC,UAAU,EAAE,aAAa,CAAC,CAAA;AAEpD,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { Textarea as Textarea$1, sx } from '@primer/react';
2
+ import styled from 'styled-components';
3
+ import { forwardRef } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const StyledTextarea = styled(Textarea$1).withConfig({
7
+ shouldForwardProp: prop => prop !== 'sx'
8
+ }).withConfig({
9
+ displayName: "Textarea__StyledTextarea",
10
+ componentId: "sc-40d1gp-0"
11
+ })(["", ""], sx);
12
+ const Textarea = /*#__PURE__*/forwardRef(({
13
+ as,
14
+ ...props
15
+ }, ref) => {
16
+ return /*#__PURE__*/jsx(StyledTextarea, {
17
+ ...props,
18
+ ...(as ? {
19
+ forwardedAs: as
20
+ } : {}),
21
+ ref: ref
22
+ });
23
+ });
24
+
25
+ export { Textarea };
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ export declare const defaultColorMode = "day";
3
+ export type Theme = {
4
+ [key: string]: any;
5
+ };
6
+ type ColorMode = 'day' | 'night' | 'light' | 'dark';
7
+ export type ColorModeWithAuto = ColorMode | 'auto';
8
+ export type ThemeProviderProps = {
9
+ theme?: Theme;
10
+ colorMode?: ColorModeWithAuto;
11
+ dayScheme?: string;
12
+ nightScheme?: string;
13
+ preventSSRMismatch?: boolean;
14
+ };
15
+ export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
16
+ export declare function useTheme(): {
17
+ theme?: Theme;
18
+ colorScheme?: string;
19
+ colorMode?: ColorModeWithAuto;
20
+ resolvedColorMode?: ColorMode;
21
+ resolvedColorScheme?: string;
22
+ dayScheme?: string;
23
+ nightScheme?: string;
24
+ setColorMode: React.Dispatch<React.SetStateAction<ColorModeWithAuto>>;
25
+ setDayScheme: React.Dispatch<React.SetStateAction<string>>;
26
+ setNightScheme: React.Dispatch<React.SetStateAction<string>>;
27
+ };
28
+ export declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string;
29
+ export default ThemeProvider;
30
+ //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/components/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AAKrC,MAAM,MAAM,KAAK,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,CAAA;AACxC,KAAK,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;AACnD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAAA;AAElD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAA;AA8BD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAiF/E,CAAA;AAED,wBAAgB,QAAQ;YA9Gd,KAAK;kBACC,MAAM;gBACR,iBAAiB;wBACT,SAAS;0BACP,MAAM;gBAChB,MAAM;kBACJ,MAAM;kBACN,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;kBACvD,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;oBAC1C,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;EAuG7D;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,UAG1F;AAqGD,eAAe,aAAa,CAAA"}