@proyecto-viviana/solidaria-components 0.3.0 → 0.3.1
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/dist/Modal.d.ts.map +1 -1
- package/dist/Popover.d.ts.map +1 -1
- package/dist/Toast.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.jsx +10 -4
- package/dist/index.jsx.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/Modal.tsx +8 -1
- package/src/Popover.tsx +10 -1
- package/src/Toast.tsx +7 -1
- package/src/utils.tsx +9 -5
package/dist/index.jsx
CHANGED
|
@@ -138,7 +138,7 @@ function filterDOMProps(props, options = {}) {
|
|
|
138
138
|
function useIsHydrated() {
|
|
139
139
|
if (isServer) return () => false;
|
|
140
140
|
const [isHydrated, setIsHydrated] = createSignal(false);
|
|
141
|
-
|
|
141
|
+
onMount(() => {
|
|
142
142
|
setIsHydrated(true);
|
|
143
143
|
});
|
|
144
144
|
return isHydrated;
|
|
@@ -10047,7 +10047,9 @@ function ModalContent(props) {
|
|
|
10047
10047
|
isExiting: local.isExiting ?? false
|
|
10048
10048
|
}));
|
|
10049
10049
|
const renderProps = useRenderProps({
|
|
10050
|
-
children
|
|
10050
|
+
get children() {
|
|
10051
|
+
return props.children;
|
|
10052
|
+
},
|
|
10051
10053
|
class: local.class,
|
|
10052
10054
|
style: local.style,
|
|
10053
10055
|
defaultClassName: "solidaria-Modal"
|
|
@@ -10267,7 +10269,9 @@ function Popover(props) {
|
|
|
10267
10269
|
isExiting: local.isExiting ?? false
|
|
10268
10270
|
}));
|
|
10269
10271
|
const renderProps = useRenderProps({
|
|
10270
|
-
children
|
|
10272
|
+
get children() {
|
|
10273
|
+
return props.children;
|
|
10274
|
+
},
|
|
10271
10275
|
class: local.class,
|
|
10272
10276
|
style: local.style,
|
|
10273
10277
|
defaultClassName: "solidaria-Popover"
|
|
@@ -10475,7 +10479,9 @@ function ToastRegion(props) {
|
|
|
10475
10479
|
});
|
|
10476
10480
|
const renderValues = createMemo(() => ({ visibleToasts: () => state()?.visibleToasts() ?? [] }));
|
|
10477
10481
|
const renderProps = useRenderProps({
|
|
10478
|
-
children
|
|
10482
|
+
get children() {
|
|
10483
|
+
return props.children;
|
|
10484
|
+
},
|
|
10479
10485
|
class: local.class,
|
|
10480
10486
|
style: local.style,
|
|
10481
10487
|
defaultClassName: "solidaria-ToastRegion"
|