@entry-ui/qwik 0.7.0 → 0.9.0
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/lib/_internal/components/collapsible-panel/collapsible-panel.d.ts +13 -0
- package/lib/_internal/components/collapsible-panel/collapsible-panel.qwik.mjs +195 -0
- package/lib/_internal/components/collapsible-panel/collapsible-panel.types.d.ts +62 -0
- package/lib/_internal/components/collapsible-panel/index.d.ts +2 -0
- package/lib/_internal/components/index.d.ts +2 -0
- package/lib/_internal/components/indicator/index.d.ts +2 -0
- package/lib/_internal/components/indicator/indicator.d.ts +11 -0
- package/lib/_internal/components/indicator/indicator.qwik.mjs +27 -0
- package/lib/_internal/components/indicator/indicator.types.d.ts +15 -0
- package/lib/components/accordion/parts/accordion-item-indicator/accordion-item-indicator.qwik.mjs +4 -12
- package/lib/components/accordion/parts/accordion-item-panel/accordion-item-panel.qwik.mjs +10 -169
- package/lib/components/accordion/parts/accordion-root/accordion-root.qwik.mjs +6 -19
- package/lib/components/collapsible/parts/collapsible-indicator/collapsible-indicator.qwik.mjs +4 -12
- package/lib/components/collapsible/parts/collapsible-panel/collapsible-panel.qwik.mjs +10 -164
- package/lib/components/collapsible/parts/collapsible-root/collapsible-root.qwik.mjs +1 -18
- package/lib/components/copy-button/contexts/copy-button-root-context/copy-button-root-context.d.ts +11 -0
- package/lib/components/copy-button/contexts/copy-button-root-context/copy-button-root-context.qwik.mjs +10 -0
- package/lib/components/copy-button/contexts/copy-button-root-context/copy-button-root-context.types.d.ts +24 -0
- package/lib/components/copy-button/contexts/copy-button-root-context/index.d.ts +2 -0
- package/lib/components/copy-button/contexts/index.d.ts +1 -0
- package/lib/components/copy-button/hooks/index.d.ts +1 -0
- package/lib/components/copy-button/hooks/use-copy-button-root-context/index.d.ts +2 -0
- package/lib/components/copy-button/hooks/use-copy-button-root-context/use-copy-button-root-context.d.ts +7 -0
- package/lib/components/copy-button/hooks/use-copy-button-root-context/use-copy-button-root-context.qwik.mjs +13 -0
- package/lib/components/copy-button/hooks/use-copy-button-root-context/use-copy-button-root-context.types.d.ts +24 -0
- package/lib/components/copy-button/index.d.ts +2 -0
- package/lib/components/copy-button/index.qwik.mjs +6 -0
- package/lib/components/copy-button/parts/copy-button-indicator/copy-button-indicator.d.ts +9 -0
- package/lib/components/copy-button/parts/copy-button-indicator/copy-button-indicator.qwik.mjs +20 -0
- package/lib/components/copy-button/parts/copy-button-indicator/copy-button-indicator.types.d.ts +15 -0
- package/lib/components/copy-button/parts/copy-button-indicator/index.d.ts +2 -0
- package/lib/components/copy-button/parts/copy-button-root/copy-button-root.d.ts +7 -0
- package/lib/components/copy-button/parts/copy-button-root/copy-button-root.qwik.mjs +47 -0
- package/lib/components/copy-button/parts/copy-button-root/copy-button-root.types.d.ts +52 -0
- package/lib/components/copy-button/parts/copy-button-root/index.d.ts +2 -0
- package/lib/components/copy-button/parts/index.d.ts +4 -0
- package/lib/components/copy-button/parts/index.qwik.mjs +6 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/roving-focus-group/contexts/index.d.ts +2 -0
- package/lib/components/roving-focus-group/contexts/roving-focus-group-item-context/index.d.ts +2 -0
- package/lib/components/roving-focus-group/contexts/roving-focus-group-item-context/roving-focus-group-item-context.d.ts +6 -0
- package/lib/components/roving-focus-group/contexts/roving-focus-group-item-context/roving-focus-group-item-context.qwik.mjs +5 -0
- package/lib/components/roving-focus-group/contexts/roving-focus-group-item-context/roving-focus-group-item-context.types.d.ts +22 -0
- package/lib/components/roving-focus-group/contexts/roving-focus-group-root-context/index.d.ts +2 -0
- package/lib/components/roving-focus-group/contexts/roving-focus-group-root-context/roving-focus-group-root-context.d.ts +11 -0
- package/lib/components/roving-focus-group/contexts/roving-focus-group-root-context/roving-focus-group-root-context.qwik.mjs +10 -0
- package/lib/components/roving-focus-group/contexts/roving-focus-group-root-context/roving-focus-group-root-context.types.d.ts +37 -0
- package/lib/components/roving-focus-group/hooks/index.d.ts +2 -0
- package/lib/components/roving-focus-group/hooks/use-roving-focus-group-item-context/index.d.ts +2 -0
- package/lib/components/roving-focus-group/hooks/use-roving-focus-group-item-context/use-roving-focus-group-item-context.d.ts +7 -0
- package/lib/components/roving-focus-group/hooks/use-roving-focus-group-item-context/use-roving-focus-group-item-context.qwik.mjs +13 -0
- package/lib/components/roving-focus-group/hooks/use-roving-focus-group-item-context/use-roving-focus-group-item-context.types.d.ts +22 -0
- package/lib/components/roving-focus-group/hooks/use-roving-focus-group-root-context/index.d.ts +2 -0
- package/lib/components/roving-focus-group/hooks/use-roving-focus-group-root-context/use-roving-focus-group-root-context.d.ts +8 -0
- package/lib/components/roving-focus-group/hooks/use-roving-focus-group-root-context/use-roving-focus-group-root-context.qwik.mjs +13 -0
- package/lib/components/roving-focus-group/hooks/use-roving-focus-group-root-context/use-roving-focus-group-root-context.types.d.ts +22 -0
- package/lib/components/roving-focus-group/index.d.ts +2 -0
- package/lib/components/roving-focus-group/index.qwik.mjs +8 -0
- package/lib/components/roving-focus-group/parts/index.d.ts +4 -0
- package/lib/components/roving-focus-group/parts/index.qwik.mjs +6 -0
- package/lib/components/roving-focus-group/parts/roving-focus-group-item/index.d.ts +2 -0
- package/lib/components/roving-focus-group/parts/roving-focus-group-item/roving-focus-group-item.d.ts +7 -0
- package/lib/components/roving-focus-group/parts/roving-focus-group-item/roving-focus-group-item.qwik.mjs +160 -0
- package/lib/components/roving-focus-group/parts/roving-focus-group-item/roving-focus-group-item.types.d.ts +29 -0
- package/lib/components/roving-focus-group/parts/roving-focus-group-root/index.d.ts +2 -0
- package/lib/components/roving-focus-group/parts/roving-focus-group-root/roving-focus-group-root.d.ts +7 -0
- package/lib/components/roving-focus-group/parts/roving-focus-group-root/roving-focus-group-root.qwik.mjs +49 -0
- package/lib/components/roving-focus-group/parts/roving-focus-group-root/roving-focus-group-root.types.d.ts +59 -0
- package/lib/components/tabs/contexts/index.d.ts +4 -0
- package/lib/components/tabs/contexts/tabs-list-context/index.d.ts +2 -0
- package/lib/components/tabs/contexts/tabs-list-context/tabs-list-context.d.ts +11 -0
- package/lib/components/tabs/contexts/tabs-list-context/tabs-list-context.qwik.mjs +10 -0
- package/lib/components/tabs/contexts/tabs-list-context/tabs-list-context.types.d.ts +12 -0
- package/lib/components/tabs/contexts/tabs-panel-context/index.d.ts +2 -0
- package/lib/components/tabs/contexts/tabs-panel-context/tabs-panel-context.d.ts +6 -0
- package/lib/components/tabs/contexts/tabs-panel-context/tabs-panel-context.qwik.mjs +5 -0
- package/lib/components/tabs/contexts/tabs-panel-context/tabs-panel-context.types.d.ts +12 -0
- package/lib/components/tabs/contexts/tabs-root-context/index.d.ts +2 -0
- package/lib/components/tabs/contexts/tabs-root-context/tabs-root-context.d.ts +11 -0
- package/lib/components/tabs/contexts/tabs-root-context/tabs-root-context.qwik.mjs +10 -0
- package/lib/components/tabs/contexts/tabs-root-context/tabs-root-context.types.d.ts +33 -0
- package/lib/components/tabs/contexts/tabs-tab-context/index.d.ts +2 -0
- package/lib/components/tabs/contexts/tabs-tab-context/tabs-tab-context.d.ts +6 -0
- package/lib/components/tabs/contexts/tabs-tab-context/tabs-tab-context.qwik.mjs +5 -0
- package/lib/components/tabs/contexts/tabs-tab-context/tabs-tab-context.types.d.ts +22 -0
- package/lib/components/tabs/hooks/index.d.ts +3 -0
- package/lib/components/tabs/hooks/use-tabs-panel-context/index.d.ts +2 -0
- package/lib/components/tabs/hooks/use-tabs-panel-context/use-tabs-panel-context.d.ts +8 -0
- package/lib/components/tabs/hooks/use-tabs-panel-context/use-tabs-panel-context.qwik.mjs +11 -0
- package/lib/components/tabs/hooks/use-tabs-panel-context/use-tabs-panel-context.types.d.ts +12 -0
- package/lib/components/tabs/hooks/use-tabs-root-context/index.d.ts +2 -0
- package/lib/components/tabs/hooks/use-tabs-root-context/use-tabs-root-context.d.ts +8 -0
- package/lib/components/tabs/hooks/use-tabs-root-context/use-tabs-root-context.qwik.mjs +13 -0
- package/lib/components/tabs/hooks/use-tabs-root-context/use-tabs-root-context.types.d.ts +22 -0
- package/lib/components/tabs/hooks/use-tabs-tab-context/index.d.ts +2 -0
- package/lib/components/tabs/hooks/use-tabs-tab-context/use-tabs-tab-context.d.ts +7 -0
- package/lib/components/tabs/hooks/use-tabs-tab-context/use-tabs-tab-context.qwik.mjs +13 -0
- package/lib/components/tabs/hooks/use-tabs-tab-context/use-tabs-tab-context.types.d.ts +22 -0
- package/lib/components/tabs/index.d.ts +2 -0
- package/lib/components/tabs/index.qwik.mjs +10 -0
- package/lib/components/tabs/parts/index.d.ts +8 -0
- package/lib/components/tabs/parts/index.qwik.mjs +10 -0
- package/lib/components/tabs/parts/tabs-list/index.d.ts +2 -0
- package/lib/components/tabs/parts/tabs-list/tabs-list.d.ts +7 -0
- package/lib/components/tabs/parts/tabs-list/tabs-list.qwik.mjs +37 -0
- package/lib/components/tabs/parts/tabs-list/tabs-list.types.d.ts +30 -0
- package/lib/components/tabs/parts/tabs-panel/index.d.ts +2 -0
- package/lib/components/tabs/parts/tabs-panel/tabs-panel.d.ts +7 -0
- package/lib/components/tabs/parts/tabs-panel/tabs-panel.qwik.mjs +39 -0
- package/lib/components/tabs/parts/tabs-panel/tabs-panel.types.d.ts +27 -0
- package/lib/components/tabs/parts/tabs-root/index.d.ts +2 -0
- package/lib/components/tabs/parts/tabs-root/tabs-root.d.ts +7 -0
- package/lib/components/tabs/parts/tabs-root/tabs-root.qwik.mjs +34 -0
- package/lib/components/tabs/parts/tabs-root/tabs-root.types.d.ts +50 -0
- package/lib/components/tabs/parts/tabs-tab/index.d.ts +2 -0
- package/lib/components/tabs/parts/tabs-tab/tabs-tab.d.ts +7 -0
- package/lib/components/tabs/parts/tabs-tab/tabs-tab.qwik.mjs +87 -0
- package/lib/components/tabs/parts/tabs-tab/tabs-tab.types.d.ts +25 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/use-clipboard/index.d.ts +2 -0
- package/lib/hooks/use-clipboard/index.qwik.mjs +4 -0
- package/lib/hooks/use-clipboard/use-clipboard.d.ts +19 -0
- package/lib/hooks/use-clipboard/use-clipboard.qwik.mjs +93 -0
- package/lib/hooks/use-clipboard/use-clipboard.types.d.ts +58 -0
- package/lib/index.qwik.mjs +24 -4
- package/package.json +18 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { UseClipboardParams, UseClipboardReturnValue } from './use-clipboard.types';
|
|
2
|
+
/**
|
|
3
|
+
* A hook that provides an interface for interacting with the system clipboard.
|
|
4
|
+
*
|
|
5
|
+
* This hook encapsulates the complexity of the asynchronous Clipboard API, exposing
|
|
6
|
+
* its state through readonly signals for predictable data flow. It manages both
|
|
7
|
+
* success and error states, ensuring that UI feedback remains consistent across
|
|
8
|
+
* different browser environments.
|
|
9
|
+
*
|
|
10
|
+
* It features a built-in auto-reset mechanism via the `timeoutMs` parameter,
|
|
11
|
+
* which automatically clears the `copied` and `error` states after a specified duration.
|
|
12
|
+
* An optional `onStatusChange$` callback allows reacting to changes in the
|
|
13
|
+
* operation status from outside the hook.
|
|
14
|
+
*
|
|
15
|
+
* To ensure stability and security, the hook includes development-time checks
|
|
16
|
+
* to prevent server-side execution, as clipboard operations strictly require
|
|
17
|
+
* a browser environment and typically a user gesture.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useClipboard: (params?: UseClipboardParams) => UseClipboardReturnValue;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { useSignal, $ } from "@qwik.dev/core";
|
|
2
|
+
import { copyToClipboard } from "@entry-ui/utilities/copy-to-clipboard";
|
|
3
|
+
import { fail } from "../../_internal/utilities/fail/fail.qwik.mjs";
|
|
4
|
+
import { error } from "../../_internal/utilities/error/error.qwik.mjs";
|
|
5
|
+
import { isDev, isServer } from "@qwik.dev/core/build";
|
|
6
|
+
const useClipboard = (params = {}) => {
|
|
7
|
+
const { timeoutMs = 3e3, onStatusChange$ } = params;
|
|
8
|
+
const error$1 = useSignal(null);
|
|
9
|
+
const copied = useSignal(false);
|
|
10
|
+
const copyTimeout = useSignal(-1);
|
|
11
|
+
const copy$ = $(async (value) => {
|
|
12
|
+
if (isDev && isServer) {
|
|
13
|
+
fail([
|
|
14
|
+
`The 'copy$' QRL function from the 'useClipboard' hook cannot be called during server-side rendering (SSR).`,
|
|
15
|
+
`Clipboard API is only available in the browser.`,
|
|
16
|
+
`Ensure it's only invoked in the browser environment.`
|
|
17
|
+
]);
|
|
18
|
+
}
|
|
19
|
+
const win = document.defaultView || window;
|
|
20
|
+
await copyToClipboard({
|
|
21
|
+
value,
|
|
22
|
+
onSuccess: () => {
|
|
23
|
+
if (copyTimeout.value !== -1) {
|
|
24
|
+
win.clearTimeout(copyTimeout.value);
|
|
25
|
+
}
|
|
26
|
+
copyTimeout.value = win.setTimeout(() => {
|
|
27
|
+
copied.value = false;
|
|
28
|
+
error$1.value = null;
|
|
29
|
+
copyTimeout.value = -1;
|
|
30
|
+
onStatusChange$?.({
|
|
31
|
+
copied: false,
|
|
32
|
+
error: null
|
|
33
|
+
});
|
|
34
|
+
}, timeoutMs);
|
|
35
|
+
copied.value = true;
|
|
36
|
+
error$1.value = null;
|
|
37
|
+
onStatusChange$?.({
|
|
38
|
+
copied: true,
|
|
39
|
+
error: null
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
onError: (err) => {
|
|
43
|
+
const { type, message } = err;
|
|
44
|
+
copied.value = false;
|
|
45
|
+
error$1.value = type;
|
|
46
|
+
onStatusChange$?.({
|
|
47
|
+
copied: false,
|
|
48
|
+
error: type
|
|
49
|
+
});
|
|
50
|
+
if (isDev) {
|
|
51
|
+
if (type === "NOT_SUPPORTED") {
|
|
52
|
+
error([
|
|
53
|
+
`An error occurred during the 'copy$' QRL function execution in 'useClipboard' hook.`,
|
|
54
|
+
`Clipboard API is not supported in this browser.`,
|
|
55
|
+
`Consider using a modern browser with Clipboard API support.`
|
|
56
|
+
]);
|
|
57
|
+
}
|
|
58
|
+
if (type === "COPY_FAILED") {
|
|
59
|
+
error([
|
|
60
|
+
`An error occurred during the 'copy$' QRL function execution in 'useClipboard' hook.`,
|
|
61
|
+
`The copy operation failed.`,
|
|
62
|
+
...message ? [
|
|
63
|
+
`Check clipboard permissions: ${message}`
|
|
64
|
+
] : []
|
|
65
|
+
]);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
const reset$ = $(() => {
|
|
72
|
+
copied.value = false;
|
|
73
|
+
error$1.value = null;
|
|
74
|
+
const win = document.defaultView || window;
|
|
75
|
+
if (copyTimeout.value !== -1) {
|
|
76
|
+
win.clearTimeout(copyTimeout.value);
|
|
77
|
+
copyTimeout.value = -1;
|
|
78
|
+
}
|
|
79
|
+
onStatusChange$?.({
|
|
80
|
+
copied: false,
|
|
81
|
+
error: null
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
return {
|
|
85
|
+
copied,
|
|
86
|
+
error: error$1,
|
|
87
|
+
copy$,
|
|
88
|
+
reset$
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export {
|
|
92
|
+
useClipboard
|
|
93
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ReadonlySignal, QRL } from '@qwik.dev/core';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration parameters for the `useClipboard` hook.
|
|
4
|
+
*/
|
|
5
|
+
export interface UseClipboardParams {
|
|
6
|
+
/**
|
|
7
|
+
* The duration in milliseconds before the `copied` signal automatically reverts
|
|
8
|
+
* to `false` and the `error` state is cleared after a successful copy operation.
|
|
9
|
+
*
|
|
10
|
+
* @default 3000
|
|
11
|
+
*/
|
|
12
|
+
timeoutMs?: number;
|
|
13
|
+
/**
|
|
14
|
+
* An optional `QRL` callback invoked whenever the clipboard operation status changes.
|
|
15
|
+
* It provides a detailed object containing the current `copied` state and any
|
|
16
|
+
* associated `error`. This callback is triggered upon a successful copy,
|
|
17
|
+
* when an error occurs, or when the state is reset (either automatically
|
|
18
|
+
* after `timeoutMs` or manually via `reset$`).
|
|
19
|
+
*
|
|
20
|
+
* @default undefined
|
|
21
|
+
*/
|
|
22
|
+
onStatusChange$?: QRL<(details: {
|
|
23
|
+
copied: boolean;
|
|
24
|
+
error: 'NOT_SUPPORTED' | 'COPY_FAILED' | null;
|
|
25
|
+
}) => void>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents the object returned by the `useClipboard` hook.
|
|
29
|
+
*/
|
|
30
|
+
export interface UseClipboardReturnValue {
|
|
31
|
+
/**
|
|
32
|
+
* A readonly signal that indicates whether a text string was successfully copied.
|
|
33
|
+
* This value is set to `true` immediately after a successful copy operation
|
|
34
|
+
* and automatically reverts to `false` after the specified `timeoutMs` duration
|
|
35
|
+
* has elapsed or if the state is manually reset.
|
|
36
|
+
*/
|
|
37
|
+
copied: ReadonlySignal<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* A readonly signal representing the current error state of the clipboard operation.
|
|
40
|
+
* Returns `"NOT_SUPPORTED"` if the Clipboard API is unavailable in the environment,
|
|
41
|
+
* `"COPY_FAILED"` if the operation was rejected (e.g., due to lack of permissions),
|
|
42
|
+
* or `null` if the last operation was successful or has been reset.
|
|
43
|
+
*/
|
|
44
|
+
error: ReadonlySignal<'NOT_SUPPORTED' | 'COPY_FAILED' | null>;
|
|
45
|
+
/**
|
|
46
|
+
* A `QRL` function that asynchronously transfers a provided string to the system clipboard.
|
|
47
|
+
* This function must be invoked in a browser environment, typically as a result
|
|
48
|
+
* of a user gesture (like a click), and updates the `copied` and `error` signals
|
|
49
|
+
* based on the outcome of the operation.
|
|
50
|
+
*/
|
|
51
|
+
copy$: QRL<(value: string) => Promise<void>>;
|
|
52
|
+
/**
|
|
53
|
+
* A `QRL` function that restores the hook's state to its initial values.
|
|
54
|
+
* It sets `copied` to `false`, clears any active `error`, and cancels any
|
|
55
|
+
* pending timeout scheduled to reset the success state.
|
|
56
|
+
*/
|
|
57
|
+
reset$: QRL<() => void>;
|
|
58
|
+
}
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -6,10 +6,20 @@ import * as index$1 from "./components/alert/parts/index.qwik.mjs";
|
|
|
6
6
|
import * as index$2 from "./components/collapsible/parts/index.qwik.mjs";
|
|
7
7
|
import { useCollapsibleRootContext } from "./components/collapsible/hooks/use-collapsible-root-context/use-collapsible-root-context.qwik.mjs";
|
|
8
8
|
import { useCollapsibleTriggerContext } from "./components/collapsible/hooks/use-collapsible-trigger-context/use-collapsible-trigger-context.qwik.mjs";
|
|
9
|
-
import * as index$3 from "./components/
|
|
10
|
-
import
|
|
9
|
+
import * as index$3 from "./components/copy-button/parts/index.qwik.mjs";
|
|
10
|
+
import { useCopyButtonRootContext } from "./components/copy-button/hooks/use-copy-button-root-context/use-copy-button-root-context.qwik.mjs";
|
|
11
|
+
import * as index$4 from "./components/roving-focus-group/parts/index.qwik.mjs";
|
|
12
|
+
import { useRovingFocusGroupRootContext } from "./components/roving-focus-group/hooks/use-roving-focus-group-root-context/use-roving-focus-group-root-context.qwik.mjs";
|
|
13
|
+
import { useRovingFocusGroupItemContext } from "./components/roving-focus-group/hooks/use-roving-focus-group-item-context/use-roving-focus-group-item-context.qwik.mjs";
|
|
14
|
+
import * as index$5 from "./components/separator/parts/index.qwik.mjs";
|
|
15
|
+
import * as index$6 from "./components/tabs/parts/index.qwik.mjs";
|
|
16
|
+
import { useTabsRootContext } from "./components/tabs/hooks/use-tabs-root-context/use-tabs-root-context.qwik.mjs";
|
|
17
|
+
import { useTabsTabContext } from "./components/tabs/hooks/use-tabs-tab-context/use-tabs-tab-context.qwik.mjs";
|
|
18
|
+
import { useTabsPanelContext } from "./components/tabs/hooks/use-tabs-panel-context/use-tabs-panel-context.qwik.mjs";
|
|
19
|
+
import * as index$7 from "./components/toggle/parts/index.qwik.mjs";
|
|
11
20
|
import { useToggleRootContext } from "./components/toggle/hooks/use-toggle-root-context/use-toggle-root-context.qwik.mjs";
|
|
12
21
|
import { useBoolean } from "./hooks/use-boolean/use-boolean.qwik.mjs";
|
|
22
|
+
import { useClipboard } from "./hooks/use-clipboard/use-clipboard.qwik.mjs";
|
|
13
23
|
import { useControllable } from "./hooks/use-controllable/use-controllable.qwik.mjs";
|
|
14
24
|
import { useCounter } from "./hooks/use-counter/use-counter.qwik.mjs";
|
|
15
25
|
import { useCycle } from "./hooks/use-cycle/use-cycle.qwik.mjs";
|
|
@@ -21,8 +31,11 @@ export {
|
|
|
21
31
|
index as Accordion,
|
|
22
32
|
index$1 as Alert,
|
|
23
33
|
index$2 as Collapsible,
|
|
24
|
-
index$3 as
|
|
25
|
-
index$4 as
|
|
34
|
+
index$3 as CopyButton,
|
|
35
|
+
index$4 as RovingFocusGroup,
|
|
36
|
+
index$5 as Separator,
|
|
37
|
+
index$6 as Tabs,
|
|
38
|
+
index$7 as Toggle,
|
|
26
39
|
makeEventPreventable,
|
|
27
40
|
mergeRefs,
|
|
28
41
|
mergeStyles,
|
|
@@ -30,11 +43,18 @@ export {
|
|
|
30
43
|
useAccordionItemTriggerContext,
|
|
31
44
|
useAccordionRootContext,
|
|
32
45
|
useBoolean,
|
|
46
|
+
useClipboard,
|
|
33
47
|
useCollapsibleRootContext,
|
|
34
48
|
useCollapsibleTriggerContext,
|
|
35
49
|
useControllable,
|
|
50
|
+
useCopyButtonRootContext,
|
|
36
51
|
useCounter,
|
|
37
52
|
useCycle,
|
|
38
53
|
useLifecycle,
|
|
54
|
+
useRovingFocusGroupItemContext,
|
|
55
|
+
useRovingFocusGroupRootContext,
|
|
56
|
+
useTabsPanelContext,
|
|
57
|
+
useTabsRootContext,
|
|
58
|
+
useTabsTabContext,
|
|
39
59
|
useToggleRootContext
|
|
40
60
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entry-ui/qwik",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/ZAHON/entry-ui#readme",
|
|
@@ -27,10 +27,22 @@
|
|
|
27
27
|
"types": "./lib/components/collapsible/index.d.ts",
|
|
28
28
|
"import": "./lib/components/collapsible/index.qwik.mjs"
|
|
29
29
|
},
|
|
30
|
+
"./copy-button": {
|
|
31
|
+
"types": "./lib/components/copy-button/index.d.ts",
|
|
32
|
+
"import": "./lib/components/copy-button/index.qwik.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./roving-focus-group": {
|
|
35
|
+
"types": "./lib/components/roving-focus-group/index.d.ts",
|
|
36
|
+
"import": "./lib/components/roving-focus-group/index.qwik.mjs"
|
|
37
|
+
},
|
|
30
38
|
"./separator": {
|
|
31
39
|
"types": "./lib/components/separator/index.d.ts",
|
|
32
40
|
"import": "./lib/components/separator/index.qwik.mjs"
|
|
33
41
|
},
|
|
42
|
+
"./tabs": {
|
|
43
|
+
"types": "./lib/components/tabs/index.d.ts",
|
|
44
|
+
"import": "./lib/components/tabs/index.qwik.mjs"
|
|
45
|
+
},
|
|
34
46
|
"./toggle": {
|
|
35
47
|
"types": "./lib/components/toggle/index.d.ts",
|
|
36
48
|
"import": "./lib/components/toggle/index.qwik.mjs"
|
|
@@ -39,6 +51,10 @@
|
|
|
39
51
|
"types": "./lib/hooks/use-boolean/index.d.ts",
|
|
40
52
|
"import": "./lib/hooks/use-boolean/index.qwik.mjs"
|
|
41
53
|
},
|
|
54
|
+
"./use-clipboard": {
|
|
55
|
+
"types": "./lib/hooks/use-clipboard/index.d.ts",
|
|
56
|
+
"import": "./lib/hooks/use-clipboard/index.qwik.mjs"
|
|
57
|
+
},
|
|
42
58
|
"./use-controllable": {
|
|
43
59
|
"types": "./lib/hooks/use-controllable/index.d.ts",
|
|
44
60
|
"import": "./lib/hooks/use-controllable/index.qwik.mjs"
|
|
@@ -108,7 +124,7 @@
|
|
|
108
124
|
"qwik": "qwik"
|
|
109
125
|
},
|
|
110
126
|
"dependencies": {
|
|
111
|
-
"@entry-ui/utilities": "^0.
|
|
127
|
+
"@entry-ui/utilities": "^0.8.0"
|
|
112
128
|
},
|
|
113
129
|
"devDependencies": {
|
|
114
130
|
"@entry-ui/eslint": "workspace:*",
|