@admin-layout/tailwind-ui 12.0.16-alpha.30 → 12.0.16-alpha.31

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.
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ export declare const SelectContent: ({ children, className }: {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ type SelectItemProps<T extends keyof JSX.IntrinsicElements = 'button'> = Omit<React.ComponentPropsWithoutRef<T>, 'value'> & {
7
+ value?: any;
8
+ closeOnClick?: boolean;
9
+ tag?: T;
10
+ onClick?: () => void;
11
+ };
12
+ export declare const SelectItem: <T extends keyof JSX.IntrinsicElements = "button">({ children, className, value, onClick, closeOnClick, tag, ...rest }: SelectItemProps<T>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const SelectValue: ({ placeholder, icon: _icon, label, }: {
14
+ placeholder: string;
15
+ icon?: React.ReactNode;
16
+ label?: (selectedValue: any) => string;
17
+ }) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const SelectTrigger: ({ children, className }: {
19
+ children: React.ReactNode;
20
+ className?: string;
21
+ }) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const SelectSearch: ({ placeholder, onChange, }: {
23
+ placeholder: string;
24
+ onChange?: (value: string) => void;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
+ interface SelectProps {
27
+ children: React.ReactNode;
28
+ onChange?: (selectedValue: any) => void;
29
+ disabled?: boolean;
30
+ value?: any;
31
+ loading?: boolean;
32
+ }
33
+ export declare const Select: ({ children, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
34
+ export {};
35
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4E/B,eAAO,MAAM,aAAa,GAAI,yBAAyB;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CA2EvG,CAAC;AAEF,KAAK,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,QAAQ,IAAI,IAAI,CACzE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EACjC,OAAO,CACV,GAAG;IACA,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,GAAG,CAAC,EAAE,CAAC,CAAC;IACR,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,QAAQ,EAAE,qEAQ1E,eAAe,CAAC,CAAC,CAAC,4CAqBpB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sCAIzB;IACC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,KAAK,MAAM,CAAC;CAC1C,4CAsCA,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,yBAAyB;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAiBvG,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,4BAG1B;IACC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,4CAoBA,CAAC;AAEF,UAAU,WAAW;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAkBD,eAAO,MAAM,MAAM,GAAI,wBAAwB,WAAW,4CAMzD,CAAC"}
@@ -0,0 +1,256 @@
1
+ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import*as React from'react';import {ChevronDown,Search}from'lucide-react';import {cn}from'../../utils/util.js';const SelectContext = React.createContext(undefined);
2
+ const SelectProvider = ({
3
+ children,
4
+ value,
5
+ onChange,
6
+ loading = false
7
+ }) => {
8
+ const [open, setOpen] = React.useState(false);
9
+ // Controlled vs uncontrolled state
10
+ const isControlled = value !== undefined;
11
+ const [internalValue, setInternalValue] = React.useState(value ?? null);
12
+ const selectedValue = isControlled ? value : internalValue;
13
+ const setSelectedValue = val => {
14
+ if (!isControlled) {
15
+ setInternalValue(val);
16
+ }
17
+ onChange?.(val);
18
+ };
19
+ const [disabled, setDisabled] = React.useState(false);
20
+ const [searchValue, setSearchValue] = React.useState('');
21
+ const triggerRef = React.useRef(null);
22
+ return jsx(SelectContext.Provider, {
23
+ value: {
24
+ open,
25
+ setOpen,
26
+ selectedValue,
27
+ setSelectedValue,
28
+ disabled,
29
+ setDisabled,
30
+ searchValue,
31
+ setSearchValue,
32
+ triggerRef,
33
+ loading
34
+ },
35
+ children: children
36
+ });
37
+ };
38
+ const useSelectContext = () => {
39
+ const ctx = React.useContext(SelectContext);
40
+ if (!ctx) throw new Error('useSelectContext must be used within SelectProvider');
41
+ return ctx;
42
+ };
43
+ const SelectContent = ({
44
+ children,
45
+ className
46
+ }) => {
47
+ const {
48
+ open,
49
+ setOpen,
50
+ triggerRef
51
+ } = useSelectContext();
52
+ const contentRef = React.useRef(null);
53
+ const [styles, setStyles] = React.useState({});
54
+ const handleOverflow = () => {
55
+ if (!open) return;
56
+ const triggerEl = triggerRef.current;
57
+ const contentEl = contentRef.current;
58
+ if (triggerEl && contentEl) {
59
+ const triggerRect = triggerEl.getBoundingClientRect();
60
+ const contentRect = contentEl.getBoundingClientRect();
61
+ const viewportWidth = window.innerWidth;
62
+ const viewportHeight = window.innerHeight;
63
+ // Default position
64
+ let top = triggerRect.height;
65
+ let left = 0;
66
+ const isOverflowingRight = triggerRect.right + contentRect.width > viewportWidth;
67
+ const isOverflowingBottom = triggerRect.bottom + contentRect.height > viewportHeight;
68
+ if (isOverflowingRight) {
69
+ left = -(contentRect.width - triggerRect.width);
70
+ }
71
+ if (isOverflowingBottom) {
72
+ top = -(contentRect.height + 8);
73
+ }
74
+ setStyles({
75
+ top,
76
+ left
77
+ });
78
+ }
79
+ };
80
+ React.useEffect(() => {
81
+ handleOverflow();
82
+ }, [open]);
83
+ React.useEffect(() => {
84
+ const handleClickOutside = event => {
85
+ if (contentRef.current && !contentRef.current.contains(event.target) && !triggerRef.current?.contains(event.target)) {
86
+ setOpen(false);
87
+ }
88
+ };
89
+ document.addEventListener('mousedown', handleClickOutside);
90
+ return () => {
91
+ document.removeEventListener('mousedown', handleClickOutside);
92
+ };
93
+ }, [contentRef, triggerRef, setOpen]);
94
+ return jsx("div", {
95
+ ref: contentRef,
96
+ role: "listbox",
97
+ style: {
98
+ ...styles,
99
+ display: open ? 'block' : 'none'
100
+ },
101
+ className: cn('absolute z-50 mt-2 min-w-full max-w-max max-h-96 overflow-y-auto overflow-x-hidden rounded-md border border-gray-300 bg-white shadow-lg focus:outline-none', className),
102
+ children: children
103
+ });
104
+ };
105
+ const SelectItem = ({
106
+ children,
107
+ className,
108
+ value,
109
+ onClick,
110
+ closeOnClick = true,
111
+ tag,
112
+ ...rest
113
+ }) => {
114
+ const {
115
+ setOpen,
116
+ setSelectedValue
117
+ } = useSelectContext();
118
+ const Tag = tag || 'button';
119
+ const handleClick = e => {
120
+ setSelectedValue(value ?? null);
121
+ if (onClick) onClick(value ?? null);
122
+ if (closeOnClick) setOpen(false);
123
+ };
124
+ return jsx(Tag, {
125
+ role: "option",
126
+ onClick: handleClick,
127
+ className: cn('flex min-w-full w-max items-center gap-2 px-4 py-2 text-sm hover:bg-gray-100', className),
128
+ ...rest,
129
+ children: children
130
+ });
131
+ };
132
+ const SelectValue = ({
133
+ placeholder,
134
+ icon: _icon,
135
+ label
136
+ }) => {
137
+ const {
138
+ selectedValue,
139
+ loading
140
+ } = useSelectContext();
141
+ const icon = _icon || '';
142
+ if (loading) {
143
+ return jsxs("span", {
144
+ className: "block text-muted-foreground flex items-center gap-2",
145
+ children: [icon, "Loading..."]
146
+ });
147
+ }
148
+ const isStrOrInt = typeof selectedValue === 'string' || typeof selectedValue === 'number';
149
+ if (selectedValue && !isStrOrInt && !label) {
150
+ throw new Error('SelectValue must have a label prop if selectedValue is not a string or number');
151
+ }
152
+ if (label && selectedValue !== null && selectedValue !== undefined) {
153
+ return jsxs(Fragment, {
154
+ children: [icon, label(selectedValue)]
155
+ });
156
+ }
157
+ if (selectedValue === null || selectedValue === undefined) {
158
+ return jsxs("span", {
159
+ className: "block text-muted-foreground flex items-center gap-2",
160
+ children: [icon, placeholder]
161
+ });
162
+ }
163
+ const stringifiedValue = String(selectedValue);
164
+ return jsxs(Fragment, {
165
+ children: [icon, " ", stringifiedValue[0].toUpperCase() + stringifiedValue.slice(1)]
166
+ });
167
+ };
168
+ const SelectTrigger = ({
169
+ children,
170
+ className
171
+ }) => {
172
+ const {
173
+ setOpen,
174
+ open,
175
+ triggerRef,
176
+ disabled,
177
+ loading
178
+ } = useSelectContext();
179
+ const handleClick = () => setOpen(!open);
180
+ return jsxs("button", {
181
+ ref: triggerRef,
182
+ disabled: disabled || loading,
183
+ "aria-haspopup": "listbox",
184
+ "aria-expanded": open,
185
+ onClick: handleClick,
186
+ className: cn('flex items-center gap-2 rounded-lg border border-gray-300 px-4 py-2', className),
187
+ children: [children, jsx(ChevronDown, {
188
+ size: 16,
189
+ className: `transition-transform ${open ? 'rotate-180' : ''}`
190
+ })]
191
+ });
192
+ };
193
+ const SelectSearch = ({
194
+ placeholder,
195
+ // placeholder for the search input
196
+ onChange
197
+ }) => {
198
+ const {
199
+ setSearchValue,
200
+ searchValue
201
+ } = useSelectContext();
202
+ React.useEffect(() => {
203
+ onChange?.(searchValue);
204
+ }, [searchValue, onChange]);
205
+ return jsx("div", {
206
+ className: "p-2",
207
+ children: jsxs("div", {
208
+ className: "relative",
209
+ children: [jsx(Search, {
210
+ size: 14,
211
+ className: "absolute top-1/2 left-3 -translate-y-1/2"
212
+ }), jsx("input", {
213
+ placeholder: placeholder,
214
+ value: searchValue,
215
+ onChange: e => setSearchValue(e.target.value),
216
+ className: "pl-8 min-w-full rounded-lg border-gray-300 bg-gray-100"
217
+ })]
218
+ })
219
+ });
220
+ };
221
+ const SelectRoot = ({
222
+ children,
223
+ disabled
224
+ }) => {
225
+ const {
226
+ setDisabled,
227
+ open,
228
+ setSearchValue
229
+ } = useSelectContext();
230
+ React.useEffect(() => {
231
+ setDisabled(!!disabled);
232
+ }, [disabled, setDisabled]);
233
+ React.useEffect(() => {
234
+ if (open) {
235
+ setSearchValue('');
236
+ }
237
+ }, [open, setSearchValue]);
238
+ return jsx("div", {
239
+ className: "relative",
240
+ children: children
241
+ });
242
+ };
243
+ const Select = ({
244
+ children,
245
+ ...props
246
+ }) => {
247
+ return jsx(SelectProvider, {
248
+ value: props.value,
249
+ onChange: props.onChange,
250
+ loading: props.loading,
251
+ children: jsx(SelectRoot, {
252
+ ...props,
253
+ children: children
254
+ })
255
+ });
256
+ };export{Select,SelectContent,SelectItem,SelectSearch,SelectTrigger,SelectValue};//# sourceMappingURL=Select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.js","sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"iKA4EwG,MAAA,aAAA,GAAA,KAAA,CAAA,aAAA,CAAA,SA2EtG,CAAA;AAEF,MAAK,cAAe,GAAE,CAAA;UAIZ;OACM;UACN;AACN,EAAA,OAAA,GAAQ;CACX,KAAC;AAEF,EAAA,MAAA,CAAA,IAAA,EAAO,OAAgB,CAAA,GAAA,KAAA,CAAA,QAAc,CAAA,KAAA,CAAA;AA+BrC;QAKe,eAAQ,KAAC,KAAA,SAAA;AACpB,EAAA,MAAI,CAAC,+BAAkB,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,KAAA,IAAA,IAAA,CAAA;QAClB,aAAI,GAAA,YAAuB,QAAO,GAAA,aAAA;AAC1C,EAAA,MAAA,gBAAA,GAAA,GAAA,IAAA;AAwCD,IAAO,IAAA,CAAA,YAAM,EAAa;AAA+B,MAAA,gBAAgB,CAAA,GAAA,CAAA;;AAA+B,IAAA,QAAA,GAAA,GAAA,CAAA;AAmBxG,GAAO;QAIQ,CAAA,QAAE,aAAO,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,KAAA,CAAA;QACZ,CAAA,WAAI,oBAAuB,KAAA,CAAA,QAAA,CAAA,EAAA,CAAA;AACtC,EAAA,MAAA,UAAA,GAAA,KAAA,CAAA,MAAA,CAAA,IAAA,CAAA;AAsBD,EAAA,OAAAA,GAAqB,CAAA,aAAA,CAAA,QAAA,EAAA;AACjB,IAAA,KAAA,EAAA;MACQ,IAAA;MACA,OAAC;MACJ,aAAO;MACL,gBAAW;AACrB,MAAA,QAAA;AAkBD,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './Select';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -6,6 +6,7 @@ export * from './PageContainer';
6
6
  export * from './Spin';
7
7
  export * from './OTP';
8
8
  export * from './Search';
9
+ export * from './Select';
9
10
  export * from './DatePicker';
10
11
  export * from './Button/Button';
11
12
  export * from './ThemeProvider';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,CAAC"}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export{default as PageLoading}from'./components/PageLoading/index.js';export{ApplicationErrorHandler}from'./components/ErrorHandlers/ApplicationErrorHandler.js';export{ErrorBoundary}from'./components/ErrorHandlers/ErrorBoundary.js';export{LayoutErrorBoundary}from'./components/ErrorHandlers/LayoutErrorBoundary.js';export{ReactTable}from'./components/ReactTable/Table.js';export{DefaultColumnFilter,SelectColumnFilter}from'./components/ReactTable/TableFilters.js';export{Error404}from'./components/ErrorPages/404.js';export{Error500}from'./components/ErrorPages/500.js';export{Error403}from'./components/ErrorPages/403.js';export{PageContainer}from'./components/PageContainer/PageContainer.js';export{Spin}from'./components/Spin/index.js';export{OTPInput}from'./components/OTP/OTPInput.js';export{SingleInput}from'./components/OTP/SingleInput.js';export{useOTPInput}from'./components/OTP/hooks.js';export{OTPVerification}from'./components/OTP/OTPVerification.js';export{SearchInput}from'./components/Search/SearchInput.js';export{DatePicker}from'./components/DatePicker/DatePicker.js';export{TailwindUiButton}from'./components/Button/Button.js';export{TailwindThemeProvider,ThemeContext,themes}from'./components/ThemeProvider/ThemeProvider.js';export{ThemeToggle}from'./components/ThemeProvider/ThemeToggle.js';export{useTheme}from'./hooks/useTheme.js';export{useWindowSize}from'./hooks/useWindowSize.js';export{ToastContainer,useToast,useToastCloseAll}from'./hooks/useToast.js';//# sourceMappingURL=index.js.map
1
+ export{default as PageLoading}from'./components/PageLoading/index.js';export{ApplicationErrorHandler}from'./components/ErrorHandlers/ApplicationErrorHandler.js';export{ErrorBoundary}from'./components/ErrorHandlers/ErrorBoundary.js';export{LayoutErrorBoundary}from'./components/ErrorHandlers/LayoutErrorBoundary.js';export{ReactTable}from'./components/ReactTable/Table.js';export{DefaultColumnFilter,SelectColumnFilter}from'./components/ReactTable/TableFilters.js';export{Error404}from'./components/ErrorPages/404.js';export{Error500}from'./components/ErrorPages/500.js';export{Error403}from'./components/ErrorPages/403.js';export{PageContainer}from'./components/PageContainer/PageContainer.js';export{Spin}from'./components/Spin/index.js';export{OTPInput}from'./components/OTP/OTPInput.js';export{SingleInput}from'./components/OTP/SingleInput.js';export{useOTPInput}from'./components/OTP/hooks.js';export{OTPVerification}from'./components/OTP/OTPVerification.js';export{SearchInput}from'./components/Search/SearchInput.js';export{Select,SelectContent,SelectItem,SelectSearch,SelectTrigger,SelectValue}from'./components/Select/Select.js';export{DatePicker}from'./components/DatePicker/DatePicker.js';export{TailwindUiButton}from'./components/Button/Button.js';export{TailwindThemeProvider,ThemeContext,themes}from'./components/ThemeProvider/ThemeProvider.js';export{ThemeToggle}from'./components/ThemeProvider/ThemeToggle.js';export{useTheme}from'./hooks/useTheme.js';export{useWindowSize}from'./hooks/useWindowSize.js';export{ToastContainer,useToast,useToastCloseAll}from'./hooks/useToast.js';//# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const badgeVariants: (props?: {
4
- variant?: "default" | "secondary" | "outline" | "destructive";
4
+ variant?: "default" | "outline" | "secondary" | "destructive";
5
5
  } & import("class-variance-authority/types").ClassProp) => string;
6
6
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: {
4
- variant?: "default" | "link" | "secondary" | "outline" | "ghost" | "destructive";
4
+ variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "destructive";
5
5
  size?: "default" | "sm" | "icon" | "lg";
6
6
  } & import("class-variance-authority/types").ClassProp) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -55,7 +55,7 @@ declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<Recharts
55
55
  labelKey?: string;
56
56
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
57
57
  declare const ChartLegend: typeof RechartsPrimitive.Legend;
58
- declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
58
+ declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "verticalAlign" | "payload"> & {
59
59
  hideIcon?: boolean;
60
60
  nameKey?: string;
61
61
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
6
6
  ref?: React.Ref<HTMLDivElement>;
7
7
  } & {
8
8
  asChild?: boolean;
9
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
9
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
10
10
  label?: string;
11
11
  shouldFilter?: boolean;
12
12
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -34,7 +34,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
34
34
  ref?: React.Ref<HTMLDivElement>;
35
35
  } & {
36
36
  asChild?: boolean;
37
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
37
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
38
38
  label?: string;
39
39
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
40
40
  declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
@@ -43,14 +43,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
43
43
  ref?: React.Ref<HTMLDivElement>;
44
44
  } & {
45
45
  asChild?: boolean;
46
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
46
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
47
47
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
48
48
  children?: React.ReactNode;
49
49
  } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
50
50
  ref?: React.Ref<HTMLDivElement>;
51
51
  } & {
52
52
  asChild?: boolean;
53
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
53
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
54
54
  heading?: React.ReactNode;
55
55
  value?: string;
56
56
  forceMount?: boolean;
@@ -59,7 +59,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
59
59
  ref?: React.Ref<HTMLDivElement>;
60
60
  } & {
61
61
  asChild?: boolean;
62
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
62
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
63
63
  alwaysRender?: boolean;
64
64
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
65
65
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
@@ -68,7 +68,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
68
68
  ref?: React.Ref<HTMLDivElement>;
69
69
  } & {
70
70
  asChild?: boolean;
71
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
71
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "disabled" | "onSelect"> & {
72
72
  disabled?: boolean;
73
73
  onSelect?: (value: string) => void;
74
74
  value?: string;
@@ -1,6 +1,6 @@
1
1
  import * as ResizablePrimitive from 'react-resizable-panels';
2
2
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLLabelElement | HTMLTextAreaElement | HTMLStyleElement | HTMLHRElement | HTMLOListElement | HTMLObjectElement | HTMLLinkElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLTemplateElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
3
+ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
4
  className?: string | undefined;
5
5
  collapsedSize?: number | undefined;
6
6
  collapsible?: boolean | undefined;
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
7
7
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
8
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const sheetVariants: (props?: {
10
- side?: "bottom" | "left" | "right" | "top";
10
+ side?: "left" | "right" | "bottom" | "top";
11
11
  } & import("class-variance-authority/types").ClassProp) => string;
12
12
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/tailwind-ui",
3
- "version": "12.0.16-alpha.30",
3
+ "version": "12.0.16-alpha.31",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -28,7 +28,7 @@
28
28
  "watch": "npm run build:lib:watch"
29
29
  },
30
30
  "dependencies": {
31
- "@admin-layout/client": "12.0.16-alpha.28",
31
+ "@admin-layout/client": "12.0.16-alpha.31",
32
32
  "@radix-ui/react-accordion": "^1.2.0",
33
33
  "@radix-ui/react-alert-dialog": "^1.1.1",
34
34
  "@radix-ui/react-aspect-ratio": "^1.1.0",
@@ -86,5 +86,5 @@
86
86
  "typescript": {
87
87
  "definition": "lib/index.d.ts"
88
88
  },
89
- "gitHead": "cbe79fe329942371ece94cc30ed0dbd7b4c390cb"
89
+ "gitHead": "751668a2d5be3856d10801461ddb9bab115bcf34"
90
90
  }