@ark-ui/solid 0.7.1 → 0.7.2-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.
- package/CHANGELOG.md +10 -3
- package/date-picker/date-picker-month-select.cjs +1 -1
- package/date-picker/date-picker-month-select.mjs +2 -2
- package/date-picker/date-picker-year-select.cjs +1 -1
- package/date-picker/date-picker-year-select.mjs +2 -2
- package/environment/environment.cjs +1 -1
- package/environment/environment.mjs +2 -2
- package/package.json +1 -1
- package/pin-input/pin-input-control.cjs +2 -1
- package/pin-input/pin-input-control.mjs +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,9 +6,15 @@ description: All notable changes to this project will be documented in this file
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.7.2-beta.0] - 2023-07-03
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fixed an issue with SSR
|
|
14
|
+
|
|
9
15
|
## [0.7.1] - 2023-06-30
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
### Fixed
|
|
12
18
|
|
|
13
19
|
- Resolved an issue that types accross various components were not being exported correctly.
|
|
14
20
|
|
|
@@ -93,7 +99,7 @@ description: All notable changes to this project will be documented in this file
|
|
|
93
99
|
- Add `Toast`
|
|
94
100
|
- Add `Tooltip`
|
|
95
101
|
|
|
96
|
-
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/solid@0.7.
|
|
102
|
+
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/solid@0.7.2-beta.0...HEAD
|
|
97
103
|
[0.1.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.1.0
|
|
98
104
|
[0.2.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.2.0
|
|
99
105
|
[0.3.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.3.0
|
|
@@ -101,5 +107,6 @@ description: All notable changes to this project will be documented in this file
|
|
|
101
107
|
[0.5.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.5.0
|
|
102
108
|
[0.6.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.6.0
|
|
103
109
|
[0.7.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.0
|
|
104
|
-
|
|
105
110
|
[0.7.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.1
|
|
111
|
+
|
|
112
|
+
[0.7.2-beta.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.2-beta.0
|
|
@@ -19,7 +19,7 @@ const DatePickerMonthSelect = props => {
|
|
|
19
19
|
return datePicker().getMonths();
|
|
20
20
|
},
|
|
21
21
|
children: month => (() => {
|
|
22
|
-
const _el$ = _tmpl$
|
|
22
|
+
const _el$ = web.getNextElement(_tmpl$);
|
|
23
23
|
web.insert(_el$, () => month.label);
|
|
24
24
|
web.effect(() => _el$.value = month.value);
|
|
25
25
|
return _el$;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent, mergeProps as mergeProps$1, insert, effect, template } from 'solid-js/web';
|
|
1
|
+
import { createComponent, mergeProps as mergeProps$1, getNextElement, insert, effect, template } from 'solid-js/web';
|
|
2
2
|
import { mergeProps } from '@zag-js/solid';
|
|
3
3
|
import { For } from 'solid-js';
|
|
4
4
|
import { ark } from '../factory.mjs';
|
|
@@ -15,7 +15,7 @@ const DatePickerMonthSelect = props => {
|
|
|
15
15
|
return datePicker().getMonths();
|
|
16
16
|
},
|
|
17
17
|
children: month => (() => {
|
|
18
|
-
const _el$ = _tmpl$
|
|
18
|
+
const _el$ = getNextElement(_tmpl$);
|
|
19
19
|
insert(_el$, () => month.label);
|
|
20
20
|
effect(() => _el$.value = month.value);
|
|
21
21
|
return _el$;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent, mergeProps as mergeProps$1, insert, template } from 'solid-js/web';
|
|
1
|
+
import { createComponent, mergeProps as mergeProps$1, getNextElement, insert, template } from 'solid-js/web';
|
|
2
2
|
import { mergeProps } from '@zag-js/solid';
|
|
3
3
|
import { For } from 'solid-js';
|
|
4
4
|
import { ark } from '../factory.mjs';
|
|
@@ -18,7 +18,7 @@ const DatePickerYearSelect = props => {
|
|
|
18
18
|
});
|
|
19
19
|
},
|
|
20
20
|
children: year => (() => {
|
|
21
|
-
const _el$ = _tmpl$
|
|
21
|
+
const _el$ = getNextElement(_tmpl$);
|
|
22
22
|
_el$.value = year;
|
|
23
23
|
insert(_el$, year);
|
|
24
24
|
return _el$;
|
|
@@ -17,7 +17,7 @@ const Environment = props => {
|
|
|
17
17
|
},
|
|
18
18
|
get children() {
|
|
19
19
|
return [web.memo(() => props.children), web.memo(() => web.memo(() => !!!props.value)() && (() => {
|
|
20
|
-
const _el$ = _tmpl$
|
|
20
|
+
const _el$ = web.getNextElement(_tmpl$);
|
|
21
21
|
const _ref$ = spanRef;
|
|
22
22
|
typeof _ref$ === "function" ? web.use(_ref$, _el$) : spanRef = _el$;
|
|
23
23
|
return _el$;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent, memo, use, template } from 'solid-js/web';
|
|
1
|
+
import { createComponent, memo, getNextElement, use, template } from 'solid-js/web';
|
|
2
2
|
import { createMemo } from 'solid-js';
|
|
3
3
|
import { EnvironmentProvider } from './environment-context.mjs';
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ const Environment = props => {
|
|
|
13
13
|
},
|
|
14
14
|
get children() {
|
|
15
15
|
return [memo(() => props.children), memo(() => memo(() => !!!props.value)() && (() => {
|
|
16
|
-
const _el$ = _tmpl$
|
|
16
|
+
const _el$ = getNextElement(_tmpl$);
|
|
17
17
|
const _ref$ = spanRef;
|
|
18
18
|
typeof _ref$ === "function" ? use(_ref$, _el$) : spanRef = _el$;
|
|
19
19
|
return _el$;
|
package/package.json
CHANGED
|
@@ -16,8 +16,9 @@ const PinInputControl = props => {
|
|
|
16
16
|
return web.createComponent(factory.ark.div, web.mergeProps(controlProps, {
|
|
17
17
|
get children() {
|
|
18
18
|
return [web.memo(() => childrenProps.children), (() => {
|
|
19
|
-
const _el$ = _tmpl$
|
|
19
|
+
const _el$ = web.getNextElement(_tmpl$);
|
|
20
20
|
web.spread(_el$, web.mergeProps(() => api().hiddenInputProps), false, false);
|
|
21
|
+
web.runHydrationEvents();
|
|
21
22
|
return _el$;
|
|
22
23
|
})()];
|
|
23
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent, mergeProps as mergeProps$1, memo, spread, template } from 'solid-js/web';
|
|
1
|
+
import { createComponent, mergeProps as mergeProps$1, memo, getNextElement, spread, runHydrationEvents, template } from 'solid-js/web';
|
|
2
2
|
import { mergeProps } from '@zag-js/solid';
|
|
3
3
|
import { splitProps } from 'solid-js';
|
|
4
4
|
import { ark } from '../factory.mjs';
|
|
@@ -12,8 +12,9 @@ const PinInputControl = props => {
|
|
|
12
12
|
return createComponent(ark.div, mergeProps$1(controlProps, {
|
|
13
13
|
get children() {
|
|
14
14
|
return [memo(() => childrenProps.children), (() => {
|
|
15
|
-
const _el$ = _tmpl$
|
|
15
|
+
const _el$ = getNextElement(_tmpl$);
|
|
16
16
|
spread(_el$, mergeProps$1(() => api().hiddenInputProps), false, false);
|
|
17
|
+
runHydrationEvents();
|
|
17
18
|
return _el$;
|
|
18
19
|
})()];
|
|
19
20
|
}
|