@ark-ui/solid 1.1.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.
- package/CHANGELOG.md +40 -1
- package/README.md +25 -21
- package/cjs/index.js +229 -96
- package/cjs/index.js.map +1 -1
- package/esm/index.js +217 -96
- package/esm/index.js.map +1 -1
- package/package.json +56 -52
- package/source/combobox/use-combobox.js +3 -3
- package/source/date-picker/date-picker.jsx +1 -1
- package/source/editable/editable-area.jsx +2 -2
- package/source/editable/editable-cancel-trigger.jsx +2 -2
- package/source/editable/editable-control.jsx +2 -2
- package/source/editable/editable-edit-trigger.jsx +2 -2
- package/source/editable/editable-input.jsx +2 -2
- package/source/editable/editable-label.jsx +2 -2
- package/source/editable/editable-preview.jsx +2 -2
- package/source/editable/editable-submit-trigger.jsx +2 -2
- package/source/editable/editable.jsx +5 -7
- package/source/factory.jsx +1 -1
- package/source/file-upload/file-upload-item-preview-image.jsx +13 -0
- package/source/file-upload/file-upload-item-preview.jsx +3 -10
- package/source/file-upload/file-upload.jsx +5 -1
- package/source/file-upload/index.js +7 -5
- package/source/index.jsx +1 -0
- package/source/number-input/index.js +1 -1
- package/source/pagination/pagination-ellipsis.jsx +2 -2
- package/source/pagination/pagination.jsx +2 -4
- package/source/pin-input/index.js +1 -1
- package/source/pin-input/pin-input.jsx +2 -2
- package/source/popover/popover-description.jsx +1 -1
- package/source/progress/index.js +22 -0
- package/source/progress/progress-circle-range.jsx +8 -0
- package/source/progress/progress-circle-track.jsx +8 -0
- package/source/progress/progress-circle.jsx +8 -0
- package/source/progress/progress-context.js +5 -0
- package/source/progress/progress-indicator.jsx +10 -0
- package/source/progress/progress-label.jsx +8 -0
- package/source/progress/progress-range.jsx +8 -0
- package/source/progress/progress-track.jsx +8 -0
- package/source/progress/progress-value-text.jsx +10 -0
- package/source/progress/progress.jsx +24 -0
- package/source/progress/use-progress.js +10 -0
- package/source/radio-group/radio-group-item-context.js +2 -2
- package/source/radio-group/radio-group-item.jsx +9 -6
- package/source/rating-group/rating-group-control.jsx +1 -1
- package/source/rating-group/rating-group-item.jsx +2 -2
- package/source/rating-group/rating-group.jsx +2 -2
- package/source/segment-group/segment-group-item-context.js +2 -2
- package/source/segment-group/segment-group-item.jsx +9 -6
- package/source/select/select-indicator.jsx +1 -1
- package/source/select/select-item-group.jsx +2 -2
- package/source/select/select.jsx +2 -2
- package/source/select/use-select.js +3 -3
- package/source/spread.js +3 -2
- package/source/switch/switch-label.jsx +2 -2
- package/source/switch/switch-thumb.jsx +2 -2
- package/source/switch/switch.jsx +2 -2
- package/source/toast/create-toaster.jsx +3 -3
- package/source/toast/index.js +5 -3
- package/source/toast/toast-group.jsx +4 -0
- package/types/accordion/index.d.ts +2 -1
- package/types/avatar/index.d.ts +2 -1
- package/types/carousel/index.d.ts +2 -1
- package/types/checkbox/index.d.ts +2 -2
- package/types/color-picker/index.d.ts +2 -2
- package/types/combobox/index.d.ts +2 -1
- package/types/create-split-props.d.ts +1 -1
- package/types/date-picker/index.d.ts +2 -1
- package/types/dialog/index.d.ts +2 -1
- package/types/editable/index.d.ts +2 -1
- package/types/file-upload/file-upload-item-preview-image.d.ts +4 -0
- package/types/file-upload/file-upload-item-preview.d.ts +6 -1
- package/types/file-upload/index.d.ts +10 -7
- package/types/hover-card/index.d.ts +2 -1
- package/types/index.d.ts +1 -0
- package/types/menu/index.d.ts +2 -1
- package/types/number-input/index.d.ts +3 -2
- package/types/pagination/index.d.ts +2 -1
- package/types/pin-input/index.d.ts +3 -2
- package/types/popover/index.d.ts +2 -1
- package/types/popover/popover-description.d.ts +1 -1
- package/types/presence/split-presence-props.d.ts +1 -1
- package/types/progress/index.d.ts +23 -0
- package/types/progress/progress-circle-range.d.ts +4 -0
- package/types/progress/progress-circle-track.d.ts +4 -0
- package/types/progress/progress-circle.d.ts +4 -0
- package/types/progress/progress-context.d.ts +4 -0
- package/types/progress/progress-indicator.d.ts +6 -0
- package/types/progress/progress-label.d.ts +4 -0
- package/types/progress/progress-range.d.ts +4 -0
- package/types/progress/progress-track.d.ts +4 -0
- package/types/progress/progress-value-text.d.ts +4 -0
- package/types/progress/progress.d.ts +9 -0
- package/types/progress/use-progress.d.ts +9 -0
- package/types/radio-group/index.d.ts +2 -1
- package/types/radio-group/radio-group-item-context.d.ts +1 -1
- package/types/radio-group/radio-group-item.d.ts +6 -3
- package/types/rating-group/index.d.ts +2 -1
- package/types/rating-group/rating-group-item-context.d.ts +2 -3
- package/types/segment-group/index.d.ts +2 -1
- package/types/segment-group/segment-group-item-context.d.ts +3 -14
- package/types/segment-group/segment-group-item.d.ts +6 -2
- package/types/select/index.d.ts +2 -1
- package/types/slider/index.d.ts +2 -1
- package/types/splitter/index.d.ts +2 -1
- package/types/spread.d.ts +1 -1
- package/types/switch/index.d.ts +2 -1
- package/types/tabs/index.d.ts +2 -1
- package/types/tags-input/index.d.ts +2 -1
- package/types/toast/index.d.ts +6 -4
- package/types/toast/toast-group.d.ts +4 -0
- package/types/toggle-group/index.d.ts +2 -1
- package/types/tooltip/index.d.ts +2 -1
- /package/source/number-input/{number-input-field.jsx → number-input-input.jsx} +0 -0
- /package/source/pin-input/{pin-input-field.jsx → pin-input-input.jsx} +0 -0
- /package/types/number-input/{number-input-field.d.ts → number-input-input.d.ts} +0 -0
- /package/types/pin-input/{pin-input-field.d.ts → pin-input-input.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,45 @@ description: All notable changes to this project will be documented in this file
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.3.0] - 2024-01-17
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Added the `Progress` component.
|
|
14
|
+
- Added `valueAsString` to `onValueChange` in `DatePicker` callback details
|
|
15
|
+
- Exported change details typings, for example `AccordionValueChangeDetails` or `DialogOpenChangeDetails`
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Changed `Popover.Description` tag from `div` to `p`
|
|
20
|
+
- Changed `PopoverDescriptionProps` type from `div` to `p`
|
|
21
|
+
- Replaced the styling props for indicator with CSS variables in `RadioGroup`, `SegmentGroup`, and `Tabs`.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Fixed multiple rerenders on `Select` component using search params
|
|
26
|
+
- Fixed reactivity with collection in `Select` and `Combobox` components
|
|
27
|
+
- Fixed the issue where setting `disabled` on `Combobox` does not reflect in combobox item
|
|
28
|
+
- Fix an issue that breaks the `Combobox` when clicking on the input while the menu is open
|
|
29
|
+
- Fixed the issue where `DatePicker` initial value isn't set when using controlled context
|
|
30
|
+
- Resolved an issue that `asChild` did not work properly with `svg` elements.
|
|
31
|
+
- Resolved an issue that `Menu` option item could not be activated by keyboard
|
|
32
|
+
|
|
33
|
+
## [1.2.0] - 2023-12-13
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- Added the `ToastGroup` component.
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- Revised the `FileUpload` component. Check out the [documentation](https://ark-ui.com/docs/components/file-upload) for more information.
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
|
|
45
|
+
- Resolved a problem where `Select.Indicator` was assigned to the wrong `data-part`.
|
|
46
|
+
- Fixed an issue where keyboard interactions within a submenu would bubble up to the parent `Menu`.
|
|
47
|
+
|
|
9
48
|
## [1.1.0] - 2023-11-21
|
|
10
49
|
|
|
11
50
|
### Added
|
|
@@ -13,7 +52,7 @@ description: All notable changes to this project will be documented in this file
|
|
|
13
52
|
- Added render function to the `NumberInput` component
|
|
14
53
|
- Added `FileUpload` component
|
|
15
54
|
|
|
16
|
-
|
|
55
|
+
### Changed
|
|
17
56
|
|
|
18
57
|
- Revised the `ColorPicker` component. Check out the [documentation](https://ark-ui.com/docs/components/color-picker) for more information.
|
|
19
58
|
|
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ Ark UI is available for the following JavaScript frameworks:
|
|
|
28
28
|
- [Pagination](https://ark-ui.com/docs/components/pagination)
|
|
29
29
|
- [Pin Input](https://ark-ui.com/docs/components/pin-input)
|
|
30
30
|
- [Popover](https://ark-ui.com/docs/components/popover)
|
|
31
|
+
- [Progress](https://ark-ui.com/docs/components/progress)
|
|
31
32
|
- [Radio Group](https://ark-ui.com/docs/components/radio-group)
|
|
32
33
|
- [Range Slider](https://ark-ui.com/docs/components/slider)
|
|
33
34
|
- [Rating Group](https://ark-ui.com/docs/components/rating-group)
|
|
@@ -61,31 +62,34 @@ yarn add @ark-ui/solid
|
|
|
61
62
|
To use a component from `@ark-ui/solid`, import it and include it in your application:
|
|
62
63
|
|
|
63
64
|
```tsx
|
|
64
|
-
import {
|
|
65
|
-
Slider,
|
|
66
|
-
SliderControl,
|
|
67
|
-
SliderLabel,
|
|
68
|
-
SliderOutput,
|
|
69
|
-
SliderRange,
|
|
70
|
-
SliderThumb,
|
|
71
|
-
SliderTrack,
|
|
72
|
-
} from '@ark-ui/solid'
|
|
65
|
+
import { Slider, type SliderProps } from '@ark-ui/solid'
|
|
73
66
|
import { createSignal } from 'solid-js'
|
|
74
67
|
|
|
75
|
-
export const MySlider = () => {
|
|
76
|
-
const [value, setValue] = createSignal(
|
|
68
|
+
export const MySlider = (props: SliderProps) => {
|
|
69
|
+
const [value, setValue] = createSignal([42])
|
|
77
70
|
|
|
78
71
|
return (
|
|
79
|
-
<Slider
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
72
|
+
<Slider.Root
|
|
73
|
+
min={0}
|
|
74
|
+
max={100}
|
|
75
|
+
value={value()}
|
|
76
|
+
onValueChange={(e) => setValue(e.value)}
|
|
77
|
+
{...props}
|
|
78
|
+
>
|
|
79
|
+
<Slider.Label>Label</Slider.Label>
|
|
80
|
+
<Slider.ValueText />
|
|
81
|
+
<Slider.Control>
|
|
82
|
+
<Slider.Track>
|
|
83
|
+
<Slider.Range />
|
|
84
|
+
</Slider.Track>
|
|
85
|
+
<Slider.Thumb index={0} />
|
|
86
|
+
</Slider.Control>
|
|
87
|
+
<Slider.MarkerGroup>
|
|
88
|
+
<Slider.Marker value={25}>25</Slider.Marker>
|
|
89
|
+
<Slider.Marker value={50}>50</Slider.Marker>
|
|
90
|
+
<Slider.Marker value={75}>75</Slider.Marker>
|
|
91
|
+
</Slider.MarkerGroup>
|
|
92
|
+
</Slider.Root>
|
|
89
93
|
)
|
|
90
94
|
}
|
|
91
95
|
```
|