straw-ui-vue 0.1.33 → 0.1.34

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.
@@ -1,4 +1,4 @@
1
- import { r as e } from "./dist-BkEt4gsd.js";
1
+ import { r as e } from "./dist-QodMTiuA.js";
2
2
  //#region src/components/st-button/useButtonGroupState.ts
3
3
  var [t, n] = e((e) => e);
4
4
  //#endregion
@@ -28,10 +28,10 @@ function _(e, t) {
28
28
  }
29
29
  var v = typeof window < "u" && typeof document < "u";
30
30
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
31
- var y = Object.prototype.toString, b = (e) => y.call(e) === "[object Object]", x = (e, t, n) => Math.min(n, Math.max(t, e)), S = () => {}, C = /* @__PURE__ */ w();
31
+ var y = Object.prototype.toString, b = (e) => y.call(e) === "[object Object]", x = (e, t, n) => Math.min(n, Math.max(t, e)), S = () => {}, C = /* #__PURE__ */ w();
32
32
  function w() {
33
33
  var e, t;
34
- return v && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
34
+ return v && !!((e = window) != null && (e = e.navigator) != null && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
35
35
  }
36
36
  function T(e) {
37
37
  return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, p as o, s, u as c } from "./dist-BkEt4gsd.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, p as o, s, u as c } from "./dist-QodMTiuA.js";
2
2
  import { computed as l, createBlock as u, createSlots as d, defineAsyncComponent as f, defineComponent as p, getCurrentInstance as m, hasInjectionContext as h, normalizeClass as g, normalizeStyle as _, onMounted as v, openBlock as y, renderSlot as b, shallowRef as x, toValue as S, unref as C, useAttrs as w, useSlots as T, watchEffect as E, withCtx as D } from "vue";
3
3
  //#region \0rolldown/runtime.js
4
4
  var O = Object.defineProperty, k = (e, t) => {
@@ -121,7 +121,9 @@ function z(e, t = {}) {
121
121
  let { window: n = A, ssrWidth: i = /* @__PURE__ */ R() } = t, a = /* @__PURE__ */ I(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = x(typeof i == "number"), s = x(), c = x(!1);
122
122
  return E(() => {
123
123
  if (o.value) {
124
- o.value = !a.value, c.value = S(e).split(",").some((e) => {
124
+ o.value = !a.value;
125
+ let t = S(e).split(",");
126
+ c.value = t.some((e) => {
125
127
  let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), o = !!(n || a);
126
128
  return n && o && (o = i >= r(n[1])), a && o && (o = i <= r(a[1])), t ? !o : o;
127
129
  });
package/dist/straw-ui.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.st-input-group-input[data-v-cb924873]::-webkit-credentials-auto-fill-button{visibility:hidden;pointer-events:none;position:absolute;right:0}.st-input-group-input[data-v-cb924873]::-webkit-caps-lock-indicator{visibility:hidden}.st-input-group-input[data-v-cb924873]::-ms-reveal{display:none}.st-color-picker-panel[data-v-ea847367]{background-color:var(--color-background);border-radius:6px;width:240px;padding:12px;box-shadow:0 2px 8px #00000026}.st-color-picker-panel__saturation[data-v-ea847367]{cursor:crosshair;border-radius:4px;width:100%;height:160px;margin-bottom:12px;position:relative;overflow:hidden}.st-color-picker-panel__saturation-bg[data-v-ea847367]{position:absolute;inset:0}.st-color-picker-panel__saturation-white[data-v-ea847367]{background:linear-gradient(90deg,#fff,#0000);position:absolute;inset:0}.st-color-picker-panel__saturation-black[data-v-ea847367]{background:linear-gradient(#0000,#000);position:absolute;inset:0}.st-color-picker-panel__cursor[data-v-ea847367]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d,inset 0 0 0 1px #0000004d}.st-color-picker-panel__hue[data-v-ea847367]{margin-bottom:12px}.st-color-picker-panel__hue-bar[data-v-ea847367]{cursor:pointer;background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);border-radius:4px;width:100%;height:12px;position:relative}.st-color-picker-panel__hue-thumb[data-v-ea847367]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d}.st-color-picker-panel__alpha[data-v-ea847367]{margin-bottom:12px}.st-color-picker-panel__alpha-bar[data-v-ea847367]{cursor:pointer;background-image:linear-gradient(45deg,silver 25%,#0000 25%),linear-gradient(-45deg,silver 25%,#0000 25%),linear-gradient(45deg,#0000 75%,silver 75%),linear-gradient(-45deg,#0000 75%,silver 75%);background-position:0 0,0 4px,4px -4px,-4px 0;background-size:8px 8px;border-radius:4px;width:100%;height:12px;position:relative}.st-color-picker-panel__alpha-bg[data-v-ea847367]{border-radius:4px;position:absolute;inset:0}.st-color-picker-panel__alpha-thumb[data-v-ea847367]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d}.st-color-picker-panel__input-group[data-v-ea847367]{gap:8px;margin-bottom:12px;display:flex}.st-color-picker-panel__input-item[data-v-ea847367]{flex-direction:column;flex:1;gap:4px;display:flex}.st-color-picker-panel__input-label[data-v-ea847367]{color:var(--color-muted-foreground);text-transform:uppercase;font-size:11px}.st-color-picker-panel__input[data-v-ea847367]{width:100%;height:28px;color:var(--color-foreground);background-color:var(--color-background);border:1px solid var(--color-border);-moz-appearance:textfield;border-radius:4px;outline:none;padding:0 6px;font-size:12px;transition:border-color .2s}.st-color-picker-panel__input[data-v-ea847367]:focus{border-color:var(--color-primary)}.st-color-picker-panel__input[data-v-ea847367]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.st-color-picker-panel__input[data-v-ea847367]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.st-color-picker-panel__presets[data-v-ea847367]{flex-wrap:wrap;gap:6px;display:flex}.st-color-picker-panel__preset-item[data-v-ea847367]{cursor:pointer;border:1px solid var(--color-border);border-radius:3px;width:18px;height:18px;transition:transform .15s,box-shadow .15s}.st-color-picker-panel__preset-item[data-v-ea847367]:hover{transform:scale(1.15);box-shadow:0 0 0 2px #0000001a}.st-color-picker[data-v-c0c10953]{position:relative}.st-color-picker--disabled[data-v-c0c10953]{opacity:.5;cursor:not-allowed}.st-color-picker--focused .st-color-picker__preview[data-v-c0c10953]{box-shadow:0 0 0 2px var(--color-primary)}.st-color-picker__preview[data-v-c0c10953]{border:1px solid var(--color-border);border-radius:4px;width:20px;height:20px;transition:box-shadow .2s}.st-color-picker__preview--empty[data-v-c0c10953]{background-image:linear-gradient(45deg,silver 25%,#0000 25%),linear-gradient(-45deg,silver 25%,#0000 25%),linear-gradient(45deg,#0000 75%,silver 75%),linear-gradient(-45deg,#0000 75%,silver 75%);background-position:0 0,0 4px,4px -4px,-4px 0;background-size:8px 8px}.st-color-picker__arrow[data-v-c0c10953]{color:var(--color-muted-foreground)}.st-date-picker-panel[data-v-1c1adcae]{flex-direction:column;min-width:280px;display:flex}.st-date-picker-panel--range[data-v-1c1adcae]{flex-direction:row;min-width:560px}.st-date-picker-panel--range .st-date-picker-panel__divider[data-v-1c1adcae]{background-color:var(--border);width:1px;margin:0 8px}.st-date-picker-panel--range>div[data-v-1c1adcae]:not(.st-date-picker-panel__divider){flex:1;min-width:270px}.st-date-picker-panel__header[data-v-1c1adcae]{justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:8px;display:flex}.st-date-picker-panel__nav-btn[data-v-1c1adcae]{width:28px;height:28px;color:var(--foreground);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;transition:all .2s;display:flex}.st-date-picker-panel__nav-btn[data-v-1c1adcae]:hover{background-color:var(--accent);color:var(--accent-foreground)}.st-date-picker-panel__title[data-v-1c1adcae]{color:var(--foreground);font-size:14px;font-weight:500}.st-date-picker-panel__weekdays[data-v-1c1adcae]{margin-bottom:8px;display:flex}.st-date-picker-panel__weekday[data-v-1c1adcae]{text-align:center;color:var(--muted-foreground);flex:1;font-size:12px}.st-date-picker-panel__body[data-v-1c1adcae]{flex-wrap:wrap;display:flex}.st-date-picker-panel__cell[data-v-1c1adcae]{width:14.2857%;color:var(--foreground);background:0 0;border:none}.st-date-picker-panel__cell--other-month[data-v-1c1adcae]{color:var(--muted-foreground)}.st-date-picker-panel__cell--today[data-v-1c1adcae]{border:1px solid var(--primary)}.st-date-picker-panel__cell--selected[data-v-1c1adcae]{background-color:var(--primary);color:var(--primary-foreground)}.st-date-picker-panel__cell--in-range[data-v-1c1adcae]{background-color:var(--primary-hover);color:var(--primary-foreground);border-radius:0}.st-date-picker-panel__cell--range-start[data-v-1c1adcae]{border-radius:4px 0 0 4px}.st-date-picker-panel__cell--range-end[data-v-1c1adcae]{border-radius:0 4px 4px 0}.st-date-picker-panel__cell--disabled[data-v-1c1adcae]{color:var(--muted-foreground);cursor:not-allowed;opacity:.5}.st-date-picker-panel__cell[data-v-1c1adcae]:hover:not(.st-date-picker-panel__cell--disabled):not(.st-date-picker-panel__cell--selected):not(.st-date-picker-panel__cell--in-range){background-color:var(--accent);color:var(--accent-foreground)}.st-date-picker--focused .st-date-picker__icon[data-v-c2feccda]{color:var(--primary)}.st-date-picker__icon[data-v-c2feccda]{color:var(--foreground)}.st-time-picker-panel[data-v-b1668901]{background-color:var(--color-background);border-radius:6px;width:220px;box-shadow:0 2px 8px #00000026}.st-time-picker-panel--disabled[data-v-b1668901]{opacity:.5;cursor:not-allowed}.st-time-picker-panel__columns[data-v-b1668901]{gap:8px;padding:8px 12px;display:flex}.st-time-picker-panel__column[data-v-b1668901]{flex-direction:column;flex:1;display:flex}.st-time-picker-panel__header[data-v-b1668901]{text-align:center;color:var(--color-muted-foreground);border-bottom:1px solid var(--color-border);margin-bottom:4px;padding:4px 0;font-size:12px}.st-time-picker-panel__list[data-v-b1668901]{height:192px}.st-time-picker-panel__item[data-v-b1668901]{text-align:center;height:32px;color:var(--color-foreground);cursor:pointer;border-radius:4px;font-size:14px;line-height:32px;transition:all .15s}.st-time-picker-panel__item[data-v-b1668901]:hover:not(.st-time-picker-panel__item--disabled):not(.st-time-picker-panel__item--selected){background-color:var(--color-muted)}.st-time-picker-panel__item--selected[data-v-b1668901]{background-color:var(--color-primary);color:var(--color-primary-foreground);font-weight:500}.st-time-picker-panel__item--disabled[data-v-b1668901]{color:var(--color-muted-foreground);cursor:not-allowed;opacity:.5}.st-time-picker-panel__footer[data-v-b1668901]{border-top:1px solid var(--color-border);justify-content:flex-end;gap:8px;padding:8px 12px;display:flex}.st-time-picker-panel__btn[data-v-b1668901]{cursor:pointer;border:none;border-radius:4px;padding:6px 16px;font-size:13px;transition:all .15s}.st-time-picker-panel__btn--cancel[data-v-b1668901]{color:var(--color-muted-foreground);background-color:#0000}.st-time-picker-panel__btn--cancel[data-v-b1668901]:hover{color:var(--color-foreground)}.st-time-picker-panel__btn--confirm[data-v-b1668901]{background-color:var(--color-primary);color:var(--color-primary-foreground)}.st-time-picker-panel__btn--confirm[data-v-b1668901]:hover{opacity:.9}.st-datetime-picker-panel[data-v-7f8e3c9f]{padding:12px;display:flex}.st-datetime-picker-panel--range[data-v-7f8e3c9f]{flex-direction:row;gap:16px}.st-datetime-picker-panel__range-panel[data-v-7f8e3c9f]{flex-direction:column;gap:8px;display:flex}.st-datetime-picker-panel__date-section[data-v-7f8e3c9f]{flex-direction:column;min-width:280px;display:flex}.st-datetime-picker-panel__header[data-v-7f8e3c9f]{justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:8px;display:flex}.st-datetime-picker-panel__nav-btn[data-v-7f8e3c9f]{width:28px;height:28px;color:var(--foreground);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;transition:all .2s;display:flex}.st-datetime-picker-panel__nav-btn[data-v-7f8e3c9f]:hover{background-color:var(--accent);color:var(--accent-foreground)}.st-datetime-picker-panel__title[data-v-7f8e3c9f]{color:var(--foreground);font-size:14px;font-weight:500}.st-datetime-picker-panel__weekdays[data-v-7f8e3c9f]{margin-bottom:8px;display:flex}.st-datetime-picker-panel__weekday[data-v-7f8e3c9f]{text-align:center;color:var(--muted-foreground);flex:1;font-size:12px}.st-datetime-picker-panel__body[data-v-7f8e3c9f]{flex-wrap:wrap;display:flex}.st-datetime-picker-panel__cell[data-v-7f8e3c9f]{width:14.2857%;color:var(--foreground);background:0 0;border:none}.st-datetime-picker-panel__cell--other-month[data-v-7f8e3c9f]{color:var(--muted-foreground)}.st-datetime-picker-panel__cell--today[data-v-7f8e3c9f]{border:1px solid var(--primary)}.st-datetime-picker-panel__cell--selected[data-v-7f8e3c9f]{background-color:var(--primary);color:var(--primary-foreground)}.st-datetime-picker-panel__cell--in-range[data-v-7f8e3c9f]{background-color:var(--primary-hover);color:var(--primary-foreground);border-radius:0}.st-datetime-picker-panel__cell--range-start[data-v-7f8e3c9f]{background-color:var(--primary);color:var(--primary-foreground);border-radius:4px 0 0 4px}.st-datetime-picker-panel__cell--range-end[data-v-7f8e3c9f]{background-color:var(--primary);color:var(--primary-foreground);border-radius:0 4px 4px 0}.st-datetime-picker-panel__cell--disabled[data-v-7f8e3c9f]{color:var(--muted-foreground);cursor:not-allowed;opacity:.5}.st-datetime-picker-panel__cell[data-v-7f8e3c9f]:hover:not(.st-datetime-picker-panel__cell--disabled):not(.st-datetime-picker-panel__cell--selected):not(.st-datetime-picker-panel__cell--in-range):not(.st-datetime-picker-panel__cell--range-start):not(.st-datetime-picker-panel__cell--range-end){background-color:var(--accent);color:var(--accent-foreground)}.st-datetime-picker-panel__divider[data-v-7f8e3c9f]{background-color:var(--border);width:1px;margin:0 12px}.st-datetime-picker-panel__time-section[data-v-7f8e3c9f]{flex-direction:column;display:flex}.st-datetime-picker-panel__time-label[data-v-7f8e3c9f]{color:var(--muted-foreground);text-align:center;margin-bottom:4px;padding:4px 0;font-size:12px}.st-datetime-picker--focused .st-datetime-picker__icon[data-v-626ecddd]{color:var(--primary)}.st-datetime-picker__icon[data-v-626ecddd]{color:var(--foreground)}input[type=number][data-v-fe4ffb58]{-moz-appearance:textfield}input[type=number][data-v-fe4ffb58]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-fe4ffb58]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.st-time-picker[data-v-988f023a]{position:relative}.st-time-picker--disabled[data-v-988f023a]{opacity:.5;cursor:not-allowed}.st-time-picker--focused .st-time-picker__arrow[data-v-988f023a]{color:var(--color-primary)}.st-time-picker__arrow[data-v-988f023a]{color:var(--color-muted-foreground)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
- import { a as e, i as t, o as n, r, t as i } from "./st-button--HyXkQ9q.js";
3
- import { d as a, f as o, n as s, r as c, t as l } from "./dist-BkEt4gsd.js";
4
- import { i as u, n as d, r as f, t as p } from "./cva-Coy0mkca.js";
2
+ import { a as e, i as t, o as n, r, t as i } from "./st-button-DguHNR5j.js";
3
+ import { d as a, f as o, n as s, r as c, t as l } from "./dist-QodMTiuA.js";
4
+ import { i as u, n as d, r as f, t as p } from "./cva-BU8WjbHO.js";
5
5
  import { Fragment as m, Teleport as h, Transition as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineAsyncComponent as T, defineComponent as E, guardReactiveProps as D, isReadonly as O, mergeModels as k, mergeProps as A, nextTick as j, normalizeClass as M, normalizeProps as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as I, onUnmounted as L, openBlock as R, provide as ee, ref as z, renderList as B, renderSlot as V, resolveComponent as H, resolveDynamicComponent as te, toDisplayString as U, toRef as ne, toValue as W, unref as G, useAttrs as K, useId as re, useModel as q, useSlots as J, useTemplateRef as Y, vModelDynamic as ie, vModelText as ae, vShow as oe, watch as X, withCtx as Z, withDirectives as se, withKeys as ce, withModifiers as Q } from "vue";
6
6
  //#region src/utils/with-install.ts
7
7
  function le(e) {
@@ -155,14 +155,17 @@ var ue = /* @__PURE__ */ E({
155
155
  group: ge,
156
156
  hover: _e
157
157
  }
158
- }), c = _(() => o?.inGroup.value ?? !1), l = _(() => a.variant === void 0 ? o ? o.variant.value : "default" : a.variant), u = _(() => a.type === void 0 ? o ? o.type.value : "default" : a.type), h = _(() => a.disabled === void 0 ? o ? o.disabled.value : !1 : a.disabled), g = _(() => a.loading === void 0 ? o ? o.loading.value : !1 : a.loading), v = _(() => u.value === "icon"), S = _(() => h.value || g.value), C = _(() => !!(a.prefixIcon || r.prefixIcon)), w = _(() => !!(a.suffixIcon || r.suffixIcon)), T = _(() => d(s({
159
- variant: l.value,
160
- type: u.value,
161
- disabled: h.value,
162
- loading: g.value,
163
- group: c.value ? o.direction.value : !1,
164
- hover: h.value ? "disabled" : l.value
165
- }), n.class));
158
+ }), c = _(() => o?.inGroup.value ?? !1), l = _(() => a.variant === void 0 ? o ? o.variant.value : "default" : a.variant), u = _(() => a.type === void 0 ? o ? o.type.value : "default" : a.type), h = _(() => a.disabled === void 0 ? o ? o.disabled.value : !1 : a.disabled), g = _(() => a.loading === void 0 ? o ? o.loading.value : !1 : a.loading), v = _(() => u.value === "icon"), S = _(() => h.value || g.value), C = _(() => !!(a.prefixIcon || r.prefixIcon)), w = _(() => !!(a.suffixIcon || r.suffixIcon)), T = _(() => {
159
+ let e = s({
160
+ variant: l.value,
161
+ type: u.value,
162
+ disabled: h.value,
163
+ loading: g.value,
164
+ group: c.value ? o.direction.value : !1,
165
+ hover: h.value ? "disabled" : l.value
166
+ });
167
+ return d(e, n.class);
168
+ });
166
169
  function E(e) {
167
170
  S.value || i("click", e);
168
171
  }
@@ -275,14 +278,17 @@ var ue = /* @__PURE__ */ E({
275
278
  group: De,
276
279
  active: Oe
277
280
  }
278
- }), c = _(() => o?.inGroup.value ?? !1), l = _(() => a.variant === void 0 ? o ? o.variant.value : "default" : a.variant), u = _(() => a.type === void 0 ? o ? o.type.value : "default" : a.type), h = _(() => a.disabled === void 0 ? o ? o.disabled.value : !1 : a.disabled), g = _(() => a.loading === void 0 ? o ? o.loading.value : !1 : a.loading), v = _(() => u.value === "icon"), S = _(() => h.value || g.value), C = _(() => !!(a.prefixIcon || r.prefixIcon)), w = _(() => !!(a.suffixIcon || r.suffixIcon)), T = _(() => d(s({
279
- variant: l.value,
280
- type: u.value,
281
- disabled: h.value,
282
- loading: g.value,
283
- group: c.value ? o.direction.value : !1,
284
- active: h.value ? "disabled" : l.value
285
- }), n.class));
281
+ }), c = _(() => o?.inGroup.value ?? !1), l = _(() => a.variant === void 0 ? o ? o.variant.value : "default" : a.variant), u = _(() => a.type === void 0 ? o ? o.type.value : "default" : a.type), h = _(() => a.disabled === void 0 ? o ? o.disabled.value : !1 : a.disabled), g = _(() => a.loading === void 0 ? o ? o.loading.value : !1 : a.loading), v = _(() => u.value === "icon"), S = _(() => h.value || g.value), C = _(() => !!(a.prefixIcon || r.prefixIcon)), w = _(() => !!(a.suffixIcon || r.suffixIcon)), T = _(() => {
282
+ let e = s({
283
+ variant: l.value,
284
+ type: u.value,
285
+ disabled: h.value,
286
+ loading: g.value,
287
+ group: c.value ? o.direction.value : !1,
288
+ active: h.value ? "disabled" : l.value
289
+ });
290
+ return d(e, n.class);
291
+ });
286
292
  function E(e) {
287
293
  S.value || i("click", e);
288
294
  }
@@ -654,9 +660,7 @@ var ue = /* @__PURE__ */ E({
654
660
  case "center":
655
661
  s = t.left + (t.width - n.width) / 2;
656
662
  break;
657
- case "right":
658
- s = t.right - n.width;
659
- break;
663
+ case "right": s = t.right - n.width;
660
664
  }
661
665
  break;
662
666
  case "bottom":
@@ -667,9 +671,7 @@ var ue = /* @__PURE__ */ E({
667
671
  case "center":
668
672
  s = t.left + (t.width - n.width) / 2;
669
673
  break;
670
- case "right":
671
- s = t.right - n.width;
672
- break;
674
+ case "right": s = t.right - n.width;
673
675
  }
674
676
  break;
675
677
  case "left":
@@ -680,24 +682,18 @@ var ue = /* @__PURE__ */ E({
680
682
  case "center":
681
683
  o = t.top + (t.height - n.height) / 2;
682
684
  break;
683
- case "bottom":
684
- o = t.bottom - n.height;
685
- break;
686
- }
687
- break;
688
- case "right":
689
- switch (s = t.right + r, a) {
690
- case "top":
691
- o = t.top;
692
- break;
693
- case "center":
694
- o = t.top + (t.height - n.height) / 2;
695
- break;
696
- case "bottom":
697
- o = t.bottom - n.height;
698
- break;
685
+ case "bottom": o = t.bottom - n.height;
699
686
  }
700
687
  break;
688
+ case "right": switch (s = t.right + r, a) {
689
+ case "top":
690
+ o = t.top;
691
+ break;
692
+ case "center":
693
+ o = t.top + (t.height - n.height) / 2;
694
+ break;
695
+ case "bottom": o = t.bottom - n.height;
696
+ }
701
697
  }
702
698
  return {
703
699
  top: o,
@@ -2284,10 +2280,13 @@ var ue = /* @__PURE__ */ E({
2284
2280
  false: "cursor-pointer"
2285
2281
  }
2286
2282
  }
2287
- }), S = _(() => d(g({
2288
- disabled: u.value,
2289
- checked: f.value
2290
- }), !u.value && !f.value ? "hover:border-primary" : "", o.boxClass)), C = _(() => d("text-primary-foreground w-full h-full inline-flex items-center justify-center text-sm", o.coreClass));
2283
+ }), S = _(() => {
2284
+ let e = g({
2285
+ disabled: u.value,
2286
+ checked: f.value
2287
+ }), t = !u.value && !f.value ? "hover:border-primary" : "";
2288
+ return d(e, t, o.boxClass);
2289
+ }), C = _(() => d("text-primary-foreground w-full h-full inline-flex items-center justify-center text-sm", o.coreClass));
2291
2290
  function w(e) {
2292
2291
  u.value || (s ? s.updateValue(o.trueValue, !f.value) : n.value = f.value ? o.falseValue : o.trueValue, a("change", e));
2293
2292
  }
@@ -2538,9 +2537,7 @@ var Pt = /* @__PURE__ */ E({
2538
2537
  case o:
2539
2538
  d = ((s - a) / e + 2) / 6;
2540
2539
  break;
2541
- case s:
2542
- d = ((a - o) / e + 4) / 6;
2543
- break;
2540
+ case s: d = ((a - o) / e + 4) / 6;
2544
2541
  }
2545
2542
  }
2546
2543
  return {
@@ -2574,9 +2571,7 @@ var Pt = /* @__PURE__ */ E({
2574
2571
  case o:
2575
2572
  d = ((s - a) / u + 2) / 6;
2576
2573
  break;
2577
- case s:
2578
- d = ((a - o) / u + 4) / 6;
2579
- break;
2574
+ case s: d = ((a - o) / u + 4) / 6;
2580
2575
  }
2581
2576
  return {
2582
2577
  h: Math.round(d * 360),
@@ -2602,9 +2597,7 @@ var Pt = /* @__PURE__ */ E({
2602
2597
  case 4:
2603
2598
  c = h, l = p, u = s;
2604
2599
  break;
2605
- default:
2606
- c = s, l = p, u = m;
2607
- break;
2600
+ default: c = s, l = p, u = m;
2608
2601
  }
2609
2602
  return {
2610
2603
  r: Math.round(c * 255),
@@ -3842,7 +3835,7 @@ var Wn = {
3842
3835
  let n = K();
3843
3836
  J();
3844
3837
  let r = e, i = jn(), a = Nn(), o = !1, s = 0, c = 0, l = p({
3845
- base: "absolute rounded-full bg-border",
3838
+ base: "absolute rounded-full bg-scrollbar-thumb z-20",
3846
3839
  variants: { direction: {
3847
3840
  vertical: "top-0 right-0 min-h-5 w-2",
3848
3841
  horizontal: "bottom-0 left-0 min-w-5 h-2"
@@ -3894,7 +3887,7 @@ var Wn = {
3894
3887
  let n = K();
3895
3888
  J();
3896
3889
  let r = e, i = jn(), a = p({
3897
- base: "absolute rounded-full bg-border/50",
3890
+ base: "absolute rounded-full bg-scrollbar-track z-20",
3898
3891
  variants: { direction: {
3899
3892
  vertical: "top-0 right-0 h-full w-2",
3900
3893
  horizontal: "bottom-0 left-0 w-full h-2"
@@ -4249,9 +4242,7 @@ var Wn = {
4249
4242
  case "right":
4250
4243
  h.value += er;
4251
4244
  break;
4252
- case "left":
4253
- h.value -= er;
4254
- break;
4245
+ case "left": h.value -= er;
4255
4246
  }
4256
4247
  let n = F(t.clientX - h.value, t.clientY - g.value) * $n, r = T.value;
4257
4248
  p.value = r > 0 ? Math.min(n, r) : n, e.cancelable && e.preventDefault();
@@ -4271,9 +4262,7 @@ var Wn = {
4271
4262
  case "left":
4272
4263
  r("pullLeft", e);
4273
4264
  break;
4274
- case "right":
4275
- r("pullRight", e);
4276
- break;
4265
+ case "right": r("pullRight", e);
4277
4266
  }
4278
4267
  } else H();
4279
4268
  }
@@ -4939,10 +4928,13 @@ var Wn = {
4939
4928
  if (e === "hour" && t > a || e === "minute" && (n > a || n === a && t > o) || e === "second" && (n > a || n === a && r > o || n === a && r === o && t > s)) return !1;
4940
4929
  }
4941
4930
  return !0;
4942
- }, T = (e, t) => d("st-time-picker-panel__item", {
4943
- "st-time-picker-panel__item--selected": e === "hour" ? l.value.hour === t : e === "minute" ? l.value.minute === t : l.value.second === t,
4944
- "st-time-picker-panel__item--disabled": i.disabled || !C(e, t)
4945
- }), E = (e) => e.toString().padStart(2, "0"), D = (e) => {
4931
+ }, T = (e, t) => {
4932
+ let n = e === "hour" ? l.value.hour === t : e === "minute" ? l.value.minute === t : l.value.second === t, r = i.disabled || !C(e, t);
4933
+ return d("st-time-picker-panel__item", {
4934
+ "st-time-picker-panel__item--selected": n,
4935
+ "st-time-picker-panel__item--disabled": r
4936
+ });
4937
+ }, E = (e) => e.toString().padStart(2, "0"), D = (e) => {
4946
4938
  i.disabled || !C("hour", e) || (l.value.hour = e, A(), L("hour", e));
4947
4939
  }, O = (e) => {
4948
4940
  i.disabled || !C("minute", e) || (l.value.minute = e, A(), L("minute", e));
@@ -5971,7 +5963,7 @@ var Wn = {
5971
5963
  }),
5972
5964
  emits: /*@__PURE__*/ k(["open", "close"], ["update:modelValue"]),
5973
5965
  setup(t, { emit: n }) {
5974
- let r = T({ loader: () => import("./st-button--HyXkQ9q.js").then((e) => e.n) }), i = q(t, "modelValue"), a = K(), o = J(), s = n, { nextZIndex: c } = nt(), l = t, u = z(999), d = z(1e3), f = z(!1), p = z({
5966
+ let r = T({ loader: () => import("./st-button-DguHNR5j.js").then((e) => e.n) }), i = q(t, "modelValue"), a = K(), o = J(), s = n, { nextZIndex: c } = nt(), l = t, u = z(999), d = z(1e3), f = z(!1), p = z({
5975
5967
  isDragging: !1,
5976
5968
  startX: 0,
5977
5969
  startY: 0,
@@ -6142,10 +6134,13 @@ var Wn = {
6142
6134
  dotted: "border-dotted"
6143
6135
  }
6144
6136
  }
6145
- }), a = _(() => d(i({
6146
- direction: r.direction.value,
6147
- variant: r.variant.value
6148
- }), n.class));
6137
+ }), a = _(() => {
6138
+ let e = i({
6139
+ direction: r.direction.value,
6140
+ variant: r.variant.value
6141
+ });
6142
+ return d(e, n.class);
6143
+ });
6149
6144
  return (e, t) => (R(), b("div", {
6150
6145
  class: M([a.value, "st-divider-line"]),
6151
6146
  style: P(G(n).style)
@@ -6216,7 +6211,13 @@ var Wn = {
6216
6211
  left: "flex-1 min-w-0 min-h-0",
6217
6212
  center: "flex-1 min-w-0 min-h-0",
6218
6213
  right: "w-5%"
6219
- } } }), u = _(() => d(c({ position: i.contentPosition }), a.value ? "" : "flex-1 min-w-0 min-h-0", i.lineClass)), f = _(() => d(l({ position: i.contentPosition }), i.lineClass));
6214
+ } } }), u = _(() => {
6215
+ let e = c({ position: i.contentPosition }), t = a.value ? "" : "flex-1 min-w-0 min-h-0";
6216
+ return d(e, t, i.lineClass);
6217
+ }), f = _(() => {
6218
+ let e = l({ position: i.contentPosition });
6219
+ return d(e, i.lineClass);
6220
+ });
6220
6221
  return oi({
6221
6222
  direction: _(() => i.direction),
6222
6223
  variant: _(() => i.variant)
@@ -6502,7 +6503,7 @@ var Wn = {
6502
6503
  }),
6503
6504
  emits: /*@__PURE__*/ k(["open", "close"], ["update:modelValue"]),
6504
6505
  setup(e, { emit: t }) {
6505
- let n = T({ loader: () => import("./st-button--HyXkQ9q.js").then((e) => e.n) }), r = q(e, "modelValue"), i = K(), a = J(), o = t, { nextZIndex: s } = nt(), c = e, l = _(() => !!(c.title || a.title)), u = _(() => !!(c.closable || a.action)), d = _(() => l.value || u.value), f = _(() => !!a.footer), p = z(999), m = z(1e3);
6506
+ let n = T({ loader: () => import("./st-button-DguHNR5j.js").then((e) => e.n) }), r = q(e, "modelValue"), i = K(), a = J(), o = t, { nextZIndex: s } = nt(), c = e, l = _(() => !!(c.title || a.title)), u = _(() => !!(c.closable || a.action)), d = _(() => l.value || u.value), f = _(() => !!a.footer), p = z(999), m = z(1e3);
6506
6507
  X(r, (e) => {
6507
6508
  e ? (p.value = s(), m.value = s(), o("open")) : o("close");
6508
6509
  });
@@ -9330,10 +9331,13 @@ var vo = /* @__PURE__ */ E({
9330
9331
  false: "cursor-pointer"
9331
9332
  }
9332
9333
  }
9333
- }), C = _(() => d(S({
9334
- disabled: u.value,
9335
- checked: f.value
9336
- }), !u.value && !f.value ? "hover:border-primary" : "", o.boxClass)), w = p({
9334
+ }), C = _(() => {
9335
+ let e = S({
9336
+ disabled: u.value,
9337
+ checked: f.value
9338
+ }), t = !u.value && !f.value ? "hover:border-primary" : "";
9339
+ return d(e, t, o.boxClass);
9340
+ }), w = p({
9337
9341
  base: "w-full h-full rounded-full bg-primary transition-transform duration-200",
9338
9342
  variants: { checked: {
9339
9343
  true: "scale-100",
@@ -10312,7 +10316,10 @@ var vo = /* @__PURE__ */ E({
10312
10316
  let e = [], t = r.step || 1;
10313
10317
  for (let n = r.min; n <= r.max; n += t) e.push(n);
10314
10318
  return e;
10315
- }), H = (e) => d("w-1.5 h-1.5 rounded-full -translate-y-1/2", (r.range ? e >= o.value && e <= s.value : e <= c.value) ? "bg-primary" : "bg-secondary-foreground/30"), te = _(() => ({ left: `${I(c.value)}%` })), ne = _(() => ({ left: `${I(o.value)}%` })), W = _(() => ({ left: `${I(s.value)}%` })), G = _(() => r.range ? {
10319
+ }), H = (e) => {
10320
+ let t = r.range ? e >= o.value && e <= s.value : e <= c.value;
10321
+ return d("w-1.5 h-1.5 rounded-full -translate-y-1/2", t ? "bg-primary" : "bg-secondary-foreground/30");
10322
+ }, te = _(() => ({ left: `${I(c.value)}%` })), ne = _(() => ({ left: `${I(o.value)}%` })), W = _(() => ({ left: `${I(s.value)}%` })), G = _(() => r.range ? {
10316
10323
  left: `${I(o.value)}%`,
10317
10324
  width: `${I(s.value) - I(o.value)}%`
10318
10325
  } : {
@@ -10422,7 +10429,8 @@ function Ls(t) {
10422
10429
  if (t.value === "horizontal") {
10423
10430
  let e = parseFloat(r.paddingLeft) || 0, t = parseFloat(r.paddingRight) || 0;
10424
10431
  return n.clientWidth - e - t;
10425
- } else {
10432
+ }
10433
+ {
10426
10434
  let e = parseFloat(r.paddingTop) || 0, t = parseFloat(r.paddingBottom) || 0;
10427
10435
  return n.clientHeight - e - t;
10428
10436
  }
@@ -11453,7 +11461,10 @@ var Rs = /* @__PURE__ */ E({
11453
11461
  let r = t, i = e, a = p({
11454
11462
  base: "inline-flex items-center justify-center rounded-md font-medium transition-all duration-150 ease-in-out border-none outline-none select-none whitespace-nowrap h-6 px-2 text-3 gap-1 bg-muted",
11455
11463
  variants: { closable: { true: "pr-1.5" } }
11456
- }), o = _(() => d(a({ closable: i.closable }), n.class)), s = (e) => {}, c = (e) => {
11464
+ }), o = _(() => {
11465
+ let e = a({ closable: i.closable });
11466
+ return d(e, n.class);
11467
+ }), s = (e) => {}, c = (e) => {
11457
11468
  r("close", e);
11458
11469
  };
11459
11470
  return (e, t) => (R(), b("span", {
@@ -11822,10 +11833,13 @@ var Rs = /* @__PURE__ */ E({
11822
11833
  disabled: { true: "opacity-50 cursor-not-allowed" }
11823
11834
  },
11824
11835
  defaultVariants: { variant: "default" }
11825
- }), h = _(() => d(m({
11826
- variant: a.variant,
11827
- disabled: a.disabled
11828
- }), !a.disabled && !u.value ? r[a.variant] : "", u.value ? i[a.variant] : "", s.class, a.toggleClass)), g = _(() => d("inline-flex", a.wrapperClass)), v = _(() => d("pointer-events-none", a.labelClass)), S = () => {
11836
+ }), h = _(() => {
11837
+ let e = m({
11838
+ variant: a.variant,
11839
+ disabled: a.disabled
11840
+ }), t = !a.disabled && !u.value ? r[a.variant] : "", n = u.value ? i[a.variant] : "";
11841
+ return d(e, t, n, s.class, a.toggleClass);
11842
+ }), g = _(() => d("inline-flex", a.wrapperClass)), v = _(() => d("pointer-events-none", a.labelClass)), S = () => {
11829
11843
  if (f.value) return;
11830
11844
  let e = !u.value;
11831
11845
  u.value = e, o("pressed-change", e);
@@ -12029,12 +12043,16 @@ var Rs = /* @__PURE__ */ E({
12029
12043
  DEFAULT: "var(--accent)",
12030
12044
  foreground: "var(--accent-foreground)"
12031
12045
  },
12032
- border: "var(--border)",
12033
- input: "var(--input)",
12034
12046
  sidebar: {
12035
12047
  DEFAULT: "var(--sidebar)",
12036
12048
  foreground: "var(--sidebar-foreground)"
12037
- }
12049
+ },
12050
+ scrollbar: {
12051
+ track: "var(--scrollbar-track)",
12052
+ thumb: "var(--scrollbar-thumb)"
12053
+ },
12054
+ border: "var(--border)",
12055
+ input: "var(--input)"
12038
12056
  },
12039
12057
  radius: {
12040
12058
  DEFAULT: "var(--radius)",
@@ -12300,30 +12318,20 @@ var Rs = /* @__PURE__ */ E({
12300
12318
  return { "row-gap": t === 0 ? "var(--gap)" : `calc(var(--gap) ${t >= 0 ? "+" : "-"} ${Math.abs(t)}px)` };
12301
12319
  }],
12302
12320
  [/^scrollbar-(none|thin|auto)$/, ([, e]) => e === "none" ? { "scrollbar-width": "none" } : e === "thin" ? { "scrollbar-width": "thin" } : { "scrollbar-width": "auto" }]
12303
- ], fc = [{
12304
- order: -100,
12305
- match(e) {
12306
- return e.startsWith("hover:") ? {
12307
- matcher: e.slice(6),
12308
- selector: (e) => `${e}:hover`,
12309
- parent: "@media (hover: hover)"
12310
- } : e;
12311
- }
12312
- }];
12313
- function pc() {
12321
+ ];
12322
+ function fc() {
12314
12323
  return {
12315
12324
  name: "preset-straw-ui",
12316
12325
  theme: uc,
12317
- rules: dc,
12318
- variants: fc
12326
+ rules: dc
12319
12327
  };
12320
12328
  }
12321
- function mc() {
12329
+ function pc() {
12322
12330
  return uc;
12323
12331
  }
12324
12332
  //#endregion
12325
12333
  //#region src/index.ts
12326
- var hc = [
12334
+ var mc = [
12327
12335
  Ne,
12328
12336
  Fe,
12329
12337
  Pe,
@@ -12378,8 +12386,8 @@ var hc = [
12378
12386
  oc,
12379
12387
  sc,
12380
12388
  cc
12381
- ], gc = { install(e) {
12382
- for (let t of hc) e.use(t);
12389
+ ], hc = { install(e) {
12390
+ for (let t of mc) e.use(t);
12383
12391
  } };
12384
12392
  //#endregion
12385
- export { sc as StAddon, Ne as StButton, Fe as StButtonDesktop, Pe as StButtonGroup, Ie as StButtonPhone, We as StCard, Ge as StCardGroup, Ke as StCardGroupAddon, qe as StCardGroupContent, Je as StCardGroupDescription, Ye as StCardGroupFooter, Xe as StCardGroupHeader, Ze as StCardGroupTitle, wt as StCascade, Tt as StCascadePanel, Ft as StCheckbox, It as StCheckboxGroup, mn as StColorPicker, hn as StColorPickerPanel, Dn as StDatePicker, On as StDatePickerPanel, Lr as StDateTimePicker, Rr as StDateTimePickerPanel, Xr as StDialog, Zr as StDialogGroup, Qr as StDialogGroupAddon, $r as StDialogGroupBody, ei as StDialogGroupContent, ai as StDialogGroupDraggable, ti as StDialogGroupFooter, ni as StDialogGroupHeader, ri as StDialogGroupOverlay, ii as StDialogGroupTitle, ui as StDivider, fi as StDividerContent, di as StDividerLine, Ci as StDrawer, wi as StDrawerGroup, Ti as StDrawerGroupAddon, Ei as StDrawerGroupBody, Di as StDrawerGroupContent, Oi as StDrawerGroupFooter, ki as StDrawerGroupHeader, Ai as StDrawerGroupOverlay, ji as StDrawerGroupTitle, Fi as StEmpty, Ii as StEmptyGroup, Li as StEmptyGroupContent, Ri as StEmptyGroupDescription, qi as StForm, Ji as StFormControl, Yi as StFormDescription, Xi as StFormField, Zi as StFormItem, Qi as StFormLabel, $i as StFormMessage, ta as StImage, la as StInput, ua as StInputGroup, da as StInputGroupAddon, fa as StInputGroupButton, pa as StInputGroupInput, ma as StInputGroupText, ha as StInputGroupTextarea, ga as StInputNumber, va as StLabel, Ha as StMenu, Ua as StMenuContainer, Wa as StMenuContent, Ga as StMenuDivider, Ka as StMenuGroup, qa as StMenuItem, Ja as StMenuNode, Ya as StMenuTrigger, uo as StPagination, fo as StPopover, po as StPopoverArrow, mo as StPopoverContainer, ho as StPopoverContent, go as StPopoverTrigger, Oo as StProgress, jo as StProgressBar, ko as StProgressGroup, Ao as StProgressTrack, Lo as StRadio, Ro as StRadioGroup, Bo as StScrollbar, qo as StScrollbarDesktop, Jo as StScrollbarDesktopGroup, Vo as StScrollbarGroup, Go as StScrollbarGroupBackTop, Ko as StScrollbarGroupNavButton, Wo as StScrollbarGroupThumb, Uo as StScrollbarGroupTrack, Ho as StScrollbarGroupView, Yo as StScrollbarPhone, Xo as StScrollbarPhoneGroup, Zo as StScrollbarPhoneGroupPullAction, os as StSegmented, ss as StSegmentedGroup, ls as StSegmentedGroupIndicator, cs as StSegmentedGroupItem, ds as StSelect, fs as StSelectContainer, ps as StSelectContent, ms as StSelectEmpty, hs as StSelectGroup, gs as StSelectItem, _s as StSelectTrigger, Ts as StSidebar, Es as StSidebarItem, Os as StSkeleton, ks as StSkeletonItem, Ns as StSlider, Vs as StSplitter, Hs as StSplitterPanel, Gs as StSwitch, Qs as StTabs, $s as StTabsPane, ec as StTag, _a as StTextarea, tc as StTimePicker, nc as StTimePickerPanel, ic as StToggle, oc as StTooltip, cc as StTree, lc as StTreeNode, d as cn, gc as default, mc as getStrawUITheme, be as n, pc as presetStrawUI, je as t, r as useDevice, kn as useForwardEmit, nt as useZIndex, le as withInstall, $ as withInstallExtra };
12393
+ export { sc as StAddon, Ne as StButton, Fe as StButtonDesktop, Pe as StButtonGroup, Ie as StButtonPhone, We as StCard, Ge as StCardGroup, Ke as StCardGroupAddon, qe as StCardGroupContent, Je as StCardGroupDescription, Ye as StCardGroupFooter, Xe as StCardGroupHeader, Ze as StCardGroupTitle, wt as StCascade, Tt as StCascadePanel, Ft as StCheckbox, It as StCheckboxGroup, mn as StColorPicker, hn as StColorPickerPanel, Dn as StDatePicker, On as StDatePickerPanel, Lr as StDateTimePicker, Rr as StDateTimePickerPanel, Xr as StDialog, Zr as StDialogGroup, Qr as StDialogGroupAddon, $r as StDialogGroupBody, ei as StDialogGroupContent, ai as StDialogGroupDraggable, ti as StDialogGroupFooter, ni as StDialogGroupHeader, ri as StDialogGroupOverlay, ii as StDialogGroupTitle, ui as StDivider, fi as StDividerContent, di as StDividerLine, Ci as StDrawer, wi as StDrawerGroup, Ti as StDrawerGroupAddon, Ei as StDrawerGroupBody, Di as StDrawerGroupContent, Oi as StDrawerGroupFooter, ki as StDrawerGroupHeader, Ai as StDrawerGroupOverlay, ji as StDrawerGroupTitle, Fi as StEmpty, Ii as StEmptyGroup, Li as StEmptyGroupContent, Ri as StEmptyGroupDescription, qi as StForm, Ji as StFormControl, Yi as StFormDescription, Xi as StFormField, Zi as StFormItem, Qi as StFormLabel, $i as StFormMessage, ta as StImage, la as StInput, ua as StInputGroup, da as StInputGroupAddon, fa as StInputGroupButton, pa as StInputGroupInput, ma as StInputGroupText, ha as StInputGroupTextarea, ga as StInputNumber, va as StLabel, Ha as StMenu, Ua as StMenuContainer, Wa as StMenuContent, Ga as StMenuDivider, Ka as StMenuGroup, qa as StMenuItem, Ja as StMenuNode, Ya as StMenuTrigger, uo as StPagination, fo as StPopover, po as StPopoverArrow, mo as StPopoverContainer, ho as StPopoverContent, go as StPopoverTrigger, Oo as StProgress, jo as StProgressBar, ko as StProgressGroup, Ao as StProgressTrack, Lo as StRadio, Ro as StRadioGroup, Bo as StScrollbar, qo as StScrollbarDesktop, Jo as StScrollbarDesktopGroup, Vo as StScrollbarGroup, Go as StScrollbarGroupBackTop, Ko as StScrollbarGroupNavButton, Wo as StScrollbarGroupThumb, Uo as StScrollbarGroupTrack, Ho as StScrollbarGroupView, Yo as StScrollbarPhone, Xo as StScrollbarPhoneGroup, Zo as StScrollbarPhoneGroupPullAction, os as StSegmented, ss as StSegmentedGroup, ls as StSegmentedGroupIndicator, cs as StSegmentedGroupItem, ds as StSelect, fs as StSelectContainer, ps as StSelectContent, ms as StSelectEmpty, hs as StSelectGroup, gs as StSelectItem, _s as StSelectTrigger, Ts as StSidebar, Es as StSidebarItem, Os as StSkeleton, ks as StSkeletonItem, Ns as StSlider, Vs as StSplitter, Hs as StSplitterPanel, Gs as StSwitch, Qs as StTabs, $s as StTabsPane, ec as StTag, _a as StTextarea, tc as StTimePicker, nc as StTimePickerPanel, ic as StToggle, oc as StTooltip, cc as StTree, lc as StTreeNode, d as cn, hc as default, pc as getStrawUITheme, be as n, fc as presetStrawUI, je as t, r as useDevice, kn as useForwardEmit, nt as useZIndex, le as withInstall, $ as withInstallExtra };
@@ -48,12 +48,16 @@ export declare function getStrawUITheme(): {
48
48
  DEFAULT: string;
49
49
  foreground: string;
50
50
  };
51
- border: string;
52
- input: string;
53
51
  sidebar: {
54
52
  DEFAULT: string;
55
53
  foreground: string;
56
54
  };
55
+ scrollbar: {
56
+ track: string;
57
+ thumb: string;
58
+ };
59
+ border: string;
60
+ input: string;
57
61
  };
58
62
  radius: {
59
63
  DEFAULT: string;
@@ -21,7 +21,6 @@
21
21
 
22
22
  /* 低强调填充色 */
23
23
  --secondary: oklch(0.97 0 0);
24
- --secondary-light: oklch(0.97 0 0);
25
24
  --secondary-foreground: oklch(0.205 0 0);
26
25
 
27
26
  /* 成功操作色 */
@@ -40,16 +39,20 @@
40
39
  --accent: oklch(0.97 0 0);
41
40
  --accent-foreground: oklch(0.205 0 0);
42
41
 
42
+ /* 侧边栏颜色对 */
43
+ --sidebar: oklch(0.985 0 0);
44
+ --sidebar-foreground: oklch(0.145 0 0);
45
+
46
+ /* 滚动条颜色对 */
47
+ --scrollbar-track: oklch(0.952 0.002 247.84);
48
+ --scrollbar-thumb: oklch(0.9 0.003 264.541);
49
+
43
50
  /* 边框颜色 */
44
51
  --border: oklch(0.922 0 0);
45
52
 
46
53
  /* 表单控件 */
47
54
  --input: oklch(0.922 0 0);
48
55
 
49
- /* 侧边栏基础 */
50
- --sidebar: oklch(0.985 0 0);
51
- --sidebar-foreground: oklch(0.145 0 0);
52
-
53
56
  /* 圆角基准值 */
54
57
  --radius: 8px;
55
58
 
@@ -108,13 +111,17 @@
108
111
  --accent: oklch(0.269 0 0);
109
112
  --accent-foreground: oklch(0.985 0 0);
110
113
 
114
+ /* 侧边栏颜色对 */
115
+ --sidebar: oklch(0.205 0 0);
116
+ --sidebar-foreground: oklch(0.985 0 0);
117
+
118
+ /* 滚动条颜色对 */
119
+ --scrollbar-track: oklch(0.301 0 0);
120
+ --scrollbar-thumb: oklch(0.383 0 0);
121
+
111
122
  /* 边框颜色 */
112
123
  --border: oklch(0.269 0 0);
113
124
 
114
125
  /* 表单控件 */
115
126
  --input: oklch(0.269 0 0);
116
-
117
- /* 侧边栏基础 */
118
- --sidebar: oklch(0.205 0 0);
119
- --sidebar-foreground: oklch(0.985 0 0);
120
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "straw-ui-vue",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "type": "module",
5
5
  "main": "./dist/straw-ui.js",
6
6
  "module": "./dist/straw-ui.js",
@@ -30,50 +30,40 @@
30
30
  "docs:build": "vitepress build docs"
31
31
  },
32
32
  "peerDependencies": {
33
- "pinia": "^3.0.0",
34
- "vue": "^3.3.0",
35
- "vue-router": "^5.0.0"
36
- },
37
- "peerDependenciesMeta": {
38
- "pinia": {
39
- "optional": true
40
- },
41
- "vue-router": {
42
- "optional": true
43
- }
33
+ "vue": "^3.4.0"
44
34
  },
45
35
  "dependencies": {
46
- "@vueuse/core": "14.3.0",
47
- "@vueuse/math": "14.3.0",
36
+ "@vueuse/core": "14.4.0",
37
+ "@vueuse/math": "14.4.0",
48
38
  "clsx": "2.1.1",
49
39
  "tailwind-merge": "3.6.0"
50
40
  },
51
41
  "devDependencies": {
52
- "@iconify-json/lucide": "1.2.120",
42
+ "@iconify-json/lucide": "1.2.121",
53
43
  "@prettier/sync": "0.6.1",
54
44
  "@tsconfig/node24": "24.0.4",
55
45
  "@types/markdown-it": "14.1.2",
56
46
  "@types/markdown-it-container": "4.0.0",
57
- "@types/node": "26.1.1",
47
+ "@types/node": "26.1.2",
58
48
  "@vitejs/plugin-vue": "6.0.8",
59
49
  "@vitejs/plugin-vue-jsx": "5.1.6",
60
50
  "@vue/tsconfig": "0.9.1",
61
51
  "highlight.js": "11.11.1",
62
- "less": "4.8.0",
52
+ "less": "4.8.1",
63
53
  "markdown-it-container": "4.0.0",
64
- "npm-run-all2": "9.0.2",
54
+ "npm-run-all2": "9.0.3",
65
55
  "pinia": "4.0.2",
66
56
  "prettier": "3.9.6",
67
57
  "typescript": "6.0.3",
68
58
  "unocss": "66.7.5",
69
- "vite": "8.1.5",
59
+ "vite": "8.2.0",
70
60
  "vite-plugin-css-injected-by-js": "5.0.2",
71
61
  "vite-plugin-dts": "5.0.3",
72
62
  "vite-plugin-vue-devtools": "8.2.1",
73
63
  "vitepress": "2.0.0-alpha.17",
74
64
  "vue": "3.5.40",
75
65
  "vue-router": "5.2.0",
76
- "vue-tsc": "3.3.8"
66
+ "vue-tsc": "3.3.9"
77
67
  },
78
68
  "engines": {
79
69
  "node": "^22.18.0 || >=24.12.0"