@flux-ui/internals 3.0.0-next.6 → 3.0.0-next.60
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/README.md +36 -0
- package/dist/composable/index.d.ts +2 -17
- package/dist/composable/index.js +1 -0
- package/dist/composable-Cp0PgZry.js +2 -0
- package/dist/composable-Cp0PgZry.js.map +1 -0
- package/dist/data/index.d.ts +246 -1
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +2 -0
- package/dist/data/index.js.map +1 -0
- package/dist/directive/index.d.ts +2 -3
- package/dist/directive/index.js +1 -0
- package/dist/directive-Dprka-AO.js +2 -0
- package/dist/directive-Dprka-AO.js.map +1 -0
- package/dist/index-4qwf2pQQ.d.ts +136 -0
- package/dist/index-4qwf2pQQ.d.ts.map +1 -0
- package/dist/index-B79OP5Th.d.ts +70 -0
- package/dist/index-B79OP5Th.d.ts.map +1 -0
- package/dist/index-BRS2s2tX.d.ts +14 -0
- package/dist/index-BRS2s2tX.d.ts.map +1 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -0
- package/dist/util/index.d.ts +2 -13
- package/dist/util/index.js +1 -0
- package/dist/util-CwaOsSvo.js +2 -0
- package/dist/util-CwaOsSvo.js.map +1 -0
- package/package.json +33 -18
- package/src/composable/index.ts +3 -5
- package/src/composable/useCalendar.ts +1 -1
- package/src/composable/useCalendarMonthSwitcher.ts +1 -2
- package/src/composable/useCalendarTimeGrid.ts +103 -0
- package/src/composable/useCalendarYearSwitcher.ts +1 -2
- package/src/composable/useFocusTrap.ts +3 -5
- package/src/composable/useFocusTrapLock.ts +1 -2
- package/src/composable/useFocusTrapReturn.ts +11 -7
- package/src/composable/useFocusTrapSubscription.ts +1 -2
- package/src/composable/useFocusZone.ts +10 -9
- package/src/composable/useInView.ts +2 -4
- package/src/composable/useKeyboardGrab.ts +152 -0
- package/src/composable/useRemembered.ts +1 -2
- package/src/composable/useScrollEdges.ts +68 -0
- package/src/composable/useScrollPosition.ts +1 -2
- package/src/directive/focusTrap.ts +4 -0
- package/src/directive/heightTransition.ts +6 -2
- package/src/directive/index.ts +1 -1
- package/src/util/animationFrameDebounce.ts +15 -0
- package/src/util/flattenVNodeTree.ts +1 -2
- package/src/util/focusTrap.ts +2 -1
- package/src/util/index.ts +2 -1
- package/src/util/unrefTemplateElement.ts +1 -1
- package/dist/composable/useCalendar.d.ts +0 -20
- package/dist/composable/useCalendarMonthSwitcher.d.ts +0 -10
- package/dist/composable/useCalendarYearSwitcher.d.ts +0 -8
- package/dist/composable/useClickOutside.d.ts +0 -4
- package/dist/composable/useComponentId.d.ts +0 -2
- package/dist/composable/useDebouncedRef.d.ts +0 -2
- package/dist/composable/useEventListener.d.ts +0 -2
- package/dist/composable/useFocusTrap.d.ts +0 -8
- package/dist/composable/useFocusTrapLock.d.ts +0 -2
- package/dist/composable/useFocusTrapReturn.d.ts +0 -2
- package/dist/composable/useFocusTrapSubscription.d.ts +0 -2
- package/dist/composable/useFocusZone.d.ts +0 -6
- package/dist/composable/useInView.d.ts +0 -6
- package/dist/composable/useInterval.d.ts +0 -2
- package/dist/composable/useMutationObserver.d.ts +0 -2
- package/dist/composable/useRemembered.d.ts +0 -2
- package/dist/composable/useScrollPosition.d.ts +0 -7
- package/dist/data/color.d.ts +0 -242
- package/dist/directive/focusTrap.d.ts +0 -5
- package/dist/directive/heightTransition.d.ts +0 -5
- package/dist/flux-internals.js +0 -4
- package/dist/flux-internals.js.map +0 -42
- package/dist/util/flattenVNodeTree.d.ts +0 -2
- package/dist/util/focusTrap.d.ts +0 -8
- package/dist/util/getBidirectionalFocusElement.d.ts +0 -1
- package/dist/util/getComponentName.d.ts +0 -7
- package/dist/util/getComponentProps.d.ts +0 -1
- package/dist/util/getExposedRef.d.ts +0 -2
- package/dist/util/getFocusableElement.d.ts +0 -1
- package/dist/util/getFocusableElements.d.ts +0 -1
- package/dist/util/getKeyboardFocusableElements.d.ts +0 -1
- package/dist/util/unrefTemplateElement.d.ts +0 -4
- package/dist/util/warn.d.ts +0 -1
- package/dist/util/wrapFocus.d.ts +0 -1
- package/src/composable/useClickOutside.ts +0 -38
- package/src/composable/useComponentId.ts +0 -8
- package/src/composable/useDebouncedRef.ts +0 -38
- package/src/composable/useInterval.ts +0 -23
- package/src/composable/useMutationObserver.ts +0 -38
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# `@flux-ui/internals`
|
|
2
|
+
|
|
3
|
+
Shared composables, utilities, directives, and data helpers used across the Flux UI packages.
|
|
4
|
+
|
|
5
|
+
Built with [`tsdown`](https://github.com/rolldown/tsdown).
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
The package exposes four sub-entry points alongside the root export:
|
|
10
|
+
|
|
11
|
+
| Entry | Contents |
|
|
12
|
+
|---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
13
|
+
| `@flux-ui/internals` | Re-exports of every entry below. |
|
|
14
|
+
| `@flux-ui/internals/composable` | `useCalendar`, `useEventListener`, `useFocusTrap`, `useFocusZone`, `useInView`, `useRemembered`, `useScrollEdges`, `useScrollPosition`, … |
|
|
15
|
+
| `@flux-ui/internals/data` | Data helpers — e.g. color utilities. |
|
|
16
|
+
| `@flux-ui/internals/directive` | Vue directives — `focusTrap`, `heightTransition`. |
|
|
17
|
+
| `@flux-ui/internals/util` | Focus helpers (`wrapFocus`, `getFocusableElement(s)`, `getKeyboardFocusableElements`, `getBidirectionalFocusElement`), `flattenVNodeTree`, `animationFrameDebounce`, `warn`, … |
|
|
18
|
+
|
|
19
|
+
## ⭐️ Prerequisites
|
|
20
|
+
|
|
21
|
+
- Bun >= 1.2.13
|
|
22
|
+
- Node >= 23
|
|
23
|
+
|
|
24
|
+
## 🚀 Getting started
|
|
25
|
+
|
|
26
|
+
1. Make sure the Flux monorepo is checked out.
|
|
27
|
+
2. Run `bun install` in the project root.
|
|
28
|
+
3. Run `bun run --cwd packages/internals build` to build the package.
|
|
29
|
+
|
|
30
|
+
## 📦 Sibling packages
|
|
31
|
+
|
|
32
|
+
- [`@flux-ui/components`](../components)
|
|
33
|
+
- [`@flux-ui/types`](../types)
|
|
34
|
+
- [`@flux-ui/statistics`](../statistics)
|
|
35
|
+
- [`@flux-ui/dashboard`](../dashboard)
|
|
36
|
+
- [`@flux-ui/application`](../application)
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export { default as useCalendarYearSwitcher } from "./useCalendarYearSwitcher";
|
|
4
|
-
export { default as useClickOutside } from "./useClickOutside";
|
|
5
|
-
export { default as useComponentId } from "./useComponentId";
|
|
6
|
-
export { default as useDebouncedRef } from "./useDebouncedRef";
|
|
7
|
-
export { default as useEventListener } from "./useEventListener";
|
|
8
|
-
export { default as useInterval } from "./useInterval";
|
|
9
|
-
export { default as useInView } from "./useInView";
|
|
10
|
-
export { default as useMutationObserver } from "./useMutationObserver";
|
|
11
|
-
export { default as useRemembered } from "./useRemembered";
|
|
12
|
-
export { default as useScrollPosition } from "./useScrollPosition";
|
|
13
|
-
export { default as useFocusTrap } from "./useFocusTrap";
|
|
14
|
-
export { default as useFocusTrapLock } from "./useFocusTrapLock";
|
|
15
|
-
export { default as useFocusTrapReturn } from "./useFocusTrapReturn";
|
|
16
|
-
export { default as useFocusTrapSubscription } from "./useFocusTrapSubscription";
|
|
17
|
-
export { default as useFocusZone } from "./useFocusZone";
|
|
1
|
+
import { a as export_default$5, c as export_default$11, d as defaultAnnounce, f as useKeyboardGrab, g as export_default, h as export_default$1, i as export_default$6, l as export_default$10, m as export_default$2, n as export_default$8, o as export_default$13, p as export_default$3, r as export_default$7, s as export_default$12, t as export_default$9, u as export_default$4 } from "../index-4qwf2pQQ.js";
|
|
2
|
+
export { defaultAnnounce as defaultKeyboardGrabAnnounce, export_default as useCalendar, export_default$1 as useCalendarMonthSwitcher, export_default$2 as useCalendarTimeGrid, export_default$3 as useCalendarYearSwitcher, export_default$4 as useEventListener, export_default$5 as useFocusTrap, export_default$6 as useFocusTrapLock, export_default$7 as useFocusTrapReturn, export_default$8 as useFocusTrapSubscription, export_default$9 as useFocusZone, export_default$10 as useInView, useKeyboardGrab, export_default$11 as useRemembered, export_default$12 as useScrollEdges, export_default$13 as useScrollPosition };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"../composable-Cp0PgZry.js";export{n as defaultKeyboardGrabAnnounce,i as useCalendar,a as useCalendarMonthSwitcher,c as useCalendarTimeGrid,d as useCalendarYearSwitcher,h as useEventListener,f as useFocusTrap,e as useFocusTrapLock,o as useFocusTrapReturn,l as useFocusTrapSubscription,m as useFocusZone,s as useInView,r as useKeyboardGrab,t as useRemembered,p as useScrollEdges,u as useScrollPosition};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,d as t,f as n,n as r,r as i,s as a,t as o}from"./util-CwaOsSvo.js";import{computed as s,onMounted as c,onUnmounted as l,ref as u,toValue as d,unref as f,watch as p}from"vue";import{DateTime as m}from"luxon";import{unwrapElement as h,useMutationObserver as g}from"@basmilius/common";function _(e,t){let n=u(!1),r=u(e),i=s(()=>{let e=[],t=f(r).month,n=f(r).startOf(`month`);do e.push(n),n=n.plus({day:1});while(n.month===t);let i=e[0],a=e[e.length-1];for(let t=1;t<i.weekday;++t)e.unshift(i.minus({day:t}));for(let t=a.weekday+1;t<=7;++t)e.push(a.plus({day:t-a.weekday}));for(;e.length/7<6;){let t=e[e.length-1];for(let n=1;n<=7;++n)e.push(t.plus({day:n}))}return e}),a=s(()=>f(i).slice(0,7).map(e=>e.toLocaleString({weekday:t?.weekDayLength??`short`}))),o=s(()=>f(r).plus({month:1})),c=s(()=>f(r).minus({month:1})),l=s(()=>f(r).toLocaleString({month:t?.monthLength??`long`})),d=s(()=>f(r).year.toString());function p(e){n.value=r.value>e,r.value=e}function m(){p(f(r).plus({month:1}))}function h(){p(f(r).minus({month:1}))}return{isTransitioningToPast:n,viewDate:r,viewDateNext:o,viewDatePrevious:c,viewMonth:l,viewYear:d,dates:i,days:a,setViewDate:p,nextMonth:m,previousMonth:h}}function v(e,t){return{months:s(()=>{let n=[],r=f(e),i=r.startOf(`year`);for(;i.month<=12&&i.year===r.year;)n.push({date:i,label:i.toLocaleString({month:t})}),i=i.plus({months:1});return n})}}function y(e,t){return t===7?e.startOf(`week`):e.startOf(`day`)}function b(e){return e===7?{week:1}:e===2?{day:2}:{day:1}}function x(e,t){let n=u(!1),r=u(y(e,d(t)));p(()=>d(t),e=>{r.value=y(f(r),e)});let i=s(()=>{let e=f(r),n=d(t),i=[];for(let t=0;t<n;++t)i.push(e.plus({day:t}));return i}),a=s(()=>{let e=f(i),n=e[0],r=e[e.length-1];if(d(t)===1)return n.toLocaleString({weekday:`long`,day:`numeric`,month:`long`,year:`numeric`});let a=n.month===r.month,o=n.year===r.year;return`${n.toLocaleString(a&&o?{weekday:`short`,day:`numeric`}:{weekday:`short`,day:`numeric`,month:`short`})} – ${r.toLocaleString({weekday:`short`,day:`numeric`,month:`short`,year:o?void 0:`numeric`})}`});function o(e){let i=y(e,d(t));n.value=f(r)>i,r.value=i}function c(){o(f(r).plus(b(d(t))))}function l(){o(f(r).minus(b(d(t))))}return{isTransitioningToPast:n,viewDate:r,viewDates:i,rangeLabel:a,setViewDate:o,next:c,previous:l}}function S(e,t=10){let n=u(0),r=s(()=>{let r=f(e).year,i=[],a=r-r%t+f(n)*t;for(let e=0;e<t;++e)i.push(a+e);return i});function i(){++n.value}function a(){--n.value}return p(e,()=>n.value=0),{years:r,next:i,previous:a}}let C=null;function w(){if(C)return C;if(typeof document>`u`)return null;let e=document.createElement(`div`);return e.setAttribute(`role`,`status`),e.setAttribute(`aria-live`,`polite`),e.setAttribute(`aria-atomic`,`true`),e.style.cssText=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,document.body.appendChild(e),C=e,e}function T(e){let t=w();t&&(t.textContent=``,requestAnimationFrame(()=>{t.textContent=e}))}function E(e){let t=u(null);e.announce;let n=s(()=>{let t=f(e.itemId),n=f(e.grabbedId);return t!=null&&n===t});function r(){t.value=null}function i(r){if(f(e.isDraggable)&&f(e.itemId)!=null){if(!n.value){(r.key===` `||r.key===`Enter`)&&(r.preventDefault(),t.value=e.onGrab());return}switch(r.key){case`ArrowUp`:r.preventDefault(),e.onMove(`up`);break;case`ArrowDown`:r.preventDefault(),e.onMove(`down`);break;case`ArrowLeft`:r.preventDefault(),e.onMove(`left`);break;case`ArrowRight`:r.preventDefault(),e.onMove(`right`);break;case` `:case`Enter`:{r.preventDefault();let n=t.value;t.value=null,n!==null&&e.onCommit(n);break}case`Escape`:{r.preventDefault();let n=t.value;t.value=null,n!==null&&e.onCancel(n);break}}}}return{isGrabbed:n,handleKeyDown:i,release:r}}function D(e,t,n,r={passive:!0}){p(e,(e,i,a)=>{e&&(e.addEventListener(t,n,r),a(()=>e.removeEventListener(t,n)))},{immediate:!0})}function O(t,n={}){let r=u(n.initial??!1);return p(t,(i,a,o)=>{let s=e(t);if(!s)return;let c=new IntersectionObserver(e=>r.value=e[0]?.isIntersecting??!1,n);c.observe(s),o(()=>c.disconnect())},{immediate:!0}),r}function k(e,t){let n=`flux/${e}`,r=u(i()??t);function i(){if(n in localStorage){let e=JSON.parse(localStorage.getItem(n));return Array.isArray(e)&&e[0]===`DateTime`&&(e=m.fromISO(e[1])),e}return null}return p(r,e=>{let t=e;m.isDateTime(e)&&(t=[`DateTime`,e.toISO({includeOffset:!0,extendedZone:!0})]),localStorage.setItem(n,JSON.stringify(t))}),r}function A(t){let n=u(!0),r=u(!0);return p(t,(i,a,o)=>{let s=e(t);if(!s)return;let c=()=>{let{scrollTop:e,scrollHeight:t,clientHeight:i}=s;n.value=e<=0,r.value=Math.ceil(e+i)>=t},l=new ResizeObserver(c);l.observe(s);for(let e of Array.from(s.children))l.observe(e);let u=new MutationObserver(e=>{for(let t of e){for(let e of Array.from(t.addedNodes))e instanceof Element&&l.observe(e);for(let e of Array.from(t.removedNodes))e instanceof Element&&l.unobserve(e)}c()});u.observe(s,{childList:!0}),s.addEventListener(`scroll`,c,{passive:!0}),c(),o(()=>{s.removeEventListener(`scroll`,c),l.disconnect(),u.disconnect()})},{immediate:!0}),{isAtStart:n,isAtEnd:r}}function j(e){let t=u(0),n=u(0);return e||=u(document),D(e,`scroll`,()=>{let r=f(e);r instanceof Document&&(r=r.scrollingElement),t.value=r?.scrollLeft??0,n.value=r?.scrollTop??0}),{x:t,y:n}}let M=0;function N(e=!1){let t=u(`focus-trap-${++M}`),n=u(!1);return c(()=>r.add(f(t),e=>n.value=e,e)),l(()=>r.remove(f(t))),n}function P(t,n){p(t,(r,i,a)=>{if(!e(t)||f(n))return;let o=document.activeElement;a(()=>{requestAnimationFrame(()=>o?.focus())})})}function F(t,r={}){if(o)return;let{disable:a=u(!1),disableReturn:s=u(!1),attachTo:c=null}=r,l=N(!a);P(t,s),p(t,(r,a,o)=>{let s=e(t),u=c||document;l.value&&s&&document.activeElement&&!s.contains(document.activeElement)&&!s.querySelector(`[autofocus]`)&&i(s,document.activeElement,!0);function d(e){if(!l.value||!s)return;let t=e.target||document.body;s.contains(t)||(e.preventDefault(),e.stopImmediatePropagation(),i(s,t))}function f(e){if(!l.value||!s)return;(!e.relatedTarget||e.relatedTarget===document.body)&&(e.preventDefault(),s.focus());let t=e.target||document.body;s.contains(t)||i(s,t)}if(u.addEventListener(`focusin`,d,{capture:!0}),u.addEventListener(`focusout`,f,{capture:!0}),s){let e=n(s),t=e.findIndex(e=>e.classList.contains(`is-active`)),r=e.findIndex(e=>!e.hasAttribute(`aria-disabled`)),i=e[0];t>-1&&(i=e[t]),r>-1&&(i=e[r]),i&&i.focus()}o(()=>{u.removeEventListener(`focusin`,d),u.removeEventListener(`focusout`,f)})},{immediate:!0}),p(()=>a,()=>{let r=e(t);if(l.value=!a,a||!r)return;let i=n(r);i.includes(document.activeElement)||i[0]?.focus()},{immediate:!0})}function I(e){let t=u(null);c(()=>t.value=r.subscribe(e)),l(()=>t.value?.())}function L(e,{cycle:t=!0,direction:r=`bidirectional`}={}){g(e,()=>a(i(),!1));function i(){let t=n(h(e)),r=t.findIndex(e=>e.classList.contains(`is-active`)),i=t.findIndex(e=>!e.hasAttribute(`aria-disabled`));return r>-1?r:i>-1?i:0}function a(t,r=!0){let i=n(h(e));i.forEach((e,n)=>e.tabIndex=n===t?0:-1),r&&i[t]?.focus()}function o(i){let o=h(e),s=n(o);if(![`Enter`,` `].includes(i.key))switch(r){case`bidirectional`:R(i,o,s,a);break;case`horizontal`:case`vertical`:z(i,o,t,r,s,a);break}}p(e,(t,n,r)=>{let s=h(e);s&&(s.addEventListener(`keydown`,o),a(i(),!1),r(()=>s.removeEventListener(`keydown`,o)))},{immediate:!0})}function R(e,n,r,i){let a;switch(e.key){case`ArrowUp`:a=`up`;break;case`ArrowDown`:a=`down`;break;case`ArrowLeft`:a=`left`;break;case`ArrowRight`:a=`right`;break;default:return}let o=t(n,document.activeElement,a);o&&i(r.indexOf(o)),e.preventDefault()}function z(e,t,n,r,i,o){let s;if(e.key===(r===`horizontal`?`ArrowLeft`:`ArrowUp`))s=-1;else if(e.key===(r===`horizontal`?`ArrowRight`:`ArrowDown`))s=1;else return;let c=a(t,s);c?o(i.indexOf(c)):n&&o(s===1?0:i.length-1),e.preventDefault()}export{N as a,k as c,T as d,E as f,_ as g,v as h,P as i,O as l,x as m,I as n,j as o,S as p,F as r,A as s,L as t,D as u};
|
|
2
|
+
//# sourceMappingURL=composable-Cp0PgZry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composable-Cp0PgZry.js","names":["unrefTemplateElement","unrefTemplateElement","FOCUS_TRAP_LOCKS","unrefTemplateElement","useFocusTrapLock","unrefTemplateElement","getFocusableElements","FOCUS_TRAP_LOCKS","getFocusableElements","getBidirectionalFocusElement","getFocusableElement"],"sources":["../src/composable/useCalendar.ts","../src/composable/useCalendarMonthSwitcher.ts","../src/composable/useCalendarTimeGrid.ts","../src/composable/useCalendarYearSwitcher.ts","../src/composable/useKeyboardGrab.ts","../src/composable/useEventListener.ts","../src/composable/useInView.ts","../src/composable/useRemembered.ts","../src/composable/useScrollEdges.ts","../src/composable/useScrollPosition.ts","../src/composable/useFocusTrapLock.ts","../src/composable/useFocusTrapReturn.ts","../src/composable/useFocusTrap.ts","../src/composable/useFocusTrapSubscription.ts","../src/composable/useFocusZone.ts"],"sourcesContent":["import type { DateTime } from 'luxon';\nimport { computed, ref, type Ref, unref } from 'vue';\n\nexport default function (initialDate: DateTime, options?: UseCalendarOptions): UseCalendarReturn {\n const isTransitioningToPast = ref(false);\n const viewDate = ref(initialDate);\n\n const dates = computed<DateTime[]>(() => {\n const dates: DateTime[] = [];\n const month = unref(viewDate).month;\n let current = unref(viewDate).startOf('month');\n\n do {\n dates.push(current);\n current = current.plus({day: 1});\n } while (current.month === month);\n\n const first = dates[0];\n const last = dates[dates.length - 1];\n\n for (let i = 1; i < first.weekday; ++i) {\n dates.unshift(first.minus({day: i}));\n }\n\n for (let i = last.weekday + 1; i <= 7; ++i) {\n dates.push(last.plus({day: i - last.weekday}));\n }\n\n while (dates.length / 7 < 6) {\n const last = dates[dates.length - 1];\n\n for (let i = 1; i <= 7; ++i) {\n dates.push(last.plus({day: i}));\n }\n }\n\n return dates;\n });\n\n const days = computed(() => unref(dates)\n .slice(0, 7)\n .map(d => d.toLocaleString({weekday: options?.weekDayLength ?? 'short'})));\n\n const viewDateNext = computed(() => unref(viewDate).plus({month: 1}));\n const viewDatePrevious = computed(() => unref(viewDate).minus({month: 1}));\n const viewMonth = computed(() => unref(viewDate).toLocaleString({month: options?.monthLength ?? 'long'}));\n const viewYear = computed(() => unref(viewDate).year.toString());\n\n function setViewDate(date: DateTime): void {\n isTransitioningToPast.value = viewDate.value > date;\n viewDate.value = date;\n }\n\n function nextMonth(): void {\n setViewDate(unref(viewDate).plus({month: 1}));\n }\n\n function previousMonth(): void {\n setViewDate(unref(viewDate).minus({month: 1}));\n }\n\n return {\n isTransitioningToPast,\n viewDate,\n viewDateNext,\n viewDatePrevious,\n viewMonth,\n viewYear,\n dates,\n days,\n setViewDate,\n nextMonth,\n previousMonth\n };\n}\n\ntype UseCalendarOptions = {\n readonly monthLength?: 'short' | 'long';\n readonly weekDayLength?: 'short' | 'long';\n};\n\ntype UseCalendarReturn = {\n readonly isTransitioningToPast: Ref<boolean>;\n readonly viewDate: Ref<DateTime>;\n readonly viewDateNext: Ref<DateTime>;\n readonly viewDatePrevious: Ref<DateTime>;\n readonly viewMonth: Ref<string>;\n readonly viewYear: Ref<string>;\n readonly dates: Ref<DateTime[]>;\n readonly days: Ref<string[]>;\n\n setViewDate(date: DateTime): void;\n nextMonth(): void;\n previousMonth(): void;\n};\n","import type { DateTime } from 'luxon';\nimport { computed, type Ref, unref } from 'vue';\n\nexport default function (currentDate: Ref<DateTime>, displayLength: 'short' | 'long'): UseCalendarMonthSwitcherReturn {\n const months = computed(() => {\n const months: MonthEntry[] = [];\n const now = unref(currentDate);\n let current = now.startOf('year');\n\n while (current.month <= 12 && current.year === now.year) {\n months.push({\n date: current,\n label: current.toLocaleString({month: displayLength})\n });\n current = current.plus({months: 1});\n }\n\n return months;\n });\n\n return {\n months\n };\n}\n\ntype MonthEntry = {\n readonly date: DateTime;\n readonly label: string;\n};\n\ntype UseCalendarMonthSwitcherReturn = {\n readonly months: Ref<MonthEntry[]>;\n};\n","import type { DateTime } from 'luxon';\nimport { computed, type ComputedRef, type MaybeRefOrGetter, ref, type Ref, toValue, unref, watch } from 'vue';\n\nexport type UseCalendarTimeGridDayCount = 1 | 2 | 7;\n\nexport type UseCalendarTimeGridReturn = {\n readonly isTransitioningToPast: Ref<boolean>;\n readonly viewDate: Ref<DateTime>;\n readonly viewDates: ComputedRef<DateTime[]>;\n readonly rangeLabel: ComputedRef<string>;\n\n setViewDate(date: DateTime): void;\n next(): void;\n previous(): void;\n};\n\nfunction getAnchor(date: DateTime, dayCount: UseCalendarTimeGridDayCount): DateTime {\n return dayCount === 7 ? date.startOf('week') : date.startOf('day');\n}\n\nfunction stepDuration(dayCount: UseCalendarTimeGridDayCount): { day?: number; week?: number } {\n if (dayCount === 7) {\n return {week: 1};\n }\n\n if (dayCount === 2) {\n return {day: 2};\n }\n\n return {day: 1};\n}\n\nexport default function (\n initialDate: DateTime,\n dayCount: MaybeRefOrGetter<UseCalendarTimeGridDayCount>\n): UseCalendarTimeGridReturn {\n const isTransitioningToPast = ref(false);\n const viewDate = ref<DateTime>(getAnchor(initialDate, toValue(dayCount)));\n\n // Re-anchor on dayCount change (e.g. switching from week to two-days view).\n watch(() => toValue(dayCount), (count) => {\n viewDate.value = getAnchor(unref(viewDate), count);\n });\n\n const viewDates = computed<DateTime[]>(() => {\n const anchor = unref(viewDate);\n const count = toValue(dayCount);\n const out: DateTime[] = [];\n\n for (let i = 0; i < count; ++i) {\n out.push(anchor.plus({day: i}));\n }\n\n return out;\n });\n\n const rangeLabel = computed<string>(() => {\n const dates = unref(viewDates);\n const first = dates[0];\n const last = dates[dates.length - 1];\n const count = toValue(dayCount);\n\n if (count === 1) {\n return first.toLocaleString({weekday: 'long', day: 'numeric', month: 'long', year: 'numeric'});\n }\n\n const sameMonth = first.month === last.month;\n const sameYear = first.year === last.year;\n\n const firstFmt = first.toLocaleString(\n sameMonth && sameYear\n ? {weekday: 'short', day: 'numeric'}\n : {weekday: 'short', day: 'numeric', month: 'short'}\n );\n const lastFmt = last.toLocaleString({weekday: 'short', day: 'numeric', month: 'short', year: sameYear ? undefined : 'numeric'});\n\n return `${firstFmt} – ${lastFmt}`;\n });\n\n function setViewDate(date: DateTime): void {\n const anchor = getAnchor(date, toValue(dayCount));\n isTransitioningToPast.value = unref(viewDate) > anchor;\n viewDate.value = anchor;\n }\n\n function next(): void {\n setViewDate(unref(viewDate).plus(stepDuration(toValue(dayCount))));\n }\n\n function previous(): void {\n setViewDate(unref(viewDate).minus(stepDuration(toValue(dayCount))));\n }\n\n return {\n isTransitioningToPast,\n viewDate,\n viewDates,\n rangeLabel,\n setViewDate,\n next,\n previous\n };\n}\n","import type { DateTime } from 'luxon';\nimport { computed, ref, type Ref, unref, watch } from 'vue';\n\nexport default function (currentDate: Ref<DateTime>, limit: number = 10): UseCalendarYearSwitcherReturn {\n const index = ref(0);\n\n const years = computed(() => {\n const year = unref(currentDate).year;\n const years: number[] = [];\n const start = year - (year % limit) + unref(index) * limit;\n\n for (let i = 0; i < limit; ++i) {\n years.push(start + i);\n }\n\n return years;\n });\n\n function next(): void {\n ++index.value;\n }\n\n function previous(): void {\n --index.value;\n }\n\n watch(currentDate, () => index.value = 0);\n\n return {\n years,\n\n next,\n previous\n };\n}\n\ntype UseCalendarYearSwitcherReturn = {\n readonly years: Ref<number[]>;\n\n next(): void;\n previous(): void;\n};\n","import { computed, type ComputedRef, ref, type Ref, unref } from 'vue';\n\nexport type KeyboardGrabDirection = 'up' | 'down' | 'left' | 'right';\n\nexport type UseKeyboardGrabOptions<TPos> = {\n readonly isDraggable: Ref<boolean>;\n readonly itemId: Ref<string | number | null | undefined>;\n readonly grabbedId: Ref<string | number | null>;\n onGrab(): TPos;\n onMove(direction: KeyboardGrabDirection): void;\n onCommit(origin: TPos): void;\n onCancel(origin: TPos): void;\n announce?(message: string): void;\n};\n\nexport type UseKeyboardGrabReturn = {\n readonly isGrabbed: ComputedRef<boolean>;\n handleKeyDown(evt: KeyboardEvent): void;\n release(): void;\n};\n\nlet liveRegion: HTMLElement | null = null;\n\nfunction ensureLiveRegion(): HTMLElement {\n if (liveRegion) {\n return liveRegion;\n }\n\n if (typeof document === 'undefined') {\n return null as unknown as HTMLElement;\n }\n\n const region = document.createElement('div');\n region.setAttribute('role', 'status');\n region.setAttribute('aria-live', 'polite');\n region.setAttribute('aria-atomic', 'true');\n region.style.cssText = 'position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0';\n document.body.appendChild(region);\n liveRegion = region;\n return region;\n}\n\nexport function defaultAnnounce(message: string): void {\n const region = ensureLiveRegion();\n\n if (!region) {\n return;\n }\n\n region.textContent = '';\n requestAnimationFrame(() => {\n region.textContent = message;\n });\n}\n\n/**\n * Generic keyboard-grab state machine. Maps Space/Enter/Escape/Arrow keys\n * onto grab/commit/cancel/move callbacks. The actual movement logic is\n * delegated to `onMove` since it depends on the host component's topology.\n */\nexport default function useKeyboardGrab<TPos>(options: UseKeyboardGrabOptions<TPos>): UseKeyboardGrabReturn {\n const origin = ref<TPos | null>(null);\n const announce = options.announce ?? defaultAnnounce;\n\n const isGrabbed = computed<boolean>(() => {\n const id = unref(options.itemId);\n const grabbed = unref(options.grabbedId);\n\n return id != null && grabbed === id;\n });\n\n function release(): void {\n origin.value = null;\n }\n\n function handleKeyDown(evt: KeyboardEvent): void {\n if (!unref(options.isDraggable)) {\n return;\n }\n\n const id = unref(options.itemId);\n\n if (id == null) {\n return;\n }\n\n if (!isGrabbed.value) {\n if (evt.key === ' ' || evt.key === 'Enter') {\n evt.preventDefault();\n origin.value = options.onGrab() as TPos;\n }\n\n return;\n }\n\n switch (evt.key) {\n case 'ArrowUp':\n evt.preventDefault();\n options.onMove('up');\n break;\n\n case 'ArrowDown':\n evt.preventDefault();\n options.onMove('down');\n break;\n\n case 'ArrowLeft':\n evt.preventDefault();\n options.onMove('left');\n break;\n\n case 'ArrowRight':\n evt.preventDefault();\n options.onMove('right');\n break;\n\n case ' ':\n case 'Enter': {\n evt.preventDefault();\n const o = origin.value;\n origin.value = null;\n\n if (o !== null) {\n options.onCommit(o);\n }\n\n break;\n }\n\n case 'Escape': {\n evt.preventDefault();\n const o = origin.value;\n origin.value = null;\n\n if (o !== null) {\n options.onCancel(o);\n }\n\n break;\n }\n }\n\n // Suppress unused-warning when announce is unused inside the function.\n void announce;\n }\n\n return {\n isGrabbed,\n handleKeyDown,\n release\n };\n}\n","import { watch } from 'vue';\nimport type { TemplateRef } from '../util';\n\nexport default function <K extends keyof HTMLElementEventMap>(elementRef: TemplateRef<HTMLElement>, eventName: K, listener: (evt: HTMLElementEventMap[K]) => any, options: AddEventListenerOptions = {passive: true}): void {\n watch(elementRef, (element: HTMLElement, _, onCleanup) => {\n if (!element) {\n return;\n }\n\n element.addEventListener(eventName, listener, options);\n\n onCleanup(() => element.removeEventListener(eventName, listener));\n }, {immediate: true});\n}\n","import { ref, type Ref, watch } from 'vue';\nimport { type TemplateRef, unrefTemplateElement } from '../util';\n\nexport default function <TElement extends HTMLElement>(containerRef: TemplateRef<TElement>, options: UseInViewOptions = {}): Ref<boolean> {\n const inView = ref(options.initial ?? false);\n\n watch(containerRef, (_, __, onCleanup) => {\n const container = unrefTemplateElement(containerRef);\n\n if (!container) {\n return;\n }\n\n const observer = new IntersectionObserver(entries => inView.value = entries[0]?.isIntersecting ?? false, options);\n observer.observe(container);\n\n onCleanup(() => observer.disconnect());\n }, {immediate: true});\n\n return inView;\n}\n\ntype UseInViewOptions = IntersectionObserverInit & {\n readonly initial?: boolean;\n};\n","import { DateTime } from 'luxon';\nimport { ref, type Ref, watch } from 'vue';\n\nexport default function <T>(key: string, initialValue: T): Ref<T> {\n const realKey = `flux/${key}`;\n const value = ref<T>(get() ?? initialValue);\n\n function get(): T | null {\n if (realKey in localStorage) {\n let storageValue = JSON.parse(localStorage.getItem(realKey)!);\n\n if (Array.isArray(storageValue) && storageValue[0] === 'DateTime') {\n storageValue = DateTime.fromISO(storageValue[1]);\n }\n\n return storageValue;\n }\n\n return null;\n }\n\n watch(value, value => {\n let _value: T = value as T;\n\n if (DateTime.isDateTime(value)) {\n _value = ['DateTime', value.toISO({\n includeOffset: true,\n extendedZone: true\n })] as unknown as T;\n }\n\n localStorage.setItem(realKey, JSON.stringify(_value));\n });\n\n return value as Ref<T>;\n}\n","import { ref, type Ref, watch } from 'vue';\nimport { type TemplateRef, unrefTemplateElement } from '../util';\n\nexport default function <TElement extends HTMLElement>(elementRef: TemplateRef<TElement>): UseScrollEdgesReturn {\n const isAtStart = ref(true);\n const isAtEnd = ref(true);\n\n watch(elementRef, (_, __, onCleanup) => {\n const element = unrefTemplateElement(elementRef);\n\n if (!element) {\n return;\n }\n\n const update = (): void => {\n const {scrollTop, scrollHeight, clientHeight} = element;\n\n isAtStart.value = scrollTop <= 0;\n isAtEnd.value = Math.ceil(scrollTop + clientHeight) >= scrollHeight;\n };\n\n const resizeObserver = new ResizeObserver(update);\n resizeObserver.observe(element);\n\n for (const child of Array.from(element.children)) {\n resizeObserver.observe(child);\n }\n\n const mutationObserver = new MutationObserver(mutations => {\n for (const mutation of mutations) {\n for (const node of Array.from(mutation.addedNodes)) {\n if (node instanceof Element) {\n resizeObserver.observe(node);\n }\n }\n\n for (const node of Array.from(mutation.removedNodes)) {\n if (node instanceof Element) {\n resizeObserver.unobserve(node);\n }\n }\n }\n\n update();\n });\n\n mutationObserver.observe(element, {childList: true});\n element.addEventListener('scroll', update, {passive: true});\n\n update();\n\n onCleanup(() => {\n element.removeEventListener('scroll', update);\n resizeObserver.disconnect();\n mutationObserver.disconnect();\n });\n }, {immediate: true});\n\n return {\n isAtStart,\n isAtEnd\n };\n}\n\nexport type UseScrollEdgesReturn = {\n readonly isAtStart: Ref<boolean>;\n readonly isAtEnd: Ref<boolean>;\n};\n","import { ref, type Ref, unref } from 'vue';\nimport type { TemplateRef } from '../util';\nimport useEventListener from './useEventListener';\n\nexport default function <TElement extends HTMLElement>(elementRef?: TemplateRef<TElement>): UseScrollPositionReturn {\n const x = ref(0);\n const y = ref(0);\n\n if (!elementRef) {\n elementRef = ref(document);\n }\n\n useEventListener(elementRef, 'scroll', () => {\n let element = unref(elementRef);\n\n if (element instanceof Document) {\n element = element.scrollingElement;\n }\n\n x.value = element?.scrollLeft ?? 0;\n y.value = element?.scrollTop ?? 0;\n });\n\n return {\n x,\n y\n };\n}\n\nexport type UseScrollPositionReturn = {\n readonly x: Ref<number>;\n readonly y: Ref<number>;\n};\n","import { onMounted, onUnmounted, ref, type Ref, unref } from 'vue';\nimport { FOCUS_TRAP_LOCKS } from '../util';\n\nlet lockId = 0;\n\nexport default function (autoFocus: boolean = false): Ref<boolean> {\n const id = ref(`focus-trap-${++lockId}`);\n const enabled = ref(false);\n\n onMounted(() => FOCUS_TRAP_LOCKS.add(unref(id), isEnabled => enabled.value = isEnabled, autoFocus));\n onUnmounted(() => FOCUS_TRAP_LOCKS.remove(unref(id)));\n\n return enabled;\n}\n","import { type Ref, unref, watch } from 'vue';\nimport { type TemplateRef, unrefTemplateElement } from '../util';\n\nexport default function (containerRef: TemplateRef<HTMLElement>, disabled: Ref<boolean>): void {\n watch(containerRef, (_, __, onCleanup) => {\n const container = unrefTemplateElement(containerRef);\n\n if (!container || unref(disabled)) {\n return;\n }\n\n const previousTarget = document.activeElement as HTMLElement | null;\n\n onCleanup(() => {\n requestAnimationFrame(() => previousTarget?.focus());\n });\n });\n}\n","import { ref, type Ref, watch } from 'vue';\nimport { getFocusableElements, isSSR, type TemplateRef, unrefTemplateElement, wrapFocus } from '../util';\nimport useFocusTrapLock from './useFocusTrapLock';\nimport useFocusTrapReturn from './useFocusTrapReturn';\n\nexport default function (containerRef: TemplateRef<HTMLElement>, options: UseFocusTrapOptions = {}): void {\n if (isSSR) {\n return;\n }\n\n const {disable = ref(false), disableReturn = ref(false), attachTo = null} = options;\n const enabled = useFocusTrapLock(!disable);\n\n useFocusTrapReturn(containerRef, disableReturn);\n\n watch(containerRef, (_, __, onCleanup) => {\n const container = unrefTemplateElement(containerRef);\n const attach = attachTo || document;\n\n if (enabled.value && container && document.activeElement && !container.contains(document.activeElement) && !container.querySelector('[autofocus]')) {\n wrapFocus(container, document.activeElement, true);\n }\n\n function onFocusIn(evt: FocusEvent): void {\n if (!enabled.value || !container) {\n return;\n }\n\n const newFocusElement = (evt.target as HTMLElement | null) || document.body;\n\n if (container.contains(newFocusElement)) {\n return;\n }\n\n evt.preventDefault();\n evt.stopImmediatePropagation();\n\n wrapFocus(container, newFocusElement);\n }\n\n function onFocusOut(evt: FocusEvent): void {\n if (!enabled.value || !container) {\n return;\n }\n\n if (!evt.relatedTarget || evt.relatedTarget === document.body) {\n evt.preventDefault();\n container.focus();\n }\n\n const newFocusElement = (evt.target as HTMLElement | null) || document.body;\n\n if (container.contains(newFocusElement)) {\n return;\n }\n\n wrapFocus(container, newFocusElement);\n }\n\n attach.addEventListener('focusin', onFocusIn as EventListener, {capture: true});\n attach.addEventListener('focusout', onFocusOut as EventListener, {capture: true});\n\n if (container) {\n const elements = getFocusableElements(container);\n const isActiveIndex = elements.findIndex(e => e.classList.contains('is-active'));\n const notDisabledIndex = elements.findIndex(e => !e.hasAttribute('aria-disabled'));\n let element = elements[0];\n\n if (isActiveIndex > -1) {\n element = elements[isActiveIndex];\n }\n\n if (notDisabledIndex > -1) {\n element = elements[notDisabledIndex];\n }\n\n if (element) {\n element.focus();\n }\n }\n\n onCleanup(() => {\n attach.removeEventListener('focusin', onFocusIn as EventListener);\n attach.removeEventListener('focusout', onFocusOut as EventListener);\n });\n }, {immediate: true});\n\n watch(() => disable, () => {\n const container = unrefTemplateElement(containerRef);\n enabled.value = !disable;\n\n if (disable || !container) {\n return;\n }\n\n const elements = getFocusableElements(container as HTMLElement);\n\n if (elements.includes(document.activeElement as HTMLElement)) {\n return;\n }\n\n elements[0]?.focus();\n }, {immediate: true});\n}\n\ntype UseFocusTrapOptions = {\n attachTo?: HTMLElement | Document;\n disable?: Ref<boolean>;\n disableReturn?: Ref<boolean>;\n};\n","import { onMounted, onUnmounted, ref } from 'vue';\nimport { FOCUS_TRAP_LOCKS, type FocusTrapListener } from '../util';\n\nexport default function (listener: FocusTrapListener): void {\n const unsubscribe = ref<Function | null>(null);\n\n onMounted(() => unsubscribe.value = FOCUS_TRAP_LOCKS.subscribe(listener));\n onUnmounted(() => unsubscribe.value?.());\n}\n","import { unwrapElement, useMutationObserver } from '@basmilius/common';\nimport { type ComponentPublicInstance, type Ref, watch } from 'vue';\nimport { getBidirectionalFocusElement, getFocusableElement, getFocusableElements } from '../util';\n\ntype EligibleElement = ComponentPublicInstance | HTMLElement;\n\nexport default function <TElement extends EligibleElement>(containerRef: Ref<TElement>, {cycle = true, direction = 'bidirectional'}: UseFocusZoneOptions = {}): void {\n useMutationObserver(containerRef, () => updateFocus(findInitialIndex(), false));\n\n function findInitialIndex(): number {\n const container = unwrapElement(containerRef);\n const elements = getFocusableElements(container);\n const isActiveIndex = elements.findIndex(e => e.classList.contains('is-active'));\n const notDisabledIndex = elements.findIndex(e => !e.hasAttribute('aria-disabled'));\n\n if (isActiveIndex > -1) {\n return isActiveIndex;\n }\n\n if (notDisabledIndex > -1) {\n return notDisabledIndex;\n }\n\n return 0;\n }\n\n function updateFocus(elementIndex: number, doFocus: boolean = true): void {\n const container = unwrapElement(containerRef)!;\n const elements = getFocusableElements(container);\n elements.forEach((elm, index) => elm.tabIndex = index === elementIndex ? 0 : -1);\n\n doFocus && elements[elementIndex]?.focus();\n }\n\n function onKeyDown(evt: KeyboardEvent): void {\n const container = unwrapElement(containerRef)!;\n const elements = getFocusableElements(container);\n\n if (['Enter', ' '].includes(evt.key)) {\n return;\n }\n\n switch (direction) {\n case 'bidirectional':\n handleBidirectionalFocus(evt, container, elements, updateFocus);\n break;\n\n case 'horizontal':\n case 'vertical':\n handleDirectionalFocus(evt, container, cycle, direction, elements, updateFocus);\n break;\n }\n }\n\n watch(containerRef, (_, __, onCleanup) => {\n const container = unwrapElement(containerRef);\n\n if (!container) {\n return;\n }\n\n container.addEventListener('keydown', onKeyDown);\n\n updateFocus(findInitialIndex(), false);\n\n onCleanup(() => container.removeEventListener('keydown', onKeyDown));\n }, {immediate: true});\n}\n\nfunction handleBidirectionalFocus(evt: KeyboardEvent, container: HTMLElement, elements: HTMLElement[], updateFocus: (index: number) => void): void {\n let dir: 'up' | 'down' | 'left' | 'right';\n\n switch (evt.key) {\n case 'ArrowUp':\n dir = 'up';\n break;\n\n case 'ArrowDown':\n dir = 'down';\n break;\n\n case 'ArrowLeft':\n dir = 'left';\n break;\n\n case 'ArrowRight':\n dir = 'right';\n break;\n\n default:\n return;\n }\n\n const element = getBidirectionalFocusElement(container, document.activeElement as HTMLElement, dir);\n\n if (element) {\n updateFocus(elements.indexOf(element));\n }\n\n evt.preventDefault();\n}\n\nfunction handleDirectionalFocus(evt: KeyboardEvent, container: HTMLElement, cycle: boolean, direction: 'horizontal' | 'vertical', elements: HTMLElement[], updateFocus: (index: number) => void): void {\n let dir: number;\n\n if (evt.key === (direction === 'horizontal' ? 'ArrowLeft' : 'ArrowUp')) {\n dir = -1;\n } else if (evt.key === (direction === 'horizontal' ? 'ArrowRight' : 'ArrowDown')) {\n dir = 1;\n } else {\n return;\n }\n\n const element = getFocusableElement(container, dir);\n\n if (element) {\n updateFocus(elements.indexOf(element));\n } else if (cycle) {\n updateFocus(dir === 1 ? 0 : elements.length - 1);\n }\n\n evt.preventDefault();\n}\n\ntype UseFocusZoneOptions = {\n readonly cycle?: boolean;\n readonly direction?: 'bidirectional' | 'horizontal' | 'vertical';\n};\n"],"mappings":"wSAGA,SAAA,EAAyB,EAAuB,EAAiD,CAC7F,IAAM,EAAwB,EAAI,GAAM,CAClC,EAAW,EAAI,EAAY,CAE3B,EAAQ,MAA2B,CACrC,IAAM,EAAoB,EAAE,CACtB,EAAQ,EAAM,EAAS,CAAC,MAC1B,EAAU,EAAM,EAAS,CAAC,QAAQ,QAAQ,CAE9C,GACI,EAAM,KAAK,EAAQ,CACnB,EAAU,EAAQ,KAAK,CAAC,IAAK,EAAE,CAAC,OAC3B,EAAQ,QAAU,GAE3B,IAAM,EAAQ,EAAM,GACd,EAAO,EAAM,EAAM,OAAS,GAElC,IAAK,IAAI,EAAI,EAAG,EAAI,EAAM,QAAS,EAAE,EACjC,EAAM,QAAQ,EAAM,MAAM,CAAC,IAAK,EAAE,CAAC,CAAC,CAGxC,IAAK,IAAI,EAAI,EAAK,QAAU,EAAG,GAAK,EAAG,EAAE,EACrC,EAAM,KAAK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,OAGJ,IAAM,EAAUC,EAAoB,EAAW,EAAI,CAE/C,EACA,EAAY,EAAS,QAAQ,EAAQ,CAAC,CAC/B,GACP,EAAY,IAAQ,EAAI,EAAI,EAAS,OAAS,EAAE,CAGpD,EAAI,gBAAgB"}
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1 +1,246 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/data/color.d.ts
|
|
2
|
+
declare const slate50 = "#f8fafc";
|
|
3
|
+
declare const slate100 = "#f1f5f9";
|
|
4
|
+
declare const slate200 = "#e2e8f0";
|
|
5
|
+
declare const slate300 = "#cbd5e1";
|
|
6
|
+
declare const slate400 = "#94a3b8";
|
|
7
|
+
declare const slate500 = "#64748b";
|
|
8
|
+
declare const slate600 = "#475569";
|
|
9
|
+
declare const slate700 = "#334155";
|
|
10
|
+
declare const slate800 = "#1e293b";
|
|
11
|
+
declare const slate900 = "#0f172a";
|
|
12
|
+
declare const slate950 = "#020617";
|
|
13
|
+
declare const gray50 = "#f9fafb";
|
|
14
|
+
declare const gray100 = "#f3f4f6";
|
|
15
|
+
declare const gray200 = "#e5e7eb";
|
|
16
|
+
declare const gray300 = "#d1d5db";
|
|
17
|
+
declare const gray400 = "#9ca3af";
|
|
18
|
+
declare const gray500 = "#6b7280";
|
|
19
|
+
declare const gray600 = "#4b5563";
|
|
20
|
+
declare const gray700 = "#374151";
|
|
21
|
+
declare const gray800 = "#1f2937";
|
|
22
|
+
declare const gray900 = "#111827";
|
|
23
|
+
declare const gray950 = "#030712";
|
|
24
|
+
declare const zinc50 = "#fafafa";
|
|
25
|
+
declare const zinc100 = "#f4f4f5";
|
|
26
|
+
declare const zinc200 = "#e4e4e7";
|
|
27
|
+
declare const zinc300 = "#d4d4d8";
|
|
28
|
+
declare const zinc400 = "#a1a1aa";
|
|
29
|
+
declare const zinc500 = "#71717a";
|
|
30
|
+
declare const zinc600 = "#52525b";
|
|
31
|
+
declare const zinc700 = "#3f3f46";
|
|
32
|
+
declare const zinc800 = "#27272a";
|
|
33
|
+
declare const zinc900 = "#18181b";
|
|
34
|
+
declare const zinc950 = "#09090b";
|
|
35
|
+
declare const neutral50 = "#fafafa";
|
|
36
|
+
declare const neutral100 = "#f5f5f5";
|
|
37
|
+
declare const neutral200 = "#e5e5e5";
|
|
38
|
+
declare const neutral300 = "#d4d4d4";
|
|
39
|
+
declare const neutral400 = "#a3a3a3";
|
|
40
|
+
declare const neutral500 = "#737373";
|
|
41
|
+
declare const neutral600 = "#525252";
|
|
42
|
+
declare const neutral700 = "#404040";
|
|
43
|
+
declare const neutral800 = "#262626";
|
|
44
|
+
declare const neutral900 = "#171717";
|
|
45
|
+
declare const neutral950 = "#0a0a0a";
|
|
46
|
+
declare const stone50 = "#fafaf9";
|
|
47
|
+
declare const stone100 = "#f5f5f4";
|
|
48
|
+
declare const stone200 = "#e7e5e4";
|
|
49
|
+
declare const stone300 = "#d6d3d1";
|
|
50
|
+
declare const stone400 = "#a8a29e";
|
|
51
|
+
declare const stone500 = "#78716c";
|
|
52
|
+
declare const stone600 = "#57534e";
|
|
53
|
+
declare const stone700 = "#44403c";
|
|
54
|
+
declare const stone800 = "#292524";
|
|
55
|
+
declare const stone900 = "#1c1917";
|
|
56
|
+
declare const stone950 = "#0c0a09";
|
|
57
|
+
declare const red50 = "#fef2f2";
|
|
58
|
+
declare const red100 = "#fee2e2";
|
|
59
|
+
declare const red200 = "#fecaca";
|
|
60
|
+
declare const red300 = "#fca5a5";
|
|
61
|
+
declare const red400 = "#f87171";
|
|
62
|
+
declare const red500 = "#ef4444";
|
|
63
|
+
declare const red600 = "#dc2626";
|
|
64
|
+
declare const red700 = "#b91c1c";
|
|
65
|
+
declare const red800 = "#991b1b";
|
|
66
|
+
declare const red900 = "#7f1d1d";
|
|
67
|
+
declare const red950 = "#450a0a";
|
|
68
|
+
declare const orange50 = "#fff7ed";
|
|
69
|
+
declare const orange100 = "#ffedd5";
|
|
70
|
+
declare const orange200 = "#fed7aa";
|
|
71
|
+
declare const orange300 = "#fdba74";
|
|
72
|
+
declare const orange400 = "#fb923c";
|
|
73
|
+
declare const orange500 = "#f97316";
|
|
74
|
+
declare const orange600 = "#ea580c";
|
|
75
|
+
declare const orange700 = "#c2410c";
|
|
76
|
+
declare const orange800 = "#9a3412";
|
|
77
|
+
declare const orange900 = "#7c2d12";
|
|
78
|
+
declare const orange950 = "#431407";
|
|
79
|
+
declare const amber50 = "#fffbeb";
|
|
80
|
+
declare const amber100 = "#fef3c7";
|
|
81
|
+
declare const amber200 = "#fde68a";
|
|
82
|
+
declare const amber300 = "#fcd34d";
|
|
83
|
+
declare const amber400 = "#fbbf24";
|
|
84
|
+
declare const amber500 = "#f59e0b";
|
|
85
|
+
declare const amber600 = "#d97706";
|
|
86
|
+
declare const amber700 = "#b45309";
|
|
87
|
+
declare const amber800 = "#92400e";
|
|
88
|
+
declare const amber900 = "#78350f";
|
|
89
|
+
declare const amber950 = "#451a03";
|
|
90
|
+
declare const yellow50 = "#fefce8";
|
|
91
|
+
declare const yellow100 = "#fef9c3";
|
|
92
|
+
declare const yellow200 = "#fef08a";
|
|
93
|
+
declare const yellow300 = "#fde047";
|
|
94
|
+
declare const yellow400 = "#facc15";
|
|
95
|
+
declare const yellow500 = "#eab308";
|
|
96
|
+
declare const yellow600 = "#ca8a04";
|
|
97
|
+
declare const yellow700 = "#a16207";
|
|
98
|
+
declare const yellow800 = "#854d0e";
|
|
99
|
+
declare const yellow900 = "#713f12";
|
|
100
|
+
declare const yellow950 = "#422006";
|
|
101
|
+
declare const lime50 = "#f7fee7";
|
|
102
|
+
declare const lime100 = "#ecfccb";
|
|
103
|
+
declare const lime200 = "#d9f99d";
|
|
104
|
+
declare const lime300 = "#bef264";
|
|
105
|
+
declare const lime400 = "#a3e635";
|
|
106
|
+
declare const lime500 = "#84cc16";
|
|
107
|
+
declare const lime600 = "#65a30d";
|
|
108
|
+
declare const lime700 = "#4d7c0f";
|
|
109
|
+
declare const lime800 = "#3f6212";
|
|
110
|
+
declare const lime900 = "#365314";
|
|
111
|
+
declare const lime950 = "#1a2e05";
|
|
112
|
+
declare const green50 = "#f0fdf4";
|
|
113
|
+
declare const green100 = "#dcfce7";
|
|
114
|
+
declare const green200 = "#bbf7d0";
|
|
115
|
+
declare const green300 = "#86efac";
|
|
116
|
+
declare const green400 = "#4ade80";
|
|
117
|
+
declare const green500 = "#22c55e";
|
|
118
|
+
declare const green600 = "#16a34a";
|
|
119
|
+
declare const green700 = "#15803d";
|
|
120
|
+
declare const green800 = "#166534";
|
|
121
|
+
declare const green900 = "#14532d";
|
|
122
|
+
declare const green950 = "#052e16";
|
|
123
|
+
declare const emerald50 = "#ecfdf5";
|
|
124
|
+
declare const emerald100 = "#d1fae5";
|
|
125
|
+
declare const emerald200 = "#a7f3d0";
|
|
126
|
+
declare const emerald300 = "#6ee7b7";
|
|
127
|
+
declare const emerald400 = "#34d399";
|
|
128
|
+
declare const emerald500 = "#10b981";
|
|
129
|
+
declare const emerald600 = "#059669";
|
|
130
|
+
declare const emerald700 = "#047857";
|
|
131
|
+
declare const emerald800 = "#065f46";
|
|
132
|
+
declare const emerald900 = "#064e3b";
|
|
133
|
+
declare const emerald950 = "#022c22";
|
|
134
|
+
declare const teal50 = "#f0fdfa";
|
|
135
|
+
declare const teal100 = "#ccfbf1";
|
|
136
|
+
declare const teal200 = "#99f6e4";
|
|
137
|
+
declare const teal300 = "#5eead4";
|
|
138
|
+
declare const teal400 = "#2dd4bf";
|
|
139
|
+
declare const teal500 = "#14b8a6";
|
|
140
|
+
declare const teal600 = "#0d9488";
|
|
141
|
+
declare const teal700 = "#0f766e";
|
|
142
|
+
declare const teal800 = "#115e59";
|
|
143
|
+
declare const teal900 = "#134e4a";
|
|
144
|
+
declare const teal950 = "#042f2e";
|
|
145
|
+
declare const cyan50 = "#ecfeff";
|
|
146
|
+
declare const cyan100 = "#cffafe";
|
|
147
|
+
declare const cyan200 = "#a5f3fc";
|
|
148
|
+
declare const cyan300 = "#67e8f9";
|
|
149
|
+
declare const cyan400 = "#22d3ee";
|
|
150
|
+
declare const cyan500 = "#06b6d4";
|
|
151
|
+
declare const cyan600 = "#0891b2";
|
|
152
|
+
declare const cyan700 = "#0e7490";
|
|
153
|
+
declare const cyan800 = "#155e75";
|
|
154
|
+
declare const cyan900 = "#164e63";
|
|
155
|
+
declare const cyan950 = "#083344";
|
|
156
|
+
declare const sky50 = "#f0f9ff";
|
|
157
|
+
declare const sky100 = "#e0f2fe";
|
|
158
|
+
declare const sky200 = "#bae6fd";
|
|
159
|
+
declare const sky300 = "#7dd3fc";
|
|
160
|
+
declare const sky400 = "#38bdf8";
|
|
161
|
+
declare const sky500 = "#0ea5e9";
|
|
162
|
+
declare const sky600 = "#0284c7";
|
|
163
|
+
declare const sky700 = "#0369a1";
|
|
164
|
+
declare const sky800 = "#075985";
|
|
165
|
+
declare const sky900 = "#0c4a6e";
|
|
166
|
+
declare const sky950 = "#082f49";
|
|
167
|
+
declare const blue50 = "#eff6ff";
|
|
168
|
+
declare const blue100 = "#dbeafe";
|
|
169
|
+
declare const blue200 = "#bfdbfe";
|
|
170
|
+
declare const blue300 = "#93c5fd";
|
|
171
|
+
declare const blue400 = "#60a5fa";
|
|
172
|
+
declare const blue500 = "#3b82f6";
|
|
173
|
+
declare const blue600 = "#2563eb";
|
|
174
|
+
declare const blue700 = "#1d4ed8";
|
|
175
|
+
declare const blue800 = "#1e40af";
|
|
176
|
+
declare const blue900 = "#1e3a8a";
|
|
177
|
+
declare const blue950 = "#172554";
|
|
178
|
+
declare const indigo50 = "#eef2ff";
|
|
179
|
+
declare const indigo100 = "#e0e7ff";
|
|
180
|
+
declare const indigo200 = "#c7d2fe";
|
|
181
|
+
declare const indigo300 = "#a5b4fc";
|
|
182
|
+
declare const indigo400 = "#818cf8";
|
|
183
|
+
declare const indigo500 = "#6366f1";
|
|
184
|
+
declare const indigo600 = "#4f46e5";
|
|
185
|
+
declare const indigo700 = "#4338ca";
|
|
186
|
+
declare const indigo800 = "#3730a3";
|
|
187
|
+
declare const indigo900 = "#312e81";
|
|
188
|
+
declare const indigo950 = "#1e1b4b";
|
|
189
|
+
declare const violet50 = "#f5f3ff";
|
|
190
|
+
declare const violet100 = "#ede9fe";
|
|
191
|
+
declare const violet200 = "#ddd6fe";
|
|
192
|
+
declare const violet300 = "#c4b5fd";
|
|
193
|
+
declare const violet400 = "#a78bfa";
|
|
194
|
+
declare const violet500 = "#8b5cf6";
|
|
195
|
+
declare const violet600 = "#7c3aed";
|
|
196
|
+
declare const violet700 = "#6d28d9";
|
|
197
|
+
declare const violet800 = "#5b21b6";
|
|
198
|
+
declare const violet900 = "#4c1d95";
|
|
199
|
+
declare const violet950 = "#2e1065";
|
|
200
|
+
declare const purple50 = "#faf5ff";
|
|
201
|
+
declare const purple100 = "#f3e8ff";
|
|
202
|
+
declare const purple200 = "#e9d5ff";
|
|
203
|
+
declare const purple300 = "#d8b4fe";
|
|
204
|
+
declare const purple400 = "#c084fc";
|
|
205
|
+
declare const purple500 = "#a855f7";
|
|
206
|
+
declare const purple600 = "#9333ea";
|
|
207
|
+
declare const purple700 = "#7e22ce";
|
|
208
|
+
declare const purple800 = "#6b21a8";
|
|
209
|
+
declare const purple900 = "#581c87";
|
|
210
|
+
declare const purple950 = "#3b0764";
|
|
211
|
+
declare const fuchsia50 = "#fdf4ff";
|
|
212
|
+
declare const fuchsia100 = "#fae8ff";
|
|
213
|
+
declare const fuchsia200 = "#f5d0fe";
|
|
214
|
+
declare const fuchsia300 = "#f0abfc";
|
|
215
|
+
declare const fuchsia400 = "#e879f9";
|
|
216
|
+
declare const fuchsia500 = "#d946ef";
|
|
217
|
+
declare const fuchsia600 = "#c026d3";
|
|
218
|
+
declare const fuchsia700 = "#a21caf";
|
|
219
|
+
declare const fuchsia800 = "#86198f";
|
|
220
|
+
declare const fuchsia900 = "#701a75";
|
|
221
|
+
declare const fuchsia950 = "#4a044e";
|
|
222
|
+
declare const pink50 = "#fdf2f8";
|
|
223
|
+
declare const pink100 = "#fce7f3";
|
|
224
|
+
declare const pink200 = "#fbcfe8";
|
|
225
|
+
declare const pink300 = "#f9a8d4";
|
|
226
|
+
declare const pink400 = "#f472b6";
|
|
227
|
+
declare const pink500 = "#ec4899";
|
|
228
|
+
declare const pink600 = "#db2777";
|
|
229
|
+
declare const pink700 = "#be185d";
|
|
230
|
+
declare const pink800 = "#9d174d";
|
|
231
|
+
declare const pink900 = "#831843";
|
|
232
|
+
declare const pink950 = "#500724";
|
|
233
|
+
declare const rose50 = "#fff1f2";
|
|
234
|
+
declare const rose100 = "#ffe4e6";
|
|
235
|
+
declare const rose200 = "#fecdd3";
|
|
236
|
+
declare const rose300 = "#fda4af";
|
|
237
|
+
declare const rose400 = "#fb7185";
|
|
238
|
+
declare const rose500 = "#f43f5e";
|
|
239
|
+
declare const rose600 = "#e11d48";
|
|
240
|
+
declare const rose700 = "#be123c";
|
|
241
|
+
declare const rose800 = "#9f1239";
|
|
242
|
+
declare const rose900 = "#881337";
|
|
243
|
+
declare const rose950 = "#4c0519";
|
|
244
|
+
//#endregion
|
|
245
|
+
export { amber100, amber200, amber300, amber400, amber50, amber500, amber600, amber700, amber800, amber900, amber950, blue100, blue200, blue300, blue400, blue50, blue500, blue600, blue700, blue800, blue900, blue950, cyan100, cyan200, cyan300, cyan400, cyan50, cyan500, cyan600, cyan700, cyan800, cyan900, cyan950, emerald100, emerald200, emerald300, emerald400, emerald50, emerald500, emerald600, emerald700, emerald800, emerald900, emerald950, fuchsia100, fuchsia200, fuchsia300, fuchsia400, fuchsia50, fuchsia500, fuchsia600, fuchsia700, fuchsia800, fuchsia900, fuchsia950, gray100, gray200, gray300, gray400, gray50, gray500, gray600, gray700, gray800, gray900, gray950, green100, green200, green300, green400, green50, green500, green600, green700, green800, green900, green950, indigo100, indigo200, indigo300, indigo400, indigo50, indigo500, indigo600, indigo700, indigo800, indigo900, indigo950, lime100, lime200, lime300, lime400, lime50, lime500, lime600, lime700, lime800, lime900, lime950, neutral100, neutral200, neutral300, neutral400, neutral50, neutral500, neutral600, neutral700, neutral800, neutral900, neutral950, orange100, orange200, orange300, orange400, orange50, orange500, orange600, orange700, orange800, orange900, orange950, pink100, pink200, pink300, pink400, pink50, pink500, pink600, pink700, pink800, pink900, pink950, purple100, purple200, purple300, purple400, purple50, purple500, purple600, purple700, purple800, purple900, purple950, red100, red200, red300, red400, red50, red500, red600, red700, red800, red900, red950, rose100, rose200, rose300, rose400, rose50, rose500, rose600, rose700, rose800, rose900, rose950, sky100, sky200, sky300, sky400, sky50, sky500, sky600, sky700, sky800, sky900, sky950, slate100, slate200, slate300, slate400, slate50, slate500, slate600, slate700, slate800, slate900, slate950, stone100, stone200, stone300, stone400, stone50, stone500, stone600, stone700, stone800, stone900, stone950, teal100, teal200, teal300, teal400, teal50, teal500, teal600, teal700, teal800, teal900, teal950, violet100, violet200, violet300, violet400, violet50, violet500, violet600, violet700, violet800, violet900, violet950, yellow100, yellow200, yellow300, yellow400, yellow50, yellow500, yellow600, yellow700, yellow800, yellow900, yellow950, zinc100, zinc200, zinc300, zinc400, zinc50, zinc500, zinc600, zinc700, zinc800, zinc900, zinc950 };
|
|
246
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/data/color.ts"],"mappings":";cAAa,OAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cACA,QAAA;AAAA,cAEA,MAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cAEA,MAAA;AAAA,cACA,OAAA;AAAA,cACA,OAAA;AAAA,cACA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
|
|
1
|
+
const e=`#f8fafc`,t=`#f1f5f9`,n=`#e2e8f0`,r=`#cbd5e1`,i=`#94a3b8`,a=`#64748b`,o=`#475569`,s=`#334155`,c=`#1e293b`,l=`#0f172a`,u=`#020617`,d=`#f9fafb`,f=`#f3f4f6`,p=`#e5e7eb`,m=`#d1d5db`,h=`#9ca3af`,g=`#6b7280`,_=`#4b5563`,v=`#374151`,y=`#1f2937`,b=`#111827`,x=`#030712`,S=`#fafafa`,C=`#f4f4f5`,w=`#e4e4e7`,T=`#d4d4d8`,E=`#a1a1aa`,D=`#71717a`,O=`#52525b`,k=`#3f3f46`,A=`#27272a`,j=`#18181b`,M=`#09090b`,N=`#fafafa`,P=`#f5f5f5`,F=`#e5e5e5`,I=`#d4d4d4`,L=`#a3a3a3`,R=`#737373`,z=`#525252`,B=`#404040`,V=`#262626`,H=`#171717`,U=`#0a0a0a`,W=`#fafaf9`,G=`#f5f5f4`,K=`#e7e5e4`,q=`#d6d3d1`,J=`#a8a29e`,Y=`#78716c`,X=`#57534e`,Z=`#44403c`,Q=`#292524`,$=`#1c1917`,ee=`#0c0a09`,te=`#fef2f2`,ne=`#fee2e2`,re=`#fecaca`,ie=`#fca5a5`,ae=`#f87171`,oe=`#ef4444`,se=`#dc2626`,ce=`#b91c1c`,le=`#991b1b`,ue=`#7f1d1d`,de=`#450a0a`,fe=`#fff7ed`,pe=`#ffedd5`,me=`#fed7aa`,he=`#fdba74`,ge=`#fb923c`,_e=`#f97316`,ve=`#ea580c`,ye=`#c2410c`,be=`#9a3412`,xe=`#7c2d12`,Se=`#431407`,Ce=`#fffbeb`,we=`#fef3c7`,Te=`#fde68a`,Ee=`#fcd34d`,De=`#fbbf24`,Oe=`#f59e0b`,ke=`#d97706`,Ae=`#b45309`,je=`#92400e`,Me=`#78350f`,Ne=`#451a03`,Pe=`#fefce8`,Fe=`#fef9c3`,Ie=`#fef08a`,Le=`#fde047`,Re=`#facc15`,ze=`#eab308`,Be=`#ca8a04`,Ve=`#a16207`,He=`#854d0e`,Ue=`#713f12`,We=`#422006`,Ge=`#f7fee7`,Ke=`#ecfccb`,qe=`#d9f99d`,Je=`#bef264`,Ye=`#a3e635`,Xe=`#84cc16`,Ze=`#65a30d`,Qe=`#4d7c0f`,$e=`#3f6212`,et=`#365314`,tt=`#1a2e05`,nt=`#f0fdf4`,rt=`#dcfce7`,it=`#bbf7d0`,at=`#86efac`,ot=`#4ade80`,st=`#22c55e`,ct=`#16a34a`,lt=`#15803d`,ut=`#166534`,dt=`#14532d`,ft=`#052e16`,pt=`#ecfdf5`,mt=`#d1fae5`,ht=`#a7f3d0`,gt=`#6ee7b7`,_t=`#34d399`,vt=`#10b981`,yt=`#059669`,bt=`#047857`,xt=`#065f46`,St=`#064e3b`,Ct=`#022c22`,wt=`#f0fdfa`,Tt=`#ccfbf1`,Et=`#99f6e4`,Dt=`#5eead4`,Ot=`#2dd4bf`,kt=`#14b8a6`,At=`#0d9488`,jt=`#0f766e`,Mt=`#115e59`,Nt=`#134e4a`,Pt=`#042f2e`,Ft=`#ecfeff`,It=`#cffafe`,Lt=`#a5f3fc`,Rt=`#67e8f9`,zt=`#22d3ee`,Bt=`#06b6d4`,Vt=`#0891b2`,Ht=`#0e7490`,Ut=`#155e75`,Wt=`#164e63`,Gt=`#083344`,Kt=`#f0f9ff`,qt=`#e0f2fe`,Jt=`#bae6fd`,Yt=`#7dd3fc`,Xt=`#38bdf8`,Zt=`#0ea5e9`,Qt=`#0284c7`,$t=`#0369a1`,en=`#075985`,tn=`#0c4a6e`,nn=`#082f49`,rn=`#eff6ff`,an=`#dbeafe`,on=`#bfdbfe`,sn=`#93c5fd`,cn=`#60a5fa`,ln=`#3b82f6`,un=`#2563eb`,dn=`#1d4ed8`,fn=`#1e40af`,pn=`#1e3a8a`,mn=`#172554`,hn=`#eef2ff`,gn=`#e0e7ff`,_n=`#c7d2fe`,vn=`#a5b4fc`,yn=`#818cf8`,bn=`#6366f1`,xn=`#4f46e5`,Sn=`#4338ca`,Cn=`#3730a3`,wn=`#312e81`,Tn=`#1e1b4b`,En=`#f5f3ff`,Dn=`#ede9fe`,On=`#ddd6fe`,kn=`#c4b5fd`,An=`#a78bfa`,jn=`#8b5cf6`,Mn=`#7c3aed`,Nn=`#6d28d9`,Pn=`#5b21b6`,Fn=`#4c1d95`,In=`#2e1065`,Ln=`#faf5ff`,Rn=`#f3e8ff`,zn=`#e9d5ff`,Bn=`#d8b4fe`,Vn=`#c084fc`,Hn=`#a855f7`,Un=`#9333ea`,Wn=`#7e22ce`,Gn=`#6b21a8`,Kn=`#581c87`,qn=`#3b0764`,Jn=`#fdf4ff`,Yn=`#fae8ff`,Xn=`#f5d0fe`,Zn=`#f0abfc`,Qn=`#e879f9`,$n=`#d946ef`,er=`#c026d3`,tr=`#a21caf`,nr=`#86198f`,rr=`#701a75`,ir=`#4a044e`,ar=`#fdf2f8`,or=`#fce7f3`,sr=`#fbcfe8`,cr=`#f9a8d4`,lr=`#f472b6`,ur=`#ec4899`,dr=`#db2777`,fr=`#be185d`,pr=`#9d174d`,mr=`#831843`,hr=`#500724`,gr=`#fff1f2`,_r=`#ffe4e6`,vr=`#fecdd3`,yr=`#fda4af`,br=`#fb7185`,xr=`#f43f5e`,Sr=`#e11d48`,Cr=`#be123c`,wr=`#9f1239`,Tr=`#881337`,Er=`#4c0519`;export{we as amber100,Te as amber200,Ee as amber300,De as amber400,Ce as amber50,Oe as amber500,ke as amber600,Ae as amber700,je as amber800,Me as amber900,Ne as amber950,an as blue100,on as blue200,sn as blue300,cn as blue400,rn as blue50,ln as blue500,un as blue600,dn as blue700,fn as blue800,pn as blue900,mn as blue950,It as cyan100,Lt as cyan200,Rt as cyan300,zt as cyan400,Ft as cyan50,Bt as cyan500,Vt as cyan600,Ht as cyan700,Ut as cyan800,Wt as cyan900,Gt as cyan950,mt as emerald100,ht as emerald200,gt as emerald300,_t as emerald400,pt as emerald50,vt as emerald500,yt as emerald600,bt as emerald700,xt as emerald800,St as emerald900,Ct as emerald950,Yn as fuchsia100,Xn as fuchsia200,Zn as fuchsia300,Qn as fuchsia400,Jn as fuchsia50,$n as fuchsia500,er as fuchsia600,tr as fuchsia700,nr as fuchsia800,rr as fuchsia900,ir as fuchsia950,f as gray100,p as gray200,m as gray300,h as gray400,d as gray50,g as gray500,_ as gray600,v as gray700,y as gray800,b as gray900,x as gray950,rt as green100,it as green200,at as green300,ot as green400,nt as green50,st as green500,ct as green600,lt as green700,ut as green800,dt as green900,ft as green950,gn as indigo100,_n as indigo200,vn as indigo300,yn as indigo400,hn as indigo50,bn as indigo500,xn as indigo600,Sn as indigo700,Cn as indigo800,wn as indigo900,Tn as indigo950,Ke as lime100,qe as lime200,Je as lime300,Ye as lime400,Ge as lime50,Xe as lime500,Ze as lime600,Qe as lime700,$e as lime800,et as lime900,tt as lime950,P as neutral100,F as neutral200,I as neutral300,L as neutral400,N as neutral50,R as neutral500,z as neutral600,B as neutral700,V as neutral800,H as neutral900,U as neutral950,pe as orange100,me as orange200,he as orange300,ge as orange400,fe as orange50,_e as orange500,ve as orange600,ye as orange700,be as orange800,xe as orange900,Se as orange950,or as pink100,sr as pink200,cr as pink300,lr as pink400,ar as pink50,ur as pink500,dr as pink600,fr as pink700,pr as pink800,mr as pink900,hr as pink950,Rn as purple100,zn as purple200,Bn as purple300,Vn as purple400,Ln as purple50,Hn as purple500,Un as purple600,Wn as purple700,Gn as purple800,Kn as purple900,qn as purple950,ne as red100,re as red200,ie as red300,ae as red400,te as red50,oe as red500,se as red600,ce as red700,le as red800,ue as red900,de as red950,_r as rose100,vr as rose200,yr as rose300,br as rose400,gr as rose50,xr as rose500,Sr as rose600,Cr as rose700,wr as rose800,Tr as rose900,Er as rose950,qt as sky100,Jt as sky200,Yt as sky300,Xt as sky400,Kt as sky50,Zt as sky500,Qt as sky600,$t as sky700,en as sky800,tn as sky900,nn as sky950,t as slate100,n as slate200,r as slate300,i as slate400,e as slate50,a as slate500,o as slate600,s as slate700,c as slate800,l as slate900,u as slate950,G as stone100,K as stone200,q as stone300,J as stone400,W as stone50,Y as stone500,X as stone600,Z as stone700,Q as stone800,$ as stone900,ee as stone950,Tt as teal100,Et as teal200,Dt as teal300,Ot as teal400,wt as teal50,kt as teal500,At as teal600,jt as teal700,Mt as teal800,Nt as teal900,Pt as teal950,Dn as violet100,On as violet200,kn as violet300,An as violet400,En as violet50,jn as violet500,Mn as violet600,Nn as violet700,Pn as violet800,Fn as violet900,In as violet950,Fe as yellow100,Ie as yellow200,Le as yellow300,Re as yellow400,Pe as yellow50,ze as yellow500,Be as yellow600,Ve as yellow700,He as yellow800,Ue as yellow900,We as yellow950,C as zinc100,w as zinc200,T as zinc300,E as zinc400,S as zinc50,D as zinc500,O as zinc600,k as zinc700,A as zinc800,j as zinc900,M as zinc950};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/data/color.ts"],"sourcesContent":["export const slate50 = '#f8fafc';\nexport const slate100 = '#f1f5f9';\nexport const slate200 = '#e2e8f0';\nexport const slate300 = '#cbd5e1';\nexport const slate400 = '#94a3b8';\nexport const slate500 = '#64748b';\nexport const slate600 = '#475569';\nexport const slate700 = '#334155';\nexport const slate800 = '#1e293b';\nexport const slate900 = '#0f172a';\nexport const slate950 = '#020617';\n\nexport const gray50 = '#f9fafb';\nexport const gray100 = '#f3f4f6';\nexport const gray200 = '#e5e7eb';\nexport const gray300 = '#d1d5db';\nexport const gray400 = '#9ca3af';\nexport const gray500 = '#6b7280';\nexport const gray600 = '#4b5563';\nexport const gray700 = '#374151';\nexport const gray800 = '#1f2937';\nexport const gray900 = '#111827';\nexport const gray950 = '#030712';\n\nexport const zinc50 = '#fafafa';\nexport const zinc100 = '#f4f4f5';\nexport const zinc200 = '#e4e4e7';\nexport const zinc300 = '#d4d4d8';\nexport const zinc400 = '#a1a1aa';\nexport const zinc500 = '#71717a';\nexport const zinc600 = '#52525b';\nexport const zinc700 = '#3f3f46';\nexport const zinc800 = '#27272a';\nexport const zinc900 = '#18181b';\nexport const zinc950 = '#09090b';\n\nexport const neutral50 = '#fafafa';\nexport const neutral100 = '#f5f5f5';\nexport const neutral200 = '#e5e5e5';\nexport const neutral300 = '#d4d4d4';\nexport const neutral400 = '#a3a3a3';\nexport const neutral500 = '#737373';\nexport const neutral600 = '#525252';\nexport const neutral700 = '#404040';\nexport const neutral800 = '#262626';\nexport const neutral900 = '#171717';\nexport const neutral950 = '#0a0a0a';\n\nexport const stone50 = '#fafaf9';\nexport const stone100 = '#f5f5f4';\nexport const stone200 = '#e7e5e4';\nexport const stone300 = '#d6d3d1';\nexport const stone400 = '#a8a29e';\nexport const stone500 = '#78716c';\nexport const stone600 = '#57534e';\nexport const stone700 = '#44403c';\nexport const stone800 = '#292524';\nexport const stone900 = '#1c1917';\nexport const stone950 = '#0c0a09';\n\nexport const red50 = '#fef2f2';\nexport const red100 = '#fee2e2';\nexport const red200 = '#fecaca';\nexport const red300 = '#fca5a5';\nexport const red400 = '#f87171';\nexport const red500 = '#ef4444';\nexport const red600 = '#dc2626';\nexport const red700 = '#b91c1c';\nexport const red800 = '#991b1b';\nexport const red900 = '#7f1d1d';\nexport const red950 = '#450a0a';\n\nexport const orange50 = '#fff7ed';\nexport const orange100 = '#ffedd5';\nexport const orange200 = '#fed7aa';\nexport const orange300 = '#fdba74';\nexport const orange400 = '#fb923c';\nexport const orange500 = '#f97316';\nexport const orange600 = '#ea580c';\nexport const orange700 = '#c2410c';\nexport const orange800 = '#9a3412';\nexport const orange900 = '#7c2d12';\nexport const orange950 = '#431407';\n\nexport const amber50 = '#fffbeb';\nexport const amber100 = '#fef3c7';\nexport const amber200 = '#fde68a';\nexport const amber300 = '#fcd34d';\nexport const amber400 = '#fbbf24';\nexport const amber500 = '#f59e0b';\nexport const amber600 = '#d97706';\nexport const amber700 = '#b45309';\nexport const amber800 = '#92400e';\nexport const amber900 = '#78350f';\nexport const amber950 = '#451a03';\n\nexport const yellow50 = '#fefce8';\nexport const yellow100 = '#fef9c3';\nexport const yellow200 = '#fef08a';\nexport const yellow300 = '#fde047';\nexport const yellow400 = '#facc15';\nexport const yellow500 = '#eab308';\nexport const yellow600 = '#ca8a04';\nexport const yellow700 = '#a16207';\nexport const yellow800 = '#854d0e';\nexport const yellow900 = '#713f12';\nexport const yellow950 = '#422006';\n\nexport const lime50 = '#f7fee7';\nexport const lime100 = '#ecfccb';\nexport const lime200 = '#d9f99d';\nexport const lime300 = '#bef264';\nexport const lime400 = '#a3e635';\nexport const lime500 = '#84cc16';\nexport const lime600 = '#65a30d';\nexport const lime700 = '#4d7c0f';\nexport const lime800 = '#3f6212';\nexport const lime900 = '#365314';\nexport const lime950 = '#1a2e05';\n\nexport const green50 = '#f0fdf4';\nexport const green100 = '#dcfce7';\nexport const green200 = '#bbf7d0';\nexport const green300 = '#86efac';\nexport const green400 = '#4ade80';\nexport const green500 = '#22c55e';\nexport const green600 = '#16a34a';\nexport const green700 = '#15803d';\nexport const green800 = '#166534';\nexport const green900 = '#14532d';\nexport const green950 = '#052e16';\n\nexport const emerald50 = '#ecfdf5';\nexport const emerald100 = '#d1fae5';\nexport const emerald200 = '#a7f3d0';\nexport const emerald300 = '#6ee7b7';\nexport const emerald400 = '#34d399';\nexport const emerald500 = '#10b981';\nexport const emerald600 = '#059669';\nexport const emerald700 = '#047857';\nexport const emerald800 = '#065f46';\nexport const emerald900 = '#064e3b';\nexport const emerald950 = '#022c22';\n\nexport const teal50 = '#f0fdfa';\nexport const teal100 = '#ccfbf1';\nexport const teal200 = '#99f6e4';\nexport const teal300 = '#5eead4';\nexport const teal400 = '#2dd4bf';\nexport const teal500 = '#14b8a6';\nexport const teal600 = '#0d9488';\nexport const teal700 = '#0f766e';\nexport const teal800 = '#115e59';\nexport const teal900 = '#134e4a';\nexport const teal950 = '#042f2e';\n\nexport const cyan50 = '#ecfeff';\nexport const cyan100 = '#cffafe';\nexport const cyan200 = '#a5f3fc';\nexport const cyan300 = '#67e8f9';\nexport const cyan400 = '#22d3ee';\nexport const cyan500 = '#06b6d4';\nexport const cyan600 = '#0891b2';\nexport const cyan700 = '#0e7490';\nexport const cyan800 = '#155e75';\nexport const cyan900 = '#164e63';\nexport const cyan950 = '#083344';\n\nexport const sky50 = '#f0f9ff';\nexport const sky100 = '#e0f2fe';\nexport const sky200 = '#bae6fd';\nexport const sky300 = '#7dd3fc';\nexport const sky400 = '#38bdf8';\nexport const sky500 = '#0ea5e9';\nexport const sky600 = '#0284c7';\nexport const sky700 = '#0369a1';\nexport const sky800 = '#075985';\nexport const sky900 = '#0c4a6e';\nexport const sky950 = '#082f49';\n\nexport const blue50 = '#eff6ff';\nexport const blue100 = '#dbeafe';\nexport const blue200 = '#bfdbfe';\nexport const blue300 = '#93c5fd';\nexport const blue400 = '#60a5fa';\nexport const blue500 = '#3b82f6';\nexport const blue600 = '#2563eb';\nexport const blue700 = '#1d4ed8';\nexport const blue800 = '#1e40af';\nexport const blue900 = '#1e3a8a';\nexport const blue950 = '#172554';\n\nexport const indigo50 = '#eef2ff';\nexport const indigo100 = '#e0e7ff';\nexport const indigo200 = '#c7d2fe';\nexport const indigo300 = '#a5b4fc';\nexport const indigo400 = '#818cf8';\nexport const indigo500 = '#6366f1';\nexport const indigo600 = '#4f46e5';\nexport const indigo700 = '#4338ca';\nexport const indigo800 = '#3730a3';\nexport const indigo900 = '#312e81';\nexport const indigo950 = '#1e1b4b';\n\nexport const violet50 = '#f5f3ff';\nexport const violet100 = '#ede9fe';\nexport const violet200 = '#ddd6fe';\nexport const violet300 = '#c4b5fd';\nexport const violet400 = '#a78bfa';\nexport const violet500 = '#8b5cf6';\nexport const violet600 = '#7c3aed';\nexport const violet700 = '#6d28d9';\nexport const violet800 = '#5b21b6';\nexport const violet900 = '#4c1d95';\nexport const violet950 = '#2e1065';\n\nexport const purple50 = '#faf5ff';\nexport const purple100 = '#f3e8ff';\nexport const purple200 = '#e9d5ff';\nexport const purple300 = '#d8b4fe';\nexport const purple400 = '#c084fc';\nexport const purple500 = '#a855f7';\nexport const purple600 = '#9333ea';\nexport const purple700 = '#7e22ce';\nexport const purple800 = '#6b21a8';\nexport const purple900 = '#581c87';\nexport const purple950 = '#3b0764';\n\nexport const fuchsia50 = '#fdf4ff';\nexport const fuchsia100 = '#fae8ff';\nexport const fuchsia200 = '#f5d0fe';\nexport const fuchsia300 = '#f0abfc';\nexport const fuchsia400 = '#e879f9';\nexport const fuchsia500 = '#d946ef';\nexport const fuchsia600 = '#c026d3';\nexport const fuchsia700 = '#a21caf';\nexport const fuchsia800 = '#86198f';\nexport const fuchsia900 = '#701a75';\nexport const fuchsia950 = '#4a044e';\n\nexport const pink50 = '#fdf2f8';\nexport const pink100 = '#fce7f3';\nexport const pink200 = '#fbcfe8';\nexport const pink300 = '#f9a8d4';\nexport const pink400 = '#f472b6';\nexport const pink500 = '#ec4899';\nexport const pink600 = '#db2777';\nexport const pink700 = '#be185d';\nexport const pink800 = '#9d174d';\nexport const pink900 = '#831843';\nexport const pink950 = '#500724';\n\nexport const rose50 = '#fff1f2';\nexport const rose100 = '#ffe4e6';\nexport const rose200 = '#fecdd3';\nexport const rose300 = '#fda4af';\nexport const rose400 = '#fb7185';\nexport const rose500 = '#f43f5e';\nexport const rose600 = '#e11d48';\nexport const rose700 = '#be123c';\nexport const rose800 = '#9f1239';\nexport const rose900 = '#881337';\nexport const rose950 = '#4c0519';\n"],"mappings":"AAAA,MAAa,EAAU,UACV,EAAW,UACX,EAAW,UACX,EAAW,UACX,EAAW,UACX,EAAW,UACX,EAAW,UACX,EAAW,UACX,EAAW,UACX,EAAW,UACX,EAAW,UAEX,EAAS,UACT,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UAEV,EAAS,UACT,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UACV,EAAU,UAEV,E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S,UACT,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UAEV,GAAQ,UACR,GAAS,UACT,GAAS,UACT,GAAS,UACT,GAAS,UACT,GAAS,UACT,GAAS,UACT,GAAS,UACT,GAAS,UACT,GAAS,UACT,GAAS,UAET,GAAS,UACT,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UAEV,GAAW,UACX,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UAEZ,GAAW,UACX,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UAEZ,GAAW,UACX,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UACZ,GAAY,UAEZ,GAAY,UACZ,GAAa,UACb,GAAa,UACb,GAAa,UACb,GAAa,UACb,GAAa,UACb,GAAa,UACb,GAAa,UACb,GAAa,UACb,GAAa,UACb,GAAa,UAEb,GAAS,UACT,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UAEV,GAAS,UACT,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU,UACV,GAAU"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { vFocusTrap, vHeightTransition };
|
|
1
|
+
import { n as _default, t as _default$1 } from "../index-BRS2s2tX.js";
|
|
2
|
+
export { _default as vFocusTrap, _default$1 as vHeightTransition };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"../directive-Dprka-AO.js";export{e as vFocusTrap,t as vHeightTransition};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{o as e}from"./util-CwaOsSvo.js";var t=class{#e;#t;constructor(e){this.#t=[],this.#e=e,this.onKeyDown=this.onKeyDown.bind(this)}focusElement(e,t=!0){if(this.#t[e]){for(let t=0;t<this.#t.length;++t)this.#t[t].tabIndex=t===e?0:-1;t&&this.#t[e]?.focus()}}register(){this.#t=e(this.#e),this.#e.addEventListener(`keydown`,this.onKeyDown),this.focusElement(0,!1)}unregister(){this.#e.removeEventListener(`keydown`,this.onKeyDown)}onKeyDown(e){let t=this.#e.querySelector(`[tabindex="0"]`),n=this.#t.findIndex(e=>e===t)??0;switch(e.key){case`ArrowUp`:case`ArrowLeft`:this.focusElement(n-1);break;case`ArrowDown`:case`ArrowRight`:this.focusElement(n+1);break;default:return}e.preventDefault(),e.stopPropagation()}},n={beforeUnmount(e){r.get(e)?.unregister(),r.delete(e)},mounted(e){let n=new t(e);n.register(),r.set(e,n)},getSSRProps(){return{}}};const r=new WeakMap;var i=class{#e;#t;constructor(e){this.#e=e,this.#t=new MutationObserver(this.onMutation.bind(this))}register(){this.#t.observe(this.#e,{childList:!0,subtree:!0}),requestAnimationFrame(this.onMutation.bind(this))}unregister(){this.#t.disconnect()}onMutation(){let{height:e}=getComputedStyle(this.#e);this.#e.style.height=`auto`;let{height:t}=getComputedStyle(this.#e);this.#e.style.height=e,t!==e&&(getComputedStyle(this.#e),requestAnimationFrame(()=>this.#e.style.height=t))}},a={beforeUnmount(e){o.get(e)?.unregister(),o.delete(e)},mounted(e){let t=new i(e);t.register(),o.set(e,t)},getSSRProps(){return{}}};const o=new WeakMap;export{n,a as t};
|
|
2
|
+
//# sourceMappingURL=directive-Dprka-AO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive-Dprka-AO.js","names":["#root","#elements","getKeyboardFocusableElements","#root","#observer"],"sources":["../src/directive/focusTrap.ts","../src/directive/heightTransition.ts"],"sourcesContent":["import type { Directive } from 'vue';\nimport { getKeyboardFocusableElements } from '../util';\n\nclass FocusTrap {\n readonly #root: HTMLElement;\n #elements: HTMLElement[];\n\n constructor(root: HTMLElement) {\n this.#elements = [];\n this.#root = root;\n\n this.onKeyDown = this.onKeyDown.bind(this);\n }\n\n focusElement(index: number, focus: boolean = true): void {\n if (!this.#elements[index]) {\n return;\n }\n\n for (let i = 0; i < this.#elements.length; ++i) {\n this.#elements[i].tabIndex = i === index ? 0 : -1;\n }\n\n if (focus) {\n this.#elements[index]?.focus();\n }\n }\n\n register(): void {\n this.#elements = getKeyboardFocusableElements(this.#root);\n this.#root.addEventListener('keydown', this.onKeyDown);\n this.focusElement(0, false);\n }\n\n unregister(): void {\n this.#root.removeEventListener('keydown', this.onKeyDown);\n }\n\n onKeyDown(evt: KeyboardEvent): void {\n const currentElement = this.#root.querySelector('[tabindex=\"0\"]');\n const currentIndex = this.#elements.findIndex(elm => elm === currentElement) ?? 0;\n\n switch (evt.key) {\n case 'ArrowUp':\n case 'ArrowLeft':\n this.focusElement(currentIndex - 1);\n break;\n\n case 'ArrowDown':\n case 'ArrowRight':\n this.focusElement(currentIndex + 1);\n break;\n\n default:\n return;\n }\n\n evt.preventDefault();\n evt.stopPropagation();\n }\n}\n\nexport default {\n beforeUnmount(elm: HTMLElement): void {\n const focusTrap = focusTraps.get(elm);\n focusTrap?.unregister();\n focusTraps.delete(elm);\n },\n\n mounted(elm: HTMLElement): void {\n const focusTrap = new FocusTrap(elm);\n focusTrap.register();\n focusTraps.set(elm, focusTrap);\n },\n\n getSSRProps(): Record<string, unknown> {\n return {};\n }\n} satisfies Directive;\n\nconst focusTraps: WeakMap<HTMLElement, FocusTrap> = new WeakMap();\n","import type { Directive } from 'vue';\n\nclass HeightTransition {\n readonly #root: HTMLElement;\n readonly #observer: MutationObserver;\n\n constructor(root: HTMLElement) {\n this.#root = root;\n this.#observer = new MutationObserver(this.onMutation.bind(this));\n }\n\n register(): void {\n this.#observer.observe(this.#root, {\n childList: true,\n subtree: true\n });\n\n requestAnimationFrame(this.onMutation.bind(this));\n }\n\n unregister(): void {\n this.#observer.disconnect();\n }\n\n onMutation(): void {\n const {height: currentHeight} = getComputedStyle(this.#root);\n this.#root.style.height = 'auto';\n\n const {height} = getComputedStyle(this.#root);\n this.#root.style.height = currentHeight;\n\n if (height === currentHeight) {\n return;\n }\n\n getComputedStyle(this.#root);\n requestAnimationFrame(() => this.#root.style.height = height);\n }\n}\n\nexport default {\n beforeUnmount(elm: HTMLElement): void {\n const heightTransition = heightTransitions.get(elm);\n heightTransition?.unregister();\n heightTransitions.delete(elm);\n },\n\n mounted(elm: HTMLElement): void {\n const heightTransition = new HeightTransition(elm);\n heightTransition.register();\n heightTransitions.set(elm, heightTransition);\n },\n\n getSSRProps(): Record<string, unknown> {\n return {};\n }\n} satisfies Directive as Directive;\n\nconst heightTransitions: WeakMap<HTMLElement, HeightTransition> = new WeakMap();\n"],"mappings":"uCAGA,IAAM,EAAN,KAAgB,CACZ,GACA,GAEA,YAAY,EAAmB,CAC3B,MAAA,EAAiB,EAAE,CACnB,MAAA,EAAa,EAEb,KAAK,UAAY,KAAK,UAAU,KAAK,KAAK,CAG9C,aAAa,EAAe,EAAiB,GAAY,CAChD,SAAA,EAAe,GAIpB,KAAK,IAAI,EAAI,EAAG,EAAI,MAAA,EAAe,OAAQ,EAAE,EACzC,MAAA,EAAe,GAAG,SAAW,IAAM,EAAQ,EAAI,GAG/C,GACA,MAAA,EAAe,IAAQ,OAAO,EAItC,UAAiB,CACb,MAAA,EAAiBE,EAA6B,MAAA,EAAW,CACzD,MAAA,EAAW,iBAAiB,UAAW,KAAK,UAAU,CACtD,KAAK,aAAa,EAAG,GAAM,CAG/B,YAAmB,CACf,MAAA,EAAW,oBAAoB,UA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