@machinemetrics/mm-react-components 0.2.3-3 → 0.2.3-6

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.
Files changed (33) hide show
  1. package/README.md +6 -25
  2. package/dist/README.md +6 -25
  3. package/dist/components/ui/progress.d.ts +1 -0
  4. package/dist/components/ui/progress.d.ts.map +1 -1
  5. package/dist/docs/GETTING_STARTED.md +3 -5
  6. package/dist/main.d.ts +1 -2
  7. package/dist/main.d.ts.map +1 -1
  8. package/dist/mm-react-components.es.js.map +1 -1
  9. package/dist/mm-react-components.umd.js.map +1 -1
  10. package/dist/scripts/chakra-to-shadcn-migrator/chakra-to-shadcn.config.json +536 -0
  11. package/dist/scripts/chakra-to-shadcn-migrator/lib/args.js +63 -0
  12. package/dist/scripts/chakra-to-shadcn-migrator/lib/colors.js +14 -0
  13. package/dist/scripts/chakra-to-shadcn-migrator/lib/config.js +15 -0
  14. package/dist/scripts/chakra-to-shadcn-migrator/lib/deps.js +105 -0
  15. package/dist/scripts/chakra-to-shadcn-migrator/lib/file-io.js +44 -0
  16. package/dist/scripts/chakra-to-shadcn-migrator/lib/render.js +89 -0
  17. package/dist/scripts/chakra-to-shadcn-migrator/lib/transform.js +550 -0
  18. package/dist/scripts/chakra-to-shadcn-migrator/package.json +11 -0
  19. package/dist/style.css +1 -0
  20. package/dist/tailwind.base.config.js +88 -0
  21. package/package.json +18 -8
  22. package/scripts/README.md +112 -112
  23. package/scripts/init.cjs +159 -0
  24. package/src/index.css +99 -489
  25. package/src/themes/carbide.css +379 -32
  26. package/dist/index.css +0 -527
  27. package/dist/themes/base.css +0 -536
  28. package/dist/themes/carbide.css +0 -1257
  29. package/dist/themes/complete.css +0 -8
  30. package/scripts/chakra-to-shadcn-migrator/README.md +0 -107
  31. package/src/themes/base.css +0 -536
  32. package/src/themes/complete.css +0 -8
  33. /package/{scripts → dist/scripts}/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js +0 -0
package/README.md CHANGED
@@ -57,23 +57,16 @@ cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js ta
57
57
 
58
58
  Note: The exported config is the main config (no preview-only utilities). The preview app in this repo uses a separate `tailwind.preview.config.js` that imports the main config and adds preview utilities.
59
59
 
60
- #### 3. Import Theme (Recommended: JS imports)
60
+ #### 3. Import Styles
61
61
 
62
- Use app-level JavaScript/TypeScript imports so bundlers resolve package subpaths consistently and you can toggle themes at runtime:
62
+ Import the complete styles including Tailwind CSS, base styles, and Carbide theme:
63
63
 
64
64
  ```ts
65
65
  // In your main entry (e.g., src/main.tsx)
66
66
  import '@machinemetrics/mm-react-components/styles';
67
- import '@machinemetrics/mm-react-components/themes/carbide';
68
67
  document.documentElement.classList.add('carbide');
69
68
  ```
70
69
 
71
- Alternatively, you can import the complete theme in CSS:
72
-
73
- ```css
74
- @import '@machinemetrics/mm-react-components/themes/complete';
75
- ```
76
-
77
70
  **What's included:**
78
71
 
79
72
  - ✅ Tailwind CSS reset
@@ -124,22 +117,13 @@ The component library includes a comprehensive theme system with two main themes
124
117
 
125
118
  ### Using Themes
126
119
 
127
- #### Option 1: JS Imports (Recommended)
120
+ #### Option 1: JS Import (Recommended)
128
121
 
129
122
  ```ts
130
123
  import '@machinemetrics/mm-react-components/styles';
131
- import '@machinemetrics/mm-react-components/themes/carbide';
132
124
  document.documentElement.classList.add('carbide');
133
125
  ```
134
126
 
135
- #### Option 2: Manual Theme Import
136
-
137
- ```css
138
- /* Import themes separately for more control */
139
- @import '@machinemetrics/mm-react-components/themes/base';
140
- @import '@machinemetrics/mm-react-components/themes/carbide';
141
- ```
142
-
143
127
  #### Option 3: Use Theme Utilities
144
128
 
145
129
  ```tsx
@@ -250,16 +234,13 @@ This includes:
250
234
  ### Alternative Import Methods
251
235
 
252
236
  ```css
253
- /* Import base theme only */
254
- @import '@machinemetrics/mm-react-components/themes/base';
255
-
256
- /* Import Carbide theme for industrial styling */
257
- @import '@machinemetrics/mm-react-components/themes/carbide';
237
+ /* Import complete styles including Carbide theme */
238
+ @import '@machinemetrics/mm-react-components/styles';
258
239
  ```
259
240
 
260
241
  ```tsx
261
242
  // Import in JavaScript/TypeScript
262
- import '@machinemetrics/mm-react-components/themes/complete';
243
+ import '@machinemetrics/mm-react-components/styles';
263
244
  ```
264
245
 
265
246
  ## TypeScript Support
package/dist/README.md CHANGED
@@ -57,23 +57,16 @@ cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js ta
57
57
 
58
58
  Note: The exported config is the main config (no preview-only utilities). The preview app in this repo uses a separate `tailwind.preview.config.js` that imports the main config and adds preview utilities.
59
59
 
60
- #### 3. Import Theme (Recommended: JS imports)
60
+ #### 3. Import Styles
61
61
 
62
- Use app-level JavaScript/TypeScript imports so bundlers resolve package subpaths consistently and you can toggle themes at runtime:
62
+ Import the complete styles including Tailwind CSS, base styles, and Carbide theme:
63
63
 
64
64
  ```ts
65
65
  // In your main entry (e.g., src/main.tsx)
66
66
  import '@machinemetrics/mm-react-components/styles';
67
- import '@machinemetrics/mm-react-components/themes/carbide';
68
67
  document.documentElement.classList.add('carbide');
69
68
  ```
70
69
 
71
- Alternatively, you can import the complete theme in CSS:
72
-
73
- ```css
74
- @import '@machinemetrics/mm-react-components/themes/complete';
75
- ```
76
-
77
70
  **What's included:**
78
71
 
79
72
  - ✅ Tailwind CSS reset
@@ -124,22 +117,13 @@ The component library includes a comprehensive theme system with two main themes
124
117
 
125
118
  ### Using Themes
126
119
 
127
- #### Option 1: JS Imports (Recommended)
120
+ #### Option 1: JS Import (Recommended)
128
121
 
129
122
  ```ts
130
123
  import '@machinemetrics/mm-react-components/styles';
131
- import '@machinemetrics/mm-react-components/themes/carbide';
132
124
  document.documentElement.classList.add('carbide');
133
125
  ```
134
126
 
135
- #### Option 2: Manual Theme Import
136
-
137
- ```css
138
- /* Import themes separately for more control */
139
- @import '@machinemetrics/mm-react-components/themes/base';
140
- @import '@machinemetrics/mm-react-components/themes/carbide';
141
- ```
142
-
143
127
  #### Option 3: Use Theme Utilities
144
128
 
145
129
  ```tsx
@@ -250,16 +234,13 @@ This includes:
250
234
  ### Alternative Import Methods
251
235
 
252
236
  ```css
253
- /* Import base theme only */
254
- @import '@machinemetrics/mm-react-components/themes/base';
255
-
256
- /* Import Carbide theme for industrial styling */
257
- @import '@machinemetrics/mm-react-components/themes/carbide';
237
+ /* Import complete styles including Carbide theme */
238
+ @import '@machinemetrics/mm-react-components/styles';
258
239
  ```
259
240
 
260
241
  ```tsx
261
242
  // Import in JavaScript/TypeScript
262
- import '@machinemetrics/mm-react-components/themes/complete';
243
+ import '@machinemetrics/mm-react-components/styles';
263
244
  ```
264
245
 
265
246
  ## TypeScript Support
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as ProgressPrimitive from '@radix-ui/react-progress';
3
+ import './progress-animations.css';
3
4
  declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
5
  export { Progress };
5
6
  //# sourceMappingURL=progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,2CAyBrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAG9D,OAAO,2BAA2B,CAAC;AAEnC,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,2CAyBrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -50,11 +50,11 @@ export default {
50
50
  };
51
51
  ```
52
52
 
53
- ### 4. Import Complete Theme
53
+ ### 4. Import Styles
54
54
 
55
55
  ```css
56
56
  /* src/index.css or your main CSS file */
57
- @import '@machinemetrics/mm-react-components/themes/complete';
57
+ @import '@machinemetrics/mm-react-components/styles';
58
58
  ```
59
59
 
60
60
  ### 5. Use Components
@@ -170,9 +170,7 @@ import {
170
170
  } from '@machinemetrics/mm-react-components';
171
171
 
172
172
  // CSS imports
173
- import '@machinemetrics/mm-react-components/themes/complete';
174
- import '@machinemetrics/mm-react-components/themes/base';
175
- import '@machinemetrics/mm-react-components/themes/carbide';
173
+ import '@machinemetrics/mm-react-components/styles';
176
174
 
177
175
  // Configuration
178
176
  import tailwindConfig from '@machinemetrics/mm-react-components/tailwind.config';
package/dist/main.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import '@machinemetrics/mm-react-components/styles';
2
- import '@machinemetrics/mm-react-components/themes/carbide';
1
+ import './index.css';
3
2
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAGA,OAAO,4CAA4C,CAAC;AACpD,OAAO,oDAAoD,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAGA,OAAO,aAAa,CAAC"}