@blinkdotnew/ui 0.5.0 → 0.5.1
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.mts +95 -95
- package/dist/index.d.ts +95 -95
- package/dist/index.js +27 -27
- package/dist/index.mjs +26 -26
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -157,16 +157,16 @@ declare const DropdownMenuSub: React__default.FC<DropdownMenuPrimitive.DropdownM
|
|
|
157
157
|
declare const DropdownMenuRadioGroup: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
158
158
|
declare const DropdownMenuContent: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
159
159
|
declare const DropdownMenuItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
160
|
-
inset?: boolean;
|
|
160
|
+
inset?: boolean | undefined;
|
|
161
161
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
162
162
|
declare const DropdownMenuCheckboxItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
163
163
|
declare const DropdownMenuRadioItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
164
164
|
declare const DropdownMenuLabel: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
165
|
-
inset?: boolean;
|
|
165
|
+
inset?: boolean | undefined;
|
|
166
166
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
167
167
|
declare const DropdownMenuSeparator: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
168
168
|
declare const DropdownMenuSubTrigger: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
169
|
-
inset?: boolean;
|
|
169
|
+
inset?: boolean | undefined;
|
|
170
170
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
171
171
|
declare const DropdownMenuSubContent: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
172
172
|
declare const DropdownMenuShortcut: {
|
|
@@ -182,16 +182,16 @@ declare const ContextMenuSub: React__default.FC<ContextMenuPrimitive.ContextMenu
|
|
|
182
182
|
declare const ContextMenuRadioGroup: React__default.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
183
183
|
declare const ContextMenuContent: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
184
184
|
declare const ContextMenuItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
185
|
-
inset?: boolean;
|
|
185
|
+
inset?: boolean | undefined;
|
|
186
186
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
187
187
|
declare const ContextMenuCheckboxItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
188
188
|
declare const ContextMenuRadioItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
189
189
|
declare const ContextMenuLabel: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
190
|
-
inset?: boolean;
|
|
190
|
+
inset?: boolean | undefined;
|
|
191
191
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
192
192
|
declare const ContextMenuSeparator: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
193
193
|
declare const ContextMenuSubTrigger: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
194
|
-
inset?: boolean;
|
|
194
|
+
inset?: boolean | undefined;
|
|
195
195
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
196
196
|
declare const ContextMenuSubContent: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
197
197
|
declare const ContextMenuShortcut: ({ className, ...props }: React__default.HTMLAttributes<HTMLSpanElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -1129,7 +1129,7 @@ declare const useFormField: () => {
|
|
|
1129
1129
|
isDirty: boolean;
|
|
1130
1130
|
isTouched: boolean;
|
|
1131
1131
|
isValidating: boolean;
|
|
1132
|
-
error?: react_hook_form.FieldError;
|
|
1132
|
+
error?: react_hook_form.FieldError | undefined;
|
|
1133
1133
|
id: string;
|
|
1134
1134
|
name: string;
|
|
1135
1135
|
formItemId: string;
|
|
@@ -1235,105 +1235,105 @@ declare const ChartContainer: React$1.ForwardRefExoticComponent<Omit<React$1.Cla
|
|
|
1235
1235
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1236
1236
|
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
1237
1237
|
declare const ChartTooltipContent: React$1.ForwardRefExoticComponent<Omit<Omit<RechartsPrimitive.DefaultTooltipContentProps<RechartsPrimitive.TooltipValueType, recharts_types_component_DefaultTooltipContent.NameType>, "label" | "viewBox" | "active" | "payload" | "coordinate" | "accessibilityLayer"> & {
|
|
1238
|
-
active?: boolean;
|
|
1239
|
-
allowEscapeViewBox?: recharts_types_util_types.AllowInDimension;
|
|
1240
|
-
animationDuration?:
|
|
1241
|
-
animationEasing?: recharts_types_util_types.AnimationTiming;
|
|
1242
|
-
axisId?: RechartsPrimitive.AxisId;
|
|
1238
|
+
active?: boolean | undefined;
|
|
1239
|
+
allowEscapeViewBox?: recharts_types_util_types.AllowInDimension | undefined;
|
|
1240
|
+
animationDuration?: number | undefined;
|
|
1241
|
+
animationEasing?: recharts_types_util_types.AnimationTiming | undefined;
|
|
1242
|
+
axisId?: RechartsPrimitive.AxisId | undefined;
|
|
1243
1243
|
content?: recharts_types_component_Tooltip.ContentType<RechartsPrimitive.TooltipValueType, recharts_types_component_DefaultTooltipContent.NameType> | undefined;
|
|
1244
|
-
contentStyle?: React$1.CSSProperties;
|
|
1245
|
-
cursor?: recharts_types_component_Cursor.CursorDefinition;
|
|
1246
|
-
defaultIndex?: number | RechartsPrimitive.TooltipIndex;
|
|
1247
|
-
filterNull?: boolean;
|
|
1244
|
+
contentStyle?: React$1.CSSProperties | undefined;
|
|
1245
|
+
cursor?: recharts_types_component_Cursor.CursorDefinition | undefined;
|
|
1246
|
+
defaultIndex?: number | RechartsPrimitive.TooltipIndex | undefined;
|
|
1247
|
+
filterNull?: boolean | undefined;
|
|
1248
1248
|
formatter?: ((value: RechartsPrimitive.TooltipValueType, name: recharts_types_component_DefaultTooltipContent.NameType, item: recharts_types_state_tooltipSlice.TooltipPayloadEntry, index: number, payload: RechartsPrimitive.TooltipPayload) => React$1.ReactNode | [React$1.ReactNode, React$1.ReactNode]) | undefined;
|
|
1249
1249
|
includeHidden?: boolean | undefined;
|
|
1250
|
-
isAnimationActive?: boolean | "auto";
|
|
1251
|
-
itemSorter?: RechartsPrimitive.TooltipItemSorter;
|
|
1252
|
-
itemStyle?: React$1.CSSProperties;
|
|
1253
|
-
labelFormatter?: (label: any, payload: RechartsPrimitive.TooltipPayload) => React$1.ReactNode;
|
|
1254
|
-
labelStyle?: React$1.CSSProperties;
|
|
1255
|
-
offset?: number | RechartsPrimitive.Coordinate;
|
|
1256
|
-
payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<recharts_types_state_tooltipSlice.TooltipPayloadEntry
|
|
1257
|
-
portal?: HTMLElement | null;
|
|
1258
|
-
position?: Partial<RechartsPrimitive.Coordinate
|
|
1259
|
-
reverseDirection?: recharts_types_util_types.AllowInDimension;
|
|
1260
|
-
separator?: string;
|
|
1261
|
-
shared?: boolean;
|
|
1262
|
-
trigger?: recharts_types_chart_types.TooltipTrigger;
|
|
1263
|
-
useTranslate3d?: boolean;
|
|
1264
|
-
wrapperStyle?: React$1.CSSProperties;
|
|
1250
|
+
isAnimationActive?: boolean | "auto" | undefined;
|
|
1251
|
+
itemSorter?: RechartsPrimitive.TooltipItemSorter | undefined;
|
|
1252
|
+
itemStyle?: React$1.CSSProperties | undefined;
|
|
1253
|
+
labelFormatter?: ((label: any, payload: RechartsPrimitive.TooltipPayload) => React$1.ReactNode) | undefined;
|
|
1254
|
+
labelStyle?: React$1.CSSProperties | undefined;
|
|
1255
|
+
offset?: number | RechartsPrimitive.Coordinate | undefined;
|
|
1256
|
+
payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<recharts_types_state_tooltipSlice.TooltipPayloadEntry> | undefined;
|
|
1257
|
+
portal?: HTMLElement | null | undefined;
|
|
1258
|
+
position?: Partial<RechartsPrimitive.Coordinate> | undefined;
|
|
1259
|
+
reverseDirection?: recharts_types_util_types.AllowInDimension | undefined;
|
|
1260
|
+
separator?: string | undefined;
|
|
1261
|
+
shared?: boolean | undefined;
|
|
1262
|
+
trigger?: recharts_types_chart_types.TooltipTrigger | undefined;
|
|
1263
|
+
useTranslate3d?: boolean | undefined;
|
|
1264
|
+
wrapperStyle?: React$1.CSSProperties | undefined;
|
|
1265
1265
|
} & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1266
|
-
hideLabel?: boolean;
|
|
1267
|
-
hideIndicator?: boolean;
|
|
1268
|
-
indicator?: "line" | "
|
|
1269
|
-
nameKey?: string;
|
|
1270
|
-
labelKey?: string;
|
|
1266
|
+
hideLabel?: boolean | undefined;
|
|
1267
|
+
hideIndicator?: boolean | undefined;
|
|
1268
|
+
indicator?: "line" | "dashed" | "dot" | undefined;
|
|
1269
|
+
nameKey?: string | undefined;
|
|
1270
|
+
labelKey?: string | undefined;
|
|
1271
1271
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1272
1272
|
declare const ChartLegend: React$1.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React$1.ReactPortal | null>;
|
|
1273
1273
|
declare const ChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
|
1274
|
-
hideIcon?: boolean;
|
|
1275
|
-
nameKey?: string;
|
|
1274
|
+
hideIcon?: boolean | undefined;
|
|
1275
|
+
nameKey?: string | undefined;
|
|
1276
1276
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1277
1277
|
|
|
1278
1278
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
1279
1279
|
children?: React$1.ReactNode;
|
|
1280
1280
|
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1281
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1281
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1282
1282
|
} & {
|
|
1283
|
-
asChild?: boolean;
|
|
1284
|
-
}, "
|
|
1285
|
-
label?: string;
|
|
1286
|
-
shouldFilter?: boolean;
|
|
1287
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
1288
|
-
defaultValue?: string;
|
|
1289
|
-
value?: string;
|
|
1290
|
-
onValueChange?: (value: string) => void;
|
|
1291
|
-
loop?: boolean;
|
|
1292
|
-
disablePointerSelection?: boolean;
|
|
1293
|
-
vimBindings?: boolean;
|
|
1283
|
+
asChild?: boolean | undefined;
|
|
1284
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
1285
|
+
label?: string | undefined;
|
|
1286
|
+
shouldFilter?: boolean | undefined;
|
|
1287
|
+
filter?: ((value: string, search: string, keywords?: string[] | undefined) => number) | undefined;
|
|
1288
|
+
defaultValue?: string | undefined;
|
|
1289
|
+
value?: string | undefined;
|
|
1290
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
1291
|
+
loop?: boolean | undefined;
|
|
1292
|
+
disablePointerSelection?: boolean | undefined;
|
|
1293
|
+
vimBindings?: boolean | undefined;
|
|
1294
1294
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1295
1295
|
declare const CommandDialog: ({ children, ...props }: DialogProps) => react_jsx_runtime.JSX.Element;
|
|
1296
1296
|
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
1297
|
-
ref?: React$1.Ref<HTMLInputElement
|
|
1297
|
+
ref?: React$1.Ref<HTMLInputElement> | undefined;
|
|
1298
1298
|
} & {
|
|
1299
|
-
asChild?: boolean;
|
|
1300
|
-
}, "
|
|
1301
|
-
value?: string;
|
|
1302
|
-
onValueChange?: (search: string) => void;
|
|
1299
|
+
asChild?: boolean | undefined;
|
|
1300
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
1301
|
+
value?: string | undefined;
|
|
1302
|
+
onValueChange?: ((search: string) => void) | undefined;
|
|
1303
1303
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
1304
1304
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
1305
1305
|
children?: React$1.ReactNode;
|
|
1306
1306
|
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1307
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1307
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1308
1308
|
} & {
|
|
1309
|
-
asChild?: boolean;
|
|
1310
|
-
}, "
|
|
1311
|
-
label?: string;
|
|
1309
|
+
asChild?: boolean | undefined;
|
|
1310
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
1311
|
+
label?: string | undefined;
|
|
1312
1312
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1313
1313
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
1314
1314
|
children?: React$1.ReactNode;
|
|
1315
1315
|
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1316
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1316
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1317
1317
|
} & {
|
|
1318
|
-
asChild?: boolean;
|
|
1319
|
-
}, "
|
|
1318
|
+
asChild?: boolean | undefined;
|
|
1319
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1320
1320
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
1321
1321
|
children?: React$1.ReactNode;
|
|
1322
1322
|
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1323
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1323
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1324
1324
|
} & {
|
|
1325
|
-
asChild?: boolean;
|
|
1326
|
-
}, "
|
|
1325
|
+
asChild?: boolean | undefined;
|
|
1326
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
1327
1327
|
heading?: React$1.ReactNode;
|
|
1328
|
-
value?: string;
|
|
1329
|
-
forceMount?: boolean;
|
|
1328
|
+
value?: string | undefined;
|
|
1329
|
+
forceMount?: boolean | undefined;
|
|
1330
1330
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1331
1331
|
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1332
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1332
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1333
1333
|
} & {
|
|
1334
|
-
asChild?: boolean;
|
|
1335
|
-
}, "
|
|
1336
|
-
alwaysRender?: boolean;
|
|
1334
|
+
asChild?: boolean | undefined;
|
|
1335
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
1336
|
+
alwaysRender?: boolean | undefined;
|
|
1337
1337
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1338
1338
|
|
|
1339
1339
|
declare const Drawer: {
|
|
@@ -1356,31 +1356,31 @@ declare const DrawerFooter: {
|
|
|
1356
1356
|
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1357
1357
|
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1358
1358
|
|
|
1359
|
-
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "
|
|
1360
|
-
value?: string;
|
|
1361
|
-
onChange?: (newValue: string) => unknown;
|
|
1359
|
+
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
1360
|
+
value?: string | undefined;
|
|
1361
|
+
onChange?: ((newValue: string) => unknown) | undefined;
|
|
1362
1362
|
maxLength: number;
|
|
1363
|
-
textAlign?: "
|
|
1364
|
-
onComplete?: (...args: any[]) => unknown;
|
|
1365
|
-
pushPasswordManagerStrategy?: "increase-width" |
|
|
1366
|
-
pasteTransformer?: (pasted: string) => string;
|
|
1367
|
-
containerClassName?: string;
|
|
1368
|
-
noScriptCSSFallback?: string | null;
|
|
1363
|
+
textAlign?: "center" | "right" | "left" | undefined;
|
|
1364
|
+
onComplete?: ((...args: any[]) => unknown) | undefined;
|
|
1365
|
+
pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
|
|
1366
|
+
pasteTransformer?: ((pasted: string) => string) | undefined;
|
|
1367
|
+
containerClassName?: string | undefined;
|
|
1368
|
+
noScriptCSSFallback?: string | null | undefined;
|
|
1369
1369
|
} & {
|
|
1370
1370
|
render: (props: input_otp.RenderProps) => React$1.ReactNode;
|
|
1371
|
-
children?:
|
|
1372
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "
|
|
1373
|
-
value?: string;
|
|
1374
|
-
onChange?: (newValue: string) => unknown;
|
|
1371
|
+
children?: undefined;
|
|
1372
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
1373
|
+
value?: string | undefined;
|
|
1374
|
+
onChange?: ((newValue: string) => unknown) | undefined;
|
|
1375
1375
|
maxLength: number;
|
|
1376
|
-
textAlign?: "
|
|
1377
|
-
onComplete?: (...args: any[]) => unknown;
|
|
1378
|
-
pushPasswordManagerStrategy?: "increase-width" |
|
|
1379
|
-
pasteTransformer?: (pasted: string) => string;
|
|
1380
|
-
containerClassName?: string;
|
|
1381
|
-
noScriptCSSFallback?: string | null;
|
|
1376
|
+
textAlign?: "center" | "right" | "left" | undefined;
|
|
1377
|
+
onComplete?: ((...args: any[]) => unknown) | undefined;
|
|
1378
|
+
pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
|
|
1379
|
+
pasteTransformer?: ((pasted: string) => string) | undefined;
|
|
1380
|
+
containerClassName?: string | undefined;
|
|
1381
|
+
noScriptCSSFallback?: string | null | undefined;
|
|
1382
1382
|
} & {
|
|
1383
|
-
render?:
|
|
1383
|
+
render?: undefined;
|
|
1384
1384
|
children: React$1.ReactNode;
|
|
1385
1385
|
} & React$1.RefAttributes<HTMLInputElement>, "ref">) & React$1.RefAttributes<HTMLInputElement>>;
|
|
1386
1386
|
declare const InputOTPGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1397,17 +1397,17 @@ declare function MenubarSub({ ...props }: React$1.ComponentProps<typeof MenubarP
|
|
|
1397
1397
|
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1398
1398
|
declare const MenubarTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1399
1399
|
declare const MenubarSubTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1400
|
-
inset?: boolean;
|
|
1400
|
+
inset?: boolean | undefined;
|
|
1401
1401
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1402
1402
|
declare const MenubarSubContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1403
1403
|
declare const MenubarContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1404
1404
|
declare const MenubarItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1405
|
-
inset?: boolean;
|
|
1405
|
+
inset?: boolean | undefined;
|
|
1406
1406
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1407
1407
|
declare const MenubarCheckboxItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1408
1408
|
declare const MenubarRadioItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1409
1409
|
declare const MenubarLabel: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1410
|
-
inset?: boolean;
|
|
1410
|
+
inset?: boolean | undefined;
|
|
1411
1411
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1412
1412
|
declare const MenubarSeparator: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1413
1413
|
declare const MenubarShortcut: {
|
|
@@ -1415,7 +1415,7 @@ declare const MenubarShortcut: {
|
|
|
1415
1415
|
displayname: string;
|
|
1416
1416
|
};
|
|
1417
1417
|
|
|
1418
|
-
declare const ResizablePanelGroup: ({ className, ...props }:
|
|
1418
|
+
declare const ResizablePanelGroup: ({ className, ...props }: any) => react_jsx_runtime.JSX.Element;
|
|
1419
1419
|
declare const ResizablePanel: typeof ResizablePrimitive.Panel;
|
|
1420
1420
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
1421
1421
|
withHandle?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -157,16 +157,16 @@ declare const DropdownMenuSub: React__default.FC<DropdownMenuPrimitive.DropdownM
|
|
|
157
157
|
declare const DropdownMenuRadioGroup: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
158
158
|
declare const DropdownMenuContent: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
159
159
|
declare const DropdownMenuItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
160
|
-
inset?: boolean;
|
|
160
|
+
inset?: boolean | undefined;
|
|
161
161
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
162
162
|
declare const DropdownMenuCheckboxItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
163
163
|
declare const DropdownMenuRadioItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
164
164
|
declare const DropdownMenuLabel: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
165
|
-
inset?: boolean;
|
|
165
|
+
inset?: boolean | undefined;
|
|
166
166
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
167
167
|
declare const DropdownMenuSeparator: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
168
168
|
declare const DropdownMenuSubTrigger: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
169
|
-
inset?: boolean;
|
|
169
|
+
inset?: boolean | undefined;
|
|
170
170
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
171
171
|
declare const DropdownMenuSubContent: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
172
172
|
declare const DropdownMenuShortcut: {
|
|
@@ -182,16 +182,16 @@ declare const ContextMenuSub: React__default.FC<ContextMenuPrimitive.ContextMenu
|
|
|
182
182
|
declare const ContextMenuRadioGroup: React__default.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
183
183
|
declare const ContextMenuContent: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
184
184
|
declare const ContextMenuItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
185
|
-
inset?: boolean;
|
|
185
|
+
inset?: boolean | undefined;
|
|
186
186
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
187
187
|
declare const ContextMenuCheckboxItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
188
188
|
declare const ContextMenuRadioItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
189
189
|
declare const ContextMenuLabel: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
190
|
-
inset?: boolean;
|
|
190
|
+
inset?: boolean | undefined;
|
|
191
191
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
192
192
|
declare const ContextMenuSeparator: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
193
193
|
declare const ContextMenuSubTrigger: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
194
|
-
inset?: boolean;
|
|
194
|
+
inset?: boolean | undefined;
|
|
195
195
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
196
196
|
declare const ContextMenuSubContent: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
197
197
|
declare const ContextMenuShortcut: ({ className, ...props }: React__default.HTMLAttributes<HTMLSpanElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -1129,7 +1129,7 @@ declare const useFormField: () => {
|
|
|
1129
1129
|
isDirty: boolean;
|
|
1130
1130
|
isTouched: boolean;
|
|
1131
1131
|
isValidating: boolean;
|
|
1132
|
-
error?: react_hook_form.FieldError;
|
|
1132
|
+
error?: react_hook_form.FieldError | undefined;
|
|
1133
1133
|
id: string;
|
|
1134
1134
|
name: string;
|
|
1135
1135
|
formItemId: string;
|
|
@@ -1235,105 +1235,105 @@ declare const ChartContainer: React$1.ForwardRefExoticComponent<Omit<React$1.Cla
|
|
|
1235
1235
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1236
1236
|
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
1237
1237
|
declare const ChartTooltipContent: React$1.ForwardRefExoticComponent<Omit<Omit<RechartsPrimitive.DefaultTooltipContentProps<RechartsPrimitive.TooltipValueType, recharts_types_component_DefaultTooltipContent.NameType>, "label" | "viewBox" | "active" | "payload" | "coordinate" | "accessibilityLayer"> & {
|
|
1238
|
-
active?: boolean;
|
|
1239
|
-
allowEscapeViewBox?: recharts_types_util_types.AllowInDimension;
|
|
1240
|
-
animationDuration?:
|
|
1241
|
-
animationEasing?: recharts_types_util_types.AnimationTiming;
|
|
1242
|
-
axisId?: RechartsPrimitive.AxisId;
|
|
1238
|
+
active?: boolean | undefined;
|
|
1239
|
+
allowEscapeViewBox?: recharts_types_util_types.AllowInDimension | undefined;
|
|
1240
|
+
animationDuration?: number | undefined;
|
|
1241
|
+
animationEasing?: recharts_types_util_types.AnimationTiming | undefined;
|
|
1242
|
+
axisId?: RechartsPrimitive.AxisId | undefined;
|
|
1243
1243
|
content?: recharts_types_component_Tooltip.ContentType<RechartsPrimitive.TooltipValueType, recharts_types_component_DefaultTooltipContent.NameType> | undefined;
|
|
1244
|
-
contentStyle?: React$1.CSSProperties;
|
|
1245
|
-
cursor?: recharts_types_component_Cursor.CursorDefinition;
|
|
1246
|
-
defaultIndex?: number | RechartsPrimitive.TooltipIndex;
|
|
1247
|
-
filterNull?: boolean;
|
|
1244
|
+
contentStyle?: React$1.CSSProperties | undefined;
|
|
1245
|
+
cursor?: recharts_types_component_Cursor.CursorDefinition | undefined;
|
|
1246
|
+
defaultIndex?: number | RechartsPrimitive.TooltipIndex | undefined;
|
|
1247
|
+
filterNull?: boolean | undefined;
|
|
1248
1248
|
formatter?: ((value: RechartsPrimitive.TooltipValueType, name: recharts_types_component_DefaultTooltipContent.NameType, item: recharts_types_state_tooltipSlice.TooltipPayloadEntry, index: number, payload: RechartsPrimitive.TooltipPayload) => React$1.ReactNode | [React$1.ReactNode, React$1.ReactNode]) | undefined;
|
|
1249
1249
|
includeHidden?: boolean | undefined;
|
|
1250
|
-
isAnimationActive?: boolean | "auto";
|
|
1251
|
-
itemSorter?: RechartsPrimitive.TooltipItemSorter;
|
|
1252
|
-
itemStyle?: React$1.CSSProperties;
|
|
1253
|
-
labelFormatter?: (label: any, payload: RechartsPrimitive.TooltipPayload) => React$1.ReactNode;
|
|
1254
|
-
labelStyle?: React$1.CSSProperties;
|
|
1255
|
-
offset?: number | RechartsPrimitive.Coordinate;
|
|
1256
|
-
payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<recharts_types_state_tooltipSlice.TooltipPayloadEntry
|
|
1257
|
-
portal?: HTMLElement | null;
|
|
1258
|
-
position?: Partial<RechartsPrimitive.Coordinate
|
|
1259
|
-
reverseDirection?: recharts_types_util_types.AllowInDimension;
|
|
1260
|
-
separator?: string;
|
|
1261
|
-
shared?: boolean;
|
|
1262
|
-
trigger?: recharts_types_chart_types.TooltipTrigger;
|
|
1263
|
-
useTranslate3d?: boolean;
|
|
1264
|
-
wrapperStyle?: React$1.CSSProperties;
|
|
1250
|
+
isAnimationActive?: boolean | "auto" | undefined;
|
|
1251
|
+
itemSorter?: RechartsPrimitive.TooltipItemSorter | undefined;
|
|
1252
|
+
itemStyle?: React$1.CSSProperties | undefined;
|
|
1253
|
+
labelFormatter?: ((label: any, payload: RechartsPrimitive.TooltipPayload) => React$1.ReactNode) | undefined;
|
|
1254
|
+
labelStyle?: React$1.CSSProperties | undefined;
|
|
1255
|
+
offset?: number | RechartsPrimitive.Coordinate | undefined;
|
|
1256
|
+
payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<recharts_types_state_tooltipSlice.TooltipPayloadEntry> | undefined;
|
|
1257
|
+
portal?: HTMLElement | null | undefined;
|
|
1258
|
+
position?: Partial<RechartsPrimitive.Coordinate> | undefined;
|
|
1259
|
+
reverseDirection?: recharts_types_util_types.AllowInDimension | undefined;
|
|
1260
|
+
separator?: string | undefined;
|
|
1261
|
+
shared?: boolean | undefined;
|
|
1262
|
+
trigger?: recharts_types_chart_types.TooltipTrigger | undefined;
|
|
1263
|
+
useTranslate3d?: boolean | undefined;
|
|
1264
|
+
wrapperStyle?: React$1.CSSProperties | undefined;
|
|
1265
1265
|
} & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1266
|
-
hideLabel?: boolean;
|
|
1267
|
-
hideIndicator?: boolean;
|
|
1268
|
-
indicator?: "line" | "
|
|
1269
|
-
nameKey?: string;
|
|
1270
|
-
labelKey?: string;
|
|
1266
|
+
hideLabel?: boolean | undefined;
|
|
1267
|
+
hideIndicator?: boolean | undefined;
|
|
1268
|
+
indicator?: "line" | "dashed" | "dot" | undefined;
|
|
1269
|
+
nameKey?: string | undefined;
|
|
1270
|
+
labelKey?: string | undefined;
|
|
1271
1271
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1272
1272
|
declare const ChartLegend: React$1.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React$1.ReactPortal | null>;
|
|
1273
1273
|
declare const ChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
|
1274
|
-
hideIcon?: boolean;
|
|
1275
|
-
nameKey?: string;
|
|
1274
|
+
hideIcon?: boolean | undefined;
|
|
1275
|
+
nameKey?: string | undefined;
|
|
1276
1276
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1277
1277
|
|
|
1278
1278
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
1279
1279
|
children?: React$1.ReactNode;
|
|
1280
1280
|
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1281
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1281
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1282
1282
|
} & {
|
|
1283
|
-
asChild?: boolean;
|
|
1284
|
-
}, "
|
|
1285
|
-
label?: string;
|
|
1286
|
-
shouldFilter?: boolean;
|
|
1287
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
1288
|
-
defaultValue?: string;
|
|
1289
|
-
value?: string;
|
|
1290
|
-
onValueChange?: (value: string) => void;
|
|
1291
|
-
loop?: boolean;
|
|
1292
|
-
disablePointerSelection?: boolean;
|
|
1293
|
-
vimBindings?: boolean;
|
|
1283
|
+
asChild?: boolean | undefined;
|
|
1284
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
1285
|
+
label?: string | undefined;
|
|
1286
|
+
shouldFilter?: boolean | undefined;
|
|
1287
|
+
filter?: ((value: string, search: string, keywords?: string[] | undefined) => number) | undefined;
|
|
1288
|
+
defaultValue?: string | undefined;
|
|
1289
|
+
value?: string | undefined;
|
|
1290
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
1291
|
+
loop?: boolean | undefined;
|
|
1292
|
+
disablePointerSelection?: boolean | undefined;
|
|
1293
|
+
vimBindings?: boolean | undefined;
|
|
1294
1294
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1295
1295
|
declare const CommandDialog: ({ children, ...props }: DialogProps) => react_jsx_runtime.JSX.Element;
|
|
1296
1296
|
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
1297
|
-
ref?: React$1.Ref<HTMLInputElement
|
|
1297
|
+
ref?: React$1.Ref<HTMLInputElement> | undefined;
|
|
1298
1298
|
} & {
|
|
1299
|
-
asChild?: boolean;
|
|
1300
|
-
}, "
|
|
1301
|
-
value?: string;
|
|
1302
|
-
onValueChange?: (search: string) => void;
|
|
1299
|
+
asChild?: boolean | undefined;
|
|
1300
|
+
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
1301
|
+
value?: string | undefined;
|
|
1302
|
+
onValueChange?: ((search: string) => void) | undefined;
|
|
1303
1303
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
1304
1304
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
1305
1305
|
children?: React$1.ReactNode;
|
|
1306
1306
|
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1307
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1307
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1308
1308
|
} & {
|
|
1309
|
-
asChild?: boolean;
|
|
1310
|
-
}, "
|
|
1311
|
-
label?: string;
|
|
1309
|
+
asChild?: boolean | undefined;
|
|
1310
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
1311
|
+
label?: string | undefined;
|
|
1312
1312
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1313
1313
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
1314
1314
|
children?: React$1.ReactNode;
|
|
1315
1315
|
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1316
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1316
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1317
1317
|
} & {
|
|
1318
|
-
asChild?: boolean;
|
|
1319
|
-
}, "
|
|
1318
|
+
asChild?: boolean | undefined;
|
|
1319
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1320
1320
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
1321
1321
|
children?: React$1.ReactNode;
|
|
1322
1322
|
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1323
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1323
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1324
1324
|
} & {
|
|
1325
|
-
asChild?: boolean;
|
|
1326
|
-
}, "
|
|
1325
|
+
asChild?: boolean | undefined;
|
|
1326
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
1327
1327
|
heading?: React$1.ReactNode;
|
|
1328
|
-
value?: string;
|
|
1329
|
-
forceMount?: boolean;
|
|
1328
|
+
value?: string | undefined;
|
|
1329
|
+
forceMount?: boolean | undefined;
|
|
1330
1330
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1331
1331
|
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1332
|
-
ref?: React$1.Ref<HTMLDivElement
|
|
1332
|
+
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
1333
1333
|
} & {
|
|
1334
|
-
asChild?: boolean;
|
|
1335
|
-
}, "
|
|
1336
|
-
alwaysRender?: boolean;
|
|
1334
|
+
asChild?: boolean | undefined;
|
|
1335
|
+
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
1336
|
+
alwaysRender?: boolean | undefined;
|
|
1337
1337
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1338
1338
|
|
|
1339
1339
|
declare const Drawer: {
|
|
@@ -1356,31 +1356,31 @@ declare const DrawerFooter: {
|
|
|
1356
1356
|
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1357
1357
|
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1358
1358
|
|
|
1359
|
-
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "
|
|
1360
|
-
value?: string;
|
|
1361
|
-
onChange?: (newValue: string) => unknown;
|
|
1359
|
+
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
1360
|
+
value?: string | undefined;
|
|
1361
|
+
onChange?: ((newValue: string) => unknown) | undefined;
|
|
1362
1362
|
maxLength: number;
|
|
1363
|
-
textAlign?: "
|
|
1364
|
-
onComplete?: (...args: any[]) => unknown;
|
|
1365
|
-
pushPasswordManagerStrategy?: "increase-width" |
|
|
1366
|
-
pasteTransformer?: (pasted: string) => string;
|
|
1367
|
-
containerClassName?: string;
|
|
1368
|
-
noScriptCSSFallback?: string | null;
|
|
1363
|
+
textAlign?: "center" | "right" | "left" | undefined;
|
|
1364
|
+
onComplete?: ((...args: any[]) => unknown) | undefined;
|
|
1365
|
+
pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
|
|
1366
|
+
pasteTransformer?: ((pasted: string) => string) | undefined;
|
|
1367
|
+
containerClassName?: string | undefined;
|
|
1368
|
+
noScriptCSSFallback?: string | null | undefined;
|
|
1369
1369
|
} & {
|
|
1370
1370
|
render: (props: input_otp.RenderProps) => React$1.ReactNode;
|
|
1371
|
-
children?:
|
|
1372
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "
|
|
1373
|
-
value?: string;
|
|
1374
|
-
onChange?: (newValue: string) => unknown;
|
|
1371
|
+
children?: undefined;
|
|
1372
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
1373
|
+
value?: string | undefined;
|
|
1374
|
+
onChange?: ((newValue: string) => unknown) | undefined;
|
|
1375
1375
|
maxLength: number;
|
|
1376
|
-
textAlign?: "
|
|
1377
|
-
onComplete?: (...args: any[]) => unknown;
|
|
1378
|
-
pushPasswordManagerStrategy?: "increase-width" |
|
|
1379
|
-
pasteTransformer?: (pasted: string) => string;
|
|
1380
|
-
containerClassName?: string;
|
|
1381
|
-
noScriptCSSFallback?: string | null;
|
|
1376
|
+
textAlign?: "center" | "right" | "left" | undefined;
|
|
1377
|
+
onComplete?: ((...args: any[]) => unknown) | undefined;
|
|
1378
|
+
pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
|
|
1379
|
+
pasteTransformer?: ((pasted: string) => string) | undefined;
|
|
1380
|
+
containerClassName?: string | undefined;
|
|
1381
|
+
noScriptCSSFallback?: string | null | undefined;
|
|
1382
1382
|
} & {
|
|
1383
|
-
render?:
|
|
1383
|
+
render?: undefined;
|
|
1384
1384
|
children: React$1.ReactNode;
|
|
1385
1385
|
} & React$1.RefAttributes<HTMLInputElement>, "ref">) & React$1.RefAttributes<HTMLInputElement>>;
|
|
1386
1386
|
declare const InputOTPGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1397,17 +1397,17 @@ declare function MenubarSub({ ...props }: React$1.ComponentProps<typeof MenubarP
|
|
|
1397
1397
|
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1398
1398
|
declare const MenubarTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1399
1399
|
declare const MenubarSubTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1400
|
-
inset?: boolean;
|
|
1400
|
+
inset?: boolean | undefined;
|
|
1401
1401
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1402
1402
|
declare const MenubarSubContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1403
1403
|
declare const MenubarContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1404
1404
|
declare const MenubarItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1405
|
-
inset?: boolean;
|
|
1405
|
+
inset?: boolean | undefined;
|
|
1406
1406
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1407
1407
|
declare const MenubarCheckboxItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1408
1408
|
declare const MenubarRadioItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1409
1409
|
declare const MenubarLabel: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1410
|
-
inset?: boolean;
|
|
1410
|
+
inset?: boolean | undefined;
|
|
1411
1411
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1412
1412
|
declare const MenubarSeparator: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1413
1413
|
declare const MenubarShortcut: {
|
|
@@ -1415,7 +1415,7 @@ declare const MenubarShortcut: {
|
|
|
1415
1415
|
displayname: string;
|
|
1416
1416
|
};
|
|
1417
1417
|
|
|
1418
|
-
declare const ResizablePanelGroup: ({ className, ...props }:
|
|
1418
|
+
declare const ResizablePanelGroup: ({ className, ...props }: any) => react_jsx_runtime.JSX.Element;
|
|
1419
1419
|
declare const ResizablePanel: typeof ResizablePrimitive.Panel;
|
|
1420
1420
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
1421
1421
|
withHandle?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React66 = require('react');
|
|
5
|
-
var
|
|
5
|
+
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var tailwindMerge = require('tailwind-merge');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
9
|
var reactSlot = require('@radix-ui/react-slot');
|
|
9
10
|
var classVarianceAuthority = require('class-variance-authority');
|
|
10
11
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
@@ -15,7 +16,6 @@ var SwitchPrimitive = require('@radix-ui/react-switch');
|
|
|
15
16
|
var SliderPrimitive = require('@radix-ui/react-slider');
|
|
16
17
|
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
17
18
|
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
18
|
-
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
19
19
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
20
20
|
var ContextMenuPrimitive = require('@radix-ui/react-context-menu');
|
|
21
21
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
@@ -70,6 +70,7 @@ function _interopNamespace(e) {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
var React66__namespace = /*#__PURE__*/_interopNamespace(React66);
|
|
73
|
+
var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
|
|
73
74
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
74
75
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
75
76
|
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
@@ -77,7 +78,6 @@ var SwitchPrimitive__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitive)
|
|
|
77
78
|
var SliderPrimitive__namespace = /*#__PURE__*/_interopNamespace(SliderPrimitive);
|
|
78
79
|
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
79
80
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
80
|
-
var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
|
|
81
81
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
82
82
|
var ContextMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(ContextMenuPrimitive);
|
|
83
83
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
@@ -100,6 +100,28 @@ var MenubarPrimitive__namespace = /*#__PURE__*/_interopNamespace(MenubarPrimitiv
|
|
|
100
100
|
var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrimitive);
|
|
101
101
|
|
|
102
102
|
// src/provider/blink-ui-provider.tsx
|
|
103
|
+
function cn(...inputs) {
|
|
104
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
105
|
+
}
|
|
106
|
+
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
107
|
+
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
108
|
+
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
109
|
+
var TooltipContent = React66__namespace.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
110
|
+
TooltipPrimitive__namespace.Content,
|
|
111
|
+
{
|
|
112
|
+
ref,
|
|
113
|
+
sideOffset,
|
|
114
|
+
className: cn(
|
|
115
|
+
"z-50 overflow-hidden rounded-md bg-[hsl(var(--primary))] px-3 py-1.5 text-xs text-[hsl(var(--primary-foreground))] shadow-md",
|
|
116
|
+
"animate-in fade-in-0 zoom-in-95",
|
|
117
|
+
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
118
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
|
|
119
|
+
className
|
|
120
|
+
),
|
|
121
|
+
...props
|
|
122
|
+
}
|
|
123
|
+
) }));
|
|
124
|
+
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
103
125
|
var BlinkUIContext = React66.createContext(null);
|
|
104
126
|
function useBlinkUI() {
|
|
105
127
|
const ctx = React66.useContext(BlinkUIContext);
|
|
@@ -131,10 +153,7 @@ function BlinkUIProvider({
|
|
|
131
153
|
root.classList.add(`theme-${theme}`);
|
|
132
154
|
root.classList.add(resolvedDark ? "dark" : "light");
|
|
133
155
|
}, [theme, resolvedDark]);
|
|
134
|
-
return /* @__PURE__ */ jsxRuntime.jsx(BlinkUIContext.Provider, { value: { theme, darkMode, resolvedDark, setTheme, setDarkMode }, children });
|
|
135
|
-
}
|
|
136
|
-
function cn(...inputs) {
|
|
137
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
156
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlinkUIContext.Provider, { value: { theme, darkMode, resolvedDark, setTheme, setDarkMode }, children: /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { delayDuration: 0, children }) });
|
|
138
157
|
}
|
|
139
158
|
var buttonVariants = classVarianceAuthority.cva(
|
|
140
159
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium font-sans transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -515,25 +534,6 @@ var PopoverContent = React66__namespace.default.forwardRef(({ className, align =
|
|
|
515
534
|
}
|
|
516
535
|
) }));
|
|
517
536
|
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
518
|
-
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
519
|
-
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
520
|
-
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
521
|
-
var TooltipContent = React66__namespace.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
522
|
-
TooltipPrimitive__namespace.Content,
|
|
523
|
-
{
|
|
524
|
-
ref,
|
|
525
|
-
sideOffset,
|
|
526
|
-
className: cn(
|
|
527
|
-
"z-50 overflow-hidden rounded-md bg-[hsl(var(--primary))] px-3 py-1.5 text-xs text-[hsl(var(--primary-foreground))] shadow-md",
|
|
528
|
-
"animate-in fade-in-0 zoom-in-95",
|
|
529
|
-
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
530
|
-
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
|
|
531
|
-
className
|
|
532
|
-
),
|
|
533
|
-
...props
|
|
534
|
-
}
|
|
535
|
-
) }));
|
|
536
|
-
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
537
537
|
var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
|
|
538
538
|
var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
|
|
539
539
|
var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
@@ -4229,7 +4229,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
4229
4229
|
const { asChild, ...primitiveProps } = props;
|
|
4230
4230
|
const Comp = asChild ? Slot3 : node;
|
|
4231
4231
|
if (typeof window !== "undefined") {
|
|
4232
|
-
window[
|
|
4232
|
+
window[Symbol.for("radix-ui")] = true;
|
|
4233
4233
|
}
|
|
4234
4234
|
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
4235
4235
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React66 from 'react';
|
|
3
3
|
import React66__default, { createContext, useState, useId, useContext, useEffect, useRef, useCallback } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
8
|
import { Slot, createSlot } from '@radix-ui/react-slot';
|
|
8
9
|
import { cva } from 'class-variance-authority';
|
|
9
10
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
@@ -14,7 +15,6 @@ import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
|
14
15
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
15
16
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
16
17
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
17
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
18
18
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
19
19
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
20
20
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
@@ -52,6 +52,28 @@ import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
|
52
52
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
53
53
|
|
|
54
54
|
// src/provider/blink-ui-provider.tsx
|
|
55
|
+
function cn(...inputs) {
|
|
56
|
+
return twMerge(clsx(inputs));
|
|
57
|
+
}
|
|
58
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
59
|
+
var Tooltip = TooltipPrimitive.Root;
|
|
60
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
61
|
+
var TooltipContent = React66__default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
62
|
+
TooltipPrimitive.Content,
|
|
63
|
+
{
|
|
64
|
+
ref,
|
|
65
|
+
sideOffset,
|
|
66
|
+
className: cn(
|
|
67
|
+
"z-50 overflow-hidden rounded-md bg-[hsl(var(--primary))] px-3 py-1.5 text-xs text-[hsl(var(--primary-foreground))] shadow-md",
|
|
68
|
+
"animate-in fade-in-0 zoom-in-95",
|
|
69
|
+
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
70
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
|
|
71
|
+
className
|
|
72
|
+
),
|
|
73
|
+
...props
|
|
74
|
+
}
|
|
75
|
+
) }));
|
|
76
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
55
77
|
var BlinkUIContext = createContext(null);
|
|
56
78
|
function useBlinkUI() {
|
|
57
79
|
const ctx = useContext(BlinkUIContext);
|
|
@@ -83,10 +105,7 @@ function BlinkUIProvider({
|
|
|
83
105
|
root.classList.add(`theme-${theme}`);
|
|
84
106
|
root.classList.add(resolvedDark ? "dark" : "light");
|
|
85
107
|
}, [theme, resolvedDark]);
|
|
86
|
-
return /* @__PURE__ */ jsx(BlinkUIContext.Provider, { value: { theme, darkMode, resolvedDark, setTheme, setDarkMode }, children });
|
|
87
|
-
}
|
|
88
|
-
function cn(...inputs) {
|
|
89
|
-
return twMerge(clsx(inputs));
|
|
108
|
+
return /* @__PURE__ */ jsx(BlinkUIContext.Provider, { value: { theme, darkMode, resolvedDark, setTheme, setDarkMode }, children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 0, children }) });
|
|
90
109
|
}
|
|
91
110
|
var buttonVariants = cva(
|
|
92
111
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium font-sans transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -467,25 +486,6 @@ var PopoverContent = React66__default.forwardRef(({ className, align = "center",
|
|
|
467
486
|
}
|
|
468
487
|
) }));
|
|
469
488
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
470
|
-
var TooltipProvider = TooltipPrimitive.Provider;
|
|
471
|
-
var Tooltip = TooltipPrimitive.Root;
|
|
472
|
-
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
473
|
-
var TooltipContent = React66__default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
474
|
-
TooltipPrimitive.Content,
|
|
475
|
-
{
|
|
476
|
-
ref,
|
|
477
|
-
sideOffset,
|
|
478
|
-
className: cn(
|
|
479
|
-
"z-50 overflow-hidden rounded-md bg-[hsl(var(--primary))] px-3 py-1.5 text-xs text-[hsl(var(--primary-foreground))] shadow-md",
|
|
480
|
-
"animate-in fade-in-0 zoom-in-95",
|
|
481
|
-
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
482
|
-
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
|
|
483
|
-
className
|
|
484
|
-
),
|
|
485
|
-
...props
|
|
486
|
-
}
|
|
487
|
-
) }));
|
|
488
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
489
489
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
490
490
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
491
491
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
@@ -4181,7 +4181,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
4181
4181
|
const { asChild, ...primitiveProps } = props;
|
|
4182
4182
|
const Comp = asChild ? Slot3 : node;
|
|
4183
4183
|
if (typeof window !== "undefined") {
|
|
4184
|
-
window[
|
|
4184
|
+
window[Symbol.for("radix-ui")] = true;
|
|
4185
4185
|
}
|
|
4186
4186
|
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
4187
4187
|
});
|