@ark-ui/react 0.7.0 → 0.8.0-beta.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.
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const avatarAnatomy: AnatomyInstance<"image" | "root" | "fallback">;
|
|
1
|
+
export { anatomy as avatarAnatomy } from '@zag-js/avatar';
|
package/dist/index.cjs
CHANGED
|
@@ -4,6 +4,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const anatomy = require('@zag-js/anatomy');
|
|
6
6
|
const react = require('@zag-js/react');
|
|
7
|
+
const _switch = require('./switch/switch.cjs');
|
|
8
|
+
const switchControl = require('./switch/switch-control.cjs');
|
|
9
|
+
const switchInput = require('./switch/switch-input.cjs');
|
|
10
|
+
const switchLabel = require('./switch/switch-label.cjs');
|
|
11
|
+
const switchThumb = require('./switch/switch-thumb.cjs');
|
|
7
12
|
const accordion = require('./accordion/accordion.cjs');
|
|
8
13
|
const accordionContent = require('./accordion/accordion-content.cjs');
|
|
9
14
|
const accordionItem = require('./accordion/accordion-item.cjs');
|
|
@@ -12,7 +17,7 @@ const accordion$1 = require('@zag-js/accordion');
|
|
|
12
17
|
const avatar = require('./avatar/avatar.cjs');
|
|
13
18
|
const avatarFallback = require('./avatar/avatar-fallback.cjs');
|
|
14
19
|
const avatarImage = require('./avatar/avatar-image.cjs');
|
|
15
|
-
const
|
|
20
|
+
const avatar$1 = require('@zag-js/avatar');
|
|
16
21
|
const carousel = require('./carousel/carousel.cjs');
|
|
17
22
|
const carouselControl = require('./carousel/carousel-control.cjs');
|
|
18
23
|
const carouselNextSlideTrigger = require('./carousel/carousel-next-slide-trigger.cjs');
|
|
@@ -201,11 +206,6 @@ const splitter = require('./splitter/splitter.cjs');
|
|
|
201
206
|
const splitterPanel = require('./splitter/splitter-panel.cjs');
|
|
202
207
|
const splitterResizeTrigger = require('./splitter/splitter-resize-trigger.cjs');
|
|
203
208
|
const splitter$1 = require('@zag-js/splitter');
|
|
204
|
-
const _switch = require('./switch/switch.cjs');
|
|
205
|
-
const switchControl = require('./switch/switch-control.cjs');
|
|
206
|
-
const switchInput = require('./switch/switch-input.cjs');
|
|
207
|
-
const switchLabel = require('./switch/switch-label.cjs');
|
|
208
|
-
const switchThumb = require('./switch/switch-thumb.cjs');
|
|
209
209
|
const zagSwitch = require('@zag-js/switch');
|
|
210
210
|
const tabContent = require('./tabs/tab-content.cjs');
|
|
211
211
|
const tabIndicator = require('./tabs/tab-indicator.cjs');
|
|
@@ -248,6 +248,11 @@ Object.defineProperty(exports, 'Portal', {
|
|
|
248
248
|
enumerable: true,
|
|
249
249
|
get: () => react.Portal
|
|
250
250
|
});
|
|
251
|
+
exports.Switch = _switch.Switch;
|
|
252
|
+
exports.SwitchControl = switchControl.SwitchControl;
|
|
253
|
+
exports.SwitchInput = switchInput.SwitchInput;
|
|
254
|
+
exports.SwitchLabel = switchLabel.SwitchLabel;
|
|
255
|
+
exports.SwitchThumb = switchThumb.SwitchThumb;
|
|
251
256
|
exports.Accordion = accordion.Accordion;
|
|
252
257
|
exports.AccordionContent = accordionContent.AccordionContent;
|
|
253
258
|
exports.AccordionItem = accordionItem.AccordionItem;
|
|
@@ -259,7 +264,10 @@ Object.defineProperty(exports, 'accordionAnatomy', {
|
|
|
259
264
|
exports.Avatar = avatar.Avatar;
|
|
260
265
|
exports.AvatarFallback = avatarFallback.AvatarFallback;
|
|
261
266
|
exports.AvatarImage = avatarImage.AvatarImage;
|
|
262
|
-
exports
|
|
267
|
+
Object.defineProperty(exports, 'avatarAnatomy', {
|
|
268
|
+
enumerable: true,
|
|
269
|
+
get: () => avatar$1.anatomy
|
|
270
|
+
});
|
|
263
271
|
exports.Carousel = carousel.Carousel;
|
|
264
272
|
exports.CarouselControl = carouselControl.CarouselControl;
|
|
265
273
|
exports.CarouselNextSlideTrigger = carouselNextSlideTrigger.CarouselNextSlideTrigger;
|
|
@@ -493,11 +501,6 @@ Object.defineProperty(exports, 'splitterAnatomy', {
|
|
|
493
501
|
enumerable: true,
|
|
494
502
|
get: () => splitter$1.anatomy
|
|
495
503
|
});
|
|
496
|
-
exports.Switch = _switch.Switch;
|
|
497
|
-
exports.SwitchControl = switchControl.SwitchControl;
|
|
498
|
-
exports.SwitchInput = switchInput.SwitchInput;
|
|
499
|
-
exports.SwitchLabel = switchLabel.SwitchLabel;
|
|
500
|
-
exports.SwitchThumb = switchThumb.SwitchThumb;
|
|
501
504
|
Object.defineProperty(exports, 'switchAnatomy', {
|
|
502
505
|
enumerable: true,
|
|
503
506
|
get: () => zagSwitch.anatomy
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export { createAnatomy } from '@zag-js/anatomy';
|
|
2
2
|
export { Portal } from '@zag-js/react';
|
|
3
|
+
export { Switch } from './switch/switch.mjs';
|
|
4
|
+
export { SwitchControl } from './switch/switch-control.mjs';
|
|
5
|
+
export { SwitchInput } from './switch/switch-input.mjs';
|
|
6
|
+
export { SwitchLabel } from './switch/switch-label.mjs';
|
|
7
|
+
export { SwitchThumb } from './switch/switch-thumb.mjs';
|
|
3
8
|
export { Accordion } from './accordion/accordion.mjs';
|
|
4
9
|
export { AccordionContent } from './accordion/accordion-content.mjs';
|
|
5
10
|
export { AccordionItem } from './accordion/accordion-item.mjs';
|
|
@@ -8,7 +13,7 @@ export { anatomy as accordionAnatomy } from '@zag-js/accordion';
|
|
|
8
13
|
export { Avatar } from './avatar/avatar.mjs';
|
|
9
14
|
export { AvatarFallback } from './avatar/avatar-fallback.mjs';
|
|
10
15
|
export { AvatarImage } from './avatar/avatar-image.mjs';
|
|
11
|
-
export { avatarAnatomy } from '
|
|
16
|
+
export { anatomy as avatarAnatomy } from '@zag-js/avatar';
|
|
12
17
|
export { Carousel } from './carousel/carousel.mjs';
|
|
13
18
|
export { CarouselControl } from './carousel/carousel-control.mjs';
|
|
14
19
|
export { CarouselNextSlideTrigger } from './carousel/carousel-next-slide-trigger.mjs';
|
|
@@ -197,11 +202,6 @@ export { Splitter } from './splitter/splitter.mjs';
|
|
|
197
202
|
export { SplitterPanel } from './splitter/splitter-panel.mjs';
|
|
198
203
|
export { SplitterResizeTrigger } from './splitter/splitter-resize-trigger.mjs';
|
|
199
204
|
export { anatomy as splitterAnatomy } from '@zag-js/splitter';
|
|
200
|
-
export { Switch } from './switch/switch.mjs';
|
|
201
|
-
export { SwitchControl } from './switch/switch-control.mjs';
|
|
202
|
-
export { SwitchInput } from './switch/switch-input.mjs';
|
|
203
|
-
export { SwitchLabel } from './switch/switch-label.mjs';
|
|
204
|
-
export { SwitchThumb } from './switch/switch-thumb.mjs';
|
|
205
205
|
export { anatomy as switchAnatomy } from '@zag-js/switch';
|
|
206
206
|
export { TabContent } from './tabs/tab-content.mjs';
|
|
207
207
|
export { TabIndicator } from './tabs/tab-indicator.mjs';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const _switch = require('./switch.cjs');
|
|
6
|
+
const switchControl = require('./switch-control.cjs');
|
|
7
|
+
const switchInput = require('./switch-input.cjs');
|
|
8
|
+
const switchLabel = require('./switch-label.cjs');
|
|
9
|
+
const switchThumb = require('./switch-thumb.cjs');
|
|
10
|
+
const zagSwitch = require('@zag-js/switch');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.Switch = _switch.Switch;
|
|
15
|
+
exports.SwitchControl = switchControl.SwitchControl;
|
|
16
|
+
exports.SwitchInput = switchInput.SwitchInput;
|
|
17
|
+
exports.SwitchLabel = switchLabel.SwitchLabel;
|
|
18
|
+
exports.SwitchThumb = switchThumb.SwitchThumb;
|
|
19
|
+
Object.defineProperty(exports, 'switchAnatomy', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: () => zagSwitch.anatomy
|
|
22
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Switch } from './switch.mjs';
|
|
2
|
+
export { SwitchControl } from './switch-control.mjs';
|
|
3
|
+
export { SwitchInput } from './switch-input.mjs';
|
|
4
|
+
export { SwitchLabel } from './switch-label.mjs';
|
|
5
|
+
export { SwitchThumb } from './switch-thumb.mjs';
|
|
6
|
+
export { anatomy as switchAnatomy } from '@zag-js/switch';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-beta.0",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@testing-library/react": "14.0.0",
|
|
108
108
|
"@testing-library/user-event": "14.4.3",
|
|
109
109
|
"@types/jsdom": "21.1.1",
|
|
110
|
-
"@types/react": "18.2.
|
|
110
|
+
"@types/react": "18.2.14",
|
|
111
111
|
"@types/react-dom": "18.2.6",
|
|
112
112
|
"@types/testing-library__jest-dom": "5.14.6",
|
|
113
113
|
"@typescript-eslint/eslint-plugin": "5.60.0",
|
|
@@ -144,6 +144,11 @@
|
|
|
144
144
|
"import": "./dist/index.mjs",
|
|
145
145
|
"require": "./dist/index.cjs"
|
|
146
146
|
},
|
|
147
|
+
"switch": {
|
|
148
|
+
"types": "./dist/switch/index.d.ts",
|
|
149
|
+
"import": "./dist/switch/index.mjs",
|
|
150
|
+
"require": "./dist/switch/index.cjs"
|
|
151
|
+
},
|
|
147
152
|
"./package.json": "./package.json"
|
|
148
153
|
}
|
|
149
154
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const anatomy = require('@zag-js/anatomy');
|
|
6
|
-
|
|
7
|
-
const avatarAnatomy = anatomy.createAnatomy("avatar").parts("root", "image", "fallback");
|
|
8
|
-
|
|
9
|
-
exports.avatarAnatomy = avatarAnatomy;
|