optimized-react-component-library-xyz123 0.0.3 → 0.0.5

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # ai-optimera-komponentbibliotek
2
+ # optimized-react-component-library-xyz123
3
3
 
4
4
  Ett modernt, best practice React-komponentbibliotek med TypeScript. Förberett för npm-publicering.
5
5
 
@@ -22,7 +22,7 @@ En standard textinput med props:
22
22
 
23
23
  **Exempel:**
24
24
  ```tsx
25
- import { TextInput } from 'ai-optimera-komponentbibliotek';
25
+ import { TextInput } from 'optimized-react-component-library-xyz123';
26
26
 
27
27
  <TextInput value={text} onChange={handleChange} placeholder="Skriv här" />
28
28
  ```
@@ -35,7 +35,7 @@ En standard checkbox med props:
35
35
 
36
36
  **Exempel:**
37
37
  ```tsx
38
- import { Checkbox } from 'ai-optimera-komponentbibliotek';
38
+ import { Checkbox } from 'optimized-react-component-library-xyz123';
39
39
 
40
40
  <Checkbox checked={isChecked} onChange={handleCheck} label="Godkänn villkor" />
41
41
  ```
@@ -50,7 +50,7 @@ Props (via `TextFieldStandardProps`):
50
50
 
51
51
  **Exempel:**
52
52
  ```tsx
53
- import TextFieldStandard from 'ai-optimera-komponentbibliotek/NewInputComponentStandard/TextFieldStandard/TextFieldStandard';
53
+ import TextFieldStandard from 'optimized-react-component-library-xyz123/NewInputComponentStandard/TextFieldStandard/TextFieldStandard';
54
54
 
55
55
  <TextFieldStandard
56
56
  question={question}
@@ -65,7 +65,7 @@ En textarea-komponent med liknande props som TextFieldStandard.
65
65
 
66
66
  **Exempel:**
67
67
  ```tsx
68
- import TextAreaStandard from 'ai-optimera-komponentbibliotek/NewInputComponentStandard/TextAreaStandard/TextAreaStandard';
68
+ import TextAreaStandard from 'optimized-react-component-library-xyz123/NewInputComponentStandard/TextAreaStandard/TextAreaStandard';
69
69
 
70
70
  <TextAreaStandard
71
71
  question={question}
package/dist/index.d.mts CHANGED
@@ -59,7 +59,11 @@ interface IQuestion {
59
59
  previewLabel?: string;
60
60
  hideQuestion?: boolean;
61
61
  answer?: string;
62
- files?: Array<File>;
62
+ files?: Array<File | {
63
+ file: File;
64
+ dataURL: string;
65
+ id?: string;
66
+ }>;
63
67
  aboutText?: string;
64
68
  isQuestionMandatory?: boolean;
65
69
  questionType?: string;
package/dist/index.d.ts CHANGED
@@ -59,7 +59,11 @@ interface IQuestion {
59
59
  previewLabel?: string;
60
60
  hideQuestion?: boolean;
61
61
  answer?: string;
62
- files?: Array<File>;
62
+ files?: Array<File | {
63
+ file: File;
64
+ dataURL: string;
65
+ id?: string;
66
+ }>;
63
67
  aboutText?: string;
64
68
  isQuestionMandatory?: boolean;
65
69
  questionType?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "A modern React component library using TypeScript.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
29
- "url": "git+https://github.com/YOUR_USERNAME/ai-optimera-komponentbibliotek.git"
29
+ "url": "git+https://github.com/YOUR_USERNAME/optimized-react-component-library-xyz123.git"
30
30
  },
31
31
  "keywords": [
32
32
  "react",
@@ -59,6 +59,7 @@
59
59
  "vitest": "^1.0.0"
60
60
  },
61
61
  "dependencies": {
62
+ "clsx": "^2.1.1",
62
63
  "dompurify": "^3.2.6"
63
64
  }
64
65
  }