@primer/styled-react 1.0.0-rc.7 → 1.0.0-rc.8
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.
- package/dist/components/ActionList.d.ts +21 -13
- package/dist/components/ActionList.d.ts.map +1 -1
- package/dist/components/ActionList.js +162 -0
- package/dist/components/ActionMenu.d.ts +2 -2
- package/dist/components/ActionMenu.d.ts.map +1 -1
- package/dist/components/ActionMenu.js +18 -0
- package/dist/components/Autocomplete.d.ts +5 -3
- package/dist/components/Autocomplete.d.ts.map +1 -1
- package/dist/components/Autocomplete.js +24 -0
- package/dist/components/Avatar.js +13 -0
- package/dist/components/BaseStyles.d.ts +17 -0
- package/dist/components/BaseStyles.d.ts.map +1 -0
- package/dist/components/BaseStyles.js +51 -0
- package/dist/components/Breadcrumbs.js +37 -0
- package/dist/components/Button.d.ts +13 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +111 -0
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +14 -0
- package/dist/components/CheckboxGroup.d.ts +16 -4
- package/dist/components/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.js +42 -0
- package/dist/components/CircleBadge.js +11 -0
- package/dist/components/CounterLabel.js +13 -0
- package/dist/components/DataTable.js +32 -0
- package/dist/components/Dialog.js +42 -0
- package/dist/components/FeatureFlaggedTheming.d.ts +6 -0
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
- package/dist/components/FeatureFlaggedTheming.js +54 -0
- package/dist/components/Flash.js +11 -0
- package/dist/components/FormControl.d.ts +12 -0
- package/dist/components/FormControl.d.ts.map +1 -0
- package/dist/components/FormControl.js +18 -0
- package/dist/components/Header.js +51 -0
- package/dist/components/Heading.js +11 -0
- package/dist/components/IconButton.d.ts +9 -0
- package/dist/components/IconButton.d.ts.map +1 -0
- package/dist/components/IconButton.js +39 -0
- package/dist/components/Label.js +25 -0
- package/dist/components/Link.js +25 -0
- package/dist/components/LinkButton.js +11 -0
- package/dist/components/NavList.d.ts +27 -19
- package/dist/components/NavList.d.ts.map +1 -1
- package/dist/components/NavList.js +56 -0
- package/dist/components/Overlay.js +11 -0
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/{PageHeader-DCDIR2C1.js → components/PageHeader.js} +4 -41
- package/dist/components/PageLayout.d.ts +15 -10
- package/dist/components/PageLayout.d.ts.map +1 -1
- package/dist/components/PageLayout.js +42 -0
- package/dist/components/RadioGroup.d.ts +16 -4
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +42 -0
- package/dist/components/RelativeTime.js +13 -0
- package/dist/components/SegmentedControl.d.ts +9 -2
- package/dist/components/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl.js +30 -0
- package/dist/components/Select.d.ts +8 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/Select.js +23 -0
- package/dist/components/Spinner.js +11 -0
- package/dist/components/StateLabel.js +13 -0
- package/dist/components/SubNav.d.ts +1 -0
- package/dist/components/SubNav.d.ts.map +1 -1
- package/dist/components/SubNav.js +25 -0
- package/dist/components/Text.d.ts +11 -3
- package/dist/components/Text.d.ts.map +1 -1
- package/dist/components/Text.js +25 -0
- package/dist/components/TextInput.d.ts +15 -0
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput.js +37 -0
- package/dist/components/Textarea.d.ts +9 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea.js +25 -0
- package/dist/components/ThemeProvider.d.ts +30 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ThemeProvider.js +202 -0
- package/dist/components/Timeline.js +46 -0
- package/dist/components/ToggleSwitch.js +13 -0
- package/dist/components/Token.js +25 -0
- package/dist/components/Tooltip.d.ts +2 -6
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +14 -0
- package/dist/components/Truncate.js +11 -0
- package/dist/components/UnderlineNav.js +43 -0
- package/dist/components/UnderlinePanels.d.ts +7 -5
- package/dist/components/UnderlinePanels.d.ts.map +1 -1
- package/dist/components/UnderlinePanels.js +28 -0
- package/dist/components/deprecated/ActionList.js +48 -0
- package/dist/components/deprecated/DialogV1.js +44 -0
- package/dist/components/deprecated/Octicon.js +39 -0
- package/dist/components/deprecated/TabNav.js +44 -0
- package/dist/components/deprecated/Tooltip.d.ts.map +1 -1
- package/dist/components/deprecated/Tooltip.js +32 -0
- package/dist/components.json +27 -0
- package/dist/deprecated.d.ts +5 -4
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +5 -84
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +5 -32
- package/dist/index.d.ts +9 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -511
- package/dist/sx.d.ts +3 -0
- package/dist/sx.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/Tooltip-DIHgr01r.js +0 -152
- package/dist/Tooltip-YuSlJ5b_.js +0 -20
- package/dist/components/DialogV1.d.ts +0 -11
- package/dist/components/DialogV1.d.ts.map +0 -1
- package/dist/components/TabNav.d.ts +0 -9
- package/dist/components/TabNav.d.ts.map +0 -1
|
@@ -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
|
|
6
|
+
declare const PageLayoutImpl: React.ForwardRefExoticComponent<PrimerPageLayoutProps & {
|
|
6
7
|
children?: React.ReactNode | undefined;
|
|
7
|
-
} & SxProp & React.RefAttributes<HTMLDivElement
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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,
|
|
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:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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,
|
|
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;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { RadioGroup as RadioGroup$1, Box } from '@primer/react';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
const RadioGroupImpl = props => {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: RadioGroup$1,
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// Define local types based on the internal component props
|
|
13
|
+
|
|
14
|
+
const CheckboxOrRadioGroupLabel = props => {
|
|
15
|
+
return /*#__PURE__*/jsx(Box, {
|
|
16
|
+
as: RadioGroup$1.Label,
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const CheckboxOrRadioGroupCaption = props => {
|
|
21
|
+
return /*#__PURE__*/jsx(Box, {
|
|
22
|
+
as: RadioGroup$1.Caption,
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const CheckboxOrRadioGroupValidation = props => {
|
|
27
|
+
return /*#__PURE__*/jsx(Box, {
|
|
28
|
+
as: RadioGroup$1.Validation,
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
const RadioGroup = Object.assign(RadioGroupImpl, {
|
|
33
|
+
Label: CheckboxOrRadioGroupLabel,
|
|
34
|
+
Caption: CheckboxOrRadioGroupCaption,
|
|
35
|
+
Validation: CheckboxOrRadioGroupValidation
|
|
36
|
+
});
|
|
37
|
+
RadioGroupImpl.__SLOT__ = RadioGroup$1.__SLOT__;
|
|
38
|
+
CheckboxOrRadioGroupLabel.__SLOT__ = RadioGroup$1.Label.__SLOT__;
|
|
39
|
+
CheckboxOrRadioGroupCaption.__SLOT__ = RadioGroup$1.Caption.__SLOT__;
|
|
40
|
+
CheckboxOrRadioGroupValidation.__SLOT__ = RadioGroup$1.Validation.__SLOT__;
|
|
41
|
+
|
|
42
|
+
export { RadioGroup };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Box, RelativeTime as RelativeTime$1 } from '@primer/react';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function RelativeTime(props) {
|
|
6
|
+
// @ts-expect-error the types for Box are not correctly inferred here
|
|
7
|
+
return /*#__PURE__*/jsx(Box, {
|
|
8
|
+
as: RelativeTime$1,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
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
|
-
|
|
9
|
-
|
|
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
|
|
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,30 @@
|
|
|
1
|
+
import { SegmentedControl as SegmentedControl$1, Box } from '@primer/react';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
const SegmentedControlButton = props => {
|
|
5
|
+
return /*#__PURE__*/jsx(Box, {
|
|
6
|
+
as: SegmentedControl$1.Button,
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
const SegmentedControlIconButton = props => {
|
|
11
|
+
return /*#__PURE__*/jsx(Box, {
|
|
12
|
+
as: SegmentedControl$1.IconButton,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
const SegmentedControlImpl = props => {
|
|
17
|
+
return /*#__PURE__*/jsx(Box, {
|
|
18
|
+
as: SegmentedControl$1,
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const SegmentedControl = Object.assign(SegmentedControlImpl, {
|
|
23
|
+
__SLOT__: SegmentedControl$1.__SLOT__,
|
|
24
|
+
Button: SegmentedControlButton,
|
|
25
|
+
IconButton: SegmentedControlIconButton
|
|
26
|
+
});
|
|
27
|
+
SegmentedControlButton.__SLOT__ = SegmentedControl$1.Button.__SLOT__;
|
|
28
|
+
SegmentedControlIconButton.__SLOT__ = SegmentedControl$1.IconButton.__SLOT__;
|
|
29
|
+
|
|
30
|
+
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,13 @@
|
|
|
1
|
+
import { Box, StateLabel as StateLabel$1 } from '@primer/react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: StateLabel$1,
|
|
8
|
+
ref: ref,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
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,
|
|
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,25 @@
|
|
|
1
|
+
import { SubNav as SubNav$1, Box } from '@primer/react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: SubNav$1,
|
|
8
|
+
ref: ref,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
const SubNavLink = /*#__PURE__*/forwardRef(function SubNavLink(props, ref) {
|
|
13
|
+
return /*#__PURE__*/jsx(Box, {
|
|
14
|
+
as: SubNav$1.Link,
|
|
15
|
+
ref: ref,
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
const SubNav = Object.assign(SubNavImpl, {
|
|
20
|
+
__SLOT__: SubNav$1.__SLOT__,
|
|
21
|
+
Link: SubNavLink
|
|
22
|
+
});
|
|
23
|
+
SubNavLink.__SLOT__ = SubNav$1.Link.__SLOT__;
|
|
24
|
+
|
|
25
|
+
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
|
|
4
|
-
type
|
|
5
|
-
|
|
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;
|
|
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"}
|