@ark-ui/react 1.2.0 → 1.3.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.
Files changed (110) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/README.md +1 -0
  3. package/accordion/index.d.ts +2 -1
  4. package/accordion/{accordion.stories.d.ts → stories/accordion.stories.d.ts} +1 -1
  5. package/avatar/index.d.ts +2 -1
  6. package/avatar/{avatar.stories.d.ts → stories/avatar.stories.d.ts} +1 -1
  7. package/carousel/index.d.ts +2 -1
  8. package/carousel/{carousel.stories.d.ts → stories/carousel.stories.d.ts} +1 -1
  9. package/checkbox/index.d.ts +2 -2
  10. package/checkbox/{checkbox.stories.d.ts → stories/checkbox.stories.d.ts} +1 -1
  11. package/color-picker/index.d.ts +2 -2
  12. package/color-picker/{color-picker.stories.d.ts → stories/color-picker.stories.d.ts} +1 -1
  13. package/combobox/index.d.ts +2 -1
  14. package/combobox/{combobox.stories.d.ts → stories/combobox.stories.d.ts} +1 -1
  15. package/date-picker/index.d.ts +2 -1
  16. package/date-picker/{date-picker.stories.d.ts → stories/date-picker.stories.d.ts} +1 -2
  17. package/date-picker/stories/date-range-picker.stories.d.ts +8 -0
  18. package/dialog/index.d.ts +3 -2
  19. package/dialog/{dialog.stories.d.ts → stories/dialog.stories.d.ts} +1 -1
  20. package/editable/index.d.ts +2 -1
  21. package/editable/{editable.stories.d.ts → stories/editable.stories.d.ts} +1 -1
  22. package/environment/{environment.stories.d.ts → stories/environment.stories.d.ts} +1 -1
  23. package/file-upload/index.d.ts +2 -1
  24. package/file-upload/{file-upload.stories.d.ts → stories/file-upload.stories.d.ts} +1 -1
  25. package/hover-card/index.d.ts +2 -1
  26. package/hover-card/{hover-card.stories.d.ts → stories/hover-card.stories.d.ts} +1 -1
  27. package/index.cjs +44 -24
  28. package/index.d.ts +1 -0
  29. package/index.mjs +10 -0
  30. package/menu/index.d.ts +2 -1
  31. package/menu/stories/context-menu.stories.d.ts +7 -0
  32. package/menu/{menu.stories.d.ts → stories/menu.stories.d.ts} +1 -4
  33. package/menu/stories/nested-menu.stories.d.ts +8 -0
  34. package/number-input/index.d.ts +2 -1
  35. package/number-input/{number-input.stories.d.ts → stories/number-input.stories.d.ts} +1 -1
  36. package/package.json +66 -54
  37. package/pagination/index.d.ts +2 -1
  38. package/pagination/{pagination.stories.d.ts → stories/pagination.stories.d.ts} +1 -1
  39. package/pin-input/index.d.ts +2 -1
  40. package/pin-input/{pin-input.stories.d.ts → stories/pin-input.stories.d.ts} +1 -1
  41. package/popover/index.d.ts +2 -1
  42. package/popover/popover-description.d.ts +1 -1
  43. package/popover/{popover.stories.d.ts → stories/popover.stories.d.ts} +1 -1
  44. package/presence/{presence.stories.d.ts → stories/presence.stories.d.ts} +1 -1
  45. package/progress/index.cjs +38 -0
  46. package/progress/index.d.ts +35 -0
  47. package/progress/index.mjs +25 -0
  48. package/progress/progress-circle-range.cjs +18 -0
  49. package/progress/progress-circle-range.d.ts +8 -0
  50. package/progress/progress-circle-range.mjs +14 -0
  51. package/progress/progress-circle-track.cjs +18 -0
  52. package/progress/progress-circle-track.d.ts +8 -0
  53. package/progress/progress-circle-track.mjs +14 -0
  54. package/progress/progress-circle.cjs +18 -0
  55. package/progress/progress-circle.d.ts +8 -0
  56. package/progress/progress-circle.mjs +14 -0
  57. package/progress/progress-context.cjs +15 -0
  58. package/progress/progress-context.d.ts +6 -0
  59. package/progress/progress-context.mjs +10 -0
  60. package/progress/progress-indicator.cjs +22 -0
  61. package/progress/progress-indicator.d.ts +8 -0
  62. package/progress/progress-indicator.mjs +18 -0
  63. package/progress/progress-label.cjs +19 -0
  64. package/progress/progress-label.d.ts +6 -0
  65. package/progress/progress-label.mjs +15 -0
  66. package/progress/progress-range.cjs +19 -0
  67. package/progress/progress-range.d.ts +6 -0
  68. package/progress/progress-range.mjs +15 -0
  69. package/progress/progress-track.cjs +19 -0
  70. package/progress/progress-track.d.ts +6 -0
  71. package/progress/progress-track.mjs +15 -0
  72. package/progress/progress-value-text.cjs +22 -0
  73. package/progress/progress-value-text.d.ts +6 -0
  74. package/progress/progress-value-text.mjs +18 -0
  75. package/progress/progress.cjs +34 -0
  76. package/progress/progress.d.ts +9 -0
  77. package/progress/progress.mjs +30 -0
  78. package/progress/progress.test.d.ts +1 -0
  79. package/progress/stories/circular-progress.stories.d.ts +11 -0
  80. package/progress/stories/linear-progress.stories.d.ts +12 -0
  81. package/progress/use-progress.cjs +46 -0
  82. package/progress/use-progress.d.ts +12 -0
  83. package/progress/use-progress.mjs +23 -0
  84. package/radio-group/index.d.ts +2 -1
  85. package/radio-group/{radio-group.stories.d.ts → stories/radio-group.stories.d.ts} +1 -1
  86. package/rating-group/index.d.ts +2 -1
  87. package/rating-group/{rating-group.stories.d.ts → stories/rating-group.stories.d.ts} +1 -1
  88. package/segment-group/index.d.ts +2 -1
  89. package/segment-group/{segment-group.stories.d.ts → stories/segment-group.stories.d.ts} +1 -1
  90. package/select/index.d.ts +3 -2
  91. package/select/select-value-text.d.ts +4 -0
  92. package/select/{select.stories.d.ts → stories/select.stories.d.ts} +1 -1
  93. package/slider/index.d.ts +2 -1
  94. package/slider/stories/range-slider.stories.d.ts +14 -0
  95. package/slider/{slider.stories.d.ts → stories/slider.stories.d.ts} +1 -2
  96. package/splitter/index.d.ts +2 -1
  97. package/splitter/{splitter.stories.d.ts → stories/splitter.stories.d.ts} +1 -1
  98. package/switch/index.d.ts +2 -1
  99. package/switch/{switch.stories.d.ts → stories/switch.stories.d.ts} +1 -1
  100. package/tabs/index.d.ts +2 -1
  101. package/tabs/{tabs.stories.d.ts → stories/tabs.stories.d.ts} +1 -1
  102. package/tags-input/index.d.ts +2 -1
  103. package/tags-input/{tags-input.stories.d.ts → stories/tags-input.stories.d.ts} +1 -1
  104. package/tags-input/tags-input-input.cjs +2 -2
  105. package/tags-input/tags-input-input.mjs +2 -2
  106. package/toast/{toast.stories.d.ts → stories/toast.stories.d.ts} +1 -1
  107. package/toggle-group/index.d.ts +2 -1
  108. package/toggle-group/{toggle-group.stories.d.ts → stories/toggle-group.stories.d.ts} +1 -1
  109. package/tooltip/index.d.ts +3 -2
  110. package/tooltip/{tooltip.stories.d.ts → stories/tooltip.stories.d.ts} +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark-ui/react",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
5
5
  "keywords": [
6
6
  "accordion",
@@ -21,6 +21,7 @@
21
21
  "pin input",
22
22
  "popover",
23
23
  "presence",
24
+ "progress",
24
25
  "radio group",
25
26
  "rating group",
26
27
  "segment group",
@@ -60,78 +61,79 @@
60
61
  "release-it": "release-it --config ../../../release-it.json"
61
62
  },
62
63
  "dependencies": {
63
- "@ark-ui/anatomy": "1.2.0",
64
- "@zag-js/accordion": "0.31.1",
65
- "@zag-js/avatar": "0.31.1",
66
- "@zag-js/carousel": "0.31.1",
67
- "@zag-js/checkbox": "0.31.1",
68
- "@zag-js/color-picker": "0.31.1",
69
- "@zag-js/color-utils": "0.31.1",
70
- "@zag-js/combobox": "0.31.1",
71
- "@zag-js/core": "0.31.1",
72
- "@zag-js/date-picker": "0.31.1",
73
- "@zag-js/date-utils": "0.31.1",
74
- "@zag-js/dialog": "0.31.1",
75
- "@zag-js/editable": "0.31.1",
76
- "@zag-js/file-upload": "0.31.1",
77
- "@zag-js/hover-card": "0.31.1",
78
- "@zag-js/menu": "0.31.1",
79
- "@zag-js/number-input": "0.31.1",
80
- "@zag-js/pagination": "0.31.1",
81
- "@zag-js/pin-input": "0.31.1",
82
- "@zag-js/popover": "0.31.1",
83
- "@zag-js/presence": "0.31.1",
84
- "@zag-js/radio-group": "0.31.1",
85
- "@zag-js/rating-group": "0.31.1",
86
- "@zag-js/react": "0.31.1",
87
- "@zag-js/select": "0.31.1",
88
- "@zag-js/slider": "0.31.1",
89
- "@zag-js/splitter": "0.31.1",
90
- "@zag-js/switch": "0.31.1",
91
- "@zag-js/tabs": "0.31.1",
92
- "@zag-js/tags-input": "0.31.1",
93
- "@zag-js/toast": "0.31.1",
94
- "@zag-js/toggle-group": "0.31.1",
95
- "@zag-js/tooltip": "0.31.1",
96
- "@zag-js/types": "0.31.1"
64
+ "@ark-ui/anatomy": "1.3.0",
65
+ "@zag-js/accordion": "0.32.1",
66
+ "@zag-js/avatar": "0.32.1",
67
+ "@zag-js/carousel": "0.32.1",
68
+ "@zag-js/checkbox": "0.32.1",
69
+ "@zag-js/color-picker": "0.32.1",
70
+ "@zag-js/color-utils": "0.32.1",
71
+ "@zag-js/combobox": "0.32.1",
72
+ "@zag-js/core": "0.32.1",
73
+ "@zag-js/date-picker": "0.32.1",
74
+ "@zag-js/date-utils": "0.32.1",
75
+ "@zag-js/dialog": "0.32.1",
76
+ "@zag-js/editable": "0.32.1",
77
+ "@zag-js/file-upload": "0.32.1",
78
+ "@zag-js/hover-card": "0.32.1",
79
+ "@zag-js/menu": "0.32.1",
80
+ "@zag-js/number-input": "0.32.1",
81
+ "@zag-js/pagination": "0.32.1",
82
+ "@zag-js/pin-input": "0.32.1",
83
+ "@zag-js/popover": "0.32.1",
84
+ "@zag-js/presence": "0.32.1",
85
+ "@zag-js/progress": "0.32.1",
86
+ "@zag-js/radio-group": "0.32.1",
87
+ "@zag-js/rating-group": "0.32.1",
88
+ "@zag-js/react": "0.32.1",
89
+ "@zag-js/select": "0.32.1",
90
+ "@zag-js/slider": "0.32.1",
91
+ "@zag-js/splitter": "0.32.1",
92
+ "@zag-js/switch": "0.32.1",
93
+ "@zag-js/tabs": "0.32.1",
94
+ "@zag-js/tags-input": "0.32.1",
95
+ "@zag-js/toast": "0.32.1",
96
+ "@zag-js/toggle-group": "0.32.1",
97
+ "@zag-js/tooltip": "0.32.1",
98
+ "@zag-js/types": "0.32.1"
97
99
  },
98
100
  "devDependencies": {
99
101
  "@release-it/keep-a-changelog": "5.0.0",
100
- "@storybook/addon-a11y": "7.6.4",
101
- "@storybook/addon-essentials": "7.6.4",
102
- "@storybook/addons": "7.6.4",
103
- "@storybook/react": "7.6.4",
104
- "@storybook/react-vite": "7.6.4",
105
- "@testing-library/dom": "9.3.3",
106
- "@testing-library/jest-dom": "6.1.5",
102
+ "@storybook/addon-a11y": "7.6.8",
103
+ "@storybook/addon-essentials": "7.6.8",
104
+ "@storybook/addons": "7.6.8",
105
+ "@storybook/react": "7.6.8",
106
+ "@storybook/react-vite": "7.6.8",
107
+ "@testing-library/dom": "9.3.4",
108
+ "@testing-library/jest-dom": "6.2.0",
107
109
  "@testing-library/react": "14.1.2",
108
- "@testing-library/user-event": "14.5.1",
110
+ "@testing-library/user-event": "14.5.2",
109
111
  "@types/jsdom": "21.1.6",
110
- "@types/react": "18.2.42",
111
- "@types/react-dom": "18.2.17",
112
+ "@types/react": "18.2.47",
113
+ "@types/react-dom": "18.2.18",
112
114
  "@types/testing-library__jest-dom": "5.14.9",
113
- "@typescript-eslint/eslint-plugin": "6.14.0",
114
- "@typescript-eslint/parser": "6.14.0",
115
+ "@typescript-eslint/eslint-plugin": "6.18.1",
116
+ "@typescript-eslint/parser": "6.18.1",
115
117
  "@vitejs/plugin-react": "4.2.1",
116
118
  "@vitest/coverage-v8": "0.34.6",
117
- "eslint": "8.55.0",
119
+ "eslint": "8.56.0",
118
120
  "eslint-plugin-jest-dom": "5.1.0",
119
121
  "eslint-plugin-react": "7.33.2",
120
122
  "eslint-plugin-react-hooks": "4.6.0",
121
123
  "eslint-plugin-testing-library": "6.2.0",
122
124
  "globby": "14.0.0",
123
125
  "jsdom": "23.0.1",
124
- "lucide-react": "0.294.0",
126
+ "lucide-react": "0.309.0",
125
127
  "react": "18.2.0",
126
128
  "react-dom": "18.2.0",
127
129
  "react-frame-component": "5.2.6",
128
- "react-hook-form": "7.49.2",
130
+ "react-hook-form": "7.49.3",
129
131
  "release-it": "17.0.1",
130
132
  "resize-observer-polyfill": "1.5.1",
131
- "storybook": "7.6.4",
133
+ "storybook": "7.6.8",
132
134
  "typescript": "5.3.3",
133
- "vite": "5.0.8",
134
- "vite-plugin-dts": "3.6.4",
135
+ "vite": "5.0.11",
136
+ "vite-plugin-dts": "3.7.0",
135
137
  "vitest": "0.34.6"
136
138
  },
137
139
  "peerDependencies": {
@@ -240,6 +242,11 @@
240
242
  "import": "./presence/index.mjs",
241
243
  "require": "./presence/index.cjs"
242
244
  },
245
+ "./progress": {
246
+ "types": "./progress/index.d.ts",
247
+ "import": "./progress/index.mjs",
248
+ "require": "./progress/index.cjs"
249
+ },
243
250
  "./radio-group": {
244
251
  "types": "./radio-group/index.d.ts",
245
252
  "import": "./radio-group/index.mjs",
@@ -301,10 +308,15 @@
301
308
  "require": "./tooltip/index.cjs"
302
309
  },
303
310
  "./factory": {
304
- "types": "./factory/factory.d.ts",
311
+ "types": "./factory.d.ts",
305
312
  "import": "./factory.mjs",
306
313
  "require": "./factory.cjs"
307
314
  },
315
+ "./portal": {
316
+ "types": "./portal.d.ts",
317
+ "import": "./portal.mjs",
318
+ "require": "./portal.cjs"
319
+ },
308
320
  "./package.json": "./package.json"
309
321
  }
310
322
  }
@@ -1,5 +1,6 @@
1
1
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  /// <reference types="react" />
3
+ import type { ItemLabelDetails as PaginationItemLabelDetails, PageChangeDetails as PaginationPageChangeDetails } from '@zag-js/pagination';
3
4
  import { type PaginationProps } from './pagination';
4
5
  import { usePaginationContext, type PaginationContext } from './pagination-context';
5
6
  import { PaginationEllipsis, type PaginationEllipsisProps } from './pagination-ellipsis';
@@ -14,4 +15,4 @@ declare const Pagination: ForwardRefExoticComponent<PaginationProps & RefAttribu
14
15
  PrevTrigger: ForwardRefExoticComponent<PaginationPrevTriggerProps & RefAttributes<HTMLButtonElement>>;
15
16
  };
16
17
  export { Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger, usePaginationContext, };
17
- export type { PaginationContext, PaginationEllipsisProps, PaginationItemProps, PaginationNextTriggerProps, PaginationPrevTriggerProps, PaginationProps, };
18
+ export type { PaginationContext, PaginationEllipsisProps, PaginationItemLabelDetails, PaginationItemProps, PaginationNextTriggerProps, PaginationPageChangeDetails, PaginationPrevTriggerProps, PaginationProps, };
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import type { Meta } from '@storybook/react';
3
- import { Pagination } from './';
3
+ import { Pagination } from '../';
4
4
  type PaginationType = typeof Pagination;
5
5
  declare const meta: Meta<PaginationType>;
6
6
  export default meta;
@@ -1,5 +1,6 @@
1
1
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  /// <reference types="react" />
3
+ import type { ValueChangeDetails as PinInputValueChangeDetails, ValueInvalidDetails as PinInputValueInvalidDetails } from '@zag-js/pin-input';
3
4
  import { type PinInputProps } from './pin-input';
4
5
  import { usePinInputContext, type PinInputContext } from './pin-input-context';
5
6
  import { PinInputControl, type PinInputControlProps } from './pin-input-control';
@@ -12,4 +13,4 @@ declare const PinInput: ForwardRefExoticComponent<PinInputProps & RefAttributes<
12
13
  Label: ForwardRefExoticComponent<PinInputLabelProps & RefAttributes<HTMLLabelElement>>;
13
14
  };
14
15
  export { PinInput, PinInputControl, PinInputInput, PinInputLabel, usePinInputContext };
15
- export type { PinInputContext, PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputProps, };
16
+ export type { PinInputContext, PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputProps, PinInputValueChangeDetails, PinInputValueInvalidDetails, };
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import type { Meta } from '@storybook/react';
3
- import { PinInput } from './';
3
+ import { PinInput } from '../';
4
4
  type PinInputType = typeof PinInput;
5
5
  declare const meta: Meta<PinInputType>;
6
6
  export default meta;
@@ -1,6 +1,7 @@
1
1
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import { JSX } from 'react/jsx-runtime';
3
3
  /// <reference types="react" />
4
+ import type { OpenChangeDetails as PopoverOpenChangeDetails } from '@zag-js/popover';
4
5
  import { type PopoverProps } from './popover';
5
6
  import { PopoverAnchor, type PopoverAnchorProps } from './popover-anchor';
6
7
  import { PopoverArrow, type PopoverArrowProps } from './popover-arrow';
@@ -27,4 +28,4 @@ declare const Popover: ((props: PopoverProps) => JSX.Element) & {
27
28
  Trigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<HTMLButtonElement>>;
28
29
  };
29
30
  export { Popover, PopoverAnchor, PopoverArrow, PopoverArrowTip, PopoverCloseTrigger, PopoverContent, PopoverDescription, PopoverIndicator, PopoverPositioner, PopoverTitle, PopoverTrigger, usePopoverContext, };
30
- export type { PopoverAnchorProps, PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverContext, PopoverDescriptionProps, PopoverIndicatorProps, PopoverPositionerProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, };
31
+ export type { PopoverAnchorProps, PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverContext, PopoverDescriptionProps, PopoverIndicatorProps, PopoverOpenChangeDetails, PopoverPositionerProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, };
@@ -1,6 +1,6 @@
1
1
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  /// <reference types="react" />
3
3
  import { type HTMLArkProps } from '../factory';
4
- export interface PopoverDescriptionProps extends HTMLArkProps<'div'> {
4
+ export interface PopoverDescriptionProps extends HTMLArkProps<'p'> {
5
5
  }
6
6
  export declare const PopoverDescription: ForwardRefExoticComponent<PopoverDescriptionProps & RefAttributes<HTMLParagraphElement>>;
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import type { Meta } from '@storybook/react';
3
- import { Popover } from './';
3
+ import { Popover } from '../';
4
4
  type PopoverType = typeof Popover;
5
5
  declare const meta: Meta<PopoverType>;
6
6
  export default meta;
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import type { Meta } from '@storybook/react';
3
- import { Presence } from './';
3
+ import { Presence } from '../';
4
4
  type PresenceType = typeof Presence;
5
5
  declare const meta: Meta<PresenceType>;
6
6
  export default meta;
@@ -0,0 +1,38 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const progress = require('./progress.cjs');
7
+ const progressCircle = require('./progress-circle.cjs');
8
+ const progressCircleRange = require('./progress-circle-range.cjs');
9
+ const progressCircleTrack = require('./progress-circle-track.cjs');
10
+ const progressContext = require('./progress-context.cjs');
11
+ const progressIndicator = require('./progress-indicator.cjs');
12
+ const progressLabel = require('./progress-label.cjs');
13
+ const progressRange = require('./progress-range.cjs');
14
+ const progressTrack = require('./progress-track.cjs');
15
+ const progressValueText = require('./progress-value-text.cjs');
16
+
17
+ const Progress = Object.assign(progress.Progress, {
18
+ Root: progress.Progress,
19
+ Label: progressLabel.ProgressLabel,
20
+ Track: progressTrack.ProgressTrack,
21
+ Range: progressRange.ProgressRange,
22
+ ValueText: progressValueText.ProgressValueText,
23
+ Indicator: progressIndicator.ProgressIndicator,
24
+ Circle: progressCircle.ProgressCircle,
25
+ CircleTrack: progressCircleTrack.ProgressCircleTrack,
26
+ CircleRange: progressCircleRange.ProgressCircleRange
27
+ });
28
+
29
+ exports.ProgressCircle = progressCircle.ProgressCircle;
30
+ exports.ProgressCircleRange = progressCircleRange.ProgressCircleRange;
31
+ exports.ProgressCircleTrack = progressCircleTrack.ProgressCircleTrack;
32
+ exports.useProgressContext = progressContext.useProgressContext;
33
+ exports.ProgressIndicator = progressIndicator.ProgressIndicator;
34
+ exports.ProgressLabel = progressLabel.ProgressLabel;
35
+ exports.ProgressRange = progressRange.ProgressRange;
36
+ exports.ProgressTrack = progressTrack.ProgressTrack;
37
+ exports.ProgressValueText = progressValueText.ProgressValueText;
38
+ exports.Progress = Progress;
@@ -0,0 +1,35 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
3
+ /// <reference types="react" />
4
+ import { type ProgressProps } from './progress';
5
+ import { ProgressCircle, type ProgressCircleProps } from './progress-circle';
6
+ import { ProgressCircleRange, type ProgressCircleRangeProps } from './progress-circle-range';
7
+ import { ProgressCircleTrack, type ProgressCircleTrackProps } from './progress-circle-track';
8
+ import { useProgressContext, type ProgressContext } from './progress-context';
9
+ import { ProgressIndicator, type ProgressIndicatorProps } from './progress-indicator';
10
+ import { ProgressLabel, type ProgressLabelProps } from './progress-label';
11
+ import { ProgressRange, type ProgressRangeProps } from './progress-range';
12
+ import { ProgressTrack, type ProgressTrackProps } from './progress-track';
13
+ import { ProgressValueText, type ProgressValueTextProps } from './progress-value-text';
14
+ declare const Progress: ForwardRefExoticComponent<ProgressProps & RefAttributes<HTMLDivElement>> & {
15
+ Root: ForwardRefExoticComponent<ProgressProps & RefAttributes<HTMLDivElement>>;
16
+ Label: ForwardRefExoticComponent<ProgressLabelProps & RefAttributes<HTMLLabelElement>>;
17
+ Track: ForwardRefExoticComponent<ProgressTrackProps & RefAttributes<HTMLDivElement>>;
18
+ Range: ForwardRefExoticComponent<ProgressRangeProps & RefAttributes<HTMLDivElement>>;
19
+ ValueText: ForwardRefExoticComponent<ProgressValueTextProps & RefAttributes<HTMLSpanElement>>;
20
+ Indicator: ForwardRefExoticComponent<ProgressIndicatorProps & RefAttributes<HTMLSpanElement>>;
21
+ Circle: {
22
+ (props: ProgressCircleProps): JSX.Element;
23
+ displayName: string;
24
+ };
25
+ CircleTrack: {
26
+ (props: ProgressCircleTrackProps): JSX.Element;
27
+ displayName: string;
28
+ };
29
+ CircleRange: {
30
+ (props: ProgressCircleRangeProps): JSX.Element;
31
+ displayName: string;
32
+ };
33
+ };
34
+ export { Progress, ProgressCircle, ProgressCircleRange, ProgressCircleTrack, ProgressIndicator, ProgressLabel, ProgressRange, ProgressTrack, ProgressValueText, useProgressContext, };
35
+ export type { ProgressCircleProps, ProgressCircleRangeProps, ProgressCircleTrackProps, ProgressContext, ProgressIndicatorProps, ProgressLabelProps, ProgressProps, ProgressRangeProps, ProgressTrackProps, ProgressValueTextProps, };
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+ import { Progress as Progress$1 } from './progress.mjs';
3
+ import { ProgressCircle } from './progress-circle.mjs';
4
+ import { ProgressCircleRange } from './progress-circle-range.mjs';
5
+ import { ProgressCircleTrack } from './progress-circle-track.mjs';
6
+ export { useProgressContext } from './progress-context.mjs';
7
+ import { ProgressIndicator } from './progress-indicator.mjs';
8
+ import { ProgressLabel } from './progress-label.mjs';
9
+ import { ProgressRange } from './progress-range.mjs';
10
+ import { ProgressTrack } from './progress-track.mjs';
11
+ import { ProgressValueText } from './progress-value-text.mjs';
12
+
13
+ const Progress = Object.assign(Progress$1, {
14
+ Root: Progress$1,
15
+ Label: ProgressLabel,
16
+ Track: ProgressTrack,
17
+ Range: ProgressRange,
18
+ ValueText: ProgressValueText,
19
+ Indicator: ProgressIndicator,
20
+ Circle: ProgressCircle,
21
+ CircleTrack: ProgressCircleTrack,
22
+ CircleRange: ProgressCircleRange
23
+ });
24
+
25
+ export { Progress, ProgressCircle, ProgressCircleRange, ProgressCircleTrack, ProgressIndicator, ProgressLabel, ProgressRange, ProgressTrack, ProgressValueText };
@@ -0,0 +1,18 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const jsxRuntime = require('react/jsx-runtime');
7
+ const react = require('@zag-js/react');
8
+ const factory = require('../factory.cjs');
9
+ const progressContext = require('./progress-context.cjs');
10
+
11
+ const ProgressCircleRange = (props) => {
12
+ const api = progressContext.useProgressContext();
13
+ const mergedProps = react.mergeProps(api.circleRangeProps, props);
14
+ return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.circle, { ...mergedProps });
15
+ };
16
+ ProgressCircleRange.displayName = "ProgressCircleRange";
17
+
18
+ exports.ProgressCircleRange = ProgressCircleRange;
@@ -0,0 +1,8 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { type HTMLArkProps } from '../factory';
3
+ export interface ProgressCircleRangeProps extends HTMLArkProps<'circle'> {
4
+ }
5
+ export declare const ProgressCircleRange: {
6
+ (props: ProgressCircleRangeProps): JSX.Element;
7
+ displayName: string;
8
+ };
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { mergeProps } from '@zag-js/react';
4
+ import { ark } from '../factory.mjs';
5
+ import { useProgressContext } from './progress-context.mjs';
6
+
7
+ const ProgressCircleRange = (props) => {
8
+ const api = useProgressContext();
9
+ const mergedProps = mergeProps(api.circleRangeProps, props);
10
+ return /* @__PURE__ */ jsx(ark.circle, { ...mergedProps });
11
+ };
12
+ ProgressCircleRange.displayName = "ProgressCircleRange";
13
+
14
+ export { ProgressCircleRange };
@@ -0,0 +1,18 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const jsxRuntime = require('react/jsx-runtime');
7
+ const react = require('@zag-js/react');
8
+ const factory = require('../factory.cjs');
9
+ const progressContext = require('./progress-context.cjs');
10
+
11
+ const ProgressCircleTrack = (props) => {
12
+ const api = progressContext.useProgressContext();
13
+ const mergedProps = react.mergeProps(api.circleTrackProps, props);
14
+ return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.circle, { ...mergedProps });
15
+ };
16
+ ProgressCircleTrack.displayName = "ProgressCircleTrack";
17
+
18
+ exports.ProgressCircleTrack = ProgressCircleTrack;
@@ -0,0 +1,8 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { type HTMLArkProps } from '../factory';
3
+ export interface ProgressCircleTrackProps extends HTMLArkProps<'circle'> {
4
+ }
5
+ export declare const ProgressCircleTrack: {
6
+ (props: ProgressCircleTrackProps): JSX.Element;
7
+ displayName: string;
8
+ };
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { mergeProps } from '@zag-js/react';
4
+ import { ark } from '../factory.mjs';
5
+ import { useProgressContext } from './progress-context.mjs';
6
+
7
+ const ProgressCircleTrack = (props) => {
8
+ const api = useProgressContext();
9
+ const mergedProps = mergeProps(api.circleTrackProps, props);
10
+ return /* @__PURE__ */ jsx(ark.circle, { ...mergedProps });
11
+ };
12
+ ProgressCircleTrack.displayName = "ProgressCircleTrack";
13
+
14
+ export { ProgressCircleTrack };
@@ -0,0 +1,18 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const jsxRuntime = require('react/jsx-runtime');
7
+ const react = require('@zag-js/react');
8
+ const factory = require('../factory.cjs');
9
+ const progressContext = require('./progress-context.cjs');
10
+
11
+ const ProgressCircle = (props) => {
12
+ const api = progressContext.useProgressContext();
13
+ const mergedProps = react.mergeProps(api.circleProps, props);
14
+ return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.svg, { ...mergedProps });
15
+ };
16
+ ProgressCircle.displayName = "ProgressCircle";
17
+
18
+ exports.ProgressCircle = ProgressCircle;
@@ -0,0 +1,8 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { type HTMLArkProps } from '../factory';
3
+ export interface ProgressCircleProps extends HTMLArkProps<'svg'> {
4
+ }
5
+ export declare const ProgressCircle: {
6
+ (props: ProgressCircleProps): JSX.Element;
7
+ displayName: string;
8
+ };
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { mergeProps } from '@zag-js/react';
4
+ import { ark } from '../factory.mjs';
5
+ import { useProgressContext } from './progress-context.mjs';
6
+
7
+ const ProgressCircle = (props) => {
8
+ const api = useProgressContext();
9
+ const mergedProps = mergeProps(api.circleProps, props);
10
+ return /* @__PURE__ */ jsx(ark.svg, { ...mergedProps });
11
+ };
12
+ ProgressCircle.displayName = "ProgressCircle";
13
+
14
+ export { ProgressCircle };
@@ -0,0 +1,15 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const createContext = require('../create-context.cjs');
7
+
8
+ const [ProgressProvider, useProgressContext] = createContext.createContext({
9
+ name: "ProgressContext",
10
+ hookName: "useProgressContext",
11
+ providerName: "<ProgressProvider />"
12
+ });
13
+
14
+ exports.ProgressProvider = ProgressProvider;
15
+ exports.useProgressContext = useProgressContext;
@@ -0,0 +1,6 @@
1
+ import { Provider } from 'react';
2
+ /// <reference types="react" />
3
+ import { type UseProgressReturn } from './use-progress';
4
+ export interface ProgressContext extends UseProgressReturn {
5
+ }
6
+ export declare const ProgressProvider: Provider<ProgressContext>, useProgressContext: () => ProgressContext;
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ import { createContext } from '../create-context.mjs';
3
+
4
+ const [ProgressProvider, useProgressContext] = createContext({
5
+ name: "ProgressContext",
6
+ hookName: "useProgressContext",
7
+ providerName: "<ProgressProvider />"
8
+ });
9
+
10
+ export { ProgressProvider, useProgressContext };
@@ -0,0 +1,22 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const jsxRuntime = require('react/jsx-runtime');
7
+ const react$1 = require('@zag-js/react');
8
+ const react = require('react');
9
+ const factory = require('../factory.cjs');
10
+ const progressContext = require('./progress-context.cjs');
11
+
12
+ const ProgressIndicator = react.forwardRef(
13
+ (props, ref) => {
14
+ const { state, ...rest } = props;
15
+ const api = progressContext.useProgressContext();
16
+ const mergedProps = react$1.mergeProps(api.getIndicatorProps({ state }), rest);
17
+ return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
18
+ }
19
+ );
20
+ ProgressIndicator.displayName = "ProgressIndicator";
21
+
22
+ exports.ProgressIndicator = ProgressIndicator;
@@ -0,0 +1,8 @@
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import type { IndicatorProps } from '@zag-js/progress';
4
+ import { type HTMLArkProps } from '../factory';
5
+ import type { Assign } from '../types';
6
+ export interface ProgressIndicatorProps extends Assign<HTMLArkProps<'span'>, IndicatorProps> {
7
+ }
8
+ export declare const ProgressIndicator: ForwardRefExoticComponent<ProgressIndicatorProps & RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,18 @@
1
+ 'use client';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { mergeProps } from '@zag-js/react';
4
+ import { forwardRef } from 'react';
5
+ import { ark } from '../factory.mjs';
6
+ import { useProgressContext } from './progress-context.mjs';
7
+
8
+ const ProgressIndicator = forwardRef(
9
+ (props, ref) => {
10
+ const { state, ...rest } = props;
11
+ const api = useProgressContext();
12
+ const mergedProps = mergeProps(api.getIndicatorProps({ state }), rest);
13
+ return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
14
+ }
15
+ );
16
+ ProgressIndicator.displayName = "ProgressIndicator";
17
+
18
+ export { ProgressIndicator };
@@ -0,0 +1,19 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const jsxRuntime = require('react/jsx-runtime');
7
+ const react$1 = require('@zag-js/react');
8
+ const react = require('react');
9
+ const factory = require('../factory.cjs');
10
+ const progressContext = require('./progress-context.cjs');
11
+
12
+ const ProgressLabel = react.forwardRef((props, ref) => {
13
+ const api = progressContext.useProgressContext();
14
+ const mergedProps = react$1.mergeProps(api.labelProps, props);
15
+ return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.label, { ...mergedProps, ref });
16
+ });
17
+ ProgressLabel.displayName = "ProgressLabel";
18
+
19
+ exports.ProgressLabel = ProgressLabel;
@@ -0,0 +1,6 @@
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ import { type HTMLArkProps } from '../factory';
4
+ export interface ProgressLabelProps extends HTMLArkProps<'label'> {
5
+ }
6
+ export declare const ProgressLabel: ForwardRefExoticComponent<ProgressLabelProps & RefAttributes<HTMLLabelElement>>;
@@ -0,0 +1,15 @@
1
+ 'use client';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { mergeProps } from '@zag-js/react';
4
+ import { forwardRef } from 'react';
5
+ import { ark } from '../factory.mjs';
6
+ import { useProgressContext } from './progress-context.mjs';
7
+
8
+ const ProgressLabel = forwardRef((props, ref) => {
9
+ const api = useProgressContext();
10
+ const mergedProps = mergeProps(api.labelProps, props);
11
+ return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });
12
+ });
13
+ ProgressLabel.displayName = "ProgressLabel";
14
+
15
+ export { ProgressLabel };