@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.
@@ -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,2CAWnE"}
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 = 'span'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
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,MAAM,EAEzD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
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,4 +1,4 @@
1
- type Value<T> = T | null | undefined;
1
+ type Value<T> = T | null | undefined | false;
2
2
  export type ResponsiveValue<T> = 0 extends T ? Value<number | T> | Value<number | T>[] : Value<T> | Value<T>[];
3
3
  export {};
4
4
  //# sourceMappingURL=responsive-value.d.ts.map
@@ -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;AACpC,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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devup-ui/react",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"