@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.
@@ -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,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ToastContainer } from './index';
3
+ declare const meta: Meta<typeof ToastContainer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ToastContainer>;
6
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export { toast, ToastContainer } from 'react-toastify';
@@ -0,0 +1,2 @@
1
+ import { TruncateProps } from './types';
2
+ export declare const Truncate: ({ lineClamp, truncateString, hasTooltip, tooltipId, ...rest }: TruncateProps) => import("react/jsx-runtime").JSX.Element;
@@ -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 { Truncate } from './Truncate';
@@ -0,0 +1,7 @@
1
+ export interface TruncateProps {
2
+ lineClamp?: number;
3
+ truncateString: string;
4
+ hasTooltip?: boolean;
5
+ tooltipId?: string;
6
+ [key: string]: any;
7
+ }
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
- 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, registerFontAwesomeIcons };
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
  }