@timebraid/vue 1.6.0 → 1.7.0
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/dist/index.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/timebraid-vue.js +21 -12
- package/dist/timebraid-vue.umd.cjs +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -204,7 +204,7 @@ declare type __VLS_Props_22 = {
|
|
|
204
204
|
declare type __VLS_Props_23 = {
|
|
205
205
|
timers: PillTimer[];
|
|
206
206
|
android?: boolean;
|
|
207
|
-
bottom?: number;
|
|
207
|
+
bottom?: number | string;
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
declare type __VLS_Props_24 = {
|
|
@@ -871,7 +871,7 @@ onStop?: ((id: string) => any) | undefined;
|
|
|
871
871
|
onOpen?: (() => any) | undefined;
|
|
872
872
|
onStopAll?: (() => any) | undefined;
|
|
873
873
|
}>, {
|
|
874
|
-
bottom: number;
|
|
874
|
+
bottom: number | string;
|
|
875
875
|
android: boolean;
|
|
876
876
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
877
877
|
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:wght@400..700&display=swap";:root{--font-display:var(--font-sans);--font-ui:var(--font-sans);--font-numeric:var(--font-mono)}:root{--font-sans:"Instrument Sans",-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;--font-mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace;--indigo-400:#6C77DE;--indigo-500:#4A57D2;--indigo-600:#3A44AF;--indigo-700:#2C3391;--chart-1:#0072B2;--chart-2:#E69F00;--chart-3:#009E73;--chart-4:#CC79A7;--chart-5:#56B4E9;--chart-6:#D55E00;--chart-7:#F0E442;--chart-8:#6B7085;--bg:#F2F3F8;--bg-elev:#FFFFFF;--bg-elev-2:#F7F8FC;--bg-sidebar:rgba(244,245,250,.86);--bg-bar:rgba(242,243,248,.82);--fill:rgba(20,22,40,.06);--fill-2:rgba(20,22,40,.1);--fill-3:rgba(20,22,40,.16);--sep:rgba(20,22,40,.1);--sep-strong:rgba(20,22,40,.18);--label:#0E1024;--label-2:#5C6178;--label-3:#8B90A5;--label-4:#B7BBCB;--on-accent:#FFFFFF;--accent:#4A57D2;--accent-hover:#3F4BC0;--accent-soft:rgba(74,87,210,.12);--accent-soft-2:rgba(74,87,210,.2);--running:#4A57D2;--running-soft:rgba(74,87,210,.1);--green:#1E9E6A;--green-soft:rgba(30,158,106,.12);--red:#D6453D;--red-soft:rgba(214,69,61,.1);--orange:#D97B0F;--r-cell:12px;--r-card:14px;--r-btn:10px;--r-pill:999px;--r-sheet:20px;--r-window:12px;--sh-card:0 1px 2px rgba(14,16,36,.04),0 0 0 1px rgba(14,16,36,.04);--sh-float:0 12px 32px -8px rgba(14,16,36,.22),0 2px 6px rgba(14,16,36,.08),0 0 0 1px rgba(14,16,36,.05);--sh-sheet:0 -8px 40px -8px rgba(14,16,36,.24);--sh-thumb:0 2px 6px rgba(0,0,0,.25);--sh-seg:0 1px 2px rgba(0,0,0,.14),0 3px 8px -2px rgba(0,0,0,.12),0 0 0 .5px var(--sep);--blur:saturate(180%) blur(22px);--scrim:rgba(10,11,20,.42);--dash:rgba(255,255,255,.7);--ease:cubic-bezier(.2,0,.2,1);--ease-out:cubic-bezier(.16,1,.3,1);--ease-sheet:cubic-bezier(.32,.72,0,1);--t-fast:.14s;--t-base:.22s;--t-sheet:.42s}[data-theme=dark]{--bg:#15161F;--bg-elev:#1F2030;--bg-elev-2:#282A3C;--bg-sidebar:rgba(24,25,36,.86);--bg-bar:rgba(21,22,31,.78);--fill:rgba(255,255,255,.07);--fill-2:rgba(255,255,255,.11);--fill-3:rgba(255,255,255,.17);--sep:rgba(255,255,255,.09);--sep-strong:rgba(255,255,255,.16);--label:#F3F4FA;--label-2:#A7ABC0;--label-3:#7D8199;--label-4:#575B70;--accent:#7A84E6;--accent-hover:#8C95EC;--accent-soft:rgba(122,132,230,.16);--accent-soft-2:rgba(122,132,230,.26);--running:#8A93EC;--running-soft:rgba(122,132,230,.14);--green:#3CC08A;--green-soft:rgba(60,192,138,.14);--red:#F06B62;--red-soft:rgba(240,107,98,.14);--orange:#F0A24B;--chart-8:#9A9FB4;--sh-card:0 1px 2px rgba(0,0,0,.2),0 0 0 1px rgba(255,255,255,.04);--sh-float:0 16px 40px -8px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.08);--sh-sheet:0 -8px 40px -8px rgba(0,0,0,.6);--scrim:rgba(0,0,0,.55)}:root{--text-display-1:64px;--leading-display-1:1.02;--tracking-display-1:-.03em;--text-display-2:48px;--leading-display-2:1.06;--tracking-display-2:-.025em;--text-large-title:30px;--text-large-title-phone:34px;--tracking-large-title:-.025em;--leading-large-title:1.1;--text-title:17px;--text-row:15px;--text-subtitle:12.5px;--text-section:12px;--tracking-section:.04em;--text-body:14px;--text-body-lg:18px;--leading-body-lg:1.6;--text-caption:12px;--text-footnote:11.5px;--text-timer-xl:44px;--text-timer-lg:28px;--text-timer-md:22px;--text-timer-sm:15px;--weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700}:root{--space-0:0px;--space-1:2px;--space-2:4px;--space-3:8px;--space-4:12px;--space-5:16px;--space-6:20px;--space-7:24px;--space-8:32px;--space-9:40px;--space-10:48px;--space-11:64px;--space-12:80px;--space-13:112px;--space-14:160px;--section-y:112px;--section-y-tight:72px;--container-max:1160px;--container-prose:660px;--gutter:24px;--sidebar-w:232px;--content-max:1040px;--content-max-narrow:760px;--gutter-phone:16px;--row-h:46px;--row-h-sub:56px;--row-h-dense:40px;--control-h-sm:30px;--control-h-md:36px;--control-h-lg:44px;--control-h-xl:50px;--pill-h:46px;--pill-h-compact:30px;--timer-bar-h:56px;--timer-bar-pad:72px;--inset-top:env(safe-area-inset-top,0px);--inset-bottom:env(safe-area-inset-bottom,0px);--tab-bar-h-ios:
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:wght@400..700&display=swap";:root{--font-display:var(--font-sans);--font-ui:var(--font-sans);--font-numeric:var(--font-mono)}:root{--font-sans:"Instrument Sans",-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;--font-mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace;--indigo-400:#6C77DE;--indigo-500:#4A57D2;--indigo-600:#3A44AF;--indigo-700:#2C3391;--chart-1:#0072B2;--chart-2:#E69F00;--chart-3:#009E73;--chart-4:#CC79A7;--chart-5:#56B4E9;--chart-6:#D55E00;--chart-7:#F0E442;--chart-8:#6B7085;--bg:#F2F3F8;--bg-elev:#FFFFFF;--bg-elev-2:#F7F8FC;--bg-sidebar:rgba(244,245,250,.86);--bg-bar:rgba(242,243,248,.82);--fill:rgba(20,22,40,.06);--fill-2:rgba(20,22,40,.1);--fill-3:rgba(20,22,40,.16);--sep:rgba(20,22,40,.1);--sep-strong:rgba(20,22,40,.18);--label:#0E1024;--label-2:#5C6178;--label-3:#8B90A5;--label-4:#B7BBCB;--on-accent:#FFFFFF;--accent:#4A57D2;--accent-hover:#3F4BC0;--accent-soft:rgba(74,87,210,.12);--accent-soft-2:rgba(74,87,210,.2);--running:#4A57D2;--running-soft:rgba(74,87,210,.1);--green:#1E9E6A;--green-soft:rgba(30,158,106,.12);--red:#D6453D;--red-soft:rgba(214,69,61,.1);--orange:#D97B0F;--r-cell:12px;--r-card:14px;--r-btn:10px;--r-pill:999px;--r-sheet:20px;--r-window:12px;--sh-card:0 1px 2px rgba(14,16,36,.04),0 0 0 1px rgba(14,16,36,.04);--sh-float:0 12px 32px -8px rgba(14,16,36,.22),0 2px 6px rgba(14,16,36,.08),0 0 0 1px rgba(14,16,36,.05);--sh-sheet:0 -8px 40px -8px rgba(14,16,36,.24);--sh-thumb:0 2px 6px rgba(0,0,0,.25);--sh-seg:0 1px 2px rgba(0,0,0,.14),0 3px 8px -2px rgba(0,0,0,.12),0 0 0 .5px var(--sep);--blur:saturate(180%) blur(22px);--scrim:rgba(10,11,20,.42);--dash:rgba(255,255,255,.7);--ease:cubic-bezier(.2,0,.2,1);--ease-out:cubic-bezier(.16,1,.3,1);--ease-sheet:cubic-bezier(.32,.72,0,1);--t-fast:.14s;--t-base:.22s;--t-sheet:.42s}[data-theme=dark]{--bg:#15161F;--bg-elev:#1F2030;--bg-elev-2:#282A3C;--bg-sidebar:rgba(24,25,36,.86);--bg-bar:rgba(21,22,31,.78);--fill:rgba(255,255,255,.07);--fill-2:rgba(255,255,255,.11);--fill-3:rgba(255,255,255,.17);--sep:rgba(255,255,255,.09);--sep-strong:rgba(255,255,255,.16);--label:#F3F4FA;--label-2:#A7ABC0;--label-3:#7D8199;--label-4:#575B70;--accent:#7A84E6;--accent-hover:#8C95EC;--accent-soft:rgba(122,132,230,.16);--accent-soft-2:rgba(122,132,230,.26);--running:#8A93EC;--running-soft:rgba(122,132,230,.14);--green:#3CC08A;--green-soft:rgba(60,192,138,.14);--red:#F06B62;--red-soft:rgba(240,107,98,.14);--orange:#F0A24B;--chart-8:#9A9FB4;--sh-card:0 1px 2px rgba(0,0,0,.2),0 0 0 1px rgba(255,255,255,.04);--sh-float:0 16px 40px -8px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.08);--sh-sheet:0 -8px 40px -8px rgba(0,0,0,.6);--scrim:rgba(0,0,0,.55)}:root{--text-display-1:64px;--leading-display-1:1.02;--tracking-display-1:-.03em;--text-display-2:48px;--leading-display-2:1.06;--tracking-display-2:-.025em;--text-large-title:30px;--text-large-title-phone:34px;--tracking-large-title:-.025em;--leading-large-title:1.1;--text-title:17px;--text-row:15px;--text-subtitle:12.5px;--text-section:12px;--tracking-section:.04em;--text-body:14px;--text-body-lg:18px;--leading-body-lg:1.6;--text-caption:12px;--text-footnote:11.5px;--text-timer-xl:44px;--text-timer-lg:28px;--text-timer-md:22px;--text-timer-sm:15px;--weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700}:root{--space-0:0px;--space-1:2px;--space-2:4px;--space-3:8px;--space-4:12px;--space-5:16px;--space-6:20px;--space-7:24px;--space-8:32px;--space-9:40px;--space-10:48px;--space-11:64px;--space-12:80px;--space-13:112px;--space-14:160px;--section-y:112px;--section-y-tight:72px;--container-max:1160px;--container-prose:660px;--gutter:24px;--sidebar-w:232px;--content-max:1040px;--content-max-narrow:760px;--gutter-phone:16px;--row-h:46px;--row-h-sub:56px;--row-h-dense:40px;--control-h-sm:30px;--control-h-md:36px;--control-h-lg:44px;--control-h-xl:50px;--pill-h:46px;--pill-h-compact:30px;--timer-bar-h:56px;--timer-bar-pad:72px;--inset-top:env(safe-area-inset-top,0px);--inset-bottom:env(safe-area-inset-bottom,0px);--tab-bar-inset-ios:max(10px,calc(var(--inset-bottom) - 12px));--tab-bar-h-ios:calc(42px + var(--tab-bar-inset-ios));--timer-bar-bottom-ios:calc(var(--tab-bar-h-ios) + 10px);--tab-bar-pad-ios:calc(var(--tab-bar-h-ios) + 16px);--nav-bar-h-android:80px;--nav-bar-pad-android:96px;--toggle-w:46px;--toggle-h:28px;--field-h:38px;--seg-h:36px;--seg-h-sm:30px;--icon-square:28px}*,*:before,*:after{box-sizing:border-box}html,body{margin:0}html{-webkit-text-size-adjust:100%}body{font-family:var(--font-sans);color:var(--label);background:var(--bg);-webkit-font-smoothing:antialiased;font-size:var(--text-body);line-height:1.45}button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}input,select,textarea{font:inherit;color:inherit}a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.num{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}::selection{background:var(--accent-soft-2)}@keyframes t-pulse{0%,to{opacity:1}50%{opacity:.35}}@keyframes t-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes t-sheet{0%{transform:translateY(100%)}to{transform:none}}@keyframes t-drawer{0%{transform:translate(-100%)}to{transform:none}}@keyframes t-scrim{0%{opacity:0}to{opacity:1}}@keyframes t-pop{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes t-island{0%{transform:scaleX(.6);opacity:.4}to{transform:none;opacity:1}}.view-in{animation:t-in var(--t-base) var(--ease-out) both}.press{transition:transform var(--t-fast) var(--ease),background var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease)}.press:active{transform:scale(.98)}.row-press:active{background:var(--fill-2)!important}@media (prefers-reduced-motion:reduce){*{animation-duration:0ms!important;transition-duration:0ms!important}}.check:focus-within .box[data-v-8c783040]{outline:2px solid var(--accent);outline-offset:2px}
|
package/dist/timebraid-vue.js
CHANGED
|
@@ -861,18 +861,25 @@ const gi = /* @__PURE__ */ Z({
|
|
|
861
861
|
position: A.teleport ? "fixed" : "absolute",
|
|
862
862
|
inset: 0,
|
|
863
863
|
zIndex: 80,
|
|
864
|
-
background: "var(--scrim)",
|
|
865
|
-
backdropFilter: "blur(4px)",
|
|
866
|
-
WebkitBackdropFilter: "blur(4px)",
|
|
867
864
|
display: "flex",
|
|
868
865
|
alignItems: A.mobile ? "flex-end" : "center",
|
|
869
866
|
justifyContent: "center",
|
|
870
|
-
animation: "t-scrim var(--t-base) backwards"
|
|
871
|
-
opacity: A.mobile ? Math.max(0, 1 - v.value / 600) : 1,
|
|
872
|
-
transition: a.value ? "none" : "opacity var(--t-base)"
|
|
867
|
+
animation: "t-scrim var(--t-base) backwards"
|
|
873
868
|
}),
|
|
874
869
|
onClick: b[3] || (b[3] = (W) => n("close"))
|
|
875
870
|
}, [
|
|
871
|
+
c("div", {
|
|
872
|
+
"data-backdrop": "",
|
|
873
|
+
style: J({
|
|
874
|
+
position: "absolute",
|
|
875
|
+
inset: 0,
|
|
876
|
+
background: "var(--scrim)",
|
|
877
|
+
backdropFilter: "blur(4px)",
|
|
878
|
+
WebkitBackdropFilter: "blur(4px)",
|
|
879
|
+
opacity: A.mobile ? Math.max(0, 1 - v.value / 600) : 1,
|
|
880
|
+
transition: a.value ? "none" : "opacity var(--t-base)"
|
|
881
|
+
})
|
|
882
|
+
}, null, 4),
|
|
876
883
|
c("div", {
|
|
877
884
|
ref_key: "dialog",
|
|
878
885
|
ref: f,
|
|
@@ -882,6 +889,7 @@ const gi = /* @__PURE__ */ Z({
|
|
|
882
889
|
tabindex: "-1",
|
|
883
890
|
"aria-label": A.title,
|
|
884
891
|
style: J({
|
|
892
|
+
position: "relative",
|
|
885
893
|
width: A.mobile ? "100%" : A.width + "px",
|
|
886
894
|
maxWidth: "100%",
|
|
887
895
|
background: "var(--bg)",
|
|
@@ -1675,7 +1683,7 @@ const Ee = { style: { position: "relative", display: "inline-block" } }, he = {
|
|
|
1675
1683
|
props: {
|
|
1676
1684
|
timers: {},
|
|
1677
1685
|
android: { type: Boolean, default: !1 },
|
|
1678
|
-
bottom: { default:
|
|
1686
|
+
bottom: { default: "var(--timer-bar-bottom-ios)" }
|
|
1679
1687
|
},
|
|
1680
1688
|
emits: ["open", "stop", "stopAll"],
|
|
1681
1689
|
setup(A, { emit: l }) {
|
|
@@ -1704,7 +1712,7 @@ const Ee = { style: { position: "relative", display: "inline-block" } }, he = {
|
|
|
1704
1712
|
position: "absolute",
|
|
1705
1713
|
left: "12px",
|
|
1706
1714
|
right: "12px",
|
|
1707
|
-
bottom: A.bottom + "px",
|
|
1715
|
+
bottom: typeof A.bottom == "number" ? A.bottom + "px" : A.bottom,
|
|
1708
1716
|
height: "var(--timer-bar-h)",
|
|
1709
1717
|
borderRadius: A.android ? "var(--r-card)" : "var(--r-sheet)",
|
|
1710
1718
|
background: "var(--bg-elev)",
|
|
@@ -1846,7 +1854,7 @@ const Ee = { style: { position: "relative", display: "inline-block" } }, he = {
|
|
|
1846
1854
|
], 4)
|
|
1847
1855
|
], 4));
|
|
1848
1856
|
}
|
|
1849
|
-
}), si = ["aria-current", "onClick"], ai = { style: { "font-size": "10px", "font-weight": "500" } }, mi = {
|
|
1857
|
+
}), si = ["aria-current", "onClick"], ai = { style: { "font-size": "10px", "line-height": "12px", "font-weight": "500" } }, mi = {
|
|
1850
1858
|
key: 0,
|
|
1851
1859
|
"data-indicator": "",
|
|
1852
1860
|
style: { position: "absolute", bottom: "8px", left: "50%", width: "134px", height: "5px", "border-radius": "var(--r-pill)", background: "var(--label)", transform: "translateX(-50%)", opacity: ".9" }
|
|
@@ -1874,8 +1882,9 @@ const Ee = { style: { position: "relative", display: "inline-block" } }, he = {
|
|
|
1874
1882
|
borderTop: "1px solid var(--sep)",
|
|
1875
1883
|
display: "grid",
|
|
1876
1884
|
gridTemplateColumns: `repeat(${A.items.length}, 1fr)`,
|
|
1877
|
-
|
|
1878
|
-
|
|
1885
|
+
alignContent: "start",
|
|
1886
|
+
paddingTop: "4px",
|
|
1887
|
+
paddingBottom: "var(--tab-bar-inset-ios)",
|
|
1879
1888
|
zIndex: 6
|
|
1880
1889
|
})
|
|
1881
1890
|
}, [
|
|
@@ -1883,7 +1892,7 @@ const Ee = { style: { position: "relative", display: "inline-block" } }, he = {
|
|
|
1883
1892
|
key: x.id,
|
|
1884
1893
|
type: "button",
|
|
1885
1894
|
"aria-current": x.id === A.modelValue ? "page" : void 0,
|
|
1886
|
-
style: J({ display: "grid", justifyItems: "center", gap: "
|
|
1895
|
+
style: J({ display: "grid", justifyItems: "center", alignContent: "start", gap: "2px", color: x.id === A.modelValue ? "var(--accent)" : "var(--label-3)", transition: "color var(--t-fast)" }),
|
|
1887
1896
|
onClick: (s) => e("update:modelValue", x.id)
|
|
1888
1897
|
}, [
|
|
1889
1898
|
c("span", {
|