@kirana-ui/react 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/llms.txt +3216 -0
- package/package.json +124 -2
- package/skills/kirana-ui-primitives/SKILL.md +142 -0
- package/src/accordion.d.ts +26 -15
- package/src/accordion.js +12 -11
- package/src/accordion.js.map +1 -1
- package/src/agent.d.ts +1 -0
- package/src/agent.js +1 -0
- package/src/alert-dialog.d.ts +3 -2
- package/src/autocomplete.d.ts +3 -0
- package/src/autocomplete.js +1 -0
- package/src/autosize.d.ts +12 -0
- package/src/autosize.js +12 -0
- package/src/autosize.js.map +1 -0
- package/src/avatar.d.ts +12 -8
- package/src/avatar.js +19 -10
- package/src/avatar.js.map +1 -1
- package/src/button.d.ts +4 -2
- package/src/button.js +3 -3
- package/src/button.js.map +1 -1
- package/src/calendar.d.ts +65 -0
- package/src/calendar.js +89 -0
- package/src/calendar.js.map +1 -0
- package/src/carousel.d.ts +36 -0
- package/src/carousel.js +52 -0
- package/src/carousel.js.map +1 -0
- package/src/checkbox.d.ts +10 -7
- package/src/checkbox.js +19 -12
- package/src/checkbox.js.map +1 -1
- package/src/collapsible.d.ts +12 -8
- package/src/collapsible.js +8 -7
- package/src/collapsible.js.map +1 -1
- package/src/combobox.d.ts +119 -0
- package/src/combobox.js +177 -0
- package/src/combobox.js.map +1 -0
- package/src/command.d.ts +53 -0
- package/src/command.js +95 -0
- package/src/command.js.map +1 -0
- package/src/context-menu.d.ts +3 -0
- package/src/context-menu.js +1 -0
- package/src/date-field.d.ts +37 -0
- package/src/date-field.js +64 -0
- package/src/date-field.js.map +1 -0
- package/src/date-picker.d.ts +44 -0
- package/src/date-picker.js +62 -0
- package/src/date-picker.js.map +1 -0
- package/src/dialog.d.ts +54 -27
- package/src/dialog.js +23 -6
- package/src/dialog.js.map +1 -1
- package/src/direction.d.ts +1 -0
- package/src/direction.js +1 -1
- package/src/direction.js.map +1 -1
- package/src/drawer.d.ts +3 -0
- package/src/drawer.js +1 -0
- package/src/element.d.ts +12 -0
- package/src/element.js +20 -0
- package/src/element.js.map +1 -0
- package/src/field.d.ts +24 -16
- package/src/field.js +11 -9
- package/src/field.js.map +1 -1
- package/src/fieldset.d.ts +10 -5
- package/src/fieldset.js +4 -5
- package/src/fieldset.js.map +1 -1
- package/src/form.d.ts +5 -2
- package/src/form.js +6 -6
- package/src/form.js.map +1 -1
- package/src/hover-card.d.ts +16 -10
- package/src/hover-card.js +1 -1
- package/src/hover-card.js.map +1 -1
- package/src/hover-popup.d.ts +26 -12
- package/src/hover-popup.js +12 -12
- package/src/hover-popup.js.map +1 -1
- package/src/index.d.ts +37 -3
- package/src/index.js +26 -2
- package/src/input.d.ts +12 -0
- package/src/input.js +21 -0
- package/src/input.js.map +1 -0
- package/src/label.d.ts +8 -0
- package/src/label.js +14 -0
- package/src/label.js.map +1 -0
- package/src/listbox.d.ts +36 -0
- package/src/listbox.js +88 -0
- package/src/listbox.js.map +1 -0
- package/src/menu.d.ts +107 -0
- package/src/menu.js +206 -0
- package/src/menu.js.map +1 -0
- package/src/menubar-context.d.ts +4 -0
- package/src/menubar-context.js +7 -0
- package/src/menubar-context.js.map +1 -0
- package/src/menubar.d.ts +11 -0
- package/src/menubar.js +25 -0
- package/src/menubar.js.map +1 -0
- package/src/message-scroller.d.ts +24 -0
- package/src/message-scroller.js +35 -0
- package/src/message-scroller.js.map +1 -0
- package/src/meter.d.ts +18 -9
- package/src/meter.js +1 -1
- package/src/meter.js.map +1 -1
- package/src/navigation-menu.d.ts +58 -0
- package/src/navigation-menu.js +106 -0
- package/src/navigation-menu.js.map +1 -0
- package/src/number-field.d.ts +28 -0
- package/src/number-field.js +58 -0
- package/src/number-field.js.map +1 -0
- package/src/otp.d.ts +35 -0
- package/src/otp.js +64 -0
- package/src/otp.js.map +1 -0
- package/src/pagination.d.ts +37 -0
- package/src/pagination.js +50 -0
- package/src/pagination.js.map +1 -0
- package/src/popover.d.ts +32 -22
- package/src/popover.js +10 -14
- package/src/popover.js.map +1 -1
- package/src/progress.d.ts +18 -9
- package/src/progress.js +1 -1
- package/src/progress.js.map +1 -1
- package/src/qr-code.d.ts +21 -0
- package/src/qr-code.js +32 -0
- package/src/qr-code.js.map +1 -0
- package/src/radio-group.d.ts +17 -11
- package/src/radio-group.js +20 -22
- package/src/radio-group.js.map +1 -1
- package/src/resizable.d.ts +24 -0
- package/src/resizable.js +51 -0
- package/src/resizable.js.map +1 -0
- package/src/runtime.d.ts +114 -13
- package/src/runtime.js +205 -24
- package/src/runtime.js.map +1 -1
- package/src/scroll-area.d.ts +36 -0
- package/src/scroll-area.js +64 -0
- package/src/scroll-area.js.map +1 -0
- package/src/select.d.ts +79 -31
- package/src/select.js +86 -23
- package/src/select.js.map +1 -1
- package/src/separator.d.ts +4 -2
- package/src/separator.js +3 -3
- package/src/separator.js.map +1 -1
- package/src/slider.d.ts +35 -20
- package/src/slider.js +20 -19
- package/src/slider.js.map +1 -1
- package/src/switch.d.ts +10 -6
- package/src/switch.js +12 -9
- package/src/switch.js.map +1 -1
- package/src/tabs.d.ts +22 -14
- package/src/tabs.js +7 -8
- package/src/tabs.js.map +1 -1
- package/src/testing.d.ts +1 -0
- package/src/testing.js +1 -0
- package/src/toast.d.ts +68 -0
- package/src/toast.js +107 -0
- package/src/toast.js.map +1 -0
- package/src/toggle-group.d.ts +10 -0
- package/src/toggle-group.js +32 -0
- package/src/toggle-group.js.map +1 -0
- package/src/toggle.d.ts +5 -2
- package/src/toggle.js +15 -5
- package/src/toggle.js.map +1 -1
- package/src/toolbar-context.d.ts +7 -0
- package/src/toolbar-context.js +9 -0
- package/src/toolbar-context.js.map +1 -0
- package/src/toolbar.d.ts +35 -0
- package/src/toolbar.js +63 -0
- package/src/toolbar.js.map +1 -0
- package/src/tooltip.d.ts +16 -10
- package/src/tooltip.js +1 -1
- package/src/tooltip.js.map +1 -1
- package/src/use-render.d.ts +38 -0
- package/src/use-render.js +50 -0
- package/src/use-render.js.map +1 -0
- package/src/value-bar.d.ts +19 -11
- package/src/value-bar.js +8 -5
- package/src/value-bar.js.map +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { REF_IS_A_PROP, give, refOf } from "./element.js";
|
|
2
|
+
import { composeProps, mergeProps as mergeProps$1, stateAttributes } from "@kirana-ui/core";
|
|
3
|
+
import { cloneElement, createElement, isValidElement, useCallback } from "react";
|
|
4
|
+
// src/use-render.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Gives a plain element of one's own (a badge, a breadcrumb's link) the `render` prop a part
|
|
7
|
+
* takes, by a part's rule: `props` lie under the `render` element's own props, classes join,
|
|
8
|
+
* styles are merged property by property, both handlers of an event run (`props`' first), the
|
|
9
|
+
* `render` element's own children are drawn when it has any, and every ref gets the element.
|
|
10
|
+
*/
|
|
11
|
+
function useRender({ render, defaultTagName = "div", props, state, ref }) {
|
|
12
|
+
const asked = isValidElement(render) ? render : void 0;
|
|
13
|
+
const theirs = asked ? refOf(asked) : void 0;
|
|
14
|
+
const { ref: given, ...own } = props ?? {};
|
|
15
|
+
const attach = useCallback((element) => {
|
|
16
|
+
give(ref, element);
|
|
17
|
+
give(given, element);
|
|
18
|
+
give(theirs, element);
|
|
19
|
+
}, [
|
|
20
|
+
ref,
|
|
21
|
+
given,
|
|
22
|
+
theirs
|
|
23
|
+
]);
|
|
24
|
+
let merged = state ? composeProps(stateAttributes(state), own) : own;
|
|
25
|
+
if (asked) {
|
|
26
|
+
const { ref: _ref, ...element } = REF_IS_A_PROP ? asked.props : { ...asked.props };
|
|
27
|
+
merged = composeProps(merged, element);
|
|
28
|
+
}
|
|
29
|
+
const drawn = ref || given ? {
|
|
30
|
+
...merged,
|
|
31
|
+
ref: attach
|
|
32
|
+
} : merged;
|
|
33
|
+
if (asked) return cloneElement(asked, drawn);
|
|
34
|
+
if (typeof render === "function") return render(drawn, state);
|
|
35
|
+
return createElement(defaultTagName, drawn);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Several sets of props as one, for a component's own props and its caller's: a later set
|
|
39
|
+
* wins an attribute it gives (one it leaves `undefined` stays), classes join, styles are
|
|
40
|
+
* merged property by property, and the handlers of an event run in order, until one calls
|
|
41
|
+
* `event.preventKiranaHandler()`, which stops those after it.
|
|
42
|
+
*/
|
|
43
|
+
function mergeProps(...props) {
|
|
44
|
+
let merged = {};
|
|
45
|
+
for (const each of props) if (each) merged = mergeProps$1(merged, each);
|
|
46
|
+
return merged;
|
|
47
|
+
}
|
|
48
|
+
export { mergeProps, useRender };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=use-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-render.js","names":["layer"],"sources":["../../../../packages/react/src/use-render.tsx"],"sourcesContent":["import { composeProps, mergeProps as layer, stateAttributes } from \"@kirana-ui/core\"\nimport { cloneElement, createElement, isValidElement, useCallback } from \"react\"\nimport type { ReactElement, Ref } from \"react\"\n\nimport { REF_IS_A_PROP, give, refOf } from \"./element.ts\"\nimport type { RenderProp } from \"./runtime.tsx\"\n\nexport type { RenderProp } from \"./runtime.tsx\"\n\n/** What `useRender` takes. */\nexport interface UseRenderOptions<State extends Record<string, unknown>> {\n /**\n * What its caller asked the element to be drawn as: an element, whose own props lie over\n * `props`, or a function given the props and the state.\n */\n render?: RenderProp<State> | undefined\n /** The element drawn when there is no `render`: a `div` unless said. */\n defaultTagName?: string | undefined\n /** The element's props: the component's own and its caller's, already merged (`mergeProps`). */\n props?: Record<string, unknown> | undefined\n /**\n * The component's state. A function `render` is given it, and it is written on the element\n * as `data-*` attributes, under `props`: `true` is present and empty, `false`, `null` and\n * `undefined` are absent, anything else is its text, and `isActive` is `data-is-active`.\n */\n state?: State | undefined\n /** A ref of the component's own, given the element beside `props.ref` and the `render` element's. */\n ref?: Ref<HTMLElement> | undefined\n}\n\n/**\n * Gives a plain element of one's own (a badge, a breadcrumb's link) the `render` prop a part\n * takes, by a part's rule: `props` lie under the `render` element's own props, classes join,\n * styles are merged property by property, both handlers of an event run (`props`' first), the\n * `render` element's own children are drawn when it has any, and every ref gets the element.\n */\nexport function useRender<State extends Record<string, unknown> = Record<string, never>>({\n render,\n defaultTagName = \"div\",\n props,\n state,\n ref,\n}: UseRenderOptions<State>): ReactElement {\n const asked = isValidElement(render) ? render : undefined\n const theirs = asked ? refOf(asked) : undefined\n const { ref: given, ...own } = (props ?? {}) as { ref?: Ref<HTMLElement> }\n const attach = useCallback(\n (element: HTMLElement | null) => {\n give(ref, element)\n give(given, element)\n give(theirs, element)\n },\n [ref, given, theirs]\n )\n let merged: Record<string, unknown> = state ? composeProps(stateAttributes(state), own) : own\n if (asked) {\n // React 19 keeps an element's ref among its props: it is given the element above. Before,\n // the props have none, and reading it there warns.\n const { ref: _ref, ...element } = REF_IS_A_PROP ? asked.props : { ...asked.props }\n merged = composeProps(merged, element)\n }\n // Only where there is a ref to give: a component that takes none would be handed one.\n const drawn = ref || given ? { ...merged, ref: attach } : merged\n if (asked) return cloneElement(asked, drawn)\n if (typeof render === \"function\") return render(drawn, state as State)\n return createElement(defaultTagName, drawn)\n}\n\n/**\n * Several sets of props as one, for a component's own props and its caller's: a later set\n * wins an attribute it gives (one it leaves `undefined` stays), classes join, styles are\n * merged property by property, and the handlers of an event run in order, until one calls\n * `event.preventKiranaHandler()`, which stops those after it.\n */\nexport function mergeProps(\n ...props: readonly (Record<string, unknown> | undefined)[]\n): Record<string, unknown> {\n let merged: Record<string, unknown> = {}\n for (const each of props) if (each) merged = layer(merged, each)\n return merged\n}\n"],"mappings":";;;;;;;;;;AAoCA,SAAgB,UAAyE,EACvF,QACA,iBAAiB,OACjB,OACA,OACA,OACwC;CACxC,MAAM,QAAQ,eAAe,MAAM,IAAI,SAAS,KAAA;CAChD,MAAM,SAAS,QAAQ,MAAM,KAAK,IAAI,KAAA;CACtC,MAAM,EAAE,KAAK,OAAO,GAAG,QAAS,SAAS,CAAC;CAC1C,MAAM,SAAS,aACZ,YAAgC;EAC/B,KAAK,KAAK,OAAO;EACjB,KAAK,OAAO,OAAO;EACnB,KAAK,QAAQ,OAAO;CACtB,GACA;EAAC;EAAK;EAAO;CAAM,CACrB;CACA,IAAI,SAAkC,QAAQ,aAAa,gBAAgB,KAAK,GAAG,GAAG,IAAI;CAC1F,IAAI,OAAO;EAGT,MAAM,EAAE,KAAK,MAAM,GAAG,YAAY,gBAAgB,MAAM,QAAQ,EAAE,GAAG,MAAM,MAAM;EACjF,SAAS,aAAa,QAAQ,OAAO;CACvC;CAEA,MAAM,QAAQ,OAAO,QAAQ;EAAE,GAAG;EAAQ,KAAK;CAAO,IAAI;CAC1D,IAAI,OAAO,OAAO,aAAa,OAAO,KAAK;CAC3C,IAAI,OAAO,WAAW,YAAY,OAAO,OAAO,OAAO,KAAc;CACrE,OAAO,cAAc,gBAAgB,KAAK;AAC5C;;;;;;;AAQA,SAAgB,WACd,GAAG,OACsB;CACzB,IAAI,SAAkC,CAAC;CACvC,KAAK,MAAM,QAAQ,OAAO,IAAI,MAAM,SAASA,aAAM,QAAQ,IAAI;CAC/D,OAAO;AACT"}
|
package/src/value-bar.d.ts
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import { PartComponentProps } from "./runtime.js";
|
|
2
1
|
import { ReadonlySignal } from "@kirana-ui/core";
|
|
3
2
|
import { ReactElement, ReactNode } from "react";
|
|
4
3
|
import { ValueBar, ValueBarProps } from "@kirana-ui/core/progress";
|
|
4
|
+
/** What a value bar's written value takes of its own: what to write in its place. */
|
|
5
|
+
export interface ValueOptions {
|
|
6
|
+
/** Draws something else than the written value: it is given the text, `undefined` while there is none. */
|
|
7
|
+
children?: (text: string | undefined) => ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/** The props of a value bar's parts, as their component's entry types them. */
|
|
10
|
+
export interface ValueBarPartProps {
|
|
11
|
+
Root: object;
|
|
12
|
+
Track: object;
|
|
13
|
+
Indicator: object;
|
|
14
|
+
Value: ValueOptions;
|
|
15
|
+
Label: object;
|
|
16
|
+
}
|
|
5
17
|
/** The parts of a value drawn as a filled track: a progress bar's, a meter's. */
|
|
6
|
-
export declare function valueBar<Props extends ValueBarProps>(name: string, create: (props: ReadonlySignal<Props>) => ValueBar): {
|
|
7
|
-
Root: (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Value: ({ children, ...props }: Omit<PartComponentProps, "children"> & {
|
|
13
|
-
children?: (text: string | undefined) => ReactNode;
|
|
14
|
-
}) => ReactElement;
|
|
15
|
-
Label: (props: PartComponentProps) => ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
18
|
+
export declare function valueBar<Props extends ValueBarProps, Typed extends ValueBarPartProps>(name: string, create: (props: ReadonlySignal<Props>) => ValueBar): {
|
|
19
|
+
Root: (props: Typed["Root"]) => ReactElement;
|
|
20
|
+
Track: (props: Typed["Track"]) => ReactElement;
|
|
21
|
+
Indicator: (props: Typed["Indicator"]) => ReactElement;
|
|
22
|
+
Value: (props: Typed["Value"]) => ReactElement;
|
|
23
|
+
Label: (props: Typed["Label"]) => ReactElement;
|
|
16
24
|
};
|
|
17
25
|
//# sourceMappingURL=value-bar.d.ts.map
|
package/src/value-bar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useController, usePart, useSignal } from "./runtime.js";
|
|
1
|
+
import { PartElement, parts, useController, usePart, useSignal } from "./runtime.js";
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
// src/value-bar.tsx
|
|
@@ -22,10 +22,13 @@ function valueBar(name, create) {
|
|
|
22
22
|
});
|
|
23
23
|
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
24
24
|
value: controller,
|
|
25
|
-
children: /* @__PURE__ */ jsx(
|
|
25
|
+
children: /* @__PURE__ */ jsx(PartElement, {
|
|
26
|
+
of: controller.root,
|
|
27
|
+
tag: "div",
|
|
28
|
+
...rest
|
|
29
|
+
})
|
|
26
30
|
});
|
|
27
31
|
}
|
|
28
|
-
const RootElement = (props) => usePart(use("Root").root, "div", props);
|
|
29
32
|
const Track = (props) => usePart(use("Track").track, "div", props);
|
|
30
33
|
const Indicator = (props) => usePart(use("Indicator").indicator, "div", props);
|
|
31
34
|
const Label = (props) => usePart(use("Label").label, "span", props);
|
|
@@ -38,13 +41,13 @@ function valueBar(name, create) {
|
|
|
38
41
|
children: children ? children(text) : text
|
|
39
42
|
});
|
|
40
43
|
}
|
|
41
|
-
return {
|
|
44
|
+
return parts(name, {
|
|
42
45
|
Root,
|
|
43
46
|
Track,
|
|
44
47
|
Indicator,
|
|
45
48
|
Value,
|
|
46
49
|
Label
|
|
47
|
-
};
|
|
50
|
+
});
|
|
48
51
|
}
|
|
49
52
|
export { valueBar };
|
|
50
53
|
|
package/src/value-bar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-bar.js","names":[],"sources":["../../../../packages/react/src/value-bar.tsx"],"sourcesContent":["import type { ReadonlySignal } from \"@kirana-ui/core\"\nimport type { ValueBar, ValueBarProps } from \"@kirana-ui/core/progress\"\nimport { createContext, useContext } from \"react\"\nimport type { ReactElement, ReactNode } from \"react\"\n\nimport { useController, usePart, useSignal } from \"./runtime.tsx\"\nimport type { PartComponentProps } from \"./runtime.tsx\"\n\n/** The parts of a value drawn as a filled track: a progress bar's, a meter's. */\nexport function valueBar<Props extends ValueBarProps>(\n name: string,\n create: (props: ReadonlySignal<Props>) => ValueBar\n) {\n const Context = createContext<ValueBar | null>(null)\n\n function use(part: string): ValueBar {\n const controller = useContext(Context)\n if (!controller) throw new Error(`<${name}.${part}> must be inside <${name}.Root>`)\n return controller\n }\n\n type RootProps = Omit<
|
|
1
|
+
{"version":3,"file":"value-bar.js","names":[],"sources":["../../../../packages/react/src/value-bar.tsx"],"sourcesContent":["import type { PartState, ReadonlySignal } from \"@kirana-ui/core\"\nimport type { ValueBar, ValueBarProps } from \"@kirana-ui/core/progress\"\nimport { createContext, useContext } from \"react\"\nimport type { ReactElement, ReactNode } from \"react\"\n\nimport { PartElement, parts, useController, usePart, useSignal } from \"./runtime.tsx\"\nimport type { PartComponentProps } from \"./runtime.tsx\"\n\n/** What a value bar's written value takes of its own: what to write in its place. */\nexport interface ValueOptions {\n /** Draws something else than the written value: it is given the text, `undefined` while there is none. */\n children?: (text: string | undefined) => ReactNode\n}\n\n/** The props of a value bar's parts, as their component's entry types them. */\nexport interface ValueBarPartProps {\n Root: object\n Track: object\n Indicator: object\n Value: ValueOptions\n Label: object\n}\n\n/** The parts of a value drawn as a filled track: a progress bar's, a meter's. */\nexport function valueBar<Props extends ValueBarProps, Typed extends ValueBarPartProps>(\n name: string,\n create: (props: ReadonlySignal<Props>) => ValueBar\n) {\n const Context = createContext<ValueBar | null>(null)\n\n function use(part: string): ValueBar {\n const controller = useContext(Context)\n if (!controller) throw new Error(`<${name}.${part}> must be inside <${name}.Root>`)\n return controller\n }\n\n // Typed here as any bar's: the entry says which states its parts have.\n type RootProps = PartComponentProps<\"div\"> & Omit<ValueBarProps, \"id\"> & { id?: string }\n\n function Root({\n value,\n min,\n max,\n format,\n locale,\n getAriaValueText,\n id,\n ...rest\n }: RootProps): ReactElement {\n const controller = useController(create, {\n value,\n min,\n max,\n format,\n locale,\n getAriaValueText,\n id,\n } as unknown as Omit<Props, \"id\"> & { id?: string })\n return (\n <Context.Provider value={controller}>\n <PartElement of={controller.root} tag=\"div\" {...rest} />\n </Context.Provider>\n )\n }\n\n const Track = (props: PartComponentProps) => usePart(use(\"Track\").track, \"div\", props)\n const Indicator = (props: PartComponentProps) => usePart(use(\"Indicator\").indicator, \"div\", props)\n const Label = (props: PartComponentProps<\"span\">) => usePart(use(\"Label\").label, \"span\", props)\n\n /** The written value, or what `children` makes of it. */\n function Value({\n children,\n ...props\n }: PartComponentProps<\"span\", PartState, ValueOptions>): ReactElement {\n const controller = use(\"Value\")\n const text = useSignal(controller.text)\n return usePart(controller.value, \"span\", {\n ...props,\n children: children ? children(text) : text,\n })\n }\n\n return parts(name, { Root, Track, Indicator, Value, Label }) as unknown as {\n Root: (props: Typed[\"Root\"]) => ReactElement\n Track: (props: Typed[\"Track\"]) => ReactElement\n Indicator: (props: Typed[\"Indicator\"]) => ReactElement\n Value: (props: Typed[\"Value\"]) => ReactElement\n Label: (props: Typed[\"Label\"]) => ReactElement\n }\n}\n"],"mappings":";;;;;AAwBA,SAAgB,SACd,MACA,QACA;CACA,MAAM,UAAU,cAA+B,IAAI;CAEnD,SAAS,IAAI,MAAwB;EACnC,MAAM,aAAa,WAAW,OAAO;EACrC,IAAI,CAAC,YAAY,MAAM,IAAI,MAAM,IAAI,KAAK,GAAG,KAAK,oBAAoB,KAAK,OAAO;EAClF,OAAO;CACT;CAKA,SAAS,KAAK,EACZ,OACA,KACA,KACA,QACA,QACA,kBACA,IACA,GAAG,QACuB;EAC1B,MAAM,aAAa,cAAc,QAAQ;GACvC;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAAmD;EACnD,OACE,oBAAC,QAAQ,UAAT;GAAkB,OAAO;GACvB,UAAA,oBAAC,aAAD;IAAa,IAAI,WAAW;IAAM,KAAI;IAAM,GAAI;GAAO,CAAA;EACvC,CAAA;CAEtB;CAEA,MAAM,SAAS,UAA8B,QAAQ,IAAI,OAAO,CAAC,CAAC,OAAO,OAAO,KAAK;CACrF,MAAM,aAAa,UAA8B,QAAQ,IAAI,WAAW,CAAC,CAAC,WAAW,OAAO,KAAK;CACjG,MAAM,SAAS,UAAsC,QAAQ,IAAI,OAAO,CAAC,CAAC,OAAO,QAAQ,KAAK;;CAG9F,SAAS,MAAM,EACb,UACA,GAAG,SACiE;EACpE,MAAM,aAAa,IAAI,OAAO;EAC9B,MAAM,OAAO,UAAU,WAAW,IAAI;EACtC,OAAO,QAAQ,WAAW,OAAO,QAAQ;GACvC,GAAG;GACH,UAAU,WAAW,SAAS,IAAI,IAAI;EACxC,CAAC;CACH;CAEA,OAAO,MAAM,MAAM;EAAE;EAAM;EAAO;EAAW;EAAO;CAAM,CAAC;AAO7D"}
|