@cerberus-design/react 0.1.1 → 0.1.2-next-31ffec5
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/build/legacy/aria-helpers/nav-menu.aria.js +3 -7
- package/build/legacy/aria-helpers/nav-menu.aria.js.map +1 -1
- package/build/legacy/chunk-55J6XMHW.js +1 -0
- package/build/legacy/chunk-6YEAMVRY.js +82 -0
- package/build/legacy/chunk-6YEAMVRY.js.map +1 -0
- package/build/legacy/chunk-BPIYUAYS.js +26 -0
- package/build/legacy/chunk-BPIYUAYS.js.map +1 -0
- package/build/legacy/chunk-JA4IX7GN.js +48 -0
- package/build/legacy/chunk-JA4IX7GN.js.map +1 -0
- package/build/legacy/chunk-JF76VIL3.js +12 -0
- package/build/legacy/chunk-JF76VIL3.js.map +1 -0
- package/build/legacy/chunk-KETL4ZJK.js +33 -0
- package/build/legacy/chunk-KETL4ZJK.js.map +1 -0
- package/build/legacy/chunk-KJUCHZHV.js +51 -0
- package/build/legacy/chunk-KJUCHZHV.js.map +1 -0
- package/build/legacy/chunk-R4H3352X.js +16 -0
- package/build/legacy/chunk-R4H3352X.js.map +1 -0
- package/build/legacy/chunk-SXXWC6UD.js +83 -0
- package/build/legacy/chunk-SXXWC6UD.js.map +1 -0
- package/build/legacy/chunk-WSQTX34C.js +86 -0
- package/build/legacy/chunk-WSQTX34C.js.map +1 -0
- package/build/legacy/chunk-XFWARXLU.js +26 -0
- package/build/legacy/chunk-XFWARXLU.js.map +1 -0
- package/build/legacy/components/Button.js +2 -26
- package/build/legacy/components/Button.js.map +1 -1
- package/build/legacy/components/IconButton.js +2 -64
- package/build/legacy/components/IconButton.js.map +1 -1
- package/build/legacy/components/NavMenuLink.js +3 -43
- package/build/legacy/components/NavMenuLink.js.map +1 -1
- package/build/legacy/components/NavMenuList.js +5 -103
- package/build/legacy/components/NavMenuList.js.map +1 -1
- package/build/legacy/components/NavMenuTrigger.js +5 -77
- package/build/legacy/components/NavMenuTrigger.js.map +1 -1
- package/build/legacy/components/Show.js +3 -12
- package/build/legacy/components/Show.js.map +1 -1
- package/build/legacy/context/field.js +3 -27
- package/build/legacy/context/field.js.map +1 -1
- package/build/legacy/context/navMenu.js +3 -45
- package/build/legacy/context/navMenu.js.map +1 -1
- package/build/legacy/context/theme.js +6 -21
- package/build/legacy/context/theme.js.map +1 -1
- package/build/legacy/hooks/useTheme.js +2 -56
- package/build/legacy/hooks/useTheme.js.map +1 -1
- package/build/legacy/index.js +57 -13
- package/build/legacy/index.js.map +1 -1
- package/build/legacy/types.js +1 -0
- package/build/modern/aria-helpers/nav-menu.aria.js +3 -7
- package/build/modern/aria-helpers/nav-menu.aria.js.map +1 -1
- package/build/modern/chunk-55J6XMHW.js +1 -0
- package/build/modern/chunk-6YEAMVRY.js +82 -0
- package/build/modern/chunk-6YEAMVRY.js.map +1 -0
- package/build/modern/chunk-BPIYUAYS.js +26 -0
- package/build/modern/chunk-BPIYUAYS.js.map +1 -0
- package/build/modern/chunk-JA4IX7GN.js +48 -0
- package/build/modern/chunk-JA4IX7GN.js.map +1 -0
- package/build/modern/chunk-JF76VIL3.js +12 -0
- package/build/modern/chunk-JF76VIL3.js.map +1 -0
- package/build/modern/chunk-KETL4ZJK.js +33 -0
- package/build/modern/chunk-KETL4ZJK.js.map +1 -0
- package/build/modern/chunk-KJUCHZHV.js +51 -0
- package/build/modern/chunk-KJUCHZHV.js.map +1 -0
- package/build/modern/chunk-R4H3352X.js +16 -0
- package/build/modern/chunk-R4H3352X.js.map +1 -0
- package/build/modern/chunk-SXXWC6UD.js +83 -0
- package/build/modern/chunk-SXXWC6UD.js.map +1 -0
- package/build/modern/chunk-WSQTX34C.js +86 -0
- package/build/modern/chunk-WSQTX34C.js.map +1 -0
- package/build/modern/chunk-XFWARXLU.js +26 -0
- package/build/modern/chunk-XFWARXLU.js.map +1 -0
- package/build/modern/components/Button.js +2 -26
- package/build/modern/components/Button.js.map +1 -1
- package/build/modern/components/IconButton.js +2 -64
- package/build/modern/components/IconButton.js.map +1 -1
- package/build/modern/components/NavMenuLink.js +3 -43
- package/build/modern/components/NavMenuLink.js.map +1 -1
- package/build/modern/components/NavMenuList.js +5 -103
- package/build/modern/components/NavMenuList.js.map +1 -1
- package/build/modern/components/NavMenuTrigger.js +5 -77
- package/build/modern/components/NavMenuTrigger.js.map +1 -1
- package/build/modern/components/Show.js +3 -12
- package/build/modern/components/Show.js.map +1 -1
- package/build/modern/context/field.js +3 -27
- package/build/modern/context/field.js.map +1 -1
- package/build/modern/context/navMenu.js +3 -45
- package/build/modern/context/navMenu.js.map +1 -1
- package/build/modern/context/theme.js +6 -21
- package/build/modern/context/theme.js.map +1 -1
- package/build/modern/hooks/useTheme.js +2 -56
- package/build/modern/hooks/useTheme.js.map +1 -1
- package/build/modern/index.js +57 -13
- package/build/modern/index.js.map +1 -1
- package/build/modern/types.js +1 -0
- package/package.json +5 -12
- package/src/components/Button.tsx +2 -2
- package/src/components/IconButton.tsx +2 -2
- package/src/components/NavMenuLink.tsx +1 -1
- package/src/components/NavMenuList.tsx +2 -2
- package/src/components/NavMenuTrigger.tsx +2 -2
- package/build/legacy/_tsup-dts-rollup.d.cts +0 -254
- package/build/legacy/aria-helpers/nav-menu.aria.cjs +0 -36
- package/build/legacy/aria-helpers/nav-menu.aria.cjs.map +0 -1
- package/build/legacy/aria-helpers/nav-menu.aria.d.cts +0 -2
- package/build/legacy/chunk-2EH5BYDL.js +0 -108
- package/build/legacy/chunk-2EH5BYDL.js.map +0 -1
- package/build/legacy/chunk-KMSZ2GAN.js +0 -332
- package/build/legacy/chunk-KMSZ2GAN.js.map +0 -1
- package/build/legacy/chunk-WX6UE7PC.js +0 -51
- package/build/legacy/chunk-WX6UE7PC.js.map +0 -1
- package/build/legacy/components/Button.cjs +0 -472
- package/build/legacy/components/Button.cjs.map +0 -1
- package/build/legacy/components/Button.d.cts +0 -2
- package/build/legacy/components/IconButton.cjs +0 -470
- package/build/legacy/components/IconButton.cjs.map +0 -1
- package/build/legacy/components/IconButton.d.cts +0 -3
- package/build/legacy/components/NavMenuLink.cjs +0 -346
- package/build/legacy/components/NavMenuLink.cjs.map +0 -1
- package/build/legacy/components/NavMenuLink.d.cts +0 -2
- package/build/legacy/components/NavMenuList.cjs +0 -427
- package/build/legacy/components/NavMenuList.cjs.map +0 -1
- package/build/legacy/components/NavMenuList.d.cts +0 -3
- package/build/legacy/components/NavMenuTrigger.cjs +0 -520
- package/build/legacy/components/NavMenuTrigger.cjs.map +0 -1
- package/build/legacy/components/NavMenuTrigger.d.cts +0 -2
- package/build/legacy/components/Show.cjs +0 -41
- package/build/legacy/components/Show.cjs.map +0 -1
- package/build/legacy/components/Show.d.cts +0 -2
- package/build/legacy/context/field.cjs +0 -55
- package/build/legacy/context/field.cjs.map +0 -1
- package/build/legacy/context/field.d.cts +0 -3
- package/build/legacy/context/navMenu.cjs +0 -70
- package/build/legacy/context/navMenu.cjs.map +0 -1
- package/build/legacy/context/navMenu.d.cts +0 -5
- package/build/legacy/context/theme.cjs +0 -56
- package/build/legacy/context/theme.cjs.map +0 -1
- package/build/legacy/context/theme.d.cts +0 -8
- package/build/legacy/global.d.cjs +0 -2
- package/build/legacy/global.d.d.cts +0 -1
- package/build/legacy/global.d.d.ts +0 -1
- package/build/legacy/global.d.js +0 -1
- package/build/legacy/hooks/useTheme.cjs +0 -77
- package/build/legacy/hooks/useTheme.cjs.map +0 -1
- package/build/legacy/hooks/useTheme.d.cts +0 -1
- package/build/legacy/index.cjs +0 -47
- package/build/legacy/index.cjs.map +0 -1
- package/build/legacy/index.d.cts +0 -34
- package/build/legacy/types.cjs +0 -19
- package/build/legacy/types.cjs.map +0 -1
- package/build/legacy/types.d.cts +0 -1
- package/build/modern/_tsup-dts-rollup.d.cts +0 -254
- package/build/modern/aria-helpers/nav-menu.aria.cjs +0 -36
- package/build/modern/aria-helpers/nav-menu.aria.cjs.map +0 -1
- package/build/modern/aria-helpers/nav-menu.aria.d.cts +0 -2
- package/build/modern/chunk-BLNT5VLF.js +0 -108
- package/build/modern/chunk-BLNT5VLF.js.map +0 -1
- package/build/modern/chunk-JHIMPIXK.js +0 -51
- package/build/modern/chunk-JHIMPIXK.js.map +0 -1
- package/build/modern/chunk-X3GZABU6.js +0 -332
- package/build/modern/chunk-X3GZABU6.js.map +0 -1
- package/build/modern/components/Button.cjs +0 -472
- package/build/modern/components/Button.cjs.map +0 -1
- package/build/modern/components/Button.d.cts +0 -2
- package/build/modern/components/IconButton.cjs +0 -470
- package/build/modern/components/IconButton.cjs.map +0 -1
- package/build/modern/components/IconButton.d.cts +0 -3
- package/build/modern/components/NavMenuLink.cjs +0 -346
- package/build/modern/components/NavMenuLink.cjs.map +0 -1
- package/build/modern/components/NavMenuLink.d.cts +0 -2
- package/build/modern/components/NavMenuList.cjs +0 -427
- package/build/modern/components/NavMenuList.cjs.map +0 -1
- package/build/modern/components/NavMenuList.d.cts +0 -3
- package/build/modern/components/NavMenuTrigger.cjs +0 -520
- package/build/modern/components/NavMenuTrigger.cjs.map +0 -1
- package/build/modern/components/NavMenuTrigger.d.cts +0 -2
- package/build/modern/components/Show.cjs +0 -41
- package/build/modern/components/Show.cjs.map +0 -1
- package/build/modern/components/Show.d.cts +0 -2
- package/build/modern/context/field.cjs +0 -55
- package/build/modern/context/field.cjs.map +0 -1
- package/build/modern/context/field.d.cts +0 -3
- package/build/modern/context/navMenu.cjs +0 -70
- package/build/modern/context/navMenu.cjs.map +0 -1
- package/build/modern/context/navMenu.d.cts +0 -5
- package/build/modern/context/theme.cjs +0 -56
- package/build/modern/context/theme.cjs.map +0 -1
- package/build/modern/context/theme.d.cts +0 -8
- package/build/modern/global.d.cjs +0 -2
- package/build/modern/global.d.cjs.map +0 -1
- package/build/modern/global.d.d.cts +0 -1
- package/build/modern/global.d.d.ts +0 -1
- package/build/modern/global.d.js +0 -1
- package/build/modern/global.d.js.map +0 -1
- package/build/modern/hooks/useTheme.cjs +0 -77
- package/build/modern/hooks/useTheme.cjs.map +0 -1
- package/build/modern/hooks/useTheme.d.cts +0 -1
- package/build/modern/index.cjs +0 -47
- package/build/modern/index.cjs.map +0 -1
- package/build/modern/index.d.cts +0 -34
- package/build/modern/types.cjs +0 -19
- package/build/modern/types.cjs.map +0 -1
- package/build/modern/types.d.cts +0 -1
- package/src/global.d.ts +0 -19
- /package/build/legacy/{global.d.cjs.map → chunk-55J6XMHW.js.map} +0 -0
- /package/build/{legacy/global.d.js.map → modern/chunk-55J6XMHW.js.map} +0 -0
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import type { AnchorHTMLAttributes } from 'react';
|
|
2
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { ElementType } from 'react';
|
|
4
|
-
import { HTMLAttributes } from 'react';
|
|
5
|
-
import { PropsWithChildren } from 'react';
|
|
6
|
-
import { ReactNode } from 'react';
|
|
7
|
-
import { RefObject } from 'react';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A component that allows the user to perform actions
|
|
11
|
-
* @description https://github.com/omnifed/cerberus/blob/main/packages/react/src/components/Button.tsx
|
|
12
|
-
*/
|
|
13
|
-
declare function Button(props: ButtonProps): JSX.Element;
|
|
14
|
-
export { Button }
|
|
15
|
-
export { Button as Button_alias_1 }
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* This module contains the Button component.
|
|
19
|
-
* @module
|
|
20
|
-
*/
|
|
21
|
-
declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
22
|
-
palette?: 'action' | 'danger';
|
|
23
|
-
usage?: 'filled' | 'outline' | 'text';
|
|
24
|
-
shape?: 'sharp' | 'rounded';
|
|
25
|
-
}
|
|
26
|
-
export { ButtonProps }
|
|
27
|
-
export { ButtonProps as ButtonProps_alias_1 }
|
|
28
|
-
|
|
29
|
-
declare type ColorModes = 'light' | 'dark';
|
|
30
|
-
export { ColorModes }
|
|
31
|
-
export { ColorModes as ColorModes_alias_1 }
|
|
32
|
-
|
|
33
|
-
declare function createNavTriggerProps(values: NavTriggerAriaValues): NavTriggerAriaReturn;
|
|
34
|
-
export { createNavTriggerProps }
|
|
35
|
-
export { createNavTriggerProps as createNavTriggerProps_alias_1 }
|
|
36
|
-
|
|
37
|
-
declare type CustomThemes<K extends string = DefaultThemes> = 'cerberus' | K;
|
|
38
|
-
export { CustomThemes }
|
|
39
|
-
export { CustomThemes as CustomThemes_alias_1 }
|
|
40
|
-
|
|
41
|
-
declare type DefaultThemes = 'cerberus';
|
|
42
|
-
export { DefaultThemes }
|
|
43
|
-
export { DefaultThemes as DefaultThemes_alias_1 }
|
|
44
|
-
|
|
45
|
-
declare function Field(props: PropsWithChildren<FieldContextValue>): JSX.Element;
|
|
46
|
-
export { Field }
|
|
47
|
-
export { Field as Field_alias_1 }
|
|
48
|
-
|
|
49
|
-
declare interface FieldContextValue {
|
|
50
|
-
disabled?: boolean;
|
|
51
|
-
readonly?: boolean;
|
|
52
|
-
required?: boolean;
|
|
53
|
-
invalid?: boolean;
|
|
54
|
-
}
|
|
55
|
-
export { FieldContextValue }
|
|
56
|
-
export { FieldContextValue as FieldContextValue_alias_1 }
|
|
57
|
-
|
|
58
|
-
declare function getPosition(position: Positions): GetPositionResult;
|
|
59
|
-
export { getPosition }
|
|
60
|
-
export { getPosition as getPosition_alias_1 }
|
|
61
|
-
|
|
62
|
-
declare interface GetPositionResult {
|
|
63
|
-
left: string;
|
|
64
|
-
right: string;
|
|
65
|
-
top: string;
|
|
66
|
-
bottom: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* A component that allows the user to perform actions using an icon
|
|
71
|
-
* @description https://github.com/omnifed/cerberus/blob/main/packages/react/src/components/IconButton.tsx
|
|
72
|
-
*/
|
|
73
|
-
declare function IconButton(props: IconButtonProps): JSX.Element;
|
|
74
|
-
export { IconButton }
|
|
75
|
-
export { IconButton as IconButton_alias_1 }
|
|
76
|
-
|
|
77
|
-
declare interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
78
|
-
ariaLabel: string;
|
|
79
|
-
palette?: ButtonProps['palette'];
|
|
80
|
-
usage?: IconButtonUsage;
|
|
81
|
-
shape?: 'circle';
|
|
82
|
-
}
|
|
83
|
-
export { IconButtonProps }
|
|
84
|
-
export { IconButtonProps as IconButtonProps_alias_1 }
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* This module contains the Icon Button component.
|
|
88
|
-
* @module
|
|
89
|
-
*/
|
|
90
|
-
declare type IconButtonUsage = Exclude<ButtonProps['usage'], 'outline'>;
|
|
91
|
-
export { IconButtonUsage }
|
|
92
|
-
export { IconButtonUsage as IconButtonUsage_alias_1 }
|
|
93
|
-
|
|
94
|
-
declare const MODE_KEY = "cerberus-mode";
|
|
95
|
-
export { MODE_KEY }
|
|
96
|
-
export { MODE_KEY as MODE_KEY_alias_1 }
|
|
97
|
-
|
|
98
|
-
declare function NavMenu(props: PropsWithChildren): JSX.Element;
|
|
99
|
-
export { NavMenu }
|
|
100
|
-
export { NavMenu as NavMenu_alias_1 }
|
|
101
|
-
|
|
102
|
-
declare interface NavMenuContextValue {
|
|
103
|
-
triggerRef: NavTriggerRef | null;
|
|
104
|
-
menuRef: NavMenuRef | null;
|
|
105
|
-
expanded: boolean;
|
|
106
|
-
onToggle: () => void;
|
|
107
|
-
}
|
|
108
|
-
export { NavMenuContextValue }
|
|
109
|
-
export { NavMenuContextValue as NavMenuContextValue_alias_1 }
|
|
110
|
-
|
|
111
|
-
declare function NavMenuLink(props: NavMenuLinkProps): JSX.Element;
|
|
112
|
-
export { NavMenuLink }
|
|
113
|
-
export { NavMenuLink as NavMenuLink_alias_1 }
|
|
114
|
-
|
|
115
|
-
declare interface NavMenuLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
116
|
-
as?: ElementType;
|
|
117
|
-
}
|
|
118
|
-
export { NavMenuLinkProps }
|
|
119
|
-
export { NavMenuLinkProps as NavMenuLinkProps_alias_1 }
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* A component that allows the user to display a menu of navigation links.
|
|
123
|
-
* @definition [Disclosure Nav](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-navigation/)
|
|
124
|
-
* @definition [NavMenu Docs](https://cerberus.digitalu.design/react/nav-menu)
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* ```tsx
|
|
128
|
-
* <NavMenuList id="nav-menu-list" position="bottom">
|
|
129
|
-
* <NavMenuLink href="/home">Home</NavMenuLink>
|
|
130
|
-
* <NavMenuLink href="/about">About</NavMenuLink>
|
|
131
|
-
* </NavMenuList>
|
|
132
|
-
* ```
|
|
133
|
-
**/
|
|
134
|
-
declare function NavMenuList(props: NavMenuListProps): JSX.Element;
|
|
135
|
-
export { NavMenuList }
|
|
136
|
-
export { NavMenuList as NavMenuList_alias_1 }
|
|
137
|
-
|
|
138
|
-
declare interface NavMenuListProps extends HTMLAttributes<HTMLUListElement> {
|
|
139
|
-
id: string;
|
|
140
|
-
position?: Positions;
|
|
141
|
-
}
|
|
142
|
-
export { NavMenuListProps }
|
|
143
|
-
export { NavMenuListProps as NavMenuListProps_alias_1 }
|
|
144
|
-
|
|
145
|
-
declare type NavMenuRef = RefObject<HTMLUListElement>;
|
|
146
|
-
export { NavMenuRef }
|
|
147
|
-
export { NavMenuRef as NavMenuRef_alias_1 }
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* A component that allows the user to trigger a navigation menu.
|
|
151
|
-
* @definition [NavMenu Docs](https://cerberus.digitalu.design/react/nav-menu)
|
|
152
|
-
* @example
|
|
153
|
-
* ```tsx
|
|
154
|
-
* <NavMenu>
|
|
155
|
-
* <NavMenuTrigger controls="nav-menu-list">
|
|
156
|
-
* Menu
|
|
157
|
-
* </NavMenuTrigger>
|
|
158
|
-
* </NavMenu>
|
|
159
|
-
* ```
|
|
160
|
-
*/
|
|
161
|
-
declare function NavMenuTrigger(props: NavMenuTriggerProps): JSX.Element;
|
|
162
|
-
export { NavMenuTrigger }
|
|
163
|
-
export { NavMenuTrigger as NavMenuTrigger_alias_1 }
|
|
164
|
-
|
|
165
|
-
declare interface NavMenuTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement>, ButtonProps, NavTriggerAriaValues {
|
|
166
|
-
as?: ElementType;
|
|
167
|
-
}
|
|
168
|
-
export { NavMenuTriggerProps }
|
|
169
|
-
export { NavMenuTriggerProps as NavMenuTriggerProps_alias_1 }
|
|
170
|
-
|
|
171
|
-
declare interface NavTriggerAriaReturn {
|
|
172
|
-
['aria-controls']: string;
|
|
173
|
-
['aria-expanded']: boolean;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
declare interface NavTriggerAriaValues {
|
|
177
|
-
controls: string;
|
|
178
|
-
expanded?: boolean;
|
|
179
|
-
}
|
|
180
|
-
export { NavTriggerAriaValues }
|
|
181
|
-
export { NavTriggerAriaValues as NavTriggerAriaValues_alias_1 }
|
|
182
|
-
|
|
183
|
-
declare type NavTriggerRef = RefObject<HTMLButtonElement>;
|
|
184
|
-
export { NavTriggerRef }
|
|
185
|
-
export { NavTriggerRef as NavTriggerRef_alias_1 }
|
|
186
|
-
|
|
187
|
-
declare type Positions = 'top' | 'right' | 'bottom' | 'left';
|
|
188
|
-
export { Positions }
|
|
189
|
-
export { Positions as Positions_alias_1 }
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Conditionally render its children or an optional fallback component
|
|
193
|
-
* based on the SolidJS component.
|
|
194
|
-
* @definition [Show docs](https://cerberus.digitalu.design/react/show)
|
|
195
|
-
* @example
|
|
196
|
-
* ```tsx
|
|
197
|
-
* <Show when={condition}>
|
|
198
|
-
* <div>Content</div>
|
|
199
|
-
* </Show>
|
|
200
|
-
*/
|
|
201
|
-
declare function Show(props: PropsWithChildren<ShowProps>): ReactNode;
|
|
202
|
-
export { Show }
|
|
203
|
-
export { Show as Show_alias_1 }
|
|
204
|
-
|
|
205
|
-
declare interface ShowProps {
|
|
206
|
-
when: boolean | null | undefined;
|
|
207
|
-
fallback?: ReactNode;
|
|
208
|
-
}
|
|
209
|
-
export { ShowProps }
|
|
210
|
-
export { ShowProps as ShowProps_alias_1 }
|
|
211
|
-
|
|
212
|
-
declare const THEME_KEY = "cerberus-theme";
|
|
213
|
-
export { THEME_KEY }
|
|
214
|
-
export { THEME_KEY as THEME_KEY_alias_1 }
|
|
215
|
-
|
|
216
|
-
declare interface ThemeContextValue<T extends string = DefaultThemes> {
|
|
217
|
-
theme: CustomThemes<T>;
|
|
218
|
-
mode: ColorModes;
|
|
219
|
-
updateTheme: (theme: T) => void;
|
|
220
|
-
updateMode: () => void;
|
|
221
|
-
}
|
|
222
|
-
export { ThemeContextValue }
|
|
223
|
-
export { ThemeContextValue as ThemeContextValue_alias_1 }
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* A context provider that allows the user to set the theme and mode of the application.
|
|
227
|
-
* @example
|
|
228
|
-
* ```tsx
|
|
229
|
-
* <ThemeProvider>
|
|
230
|
-
* <App />
|
|
231
|
-
* </ThemeProvider>
|
|
232
|
-
* ```
|
|
233
|
-
*/
|
|
234
|
-
declare function ThemeProvider(props: PropsWithChildren<unknown>): JSX.Element;
|
|
235
|
-
export { ThemeProvider }
|
|
236
|
-
export { ThemeProvider as ThemeProvider_alias_1 }
|
|
237
|
-
|
|
238
|
-
declare function useFieldContext(): FieldContextValue;
|
|
239
|
-
export { useFieldContext }
|
|
240
|
-
export { useFieldContext as useFieldContext_alias_1 }
|
|
241
|
-
|
|
242
|
-
declare function useNavMenuContext(): NavMenuContextValue;
|
|
243
|
-
export { useNavMenuContext }
|
|
244
|
-
export { useNavMenuContext as useNavMenuContext_alias_1 }
|
|
245
|
-
|
|
246
|
-
declare function useTheme<C extends string = DefaultThemes>(defaultTheme?: CustomThemes<C>, defaultColorMode?: ColorModes): ThemeContextValue<C>;
|
|
247
|
-
export { useTheme }
|
|
248
|
-
export { useTheme as useTheme_alias_1 }
|
|
249
|
-
|
|
250
|
-
declare function useThemeContext(): ThemeContextValue<DefaultThemes>;
|
|
251
|
-
export { useThemeContext }
|
|
252
|
-
export { useThemeContext as useThemeContext_alias_1 }
|
|
253
|
-
|
|
254
|
-
export { }
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/aria-helpers/nav-menu.aria.ts
|
|
21
|
-
var nav_menu_aria_exports = {};
|
|
22
|
-
__export(nav_menu_aria_exports, {
|
|
23
|
-
createNavTriggerProps: () => createNavTriggerProps
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(nav_menu_aria_exports);
|
|
26
|
-
function createNavTriggerProps(values) {
|
|
27
|
-
return {
|
|
28
|
-
["aria-controls"]: values.controls,
|
|
29
|
-
["aria-expanded"]: values.expanded ?? false
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
-
0 && (module.exports = {
|
|
34
|
-
createNavTriggerProps
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=nav-menu.aria.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/aria-helpers/nav-menu.aria.ts"],"sourcesContent":["export interface NavTriggerAriaValues {\n controls: string\n expanded?: boolean\n}\n\ninterface NavTriggerAriaReturn {\n ['aria-controls']: string\n ['aria-expanded']: boolean\n}\n\nexport function createNavTriggerProps(\n values: NavTriggerAriaValues,\n): NavTriggerAriaReturn {\n return {\n ['aria-controls']: values.controls,\n ['aria-expanded']: values.expanded ?? false,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,SAAS,sBACd,QACsB;AACtB,SAAO;AAAA,IACL,CAAC,eAAe,GAAG,OAAO;AAAA,IAC1B,CAAC,eAAe,GAAG,OAAO,YAAY;AAAA,EACxC;AACF;","names":[]}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
compact,
|
|
3
|
-
createCss,
|
|
4
|
-
css,
|
|
5
|
-
cx,
|
|
6
|
-
finalizeConditions,
|
|
7
|
-
mergeCss,
|
|
8
|
-
sortConditions,
|
|
9
|
-
splitProps,
|
|
10
|
-
uniq,
|
|
11
|
-
withoutSpace
|
|
12
|
-
} from "./chunk-X3GZABU6.js";
|
|
13
|
-
|
|
14
|
-
// ../styled-system/css/cva.mjs
|
|
15
|
-
function getCompoundVariantCss(compoundVariants, variantMap) {
|
|
16
|
-
let result = {};
|
|
17
|
-
compoundVariants.forEach((compoundVariant) => {
|
|
18
|
-
const isMatching = Object.entries(compoundVariant).every(([key, value]) => {
|
|
19
|
-
if (key === "css")
|
|
20
|
-
return true;
|
|
21
|
-
const values = Array.isArray(value) ? value : [value];
|
|
22
|
-
return values.some((value2) => variantMap[key] === value2);
|
|
23
|
-
});
|
|
24
|
-
if (isMatching) {
|
|
25
|
-
result = mergeCss(result, compoundVariant.css);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return result;
|
|
29
|
-
}
|
|
30
|
-
function assertCompoundVariant(name, compoundVariants, variants, prop) {
|
|
31
|
-
if (compoundVariants.length > 0 && typeof variants?.[prop] === "object") {
|
|
32
|
-
throw new Error(`[recipe:${name}:${prop}] Conditions are not supported when using compound variants.`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// ../styled-system/recipes/create-recipe.mjs
|
|
37
|
-
var createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
38
|
-
const getVariantProps = (variants) => {
|
|
39
|
-
return {
|
|
40
|
-
[name]: "__ignore__",
|
|
41
|
-
...defaultVariants,
|
|
42
|
-
...compact(variants)
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
const recipeFn = (variants, withCompoundVariants = true) => {
|
|
46
|
-
const transform = (prop, value) => {
|
|
47
|
-
assertCompoundVariant(name, compoundVariants, variants, prop);
|
|
48
|
-
if (value === "__ignore__") {
|
|
49
|
-
return { className: name };
|
|
50
|
-
}
|
|
51
|
-
value = withoutSpace(value);
|
|
52
|
-
return { className: `${name}--${prop}_${value}` };
|
|
53
|
-
};
|
|
54
|
-
const recipeCss = createCss({
|
|
55
|
-
conditions: {
|
|
56
|
-
shift: sortConditions,
|
|
57
|
-
finalize: finalizeConditions,
|
|
58
|
-
breakpoints: { keys: ["base", "sm", "md", "lg", "xl", "2xl"] }
|
|
59
|
-
},
|
|
60
|
-
utility: {
|
|
61
|
-
prefix: "cerberus",
|
|
62
|
-
toHash: (path, hashFn) => hashFn(path.join(":")),
|
|
63
|
-
transform
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
const recipeStyles = getVariantProps(variants);
|
|
67
|
-
if (withCompoundVariants) {
|
|
68
|
-
const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles);
|
|
69
|
-
return cx(recipeCss(recipeStyles), css(compoundVariantStyles));
|
|
70
|
-
}
|
|
71
|
-
return recipeCss(recipeStyles);
|
|
72
|
-
};
|
|
73
|
-
return {
|
|
74
|
-
recipeFn,
|
|
75
|
-
getVariantProps,
|
|
76
|
-
__getCompoundVariantCss__: (variants) => {
|
|
77
|
-
return getCompoundVariantCss(compoundVariants, getVariantProps(variants));
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
var mergeRecipes = (recipeA, recipeB) => {
|
|
82
|
-
if (recipeA && !recipeB)
|
|
83
|
-
return recipeA;
|
|
84
|
-
if (!recipeA && recipeB)
|
|
85
|
-
return recipeB;
|
|
86
|
-
const recipeFn = (...args) => cx(recipeA(...args), recipeB(...args));
|
|
87
|
-
const variantKeys = uniq(recipeA.variantKeys, recipeB.variantKeys);
|
|
88
|
-
const variantMap = variantKeys.reduce((acc, key) => {
|
|
89
|
-
acc[key] = uniq(recipeA.variantMap[key], recipeB.variantMap[key]);
|
|
90
|
-
return acc;
|
|
91
|
-
}, {});
|
|
92
|
-
return Object.assign(recipeFn, {
|
|
93
|
-
__recipe__: true,
|
|
94
|
-
__name__: `${recipeA.__name__} ${recipeB.__name__}`,
|
|
95
|
-
raw: (props) => props,
|
|
96
|
-
variantKeys,
|
|
97
|
-
variantMap,
|
|
98
|
-
splitVariantProps(props) {
|
|
99
|
-
return splitProps(props, variantKeys);
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export {
|
|
105
|
-
createRecipe,
|
|
106
|
-
mergeRecipes
|
|
107
|
-
};
|
|
108
|
-
//# sourceMappingURL=chunk-BLNT5VLF.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../styled-system/css/cva.mjs","../../../styled-system/recipes/create-recipe.mjs"],"sourcesContent":["import { compact, mergeProps, memo, splitProps, uniq } from '../helpers.mjs';\nimport { css, mergeCss } from './css.mjs';\n\nconst defaults = (conf) => ({\n base: {},\n variants: {},\n defaultVariants: {},\n compoundVariants: [],\n ...conf,\n})\n\nexport function cva(config) {\n const { base, variants, defaultVariants, compoundVariants } = defaults(config)\n const getVariantProps = (variants) => ({ ...defaultVariants, ...compact(variants) })\n\n function resolve(props = {}) {\n const computedVariants = getVariantProps(props)\n let variantCss = { ...base }\n for (const [key, value] of Object.entries(computedVariants)) {\n if (variants[key]?.[value]) {\n variantCss = mergeCss(variantCss, variants[key][value])\n }\n }\n const compoundVariantCss = getCompoundVariantCss(compoundVariants, computedVariants)\n return mergeCss(variantCss, compoundVariantCss)\n }\n\n function merge(__cva) {\n const override = defaults(__cva.config)\n const variantKeys = uniq(__cva.variantKeys, Object.keys(variants))\n return cva({\n base: mergeCss(base, override.base),\n variants: Object.fromEntries(\n variantKeys.map((key) => [key, mergeCss(variants[key], override.variants[key])]),\n ),\n defaultVariants: mergeProps(defaultVariants, override.defaultVariants),\n compoundVariants: [...compoundVariants, ...override.compoundVariants],\n })\n }\n\n function cvaFn(props) {\n return css(resolve(props))\n }\n\n const variantKeys = Object.keys(variants)\n\n function splitVariantProps(props) {\n return splitProps(props, variantKeys)\n }\n\n const variantMap = Object.fromEntries(Object.entries(variants).map(([key, value]) => [key, Object.keys(value)]))\n\n return Object.assign(memo(cvaFn), {\n __cva__: true,\n variantMap,\n variantKeys,\n raw: resolve,\n config,\n merge,\n splitVariantProps,\n getVariantProps\n })\n}\n\nexport function getCompoundVariantCss(compoundVariants, variantMap) {\n let result = {}\n compoundVariants.forEach((compoundVariant) => {\n const isMatching = Object.entries(compoundVariant).every(([key, value]) => {\n if (key === 'css') return true\n\n const values = Array.isArray(value) ? value : [value]\n return values.some((value) => variantMap[key] === value)\n })\n\n if (isMatching) {\n result = mergeCss(result, compoundVariant.css)\n }\n })\n\n return result\n}\n\nexport function assertCompoundVariant(name, compoundVariants, variants, prop) {\n if (compoundVariants.length > 0 && typeof variants?.[prop] === 'object') {\n throw new Error(`[recipe:${name}:${prop}] Conditions are not supported when using compound variants.`)\n }\n}\n","import { finalizeConditions, sortConditions } from '../css/conditions.mjs';\nimport { css } from '../css/css.mjs';\nimport { assertCompoundVariant, getCompoundVariantCss } from '../css/cva.mjs';\nimport { cx } from '../css/cx.mjs';\nimport { compact, createCss, splitProps, uniq, withoutSpace } from '../helpers.mjs';\n\nexport const createRecipe = (name, defaultVariants, compoundVariants) => {\n const getVariantProps = (variants) => {\n return {\n [name]: '__ignore__',\n ...defaultVariants,\n ...compact(variants),\n };\n };\n\n const recipeFn = (variants, withCompoundVariants = true) => {\n const transform = (prop, value) => {\n assertCompoundVariant(name, compoundVariants, variants, prop)\n\n if (value === '__ignore__') {\n return { className: name }\n }\n\n value = withoutSpace(value)\n return { className: `${name}--${prop}_${value}` }\n }\n\n const recipeCss = createCss({\n \n conditions: {\n shift: sortConditions,\n finalize: finalizeConditions,\n breakpoints: { keys: [\"base\",\"sm\",\"md\",\"lg\",\"xl\",\"2xl\"] }\n },\n utility: {\n prefix: \"cerberus\",\n toHash: (path, hashFn) => hashFn(path.join(\":\")),\n transform,\n }\n })\n\n const recipeStyles = getVariantProps(variants)\n\n if (withCompoundVariants) {\n const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles)\n return cx(recipeCss(recipeStyles), css(compoundVariantStyles))\n }\n\n return recipeCss(recipeStyles)\n }\n\n return {\n recipeFn,\n getVariantProps,\n __getCompoundVariantCss__: (variants) => {\n return getCompoundVariantCss(compoundVariants, getVariantProps(variants));\n },\n }\n}\n\nexport const mergeRecipes = (recipeA, recipeB) => {\n if (recipeA && !recipeB) return recipeA\n if (!recipeA && recipeB) return recipeB\n\n const recipeFn = (...args) => cx(recipeA(...args), recipeB(...args))\n const variantKeys = uniq(recipeA.variantKeys, recipeB.variantKeys)\n const variantMap = variantKeys.reduce((acc, key) => {\n acc[key] = uniq(recipeA.variantMap[key], recipeB.variantMap[key])\n return acc\n }, {})\n\n return Object.assign(recipeFn, {\n __recipe__: true,\n __name__: `${recipeA.__name__} ${recipeB.__name__}`,\n raw: (props) => props,\n variantKeys,\n variantMap,\n splitVariantProps(props) {\n return splitProps(props, variantKeys)\n },\n })\n }\n"],"mappings":"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","names":["value"]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createRecipe,
|
|
3
|
-
mergeRecipes
|
|
4
|
-
} from "./chunk-BLNT5VLF.js";
|
|
5
|
-
import {
|
|
6
|
-
memo,
|
|
7
|
-
splitProps
|
|
8
|
-
} from "./chunk-X3GZABU6.js";
|
|
9
|
-
|
|
10
|
-
// ../styled-system/recipes/button.mjs
|
|
11
|
-
var buttonFn = /* @__PURE__ */ createRecipe("button", {
|
|
12
|
-
"palette": "action",
|
|
13
|
-
"usage": "filled",
|
|
14
|
-
"shape": "sharp"
|
|
15
|
-
}, []);
|
|
16
|
-
var buttonVariantMap = {
|
|
17
|
-
"palette": [
|
|
18
|
-
"action",
|
|
19
|
-
"danger"
|
|
20
|
-
],
|
|
21
|
-
"usage": [
|
|
22
|
-
"text",
|
|
23
|
-
"outline",
|
|
24
|
-
"filled"
|
|
25
|
-
],
|
|
26
|
-
"shape": [
|
|
27
|
-
"sharp",
|
|
28
|
-
"rounded"
|
|
29
|
-
]
|
|
30
|
-
};
|
|
31
|
-
var buttonVariantKeys = Object.keys(buttonVariantMap);
|
|
32
|
-
var button = /* @__PURE__ */ Object.assign(memo(buttonFn.recipeFn), {
|
|
33
|
-
__recipe__: true,
|
|
34
|
-
__name__: "button",
|
|
35
|
-
__getCompoundVariantCss__: buttonFn.__getCompoundVariantCss__,
|
|
36
|
-
raw: (props) => props,
|
|
37
|
-
variantKeys: buttonVariantKeys,
|
|
38
|
-
variantMap: buttonVariantMap,
|
|
39
|
-
merge(recipe) {
|
|
40
|
-
return mergeRecipes(this, recipe);
|
|
41
|
-
},
|
|
42
|
-
splitVariantProps(props) {
|
|
43
|
-
return splitProps(props, buttonVariantKeys);
|
|
44
|
-
},
|
|
45
|
-
getVariantProps: buttonFn.getVariantProps
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
export {
|
|
49
|
-
button
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=chunk-JHIMPIXK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../styled-system/recipes/button.mjs"],"sourcesContent":["import { memo, splitProps } from '../helpers.mjs';\nimport { createRecipe, mergeRecipes } from './create-recipe.mjs';\n\nconst buttonFn = /* @__PURE__ */ createRecipe('button', {\n \"palette\": \"action\",\n \"usage\": \"filled\",\n \"shape\": \"sharp\"\n}, [])\n\nconst buttonVariantMap = {\n \"palette\": [\n \"action\",\n \"danger\"\n ],\n \"usage\": [\n \"text\",\n \"outline\",\n \"filled\"\n ],\n \"shape\": [\n \"sharp\",\n \"rounded\"\n ]\n}\n\nconst buttonVariantKeys = Object.keys(buttonVariantMap)\n\nexport const button = /* @__PURE__ */ Object.assign(memo(buttonFn.recipeFn), {\n __recipe__: true,\n __name__: 'button',\n __getCompoundVariantCss__: buttonFn.__getCompoundVariantCss__,\n raw: (props) => props,\n variantKeys: buttonVariantKeys,\n variantMap: buttonVariantMap,\n merge(recipe) {\n return mergeRecipes(this, recipe)\n },\n splitVariantProps(props) {\n return splitProps(props, buttonVariantKeys)\n },\n getVariantProps: buttonFn.getVariantProps,\n})"],"mappings":";;;;;;;;;;AAGA,IAAM,WAA2B,6BAAa,UAAU;AAAA,EACtD,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AACX,GAAG,CAAC,CAAC;AAEL,IAAM,mBAAmB;AAAA,EACvB,WAAW;AAAA,IACT;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAS;AAAA,IACP;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAM,oBAAoB,OAAO,KAAK,gBAAgB;AAE/C,IAAM,SAAyB,uBAAO,OAAO,KAAK,SAAS,QAAQ,GAAG;AAAA,EAC3E,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,2BAA2B,SAAS;AAAA,EACpC,KAAK,CAAC,UAAU;AAAA,EAChB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,MAAM,QAAQ;AACZ,WAAO,aAAa,MAAM,MAAM;AAAA,EAClC;AAAA,EACA,kBAAkB,OAAO;AACvB,WAAO,WAAW,OAAO,iBAAiB;AAAA,EAC5C;AAAA,EACA,iBAAiB,SAAS;AAC5B,CAAC;","names":[]}
|