@ox0/ui 1.0.1 → 1.1.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.
@@ -0,0 +1,26 @@
1
+ import { type InputHTMLAttributes, type ReactNode } from "react";
2
+ export interface ComboboxOption {
3
+ readonly value: string;
4
+ readonly label: string;
5
+ readonly disabled?: boolean;
6
+ }
7
+ export interface ComboboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange" | "disabled"> {
8
+ readonly label?: ReactNode;
9
+ readonly ariaLabel?: string;
10
+ readonly description?: ReactNode;
11
+ readonly isDisabled?: boolean;
12
+ readonly isInvalid?: boolean;
13
+ readonly errorMessage?: ReactNode;
14
+ readonly options: readonly ComboboxOption[];
15
+ /** Selected option value (controlled). */
16
+ readonly value?: string;
17
+ /** Initial selected option value (uncontrolled). */
18
+ readonly defaultValue?: string;
19
+ readonly placeholder?: string;
20
+ /** Called with the option value when an option is committed. */
21
+ readonly onChange?: (value: string) => void;
22
+ /** Message shown when no options match the current input. @default "No options" */
23
+ readonly noOptionsMessage?: string;
24
+ }
25
+ export declare const Combobox: import("react").ForwardRefExoticComponent<ComboboxProps & import("react").RefAttributes<HTMLInputElement>>;
26
+ //# sourceMappingURL=combobox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../src/components/combobox.tsx"],"names":[],"mappings":"AAWA,OAAO,EAOL,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAMd,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,OAAO,GAAG,cAAc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6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAA;IACpC,wCAAwC;IACxC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CAC7C;AAED,eAAO,MAAM,UAAU,+GAWrB,CAAA"}
1
+ {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/components/icon-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAA;AAGvE,OAAO,EAA2C,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE1F,KAAK,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAEpD,YAAY,EAAE,aAAa,EAAE,CAAA;AAE7B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,WAAW,EACX,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,GAAG,SAAS,CAC3D;IACC,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAA;IACpC,wCAAwC;IACxC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CAC7C;AAED,eAAO,MAAM,UAAU,+GAcrB,CAAA"}
@@ -1,19 +1,29 @@
1
1
  import { type ReactElement, type ReactNode } from "react";
2
2
  export type PopoverPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
3
3
  export interface PopoverProps {
4
- /** Content rendered inside the popover panel. May include interactive elements. */
5
- readonly content: ReactNode;
4
+ /** Children: a PopoverTrigger and a PopoverContent. */
5
+ readonly children: ReactNode;
6
6
  /** Preferred placement. Flips automatically when space is insufficient. @default "bottom-start" */
7
7
  readonly placement?: PopoverPlacement;
8
+ /** Controlled open state. Omit to use internal state. */
9
+ readonly isOpen?: boolean;
10
+ /** Callback fired when the popover should open or close. */
11
+ readonly onOpenChange?: (open: boolean) => void;
12
+ }
13
+ export interface PopoverTriggerProps {
8
14
  /**
9
15
  * The element that toggles the popover on click.
10
16
  * Must be a single focusable element that forwards refs.
11
17
  */
12
18
  readonly children: ReactElement;
13
- /** Controlled open state. Omit to use internal state. */
14
- readonly isOpen?: boolean;
15
- /** Callback fired when the popover should open or close. */
16
- readonly onOpenChange?: (open: boolean) => void;
17
19
  }
18
- export declare function Popover({ content, placement, children, isOpen: controlledOpen, onOpenChange, }: PopoverProps): ReactElement;
20
+ export interface PopoverContentProps {
21
+ /** Content rendered inside the popover panel. May include interactive elements. */
22
+ readonly children: ReactNode;
23
+ /** Optional additional class name. */
24
+ readonly className?: string;
25
+ }
26
+ export declare function Popover({ children, placement, isOpen: controlledOpen, onOpenChange, }: PopoverProps): ReactElement;
27
+ export declare function PopoverTrigger({ children }: PopoverTriggerProps): ReactElement;
28
+ export declare function PopoverContent({ children, className }: PopoverContentProps): ReactElement | null;
19
29
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AAI3F,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAA;AAEf,MAAM,WAAW,YAAY;IAC3B,mFAAmF;IACnF,QAAQ,CAAC,O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Q,EAAE,SAAS,CAAA;IAC5B,sCAAsC;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAID,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,SAA0B,EAC1B,MAAM,EAAE,cAAc,EACtB,YAAY,GACb,EAAE,YAAY,GAAG,YAAY,CAqC7B;AAID,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,YAAY,CAY9E;AAID,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CAmBhG"}
@@ -0,0 +1,35 @@
1
+ import { type FieldsetHTMLAttributes, type InputHTMLAttributes, type ReactNode } from "react";
2
+ export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange" | "disabled"> {
3
+ /** Visible legend / label for the group. */
4
+ readonly label?: ReactNode;
5
+ /** Helper text shown below the legend. */
6
+ readonly description?: ReactNode;
7
+ /** Marks every radio in the group invalid. */
8
+ readonly isInvalid?: boolean;
9
+ /** Disables every radio in the group. */
10
+ readonly isDisabled?: boolean;
11
+ /** Error message shown below the group. */
12
+ readonly errorMessage?: ReactNode;
13
+ /** Controlled selected value. */
14
+ readonly value?: string;
15
+ /** Initial selected value (uncontrolled). */
16
+ readonly defaultValue?: string;
17
+ /** Called with the new value when the selection changes. */
18
+ readonly onChange?: (value: string) => void;
19
+ /** `"vertical"` (default) or `"horizontal"` */
20
+ readonly orientation?: "vertical" | "horizontal";
21
+ readonly children: ReactNode;
22
+ }
23
+ export declare const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<HTMLFieldSetElement>>;
24
+ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "disabled" | "checked" | "name"> {
25
+ /** The value this radio represents. */
26
+ readonly value: string;
27
+ /** Visible label. Falls back to `children`. */
28
+ readonly label?: ReactNode;
29
+ /** Helper text below the label. */
30
+ readonly description?: ReactNode;
31
+ /** Overrides the group's disabled state for this radio only. */
32
+ readonly isDisabled?: boolean;
33
+ }
34
+ export declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLInputElement>>;
35
+ //# sourceMappingURL=radio-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AA0Bd,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,UAAU,GAAG,UAAU,CACxB;IACC,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,0CAA0C;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAA;IAChC,8CAA8C;IAC9C,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;IAC5B,yCAAyC;IACzC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC,iCAAiC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,+CAA+C;IAC/C,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IAChD,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED,eAAO,MAAM,UAAU,iHA+ErB,CAAA;AAIF,MAAM,WAAW,UAAW,SAAQ,IAAI,CACtC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CACzC;IACC,uCAAuC;IACvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,+CAA+C;IAC/C,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAA;IAChC,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED,eAAO,MAAM,KAAK,yGAsChB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { type OutputHTMLAttributes } from "react";
2
+ export type SkeletonShape = "rect" | "text" | "circle";
3
+ export interface SkeletonProps extends OutputHTMLAttributes<HTMLOutputElement> {
4
+ /** Visual shape of the placeholder. @default "rect" */
5
+ readonly shape?: SkeletonShape;
6
+ /** Width override. Defaults to 100% for rect/text, 2.5rem for circle. */
7
+ readonly width?: string | number;
8
+ /** Height override. Defaults to 1rem for rect, 1em for text, 2.5rem for circle. */
9
+ readonly height?: string | number;
10
+ }
11
+ export declare const Skeleton: import("react").ForwardRefExoticComponent<SkeletonProps & import("react").RefAttributes<HTMLOutputElement>>;
12
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAI7D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEtD,MAAM,WAAW,aAAc,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC5E,uDAAuD;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAChC,mFAAmF;IACnF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAClC;AAQD,eAAO,MAAM,QAAQ,6GAqBnB,CAAA"}
@@ -0,0 +1,33 @@
1
+ import { type ReactNode } from "react";
2
+ export interface TabsProps {
3
+ /** Controlled selected tab value. */
4
+ readonly value?: string;
5
+ /** Initial selected tab value (uncontrolled). */
6
+ readonly defaultValue?: string;
7
+ /** Called when the selected tab changes. */
8
+ readonly onChange?: (value: string) => void;
9
+ readonly children: ReactNode;
10
+ }
11
+ export declare function Tabs({ value: valueProp, defaultValue, onChange, children }: TabsProps): ReactNode;
12
+ export interface TabListProps {
13
+ /** `"line"` (default) or `"pill"` */
14
+ readonly variant?: "line" | "pill";
15
+ /** Accessible label — provide when the context doesn't make the purpose clear. */
16
+ readonly "aria-label"?: string;
17
+ readonly children: ReactNode;
18
+ }
19
+ export declare function TabList({ variant, "aria-label": ariaLabel, children, }: TabListProps): ReactNode;
20
+ export interface TabProps {
21
+ /** Must match the corresponding TabPanel's `value`. */
22
+ readonly value: string;
23
+ readonly isDisabled?: boolean;
24
+ readonly children: ReactNode;
25
+ }
26
+ export declare function Tab({ value, isDisabled, children }: TabProps): ReactNode;
27
+ export interface TabPanelProps {
28
+ /** Must match the corresponding Tab's `value`. */
29
+ readonly value: string;
30
+ readonly children: ReactNode;
31
+ }
32
+ export declare function TabPanel({ value, children }: TabPanelProps): ReactNode;
33
+ //# sourceMappingURL=tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAuBd,MAAM,WAAW,SAAS;IACxB,qCAAqC;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,iDAAiD;IACjD,QAAQ,CAAC,YAAY,CAA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om" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
3
3
  export interface TooltipProps {
4
- /** Tooltip content. Keep it brief — use a Popover for rich content. */
5
- readonly content: ReactNode;
4
+ /** Children: a TooltipTrigger and a TooltipContent. */
5
+ readonly children: ReactNode;
6
6
  /** Preferred placement. Flips automatically when space is insufficient. @default "top" */
7
7
  readonly placement?: TooltipPlacement;
8
+ /** When true, the tooltip is never shown. */
9
+ readonly isDisabled?: boolean;
10
+ }
11
+ export interface TooltipTriggerProps {
8
12
  /**
9
13
  * The element that triggers the tooltip on hover or focus.
10
14
  * Must be a single focusable element that forwards refs.
11
15
  */
12
16
  readonly children: ReactElement;
13
- /** When true, the tooltip is never shown. */
14
- readonly isDisabled?: boolean;
15
17
  }
16
- export declare function Tooltip({ content, placement, children, isDisabled, }: TooltipProps): ReactElement;
18
+ export interface TooltipContentProps {
19
+ /** Tooltip content. Keep it brief — use a Popover for rich content. */
20
+ readonly children: ReactNode;
21
+ /** Optional additional class name. */
22
+ readonly className?: string;
23
+ }
24
+ export declare function Tooltip({ children, placement, isDisabled, }: TooltipProps): ReactElement;
25
+ export declare function TooltipTrigger({ children }: TooltipTriggerProps): ReactElement;
26
+ export declare function TooltipContent({ children, className }: TooltipContentProps): ReactElement | null;
17
27
  //# sourceMappingURL=tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAMd,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAA;AAEf,MAAM,WAAW,YAAY;IAC3B,uEAAuE;IACvE,QAAQ,CAAC,OAAO,E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gB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,YAAY,CAc9E;AAID,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CAiBhG"}
package/dist/index.d.ts CHANGED
@@ -17,12 +17,16 @@ export * from "./components/button";
17
17
  export * from "./components/link";
18
18
  export * from "./components/button-group";
19
19
  export * from "./components/checkbox";
20
+ export * from "./components/combobox";
21
+ export * from "./components/radio-group";
20
22
  export * from "./components/dialog";
21
23
  export * from "./components/disclosure-triangle";
22
24
  export * from "./components/divider";
23
25
  export * from "./components/heading";
24
26
  export * from "./components/icon-button";
25
27
  export * from "./components/icon-label";
28
+ export * from "./components/skeleton";
29
+ export * from "./components/tabs";
26
30
  export * from "./components/spinner";
27
31
  export * from "./components/menu";
28
32
  export * from "./components/popover";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kCAAkC,CAAA;AAChD,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,C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AA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA"}
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE__ox0_hooks_ab75bf8c__ from "@ox0/hooks";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__ from "@floating-ui/react";
4
5
  import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__ from "react-dom";
5
6
  import * as __WEBPACK_EXTERNAL_MODULE__ox0_i18n_ad8e896a__ from "@ox0/i18n";
6
- import * as __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__ from "@floating-ui/react";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE__ox0_tokens_b8bc2fee__ from "@ox0/tokens";
8
8
  import "@ox0/tokens/styles.css";
9
9
  var __webpack_modules__ = {
@@ -196,6 +196,39 @@ var __webpack_modules__ = {
196
196
  };
197
197
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
198
198
  },
199
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/combobox.module.css": function(module, __webpack_exports__, __webpack_require__) {
200
+ __webpack_require__.d(__webpack_exports__, {
201
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
202
+ });
203
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
204
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
205
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
206
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
207
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
208
+ ___CSS_LOADER_EXPORT___.push([
209
+ module.id,
210
+ ".root-WkZ_BN{gap:var(--ox0-space-xs);display:grid}.label-UcLArk{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-sm);font-weight:var(--ox0-font-weight-medium)}.inputWrap-v2pqb1{display:grid;position:relative}.input-n3GGKy{background:var(--ox0-color-surface);border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-sm);color:var(--ox0-color-foreground);font:inherit;font-size:var(--ox0-font-size-md);min-height:34px;padding:0 2rem 0 var(--ox0-space-md);transition:border-color var(--ox0-duration-fast)var(--ox0-ease-crisp),box-shadow var(--ox0-duration-fast)var(--ox0-ease-crisp);width:100%}.input-n3GGKy:hover:not(:disabled){border-color:var(--ox0-color-border-strong)}.input-n3GGKy:focus{outline:none}.input-n3GGKy.focusVisible-adjirQ{border-color:var(--ox0-color-accent);box-shadow:0 0 0 3px var(--ox0-color-focus-ring)}.input-n3GGKy:disabled{background:var(--ox0-color-canvas);color:var(--ox0-color-disabled);cursor:not-allowed}.input-n3GGKy.invalid-cBG4Kz{border-color:var(--ox0-color-danger)}.input-n3GGKy.invalid-cBG4Kz.focusVisible-adjirQ{box-shadow:0 0 0 3px var(--ox0-color-danger-subtle)}.chevron-BCt1lB{color:var(--ox0-color-muted);pointer-events:none;inset-inline-end:var(--ox0-space-sm);align-items:center;font-size:.65rem;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.listbox-G59YSv{background:var(--ox0-color-surface-raised);border:1px solid var(--ox0-color-border);border-radius:var(--ox0-radius-md);box-shadow:var(--ox0-shadow-popover);max-height:280px;padding:var(--ox0-space-2xs);z-index:var(--ox0-z-popover);overflow-y:auto}.option-Zb5fX3{border-radius:var(--ox0-radius-sm);cursor:pointer;font-size:var(--ox0-font-size-md);padding:var(--ox0-space-xs)var(--ox0-space-sm);transition:background var(--ox0-duration-fast)var(--ox0-ease-soft)}.option-Zb5fX3.active-D5aE2E{background:var(--ox0-color-surface-sunken)}.option-Zb5fX3.selected-dfISZ1{color:var(--ox0-color-accent);font-weight:var(--ox0-font-weight-medium)}.option-Zb5fX3.optionDisabled-BoCvVt{cursor:not-allowed;opacity:.45}.empty-VXSKma{color:var(--ox0-color-text-secondary);font-size:var(--ox0-font-size-sm);padding:var(--ox0-space-sm)var(--ox0-space-md);text-align:center}.description-dBfgML{color:var(--ox0-color-muted);font-size:var(--ox0-font-size-sm)}.error-EPBoXs{color:var(--ox0-color-danger-text);font-size:var(--ox0-font-size-sm)}",
211
+ ""
212
+ ]);
213
+ ___CSS_LOADER_EXPORT___.locals = {
214
+ root: "root-WkZ_BN",
215
+ label: "label-UcLArk",
216
+ inputWrap: "inputWrap-v2pqb1",
217
+ input: "input-n3GGKy",
218
+ focusVisible: "focusVisible-adjirQ",
219
+ invalid: "invalid-cBG4Kz",
220
+ chevron: "chevron-BCt1lB",
221
+ listbox: "listbox-G59YSv",
222
+ option: "option-Zb5fX3",
223
+ active: "active-D5aE2E",
224
+ selected: "selected-dfISZ1",
225
+ optionDisabled: "optionDisabled-BoCvVt",
226
+ empty: "empty-VXSKma",
227
+ description: "description-dBfgML",
228
+ error: "error-EPBoXs"
229
+ };
230
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
231
+ },
199
232
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/dialog.module.css": function(module, __webpack_exports__, __webpack_require__) {
200
233
  __webpack_require__.d(__webpack_exports__, {
201
234
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -361,6 +394,36 @@ var __webpack_modules__ = {
361
394
  };
362
395
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
363
396
  },
397
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/radio-group.module.css": function(module, __webpack_exports__, __webpack_require__) {
398
+ __webpack_require__.d(__webpack_exports__, {
399
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
400
+ });
401
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
402
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
403
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
404
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
405
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
406
+ ___CSS_LOADER_EXPORT___.push([
407
+ module.id,
408
+ ".fieldset-PcJq3W{gap:var(--ox0-space-xs);min-width:0;font-size:var(--ox0-font-size-md);border:none;margin:0;padding:0;display:grid}.legend-PnQZ5W{float:left;width:100%;font-weight:var(--ox0-font-weight-medium);margin-bottom:var(--ox0-space-2xs);padding:0}.legend-PnQZ5W+*{clear:left}.description-W5sP_6{color:var(--ox0-color-text-secondary);font-size:var(--ox0-font-size-sm)}.group-xmytkW{gap:var(--ox0-space-xs);display:flex}.vertical-SqTqmx{flex-direction:column}.horizontal-MwinqT{flex-flow:wrap}.error-wzMJg3{color:var(--ox0-color-danger-text);font-size:var(--ox0-font-size-sm)}.item-edRiOv{display:grid}.itemLabel-DmKn4Z{cursor:pointer;align-items:center;gap:.5rem;display:inline-flex}.itemLabel-DmKn4Z.disabled-HSAcnJ{cursor:not-allowed;opacity:.5}.input-CSHwQ4[aria-invalid=true]{accent-color:var(--ox0-color-danger);outline:2px solid var(--ox0-color-danger);outline-offset:1px}.itemDescription-_wk94v{color:var(--ox0-color-text-secondary);font-size:var(--ox0-font-size-sm);display:block}",
409
+ ""
410
+ ]);
411
+ ___CSS_LOADER_EXPORT___.locals = {
412
+ fieldset: "fieldset-PcJq3W",
413
+ legend: "legend-PnQZ5W",
414
+ description: "description-W5sP_6",
415
+ group: "group-xmytkW",
416
+ vertical: "vertical-SqTqmx",
417
+ horizontal: "horizontal-MwinqT",
418
+ error: "error-wzMJg3",
419
+ item: "item-edRiOv",
420
+ itemLabel: "itemLabel-DmKn4Z",
421
+ disabled: "disabled-HSAcnJ",
422
+ input: "input-CSHwQ4",
423
+ itemDescription: "itemDescription-_wk94v"
424
+ };
425
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
426
+ },
364
427
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/select.module.css": function(module, __webpack_exports__, __webpack_require__) {
365
428
  __webpack_require__.d(__webpack_exports__, {
366
429
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -386,6 +449,29 @@ var __webpack_modules__ = {
386
449
  };
387
450
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
388
451
  },
452
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/skeleton.module.css": function(module, __webpack_exports__, __webpack_require__) {
453
+ __webpack_require__.d(__webpack_exports__, {
454
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
455
+ });
456
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
457
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
458
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
459
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
460
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
461
+ ___CSS_LOADER_EXPORT___.push([
462
+ module.id,
463
+ '@keyframes shimmer-vkr9Mb{to{transform:translate(200%)}}.skeleton-sE7x9A{background:var(--ox0-color-surface-sunken);display:block;position:relative;overflow:hidden}.skeleton-sE7x9A:after{content:"";background:linear-gradient(105deg,transparent 0%,color-mix(in srgb,var(--ox0-color-foreground)7%,transparent)50%,transparent 100%);animation:2.2s ease-in-out infinite shimmer-vkr9Mb;position:absolute;inset:0;transform:translate(-100%)}@media (prefers-reduced-motion:reduce){.skeleton-sE7x9A:after{display:none}}.rect-DRfip9{border-radius:var(--ox0-radius-sm);width:100%;height:1rem}.text-GgDzbd{border-radius:999px;width:100%;height:1em}.circle-STpTrs{border-radius:50%;width:2.5rem;height:2.5rem}',
464
+ ""
465
+ ]);
466
+ ___CSS_LOADER_EXPORT___.locals = {
467
+ skeleton: "skeleton-sE7x9A",
468
+ shimmer: "shimmer-vkr9Mb",
469
+ rect: "rect-DRfip9",
470
+ text: "text-GgDzbd",
471
+ circle: "circle-STpTrs"
472
+ };
473
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
474
+ },
389
475
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/spinner.module.css": function(module, __webpack_exports__, __webpack_require__) {
390
476
  __webpack_require__.d(__webpack_exports__, {
391
477
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -442,6 +528,30 @@ var __webpack_modules__ = {
442
528
  };
443
529
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
444
530
  },
531
+ "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/tabs.module.css": function(module, __webpack_exports__, __webpack_require__) {
532
+ __webpack_require__.d(__webpack_exports__, {
533
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
534
+ });
535
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
536
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
537
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/api.js");
538
+ var _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
539
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_2_19_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
540
+ ___CSS_LOADER_EXPORT___.push([
541
+ module.id,
542
+ ".tablist-TRhOvu{gap:var(--ox0-space-2xs);flex-wrap:wrap;display:flex}.line-dtz4lC{border-bottom:1px solid var(--ox0-color-border);gap:0}.pill-puc9Dn{background:var(--ox0-color-surface-sunken);border-radius:var(--ox0-radius-md);padding:var(--ox0-space-2xs)}.tab-yB6vyd{border-radius:var(--ox0-radius-sm);color:var(--ox0-color-text-secondary);cursor:pointer;font:inherit;font-size:var(--ox0-font-size-sm);font-weight:var(--ox0-font-weight-medium);padding:var(--ox0-space-xs)var(--ox0-space-sm);transition:color var(--ox0-duration-fast)var(--ox0-ease-soft),background var(--ox0-duration-fast)var(--ox0-ease-soft);white-space:nowrap;background:0 0;border:none}.tab-yB6vyd:hover:not([disabled]){color:var(--ox0-color-foreground)}.tab-yB6vyd:focus-visible{outline:2px solid var(--ox0-color-focus-ring);outline-offset:-1px}.tab-yB6vyd[disabled]{cursor:not-allowed;opacity:.45}.line-dtz4lC .tab-yB6vyd{border-radius:var(--ox0-radius-sm)var(--ox0-radius-sm)0 0;border-bottom:2px solid #0000;margin-bottom:-1px}.line-dtz4lC .tab-yB6vyd.selected-Ivg5kD{border-bottom-color:var(--ox0-color-accent);color:var(--ox0-color-foreground)}.pill-puc9Dn .tab-yB6vyd.selected-Ivg5kD{background:var(--ox0-color-surface-raised);box-shadow:var(--ox0-shadow-sm);color:var(--ox0-color-foreground)}.panel-X5WK0U{outline:none}.panel-X5WK0U:focus-visible{outline:2px solid var(--ox0-color-focus-ring);outline-offset:2px}",
543
+ ""
544
+ ]);
545
+ ___CSS_LOADER_EXPORT___.locals = {
546
+ tablist: "tablist-TRhOvu",
547
+ line: "line-dtz4lC",
548
+ pill: "pill-puc9Dn",
549
+ tab: "tab-yB6vyd",
550
+ selected: "selected-Ivg5kD",
551
+ panel: "panel-X5WK0U"
552
+ };
553
+ const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
554
+ },
445
555
  "../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/text-field.module.css": function(module, __webpack_exports__, __webpack_require__) {
446
556
  __webpack_require__.d(__webpack_exports__, {
447
557
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -2084,6 +2194,362 @@ const checkbox_Checkbox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.fo
2084
2194
  ]
2085
2195
  });
2086
2196
  });
2197
+ var combobox_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/combobox.module.css");
2198
+ var combobox_module_options = {};
2199
+ combobox_module_options.styleTagTransform = styleTagTransform_default();
2200
+ combobox_module_options.setAttributes = setAttributesWithoutAttributes_default();
2201
+ combobox_module_options.insert = insertBySelector_default().bind(null, "head");
2202
+ combobox_module_options.domAPI = styleDomAPI_default();
2203
+ combobox_module_options.insertStyleElement = insertStyleElement_default();
2204
+ injectStylesIntoStyleTag_default()(combobox_module.Z, combobox_module_options);
2205
+ const components_combobox_module = combobox_module.Z && combobox_module.Z.locals ? combobox_module.Z.locals : void 0;
2206
+ function labelFor(options, value) {
2207
+ return options.find((o)=>o.value === value)?.label ?? "";
2208
+ }
2209
+ function filterOptions(options, inputText) {
2210
+ const q = inputText.trim().toLowerCase();
2211
+ if (!q) return options;
2212
+ return options.filter((o)=>o.label.toLowerCase().includes(q));
2213
+ }
2214
+ const combobox_Combobox = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ label, ariaLabel, description, isDisabled, isInvalid, errorMessage, options, value: valueProp, defaultValue, placeholder, onChange, noOptionsMessage = "No options", id: idProp, ...inputProps }, forwardedRef) {
2215
+ if (!label && !ariaLabel) throw new Error("Combobox requires `label` or `ariaLabel`.");
2216
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
2217
+ const controlId = idProp ?? generatedId;
2218
+ const labelId = label ? `${controlId}-label` : void 0;
2219
+ const listboxId = `${controlId}-listbox`;
2220
+ const descriptionId = description ? `${controlId}-description` : void 0;
2221
+ const errorId = errorMessage ? `${controlId}-error` : void 0;
2222
+ const invalid = isInvalid || !!errorMessage;
2223
+ const isControlled = void 0 !== valueProp;
2224
+ const [uncontrolledValue, setUncontrolledValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue ?? "");
2225
+ const selectedValue = isControlled ? valueProp ?? "" : uncontrolledValue;
2226
+ const commit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
2227
+ if (!isControlled) setUncontrolledValue(next);
2228
+ onChange?.(next);
2229
+ }, [
2230
+ isControlled,
2231
+ onChange
2232
+ ]);
2233
+ const [inputText, setInputText] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(()=>labelFor(options, selectedValue));
2234
+ const prevSelectedRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(selectedValue);
2235
+ if (prevSelectedRef.current !== selectedValue) {
2236
+ prevSelectedRef.current = selectedValue;
2237
+ const next = labelFor(options, selectedValue);
2238
+ if (next !== inputText) setInputText(next);
2239
+ }
2240
+ const filteredOptions = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>filterOptions(options, inputText), [
2241
+ options,
2242
+ inputText
2243
+ ]);
2244
+ const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
2245
+ const [activeIndex, setActiveIndex] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null);
2246
+ const optionRefs = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
2247
+ const { refs, floatingStyles, context } = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useFloating)({
2248
+ open: isOpen,
2249
+ onOpenChange: setIsOpen,
2250
+ middleware: [
2251
+ (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.flip)({
2252
+ padding: 8
2253
+ }),
2254
+ (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.size)({
2255
+ apply ({ rects, elements }) {
2256
+ Object.assign(elements.floating.style, {
2257
+ width: `${rects.reference.width}px`
2258
+ });
2259
+ },
2260
+ padding: 8
2261
+ })
2262
+ ],
2263
+ whileElementsMounted: __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.autoUpdate
2264
+ });
2265
+ const listNav = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useListNavigation)(context, {
2266
+ listRef: optionRefs,
2267
+ activeIndex,
2268
+ onNavigate: setActiveIndex,
2269
+ virtual: true,
2270
+ loop: true
2271
+ });
2272
+ const dismiss = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useDismiss)(context);
2273
+ const role = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useRole)(context, {
2274
+ role: "combobox"
2275
+ });
2276
+ const { getReferenceProps, getFloatingProps, getItemProps } = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useInteractions)([
2277
+ listNav,
2278
+ dismiss,
2279
+ role
2280
+ ]);
2281
+ function selectOption(option) {
2282
+ commit(option.value);
2283
+ setInputText(option.label);
2284
+ setIsOpen(false);
2285
+ setActiveIndex(null);
2286
+ }
2287
+ function handleInputChange(e) {
2288
+ setInputText(e.target.value);
2289
+ setIsOpen(true);
2290
+ setActiveIndex(null);
2291
+ }
2292
+ function handleKeyDown(e) {
2293
+ if ("Enter" === e.key) {
2294
+ if (null !== activeIndex && filteredOptions[activeIndex]) {
2295
+ const opt = filteredOptions[activeIndex];
2296
+ if (!opt.disabled) selectOption(opt);
2297
+ }
2298
+ e.preventDefault();
2299
+ } else if ("Escape" === e.key) {
2300
+ setInputText(labelFor(options, selectedValue));
2301
+ setIsOpen(false);
2302
+ setActiveIndex(null);
2303
+ } else if ("Tab" === e.key) {
2304
+ if (isOpen && null !== activeIndex && filteredOptions[activeIndex]) {
2305
+ const opt = filteredOptions[activeIndex];
2306
+ if (!opt.disabled) selectOption(opt);
2307
+ } else setIsOpen(false);
2308
+ } else if (("ArrowDown" === e.key || "ArrowUp" === e.key) && !isOpen) setIsOpen(true);
2309
+ }
2310
+ function handleBlur() {
2311
+ const matched = options.find((o)=>o.label.toLowerCase() === inputText.trim().toLowerCase());
2312
+ if (matched && !matched.disabled) {
2313
+ commit(matched.value);
2314
+ setInputText(matched.label);
2315
+ } else setInputText(labelFor(options, selectedValue));
2316
+ }
2317
+ const [isFocusVisible, setIsFocusVisible] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
2318
+ const pointerDown = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(false);
2319
+ const activeDescendant = null !== activeIndex && filteredOptions[activeIndex] ? `${listboxId}-${filteredOptions[activeIndex].value}` : void 0;
2320
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
2321
+ className: components_combobox_module.root,
2322
+ children: [
2323
+ label ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", {
2324
+ className: components_combobox_module.label,
2325
+ htmlFor: controlId,
2326
+ id: labelId,
2327
+ children: label
2328
+ }) : null,
2329
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
2330
+ className: components_combobox_module.inputWrap,
2331
+ children: [
2332
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
2333
+ ...inputProps,
2334
+ ref: (node)=>{
2335
+ refs.setReference(node);
2336
+ if ("function" == typeof forwardedRef) forwardedRef(node);
2337
+ else if (forwardedRef) forwardedRef.current = node;
2338
+ },
2339
+ ...getReferenceProps({
2340
+ id: controlId,
2341
+ "aria-describedby": [
2342
+ descriptionId,
2343
+ errorId
2344
+ ].filter(Boolean).join(" ") || void 0,
2345
+ "aria-invalid": invalid || void 0,
2346
+ "aria-activedescendant": activeDescendant,
2347
+ "aria-controls": listboxId,
2348
+ autoComplete: "off",
2349
+ className: [
2350
+ components_combobox_module.input,
2351
+ invalid ? components_combobox_module.invalid : null,
2352
+ isFocusVisible ? components_combobox_module.focusVisible : null
2353
+ ].filter(Boolean).join(" "),
2354
+ disabled: isDisabled,
2355
+ placeholder,
2356
+ value: inputText,
2357
+ onChange: handleInputChange,
2358
+ onKeyDown: handleKeyDown,
2359
+ onBlur: handleBlur,
2360
+ onPointerDown: ()=>{
2361
+ pointerDown.current = true;
2362
+ },
2363
+ onFocus: ()=>{
2364
+ if (!pointerDown.current) setIsFocusVisible(true);
2365
+ pointerDown.current = false;
2366
+ setIsOpen(true);
2367
+ },
2368
+ onBlurCapture: ()=>setIsFocusVisible(false)
2369
+ }),
2370
+ "aria-label": ariaLabel
2371
+ }),
2372
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2373
+ "aria-hidden": true,
2374
+ className: components_combobox_module.chevron,
2375
+ children: "▾"
2376
+ })
2377
+ ]
2378
+ }),
2379
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2380
+ className: components_combobox_module.description,
2381
+ id: descriptionId,
2382
+ children: description
2383
+ }) : null,
2384
+ errorMessage ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2385
+ className: components_combobox_module.error,
2386
+ id: errorId,
2387
+ children: errorMessage
2388
+ }) : null,
2389
+ isOpen && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingPortal, {
2390
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2391
+ ref: refs.setFloating,
2392
+ style: floatingStyles,
2393
+ ...getFloatingProps({
2394
+ id: listboxId,
2395
+ "aria-label": ariaLabel,
2396
+ "aria-labelledby": labelId,
2397
+ className: components_combobox_module.listbox,
2398
+ role: "listbox"
2399
+ }),
2400
+ children: 0 === filteredOptions.length ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2401
+ className: components_combobox_module.empty,
2402
+ children: noOptionsMessage
2403
+ }) : filteredOptions.map((option, index)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2404
+ ref: (node)=>{
2405
+ optionRefs.current[index] = node;
2406
+ },
2407
+ ...getItemProps({
2408
+ id: `${listboxId}-${option.value}`,
2409
+ role: "option",
2410
+ "aria-selected": option.value === selectedValue,
2411
+ "aria-disabled": option.disabled,
2412
+ className: [
2413
+ components_combobox_module.option,
2414
+ index === activeIndex ? components_combobox_module.active : null,
2415
+ option.value === selectedValue ? components_combobox_module.selected : null,
2416
+ option.disabled ? components_combobox_module.optionDisabled : null
2417
+ ].filter(Boolean).join(" "),
2418
+ onClick: ()=>{
2419
+ if (!option.disabled) selectOption(option);
2420
+ }
2421
+ }),
2422
+ children: option.label
2423
+ }, option.value))
2424
+ })
2425
+ })
2426
+ ]
2427
+ });
2428
+ });
2429
+ var radio_group_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/radio-group.module.css");
2430
+ var radio_group_module_options = {};
2431
+ radio_group_module_options.styleTagTransform = styleTagTransform_default();
2432
+ radio_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
2433
+ radio_group_module_options.insert = insertBySelector_default().bind(null, "head");
2434
+ radio_group_module_options.domAPI = styleDomAPI_default();
2435
+ radio_group_module_options.insertStyleElement = insertStyleElement_default();
2436
+ injectStylesIntoStyleTag_default()(radio_group_module.Z, radio_group_module_options);
2437
+ const components_radio_group_module = radio_group_module.Z && radio_group_module.Z.locals ? radio_group_module.Z.locals : void 0;
2438
+ const RadioGroupContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
2439
+ function useRadioGroupContext() {
2440
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(RadioGroupContext);
2441
+ if (!ctx) throw new Error("<Radio> must be used inside <RadioGroup>");
2442
+ return ctx;
2443
+ }
2444
+ const radio_group_RadioGroup = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ label, description, isInvalid, isDisabled = false, errorMessage, value: valueProp, defaultValue, onChange, orientation = "vertical", children, id: idProp, ...props }, ref) {
2445
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
2446
+ const id = idProp ?? generatedId;
2447
+ const descriptionId = description ? `${id}-description` : void 0;
2448
+ const errorId = errorMessage ? `${id}-error` : void 0;
2449
+ const invalid = isInvalid || !!errorMessage;
2450
+ const isControlled = void 0 !== valueProp;
2451
+ const [uncontrolledValue, setUncontrolledValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue);
2452
+ const value = isControlled ? valueProp : uncontrolledValue;
2453
+ function handleChange(next) {
2454
+ if (!isControlled) setUncontrolledValue(next);
2455
+ onChange?.(next);
2456
+ }
2457
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
2458
+ name: id,
2459
+ value,
2460
+ onChange: handleChange,
2461
+ isDisabled,
2462
+ isInvalid: invalid,
2463
+ descriptionId,
2464
+ errorId
2465
+ }), [
2466
+ id,
2467
+ value,
2468
+ isDisabled,
2469
+ invalid,
2470
+ descriptionId,
2471
+ errorId
2472
+ ]);
2473
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(RadioGroupContext.Provider, {
2474
+ value: ctx,
2475
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("fieldset", {
2476
+ ...props,
2477
+ ref: ref,
2478
+ "aria-describedby": [
2479
+ descriptionId,
2480
+ errorId
2481
+ ].filter(Boolean).join(" ") || void 0,
2482
+ "aria-invalid": invalid || void 0,
2483
+ className: components_radio_group_module.fieldset,
2484
+ disabled: isDisabled,
2485
+ id: id,
2486
+ children: [
2487
+ label ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("legend", {
2488
+ className: components_radio_group_module.legend,
2489
+ children: label
2490
+ }) : null,
2491
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2492
+ className: components_radio_group_module.description,
2493
+ id: descriptionId,
2494
+ children: description
2495
+ }) : null,
2496
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2497
+ className: [
2498
+ components_radio_group_module.group,
2499
+ "horizontal" === orientation ? components_radio_group_module.horizontal : components_radio_group_module.vertical
2500
+ ].join(" "),
2501
+ children: children
2502
+ }),
2503
+ errorMessage ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2504
+ className: components_radio_group_module.error,
2505
+ id: errorId,
2506
+ children: errorMessage
2507
+ }) : null
2508
+ ]
2509
+ })
2510
+ });
2511
+ });
2512
+ const radio_group_Radio = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ value, label, description, isDisabled: isDisabledProp, id: idProp, children, ...props }, ref) {
2513
+ const ctx = useRadioGroupContext();
2514
+ const generatedId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
2515
+ const id = idProp ?? generatedId;
2516
+ const descriptionId = description ? `${id}-description` : void 0;
2517
+ const isDisabled = isDisabledProp ?? ctx.isDisabled;
2518
+ const labelContent = label ?? children;
2519
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2520
+ className: components_radio_group_module.item,
2521
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("label", {
2522
+ className: `${components_radio_group_module.itemLabel}${isDisabled ? ` ${components_radio_group_module.disabled}` : ""}`,
2523
+ children: [
2524
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
2525
+ ...props,
2526
+ ref: ref,
2527
+ "aria-describedby": descriptionId,
2528
+ checked: void 0 !== ctx.value ? ctx.value === value : void 0,
2529
+ className: components_radio_group_module.input,
2530
+ disabled: isDisabled,
2531
+ id: id,
2532
+ name: ctx.name,
2533
+ onChange: ()=>ctx.onChange(value),
2534
+ type: "radio",
2535
+ value: value
2536
+ }),
2537
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("span", {
2538
+ children: [
2539
+ labelContent ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2540
+ children: labelContent
2541
+ }) : null,
2542
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2543
+ className: components_radio_group_module.itemDescription,
2544
+ id: descriptionId,
2545
+ children: description
2546
+ }) : null
2547
+ ]
2548
+ })
2549
+ ]
2550
+ })
2551
+ });
2552
+ });
2087
2553
  var dialog_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/dialog.module.css");
2088
2554
  var dialog_module_options = {};
2089
2555
  dialog_module_options.styleTagTransform = styleTagTransform_default();
@@ -2317,7 +2783,13 @@ tooltip_module_options.domAPI = styleDomAPI_default();
2317
2783
  tooltip_module_options.insertStyleElement = insertStyleElement_default();
2318
2784
  injectStylesIntoStyleTag_default()(tooltip_module.Z, tooltip_module_options);
2319
2785
  const components_tooltip_module = tooltip_module.Z && tooltip_module.Z.locals ? tooltip_module.Z.locals : void 0;
2320
- function Tooltip({ content, placement = "top", children, isDisabled = false }) {
2786
+ const TooltipContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
2787
+ function useTooltipContext() {
2788
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(TooltipContext);
2789
+ if (!ctx) throw new Error("TooltipTrigger and TooltipContent must be used inside <Tooltip>");
2790
+ return ctx;
2791
+ }
2792
+ function Tooltip({ children, placement = "top", isDisabled = false }) {
2321
2793
  const [open, setOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
2322
2794
  const openTimerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
2323
2795
  const isHoveringRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(false);
@@ -2402,29 +2874,44 @@ function Tooltip({ content, placement = "top", children, isDisabled = false }) {
2402
2874
  tryClose();
2403
2875
  }
2404
2876
  });
2877
+ const value = {
2878
+ open,
2879
+ isDisabled,
2880
+ referenceRef: refs.setReference,
2881
+ floatingRef: refs.setFloating,
2882
+ floatingStyles,
2883
+ getReferenceProps: ()=>referenceProps,
2884
+ getFloatingProps
2885
+ };
2886
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TooltipContext.Provider, {
2887
+ value: value,
2888
+ children: children
2889
+ });
2890
+ }
2891
+ function TooltipTrigger({ children }) {
2892
+ const { isDisabled, referenceRef, getReferenceProps } = useTooltipContext();
2893
+ if (isDisabled) return children;
2405
2894
  const childRef = children.props.ref ?? null;
2406
2895
  const composedRef = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useMergeRefs)([
2407
- refs.setReference,
2896
+ referenceRef,
2408
2897
  childRef
2409
2898
  ]);
2410
- if (isDisabled) return children;
2411
- const trigger = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(children, {
2899
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(children, {
2412
2900
  ref: composedRef,
2413
- ...referenceProps
2901
+ ...getReferenceProps()
2414
2902
  });
2415
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
2416
- children: [
2417
- trigger,
2418
- open && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingPortal, {
2419
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2420
- ref: refs.setFloating,
2421
- style: floatingStyles,
2422
- className: components_tooltip_module.tooltip,
2423
- ...getFloatingProps(),
2424
- children: content
2425
- })
2426
- })
2427
- ]
2903
+ }
2904
+ function TooltipContent({ children, className }) {
2905
+ const { open, floatingRef, floatingStyles, getFloatingProps } = useTooltipContext();
2906
+ if (!open) return null;
2907
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingPortal, {
2908
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2909
+ ref: floatingRef,
2910
+ style: floatingStyles,
2911
+ className: null != className ? `${components_tooltip_module.tooltip} ${className}` : components_tooltip_module.tooltip,
2912
+ ...getFloatingProps(),
2913
+ children: children
2914
+ })
2428
2915
  });
2429
2916
  }
2430
2917
  const icon_button_iconSize = {
@@ -2433,19 +2920,25 @@ const icon_button_iconSize = {
2433
2920
  lg: 20
2434
2921
  };
2435
2922
  const icon_button_IconButton = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ icon: Icon, label, size = "md", tooltipPlacement, variant = "circle", ...props }, ref) {
2436
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Tooltip, {
2437
- content: label,
2923
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(Tooltip, {
2438
2924
  placement: tooltipPlacement,
2439
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(button_Button, {
2440
- ...props,
2441
- ref: ref,
2442
- "aria-label": label,
2443
- size: size,
2444
- variant: variant,
2445
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Icon, {
2446
- size: icon_button_iconSize[size]
2925
+ children: [
2926
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TooltipTrigger, {
2927
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(button_Button, {
2928
+ ...props,
2929
+ ref: ref,
2930
+ "aria-label": label,
2931
+ size: size,
2932
+ variant: variant,
2933
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Icon, {
2934
+ size: icon_button_iconSize[size]
2935
+ })
2936
+ })
2937
+ }),
2938
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TooltipContent, {
2939
+ children: label
2447
2940
  })
2448
- })
2941
+ ]
2449
2942
  });
2450
2943
  });
2451
2944
  const icon_label_IconLabel = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ icon: Icon, children }, ref) {
@@ -2464,6 +2957,155 @@ const icon_label_IconLabel = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__
2464
2957
  ]
2465
2958
  });
2466
2959
  });
2960
+ var skeleton_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/skeleton.module.css");
2961
+ var skeleton_module_options = {};
2962
+ skeleton_module_options.styleTagTransform = styleTagTransform_default();
2963
+ skeleton_module_options.setAttributes = setAttributesWithoutAttributes_default();
2964
+ skeleton_module_options.insert = insertBySelector_default().bind(null, "head");
2965
+ skeleton_module_options.domAPI = styleDomAPI_default();
2966
+ skeleton_module_options.insertStyleElement = insertStyleElement_default();
2967
+ injectStylesIntoStyleTag_default()(skeleton_module.Z, skeleton_module_options);
2968
+ const components_skeleton_module = skeleton_module.Z && skeleton_module.Z.locals ? skeleton_module.Z.locals : void 0;
2969
+ const shapeClass = {
2970
+ rect: components_skeleton_module.rect ?? "",
2971
+ text: components_skeleton_module.text ?? "",
2972
+ circle: components_skeleton_module.circle ?? ""
2973
+ };
2974
+ const skeleton_Skeleton = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)(function({ shape = "rect", width, height, style, "aria-label": ariaLabel = "Loading…", ...props }, ref) {
2975
+ const inlineStyle = {
2976
+ ...style,
2977
+ ...void 0 !== width ? {
2978
+ width: "number" == typeof width ? `${width}px` : width
2979
+ } : {},
2980
+ ...void 0 !== height ? {
2981
+ height: "number" == typeof height ? `${height}px` : height
2982
+ } : {}
2983
+ };
2984
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("output", {
2985
+ ref: ref,
2986
+ "aria-label": ariaLabel,
2987
+ className: [
2988
+ components_skeleton_module.skeleton,
2989
+ shapeClass[shape]
2990
+ ].join(" "),
2991
+ style: inlineStyle,
2992
+ ...props
2993
+ });
2994
+ });
2995
+ var tabs_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/tabs.module.css");
2996
+ var tabs_module_options = {};
2997
+ tabs_module_options.styleTagTransform = styleTagTransform_default();
2998
+ tabs_module_options.setAttributes = setAttributesWithoutAttributes_default();
2999
+ tabs_module_options.insert = insertBySelector_default().bind(null, "head");
3000
+ tabs_module_options.domAPI = styleDomAPI_default();
3001
+ tabs_module_options.insertStyleElement = insertStyleElement_default();
3002
+ injectStylesIntoStyleTag_default()(tabs_module.Z, tabs_module_options);
3003
+ const components_tabs_module = tabs_module.Z && tabs_module.Z.locals ? tabs_module.Z.locals : void 0;
3004
+ const TabsContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
3005
+ function useTabsContext() {
3006
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(TabsContext);
3007
+ if (!ctx) throw new Error("Tab / TabPanel must be used inside Tabs");
3008
+ return ctx;
3009
+ }
3010
+ function Tabs({ value: valueProp, defaultValue, onChange, children }) {
3011
+ const uid = (0, __WEBPACK_EXTERNAL_MODULE_react__.useId)();
3012
+ const isControlled = void 0 !== valueProp;
3013
+ const [uncontrolledValue, setUncontrolledValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue);
3014
+ const selectedValue = isControlled ? valueProp : uncontrolledValue;
3015
+ const onSelect = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
3016
+ if (!isControlled) setUncontrolledValue(next);
3017
+ onChange?.(next);
3018
+ }, [
3019
+ isControlled,
3020
+ onChange
3021
+ ]);
3022
+ const tabId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((value)=>`${uid}-tab-${value}`, [
3023
+ uid
3024
+ ]);
3025
+ const panelId = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((value)=>`${uid}-panel-${value}`, [
3026
+ uid
3027
+ ]);
3028
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
3029
+ selectedValue,
3030
+ onSelect,
3031
+ tabId,
3032
+ panelId
3033
+ }), [
3034
+ selectedValue,
3035
+ onSelect,
3036
+ tabId,
3037
+ panelId
3038
+ ]);
3039
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(TabsContext.Provider, {
3040
+ value: ctx,
3041
+ children: children
3042
+ });
3043
+ }
3044
+ function TabList({ variant = "line", "aria-label": ariaLabel, children }) {
3045
+ const listRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
3046
+ function handleKeyDown(e) {
3047
+ const tabs = Array.from(listRef.current?.querySelectorAll('[role="tab"]:not([disabled])') ?? []);
3048
+ if (0 === tabs.length) return;
3049
+ const active = document.activeElement;
3050
+ const index = tabs.findIndex((t)=>t === active);
3051
+ if (-1 === index) return;
3052
+ let next;
3053
+ if ("ArrowRight" === e.key) next = tabs[(index + 1) % tabs.length];
3054
+ else if ("ArrowLeft" === e.key) next = tabs[(index - 1 + tabs.length) % tabs.length];
3055
+ else if ("Home" === e.key) next = tabs[0];
3056
+ else {
3057
+ if ("End" !== e.key) return;
3058
+ next = tabs[tabs.length - 1];
3059
+ }
3060
+ e.preventDefault();
3061
+ next?.focus();
3062
+ next?.click();
3063
+ }
3064
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3065
+ ref: listRef,
3066
+ "aria-label": ariaLabel,
3067
+ className: [
3068
+ components_tabs_module.tablist,
3069
+ components_tabs_module[variant]
3070
+ ].join(" "),
3071
+ onKeyDown: handleKeyDown,
3072
+ role: "tablist",
3073
+ tabIndex: -1,
3074
+ children: children
3075
+ });
3076
+ }
3077
+ function Tab({ value, isDisabled, children }) {
3078
+ const { selectedValue, onSelect, tabId, panelId } = useTabsContext();
3079
+ const isSelected = selectedValue === value;
3080
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
3081
+ "aria-controls": panelId(value),
3082
+ "aria-selected": isSelected,
3083
+ className: [
3084
+ components_tabs_module.tab,
3085
+ isSelected ? components_tabs_module.selected : ""
3086
+ ].filter(Boolean).join(" "),
3087
+ disabled: isDisabled,
3088
+ id: tabId(value),
3089
+ onClick: ()=>onSelect(value),
3090
+ role: "tab",
3091
+ tabIndex: isSelected ? 0 : -1,
3092
+ type: "button",
3093
+ children: children
3094
+ });
3095
+ }
3096
+ function TabPanel({ value, children }) {
3097
+ const { selectedValue, tabId, panelId } = useTabsContext();
3098
+ const isSelected = selectedValue === value;
3099
+ if (!isSelected) return null;
3100
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3101
+ "aria-labelledby": tabId(value),
3102
+ className: components_tabs_module.panel,
3103
+ id: panelId(value),
3104
+ role: "tabpanel",
3105
+ tabIndex: 0,
3106
+ children: children
3107
+ });
3108
+ }
2467
3109
  var spinner_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/spinner.module.css");
2468
3110
  var spinner_module_options = {};
2469
3111
  spinner_module_options.styleTagTransform = styleTagTransform_default();
@@ -2900,14 +3542,23 @@ popover_module_options.domAPI = styleDomAPI_default();
2900
3542
  popover_module_options.insertStyleElement = insertStyleElement_default();
2901
3543
  injectStylesIntoStyleTag_default()(popover_module.Z, popover_module_options);
2902
3544
  const components_popover_module = popover_module.Z && popover_module.Z.locals ? popover_module.Z.locals : void 0;
2903
- function Popover({ content, placement = "bottom-start", children, isOpen: controlledOpen, onOpenChange }) {
3545
+ const PopoverContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
3546
+ function usePopoverContext() {
3547
+ const ctx = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(PopoverContext);
3548
+ if (!ctx) throw new Error("PopoverTrigger and PopoverContent must be used inside <Popover>");
3549
+ return ctx;
3550
+ }
3551
+ function Popover({ children, placement = "bottom-start", isOpen: controlledOpen, onOpenChange }) {
2904
3552
  const [internalOpen, setInternalOpen] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
2905
3553
  const isControlled = void 0 !== controlledOpen;
2906
3554
  const open = isControlled ? controlledOpen : internalOpen;
2907
- const handleOpenChange = (next)=>{
3555
+ const handleOpenChange = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
2908
3556
  if (!isControlled) setInternalOpen(next);
2909
3557
  onOpenChange?.(next);
2910
- };
3558
+ }, [
3559
+ isControlled,
3560
+ onOpenChange
3561
+ ]);
2911
3562
  const { refs, floatingStyles, context } = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useFloating)({
2912
3563
  open,
2913
3564
  onOpenChange: handleOpenChange,
@@ -2931,27 +3582,47 @@ function Popover({ content, placement = "bottom-start", children, isOpen: contro
2931
3582
  dismiss,
2932
3583
  role
2933
3584
  ]);
2934
- const trigger = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(children, {
2935
- ref: refs.setReference,
3585
+ const value = {
3586
+ open,
3587
+ context,
3588
+ referenceRef: refs.setReference,
3589
+ floatingRef: refs.setFloating,
3590
+ floatingStyles,
3591
+ getReferenceProps,
3592
+ getFloatingProps
3593
+ };
3594
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(PopoverContext.Provider, {
3595
+ value: value,
3596
+ children: children
3597
+ });
3598
+ }
3599
+ function PopoverTrigger({ children }) {
3600
+ const { referenceRef, getReferenceProps } = usePopoverContext();
3601
+ const childRef = children.props.ref ?? null;
3602
+ const composedRef = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useMergeRefs)([
3603
+ referenceRef,
3604
+ childRef
3605
+ ]);
3606
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cloneElement)(children, {
3607
+ ref: composedRef,
2936
3608
  ...getReferenceProps()
2937
3609
  });
2938
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
2939
- children: [
2940
- trigger,
2941
- open && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingPortal, {
2942
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingFocusManager, {
2943
- context: context,
2944
- modal: false,
2945
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2946
- ref: refs.setFloating,
2947
- style: floatingStyles,
2948
- className: components_popover_module.popover,
2949
- ...getFloatingProps(),
2950
- children: content
2951
- })
2952
- })
3610
+ }
3611
+ function PopoverContent({ children, className }) {
3612
+ const { open, context, floatingRef, floatingStyles, getFloatingProps } = usePopoverContext();
3613
+ if (!open) return null;
3614
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingPortal, {
3615
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingFocusManager, {
3616
+ context: context,
3617
+ modal: false,
3618
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3619
+ ref: floatingRef,
3620
+ style: floatingStyles,
3621
+ className: null != className ? `${components_popover_module.popover} ${className}` : components_popover_module.popover,
3622
+ ...getFloatingProps(),
3623
+ children: children
2953
3624
  })
2954
- ]
3625
+ })
2955
3626
  });
2956
3627
  }
2957
3628
  var toast_module = __webpack_require__("../../../../node_modules/.pnpm/@rsbuild+core@1.2.19/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!./src/components/toast.module.css");
@@ -3698,4 +4369,4 @@ function Ox0Provider({ children, colorScheme, density, locale, messages, navigat
3698
4369
  })
3699
4370
  });
3700
4371
  }
3701
- export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, button_Button as Button, button_group_ButtonGroup as ButtonGroup, caption_Caption as Caption, card_Card as Card, checkbox_Checkbox as Checkbox, code_Code as Code, code_block_CodeBlock as CodeBlock, Dialog, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, Menu, numeric_Numeric as Numeric, Ox0Provider, Popover, select_Select as Select, spinner_Spinner as Spinner, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, ToastProvider, Tooltip, createTextStyles, defaultUiMessages, useBorders, useFlexItem, useGridItem, usePlacement, useSizing, useSpacing, useSurface, useToast };
4372
+ export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, button_Button as Button, button_group_ButtonGroup as ButtonGroup, caption_Caption as Caption, card_Card as Card, checkbox_Checkbox as Checkbox, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, Dialog, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, Menu, numeric_Numeric as Numeric, Ox0Provider, Popover, PopoverContent, PopoverTrigger, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, select_Select as Select, skeleton_Skeleton as Skeleton, spinner_Spinner as Spinner, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, Tab, TabList, TabPanel, Tabs, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, createTextStyles, defaultUiMessages, useBorders, useFlexItem, useGridItem, usePlacement, useSizing, useSpacing, useSurface, useToast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ox0/ui",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@floating-ui/react": "^0.27.19",
20
- "@ox0/i18n": "0.3.0",
21
20
  "@ox0/hooks": "0.2.0",
21
+ "@ox0/i18n": "0.3.0",
22
22
  "@ox0/tokens": "0.3.0"
23
23
  },
24
24
  "peerDependencies": {