@trainvent/arcubic 0.0.0-stage → 0.3.1
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/LICENSE +21 -0
- package/README.md +25 -2
- package/dist/CodeBlock.d.ts +7 -0
- package/dist/DirectionSwitch.d.ts +5 -0
- package/dist/LoadingButton.d.ts +2 -0
- package/dist/NativeSelect.d.ts +4 -0
- package/dist/Spinner.d.ts +5 -0
- package/dist/fonts/chakra-petch-LICENSE +93 -0
- package/dist/fonts/chakra-petch-latin-400-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-LICENSE +93 -0
- package/dist/fonts/geist-mono-latin-400-normal.woff2 +0 -0
- package/dist/fonts/lora-LICENSE +93 -0
- package/dist/fonts/lora-latin-400-italic.woff2 +0 -0
- package/dist/fonts/lora-latin-400-normal.woff2 +0 -0
- package/dist/fonts/lora-latin-700-italic.woff2 +0 -0
- package/dist/fonts/lora-latin-700-normal.woff2 +0 -0
- package/dist/fonts.css +6 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +134 -0
- package/dist/portals.d.ts +74 -0
- package/dist/styles.css +27775 -0
- package/dist/tokens.css +519 -0
- package/package.json +39 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Trainvent
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @trainvent/arcubic
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React 19 components, CSS tokens and bundled OFL fonts. Import the stylesheet once in your application layout:
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import '@trainvent/arcubic/styles.css';
|
|
7
|
+
import { Theme, Button } from '@trainvent/arcubic';
|
|
8
|
+
|
|
9
|
+
<Theme appearance="dark"><Button>Get started</Button></Theme>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
In Next.js, render Theme inside a client provider. The package has a `use client` boundary and includes TypeScript declarations. Theme supplies the Arcubic classes, teal accent, gray neutrals, square geometry and an overlay host for themed portals. Set `appearance` to `light` or `dark`; persistence belongs to the application.
|
|
13
|
+
|
|
14
|
+
Install from the public npm registry:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm install --save-exact @trainvent/arcubic
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Commit package.json and package-lock.json together. The exact version keeps deployments reproducible; Dependabot can propose new releases in a PR without manually editing either file.
|
|
21
|
+
|
|
22
|
+
Build with `npm run build:react` or create an installable archive with `npm run pack:react` from the repository root (Node 24). The package version follows the root version. `npm run package:release` includes the React archive with the other theme artifacts. Pushing a numeric version tag matching package.json publishes to npm through `.github/workflows/publish-npm.yml` and creates companion downloads through `.github/workflows/release.yml`.
|
|
23
|
+
|
|
24
|
+
Maintainer setup is documented in `docs/npm-publishing.md`. GitHub release archives remain an alternative download format; consumers do not need their URLs for normal npm installation.
|
|
25
|
+
|
|
26
|
+
`styles.css` includes Radix base styles, tokens, components and local fonts. `tokens.css` and `fonts.css` are separate exports for applications needing only those layers. Chakra Petch is the interface font, Lora the reading font, and Geist Mono the code font. Font licenses ship beside the font files.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { Switch as RadixSwitch } from '@radix-ui/themes';
|
|
3
|
+
export type DirectionSwitchProps = ComponentProps<typeof RadixSwitch>;
|
|
4
|
+
/** Arcubic's proportionally scaled sliding triangle switch. */
|
|
5
|
+
export declare const DirectionSwitch: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").SwitchProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
2
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").IconButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export type NativeSelectProps = ComponentPropsWithoutRef<'select'>;
|
|
3
|
+
/** Native keyboard and platform menu behavior with Arcubic control styling. */
|
|
4
|
+
export declare const NativeSelect: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import type { Spinner as RadixSpinner } from '@radix-ui/themes';
|
|
3
|
+
export type SpinnerProps = ComponentProps<typeof RadixSpinner>;
|
|
4
|
+
/** Continuous triangle fuse, shared by standalone and button loading states. */
|
|
5
|
+
export declare const Spinner: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").SpinnerProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-LightItalic.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-Regular.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-Italic.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-Medium.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-MediumItalic.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-SemiBold.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-SemiBoldItalic.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-Bold.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git) ChakraPetch-BoldItalic.ttf: Copyright 2018 The Chakra Petch Project Authors (https://github.com/m4rc1e/Chakra-Petch.git)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git) GeistMono-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2011 The Lora Project Authors (https://github.com/cyrealtype/Lora-Cyrillic), with Reserved Font Name "Lora". Lora-Italic[wght].ttf: Copyright 2011 The Lora Project Authors (https://github.com/cyrealtype/Lora-Cyrillic), with Reserved Font Name "Lora".
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/fonts.css
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/chakra-petch-latin-400-normal.woff2') format('woff2')}
|
|
2
|
+
@font-face{font-family:'Lora';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/lora-latin-400-normal.woff2') format('woff2')}
|
|
3
|
+
@font-face{font-family:'Lora';font-style:italic;font-weight:400;font-display:swap;src:url('./fonts/lora-latin-400-italic.woff2') format('woff2')}
|
|
4
|
+
@font-face{font-family:'Lora';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/lora-latin-700-normal.woff2') format('woff2')}
|
|
5
|
+
@font-face{font-family:'Lora';font-style:italic;font-weight:700;font-display:swap;src:url('./fonts/lora-latin-700-italic.woff2') format('woff2')}
|
|
6
|
+
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/geist-mono-latin-400-normal.woff2') format('woff2')}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from '@radix-ui/themes';
|
|
2
|
+
export { DirectionSwitch, DirectionSwitch as Switch } from './DirectionSwitch';
|
|
3
|
+
export type { DirectionSwitchProps } from './DirectionSwitch';
|
|
4
|
+
export { CodeBlock } from './CodeBlock';
|
|
5
|
+
export type { CodeBlockProps } from './CodeBlock';
|
|
6
|
+
export { Theme, Dialog, AlertDialog, Popover, HoverCard, Select, DropdownMenu, ContextMenu, Tooltip } from './portals';
|
|
7
|
+
export { Spinner } from './Spinner';
|
|
8
|
+
export type { SpinnerProps } from './Spinner';
|
|
9
|
+
export { Button, IconButton } from './LoadingButton';
|
|
10
|
+
export { NativeSelect } from './NativeSelect';
|
|
11
|
+
export type { NativeSelectProps } from './NativeSelect';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/components/index.ts
|
|
4
|
+
export * from "@radix-ui/themes";
|
|
5
|
+
|
|
6
|
+
// src/components/DirectionSwitch.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { Switch as RadixSwitch } from "@radix-ui/themes";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var DirectionSwitch = forwardRef((props, ref) => /* @__PURE__ */ jsx(RadixSwitch, { ...props, ref }));
|
|
11
|
+
DirectionSwitch.displayName = "DirectionSwitch";
|
|
12
|
+
|
|
13
|
+
// src/components/CodeBlock.tsx
|
|
14
|
+
import { useState as useState2 } from "react";
|
|
15
|
+
import { Check, Copy } from "lucide-react";
|
|
16
|
+
import { IconButton } from "@radix-ui/themes";
|
|
17
|
+
|
|
18
|
+
// src/components/portals.tsx
|
|
19
|
+
import { createContext, useContext, useState, forwardRef as forwardRef2, createElement } from "react";
|
|
20
|
+
import * as R from "@radix-ui/themes";
|
|
21
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
22
|
+
var OverlayHost = createContext(void 0);
|
|
23
|
+
var Theme2 = forwardRef2(({ children, className, accentColor = "teal", grayColor = "gray", radius = "none", ...props }, ref) => {
|
|
24
|
+
const [host, setHost] = useState(null);
|
|
25
|
+
return /* @__PURE__ */ jsx2(R.Theme, { ...props, accentColor, grayColor, radius, className: ["arcubic-theme", "arcubic-ui", className].filter(Boolean).join(" "), ref, children: /* @__PURE__ */ jsxs(OverlayHost.Provider, { value: host ?? void 0, children: [
|
|
26
|
+
children,
|
|
27
|
+
/* @__PURE__ */ jsx2("div", { ref: setHost, className: "arcubic-overlay-host" })
|
|
28
|
+
] }) });
|
|
29
|
+
});
|
|
30
|
+
Theme2.displayName = "ArcubicTheme";
|
|
31
|
+
function portaled(Component) {
|
|
32
|
+
return forwardRef2((props, ref) => {
|
|
33
|
+
const host = useContext(OverlayHost);
|
|
34
|
+
return createElement(Component, { ...props, ref, container: props.container ?? host });
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
var Dialog2 = { ...R.Dialog, Content: portaled(R.Dialog.Content) };
|
|
38
|
+
var AlertDialog2 = { ...R.AlertDialog, Content: portaled(R.AlertDialog.Content) };
|
|
39
|
+
var Popover2 = { ...R.Popover, Content: portaled(R.Popover.Content) };
|
|
40
|
+
var HoverCard2 = { ...R.HoverCard, Content: portaled(R.HoverCard.Content) };
|
|
41
|
+
var Select2 = { ...R.Select, Content: portaled(R.Select.Content) };
|
|
42
|
+
var DropdownMenu2 = { ...R.DropdownMenu, Content: portaled(R.DropdownMenu.Content), SubContent: portaled(R.DropdownMenu.SubContent) };
|
|
43
|
+
var ContextMenu2 = { ...R.ContextMenu, Content: portaled(R.ContextMenu.Content), SubContent: portaled(R.ContextMenu.SubContent) };
|
|
44
|
+
var Tooltip2 = portaled(R.Tooltip);
|
|
45
|
+
|
|
46
|
+
// src/components/CodeBlock.tsx
|
|
47
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
48
|
+
function CodeBlock({ code, language = "text", filename, lineNumbers = true }) {
|
|
49
|
+
const [status, setStatus] = useState2("");
|
|
50
|
+
async function copy() {
|
|
51
|
+
try {
|
|
52
|
+
await navigator.clipboard.writeText(code);
|
|
53
|
+
setStatus("Copied");
|
|
54
|
+
setTimeout(() => setStatus(""), 1500);
|
|
55
|
+
} catch {
|
|
56
|
+
setStatus("Clipboard unavailable");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return /* @__PURE__ */ jsxs2("div", { className: "arc-code-block", children: [
|
|
60
|
+
/* @__PURE__ */ jsxs2("div", { className: "arc-code-header", children: [
|
|
61
|
+
/* @__PURE__ */ jsx3("span", { children: filename || language }),
|
|
62
|
+
/* @__PURE__ */ jsx3(Tooltip2, { content: status || "Copy code", children: /* @__PURE__ */ jsx3(IconButton, { size: "1", variant: "ghost", "aria-label": "Copy code", onClick: copy, children: status === "Copied" ? /* @__PURE__ */ jsx3(Check, { size: 13 }) : /* @__PURE__ */ jsx3(Copy, { size: 13 }) }) })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ jsx3("pre", { "aria-label": `${language} code`, children: /* @__PURE__ */ jsx3("code", { children: code.split("\n").map((line, i) => /* @__PURE__ */ jsxs2("span", { className: "arc-code-line", children: [
|
|
65
|
+
lineNumbers && /* @__PURE__ */ jsx3("span", { className: "arc-line-number", "aria-hidden": "true", children: i + 1 }),
|
|
66
|
+
/* @__PURE__ */ jsx3("span", { children: line || " " })
|
|
67
|
+
] }, i)) }) }),
|
|
68
|
+
/* @__PURE__ */ jsx3("span", { className: "sr-only", role: "status", children: status })
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// src/components/Spinner.tsx
|
|
73
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
74
|
+
import { Box } from "@radix-ui/themes";
|
|
75
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
76
|
+
var route = "M450 9.45 L548.3474 179.7927 L831.5275 670.275 L634.8327 670.275 L68.4725 670.275 L166.8199 499.9323 L514.1917 626.3653 L634.8327 670.275 L570.641 306.2257 L548.3474 179.7927 L265.1673 417.409 L343.9101 388.749 L570.641 306.2257 L556.0899 388.749 L514.1917 626.3653 L450 572.502 L556.0899 388.749 L343.9101 388.749 L450 572.502 L265.1673 417.409 L166.8199 499.9323 L450 9.45";
|
|
77
|
+
var Spinner = forwardRef3(({ loading = true, size = "2", children, className, style, "aria-label": label = "Loading", ...props }, ref) => {
|
|
78
|
+
if (!loading) return children;
|
|
79
|
+
const sizes = typeof size === "string" ? `arc-spinner-size-${size}` : Object.entries(size).map(([breakpoint, value]) => `arc-spinner-${breakpoint}-${value}`).join(" ");
|
|
80
|
+
const indicator = /* @__PURE__ */ jsx4(Box, { ...props, asChild: true, children: /* @__PURE__ */ jsx4("span", { ref, className: `arc-triangle-spinner ${sizes} ${className || ""}`, style, role: props["aria-hidden"] ? void 0 : "status", "aria-label": props["aria-hidden"] ? void 0 : label, children: /* @__PURE__ */ jsxs3("svg", { viewBox: "20 -40 860 760", "aria-hidden": "true", fill: "none", children: [
|
|
81
|
+
/* @__PURE__ */ jsx4("path", { className: "arc-spinner-guide", d: route }),
|
|
82
|
+
/* @__PURE__ */ jsx4("path", { className: "arc-spinner-fuse", d: route, pathLength: "100" })
|
|
83
|
+
] }) }) });
|
|
84
|
+
return children === void 0 ? indicator : /* @__PURE__ */ jsxs3("span", { className: "arc-spinner-wrap", children: [
|
|
85
|
+
/* @__PURE__ */ jsx4("span", { "aria-hidden": "true", style: { visibility: "hidden" }, children }),
|
|
86
|
+
/* @__PURE__ */ jsx4("span", { className: "arc-spinner-cover", children: indicator })
|
|
87
|
+
] });
|
|
88
|
+
});
|
|
89
|
+
Spinner.displayName = "ArcubicSpinner";
|
|
90
|
+
|
|
91
|
+
// src/components/LoadingButton.tsx
|
|
92
|
+
import { forwardRef as forwardRef4 } from "react";
|
|
93
|
+
import { Button as RadixButton, IconButton as RadixIconButton, VisuallyHidden } from "@radix-ui/themes";
|
|
94
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
95
|
+
function spinnerSize(size) {
|
|
96
|
+
const map = (value) => value === "1" ? "1" : value === "4" ? "3" : "2";
|
|
97
|
+
return typeof size === "object" ? Object.fromEntries(Object.entries(size).map(([key, value]) => [key, map(value)])) : map(size || "2");
|
|
98
|
+
}
|
|
99
|
+
var Button = forwardRef4(({ loading = false, children, disabled, className, ...props }, ref) => /* @__PURE__ */ jsx5(RadixButton, { ...props, ref, className: [className, loading ? "rt-loading" : void 0].filter(Boolean).join(" "), loading: false, disabled: loading || disabled, "aria-busy": loading || void 0, children: loading ? /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
100
|
+
/* @__PURE__ */ jsx5("span", { style: { visibility: "hidden" }, "aria-hidden": "true", children }),
|
|
101
|
+
/* @__PURE__ */ jsx5(VisuallyHidden, { children }),
|
|
102
|
+
/* @__PURE__ */ jsx5("span", { className: "arc-button-loader", children: /* @__PURE__ */ jsx5(Spinner, { size: spinnerSize(props.size), "aria-hidden": "true" }) })
|
|
103
|
+
] }) : children }));
|
|
104
|
+
Button.displayName = "ArcubicButton";
|
|
105
|
+
var IconButton2 = forwardRef4(({ loading = false, children, disabled, className, ...props }, ref) => /* @__PURE__ */ jsx5(RadixIconButton, { ...props, ref, className: [className, loading ? "rt-loading" : void 0].filter(Boolean).join(" "), loading: false, disabled: loading || disabled, "aria-busy": loading || void 0, children: loading ? /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
106
|
+
/* @__PURE__ */ jsx5("span", { style: { visibility: "hidden" }, "aria-hidden": "true", children: children || /* @__PURE__ */ jsx5("span", { className: "arc-icon-reserve" }) }),
|
|
107
|
+
/* @__PURE__ */ jsx5("span", { className: "arc-button-loader", children: /* @__PURE__ */ jsx5(Spinner, { size: spinnerSize(props.size), "aria-hidden": "true" }) })
|
|
108
|
+
] }) : children }));
|
|
109
|
+
IconButton2.displayName = "ArcubicIconButton";
|
|
110
|
+
|
|
111
|
+
// src/components/NativeSelect.tsx
|
|
112
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
113
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
114
|
+
var NativeSelect = forwardRef5(function NativeSelect2({ className = "", ...props }, ref) {
|
|
115
|
+
return /* @__PURE__ */ jsx6("select", { ...props, ref, className: `arc-native-select ${className}`.trim() });
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
AlertDialog2 as AlertDialog,
|
|
119
|
+
Button,
|
|
120
|
+
CodeBlock,
|
|
121
|
+
ContextMenu2 as ContextMenu,
|
|
122
|
+
Dialog2 as Dialog,
|
|
123
|
+
DirectionSwitch,
|
|
124
|
+
DropdownMenu2 as DropdownMenu,
|
|
125
|
+
HoverCard2 as HoverCard,
|
|
126
|
+
IconButton2 as IconButton,
|
|
127
|
+
NativeSelect,
|
|
128
|
+
Popover2 as Popover,
|
|
129
|
+
Select2 as Select,
|
|
130
|
+
Spinner,
|
|
131
|
+
DirectionSwitch as Switch,
|
|
132
|
+
Theme2 as Theme,
|
|
133
|
+
Tooltip2 as Tooltip
|
|
134
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
2
|
+
import * as R from '@radix-ui/themes';
|
|
3
|
+
/** Keep portal content inside the active Arcubic theme so tokens and accent inherit. */
|
|
4
|
+
export declare const Theme: ForwardRefExoticComponent<Omit<R.ThemeProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const Dialog: {
|
|
6
|
+
Content: ForwardRefExoticComponent<R.Dialog.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Root: import("react").FC<R.Dialog.RootProps>;
|
|
8
|
+
Trigger: ForwardRefExoticComponent<R.Dialog.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Title: ForwardRefExoticComponent<R.Dialog.TitleProps & RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
Description: ForwardRefExoticComponent<R.Dialog.DescriptionProps & RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
Close: ForwardRefExoticComponent<R.Dialog.CloseProps & RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
};
|
|
13
|
+
export declare const AlertDialog: {
|
|
14
|
+
Content: ForwardRefExoticComponent<R.AlertDialog.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Root: import("react").FC<R.AlertDialog.RootProps>;
|
|
16
|
+
Trigger: ForwardRefExoticComponent<R.AlertDialog.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
Title: ForwardRefExoticComponent<R.AlertDialog.TitleProps & RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
Description: ForwardRefExoticComponent<R.AlertDialog.DescriptionProps & RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
Action: ForwardRefExoticComponent<R.AlertDialog.ActionProps & RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
Cancel: ForwardRefExoticComponent<R.AlertDialog.CancelProps & RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
};
|
|
22
|
+
export declare const Popover: {
|
|
23
|
+
Content: ForwardRefExoticComponent<R.Popover.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
24
|
+
Root: import("react").FC<R.Popover.RootProps>;
|
|
25
|
+
Trigger: ForwardRefExoticComponent<R.Popover.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
Close: ForwardRefExoticComponent<R.Popover.CloseProps & RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
Anchor: ForwardRefExoticComponent<R.Popover.AnchorProps & RefAttributes<HTMLDivElement>>;
|
|
28
|
+
};
|
|
29
|
+
export declare const HoverCard: {
|
|
30
|
+
Content: ForwardRefExoticComponent<R.HoverCard.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
31
|
+
Root: import("react").FC<R.HoverCard.RootProps>;
|
|
32
|
+
Trigger: ForwardRefExoticComponent<R.HoverCard.TriggerProps & RefAttributes<HTMLAnchorElement>>;
|
|
33
|
+
};
|
|
34
|
+
export declare const Select: {
|
|
35
|
+
Content: ForwardRefExoticComponent<R.Select.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
36
|
+
Root: import("react").FC<R.Select.RootProps>;
|
|
37
|
+
Trigger: ForwardRefExoticComponent<R.Select.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
Item: ForwardRefExoticComponent<R.Select.ItemProps & RefAttributes<HTMLDivElement>>;
|
|
39
|
+
Group: ForwardRefExoticComponent<R.Select.GroupProps & RefAttributes<HTMLDivElement>>;
|
|
40
|
+
Label: ForwardRefExoticComponent<R.Select.LabelProps & RefAttributes<HTMLDivElement>>;
|
|
41
|
+
Separator: ForwardRefExoticComponent<R.Select.SeparatorProps & RefAttributes<HTMLDivElement>>;
|
|
42
|
+
};
|
|
43
|
+
export declare const DropdownMenu: {
|
|
44
|
+
Content: ForwardRefExoticComponent<R.DropdownMenu.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
45
|
+
SubContent: ForwardRefExoticComponent<R.DropdownMenu.SubContentProps & RefAttributes<HTMLDivElement>>;
|
|
46
|
+
Root: import("react").FC<R.DropdownMenu.RootProps>;
|
|
47
|
+
Trigger: ForwardRefExoticComponent<R.DropdownMenu.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
TriggerIcon: ForwardRefExoticComponent<R.DropdownMenu.TriggerIconProps & RefAttributes<SVGSVGElement>>;
|
|
49
|
+
Label: ForwardRefExoticComponent<R.DropdownMenu.LabelProps & RefAttributes<HTMLDivElement>>;
|
|
50
|
+
Item: ForwardRefExoticComponent<R.DropdownMenu.ItemProps & RefAttributes<HTMLDivElement>>;
|
|
51
|
+
Group: ForwardRefExoticComponent<R.DropdownMenu.GroupProps & RefAttributes<HTMLDivElement>>;
|
|
52
|
+
RadioGroup: ForwardRefExoticComponent<R.DropdownMenu.RadioGroupProps & RefAttributes<HTMLDivElement>>;
|
|
53
|
+
RadioItem: ForwardRefExoticComponent<R.DropdownMenu.RadioItemProps & RefAttributes<HTMLDivElement>>;
|
|
54
|
+
CheckboxItem: ForwardRefExoticComponent<R.DropdownMenu.CheckboxItemProps & RefAttributes<HTMLDivElement>>;
|
|
55
|
+
Sub: import("react").FC<R.DropdownMenu.SubProps>;
|
|
56
|
+
SubTrigger: ForwardRefExoticComponent<R.DropdownMenu.SubTriggerProps & RefAttributes<HTMLDivElement>>;
|
|
57
|
+
Separator: ForwardRefExoticComponent<R.DropdownMenu.SeparatorProps & RefAttributes<HTMLDivElement>>;
|
|
58
|
+
};
|
|
59
|
+
export declare const ContextMenu: {
|
|
60
|
+
Content: ForwardRefExoticComponent<R.ContextMenu.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
61
|
+
SubContent: ForwardRefExoticComponent<R.ContextMenu.SubContentProps & RefAttributes<HTMLDivElement>>;
|
|
62
|
+
Root: import("react").FC<R.ContextMenu.RootProps>;
|
|
63
|
+
Trigger: ForwardRefExoticComponent<R.ContextMenu.TriggerProps & RefAttributes<HTMLSpanElement>>;
|
|
64
|
+
Label: ForwardRefExoticComponent<R.ContextMenu.LabelProps & RefAttributes<HTMLDivElement>>;
|
|
65
|
+
Item: ForwardRefExoticComponent<R.ContextMenu.ItemProps & RefAttributes<HTMLDivElement>>;
|
|
66
|
+
Group: ForwardRefExoticComponent<R.ContextMenu.GroupProps & RefAttributes<HTMLDivElement>>;
|
|
67
|
+
RadioGroup: ForwardRefExoticComponent<R.ContextMenu.RadioGroupProps & RefAttributes<HTMLDivElement>>;
|
|
68
|
+
RadioItem: ForwardRefExoticComponent<R.ContextMenu.RadioItemProps & RefAttributes<HTMLDivElement>>;
|
|
69
|
+
CheckboxItem: ForwardRefExoticComponent<R.ContextMenu.CheckboxItemProps & RefAttributes<HTMLDivElement>>;
|
|
70
|
+
Sub: import("react").FC<R.ContextMenu.SubProps>;
|
|
71
|
+
SubTrigger: ForwardRefExoticComponent<R.ContextMenu.SubTriggerProps & RefAttributes<HTMLDivElement>>;
|
|
72
|
+
Separator: ForwardRefExoticComponent<R.ContextMenu.SeparatorProps & RefAttributes<HTMLDivElement>>;
|
|
73
|
+
};
|
|
74
|
+
export declare const Tooltip: ForwardRefExoticComponent<R.TooltipProps & RefAttributes<HTMLDivElement>>;
|