@dhasdk/simple-ui 1.0.69 → 1.0.71
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 +17 -1
- package/index.js +16 -16
- package/index.mjs +899 -883
- package/lib/Accordion.d.ts +3 -1
- package/lib/RadioGroup.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,6 +43,7 @@ Tooltip
|
|
|
43
43
|
- [Slider](#slider)
|
|
44
44
|
- [Status](#status)
|
|
45
45
|
- [Tabs](#tabs)
|
|
46
|
+
- [TextArea](#textarea)
|
|
46
47
|
- [Toggle](#toggle)
|
|
47
48
|
- [Tooltip](#tooltip)
|
|
48
49
|
|
|
@@ -53,6 +54,10 @@ Tooltip
|
|
|
53
54
|
|
|
54
55
|
## Changelog
|
|
55
56
|
|
|
57
|
+
1.0.71 - added the **`classNameIconContainer`** prop to allow for sizing of the icons used for the **`RadioGroup`** component.
|
|
58
|
+
|
|
59
|
+
1.0.70 - bug fix for **`onExpand`** handler in **`Accordion`**, added a separate **`onExpand`** handler to **`AccordionParent`** that is called with an index + boolean expanded.
|
|
60
|
+
|
|
56
61
|
1.0.69 - added a **`classNameIcon`** prop to **`RadioGroup`** to style the SVG icon used for radio input items. Also added the **`TextArea`** component and documentation.
|
|
57
62
|
|
|
58
63
|
1.0.68 - added a **`classNameLabelText`** prop to **`RadioGroup`** that styles the text only portion of the radio item
|
|
@@ -188,6 +193,7 @@ Finally, if Accordion props are specified inside the parent component, those val
|
|
|
188
193
|
| classNameHr | string | Yes | CSS classes applied to the HR that sits between the accordion heading and content body when open and the prop useBackground is true. |
|
|
189
194
|
| dataTestId | string | Yes | undefined | A **'data-testid'** value that is applied to the div element inside AccordionGroup that wraps individual Accordion components |
|
|
190
195
|
| hr | boolean | Yes | true | This boolean value when true directs the display an hr element between the Accordion heading and body when in the open state. |
|
|
196
|
+
| onExpand | **`(expand: boolean, index: number) => void`** | Yes | void | Calls the passed in handler with a boolean indicating whether this Child Accordion is expanded and the Child Accordions index value (0 based). Note: This handler uses a different interface than the one applied directly to **`Accordion`**. |
|
|
191
197
|
| ...props | string | No | | takes additional props that are not specifically defined in the component, i.e. aria-label |
|
|
192
198
|
| singleOpen | boolean | Yes | false | This boolean value directs the accordion to allow only one opened child content body at a time. Setting a value of false will allow multiple to be opened at once. |
|
|
193
199
|
| useBackground | boolean | Yes | true | This boolean value causes the accordion content block to use the same background as the accordion heading. When true, an hr is also present at the top of the content block to separate the heading from the content. This hr can be styled separately using the classNameHr prop. |
|
|
@@ -210,7 +216,8 @@ Finally, if Accordion props are specified inside the parent component, those val
|
|
|
210
216
|
| dataTestIdBody | string | Yes | undefined | A **'data-testid'** value that is applied to the div element that that contains the body of the opened Accordion component. Only present when the Accordion is in the opened state, used for testing purposes |
|
|
211
217
|
| hr | boolean | Yes | true | This boolean value when true directs the display an hr element between the Accordion heading and body when in the open state. |
|
|
212
218
|
| index | number | string | yes | undefined | optional index value for a specific accordion in the stack. if not present, label is used. |
|
|
213
|
-
| onExpand | (
|
|
219
|
+
| onExpand | **`(expand: boolean) => void`** | Yes | void | Calls the passed in handler with a boolean indicating whether this Child Accordion is expanded. Note: This handler does not take or pass an index value
|
|
220
|
+
like the **`AccordionParent`** component does. |
|
|
214
221
|
| ...props | string | No | | takes additional props that are not specifically defined in the component, i.e. aria-label |
|
|
215
222
|
<!-- | rounded | boolean | Yes | false | This boolean value indicates whether to display rounded corners or not. By using this prop vs custom classes, only the top of the heading is rounded in an opened state, and only the bottom of the content block is rounded also. | -->
|
|
216
223
|
| singleOpen | boolean | Yes | false | This boolean value directs the accordion to allow only one opened child content body at a time. Setting a value of false will allow multiple to be opened at once. |
|
|
@@ -1444,6 +1451,7 @@ Full list of props below
|
|
|
1444
1451
|
| classNameContainer | **`string`** | Yes | **`undefined`** | a group of alternate css classes that can be specified by the developer for use in the container (fieldset) element. |
|
|
1445
1452
|
| classNameInput | **`string`** | Yes | see below | a group of alternate css classes that can be specified by the developer for use in the input element of the component. |
|
|
1446
1453
|
| classNameIcon | **`string`** | Yes | | TailwindCSS classes that can be applied to the SVG icon, affects the fill regon. |
|
|
1454
|
+
| classNameIconContainer | **`string`** | Yes | see below | TailwindCSS classes that can be applied to the **`span`** element that wraps the icon. This can be used to re-size the **SVG** icon. |
|
|
1447
1455
|
| classNameLabel | **`string`** | Yes | see below | a group of alternate css classes that can be specified by the developer for use in the label element of the component. |
|
|
1448
1456
|
| classNameLabelText | **`string`** | Yes | **`ml-1`** | a group of alternate css classes that can be specified by the developer for use in the text portion of label inside the component. |
|
|
1449
1457
|
| dataTestId | string | Yes | undefined | A **'data-testid'** value that is applied to the fieldset element that wraps RadioGroup for testing purposes |
|
|
@@ -1472,6 +1480,12 @@ twMerge(
|
|
|
1472
1480
|
checked:bg-black checked:p-[2.5px] checked:border-black
|
|
1473
1481
|
```
|
|
1474
1482
|
|
|
1483
|
+
- classNameIconContainer
|
|
1484
|
+
|
|
1485
|
+
```tsx
|
|
1486
|
+
rounded-full size-4 border border-black flex items-center justify-center
|
|
1487
|
+
```
|
|
1488
|
+
|
|
1475
1489
|
|
|
1476
1490
|
2. Options interface
|
|
1477
1491
|
|
|
@@ -2457,6 +2471,8 @@ In addition to the normal component props listed below, this component can also
|
|
|
2457
2471
|
|
|
2458
2472
|
**_none_**
|
|
2459
2473
|
|
|
2474
|
+
[Top of Page](#table-of-contents)
|
|
2475
|
+
|
|
2460
2476
|
<!-- T O G G L E -------------------------------------------------------------------- -->
|
|
2461
2477
|
|
|
2462
2478
|
## Toggle
|