@ekkolyth/ui 0.1.0 → 0.1.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.ts +1 -1
- package/dist/index.js +13 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -446,7 +446,7 @@ declare function SelectValue({ ...props }: React$1.ComponentProps<typeof Select$
|
|
|
446
446
|
declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof Select$1.Trigger> & {
|
|
447
447
|
size?: "sm" | "default";
|
|
448
448
|
}): react_jsx_runtime.JSX.Element;
|
|
449
|
-
declare function SelectContent({ className, children, position, align, ...props }: React$1.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
449
|
+
declare function SelectContent({ className, children, position, align, side, sideOffset, ...props }: React$1.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
450
450
|
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
|
|
451
451
|
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
|
|
452
452
|
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -214,7 +214,7 @@ function AlertAction(_a) {
|
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
216
|
var buttonVariants = cva(
|
|
217
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] **:[svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 **:[svg]:pointer-events-none shrink-0 **:[svg]:shrink-0 outline-none group/button select-none",
|
|
217
|
+
"cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] **:[svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 **:[svg]:pointer-events-none shrink-0 **:[svg]:shrink-0 outline-none group/button select-none",
|
|
218
218
|
{
|
|
219
219
|
variants: {
|
|
220
220
|
variant: {
|
|
@@ -4394,7 +4394,7 @@ function SelectTrigger(_a) {
|
|
|
4394
4394
|
"data-slot": "select-trigger",
|
|
4395
4395
|
"data-size": size,
|
|
4396
4396
|
className: cn(
|
|
4397
|
-
"border-input data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 **:[svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center **:[svg]:pointer-events-none **:[svg]:shrink-0",
|
|
4397
|
+
"cursor-pointer border-input data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 **:[svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center **:[svg]:pointer-events-none **:[svg]:shrink-0",
|
|
4398
4398
|
className
|
|
4399
4399
|
)
|
|
4400
4400
|
}, props), {
|
|
@@ -4409,13 +4409,17 @@ function SelectContent(_a) {
|
|
|
4409
4409
|
var _b = _a, {
|
|
4410
4410
|
className,
|
|
4411
4411
|
children,
|
|
4412
|
-
position = "
|
|
4413
|
-
align = "center"
|
|
4412
|
+
position = "popper",
|
|
4413
|
+
align = "center",
|
|
4414
|
+
side = "bottom",
|
|
4415
|
+
sideOffset = 4
|
|
4414
4416
|
} = _b, props = __objRest(_b, [
|
|
4415
4417
|
"className",
|
|
4416
4418
|
"children",
|
|
4417
4419
|
"position",
|
|
4418
|
-
"align"
|
|
4420
|
+
"align",
|
|
4421
|
+
"side",
|
|
4422
|
+
"sideOffset"
|
|
4419
4423
|
]);
|
|
4420
4424
|
return /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsxs(
|
|
4421
4425
|
Select$1.Content,
|
|
@@ -4427,7 +4431,9 @@ function SelectContent(_a) {
|
|
|
4427
4431
|
className
|
|
4428
4432
|
),
|
|
4429
4433
|
position,
|
|
4430
|
-
align
|
|
4434
|
+
align,
|
|
4435
|
+
side,
|
|
4436
|
+
sideOffset
|
|
4431
4437
|
}, props), {
|
|
4432
4438
|
children: [
|
|
4433
4439
|
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
@@ -4477,7 +4483,7 @@ function SelectItem(_a) {
|
|
|
4477
4483
|
__spreadProps(__spreadValues({
|
|
4478
4484
|
"data-slot": "select-item",
|
|
4479
4485
|
className: cn(
|
|
4480
|
-
"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm **:[svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full
|
|
4486
|
+
"cursor-pointer focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm **:[svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 **:[svg]:pointer-events-none **:[svg]:shrink-0",
|
|
4481
4487
|
className
|
|
4482
4488
|
)
|
|
4483
4489
|
}, props), {
|