@optiaxiom/web-components 0.1.0-next.3 → 0.1.0-next.5
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 +27 -13
- package/dist/AccordionContext-xFEkv6qb.js +1 -0
- package/dist/AlertDialog-BopKGw2N.js +1 -0
- package/dist/AnimatePresence-CATwQfKn.js +1 -0
- package/dist/AvatarContext-AbSuJl7X.js +1 -0
- package/dist/Badge-BUvIi9RJ.js +1 -0
- package/dist/Box-BXKKGQTC.js +1 -0
- package/dist/BreadcrumbItem-C9WTFXPH.js +1 -0
- package/dist/Button-DYnYsufi.js +1 -0
- package/dist/Code-CZLZHEPR.js +1 -0
- package/dist/ControlBase-DPze3H3K.js +1 -0
- package/dist/FieldContext-BKKxWf3t.js +1 -0
- package/dist/Flex-CDCtFqPA.js +1 -0
- package/dist/Heading-DCqqyEoY.js +1 -0
- package/dist/HoverCard-DDClKxxZ.js +1 -0
- package/dist/HoverCardContent-Cy97tvQY.js +1 -0
- package/dist/HoverCardContext-pjAhN6mg.js +1 -0
- package/dist/HoverCardTrigger-gGSqshXT.js +1 -0
- package/dist/IconAngleDown-twx3irlT.js +1 -0
- package/dist/IconAngleRight-DbJQNgN2.js +1 -0
- package/dist/IconTriangleExclamationFilled-BTaaM837.js +1 -0
- package/dist/IconX-DGc_cz4l.js +1 -0
- package/dist/Input-BnfE7hrZ.js +1 -0
- package/dist/InputBase-CTu2yrMN.js +1 -0
- package/dist/Link-CtiVM0Aj.js +1 -0
- package/dist/Menu-svZcbrcV.js +1 -0
- package/dist/MenuContent-JTo6Xsg0.js +1 -0
- package/dist/MenuContext-_3i2O6D1.js +1 -0
- package/dist/MenuItem-DV7qQ9eo.js +1 -0
- package/dist/MenuTrigger-BBGeb2NX.js +1 -0
- package/dist/PopoverContext-CSHcxhf8.js +1 -0
- package/dist/PresenceContext-BCgBSKrD.js +1 -0
- package/dist/Separator-Dem4sTi1.js +1 -0
- package/dist/Spinner-yPuQMgHd.js +1 -0
- package/dist/TableRow.css.ts.vanilla-4BGjgIuZ-CdJd0fat.js +1 -0
- package/dist/TabsContext-Dh90_SX8.js +1 -0
- package/dist/Text-ChRXeZSF.js +1 -0
- package/dist/ToastProvider.css.ts.vanilla-C2Olq0Jl-CZ93B7lR.js +1 -0
- package/dist/Tooltip-CHVp57MY.js +1 -0
- package/dist/Transition-NhPs-d_m.js +1 -0
- package/dist/components/Accordion.d.ts +19 -0
- package/dist/components/Accordion.js +1 -0
- package/dist/components/AccordionContent.d.ts +19 -0
- package/dist/components/AccordionContent.js +1 -0
- package/dist/components/AccordionItem.d.ts +19 -0
- package/dist/components/AccordionItem.js +1 -0
- package/dist/components/AccordionTrigger.d.ts +19 -0
- package/dist/components/AccordionTrigger.js +1 -0
- package/dist/components/Alert.d.ts +19 -0
- package/dist/components/Alert.js +1 -0
- package/dist/components/AlertDescription.d.ts +19 -0
- package/dist/components/AlertDescription.js +1 -0
- package/dist/components/AlertDialog.d.ts +19 -0
- package/dist/components/AlertDialog.js +1 -0
- package/dist/components/AlertDialogDescription.d.ts +19 -0
- package/dist/components/AlertDialogDescription.js +1 -0
- package/dist/components/AlertDialogFooter.d.ts +19 -0
- package/dist/components/AlertDialogFooter.js +1 -0
- package/dist/components/AlertDialogTitle.d.ts +19 -0
- package/dist/components/AlertDialogTitle.js +1 -0
- package/dist/components/AlertTitle.d.ts +19 -0
- package/dist/components/AlertTitle.js +1 -0
- package/dist/{AnimatePresence.d.ts → components/AnimatePresence.d.ts} +7 -2
- package/dist/components/AnimatePresence.js +1 -0
- package/dist/{Avatar.d.ts → components/Avatar.d.ts} +7 -2
- package/dist/components/Avatar.js +1 -0
- package/dist/components/AvatarGroup.d.ts +19 -0
- package/dist/components/AvatarGroup.js +1 -0
- package/dist/components/AxiomProvider.d.ts +19 -0
- package/dist/components/AxiomProvider.js +1 -0
- package/dist/components/Badge.d.ts +19 -0
- package/dist/components/Badge.js +1 -0
- package/dist/components/Box.d.ts +19 -0
- package/dist/components/Box.js +1 -0
- package/dist/components/BreadcrumbItem.d.ts +19 -0
- package/dist/components/BreadcrumbItem.js +1 -0
- package/dist/components/Breadcrumbs.d.ts +19 -0
- package/dist/components/Breadcrumbs.js +1 -0
- package/dist/{Button.d.ts → components/Button.d.ts} +7 -2
- package/dist/components/Button.js +1 -0
- package/dist/{ButtonGroup.d.ts → components/ButtonGroup.d.ts} +7 -2
- package/dist/components/ButtonGroup.js +1 -0
- package/dist/components/Checkbox.d.ts +19 -0
- package/dist/components/Checkbox.js +1 -0
- package/dist/{Code.d.ts → components/Code.d.ts} +7 -2
- package/dist/components/Code.js +1 -0
- package/dist/components/Dialog.d.ts +19 -0
- package/dist/components/Dialog.js +1 -0
- package/dist/components/DialogBody.d.ts +19 -0
- package/dist/components/DialogBody.js +1 -0
- package/dist/components/DialogFooter.d.ts +19 -0
- package/dist/components/DialogFooter.js +1 -0
- package/dist/components/DialogTitle.d.ts +19 -0
- package/dist/components/DialogTitle.js +1 -0
- package/dist/components/Drawer.d.ts +19 -0
- package/dist/components/Drawer.js +1 -0
- package/dist/components/DrawerBody.d.ts +19 -0
- package/dist/components/DrawerBody.js +1 -0
- package/dist/components/DrawerFooter.d.ts +19 -0
- package/dist/components/DrawerFooter.js +1 -0
- package/dist/components/DrawerTitle.d.ts +19 -0
- package/dist/components/DrawerTitle.js +1 -0
- package/dist/{Field.d.ts → components/Field.d.ts} +7 -2
- package/dist/components/Field.js +1 -0
- package/dist/{Flex.d.ts → components/Flex.d.ts} +7 -2
- package/dist/components/Flex.js +1 -0
- package/dist/{Grid.d.ts → components/Grid.d.ts} +7 -2
- package/dist/components/Grid.js +1 -0
- package/dist/{Heading.d.ts → components/Heading.d.ts} +7 -2
- package/dist/components/Heading.js +1 -0
- package/dist/components/HoverCard.d.ts +19 -0
- package/dist/components/HoverCard.js +1 -0
- package/dist/components/HoverCardContent.d.ts +19 -0
- package/dist/components/HoverCardContent.js +1 -0
- package/dist/components/HoverCardTrigger.d.ts +19 -0
- package/dist/components/HoverCardTrigger.js +1 -0
- package/dist/components/Indicator.d.ts +19 -0
- package/dist/components/Indicator.js +1 -0
- package/dist/{Input.d.ts → components/Input.d.ts} +7 -2
- package/dist/components/Input.js +1 -0
- package/dist/components/Kbd.d.ts +19 -0
- package/dist/components/Kbd.js +1 -0
- package/dist/components/Link.d.ts +19 -0
- package/dist/components/Link.js +1 -0
- package/dist/components/Menu.d.ts +19 -0
- package/dist/components/Menu.js +1 -0
- package/dist/components/MenuContent.d.ts +19 -0
- package/dist/components/MenuContent.js +1 -0
- package/dist/components/MenuItem.d.ts +19 -0
- package/dist/components/MenuItem.js +1 -0
- package/dist/components/MenuLabel.d.ts +19 -0
- package/dist/components/MenuLabel.js +1 -0
- package/dist/components/MenuSeparator.d.ts +19 -0
- package/dist/components/MenuSeparator.js +1 -0
- package/dist/components/MenuTrigger.d.ts +19 -0
- package/dist/components/MenuTrigger.js +1 -0
- package/dist/components/Pagination.d.ts +19 -0
- package/dist/components/Pagination.js +1 -0
- package/dist/components/Popover.d.ts +19 -0
- package/dist/components/Popover.js +1 -0
- package/dist/components/PopoverContent.d.ts +19 -0
- package/dist/components/PopoverContent.js +1 -0
- package/dist/components/PopoverTrigger.d.ts +19 -0
- package/dist/components/PopoverTrigger.js +1 -0
- package/dist/{Progress.d.ts → components/Progress.d.ts} +7 -2
- package/dist/components/Progress.js +6 -0
- package/dist/components/RadioGroup.d.ts +19 -0
- package/dist/components/RadioGroup.js +1 -0
- package/dist/components/RadioGroupItem.d.ts +19 -0
- package/dist/components/RadioGroupItem.js +1 -0
- package/dist/components/Search.d.ts +19 -0
- package/dist/components/Search.js +1 -0
- package/dist/{Separator.d.ts → components/Separator.d.ts} +7 -2
- package/dist/components/Separator.js +1 -0
- package/dist/{Skeleton.d.ts → components/Skeleton.d.ts} +7 -2
- package/dist/components/Skeleton.js +1 -0
- package/dist/components/Spinner.d.ts +19 -0
- package/dist/components/Spinner.js +1 -0
- package/dist/components/Switch.d.ts +19 -0
- package/dist/components/Switch.js +1 -0
- package/dist/components/Tabs.d.ts +19 -0
- package/dist/components/Tabs.js +1 -0
- package/dist/components/TabsContent.d.ts +19 -0
- package/dist/components/TabsContent.js +1 -0
- package/dist/components/TabsList.d.ts +19 -0
- package/dist/components/TabsList.js +1 -0
- package/dist/components/TabsTrigger.d.ts +19 -0
- package/dist/components/TabsTrigger.js +1 -0
- package/dist/{Text.d.ts → components/Text.d.ts} +7 -2
- package/dist/components/Text.js +1 -0
- package/dist/components/Textarea.d.ts +19 -0
- package/dist/components/Textarea.js +1 -0
- package/dist/components/Toast.d.ts +19 -0
- package/dist/components/Toast.js +1 -0
- package/dist/components/ToastAction.d.ts +19 -0
- package/dist/components/ToastAction.js +1 -0
- package/dist/components/ToastProvider.d.ts +19 -0
- package/dist/components/ToastProvider.js +1 -0
- package/dist/components/ToastTitle.d.ts +19 -0
- package/dist/components/ToastTitle.js +1 -0
- package/dist/components/Toggle.d.ts +19 -0
- package/dist/components/Toggle.js +1 -0
- package/dist/{Tooltip.d.ts → components/Tooltip.d.ts} +7 -2
- package/dist/components/Tooltip.js +1 -0
- package/dist/{Transition.d.ts → components/Transition.d.ts} +7 -2
- package/dist/components/Transition.js +1 -0
- package/dist/fallbackSpan-DNxO9VEo.js +1 -0
- package/dist/index-7JJOLTTc.js +1 -0
- package/dist/index-8hg4gnks.js +1 -0
- package/dist/index-B-xGy8vy.js +5 -0
- package/dist/index-BDIpiTA0.js +1 -0
- package/dist/index-BVsM6zEZ.js +1 -0
- package/dist/index-BfUPZT_Q.js +1 -0
- package/dist/index-BodmbRW6.js +1 -0
- package/dist/index-BuCVJ96x.js +1 -0
- package/dist/index-C2dvUSY_.js +1 -0
- package/dist/index-C4rGJRqz.js +1 -0
- package/dist/index-CKZ7nO5C.js +1 -0
- package/dist/index-COQIRST2.js +1 -0
- package/dist/index-CdXq2FE6.js +1 -0
- package/dist/index-CpY_vUjZ.js +1 -0
- package/dist/index-CpbqSevc.js +1 -0
- package/dist/index-DBOu4wVk.js +1 -0
- package/dist/index-DNldOfWl.js +1 -0
- package/dist/index-D_04lruD.js +1 -0
- package/dist/index-Dbw_n4sP.js +1 -0
- package/dist/index-DuwNYlQE.js +41 -0
- package/dist/index-G205dGz1.js +7 -0
- package/dist/index-PpDdmZs4.js +1 -0
- package/dist/index-ZE0tm_Cz.js +1 -0
- package/dist/index-ijPjw9Zg.js +1 -0
- package/dist/index-too6-Srf.js +1 -0
- package/dist/index-uuPUo-Rn.js +1 -0
- package/dist/index.js +1 -1
- package/dist/mapping-COOq97DW.js +1 -0
- package/dist/reach-auto-id-CJEsLRWM.js +10 -0
- package/dist/recipeRuntime-CMA2Nc4y.js +1 -0
- package/dist/register-7aDWC8F8.js +1 -0
- package/dist/theme-css-5XgwKbdb.js +1 -0
- package/dist/withIcon-D2Cw35Wb.js +1 -0
- package/package.json +86 -27
- package/dist/AnimatePresence-DvfDfq0x.js +0 -1
- package/dist/AnimatePresence.js +0 -1
- package/dist/Avatar.js +0 -1
- package/dist/Box-9LrXBb0B.js +0 -1
- package/dist/Box.d.ts +0 -14
- package/dist/Box.js +0 -1
- package/dist/Button.js +0 -1
- package/dist/ButtonGroup.css.ts.vanilla-4BGjgIuZ-BjHZZZUs.js +0 -1
- package/dist/ButtonGroup.js +0 -1
- package/dist/Code-CeUUaCb4.js +0 -1
- package/dist/Code.js +0 -1
- package/dist/Field.js +0 -10
- package/dist/Flex-CmzBxGW1.js +0 -1
- package/dist/Flex.js +0 -1
- package/dist/Grid.js +0 -1
- package/dist/Heading.js +0 -1
- package/dist/Input.js +0 -1
- package/dist/Kbd.d.ts +0 -14
- package/dist/Kbd.js +0 -1
- package/dist/Paper.d.ts +0 -14
- package/dist/Paper.js +0 -1
- package/dist/PresenceContext-BIyw24mj.js +0 -1
- package/dist/Progress.js +0 -6
- package/dist/Separator.js +0 -5
- package/dist/Skeleton.js +0 -1
- package/dist/Text-BIAeKp5v.js +0 -1
- package/dist/Text.js +0 -1
- package/dist/Tooltip.js +0 -1
- package/dist/Transition-BD7yTsL2.js +0 -1
- package/dist/Transition.js +0 -1
- package/dist/index-D-Y5pVgW.js +0 -1
- package/dist/index-DLtacV-Q.js +0 -1
- package/dist/index-DoeKEfO9.js +0 -1
- package/dist/register-C6qZMQlw.js +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{k as K,h as x,A as N,y as C,q as M,u as Se,d as Ce,_ as A,b as Ae,N as Te,a as Q,T as Ne}from"./register-7aDWC8F8.js";import{u as Me}from"./index-BodmbRW6.js";import{P as ke}from"./index-BVsM6zEZ.js";import{u as ee}from"./index-BuCVJ96x.js";var Y="focusScope.autoFocusOnMount",X="focusScope.autoFocusOnUnmount",te={bubbles:!1,cancelable:!0},Fe="FocusScope",ne=K((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[o,E]=x(null),y=ee(c),h=ee(i),l=N(null),f=Me(t,a=>E(a)),v=N({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C(()=>{if(r){let a=function(p){if(v.paused||!o)return;const m=p.target;o.contains(m)?l.current=m:T(l.current,{select:!0})},u=function(p){if(v.paused||!o)return;const m=p.relatedTarget;m!==null&&(o.contains(m)||T(l.current,{select:!0}))},d=function(p){if(document.activeElement===document.body)for(const g of p)g.removedNodes.length>0&&T(o)};document.addEventListener("focusin",a),document.addEventListener("focusout",u);const b=new MutationObserver(d);return o&&b.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",u),b.disconnect()}}},[r,o,v.paused]),C(()=>{if(o){ae.add(v);const a=document.activeElement;if(!o.contains(a)){const d=new CustomEvent(Y,te);o.addEventListener(Y,y),o.dispatchEvent(d),d.defaultPrevented||(Oe(Re(re(o)),{select:!0}),document.activeElement===a&&T(o))}return()=>{o.removeEventListener(Y,y),setTimeout(()=>{const d=new CustomEvent(X,te);o.addEventListener(X,h),o.dispatchEvent(d),d.defaultPrevented||T(a??document.body,{select:!0}),o.removeEventListener(X,h),ae.remove(v)},0)}}},[o,y,h,v]);const w=M(a=>{if(!n&&!r||v.paused)return;const u=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,d=document.activeElement;if(u&&d){const b=a.currentTarget,[p,m]=_e(b);p&&m?!a.shiftKey&&d===m?(a.preventDefault(),n&&T(p,{select:!0})):a.shiftKey&&d===p&&(a.preventDefault(),n&&T(m,{select:!0})):d===b&&a.preventDefault()}},[n,r,v.paused]);return Se(ke.div,{tabIndex:-1,...s,ref:f,onKeyDown:w})});ne.displayName=Fe;function Oe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(T(r,{select:t}),document.activeElement!==n)return}function _e(e){const t=re(e),n=oe(t,e),r=oe(t.reverse(),e);return[n,r]}function re(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function oe(e,t){for(const n of e)if(!Le(n,{upTo:t}))return n}function Le(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Pe(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Pe(e)&&t&&e.select()}}var ae=xe();function xe(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ce(e,t),e.unshift(t)},remove(t){e=ce(e,t),e[0]?.resume()}}}function ce(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Re(e){return e.filter(t=>t.tagName!=="A")}var H=0;function Ie(){C(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ie()),document.body.insertAdjacentElement("beforeend",e[1]??ie()),H++,()=>{H===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),H--}},[])}function ie(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var S=function(){return S=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},S.apply(this,arguments)};function ue(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function $e(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,i;r<c;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var I="right-scroll-bar-position",$="width-before-scroll-bar",We="with-scroll-bars-hidden",Be="--removed-body-scroll-bar-size";function z(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ue(e,t){var n=x(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var De=typeof window<"u"?Ce:C,se=new WeakMap;function je(e,t){var n=Ue(null,function(r){return e.forEach(function(c){return z(c,r)})});return De(function(){var r=se.get(n);if(r){var c=new Set(r),i=new Set(e),s=n.current;c.forEach(function(o){i.has(o)||z(o,null)}),i.forEach(function(o){c.has(o)||z(o,s)})}se.set(n,e)},[e]),n}function Ke(e){return e}function Ye(e,t){t===void 0&&(t=Ke);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(o){return i(o)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(i),s=n}var E=function(){var h=s;s=[],h.forEach(i)},y=function(){return Promise.resolve().then(E)};y(),n={push:function(h){s.push(h),y()},filter:function(h){return s=s.filter(h),n}}}};return c}function Xe(e){e===void 0&&(e={});var t=Ye(null);return t.options=S({async:!0,ssr:!1},e),t}var le=function(e){var t=e.sideCar,n=ue(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return A(r,S({},n))};le.isSideCarExport=!0;function He(e,t){return e.useMedium(t),le}var de=Xe(),G=function(){},W=K(function(e,t){var n=N(null),r=x({onScrollCapture:G,onWheelCapture:G,onTouchMoveCapture:G}),c=r[0],i=r[1],s=e.forwardProps,o=e.children,E=e.className,y=e.removeScrollBar,h=e.enabled,l=e.shards,f=e.sideCar,v=e.noIsolation,w=e.inert,a=e.allowPinchZoom,u=e.as,d=u===void 0?"div":u,b=e.gapMode,p=ue(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),m=f,g=je([n,t]),k=S(S({},p),c);return A(Q,null,h&&A(m,{sideCar:de,removeScrollBar:y,shards:l,noIsolation:v,inert:w,setCallbacks:i,allowPinchZoom:!!a,lockRef:n,gapMode:b}),s?Ae(Te.only(o),S(S({},k),{ref:g})):A(d,S({},k,{className:E,ref:g}),o))});W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},W.classNames={fullWidth:$,zeroRight:I};var ze=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ge(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ze();return t&&e.setAttribute("nonce",t),e}function qe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ve(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ze=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ge())&&(qe(t,n),Ve(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Je=function(){var e=Ze();return function(t,n){C(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fe=function(){var e=Je(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Qe={left:0,top:0,right:0,gap:0},q=function(e){return parseInt(e||"",10)||0},et=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[q(n),q(r),q(c)]},tt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qe;var t=et(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nt=fe(),F="data-scroll-locked",rt=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(We,` {
|
|
3
|
+
overflow: hidden `).concat(r,`;
|
|
4
|
+
padding-right: `).concat(o,"px ").concat(r,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(F,`] {
|
|
7
|
+
overflow: hidden `).concat(r,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
|
+
padding-left: `.concat(c,`px;
|
|
11
|
+
padding-top: `).concat(i,`px;
|
|
12
|
+
padding-right: `).concat(s,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(o,"px ").concat(r,`;
|
|
16
|
+
`),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(I,` {
|
|
20
|
+
right: `).concat(o,"px ").concat(r,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat($,` {
|
|
24
|
+
margin-right: `).concat(o,"px ").concat(r,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(I," .").concat(I,` {
|
|
28
|
+
right: 0 `).concat(r,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat($," .").concat($,` {
|
|
32
|
+
margin-right: 0 `).concat(r,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(F,`] {
|
|
36
|
+
`).concat(Be,": ").concat(o,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},ve=function(){var e=parseInt(document.body.getAttribute(F)||"0",10);return isFinite(e)?e:0},ot=function(){C(function(){return document.body.setAttribute(F,(ve()+1).toString()),function(){var e=ve()-1;e<=0?document.body.removeAttribute(F):document.body.setAttribute(F,e.toString())}},[])},at=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;ot();var i=Ne(function(){return tt(c)},[c]);return A(nt,{styles:rt(i,!t,c,n?"":"!important")})},V=!1;if(typeof window<"u")try{var B=Object.defineProperty({},"passive",{get:function(){return V=!0,!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch{V=!1}var O=V?{passive:!1}:!1,ct=function(e){return e.tagName==="TEXTAREA"},pe=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ct(e)&&n[t]==="visible")},it=function(e){return pe(e,"overflowY")},ut=function(e){return pe(e,"overflowX")},he=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=me(e,r);if(c){var i=ge(e,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},st=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},lt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},me=function(e,t){return e==="v"?it(t):ut(t)},ge=function(e,t){return e==="v"?st(t):lt(t)},dt=function(e,t){return e==="h"&&t==="rtl"?-1:1},ft=function(e,t,n,r,c){var i=dt(e,window.getComputedStyle(t).direction),s=i*r,o=n.target,E=t.contains(o),y=!1,h=s>0,l=0,f=0;do{var v=ge(e,o),w=v[0],a=v[1],u=v[2],d=a-u-i*w;(w||d)&&me(e,o)&&(l+=d,f+=w),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!E&&o!==document.body||E&&(t.contains(o)||t===o));return(h&&(Math.abs(l)<1||!c)||!h&&(Math.abs(f)<1||!c))&&(y=!0),y},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ye=function(e){return[e.deltaX,e.deltaY]},be=function(e){return e&&"current"in e?e.current:e},vt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pt=function(e){return`
|
|
39
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
+
`)},ht=0,_=[];function mt(e){var t=N([]),n=N([0,0]),r=N(),c=x(ht++)[0],i=x(fe)[0],s=N(e);C(function(){s.current=e},[e]),C(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var a=$e([e.lockRef.current],(e.shards||[]).map(be),!0).filter(Boolean);return a.forEach(function(u){return u.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),a.forEach(function(u){return u.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var o=M(function(a,u){if("touches"in a&&a.touches.length===2)return!s.current.allowPinchZoom;var d=U(a),b=n.current,p="deltaX"in a?a.deltaX:b[0]-d[0],m="deltaY"in a?a.deltaY:b[1]-d[1],g,k=a.target,P=Math.abs(p)>Math.abs(m)?"h":"v";if("touches"in a&&P==="h"&&k.type==="range")return!1;var R=he(P,k);if(!R)return!0;if(R?g=P:(g=P==="v"?"h":"v",R=he(P,k)),!R)return!1;if(!r.current&&"changedTouches"in a&&(p||m)&&(r.current=g),!g)return!0;var J=r.current||g;return ft(J,u,a,J==="h"?p:m,!0)},[]),E=M(function(a){var u=a;if(!(!_.length||_[_.length-1]!==i)){var d="deltaY"in u?ye(u):U(u),b=t.current.filter(function(g){return g.name===u.type&&(g.target===u.target||u.target===g.shadowParent)&&vt(g.delta,d)})[0];if(b&&b.should){u.cancelable&&u.preventDefault();return}if(!b){var p=(s.current.shards||[]).map(be).filter(Boolean).filter(function(g){return g.contains(u.target)}),m=p.length>0?o(u,p[0]):!s.current.noIsolation;m&&u.cancelable&&u.preventDefault()}}},[]),y=M(function(a,u,d,b){var p={name:a,delta:u,target:d,should:b,shadowParent:gt(d)};t.current.push(p),setTimeout(function(){t.current=t.current.filter(function(m){return m!==p})},1)},[]),h=M(function(a){n.current=U(a),r.current=void 0},[]),l=M(function(a){y(a.type,ye(a),a.target,o(a,e.lockRef.current))},[]),f=M(function(a){y(a.type,U(a),a.target,o(a,e.lockRef.current))},[]);C(function(){return _.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:f}),document.addEventListener("wheel",E,O),document.addEventListener("touchmove",E,O),document.addEventListener("touchstart",h,O),function(){_=_.filter(function(a){return a!==i}),document.removeEventListener("wheel",E,O),document.removeEventListener("touchmove",E,O),document.removeEventListener("touchstart",h,O)}},[]);var v=e.removeScrollBar,w=e.inert;return A(Q,null,w?A(i,{styles:pt(c)}):null,v?A(at,{gapMode:e.gapMode}):null)}function gt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var yt=He(de,mt),Ee=K(function(e,t){return A(W,S({},e,{ref:t,sideCar:yt}))});Ee.classNames=W.classNames;var bt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},L=new WeakMap,D=new WeakMap,j={},Z=0,we=function(e){return e&&(e.host||we(e.parentNode))},Et=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=we(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return Boolean(n)})},wt=function(e,t,n,r){var c=Et(t,Array.isArray(e)?e:[e]);j[n]||(j[n]=new WeakMap);var i=j[n],s=[],o=new Set,E=new Set(c),y=function(l){!l||o.has(l)||(o.add(l),y(l.parentNode))};c.forEach(y);var h=function(l){!l||E.has(l)||Array.prototype.forEach.call(l.children,function(f){if(o.has(f))h(f);else try{var v=f.getAttribute(r),w=v!==null&&v!=="false",a=(L.get(f)||0)+1,u=(i.get(f)||0)+1;L.set(f,a),i.set(f,u),s.push(f),a===1&&w&&D.set(f,!0),u===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",f,d)}})};return h(t),o.clear(),Z++,function(){s.forEach(function(l){var f=L.get(l)-1,v=i.get(l)-1;L.set(l,f),i.set(l,v),f||(D.has(l)||l.removeAttribute(r),D.delete(l)),v||l.removeAttribute(n)}),Z--,Z||(L=new WeakMap,L=new WeakMap,D=new WeakMap,j={})}},St=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=t||bt(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live]"))),wt(r,c,n,"aria-hidden")):function(){return null}};export{ne as F,St as h,Ee as o,Ie as u};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{k as s,u as i,A as u,y as O}from"./register-7aDWC8F8.js";import{a as T}from"./index-D_04lruD.js";import{u as A,S as b}from"./index-BodmbRW6.js";import{c as D,T as R,O as M,C as I,W as x,a as w,D as L,b as v,R as $,P as F}from"./index-B-xGy8vy.js";import{c as G}from"./index-7JJOLTTc.js";var m="AlertDialog",[W,se]=T(m,[D]),l=D(),f=e=>{const{__scopeAlertDialog:o,...r}=e,t=l(o);return i($,{...t,...r,modal:!0})};f.displayName=m;var Y="AlertDialogTrigger",k=s((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=l(r);return i(R,{...a,...t,ref:o})});k.displayName=Y;var q="AlertDialogPortal",y=e=>{const{__scopeAlertDialog:o,...r}=e,t=l(o);return i(F,{...t,...r})};y.displayName=q;var B="AlertDialogOverlay",_=s((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=l(r);return i(M,{...a,...t,ref:o})});_.displayName=B;var n="AlertDialogContent",[H,V]=W(n),N=s((e,o)=>{const{__scopeAlertDialog:r,children:t,...a}=e,g=l(r),p=u(null),E=A(o,p),d=u(null);return i(x,{contentName:n,titleName:h,docsSlug:"alert-dialog",children:i(H,{scope:r,cancelRef:d,children:i(I,{role:"alertdialog",...g,...a,ref:E,onOpenAutoFocus:G(a.onOpenAutoFocus,c=>{c.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[i(b,{children:t}),i(Q,{contentRef:p})]})})})});N.displayName=n;var h="AlertDialogTitle",j=s((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=l(r);return i(w,{...a,...t,ref:o})});j.displayName=h;var C="AlertDialogDescription",P=s((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=l(r);return i(L,{...a,...t,ref:o})});P.displayName=C;var z="AlertDialogAction",J=s((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=l(r);return i(v,{...a,...t,ref:o})});J.displayName=z;var S="AlertDialogCancel",K=s((e,o)=>{const{__scopeAlertDialog:r,...t}=e,{cancelRef:a}=V(S,r),g=l(r),p=A(o,a);return i(v,{...g,...t,ref:p})});K.displayName=S;var Q=({contentRef:e})=>{const o=`\`${n}\` requires a description for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
You can add a description to the \`${n}\` by passing a \`${C}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
|
+
|
|
5
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${n}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
|
+
|
|
7
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return O(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(o)},[o,e]),null},U=f,X=y,Z=_,ee=N,oe=P;export{ee as C,oe as D,Z as O,X as P,U as R};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as t,x as i}from"./register-7aDWC8F8.js";var n=t(void 0);function e(o){const r=i(n);return o||r||"ltr"}export{e as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as u,c as a}from"./register-7aDWC8F8.js";import{u as s}from"./index-DBOu4wVk.js";var i=a["useId".toString()]||(()=>{}),c=0;function d(r){const[t,o]=u(i());return s(()=>{o(e=>e??String(c++))},[r]),t?`radix-${t}`:""}export{d as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as u,T as t}from"./register-7aDWC8F8.js";function n(r){const e=u({value:r,previous:r});return t(()=>(e.current.value!==r&&(e.current.previous=e.current.value,e.current.value=r),e.current.previous),[r])}export{n as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as m,u as d,A as R,y as x}from"./register-7aDWC8F8.js";import{u as E,c as T}from"./index-7JJOLTTc.js";import{a as D}from"./index-D_04lruD.js";import{c as I,R as V,I as G}from"./index-8hg4gnks.js";import{P as L}from"./index-BDIpiTA0.js";import{P as p}from"./index-BVsM6zEZ.js";import{u as k}from"./index-PpDdmZs4.js";import{u as w}from"./index-ZE0tm_Cz.js";var f="Tabs",[$,Y]=D(f,[I]),h=I(),[K,g]=$(f),C=m((e,n)=>{const{__scopeTabs:s,value:t,onValueChange:r,defaultValue:c,orientation:a="horizontal",dir:u,activationMode:v="automatic",...b}=e,i=k(u),[o,l]=E({prop:t,onChange:r,defaultProp:c});return d(K,{scope:s,baseId:w(),value:o,onValueChange:l,orientation:a,dir:i,activationMode:v,children:d(p.div,{dir:i,"data-orientation":a,...b,ref:n})})});C.displayName=f;var y="TabsList",A=m((e,n)=>{const{__scopeTabs:s,loop:t=!0,...r}=e,c=g(y,s),a=h(s);return d(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:t,children:d(p.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:n})})});A.displayName=y;var _="TabsTrigger",P=m((e,n)=>{const{__scopeTabs:s,value:t,disabled:r=!1,...c}=e,a=g(_,s),u=h(s),v=N(a.baseId,t),b=F(a.baseId,t),i=t===a.value;return d(G,{asChild:!0,...u,focusable:!r,active:i,children:d(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":b,"data-state":i?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...c,ref:n,onMouseDown:T(e.onMouseDown,o=>{!r&&o.button===0&&o.ctrlKey===!1?a.onValueChange(t):o.preventDefault()}),onKeyDown:T(e.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(t)}),onFocus:T(e.onFocus,()=>{const o=a.activationMode!=="manual";!i&&!r&&o&&a.onValueChange(t)})})})});P.displayName=_;var S="TabsContent",M=m((e,n)=>{const{__scopeTabs:s,value:t,forceMount:r,children:c,...a}=e,u=g(S,s),v=N(u.baseId,t),b=F(u.baseId,t),i=t===u.value,o=R(i);return x(()=>{const l=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(l)},[]),d(L,{present:r||i,children:({present:l})=>d(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":v,hidden:!l,id:b,tabIndex:0,...a,ref:n,style:{...e.style,animationDuration:o.current?"0s":void 0},children:l&&c})})});M.displayName=S;function N(e,n){return`${e}-trigger-${n}`}function F(e,n){return`${e}-content-${n}`}var B=C,q=A,z=P;export{q as L,B as R,M as T,z as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as R,u as i,q as le,h as se,A as x,y as de,R as u}from"./register-7aDWC8F8.js";import{a as F}from"./index-D_04lruD.js";import{c as pe}from"./index-CpY_vUjZ.js";import{u as q}from"./index-BodmbRW6.js";import{u as D,c as z}from"./index-7JJOLTTc.js";import{P as _}from"./index-BVsM6zEZ.js";import{u as ue}from"./index-DBOu4wVk.js";import{P as fe}from"./index-BDIpiTA0.js";import{u as B}from"./index-ZE0tm_Cz.js";import{u as me}from"./index-PpDdmZs4.js";var k="Collapsible",[Ce,U]=F(k),[ve,M]=Ce(k),Y=R((e,a)=>{const{__scopeCollapsible:o,open:n,defaultOpen:r,disabled:t,onOpenChange:c,...s}=e,[d=!1,p]=D({prop:n,defaultProp:r,onChange:c});return i(ve,{scope:o,disabled:t,contentId:B(),open:d,onOpenToggle:le(()=>p(f=>!f),[p]),children:i(_.div,{"data-state":L(d),"data-disabled":t?"":void 0,...s,ref:a})})});Y.displayName=k;var j="CollapsibleTrigger",J=R((e,a)=>{const{__scopeCollapsible:o,...n}=e,r=M(j,o);return i(_.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":L(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:a,onClick:z(e.onClick,r.onOpenToggle)})});J.displayName=j;var V="CollapsibleContent",Q=R((e,a)=>{const{forceMount:o,...n}=e,r=M(V,e.__scopeCollapsible);return i(fe,{present:o||r.open,children:({present:t})=>i(be,{...n,ref:a,present:t})})});Q.displayName=V;var be=R((e,a)=>{const{__scopeCollapsible:o,present:n,children:r,...t}=e,c=M(V,o),[s,d]=se(n),p=x(null),f=q(a,p),m=x(0),h=m.current,v=x(0),P=v.current,b=c.open||s,g=x(b),A=x();return de(()=>{const l=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(l)},[]),ue(()=>{const l=p.current;if(l){A.current=A.current||{transitionDuration:l.style.transitionDuration,animationName:l.style.animationName},l.style.transitionDuration="0s",l.style.animationName="none";const I=l.getBoundingClientRect();m.current=I.height,v.current=I.width,g.current||(l.style.transitionDuration=A.current.transitionDuration,l.style.animationName=A.current.animationName),d(n)}},[c.open,n]),i(_.div,{"data-state":L(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!b,...t,ref:f,style:{["--radix-collapsible-content-height"]:h?`${h}px`:void 0,["--radix-collapsible-content-width"]:P?`${P}px`:void 0,...e.style},children:b&&r})});function L(e){return e?"open":"closed"}var ge=Y,Ae=J,he=Q,C="Accordion",Ie=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[H,xe,_e]=pe(C),[y,Be]=F(C,[_e,U]),$=U(),W=u.forwardRef((e,a)=>{const{type:o,...n}=e,r=n,t=n;return i(H.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?i(Ne,{...t,ref:a}):i(ye,{...r,ref:a})})});W.displayName=C;var[X,Pe]=y(C),[Z,Re]=y(C,{collapsible:!1}),ye=u.forwardRef((e,a)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},collapsible:t=!1,...c}=e,[s,d]=D({prop:o,defaultProp:n,onChange:r});return i(X,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:d,onItemClose:u.useCallback(()=>t&&d(""),[t,d]),children:i(Z,{scope:e.__scopeAccordion,collapsible:t,children:i(ee,{...c,ref:a})})})}),Ne=u.forwardRef((e,a)=>{const{value:o,defaultValue:n,onValueChange:r=()=>{},...t}=e,[c=[],s]=D({prop:o,defaultProp:n,onChange:r}),d=u.useCallback(f=>s((m=[])=>[...m,f]),[s]),p=u.useCallback(f=>s((m=[])=>m.filter(h=>h!==f)),[s]);return i(X,{scope:e.__scopeAccordion,value:c,onItemOpen:d,onItemClose:p,children:i(Z,{scope:e.__scopeAccordion,collapsible:!0,children:i(ee,{...t,ref:a})})})}),[we,N]=y(C),ee=u.forwardRef((e,a)=>{const{__scopeAccordion:o,disabled:n,dir:r,orientation:t="vertical",...c}=e,s=u.useRef(null),d=q(s,a),p=xe(o),m=me(r)==="ltr",h=z(e.onKeyDown,v=>{if(!Ie.includes(v.key))return;const P=v.target,b=p().filter(T=>!T.ref.current?.disabled),g=b.findIndex(T=>T.ref.current===P),A=b.length;if(g===-1)return;v.preventDefault();let l=g;const I=0,E=A-1,O=()=>{l=g+1,l>E&&(l=I)},S=()=>{l=g-1,l<I&&(l=E)};switch(v.key){case"Home":l=I;break;case"End":l=E;break;case"ArrowRight":t==="horizontal"&&(m?O():S());break;case"ArrowDown":t==="vertical"&&O();break;case"ArrowLeft":t==="horizontal"&&(m?S():O());break;case"ArrowUp":t==="vertical"&&S();break}const ce=l%A;b[ce].ref.current?.focus()});return i(we,{scope:o,disabled:n,direction:r,orientation:t,children:i(H.Slot,{scope:o,children:i(_.div,{...c,"data-orientation":t,ref:d,onKeyDown:n?void 0:h})})})}),w="AccordionItem",[Ee,G]=y(w),oe=u.forwardRef((e,a)=>{const{__scopeAccordion:o,value:n,...r}=e,t=N(w,o),c=Pe(w,o),s=$(o),d=B(),p=n&&c.value.includes(n)||!1,f=t.disabled||e.disabled;return i(Ee,{scope:o,open:p,disabled:f,triggerId:d,children:i(ge,{"data-orientation":t.orientation,"data-state":ie(p),...s,...r,ref:a,disabled:f,open:p,onOpenChange:m=>{m?c.onItemOpen(n):c.onItemClose(n)}})})});oe.displayName=w;var te="AccordionHeader",Oe=u.forwardRef((e,a)=>{const{__scopeAccordion:o,...n}=e,r=N(C,o),t=G(te,o);return i(_.h3,{"data-orientation":r.orientation,"data-state":ie(t.open),"data-disabled":t.disabled?"":void 0,...n,ref:a})});Oe.displayName=te;var K="AccordionTrigger",ne=u.forwardRef((e,a)=>{const{__scopeAccordion:o,...n}=e,r=N(C,o),t=G(K,o),c=Re(K,o),s=$(o);return i(H.ItemSlot,{scope:o,children:i(Ae,{"aria-disabled":t.open&&!c.collapsible||void 0,"data-orientation":r.orientation,id:t.triggerId,...s,...n,ref:a})})});ne.displayName=K;var re="AccordionContent",ae=u.forwardRef((e,a)=>{const{__scopeAccordion:o,...n}=e,r=N(C,o),t=G(re,o),c=$(o);return i(he,{role:"region","aria-labelledby":t.triggerId,"data-orientation":r.orientation,...c,...n,ref:a,style:{["--radix-accordion-content-height"]:"var(--radix-collapsible-content-height)",["--radix-accordion-content-width"]:"var(--radix-collapsible-content-width)",...e.style}})});ae.displayName=re;function ie(e){return e?"open":"closed"}var Se=W,Te=oe,De=ne,ke=ae;export{ke as C,Te as I,Se as R,De as T};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{m as i}from"./mapping-COOq97DW.js";for(const[t,s]of Object.entries(i))customElements.get(t)||customElements.define(t,class extends HTMLElement{#i=!1;#t=!1;#s;#e;constructor(){super(),this.#e=import(`./components/${s}.js`).then(e=>{this.#s=e.default(this)})}connectedCallback(){this.#t||(this.style.visibility="hidden",this.#e.then(()=>{this.#t||(this.style.visibility="",this.#s?.connectedCallback(),this.#i=!0,this.classList.add("hydrated"))}))}disconnectedCallback(){if(!this.#i){this.#t=!0;return}this.#e.then(()=>{this.#s?.disconnectedCallback()})}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s={".":"./dist/index.js","./Accordion":"./dist/components/Accordion.js","./AccordionContent":"./dist/components/AccordionContent.js","./AccordionItem":"./dist/components/AccordionItem.js","./AccordionTrigger":"./dist/components/AccordionTrigger.js","./Alert":"./dist/components/Alert.js","./AlertDescription":"./dist/components/AlertDescription.js","./AlertDialog":"./dist/components/AlertDialog.js","./AlertDialogAction":"./dist/components/AlertDialogFooter.js","./AlertDialogCancel":"./dist/components/AlertDialogFooter.js","./AlertDialogDescription":"./dist/components/AlertDialogDescription.js","./AlertDialogFooter":"./dist/components/AlertDialogFooter.js","./AlertDialogTitle":"./dist/components/AlertDialogTitle.js","./AlertTitle":"./dist/components/AlertTitle.js","./AnimatePresence":"./dist/components/AnimatePresence.js","./Avatar":"./dist/components/Avatar.js","./AvatarGroup":"./dist/components/AvatarGroup.js","./AxiomProvider":"./dist/components/AxiomProvider.js","./Badge":"./dist/components/Badge.js","./Box":"./dist/components/Box.js","./Breadcrumbs":"./dist/components/Breadcrumbs.js","./BreadcrumbItem":"./dist/components/BreadcrumbItem.js","./Button":"./dist/components/Button.js","./ButtonGroup":"./dist/components/ButtonGroup.js","./Checkbox":"./dist/components/Checkbox.js","./Code":"./dist/components/Code.js","./Dialog":"./dist/components/Dialog.js","./DialogBody":"./dist/components/DialogBody.js","./DialogFooter":"./dist/components/DialogFooter.js","./DialogTitle":"./dist/components/DialogTitle.js","./Drawer":"./dist/components/Drawer.js","./DrawerBody":"./dist/components/DrawerBody.js","./DrawerFooter":"./dist/components/DrawerFooter.js","./DrawerTitle":"./dist/components/DrawerTitle.js","./Field":"./dist/components/Field.js","./Flex":"./dist/components/Flex.js","./Grid":"./dist/components/Grid.js","./Heading":"./dist/components/Heading.js","./HoverCard":"./dist/components/HoverCard.js","./HoverCardContent":"./dist/components/HoverCardContent.js","./HoverCardTrigger":"./dist/components/HoverCardTrigger.js","./Indicator":"./dist/components/Indicator.js","./Input":"./dist/components/Input.js","./Kbd":"./dist/components/Kbd.js","./Link":"./dist/components/Link.js","./Menu":"./dist/components/Menu.js","./MenuContent":"./dist/components/MenuContent.js","./MenuItem":"./dist/components/MenuItem.js","./MenuLabel":"./dist/components/MenuLabel.js","./MenuSeparator":"./dist/components/MenuSeparator.js","./MenuTrigger":"./dist/components/MenuTrigger.js","./Pagination":"./dist/components/Pagination.js","./Popover":"./dist/components/Popover.js","./PopoverContent":"./dist/components/PopoverContent.js","./PopoverTrigger":"./dist/components/PopoverTrigger.js","./Progress":"./dist/components/Progress.js","./RadioGroup":"./dist/components/RadioGroup.js","./RadioGroupItem":"./dist/components/RadioGroupItem.js","./Search":"./dist/components/Search.js","./Separator":"./dist/components/Separator.js","./Skeleton":"./dist/components/Skeleton.js","./Spinner":"./dist/components/Spinner.js","./Switch":"./dist/components/Switch.js","./Tabs":"./dist/components/Tabs.js","./TabsContent":"./dist/components/TabsContent.js","./TabsList":"./dist/components/TabsList.js","./TabsTrigger":"./dist/components/TabsTrigger.js","./Text":"./dist/components/Text.js","./Textarea":"./dist/components/Textarea.js","./Toast":"./dist/components/Toast.js","./ToastAction":"./dist/components/ToastAction.js","./ToastProvider":"./dist/components/ToastProvider.js","./ToastTitle":"./dist/components/ToastTitle.js","./Toggle":"./dist/components/Toggle.js","./Tooltip":"./dist/components/Tooltip.js","./Transition":"./dist/components/Transition.js"};const e=Object.keys(s).filter(o=>o!==".").map(o=>["ax"+o.slice(2).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),o.slice(2)]),n=Object.fromEntries(e);export{n as m};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{k as s,u as d,d as c,y as o,h as m,c as w}from"./register-7aDWC8F8.js";import{P as v}from"./index-BVsM6zEZ.js";var g="Label",i=s((t,a)=>d(v.label,{...t,ref:a,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));i.displayName=g;var I=i;/**
|
|
2
|
+
* @reach/utils v0.18.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/function b(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var p=b()?c:o,r=!1,y=0;function u(){return++y}var l=w["useId".toString()];function D(t){if(l!==void 0){let f=l();return t??f}let a=t??(r?u():null),[e,n]=m(a);return p(()=>{e===null&&n(u())},[]),o(()=>{r===!1&&(r=!0)},[]),t??e??void 0}export{I as R,D as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as m}from"./register-7aDWC8F8.js";m("@layer optiaxiom;@layer optiaxiom.base;@layer optiaxiom._1kfj4ga0;@layer optiaxiom._1kfj4ga1;");const u=({base:i={},variants:n,variantsCompounded:e=[]})=>(y,f)=>{const r=y??{},c=f?[f]:[],l={};function s(o){for(const t of Array.isArray(o)?o:[o])if(typeof t=="string")c.push(t);else for(const[a,p]of Object.entries(t))l[a]=p}s(i);for(const o in n){if(r[o]===null||r[o]===void 0)continue;const t=n[o],a=typeof r[o]=="boolean"?r[o]?"true":"false":r[o];String(a)in t&&s(t[a])}for(const{style:o,variants:t}of e)j(t,r)&&s(o);return{...l,className:c.join(" ")}},j=(i,n)=>{for(const e of Object.keys(i))if(i[e]!==n[e])return!1;return!0};export{u as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as At}from"./mapping-COOq97DW.js";var W,p,Ae,H,Fe,Ie,ae,se,fe,pe,We,V={},Ve=[],Ft=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,X=Array.isArray;function w(e,t){for(var n in t)e[n]=t[n];return e}function qe(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var _,o,r,i={};for(r in t)r=="key"?_=t[r]:r=="ref"?o=t[r]:i[r]=t[r];if(arguments.length>2&&(i.children=arguments.length>3?W.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)i[r]===void 0&&(i[r]=e.defaultProps[r]);return q(e,i,_,o,null)}function q(e,t,n,_,o){var r={type:e,props:t,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Ae,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(r),r}function Be(){return{current:null}}function $(e){return e.children}function E(e,t){this.props=e,this.context=t}function T(e,t){if(t==null)return e.__?T(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?T(e):null}function je(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return je(e)}}function de(e){(!e.__d&&(e.__d=!0)&&H.push(e)&&!ee.__r++||Fe!==p.debounceRendering)&&((Fe=p.debounceRendering)||Ie)(ee)}function ee(){var e,t,n,_,o,r,i,l;for(H.sort(ae);e=H.shift();)e.__d&&(t=H.length,_=void 0,r=(o=(n=e).__v).__e,i=[],l=[],n.__P&&((_=w({},o)).__v=o.__v+1,p.vnode&&p.vnode(_),he(n.__P,_,o,n.__n,n.__P.namespaceURI,32&o.__u?[r]:null,i,r??T(o),!!(32&o.__u),l),_.__v=o.__v,_.__.__k[_.__i]=_,Je(i,_,l),_.__e!=r&&je(_)),H.length>t&&H.sort(ae));ee.__r=0}function ze(e,t,n,_,o,r,i,l,a,c,s){var u,d,f,g,k,C=_&&_.__k||Ve,v=t.length;for(n.__d=a,It(n,t,C),a=n.__d,u=0;u<v;u++)(f=n.__k[u])!=null&&typeof f!="boolean"&&typeof f!="function"&&(d=f.__i===-1?V:C[f.__i]||V,f.__i=u,he(e,f,d,o,r,i,l,a,c,s),g=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&ve(d.ref,null,f),s.push(f.ref,f.__c||g,f)),k==null&&g!=null&&(k=g),65536&f.__u||d.__k===f.__k?a=Ge(f,a,e):typeof f.type=="function"&&f.__d!==void 0?a=f.__d:g&&(a=g.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=a,n.__e=k}function It(e,t,n){var _,o,r,i,l,a=t.length,c=n.length,s=c,u=0;for(e.__k=[],_=0;_<a;_++)i=_+u,(o=e.__k[_]=(o=t[_])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?q(null,o,null,null,null):X(o)?q($,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?q(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,l=Wt(o,n,i,s),o.__i=l,r=null,l!==-1&&(s--,(r=n[l])&&(r.__u|=131072)),r==null||r.__v===null?(l==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):l!==i&&(l==i-1?u=l-i:l==i+1?u++:l>i?s>a-i?u+=l-i:u--:l<i&&u++,l!==_+u&&(o.__u|=65536))):(r=n[i])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=T(r)),me(r,r,!1),n[i]=null,s--);if(s)for(_=0;_<c;_++)(r=n[_])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=T(r)),me(r,r))}function Ge(e,t,n){var _,o;if(typeof e.type=="function"){for(_=e.__k,o=0;_&&o<_.length;o++)_[o]&&(_[o].__=e,t=Ge(_[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=T(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function S(e,t){return t=t||[],e==null||typeof e=="boolean"||(X(e)?e.some(function(n){S(n,t)}):t.push(e)),t}function Wt(e,t,n,_){var o=e.key,r=e.type,i=n-1,l=n+1,a=t[n];if(a===null||a&&o==a.key&&r===a.type&&!(131072&a.__u))return n;if(_>(a!=null&&!(131072&a.__u)?1:0))for(;i>=0||l<t.length;){if(i>=0){if((a=t[i])&&!(131072&a.__u)&&o==a.key&&r===a.type)return i;i--}if(l<t.length){if((a=t[l])&&!(131072&a.__u)&&o==a.key&&r===a.type)return l;l++}}return-1}function Ye(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ft.test(t)?n:n+"px"}function te(e,t,n,_,o){var r;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof _=="string"&&(e.style.cssText=_=""),_)for(t in _)n&&t in n||Ye(e.style,t,"");if(n)for(t in n)_&&n[t]===_[t]||Ye(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?_?n.u=_.u:(n.u=se,e.addEventListener(t,r?pe:fe,r)):e.removeEventListener(t,r?pe:fe,r);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ze(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=se++;else if(t.t<n.u)return;return n(p.event?p.event(t):t)}}}function he(e,t,n,_,o,r,i,l,a,c){var s,u,d,f,g,k,C,v,y,F,R,J,I,Me,K,ce,x=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),r=[l=t.__e=n.__e]),(s=p.__b)&&s(t);e:if(typeof x=="function")try{if(v=t.props,y="prototype"in x&&x.prototype.render,F=(s=x.contextType)&&_[s.__c],R=s?F?F.props.value:s.__:_,n.__c?C=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new x(v,R):(t.__c=u=new E(v,R),u.constructor=x,u.render=qt),F&&F.sub(u),u.props=v,u.state||(u.state={}),u.context=R,u.__n=_,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&x.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=w({},u.__s)),w(u.__s,x.getDerivedStateFromProps(v,u.__s))),f=u.props,g=u.state,u.__v=t,d)y&&x.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&x.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,R),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,R)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Q){Q&&(Q.__=t)}),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,R),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,g,k)})}if(u.context=R,u.props=v,u.__P=e,u.__e=!1,I=p.__r,Me=0,y){for(u.state=u.__s,u.__d=!1,I&&I(t),s=u.render(u.props,u.state,u.context),K=0;K<u._sb.length;K++)u.__h.push(u._sb[K]);u._sb=[]}else do u.__d=!1,I&&I(t),s=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++Me<25);u.state=u.__s,u.getChildContext!=null&&(_=w(w({},_),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&(k=u.getSnapshotBeforeUpdate(f,g)),ze(e,X(ce=s!=null&&s.type===$&&s.key==null?s.props.children:s)?ce:[ce],t,n,_,o,r,i,l,a,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),C&&(u.__E=u.__=null)}catch(Q){if(t.__v=null,a||r!=null){for(t.__u|=a?160:32;l&&l.nodeType===8&&l.nextSibling;)l=l.nextSibling;r[r.indexOf(l)]=null,t.__e=l}else t.__e=n.__e,t.__k=n.__k;p.__e(Q,t,n)}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Vt(n.__e,t,n,_,o,r,i,a,c);(s=p.diffed)&&s(t)}function Je(e,t,n){t.__d=void 0;for(var _=0;_<n.length;_++)ve(n[_],n[++_],n[++_]);p.__c&&p.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(r){r.call(o)})}catch(r){p.__e(r,o.__v)}})}function Vt(e,t,n,_,o,r,i,l,a){var c,s,u,d,f,g,k,C=n.props,v=t.props,y=t.type;if(y==="svg"?o="http://www.w3.org/2000/svg":y==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),r!=null){for(c=0;c<r.length;c++)if((f=r[c])&&"setAttribute"in f==!!y&&(y?f.localName===y:f.nodeType===3)){e=f,r[c]=null;break}}if(e==null){if(y===null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),r=null,l=!1}if(y===null)C===v||l&&e.data===v||(e.data=v);else{if(r=r&&W.call(e.childNodes),C=n.props||V,!l&&r!=null)for(C={},c=0;c<e.attributes.length;c++)C[(f=e.attributes[c]).name]=f.value;for(c in C)if(f=C[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(c!=="key"&&!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;te(e,c,null,f,o)}}for(c in v)f=v[c],c=="children"?d=f:c=="dangerouslySetInnerHTML"?s=f:c=="value"?g=f:c=="checked"?k=f:c==="key"||l&&typeof f!="function"||C[c]===f||te(e,c,f,C[c],o);if(s)l||u&&(s.__html===u.__html||s.__html===e.innerHTML)||(e.innerHTML=s.__html),t.__k=[];else if(u&&(e.innerHTML=""),ze(e,X(d)?d:[d],t,n,_,y==="foreignObject"?"http://www.w3.org/1999/xhtml":o,r,i,r?r[0]:n.__k&&T(n,0),l,a),r!=null)for(c=r.length;c--;)r[c]!=null&&qe(r[c]);l||(c="value",g!==void 0&&(g!==e[c]||y==="progress"&&!g||y==="option"&&g!==C[c])&&te(e,c,g,C[c],o),c="checked",k!==void 0&&k!==e[c]&&te(e,c,k,C[c],o))}return e}function ve(e,t,n){try{if(typeof e=="function"){var _=typeof e.__u=="function";_&&e.__u(),_&&t==null||(e.__u=e(t))}else e.current=t}catch(o){p.__e(o,n)}}function me(e,t,n){var _,o;if(p.unmount&&p.unmount(e),(_=e.ref)&&(_.current&&_.current!==e.__e||ve(_,null,t)),(_=e.__c)!=null){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(r){p.__e(r,t)}_.base=_.__P=null}if(_=e.__k)for(o=0;o<_.length;o++)_[o]&&me(_[o],t,n||typeof e.type!="function");n||e.__e==null||qe(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function qt(e,t,n){return this.constructor(e,n)}function B(e,t,n){var _,o,r,i;p.__&&p.__(e,t),o=(_=typeof n=="function")?null:n&&n.__k||t.__k,r=[],i=[],he(t,e=(!_&&n||t).__k=b($,null,[e]),o||V,V,t.namespaceURI,!_&&n?[n]:o?null:t.firstChild?W.call(t.childNodes):null,r,!_&&n?n:o?o.__e:t.firstChild,_,i),Je(r,e,i)}function Ke(e,t){B(e,t,Ke)}function Bt(e,t,n){var _,o,r,i,l=w({},e.props);for(r in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)r=="key"?_=t[r]:r=="ref"?o=t[r]:l[r]=t[r]===void 0&&i!==void 0?i[r]:t[r];return arguments.length>2&&(l.children=arguments.length>3?W.call(arguments,2):n),q(e.type,l,_||e.key,o||e.ref,null)}function ne(e,t){var n={__c:t="__cC"+We++,__:e,Consumer:function(_,o){return _.children(o)},Provider:function(_){var o,r;return this.getChildContext||(o=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(l){l.__e=!0,de(l)})},this.sub=function(i){o.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.splice(o.indexOf(i),1),l&&l.call(i)}}),_.children}};return n.Provider.__=n.Consumer.contextType=n}W=Ve.slice,p={__e:function(e,t,n,_){for(var o,r,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,_||{}),i=o.__d),i)return o.__E=o}catch(l){e=l}throw e}},Ae=0,E.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=w({},this.state),typeof e=="function"&&(e=e(w({},n),this.props)),e&&w(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),de(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),de(this))},E.prototype.render=$,H=[],Ie=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ae=function(e,t){return e.__v.__b-t.__v.__b},ee.__r=0,se=0,fe=Ze(!1),pe=Ze(!0),We=0;var jt=0;function zt(e,t,n,_,o,r){t||(t={});var i,l,a=t;if("ref"in a)for(l in a={},t)l=="ref"?i=t[l]:a[l]=t[l];var c={type:e,props:a,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--jt,__i:-1,__u:0,__source:o,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(l in i)a[l]===void 0&&(a[l]=i[l]);return p.vnode&&p.vnode(c),c}var N,h,ye,Qe,D=0,Xe=[],m=p,et=m.__b,tt=m.__r,nt=m.diffed,_t=m.__c,ot=m.unmount,rt=m.__;function U(e,t){m.__h&&m.__h(h,e,D||t),D=0;var n=h.__H||(h.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function L(e){return D=1,j(it,e)}function j(e,t,n){var _=U(N++,2);if(_.t=e,!_.__c&&(_.__=[n?n(t):it(void 0,t),function(l){var a=_.__N?_.__N[0]:_.__[0],c=_.t(a,l);a!==c&&(_.__N=[c,_.__[1]],_.__c.setState({}))}],_.__c=h,!h.u)){var o=function(l,a,c){if(!_.__c.__H)return!0;var s=_.__c.__H.__.filter(function(d){return!!d.__c});if(s.every(function(d){return!d.__N}))return!r||r.call(this,l,a,c);var u=!1;return s.forEach(function(d){if(d.__N){var f=d.__[0];d.__=d.__N,d.__N=void 0,f!==d.__[0]&&(u=!0)}}),!(!u&&_.__c.props===l)&&(!r||r.call(this,l,a,c))};h.u=!0;var r=h.shouldComponentUpdate,i=h.componentWillUpdate;h.componentWillUpdate=function(l,a,c){if(this.__e){var s=r;r=void 0,o(l,a,c),r=s}i&&i.call(this,l,a,c)},h.shouldComponentUpdate=o}return _.__N||_.__}function z(e,t){var n=U(N++,3);!m.__s&&ke(n.__H,t)&&(n.__=e,n.i=t,h.__H.__h.push(n))}function P(e,t){var n=U(N++,4);!m.__s&&ke(n.__H,t)&&(n.__=e,n.i=t,h.__h.push(n))}function _e(e){return D=5,O(function(){return{current:e}},[])}function be(e,t,n){D=6,P(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function O(e,t){var n=U(N++,7);return ke(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function oe(e,t){return D=8,O(function(){return e},t)}function G(e){var t=h.context[e.__c],n=U(N++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(h)),t.props.value):e.__}function re(e,t){m.useDebugValue&&m.useDebugValue(t?t(e):e)}function Gt(e){var t=U(N++,10),n=L();return t.__=e,h.componentDidCatch||(h.componentDidCatch=function(_,o){t.__&&t.__(_,o),n[1](_)}),[n[0],function(){n[1](void 0)}]}function ge(){var e=U(N++,11);if(!e.__){for(var t=h.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Yt(){for(var e;e=Xe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ue),e.__H.__h.forEach(Ce),e.__H.__h=[]}catch(t){e.__H.__h=[],m.__e(t,e.__v)}}m.__b=function(e){h=null,et&&et(e)},m.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rt&&rt(e,t)},m.__r=function(e){tt&&tt(e),N=0;var t=(h=e.__c).__H;t&&(ye===h?(t.__h=[],h.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(ue),t.__h.forEach(Ce),t.__h=[],N=0)),ye=h},m.diffed=function(e){nt&&nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Xe.push(t)!==1&&Qe===m.requestAnimationFrame||((Qe=m.requestAnimationFrame)||Zt)(Yt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ye=h=null},m.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ue),n.__h=n.__h.filter(function(_){return!_.__||Ce(_)})}catch(_){t.some(function(o){o.__h&&(o.__h=[])}),t=[],m.__e(_,n.__v)}}),_t&&_t(e,t)},m.unmount=function(e){ot&&ot(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{ue(_)}catch(o){t=o}}),n.__H=void 0,t&&m.__e(t,n.__v))};var ut=typeof requestAnimationFrame=="function";function Zt(e){var t,n=function(){clearTimeout(_),ut&&cancelAnimationFrame(t),setTimeout(e)},_=setTimeout(n,100);ut&&(t=requestAnimationFrame(n))}function ue(e){var t=h,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),h=t}function Ce(e){var t=h;e.__c=e.__(),h=t}function ke(e,t){return!e||e.length!==t.length||t.some(function(n,_){return n!==e[_]})}function it(e,t){return typeof t=="function"?t(e):t}function lt(e,t){for(var n in t)e[n]=t[n];return e}function $e(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var _ in t)if(_!=="__source"&&e[_]!==t[_])return!0;return!1}function ie(e,t){this.props=e,this.context=t}function ct(e,t){function n(o){var r=this.props.ref,i=r==o.ref;return!i&&r&&(r.call?r(null):r.current=null),t?!t(this.props,o)||!i:$e(this.props,o)}function _(o){return this.shouldComponentUpdate=n,b(e,o)}return _.displayName="Memo("+(e.displayName||e.name)+")",_.prototype.isReactComponent=!0,_.__f=!0,_}(ie.prototype=new E).isPureReactComponent=!0,ie.prototype.shouldComponentUpdate=function(e,t){return $e(this.props,e)||$e(this.state,t)};var at=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),at&&at(e)};var Jt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function le(e){function t(n){var _=lt({},n);return delete _.ref,e(_,n.ref||null)}return t.$$typeof=Jt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var st=function(e,t){return e==null?null:S(S(e).map(t))},Ee={map:st,forEach:st,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:S},Kt=p.__e;p.__e=function(e,t,n,_){if(e.then){for(var o,r=t;r=r.__;)if((o=r.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Kt(e,t,n,_)};var ft=p.unmount;function pt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(_){typeof _.__c=="function"&&_.__c()}),e.__c.__H=null),(e=lt({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(_){return pt(_,t,n)})),e}function dt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(_){return dt(_,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Y(){this.__u=0,this.t=null,this.__b=null}function ht(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function vt(e){var t,n,_;function o(r){if(t||(t=e()).then(function(i){n=i.default||i},function(i){_=i}),_)throw _;if(!n)throw t;return b(n,r)}return o.displayName="Lazy",o.__f=!0,o}function M(){this.u=null,this.o=null}p.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ft&&ft(e)},(Y.prototype=new E).__c=function(e,t){var n=t.__c,_=this;_.t==null&&(_.t=[]),_.t.push(n);var o=ht(_.__v),r=!1,i=function(){r||(r=!0,n.__R=null,o?o(l):l())};n.__R=i;var l=function(){if(!--_.__u){if(_.state.__a){var a=_.state.__a;_.__v.__k[0]=dt(a,a.__c.__P,a.__c.__O)}var c;for(_.setState({__a:_.__b=null});c=_.t.pop();)c.forceUpdate()}};_.__u++||32&t.__u||_.setState({__a:_.__b=_.__v.__k[0]}),e.then(i,i)},Y.prototype.componentWillUnmount=function(){this.t=[]},Y.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),_=this.__v.__k[0].__c;this.__v.__k[0]=pt(this.__b,n,_.__O=_.__P)}this.__b=null}var o=t.__a&&b($,null,e.fallback);return o&&(o.__u&=-33),[b($,null,t.__a?null:e.children),o]};var mt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Qt(e){return this.getChildContext=function(){return e.context},e.children}function Xt(e){var t=this,n=e.i;t.componentWillUnmount=function(){B(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(_){this.childNodes.push(_),t.i.appendChild(_)},insertBefore:function(_,o){this.childNodes.push(_),t.i.appendChild(_)},removeChild:function(_){this.childNodes.splice(this.childNodes.indexOf(_)>>>1,1),t.i.removeChild(_)}}),B(b(Qt,{context:t.context},e.__v),t.l)}function xe(e,t){var n=b(Xt,{__v:e,i:t});return n.containerInfo=t,n}(M.prototype=new E).__a=function(e){var t=this,n=ht(t.__v),_=t.o.get(e);return _[0]++,function(o){var r=function(){t.props.revealOrder?(_.push(o),mt(t,e,_)):o()};n?n(r):r()}},M.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){mt(e,n,t)})};var yt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,en=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nn=/[A-Z0-9]/g,_n=typeof document<"u",on=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function we(e,t,n){return t.__k==null&&(t.textContent=""),B(e,t),typeof n=="function"&&n(),e?e.__c:null}function bt(e,t,n){return Ke(e,t),typeof n=="function"&&n(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var gt=p.event;function rn(){}function un(){return this.cancelBubble}function ln(){return this.defaultPrevented}p.event=function(e){return gt&&(e=gt(e)),e.persist=rn,e.isPropagationStopped=un,e.isDefaultPrevented=ln,e.nativeEvent=e};var Se,cn={enumerable:!1,configurable:!0,get:function(){return this.class}},Ct=p.vnode;p.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,_=t.type,o={};for(var r in n){var i=n[r];if(!(r==="value"&&"defaultValue"in n&&i==null||_n&&r==="children"&&_==="noscript"||r==="class"||r==="className")){var l=r.toLowerCase();r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&i===!0?i="":l==="translate"&&i==="no"?i=!1:l==="ondoubleclick"?r="ondblclick":l!=="onchange"||_!=="input"&&_!=="textarea"||on(n.type)?l==="onfocus"?r="onfocusin":l==="onblur"?r="onfocusout":tn.test(r)?r=l:_.indexOf("-")===-1&&en.test(r)?r=r.replace(nn,"-$&").toLowerCase():i===null&&(i=void 0):l=r="oninput",l==="oninput"&&o[r=l]&&(r="oninputCapture"),o[r]=i}}_=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=S(n.children).forEach(function(a){a.props.selected=o.value.indexOf(a.props.value)!=-1})),_=="select"&&o.defaultValue!=null&&(o.value=S(n.children).forEach(function(a){a.props.selected=o.multiple?o.defaultValue.indexOf(a.props.value)!=-1:o.defaultValue==a.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",cn)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=yt,Ct&&Ct(e)};var kt=p.__r;p.__r=function(e){kt&&kt(e),Se=e.__c};var $t=p.diffed;p.diffed=function(e){$t&&$t(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Se=null};var Et={ReactCurrentDispatcher:{current:{readContext:function(e){return Se.__n[e.__c].props.value},useCallback:oe,useContext:G,useDebugValue:re,useDeferredValue:He,useEffect:z,useId:ge,useImperativeHandle:be,useInsertionEffect:Ue,useLayoutEffect:P,useMemo:O,useReducer:j,useRef:_e,useState:L,useSyncExternalStore:De,useTransition:Te}}},an="17.0.2";function xt(e){return b.bind(null,e)}function A(e){return!!e&&e.$$typeof===yt}function wt(e){return A(e)&&e.type===$}function St(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Z(e){return A(e)?Bt.apply(null,arguments):e}function Ne(e){return!!e.__k&&(B(null,e),!0)}function Nt(e){return e&&(e.base||e.nodeType===1&&e)||null}var Pt=function(e,t){return e(t)},Pe=function(e,t){return e(t)},Rt=$;function Re(e){e()}function He(e){return e}function Te(){return[!1,Re]}var Ue=P,Ht=A;function De(e,t){var n=t(),_=L({h:{__:n,v:t}}),o=_[0].h,r=_[1];return P(function(){o.__=n,o.v=t,Le(o)&&r({h:o})},[e,n,t]),z(function(){return Le(o)&&r({h:o}),e(function(){Le(o)&&r({h:o})})},[e]),n}function Le(e){var t,n,_=e.v,o=e.__;try{var r=_();return!((t=o)===(n=r)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Tt={useState:L,useId:ge,useReducer:j,useEffect:z,useLayoutEffect:P,useInsertionEffect:Ue,useTransition:Te,useDeferredValue:He,useSyncExternalStore:De,startTransition:Re,useRef:_e,useImperativeHandle:be,useMemo:O,useCallback:oe,useContext:G,useDebugValue:re,version:"17.0.2",Children:Ee,render:we,hydrate:bt,unmountComponentAtNode:Ne,createPortal:xe,createElement:b,createContext:ne,createFactory:xt,cloneElement:Z,createRef:Be,Fragment:$,isValidElement:A,isElement:Ht,isFragment:wt,isMemo:St,findDOMNode:Nt,Component:E,PureComponent:ie,memo:ct,forwardRef:le,flushSync:Pe,unstable_batchedUpdates:Pt,StrictMode:Rt,Suspense:Y,SuspenseList:M,lazy:vt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Et},sn=Object.freeze({__proto__:null,Children:Ee,Component:E,Fragment:$,PureComponent:ie,StrictMode:Rt,Suspense:Y,SuspenseList:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Et,cloneElement:Z,createContext:ne,createElement:b,createFactory:xt,createPortal:xe,createRef:Be,default:Tt,findDOMNode:Nt,flushSync:Pe,forwardRef:le,hydrate:bt,isElement:Ht,isFragment:wt,isMemo:St,isValidElement:A,lazy:vt,memo:ct,render:we,startTransition:Re,unmountComponentAtNode:Ne,unstable_batchedUpdates:Pt,useCallback:oe,useContext:G,useDebugValue:re,useDeferredValue:He,useEffect:z,useErrorBoundary:Gt,useId:ge,useImperativeHandle:be,useInsertionEffect:Ue,useLayoutEffect:P,useMemo:O,useReducer:j,useRef:_e,useState:L,useSyncExternalStore:De,useTransition:Te,version:an});const Ut=[];function fn(e){const t=new CSSStyleSheet;t.replace(e),Ut.push(t);const n=document.createElement("style");n.appendChild(document.createTextNode(e.replaceAll(/url\(["']?([^"')]+)["']?\)/g,(_,o)=>`url("${import.meta.resolve("./"+o)}")`))),document.head.append(n)}function pn(e){return{render:function(t){we(t,e)},unmount:function(){Ne(e)}}}const Dt="__ax_context",Lt="__ax_render",Ot=ne(null);function dn(e,t,n={}){const _=o=>{let r=null;const i=pn(o.attachShadow({mode:"open"}));o.shadowRoot&&(o.shadowRoot.adoptedStyleSheets=Ut);const l=new MutationObserver(s=>{s.forEach(({attributeName:u})=>{u&&c(u,o.getAttribute(u))})}),a=(n.customEvents??[]).reduce((s,u)=>(s[u]=d=>{o.dispatchEvent(new CustomEvent(bn(u),{bubbles:!0,cancelable:!0,detail:d}))},s),{}),c=(s,u)=>{r&&(r=Z(r,{[Mt(s)]:u===null?void 0:u}),i.render(r))};return{connectedCallback:()=>{let s=o.parentElement;for(;s;){if(s.nodeName.toLowerCase()in At){const f=new CustomEvent(Lt,{cancelable:!0,detail:{rendered:!1}});if(s.dispatchEvent(f),!f.detail.rendered){s.queue=s.queue??[],s.queue.push(o);return}}s=s.parentElement}const u=new CustomEvent(Dt,{bubbles:!0,cancelable:!0,detail:{context:void 0}});o.dispatchEvent(u);const d=u.detail.context;r=Z(Oe(o,mn(o,t,d)),a),i.render(r),l.observe(o,{attributes:!0})},disconnectedCallback:()=>{l.disconnect(),r=null,i.unmount()}}};return customElements.get(e)||customElements.define(e,class extends HTMLElement{#e;constructor(){super(),this.#e=_(this)}connectedCallback(){this.#e.connectedCallback()}disconnectedCallback(){this.#e.disconnectedCallback()}}),_}const hn=p.vnode;p.vnode=e=>{if(hn?.(e),typeof e.type!="string"&&e.type&&"displayName"in e.type&&e.type.displayName==="Portal"&&"container"in e.props&&e.props.container===void 0){const{shadowRoot:t}=G(Ot)??{};e.props.container=t}};const vn=e=>{let t;e.addEventListener(Dt,_=>{_.stopPropagation(),_.detail.context=t});let n=!1;return e.addEventListener(Lt,_=>{_.detail.rendered=n}),(_,o)=>(t=o,n=!0,P(()=>{if(e.queue){let r;for(;r=e.queue.shift();)"connectedCallback"in r&&typeof r.connectedCallback=="function"&&r.connectedCallback()}},[]),null)},mn=(e,t,n)=>function(_){this.getChildContext=()=>n;const o=Object.assign({},_);return delete o.context,b(Ot.Provider,{value:e},b(t,o))},yn=e=>{const t=vn(e);return le((n,_)=>(P(()=>(typeof _=="function"?_(e):_&&"current"in _&&(_.current=e),()=>{typeof _=="function"?_(null):_&&"current"in _&&(_.current=void 0)}),[_]),b("slot",{...n,ref:_},b(t))))};function Oe(e,t,n=!1){if(!(e instanceof Element))return null;const _=!!t,o={};for(const{name:i,value:l}of e.attributes)n&&i==="slot"||i.startsWith("on")||(o[Mt(i)]=l);const r=[];for(const i of e.childNodes)_&&i instanceof Element&&i.slot?o[i.slot]=b("slot",{name:i.slot},Oe(i,void 0,!0)):r.push(i instanceof Text?i.data:Oe(i));return b(t||e.nodeName.toLowerCase(),o,_?b(yn(e)):r)}const Mt=e=>e.replace(/-(\w)/g,(t,n)=>n.toUpperCase()),bn=e=>e.slice(2).toLowerCase();export{_e as A,ne as G,Ee as N,re as P,Tt as R,O as T,b as _,$ as a,Z as b,sn as c,P as d,A as f,L as h,fn as i,xe as j,le as k,Pe as m,j as p,oe as q,dn as r,zt as u,G as x,z as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Box-BXKKGQTC.js";var a={borderRadius:{xs:"var(--ax-borderRadius-xs)",sm:"var(--ax-borderRadius-sm)",md:"var(--ax-borderRadius-md)",lg:"var(--ax-borderRadius-lg)",xl:"var(--ax-borderRadius-xl)",full:"var(--ax-borderRadius-full)",none:"var(--ax-borderRadius-none)"},borderWidth:{0:"var(--ax-borderWidth-0)",1:"var(--ax-borderWidth-1)",2:"var(--ax-borderWidth-2)",4:"var(--ax-borderWidth-4)"},boxShadow:{xs:"var(--ax-boxShadow-xs)",sm:"var(--ax-boxShadow-sm)",md:"var(--ax-boxShadow-md)",lg:"var(--ax-boxShadow-lg)",xl:"var(--ax-boxShadow-xl)",inner:"var(--ax-boxShadow-inner)",none:"var(--ax-boxShadow-none)"},colors:{current:"var(--ax-colors-current)",transparent:"var(--ax-colors-transparent)",black:"var(--ax-colors-black)",white:"var(--ax-colors-white)","aqua.50":"var(--ax-colors-aqua-50)","aqua.200":"var(--ax-colors-aqua-200)","aqua.500":"var(--ax-colors-aqua-500)","aqua.600":"var(--ax-colors-aqua-600)","blue.50":"var(--ax-colors-blue-50)","blue.200":"var(--ax-colors-blue-200)","blue.500":"var(--ax-colors-blue-500)","blue.600":"var(--ax-colors-blue-600)","blue.900":"var(--ax-colors-blue-900)","brand.50":"var(--ax-colors-brand-50)","brand.100":"var(--ax-colors-brand-100)","brand.200":"var(--ax-colors-brand-200)","brand.300":"var(--ax-colors-brand-300)","brand.400":"var(--ax-colors-brand-400)","brand.500":"var(--ax-colors-brand-500)","brand.600":"var(--ax-colors-brand-600)","brand.700":"var(--ax-colors-brand-700)","brand.800":"var(--ax-colors-brand-800)","brand.900":"var(--ax-colors-brand-900)","dark.50":"var(--ax-colors-dark-50)","dark.200":"var(--ax-colors-dark-200)","dark.500":"var(--ax-colors-dark-500)","dark.600":"var(--ax-colors-dark-600)","gray.50":"var(--ax-colors-gray-50)","gray.100":"var(--ax-colors-gray-100)","gray.200":"var(--ax-colors-gray-200)","gray.300":"var(--ax-colors-gray-300)","gray.400":"var(--ax-colors-gray-400)","gray.500":"var(--ax-colors-gray-500)","gray.600":"var(--ax-colors-gray-600)","gray.700":"var(--ax-colors-gray-700)","gray.800":"var(--ax-colors-gray-800)","gray.900":"var(--ax-colors-gray-900)","green.50":"var(--ax-colors-green-50)","green.100":"var(--ax-colors-green-100)","green.200":"var(--ax-colors-green-200)","green.300":"var(--ax-colors-green-300)","green.400":"var(--ax-colors-green-400)","green.500":"var(--ax-colors-green-500)","green.600":"var(--ax-colors-green-600)","green.700":"var(--ax-colors-green-700)","green.800":"var(--ax-colors-green-800)","green.900":"var(--ax-colors-green-900)","magenta.50":"var(--ax-colors-magenta-50)","magenta.200":"var(--ax-colors-magenta-200)","magenta.500":"var(--ax-colors-magenta-500)","magenta.600":"var(--ax-colors-magenta-600)","neutral.50":"var(--ax-colors-neutral-50)","neutral.75":"var(--ax-colors-neutral-75)","neutral.100":"var(--ax-colors-neutral-100)","neutral.150":"var(--ax-colors-neutral-150)","neutral.200":"var(--ax-colors-neutral-200)","neutral.300":"var(--ax-colors-neutral-300)","neutral.500":"var(--ax-colors-neutral-500)","neutral.600":"var(--ax-colors-neutral-600)","neutral.700":"var(--ax-colors-neutral-700)","neutral.800":"var(--ax-colors-neutral-800)","neutral.900":"var(--ax-colors-neutral-900)","neutral.1000":"var(--ax-colors-neutral-1000)","neutral.1100":"var(--ax-colors-neutral-1100)","neutral.1200":"var(--ax-colors-neutral-1200)","neutral.50/6":"var(--ax-colors-neutral-50-6)","neutral.50/32":"var(--ax-colors-neutral-50-32)","neutral.1200/4":"var(--ax-colors-neutral-1200-4)","neutral.1200/12":"var(--ax-colors-neutral-1200-12)","neutral.1200/18":"var(--ax-colors-neutral-1200-18)","neutral.1200/22":"var(--ax-colors-neutral-1200-22)","neutral.1200/32":"var(--ax-colors-neutral-1200-32)","orange.50":"var(--ax-colors-orange-50)","orange.200":"var(--ax-colors-orange-200)","orange.500":"var(--ax-colors-orange-500)","orange.600":"var(--ax-colors-orange-600)","purple.50":"var(--ax-colors-purple-50)","purple.200":"var(--ax-colors-purple-200)","purple.500":"var(--ax-colors-purple-500)","purple.600":"var(--ax-colors-purple-600)","purple.900":"var(--ax-colors-purple-900)","red.50":"var(--ax-colors-red-50)","red.100":"var(--ax-colors-red-100)","red.200":"var(--ax-colors-red-200)","red.300":"var(--ax-colors-red-300)","red.400":"var(--ax-colors-red-400)","red.500":"var(--ax-colors-red-500)","red.600":"var(--ax-colors-red-600)","red.700":"var(--ax-colors-red-700)","red.800":"var(--ax-colors-red-800)","red.900":"var(--ax-colors-red-900)","slate.50":"var(--ax-colors-slate-50)","slate.100":"var(--ax-colors-slate-100)","slate.200":"var(--ax-colors-slate-200)","slate.300":"var(--ax-colors-slate-300)","slate.400":"var(--ax-colors-slate-400)","slate.500":"var(--ax-colors-slate-500)","slate.600":"var(--ax-colors-slate-600)","slate.700":"var(--ax-colors-slate-700)","slate.800":"var(--ax-colors-slate-800)","slate.900":"var(--ax-colors-slate-900)","slate.950":"var(--ax-colors-slate-950)","yellow.50":"var(--ax-colors-yellow-50)","yellow.100":"var(--ax-colors-yellow-100)","yellow.200":"var(--ax-colors-yellow-200)","yellow.300":"var(--ax-colors-yellow-300)","yellow.400":"var(--ax-colors-yellow-400)","yellow.500":"var(--ax-colors-yellow-500)","yellow.600":"var(--ax-colors-yellow-600)","yellow.700":"var(--ax-colors-yellow-700)","yellow.800":"var(--ax-colors-yellow-800)","yellow.900":"var(--ax-colors-yellow-900)","bg.brand":"var(--ax-colors-bg-brand)","bg.brand.solid":"var(--ax-colors-bg-brand-solid)","bg.brand.solid.hover":"var(--ax-colors-bg-brand-solid-hover)","bg.disabled":"var(--ax-colors-bg-disabled)","bg.discovery":"var(--ax-colors-bg-discovery)","bg.error":"var(--ax-colors-bg-error)","bg.error.solid":"var(--ax-colors-bg-error-solid)","bg.error.solid.hover":"var(--ax-colors-bg-error-solid-hover)","bg.information":"var(--ax-colors-bg-information)","bg.information.solid":"var(--ax-colors-bg-information-solid)","bg.input.disabled":"var(--ax-colors-bg-input-disabled)","bg.neutral":"var(--ax-colors-bg-neutral)","bg.neutral.inverse":"var(--ax-colors-bg-neutral-inverse)","bg.neutral.inverse.hover":"var(--ax-colors-bg-neutral-inverse-hover)","bg.neutral.solid":"var(--ax-colors-bg-neutral-solid)","bg.neutral.solid.hover":"var(--ax-colors-bg-neutral-solid-hover)","bg.success":"var(--ax-colors-bg-success)","bg.success.solid":"var(--ax-colors-bg-success-solid)","bg.success.solid.hover":"var(--ax-colors-bg-success-solid-hover)","bg.warning":"var(--ax-colors-bg-warning)","bg.warning.solid":"var(--ax-colors-bg-warning-solid)","bg.warning.solid.hover":"var(--ax-colors-bg-warning-solid-hover)","border.active":"var(--ax-colors-border-active)","border.active.hover":"var(--ax-colors-border-active-hover)","border.brand":"var(--ax-colors-border-brand)","border.default":"var(--ax-colors-border-default)","border.disabled":"var(--ax-colors-border-disabled)","border.error":"var(--ax-colors-border-error)","border.secondary":"var(--ax-colors-border-secondary)","border.success":"var(--ax-colors-border-success)","border.tertiary":"var(--ax-colors-border-tertiary)","border.warning":"var(--ax-colors-border-warning)","fg.accent.blue":"var(--ax-colors-fg-accent-blue)","fg.accent.magenta":"var(--ax-colors-fg-accent-magenta)","fg.accent.purple":"var(--ax-colors-fg-accent-purple)","fg.accent.red":"var(--ax-colors-fg-accent-red)","fg.brand":"var(--ax-colors-fg-brand)","fg.default":"var(--ax-colors-fg-default)","fg.default.inverse":"var(--ax-colors-fg-default-inverse)","fg.disabled":"var(--ax-colors-fg-disabled)","fg.error":"var(--ax-colors-fg-error)","fg.information":"var(--ax-colors-fg-information)","fg.link":"var(--ax-colors-fg-link)","fg.link.hover":"var(--ax-colors-fg-link-hover)","fg.link.visited":"var(--ax-colors-fg-link-visited)","fg.secondary":"var(--ax-colors-fg-secondary)","fg.success":"var(--ax-colors-fg-success)","fg.tertiary":"var(--ax-colors-fg-tertiary)","fg.warning":"var(--ax-colors-fg-warning)","outline.brand":"var(--ax-colors-outline-brand)",overlay:"var(--ax-colors-overlay)",surface:"var(--ax-colors-surface)"},fontFamily:{mono:"var(--ax-fontFamily-mono)",sans:"var(--ax-fontFamily-sans)"},fontSize:{xs:{fontSize:"var(--ax-fontSize-xs-fontSize)",lineHeight:"var(--ax-fontSize-xs-lineHeight)"},sm:{fontSize:"var(--ax-fontSize-sm-fontSize)",lineHeight:"var(--ax-fontSize-sm-lineHeight)"},md:{fontSize:"var(--ax-fontSize-md-fontSize)",lineHeight:"var(--ax-fontSize-md-lineHeight)"},lg:{fontSize:"var(--ax-fontSize-lg-fontSize)",lineHeight:"var(--ax-fontSize-lg-lineHeight)"},xl:{fontSize:"var(--ax-fontSize-xl-fontSize)",lineHeight:"var(--ax-fontSize-xl-lineHeight)"},"2xl":{fontSize:"var(--ax-fontSize-2xl-fontSize)",lineHeight:"var(--ax-fontSize-2xl-lineHeight)"},"3xl":{fontSize:"var(--ax-fontSize-3xl-fontSize)",lineHeight:"var(--ax-fontSize-3xl-lineHeight)"},"4xl":{fontSize:"var(--ax-fontSize-4xl-fontSize)",lineHeight:"var(--ax-fontSize-4xl-lineHeight)"},"5xl":{fontSize:"var(--ax-fontSize-5xl-fontSize)",lineHeight:"var(--ax-fontSize-5xl-lineHeight)"},"6xl":{fontSize:"var(--ax-fontSize-6xl-fontSize)",lineHeight:"var(--ax-fontSize-6xl-lineHeight)"},"7xl":{fontSize:"var(--ax-fontSize-7xl-fontSize)",lineHeight:"var(--ax-fontSize-7xl-lineHeight)"}},letterSpacing:{tighter:"var(--ax-letterSpacing-tighter)",tight:"var(--ax-letterSpacing-tight)",normal:"var(--ax-letterSpacing-normal)",wide:"var(--ax-letterSpacing-wide)",wider:"var(--ax-letterSpacing-wider)",widest:"var(--ax-letterSpacing-widest)"},lineHeight:{none:"var(--ax-lineHeight-none)",tight:"var(--ax-lineHeight-tight)",normal:"var(--ax-lineHeight-normal)",loose:"var(--ax-lineHeight-loose)"},margins:{0:"var(--ax-margins-0)",2:"var(--ax-margins-2)",4:"var(--ax-margins-4)",6:"var(--ax-margins-6)",8:"var(--ax-margins-8)",10:"var(--ax-margins-10)",12:"var(--ax-margins-12)",16:"var(--ax-margins-16)",20:"var(--ax-margins-20)",24:"var(--ax-margins-24)",32:"var(--ax-margins-32)",48:"var(--ax-margins-48)",64:"var(--ax-margins-64)",80:"var(--ax-margins-80)",xs:"var(--ax-margins-xs)",sm:"var(--ax-margins-sm)",md:"var(--ax-margins-md)",lg:"var(--ax-margins-lg)",xl:"var(--ax-margins-xl)","-xs":"var(--ax-margins--xs)","-sm":"var(--ax-margins--sm)","-md":"var(--ax-margins--md)","-lg":"var(--ax-margins--lg)","-xl":"var(--ax-margins--xl)","-2":"var(--ax-margins--2)","-4":"var(--ax-margins--4)","-6":"var(--ax-margins--6)","-8":"var(--ax-margins--8)","-10":"var(--ax-margins--10)","-12":"var(--ax-margins--12)","-16":"var(--ax-margins--16)","-24":"var(--ax-margins--24)","-32":"var(--ax-margins--32)","-48":"var(--ax-margins--48)","-64":"var(--ax-margins--64)","-80":"var(--ax-margins--80)"},maxSize:{xs:"var(--ax-maxSize-xs)",sm:"var(--ax-maxSize-sm)",md:"var(--ax-maxSize-md)",lg:"var(--ax-maxSize-lg)",xl:"var(--ax-maxSize-xl)","2xl":"var(--ax-maxSize-2xl)",full:"var(--ax-maxSize-full)"},screens:{sm:"var(--ax-screens-sm)",md:"var(--ax-screens-md)",lg:"var(--ax-screens-lg)"},size:{0:"var(--ax-size-0)",1:"var(--ax-size-1)",2:"var(--ax-size-2)",4:"var(--ax-size-4)",6:"var(--ax-size-6)",8:"var(--ax-size-8)",12:"var(--ax-size-12)",16:"var(--ax-size-16)",20:"var(--ax-size-20)",24:"var(--ax-size-24)",32:"var(--ax-size-32)",40:"var(--ax-size-40)",48:"var(--ax-size-48)",56:"var(--ax-size-56)",64:"var(--ax-size-64)",80:"var(--ax-size-80)",96:"var(--ax-size-96)",112:"var(--ax-size-112)",128:"var(--ax-size-128)",144:"var(--ax-size-144)",160:"var(--ax-size-160)",176:"var(--ax-size-176)",192:"var(--ax-size-192)",208:"var(--ax-size-208)",224:"var(--ax-size-224)",240:"var(--ax-size-240)",256:"var(--ax-size-256)",288:"var(--ax-size-288)",320:"var(--ax-size-320)",384:"var(--ax-size-384)",xs:"var(--ax-size-xs)",sm:"var(--ax-size-sm)",md:"var(--ax-size-md)",lg:"var(--ax-size-lg)",xl:"var(--ax-size-xl)","5xl":"var(--ax-size-5xl)","1/2":"var(--ax-size-1-2)","1/3":"var(--ax-size-1-3)","2/3":"var(--ax-size-2-3)","1/4":"var(--ax-size-1-4)","2/4":"var(--ax-size-2-4)","3/4":"var(--ax-size-3-4)",auto:"var(--ax-size-auto)",fit:"var(--ax-size-fit)",full:"var(--ax-size-full)",max:"var(--ax-size-max)",min:"var(--ax-size-min)"},spacing:{0:"var(--ax-spacing-0)",2:"var(--ax-spacing-2)",4:"var(--ax-spacing-4)",6:"var(--ax-spacing-6)",8:"var(--ax-spacing-8)",10:"var(--ax-spacing-10)",12:"var(--ax-spacing-12)",16:"var(--ax-spacing-16)",20:"var(--ax-spacing-20)",24:"var(--ax-spacing-24)",32:"var(--ax-spacing-32)",48:"var(--ax-spacing-48)",64:"var(--ax-spacing-64)",80:"var(--ax-spacing-80)",xs:"var(--ax-spacing-xs)",sm:"var(--ax-spacing-sm)",md:"var(--ax-spacing-md)",lg:"var(--ax-spacing-lg)",xl:"var(--ax-spacing-xl)"},zIndex:{0:"var(--ax-zIndex-0)",10:"var(--ax-zIndex-10)",20:"var(--ax-zIndex-20)",30:"var(--ax-zIndex-30)",40:"var(--ax-zIndex-40)",50:"var(--ax-zIndex-50)",auto:"var(--ax-zIndex-auto)",popover:"var(--ax-zIndex-popover)",toast:"var(--ax-zIndex-toast)"}};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as g,u as n}from"./register-7aDWC8F8.js";const s=({fill:o,height:i=16,name:r,viewBox:h,width:t=20},l)=>{const e=g((w,m)=>n("svg",{fill:o,height:i,ref:m,role:"img",viewBox:h??`0 0 ${t} ${i}`,width:t,xmlns:"http://www.w3.org/2000/svg",...w,children:l}));return e.displayName=`@optiaxiom/react/${r}`,e};export{s as c};
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/optimizely-axiom/optiaxiom.git"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
|
-
"version": "0.1.0-next.
|
|
9
|
+
"version": "0.1.0-next.5",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/**",
|
|
12
12
|
"LICENSE"
|
|
@@ -14,39 +14,98 @@
|
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": "./dist/index.js",
|
|
17
|
-
"./
|
|
18
|
-
"./
|
|
19
|
-
"./
|
|
20
|
-
"./
|
|
21
|
-
"./
|
|
22
|
-
"./
|
|
23
|
-
"./
|
|
24
|
-
"./
|
|
25
|
-
"./
|
|
26
|
-
"./
|
|
27
|
-
"./
|
|
28
|
-
"./
|
|
29
|
-
"./
|
|
30
|
-
"./
|
|
31
|
-
"./
|
|
32
|
-
"./
|
|
33
|
-
"./
|
|
34
|
-
"./
|
|
35
|
-
"./
|
|
17
|
+
"./Accordion": "./dist/components/Accordion.js",
|
|
18
|
+
"./AccordionContent": "./dist/components/AccordionContent.js",
|
|
19
|
+
"./AccordionItem": "./dist/components/AccordionItem.js",
|
|
20
|
+
"./AccordionTrigger": "./dist/components/AccordionTrigger.js",
|
|
21
|
+
"./Alert": "./dist/components/Alert.js",
|
|
22
|
+
"./AlertDescription": "./dist/components/AlertDescription.js",
|
|
23
|
+
"./AlertDialog": "./dist/components/AlertDialog.js",
|
|
24
|
+
"./AlertDialogAction": "./dist/components/AlertDialogFooter.js",
|
|
25
|
+
"./AlertDialogCancel": "./dist/components/AlertDialogFooter.js",
|
|
26
|
+
"./AlertDialogDescription": "./dist/components/AlertDialogDescription.js",
|
|
27
|
+
"./AlertDialogFooter": "./dist/components/AlertDialogFooter.js",
|
|
28
|
+
"./AlertDialogTitle": "./dist/components/AlertDialogTitle.js",
|
|
29
|
+
"./AlertTitle": "./dist/components/AlertTitle.js",
|
|
30
|
+
"./AnimatePresence": "./dist/components/AnimatePresence.js",
|
|
31
|
+
"./Avatar": "./dist/components/Avatar.js",
|
|
32
|
+
"./AvatarGroup": "./dist/components/AvatarGroup.js",
|
|
33
|
+
"./AxiomProvider": "./dist/components/AxiomProvider.js",
|
|
34
|
+
"./Badge": "./dist/components/Badge.js",
|
|
35
|
+
"./Box": "./dist/components/Box.js",
|
|
36
|
+
"./Breadcrumbs": "./dist/components/Breadcrumbs.js",
|
|
37
|
+
"./BreadcrumbItem": "./dist/components/BreadcrumbItem.js",
|
|
38
|
+
"./Button": "./dist/components/Button.js",
|
|
39
|
+
"./ButtonGroup": "./dist/components/ButtonGroup.js",
|
|
40
|
+
"./Checkbox": "./dist/components/Checkbox.js",
|
|
41
|
+
"./Code": "./dist/components/Code.js",
|
|
42
|
+
"./Dialog": "./dist/components/Dialog.js",
|
|
43
|
+
"./DialogBody": "./dist/components/DialogBody.js",
|
|
44
|
+
"./DialogFooter": "./dist/components/DialogFooter.js",
|
|
45
|
+
"./DialogTitle": "./dist/components/DialogTitle.js",
|
|
46
|
+
"./Drawer": "./dist/components/Drawer.js",
|
|
47
|
+
"./DrawerBody": "./dist/components/DrawerBody.js",
|
|
48
|
+
"./DrawerFooter": "./dist/components/DrawerFooter.js",
|
|
49
|
+
"./DrawerTitle": "./dist/components/DrawerTitle.js",
|
|
50
|
+
"./Field": "./dist/components/Field.js",
|
|
51
|
+
"./Flex": "./dist/components/Flex.js",
|
|
52
|
+
"./Grid": "./dist/components/Grid.js",
|
|
53
|
+
"./Heading": "./dist/components/Heading.js",
|
|
54
|
+
"./HoverCard": "./dist/components/HoverCard.js",
|
|
55
|
+
"./HoverCardContent": "./dist/components/HoverCardContent.js",
|
|
56
|
+
"./HoverCardTrigger": "./dist/components/HoverCardTrigger.js",
|
|
57
|
+
"./Indicator": "./dist/components/Indicator.js",
|
|
58
|
+
"./Input": "./dist/components/Input.js",
|
|
59
|
+
"./Kbd": "./dist/components/Kbd.js",
|
|
60
|
+
"./Link": "./dist/components/Link.js",
|
|
61
|
+
"./Menu": "./dist/components/Menu.js",
|
|
62
|
+
"./MenuContent": "./dist/components/MenuContent.js",
|
|
63
|
+
"./MenuItem": "./dist/components/MenuItem.js",
|
|
64
|
+
"./MenuLabel": "./dist/components/MenuLabel.js",
|
|
65
|
+
"./MenuSeparator": "./dist/components/MenuSeparator.js",
|
|
66
|
+
"./MenuTrigger": "./dist/components/MenuTrigger.js",
|
|
67
|
+
"./Pagination": "./dist/components/Pagination.js",
|
|
68
|
+
"./Popover": "./dist/components/Popover.js",
|
|
69
|
+
"./PopoverContent": "./dist/components/PopoverContent.js",
|
|
70
|
+
"./PopoverTrigger": "./dist/components/PopoverTrigger.js",
|
|
71
|
+
"./Progress": "./dist/components/Progress.js",
|
|
72
|
+
"./RadioGroup": "./dist/components/RadioGroup.js",
|
|
73
|
+
"./RadioGroupItem": "./dist/components/RadioGroupItem.js",
|
|
74
|
+
"./Search": "./dist/components/Search.js",
|
|
75
|
+
"./Separator": "./dist/components/Separator.js",
|
|
76
|
+
"./Skeleton": "./dist/components/Skeleton.js",
|
|
77
|
+
"./Spinner": "./dist/components/Spinner.js",
|
|
78
|
+
"./Switch": "./dist/components/Switch.js",
|
|
79
|
+
"./Tabs": "./dist/components/Tabs.js",
|
|
80
|
+
"./TabsContent": "./dist/components/TabsContent.js",
|
|
81
|
+
"./TabsList": "./dist/components/TabsList.js",
|
|
82
|
+
"./TabsTrigger": "./dist/components/TabsTrigger.js",
|
|
83
|
+
"./Text": "./dist/components/Text.js",
|
|
84
|
+
"./Textarea": "./dist/components/Textarea.js",
|
|
85
|
+
"./Toast": "./dist/components/Toast.js",
|
|
86
|
+
"./ToastAction": "./dist/components/ToastAction.js",
|
|
87
|
+
"./ToastProvider": "./dist/components/ToastProvider.js",
|
|
88
|
+
"./ToastTitle": "./dist/components/ToastTitle.js",
|
|
89
|
+
"./Toggle": "./dist/components/Toggle.js",
|
|
90
|
+
"./Tooltip": "./dist/components/Tooltip.js",
|
|
91
|
+
"./Transition": "./dist/components/Transition.js"
|
|
36
92
|
},
|
|
37
93
|
"types": "dist/index.d.ts",
|
|
38
94
|
"devDependencies": {
|
|
95
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
39
96
|
"@rollup/plugin-json": "^6.1.0",
|
|
40
97
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
41
|
-
"@types/node": "^20.14.
|
|
42
|
-
"@vitest/browser": "^
|
|
43
|
-
"cssnano": "^7.0.
|
|
44
|
-
"
|
|
98
|
+
"@types/node": "^20.14.12",
|
|
99
|
+
"@vitest/browser": "^2.0.4",
|
|
100
|
+
"cssnano": "^7.0.4",
|
|
101
|
+
"fast-glob": "^3.3.2",
|
|
102
|
+
"postcss": "^8.4.40",
|
|
45
103
|
"postcss-load-config": "^6.0.1",
|
|
46
104
|
"postcss-url": "^10.1.3",
|
|
47
|
-
"preact": "^10.
|
|
48
|
-
"
|
|
49
|
-
"
|
|
105
|
+
"preact": "^10.23.1",
|
|
106
|
+
"react-docgen-typescript": "^2.2.2",
|
|
107
|
+
"webdriverio": "^8.39.1",
|
|
108
|
+
"@optiaxiom/react": "^0.1.0-next.14",
|
|
50
109
|
"@optiaxiom/shared": "^0.0.0"
|
|
51
110
|
},
|
|
52
111
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as c,F as p,x as a,a as m,u as v}from"./register-C6qZMQlw.js";import{r as d}from"./PresenceContext-BIyw24mj.js";const w=({children:e})=>{const[n,l]=c(new Map),o=p(e);e&&(o.current=e);const t=!!e,i=a(s=>{l(r=>(r.delete(s),new Map(r.entries())))},[]),u=a(s=>{l(r=>(r.set(s,!0),new Map(r.entries())))},[]);return m(()=>{!t&&[...n.values()].some(Boolean)&&(o.current=!1)},[n,t]),v(d.Provider,{value:{isPresent:t,onExitComplete:i,register:u},children:e||([...n.values()].some(Boolean)?o.current:null)})};export{w as v};
|
package/dist/AnimatePresence.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./register-C6qZMQlw.js";import{v as t}from"./AnimatePresence-DvfDfq0x.js";import"./PresenceContext-BIyw24mj.js";const e="ax-animate-presence";r(e,t);export{e as AnimatePresence};
|
package/dist/Avatar.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as i,p as b,_ as g,a as _,i as y,u as l,r as z}from"./register-C6qZMQlw.js";import{t as f,y as m,o as $}from"./Box-9LrXBb0B.js";import{$ as C}from"./index-D-Y5pVgW.js";import{$ as L,a as x}from"./index-DoeKEfO9.js";import{$ as u}from"./index-DLtacV-Q.js";const v="Avatar",[w,Q]=C(v),[I,h]=w(v),M=i((r,t)=>{const{__scopeAvatar:a,...e}=r,[o,n]=b("idle");return g(I,{scope:a,imageLoadingStatus:o,onImageLoadingStatusChange:n},g(u.span,f({},e,{ref:t})))}),k="AvatarImage",j=i((r,t)=>{const{__scopeAvatar:a,src:e,onLoadingStatusChange:o=()=>{},...n}=r,s=h(k,a),c=P(e),d=L(p=>{o(p),s.onImageLoadingStatusChange(p)});return x(()=>{c!=="idle"&&d(c)},[c,d]),c==="loaded"?g(u.img,f({},n,{ref:t,src:e})):null}),N="AvatarFallback",E=i((r,t)=>{const{__scopeAvatar:a,delayMs:e,...o}=r,n=h(N,a),[s,c]=b(e===void 0);return _(()=>{if(e!==void 0){const d=window.setTimeout(()=>c(!0),e);return()=>window.clearTimeout(d)}},[e]),s&&n.imageLoadingStatus!=="loaded"?g(u.span,f({},o,{ref:t})):null});function P(r){const[t,a]=b("idle");return x(()=>{if(!r){a("error");return}let e=!0;const o=new window.Image,n=s=>()=>{e&&a(s)};return a("loading"),o.onload=n("loaded"),o.onerror=n("error"),o.src=r,()=>{e=!1}},[r]),t}const T=M,F=j,R=E;y("@layer optiaxiom._1kfj4ga1{.t64xwp0{user-select:none}}");var B=m({base:[{alignItems:"center",display:"inline-flex",justifyContent:"center",overflow:"hidden",rounded:"full"},"t64xwp0"],variants:{colorScheme:{blue:{bg:"blue.50",color:"blue.500"},brand:{bg:"brand.50",color:"brand.500"},dark:{bg:"dark.50",color:"dark.500"},gray:{bg:"gray.50",color:"gray.500"},green:{bg:"green.50",color:"green.500"},magenta:{bg:"magenta.50",color:"magenta.500"},neutral:{bg:"neutral.50",color:"neutral.500"},orange:{bg:"orange.50",color:"orange.500"},purple:{bg:"purple.50",color:"purple.500"},red:{bg:"red.50",color:"red.500"},slate:{bg:"slate.50",color:"slate.500"},yellow:{bg:"yellow.50",color:"yellow.500"}},size:{xs:{fontSize:"xs",size:"xs"},sm:{fontSize:"sm",size:"sm"},md:{fontSize:"md",size:"md"},lg:{fontSize:"lg",size:"lg"},xl:{fontSize:"xl",size:"xl"}}}}),G=m({base:{alignItems:"center",display:"flex",justifyContent:"center",rounded:"inherit",size:"full",textTransform:"uppercase"},variants:{size:{xs:{px:"4"},sm:{px:"6"},md:{px:"8"},lg:{px:"10"},xl:{px:"20"}}}});const K=600;function V(r){const t=r.trim().split(" "),a=t[0]??"",e=t.length>1?t[t.length-1]:"";return a&&e?`${a.charAt(0)}${e.charAt(0)}`:a.charAt(0)}const A=i(({children:r,className:t,colorScheme:a="neutral",icon:e,name:o,size:n="md",src:s,...c},d)=>l($,{asChild:!0,...B({colorScheme:a,size:n},t),...c,children:l(T,{ref:d,children:[l($,{asChild:!0,objectFit:"cover",rounded:"inherit",size:"full",children:l(F,{alt:o,src:s})}),l($,{asChild:!0,...G({size:n}),children:l(R,{delayMs:K,children:e||(o?V(o):r)})})]})}));A.displayName="@optiaxiom/react/Avatar";const S="ax-avatar";z(S,A);export{S as Avatar};
|