@youngonesworks/ui 0.1.72 → 0.1.73

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.
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { PhoneInputSelect } from './index';
3
+ declare const meta: Meta<typeof PhoneInputSelect>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof PhoneInputSelect>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,30 @@
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import 'react-phone-input-2/lib/style.css';
3
+ type SetValueOptions = {
4
+ shouldValidate?: boolean;
5
+ shouldDirty?: boolean;
6
+ shouldTouch?: boolean;
7
+ };
8
+ type SetValueLike = (name: string, value: unknown, options?: SetValueOptions) => void;
9
+ interface PhoneInputSelectProps {
10
+ setValue: SetValueLike;
11
+ setPhoneNumberExt?: Dispatch<SetStateAction<{
12
+ number?: string;
13
+ ext?: string;
14
+ countryCode?: string;
15
+ } | null>>;
16
+ phoneNumberExt?: {
17
+ number?: string;
18
+ ext?: string;
19
+ countryCode?: string;
20
+ } | null;
21
+ isValid?: boolean;
22
+ phoneNumberField: string;
23
+ phoneNumberExtField: string;
24
+ phoneNumberError: string | undefined;
25
+ phoneNumberExtensionError?: string | undefined;
26
+ className?: string;
27
+ label?: string;
28
+ }
29
+ export declare const PhoneInputSelect: ({ setValue, setPhoneNumberExt, phoneNumberExt, isValid, phoneNumberError, phoneNumberExtensionError, phoneNumberField, phoneNumberExtField, className, label, }: PhoneInputSelectProps) => import("react/jsx-runtime").JSX.Element;
30
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youngonesworks/ui",
3
- "version": "0.1.72",
3
+ "version": "0.1.73",
4
4
  "description": "A Youngones UI component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",