@asdp/ferryui 0.1.22-dev.10038 → 0.1.22-dev.10153
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 +6 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,13 +50,14 @@ npm run typecheck
|
|
|
50
50
|
|
|
51
51
|
We use **yalc** to simulate package publishing locally.
|
|
52
52
|
|
|
53
|
-
1.
|
|
53
|
+
1. **Install yalc globally** (if not already installed):
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
56
|
npm install -g yalc
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
2.
|
|
59
|
+
2. **In `ferryui` directory:**
|
|
60
|
+
|
|
60
61
|
After making changes, publish them locally:
|
|
61
62
|
|
|
62
63
|
```bash
|
|
@@ -65,8 +66,10 @@ We use **yalc** to simulate package publishing locally.
|
|
|
65
66
|
|
|
66
67
|
_`--push` will automatically update projects that have added this package via yalc._
|
|
67
68
|
|
|
68
|
-
3.
|
|
69
|
+
3. **In Consumer Project (e.g., ferizy):**
|
|
70
|
+
|
|
69
71
|
If the package doesn't update automatically, run:
|
|
72
|
+
|
|
70
73
|
```bash
|
|
71
74
|
yalc update
|
|
72
75
|
```
|
package/dist/index.d.mts
CHANGED
|
@@ -1722,7 +1722,7 @@ declare const PASSENGER_TYPE: {
|
|
|
1722
1722
|
readonly ADULT: 1;
|
|
1723
1723
|
readonly CHILD: 2;
|
|
1724
1724
|
readonly INFANT: 3;
|
|
1725
|
-
readonly ELDERLY:
|
|
1725
|
+
readonly ELDERLY: 4;
|
|
1726
1726
|
};
|
|
1727
1727
|
type PASSENGER_TYPE_TYPE = typeof PASSENGER_TYPE[keyof typeof PASSENGER_TYPE];
|
|
1728
1728
|
declare const IDENTITY_TYPE: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1722,7 +1722,7 @@ declare const PASSENGER_TYPE: {
|
|
|
1722
1722
|
readonly ADULT: 1;
|
|
1723
1723
|
readonly CHILD: 2;
|
|
1724
1724
|
readonly INFANT: 3;
|
|
1725
|
-
readonly ELDERLY:
|
|
1725
|
+
readonly ELDERLY: 4;
|
|
1726
1726
|
};
|
|
1727
1727
|
type PASSENGER_TYPE_TYPE = typeof PASSENGER_TYPE[keyof typeof PASSENGER_TYPE];
|
|
1728
1728
|
declare const IDENTITY_TYPE: {
|
package/dist/index.js
CHANGED
|
@@ -463,7 +463,7 @@ var PASSENGER_TYPE = {
|
|
|
463
463
|
ADULT: 1,
|
|
464
464
|
CHILD: 2,
|
|
465
465
|
INFANT: 3,
|
|
466
|
-
ELDERLY:
|
|
466
|
+
ELDERLY: 4
|
|
467
467
|
};
|
|
468
468
|
var IDENTITY_TYPE = {
|
|
469
469
|
KTP: 1,
|
|
@@ -10802,6 +10802,8 @@ var ModalListPassenger = ({
|
|
|
10802
10802
|
children: [
|
|
10803
10803
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
10804
10804
|
/* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Subtitle2, { children: [
|
|
10805
|
+
passenger.titleName,
|
|
10806
|
+
" ",
|
|
10805
10807
|
passenger.fullName,
|
|
10806
10808
|
" ",
|
|
10807
10809
|
passenger.isAccountOwner && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11254,14 +11256,6 @@ var ModalPassengerForm = ({
|
|
|
11254
11256
|
);
|
|
11255
11257
|
const idRuleLengthMatch = selectedIdentityType?.rule?.match(/\{(\d+)(?:,\d+)?\}/);
|
|
11256
11258
|
const dynamicMinLengthId = idRuleLengthMatch ? parseInt(idRuleLengthMatch[1], 10) : 6;
|
|
11257
|
-
React.useEffect(() => {
|
|
11258
|
-
const subscription = watch((value, { name, type }) => {
|
|
11259
|
-
console.log("Changed field:", name);
|
|
11260
|
-
console.log("Change type:", type);
|
|
11261
|
-
onChange(value);
|
|
11262
|
-
});
|
|
11263
|
-
return () => subscription.unsubscribe();
|
|
11264
|
-
}, [watch, onChange]);
|
|
11265
11259
|
React.useEffect(() => {
|
|
11266
11260
|
reset(defaultValues);
|
|
11267
11261
|
}, [defaultValues, reset]);
|