@butternutbox/pawprint-native 0.10.6 → 0.10.8
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/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +959 -773
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +472 -286
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/Illustration/Illustration.stories.tsx +3 -1
- package/src/components/atoms/Input/InputField.tsx +9 -1
- package/src/components/atoms/NumberInput/NumberInput.stories.tsx +22 -0
- package/src/components/atoms/NumberInput/NumberInput.tsx +5 -1
- package/src/components/atoms/NumberInput/NumberInputField.tsx +81 -18
- package/src/components/atoms/Typography/Typography.test.tsx +2 -2
- package/src/components/molecules/DatePicker/DatePicker.tsx +31 -26
- package/src/components/molecules/Drawer/Drawer.stories.tsx +110 -0
- package/src/components/molecules/Drawer/DrawerBody.tsx +42 -9
- package/src/components/molecules/Drawer/DrawerContent.tsx +101 -38
- package/src/components/molecules/Drawer/DrawerMeasureContext.ts +22 -0
- package/src/components/molecules/NumberField/NumberField.stories.tsx +23 -0
- package/src/components/molecules/NumberField/NumberFieldInput.tsx +49 -13
- package/src/components/molecules/Radio/Radio.tsx +3 -0
package/dist/index.d.cts
CHANGED
|
@@ -429,6 +429,7 @@ type InputFieldOwnProps = {
|
|
|
429
429
|
hideStateIcons?: boolean;
|
|
430
430
|
containerWidth?: number;
|
|
431
431
|
containerHeight?: number;
|
|
432
|
+
hasInlineHelp?: boolean;
|
|
432
433
|
};
|
|
433
434
|
type InputFieldProps = InputFieldOwnProps & Omit<TextInputProps, keyof InputFieldOwnProps>;
|
|
434
435
|
/**
|
|
@@ -573,6 +574,7 @@ declare function registerLogo(brand: LogoBrand, variant: LogoVariant, component:
|
|
|
573
574
|
|
|
574
575
|
type NumberInputFieldOwnProps = {
|
|
575
576
|
fieldText?: string;
|
|
577
|
+
inlineHelpText?: string;
|
|
576
578
|
};
|
|
577
579
|
type NumberInputFieldProps = NumberInputFieldOwnProps & Omit<InputFieldProps, keyof NumberInputFieldOwnProps>;
|
|
578
580
|
/**
|
|
@@ -580,10 +582,11 @@ type NumberInputFieldProps = NumberInputFieldOwnProps & Omit<InputFieldProps, ke
|
|
|
580
582
|
* Renders a centered number input sized to `numberField.size.large.height`.
|
|
581
583
|
* When fieldText is provided, wraps input + text in a horizontal group.
|
|
582
584
|
*/
|
|
583
|
-
declare const NumberInputField: React.ForwardRefExoticComponent<NumberInputFieldOwnProps & Omit<InputFieldProps,
|
|
585
|
+
declare const NumberInputField: React.ForwardRefExoticComponent<NumberInputFieldOwnProps & Omit<InputFieldProps, keyof NumberInputFieldOwnProps> & React.RefAttributes<TextInput>>;
|
|
584
586
|
|
|
585
587
|
type NumberInputOwnProps = Pick<InputProps, "label" | "description" | "error" | "state" | "optionalText" | "onValueChange"> & {
|
|
586
588
|
fieldText?: string;
|
|
589
|
+
inlineHelpText?: string;
|
|
587
590
|
};
|
|
588
591
|
type NumberInputProps = NumberInputOwnProps & Omit<InputFieldProps, keyof NumberInputOwnProps> & Omit<ViewProps, keyof NumberInputOwnProps>;
|
|
589
592
|
declare const StyledRoot$5: _emotion_native.StyledComponent<ViewProps & {
|
|
@@ -1145,6 +1148,7 @@ type NumberFieldInputOwnProps = {
|
|
|
1145
1148
|
decrementDisabled?: boolean;
|
|
1146
1149
|
min?: number;
|
|
1147
1150
|
max?: number;
|
|
1151
|
+
inlineHelpText?: string;
|
|
1148
1152
|
};
|
|
1149
1153
|
type NumberFieldInputProps = NumberFieldInputOwnProps & Omit<TextInputProps, keyof NumberFieldInputOwnProps>;
|
|
1150
1154
|
|
package/dist/index.d.ts
CHANGED
|
@@ -429,6 +429,7 @@ type InputFieldOwnProps = {
|
|
|
429
429
|
hideStateIcons?: boolean;
|
|
430
430
|
containerWidth?: number;
|
|
431
431
|
containerHeight?: number;
|
|
432
|
+
hasInlineHelp?: boolean;
|
|
432
433
|
};
|
|
433
434
|
type InputFieldProps = InputFieldOwnProps & Omit<TextInputProps, keyof InputFieldOwnProps>;
|
|
434
435
|
/**
|
|
@@ -573,6 +574,7 @@ declare function registerLogo(brand: LogoBrand, variant: LogoVariant, component:
|
|
|
573
574
|
|
|
574
575
|
type NumberInputFieldOwnProps = {
|
|
575
576
|
fieldText?: string;
|
|
577
|
+
inlineHelpText?: string;
|
|
576
578
|
};
|
|
577
579
|
type NumberInputFieldProps = NumberInputFieldOwnProps & Omit<InputFieldProps, keyof NumberInputFieldOwnProps>;
|
|
578
580
|
/**
|
|
@@ -580,10 +582,11 @@ type NumberInputFieldProps = NumberInputFieldOwnProps & Omit<InputFieldProps, ke
|
|
|
580
582
|
* Renders a centered number input sized to `numberField.size.large.height`.
|
|
581
583
|
* When fieldText is provided, wraps input + text in a horizontal group.
|
|
582
584
|
*/
|
|
583
|
-
declare const NumberInputField: React.ForwardRefExoticComponent<NumberInputFieldOwnProps & Omit<InputFieldProps,
|
|
585
|
+
declare const NumberInputField: React.ForwardRefExoticComponent<NumberInputFieldOwnProps & Omit<InputFieldProps, keyof NumberInputFieldOwnProps> & React.RefAttributes<TextInput>>;
|
|
584
586
|
|
|
585
587
|
type NumberInputOwnProps = Pick<InputProps, "label" | "description" | "error" | "state" | "optionalText" | "onValueChange"> & {
|
|
586
588
|
fieldText?: string;
|
|
589
|
+
inlineHelpText?: string;
|
|
587
590
|
};
|
|
588
591
|
type NumberInputProps = NumberInputOwnProps & Omit<InputFieldProps, keyof NumberInputOwnProps> & Omit<ViewProps, keyof NumberInputOwnProps>;
|
|
589
592
|
declare const StyledRoot$5: _emotion_native.StyledComponent<ViewProps & {
|
|
@@ -1145,6 +1148,7 @@ type NumberFieldInputOwnProps = {
|
|
|
1145
1148
|
decrementDisabled?: boolean;
|
|
1146
1149
|
min?: number;
|
|
1147
1150
|
max?: number;
|
|
1151
|
+
inlineHelpText?: string;
|
|
1148
1152
|
};
|
|
1149
1153
|
type NumberFieldInputProps = NumberFieldInputOwnProps & Omit<TextInputProps, keyof NumberFieldInputOwnProps>;
|
|
1150
1154
|
|