@dhasdk/simple-ui 1.0.28 → 1.0.30

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
@@ -49,6 +49,15 @@ Tooltip
49
49
  <!-- ## Quick Notes: -->
50
50
 
51
51
 
52
+ <!-- C H A N G E L O G --------------------------------------------------------------- -->
53
+
54
+ ## Changelog
55
+
56
+ 1.0.29/30 - allow **`children`** type in **`ExpandableText`** to be **`string | undefined`**
57
+ 1.0.28 - added an **`ExpandabledText`** component
58
+ 1.0.26 - bug fix for **`DatePicker`** component on Safari
59
+ 1.0.25 - bug fix for **`Search`** component positioning
60
+
52
61
 
53
62
  <!-- I N S T A L L A T I O N ----------------------------------------------------------------------------------- -->
54
63
 
@@ -71,13 +80,6 @@ Tooltip
71
80
  - Elsewhere in your file, use the component as documented below
72
81
 
73
82
 
74
- <!-- C H A N G E L O G --------------------------------------------------------------- -->
75
-
76
- ## ChangeLog
77
-
78
- 1.0.28 - added an **`ExpandabledText`** component
79
-
80
-
81
83
  <!-- A C C O R D I O N -------------------------------------------------------------- -->
82
84
 
83
85
  ## Accordion
@@ -847,13 +849,14 @@ buttons.
847
849
 
848
850
  | Prop | Type | Optional | Default | Description |
849
851
  | ----------- | -------- | -------- | -------- | -------------------------------------------- |
850
- | buttonText | string | Yes | **`'more'`** | text label for the 'more' button
851
- | className | string | Yes | **`''`** | tailwind classes to style the component container with |
852
- | classNameCollapseButton | string | Yes | **`ml-2 text-blue-600 underline hover:text-blue-800 focus:outline-none`** | tailwind classes to style the collapse button |
853
- | classNameMoreButton | string | Yes | **`ml-2 text-blue-600 underline hover:text-blue-800 focus:outline-none`** | tailwind classes to style the collapse button |
854
- | collapseButton | boolean | Yes | **`false`** | to display a collapse button or not |
855
- | collapseText | string | Yes | **`'collapse'`** | text label for 'collapse' button |
856
- | initialChars | integer | Yes | 40 | number of characters to display by default |
852
+ | buttonText | **`string`** | Yes | **`'more'`** | text label for the 'more' button |
853
+ | children | **`string \| null`** | No | **`''`** | text that this component truncates and displays |
854
+ | className | **`string`** | Yes | **`''`** | tailwind classes to style the component container with |
855
+ | classNameCollapseButton | **`string`** | Yes | **`ml-2 text-blue-600 underline hover:text-blue-800 focus:outline-none`** | tailwind classes to style the collapse button |
856
+ | classNameMoreButton | **`string`** | Yes | **`ml-2 text-blue-600 underline hover:text-blue-800 focus:outline-none`** | tailwind classes to style the collapse button |
857
+ | collapseButton | **`boolean`** | Yes | **`false`** | to display a collapse button or not |
858
+ | collapseText | **`string`** | Yes | **`'collapse'`** | text label for 'collapse' button |
859
+ | initialChars | **`integer`** | Yes | 40 | number of characters to display by default |
857
860
 
858
861
  ### Example Usage
859
862
 
@@ -1,5 +1,5 @@
1
1
  export interface ExpandableTextProps {
2
- children: string;
2
+ children: string | undefined;
3
3
  initialChars?: number;
4
4
  classNameMoreButton?: string;
5
5
  classNameCollapseButton?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhasdk/simple-ui",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "license": "MIT",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",