@emeraldemperaur/vector-sigma 1.0.0 → 1.1.0

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 (46) hide show
  1. package/README.md +113 -112
  2. package/lib/index.cjs +42650 -66
  3. package/lib/index.esm.js +42609 -57
  4. package/lib/styles.css +1 -0
  5. package/lib/types/components/avatar/avatar.d.ts +25 -2
  6. package/lib/types/components/button/button.d.ts +22 -2
  7. package/lib/types/components/checkbox/checkbox.d.ts +27 -2
  8. package/lib/types/components/conditional/conditional.d.ts +29 -1
  9. package/lib/types/components/datepicker/datepicker.d.ts +24 -2
  10. package/lib/types/components/daterangepicker/daterangepicker.d.ts +24 -2
  11. package/lib/types/components/datetimepicker/datetimepicker.d.ts +24 -2
  12. package/lib/types/components/dropdown/dropdown.d.ts +32 -2
  13. package/lib/types/components/file/file.d.ts +24 -2
  14. package/lib/types/components/file/filemultiple.d.ts +23 -0
  15. package/lib/types/components/icons/flagicon.d.ts +8 -0
  16. package/lib/types/components/icons/icons.d.ts +8 -0
  17. package/lib/types/components/image/image.d.ts +17 -0
  18. package/lib/types/components/input/input.d.ts +3 -2
  19. package/lib/types/components/input/passwordInput.d.ts +3 -0
  20. package/lib/types/components/input/phoneInput.d.ts +3 -0
  21. package/lib/types/components/input/uuidInput.d.ts +5 -0
  22. package/lib/types/components/input/xCreditCardInput.d.ts +3 -0
  23. package/lib/types/components/inputcurrency/inputcurrency.d.ts +4 -2
  24. package/lib/types/components/inputcurrency/stockInput.d.ts +3 -0
  25. package/lib/types/components/radio/radio.d.ts +27 -2
  26. package/lib/types/components/select/select.d.ts +25 -2
  27. package/lib/types/components/selectmultiple/selectmultiple.d.ts +25 -2
  28. package/lib/types/components/slider/range.d.ts +27 -0
  29. package/lib/types/components/slider/slider.d.ts +25 -2
  30. package/lib/types/components/toggle/toggle.d.ts +23 -1
  31. package/lib/types/components/xtitle/xtitle.d.ts +2 -1
  32. package/lib/types/index.d.ts +16 -2
  33. package/lib/types/layouts/column/column.d.ts +15 -0
  34. package/lib/types/layouts/container/container.d.ts +8 -0
  35. package/lib/types/layouts/row/row.d.ts +8 -0
  36. package/lib/types/utils/architect.d.ts +28 -6
  37. package/lib/types/utils/argonaut.d.ts +12 -1
  38. package/lib/types/utils/chronos.d.ts +1 -0
  39. package/lib/types/utils/currencyconfig.d.ts +365 -0
  40. package/lib/types/utils/uuidparser.d.ts +1 -0
  41. package/lib/types/utils/vinci.d.ts +20 -0
  42. package/lib/types/vectorSigma.d.ts +3 -2
  43. package/lib/types/xForm.d.ts +13 -9
  44. package/package.json +20 -13
  45. package/lib/index.css +0 -1
  46. package/lib/index.esm.css +0 -1
package/README.md CHANGED
@@ -1,112 +1,113 @@
1
- # 💠 Vector Sigma
2
- ## Dynamic Form Orchestrator: NPM Package 📦
3
-
4
- ### Overview
5
- <p align="justify">
6
- Vector Sigma is a dynamic form orchestrator package for rapidly creating and managing the complex lifecycle of interactive extensible input forms that can be easily embedded into a React front-end client interface for use in data capturing & onboarding applications or systems.
7
-
8
- Fields, Input Validation and Submission can be defined and parametized in real-time predicated on a JSON (JavaScript Object Notation) xForm definition or builder object pattern.
9
- </p>
10
-
11
- #### Key Features
12
- <ol>
13
- <li>
14
- <strong>Real-Time Form Adaptation:</strong> Adapt the form layout by adding/removing fields, sections or entire steps based on conditional logic.</li>
15
- <li>
16
- <strong>Validation Logic Management:</strong> Centralize business rules such as complex field validation, visibility constraints, and facilitate input value pre-population from external APIs.
17
- </li>
18
- <li>
19
- <strong>Form State Coordination:</strong> Monitor the "state" of the form across multi-step processes, allowing users to save progress and resume later.
20
- </li>
21
- <li>
22
- <strong>Application UI Integration:</strong> Connects the form data to backend workflows, CRM systems, or databases immediately upon submission.</li>
23
- </ol>
24
-
25
- ### Documentation
26
-
27
- ### Installation
28
- ```bash
29
- npm install @emeraldemperaur/vector-sigma
30
- ```
31
-
32
- ### Peer Dependencies
33
- ```bash
34
- npm install bootstrap@latest react@latest react-bootstrap@latest react-dom@latest sass@latest
35
- ```
36
- ### Usage
37
- ```javascript
38
- var s = "JavaScript/TypeScript Code Snippet";
39
- alert(s);
40
- ```
41
-
42
- ### Screenshots
43
-
44
- #### Automation Workflow Use Case
45
-
46
- #### Web Application Use Case
47
-
48
- ### Design Tenets
49
- <ul>
50
- <li><strong>📦CJS/ESM Compatible</strong></br>
51
- <p align="justify">Dual mode package comprised of both CommonJS (CJS) & ES Modules (ESM) builds bundled using <code>Rollup.js</code> to facilitate universal module compatibility and enable effortless integration across legacy and modern JavaScript ecosystems.</p>
52
- </li>
53
-
54
- <li><strong>🔒JSON Schema Validation</strong></br>
55
- <p align="justify">Adopted <code>Zod</code> as the native engine for JSON schema validation to provide a TypeScript-first validation layer. Schema validation guarantees any schema object provided strictly adheres with the expected API model before rendering to client viewport.</p>
56
- </li>
57
-
58
- <li><strong>🏗️Builder Object Pattern</strong></br>
59
- <p align="justify">Method chaining offers a modern, fluent alternative to static JSON object configuration that elevates the Developer Experience (DX) by enabling rapid form creation using intuitive method chains that are human-readable and generate type-safe xForm schema definitions automatically.</p>
60
-
61
- ```javascript
62
- var s = "JavaScript/TypeScript Code Builder Snippet";
63
- alert(s);
64
- ```
65
- </li>
66
-
67
- <li><strong>🛡️Input Validation</strong></br>
68
- <p align="justify">Declarative schema (JSON) facilitates a validation engine that is comprehensive, accessible and easy to maintain. <code>onChange()</code>, <code>onBlur()</code> input event control state updates, errors and <code>values</code> are handled automatically. <code>onSubmit()</code> handler is automatically blocked if the input is invalid</p>
69
- </li>
70
-
71
- <li><strong>🧠Form State Management</strong></br>
72
- <p align="justify">Leveraged Formik for robust React state management and Yup for declarative schema validation to adhere strictly to the standard React form lifecycle, ensuring compatibility with Redux DevTools & standard debugging workflows.</p>
73
- </li>
74
-
75
- <li><strong>🎨Theming Extensibilty</strong></br>
76
- <p align="justify">Customizable to fit seamlessly into an existing Design System and allow developer control of the visual layer through standard CSS patterns</p>
77
-
78
- ```javascript
79
- var s = "JavaScript/TypeScript Style Snippet";
80
- alert(s);
81
- ```
82
- </li>
83
-
84
- <li><strong>🧩Exported UI Components</strong></br>
85
- <p align="justify">Explicitly exported reusable form UI components from package entry point <code>src/index.ts</code> to enable developer-friendly use as lightweight component library</p>
86
- <p><em>Avatar, Button, Checkbox, Conditional, DatePicker, DateRangePicker, DateTimePicker, Dropdown, File, Input, InputCurrency, Radio, Select, SelectMultiple, Slider, Toggle, xTitle</em></p>
87
-
88
- ```javascript
89
- var s = "JavaScript/TypeScript Component Snippet";
90
- alert(s);
91
- ```
92
- </li>
93
-
94
- <li><strong>📱Mobile Responsive</strong></br>
95
- <p align="justify">'Mobile-First' layout design ensures that complex form orchestrations remain usable, accessible, and performant on any viewport</p>
96
- </li>
97
- </ul>
98
-
99
- ### Tool Stack
100
- ![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
101
- ![JavaScript](https://img.shields.io/badge/javascript-%23F7DF1E.svg?style=for-the-badge&logo=javascript&logoColor=black)
102
- ![RollupJS](https://img.shields.io/badge/RollupJS-EC4A3F?style=for-the-badge&logo=rollupdotjs&logoColor=white)
103
- ![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge&logo=vite&logoColor=white)
104
- ![React](https://img.shields.io/badge/react-%2320232A.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)
105
- ![SASS](https://img.shields.io/badge/SASS-hotpink.svg?style=for-the-badge&logo=SASS&logoColor=white)
106
- ![Zod](https://img.shields.io/badge/zod-3E67B1?style=for-the-badge&logo=zod&logoColor=white)
107
- ![Radix UI](https://img.shields.io/badge/radix%20ui-161616.svg?style=for-the-badge&logo=radix-ui&logoColor=white)
108
- ![Formik](https://img.shields.io/badge/formik-161616?style=for-the-badge&logo=formik&logoColor=white)
109
- ![Yup](https://img.shields.io/badge/yup-161616?style=for-the-badge&logo=yup&logoColor=white)
110
- ![Testing Library](https://img.shields.io/badge/-Testing%20Library-%23E33332?style=for-the-badge&logo=testing-library&logoColor=white)
111
- ![Jest](https://img.shields.io/badge/-jest-%23C21325?style=for-the-badge&logo=jest&logoColor=white)
112
- ![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)
1
+ # 💠 Vector Sigma
2
+ ## Dynamic Form Orchestrator 📦
3
+ ![Changesets](https://img.shields.io/badge/maintained%20with-changesets-176de3?style=flat-square&logo=changesets&logoColor=white)
4
+
5
+ ### Overview
6
+ <p align="justify">
7
+ Vector Sigma is a dynamic form orchestrator package for rapidly creating and managing the complex lifecycle of interactive extensible input forms that can be easily embedded into a React front-end client interface for use in data capturing & onboarding applications or systems.
8
+
9
+ Fields, Input Validation and Submission can be defined and parametized in real-time predicated on a JSON (JavaScript Object Notation) xForm definition or builder object pattern.
10
+ </p>
11
+
12
+ #### Key Features
13
+ <ol>
14
+ <li>
15
+ <strong>Real-Time Form Adaptation:</strong> Adapt the form layout by adding/removing fields, sections or entire steps based on conditional logic.</li>
16
+ <li>
17
+ <strong>Validation Logic Management:</strong> Centralize business rules such as complex field validation, visibility constraints, and facilitate input value pre-population from external APIs.
18
+ </li>
19
+ <li>
20
+ <strong>Form State Coordination:</strong> Monitor the "state" of the form across multi-step processes, allowing users to save progress and resume later.
21
+ </li>
22
+ <li>
23
+ <strong>Application UI Integration:</strong> Connects the form data to backend workflows, CRM systems, or databases immediately upon submission.</li>
24
+ </ol>
25
+
26
+ ### Documentation
27
+
28
+ ### Installation
29
+ ```bash
30
+ npm install @emeraldemperaur/vector-sigma
31
+ ```
32
+
33
+ ### Peer Dependencies
34
+ ```bash
35
+ npm install react@latest react-dom@latest sass@latest
36
+ ```
37
+ ### Usage
38
+ ```javascript
39
+ var s = "JavaScript/TypeScript Code Snippet";
40
+ alert(s);
41
+ ```
42
+
43
+ ### Screenshots
44
+
45
+ #### Automation Workflow Use Case
46
+
47
+ #### Web Application Use Case
48
+
49
+ ### Design Tenets
50
+ <ul>
51
+ <li><strong>📦CJS/ESM Compatible</strong></br>
52
+ <p align="justify">Dual mode package with both CommonJS (CJS) & ES Modules (ESM) builds bundled using <code>Rollup.js</code> to facilitate universal module compatibility and enable effortless integration across legacy and modern JavaScript ecosystems.</p>
53
+ </li>
54
+
55
+ <li><strong>🔒JSON Schema Validation</strong></br>
56
+ <p align="justify">Adopted <code>Zod</code> as the native engine for JSON schema validation to provide a TypeScript-first validation layer. Schema validation guarantees any schema object provided strictly adheres with the expected API model before rendering to client viewport.</p>
57
+ </li>
58
+
59
+ <li><strong>🏗️Builder Object Pattern</strong></br>
60
+ <p align="justify">Method chaining offers a modern, fluent alternative to static JSON object configuration that elevates the developer experience (DX) by enabling rapid form creation using intuitive method chains that are human-readable and generate type-safe xForm schema definitions automatically.</p>
61
+
62
+ ```javascript
63
+ var s = "JavaScript/TypeScript Code Builder Snippet";
64
+ alert(s);
65
+ ```
66
+ </li>
67
+
68
+ <li><strong>🛡️Input Validation</strong></br>
69
+ <p align="justify">Declarative schema (JSON) facilitates a validation engine that is comprehensive, accessible and easy to maintain. <code>onChange()</code>, <code>onBlur()</code> input event control state updates, errors and <code>values</code> are handled automatically. <code>onSubmit()</code> handler is automatically blocked if the input is invalid.</p>
70
+ </li>
71
+
72
+ <li><strong>🧠Form State Management</strong></br>
73
+ <p align="justify">Leveraged Formik for robust React state management and Yup for declarative schema validation to adhere strictly to the standard React form lifecycle, ensuring compatibility with Redux DevTools & standard debugging workflows.</p>
74
+ </li>
75
+
76
+ <li><strong>🎨Theming Extensibilty</strong></br>
77
+ <p align="justify">Customizable to fit seamlessly into an existing design system and allow developer control of the visual layer through standard CSS patterns.</p>
78
+
79
+ ```javascript
80
+ var s = "JavaScript/TypeScript Style Snippet";
81
+ alert(s);
82
+ ```
83
+ </li>
84
+
85
+ <li><strong>🧩Exported UI Components</strong></br>
86
+ <p align="justify">Explicitly exported reusable form UI components with material, outline and neumorphic design variants from package entry point <code>src/index.ts</code> to enable developer-friendly use as lightweight component library.</p>
87
+ <p><em>Container, Row, Column, xAvatar, xButton, CheckboxGroup, ConditionalTrigger, DatePicker, DateRangePicker, DateTimePicker, Dropdown, File, FileMultiple, FlagIcon, Icon, Image, Input, PasswordInput, PhoneInput, UUIDInput, xCreditCardInput, InputCurrency, StockInput, xRadioGroup, OptionSelect, MultipleSelect, RangeSlider, Toggle, xTitle</em></p>
88
+
89
+ ```javascript
90
+ var s = "JavaScript/TypeScript Component Snippet";
91
+ alert(s);
92
+ ```
93
+ </li>
94
+
95
+ <li><strong>📱Mobile Responsive</strong></br>
96
+ <p align="justify">'Mobile-First' layout design ensures that complex form orchestrations remain usable, accessible, and performant on any viewport.</p>
97
+ </li>
98
+ </ul>
99
+
100
+ ### Tool Stack
101
+ ![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
102
+ ![JavaScript](https://img.shields.io/badge/javascript-%23F7DF1E.svg?style=for-the-badge&logo=javascript&logoColor=black)
103
+ ![RollupJS](https://img.shields.io/badge/RollupJS-EC4A3F?style=for-the-badge&logo=rollupdotjs&logoColor=white)
104
+ ![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge&logo=vite&logoColor=white)
105
+ ![React](https://img.shields.io/badge/react-%2320232A.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)
106
+ ![SASS](https://img.shields.io/badge/SASS-hotpink.svg?style=for-the-badge&logo=SASS&logoColor=white)
107
+ ![Zod](https://img.shields.io/badge/zod-3E67B1?style=for-the-badge&logo=zod&logoColor=white)
108
+ ![Radix UI](https://img.shields.io/badge/radix%20ui-161616.svg?style=for-the-badge&logo=radix-ui&logoColor=white)
109
+ ![Formik](https://img.shields.io/badge/formik-161616?style=for-the-badge&logo=formik&logoColor=white)
110
+ ![Yup](https://img.shields.io/badge/yup-161616?style=for-the-badge&logo=yup&logoColor=white)
111
+ ![Testing Library](https://img.shields.io/badge/-Testing%20Library-%23E33332?style=for-the-badge&logo=testing-library&logoColor=white)
112
+ ![Jest](https://img.shields.io/badge/-jest-%23C21325?style=for-the-badge&logo=jest&logoColor=white)
113
+ ![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)