@customafk/lunas-ui 0.0.3-b → 0.0.3-d
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.
|
@@ -277,13 +277,15 @@ var Input = memo(
|
|
|
277
277
|
className: cn(
|
|
278
278
|
"w-full",
|
|
279
279
|
"rounded border border-ui-border-400 bg-transparent",
|
|
280
|
-
"px-3 py-1",
|
|
281
|
-
"text-ui-note text-ui-text-
|
|
280
|
+
"px-3 py-1.5",
|
|
281
|
+
"!text-ui-note text-ui-text-700",
|
|
282
282
|
"outline-none",
|
|
283
283
|
"focus-within:text-ui-text-800",
|
|
284
284
|
"focus-within:border-ui-primary-500",
|
|
285
285
|
"focus-within:ring-4",
|
|
286
286
|
"focus-within:ring-ui-primary-100",
|
|
287
|
+
"placeholder:!text-ui-note",
|
|
288
|
+
"placeholder:text-ui-text-500",
|
|
287
289
|
"transition-colors duration-300",
|
|
288
290
|
icon && "pl-12",
|
|
289
291
|
isErrored && "border-ui-destructive-500",
|
|
@@ -292,18 +292,20 @@ var SelectTrigger = forwardRef(({ className, children, ...props }, ref) => /* @_
|
|
|
292
292
|
ref,
|
|
293
293
|
className: cn(
|
|
294
294
|
"flex items-center justify-between",
|
|
295
|
-
"h-
|
|
295
|
+
"h-9 w-full",
|
|
296
296
|
"px-3 py-2",
|
|
297
|
-
"rounded-md border border-ui-
|
|
297
|
+
"rounded-md border border-ui-border-400",
|
|
298
298
|
"text-sm",
|
|
299
299
|
"bg-ui-surface-50",
|
|
300
300
|
"placeholder:text-ui-text-500",
|
|
301
301
|
"focus:outline-none",
|
|
302
302
|
"focus:ring-1",
|
|
303
303
|
"focus:ring-offset-2",
|
|
304
|
+
"focus:border-ui-primary-500",
|
|
304
305
|
"focus:ring-offset-ui-primary-200",
|
|
305
306
|
"disabled:cursor-not-allowed",
|
|
306
307
|
"disabled:opacity-50 [&>span]:line-clamp-1",
|
|
308
|
+
"transition-colors duration-300",
|
|
307
309
|
className
|
|
308
310
|
),
|
|
309
311
|
...props,
|
|
@@ -387,7 +389,7 @@ var SelectLabel = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
|
|
|
387
389
|
SelectPrimitive.Label,
|
|
388
390
|
{
|
|
389
391
|
ref,
|
|
390
|
-
className: cn("py-1.5 pl-
|
|
392
|
+
className: cn("py-1.5 pl-4 pr-2 text-sm font-semibold", className),
|
|
391
393
|
...props
|
|
392
394
|
}
|
|
393
395
|
));
|
|
@@ -400,21 +402,23 @@ var SelectItem = forwardRef(({ className, children, ...props }, ref) => /* @__PU
|
|
|
400
402
|
"relative",
|
|
401
403
|
"flex items-center",
|
|
402
404
|
"w-full",
|
|
403
|
-
"py-
|
|
405
|
+
"py-2 pl-4 pr-6",
|
|
404
406
|
"rounded-sm",
|
|
405
407
|
"text-sm",
|
|
406
408
|
"cursor-pointer",
|
|
407
409
|
"select-none",
|
|
408
410
|
"outline-none",
|
|
409
|
-
"
|
|
410
|
-
"focus:
|
|
411
|
+
"text-ui-text-600",
|
|
412
|
+
"focus:bg-ui-primary-50",
|
|
413
|
+
"focus:text-ui-text-800",
|
|
411
414
|
"data-[disabled]:pointer-events-none",
|
|
412
415
|
"data-[disabled]:opacity-50",
|
|
416
|
+
"transition-colors duration-200",
|
|
413
417
|
className
|
|
414
418
|
),
|
|
415
419
|
...props,
|
|
416
420
|
children: [
|
|
417
|
-
/* @__PURE__ */ jsx2("span", { className: "absolute
|
|
421
|
+
/* @__PURE__ */ jsx2("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx2(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx2(Check, { size: 16 }) }) }),
|
|
418
422
|
/* @__PURE__ */ jsx2(SelectPrimitive.ItemText, { children })
|
|
419
423
|
]
|
|
420
424
|
}
|
|
@@ -444,7 +444,7 @@ var UserAvatar = memo(({ fullname, email, src: source, size, isButton = true })
|
|
|
444
444
|
"enabled:hover:shadow-ui-flat",
|
|
445
445
|
"enabled:hover:scale-110"
|
|
446
446
|
),
|
|
447
|
-
children: source ? /* @__PURE__ */ jsx2(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size }) : /* @__PURE__ */ jsx2(
|
|
447
|
+
children: source.length === 0 ? /* @__PURE__ */ jsx2(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size }) : /* @__PURE__ */ jsx2(
|
|
448
448
|
"img",
|
|
449
449
|
{
|
|
450
450
|
style: { width: size, height: size },
|
|
@@ -295,18 +295,20 @@ var SelectTrigger = forwardRef(({ className, children, ...props }, ref) => /* @_
|
|
|
295
295
|
ref,
|
|
296
296
|
className: cn(
|
|
297
297
|
"flex items-center justify-between",
|
|
298
|
-
"h-
|
|
298
|
+
"h-9 w-full",
|
|
299
299
|
"px-3 py-2",
|
|
300
|
-
"rounded-md border border-ui-
|
|
300
|
+
"rounded-md border border-ui-border-400",
|
|
301
301
|
"text-sm",
|
|
302
302
|
"bg-ui-surface-50",
|
|
303
303
|
"placeholder:text-ui-text-500",
|
|
304
304
|
"focus:outline-none",
|
|
305
305
|
"focus:ring-1",
|
|
306
306
|
"focus:ring-offset-2",
|
|
307
|
+
"focus:border-ui-primary-500",
|
|
307
308
|
"focus:ring-offset-ui-primary-200",
|
|
308
309
|
"disabled:cursor-not-allowed",
|
|
309
310
|
"disabled:opacity-50 [&>span]:line-clamp-1",
|
|
311
|
+
"transition-colors duration-300",
|
|
310
312
|
className
|
|
311
313
|
),
|
|
312
314
|
...props,
|
|
@@ -390,7 +392,7 @@ var SelectLabel = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
|
|
|
390
392
|
SelectPrimitive.Label,
|
|
391
393
|
{
|
|
392
394
|
ref,
|
|
393
|
-
className: cn("py-1.5 pl-
|
|
395
|
+
className: cn("py-1.5 pl-4 pr-2 text-sm font-semibold", className),
|
|
394
396
|
...props
|
|
395
397
|
}
|
|
396
398
|
));
|
|
@@ -403,21 +405,23 @@ var SelectItem = forwardRef(({ className, children, ...props }, ref) => /* @__PU
|
|
|
403
405
|
"relative",
|
|
404
406
|
"flex items-center",
|
|
405
407
|
"w-full",
|
|
406
|
-
"py-
|
|
408
|
+
"py-2 pl-4 pr-6",
|
|
407
409
|
"rounded-sm",
|
|
408
410
|
"text-sm",
|
|
409
411
|
"cursor-pointer",
|
|
410
412
|
"select-none",
|
|
411
413
|
"outline-none",
|
|
412
|
-
"
|
|
413
|
-
"focus:
|
|
414
|
+
"text-ui-text-600",
|
|
415
|
+
"focus:bg-ui-primary-50",
|
|
416
|
+
"focus:text-ui-text-800",
|
|
414
417
|
"data-[disabled]:pointer-events-none",
|
|
415
418
|
"data-[disabled]:opacity-50",
|
|
419
|
+
"transition-colors duration-200",
|
|
416
420
|
className
|
|
417
421
|
),
|
|
418
422
|
...props,
|
|
419
423
|
children: [
|
|
420
|
-
/* @__PURE__ */ jsx2("span", { className: "absolute
|
|
424
|
+
/* @__PURE__ */ jsx2("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx2(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx2(Check, { size: 16 }) }) }),
|
|
421
425
|
/* @__PURE__ */ jsx2(SelectPrimitive.ItemText, { children })
|
|
422
426
|
]
|
|
423
427
|
}
|
|
@@ -607,7 +607,7 @@ var UserAvatar = memo2(({ fullname, email, src: source, size, isButton = true })
|
|
|
607
607
|
"enabled:hover:shadow-ui-flat",
|
|
608
608
|
"enabled:hover:scale-110"
|
|
609
609
|
),
|
|
610
|
-
children: source ? /* @__PURE__ */ jsx5(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size }) : /* @__PURE__ */ jsx5(
|
|
610
|
+
children: source.length === 0 ? /* @__PURE__ */ jsx5(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size }) : /* @__PURE__ */ jsx5(
|
|
611
611
|
"img",
|
|
612
612
|
{
|
|
613
613
|
style: { width: size, height: size },
|
|
@@ -2062,7 +2062,7 @@ var UserAvatar = memo7(({ fullname, email, src: source, size, isButton = true })
|
|
|
2062
2062
|
"enabled:hover:shadow-ui-flat",
|
|
2063
2063
|
"enabled:hover:scale-110"
|
|
2064
2064
|
),
|
|
2065
|
-
children: source ? /* @__PURE__ */ jsx24(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size }) : /* @__PURE__ */ jsx24(
|
|
2065
|
+
children: source.length === 0 ? /* @__PURE__ */ jsx24(AvatarIcon_default, { bgColor: color_hash_default.hex(fullname + email), size }) : /* @__PURE__ */ jsx24(
|
|
2066
2066
|
"img",
|
|
2067
2067
|
{
|
|
2068
2068
|
style: { width: size, height: size },
|