@ark-ui/solid 1.0.0 → 1.1.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 +53 -54
- package/README.md +43 -40
- package/cjs/index.js +263 -38
- package/cjs/index.js.map +1 -1
- package/esm/index.js +248 -39
- package/esm/index.js.map +1 -1
- package/package.json +44 -41
- package/source/color-picker/color-picker-format-select.jsx +13 -0
- package/source/color-picker/color-picker-format-trigger.jsx +8 -0
- package/source/color-picker/color-picker-swatch-context.js +5 -0
- package/source/color-picker/color-picker-swatch-indicator.jsx +10 -0
- package/source/color-picker/color-picker-swatch-trigger.jsx +4 -1
- package/source/color-picker/color-picker-swatch.jsx +6 -3
- package/source/color-picker/color-picker.jsx +3 -1
- package/source/color-picker/index.js +7 -1
- package/source/dialog/dialog-backdrop.jsx +4 -3
- package/source/dialog/dialog-close-trigger.jsx +1 -1
- package/source/dialog/dialog.jsx +4 -2
- package/source/file-upload/file-upload-context.js +5 -0
- package/source/file-upload/file-upload-dropzone.jsx +11 -0
- package/source/file-upload/file-upload-item-context.js +5 -0
- package/source/file-upload/file-upload-item-delete-trigger.jsx +10 -0
- package/source/file-upload/file-upload-item-group.jsx +10 -0
- package/source/file-upload/file-upload-item-name.jsx +12 -0
- package/source/file-upload/file-upload-item-preview.jsx +19 -0
- package/source/file-upload/file-upload-item-size-text.jsx +12 -0
- package/source/file-upload/file-upload-item.jsx +15 -0
- package/source/file-upload/file-upload-label.jsx +8 -0
- package/source/file-upload/file-upload-trigger.jsx +8 -0
- package/source/file-upload/file-upload.jsx +30 -0
- package/source/file-upload/index.js +24 -0
- package/source/file-upload/use-file-upload.js +10 -0
- package/source/index.jsx +1 -0
- package/source/menu/menu-trigger.jsx +5 -2
- package/source/number-input/number-input.jsx +4 -2
- package/source/toast/create-toaster.jsx +6 -7
- package/types/color-picker/color-picker-format-select.d.ts +4 -0
- package/types/color-picker/color-picker-format-trigger.d.ts +4 -0
- package/types/color-picker/color-picker-swatch-context.d.ts +4 -0
- package/types/color-picker/color-picker-swatch-indicator.d.ts +4 -0
- package/types/color-picker/color-picker-swatch-trigger.d.ts +1 -5
- package/types/color-picker/color-picker-transparency-grid.d.ts +2 -5
- package/types/color-picker/index.d.ts +10 -3
- package/types/color-picker/use-color-picker.d.ts +3 -0
- package/types/file-upload/file-upload-context.d.ts +4 -0
- package/types/file-upload/file-upload-dropzone.d.ts +4 -0
- package/types/file-upload/file-upload-item-context.d.ts +4 -0
- package/types/file-upload/file-upload-item-delete-trigger.d.ts +4 -0
- package/types/file-upload/file-upload-item-group.d.ts +8 -0
- package/types/file-upload/file-upload-item-name.d.ts +4 -0
- package/types/file-upload/file-upload-item-preview.d.ts +4 -0
- package/types/file-upload/file-upload-item-size-text.d.ts +4 -0
- package/types/file-upload/file-upload-item.d.ts +6 -0
- package/types/file-upload/file-upload-label.d.ts +4 -0
- package/types/file-upload/file-upload-trigger.d.ts +4 -0
- package/types/file-upload/file-upload.d.ts +9 -0
- package/types/file-upload/index.d.ts +25 -0
- package/types/file-upload/use-file-upload.d.ts +9 -0
- package/types/index.d.ts +1 -0
- package/types/number-input/number-input.d.ts +6 -3
- package/types/toast/create-toaster.d.ts +3 -2
- package/types/toast/toast-context.d.ts +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,80 +6,75 @@ description: All notable changes to this project will be documented in this file
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
-
## [1.
|
|
10
|
-
|
|
11
|
-
We are happy to announce the release of `@ark-ui/solid@1.0.0`. This release includes a number of breaking changes, new features, and bug fixes. Since our last release over two months ago, we will only highlight some key changes. Please refer to the documentation for each component to learn more.
|
|
12
|
-
|
|
13
|
-
### Highlights
|
|
14
|
-
|
|
15
|
-
- Revised the `Presence` component: `lazyMount` and `unmountOnExit` have been added at the root level. For some disclosure components like `Tabs` and `Accordion`, this constitutes a breaking change.
|
|
16
|
-
- Breaking changes have been implemented in `Accordion`, `ColorPicker`, `DatePicker`, `Dialog`, `RadioGroup`, `SegmentGroup`, `TagsInput`, `Toast`, and `ToggleGroup` to achieve a consistent and more intuitive API.
|
|
17
|
-
- Resolved various bugs and addressed accessibility issues across all components.
|
|
18
|
-
|
|
19
|
-
### Stability and Support
|
|
20
|
-
|
|
21
|
-
With the release of version 1.0.0, we are moving towards a more stable version of `@ark-ui/solid`. Future updates will strive to avoid breaking changes, ensuring a smoother experience for our users. If you encounter any issues while upgrading, please do not hesitate to open an issue on our [GitHub repository](https://github.com/chakra-ui/ark/issues). Your feedback is invaluable in helping us improve.
|
|
22
|
-
|
|
23
|
-
## [1.0.0-beta.3] - 2023-10-31
|
|
9
|
+
## [1.1.0] - 2023-11-21
|
|
24
10
|
|
|
25
11
|
### Added
|
|
26
12
|
|
|
27
|
-
- Added
|
|
28
|
-
- Added `
|
|
13
|
+
- Added render function to the `NumberInput` component
|
|
14
|
+
- Added `FileUpload` component
|
|
29
15
|
|
|
30
|
-
|
|
16
|
+
## Changed
|
|
31
17
|
|
|
32
|
-
-
|
|
33
|
-
- Renamed `htmlFor` prop to `for` in `MenuItemGroupLabel`,
|
|
34
|
-
`ComboboxItemGroupLabel` and `SelectItemGroupLabel` component
|
|
18
|
+
- Revised the `ColorPicker` component. Check out the [documentation](https://ark-ui.com/docs/components/color-picker) for more information.
|
|
35
19
|
|
|
36
20
|
### Fixed
|
|
37
21
|
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
## [1.0.0-beta.2] - 2023-10-24
|
|
42
|
-
|
|
43
|
-
### Changed
|
|
22
|
+
- Resolved a problem where the `Dialog.CloseTrigger` was assigned to the wrong `data-part`.
|
|
23
|
+
- Fixed various issues for the `Toast` component that were caused by the API not being wrapped in an `Accessor`.
|
|
44
24
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
25
|
+
```jsx
|
|
26
|
+
// before
|
|
27
|
+
const [Toaster, toast] = createToaster({
|
|
28
|
+
placement: 'top-end',
|
|
29
|
+
render(toast) {
|
|
30
|
+
return (
|
|
31
|
+
<Toast.Root>
|
|
32
|
+
<Toast.Title>{toast.title}</Toast.Title>
|
|
33
|
+
<Toast.Description>{toast.description}</Toast.Description>
|
|
34
|
+
<Toast.CloseTrigger>Close</Toast.CloseTrigger>
|
|
35
|
+
</Toast.Root>
|
|
36
|
+
)
|
|
37
|
+
},
|
|
38
|
+
})
|
|
48
39
|
|
|
49
|
-
|
|
40
|
+
// after
|
|
41
|
+
const [Toaster, toast] = createToaster({
|
|
42
|
+
placement: 'top-end',
|
|
43
|
+
render(toast) {
|
|
44
|
+
return (
|
|
45
|
+
<Toast.Root>
|
|
46
|
+
<Toast.Title>{toast().title}</Toast.Title>
|
|
47
|
+
<Toast.Description>{toast().description}</Toast.Description>
|
|
48
|
+
<Toast.CloseTrigger>Close</Toast.CloseTrigger>
|
|
49
|
+
</Toast.Root>
|
|
50
|
+
)
|
|
51
|
+
},
|
|
52
|
+
})
|
|
53
|
+
```
|
|
50
54
|
|
|
51
|
-
|
|
55
|
+
## [1.0.1] - 2023-11-10
|
|
52
56
|
|
|
53
57
|
### Fixed
|
|
54
58
|
|
|
55
|
-
- Resolved an issue
|
|
59
|
+
- Resolved an issue where the `Dialog` component would not animate on exit.
|
|
60
|
+
- Resolved various issues for `Menu` when lazy mounted.
|
|
61
|
+
- Resolved an issue where `MenuTrigger` could still work even when disabled.
|
|
62
|
+
- Resolved an issue where components like `Dialog`, `Popover` etc would not invoke `onExitComplete`
|
|
63
|
+
- Fixed an issue where placement of the `Combobox` could be incorrect when lazy mounted.
|
|
56
64
|
|
|
57
|
-
## [1.0.0
|
|
58
|
-
|
|
59
|
-
### Added
|
|
60
|
-
|
|
61
|
-
- Added `ToggleGroup` component
|
|
62
|
-
|
|
63
|
-
### Changed
|
|
64
|
-
|
|
65
|
-
- Revised `Comoobox` component to support multiple selection
|
|
66
|
-
- Revised `Select` component to support multiple selection
|
|
65
|
+
## [1.0.0] - 2023-11-09
|
|
67
66
|
|
|
68
|
-
|
|
67
|
+
We are happy to announce the release of `@ark-ui/solid@1.0.0`. This release includes a number of breaking changes, new features, and bug fixes. Since our last release over two months ago, we will only highlight some key changes. Please refer to the documentation for each component to learn more.
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
### Highlights
|
|
71
70
|
|
|
72
|
-
|
|
71
|
+
- Revised the `Presence` component: `lazyMount` and `unmountOnExit` have been added at the root level. For some disclosure components like `Tabs` and `Accordion`, this constitutes a breaking change.
|
|
72
|
+
- Breaking changes have been implemented in `Accordion`, `ColorPicker`, `DatePicker`, `Dialog`, `RadioGroup`, `SegmentGroup`, `TagsInput`, `Toast`, and `ToggleGroup` to achieve a consistent and more intuitive API.
|
|
73
|
+
- Resolved various bugs and addressed accessibility issues across all components.
|
|
73
74
|
|
|
74
|
-
|
|
75
|
+
### Stability and Support
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
// before
|
|
78
|
-
import { accordionAnatomy } from '@ark-ui/solid'
|
|
79
|
-
// after
|
|
80
|
-
import { accordionAnatomy } from '@ark-ui/anatomy' // or
|
|
81
|
-
import { anatomy } from '@ark-ui/anatomy/accordion'
|
|
82
|
-
```
|
|
77
|
+
With the release of version 1.0.0, we are moving towards a more stable version of `@ark-ui/solid`. Future updates will strive to avoid breaking changes, ensuring a smoother experience for our users. If you encounter any issues while upgrading, please do not hesitate to open an issue on our [GitHub repository](https://github.com/chakra-ui/ark/issues). Your feedback is invaluable in helping us improve.
|
|
83
78
|
|
|
84
79
|
## [0.11.0] - 2023-09-08
|
|
85
80
|
|
|
@@ -251,3 +246,7 @@ import { anatomy } from '@ark-ui/anatomy/accordion'
|
|
|
251
246
|
[0.10.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.10.0
|
|
252
247
|
[0.10.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.10.1
|
|
253
248
|
[0.11.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.11.0
|
|
249
|
+
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
```
|
package/README.md
CHANGED
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Welcome to Ark UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Ark UI is a headless, open-source UI library with over 30+ components designed for building reusable, scalable Design Systems. It supports a wide range of JavaScript frameworks, offering dedciated packages for each supported framework.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Supported Frameworks
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
7
|
+
Ark UI is available for the following JavaScript frameworks:
|
|
8
|
+
|
|
9
|
+
- **React**: `@ark-ui/react`
|
|
10
|
+
- **Solid**: `@ark-ui/solid`
|
|
11
|
+
- **Vue**: `@ark-ui/vue`
|
|
12
12
|
|
|
13
13
|
## Available Components
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- [
|
|
18
|
-
- [
|
|
19
|
-
- [
|
|
20
|
-
- [
|
|
21
|
-
- [
|
|
22
|
-
- [
|
|
23
|
-
- [
|
|
24
|
-
- [
|
|
25
|
-
- [
|
|
26
|
-
- [
|
|
27
|
-
- [
|
|
28
|
-
- [
|
|
29
|
-
- [
|
|
30
|
-
- [
|
|
31
|
-
- [
|
|
32
|
-
- [
|
|
33
|
-
- [
|
|
34
|
-
- [
|
|
35
|
-
- [
|
|
36
|
-
- [
|
|
37
|
-
- [
|
|
38
|
-
- [
|
|
39
|
-
- [
|
|
40
|
-
- [
|
|
41
|
-
- [
|
|
42
|
-
- [
|
|
43
|
-
- [
|
|
44
|
-
- [Tooltip](https://ark-ui.com/docs/solid/components/tooltip)
|
|
15
|
+
- [Accordion](https://ark-ui.com/docs/components/accordion)
|
|
16
|
+
- [Avatar](https://ark-ui.com/docs/components/avatar)
|
|
17
|
+
- [Carousel](https://ark-ui.com/docs/components/carousel)
|
|
18
|
+
- [Checkbox](https://ark-ui.com/docs/components/checkbox)
|
|
19
|
+
- [Color Picker](https://ark-ui.com/docs/components/color-picker)
|
|
20
|
+
- [Combobox](https://ark-ui.com/docs/components/combobox)
|
|
21
|
+
- [Date Picker](https://ark-ui.com/docs/components/date-picker)
|
|
22
|
+
- [Dialog](https://ark-ui.com/docs/components/dialog)
|
|
23
|
+
- [Editable](https://ark-ui.com/docs/components/editable)
|
|
24
|
+
- [File Upload](https://ark-ui.com/docs/components/file-upload)
|
|
25
|
+
- [Hover Card](https://ark-ui.com/docs/components/hover-card)
|
|
26
|
+
- [Menu](https://ark-ui.com/docs/components/menu)
|
|
27
|
+
- [Number Input](https://ark-ui.com/docs/components/number-input)
|
|
28
|
+
- [Pagination](https://ark-ui.com/docs/components/pagination)
|
|
29
|
+
- [Pin Input](https://ark-ui.com/docs/components/pin-input)
|
|
30
|
+
- [Popover](https://ark-ui.com/docs/components/popover)
|
|
31
|
+
- [Radio Group](https://ark-ui.com/docs/components/radio-group)
|
|
32
|
+
- [Range Slider](https://ark-ui.com/docs/components/slider)
|
|
33
|
+
- [Rating Group](https://ark-ui.com/docs/components/rating-group)
|
|
34
|
+
- [Segment Group](https://ark-ui.com/docs/components/segment-group)
|
|
35
|
+
- [Select](https://ark-ui.com/docs/components/select)
|
|
36
|
+
- [Slider](https://ark-ui.com/docs/components/slider)
|
|
37
|
+
- [Splitter](https://ark-ui.com/docs/components/splitter)
|
|
38
|
+
- [Switch](https://ark-ui.com/docs/components/switch)
|
|
39
|
+
- [Tabs](https://ark-ui.com/docs/components/tabs)
|
|
40
|
+
- [Tags Input](https://ark-ui.com/docs/components/tags-input)
|
|
41
|
+
- [Toast](https://ark-ui.com/docs/components/toast)
|
|
42
|
+
- [Toggle Group](https://ark-ui.com/docs/components/toggle-group)
|
|
43
|
+
- [Tooltip](https://ark-ui.com/docs/components/tooltip)
|
|
45
44
|
|
|
46
45
|
## Installation
|
|
47
46
|
|
|
@@ -95,10 +94,14 @@ export const MySlider = () => {
|
|
|
95
94
|
|
|
96
95
|
For more detailed documentation and examples, please visit the [official documentation](https://ark-ui.com/).
|
|
97
96
|
|
|
97
|
+
## Roadmap
|
|
98
|
+
|
|
99
|
+
You can request, vote for, and check upcoming features on our [roadmap](https://ark-ui.canny.io/).
|
|
100
|
+
|
|
98
101
|
## Contribution
|
|
99
102
|
|
|
100
|
-
We welcome contributions to
|
|
103
|
+
We welcome contributions to Ark UI. Please read our [contributing guidelines](https://github.com/chakra-ui/ark/blob/main/CONTRIBUTING.md) for more information on how to contribute.
|
|
101
104
|
|
|
102
|
-
##
|
|
105
|
+
## License
|
|
103
106
|
|
|
104
107
|
This project is licensed under the terms of the [MIT license](https://github.com/chakra-ui/ark/blob/main/LICENSE).
|