@typlog/ui 0.13.0 → 0.13.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.
Files changed (3) hide show
  1. package/addons.js +2 -2
  2. package/components.js +42 -64
  3. package/package.json +1 -1
package/addons.js CHANGED
@@ -386,7 +386,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
386
386
  page: page.value,
387
387
  "onUpdate:page": _cache[4] || (_cache[4] = ($event) => page.value = $event),
388
388
  total: allIcons.value.length,
389
- "items-per-page": _ctx.perpage
389
+ "items-per-page": __props.perpage
390
390
  }, null, 8, ["page", "total", "items-per-page"])
391
391
  ])) : createCommentVNode("", true)
392
392
  ]);
@@ -480,7 +480,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
480
480
  return openBlock(), createElementBlock("div", {
481
481
  ref_key: "element",
482
482
  ref: element,
483
- class: normalizeClass(["ui-Turnstile", `r-size-${_ctx.size}`])
483
+ class: normalizeClass(["ui-Turnstile", `r-size-${__props.size}`])
484
484
  }, null, 2);
485
485
  };
486
486
  }
package/components.js CHANGED
@@ -305,9 +305,7 @@ function render$d(_ctx, _cache) {
305
305
  return openBlock(), createElementBlock("svg", _hoisted_1$z, [..._cache[0] || (_cache[0] = [
306
306
  createElementVNode("path", {
307
307
  fill: "currentColor",
308
- "fill-rule": "evenodd",
309
- d: "M11.782 4.032a.575.575 0 1 0-.813-.814L7.5 6.687L4.032 3.218a.575.575 0 0 0-.814.814L6.687 7.5l-3.469 3.468a.575.575 0 0 0 .814.814L7.5 8.313l3.469 3.469a.575.575 0 0 0 .813-.814L8.313 7.5z",
310
- "clip-rule": "evenodd"
308
+ d: "M10.969 3.219a.574.574 0 1 1 .812.812L8.313 7.5l3.468 3.469l.074.09a.575.575 0 0 1-.796.796l-.09-.074L7.5 8.312l-3.469 3.47a.574.574 0 1 1-.812-.813L6.688 7.5l-3.47-3.469l-.073-.09a.575.575 0 0 1 .796-.797l.09.075L7.5 6.687z"
311
309
  }, null, -1)
312
310
  ])]);
313
311
  }
@@ -471,17 +469,14 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
471
469
  emits: ["update:open"],
472
470
  setup(__props, { emit: __emit }) {
473
471
  const props = __props;
474
- const emits = __emit;
475
472
  return (_ctx, _cache) => {
476
473
  return openBlock(), createBlock(unref(TooltipRoot), {
477
- open: props.open,
478
474
  "default-open": props.defaultOpen,
479
475
  "delay-duration": props.delayDuration,
480
476
  "disable-hoverable-content": props.disableHoverableContent,
481
477
  "disable-closing-trigger": props.disableClosingTrigger,
482
478
  disabled: props.disabled,
483
- "ignore-non-keyboard-focus": props.ignoreNonKeyboardFocus,
484
- "onUpdate:open": _cache[0] || (_cache[0] = ($event) => emits("update:open", $event))
479
+ "ignore-non-keyboard-focus": props.ignoreNonKeyboardFocus
485
480
  }, {
486
481
  default: withCtx(() => [
487
482
  createVNode(unref(TooltipTrigger), mergeProps({
@@ -532,7 +527,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
532
527
  })
533
528
  ]),
534
529
  _: 3
535
- }, 8, ["open", "default-open", "delay-duration", "disable-hoverable-content", "disable-closing-trigger", "disabled", "ignore-non-keyboard-focus"]);
530
+ }, 8, ["default-open", "delay-duration", "disable-hoverable-content", "disable-closing-trigger", "disabled", "ignore-non-keyboard-focus"]);
536
531
  };
537
532
  }
538
533
  });
@@ -1028,9 +1023,7 @@ function render$c(_ctx, _cache) {
1028
1023
  return openBlock(), createElementBlock("svg", _hoisted_1$s, [..._cache[0] || (_cache[0] = [
1029
1024
  createElementVNode("path", {
1030
1025
  fill: "currentColor",
1031
- "fill-rule": "evenodd",
1032
- d: "M4.182 6.182a.45.45 0 0 1 .636 0L7.5 8.864l2.682-2.682a.45.45 0 0 1 .636.636l-3 3a.45.45 0 0 1-.636 0l-3-3a.45.45 0 0 1 0-.636",
1033
- "clip-rule": "evenodd"
1026
+ d: "M7.5 9.95a.45.45 0 0 0 .319-.132l3-3a.45.45 0 0 0-.637-.637L7.5 8.863L4.82 6.181l-.07-.057a.451.451 0 0 0-.625.624l.058.07l3 3a.45.45 0 0 0 .318.132"
1034
1027
  }, null, -1)
1035
1028
  ])]);
1036
1029
  }
@@ -1645,9 +1638,7 @@ function render$b(_ctx, _cache) {
1645
1638
  return openBlock(), createElementBlock("svg", _hoisted_1$n, [..._cache[0] || (_cache[0] = [
1646
1639
  createElementVNode("path", {
1647
1640
  fill: "currentColor",
1648
- "fill-rule": "evenodd",
1649
- d: "M3.135 6.158a.5.5 0 0 1 .707-.023L7.5 9.565l3.658-3.43a.5.5 0 0 1 .684.73l-4 3.75a.5.5 0 0 1-.684 0l-4-3.75a.5.5 0 0 1-.023-.707",
1650
- "clip-rule": "evenodd"
1641
+ d: "M11.158 6.135a.5.5 0 0 1 .684.73l-4 3.75a.5.5 0 0 1-.684 0l-4-3.75l-.066-.077a.5.5 0 0 1 .67-.715l.08.062L7.5 9.564z"
1651
1642
  }, null, -1)
1652
1643
  ])]);
1653
1644
  }
@@ -1712,9 +1703,7 @@ function render$a(_ctx, _cache) {
1712
1703
  return openBlock(), createElementBlock("svg", _hoisted_1$l, [..._cache[0] || (_cache[0] = [
1713
1704
  createElementVNode("path", {
1714
1705
  fill: "currentColor",
1715
- "fill-rule": "evenodd",
1716
- d: "M11.467 3.727c.289.189.37.576.181.865l-4.25 6.5a.625.625 0 0 1-.944.12l-2.75-2.5a.625.625 0 0 1 .841-.925l2.208 2.007l3.849-5.886a.625.625 0 0 1 .865-.181",
1717
- "clip-rule": "evenodd"
1706
+ d: "M10.602 3.908a.626.626 0 0 1 1.046.684l-4.25 6.5a.626.626 0 0 1-.944.12l-2.75-2.5l-.084-.094a.626.626 0 0 1 .823-.906l.103.075l2.207 2.006z"
1718
1707
  }, null, -1)
1719
1708
  ])]);
1720
1709
  }
@@ -1900,8 +1889,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1900
1889
  }, { deep: true });
1901
1890
  return (_ctx, _cache) => {
1902
1891
  return openBlock(), createBlock(unref(ComboboxAnchor), {
1903
- class: normalizeClass(["ui-ComboboxField", `r-variant-${_ctx.variant}`]),
1904
- "data-radius": _ctx.radius,
1892
+ class: normalizeClass(["ui-ComboboxField", `r-variant-${__props.variant}`]),
1893
+ "data-radius": __props.radius,
1905
1894
  "data-multiple": unref(context).multiple.value || void 0
1906
1895
  }, {
1907
1896
  default: withCtx(() => [
@@ -2569,9 +2558,7 @@ function render$9(_ctx, _cache) {
2569
2558
  return openBlock(), createElementBlock("svg", _hoisted_1$f, [..._cache[0] || (_cache[0] = [
2570
2559
  createElementVNode("path", {
2571
2560
  fill: "currentColor",
2572
- "fill-rule": "evenodd",
2573
- d: "M6.158 3.135a.5.5 0 0 1 .707.023l3.75 4a.5.5 0 0 1 0 .684l-3.75 4a.5.5 0 1 1-.73-.684L9.566 7.5l-3.43-3.658a.5.5 0 0 1 .023-.707",
2574
- "clip-rule": "evenodd"
2561
+ d: "M6.159 11.865a.5.5 0 0 0 .707-.023l3.75-4a.5.5 0 0 0 0-.684l-3.75-4l-.077-.066a.5.5 0 0 0-.715.67l.061.08L9.565 7.5l-3.43 3.658a.5.5 0 0 0 .024.707"
2575
2562
  }, null, -1)
2576
2563
  ])]);
2577
2564
  }
@@ -2589,11 +2576,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2589
2576
  setup(__props) {
2590
2577
  return (_ctx, _cache) => {
2591
2578
  return openBlock(), createElementBlock("div", _hoisted_1$e, [
2592
- _ctx.variant == "chevron" ? (openBlock(), createBlock(unref(NextIcon), {
2579
+ __props.variant == "chevron" ? (openBlock(), createBlock(unref(NextIcon), {
2593
2580
  key: 0,
2594
2581
  class: "ui-AccordionIndicator-chevron"
2595
2582
  })) : createCommentVNode("", true),
2596
- _ctx.variant == "plus" ? (openBlock(), createElementBlock("div", _hoisted_2$2, [..._cache[0] || (_cache[0] = [
2583
+ __props.variant == "plus" ? (openBlock(), createElementBlock("div", _hoisted_2$2, [..._cache[0] || (_cache[0] = [
2597
2584
  createElementVNode("span", { class: "ui-AccordionIndicator-plus-1" }, null, -1),
2598
2585
  createElementVNode("span", { class: "ui-AccordionIndicator-plus-2" }, null, -1)
2599
2586
  ])])) : createCommentVNode("", true)
@@ -2661,8 +2648,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2661
2648
  return openBlock(), createBlock(unref(CollapsibleRoot), mergeProps({
2662
2649
  class: ["ui-CollapsibleRoot", unref(resetClass)]
2663
2650
  }, unref(forwarded), {
2664
- "data-accent-color": _ctx.color,
2665
- "data-radius": _ctx.radius
2651
+ "data-accent-color": __props.color,
2652
+ "data-radius": __props.radius
2666
2653
  }), {
2667
2654
  default: withCtx(() => [
2668
2655
  renderSlot(_ctx.$slots, "default")
@@ -2697,9 +2684,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2697
2684
  createElementVNode("span", _hoisted_1$c, [
2698
2685
  renderSlot(_ctx.$slots, "default")
2699
2686
  ]),
2700
- _ctx.indicator !== "none" ? (openBlock(), createBlock(_sfc_main$b, {
2687
+ __props.indicator !== "none" ? (openBlock(), createBlock(_sfc_main$b, {
2701
2688
  key: 0,
2702
- "data-side": _ctx.indicator
2689
+ "data-side": __props.indicator
2703
2690
  }, null, 8, ["data-side"])) : createCommentVNode("", true)
2704
2691
  ]),
2705
2692
  _: 3
@@ -2736,9 +2723,7 @@ function render$8(_ctx, _cache) {
2736
2723
  return openBlock(), createElementBlock("svg", _hoisted_1$b, [..._cache[0] || (_cache[0] = [
2737
2724
  createElementVNode("path", {
2738
2725
  fill: "currentColor",
2739
- "fill-rule": "evenodd",
2740
- d: "M6.854 3.854a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L3.207 7.5zm6 0a.5.5 0 0 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L9.207 7.5z",
2741
- "clip-rule": "evenodd"
2726
+ d: "M6.225 3.082a.5.5 0 0 1 .693.694l-.065.078L3.207 7.5l3.646 3.647l.065.078a.5.5 0 0 1-.693.693l-.079-.064l-4-4a.5.5 0 0 1 0-.707l4-4zm6 0a.5.5 0 0 1 .693.694l-.064.078L9.207 7.5l3.646 3.647l.065.078a.5.5 0 0 1-.693.693l-.079-.064l-4-4a.5.5 0 0 1 0-.707l4-4z"
2742
2727
  }, null, -1)
2743
2728
  ])]);
2744
2729
  }
@@ -2752,9 +2737,7 @@ function render$7(_ctx, _cache) {
2752
2737
  return openBlock(), createElementBlock("svg", _hoisted_1$a, [..._cache[0] || (_cache[0] = [
2753
2738
  createElementVNode("path", {
2754
2739
  fill: "currentColor",
2755
- "fill-rule": "evenodd",
2756
- d: "M2.146 11.146a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 1 0-.708.708L5.793 7.5zm6 0a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 1 0-.708.708L11.793 7.5z",
2757
- "clip-rule": "evenodd"
2740
+ d: "M2.147 3.147a.5.5 0 0 1 .629-.065l.078.065l4 4a.5.5 0 0 1 0 .707l-4 4l-.078.064a.5.5 0 0 1-.694-.693l.065-.078L5.793 7.5L2.147 3.854l-.065-.078a.5.5 0 0 1 .065-.63m6 0a.5.5 0 0 1 .629-.065l.078.065l4 4a.5.5 0 0 1 0 .707l-4 4l-.078.064a.5.5 0 0 1-.694-.693l.065-.078L11.793 7.5L8.147 3.854l-.065-.078a.5.5 0 0 1 .065-.63"
2758
2741
  }, null, -1)
2759
2742
  ])]);
2760
2743
  }
@@ -2768,9 +2751,7 @@ function render$6(_ctx, _cache) {
2768
2751
  return openBlock(), createElementBlock("svg", _hoisted_1$9, [..._cache[0] || (_cache[0] = [
2769
2752
  createElementVNode("path", {
2770
2753
  fill: "currentColor",
2771
- "fill-rule": "evenodd",
2772
- d: "M8.842 3.135a.5.5 0 0 1 .023.707L5.435 7.5l3.43 3.658a.5.5 0 0 1-.73.684l-3.75-4a.5.5 0 0 1 0-.684l3.75-4a.5.5 0 0 1 .707-.023",
2773
- "clip-rule": "evenodd"
2754
+ d: "M8.212 3.092a.5.5 0 0 1 .715.67l-.062.08L5.435 7.5l3.43 3.658l.062.08a.501.501 0 0 1-.715.67l-.077-.066l-3.75-4a.5.5 0 0 1 0-.684l3.75-4z"
2774
2755
  }, null, -1)
2775
2756
  ])]);
2776
2757
  }
@@ -2784,9 +2765,7 @@ function render$5(_ctx, _cache) {
2784
2765
  return openBlock(), createElementBlock("svg", _hoisted_1$8, [..._cache[0] || (_cache[0] = [
2785
2766
  createElementVNode("path", {
2786
2767
  fill: "currentColor",
2787
- "fill-rule": "evenodd",
2788
- d: "M3.625 7.5a1.125 1.125 0 1 1-2.25 0a1.125 1.125 0 0 1 2.25 0m5 0a1.125 1.125 0 1 1-2.25 0a1.125 1.125 0 0 1 2.25 0M12.5 8.625a1.125 1.125 0 1 0 0-2.25a1.125 1.125 0 0 0 0 2.25",
2789
- "clip-rule": "evenodd"
2768
+ d: "M2.5 6.375a1.125 1.125 0 1 1 0 2.25a1.125 1.125 0 0 1 0-2.25m5 0a1.125 1.125 0 1 1 0 2.25a1.125 1.125 0 0 1 0-2.25m5 0a1.125 1.125 0 1 1 0 2.25a1.125 1.125 0 0 1 0-2.25"
2790
2769
  }, null, -1)
2791
2770
  ])]);
2792
2771
  }
@@ -2817,15 +2796,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2817
2796
  class: "ui-PaginationEllipsis ui-Button",
2818
2797
  as: "button",
2819
2798
  type: "button",
2820
- "aria-label": ellipsisPage.value,
2821
- value: `Page ${ellipsisPage.value}`,
2799
+ value: ellipsisPage.value,
2800
+ "aria-label": `Page ${ellipsisPage.value}`,
2822
2801
  onClick: withModifiers(onSelect, ["prevent"])
2823
2802
  }, {
2824
2803
  default: withCtx(() => [
2825
2804
  createVNode(unref(EllipsisIcon))
2826
2805
  ]),
2827
2806
  _: 1
2828
- }, 8, ["aria-label", "value"]);
2807
+ }, 8, ["value", "aria-label"]);
2829
2808
  };
2830
2809
  }
2831
2810
  });
@@ -2865,7 +2844,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2865
2844
  return (_ctx, _cache) => {
2866
2845
  return openBlock(), createBlock(unref(PaginationRoot), mergeProps(unref(forwarded), {
2867
2846
  class: ["ui-PaginationRoot", unref(resetClass)],
2868
- "data-accent-color": _ctx.color
2847
+ "data-accent-color": __props.color
2869
2848
  }), {
2870
2849
  default: withCtx(() => [
2871
2850
  createVNode(unref(PaginationList), { class: "ui-PaginationList" }, {
@@ -2935,7 +2914,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2935
2914
  };
2936
2915
  }
2937
2916
  });
2938
- // @__NO_SIDE_EFFECTS__
2939
2917
  function createGlobalState(stateFactory) {
2940
2918
  let initialized = false;
2941
2919
  let state;
@@ -2950,7 +2928,7 @@ function createGlobalState(stateFactory) {
2950
2928
  }
2951
2929
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
2952
2930
  let count = 0;
2953
- const useToastManager = /* @__PURE__ */ createGlobalState(() => {
2931
+ const useToastManager = createGlobalState(() => {
2954
2932
  const messages = ref([]);
2955
2933
  const add = (msg, category) => {
2956
2934
  const id = count++;
@@ -3156,18 +3134,18 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3156
3134
  return openBlock(), createBlock(unref(ToastRoot), {
3157
3135
  ref_key: "toastRef",
3158
3136
  ref: toastRef,
3159
- key: _ctx.message.id,
3137
+ key: __props.message.id,
3160
3138
  class: "ui-ToastItem",
3161
- duration: _ctx.message.duration,
3139
+ duration: __props.message.duration,
3162
3140
  "data-expanded": paused.value,
3163
- "data-visible": _ctx.index < 3,
3141
+ "data-visible": __props.index < 3,
3164
3142
  style: normalizeStyle(styleVars.value),
3165
3143
  "onUpdate:open": onOpenChange,
3166
3144
  onPause,
3167
3145
  onResume
3168
3146
  }, {
3169
3147
  default: withCtx(() => [
3170
- _ctx.message.category ? (openBlock(), createElementBlock("div", {
3148
+ __props.message.category ? (openBlock(), createElementBlock("div", {
3171
3149
  key: 0,
3172
3150
  class: "ui-ToastIcon",
3173
3151
  "data-accent-color": categoryColor.value
@@ -3177,36 +3155,36 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3177
3155
  createElementVNode("div", _hoisted_2$1, [
3178
3156
  createVNode(unref(ToastTitle), { class: "ui-ToastTitle" }, {
3179
3157
  default: withCtx(() => [
3180
- createTextVNode(toDisplayString(_ctx.message.title), 1)
3158
+ createTextVNode(toDisplayString(__props.message.title), 1)
3181
3159
  ]),
3182
3160
  _: 1
3183
3161
  }),
3184
- _ctx.message.description ? (openBlock(), createBlock(unref(ToastDescription), {
3162
+ __props.message.description ? (openBlock(), createBlock(unref(ToastDescription), {
3185
3163
  key: 0,
3186
3164
  class: "ui-ToastDescription"
3187
3165
  }, {
3188
3166
  default: withCtx(() => [
3189
- createTextVNode(toDisplayString(_ctx.message.description), 1)
3167
+ createTextVNode(toDisplayString(__props.message.description), 1)
3190
3168
  ]),
3191
3169
  _: 1
3192
3170
  })) : createCommentVNode("", true)
3193
3171
  ]),
3194
- _ctx.message.action ? (openBlock(), createBlock(unref(ToastAction), {
3172
+ __props.message.action ? (openBlock(), createBlock(unref(ToastAction), {
3195
3173
  key: 1,
3196
3174
  class: "ui-ToastAction",
3197
- "alt-text": _ctx.message.action.altText || _ctx.message.action.label,
3175
+ "alt-text": __props.message.action.altText || __props.message.action.label,
3198
3176
  "as-child": "",
3199
- onClick: _ctx.message.action.onClick
3177
+ onClick: __props.message.action.onClick
3200
3178
  }, {
3201
3179
  default: withCtx(() => [
3202
3180
  createVNode(_sfc_main$13, {
3203
- variant: _ctx.message.action.variant || "soft",
3204
- radius: _ctx.message.action.radius,
3205
- size: _ctx.message.action.size || "1",
3206
- color: _ctx.message.action.color
3181
+ variant: __props.message.action.variant || "soft",
3182
+ radius: __props.message.action.radius,
3183
+ size: __props.message.action.size || "1",
3184
+ color: __props.message.action.color
3207
3185
  }, {
3208
3186
  default: withCtx(() => [
3209
- createTextVNode(toDisplayString(_ctx.message.action.label), 1)
3187
+ createTextVNode(toDisplayString(__props.message.action.label), 1)
3210
3188
  ]),
3211
3189
  _: 1
3212
3190
  }, 8, ["variant", "radius", "size", "color"])
@@ -3275,7 +3253,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3275
3253
  createVNode(_sfc_main$$, null, {
3276
3254
  default: withCtx(() => [
3277
3255
  createVNode(unref(ToastViewport), mergeProps({ class: "ui-ToastViewport" }, _ctx.$attrs, {
3278
- class: `r-size-${_ctx.size}`,
3256
+ class: `r-size-${__props.size}`,
3279
3257
  "data-x-position": xPosition.value,
3280
3258
  "data-y-position": yPosition.value
3281
3259
  }), null, 16, ["class", "data-x-position", "data-y-position"])
@@ -3430,11 +3408,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3430
3408
  const props = __props;
3431
3409
  return (_ctx, _cache) => {
3432
3410
  return openBlock(), createBlock(unref(Primitive), {
3433
- class: normalizeClass(["ui-SavingIndicator", `r-size-${_ctx.size}`]),
3411
+ class: normalizeClass(["ui-SavingIndicator", `r-size-${__props.size}`]),
3434
3412
  "data-status": props.status
3435
3413
  }, {
3436
3414
  default: withCtx(() => [
3437
- renderSlot(_ctx.$slots, "default", { status: _ctx.status }, () => [
3415
+ renderSlot(_ctx.$slots, "default", { status: __props.status }, () => [
3438
3416
  props.status === "saving" ? (openBlock(), createBlock(SpinnerIcon, { key: 0 })) : props.status === "saved" ? (openBlock(), createBlock(unref(CheckIcon), { key: 1 })) : createCommentVNode("", true)
3439
3417
  ])
3440
3418
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typlog/ui",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Themed components for Reka UI with Radix colors.",