@typlog/ui 0.12.0 → 0.12.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/addons.css CHANGED
@@ -150,19 +150,6 @@
150
150
  background-color: var(--gray-a4);
151
151
  }
152
152
 
153
- .ui-SpinnerIcon {
154
- color: var(--gray-10);
155
- }
156
- .ui-SpinnerIcon:where(.r-size-1) {
157
- font-size: var(--space-3);
158
- }
159
- .ui-SpinnerIcon:where(.r-size-2) {
160
- font-size: var(--space-4);
161
- }
162
- .ui-SpinnerIcon:where(.r-size-3) {
163
- font-size: calc(1.25 * var(--space-4));
164
- }
165
-
166
153
  .ui-Turnstile {
167
154
  background: var(--gray-a3);
168
155
  }
package/addons.d.ts CHANGED
@@ -52,26 +52,6 @@ export declare interface SocialButtonProps extends PrimitiveProps {
52
52
  disabled?: boolean;
53
53
  }
54
54
 
55
- export declare const SpinnerIcon: DefineComponent<SpinnerIconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SpinnerIconProps> & Readonly<{}>, {
56
- size: "1" | "2" | "3";
57
- icon: SpinnerIcon_2;
58
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
59
-
60
- declare type SpinnerIcon_2 = '12-dots-scale-rotate' | '180-ring' | '180-ring-with-bg' | '270-ring' | '270-ring-with-bg' | '3-dots-bounce' | '3-dots-fade' | '3-dots-move' | '3-dots-rotate' | '3-dots-scale' | '3-dots-scale-middle' | '6-dots-rotate' | '6-dots-scale' | '6-dots-scale-middle' | '8-dots-rotate' | '90-ring' | '90-ring-with-bg' | 'bars-fade' | 'bars-rotate-fade' | 'bars-scale' | 'bars-scale-fade' | 'bars-scale-middle' | 'blocks-scale' | 'blocks-shuffle-2' | 'blocks-shuffle-3' | 'blocks-wave' | 'bouncing-ball' | 'clock' | 'dot-revolve' | 'eclipse' | 'eclipse-half' | 'gooey-balls-1' | 'gooey-balls-2' | 'pulse' | 'pulse-2' | 'pulse-3' | 'pulse-multiple' | 'pulse-ring' | 'pulse-rings-2' | 'pulse-rings-3' | 'pulse-rings-multiple' | 'ring-resize' | 'tadpole' | 'wifi' | 'wifi-fade' | 'wind-toy';
61
-
62
- export declare interface SpinnerIconProps {
63
- /**
64
- * Icon name of the spinner.
65
- * @default "180-ring"
66
- */
67
- icon?: SpinnerIcon_2;
68
- /**
69
- * Control size of the spinner.
70
- * @default "2"
71
- */
72
- size?: '1' | '2' | '3';
73
- }
74
-
75
55
  export declare const Turnstile: DefineComponent<TurnstileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
76
56
  "update:modelValue": (args_0: string) => any;
77
57
  }, string, PublicProps, Readonly<TurnstileProps> & Readonly<{
package/addons.js CHANGED
@@ -11,7 +11,7 @@ const BRAND_ICONS = {
11
11
  slack: "logos:slack-icon",
12
12
  figma: "logos:figma"
13
13
  };
14
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
14
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
15
15
  __name: "SocialButton",
16
16
  props: {
17
17
  brand: {},
@@ -54,7 +54,7 @@ const _hoisted_1$1 = {
54
54
  };
55
55
  const _hoisted_2$1 = { class: "ui-IconifySampleInfo" };
56
56
  const _hoisted_3$1 = { class: "ui-IconifySampleIcons" };
57
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
57
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
58
58
  __name: "IconifySample",
59
59
  props: {
60
60
  prefix: {},
@@ -152,7 +152,7 @@ const filterIcons = (names, query, suffix) => {
152
152
  return match;
153
153
  });
154
154
  };
155
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
155
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
156
156
  __name: "IconifyCollection",
157
157
  props: {
158
158
  prefix: {},
@@ -304,7 +304,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
304
304
  ]),
305
305
  createElementVNode("div", _hoisted_8, [
306
306
  (openBlock(true), createElementBlock(Fragment, null, renderList(collection.items, (item) => {
307
- return openBlock(), createBlock(_sfc_main$3, mergeProps({
307
+ return openBlock(), createBlock(_sfc_main$2, mergeProps({
308
308
  key: item.prefix
309
309
  }, { ref_for: true }, item, {
310
310
  onClick: withModifiers(($event) => onSelectPrefix(item.prefix), ["prevent"])
@@ -395,25 +395,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
395
395
  };
396
396
  }
397
397
  });
398
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
399
- __name: "SpinnerIcon",
400
- props: {
401
- icon: { default: "180-ring" },
402
- size: { default: "2" }
403
- },
404
- setup(__props) {
405
- const props = __props;
406
- const iconName = computed(() => {
407
- return `svg-spinners:${props.icon}`;
408
- });
409
- return (_ctx, _cache) => {
410
- return openBlock(), createBlock(unref(Icon), {
411
- class: normalizeClass(["ui-SpinnerIcon", `r-size-${_ctx.size}`]),
412
- icon: iconName.value
413
- }, null, 8, ["class", "icon"]);
414
- };
415
- }
416
- });
417
398
  const turnstileSrc = "https://challenges.cloudflare.com/turnstile/v0/api.js";
418
399
  const turnstileLoadFunction = "cfTurnstileOnLoad";
419
400
  let turnstileState = typeof window !== "undefined" ? window.turnstile !== void 0 ? "ready" : "unloaded" : "unloaded";
@@ -507,8 +488,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
507
488
  }
508
489
  });
509
490
  export {
510
- _sfc_main$2 as IconifyCollection,
511
- _sfc_main$4 as SocialButton,
512
- _sfc_main$1 as SpinnerIcon,
491
+ _sfc_main$1 as IconifyCollection,
492
+ _sfc_main$3 as SocialButton,
513
493
  _sfc_main as Turnstile
514
494
  };
@@ -225,6 +225,11 @@
225
225
  background-color: var(--accent-a3);
226
226
  }
227
227
 
228
+ /* special fix for tailwind */
229
+ .ui-RadioTabsRoot:where(.w-full) {
230
+ width: 100%;
231
+ }
232
+
228
233
  .ui-RadioTabsItem {
229
234
  display: inline-flex;
230
235
  flex-grow: 1;
@@ -17,7 +17,7 @@
17
17
  --tab-height: var(--space-6);
18
18
  --tab-padding-x: var(--space-1);
19
19
  --tab-radius: max(var(--radius-2), var(--radius-full));
20
- --tab-item-radius: var(--radius-1);
20
+ --tab-item-radius: max(var(--radius-1), var(--radius-full));
21
21
  --tab-inner-padding-x: var(--space-1);
22
22
  --tab-inner-height: var(--space-5);
23
23
  }
@@ -28,7 +28,7 @@
28
28
  --tab-height: var(--space-7);
29
29
  --tab-padding-x: var(--space-2);
30
30
  --tab-radius: max(var(--radius-3), var(--radius-full));
31
- --tab-item-radius: var(--radius-2);
31
+ --tab-item-radius: max(var(--radius-2), var(--radius-full));
32
32
  --tab-inner-padding-x: var(--space-2);
33
33
  --tab-inner-height: calc(var(--space-6) - var(--space-1));
34
34
  }
@@ -113,6 +113,11 @@
113
113
  background-color: var(--accent-12);
114
114
  }
115
115
 
116
+ /** special fix for tailwind */
117
+ .ui-TabList:where(.w-full) {
118
+ width: 100%;
119
+ }
120
+
116
121
  .ui-TabTrigger {
117
122
  display: flex;
118
123
  align-items: center;
package/components.css CHANGED
@@ -2955,6 +2955,11 @@ to {
2955
2955
  background-color: var(--accent-a3);
2956
2956
  }
2957
2957
 
2958
+ /* special fix for tailwind */
2959
+ .ui-RadioTabsRoot:where(.w-full) {
2960
+ width: 100%;
2961
+ }
2962
+
2958
2963
  .ui-RadioTabsItem {
2959
2964
  display: inline-flex;
2960
2965
  flex-grow: 1;
@@ -3010,7 +3015,7 @@ to {
3010
3015
  --tab-height: var(--space-6);
3011
3016
  --tab-padding-x: var(--space-1);
3012
3017
  --tab-radius: max(var(--radius-2), var(--radius-full));
3013
- --tab-item-radius: var(--radius-1);
3018
+ --tab-item-radius: max(var(--radius-1), var(--radius-full));
3014
3019
  --tab-inner-padding-x: var(--space-1);
3015
3020
  --tab-inner-height: var(--space-5);
3016
3021
  }
@@ -3021,7 +3026,7 @@ to {
3021
3026
  --tab-height: var(--space-7);
3022
3027
  --tab-padding-x: var(--space-2);
3023
3028
  --tab-radius: max(var(--radius-3), var(--radius-full));
3024
- --tab-item-radius: var(--radius-2);
3029
+ --tab-item-radius: max(var(--radius-2), var(--radius-full));
3025
3030
  --tab-inner-padding-x: var(--space-2);
3026
3031
  --tab-inner-height: calc(var(--space-6) - var(--space-1));
3027
3032
  }
@@ -3106,6 +3111,11 @@ to {
3106
3111
  background-color: var(--accent-12);
3107
3112
  }
3108
3113
 
3114
+ /** special fix for tailwind */
3115
+ .ui-TabList:where(.w-full) {
3116
+ width: 100%;
3117
+ }
3118
+
3109
3119
  .ui-TabTrigger {
3110
3120
  display: flex;
3111
3121
  align-items: center;
@@ -3366,25 +3376,25 @@ to {
3366
3376
  --collapsible-font-size: var(--font-size-2);
3367
3377
  --collapsible-trigger-gap: calc(var(--space-1) / 2);
3368
3378
  --collapsible-indicator-icon-size: var(--font-size-2);
3369
- --collapsible-padding-y: var(--space-1);
3370
- --collapsible-padding-x: var(--space-2);
3379
+ --collapsible-padding-y: var(--space-2);
3380
+ --collapsible-padding-x: var(--space-3);
3371
3381
  --collapsible-radius: max(var(--radius-1), var(--radius-full))
3372
3382
  }
3373
3383
  .ui-CollapsibleRoot:where(.r-size-2) {
3374
3384
  --collapsible-font-size: var(--font-size-3);
3375
3385
  --collapsible-trigger-gap: var(--space-1);
3376
3386
  --collapsible-indicator-icon-size: var(--font-size-3);
3377
- --collapsible-padding-y: var(--space-2);
3378
- --collapsible-padding-x: var(--space-3);
3387
+ --collapsible-padding-y: var(--space-3);
3388
+ --collapsible-padding-x: var(--space-4);
3379
3389
  --collapsible-radius: max(var(--radius-2), var(--radius-full))
3380
3390
  }
3381
3391
  .ui-CollapsibleRoot:where(.r-size-3) {
3382
- --collapsible-font-size: var(--font-size-5);
3392
+ --collapsible-font-size: var(--font-size-4);
3383
3393
  --collapsible-trigger-gap: calc(var(--space-2) * 3 / 4);
3384
3394
  --collapsible-indicator-icon-size: var(--font-size-5);
3385
- --collapsible-padding-y: var(--space-2);
3395
+ --collapsible-padding-y: var(--space-3);
3386
3396
  --collapsible-padding-x: var(--space-4);
3387
- --collapsible-radius: max(var(--radius-3), var(--radius-full))
3397
+ --collapsible-radius: max(var(--radius-4), var(--radius-full))
3388
3398
  }
3389
3399
  .ui-CollapsibleRoot:where(.r-size-4) {
3390
3400
  --collapsible-font-size: var(--font-size-7);
@@ -3394,13 +3404,23 @@ to {
3394
3404
  --collapsible-padding-x: var(--space-5);
3395
3405
  --collapsible-radius: max(var(--radius-4), var(--radius-full))
3396
3406
  }
3407
+ .ui-CollapsibleRoot:where(.r-variant-soft, .r-variant-surface) {
3408
+ --collapsible-trigger-background-color: var(--accent-a2);
3409
+ --collapsible-trigger-hover-background-color: var(--accent-a3);
3410
+ --collapsible-trigger-open-background-color: var(--accent-a3);
3411
+ --collapsible-trigger-open-text-color: var(--accent-a11);
3412
+
3413
+ border-radius: var(--collapsible-radius);
3414
+ }
3397
3415
  .ui-CollapsibleRoot:where(.r-variant-surface) {
3398
3416
  box-shadow: inset 0 0 0 1px var(--gray-a4);
3399
- border-radius: var(--collapsible-radius);
3400
3417
  }
3401
3418
  .ui-CollapsibleRoot:where(.r-variant-surface):where([data-state="open"]) {
3402
3419
  box-shadow: inset 0 0 0 1px var(--gray-a5);
3403
3420
  }
3421
+ .ui-CollapsibleRoot:where(.r-variant-soft, .r-variant-surface):where([data-accent-color="gray"]) {
3422
+ --collapsible-trigger-open-text-color: var(--accent-12);
3423
+ }
3404
3424
 
3405
3425
  .ui-CollapsibleIndicator {
3406
3426
  display: inline-flex;
@@ -3430,41 +3450,39 @@ to {
3430
3450
  text-align: initial;
3431
3451
  }
3432
3452
  :where(.ui-CollapsibleRoot:not(.r-variant-ghost)) .ui-CollapsibleTrigger {
3453
+ background-color: var(--collapsible-trigger-background-color);
3433
3454
  padding-block: var(--collapsible-padding-y);
3434
3455
  padding-inline: var(--collapsible-padding-x);
3435
3456
  width: 100%;
3436
- }
3437
- :where(.ui-CollapsibleRoot.r-variant-soft) .ui-CollapsibleTrigger {
3438
- background: var(--accent-a2);
3439
3457
  border-radius: var(--collapsible-radius);
3458
+ transition: border-radius 0.2s ease;
3440
3459
  }
3441
- :where(.ui-CollapsibleRoot.r-variant-surface) .ui-CollapsibleTrigger {
3442
- border-top-left-radius: var(--collapsible-radius);
3443
- border-top-right-radius: var(--collapsible-radius);
3444
- background: var(--accent-a2);
3445
- }
3446
- :where(.ui-CollapsibleRoot.r-variant-soft) .ui-CollapsibleTrigger:where(:hover) {
3447
- background: var(--accent-a3);
3460
+ :where(.ui-CollapsibleRoot:not(.r-variant-ghost)) .ui-CollapsibleTrigger:where(:hover) {
3461
+ background-color: var(--collapsible-trigger-hover-background-color);
3448
3462
  }
3449
- :where(.ui-CollapsibleRoot.r-variant-surface) .ui-CollapsibleTrigger:where([data-state="open"]),
3450
- :where(.ui-CollapsibleRoot.r-variant-soft) .ui-CollapsibleTrigger:where([data-state="open"]) {
3451
- background: var(--accent-a3);
3452
- color: var(--accent-a11);
3463
+ :where(.ui-CollapsibleRoot:not(.r-variant-ghost)) .ui-CollapsibleTrigger:where([data-state="open"]) {
3464
+ background-color: var(--collapsible-trigger-open-background-color);
3465
+ color: var(--collapsible-trigger-open-text-color);
3466
+ border-radius: var(--collapsible-radius) var(--collapsible-radius) 0 0;
3453
3467
  }
3454
3468
 
3455
3469
  @keyframes collapsible-down {
3456
3470
  from {
3457
3471
  height: 0;
3472
+ opacity: 1;
3458
3473
  }
3459
3474
  to {
3460
3475
  height: var(--reka-collapsible-content-height);
3476
+ opacity: 1;
3461
3477
  }
3462
3478
  }
3463
3479
  @keyframes collapsible-up {
3464
3480
  from {
3481
+ opacity: 1;
3465
3482
  height: var(--reka-collapsible-content-height);
3466
3483
  }
3467
3484
  to {
3485
+ opacity: 0;
3468
3486
  height: 0;
3469
3487
  }
3470
3488
  }
@@ -3478,7 +3496,10 @@ to {
3478
3496
  animation: collapsible-down 0.2s ease-out;
3479
3497
  }
3480
3498
  .ui-CollapsibleContent:where([data-state="closed"]) {
3481
- animation: collapsible-up 0.2s ease-out;
3499
+ animation: collapsible-up 0.2s ease-in;
3500
+ }
3501
+ :where(.ui-CollapsibleRoot.r-variant-soft) .ui-CollapsibleContent {
3502
+ background-color: var(--accent-a2);
3482
3503
  }
3483
3504
  :where(.ui-CollapsibleRoot:not(.r-variant-ghost)) .ui-CollapsibleContent {
3484
3505
  padding-inline: var(--collapsible-padding-x);
@@ -3594,9 +3615,20 @@ to {
3594
3615
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s;
3595
3616
  --toast-collapse-scale: calc(max(0, 1 - (var(--toast-index) * 0.06)));
3596
3617
  }
3618
+ .ui-ToastItem::after {
3619
+ content: "";
3620
+ position: absolute;
3621
+ left: 0px;
3622
+ height: calc(var(--toast-gap) + 1px);
3623
+ bottom: 100%;
3624
+ width: 100%;
3625
+ }
3597
3626
  .ui-ToastItem:where([data-swipe="move"]) {
3598
3627
  transition: none;
3599
3628
  }
3629
+ .ui-ToastItem:where([data-visible="false"]) {
3630
+ display: none;
3631
+ }
3600
3632
  :where(.ui-ToastViewport[data-x-position="left"]) .ui-ToastItem {
3601
3633
  left: 0;
3602
3634
  }
@@ -3638,6 +3670,7 @@ to {
3638
3670
  .ui-ToastItem:where([data-swipe-direction="bottom"]) {
3639
3671
  --toast-item-swipe-to-y: calc(100% + var(--toast-y-position))
3640
3672
  }
3673
+ .ui-ToastItem:where([data-state="closed"]),
3641
3674
  .ui-ToastItem:where([data-swipe="closed"]) {
3642
3675
  animation: ui-fade-out 100ms ease-in;
3643
3676
  }
package/components.d.ts CHANGED
@@ -1067,7 +1067,6 @@ sideOffset: number;
1067
1067
  }>;
1068
1068
 
1069
1069
  export declare interface PopoverPopupProps extends PopoverContentProps {
1070
- to?: string | HTMLElement;
1071
1070
  size?: '1' | '2';
1072
1071
  }
1073
1072
 
@@ -1396,6 +1395,7 @@ variant: "classic" | "outline" | "surface" | "soft";
1396
1395
 
1397
1396
  export declare interface TabsListProps {
1398
1397
  size?: '1' | '2';
1398
+ radius?: RadiusType;
1399
1399
  color?: ColorType;
1400
1400
  variant?: 'classic' | 'outline' | 'surface' | 'soft';
1401
1401
  highContrast?: boolean;
@@ -1461,6 +1461,7 @@ accentColor: ColorType;
1461
1461
  radius: RadiusType;
1462
1462
  grayColor: GrayColorType;
1463
1463
  scaling: ScalingType;
1464
+ panelBackground: "solid" | "translucent";
1464
1465
  hasBackground: boolean;
1465
1466
  as: AsTag | Component;
1466
1467
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
@@ -1472,6 +1473,7 @@ declare interface ThemeProviderContext {
1472
1473
  radius: Ref<RadiusType>;
1473
1474
  grayColor: Ref<GrayColorType>;
1474
1475
  scaling: Ref<ScalingType>;
1476
+ panelBackground: Ref<'solid' | 'translucent'>;
1475
1477
  hasBackground: Ref<boolean>;
1476
1478
  }
1477
1479
 
@@ -1480,6 +1482,7 @@ export declare interface ThemeProviderProps extends PrimitiveProps {
1480
1482
  radius?: RadiusType;
1481
1483
  grayColor?: GrayColorType;
1482
1484
  scaling?: ScalingType;
1485
+ panelBackground?: 'solid' | 'translucent';
1483
1486
  hasBackground?: boolean;
1484
1487
  }
1485
1488
 
package/components.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, toRefs, createBlock, openBlock, unref, withCtx, createVNode, renderSlot, markRaw, createElementBlock, createElementVNode, computed, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, mergeProps, mergeModels, useTemplateRef, useModel, withDirectives, isRef, vModelDynamic, vModelText, onMounted, normalizeStyle, normalizeProps, guardReactiveProps, Fragment, ref, watch, renderList, withModifiers, vModelRadio, effectScope, createStaticVNode, resolveDynamicComponent } from "vue";
2
- import { createContext, TooltipProvider, Primitive, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, injectDialogRootContext, useForwardExpose, DialogPortal, DialogOverlay, DialogContent, useForwardPropsEmits, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectTrigger, SelectValue, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, ComboboxRoot, injectComboboxRootContext as injectComboboxRootContext$1, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxViewport, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxEmpty, RadioGroupRoot, RadioGroupItem, TabsList, TabsIndicator, TabsTrigger, EditableRoot, EditableArea, EditablePreview, EditableInput, AccordionRoot, useId, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, ToastRoot, ToastTitle, ToastDescription, ToastAction, ToastProvider, ToastPortal, ToastViewport, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, ProgressRoot, ProgressIndicator } from "reka-ui";
2
+ import { createContext, TooltipProvider, Primitive, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, injectDialogRootContext, useForwardExpose, DialogPortal, DialogOverlay, DialogContent, useForwardPropsEmits, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectTrigger, SelectValue, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, ComboboxRoot, injectComboboxRootContext as injectComboboxRootContext$1, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxViewport, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxEmpty, RadioGroupRoot, RadioGroupItem, TabsList, TabsIndicator, TabsTrigger, EditableRoot, EditableArea, EditablePreview, EditableInput, AccordionRoot, useId, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, ToastRoot, ToastTitle, ToastDescription, ToastAction, ToastProvider, ToastPortal, ToastViewport, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, ProgressRoot, ProgressIndicator } from "reka-ui";
3
3
  import { AlertDialogAction, AlertDialogCancel, AlertDialogRoot, AlertDialogTrigger, CheckboxGroupRoot, ComboboxGroup, DialogClose, DialogRoot, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, PopoverClose, PopoverRoot, PopoverTrigger, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
4
4
  import { Icon } from "@iconify/vue";
5
5
  const [injectThemeContext, provideThemeContext] = createContext("ThemeProvider");
@@ -10,18 +10,20 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
10
10
  radius: { default: "medium" },
11
11
  grayColor: { default: "auto" },
12
12
  scaling: { default: "100%" },
13
+ panelBackground: { default: "translucent" },
13
14
  hasBackground: { type: Boolean, default: true },
14
15
  asChild: { type: Boolean },
15
16
  as: { default: "div" }
16
17
  },
17
18
  setup(__props) {
18
19
  const props = __props;
19
- const { accentColor, radius, grayColor, scaling, hasBackground } = toRefs(props);
20
+ const { accentColor, radius, grayColor, scaling, panelBackground, hasBackground } = toRefs(props);
20
21
  provideThemeContext({
21
22
  accentColor,
22
23
  radius,
23
24
  grayColor,
24
25
  scaling,
26
+ panelBackground,
25
27
  hasBackground
26
28
  });
27
29
  return (_ctx, _cache) => {
@@ -33,6 +35,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
33
35
  "data-gray-color": unref(grayColor),
34
36
  "data-radius": unref(radius),
35
37
  "data-scaling": unref(scaling),
38
+ "data-panel-background": unref(panelBackground),
36
39
  "data-has-background": unref(hasBackground),
37
40
  as: props.as,
38
41
  "as-child": props.asChild
@@ -41,7 +44,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
41
44
  renderSlot(_ctx.$slots, "default")
42
45
  ]),
43
46
  _: 3
44
- }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "data-has-background", "as", "as-child"])
47
+ }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "data-panel-background", "data-has-background", "as", "as-child"])
45
48
  ]),
46
49
  _: 3
47
50
  });
@@ -674,7 +677,6 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
674
677
  },
675
678
  __name: "PopoverPopup",
676
679
  props: {
677
- to: {},
678
680
  size: { default: "1" },
679
681
  forceMount: { type: Boolean },
680
682
  side: { default: "bottom" },
@@ -704,9 +706,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
704
706
  const emits = __emit;
705
707
  const forwarded = useForwardPropsEmitsWithout(props, emits, ["to", "size"]);
706
708
  return (_ctx, _cache) => {
707
- return openBlock(), createBlock(unref(PopoverPortal), {
708
- to: props.to
709
- }, {
709
+ return openBlock(), createBlock(unref(PopoverPortal), null, {
710
710
  default: withCtx(() => [
711
711
  createVNode(_sfc_main$S, null, {
712
712
  default: withCtx(() => [
@@ -723,7 +723,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
723
723
  })
724
724
  ]),
725
725
  _: 3
726
- }, 8, ["to"]);
726
+ });
727
727
  };
728
728
  }
729
729
  });
@@ -1316,12 +1316,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1316
1316
  _: 3
1317
1317
  }, 8, ["placeholder"])
1318
1318
  ]),
1319
- createVNode(unref(SelectIcon), { "as-child": "" }, {
1320
- default: withCtx(() => [
1321
- createVNode(unref(ChevronDownIcon), { class: "ui-SelectIcon" })
1322
- ]),
1323
- _: 1
1324
- })
1319
+ createVNode(unref(ChevronDownIcon), { class: "ui-SelectIcon" })
1325
1320
  ]),
1326
1321
  _: 3
1327
1322
  }, 8, ["class", "disabled", "data-accent-color", "data-radius"]);
@@ -2003,6 +1998,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2003
1998
  __name: "TabsList",
2004
1999
  props: {
2005
2000
  size: { default: "2" },
2001
+ radius: {},
2006
2002
  color: {},
2007
2003
  variant: { default: "outline" },
2008
2004
  highContrast: { type: Boolean }
@@ -2013,6 +2009,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2013
2009
  return (_ctx, _cache) => {
2014
2010
  return openBlock(), createBlock(unref(TabsList), {
2015
2011
  class: normalizeClass(["ui-TabList", unref(resetClass)]),
2012
+ "data-radius": props.radius,
2016
2013
  "data-accent-color": props.color
2017
2014
  }, {
2018
2015
  default: withCtx(() => [
@@ -2020,7 +2017,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2020
2017
  renderSlot(_ctx.$slots, "default")
2021
2018
  ]),
2022
2019
  _: 3
2023
- }, 8, ["class", "data-accent-color"]);
2020
+ }, 8, ["class", "data-radius", "data-accent-color"]);
2024
2021
  };
2025
2022
  }
2026
2023
  });
@@ -2765,6 +2762,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2765
2762
  class: "ui-ToastItem",
2766
2763
  duration: _ctx.message.duration,
2767
2764
  "data-expanded": paused.value,
2765
+ "data-visible": _ctx.index < 3,
2768
2766
  style: normalizeStyle(styleVars.value),
2769
2767
  "onUpdate:open": onOpenChange,
2770
2768
  onPause,
@@ -2819,7 +2817,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2819
2817
  }, 8, ["alt-text", "onClick"])) : createCommentVNode("", true)
2820
2818
  ]),
2821
2819
  _: 1
2822
- }, 8, ["duration", "data-expanded", "style"]);
2820
+ }, 8, ["duration", "data-expanded", "data-visible", "style"]);
2823
2821
  };
2824
2822
  }
2825
2823
  });
@@ -2839,7 +2837,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2839
2837
  setup(__props) {
2840
2838
  const props = __props;
2841
2839
  const forwarded = useForwardPropsWithout(props, ["position", "size"]);
2842
- const manager = useToastManager();
2840
+ const { messages } = useToastManager();
2843
2841
  const yPosition = computed(() => {
2844
2842
  return props.position.split("-")[0];
2845
2843
  });
@@ -2852,14 +2850,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2852
2850
  }
2853
2851
  return xPosition.value;
2854
2852
  });
2855
- const messages = computed(() => {
2856
- return manager.messages.value.slice(0, 3);
2857
- });
2858
2853
  return (_ctx, _cache) => {
2859
2854
  return openBlock(), createBlock(unref(ToastProvider), normalizeProps(guardReactiveProps({ ...unref(forwarded), swipeDirection: swipeDirection.value })), {
2860
2855
  default: withCtx(() => [
2861
2856
  renderSlot(_ctx.$slots, "default"),
2862
- (openBlock(true), createElementBlock(Fragment, null, renderList(messages.value, (msg, index) => {
2857
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(messages), (msg, index) => {
2863
2858
  return renderSlot(_ctx.$slots, "item", {
2864
2859
  key: msg.id,
2865
2860
  message: msg,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typlog/ui",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Themed components for Reka UI with Radix colors.",