frame.theme 0.0.4 → 0.0.7

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,10 +1,10 @@
1
- import { TextField as e, useTheme as t } from "@mui/material";
2
- import { useEffect as n, useRef as r, useState as i } from "react";
3
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
4
- //#region src/NumberInput.tsx
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { TextField as n, useTheme as r } from "@mui/material";
3
+ import { useEffect as i, useRef as a, useState as o } from "react";
4
+ //#region src/NumberInput.js
5
5
  function s(s) {
6
- let c = "NumberInput", l = t(), [u, d] = i(""), f = r(null);
7
- return n(() => {
6
+ let c = "NumberInput", l = r(), [u, d] = o(""), f = a(null);
7
+ return i(() => {
8
8
  let e = f.current;
9
9
  if (!e) return;
10
10
  let t = (e) => {
@@ -23,7 +23,7 @@ function s(s) {
23
23
  s.errorMessage,
24
24
  s.sh,
25
25
  s
26
- ]), console.log(`error: ${u}`), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a(e, {
26
+ ]), console.log(`error: ${u}`), t("div", { children: [e(n, {
27
27
  "data-testid": `${c}.Textfield.${s.dataTestid}`,
28
28
  focused: !0,
29
29
  color: "secondary",
@@ -45,7 +45,7 @@ function s(s) {
45
45
  },
46
46
  error: !!u,
47
47
  helperText: u
48
- }), /* @__PURE__ */ a(e, {
48
+ }), e(n, {
49
49
  "data-testid": `${c}.Textfield.${s.dataTestid}.filled.success`,
50
50
  focused: !0,
51
51
  color: "success",
package/package.json CHANGED
@@ -2,15 +2,17 @@
2
2
  "name": "frame.theme",
3
3
  "author": "Christian Todd <Christian.Todd@rodenstock.com>",
4
4
  "license": "UNLICENSED",
5
- "version": "0.0.4",
5
+ "version": "0.0.7",
6
6
  "description": "A sample theme for the Frame project",
7
7
  "type": "module",
8
- "main": "./dist/index.js",
8
+ "main": "./dist/index.cjs.js",
9
+ "module": "./dist/index.es.js",
9
10
  "types": "./dist/index.d.ts",
10
11
  "exports": {
11
12
  ".": {
13
+ "require": "./dist/index.cjs.js",
12
14
  "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js"
15
+ "import": "./dist/index.es.js"
14
16
  }
15
17
  },
16
18
  "files": [
@@ -19,6 +21,7 @@
19
21
  "scripts": {
20
22
  "dev": "vite",
21
23
  "build": "tsc -b && vite build",
24
+ "tsup": "tsup",
22
25
  "prepublishOnly": "yarn build",
23
26
  "lint": "eslint .",
24
27
  "preview": "vite preview"
@@ -45,6 +48,7 @@
45
48
  "eslint-plugin-react-hooks": "^7.1.1",
46
49
  "eslint-plugin-react-refresh": "^0.5.3",
47
50
  "globals": "^17.7.0",
51
+ "tsup": "^8.5.1",
48
52
  "typescript": "~6.0.2",
49
53
  "typescript-eslint": "^8.68.0",
50
54
  "vite": "^8.2.0",