@dhasdk/simple-ui 1.0.27 → 1.0.29
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 +19 -8
- package/index.d.ts +2 -0
- package/index.js +15 -15
- package/index.mjs +1005 -954
- package/lib/ExpandableText.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ Tooltip
|
|
|
16
16
|
## Table of Contents
|
|
17
17
|
|
|
18
18
|
- [Installation](#installation-and-setup)
|
|
19
|
+
- [ChangeLog](#changelog)
|
|
19
20
|
- [Accordion](#accordion)
|
|
20
21
|
- [AppointmentPicker](#appointment-picker)
|
|
21
22
|
- [Badge](#badge)
|
|
@@ -48,6 +49,15 @@ Tooltip
|
|
|
48
49
|
<!-- ## Quick Notes: -->
|
|
49
50
|
|
|
50
51
|
|
|
52
|
+
<!-- C H A N G E L O G --------------------------------------------------------------- -->
|
|
53
|
+
|
|
54
|
+
## Changelog
|
|
55
|
+
|
|
56
|
+
1.0.29 - allow **`children`** type in **`ExpandableText`** to be **`string | null`**
|
|
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
|
+
|
|
51
61
|
|
|
52
62
|
<!-- I N S T A L L A T I O N ----------------------------------------------------------------------------------- -->
|
|
53
63
|
|
|
@@ -70,7 +80,7 @@ Tooltip
|
|
|
70
80
|
- Elsewhere in your file, use the component as documented below
|
|
71
81
|
|
|
72
82
|
|
|
73
|
-
<!-- A C C O R D I O N
|
|
83
|
+
<!-- A C C O R D I O N -------------------------------------------------------------- -->
|
|
74
84
|
|
|
75
85
|
## Accordion
|
|
76
86
|
|
|
@@ -839,13 +849,14 @@ buttons.
|
|
|
839
849
|
|
|
840
850
|
| Prop | Type | Optional | Default | Description |
|
|
841
851
|
| ----------- | -------- | -------- | -------- | -------------------------------------------- |
|
|
842
|
-
| buttonText | string | Yes | **`'more'`** | text label for the 'more' button
|
|
843
|
-
|
|
|
844
|
-
|
|
|
845
|
-
|
|
|
846
|
-
|
|
|
847
|
-
|
|
|
848
|
-
|
|
|
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 |
|
|
849
860
|
|
|
850
861
|
### Example Usage
|
|
851
862
|
|
package/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export { CheckBox, CheckBoxGroup } from './lib/CheckBox';
|
|
|
15
15
|
export type { CheckBoxProps, CheckBoxGroupProps } from './lib/CheckBox';
|
|
16
16
|
export { DatePicker } from './lib/DatePicker';
|
|
17
17
|
export type { DatePickerProps } from './lib/DatePicker';
|
|
18
|
+
export { ExpandableText } from './lib/ExpandableText';
|
|
19
|
+
export type { ExpandableTextProps } from './lib/ExpandableText';
|
|
18
20
|
export { IconPosition } from './lib/Tabs';
|
|
19
21
|
export { Input } from './lib/Input';
|
|
20
22
|
export { List, ListItem } from './lib/List';
|