groovinads-ui 1.2.72 → 1.2.74
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/README.md
CHANGED
|
@@ -452,19 +452,21 @@ const DropdownSimpleDatePickerExample = () => {
|
|
|
452
452
|
export default DropdownSimpleDatePickerExample;
|
|
453
453
|
```
|
|
454
454
|
|
|
455
|
-
| Property
|
|
456
|
-
|
|
|
457
|
-
| `className`
|
|
458
|
-
| `show`
|
|
459
|
-
| `setShow`
|
|
460
|
-
| `onToggle`
|
|
461
|
-
| `inputLabel`
|
|
462
|
-
| `overflow`
|
|
463
|
-
| `date`
|
|
464
|
-
| `setDate`
|
|
465
|
-
| `handleClear`
|
|
466
|
-
| `minDate`
|
|
467
|
-
| `maxDate`
|
|
455
|
+
| Property | Type | Required | Option | Default | Description |
|
|
456
|
+
| -------------- | -------- | -------- | -------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
457
|
+
| `className` | String | No | n/a | n/a | Adds a custom CSS class to the component. |
|
|
458
|
+
| `show` | Boolean | No | `true` `false` | `false` | Controls the visibility of the dropdown. If true, the dropdown is displayed; if false, it is hidden. |
|
|
459
|
+
| `setShow` | Function | No | n/a | n/a | Function to update the visibility state of the dropdown. |
|
|
460
|
+
| `onToggle` | Function | No | n/a | n/a | Function that is called when the dropdown is toggled. |
|
|
461
|
+
| `inputLabel` | String | No | n/a | `period` | Label to display on the dropdown toggle button. |
|
|
462
|
+
| `overflow` | Boolean | No | `true` `false` | `false` | Adjusts the dropdown's position to handle overflow situations. |
|
|
463
|
+
| `date` | String | No | n/a | `null` | Selected date. |
|
|
464
|
+
| `setDate` | Function | No | n/a | n/a | Function that updates the start date. |
|
|
465
|
+
| `handleClear` | Function | No | n/a | n/a | Allows providing, as needed, a function to reset the date, update the state as necessary, etc. If none is provided, the date will be cleared by default. |
|
|
466
|
+
| `minDate` | Object | No | n/a | n/a | Min date filter. |
|
|
467
|
+
| `maxDate` | Object | No | n/a | n/a | Max date filter. |
|
|
468
|
+
| `requiredText` | String | No | n/a | n/a | Text displayed when input validation fails, used to indicate an error. |
|
|
469
|
+
| `setShowError` | Function | No | n/a | n/a | Function used to change the state of `showError`. |
|
|
468
470
|
|
|
469
471
|
### Checkbox
|
|
470
472
|
|
|
@@ -608,18 +610,18 @@ export default ExampleInputChip;
|
|
|
608
610
|
|
|
609
611
|
```
|
|
610
612
|
|
|
611
|
-
| Property
|
|
612
|
-
|
|
|
613
|
-
| `className`
|
|
614
|
-
| `placeholder`
|
|
615
|
-
| `keywordsList`
|
|
616
|
-
| `setKeywordsList`
|
|
617
|
-
| `counter`
|
|
618
|
-
| `pillColor`
|
|
619
|
-
| `recomendedKeywords`
|
|
620
|
-
| `maxKeywords`
|
|
621
|
-
| `requiredText`
|
|
622
|
-
|
|
613
|
+
| Property | Type | Required | Options | Default | Description |
|
|
614
|
+
| --------------------------- | ------- | -------- | ------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
615
|
+
| `className` | String | No | n/a | n/a | Additional CSS class names that can be applied to the inputChip. |
|
|
616
|
+
| `placeholder` | String | Yes | n/a | n/a | Displays a suggested or descriptive text inside the input field before the user types. |
|
|
617
|
+
| `keywordsList` | Array | Yes | n/a | n/a | This property expects an array of keywords. You can initialize it as an empty array or with keywords, and it will be updated when new keywords are added or removed from the input field. |
|
|
618
|
+
| `setKeywordsList` | String | Yes | n/a | n/a | Dynamically updates the list of keywords. It is called when a new keyword is added or removed from the list. The updated array will be passed to the `keywordsList` prop. |
|
|
619
|
+
| `counter` | Boolean | No | n/a | false | If true, it will display a progressive and numeric counter of keywords. If false, it will not display it. |
|
|
620
|
+
| `pillColor` | String | No | `blue` `danger` `dark` `green` `light` `midtone` `neutral` `red` `yellow` | `neutral` | Define the color of the keyword. |
|
|
621
|
+
| `recomendedKeywords` | Number | No | n/a | n/a | Specifies the recommended number of keywords. When the keywords list (`keywordsList`) reaches the recommended number, the counter's status will change to the 'warning' color. |
|
|
622
|
+
| `maxKeywords` | Number | Yes | n/a | n/a | Indicates the maximum number of allowed keywords. When the keywordsList reaches this limit, an error message defined in requiredText will be displayed. Additionally, if the counter is enabled, its status will change to the 'danger' color. |
|
|
623
|
+
| `requiredText` | String | Yes | n/a | n/a | Texto que se mostrará como error cuando la lista de keywords (keywordsList) alcance el límite máximo definido en maxKeywords. |
|
|
624
|
+
| `duplicateKeywordErrorText` | String | No | n/a | n/a | Allows you to add a custom message when trying to add a keyword that already exists. |
|
|
623
625
|
|
|
624
626
|
### InputEmail
|
|
625
627
|
|