@trackunit/react-components 0.1.377 → 0.1.378
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/index.cjs.js +13 -2
- package/index.esm.js +13 -2
- package/package.json +1 -1
- package/src/components/Collapse/Collapse.d.ts +14 -4
package/index.cjs.js
CHANGED
|
@@ -1757,8 +1757,19 @@ const cvaChevronIcon = cssClassVarianceUtilities.cvaMerge([
|
|
|
1757
1757
|
});
|
|
1758
1758
|
|
|
1759
1759
|
/**
|
|
1760
|
-
* The Collapse component is
|
|
1761
|
-
|
|
1760
|
+
* The Collapse component is a container for additional information that adds context to various flows. It is used for displaying non-essential information that can be hidden away.
|
|
1761
|
+
*
|
|
1762
|
+
* ### When to use
|
|
1763
|
+
* - To keep content off the screen to shorten pages and reduce scrolling, while it’s still only a tap away. Remember that the users might choose not to interact with the component and won’t see the information within.
|
|
1764
|
+
* - To display additional details that are not essential or necessary in the main flow/page.
|
|
1765
|
+
*
|
|
1766
|
+
* ### When not to use
|
|
1767
|
+
*
|
|
1768
|
+
* - For explanations connected to individual elements, use a tooltip instead.
|
|
1769
|
+
* - For important content that the user needs to see at a glance or a primary action to be taken on the page.
|
|
1770
|
+
* - To hide errors or information that is relevant for a user within a flow.
|
|
1771
|
+
* - To creating hierarchy levels by nesting them within each other.
|
|
1772
|
+
*
|
|
1762
1773
|
* @param {CollapseProps} props - The props for the Collapse component
|
|
1763
1774
|
* @returns {JSX.Element} Collapse component
|
|
1764
1775
|
*/
|
package/index.esm.js
CHANGED
|
@@ -1726,8 +1726,19 @@ const cvaChevronIcon = cvaMerge([
|
|
|
1726
1726
|
});
|
|
1727
1727
|
|
|
1728
1728
|
/**
|
|
1729
|
-
* The Collapse component is
|
|
1730
|
-
|
|
1729
|
+
* The Collapse component is a container for additional information that adds context to various flows. It is used for displaying non-essential information that can be hidden away.
|
|
1730
|
+
*
|
|
1731
|
+
* ### When to use
|
|
1732
|
+
* - To keep content off the screen to shorten pages and reduce scrolling, while it’s still only a tap away. Remember that the users might choose not to interact with the component and won’t see the information within.
|
|
1733
|
+
* - To display additional details that are not essential or necessary in the main flow/page.
|
|
1734
|
+
*
|
|
1735
|
+
* ### When not to use
|
|
1736
|
+
*
|
|
1737
|
+
* - For explanations connected to individual elements, use a tooltip instead.
|
|
1738
|
+
* - For important content that the user needs to see at a glance or a primary action to be taken on the page.
|
|
1739
|
+
* - To hide errors or information that is relevant for a user within a flow.
|
|
1740
|
+
* - To creating hierarchy levels by nesting them within each other.
|
|
1741
|
+
*
|
|
1731
1742
|
* @param {CollapseProps} props - The props for the Collapse component
|
|
1732
1743
|
* @returns {JSX.Element} Collapse component
|
|
1733
1744
|
*/
|
package/package.json
CHANGED
|
@@ -23,14 +23,24 @@ export interface CollapseProps extends CommonProps {
|
|
|
23
23
|
*/
|
|
24
24
|
label: React.ReactNode;
|
|
25
25
|
/**
|
|
26
|
-
* An addon to add to the header.
|
|
27
|
-
* This can be used for a status indicator or similar.
|
|
26
|
+
* An addon to add to the header. This can be used for a status indicator or similar.
|
|
28
27
|
*/
|
|
29
28
|
headerAddon?: React.ReactNode;
|
|
30
29
|
}
|
|
31
30
|
/**
|
|
32
|
-
* The Collapse component is
|
|
33
|
-
|
|
31
|
+
* The Collapse component is a container for additional information that adds context to various flows. It is used for displaying non-essential information that can be hidden away.
|
|
32
|
+
*
|
|
33
|
+
* ### When to use
|
|
34
|
+
* - To keep content off the screen to shorten pages and reduce scrolling, while it’s still only a tap away. Remember that the users might choose not to interact with the component and won’t see the information within.
|
|
35
|
+
* - To display additional details that are not essential or necessary in the main flow/page.
|
|
36
|
+
*
|
|
37
|
+
* ### When not to use
|
|
38
|
+
*
|
|
39
|
+
* - For explanations connected to individual elements, use a tooltip instead.
|
|
40
|
+
* - For important content that the user needs to see at a glance or a primary action to be taken on the page.
|
|
41
|
+
* - To hide errors or information that is relevant for a user within a flow.
|
|
42
|
+
* - To creating hierarchy levels by nesting them within each other.
|
|
43
|
+
*
|
|
34
44
|
* @param {CollapseProps} props - The props for the Collapse component
|
|
35
45
|
* @returns {JSX.Element} Collapse component
|
|
36
46
|
*/
|