@devup-ui/react 0.1.27 → 0.1.29
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/components/ThemeScript.cjs +1 -2
- package/dist/components/ThemeScript.d.ts.map +1 -1
- package/dist/components/ThemeScript.js +1 -2
- package/dist/components/VStack.d.ts +1 -1
- package/dist/components/VStack.d.ts.map +1 -1
- package/dist/types/responsive-value.d.ts +1 -1
- package/dist/types/responsive-value.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime");function r({auto:t=!0,theme:e}){return n.jsx("script",{dangerouslySetInnerHTML:{__html:e?`(function (){document.documentElement.setAttribute('data-theme',${e});}())`:`(function (){
|
|
2
|
-
const o=localStorage.getItem('__DF_THEME_SELECTED__')||(${String(t)}&&window.matchMedia('(prefers-color-scheme:dark)').matches?'dark':'default');document.documentElement.setAttribute('data-theme',o);})()`}})}exports.ThemeScript=r;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime");function r({auto:t=!0,theme:e}){return n.jsx("script",{dangerouslySetInnerHTML:{__html:e?`(function (){document.documentElement.setAttribute('data-theme',${e});}())`:`(function (){const o=localStorage.getItem('__DF_THEME_SELECTED__')||(${String(t)}&&window.matchMedia('(prefers-color-scheme:dark)').matches?'dark':'default');document.documentElement.setAttribute('data-theme',o);})()`}})}exports.ThemeScript=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeScript.d.ts","sourceRoot":"","sources":["../../src/components/ThemeScript.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,UAAU,CAAA;CACzB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAW,EAAE,KAAK,EAAE,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ThemeScript.d.ts","sourceRoot":"","sources":["../../src/components/ThemeScript.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,UAAU,CAAA;CACzB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAW,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CAUnE"}
|
|
@@ -4,8 +4,7 @@ function r({ auto: e = !0, theme: t }) {
|
|
|
4
4
|
"script",
|
|
5
5
|
{
|
|
6
6
|
dangerouslySetInnerHTML: {
|
|
7
|
-
__html: t ? `(function (){document.documentElement.setAttribute('data-theme',${t});}())` : `(function (){
|
|
8
|
-
const o=localStorage.getItem('__DF_THEME_SELECTED__')||(${String(e)}&&window.matchMedia('(prefers-color-scheme:dark)').matches?'dark':'default');document.documentElement.setAttribute('data-theme',o);})()`
|
|
7
|
+
__html: t ? `(function (){document.documentElement.setAttribute('data-theme',${t});}())` : `(function (){const o=localStorage.getItem('__DF_THEME_SELECTED__')||(${String(e)}&&window.matchMedia('(prefers-color-scheme:dark)').matches?'dark':'default');document.documentElement.setAttribute('data-theme',o);})()`
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DevupProps } from '../types/props';
|
|
2
2
|
import { Merge } from '../types/utils';
|
|
3
|
-
export declare function VStack<T extends React.ElementType = '
|
|
3
|
+
export declare function VStack<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
|
|
4
4
|
//# sourceMappingURL=VStack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../src/components/VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../src/components/VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAExD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responsive-value.d.ts","sourceRoot":"","sources":["../../src/types/responsive-value.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"responsive-value.d.ts","sourceRoot":"","sources":["../../src/types/responsive-value.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAA;AAC5C,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GACxC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,GACvC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA"}
|