@indico-data/design-system 2.56.0 → 2.58.0
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/lib/components/index.d.ts +2 -0
- package/lib/components/toast/Toast.stories.d.ts +6 -0
- package/lib/components/toast/index.d.ts +1 -0
- package/lib/components/truncate/Truncate.d.ts +2 -0
- package/lib/components/truncate/Truncate.stories.d.ts +9 -0
- package/lib/components/truncate/__tests__/Truncate.test.d.ts +1 -0
- package/lib/components/truncate/index.d.ts +1 -0
- package/lib/components/truncate/types.d.ts +7 -0
- package/lib/index.css +37 -0
- package/lib/index.d.ts +12 -1
- package/lib/index.esm.css +37 -0
- package/lib/index.esm.js +106 -49
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +107 -47
- package/lib/index.js.map +1 -1
- package/package.json +3 -1
- package/src/components/index.ts +2 -0
- package/src/components/toast/Toast.mdx +14 -0
- package/src/components/toast/Toast.stories.tsx +55 -0
- package/src/components/toast/index.ts +1 -0
- package/src/components/toast/styles/Toast.scss +17 -0
- package/src/components/truncate/Truncate.mdx +34 -0
- package/src/components/truncate/Truncate.stories.tsx +86 -0
- package/src/components/truncate/Truncate.tsx +55 -0
- package/src/components/truncate/__tests__/Truncate.test.tsx +61 -0
- package/src/components/truncate/index.ts +1 -0
- package/src/components/truncate/styles/Truncate.scss +22 -0
- package/src/components/truncate/types.ts +7 -0
- package/src/index.ts +2 -1
- package/src/styles/index.scss +2 -0
- package/src/stylesAndAnimations/colors/constants.ts +138 -100
|
@@ -25,3 +25,5 @@ export { TanstackTable } from './tanstackTable';
|
|
|
25
25
|
export { Tooltip } from './tooltip';
|
|
26
26
|
export { BarSpinner } from './loading-indicators/BarSpinner/BarSpinner';
|
|
27
27
|
export { CirclePulse } from './loading-indicators/CirclePulse/CirclePulse';
|
|
28
|
+
export { Truncate } from './truncate';
|
|
29
|
+
export { toast, ToastContainer } from 'react-toastify';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toast, ToastContainer } from 'react-toastify';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Truncate } from './Truncate';
|
|
3
|
+
import { TruncateProps } from './types';
|
|
4
|
+
declare const meta: Meta<typeof Truncate>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<TruncateProps>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithLineClamp: Story;
|
|
9
|
+
export declare const NoTooltip: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Truncate } from './Truncate';
|
package/lib/index.css
CHANGED
|
@@ -2637,6 +2637,43 @@ form {
|
|
|
2637
2637
|
}
|
|
2638
2638
|
}
|
|
2639
2639
|
|
|
2640
|
+
.truncate-wrapper {
|
|
2641
|
+
width: 100%;
|
|
2642
|
+
display: block;
|
|
2643
|
+
}
|
|
2644
|
+
.truncate-wrapper .truncate {
|
|
2645
|
+
white-space: nowrap;
|
|
2646
|
+
overflow: hidden;
|
|
2647
|
+
text-overflow: ellipsis;
|
|
2648
|
+
width: 100%;
|
|
2649
|
+
display: inline-block;
|
|
2650
|
+
}
|
|
2651
|
+
.truncate-wrapper .truncate-clip {
|
|
2652
|
+
display: -webkit-box;
|
|
2653
|
+
-webkit-box-orient: vertical;
|
|
2654
|
+
-webkit-line-clamp: var(--line-clamp);
|
|
2655
|
+
line-clamp: var(--line-clamp);
|
|
2656
|
+
overflow: hidden;
|
|
2657
|
+
text-overflow: ellipsis;
|
|
2658
|
+
width: 100%;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
:root,
|
|
2662
|
+
:root [data-theme=light],
|
|
2663
|
+
:root [data-theme=dark] {
|
|
2664
|
+
--toastify-color-dark: var(--pf-background-color-light);
|
|
2665
|
+
--toastify-color-progress-dark: var(--pf-primary-color-400);
|
|
2666
|
+
--toastify-icon-color-success: var(--pf-success-color);
|
|
2667
|
+
--toastify-color-progress-bgo: 0.2;
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
:root [data-theme=dark] {
|
|
2671
|
+
--toastify-color-dark: var(--pf-background-color-light);
|
|
2672
|
+
--toastify-color-progress-dark: var(--pf-primary-color-400);
|
|
2673
|
+
--toastify-icon-color-success: var(--pf-success-color);
|
|
2674
|
+
--toastify-color-progress-bgo: 0.2;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2640
2677
|
:root [data-theme=light] {
|
|
2641
2678
|
--sheets-background-color: var(--pf-gray-color-100);
|
|
2642
2679
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { DateRange, OnSelectHandler, Mode, CustomComponents, Matcher, Formatters
|
|
|
11
11
|
import { ColumnDef, Row as Row$1 } from '@tanstack/react-table';
|
|
12
12
|
export { ColumnDef, Row as TanstackTableRowType, Table as TanstackTableType } from '@tanstack/react-table';
|
|
13
13
|
import { PlacesType } from 'react-tooltip';
|
|
14
|
+
export { ToastContainer, toast } from 'react-toastify';
|
|
14
15
|
|
|
15
16
|
declare const registerFontAwesomeIcons: (...icons: IconDefinition[]) => void;
|
|
16
17
|
|
|
@@ -617,4 +618,14 @@ declare function BarSpinner({ width, id, height, className, ...rest }: {
|
|
|
617
618
|
[key: string]: any;
|
|
618
619
|
}): react_jsx_runtime.JSX.Element;
|
|
619
620
|
|
|
620
|
-
|
|
621
|
+
interface TruncateProps {
|
|
622
|
+
lineClamp?: number;
|
|
623
|
+
truncateString: string;
|
|
624
|
+
hasTooltip?: boolean;
|
|
625
|
+
tooltipId?: string;
|
|
626
|
+
[key: string]: any;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
declare const Truncate: ({ lineClamp, truncateString, hasTooltip, tooltipId, ...rest }: TruncateProps) => react_jsx_runtime.JSX.Element;
|
|
630
|
+
|
|
631
|
+
export { Badge, BarSpinner, Button, Card, Checkbox, CirclePulse, Col, Container, DatePicker, FloatUI, Form, Icon, IconTriggerDatePicker, LabeledInput as Input, Menu, Modal, Pagination, LabeledPasswordInput as PasswordInput, Pill, Radio as RadioInput, Row, Select as SelectInput, SingleInputDatePicker, Skeleton, Table, TanstackTable, LabeledTextarea as Textarea, TimePicker, Toggle as ToggleInput, Tooltip, Truncate, registerFontAwesomeIcons };
|
package/lib/index.esm.css
CHANGED
|
@@ -2637,6 +2637,43 @@ form {
|
|
|
2637
2637
|
}
|
|
2638
2638
|
}
|
|
2639
2639
|
|
|
2640
|
+
.truncate-wrapper {
|
|
2641
|
+
width: 100%;
|
|
2642
|
+
display: block;
|
|
2643
|
+
}
|
|
2644
|
+
.truncate-wrapper .truncate {
|
|
2645
|
+
white-space: nowrap;
|
|
2646
|
+
overflow: hidden;
|
|
2647
|
+
text-overflow: ellipsis;
|
|
2648
|
+
width: 100%;
|
|
2649
|
+
display: inline-block;
|
|
2650
|
+
}
|
|
2651
|
+
.truncate-wrapper .truncate-clip {
|
|
2652
|
+
display: -webkit-box;
|
|
2653
|
+
-webkit-box-orient: vertical;
|
|
2654
|
+
-webkit-line-clamp: var(--line-clamp);
|
|
2655
|
+
line-clamp: var(--line-clamp);
|
|
2656
|
+
overflow: hidden;
|
|
2657
|
+
text-overflow: ellipsis;
|
|
2658
|
+
width: 100%;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
:root,
|
|
2662
|
+
:root [data-theme=light],
|
|
2663
|
+
:root [data-theme=dark] {
|
|
2664
|
+
--toastify-color-dark: var(--pf-background-color-light);
|
|
2665
|
+
--toastify-color-progress-dark: var(--pf-primary-color-400);
|
|
2666
|
+
--toastify-icon-color-success: var(--pf-success-color);
|
|
2667
|
+
--toastify-color-progress-bgo: 0.2;
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
:root [data-theme=dark] {
|
|
2671
|
+
--toastify-color-dark: var(--pf-background-color-light);
|
|
2672
|
+
--toastify-color-progress-dark: var(--pf-primary-color-400);
|
|
2673
|
+
--toastify-icon-color-success: var(--pf-success-color);
|
|
2674
|
+
--toastify-color-progress-bgo: 0.2;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2640
2677
|
:root [data-theme=light] {
|
|
2641
2678
|
--sheets-background-color: var(--pf-gray-color-100);
|
|
2642
2679
|
}
|