@ark-ui/solid 0.8.1 → 0.9.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/CHANGELOG.md +12 -2
- package/accordion/accordion-context.d.ts +4 -21
- package/accordion/index.cjs +4 -0
- package/accordion/index.d.ts +2 -0
- package/accordion/index.mjs +2 -0
- package/accordion/use-accordion.d.ts +3 -11
- package/avatar/avatar-context.d.ts +4 -20
- package/avatar/index.cjs +2 -0
- package/avatar/index.d.ts +1 -0
- package/avatar/index.mjs +1 -0
- package/avatar/use-avatar.d.ts +3 -11
- package/carousel/carousel-context.d.ts +4 -59
- package/carousel/carousel-indicator-group.cjs +16 -0
- package/carousel/carousel-indicator-group.d.ts +4 -0
- package/carousel/carousel-indicator-group.mjs +12 -0
- package/carousel/carousel-indicator.cjs +18 -0
- package/carousel/carousel-indicator.d.ts +6 -0
- package/carousel/carousel-indicator.mjs +14 -0
- package/carousel/carousel-slide.d.ts +1 -1
- package/carousel/index.cjs +6 -0
- package/carousel/index.d.ts +3 -0
- package/carousel/index.mjs +3 -0
- package/carousel/use-carousel.d.ts +3 -31
- package/checkbox/checkbox-context.d.ts +4 -27
- package/checkbox/index.cjs +2 -0
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.mjs +1 -0
- package/checkbox/use-checkbox.d.ts +3 -15
- package/color-picker/color-picker-context.d.ts +4 -42
- package/color-picker/index.cjs +6 -0
- package/color-picker/index.d.ts +3 -0
- package/color-picker/index.mjs +3 -0
- package/color-picker/use-color-picker.d.ts +3 -22
- package/combobox/combobox-clear-trigger.cjs +16 -0
- package/combobox/combobox-clear-trigger.d.ts +4 -0
- package/combobox/combobox-clear-trigger.mjs +12 -0
- package/combobox/combobox-context.d.ts +4 -55
- package/combobox/combobox-option-group.cjs +16 -0
- package/combobox/combobox-option-group.d.ts +6 -0
- package/combobox/combobox-option-group.mjs +12 -0
- package/combobox/index.cjs +6 -0
- package/combobox/index.d.ts +3 -0
- package/combobox/index.mjs +3 -0
- package/combobox/use-combobox.d.ts +3 -28
- package/date-picker/date-picker-context.d.ts +4 -254
- package/date-picker/date-picker-grid.d.ts +1 -1
- package/date-picker/date-picker-view-trigger.d.ts +1 -1
- package/date-picker/index.cjs +6 -0
- package/date-picker/index.d.ts +3 -0
- package/date-picker/index.mjs +3 -0
- package/date-picker/use-date-picker.d.ts +3 -128
- package/dialog/dialog-context.d.ts +4 -24
- package/dialog/index.cjs +2 -0
- package/dialog/index.d.ts +1 -0
- package/dialog/index.mjs +1 -0
- package/dialog/use-dialog.d.ts +3 -13
- package/editable/editable-context.d.ts +4 -38
- package/editable/index.cjs +2 -0
- package/editable/index.d.ts +1 -0
- package/editable/index.mjs +1 -0
- package/editable/use-editable.d.ts +3 -20
- package/hover-card/hover-card-context.d.ts +4 -23
- package/hover-card/index.cjs +2 -0
- package/hover-card/index.d.ts +1 -0
- package/hover-card/index.mjs +1 -0
- package/hover-card/use-hover-card.d.ts +3 -12
- package/index.cjs +72 -0
- package/index.mjs +36 -0
- package/menu/index.cjs +2 -0
- package/menu/index.d.ts +1 -0
- package/menu/index.mjs +1 -0
- package/number-input/index.cjs +2 -0
- package/number-input/index.d.ts +1 -0
- package/number-input/index.mjs +1 -0
- package/number-input/number-input-context.d.ts +4 -44
- package/number-input/use-number-input.d.ts +3 -23
- package/package.json +48 -48
- package/pagination/index.cjs +2 -0
- package/pagination/index.d.ts +1 -0
- package/pagination/index.mjs +1 -0
- package/pagination/pagination-context.d.ts +4 -45
- package/pagination/pagination-ellipsis.d.ts +1 -1
- package/pagination/use-pagination.d.ts +3 -24
- package/pin-input/index.cjs +2 -0
- package/pin-input/index.d.ts +1 -0
- package/pin-input/index.mjs +1 -0
- package/pin-input/pin-input-context.d.ts +4 -32
- package/pin-input/use-pin-input.d.ts +3 -17
- package/popover/index.cjs +2 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.mjs +1 -0
- package/popover/popover-context.d.ts +4 -33
- package/popover/use-popover.d.ts +3 -17
- package/pressable/use-pressable.d.ts +3 -5
- package/radio-group/index.cjs +4 -0
- package/radio-group/index.d.ts +2 -0
- package/radio-group/index.mjs +2 -0
- package/radio-group/radio-context.d.ts +11 -2
- package/radio-group/radio-group-context.d.ts +4 -49
- package/radio-group/use-radio-group.d.ts +3 -26
- package/range-slider/index.cjs +2 -0
- package/range-slider/index.d.ts +1 -0
- package/range-slider/index.mjs +1 -0
- package/range-slider/range-slider-context.d.ts +4 -58
- package/range-slider/use-range-slider.d.ts +3 -30
- package/rating-group/index.cjs +4 -0
- package/rating-group/index.d.ts +2 -0
- package/rating-group/index.mjs +2 -0
- package/rating-group/rating-group-context.d.ts +4 -31
- package/rating-group/use-rating-group.d.ts +3 -16
- package/segment-group/index.cjs +4 -0
- package/segment-group/index.d.ts +2 -0
- package/segment-group/index.mjs +2 -0
- package/segment-group/segment-context.d.ts +11 -2
- package/segment-group/segment-group-context.d.ts +4 -49
- package/segment-group/use-segment-group.d.ts +3 -26
- package/select/index.cjs +2 -0
- package/select/index.d.ts +1 -0
- package/select/index.mjs +1 -0
- package/select/select-context.d.ts +4 -50
- package/select/use-select.d.ts +3 -26
- package/slider/index.cjs +2 -0
- package/slider/index.d.ts +1 -0
- package/slider/index.mjs +1 -0
- package/slider/slider-context.d.ts +4 -48
- package/slider/use-slider.d.ts +3 -25
- package/splitter/index.cjs +2 -0
- package/splitter/index.d.ts +1 -0
- package/splitter/index.mjs +1 -0
- package/splitter/splitter-context.d.ts +4 -46
- package/splitter/use-splitter.d.ts +4 -25
- package/switch/index.cjs +2 -0
- package/switch/index.d.ts +1 -0
- package/switch/index.mjs +1 -0
- package/switch/switch-context.d.ts +4 -24
- package/switch/use-switch.d.ts +3 -13
- package/tabs/index.cjs +2 -0
- package/tabs/index.d.ts +1 -0
- package/tabs/index.mjs +1 -0
- package/tabs/tabs-context.d.ts +4 -29
- package/tabs/use-tabs.d.ts +3 -15
- package/tags-input/index.cjs +2 -0
- package/tags-input/index.d.ts +1 -0
- package/tags-input/index.mjs +1 -0
- package/tags-input/tags-input-context.d.ts +4 -49
- package/tags-input/use-tags-input.d.ts +3 -26
- package/toast/index.cjs +2 -0
- package/toast/index.d.ts +1 -0
- package/toast/index.mjs +1 -0
- package/toast/toast-item-context.d.ts +4 -35
- package/toast/use-toast-item.d.ts +3 -18
- package/tooltip/index.cjs +2 -0
- package/tooltip/index.d.ts +1 -0
- package/tooltip/index.mjs +1 -0
- package/tooltip/tooltip-context.d.ts +4 -33
- package/tooltip/use-tooltip.d.ts +3 -17
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@ description: All notable changes to this project will be documented in this file
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.9.0] - 2023-08-06
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Enhanced `Carousel` component: Introduced `CarouselIndicator` and `CarouselIndicatorGroup` components. These sub-components offer finer control over the carousel navigation, enabling users to directly access desired carousel slides.
|
|
14
|
+
- Expose `use<X>Context` for all components that use context.
|
|
15
|
+
- Added `ComboboxOptionGroup` and `ComboboxClearTrigger` components to the `Combobox` component.
|
|
16
|
+
- Developers can now set default options for all `Toast` components in their application, ensuring a consistent look and feel across the board.
|
|
17
|
+
|
|
9
18
|
## [0.8.1] - 2023-07-10
|
|
10
19
|
|
|
11
20
|
### Fixed
|
|
@@ -110,7 +119,7 @@ description: All notable changes to this project will be documented in this file
|
|
|
110
119
|
- Add `Toast`
|
|
111
120
|
- Add `Tooltip`
|
|
112
121
|
|
|
113
|
-
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/solid@0.
|
|
122
|
+
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/solid@0.9.0...HEAD
|
|
114
123
|
[0.1.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.1.0
|
|
115
124
|
[0.2.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.2.0
|
|
116
125
|
[0.3.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.3.0
|
|
@@ -120,5 +129,6 @@ description: All notable changes to this project will be documented in this file
|
|
|
120
129
|
[0.7.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.0
|
|
121
130
|
[0.7.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.1
|
|
122
131
|
[0.8.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.8.0
|
|
123
|
-
|
|
124
132
|
[0.8.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.8.1
|
|
133
|
+
|
|
134
|
+
[0.9.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.9.0
|
|
@@ -1,24 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/accordion';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseAccordionReturn } from './use-accordion';
|
|
5
6
|
export type AccordionContext = UseAccordionReturn;
|
|
6
|
-
export declare const AccordionProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
8
|
-
getItemProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
9
|
-
getContentProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
10
|
-
getTriggerProps(props: ItemProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
11
|
-
focusedValue: string | null;
|
|
12
|
-
value: string | string[] | null;
|
|
13
|
-
setValue: (value: string | string[]) => void;
|
|
14
|
-
getItemState: (props: ItemProps) => ItemState;
|
|
15
|
-
}>>, useAccordionContext: () => Accessor<{
|
|
16
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
getItemProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
18
|
-
getContentProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
19
|
-
getTriggerProps(props: ItemProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
20
|
-
focusedValue: string | null;
|
|
21
|
-
value: string | string[] | null;
|
|
22
|
-
setValue: (value: string | string[]) => void;
|
|
23
|
-
getItemState: (props: ItemProps) => ItemState;
|
|
24
|
-
}>;
|
|
7
|
+
export declare const AccordionProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useAccordionContext: () => Accessor<PublicApi<PropTypes>>;
|
package/accordion/index.cjs
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const accordion = require('./accordion.cjs');
|
|
6
6
|
const accordionContent = require('./accordion-content.cjs');
|
|
7
|
+
const accordionContext = require('./accordion-context.cjs');
|
|
7
8
|
const accordionItem = require('./accordion-item.cjs');
|
|
9
|
+
const accordionItemContext = require('./accordion-item-context.cjs');
|
|
8
10
|
const accordionTrigger = require('./accordion-trigger.cjs');
|
|
9
11
|
const accordion$1 = require('@zag-js/accordion');
|
|
10
12
|
|
|
@@ -12,7 +14,9 @@ const accordion$1 = require('@zag-js/accordion');
|
|
|
12
14
|
|
|
13
15
|
exports.Accordion = accordion.Accordion;
|
|
14
16
|
exports.AccordionContent = accordionContent.AccordionContent;
|
|
17
|
+
exports.useAccordionContext = accordionContext.useAccordionContext;
|
|
15
18
|
exports.AccordionItem = accordionItem.AccordionItem;
|
|
19
|
+
exports.useAccordionItemContext = accordionItemContext.useAccordionItemContext;
|
|
16
20
|
exports.AccordionTrigger = accordionTrigger.AccordionTrigger;
|
|
17
21
|
Object.defineProperty(exports, 'accordionAnatomy', {
|
|
18
22
|
enumerable: true,
|
package/accordion/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Accordion, type AccordionProps } from './accordion';
|
|
2
2
|
export { AccordionContent, type AccordionContentProps } from './accordion-content';
|
|
3
|
+
export { useAccordionContext } from './accordion-context';
|
|
3
4
|
export { AccordionItem, type AccordionItemProps } from './accordion-item';
|
|
5
|
+
export { useAccordionItemContext } from './accordion-item-context';
|
|
4
6
|
export { AccordionTrigger, type AccordionTriggerProps } from './accordion-trigger';
|
|
5
7
|
export { accordionAnatomy } from './accordion.anatomy';
|
package/accordion/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Accordion } from './accordion.mjs';
|
|
2
2
|
export { AccordionContent } from './accordion-content.mjs';
|
|
3
|
+
export { useAccordionContext } from './accordion-context.mjs';
|
|
3
4
|
export { AccordionItem } from './accordion-item.mjs';
|
|
5
|
+
export { useAccordionItemContext } from './accordion-item-context.mjs';
|
|
4
6
|
export { AccordionTrigger } from './accordion-trigger.mjs';
|
|
5
7
|
export { anatomy as accordionAnatomy } from '@zag-js/accordion';
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as accordion from '@zag-js/accordion';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseAccordionProps = Optional<accordion.Context, 'id'>;
|
|
5
6
|
export type UseAccordionReturn = ReturnType<typeof useAccordion>;
|
|
6
|
-
export declare const useAccordion: (props: UseAccordionProps) => Accessor<
|
|
7
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
8
|
-
getItemProps(props: accordion.ItemProps): JSX.HTMLAttributes<any>;
|
|
9
|
-
getContentProps(props: accordion.ItemProps): JSX.HTMLAttributes<any>;
|
|
10
|
-
getTriggerProps(props: accordion.ItemProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
11
|
-
focusedValue: string | null;
|
|
12
|
-
value: string | string[] | null;
|
|
13
|
-
setValue: (value: string | string[]) => void;
|
|
14
|
-
getItemState: (props: accordion.ItemProps) => accordion.ItemState;
|
|
15
|
-
}>;
|
|
7
|
+
export declare const useAccordion: (props: UseAccordionProps) => Accessor<accordion.PublicApi<PropTypes>>;
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/avatar';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
2
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
3
5
|
import { type UseAvatarReturn } from './use-avatar';
|
|
4
6
|
export type AvatarContext = UseAvatarReturn;
|
|
5
|
-
export declare const AvatarProvider: ContextProviderComponent<Accessor<
|
|
6
|
-
isLoaded: boolean;
|
|
7
|
-
showFallback: boolean;
|
|
8
|
-
setSrc(src: string): void;
|
|
9
|
-
setLoaded(): void;
|
|
10
|
-
setError(): void;
|
|
11
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
12
|
-
imageProps: JSX.ImgHTMLAttributes<HTMLImageElement>;
|
|
13
|
-
fallbackProps: JSX.HTMLAttributes<any>;
|
|
14
|
-
}>>, useAvatarContext: () => Accessor<{
|
|
15
|
-
isLoaded: boolean;
|
|
16
|
-
showFallback: boolean;
|
|
17
|
-
setSrc(src: string): void;
|
|
18
|
-
setLoaded(): void;
|
|
19
|
-
setError(): void;
|
|
20
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
21
|
-
imageProps: JSX.ImgHTMLAttributes<HTMLImageElement>;
|
|
22
|
-
fallbackProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
}>;
|
|
7
|
+
export declare const AvatarProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useAvatarContext: () => Accessor<PublicApi<PropTypes>>;
|
package/avatar/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const avatar = require('./avatar.cjs');
|
|
6
|
+
const avatarContext = require('./avatar-context.cjs');
|
|
6
7
|
const avatarFallback = require('./avatar-fallback.cjs');
|
|
7
8
|
const avatarImage = require('./avatar-image.cjs');
|
|
8
9
|
const avatar$1 = require('@zag-js/avatar');
|
|
@@ -10,6 +11,7 @@ const avatar$1 = require('@zag-js/avatar');
|
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
exports.Avatar = avatar.Avatar;
|
|
14
|
+
exports.useAvatarContext = avatarContext.useAvatarContext;
|
|
13
15
|
exports.AvatarFallback = avatarFallback.AvatarFallback;
|
|
14
16
|
exports.AvatarImage = avatarImage.AvatarImage;
|
|
15
17
|
Object.defineProperty(exports, 'avatarAnatomy', {
|
package/avatar/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Avatar, type AvatarProps } from './avatar';
|
|
2
|
+
export { useAvatarContext } from './avatar-context';
|
|
2
3
|
export { AvatarFallback, type AvatarFallbackProps } from './avatar-fallback';
|
|
3
4
|
export { AvatarImage, type AvatarImageProps } from './avatar-image';
|
|
4
5
|
export { avatarAnatomy } from './avatar.anatomy';
|
package/avatar/index.mjs
CHANGED
package/avatar/use-avatar.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as avatar from '@zag-js/avatar';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseAvatarProps = Optional<avatar.Context, 'id'>;
|
|
5
6
|
export type UseAvatarReturn = ReturnType<typeof useAvatar>;
|
|
6
|
-
export declare const useAvatar: (props: UseAvatarProps) => Accessor<
|
|
7
|
-
isLoaded: boolean;
|
|
8
|
-
showFallback: boolean;
|
|
9
|
-
setSrc(src: string): void;
|
|
10
|
-
setLoaded(): void;
|
|
11
|
-
setError(): void;
|
|
12
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
13
|
-
imageProps: JSX.ImgHTMLAttributes<HTMLImageElement>;
|
|
14
|
-
fallbackProps: JSX.HTMLAttributes<any>;
|
|
15
|
-
}>;
|
|
7
|
+
export declare const useAvatar: (props: UseAvatarProps) => Accessor<avatar.PublicApi<PropTypes>>;
|
|
@@ -1,62 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/carousel';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseCarouselReturn } from './use-carousel';
|
|
5
6
|
export type CarouselContext = UseCarouselReturn;
|
|
6
|
-
export declare const CarouselProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
index: number;
|
|
8
|
-
scrollProgress: number;
|
|
9
|
-
isAutoplay: boolean;
|
|
10
|
-
canScrollNext: boolean;
|
|
11
|
-
canScrollPrev: boolean;
|
|
12
|
-
scrollTo(index: number, jump?: boolean | undefined): void;
|
|
13
|
-
scrollToNext(): void;
|
|
14
|
-
scrollToPrevious(): void;
|
|
15
|
-
getSlideState: (props: SlideProps) => {
|
|
16
|
-
valueText: string;
|
|
17
|
-
isCurrent: boolean;
|
|
18
|
-
isNext: boolean;
|
|
19
|
-
isPrevious: boolean;
|
|
20
|
-
isInView: boolean;
|
|
21
|
-
};
|
|
22
|
-
play(): void;
|
|
23
|
-
pause(): void;
|
|
24
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
viewportProps: JSX.HTMLAttributes<any>;
|
|
26
|
-
slideGroupProps: JSX.HTMLAttributes<any>;
|
|
27
|
-
getSlideProps(props: SlideProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
prevTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
29
|
-
nextTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
30
|
-
indicatorGroupProps: JSX.HTMLAttributes<any>;
|
|
31
|
-
getIndicatorProps(props: {
|
|
32
|
-
index: number;
|
|
33
|
-
}): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
34
|
-
}>>, useCarouselContext: () => Accessor<{
|
|
35
|
-
index: number;
|
|
36
|
-
scrollProgress: number;
|
|
37
|
-
isAutoplay: boolean;
|
|
38
|
-
canScrollNext: boolean;
|
|
39
|
-
canScrollPrev: boolean;
|
|
40
|
-
scrollTo(index: number, jump?: boolean | undefined): void;
|
|
41
|
-
scrollToNext(): void;
|
|
42
|
-
scrollToPrevious(): void;
|
|
43
|
-
getSlideState: (props: SlideProps) => {
|
|
44
|
-
valueText: string;
|
|
45
|
-
isCurrent: boolean;
|
|
46
|
-
isNext: boolean;
|
|
47
|
-
isPrevious: boolean;
|
|
48
|
-
isInView: boolean;
|
|
49
|
-
};
|
|
50
|
-
play(): void;
|
|
51
|
-
pause(): void;
|
|
52
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
53
|
-
viewportProps: JSX.HTMLAttributes<any>;
|
|
54
|
-
slideGroupProps: JSX.HTMLAttributes<any>;
|
|
55
|
-
getSlideProps(props: SlideProps): JSX.HTMLAttributes<any>;
|
|
56
|
-
prevTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
57
|
-
nextTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
58
|
-
indicatorGroupProps: JSX.HTMLAttributes<any>;
|
|
59
|
-
getIndicatorProps(props: {
|
|
60
|
-
index: number;
|
|
61
|
-
}): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
62
|
-
}>;
|
|
7
|
+
export declare const CarouselProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useCarouselContext: () => Accessor<PublicApi<PropTypes>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const web = require('solid-js/web');
|
|
6
|
+
const solid = require('@zag-js/solid');
|
|
7
|
+
const factory = require('../factory.cjs');
|
|
8
|
+
const carouselContext = require('./carousel-context.cjs');
|
|
9
|
+
|
|
10
|
+
const CarouselIndicatorGroup = props => {
|
|
11
|
+
const carousel = carouselContext.useCarouselContext();
|
|
12
|
+
const indicatorGroupProps = solid.mergeProps(() => carousel().indicatorGroupProps, props);
|
|
13
|
+
return web.createComponent(factory.ark.div, indicatorGroupProps);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.CarouselIndicatorGroup = CarouselIndicatorGroup;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createComponent } from 'solid-js/web';
|
|
2
|
+
import { mergeProps } from '@zag-js/solid';
|
|
3
|
+
import { ark } from '../factory.mjs';
|
|
4
|
+
import { useCarouselContext } from './carousel-context.mjs';
|
|
5
|
+
|
|
6
|
+
const CarouselIndicatorGroup = props => {
|
|
7
|
+
const carousel = useCarouselContext();
|
|
8
|
+
const indicatorGroupProps = mergeProps(() => carousel().indicatorGroupProps, props);
|
|
9
|
+
return createComponent(ark.div, indicatorGroupProps);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { CarouselIndicatorGroup };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const web = require('solid-js/web');
|
|
6
|
+
const solid = require('@zag-js/solid');
|
|
7
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
8
|
+
const factory = require('../factory.cjs');
|
|
9
|
+
const carouselContext = require('./carousel-context.cjs');
|
|
10
|
+
|
|
11
|
+
const CarouselIndicator = props => {
|
|
12
|
+
const [indicatorProps, localProps] = createSplitProps.createSplitProps()(props, ['index', 'readOnly']);
|
|
13
|
+
const carousel = carouselContext.useCarouselContext();
|
|
14
|
+
const mergedProps = solid.mergeProps(() => carousel().getIndicatorProps(indicatorProps), localProps);
|
|
15
|
+
return web.createComponent(factory.ark.button, mergedProps);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.CarouselIndicator = CarouselIndicator;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { JSX } from 'solid-js';
|
|
2
|
+
import type { SlideIndicatorProps } from '@zag-js/carousel';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import type { Assign } from '../types';
|
|
5
|
+
export type CarouselIndicatorProps = Assign<HTMLArkProps<'button'>, SlideIndicatorProps>;
|
|
6
|
+
export declare const CarouselIndicator: (props: CarouselIndicatorProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createComponent } from 'solid-js/web';
|
|
2
|
+
import { mergeProps } from '@zag-js/solid';
|
|
3
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
4
|
+
import { ark } from '../factory.mjs';
|
|
5
|
+
import { useCarouselContext } from './carousel-context.mjs';
|
|
6
|
+
|
|
7
|
+
const CarouselIndicator = props => {
|
|
8
|
+
const [indicatorProps, localProps] = createSplitProps()(props, ['index', 'readOnly']);
|
|
9
|
+
const carousel = useCarouselContext();
|
|
10
|
+
const mergedProps = mergeProps(() => carousel().getIndicatorProps(indicatorProps), localProps);
|
|
11
|
+
return createComponent(ark.button, mergedProps);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { CarouselIndicator };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'solid-js';
|
|
2
|
-
import type { SlideProps } from '@zag-js/carousel
|
|
2
|
+
import type { SlideProps } from '@zag-js/carousel';
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
5
|
export type CarouselSlideProps = Assign<HTMLArkProps<'div'>, SlideProps>;
|
package/carousel/index.cjs
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const carousel = require('./carousel.cjs');
|
|
6
|
+
const carouselContext = require('./carousel-context.cjs');
|
|
6
7
|
const carouselControl = require('./carousel-control.cjs');
|
|
8
|
+
const carouselIndicator = require('./carousel-indicator.cjs');
|
|
9
|
+
const carouselIndicatorGroup = require('./carousel-indicator-group.cjs');
|
|
7
10
|
const carouselNextSlideTrigger = require('./carousel-next-slide-trigger.cjs');
|
|
8
11
|
const carouselPrevSlideTrigger = require('./carousel-prev-slide-trigger.cjs');
|
|
9
12
|
const carouselSlide = require('./carousel-slide.cjs');
|
|
@@ -14,7 +17,10 @@ const carousel_anatomy = require('./carousel.anatomy.cjs');
|
|
|
14
17
|
|
|
15
18
|
|
|
16
19
|
exports.Carousel = carousel.Carousel;
|
|
20
|
+
exports.useCarouselContext = carouselContext.useCarouselContext;
|
|
17
21
|
exports.CarouselControl = carouselControl.CarouselControl;
|
|
22
|
+
exports.CarouselIndicator = carouselIndicator.CarouselIndicator;
|
|
23
|
+
exports.CarouselIndicatorGroup = carouselIndicatorGroup.CarouselIndicatorGroup;
|
|
18
24
|
exports.CarouselNextSlideTrigger = carouselNextSlideTrigger.CarouselNextSlideTrigger;
|
|
19
25
|
exports.CarouselPrevSlideTrigger = carouselPrevSlideTrigger.CarouselPrevSlideTrigger;
|
|
20
26
|
exports.CarouselSlide = carouselSlide.CarouselSlide;
|
package/carousel/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { Carousel, type CarouselProps } from './carousel';
|
|
2
|
+
export { useCarouselContext } from './carousel-context';
|
|
2
3
|
export { CarouselControl, type CarouselControlProps } from './carousel-control';
|
|
4
|
+
export { CarouselIndicator, type CarouselIndicatorProps } from './carousel-indicator';
|
|
5
|
+
export { CarouselIndicatorGroup, type CarouselIndicatorGroupProps, } from './carousel-indicator-group';
|
|
3
6
|
export { CarouselNextSlideTrigger, type CarouselNextSlideTriggerProps, } from './carousel-next-slide-trigger';
|
|
4
7
|
export { CarouselPrevSlideTrigger, type CarouselPrevSlideTriggerProps, } from './carousel-prev-slide-trigger';
|
|
5
8
|
export { CarouselSlide, type CarouselSlideProps } from './carousel-slide';
|
package/carousel/index.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { Carousel } from './carousel.mjs';
|
|
2
|
+
export { useCarouselContext } from './carousel-context.mjs';
|
|
2
3
|
export { CarouselControl } from './carousel-control.mjs';
|
|
4
|
+
export { CarouselIndicator } from './carousel-indicator.mjs';
|
|
5
|
+
export { CarouselIndicatorGroup } from './carousel-indicator-group.mjs';
|
|
3
6
|
export { CarouselNextSlideTrigger } from './carousel-next-slide-trigger.mjs';
|
|
4
7
|
export { CarouselPrevSlideTrigger } from './carousel-prev-slide-trigger.mjs';
|
|
5
8
|
export { CarouselSlide } from './carousel-slide.mjs';
|
|
@@ -1,35 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Accessor
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
3
3
|
import * as carousel from '@zag-js/carousel';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseCarouselProps = Optional<carousel.Context, 'id'>;
|
|
6
|
-
export declare const useCarousel: (props: UseCarouselProps) => Accessor<
|
|
7
|
-
index: number;
|
|
8
|
-
scrollProgress: number;
|
|
9
|
-
isAutoplay: boolean;
|
|
10
|
-
canScrollNext: boolean;
|
|
11
|
-
canScrollPrev: boolean;
|
|
12
|
-
scrollTo(index: number, jump?: boolean | undefined): void;
|
|
13
|
-
scrollToNext(): void;
|
|
14
|
-
scrollToPrevious(): void;
|
|
15
|
-
getSlideState: (props: SlideProps) => {
|
|
16
|
-
valueText: string;
|
|
17
|
-
isCurrent: boolean;
|
|
18
|
-
isNext: boolean;
|
|
19
|
-
isPrevious: boolean;
|
|
20
|
-
isInView: boolean;
|
|
21
|
-
};
|
|
22
|
-
play(): void;
|
|
23
|
-
pause(): void;
|
|
24
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
viewportProps: JSX.HTMLAttributes<any>;
|
|
26
|
-
slideGroupProps: JSX.HTMLAttributes<any>;
|
|
27
|
-
getSlideProps(props: SlideProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
prevTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
29
|
-
nextTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
30
|
-
indicatorGroupProps: JSX.HTMLAttributes<any>;
|
|
31
|
-
getIndicatorProps(props: {
|
|
32
|
-
index: number;
|
|
33
|
-
}): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
34
|
-
}>;
|
|
6
|
+
export declare const useCarousel: (props: UseCarouselProps) => Accessor<carousel.PublicApi<PropTypes>>;
|
|
35
7
|
export type UseCarouselReturn = ReturnType<typeof useCarousel>;
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/checkbox';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseCheckboxReturn } from './use-checkbox';
|
|
5
6
|
export type CheckboxContext = UseCheckboxReturn;
|
|
6
|
-
export declare const CheckboxProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
isChecked: boolean;
|
|
8
|
-
isDisabled: boolean | undefined;
|
|
9
|
-
isIndeterminate: boolean;
|
|
10
|
-
isFocused: boolean | undefined;
|
|
11
|
-
checkedState: CheckedState;
|
|
12
|
-
setChecked(checked: CheckedState): void;
|
|
13
|
-
toggleChecked(): void;
|
|
14
|
-
rootProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
15
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
16
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
18
|
-
}>>, useCheckboxContext: () => Accessor<{
|
|
19
|
-
isChecked: boolean;
|
|
20
|
-
isDisabled: boolean | undefined;
|
|
21
|
-
isIndeterminate: boolean;
|
|
22
|
-
isFocused: boolean | undefined;
|
|
23
|
-
checkedState: CheckedState;
|
|
24
|
-
setChecked(checked: CheckedState): void;
|
|
25
|
-
toggleChecked(): void;
|
|
26
|
-
rootProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
27
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
28
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
29
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
30
|
-
}>;
|
|
7
|
+
export declare const CheckboxProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useCheckboxContext: () => Accessor<PublicApi<PropTypes>>;
|
package/checkbox/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const checkbox = require('./checkbox.cjs');
|
|
6
|
+
const checkboxContext = require('./checkbox-context.cjs');
|
|
6
7
|
const checkboxControl = require('./checkbox-control.cjs');
|
|
7
8
|
const checkboxInput = require('./checkbox-input.cjs');
|
|
8
9
|
const checkboxLabel = require('./checkbox-label.cjs');
|
|
@@ -11,6 +12,7 @@ const checkbox$1 = require('@zag-js/checkbox');
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
exports.Checkbox = checkbox.Checkbox;
|
|
15
|
+
exports.useCheckboxContext = checkboxContext.useCheckboxContext;
|
|
14
16
|
exports.CheckboxControl = checkboxControl.CheckboxControl;
|
|
15
17
|
exports.CheckboxInput = checkboxInput.CheckboxInput;
|
|
16
18
|
exports.CheckboxLabel = checkboxLabel.CheckboxLabel;
|
package/checkbox/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export type { CheckedState } from '@zag-js/checkbox
|
|
1
|
+
export type { CheckedState } from '@zag-js/checkbox';
|
|
2
2
|
export { Checkbox, type CheckboxProps } from './checkbox';
|
|
3
|
+
export { useCheckboxContext } from './checkbox-context';
|
|
3
4
|
export { CheckboxControl, type CheckboxControlProps } from './checkbox-control';
|
|
4
5
|
export { CheckboxInput, type CheckboxInputProps } from './checkbox-input';
|
|
5
6
|
export { CheckboxLabel, type CheckboxLabelProps } from './checkbox-label';
|
package/checkbox/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Checkbox } from './checkbox.mjs';
|
|
2
|
+
export { useCheckboxContext } from './checkbox-context.mjs';
|
|
2
3
|
export { CheckboxControl } from './checkbox-control.mjs';
|
|
3
4
|
export { CheckboxInput } from './checkbox-input.mjs';
|
|
4
5
|
export { CheckboxLabel } from './checkbox-label.mjs';
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Accessor
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
3
3
|
import * as checkbox from '@zag-js/checkbox';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseCheckboxProps = Optional<checkbox.Context, 'id'>;
|
|
6
6
|
export type UseCheckboxReturn = ReturnType<typeof useCheckbox>;
|
|
7
|
-
export declare const useCheckbox: (props: UseCheckboxProps) => Accessor<
|
|
8
|
-
isChecked: boolean;
|
|
9
|
-
isDisabled: boolean | undefined;
|
|
10
|
-
isIndeterminate: boolean;
|
|
11
|
-
isFocused: boolean | undefined;
|
|
12
|
-
checkedState: CheckedState;
|
|
13
|
-
setChecked(checked: CheckedState): void;
|
|
14
|
-
toggleChecked(): void;
|
|
15
|
-
rootProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
16
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
18
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
19
|
-
}>;
|
|
7
|
+
export declare const useCheckbox: (props: UseCheckboxProps) => Accessor<checkbox.PublicApi<PropTypes>>;
|
|
@@ -1,45 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { Accessor
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/color-picker';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
4
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
5
5
|
import { type UseColorPickerReturn } from './use-color-picker';
|
|
6
6
|
export type ColorPickerContext = UseColorPickerReturn;
|
|
7
|
-
export declare const ColorPickerProvider: ContextProviderComponent<Accessor<
|
|
8
|
-
isDragging: boolean;
|
|
9
|
-
value: string;
|
|
10
|
-
valueAsColor: Color;
|
|
11
|
-
channels: [ColorChannel, ColorChannel, ColorChannel];
|
|
12
|
-
setColor(value: string | Color): void;
|
|
13
|
-
setChannelValue(channel: ColorChannel, value: number): void;
|
|
14
|
-
setFormat(format: ColorFormat): void;
|
|
15
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
16
|
-
getAreaProps(props: ColorAreaProps): JSX.HTMLAttributes<any>;
|
|
17
|
-
getAreaGradientProps(props: ColorAreaProps): JSX.HTMLAttributes<any>;
|
|
18
|
-
getAreaThumbProps(props: ColorAreaProps): JSX.HTMLAttributes<any>;
|
|
19
|
-
getChannelSliderTrackProps(props: ColorChannelProps): JSX.HTMLAttributes<any>;
|
|
20
|
-
getChannelSliderBackgroundProps(props: ColorChannelProps): JSX.HTMLAttributes<any>;
|
|
21
|
-
getChannelSliderThumbProps(props: ColorChannelProps): JSX.HTMLAttributes<any>;
|
|
22
|
-
getChannelInputProps(props: ColorChannelInputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
23
|
-
eyeDropperTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
24
|
-
getSwatchBackgroundProps(props: ColorSwatchProps): JSX.HTMLAttributes<any>;
|
|
25
|
-
getSwatchProps(props: ColorSwatchProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
}>>, useColorPickerContext: () => Accessor<{
|
|
27
|
-
isDragging: boolean;
|
|
28
|
-
value: string;
|
|
29
|
-
valueAsColor: Color;
|
|
30
|
-
channels: [ColorChannel, ColorChannel, ColorChannel];
|
|
31
|
-
setColor(value: string | Color): void;
|
|
32
|
-
setChannelValue(channel: ColorChannel, value: number): void;
|
|
33
|
-
setFormat(format: ColorFormat): void;
|
|
34
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
35
|
-
getAreaProps(props: ColorAreaProps): JSX.HTMLAttributes<any>;
|
|
36
|
-
getAreaGradientProps(props: ColorAreaProps): JSX.HTMLAttributes<any>;
|
|
37
|
-
getAreaThumbProps(props: ColorAreaProps): JSX.HTMLAttributes<any>;
|
|
38
|
-
getChannelSliderTrackProps(props: ColorChannelProps): JSX.HTMLAttributes<any>;
|
|
39
|
-
getChannelSliderBackgroundProps(props: ColorChannelProps): JSX.HTMLAttributes<any>;
|
|
40
|
-
getChannelSliderThumbProps(props: ColorChannelProps): JSX.HTMLAttributes<any>;
|
|
41
|
-
getChannelInputProps(props: ColorChannelInputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
42
|
-
eyeDropperTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
43
|
-
getSwatchBackgroundProps(props: ColorSwatchProps): JSX.HTMLAttributes<any>;
|
|
44
|
-
getSwatchProps(props: ColorSwatchProps): JSX.HTMLAttributes<any>;
|
|
45
|
-
}>;
|
|
7
|
+
export declare const ColorPickerProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useColorPickerContext: () => Accessor<PublicApi<PropTypes>>;
|
package/color-picker/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const colorPicker = require('./color-picker.cjs');
|
|
6
6
|
const colorPickerArea = require('./color-picker-area.cjs');
|
|
7
|
+
const colorPickerAreaContext = require('./color-picker-area-context.cjs');
|
|
7
8
|
const colorPickerAreaGradient = require('./color-picker-area-gradient.cjs');
|
|
8
9
|
const colorPickerAreaThumb = require('./color-picker-area-thumb.cjs');
|
|
9
10
|
const colorPickerChannelInput = require('./color-picker-channel-input.cjs');
|
|
@@ -11,9 +12,11 @@ const colorPickerChannelSliderBackground = require('./color-picker-channel-slide
|
|
|
11
12
|
const colorPickerChannelSliderThumb = require('./color-picker-channel-slider-thumb.cjs');
|
|
12
13
|
const colorPickerChannelSliderTrack = require('./color-picker-channel-slider-track.cjs');
|
|
13
14
|
const colorPickerContent = require('./color-picker-content.cjs');
|
|
15
|
+
const colorPickerContext = require('./color-picker-context.cjs');
|
|
14
16
|
const colorPickerEyeDropperTrigger = require('./color-picker-eye-dropper-trigger.cjs');
|
|
15
17
|
const colorPickerSwatch = require('./color-picker-swatch.cjs');
|
|
16
18
|
const colorPickerSwatchBackground = require('./color-picker-swatch-background.cjs');
|
|
19
|
+
const colorPickerSwatchContext = require('./color-picker-swatch-context.cjs');
|
|
17
20
|
const colorPickerSwatchGroup = require('./color-picker-swatch-group.cjs');
|
|
18
21
|
const colorPicker_anatomy = require('./color-picker.anatomy.cjs');
|
|
19
22
|
|
|
@@ -21,6 +24,7 @@ const colorPicker_anatomy = require('./color-picker.anatomy.cjs');
|
|
|
21
24
|
|
|
22
25
|
exports.ColorPicker = colorPicker.ColorPicker;
|
|
23
26
|
exports.ColorPickerArea = colorPickerArea.ColorPickerArea;
|
|
27
|
+
exports.useColorPickerAreaContext = colorPickerAreaContext.useColorPickerAreaContext;
|
|
24
28
|
exports.ColorPickerAreaGradient = colorPickerAreaGradient.ColorPickerAreaGradient;
|
|
25
29
|
exports.ColorPickerAreaThumb = colorPickerAreaThumb.ColorPickerAreaThumb;
|
|
26
30
|
exports.ColorPickerChannelInput = colorPickerChannelInput.ColorPickerChannelInput;
|
|
@@ -28,8 +32,10 @@ exports.ColorPickerChannelSliderBackground = colorPickerChannelSliderBackground.
|
|
|
28
32
|
exports.ColorPickerChannelSliderThumb = colorPickerChannelSliderThumb.ColorPickerChannelSliderThumb;
|
|
29
33
|
exports.ColorPickerChannelSliderTrack = colorPickerChannelSliderTrack.ColorPickerChannelSliderTrack;
|
|
30
34
|
exports.ColorPickerContent = colorPickerContent.ColorPickerContent;
|
|
35
|
+
exports.useColorPickerContext = colorPickerContext.useColorPickerContext;
|
|
31
36
|
exports.ColorPickerEyeDropperTrigger = colorPickerEyeDropperTrigger.ColorPickerEyeDropperTrigger;
|
|
32
37
|
exports.ColorPickerSwatch = colorPickerSwatch.ColorPickerSwatch;
|
|
33
38
|
exports.ColorPickerSwatchBackground = colorPickerSwatchBackground.ColorPickerSwatchBackground;
|
|
39
|
+
exports.useColorPickerSwatchContext = colorPickerSwatchContext.useColorPickerSwatchContext;
|
|
34
40
|
exports.ColorPickerSwatchGroup = colorPickerSwatchGroup.ColorPickerSwatchGroup;
|
|
35
41
|
exports.colorPickerAnatomy = colorPicker_anatomy.colorPickerAnatomy;
|