@youngonesworks/ui 0.1.87 → 0.1.90
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/dist/components/datePickerInput/DatePickerInput.stories.d.ts +2 -2
- package/dist/components/datePickerInput/index.d.ts +2 -2
- package/dist/components/searchInput/index.d.ts +3 -4
- package/dist/components/searchInput/searchInput.test.d.ts +1 -1
- package/dist/components/textInput/index.d.ts +2 -2
- package/dist/components/textInput/textInput.test.d.ts +1 -1
- package/dist/index.cjs +11 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +65 -66
- package/dist/index.js +12 -71
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
- package/dist/components/phoneNumberInput/PhoneInputSelect.stories.d.ts +0 -6
- package/dist/components/phoneNumberInput/PhoneNumberInput.test.d.ts +0 -1
- package/dist/components/phoneNumberInput/index.d.ts +0 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youngonesworks/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.90",
|
|
4
4
|
"description": "A Youngones UI component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"prepublishOnly": "npm run build",
|
|
41
41
|
"buildAndPublish": "npm run build && npm publish",
|
|
42
42
|
"chromatic": "chromatic --project-token $CHROMATIC_PROJECT_TOKEN",
|
|
43
|
-
"
|
|
43
|
+
"postinstall": "husky",
|
|
44
44
|
"bump": "bash scripts/bump_version_if_src_changed.sh",
|
|
45
45
|
"lint": "eslint .",
|
|
46
46
|
"lint:fix": "eslint . --fix",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"author": "YoungOnes",
|
|
59
59
|
"license": "ISC",
|
|
60
60
|
"peerDependencies": {
|
|
61
|
+
"date-fns": "^4.0.0",
|
|
61
62
|
"next": "^14.0.0 || ^15.0.0",
|
|
62
63
|
"react": "^18.0.0 || ^19.0.0",
|
|
63
64
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"@tiptap/react": "^2.1.12",
|
|
77
78
|
"@tiptap/starter-kit": "^2.1.12",
|
|
78
79
|
"clsx": "^2.1.1",
|
|
79
|
-
"
|
|
80
|
+
"commitlint-plugin-function-rules": "^4.0.2",
|
|
80
81
|
"react-day-picker": "^9.9.0",
|
|
81
82
|
"react-phone-input-2": "^2.15.1",
|
|
82
83
|
"react-select": "^5.8.0",
|
|
@@ -111,6 +112,7 @@
|
|
|
111
112
|
"chokidar-cli": "^3.0.0",
|
|
112
113
|
"chromatic": "^13.1.2",
|
|
113
114
|
"concurrently": "^9.1.2",
|
|
115
|
+
"date-fns": "^4.1.0",
|
|
114
116
|
"eslint": "^9.29.0",
|
|
115
117
|
"eslint-config-prettier": "^10.1.5",
|
|
116
118
|
"eslint-import-resolver-typescript": "^4.4.3",
|
|
@@ -122,7 +124,7 @@
|
|
|
122
124
|
"eslint-plugin-testing-library": "^7.5.3",
|
|
123
125
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
124
126
|
"globals": "^16.2.0",
|
|
125
|
-
"husky": "^
|
|
127
|
+
"husky": "^9.1.7",
|
|
126
128
|
"identity-obj-proxy": "^3.0.0",
|
|
127
129
|
"jest": "^29.7.0",
|
|
128
130
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ReactNode, type Dispatch, type SetStateAction } from 'react';
|
|
2
|
-
type SetValueOptions = {
|
|
3
|
-
shouldValidate?: boolean;
|
|
4
|
-
shouldDirty?: boolean;
|
|
5
|
-
shouldTouch?: boolean;
|
|
6
|
-
};
|
|
7
|
-
type SetValueLike = (name: string, value: unknown, options?: SetValueOptions) => void;
|
|
8
|
-
interface PhoneInputSelectProps {
|
|
9
|
-
setValue: SetValueLike;
|
|
10
|
-
setPhoneNumberExt?: Dispatch<SetStateAction<{
|
|
11
|
-
number?: string;
|
|
12
|
-
ext?: string;
|
|
13
|
-
countryCode?: string;
|
|
14
|
-
} | null>>;
|
|
15
|
-
phoneNumberExt?: {
|
|
16
|
-
number?: string;
|
|
17
|
-
ext?: string;
|
|
18
|
-
countryCode?: string;
|
|
19
|
-
} | null;
|
|
20
|
-
isValid?: boolean;
|
|
21
|
-
phoneNumberField: string;
|
|
22
|
-
phoneNumberExtField: string;
|
|
23
|
-
phoneNumberError: string | undefined;
|
|
24
|
-
phoneNumberExtensionError?: string | undefined;
|
|
25
|
-
className?: string;
|
|
26
|
-
inputClass?: string;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
label?: string | ReactNode;
|
|
29
|
-
placeholder?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare const PhoneNumberInput: ({ setValue, setPhoneNumberExt, phoneNumberExt, isValid, phoneNumberError, phoneNumberExtensionError, phoneNumberField, phoneNumberExtField, placeholder, className, inputClass, label, disabled, }: PhoneInputSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export {};
|