@dhasdk/simple-ui 1.0.22 → 1.0.24

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
@@ -1326,8 +1326,7 @@ Full list of props below
1326
1326
  | Prop | Type | Optional | Default | Description |
1327
1327
  | ----------- | -------- | -------- | -------- | ----------- |
1328
1328
  | airaLabel | **`string`** | Yes | **`'Search'`** | The aria-label to assign to this Search component |
1329
- | className | **`string`** | Yes | see (1) below | alternate css classes to add/change styling of
1330
- the input element. |
1329
+ | className | **`string`** | Yes | see (1) below | alternate css classes to add/change styling of the input element. |
1331
1330
  | classNameContainer | **`string`** | Yes | **`h-12 md:h-[50px] lg:h-14 flex items-center max-w-full relative`** | alternate css classes to add/change styling of the span tag that wraps the search component. |
1332
1331
  | classNameInputContainer | **`string`** | Yes | **`border-[#6a686b] w-[309px] md:w-[334px] lg:w-[350px] inline-flex bg-white items-center`** | alternate css classes to add/change styling of the span tag that wraps the search component. |
1333
1332
  | classNameListOutput | **`string`** | Yes | see (2) below | alternate css classes to add/change styling of the output list or search results box. |
@@ -1669,17 +1668,18 @@ Full list of props below
1669
1668
  | appName | string | No | undefined | The application name to dispilay |
1670
1669
  | children | ReactNode | Yes | undefined | This prop takes in any children and displays them between the horizontal rule and the list of menu items. It is intended for to allow developers to add a Search component. See usage example above. |
1671
1670
  | className | string | Yes | (1) below | a group of alternate css classes that can be specified by the developer and applied to the outer **`div`** element. |
1672
- | classNameBackButton | string | Yes | **`-mt-8 w-full relative hover:cursor-pointer`** | alternative CSS classes that are
1673
- applied to the **`button`** (container) that contains the back arrow image and 'Back' text.|
1674
- | clickOutsideCloses | boolean | Yes | **`false`** | clicking or tapping elsewhere on the application will close the SideBarNav |
1675
- | image | string | No | undefined | string path to the application logo to display |
1671
+ | classNameBackgroundShadow | string | Yes | **`absolute inset-0 bg-black/70 z-10`** | a group of alternate css classes that can be specified by the developer and applied to the outer **`div`** element. |
1672
+ | classNameBackButton | string | Yes | **`-mt-8 w-full relative hover:cursor-pointer`** | alternative CSS classes that are applied to the **`button`** (container) that contains the back arrow image and 'Back' text.|
1676
1673
  | classNameImage | string | Yes | (2) below | a group of alternate classes that can be specified for the logo image, and applied to the **`img`** element |
1677
- | classNameImageContainer | string | Yes | (2) below | a group of alternate classes that can be specified for the logo image's container, and applied to the **`img`** element |
1678
- | customButton | boolean | Yes | false | When present (or true) this sets the SideBarNav to respond to the custom event handler **`toggleSideBarNav`**. This allows the developer to utilize their own button that simply executes the above custom event handler to toggle the SideBarNav open & closed state. |
1679
- | menu | boolean | Yes | false | when **`true`**, the default in-component hamburger menu is displayed and used to display or hide the SideBarNav |
1674
+ | classNameImageContainer | string | Yes | **`w-16 h-16 mx-auto`** | a group of alternate classes that can be specified for the logo image's container, and applied to the **`img`** element |
1680
1675
  | classNameMenu | string | Yes | empty string | alternate css classes to apply to the element that makes up the hamburger menu |
1681
1676
  | classNameMenuContainer | string | Yes | (3) below | alternate css classes to apply to the **`button`** element that wraps up the hamburger menu |
1682
1677
  | classNameMenuItem | string | Yes | 'pb-4' | allows the user to add alternate classes via **`twMerge`** to individual menu items |
1678
+ | backgroundShadow | boolean | Yes | false | When true (or present) this sets a background shadow that covers the page with the SideBarNav on top when activated. See also **`classNameBackgroundShadow`** to apply custom styling. |
1679
+ | clickOutsideCloses | boolean | Yes | **`false`** | clicking or tapping elsewhere on the application will close the SideBarNav |
1680
+ | customButton | boolean | Yes | false | When present (or true) this sets the SideBarNav to respond to the custom event handler **`toggleSideBarNav`**. This allows the developer to utilize their own button that simply executes the above custom event handler to toggle the SideBarNav open & closed state. |
1681
+ | image | string | No | undefined | string path to the application logo to display |
1682
+ | menu | boolean | Yes | false | when **`true`**, the default in-component hamburger menu is displayed and used to display or hide the SideBarNav |
1683
1683
  | menuItems | ListItemProps[] | No | undefined, see (4) below | The menu items to display |
1684
1684
  | right | boolean | Yes | false | when true right-aligns the text inside the sidebarNav |
1685
1685
  | version | string | No | undefined | The version number to display |
@@ -1690,9 +1690,9 @@ applied to the **`button`** (container) that contains the back arrow image and '
1690
1690
  - w/o menu **`relative w-56 h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto`**
1691
1691
  - w/ menu, include also **`fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300`**
1692
1692
 
1693
- 2. Default classes applied to **`img`** - **`border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1`**
1693
+ 1. Default classes applied to **`img`** - **`border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1`**
1694
1694
 
1695
- 3. Default classes applied to **`button`** - **`size-8 mb-4`**
1695
+ 2. Default classes applied to **`button`** - **`size-8 mb-4`**
1696
1696
 
1697
1697
 
1698
1698
  ### Example Usage