@sybilion/uilib 1.4.12 → 1.4.14
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/dist/esm/components/ui/Button/Button.styl.js +1 -1
- package/dist/esm/components/ui/Sidebar/Sidebar.js +21 -7
- package/dist/esm/components/ui/Sidebar/Sidebar.styl.js +2 -2
- package/dist/esm/components/ui/SmartTextTruncate/SmartTextTruncate.js +260 -67
- package/dist/esm/components/ui/SmartTextTruncate/SmartTextTruncate.styl.js +7 -0
- package/dist/esm/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.js +5 -5
- package/dist/esm/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.styl.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/src/components/ui/Chat/ChatSheet/ChatSheet.d.ts +1 -1
- package/dist/esm/types/src/components/ui/Sidebar/Sidebar.d.ts +9 -2
- package/dist/esm/types/src/components/ui/SmartTextTruncate/SmartTextTruncate.d.ts +5 -3
- package/dist/esm/types/src/components/ui/SmartTextTruncate/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/ui/Button/Button.styl +2 -2
- package/src/components/ui/Chat/ChatSheet/ChatSheet.tsx +1 -1
- package/src/components/ui/Sidebar/Sidebar.styl +63 -49
- package/src/components/ui/Sidebar/Sidebar.styl.d.ts +4 -0
- package/src/components/ui/Sidebar/Sidebar.tsx +78 -6
- package/src/components/ui/SmartTextTruncate/SmartTextTruncate.styl +34 -0
- package/src/components/ui/SmartTextTruncate/SmartTextTruncate.styl.d.ts +10 -0
- package/src/components/ui/SmartTextTruncate/SmartTextTruncate.tsx +335 -81
- package/src/components/ui/SmartTextTruncate/index.ts +5 -1
- package/src/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.styl +0 -24
- package/src/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.styl.d.ts +0 -2
- package/src/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.tsx +5 -11
- package/src/docs/components/DocsSidebar/DocsSidebar.tsx +17 -25
- package/src/docs/pages/SidebarDatasetsItemsGroupedPage.tsx +4 -1
- package/src/docs/pages/SmartTextTruncatePage.styl +13 -3
- package/src/docs/pages/SmartTextTruncatePage.styl.d.ts +2 -1
- package/src/docs/pages/SmartTextTruncatePage.tsx +16 -2
|
@@ -10,6 +10,13 @@ import S from './SmartTextTruncatePage.styl';
|
|
|
10
10
|
const LONG =
|
|
11
11
|
'Very-long-identifier-that-might-not-fit-in-a-narrow-container-without-smart-truncation';
|
|
12
12
|
|
|
13
|
+
const LIST_ITEMS = Array.from({ length: 50 }, (_, index) => {
|
|
14
|
+
const suffix = ['Constraints', 'Ontraction', 'Market Risk', 'City Protests'][
|
|
15
|
+
index % 4
|
|
16
|
+
];
|
|
17
|
+
return `Impact — Impact Report: Professional Beauty Segment Analysis ${index + 1} ${suffix} Index`;
|
|
18
|
+
});
|
|
19
|
+
|
|
13
20
|
export default function SmartTextTruncatePage() {
|
|
14
21
|
return (
|
|
15
22
|
<>
|
|
@@ -21,8 +28,15 @@ export default function SmartTextTruncatePage() {
|
|
|
21
28
|
/>
|
|
22
29
|
<DocsGuidance source={smartTextTruncateGuidance} />
|
|
23
30
|
<PageContentSection>
|
|
24
|
-
<div
|
|
25
|
-
|
|
31
|
+
<div
|
|
32
|
+
className={S.resizableListDemo}
|
|
33
|
+
data-smart-text-truncate-resize-root
|
|
34
|
+
>
|
|
35
|
+
{LIST_ITEMS.map(label => (
|
|
36
|
+
<SmartTextTruncate key={label} className={S.demoText}>
|
|
37
|
+
{label}
|
|
38
|
+
</SmartTextTruncate>
|
|
39
|
+
))}
|
|
26
40
|
</div>
|
|
27
41
|
</PageContentSection>
|
|
28
42
|
</>
|