@jamsrui/clipboard 0.0.7 → 0.0.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.
- package/dist/clipboard-config.d.mts +3 -2
- package/dist/clipboard-context.d.mts +1 -1
- package/dist/clipboard.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/styles.d.mts +16 -17
- package/dist/styles.mjs +1 -1
- package/dist/use-clipboard.d.mts +1 -1
- package/package.json +5 -5
|
@@ -7,11 +7,12 @@ import './use-copy-to-clipboard.mjs';
|
|
|
7
7
|
import '@jamsrui/utils';
|
|
8
8
|
import './clipboard-button.mjs';
|
|
9
9
|
import './styles.mjs';
|
|
10
|
-
import 'tailwind-
|
|
10
|
+
import 'tailwind-merge';
|
|
11
11
|
|
|
12
12
|
declare const useClipboardConfig: () => ClipboardConfig.Props;
|
|
13
|
-
declare const ClipboardConfig: (props: ClipboardConfig.Props & {
|
|
13
|
+
declare const ClipboardConfig: (props: Omit<Partial<ClipboardConfig.Props>, "children"> & {
|
|
14
14
|
merge?: boolean;
|
|
15
|
+
children: React.ReactNode;
|
|
15
16
|
}) => react_jsx_runtime.JSX.Element;
|
|
16
17
|
declare namespace ClipboardConfig {
|
|
17
18
|
interface Props extends Clipboard.Props, GlobalConfigProps<Clipboard.Props> {
|
|
@@ -4,7 +4,7 @@ import './use-copy-to-clipboard.mjs';
|
|
|
4
4
|
import '@jamsrui/utils';
|
|
5
5
|
import './clipboard-button.mjs';
|
|
6
6
|
import './styles.mjs';
|
|
7
|
-
import 'tailwind-
|
|
7
|
+
import 'tailwind-merge';
|
|
8
8
|
|
|
9
9
|
declare const useClipboardContext: () => ClipboardContext.Props;
|
|
10
10
|
declare const ClipboardContext: react.Context<ClipboardContext.Props | null>;
|
package/dist/clipboard.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import './use-copy-to-clipboard.mjs';
|
|
|
5
5
|
import '@jamsrui/utils';
|
|
6
6
|
import './clipboard-button.mjs';
|
|
7
7
|
import './styles.mjs';
|
|
8
|
-
import 'tailwind-
|
|
8
|
+
import 'tailwind-merge';
|
|
9
9
|
|
|
10
10
|
declare const Clipboard: (props: Clipboard.Props) => react_jsx_runtime.JSX.Element;
|
|
11
11
|
declare namespace Clipboard {
|
package/dist/index.d.mts
CHANGED
package/dist/styles.d.mts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
1
|
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
3
2
|
import { VariantProps } from '@jamsrui/utils';
|
|
3
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
4
4
|
|
|
5
|
-
declare const
|
|
6
|
-
declare const copyToClipboardVariants: tailwind_variants.TVReturnType<{
|
|
5
|
+
declare const copyToClipboardVariants: _jamsrui_utils.TVReturnType<{
|
|
7
6
|
[key: string]: {
|
|
8
|
-
[key: string]:
|
|
9
|
-
button?:
|
|
10
|
-
root?:
|
|
11
|
-
icon?:
|
|
7
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
8
|
+
button?: tailwind_merge.ClassNameValue;
|
|
9
|
+
root?: tailwind_merge.ClassNameValue;
|
|
10
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
12
11
|
};
|
|
13
12
|
};
|
|
14
13
|
} | {
|
|
15
14
|
[x: string]: {
|
|
16
|
-
[x: string]:
|
|
17
|
-
button?:
|
|
18
|
-
root?:
|
|
19
|
-
icon?:
|
|
15
|
+
[x: string]: tailwind_merge.ClassNameValue | {
|
|
16
|
+
button?: tailwind_merge.ClassNameValue;
|
|
17
|
+
root?: tailwind_merge.ClassNameValue;
|
|
18
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
21
|
} | {}, {
|
|
@@ -25,17 +24,17 @@ declare const copyToClipboardVariants: tailwind_variants.TVReturnType<{
|
|
|
25
24
|
icon: string;
|
|
26
25
|
}, undefined, {
|
|
27
26
|
[key: string]: {
|
|
28
|
-
[key: string]:
|
|
29
|
-
button?:
|
|
30
|
-
root?:
|
|
31
|
-
icon?:
|
|
27
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
28
|
+
button?: tailwind_merge.ClassNameValue;
|
|
29
|
+
root?: tailwind_merge.ClassNameValue;
|
|
30
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
32
31
|
};
|
|
33
32
|
};
|
|
34
33
|
} | {}, {
|
|
35
34
|
root: string;
|
|
36
35
|
button: string;
|
|
37
36
|
icon: string;
|
|
38
|
-
},
|
|
37
|
+
}, _jamsrui_utils.TVReturnType<unknown, {
|
|
39
38
|
root: string;
|
|
40
39
|
button: string;
|
|
41
40
|
icon: string;
|
|
@@ -43,4 +42,4 @@ declare const copyToClipboardVariants: tailwind_variants.TVReturnType<{
|
|
|
43
42
|
type CopyToClipboardVariantProps = VariantProps<typeof copyToClipboardVariants>;
|
|
44
43
|
type CopyToClipboardSlots = keyof ReturnType<typeof copyToClipboardVariants>;
|
|
45
44
|
|
|
46
|
-
export { type CopyToClipboardSlots, type CopyToClipboardVariantProps, copyToClipboardVariants
|
|
45
|
+
export { type CopyToClipboardSlots, type CopyToClipboardVariantProps, copyToClipboardVariants };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as o}from"@jamsrui/utils";const t=
|
|
1
|
+
import{tv as o}from"@jamsrui/utils";const t=o({slots:{root:"relative z-1 inline-flex cursor-copy items-center gap-0.5 hover:opacity-80",button:"cursor-copy aria-hidden:hidden",icon:"size-4"}});export{t as copyToClipboardVariants};
|
package/dist/use-clipboard.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { useCopyToClipboard } from './use-copy-to-clipboard.mjs';
|
|
|
4
4
|
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
5
5
|
import { ClipboardButton } from './clipboard-button.mjs';
|
|
6
6
|
import { CopyToClipboardSlots } from './styles.mjs';
|
|
7
|
-
import 'tailwind-
|
|
7
|
+
import 'tailwind-merge';
|
|
8
8
|
|
|
9
9
|
declare const useClipboard: (props: useClipboard.Props) => {
|
|
10
10
|
getRootProps: () => {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/clipboard",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/utils": "^0.0.
|
|
8
|
+
"@jamsrui/icons": "^0.0.8",
|
|
9
|
+
"@jamsrui/hooks": "^0.0.9",
|
|
10
|
+
"@jamsrui/core": "^0.0.8",
|
|
11
|
+
"@jamsrui/utils": "^0.0.9"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|