@inkorange/space-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/dist/components/AlertDialog.d.ts +8 -0
  3. package/dist/components/Badge.d.ts +42 -0
  4. package/dist/components/Box.d.ts +15 -0
  5. package/dist/components/Button.d.ts +20 -0
  6. package/dist/components/Card.d.ts +13 -0
  7. package/dist/components/Dialog.d.ts +81 -0
  8. package/dist/components/DropdownMenu.d.ts +62 -0
  9. package/dist/components/Flex.d.ts +29 -0
  10. package/dist/components/Grid.d.ts +28 -0
  11. package/dist/components/Heading.d.ts +28 -0
  12. package/dist/components/IconToggle.d.ts +29 -0
  13. package/dist/components/Link.d.ts +22 -0
  14. package/dist/components/Loader.d.ts +15 -0
  15. package/dist/components/Progress.d.ts +14 -0
  16. package/dist/components/RadioGroup.d.ts +32 -0
  17. package/dist/components/ScrollArea.d.ts +14 -0
  18. package/dist/components/Select.d.ts +70 -0
  19. package/dist/components/Separator.d.ts +11 -0
  20. package/dist/components/Slider.d.ts +28 -0
  21. package/dist/components/Tabs.d.ts +61 -0
  22. package/dist/components/Text.d.ts +34 -0
  23. package/dist/components/TextArea.d.ts +16 -0
  24. package/dist/components/TextField.d.ts +30 -0
  25. package/dist/components/Tooltip.d.ts +18 -0
  26. package/dist/components/icons.d.ts +27 -0
  27. package/dist/components/propShared.d.ts +11 -0
  28. package/dist/index.cjs +2 -0
  29. package/dist/index.cjs.map +1 -0
  30. package/dist/index.d.ts +26 -0
  31. package/dist/index.js +1356 -0
  32. package/dist/index.js.map +1 -0
  33. package/dist/internal/seededRandom.d.ts +6 -0
  34. package/dist/space-ui.css +1 -0
  35. package/dist/spaceControls.cjs +2 -0
  36. package/dist/spaceControls.cjs.map +1 -0
  37. package/dist/spaceControls.js +6 -0
  38. package/dist/spaceControls.js.map +1 -0
  39. package/dist/spaceControls.module-Bk7m5-Ag.js +13 -0
  40. package/dist/spaceControls.module-Bk7m5-Ag.js.map +1 -0
  41. package/dist/spaceControls.module-yIFvZ0rt.cjs +2 -0
  42. package/dist/spaceControls.module-yIFvZ0rt.cjs.map +1 -0
  43. package/dist/styles/spaceControls.d.ts +2 -0
  44. package/dist/tokens.css +176 -0
  45. package/package.json +60 -0
@@ -0,0 +1,61 @@
1
+ import type * as React from "react";
2
+ import { type ReactNode } from "react";
3
+ /**
4
+ * Wraps a tab set and owns which tab is showing. Fully controlled — pass
5
+ * `value` and `onValueChange`; there is no uncontrolled mode.
6
+ *
7
+ * Renders a plain div, so it imposes no layout of its own. It also mints the
8
+ * id that pairs each Trigger with its Content, which is why every part has to
9
+ * sit inside a Root rather than being usable on its own.
10
+ */
11
+ export declare function Root({ value, onValueChange, className, children }: {
12
+ /** The selected tab's value. Fully controlled — there is no default. */
13
+ value: string;
14
+ /** Called with the newly selected tab's value. */
15
+ onValueChange: (v: string) => void;
16
+ /** Merged onto the wrapper div, which is otherwise unstyled. */
17
+ className?: string;
18
+ /** A List and the Contents it switches between. */
19
+ children?: ReactNode;
20
+ }): React.JSX.Element;
21
+ /**
22
+ * The row of triggers, and the keyboard model for the set: arrow keys move
23
+ * between tabs, Home and End jump to the ends, each moving focus and
24
+ * selection together as the ARIA tabs pattern expects.
25
+ *
26
+ * Bottom-aligns its children, so an active tab that grows taller rises above
27
+ * its neighbours instead of pushing the row down — the folder-tab effect.
28
+ */
29
+ export declare function List({ children, }: {
30
+ /** The Triggers. Their order is the tab order. */
31
+ children?: ReactNode;
32
+ }): React.JSX.Element;
33
+ /**
34
+ * One tab. Selects its `value` on click and carries the ARIA wiring that ties
35
+ * it to the matching Content.
36
+ *
37
+ * Emits `data-state="active" | "inactive"`, which is the hook the active
38
+ * styling keys off — useful if you are restyling tabs from outside.
39
+ */
40
+ export declare function Trigger({ value, className, children, ...rest }: {
41
+ /** Selects this value. Must match the Content it reveals. */
42
+ value: string;
43
+ /** Merged with the tab's own classes rather than replacing them. */
44
+ className?: string;
45
+ /** The tab's label. */
46
+ children?: ReactNode;
47
+ } & React.ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
48
+ /**
49
+ * The panel for one tab. Renders only while its `value` is the selected one —
50
+ * inactive panels unmount rather than hide, so their contents do not run,
51
+ * hold state, or appear to a screen reader.
52
+ *
53
+ * Carries no styling: the surface a tab set seats onto is the consumer's, and
54
+ * should match `--sp-tabs-surface-color` so the active tab connects to it.
55
+ */
56
+ export declare function Content({ value, children, }: {
57
+ /** Shown while this matches the Root's value. Must match a Trigger. */
58
+ value: string;
59
+ /** Panel contents. Unmounted while another tab is selected. */
60
+ children?: ReactNode;
61
+ }): React.JSX.Element | null;
@@ -0,0 +1,34 @@
1
+ import type * as React from "react";
2
+ import { type ReactNode } from "react";
3
+ import { type SpacingProps } from "./propShared";
4
+ export interface TextProps extends SpacingProps, Omit<React.HTMLAttributes<HTMLElement>, "color"> {
5
+ /** Element to render. Default `span`. Use `p` for prose and `label`
6
+ * (with `htmlFor`) for form labels — size is presentational, so the
7
+ * element stays free to be the semantically correct one. */
8
+ as?: "span" | "div" | "p" | "label";
9
+ /** Font size step: 1=12px, 2=14px, 3=16px, 4=18px, 5=20px, 6=24px.
10
+ * Line height and letter spacing move with it. Omit to inherit. */
11
+ size?: "1" | "2" | "3" | "4" | "5" | "6";
12
+ /** 500 or 700. Omit for the inherited weight. */
13
+ weight?: "medium" | "bold";
14
+ /** Semantic colour role. `gray` is the standard secondary-text token;
15
+ * the rest carry meaning, so avoid them for emphasis alone. Omit for
16
+ * primary text. */
17
+ /** Semantic colour role. `muted` is the standard secondary-text token;
18
+ * the rest carry meaning, so avoid them for emphasis alone. Omit for
19
+ * primary text. */
20
+ color?: "muted" | "danger" | "success" | "warning";
21
+ /** Id of the control this labels. Only meaningful with `as="label"`. */
22
+ htmlFor?: string;
23
+ /** The text. */
24
+ children?: ReactNode;
25
+ }
26
+ /**
27
+ * Body copy. Size, weight and colour are presentational and independent of
28
+ * the element, so `as` stays free to be whatever the document actually needs
29
+ * — a `p` for prose, a `label` for a field, a `span` inline.
30
+ *
31
+ * Colour is a role, not a hue: use `muted` for secondary copy and reserve the
32
+ * status roles for text that genuinely carries that meaning.
33
+ */
34
+ export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,16 @@
1
+ import type * as React from "react";
2
+ export interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "className" | "style"> {
3
+ /** Merged onto the field wrapper, not the inner textarea. */
4
+ className?: string;
5
+ /** Ambient motion on the rim. The glass skin is always applied.
6
+ * Default true. */
7
+ animated?: boolean;
8
+ /** Applied to the field wrapper — set width here. */
9
+ style?: React.CSSProperties;
10
+ }
11
+ /**
12
+ * Multi-line text entry. `rows` sets the initial height; it grows with its
13
+ * container's width and resizes vertically only, since horizontal drag would
14
+ * break the surrounding layout.
15
+ */
16
+ export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,30 @@
1
+ import type * as React from "react";
2
+ import { type ReactNode } from "react";
3
+ export interface RootProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "className" | "style"> {
4
+ /** Merged onto the field wrapper, not the inner input. */
5
+ className?: string;
6
+ /** Ambient motion on the rim. The glass skin is always applied.
7
+ * Default true. */
8
+ animated?: boolean;
9
+ /** Applied to the field wrapper — set width here. */
10
+ style?: React.CSSProperties;
11
+ /** Slots rendered inside the field, alongside the input. */
12
+ children?: ReactNode;
13
+ }
14
+ /**
15
+ * Single-line text entry. Composed as a Root so slots can sit alongside the
16
+ * input inside the same field surface.
17
+ *
18
+ * Props land on the inner input, so `value`, `onChange` and the rest behave
19
+ * as they would on a bare input.
20
+ */
21
+ export declare const Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLInputElement>>;
22
+ /**
23
+ * A fixed element inside the field, before or after the input — an icon, a
24
+ * unit, a short affordance. Sits within the field's surface rather than
25
+ * beside it, and does not shrink as the input fills.
26
+ */
27
+ export declare function Slot({ children, }: {
28
+ /** The slot's contents — an icon, a unit, a short affordance. */
29
+ children?: ReactNode;
30
+ }): React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ interface TooltipProps {
2
+ /** The text to show. Nothing renders when this is empty. */
3
+ label: string;
4
+ /** Preferred side; flips automatically when there isn't room. */
5
+ side?: "top" | "bottom";
6
+ /** The element the tooltip describes. Receives the hover and focus
7
+ * handlers, so it must accept a ref. */
8
+ children: React.ReactElement;
9
+ }
10
+ /**
11
+ * A short label revealed on hover or focus, for naming a control whose icon
12
+ * is not self-evident.
13
+ *
14
+ * Never put information here that a reader needs: a tooltip is unreachable on
15
+ * touch and easy to miss. If it must be read, put it on the page.
16
+ */
17
+ export declare function Tooltip({ label, side, children }: TooltipProps): import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1,27 @@
1
+ import type * as React from "react";
2
+ export type IconProps = React.SVGAttributes<SVGSVGElement>;
3
+ export declare function Share2Icon(props: IconProps): React.JSX.Element;
4
+ export declare function ChatBubbleIcon(props: IconProps): React.JSX.Element;
5
+ export declare function PlusIcon(props: IconProps): React.JSX.Element;
6
+ export declare function Pencil1Icon(props: IconProps): React.JSX.Element;
7
+ export declare function HeartFilledIcon(props: IconProps): React.JSX.Element;
8
+ export declare function ExitFullScreenIcon(props: IconProps): React.JSX.Element;
9
+ export declare function EnterFullScreenIcon(props: IconProps): React.JSX.Element;
10
+ export declare function CheckIcon(props: IconProps): React.JSX.Element;
11
+ export declare function TrashIcon(props: IconProps): React.JSX.Element;
12
+ export declare function QuestionMarkCircledIcon(props: IconProps): React.JSX.Element;
13
+ export declare function PersonIcon(props: IconProps): React.JSX.Element;
14
+ export declare function MinusIcon(props: IconProps): React.JSX.Element;
15
+ export declare function MagnifyingGlassIcon(props: IconProps): React.JSX.Element;
16
+ export declare function HeartIcon(props: IconProps): React.JSX.Element;
17
+ export declare function ChevronUpIcon(props: IconProps): React.JSX.Element;
18
+ export declare function ChevronDownIcon(props: IconProps): React.JSX.Element;
19
+ /** The house directional chevrons (Radix geometry, matching Up/Down above).
20
+ * These replaced the typographic arrows: a text glyph's shape is whatever the
21
+ * viewer's font decides, and the owner called the result poorly shaped. Used
22
+ * by every "onward" CTA and "back" button. */
23
+ export declare function ChevronRightIcon(props: IconProps): React.JSX.Element;
24
+ export declare function ChevronLeftIcon(props: IconProps): React.JSX.Element;
25
+ export declare function BookmarkIcon(props: IconProps): React.JSX.Element;
26
+ /** Dialog dismiss glyph — a plain X, used by Dialog.Content's corner button. */
27
+ export declare function XIcon(props: IconProps): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { CSSProperties } from "react";
2
+ export type SpaceStep = "0" | "1" | "2" | "3" | "4" | "5" | "6";
3
+ export interface SpacingProps {
4
+ m?: SpaceStep;
5
+ mt?: SpaceStep;
6
+ mb?: SpaceStep;
7
+ p?: SpaceStep;
8
+ pb?: SpaceStep;
9
+ }
10
+ export declare function spacingStyle({ m, mt, mb, p, pb }: SpacingProps, style?: CSSProperties): CSSProperties | undefined;
11
+ export declare function cx(...parts: Array<string | false | undefined>): string;
package/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("react/jsx-runtime"),M=require("./spaceControls.module-yIFvZ0rt.cjs"),S={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function y({m:e,mt:n,mb:s,p:r,pb:t},i){const c={...e!==void 0&&{margin:S[e]},...n!==void 0&&{marginTop:S[n]},...s!==void 0&&{marginBottom:S[s]},...r!==void 0&&{padding:S[r]},...t!==void 0&&{paddingBottom:S[t]},...i};return Object.keys(c).length>0?c:void 0}function C(...e){return e.filter(Boolean).join(" ")}const De="_text_4vcq4_1",Ee="_size1_4vcq4_5",Te="_size2_4vcq4_11",Ne="_size3_4vcq4_16",He="_size4_4vcq4_21",Oe="_size5_4vcq4_27",Pe="_size6_4vcq4_33",Ve="_medium_4vcq4_39",Ze="_bold_4vcq4_43",Be="_colorMuted_4vcq4_47",Ae="_colorDanger_4vcq4_51",Fe="_colorSuccess_4vcq4_55",We="_colorWarning_4vcq4_59",P={text:De,size1:Ee,size2:Te,size3:Ne,size4:He,size5:Oe,size6:Pe,medium:Ve,bold:Ze,colorMuted:Be,colorDanger:Ae,colorSuccess:Fe,colorWarning:We},re=l.forwardRef(function({as:n="span",size:s,weight:r,color:t,className:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},g){return l.createElement(n,{...d,ref:g,className:C(P.text,s&&P[`size${s}`],r&&P[r],t&&P[`color${t[0].toUpperCase()}${t.slice(1)}`],i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),Ge="_heading_vs4zk_1",Ue="_size4_vs4zk_7",Xe="_size5_vs4zk_13",Ke="_size6_vs4zk_19",Ye="_size7_vs4zk_25",Qe="_size8_vs4zk_31",Je="_size9_vs4zk_37",et="_colorMuted_vs4zk_43",tt="_colorDanger_vs4zk_47",nt="_alignCenter_vs4zk_51",D={heading:Ge,size4:Ue,size5:Xe,size6:Ke,size7:Ye,size8:Qe,size9:Je,colorMuted:et,colorDanger:tt,alignCenter:nt},le=l.forwardRef(function({as:n="h2",size:s,color:r,align:t,className:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},g){return l.createElement(n,{...d,ref:g,className:C(D.heading,s&&D[`size${s}`],r==="muted"&&D.colorMuted,r==="danger"&&D.colorDanger,t==="center"&&D.alignCenter,i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),ot="_link_1qa7j_1",st="_size1_1qa7j_10",rt="_size2_1qa7j_16",lt="_size3_1qa7j_21",ee={link:ot,size1:st,size2:rt,size3:lt},it=l.forwardRef(function({asChild:n,size:s,className:r,style:t,m:i,mt:c,mb:a,p:_,pb:f,children:u,...p},d){const g=C(ee.link,s&&ee[`size${s}`],r),m=y({m:i,mt:c,mb:a,p:_,pb:f},t);if(n&&l.isValidElement(u)){const h=u;return l.cloneElement(h,{...p,className:C(g,h.props.className),style:{...m,...h.props.style}})}return o.jsx("a",{...p,ref:d,className:g,style:m,children:u})}),ct="_flex_v4ziu_1",at="_gap1_v4ziu_5",ut="_gap2_v4ziu_9",dt="_gap3_v4ziu_13",ft="_gap4_v4ziu_17",_t="_gap5_v4ziu_21",pt="_gap6_v4ziu_25",gt="_directionRow_v4ziu_29",Ct="_directionColumn_v4ziu_33",mt="_alignStart_v4ziu_37",ht="_alignCenter_v4ziu_41",vt="_alignEnd_v4ziu_45",xt="_alignBaseline_v4ziu_49",bt="_alignStretch_v4ziu_53",wt="_justifyStart_v4ziu_57",jt="_justifyCenter_v4ziu_61",yt="_justifyEnd_v4ziu_65",Rt="_justifyBetween_v4ziu_69",$t="_wrapWrap_v4ziu_73",qt="_wrapNowrap_v4ziu_77",q={flex:ct,gap1:at,gap2:ut,gap3:dt,gap4:ft,gap5:_t,gap6:pt,directionRow:gt,directionColumn:Ct,alignStart:mt,alignCenter:ht,alignEnd:vt,alignBaseline:xt,alignStretch:bt,justifyStart:wt,justifyCenter:jt,justifyEnd:yt,justifyBetween:Rt,wrapWrap:$t,wrapNowrap:qt},V=e=>e[0].toUpperCase()+e.slice(1),kt=l.forwardRef(function({asChild:n,gap:s,direction:r,align:t,justify:i,wrap:c,className:a,style:_,m:f,mt:u,mb:p,p:d,pb:g,children:m,...h},v){const x=C(q.flex,s&&q[`gap${s}`],r&&q[`direction${V(r)}`],t&&q[`align${V(t)}`],i&&q[`justify${V(i)}`],c&&q[`wrap${V(c)}`],a),R=y({m:f,mt:u,mb:p,p:d,pb:g},_);if(n&&l.isValidElement(m)){const $=m;return l.cloneElement($,{...h,className:C(x,$.props.className),style:{...R,...$.props.style}})}return o.jsx("div",{...h,ref:v,className:x,style:R,children:m})}),Lt=l.forwardRef(function({style:n,m:s,mt:r,mb:t,p:i,pb:c,...a},_){return o.jsx("div",{...a,ref:_,style:y({m:s,mt:r,mb:t,p:i,pb:c},n)})}),zt="_grid_erpqq_1",Mt="_cols1_erpqq_5",It="_cols2_erpqq_9",St="_cols3_erpqq_13",Dt="_smCols2_erpqq_18",Et="_smCols3_erpqq_21",Tt="_mdCols2_erpqq_26",Nt="_mdCols3_erpqq_29",Ht="_gap1_erpqq_33",Ot="_gap2_erpqq_37",Pt="_gap3_erpqq_41",Vt="_gap4_erpqq_45",Zt="_gap5_erpqq_49",Bt="_gap6_erpqq_53",k={grid:zt,cols1:Mt,cols2:It,cols3:St,smCols2:Dt,smCols3:Et,mdCols2:Tt,mdCols3:Nt,gap1:Ht,gap2:Ot,gap3:Pt,gap4:Vt,gap5:Zt,gap6:Bt},At=l.forwardRef(function({columns:n,gap:s,className:r,style:t,m:i,mt:c,mb:a,p:_,pb:f,...u},p){const d=typeof n=="string"?[k[`cols${n}`]]:n?[n.initial&&k[`cols${n.initial}`],n.sm&&k[`smCols${n.sm}`],n.md&&k[`mdCols${n.md}`]]:[];return o.jsx("div",{...u,ref:p,className:C(k.grid,...d,s&&k[`gap${s}`],r),style:y({m:i,mt:c,mb:a,p:_,pb:f},t)})}),Ft="_badge_1twqf_2",Wt="_size1_1twqf_10",Gt="_size2_1twqf_19",Ut="_colorMuted_1twqf_28",Xt="_colorPrimary_1twqf_33",Kt="_colorSuccess_1twqf_38",Yt="_colorDanger_1twqf_43",Qt="_colorWarning_1twqf_48",Jt="_colorCyan_1twqf_53",en="_colorPurple_1twqf_58",tn="_colorOrange_1twqf_63",nn="_colorAccent_1twqf_68",on="_colorYellow_1twqf_73",sn="_solid_1twqf_81",rn="_wrap_1twqf_89",E={badge:Ft,size1:Wt,size2:Gt,colorMuted:Ut,colorPrimary:Xt,colorSuccess:Kt,colorDanger:Yt,colorWarning:Qt,colorCyan:Jt,colorPurple:en,colorOrange:tn,colorAccent:nn,colorYellow:on,solid:sn,wrap:rn},ln=e=>e[0].toUpperCase()+e.slice(1),cn=l.forwardRef(function({color:n="primary",variant:s="soft",size:r="1",wrap:t,className:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},g){return o.jsx("span",{...d,ref:g,className:C(E.badge,E[`color${ln(n)}`],s==="solid"&&E.solid,E[`size${r}`],t&&E.wrap,i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),an="_separator_vao01_1",un="_full_vao01_7",te={separator:an,full:un},dn=l.forwardRef(function({size:n="4",className:s,...r},t){return o.jsx("span",{...r,ref:t,role:"separator",className:C(te.separator,n==="4"&&te.full,s)})}),fn="_card_10wsm_1",_n={card:fn},pn=l.forwardRef(function({className:n,style:s,m:r,mt:t,mb:i,p:c,pb:a,..._},f){return o.jsx("div",{..._,ref:f,className:C(_n.card,n),style:y({m:r,mt:t,mb:i,p:c,pb:a},s)})}),gn="_scrollArea_ujp70_1",Cn={scrollArea:gn},mn=l.forwardRef(function({className:n,...s},r){return o.jsx("div",{...s,ref:r,className:C(Cn.scrollArea,n)})}),hn="_spaceButton_kjhqx_14",vn="_rimRotate_kjhqx_1",xn="_glintSweep_kjhqx_1",bn="_iconOnly_kjhqx_97",wn="_lg_kjhqx_104",jn="_sm_kjhqx_110",yn="_micro_kjhqx_122",Rn="_stars_kjhqx_136",$n="_fullWidth_kjhqx_141",qn="_ember_kjhqx_147",kn="_label_kjhqx_157",Ln="_star_kjhqx_136",zn="_twinkle_kjhqx_1",w={spaceButton:hn,rimRotate:vn,glintSweep:xn,iconOnly:bn,lg:wn,sm:jn,micro:yn,stars:Rn,fullWidth:$n,ember:qn,label:kn,star:Ln,twinkle:zn};function Mn(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function In(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const Sn=l.forwardRef(function({iconOnly:n,ember:s,size:r="md",fullWidth:t,animated:i=!0,className:c,children:a,..._},f){const u=l.useId(),p=l.useMemo(()=>{const g=Mn(In(u));return Array.from({length:3},()=>({top:`${12+g()*58}%`,left:`${8+g()*80}%`,animationDelay:`${(g()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+g()*1.8).toFixed(2)}s`}))},[u]),d=[w.spaceButton,n?w.iconOnly:"",s?w.ember:"",r!=="md"?w[r]:"",t?w.fullWidth:"",c??""].filter(Boolean).join(" ");return o.jsxs("button",{ref:f,className:d,"data-animated":i?void 0:"false",..._,children:[r!=="micro"&&o.jsx("span",{className:w.stars,"aria-hidden":!0,children:p.map((g,m)=>o.jsx("i",{className:w.star,style:g},m))}),o.jsx("span",{className:w.label,children:a})]})}),Dn="_wrap_dwcut_5",En="_sm_dwcut_30",Tn="_md_dwcut_36",Nn="_lg_dwcut_42",Hn="_orbit_dwcut_49",On="_planet_dwcut_58",Pn="_moon_dwcut_73",Vn="_label_dwcut_92",L={wrap:Dn,sm:En,md:Tn,lg:Nn,orbit:Hn,planet:On,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:Pn,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:Vn,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function Zn({size:e="md",label:n,className:s}){return o.jsxs("div",{className:C(L.wrap,L[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[o.jsxs("span",{className:L.orbit,children:[o.jsx("span",{className:L.planet}),o.jsx("span",{className:L.moon})]}),n&&o.jsx("span",{className:L.label,children:n})]})}const Bn="_content_1bxfq_6",An={content:Bn},Fn=350,Wn=80,ne=8,T=8;function Gn({triggerRef:e,tooltipId:n,show:s,hide:r,children:t}){const i=t.props;return l.cloneElement(t,{ref:e,"aria-describedby":n,onPointerEnter:c=>{var a;(a=i.onPointerEnter)==null||a.call(i,c),c.pointerType==="mouse"&&s()},onPointerLeave:c=>{var a;(a=i.onPointerLeave)==null||a.call(i,c),r()},onFocus:c=>{var a;(a=i.onFocus)==null||a.call(i,c),s(!0)},onBlur:c=>{var a;(a=i.onBlur)==null||a.call(i,c),r()},onClick:c=>{var a;(a=i.onClick)==null||a.call(i,c),r()}})}function ie({label:e,side:n="bottom",children:s}){const r=l.useId(),[t,i]=l.useState(!1),[c,a]=l.useState(null),_=l.useRef(null),f=l.useRef(null),u=l.useRef(null),p=l.useRef(null),d=()=>{u.current&&(clearTimeout(u.current),u.current=null),p.current&&(clearTimeout(p.current),p.current=null)},g=(h=!1)=>{if(d(),h){i(!0);return}u.current=setTimeout(()=>i(!0),Fn)},m=()=>{d(),p.current=setTimeout(()=>i(!1),Wn)};return l.useEffect(()=>d,[]),l.useLayoutEffect(()=>{const h=f.current;if(!h)return;if(!t){h.matches(":popover-open")&&h.hidePopover();return}h.matches(":popover-open")||h.showPopover();const v=_.current;if(!v)return;const x=v.getBoundingClientRect(),R=h.offsetWidth,$=h.offsetHeight,B=x.bottom+ne,A=x.top-$-ne,Q=B+$<=window.innerHeight-T,J=A>=T,Ie=n==="bottom"?Q||!J?B:A:J||!Q?A:B,Se=Math.min(Math.max(x.left+x.width/2-R/2,T),Math.max(window.innerWidth-R-T,T));a({top:Ie,left:Se})},[t,n,e]),!e||!l.isValidElement(s)?o.jsx(o.Fragment,{children:s}):o.jsxs(o.Fragment,{children:[o.jsx(Gn,{triggerRef:_,tooltipId:r,show:g,hide:m,children:s}),o.jsx("div",{ref:f,id:r,popover:"auto",role:"tooltip",className:An.content,style:c?{top:c.top,left:c.left}:void 0,onToggle:h=>{h.nativeEvent.newState==="closed"&&t&&i(!1)},children:e})]})}const Un="_group_1kj0b_3",Xn="_segment_1kj0b_14",Kn="_active_1kj0b_34",F={group:Un,segment:Xn,active:Kn};function Yn({options:e,value:n,onValueChange:s,className:r=""}){return o.jsx("div",{className:`${F.group} ${r}`,role:"group",children:e.map(t=>o.jsx(ie,{label:t.label,side:"bottom",children:o.jsx("button",{type:"button",className:`${F.segment} ${t.value===n?F.active:""}`,"aria-label":t.label,"aria-pressed":t.value===n,onClick:()=>{t.value!==n&&s(t.value)},children:t.icon})},t.value))})}const Qn="_root_1bvtq_2",Jn="_trigger_1bvtq_7",eo="_labelWrap_1bvtq_30",to="_sizer_1bvtq_8",no="_triggerLabel_1bvtq_70",oo="_chevron_1bvtq_77",so="_listbox_1bvtq_82",ro="_item_1bvtq_110",j={root:Qn,trigger:Jn,labelWrap:eo,sizer:to,triggerLabel:no,chevron:oo,listbox:so,item:ro},ce=l.createContext(null),G=()=>{const e=l.useContext(ce);if(!e)throw new Error("Select parts must be inside Select.Root");return e},ae=(e,n)=>`${e}-${encodeURIComponent(n)}`,ue=l.createContext(null),U=()=>{const e=l.useContext(ue);if(!e)throw new Error("Select parts must be inside Select.Root");return e};function lo(e){const n=[],s=r=>{l.Children.forEach(r,t=>{if(!l.isValidElement(t))return;const i=t.props;t.type===fe&&typeof i.value=="string"?n.push({value:i.value,label:i.children,disabled:i.disabled}):i.children&&s(i.children)})};return s(e),n}function io({value:e,onValueChange:n,disabled:s,children:r}){const[t,i]=l.useState(!1),[c,a]=l.useState(null),_=l.useId(),f=l.useRef(null),u=l.useRef(null),p=l.useMemo(()=>{let v=null;return l.Children.forEach(r,x=>{l.isValidElement(x)&&x.type===de&&(v=x.props.children)}),v},[r]),d=l.useMemo(()=>lo(p),[p]),g=l.useMemo(()=>d.filter(v=>!v.disabled).map(v=>v.value),[d]),m=l.useMemo(()=>d.map(v=>v.label),[d]),h=l.useCallback(v=>{var x;return((x=d.find(R=>R.value===v))==null?void 0:x.label)??null},[d]);return l.useEffect(()=>{if(!t)return;const v=x=>{u.current&&!u.current.contains(x.target)&&i(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[t]),o.jsx(ce.Provider,{value:{value:e,onValueChange:n,disabled:s,open:t,setOpen:i,highlighted:c,setHighlighted:a,listboxId:_,values:g,itemLabels:m,labelFor:h},children:o.jsx(ue.Provider,{value:f,children:o.jsx("div",{ref:u,className:j.root,children:r})})})}function co({placeholder:e,animated:n=!0,className:s,...r}){const t=G(),i=U(),c=t.value?t.labelFor(t.value):null,a=_=>{t.setHighlighted(_??t.values[0]??null),t.setOpen(!0)};return o.jsxs("button",{type:"button",...r,ref:i,disabled:t.disabled,className:C(j.trigger,M.ctl.spaceControl,"spSelectTrigger",s),"data-animated":n?void 0:"false","data-state":t.open?"open":"closed","aria-haspopup":"listbox","aria-expanded":t.open,"aria-controls":t.listboxId,onClick:()=>t.open?t.setOpen(!1):a(t.value||null),onKeyDown:_=>{(_.key==="ArrowDown"||_.key==="Enter"||_.key===" ")&&(_.preventDefault(),a(t.value||null))},children:[o.jsxs("span",{className:j.labelWrap,children:[o.jsxs("span",{className:j.sizer,"data-sizer":"","aria-hidden":"true",children:[t.itemLabels.map((_,f)=>o.jsx("span",{children:_},f)),e&&o.jsx("span",{children:e})]}),o.jsx("span",{className:j.triggerLabel,children:c??e??""})]}),o.jsx("svg",{className:j.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:o.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]})}function de({className:e,position:n,animated:s=!0,children:r}){const t=G(),i=U(),c=l.useRef(null),[a,_]=l.useState(null),[f,u]=l.useState(null);l.useLayoutEffect(()=>{if(t.open&&i.current){const d=i.current.getBoundingClientRect();_(i.current.offsetWidth);const g=window.innerHeight-d.bottom-16;u(Math.min(380,Math.max(120,g)))}},[t.open,i]),l.useEffect(()=>{var d;t.open&&((d=c.current)==null||d.focus())},[t.open]);const p=d=>{const g=t.highlighted?t.values.indexOf(t.highlighted):-1,m=Math.min(Math.max(g+d,0),t.values.length-1);t.setHighlighted(t.values[m]??null)};return o.jsx("div",{ref:c,id:t.listboxId,role:"listbox",tabIndex:-1,hidden:!t.open,"aria-activedescendant":t.highlighted?ae(t.listboxId,t.highlighted):void 0,className:C(j.listbox,M.ctl.spacePanel,e),"data-animated":s?void 0:"false",style:a!=null||f!=null?{...a!=null?{"--_select-trigger-width":`${a}px`}:{},...f!=null?{maxHeight:`${f}px`}:{}}:void 0,onKeyDown:d=>{var g,m;d.key==="Escape"?(d.stopPropagation(),t.setOpen(!1),(g=i.current)==null||g.focus()):d.key==="ArrowDown"?(d.preventDefault(),p(1)):d.key==="ArrowUp"?(d.preventDefault(),p(-1)):d.key==="Home"?(d.preventDefault(),t.setHighlighted(t.values[0]??null)):d.key==="End"?(d.preventDefault(),t.setHighlighted(t.values[t.values.length-1]??null)):d.key==="Enter"||d.key===" "?(d.preventDefault(),t.highlighted&&(t.onValueChange(t.highlighted),t.setOpen(!1),(m=i.current)==null||m.focus())):d.key==="Tab"&&t.setOpen(!1)},children:r})}function fe({value:e,disabled:n,children:s}){const r=G(),t=U(),i=r.value===e,c=r.highlighted===e;return o.jsx("div",{id:ae(r.listboxId,e),role:"option","aria-selected":i,"aria-disabled":n||void 0,"data-highlighted":c?"":void 0,className:C(j.item,"spSelectItem"),onMouseEnter:()=>!n&&r.setHighlighted(e),onClick:()=>{var a;n||(r.onValueChange(e),r.setOpen(!1),(a=t.current)==null||a.focus())},children:s})}const ao=Object.freeze(Object.defineProperty({__proto__:null,Content:de,Item:fe,Root:io,Trigger:co},Symbol.toStringTag,{value:"Module"})),uo="_root_1lx7y_1",fo="_input_1lx7y_7",_o="_slot_1lx7y_17",W={root:uo,input:fo,slot:_o},po=l.forwardRef(function({className:n,style:s,animated:r=!0,children:t,...i},c){return o.jsxs("div",{className:C(W.root,M.ctl.spaceInput,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:[t,o.jsx("input",{...i,ref:c,className:C(W.input,"spTextFieldInput")})]})});function go({children:e}){return o.jsx("span",{className:W.slot,children:e})}const Co=Object.freeze(Object.defineProperty({__proto__:null,Root:po,Slot:go},Symbol.toStringTag,{value:"Module"})),mo="_root_1qu6w_1",ho="_textarea_1qu6w_6",oe={root:mo,textarea:ho},vo=l.forwardRef(function({className:n,style:s,animated:r=!0,...t},i){return o.jsx("div",{className:C(oe.root,M.ctl.spaceInput,M.ctl.spaceTextArea,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:o.jsx("textarea",{...t,ref:i,className:C(oe.textarea,"spTextAreaInput")})})}),xo="_root_14a1b_1",bo="_track_14a1b_12",wo="_range_14a1b_22",jo="_thumb_14a1b_28",yo="_input_14a1b_38",N={root:xo,track:bo,range:wo,thumb:jo,input:yo},Ro=l.forwardRef(function({value:n,onValueChange:s,min:r,max:t,step:i,disabled:c,className:a,"aria-label":_},f){const u=n[0]??r,p=t===r?0:(u-r)/(t-r)*100;return o.jsxs("span",{className:C(N.root,M.ctl.spaceSlider,a),"data-disabled":c||void 0,children:[o.jsx("span",{className:C(N.track,"spSliderTrack"),children:o.jsx("span",{className:C(N.range,"spSliderRange"),style:{width:`${p}%`}})}),o.jsx("span",{className:C(N.thumb,"spSliderThumb"),style:{left:`${p}%`}}),o.jsx("input",{ref:f,type:"range",className:C(N.input,"spSliderInput"),value:u,min:r,max:t,step:i,disabled:c,"aria-label":_,onChange:d=>s([Number(d.target.value)])})]})}),$o="_root_1qhel_2",qo="_item_1qhel_8",ko="_selfLabeled_1qhel_15",Lo="_input_1qhel_19",zo="_orb_1qhel_35",z={root:$o,item:qo,selfLabeled:ko,input:Lo,orb:zo},_e=l.createContext(null);function Mo({value:e,onValueChange:n,disabled:s,className:r,children:t}){const i=l.useId();return o.jsx(_e.Provider,{value:{value:e,onValueChange:n,disabled:s,name:i},children:o.jsx("div",{role:"radiogroup",className:C(z.root,r),children:t})})}function Io({value:e,disabled:n,children:s}){const r=l.useContext(_e);if(!r)throw new Error("RadioGroup.Item must be inside RadioGroup.Root");const t=n||r.disabled,i=o.jsxs(o.Fragment,{children:[o.jsx("input",{type:"radio",className:z.input,name:r.name,value:e,checked:r.value===e,disabled:t,onChange:()=>r.onValueChange(e)}),o.jsx("span",{className:C(z.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?o.jsx("span",{className:z.item,children:i}):o.jsxs("label",{className:C(z.item,z.selfLabeled),children:[i,s]})}const So=Object.freeze(Object.defineProperty({__proto__:null,Item:Io,Root:Mo},Symbol.toStringTag,{value:"Module"})),Do="_progress_sr231_16",Eo={progress:Do};function To({value:e,max:n=100,className:s,style:r,...t}){const i=n>0?Math.min(Math.max(e/n*100,0),100):0;return o.jsx("div",{...t,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:C(Eo.progress,s),style:r,children:o.jsx("div",{style:{width:`${i}%`,height:"100%"}})})}const b={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function No(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ho(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Oo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Po(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Vo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Zo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Bo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ao(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Fo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Wo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Go(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Uo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Xo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ko(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Yo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Qo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Jo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function es(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ts(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function pe(e){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:o.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}const ns="_dialog_1qqku_2",os="_inner_1qqku_34",ss="_size4_1qqku_39",rs="_title_1qqku_43",ls="_closeX_1qqku_51",H={dialog:ns,inner:os,size4:ss,title:rs,closeX:ls};let Z=0;const ge=l.createContext(null),I=()=>{const e=l.useContext(ge);if(!e)throw new Error("Dialog parts must be inside Dialog.Root");return e};function X(e){return function({open:s,onOpenChange:r,children:t}){const[i,c]=l.useState(!1),a=s!==void 0,_=a?s:i,f=m=>{a||c(m),r==null||r(m)},u=l.useId(),p=l.useId(),[d,g]=l.useState(!1);return o.jsx(ge.Provider,{value:{open:_,setOpen:f,titleId:u,descId:p,alert:e,hasDesc:d,setHasDesc:g},children:t})}}const is=X(!1),Ce=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:r=>{var t,i;(i=(t=s.props).onClick)==null||i.call(t,r),n()}})};function me({children:e}){const n=I();return o.jsx(o.Fragment,{children:Ce(e,()=>n.setOpen(!0))})}function K({children:e}){const n=I();return o.jsx(o.Fragment,{children:Ce(e,()=>n.setOpen(!1))})}function he({size:e="3",maxWidth:n,className:s,style:r,children:t,...i}){const c=I(),a=l.useRef(null),_=l.useRef(!1),f=l.useRef(!1);return l.useEffect(()=>{const u=a.current;u&&(c.open&&!u.open?u.showModal():!c.open&&u.open&&u.close())},[c.open]),l.useEffect(()=>{if(c.open)return Z+=1,Z===1&&(document.body.style.overflow="hidden"),()=>{Z-=1,Z===0&&(document.body.style.overflow="")}},[c.open]),o.jsx("dialog",{...i,ref:a,role:c.alert?"alertdialog":void 0,"aria-labelledby":c.titleId,"aria-describedby":c.hasDesc?c.descId:void 0,className:C(H.dialog,"spDialog",e==="4"&&H.size4,s),style:{...n?{maxWidth:n}:null,...r},onKeyDownCapture:u=>{var p,d;u.key==="Escape"&&((p=a.current)!=null&&p.querySelector("dialog[open]")||(d=a.current)!=null&&d.querySelector('[role="listbox"]:not([hidden])')&&(_.current=!0))},onCancel:u=>{if(u.preventDefault(),_.current){_.current=!1;return}c.setOpen(!1)},onClose:()=>{c.open&&c.setOpen(!1)},onPointerDown:u=>{f.current=u.target===a.current},onClick:u=>{!c.alert&&u.target===a.current&&f.current&&c.setOpen(!1)},children:o.jsxs("div",{className:H.inner,children:[!c.alert&&o.jsx("button",{type:"button",className:H.closeX,"aria-label":"Close",onClick:()=>c.setOpen(!1),children:o.jsx(pe,{width:16,height:16})}),t]})})}function ve({className:e,...n}){const s=I();return o.jsx(le,{as:"h2",size:"5",...n,id:s.titleId,className:C(H.title,e)})}function xe(e){const n=I(),{setHasDesc:s}=n;return l.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),o.jsx(re,{as:"p",...e,id:n.descId})}const cs=Object.freeze(Object.defineProperty({__proto__:null,Close:K,Content:he,Description:xe,Root:is,Title:ve,Trigger:me,makeRoot:X,useDialog:I},Symbol.toStringTag,{value:"Module"})),as=X(!0),us=me,ds=he,fs=ve,_s=xe,ps=K,gs=K,Cs=Object.freeze(Object.defineProperty({__proto__:null,Action:gs,Cancel:ps,Content:ds,Description:_s,Root:as,Title:fs,Trigger:us},Symbol.toStringTag,{value:"Module"})),ms="_menu_1hwyv_1",hs="_label_1hwyv_16",vs="_item_1hwyv_26",xs="_danger_1hwyv_45",bs="_separator_1hwyv_49",O={menu:ms,label:hs,item:vs,danger:xs,separator:bs},be=l.createContext(null),Y=()=>{const e=l.useContext(be);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},we=l.createContext(null),je=()=>{const e=l.useContext(we);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},ye=l.createContext(null),ws=()=>{const e=l.useContext(ye);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},Re=l.createContext(null),$e=()=>{const e=l.useContext(Re);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},qe=l.createContext(null),ke=()=>{const e=l.useContext(qe);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e};function js(e){return e.current?(e.current=!1,!0):!1}function se(e){e.current=!0}function ys({children:e}){const[n,s]=l.useState(!1),r=l.useId(),t=l.useRef(null),i=l.useRef(null),c=l.useRef(!1),a=l.useRef(!1);return o.jsx(be.Provider,{value:{open:n,setOpen:s,menuId:r},children:o.jsx(we.Provider,{value:t,children:o.jsx(ye.Provider,{value:i,children:o.jsx(Re.Provider,{value:c,children:o.jsx(qe.Provider,{value:a,children:e})})})})})}function Rs({children:e}){const n=Y(),s=je(),r=$e();if(!l.isValidElement(e))return null;const t=e;return l.cloneElement(t,{ref:s,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.menuId,onClick:i=>{var c,a;(a=(c=t.props).onClick)==null||a.call(c,i),!js(r)&&n.setOpen(!n.open)}})}function $s({align:e="start",children:n}){const s=Y(),r=je(),t=ws(),i=$e(),c=ke(),[a,_]=l.useState(null);return l.useLayoutEffect(()=>{var u;const f=t.current;if(f)if(s.open){const p=r.current;if(p){const d=p.getBoundingClientRect(),g=e==="end"?"auto":d.left,m=e==="end"?window.innerWidth-d.right:"auto";_({top:d.bottom+6,left:g,right:m})}f.showPopover(),(u=f.querySelector('[role="menuitem"]'))==null||u.focus()}else f.matches(":popover-open")&&f.hidePopover()},[s.open,e,t,r]),l.useEffect(()=>{if(!s.open)return;const f=s.setOpen,u=()=>f(!1);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[s.open,s.setOpen]),o.jsx("div",{ref:t,id:s.menuId,role:"menu",popover:"auto",className:O.menu,style:a?{top:a.top,left:a.left==="auto"?"auto":a.left,right:a.right==="auto"?"auto":a.right}:void 0,onToggle:f=>{if(f.nativeEvent.newState==="closed"){const u=c.current;c.current=!1,u||(i.current=!0,setTimeout(()=>{i.current=!1},300)),s.open&&s.setOpen(!1)}},onKeyDown:f=>{var d,g,m,h,v,x;const u=Array.from(((d=t.current)==null?void 0:d.querySelectorAll('[role="menuitem"]'))??[]),p=u.indexOf(document.activeElement);f.key==="ArrowDown"?(f.preventDefault(),(g=u[Math.min(p+1,u.length-1)])==null||g.focus()):f.key==="ArrowUp"?(f.preventDefault(),(m=u[Math.max(p-1,0)])==null||m.focus()):f.key==="Home"?(f.preventDefault(),(h=u[0])==null||h.focus()):f.key==="End"?(f.preventDefault(),(v=u[u.length-1])==null||v.focus()):f.key==="Escape"&&(s.setOpen(!1),(x=r.current)==null||x.focus())},children:n})}function qs({children:e}){return o.jsx("div",{className:O.label,children:e})}function ks({asChild:e,color:n,onSelect:s,children:r}){const t=Y(),i=ke(),c=C(O.item,n==="danger"&&O.danger),a=()=>{se(i),t.setOpen(!1),s==null||s()};if(e&&l.isValidElement(r)){const _=r,{className:f,onClick:u,children:p,role:d,tabIndex:g,...m}=_.props,h=_.ref;return l.createElement(_.type,{key:_.key,ref:h,role:"menuitem",tabIndex:-1,...m,className:C(c,f),onClick:v=>{u==null||u(v),se(i),t.setOpen(!1)}},p)}return o.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:c,onClick:a,children:r})}function Ls(){return o.jsx("div",{role:"separator",className:O.separator})}const zs=Object.freeze(Object.defineProperty({__proto__:null,Content:$s,Item:ks,Label:qs,Root:ys,Separator:Ls,Trigger:Rs},Symbol.toStringTag,{value:"Module"})),Ms="_list_19grf_19",Is="_trigger_19grf_28",Le={list:Ms,trigger:Is},ze=l.createContext(null),Me=()=>{const e=l.useContext(ze);if(!e)throw new Error("Tabs parts must be inside Tabs.Root");return e};function Ss({value:e,onValueChange:n,className:s,children:r}){const t=l.useId();return o.jsx(ze.Provider,{value:{value:e,onValueChange:n,id:t},children:o.jsx("div",{className:s,children:r})})}function Ds({children:e}){return o.jsx("div",{role:"tablist",className:C(Le.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),r=s.indexOf(document.activeElement);if(r!==-1){if(n.key==="ArrowRight"){n.preventDefault();const t=s[(r+1)%s.length];t.focus(),t.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const t=s[(r-1+s.length)%s.length];t.focus(),t.click()}else if(n.key==="Home"){n.preventDefault();const t=s[0];t.focus(),t.click()}else if(n.key==="End"){n.preventDefault();const t=s[s.length-1];t.focus(),t.click()}}},children:e})}function Es({value:e,className:n,children:s,...r}){const t=Me(),i=t.value===e;return o.jsx("button",{...r,type:"button",role:"tab",id:`${t.id}-tab-${e}`,"aria-selected":i,"aria-controls":`${t.id}-panel-${e}`,tabIndex:i?0:-1,"data-state":i?"active":"inactive",className:C(Le.trigger,"spTabsTrigger",n),onClick:()=>t.onValueChange(e),children:s})}function Ts({value:e,children:n}){const s=Me();return s.value!==e?null:o.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const Ns=Object.freeze(Object.defineProperty({__proto__:null,Content:Ts,List:Ds,Root:Ss,Trigger:Es},Symbol.toStringTag,{value:"Module"}));exports.AlertDialog=Cs;exports.Badge=cn;exports.BookmarkIcon=ts;exports.Box=Lt;exports.Button=Sn;exports.Card=pn;exports.ChatBubbleIcon=Ho;exports.CheckIcon=Ao;exports.ChevronDownIcon=Qo;exports.ChevronLeftIcon=es;exports.ChevronRightIcon=Jo;exports.ChevronUpIcon=Yo;exports.Dialog=cs;exports.DropdownMenu=zs;exports.EnterFullScreenIcon=Bo;exports.ExitFullScreenIcon=Zo;exports.Flex=kt;exports.Grid=At;exports.Heading=le;exports.HeartFilledIcon=Vo;exports.HeartIcon=Ko;exports.IconToggle=Yn;exports.Link=it;exports.Loader=Zn;exports.MagnifyingGlassIcon=Xo;exports.MinusIcon=Uo;exports.Pencil1Icon=Po;exports.PersonIcon=Go;exports.PlusIcon=Oo;exports.Progress=To;exports.QuestionMarkCircledIcon=Wo;exports.RadioGroup=So;exports.ScrollArea=mn;exports.Select=ao;exports.Separator=dn;exports.Share2Icon=No;exports.Slider=Ro;exports.Tabs=Ns;exports.Text=re;exports.TextArea=vo;exports.TextField=Co;exports.Tooltip=ie;exports.TrashIcon=Fo;exports.XIcon=pe;
2
+ //# sourceMappingURL=index.cjs.map