@almadar/ui 2.27.0 → 2.27.2

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.
@@ -245,7 +245,8 @@ var variantStyles = {
245
245
  ].join(" "),
246
246
  ghost: [
247
247
  "bg-transparent text-muted-foreground",
248
- "hover:text-foreground hover:bg-muted",
248
+ "border border-transparent",
249
+ "hover:text-foreground hover:bg-muted hover:border-border",
249
250
  "active:scale-[var(--active-scale)]"
250
251
  ].join(" "),
251
252
  danger: [
@@ -15426,18 +15427,14 @@ var InstallBox = ({
15426
15427
  /* @__PURE__ */ jsxRuntime.jsx(
15427
15428
  Box,
15428
15429
  {
15429
- className: cn(
15430
- "bg-foreground",
15431
- "rounded-md",
15432
- "border-[length:var(--border-width)] border-border"
15433
- ),
15430
+ className: "bg-surface rounded-md border-[length:var(--border-width)] border-border",
15434
15431
  padding: "md",
15435
- children: /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "md", align: "center", children: [
15432
+ children: /* @__PURE__ */ jsxRuntime.jsxs(Box, { className: "flex items-center gap-3", children: [
15436
15433
  /* @__PURE__ */ jsxRuntime.jsx(
15437
15434
  Typography,
15438
15435
  {
15439
15436
  variant: "body2",
15440
- className: "font-mono flex-1 min-w-0 text-background select-all",
15437
+ className: "font-mono flex-1 min-w-0 select-all",
15441
15438
  truncate: true,
15442
15439
  children: command
15443
15440
  }
@@ -15446,10 +15443,12 @@ var InstallBox = ({
15446
15443
  Button,
15447
15444
  {
15448
15445
  variant: "ghost",
15449
- size: "md",
15446
+ size: "sm",
15447
+ leftIcon: copied ? "check" : "copy",
15450
15448
  onClick: handleCopy,
15451
- className: "flex-shrink-0 text-background hover:text-background",
15452
- children: copied ? "Copied!" : "Copy"
15449
+ className: "flex-shrink-0",
15450
+ "aria-label": copied ? "Copied" : "Copy to clipboard",
15451
+ children: copied ? "Copied" : "Copy"
15453
15452
  }
15454
15453
  )
15455
15454
  ] })
@@ -215,7 +215,8 @@ var variantStyles = {
215
215
  ].join(" "),
216
216
  ghost: [
217
217
  "bg-transparent text-muted-foreground",
218
- "hover:text-foreground hover:bg-muted",
218
+ "border border-transparent",
219
+ "hover:text-foreground hover:bg-muted hover:border-border",
219
220
  "active:scale-[var(--active-scale)]"
220
221
  ].join(" "),
221
222
  danger: [
@@ -15396,18 +15397,14 @@ var InstallBox = ({
15396
15397
  /* @__PURE__ */ jsx(
15397
15398
  Box,
15398
15399
  {
15399
- className: cn(
15400
- "bg-foreground",
15401
- "rounded-md",
15402
- "border-[length:var(--border-width)] border-border"
15403
- ),
15400
+ className: "bg-surface rounded-md border-[length:var(--border-width)] border-border",
15404
15401
  padding: "md",
15405
- children: /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", children: [
15402
+ children: /* @__PURE__ */ jsxs(Box, { className: "flex items-center gap-3", children: [
15406
15403
  /* @__PURE__ */ jsx(
15407
15404
  Typography,
15408
15405
  {
15409
15406
  variant: "body2",
15410
- className: "font-mono flex-1 min-w-0 text-background select-all",
15407
+ className: "font-mono flex-1 min-w-0 select-all",
15411
15408
  truncate: true,
15412
15409
  children: command
15413
15410
  }
@@ -15416,10 +15413,12 @@ var InstallBox = ({
15416
15413
  Button,
15417
15414
  {
15418
15415
  variant: "ghost",
15419
- size: "md",
15416
+ size: "sm",
15417
+ leftIcon: copied ? "check" : "copy",
15420
15418
  onClick: handleCopy,
15421
- className: "flex-shrink-0 text-background hover:text-background",
15422
- children: copied ? "Copied!" : "Copy"
15419
+ className: "flex-shrink-0",
15420
+ "aria-label": copied ? "Copied" : "Copy to clipboard",
15421
+ children: copied ? "Copied" : "Copy"
15423
15422
  }
15424
15423
  )
15425
15424
  ] })
@@ -3054,7 +3054,8 @@ var variantStyles2 = {
3054
3054
  ].join(" "),
3055
3055
  ghost: [
3056
3056
  "bg-transparent text-muted-foreground",
3057
- "hover:text-foreground hover:bg-muted",
3057
+ "border border-transparent",
3058
+ "hover:text-foreground hover:bg-muted hover:border-border",
3058
3059
  "active:scale-[var(--active-scale)]"
3059
3060
  ].join(" "),
3060
3061
  danger: [
@@ -3030,7 +3030,8 @@ var variantStyles2 = {
3030
3030
  ].join(" "),
3031
3031
  ghost: [
3032
3032
  "bg-transparent text-muted-foreground",
3033
- "hover:text-foreground hover:bg-muted",
3033
+ "border border-transparent",
3034
+ "hover:text-foreground hover:bg-muted hover:border-border",
3034
3035
  "active:scale-[var(--active-scale)]"
3035
3036
  ].join(" "),
3036
3037
  danger: [
@@ -3054,7 +3054,8 @@ var variantStyles2 = {
3054
3054
  ].join(" "),
3055
3055
  ghost: [
3056
3056
  "bg-transparent text-muted-foreground",
3057
- "hover:text-foreground hover:bg-muted",
3057
+ "border border-transparent",
3058
+ "hover:text-foreground hover:bg-muted hover:border-border",
3058
3059
  "active:scale-[var(--active-scale)]"
3059
3060
  ].join(" "),
3060
3061
  danger: [
@@ -3531,18 +3532,14 @@ var InstallBox = ({
3531
3532
  /* @__PURE__ */ jsxRuntime.jsx(
3532
3533
  Box,
3533
3534
  {
3534
- className: cn(
3535
- "bg-foreground",
3536
- "rounded-md",
3537
- "border-[length:var(--border-width)] border-border"
3538
- ),
3535
+ className: "bg-surface rounded-md border-[length:var(--border-width)] border-border",
3539
3536
  padding: "md",
3540
- children: /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "md", align: "center", children: [
3537
+ children: /* @__PURE__ */ jsxRuntime.jsxs(Box, { className: "flex items-center gap-3", children: [
3541
3538
  /* @__PURE__ */ jsxRuntime.jsx(
3542
3539
  Typography,
3543
3540
  {
3544
3541
  variant: "body2",
3545
- className: "font-mono flex-1 min-w-0 text-background select-all",
3542
+ className: "font-mono flex-1 min-w-0 select-all",
3546
3543
  truncate: true,
3547
3544
  children: command
3548
3545
  }
@@ -3551,10 +3548,12 @@ var InstallBox = ({
3551
3548
  Button,
3552
3549
  {
3553
3550
  variant: "ghost",
3554
- size: "md",
3551
+ size: "sm",
3552
+ leftIcon: copied ? "check" : "copy",
3555
3553
  onClick: handleCopy,
3556
- className: "flex-shrink-0 text-background hover:text-background",
3557
- children: copied ? "Copied!" : "Copy"
3554
+ className: "flex-shrink-0",
3555
+ "aria-label": copied ? "Copied" : "Copy to clipboard",
3556
+ children: copied ? "Copied" : "Copy"
3558
3557
  }
3559
3558
  )
3560
3559
  ] })
@@ -3030,7 +3030,8 @@ var variantStyles2 = {
3030
3030
  ].join(" "),
3031
3031
  ghost: [
3032
3032
  "bg-transparent text-muted-foreground",
3033
- "hover:text-foreground hover:bg-muted",
3033
+ "border border-transparent",
3034
+ "hover:text-foreground hover:bg-muted hover:border-border",
3034
3035
  "active:scale-[var(--active-scale)]"
3035
3036
  ].join(" "),
3036
3037
  danger: [
@@ -3507,18 +3508,14 @@ var InstallBox = ({
3507
3508
  /* @__PURE__ */ jsx(
3508
3509
  Box,
3509
3510
  {
3510
- className: cn(
3511
- "bg-foreground",
3512
- "rounded-md",
3513
- "border-[length:var(--border-width)] border-border"
3514
- ),
3511
+ className: "bg-surface rounded-md border-[length:var(--border-width)] border-border",
3515
3512
  padding: "md",
3516
- children: /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", children: [
3513
+ children: /* @__PURE__ */ jsxs(Box, { className: "flex items-center gap-3", children: [
3517
3514
  /* @__PURE__ */ jsx(
3518
3515
  Typography,
3519
3516
  {
3520
3517
  variant: "body2",
3521
- className: "font-mono flex-1 min-w-0 text-background select-all",
3518
+ className: "font-mono flex-1 min-w-0 select-all",
3522
3519
  truncate: true,
3523
3520
  children: command
3524
3521
  }
@@ -3527,10 +3524,12 @@ var InstallBox = ({
3527
3524
  Button,
3528
3525
  {
3529
3526
  variant: "ghost",
3530
- size: "md",
3527
+ size: "sm",
3528
+ leftIcon: copied ? "check" : "copy",
3531
3529
  onClick: handleCopy,
3532
- className: "flex-shrink-0 text-background hover:text-background",
3533
- children: copied ? "Copied!" : "Copy"
3530
+ className: "flex-shrink-0",
3531
+ "aria-label": copied ? "Copied" : "Copy to clipboard",
3532
+ children: copied ? "Copied" : "Copy"
3534
3533
  }
3535
3534
  )
3536
3535
  ] })
@@ -921,7 +921,8 @@ var variantStyles2 = {
921
921
  ].join(" "),
922
922
  ghost: [
923
923
  "bg-transparent text-muted-foreground",
924
- "hover:text-foreground hover:bg-muted",
924
+ "border border-transparent",
925
+ "hover:text-foreground hover:bg-muted hover:border-border",
925
926
  "active:scale-[var(--active-scale)]"
926
927
  ].join(" "),
927
928
  danger: [
@@ -891,7 +891,8 @@ var variantStyles2 = {
891
891
  ].join(" "),
892
892
  ghost: [
893
893
  "bg-transparent text-muted-foreground",
894
- "hover:text-foreground hover:bg-muted",
894
+ "border border-transparent",
895
+ "hover:text-foreground hover:bg-muted hover:border-border",
895
896
  "active:scale-[var(--active-scale)]"
896
897
  ].join(" "),
897
898
  danger: [
@@ -2656,7 +2656,8 @@ var variantStyles2 = {
2656
2656
  ].join(" "),
2657
2657
  ghost: [
2658
2658
  "bg-transparent text-muted-foreground",
2659
- "hover:text-foreground hover:bg-muted",
2659
+ "border border-transparent",
2660
+ "hover:text-foreground hover:bg-muted hover:border-border",
2660
2661
  "active:scale-[var(--active-scale)]"
2661
2662
  ].join(" "),
2662
2663
  danger: [
@@ -2626,7 +2626,8 @@ var variantStyles2 = {
2626
2626
  ].join(" "),
2627
2627
  ghost: [
2628
2628
  "bg-transparent text-muted-foreground",
2629
- "hover:text-foreground hover:bg-muted",
2629
+ "border border-transparent",
2630
+ "hover:text-foreground hover:bg-muted hover:border-border",
2630
2631
  "active:scale-[var(--active-scale)]"
2631
2632
  ].join(" "),
2632
2633
  danger: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.27.0",
3
+ "version": "2.27.2",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",