@pibit.ai/cure-design-system 0.5.4 → 0.5.7
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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +212 -209
- package/dist/primitives/input/index.d.ts +1 -1
- package/dist/primitives/input/index.d.ts.map +1 -1
- package/dist/primitives/input/input.d.ts +15 -3
- package/dist/primitives/input/input.d.ts.map +1 -1
- package/dist/primitives/input/input.js +213 -187
- package/dist/primitives/select/ExpandableSearchInput.d.ts +1 -1
- package/dist/primitives/select/ExpandableSearchInput.d.ts.map +1 -1
- package/dist/primitives/select/ExpandableSearchInput.js +23 -23
- package/dist/primitives/select/SearchInput.d.ts +15 -2
- package/dist/primitives/select/SearchInput.d.ts.map +1 -1
- package/dist/primitives/select/SearchInput.js +128 -114
- package/dist/primitives/select/index.d.ts +1 -0
- package/dist/primitives/select/index.d.ts.map +1 -1
- package/dist/primitives/select/select.d.ts +4 -0
- package/dist/primitives/select/select.d.ts.map +1 -1
- package/dist/primitives/select/select.js +40 -21
- package/dist/styles/components.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Input, InputBase, type InputProps, type InputBaseProps } from './input';
|
|
1
|
+
export { Input, InputBase, TextField, type InputProps, type InputBaseProps, type TextFieldProps } from './input';
|
|
2
2
|
export { Label, type LabelProps } from './label';
|
|
3
3
|
export { HintText, type HintTextProps } from './hint-text';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AACjH,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -30,13 +30,25 @@ export interface InputBaseProps extends TextFieldProps {
|
|
|
30
30
|
iconTrailing?: ComponentType<HTMLAttributes<HTMLOrSVGElement>>;
|
|
31
31
|
/** Custom trailing action (e.g. password toggle button) */
|
|
32
32
|
trailingAction?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Flush trailing region (divider + content) inside the input group — laid out
|
|
35
|
+
* beside the field rather than absolutely positioned over its right padding.
|
|
36
|
+
* platform-ui uses this for unit and currency pickers; without it those call
|
|
37
|
+
* sites cannot move off the local copy.
|
|
38
|
+
*/
|
|
39
|
+
trailingSlot?: ReactNode;
|
|
33
40
|
/** Number of trailing icons to display */
|
|
34
41
|
trailingIconCount?: number;
|
|
35
42
|
/** Custom styles for the input */
|
|
36
43
|
customStyles?: React.CSSProperties;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the invalid state shows its trailing InfoCircle.
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
showInfoIcon?: boolean;
|
|
37
49
|
}
|
|
38
50
|
export declare const InputBase: {
|
|
39
|
-
({ ref, isReadOnly, tooltip, shortcut, groupRef, size, isInvalid, isDisabled, icon: Icon, iconTrailing: IconTrailing, placeholder, wrapperClassName, tooltipClassName, inputClassName, iconClassName, trailingAction, trailingIconCount, mode, isRequired: _isRequired, customStyles, ...inputProps }: Omit<InputBaseProps, "label" | "hint">): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
({ ref, isReadOnly, tooltip, shortcut, groupRef, size, isInvalid, isDisabled, icon: Icon, iconTrailing: IconTrailing, placeholder, wrapperClassName, tooltipClassName, inputClassName, iconClassName, trailingAction, trailingSlot, trailingIconCount, mode, isRequired: _isRequired, customStyles, showInfoIcon, ...inputProps }: Omit<InputBaseProps, "label" | "hint">): import("react/jsx-runtime").JSX.Element;
|
|
40
52
|
displayName: string;
|
|
41
53
|
};
|
|
42
54
|
interface BaseProps {
|
|
@@ -58,7 +70,7 @@ export interface InputProps extends InputBaseProps, BaseProps {
|
|
|
58
70
|
/** Whether to hide required indicator from label */
|
|
59
71
|
hideRequiredIndicator?: boolean;
|
|
60
72
|
/** Input type (text, password, number, date, etc.) */
|
|
61
|
-
inputType?: "text" | "password" | "number" | "date";
|
|
73
|
+
inputType?: "text" | "password" | "number" | "date" | "email" | "url";
|
|
62
74
|
/** Custom styles for the input */
|
|
63
75
|
customStyles?: React.CSSProperties;
|
|
64
76
|
/** Custom styles for the container */
|
|
@@ -84,7 +96,7 @@ export interface InputProps extends InputBaseProps, BaseProps {
|
|
|
84
96
|
* <Input errorMessage="This field is required" />
|
|
85
97
|
*/
|
|
86
98
|
export declare const Input: {
|
|
87
|
-
({ size, placeholder, icon: Icon, iconTrailing: IconTrailing, label, supportingText, hint, shortcut, hideRequiredIndicator, className, ref, groupRef, tooltip, iconClassName, inputClassName, wrapperClassName, tooltipClassName, inputType, customStyles, containerStyles, trailingAction, trailingIconCount, mode, isDisabled, isInvalid, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
({ size, placeholder, icon: Icon, iconTrailing: IconTrailing, label, supportingText, hint, shortcut, hideRequiredIndicator, className, ref, groupRef, tooltip, iconClassName, inputClassName, wrapperClassName, tooltipClassName, inputType, customStyles, containerStyles, trailingAction, trailingSlot, trailingIconCount, mode, isDisabled, isInvalid, showInfoIcon, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
88
100
|
displayName: string;
|
|
89
101
|
};
|
|
90
102
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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