@ark-ui/solid 0.7.2-beta.4 → 0.7.2-beta.5
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 +9 -2
- 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 +2 -2
- package/environment/environment.mjs +3 -3
- package/package.json +1 -2
- package/pin-input/pin-input-control.cjs +1 -1
- package/pin-input/pin-input-control.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ 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.5] - 2023-07-05
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- solid({ solid: { generate: 'ssr', hydratable: true } })
|
|
14
|
+
|
|
9
15
|
## [0.7.2-beta.4] - 2023-07-05
|
|
10
16
|
|
|
11
17
|
### Added
|
|
@@ -121,7 +127,7 @@ description: All notable changes to this project will be documented in this file
|
|
|
121
127
|
- Add `Toast`
|
|
122
128
|
- Add `Tooltip`
|
|
123
129
|
|
|
124
|
-
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/solid@0.7.2-beta.
|
|
130
|
+
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/solid@0.7.2-beta.5...HEAD
|
|
125
131
|
[0.1.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.1.0
|
|
126
132
|
[0.2.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.2.0
|
|
127
133
|
[0.3.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.3.0
|
|
@@ -134,5 +140,6 @@ description: All notable changes to this project will be documented in this file
|
|
|
134
140
|
[0.7.2-beta.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.2-beta.1
|
|
135
141
|
[0.7.2-beta.2]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.2-beta.2
|
|
136
142
|
[0.7.2-beta.3]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.2-beta.3
|
|
137
|
-
|
|
138
143
|
[0.7.2-beta.4]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.2-beta.4
|
|
144
|
+
|
|
145
|
+
[0.7.2-beta.5]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.2-beta.5
|
|
@@ -18,7 +18,7 @@ const DatePickerMonthSelect = props => {
|
|
|
18
18
|
get each() {
|
|
19
19
|
return datePicker().getMonths();
|
|
20
20
|
},
|
|
21
|
-
children: month => web.ssr(_tmpl$, web.ssrAttribute("value", web.escape(month.value, true), false), web.escape(month.label))
|
|
21
|
+
children: month => web.ssr(_tmpl$, web.ssrHydrationKey() + web.ssrAttribute("value", web.escape(month.value, true), false), web.escape(month.label))
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent, mergeProps as mergeProps$1, ssr, ssrAttribute, escape } from 'solid-js/web';
|
|
1
|
+
import { createComponent, mergeProps as mergeProps$1, ssr, ssrHydrationKey, ssrAttribute, escape } 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';
|
|
@@ -14,7 +14,7 @@ const DatePickerMonthSelect = props => {
|
|
|
14
14
|
get each() {
|
|
15
15
|
return datePicker().getMonths();
|
|
16
16
|
},
|
|
17
|
-
children: month => ssr(_tmpl$, ssrAttribute("value", escape(month.value, true), false), escape(month.label))
|
|
17
|
+
children: month => ssr(_tmpl$, ssrHydrationKey() + ssrAttribute("value", escape(month.value, true), false), escape(month.label))
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
}));
|
|
@@ -21,7 +21,7 @@ const DatePickerYearSelect = props => {
|
|
|
21
21
|
to: 4_000
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
|
-
children: year => web.ssr(_tmpl$, web.ssrAttribute("value", web.escape(year, true), false), web.escape(year))
|
|
24
|
+
children: year => web.ssr(_tmpl$, web.ssrHydrationKey() + web.ssrAttribute("value", web.escape(year, true), false), web.escape(year))
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent, mergeProps as mergeProps$1, ssr, ssrAttribute, escape } from 'solid-js/web';
|
|
1
|
+
import { createComponent, mergeProps as mergeProps$1, ssr, ssrHydrationKey, ssrAttribute, escape } 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';
|
|
@@ -17,7 +17,7 @@ const DatePickerYearSelect = props => {
|
|
|
17
17
|
to: 4_000
|
|
18
18
|
});
|
|
19
19
|
},
|
|
20
|
-
children: year => ssr(_tmpl$, ssrAttribute("value", escape(year, true), false), escape(year))
|
|
20
|
+
children: year => ssr(_tmpl$, ssrHydrationKey() + ssrAttribute("value", escape(year, true), false), escape(year))
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
}));
|
|
@@ -6,7 +6,7 @@ const web = require('solid-js/web');
|
|
|
6
6
|
const solidJs = require('solid-js');
|
|
7
7
|
const environmentContext = require('./environment-context.cjs');
|
|
8
8
|
|
|
9
|
-
const _tmpl$ = "<span hidden></span>";
|
|
9
|
+
const _tmpl$ = ["<span", " hidden></span>"];
|
|
10
10
|
const Environment = props => {
|
|
11
11
|
// eslint-disable-next-line prefer-const
|
|
12
12
|
let spanRef = undefined;
|
|
@@ -16,7 +16,7 @@ const Environment = props => {
|
|
|
16
16
|
return currentEnv();
|
|
17
17
|
},
|
|
18
18
|
get children() {
|
|
19
|
-
return [props.children, !props.value && web.ssr(_tmpl
|
|
19
|
+
return [props.children, !props.value && web.ssr(_tmpl$, web.ssrHydrationKey())];
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createComponent, ssr } from 'solid-js/web';
|
|
1
|
+
import { createComponent, ssr, ssrHydrationKey } from 'solid-js/web';
|
|
2
2
|
import { createMemo } from 'solid-js';
|
|
3
3
|
import { EnvironmentProvider } from './environment-context.mjs';
|
|
4
4
|
|
|
5
|
-
const _tmpl$ = "<span hidden></span>";
|
|
5
|
+
const _tmpl$ = ["<span", " hidden></span>"];
|
|
6
6
|
const Environment = props => {
|
|
7
7
|
// eslint-disable-next-line prefer-const
|
|
8
8
|
let spanRef = undefined;
|
|
@@ -12,7 +12,7 @@ const Environment = props => {
|
|
|
12
12
|
return currentEnv();
|
|
13
13
|
},
|
|
14
14
|
get children() {
|
|
15
|
-
return [props.children, !props.value && ssr(_tmpl
|
|
15
|
+
return [props.children, !props.value && ssr(_tmpl$, ssrHydrationKey())];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
|
-
"version": "0.7.2-beta.
|
|
3
|
+
"version": "0.7.2-beta.5",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"toast",
|
|
34
34
|
"tooltip"
|
|
35
35
|
],
|
|
36
|
-
"type": "module",
|
|
37
36
|
"homepage": "https://ark-ui.com",
|
|
38
37
|
"license": "MIT",
|
|
39
38
|
"sideEffects": false,
|
|
@@ -14,7 +14,7 @@ const PinInputControl = props => {
|
|
|
14
14
|
const controlProps = solid.mergeProps(() => api().controlProps, restProps);
|
|
15
15
|
return web.createComponent(factory.ark.div, web.mergeProps(controlProps, {
|
|
16
16
|
get children() {
|
|
17
|
-
return [childrenProps.children, web.ssrElement("input", api().hiddenInputProps, undefined,
|
|
17
|
+
return [childrenProps.children, web.ssrElement("input", api().hiddenInputProps, undefined, true)];
|
|
18
18
|
}
|
|
19
19
|
}));
|
|
20
20
|
};
|
|
@@ -10,7 +10,7 @@ const PinInputControl = props => {
|
|
|
10
10
|
const controlProps = mergeProps(() => api().controlProps, restProps);
|
|
11
11
|
return createComponent(ark.div, mergeProps$1(controlProps, {
|
|
12
12
|
get children() {
|
|
13
|
-
return [childrenProps.children, ssrElement("input", api().hiddenInputProps, undefined,
|
|
13
|
+
return [childrenProps.children, ssrElement("input", api().hiddenInputProps, undefined, true)];
|
|
14
14
|
}
|
|
15
15
|
}));
|
|
16
16
|
};
|