groovinads-ui 1.2.71 → 1.2.73

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 | 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. |
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
 
@@ -582,7 +584,7 @@ const ExampleIputChip = () => (
582
584
  placeholder={'Add keywords…'}
583
585
  keywordsList={keywordsList}
584
586
  setKeywordsList={setKeywordsList}
585
- nonRecomendedKeywords={nonRecomendedKeywords}
587
+ pillColor={'green'}
586
588
  counter={true}
587
589
  maxKeywordLength={10}
588
590
  recomendedKeywords={5}
@@ -595,7 +597,7 @@ const ExampleIputChip = () => (
595
597
  placeholder={'Add keywords…'}
596
598
  keywordsList={keywordList2}
597
599
  setKeywordsList={setKeywordsList2}
598
- nonRecomendedKeywords={nonRecomendedKeywords}
600
+ pillColor={'red'}
599
601
  maxKeywordLength={10}
600
602
  maxKeywords={15}
601
603
  requiredText='You can only add up to 15 keywords.'
@@ -608,17 +610,18 @@ export default ExampleInputChip;
608
610
 
609
611
  ```
610
612
 
611
- | Property | Type | Required | Options | Default | Description |
612
- | ----------------------- | ------- | -------- | ------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
613
- | `className` | String | No | n/a | n/a | Additional CSS class names that can be applied to the inputChip. |
614
- | `placeholder` | String | Yes | n/a | n/a | Displays a suggested or descriptive text inside the input field before the user types. |
615
- | `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. |
616
- | `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. |
617
- | `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. |
618
- | `nonRecomendedKeywords` | Number | No | n/a | n/a | This property expects an array of non-recommended keywords. When the user enters a word from this array in the input field, the pill for that keyword will appear in 'danger' color. |
619
- | `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. |
620
- | `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. |
621
- | `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. |
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. |
622
625
 
623
626
  ### InputEmail
624
627