@skeletonlabs/skeleton-react 2.0.0-next.10 → 2.0.0-next.11
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/dist/components/accordion/anatomy/item-content.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-heading.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-indicator.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.d.ts +3 -3
- package/dist/components/accordion/anatomy/item.d.ts +2 -2
- package/dist/components/accordion/anatomy/item.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/root-provider.d.ts +2 -2
- package/dist/components/accordion/anatomy/root.d.ts +2 -2
- package/dist/components/accordion/modules/root-context.js +0 -1
- package/dist/components/accordion/modules/root-context.js.map +1 -1
- package/dist/components/app-bar/anatomy/headline.d.ts +3 -3
- package/dist/components/app-bar/anatomy/lead.d.ts +3 -3
- package/dist/components/app-bar/anatomy/root.d.ts +3 -3
- package/dist/components/app-bar/anatomy/toolbar.d.ts +3 -3
- package/dist/components/app-bar/anatomy/trail.d.ts +3 -3
- package/dist/components/avatar/anatomy/fallback.d.ts +3 -3
- package/dist/components/avatar/anatomy/image.d.ts +3 -3
- package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- package/dist/components/combobox/anatomy/content.d.ts +11 -0
- package/dist/components/combobox/anatomy/content.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/content.js +20 -0
- package/dist/components/combobox/anatomy/content.js.map +1 -0
- package/dist/components/combobox/anatomy/control.d.ts +11 -0
- package/dist/components/combobox/anatomy/control.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/control.js +20 -0
- package/dist/components/combobox/anatomy/control.js.map +1 -0
- package/dist/components/combobox/anatomy/input.d.ts +11 -0
- package/dist/components/combobox/anatomy/input.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/input.js +17 -0
- package/dist/components/combobox/anatomy/input.js.map +1 -0
- package/dist/components/combobox/anatomy/item-group-label.d.ts +12 -0
- package/dist/components/combobox/anatomy/item-group-label.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item-group-label.js +27 -0
- package/dist/components/combobox/anatomy/item-group-label.js.map +1 -0
- package/dist/components/combobox/anatomy/item-group.d.ts +11 -0
- package/dist/components/combobox/anatomy/item-group.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item-group.js +29 -0
- package/dist/components/combobox/anatomy/item-group.js.map +1 -0
- package/dist/components/combobox/anatomy/item-indicator.d.ts +11 -0
- package/dist/components/combobox/anatomy/item-indicator.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item-indicator.js +23 -0
- package/dist/components/combobox/anatomy/item-indicator.js.map +1 -0
- package/dist/components/combobox/anatomy/item-text.d.ts +11 -0
- package/dist/components/combobox/anatomy/item-text.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item-text.js +22 -0
- package/dist/components/combobox/anatomy/item-text.js.map +1 -0
- package/dist/components/combobox/anatomy/item.d.ts +11 -0
- package/dist/components/combobox/anatomy/item.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/item.js +26 -0
- package/dist/components/combobox/anatomy/item.js.map +1 -0
- package/dist/components/combobox/anatomy/label.d.ts +11 -0
- package/dist/components/combobox/anatomy/label.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/label.js +20 -0
- package/dist/components/combobox/anatomy/label.js.map +1 -0
- package/dist/components/combobox/anatomy/positioner.d.ts +11 -0
- package/dist/components/combobox/anatomy/positioner.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/positioner.js +20 -0
- package/dist/components/combobox/anatomy/positioner.js.map +1 -0
- package/dist/components/combobox/anatomy/root-context.d.ts +11 -0
- package/dist/components/combobox/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/root-context.js +13 -0
- package/dist/components/combobox/anatomy/root-context.js.map +1 -0
- package/dist/components/combobox/anatomy/root-provider.d.ts +13 -0
- package/dist/components/combobox/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/root-provider.js +21 -0
- package/dist/components/combobox/anatomy/root-provider.js.map +1 -0
- package/dist/components/combobox/anatomy/root.d.ts +11 -0
- package/dist/components/combobox/anatomy/root.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/root.js +25 -0
- package/dist/components/combobox/anatomy/root.js.map +1 -0
- package/dist/components/combobox/anatomy/trigger.d.ts +11 -0
- package/dist/components/combobox/anatomy/trigger.d.ts.map +1 -0
- package/dist/components/combobox/anatomy/trigger.js +21 -0
- package/dist/components/combobox/anatomy/trigger.js.map +1 -0
- package/dist/components/combobox/modules/anatomy.d.ts +34 -0
- package/dist/components/combobox/modules/anatomy.d.ts.map +1 -0
- package/dist/components/combobox/modules/anatomy.js +35 -0
- package/dist/components/combobox/modules/anatomy.js.map +1 -0
- package/dist/components/combobox/modules/item-context.js +8 -0
- package/dist/components/combobox/modules/item-context.js.map +1 -0
- package/dist/components/combobox/modules/item-group-context.js +8 -0
- package/dist/components/combobox/modules/item-group-context.js.map +1 -0
- package/dist/components/combobox/modules/root-context.js +8 -0
- package/dist/components/combobox/modules/root-context.js.map +1 -0
- package/dist/components/combobox/modules/use-combobox.d.ts +8 -0
- package/dist/components/combobox/modules/use-combobox.d.ts.map +1 -0
- package/dist/components/combobox/modules/use-combobox.js +16 -0
- package/dist/components/combobox/modules/use-combobox.js.map +1 -0
- package/dist/components/dialog/anatomy/backdrop.d.ts +3 -3
- package/dist/components/dialog/anatomy/backdrop.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/dialog/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/content.d.ts +3 -3
- package/dist/components/dialog/anatomy/content.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/description.d.ts +3 -3
- package/dist/components/dialog/anatomy/description.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/positioner.d.ts +3 -3
- package/dist/components/dialog/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/root-provider.d.ts +2 -2
- package/dist/components/dialog/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/root.d.ts +2 -2
- package/dist/components/dialog/anatomy/root.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/title.d.ts +3 -3
- package/dist/components/dialog/anatomy/title.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/trigger.d.ts +3 -3
- package/dist/components/dialog/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/dropzone.d.ts +3 -3
- package/dist/components/file-upload/anatomy/dropzone.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/file-upload/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-group.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-group.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-name.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-name.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-size-text.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/item.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root.d.ts +2 -2
- package/dist/components/file-upload/anatomy/trigger.d.ts +3 -3
- package/dist/components/popover/anatomy/arrow-tip.d.ts +3 -3
- package/dist/components/popover/anatomy/arrow-tip.d.ts.map +1 -1
- package/dist/components/popover/anatomy/arrow.d.ts +3 -3
- package/dist/components/popover/anatomy/arrow.d.ts.map +1 -1
- package/dist/components/popover/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/popover/anatomy/content.d.ts +3 -3
- package/dist/components/popover/anatomy/description.d.ts +3 -3
- package/dist/components/popover/anatomy/positioner.d.ts +2 -2
- package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
- package/dist/components/popover/anatomy/root.d.ts +2 -2
- package/dist/components/popover/anatomy/title.d.ts +3 -3
- package/dist/components/popover/anatomy/trigger.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/label.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/range.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/root.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/track.d.ts +3 -3
- package/dist/components/rating-group/anatomy/control.d.ts +3 -3
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/rating-group/anatomy/item.d.ts +3 -3
- package/dist/components/rating-group/anatomy/label.d.ts +3 -3
- package/dist/components/rating-group/anatomy/root-provider.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/indicator.d.ts +3 -3
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +3 -3
- package/dist/components/segmented-control/anatomy/item-text.d.ts +3 -3
- package/dist/components/segmented-control/anatomy/item.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root.d.ts +2 -2
- package/dist/components/slider/anatomy/control.d.ts +11 -0
- package/dist/components/slider/anatomy/control.d.ts.map +1 -0
- package/dist/components/slider/anatomy/control.js +20 -0
- package/dist/components/slider/anatomy/control.js.map +1 -0
- package/dist/components/slider/anatomy/hidden-input.d.ts +11 -0
- package/dist/components/slider/anatomy/hidden-input.d.ts.map +1 -0
- package/dist/components/slider/anatomy/hidden-input.js +19 -0
- package/dist/components/slider/anatomy/hidden-input.js.map +1 -0
- package/dist/components/slider/anatomy/label.d.ts +11 -0
- package/dist/components/slider/anatomy/label.d.ts.map +1 -0
- package/dist/components/slider/anatomy/label.js +20 -0
- package/dist/components/slider/anatomy/label.js.map +1 -0
- package/dist/components/slider/anatomy/marker-group.d.ts +11 -0
- package/dist/components/slider/anatomy/marker-group.d.ts.map +1 -0
- package/dist/components/slider/anatomy/marker-group.js +20 -0
- package/dist/components/slider/anatomy/marker-group.js.map +1 -0
- package/dist/components/slider/anatomy/marker.d.ts +12 -0
- package/dist/components/slider/anatomy/marker.d.ts.map +1 -0
- package/dist/components/slider/anatomy/marker.js +20 -0
- package/dist/components/slider/anatomy/marker.js.map +1 -0
- package/dist/components/slider/anatomy/range.d.ts +11 -0
- package/dist/components/slider/anatomy/range.d.ts.map +1 -0
- package/dist/components/slider/anatomy/range.js +20 -0
- package/dist/components/slider/anatomy/range.js.map +1 -0
- package/dist/components/slider/anatomy/root-context.d.ts +11 -0
- package/dist/components/slider/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/slider/anatomy/root-context.js +13 -0
- package/dist/components/slider/anatomy/root-context.js.map +1 -0
- package/dist/components/slider/anatomy/root-provider.d.ts +13 -0
- package/dist/components/slider/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/slider/anatomy/root-provider.js +21 -0
- package/dist/components/slider/anatomy/root-provider.js.map +1 -0
- package/dist/components/slider/anatomy/root.d.ts +11 -0
- package/dist/components/slider/anatomy/root.d.ts.map +1 -0
- package/dist/components/slider/anatomy/root.js +25 -0
- package/dist/components/slider/anatomy/root.js.map +1 -0
- package/dist/components/slider/anatomy/thumb.d.ts +11 -0
- package/dist/components/slider/anatomy/thumb.d.ts.map +1 -0
- package/dist/components/slider/anatomy/thumb.js +26 -0
- package/dist/components/slider/anatomy/thumb.js.map +1 -0
- package/dist/components/slider/anatomy/track.d.ts +11 -0
- package/dist/components/slider/anatomy/track.d.ts.map +1 -0
- package/dist/components/slider/anatomy/track.js +20 -0
- package/dist/components/slider/anatomy/track.js.map +1 -0
- package/dist/components/slider/anatomy/value-text.d.ts +11 -0
- package/dist/components/slider/anatomy/value-text.d.ts.map +1 -0
- package/dist/components/slider/anatomy/value-text.js +20 -0
- package/dist/components/slider/anatomy/value-text.js.map +1 -0
- package/dist/components/slider/modules/anatomy.d.ts +30 -0
- package/dist/components/slider/modules/anatomy.d.ts.map +1 -0
- package/dist/components/slider/modules/anatomy.js +31 -0
- package/dist/components/slider/modules/anatomy.js.map +1 -0
- package/dist/components/slider/modules/root-context.js +8 -0
- package/dist/components/slider/modules/root-context.js.map +1 -0
- package/dist/components/slider/modules/thumb-context.js +8 -0
- package/dist/components/slider/modules/thumb-context.js.map +1 -0
- package/dist/components/slider/modules/use-slider.d.ts +8 -0
- package/dist/components/slider/modules/use-slider.d.ts.map +1 -0
- package/dist/components/slider/modules/use-slider.js +16 -0
- package/dist/components/slider/modules/use-slider.js.map +1 -0
- package/dist/components/switch/anatomy/control.d.ts +3 -3
- package/dist/components/switch/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/switch/anatomy/label.d.ts +3 -3
- package/dist/components/switch/anatomy/root-provider.d.ts +2 -2
- package/dist/components/switch/anatomy/root.d.ts +2 -2
- package/dist/components/switch/anatomy/root.d.ts.map +1 -1
- package/dist/components/switch/anatomy/thumb.d.ts +3 -3
- package/dist/components/tabs/anatomy/content.d.ts +3 -3
- package/dist/components/tabs/anatomy/indicator.d.ts +3 -3
- package/dist/components/tabs/anatomy/list.d.ts +3 -3
- package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tabs/anatomy/root.d.ts +2 -2
- package/dist/components/tabs/anatomy/trigger.d.ts +3 -3
- package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +3 -3
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/control.d.ts +3 -3
- package/dist/components/tags-input/anatomy/control.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-input.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-preview.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-preview.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item-text.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-text.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/item.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/label.d.ts +3 -3
- package/dist/components/tags-input/anatomy/label.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/tags-input/anatomy/root.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root.d.ts.map +1 -1
- package/dist/components/toast/anatomy/action-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/toast/anatomy/description.d.ts +3 -3
- package/dist/components/toast/anatomy/description.d.ts.map +1 -1
- package/dist/components/toast/anatomy/group.d.ts +2 -2
- package/dist/components/toast/anatomy/group.d.ts.map +1 -1
- package/dist/components/toast/anatomy/message.d.ts +3 -3
- package/dist/components/toast/anatomy/message.d.ts.map +1 -1
- package/dist/components/toast/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/root.d.ts.map +1 -1
- package/dist/components/toast/anatomy/title.d.ts +3 -3
- package/dist/components/toast/anatomy/title.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +3 -3
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/arrow.d.ts +3 -3
- package/dist/components/tooltip/anatomy/arrow.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/content.d.ts +3 -3
- package/dist/components/tooltip/anatomy/content.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
- package/dist/components/tooltip/anatomy/positioner.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/root.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/trigger.d.ts +3 -3
- package/dist/components/tooltip/anatomy/trigger.d.ts.map +1 -1
- package/dist/hooks/use-list-collection.d.ts +7 -0
- package/dist/hooks/use-list-collection.d.ts.map +1 -0
- package/dist/hooks/use-list-collection.js +10 -0
- package/dist/hooks/use-list-collection.js.map +1 -0
- package/dist/index.d.ts +32 -1
- package/dist/index.js +6 -14
- package/dist/internal/components/check.js +26 -0
- package/dist/internal/components/check.js.map +1 -0
- package/dist/internal/components/chevron-down.js +21 -0
- package/dist/internal/components/chevron-down.js.map +1 -0
- package/package.json +11 -6
- package/dist/components/accordion/index.js +0 -4
- package/dist/components/app-bar/index.js +0 -3
- package/dist/components/avatar/index.js +0 -4
- package/dist/components/dialog/index.js +0 -4
- package/dist/components/file-upload/index.js +0 -4
- package/dist/components/popover/index.js +0 -4
- package/dist/components/progress-linear/index.js +0 -4
- package/dist/components/rating-group/index.js +0 -4
- package/dist/components/segmented-control/index.js +0 -4
- package/dist/components/switch/index.js +0 -4
- package/dist/components/tabs/index.js +0 -4
- package/dist/components/tags-input/index.js +0 -4
- package/dist/components/tooltip/index.js +0 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react34 from "react";
|
|
4
4
|
import { PropsWithChildren } from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/accordion/anatomy/item-content.d.ts
|
|
8
8
|
interface AccordionItemContentProps extends PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
-
declare function ItemContent(props: AccordionItemContentProps): string | number | bigint | boolean | Iterable<
|
|
9
|
+
declare function ItemContent(props: AccordionItemContentProps): string | number | bigint | boolean | Iterable<react34.ReactNode> | Promise<string | number | bigint | boolean | react34.ReactPortal | react34.ReactElement<unknown, string | react34.JSXElementConstructor<any>> | Iterable<react34.ReactNode> | null | undefined> | react_jsx_runtime8.JSX.Element | null | undefined;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { AccordionItemContentProps, ItemContent };
|
|
12
12
|
//# sourceMappingURL=item-content.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react39 from "react";
|
|
4
4
|
import { PropsWithChildren } from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/accordion/anatomy/item-heading.d.ts
|
|
8
8
|
interface AccordionItemHeadingProps extends PropsWithChildren, PropsWithElement<'h3'>, HTMLAttributes<'h3'> {
|
|
@@ -13,7 +13,7 @@ interface AccordionItemHeadingProps extends PropsWithChildren, PropsWithElement<
|
|
|
13
13
|
*/
|
|
14
14
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
15
15
|
}
|
|
16
|
-
declare function ItemHeading(props: AccordionItemHeadingProps): string | number | bigint | boolean | Iterable<
|
|
16
|
+
declare function ItemHeading(props: AccordionItemHeadingProps): string | number | bigint | boolean | Iterable<react39.ReactNode> | Promise<string | number | bigint | boolean | react39.ReactPortal | react39.ReactElement<unknown, string | react39.JSXElementConstructor<any>> | Iterable<react39.ReactNode> | null | undefined> | react_jsx_runtime9.JSX.Element | null | undefined;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { AccordionItemHeadingProps, ItemHeading };
|
|
19
19
|
//# sourceMappingURL=item-heading.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react44 from "react";
|
|
4
4
|
import { PropsWithChildren } from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/accordion/anatomy/item-indicator.d.ts
|
|
8
8
|
interface AccordionItemIndicatorProps extends PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
-
declare function ItemIndicator(props: AccordionItemIndicatorProps): string | number | bigint | boolean | Iterable<
|
|
9
|
+
declare function ItemIndicator(props: AccordionItemIndicatorProps): string | number | bigint | boolean | Iterable<react44.ReactNode> | Promise<string | number | bigint | boolean | react44.ReactPortal | react44.ReactElement<unknown, string | react44.JSXElementConstructor<any>> | Iterable<react44.ReactNode> | null | undefined> | react_jsx_runtime10.JSX.Element | null | undefined;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { AccordionItemIndicatorProps, ItemIndicator };
|
|
12
12
|
//# sourceMappingURL=item-indicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-indicator.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item-indicator.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,2BAAA,SAAoC,mBAAmB,yBAAyB;iBAEzE,aAAA,QAAqB,mEAA2B,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,
|
|
1
|
+
{"version":3,"file":"item-indicator.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item-indicator.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,2BAAA,SAAoC,mBAAmB,yBAAyB;iBAEzE,aAAA,QAAqB,mEAA2B,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react49 from "react";
|
|
4
4
|
import { PropsWithChildren } from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/accordion/anatomy/item-trigger.d.ts
|
|
8
8
|
interface AccordionItemTriggerProps extends PropsWithChildren, PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
9
|
-
declare function ItemTrigger(props: AccordionItemTriggerProps): string | number | bigint | boolean | Iterable<
|
|
9
|
+
declare function ItemTrigger(props: AccordionItemTriggerProps): string | number | bigint | boolean | Iterable<react49.ReactNode> | Promise<string | number | bigint | boolean | react49.ReactPortal | react49.ReactElement<unknown, string | react49.JSXElementConstructor<any>> | Iterable<react49.ReactNode> | null | undefined> | react_jsx_runtime14.JSX.Element | null | undefined;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { AccordionItemTriggerProps, ItemTrigger };
|
|
12
12
|
//# sourceMappingURL=item-trigger.d.ts.map
|
|
@@ -2,11 +2,11 @@ import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { PropsWithChildren } from "react";
|
|
4
4
|
import { ItemProps } from "@zag-js/accordion";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/accordion/anatomy/item.d.ts
|
|
8
8
|
interface AccordionItemProps extends ItemProps, PropsWithChildren, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
-
declare function Item(props: AccordionItemProps):
|
|
9
|
+
declare function Item(props: AccordionItemProps): react_jsx_runtime11.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { AccordionItemProps, Item };
|
|
12
12
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAWiB,kBAAA,SAA2B,WAAW,mBAAmB,yBAAyB;iBAE3E,IAAA,QAAY,qBAAkB,
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../../../src/components/accordion/anatomy/item.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAWiB,kBAAA,SAA2B,WAAW,mBAAmB,yBAAyB;iBAE3E,IAAA,QAAY,qBAAkB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useAccordion } from "../modules/use-accordion.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/accordion/anatomy/root-provider.d.ts
|
|
7
7
|
interface AccordionRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useAccordion>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: AccordionRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: AccordionRootProviderProps): react_jsx_runtime13.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { AccordionRootProviderProps, RootProvider };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { Props } from "@zag-js/accordion";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/accordion/anatomy/root.d.ts
|
|
7
7
|
interface AccordionRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function Root(props: AccordionRootProps):
|
|
8
|
+
declare function Root(props: AccordionRootProps): react_jsx_runtime12.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AccordionRootProps, Root };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/accordion/modules/root-context.ts"],"sourcesContent":["import { useAccordion } from './use-accordion';\nimport { createContext } from '@/internal/create-context';\n\nexport const AccordionRootContext = createContext<ReturnType<typeof useAccordion>>();\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/accordion/modules/root-context.ts"],"sourcesContent":["import { useAccordion } from './use-accordion';\nimport { createContext } from '@/internal/create-context';\n\nexport const AccordionRootContext = createContext<ReturnType<typeof useAccordion>>();\n"],"mappings":";;;AAGA,MAAa,uBAAuB,eAAgD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react69 from "react";
|
|
4
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/app-bar/anatomy/headline.d.ts
|
|
7
7
|
interface AppBarHeadlineProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function AppBarHeadline(props: AppBarHeadlineProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function AppBarHeadline(props: AppBarHeadlineProps): string | number | bigint | boolean | Iterable<react69.ReactNode> | Promise<string | number | bigint | boolean | react69.ReactPortal | react69.ReactElement<unknown, string | react69.JSXElementConstructor<any>> | Iterable<react69.ReactNode> | null | undefined> | react_jsx_runtime18.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AppBarHeadline, AppBarHeadlineProps };
|
|
11
11
|
//# sourceMappingURL=headline.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react64 from "react";
|
|
4
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/app-bar/anatomy/lead.d.ts
|
|
7
7
|
interface AppBarLeadProps extends PropsWithElement<'nav'>, HTMLAttributes<'nav'> {}
|
|
8
|
-
declare function AppBarLead(props: AppBarLeadProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function AppBarLead(props: AppBarLeadProps): string | number | bigint | boolean | Iterable<react64.ReactNode> | Promise<string | number | bigint | boolean | react64.ReactPortal | react64.ReactElement<unknown, string | react64.JSXElementConstructor<any>> | Iterable<react64.ReactNode> | null | undefined> | react_jsx_runtime17.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AppBarLead, AppBarLeadProps };
|
|
11
11
|
//# sourceMappingURL=lead.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react54 from "react";
|
|
4
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/app-bar/anatomy/root.d.ts
|
|
7
7
|
interface AppBarRootProps extends PropsWithElement<'header'>, HTMLAttributes<'header'> {}
|
|
8
|
-
declare function AppBarRoot(props: AppBarRootProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function AppBarRoot(props: AppBarRootProps): string | number | bigint | boolean | Iterable<react54.ReactNode> | Promise<string | number | bigint | boolean | react54.ReactPortal | react54.ReactElement<unknown, string | react54.JSXElementConstructor<any>> | Iterable<react54.ReactNode> | null | undefined> | react_jsx_runtime15.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AppBarRoot, AppBarRootProps };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react59 from "react";
|
|
4
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/app-bar/anatomy/toolbar.d.ts
|
|
7
7
|
interface AppBarToolbarProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function AppBarToolbar(props: AppBarToolbarProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function AppBarToolbar(props: AppBarToolbarProps): string | number | bigint | boolean | Iterable<react59.ReactNode> | Promise<string | number | bigint | boolean | react59.ReactPortal | react59.ReactElement<unknown, string | react59.JSXElementConstructor<any>> | Iterable<react59.ReactNode> | null | undefined> | react_jsx_runtime16.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AppBarToolbar, AppBarToolbarProps };
|
|
11
11
|
//# sourceMappingURL=toolbar.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react74 from "react";
|
|
4
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/app-bar/anatomy/trail.d.ts
|
|
7
7
|
interface AppBarTrailProps extends PropsWithElement<'nav'>, HTMLAttributes<'nav'> {}
|
|
8
|
-
declare function AppBarTrail(props: AppBarTrailProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function AppBarTrail(props: AppBarTrailProps): string | number | bigint | boolean | Iterable<react74.ReactNode> | Promise<string | number | bigint | boolean | react74.ReactPortal | react74.ReactElement<unknown, string | react74.JSXElementConstructor<any>> | Iterable<react74.ReactNode> | null | undefined> | react_jsx_runtime19.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AppBarTrail, AppBarTrailProps };
|
|
11
11
|
//# sourceMappingURL=trail.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react79 from "react";
|
|
4
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/avatar/anatomy/fallback.d.ts
|
|
7
7
|
interface AvatarFallbackProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function Fallback(props: AvatarFallbackProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Fallback(props: AvatarFallbackProps): string | number | bigint | boolean | Iterable<react79.ReactNode> | Promise<string | number | bigint | boolean | react79.ReactPortal | react79.ReactElement<unknown, string | react79.JSXElementConstructor<any>> | Iterable<react79.ReactNode> | null | undefined> | react_jsx_runtime20.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AvatarFallbackProps, Fallback };
|
|
11
11
|
//# sourceMappingURL=fallback.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react84 from "react";
|
|
4
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/avatar/anatomy/image.d.ts
|
|
7
7
|
interface AvatarImageProps extends PropsWithElement<'img'>, HTMLAttributes<'img', 'children'> {}
|
|
8
|
-
declare function Image(props: AvatarImageProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Image(props: AvatarImageProps): string | number | bigint | boolean | Iterable<react84.ReactNode> | Promise<string | number | bigint | boolean | react84.ReactPortal | react84.ReactElement<unknown, string | react84.JSXElementConstructor<any>> | Iterable<react84.ReactNode> | null | undefined> | react_jsx_runtime21.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AvatarImageProps, Image };
|
|
11
11
|
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useAvatar } from "../modules/use-avatar.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/avatar/anatomy/root-provider.d.ts
|
|
7
7
|
interface AvatarRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
8
8
|
value: ReturnType<typeof useAvatar>;
|
|
9
9
|
}
|
|
10
|
-
declare function AvatarRootProvider(props: AvatarRootProviderProps):
|
|
10
|
+
declare function AvatarRootProvider(props: AvatarRootProviderProps): react_jsx_runtime23.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { AvatarRootProvider, AvatarRootProviderProps };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/avatar";
|
|
5
5
|
|
|
6
6
|
//#region src/components/avatar/anatomy/root.d.ts
|
|
7
7
|
interface AvatarRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
8
|
-
declare function AvatarRoot(props: AvatarRootProps):
|
|
8
|
+
declare function AvatarRoot(props: AvatarRootProps): react_jsx_runtime22.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AvatarRoot, AvatarRootProps };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react89 from "react";
|
|
4
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/combobox/anatomy/content.d.ts
|
|
7
|
+
interface ComboboxContentProps extends PropsWithElement<'ul'>, HTMLAttributes<'ul'> {}
|
|
8
|
+
declare function Content(props: ComboboxContentProps): string | number | bigint | boolean | Iterable<react89.ReactNode> | Promise<string | number | bigint | boolean | react89.ReactPortal | react89.ReactElement<unknown, string | react89.JSXElementConstructor<any>> | Iterable<react89.ReactNode> | null | undefined> | react_jsx_runtime24.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxContentProps, Content };
|
|
11
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/content.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,oBAAA,SAA6B,wBAAwB;iBAE9C,OAAA,QAAe,4DAAoB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComboboxRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/combobox/anatomy/content.tsx
|
|
8
|
+
function Content(props) {
|
|
9
|
+
const combobox = use(ComboboxRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(combobox.getContentProps(), rest, { className: classesCombobox.content });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Content as default };
|
|
20
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","names":[],"sources":["../../../../src/components/combobox/anatomy/content.tsx"],"sourcesContent":["import { ComboboxRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxContentProps extends PropsWithElement<'ul'>, HTMLAttributes<'ul'> {}\n\nexport default function Content(props: ComboboxContentProps) {\n\tconst combobox = use(ComboboxRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(combobox.getContentProps(), rest, {\n\t\tclassName: classesCombobox.content,\n\t});\n\n\treturn element ? element(attributes) : <ul {...attributes}>{children}</ul>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,QAAQ,OAA6B;CAC5D,MAAM,WAAW,IAAI,oBAAoB;CAEzC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,SAAS,iBAAiB,EAAE,MAAM,EAC/D,WAAW,gBAAgB,SAC3B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAG,GAAI;EAAa;GAAc"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react94 from "react";
|
|
4
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/combobox/anatomy/control.d.ts
|
|
7
|
+
interface ComboboxControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function Control(props: ComboboxControlProps): string | number | bigint | boolean | Iterable<react94.ReactNode> | Promise<string | number | bigint | boolean | react94.ReactPortal | react94.ReactElement<unknown, string | react94.JSXElementConstructor<any>> | Iterable<react94.ReactNode> | null | undefined> | react_jsx_runtime25.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxControlProps, Control };
|
|
11
|
+
//# sourceMappingURL=control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/control.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,oBAAA,SAA6B,yBAAyB;iBAE/C,OAAA,QAAe,4DAAoB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComboboxRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/combobox/anatomy/control.tsx
|
|
8
|
+
function Control(props) {
|
|
9
|
+
const combobox = use(ComboboxRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(combobox.getControlProps(), rest, { className: classesCombobox.control });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Control as default };
|
|
20
|
+
//# sourceMappingURL=control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.js","names":[],"sources":["../../../../src/components/combobox/anatomy/control.tsx"],"sourcesContent":["import { ComboboxRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Control(props: ComboboxControlProps) {\n\tconst combobox = use(ComboboxRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(combobox.getControlProps(), rest, {\n\t\tclassName: classesCombobox.control,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,QAAQ,OAA6B;CAC5D,MAAM,WAAW,IAAI,oBAAoB;CAEzC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,SAAS,iBAAiB,EAAE,MAAM,EAC/D,WAAW,gBAAgB,SAC3B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react99 from "react";
|
|
4
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/combobox/anatomy/input.d.ts
|
|
7
|
+
interface ComboboxInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}
|
|
8
|
+
declare function Input(props: ComboboxInputProps): string | number | bigint | boolean | Iterable<react99.ReactNode> | Promise<string | number | bigint | boolean | react99.ReactPortal | react99.ReactElement<unknown, string | react99.JSXElementConstructor<any>> | Iterable<react99.ReactNode> | null | undefined> | react_jsx_runtime26.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxInputProps, Input };
|
|
11
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/input.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,kBAAA,SAA2B,2BAA2B,KAAK;iBAEpD,KAAA,QAAa,0DAAkB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComboboxRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/combobox/anatomy/input.tsx
|
|
8
|
+
function Input(props) {
|
|
9
|
+
const combobox = use(ComboboxRootContext);
|
|
10
|
+
const { element,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(combobox.getInputProps(), rest, { className: classesCombobox.input });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Input as default };
|
|
17
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","names":[],"sources":["../../../../src/components/combobox/anatomy/input.tsx"],"sourcesContent":["import { ComboboxRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}\n\nexport default function Input(props: ComboboxInputProps) {\n\tconst combobox = use(ComboboxRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(combobox.getInputProps(), rest, {\n\t\tclassName: classesCombobox.input,\n\t});\n\n\treturn element ? element(attributes) : <input {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAA2B;CACxD,MAAM,WAAW,IAAI,oBAAoB;CAEzC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,SAAS,eAAe,EAAE,MAAM,EAC7D,WAAW,gBAAgB,OAC3B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,WAAM,GAAI,aAAc"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react104 from "react";
|
|
4
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
5
|
+
import { ItemGroupLabelProps } from "@zag-js/combobox";
|
|
6
|
+
|
|
7
|
+
//#region src/components/combobox/anatomy/item-group-label.d.ts
|
|
8
|
+
interface ComboboxItemGroupLabelProps extends Omit<ItemGroupLabelProps, 'htmlFor'>, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
+
declare function ItemGroupLabel(props: ComboboxItemGroupLabelProps): string | number | bigint | boolean | Iterable<react104.ReactNode> | Promise<string | number | bigint | boolean | react104.ReactPortal | react104.ReactElement<unknown, string | react104.JSXElementConstructor<any>> | Iterable<react104.ReactNode> | null | undefined> | react_jsx_runtime29.JSX.Element | null | undefined;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ComboboxItemGroupLabelProps, ItemGroupLabel };
|
|
12
|
+
//# sourceMappingURL=item-group-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-group-label.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item-group-label.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,2BAAA,SAAoC,KAAK,iCAAiC,yBAAyB;iBAE5F,cAAA,QAAsB,mEAA2B,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComboboxRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { ComboboxItemGroupContext } from "../modules/item-group-context.js";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { splitItemGroupLabelProps } from "@zag-js/combobox";
|
|
8
|
+
|
|
9
|
+
//#region src/components/combobox/anatomy/item-group-label.tsx
|
|
10
|
+
function ItemGroupLabel(props) {
|
|
11
|
+
const combobox = use(ComboboxRootContext);
|
|
12
|
+
const itemGroupProps = use(ComboboxItemGroupContext);
|
|
13
|
+
const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps({
|
|
14
|
+
htmlFor: itemGroupProps.id,
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
const { element, children,...rest } = componentProps;
|
|
18
|
+
const attributes = mergeProps(combobox.getItemGroupLabelProps(itemGroupLabelProps), rest, { className: classesCombobox.itemGroupLabel });
|
|
19
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
20
|
+
...attributes,
|
|
21
|
+
children
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ItemGroupLabel as default };
|
|
27
|
+
//# sourceMappingURL=item-group-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-group-label.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-group-label.tsx"],"sourcesContent":["import { ComboboxItemGroupContext } from '../modules/item-group-context';\nimport { ComboboxRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { type ItemGroupLabelProps, splitItemGroupLabelProps } from '@zag-js/combobox';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxItemGroupLabelProps extends Omit<ItemGroupLabelProps, 'htmlFor'>, PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function ItemGroupLabel(props: ComboboxItemGroupLabelProps) {\n\tconst combobox = use(ComboboxRootContext);\n\tconst itemGroupProps = use(ComboboxItemGroupContext);\n\n\tconst [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps({\n\t\thtmlFor: itemGroupProps.id,\n\t\t...props,\n\t});\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(combobox.getItemGroupLabelProps(itemGroupLabelProps), rest, {\n\t\tclassName: classesCombobox.itemGroupLabel,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;;AAWA,SAAwB,eAAe,OAAoC;CAC1E,MAAM,WAAW,IAAI,oBAAoB;CACzC,MAAM,iBAAiB,IAAI,yBAAyB;CAEpD,MAAM,CAAC,qBAAqB,kBAAkB,yBAAyB;EACtE,SAAS,eAAe;EACxB,GAAG;EACH,CAAC;CACF,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,SAAS,uBAAuB,oBAAoB,EAAE,MAAM,EACzF,WAAW,gBAAgB,gBAC3B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
4
|
+
import { ItemGroupProps } from "@zag-js/combobox";
|
|
5
|
+
|
|
6
|
+
//#region src/components/combobox/anatomy/item-group.d.ts
|
|
7
|
+
interface ComboboxItemGroupProps extends Omit<ItemGroupProps, 'id'>, PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id'> {}
|
|
8
|
+
declare function ItemGroup(props: ComboboxItemGroupProps): react_jsx_runtime28.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxItemGroupProps, ItemGroup };
|
|
11
|
+
//# sourceMappingURL=item-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-group.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item-group.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,sBAAA,SAA+B,KAAK,uBAAuB,yBAAyB,KAAK;iBAElF,SAAA,QAAiB,yBAAsB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComboboxRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { ComboboxItemGroupContext } from "../modules/item-group-context.js";
|
|
3
|
+
import { use, useId } from "react";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { splitItemGroupProps } from "@zag-js/combobox";
|
|
8
|
+
|
|
9
|
+
//#region src/components/combobox/anatomy/item-group.tsx
|
|
10
|
+
function ItemGroup(props) {
|
|
11
|
+
const combobox = use(ComboboxRootContext);
|
|
12
|
+
const [itemGroupProps, componentProps] = splitItemGroupProps({
|
|
13
|
+
id: useId(),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
const { element, children,...rest } = componentProps;
|
|
17
|
+
const attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), rest, { className: classesCombobox.itemGroup });
|
|
18
|
+
return /* @__PURE__ */ jsx(ComboboxItemGroupContext.Provider, {
|
|
19
|
+
value: itemGroupProps,
|
|
20
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
21
|
+
...attributes,
|
|
22
|
+
children
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ItemGroup as default };
|
|
29
|
+
//# sourceMappingURL=item-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-group.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-group.tsx"],"sourcesContent":["import { ComboboxItemGroupContext } from '../modules/item-group-context';\nimport { ComboboxRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { type ItemGroupProps, splitItemGroupProps } from '@zag-js/combobox';\nimport { mergeProps } from '@zag-js/react';\nimport { use, useId } from 'react';\n\nexport interface ComboboxItemGroupProps extends Omit<ItemGroupProps, 'id'>, PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id'> {}\n\nexport default function ItemGroup(props: ComboboxItemGroupProps) {\n\tconst combobox = use(ComboboxRootContext);\n\n\tconst [itemGroupProps, componentProps] = splitItemGroupProps({\n\t\tid: useId(),\n\t\t...props,\n\t});\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), rest, {\n\t\tclassName: classesCombobox.itemGroup,\n\t});\n\n\treturn (\n\t\t<ComboboxItemGroupContext.Provider value={itemGroupProps}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</ComboboxItemGroupContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;;AAWA,SAAwB,UAAU,OAA+B;CAChE,MAAM,WAAW,IAAI,oBAAoB;CAEzC,MAAM,CAAC,gBAAgB,kBAAkB,oBAAoB;EAC5D,IAAI,OAAO;EACX,GAAG;EACH,CAAC;CACF,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,SAAS,kBAAkB,eAAe,EAAE,MAAM,EAC/E,WAAW,gBAAgB,WAC3B,CAAC;AAEF,QACC,oBAAC,yBAAyB;EAAS,OAAO;YACxC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GACnC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react109 from "react";
|
|
4
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/combobox/anatomy/item-indicator.d.ts
|
|
7
|
+
interface ComboboxItemIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function ItemIndicator(props: ComboboxItemIndicatorProps): string | number | bigint | boolean | Iterable<react109.ReactNode> | Promise<string | number | bigint | boolean | react109.ReactPortal | react109.ReactElement<unknown, string | react109.JSXElementConstructor<any>> | Iterable<react109.ReactNode> | null | undefined> | react_jsx_runtime30.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxItemIndicatorProps, ItemIndicator };
|
|
11
|
+
//# sourceMappingURL=item-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-indicator.d.ts","names":[],"sources":["../../../../src/components/combobox/anatomy/item-indicator.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,0BAAA,SAAmC,yBAAyB;iBAErD,aAAA,QAAqB,kEAA0B,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComboboxRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { ComboboxItemContext } from "../modules/item-context.js";
|
|
3
|
+
import Check from "../../../internal/components/check.js";
|
|
4
|
+
import { use } from "react";
|
|
5
|
+
import { mergeProps } from "@zag-js/react";
|
|
6
|
+
import { classesCombobox } from "@skeletonlabs/skeleton-common";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/combobox/anatomy/item-indicator.tsx
|
|
10
|
+
function ItemIndicator(props) {
|
|
11
|
+
const combobox = use(ComboboxRootContext);
|
|
12
|
+
const itemProps = use(ComboboxItemContext);
|
|
13
|
+
const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }),...rest } = props;
|
|
14
|
+
const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), rest, { className: classesCombobox.itemIndicator });
|
|
15
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
16
|
+
...attributes,
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ItemIndicator as default };
|
|
23
|
+
//# sourceMappingURL=item-indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-indicator.js","names":[],"sources":["../../../../src/components/combobox/anatomy/item-indicator.tsx"],"sourcesContent":["import { ComboboxItemContext } from '../modules/item-context';\nimport { ComboboxRootContext } from '../modules/root-context';\nimport Check from '@/internal/components/check';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesCombobox } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface ComboboxItemIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function ItemIndicator(props: ComboboxItemIndicatorProps) {\n\tconst combobox = use(ComboboxRootContext);\n\tconst itemProps = use(ComboboxItemContext);\n\n\tconst { element, children = <Check className=\"size-4\" />, ...rest } = props;\n\n\tconst attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), rest, {\n\t\tclassName: classesCombobox.itemIndicator,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;;AAWA,SAAwB,cAAc,OAAmC;CACxE,MAAM,WAAW,IAAI,oBAAoB;CACzC,MAAM,YAAY,IAAI,oBAAoB;CAE1C,MAAM,EAAE,SAAS,WAAW,oBAAC,SAAM,WAAU,WAAW,CAAE,GAAG,SAAS;CAEtE,MAAM,aAAa,WAAW,SAAS,sBAAsB,UAAU,EAAE,MAAM,EAC9E,WAAW,gBAAgB,eAC3B,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
|