@emeraldemperaur/vector-sigma 1.1.0 → 1.2.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.
- package/README.md +72 -2
- package/lib/index.cjs +2 -2
- package/lib/index.esm.js +2 -2
- package/lib/types/components/inputcurrency/inputcurrency.d.ts +1 -1
- package/lib/types/jest.setup.d.ts +1 -0
- package/lib/types/teletraan1.d.ts +1 -0
- package/lib/types/utils/chronos.d.ts +0 -1
- package/package.json +14 -4
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# 💠 Vector Sigma
|
|
2
2
|
## Dynamic Form Orchestrator 📦
|
|
3
|
-
](https://www.npmjs.com/package/@emeraldemperaur/vector-sigma)
|
|
4
|
+

|
|
5
|
+
[](https://github.com/emeraldemperaur/vector-sigma/actions)
|
|
6
|
+

|
|
7
|
+
|
|
4
8
|
|
|
5
9
|
### Overview
|
|
6
10
|
<p align="justify">
|
|
@@ -84,7 +88,7 @@ alert(s);
|
|
|
84
88
|
|
|
85
89
|
<li><strong>🧩Exported UI Components</strong></br>
|
|
86
90
|
<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,
|
|
91
|
+
<p><em>Container, Row, Column, xAvatar, xButton, CheckboxGroup, ConditionalTrigger, DatePicker, DateRangePicker, DateTimePicker, Dropdown, File, FileMultiple, FlagIcon, Icon, Image, Input, PasswordInput, PhoneInput, UUIDInput, xCreditCardInput, CurrencyInput, StockInput, xRadioGroup, OptionSelect, MultipleSelect, RangeSlider, Toggle, xTitle</em></p>
|
|
88
92
|
|
|
89
93
|
```javascript
|
|
90
94
|
var s = "JavaScript/TypeScript Component Snippet";
|
|
@@ -111,3 +115,69 @@ alert(s);
|
|
|
111
115
|

|
|
112
116
|

|
|
113
117
|

|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Changeset Versioning Synopsis
|
|
121
|
+
<ol>
|
|
122
|
+
<li>
|
|
123
|
+
<p align="justify"><strong>Install Changeset CLI on 'main | prometheus' branch</strong></p>
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
npm install --save-dev @changesets/cli
|
|
127
|
+
```
|
|
128
|
+
</li>
|
|
129
|
+
<li>
|
|
130
|
+
<p align="justify"><strong>Create new working 'changeset' branch</strong></p>
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
git checkout -b new-changeset-branchname
|
|
134
|
+
```
|
|
135
|
+
</li>
|
|
136
|
+
|
|
137
|
+
<li><p align="justify"><strong>Update/Modify source code</strong></p></li>
|
|
138
|
+
|
|
139
|
+
<li>
|
|
140
|
+
<p align="justify"><strong>Run Changeset CLI to create changeset file</strong></p>
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
# Changeset - patch, minor, major versioning
|
|
144
|
+
npx changeset
|
|
145
|
+
```
|
|
146
|
+
</li>
|
|
147
|
+
|
|
148
|
+
<li>
|
|
149
|
+
<p align="justify"><strong>Commit source code changes to git</strong></p>
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
git add .
|
|
153
|
+
git commit -m "Changeset :: commit message"
|
|
154
|
+
git status
|
|
155
|
+
# confirm clean working tree before push
|
|
156
|
+
git push origin new-changeset-branchname
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
</li>
|
|
160
|
+
|
|
161
|
+
<li>
|
|
162
|
+
<p align="justify"><strong>Merge Changeset 'workflow' and 'version packages' PRs on Github repository</strong></p>
|
|
163
|
+
</li>
|
|
164
|
+
|
|
165
|
+
<li>
|
|
166
|
+
<p align="justify"><strong>Checkout 'main | prometheus' origin branch</strong></p>
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
git checkout prometheus
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
</li>
|
|
173
|
+
|
|
174
|
+
<li>
|
|
175
|
+
<p align="justify"><strong>Pull remote version changes merged from working 'changeset' branch to 'main | prometheus' origin branch</strong></p>
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
git pull origin prometheus
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
</li>
|
|
182
|
+
|
|
183
|
+
</ol>
|
package/lib/index.cjs
CHANGED
|
@@ -41943,7 +41943,7 @@ const CURRENCIES = {
|
|
|
41943
41943
|
FJD: { code: 'FJD', country: 'FJ', symbol: 'FJ$', scale: 2 },
|
|
41944
41944
|
};
|
|
41945
41945
|
|
|
41946
|
-
const
|
|
41946
|
+
const CurrencyInput = (alias, inputtype, onChange, touched, errorText, inputLabel, width, defaultValue, value, newRow, placeholder, readOnly, isHinted, hintText, hintUrl) => {
|
|
41947
41947
|
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
41948
41948
|
const [amountField, amountMeta] = useField(alias);
|
|
41949
41949
|
const [currencyField] = useField(inputtype == "currency" ? "USD" : inputtype);
|
|
@@ -47144,6 +47144,7 @@ exports.CheckboxGroup = CheckboxGroup;
|
|
|
47144
47144
|
exports.Column = Column;
|
|
47145
47145
|
exports.ConditionalTrigger = ConditionalTrigger;
|
|
47146
47146
|
exports.Container = Container;
|
|
47147
|
+
exports.CurrencyInput = CurrencyInput;
|
|
47147
47148
|
exports.DatePicker = DatePicker;
|
|
47148
47149
|
exports.DateRangePicker = DateRangePicker;
|
|
47149
47150
|
exports.DateTimePicker = DateTimePicker;
|
|
@@ -47153,7 +47154,6 @@ exports.FlagIcon = FlagIcon;
|
|
|
47153
47154
|
exports.Icon = Icon;
|
|
47154
47155
|
exports.Image = Image;
|
|
47155
47156
|
exports.Input = Input$2;
|
|
47156
|
-
exports.InputCurrency = InputCurrency;
|
|
47157
47157
|
exports.MultipleSelect = MultipleSelect;
|
|
47158
47158
|
exports.OptionSelect = OptionSelect;
|
|
47159
47159
|
exports.PasswordInput = PasswordInput;
|
package/lib/index.esm.js
CHANGED
|
@@ -41923,7 +41923,7 @@ const CURRENCIES = {
|
|
|
41923
41923
|
FJD: { code: 'FJD', country: 'FJ', symbol: 'FJ$', scale: 2 },
|
|
41924
41924
|
};
|
|
41925
41925
|
|
|
41926
|
-
const
|
|
41926
|
+
const CurrencyInput = (alias, inputtype, onChange, touched, errorText, inputLabel, width, defaultValue, value, newRow, placeholder, readOnly, isHinted, hintText, hintUrl) => {
|
|
41927
41927
|
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
41928
41928
|
const [amountField, amountMeta] = useField(alias);
|
|
41929
41929
|
const [currencyField] = useField(inputtype == "currency" ? "USD" : inputtype);
|
|
@@ -47119,4 +47119,4 @@ const xFormSchema = object({
|
|
|
47119
47119
|
model: array(SectionSchema),
|
|
47120
47120
|
});
|
|
47121
47121
|
|
|
47122
|
-
export { CURRENCIES, CheckboxGroup, Column, ConditionalTrigger, Container, DatePicker, DateRangePicker, DateTimePicker, Dropdown, File$1 as File, FlagIcon, Icon, Image, Input$2 as Input,
|
|
47122
|
+
export { CURRENCIES, CheckboxGroup, Column, ConditionalTrigger, Container, CurrencyInput, DatePicker, DateRangePicker, DateTimePicker, Dropdown, File$1 as File, FlagIcon, Icon, Image, Input$2 as Input, MultipleSelect, OptionSelect, PasswordInput, PhoneInput, RangeSlider, Row, StockInput, Toggle, UUIDInput, parseUuidFormat, primeMatrix, vectorSigma, xAvatar, xButton, xCreditCardInput, xFormSchema, xRadioGroup, xSlider, xTitle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { SupportedCurrency } from '../../utils/currencyconfig';
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const CurrencyInput: (alias: string, inputtype: SupportedCurrency | "currency", onChange: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement>, touched: object, errorText: ReactNode | string | null, inputLabel: string, width: number, defaultValue: string, value: string, newRow?: boolean, placeholder?: string, readOnly?: boolean, isHinted?: boolean, hintText?: string, hintUrl?: string) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const teletraan1: (name: String) => string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare function getTimeStamp(): string;
|
|
2
2
|
export declare function getExtantDate(): string;
|
|
3
|
-
export declare function getExtantFullDate(): string;
|
|
4
3
|
export declare const ensureDate: (date: Date | string | undefined) => Date | undefined;
|
|
5
4
|
export declare const FORM_ORIGIN: number;
|
|
6
5
|
export declare const FORM_IN_PROGRESS: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeraldemperaur/vector-sigma",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Dynamic Form Orchestrator: NPM Package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"require": "./lib/index.cjs",
|
|
20
20
|
"types": "./lib/types/index.d.ts"
|
|
21
21
|
},
|
|
22
|
-
"./lib/
|
|
22
|
+
"./lib/styles.css": "./lib/styles.css",
|
|
23
|
+
"./styles.css": "./lib/styles.css"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"lib"
|
|
@@ -27,8 +28,9 @@
|
|
|
27
28
|
"scripts": {
|
|
28
29
|
"build": "rollup -c",
|
|
29
30
|
"prepublishOnly": "npm run build",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
31
|
+
"release-package": "npm run build && npx changeset publish",
|
|
32
|
+
"test": "jest",
|
|
33
|
+
"test:watch": "jest --watch"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
36
|
"@changesets/cli": "^2.29.8",
|
|
@@ -36,9 +38,16 @@
|
|
|
36
38
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
37
39
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
38
40
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
42
|
+
"@testing-library/react": "^16.3.2",
|
|
43
|
+
"@types/jest": "^30.0.0",
|
|
39
44
|
"@types/react": "^19.2.10",
|
|
40
45
|
"@types/react-dom": "^19.2.3",
|
|
41
46
|
"formik": "^2.4.9",
|
|
47
|
+
"identity-obj-proxy": "^3.0.0",
|
|
48
|
+
"jest": "^30.2.0",
|
|
49
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
50
|
+
"jest-junit": "^16.0.0",
|
|
42
51
|
"react": "^19.2.4",
|
|
43
52
|
"react-dom": "^19.2.4",
|
|
44
53
|
"rollup": "^4.17.2",
|
|
@@ -48,6 +57,7 @@
|
|
|
48
57
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
49
58
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
50
59
|
"sass-embedded": "^1.97.3",
|
|
60
|
+
"ts-jest": "^29.4.6",
|
|
51
61
|
"tslib": "^2.8.1",
|
|
52
62
|
"typescript": "^5.9.3",
|
|
53
63
|
"yup": "^1.7.1"
|