@jamsrui/clipboard 0.0.11 → 0.0.12
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/styles.d.mts +3 -3
- package/dist/use-clipboard.d.mts +48 -48
- package/package.json +3 -3
package/dist/styles.d.mts
CHANGED
|
@@ -5,16 +5,16 @@ import * as tailwind_merge from 'tailwind-merge';
|
|
|
5
5
|
declare const copyToClipboardVariants: _jamsrui_utils.TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: tailwind_merge.ClassNameValue | {
|
|
8
|
-
root?: tailwind_merge.ClassNameValue;
|
|
9
8
|
button?: tailwind_merge.ClassNameValue;
|
|
9
|
+
root?: tailwind_merge.ClassNameValue;
|
|
10
10
|
icon?: tailwind_merge.ClassNameValue;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
} | {
|
|
14
14
|
[x: string]: {
|
|
15
15
|
[x: string]: tailwind_merge.ClassNameValue | {
|
|
16
|
-
root?: tailwind_merge.ClassNameValue;
|
|
17
16
|
button?: tailwind_merge.ClassNameValue;
|
|
17
|
+
root?: tailwind_merge.ClassNameValue;
|
|
18
18
|
icon?: tailwind_merge.ClassNameValue;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -25,8 +25,8 @@ declare const copyToClipboardVariants: _jamsrui_utils.TVReturnType<{
|
|
|
25
25
|
}, undefined, {
|
|
26
26
|
[key: string]: {
|
|
27
27
|
[key: string]: tailwind_merge.ClassNameValue | {
|
|
28
|
-
root?: tailwind_merge.ClassNameValue;
|
|
29
28
|
button?: tailwind_merge.ClassNameValue;
|
|
29
|
+
root?: tailwind_merge.ClassNameValue;
|
|
30
30
|
icon?: tailwind_merge.ClassNameValue;
|
|
31
31
|
};
|
|
32
32
|
};
|
package/dist/use-clipboard.d.mts
CHANGED
|
@@ -12,23 +12,59 @@ declare const useClipboard: (props: useClipboard.Props) => {
|
|
|
12
12
|
"data-slot": string | undefined;
|
|
13
13
|
"data-component": string | undefined;
|
|
14
14
|
className: string;
|
|
15
|
-
onChange?: react.FormEventHandler<HTMLLabelElement> | undefined;
|
|
16
15
|
form?: string | undefined | undefined;
|
|
17
16
|
style?: react.CSSProperties | undefined;
|
|
18
17
|
title?: string | undefined | undefined;
|
|
19
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
20
|
-
content?: string | undefined | undefined;
|
|
21
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
22
|
-
prefix?: string | undefined | undefined;
|
|
23
|
-
key?: react.Key | null | undefined;
|
|
24
|
-
children?: react.ReactNode;
|
|
25
18
|
ref?: react.Ref<HTMLLabelElement> | undefined;
|
|
26
|
-
|
|
19
|
+
key?: react.Key | null | undefined;
|
|
20
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
27
21
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
22
|
+
accessKey?: string | undefined | undefined;
|
|
23
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
24
|
+
autoFocus?: boolean | undefined | undefined;
|
|
25
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
26
|
+
contextMenu?: string | undefined | undefined;
|
|
27
|
+
dir?: string | undefined | undefined;
|
|
28
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
29
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
30
|
+
hidden?: boolean | undefined | undefined;
|
|
28
31
|
id?: string | undefined | undefined;
|
|
29
32
|
lang?: string | undefined | undefined;
|
|
30
|
-
|
|
33
|
+
nonce?: string | undefined | undefined;
|
|
34
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
31
35
|
tabIndex?: number | undefined | undefined;
|
|
36
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
37
|
+
radioGroup?: string | undefined | undefined;
|
|
38
|
+
role?: react.AriaRole | undefined;
|
|
39
|
+
about?: string | undefined | undefined;
|
|
40
|
+
content?: string | undefined | undefined;
|
|
41
|
+
datatype?: string | undefined | undefined;
|
|
42
|
+
inlist?: any;
|
|
43
|
+
prefix?: string | undefined | undefined;
|
|
44
|
+
property?: string | undefined | undefined;
|
|
45
|
+
rel?: string | undefined | undefined;
|
|
46
|
+
resource?: string | undefined | undefined;
|
|
47
|
+
rev?: string | undefined | undefined;
|
|
48
|
+
typeof?: string | undefined | undefined;
|
|
49
|
+
vocab?: string | undefined | undefined;
|
|
50
|
+
autoCorrect?: string | undefined | undefined;
|
|
51
|
+
autoSave?: string | undefined | undefined;
|
|
52
|
+
itemProp?: string | undefined | undefined;
|
|
53
|
+
itemScope?: boolean | undefined | undefined;
|
|
54
|
+
itemType?: string | undefined | undefined;
|
|
55
|
+
itemID?: string | undefined | undefined;
|
|
56
|
+
itemRef?: string | undefined | undefined;
|
|
57
|
+
results?: number | undefined | undefined;
|
|
58
|
+
security?: string | undefined | undefined;
|
|
59
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
60
|
+
popover?: "" | "auto" | "manual" | undefined | undefined;
|
|
61
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
62
|
+
popoverTarget?: string | undefined | undefined;
|
|
63
|
+
inert?: boolean | undefined | undefined;
|
|
64
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
65
|
+
is?: string | undefined | undefined;
|
|
66
|
+
exportparts?: string | undefined | undefined;
|
|
67
|
+
part?: string | undefined | undefined;
|
|
32
68
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
33
69
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
34
70
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -45,6 +81,7 @@ declare const useClipboard: (props: useClipboard.Props) => {
|
|
|
45
81
|
"aria-describedby"?: string | undefined | undefined;
|
|
46
82
|
"aria-description"?: string | undefined | undefined;
|
|
47
83
|
"aria-details"?: string | undefined | undefined;
|
|
84
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
48
85
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
49
86
|
"aria-errormessage"?: string | undefined | undefined;
|
|
50
87
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
@@ -81,6 +118,7 @@ declare const useClipboard: (props: useClipboard.Props) => {
|
|
|
81
118
|
"aria-valuemin"?: number | undefined | undefined;
|
|
82
119
|
"aria-valuenow"?: number | undefined | undefined;
|
|
83
120
|
"aria-valuetext"?: string | undefined | undefined;
|
|
121
|
+
children?: react.ReactNode;
|
|
84
122
|
dangerouslySetInnerHTML?: {
|
|
85
123
|
__html: string | TrustedHTML;
|
|
86
124
|
} | undefined | undefined;
|
|
@@ -100,6 +138,7 @@ declare const useClipboard: (props: useClipboard.Props) => {
|
|
|
100
138
|
onFocusCapture?: react.FocusEventHandler<HTMLLabelElement> | undefined;
|
|
101
139
|
onBlur?: react.FocusEventHandler<HTMLLabelElement> | undefined;
|
|
102
140
|
onBlurCapture?: react.FocusEventHandler<HTMLLabelElement> | undefined;
|
|
141
|
+
onChange?: react.FormEventHandler<HTMLLabelElement> | undefined;
|
|
103
142
|
onChangeCapture?: react.FormEventHandler<HTMLLabelElement> | undefined;
|
|
104
143
|
onBeforeInput?: react.FormEventHandler<HTMLLabelElement> | undefined;
|
|
105
144
|
onBeforeInputCapture?: react.FormEventHandler<HTMLLabelElement> | undefined;
|
|
@@ -252,45 +291,6 @@ declare const useClipboard: (props: useClipboard.Props) => {
|
|
|
252
291
|
onTransitionRunCapture?: react.TransitionEventHandler<HTMLLabelElement> | undefined;
|
|
253
292
|
onTransitionStart?: react.TransitionEventHandler<HTMLLabelElement> | undefined;
|
|
254
293
|
onTransitionStartCapture?: react.TransitionEventHandler<HTMLLabelElement> | undefined;
|
|
255
|
-
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
256
|
-
accessKey?: string | undefined | undefined;
|
|
257
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
258
|
-
autoFocus?: boolean | undefined | undefined;
|
|
259
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
260
|
-
contextMenu?: string | undefined | undefined;
|
|
261
|
-
dir?: string | undefined | undefined;
|
|
262
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
263
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
264
|
-
nonce?: string | undefined | undefined;
|
|
265
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
266
|
-
radioGroup?: string | undefined | undefined;
|
|
267
|
-
about?: string | undefined | undefined;
|
|
268
|
-
datatype?: string | undefined | undefined;
|
|
269
|
-
inlist?: any;
|
|
270
|
-
property?: string | undefined | undefined;
|
|
271
|
-
rel?: string | undefined | undefined;
|
|
272
|
-
resource?: string | undefined | undefined;
|
|
273
|
-
rev?: string | undefined | undefined;
|
|
274
|
-
typeof?: string | undefined | undefined;
|
|
275
|
-
vocab?: string | undefined | undefined;
|
|
276
|
-
autoCorrect?: string | undefined | undefined;
|
|
277
|
-
autoSave?: string | undefined | undefined;
|
|
278
|
-
itemProp?: string | undefined | undefined;
|
|
279
|
-
itemScope?: boolean | undefined | undefined;
|
|
280
|
-
itemType?: string | undefined | undefined;
|
|
281
|
-
itemID?: string | undefined | undefined;
|
|
282
|
-
itemRef?: string | undefined | undefined;
|
|
283
|
-
results?: number | undefined | undefined;
|
|
284
|
-
security?: string | undefined | undefined;
|
|
285
|
-
unselectable?: "on" | "off" | undefined | undefined;
|
|
286
|
-
popover?: "" | "auto" | "manual" | undefined | undefined;
|
|
287
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
288
|
-
popoverTarget?: string | undefined | undefined;
|
|
289
|
-
inert?: boolean | undefined | undefined;
|
|
290
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
291
|
-
is?: string | undefined | undefined;
|
|
292
|
-
exportparts?: string | undefined | undefined;
|
|
293
|
-
part?: string | undefined | undefined;
|
|
294
294
|
htmlFor?: string | undefined | undefined;
|
|
295
295
|
render?: React.ReactElement;
|
|
296
296
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/clipboard",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
+
"@jamsrui/utils": "^0.0.12",
|
|
8
9
|
"@jamsrui/icons": "^0.0.10",
|
|
9
|
-
"@jamsrui/hooks": "^0.0.11",
|
|
10
10
|
"@jamsrui/core": "^0.0.10",
|
|
11
|
-
"@jamsrui/
|
|
11
|
+
"@jamsrui/hooks": "^0.0.12"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|