groovinads-ui 1.9.844 → 1.9.846
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 +4 -1
- package/dist/index.es.js +2 -2
- package/dist/index.js +2 -2
- package/index.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,7 +122,8 @@ import { Button } from 'groovinads-ui';
|
|
|
122
122
|
| `className` | String | No | n/a | n/a | Additional CSS class names that can be applied to the button. |
|
|
123
123
|
| `disabled` | Boolean | No | `true` `false` | `false` | If true, disables the button. If false, the button is enabled. |
|
|
124
124
|
| `endIcon` | String | No | n/a | n/a | Specifies the name of the icon to be displayed at the end of the button (after the text). |
|
|
125
|
-
| `
|
|
125
|
+
| `hideLabelOnDesktop` | Boolean | No | `true` `false` | `false` | If true, the text inside the button will not be displayed on desktop (only visible on mobile). Cannot be used together with `hideLabelOnMobile`. |
|
|
126
|
+
| `hideLabelOnMobile` | Boolean | No | `true` `false` | `false` | If true, the text inside the button will not be displayed on mobile. If false, the text will be displayed on mobile. Cannot be used together with `hideLabelOnDesktop`. |
|
|
126
127
|
| `onClick` | Function | No | n/a | n/a | Function to be executed when the button is clicked. |
|
|
127
128
|
| `processing` | Boolean | No | `true` `false` | `false` | If true, displays a loading animation (…) with a spinner. If false, it will not be displayed. |
|
|
128
129
|
| `size` | String | No | `xs` `md` `lg` | `md` | Defines the size of the button. It's optional. |
|
|
@@ -270,6 +271,7 @@ export default NestedDropdownExample;
|
|
|
270
271
|
| `label` | Node | No | n/a | n/a | Label text for the dropdown toggle button. |
|
|
271
272
|
| `onToggle` | Function | No | n/a | n/a | Callback function triggered when dropdown visibility changes. |
|
|
272
273
|
| `overflow` | Boolean | No | `true` `false` | `false` | Adjusts the dropdown's position to handle overflow situations with fixed positioning. |
|
|
274
|
+
| `processing` | Boolean | No | `true` `false` | `false` | If `true`, shows a spinner instead of the icon, appends "…" to the label, and disables the dropdown. |
|
|
273
275
|
| `requiredText` | String | No | n/a | n/a | Error message displayed when validation fails. Used with `showError` prop. |
|
|
274
276
|
| `selectedValue` | Node | No | n/a | n/a | Selected value to display (used with `variant='input'` to show the current selection). |
|
|
275
277
|
| `setShow` | Function | No | n/a | n/a | Function to update the visibility state of the dropdown. |
|
|
@@ -700,6 +702,7 @@ export default ExampleInputChip;
|
|
|
700
702
|
| `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. |
|
|
701
703
|
| `disabled` | Boolean | No | `true` `false` | `false` | If `true`, disables the inputChip. If `false`, the inputChip is enabled. |
|
|
702
704
|
| `duplicateKeywordErrorText` | String | No | n/a | 'Duplicate keyword.' | Allows you to add a custom message when trying to add a keyword that already exists. |
|
|
705
|
+
| `helpText` | String | No | n/a | n/a | Help text displayed below the input field. Useful for providing additional instructions to the user. |
|
|
703
706
|
| `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. |
|
|
704
707
|
| `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. |
|
|
705
708
|
| `maxKeywordLength` | Number | No | n/a | n/a | Indicates the maximum length of each keyword. When a keyword exceeds this limit, an error message defined in `duplicateKeywordErrorText` will be displayed. |
|