@dhasdk/simple-ui 1.0.69 → 1.0.70

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
@@ -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,8 @@ Tooltip
53
54
 
54
55
  ## Changelog
55
56
 
57
+ 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.
58
+
56
59
  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
60
 
58
61
  1.0.68 - added a **`classNameLabelText`** prop to **`RadioGroup`** that styles the text only portion of the radio item
@@ -188,6 +191,7 @@ Finally, if Accordion props are specified inside the parent component, those val
188
191
  | 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
192
  | dataTestId | string | Yes | undefined | A **'data-testid'** value that is applied to the div element inside AccordionGroup that wraps individual Accordion components |
190
193
  | 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. |
194
+ | 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
195
  | ...props | string | No | | takes additional props that are not specifically defined in the component, i.e. aria-label |
192
196
  | 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
197
  | 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 +214,8 @@ Finally, if Accordion props are specified inside the parent component, those val
210
214
  | 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
215
  | 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
216
  | index | number | string | yes | undefined | optional index value for a specific accordion in the stack. if not present, label is used. |
213
- | onExpand | (setOpen: CallbackFunction) => void | Yes | undefined | Callback function that is executed when Accordin is expanded. |
217
+ | 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
218
+ like the **`AccordionParent`** component does. |
214
219
  | ...props | string | No | | takes additional props that are not specifically defined in the component, i.e. aria-label |
215
220
  <!-- | 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
221
  | 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. |
@@ -2457,6 +2462,8 @@ In addition to the normal component props listed below, this component can also
2457
2462
 
2458
2463
  **_none_**
2459
2464
 
2465
+ [Top of Page](#table-of-contents)
2466
+
2460
2467
  <!-- T O G G L E -------------------------------------------------------------------- -->
2461
2468
 
2462
2469
  ## Toggle