globalfy-design-system 1.9.0 → 1.10.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/dist/components/atoms/DropdownList/DropdownList.stories.d.ts +1 -0
- package/dist/components/atoms/DropdownList/DropdownList.types.d.ts +3 -1
- package/dist/components/atoms/DropdownList/DropdownListCreatable.d.ts +3 -0
- package/dist/components/atoms/DropdownList/index.d.ts +2 -1
- package/dist/globalfy-design-system.js +11547 -11340
- package/dist/globalfy-design-system.umd.cjs +33 -33
- package/package.json +1 -1
|
@@ -11,4 +11,5 @@ declare const meta: {
|
|
|
11
11
|
export default meta;
|
|
12
12
|
type Story = StoryObj<typeof meta>;
|
|
13
13
|
export declare const Playground: Story;
|
|
14
|
+
export declare const DropdownListCreatableComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export declare const PaymentMethod: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActionMeta, ControlProps, DropdownIndicatorProps, OptionProps, ValueContainerProps } from 'react-select';
|
|
2
2
|
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
export type OptionType = {
|
|
@@ -25,6 +25,8 @@ export type DropdownListProps = {
|
|
|
25
25
|
customControl?: ComponentType<ControlProps>;
|
|
26
26
|
customDropdownIndicator?: ComponentType<DropdownIndicatorProps>;
|
|
27
27
|
customValueContainer?: ComponentType<ValueContainerProps>;
|
|
28
|
+
onCreateOption?: (inputValue: string) => void;
|
|
29
|
+
isLoading?: boolean;
|
|
28
30
|
};
|
|
29
31
|
export type DropdownCreditCardOption = {
|
|
30
32
|
label: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DropdownListProps } from './DropdownList.types';
|
|
2
|
+
|
|
3
|
+
export declare const DropdownListCreatable: ({ label, value, defaultValue, placeholder, isInvalid, isTransparent, className, disabled, onChange, noOptionsMessage, errorMessage, options, isSearchable, customOption, isValid, customPlaceholder, customControl, customDropdownIndicator, customValueContainer, onCreateOption, isLoading, ...props }: DropdownListProps) => import("react/jsx-runtime").JSX.Element;
|