@rarui/typings 2.0.0 → 2.0.1
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/CHANGELOG.md +10 -0
- package/dist/index.ts +33 -25
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
This package is intended for internal use in creating components with polymorphic typing.
|
|
4
4
|
|
|
5
|
+
## 2024-08-26 `2.0.1`
|
|
6
|
+
|
|
7
|
+
#### 🐛 Bug fixes
|
|
8
|
+
|
|
9
|
+
- Corrigido tipagens de `onChange`, `value` e `defaultValue`. ([#99](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/99) by [@junior](https://git.rarolabs.com.br/junior))
|
|
10
|
+
|
|
11
|
+
#### 🎉 New features
|
|
12
|
+
|
|
13
|
+
- Adioconado nova tipagem de `minDate` e `maxDate` ao tipo do `DatePickerProps`. ([#99](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/99) by [@junior](https://git.rarolabs.com.br/junior))
|
|
14
|
+
|
|
5
15
|
## 2024-08-07 `2.0.0`
|
|
6
16
|
|
|
7
17
|
#### 🎉 New features
|
package/dist/index.ts
CHANGED
|
@@ -14207,7 +14207,7 @@ interface BoxSprinkle extends BoxDynamicProperties {
|
|
|
14207
14207
|
*/
|
|
14208
14208
|
lineHeight?: AddDollar<keyof typeof lineHeightProperties> | BoxConditions<AddDollar<keyof typeof lineHeightProperties>>;
|
|
14209
14209
|
}
|
|
14210
|
-
declare const
|
|
14210
|
+
declare const buttonStyles: {
|
|
14211
14211
|
button: RuntimeFn<{
|
|
14212
14212
|
/**
|
|
14213
14213
|
* Specifies whether the button should take up the full width of its container.
|
|
@@ -14308,7 +14308,7 @@ declare const styles: {
|
|
|
14308
14308
|
};
|
|
14309
14309
|
}>;
|
|
14310
14310
|
};
|
|
14311
|
-
type ButtonVariants = NonNullable<RecipeVariants<typeof
|
|
14311
|
+
type ButtonVariants = NonNullable<RecipeVariants<typeof buttonStyles.button>>;
|
|
14312
14312
|
declare const checkboxStyles: {
|
|
14313
14313
|
checkbox: RuntimeFn<{
|
|
14314
14314
|
/**
|
|
@@ -14574,7 +14574,7 @@ declare const iconButtonStyles: {
|
|
|
14574
14574
|
}>;
|
|
14575
14575
|
};
|
|
14576
14576
|
type IconButtonVariants = RecipeVariants<typeof iconButtonStyles.iconButton>;
|
|
14577
|
-
declare const styles
|
|
14577
|
+
declare const styles: {
|
|
14578
14578
|
container: RuntimeFn<{
|
|
14579
14579
|
/**
|
|
14580
14580
|
* Determines the visual style of the input, affecting its border
|
|
@@ -14692,8 +14692,8 @@ declare const styles$1: {
|
|
|
14692
14692
|
};
|
|
14693
14693
|
}>;
|
|
14694
14694
|
};
|
|
14695
|
-
type InputVariants = NonNullable<RecipeVariants<typeof styles
|
|
14696
|
-
declare const styles$
|
|
14695
|
+
type InputVariants = NonNullable<RecipeVariants<typeof styles.container> & RecipeVariants<typeof styles.input>>;
|
|
14696
|
+
declare const styles$1: {
|
|
14697
14697
|
label: RuntimeFn<{
|
|
14698
14698
|
/**
|
|
14699
14699
|
* Specifies whether the label is hidden or not
|
|
@@ -14712,8 +14712,8 @@ declare const styles$2: {
|
|
|
14712
14712
|
};
|
|
14713
14713
|
}>;
|
|
14714
14714
|
};
|
|
14715
|
-
type LabelVariants = RecipeVariants<typeof styles$
|
|
14716
|
-
declare const styles$
|
|
14715
|
+
type LabelVariants = RecipeVariants<typeof styles$1.label>;
|
|
14716
|
+
declare const styles$2: {
|
|
14717
14717
|
link: RuntimeFn<{
|
|
14718
14718
|
/**
|
|
14719
14719
|
* Determines the visual style of the link.
|
|
@@ -14751,7 +14751,7 @@ declare const styles$3: {
|
|
|
14751
14751
|
};
|
|
14752
14752
|
}>;
|
|
14753
14753
|
};
|
|
14754
|
-
type LinkVariants = NonNullable<RecipeVariants<typeof styles$
|
|
14754
|
+
type LinkVariants = NonNullable<RecipeVariants<typeof styles$2.link>>;
|
|
14755
14755
|
declare const progressStyles: {
|
|
14756
14756
|
progress: string;
|
|
14757
14757
|
bar: string;
|
|
@@ -14791,7 +14791,7 @@ interface ProgressSprinkle {
|
|
|
14791
14791
|
*/
|
|
14792
14792
|
color?: AddDollar<keyof typeof progressColorProperties>;
|
|
14793
14793
|
}
|
|
14794
|
-
declare const styles$
|
|
14794
|
+
declare const styles$3: {
|
|
14795
14795
|
radioButton: RuntimeFn<{
|
|
14796
14796
|
/**
|
|
14797
14797
|
* Specifies the size of the radiobutton
|
|
@@ -14855,7 +14855,7 @@ declare const styles$4: {
|
|
|
14855
14855
|
input: string;
|
|
14856
14856
|
container: string;
|
|
14857
14857
|
};
|
|
14858
|
-
type RadioButtonVariants = NonNullable<RecipeVariants<typeof styles$
|
|
14858
|
+
type RadioButtonVariants = NonNullable<RecipeVariants<typeof styles$3.radioButton>>;
|
|
14859
14859
|
type SkeletonDynamicProperties = Pick<StandardLonghandProperties$1, "width" | "height" | "maxWidth" | "maxHeight" | "minWidth" | "minHeight">;
|
|
14860
14860
|
interface SkeletonSprinkle extends SkeletonDynamicProperties {
|
|
14861
14861
|
/**
|
|
@@ -15181,7 +15181,7 @@ declare const textareaStyles: {
|
|
|
15181
15181
|
}>;
|
|
15182
15182
|
};
|
|
15183
15183
|
type TextareaVariants = NonNullable<RecipeVariants<typeof textareaStyles.textarea>>;
|
|
15184
|
-
declare const styles$
|
|
15184
|
+
declare const styles$4: {
|
|
15185
15185
|
toast: RuntimeFn<{
|
|
15186
15186
|
/**
|
|
15187
15187
|
* Determines the visual style of the toast, influencing its color scheme and appearance.
|
|
@@ -15318,9 +15318,9 @@ declare const styles$5: {
|
|
|
15318
15318
|
};
|
|
15319
15319
|
}>;
|
|
15320
15320
|
};
|
|
15321
|
-
type ToastVariants = NonNullable<RecipeVariants<typeof styles$
|
|
15321
|
+
type ToastVariants = NonNullable<RecipeVariants<typeof styles$4.toast>>;
|
|
15322
15322
|
type ToastSprinkle = Pick<StandardLonghandProperties$1, "width">;
|
|
15323
|
-
declare const styles$
|
|
15323
|
+
declare const styles$5: {
|
|
15324
15324
|
toggle: RuntimeFn<{
|
|
15325
15325
|
/**
|
|
15326
15326
|
* Specifies the size of the toggle, controlling its dimensions.
|
|
@@ -15426,8 +15426,8 @@ declare const styles$6: {
|
|
|
15426
15426
|
};
|
|
15427
15427
|
}>;
|
|
15428
15428
|
};
|
|
15429
|
-
type ToggleVariants = RecipeVariants<typeof styles$
|
|
15430
|
-
declare const styles$
|
|
15429
|
+
type ToggleVariants = RecipeVariants<typeof styles$5.toggle>;
|
|
15430
|
+
declare const styles$6: {
|
|
15431
15431
|
tooltip: RuntimeFn<{
|
|
15432
15432
|
/**
|
|
15433
15433
|
* Specifies whether the color scheme should be inverted
|
|
@@ -15466,7 +15466,7 @@ declare const styles$7: {
|
|
|
15466
15466
|
}>;
|
|
15467
15467
|
container: string;
|
|
15468
15468
|
};
|
|
15469
|
-
type TooltipVariants = NonNullable<RecipeVariants<typeof styles$
|
|
15469
|
+
type TooltipVariants = NonNullable<RecipeVariants<typeof styles$6.tooltip>>;
|
|
15470
15470
|
declare const accordionStyles: {
|
|
15471
15471
|
item: RuntimeFn<{
|
|
15472
15472
|
selected: {
|
|
@@ -16182,6 +16182,14 @@ export interface DatepickerProps {
|
|
|
16182
16182
|
* The end date in a date range selection. This should be a Date object.
|
|
16183
16183
|
*/
|
|
16184
16184
|
endDate?: Date;
|
|
16185
|
+
/**
|
|
16186
|
+
* The min date in a date selection.
|
|
16187
|
+
*/
|
|
16188
|
+
minDate?: Date;
|
|
16189
|
+
/**
|
|
16190
|
+
* The max date in a date selection.
|
|
16191
|
+
*/
|
|
16192
|
+
maxDate?: Date;
|
|
16185
16193
|
/**
|
|
16186
16194
|
* Determines whether the datepicker allows selecting a date range.
|
|
16187
16195
|
* When true, the datepicker enables range selection.
|
|
@@ -16291,7 +16299,7 @@ interface RadioButtonTyping {
|
|
|
16291
16299
|
label?: string;
|
|
16292
16300
|
}
|
|
16293
16301
|
export type RadioButtonProps = RadioButtonTyping & RadioButtonVariants;
|
|
16294
|
-
interface
|
|
16302
|
+
export interface SelectOptionProps {
|
|
16295
16303
|
/**
|
|
16296
16304
|
* Label for the option. This is the text that will be displayed for the option.
|
|
16297
16305
|
*/
|
|
@@ -16303,28 +16311,28 @@ interface SelectOption {
|
|
|
16303
16311
|
}
|
|
16304
16312
|
interface SelectTyping {
|
|
16305
16313
|
/**
|
|
16306
|
-
* Options for the Select component. This should be an array of
|
|
16314
|
+
* Options for the Select component. This should be an array of SelectOptionProps objects.
|
|
16307
16315
|
*/
|
|
16308
|
-
options:
|
|
16316
|
+
options: SelectOptionProps[];
|
|
16309
16317
|
/**
|
|
16310
16318
|
* Default selected values for the Select component.
|
|
16311
|
-
* This should be an array of
|
|
16319
|
+
* This should be an array of SelectOptionProps objects representing the selected options.
|
|
16312
16320
|
*/
|
|
16313
|
-
value?:
|
|
16321
|
+
value?: SelectOptionProps | SelectOptionProps[];
|
|
16314
16322
|
/**
|
|
16315
16323
|
* Callback function that is called when the selected values change.
|
|
16316
|
-
* This function receives an array of
|
|
16324
|
+
* This function receives an array of SelectOptionProps objects representing the selected options.
|
|
16317
16325
|
*/
|
|
16318
|
-
onChange?: (selectedOptions:
|
|
16326
|
+
onChange?: (selectedOptions: SelectOptionProps | SelectOptionProps[]) => void;
|
|
16319
16327
|
/**
|
|
16320
16328
|
* Fazer
|
|
16321
16329
|
*/
|
|
16322
16330
|
multiple?: boolean;
|
|
16323
16331
|
/**
|
|
16324
16332
|
* Specifies the default selected value(s) for the select box.
|
|
16325
|
-
* This can be a
|
|
16333
|
+
* This can be a selectOption for single selection or an array of selectOption for multiple selections.
|
|
16326
16334
|
*/
|
|
16327
|
-
defaultValue?:
|
|
16335
|
+
defaultValue?: SelectOptionProps | SelectOptionProps[];
|
|
16328
16336
|
/**
|
|
16329
16337
|
* If true, the Select component is shown.
|
|
16330
16338
|
*/
|