@devup-ui/react 1.0.21 → 1.0.22

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/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { VStack } from './components/VStack';
11
11
  export { useTheme } from './hooks/use-theme';
12
12
  export type { DevupProps } from './types/props';
13
13
  export type { DevupTheme, DevupThemeColors } from './types/theme';
14
- export type { DevupThemeTypography } from './types/typography';
14
+ export type { DevupThemeTypography, DevupThemeTypographyKeys, } from './types/typography';
15
15
  export { css } from './utils/css';
16
16
  export { getTheme } from './utils/get-theme';
17
17
  export { globalCss } from './utils/global-css';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACjE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO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,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=null;function a(){if(typeof window>"u")return{get:()=>u,set:()=>{},subscribe:()=>()=>{}};const o=document.documentElement,r=new Set;let n=u;const i=()=>n,s=e=>{n=e,r.forEach(t=>t(n))},c=e=>(r.add(e),s(o.getAttribute("data-theme")),()=>r.delete(e));return new MutationObserver(e=>{for(const t of e)t.type==="attributes"&&t.target instanceof HTMLElement&&s(t.target.getAttribute("data-theme"))}).observe(o,{attributes:!0,attributeFilter:["data-theme"],subtree:!1}),{get:i,set:s,subscribe:c}}exports.createThemeStore=a;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=null;function c(){if(typeof window>"u")return{get:()=>u,set:()=>{},subscribe:()=>()=>{}};const o=document.documentElement,r=new Set;let n=u;const i=()=>n,s=e=>{n=e,r.forEach(t=>t(n))},a=e=>(r.add(e),s(o.getAttribute("data-theme")),()=>r.delete(e));return new MutationObserver(e=>{e.filter(t=>t.type==="attributes"&&t.target instanceof HTMLElement).forEach(t=>{s(t.target.getAttribute("data-theme"))})}).observe(o,{attributes:!0,attributeFilter:["data-theme"],subtree:!1}),{get:i,set:s,subscribe:a}}exports.createThemeStore=c;
@@ -1 +1 @@
1
- {"version":3,"file":"theme-store.d.ts","sourceRoot":"","sources":["../../src/stores/theme-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,KAAK,KAAK,GAAG,MAAM,UAAU,GAAG,IAAI,CAAA;AACpC,KAAK,gBAAgB,GAAG,CAAC,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAA;AAIjD,wBAAgB,gBAAgB;;;;;;oBAYP,KAAK;+BAKM,gBAAgB;EAqBnD"}
1
+ {"version":3,"file":"theme-store.d.ts","sourceRoot":"","sources":["../../src/stores/theme-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,KAAK,KAAK,GAAG,MAAM,UAAU,GAAG,IAAI,CAAA;AACpC,KAAK,gBAAgB,GAAG,CAAC,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAA;AAIjD,wBAAgB,gBAAgB;;;;;;oBAYP,KAAK;+BAKM,gBAAgB;EAuBnD"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- function a() {
2
+ function c() {
3
3
  if (typeof window > "u")
4
4
  return {
5
5
  get: () => null,
@@ -8,14 +8,15 @@ function a() {
8
8
  subscribe: () => () => {
9
9
  }
10
10
  };
11
- const i = document.documentElement, n = /* @__PURE__ */ new Set();
12
- let r = null;
13
- const o = () => r, s = (e) => {
14
- r = e, n.forEach((t) => t(r));
15
- }, u = (e) => (n.add(e), s(i.getAttribute("data-theme")), () => n.delete(e));
11
+ const i = document.documentElement, r = /* @__PURE__ */ new Set();
12
+ let n = null;
13
+ const o = () => n, s = (e) => {
14
+ n = e, r.forEach((t) => t(n));
15
+ }, u = (e) => (r.add(e), s(i.getAttribute("data-theme")), () => r.delete(e));
16
16
  return new MutationObserver((e) => {
17
- for (const t of e)
18
- t.type === "attributes" && t.target instanceof HTMLElement && s(t.target.getAttribute("data-theme"));
17
+ e.filter((t) => t.type === "attributes" && t.target instanceof HTMLElement).forEach((t) => {
18
+ s(t.target.getAttribute("data-theme"));
19
+ });
19
20
  }).observe(i, {
20
21
  attributes: !0,
21
22
  attributeFilter: ["data-theme"],
@@ -27,5 +28,5 @@ function a() {
27
28
  };
28
29
  }
29
30
  export {
30
- a as createThemeStore
31
+ c as createThemeStore
31
32
  };
@@ -1,3 +1,5 @@
1
+ import { Conditional } from './utils';
1
2
  export interface DevupThemeTypography {
2
3
  }
4
+ export type DevupThemeTypographyKeys = Conditional<DevupThemeTypography>;
3
5
  //# sourceMappingURL=typography.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/types/typography.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,oBAAoB;CAAG"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/types/typography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C,MAAM,WAAW,oBAAoB;CAAG;AAExC,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAA"}
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "css-in-js-framework",
17
17
  "react"
18
18
  ],
19
- "version": "1.0.21",
19
+ "version": "1.0.22",
20
20
  "type": "module",
21
21
  "publishConfig": {
22
22
  "access": "public"
@@ -35,15 +35,16 @@
35
35
  ],
36
36
  "types": "./dist/index.d.ts",
37
37
  "dependencies": {
38
- "react": "^19.1",
38
+ "react": "^19.2",
39
39
  "csstype": "latest"
40
40
  },
41
41
  "devDependencies": {
42
- "rollup-plugin-preserve-directives": "^0.4.0",
43
- "vite": "^7.1.7",
44
- "vite-plugin-dts": "^4.5.4",
45
- "typescript": "^5.9.3",
46
- "@types/react": "^19"
42
+ "rollup-plugin-preserve-directives": "^0.4",
43
+ "vite": "^7.1",
44
+ "vite-plugin-dts": "^4.5",
45
+ "typescript": "^5.9",
46
+ "@types/react": "^19.2",
47
+ "@types/node": "^24.9"
47
48
  },
48
49
  "peerDependencies": {
49
50
  "react": "*",