@carbonid1/design-system 5.7.1 → 5.7.3
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/index.d.ts +6 -1
- package/dist/index.js +15 -1
- package/package.json +1 -1
- package/skills/design-system/SKILL.md +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HotkeysProvider as HotkeysProviderHook, isHotkeyPressed as isHotkeyPressedHook, useHotkeys as useHotkeysHook, useRecordHotkeys as useRecordHotkeysHook } from 'react-hotkeys-hook';
|
|
1
2
|
export { Badge, badgeVariants } from './Badge/Badge';
|
|
2
3
|
export type { BadgeProps } from './Badge/Badge.types';
|
|
3
4
|
export { Button, buttonVariants } from './Button/Button';
|
|
@@ -19,7 +20,11 @@ export { ThemeCycler } from './ThemeCycler/ThemeCycler';
|
|
|
19
20
|
export { Toaster } from './Toaster/Toaster';
|
|
20
21
|
export { toast } from 'sonner';
|
|
21
22
|
export { useTheme } from 'next-themes';
|
|
22
|
-
export
|
|
23
|
+
export declare const useHotkeys: typeof useHotkeysHook;
|
|
24
|
+
export declare const useRecordHotkeys: typeof useRecordHotkeysHook;
|
|
25
|
+
export declare const useHotkeysContext: () => import("react-hotkeys-hook/dist/HotkeysProvider").HotkeysContextType;
|
|
26
|
+
export declare const isHotkeyPressed: typeof isHotkeyPressedHook;
|
|
27
|
+
export declare const HotkeysProvider: typeof HotkeysProviderHook;
|
|
23
28
|
export type { Options, Keys, HotkeyCallback } from 'react-hotkeys-hook';
|
|
24
29
|
export { cn } from './helpers/cn/cn';
|
|
25
30
|
export { getModKey } from './helpers/getModKey/getModKey';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HotkeysProvider as HotkeysProviderHook, isHotkeyPressed as isHotkeyPressedHook, useHotkeys as useHotkeysHook, useHotkeysContext as useHotkeysContextHook, useRecordHotkeys as useRecordHotkeysHook, } from 'react-hotkeys-hook';
|
|
1
2
|
export { Badge, badgeVariants } from './Badge/Badge';
|
|
2
3
|
export { Button, buttonVariants } from './Button/Button';
|
|
3
4
|
export { Kbd, kbdVariants } from './Kbd/Kbd';
|
|
@@ -13,7 +14,20 @@ export { ThemeCycler } from './ThemeCycler/ThemeCycler';
|
|
|
13
14
|
export { Toaster } from './Toaster/Toaster';
|
|
14
15
|
export { toast } from 'sonner';
|
|
15
16
|
export { useTheme } from 'next-themes';
|
|
16
|
-
|
|
17
|
+
// Bind react-hotkeys-hook's exports to local consts instead of re-exporting them.
|
|
18
|
+
// Turbopack's dev module-graph analysis can't reliably follow a transitive
|
|
19
|
+
// `export … from 'react-hotkeys-hook'` across the package boundary, so it logs a
|
|
20
|
+
// spurious "Export useHotkeys doesn't exist" for every consumer and degrades Fast
|
|
21
|
+
// Refresh to full reloads. A local binding terminates the re-export here and
|
|
22
|
+
// resolves directly. Types are erased at build time, so the type re-export below
|
|
23
|
+
// is unaffected.
|
|
24
|
+
export const useHotkeys = useHotkeysHook;
|
|
25
|
+
export const useRecordHotkeys = useRecordHotkeysHook;
|
|
26
|
+
export const useHotkeysContext = useHotkeysContextHook;
|
|
27
|
+
export const isHotkeyPressed = isHotkeyPressedHook;
|
|
28
|
+
// Annotated with `typeof` because the component's props type isn't exported by
|
|
29
|
+
// react-hotkeys-hook, so tsc can't name it in the emitted declaration (TS4023).
|
|
30
|
+
export const HotkeysProvider = HotkeysProviderHook;
|
|
17
31
|
export { cn } from './helpers/cn/cn';
|
|
18
32
|
export { getModKey } from './helpers/getModKey/getModKey';
|
|
19
33
|
export { cva } from 'class-variance-authority';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: design-system
|
|
3
|
-
description: 'Shared UI components and design patterns for carbonid1 apps built on @carbonid1/design-system. ALWAYS use when building UI, creating components, adding dropdowns, selects, tooltips, icons, toasts, context menus, badges, or any interactive element.
|
|
3
|
+
description: 'Shared UI components and design patterns for carbonid1 apps built on @carbonid1/design-system. ALWAYS use when building UI, creating components, adding dropdowns, selects, tooltips, icons, toasts, context menus, badges, or any interactive element. Triggers on: dropdown, select, tooltip, tag, badge, icon, component, UI, design system, layout shift, skeleton, context menu, right-click menu, button, theme, palette.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Design System
|