@indico-data/design-system 2.27.0 → 2.28.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/index.css +10 -11
- package/lib/index.d.ts +11 -11
- package/lib/index.esm.css +10 -11
- package/lib/index.esm.js +11101 -10242
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +11150 -10276
- package/lib/index.js.map +1 -1
- package/lib/src/components/floatUI/FloatUI.d.ts +2 -0
- package/lib/src/components/floatUI/FloatUI.stories.d.ts +8 -0
- package/lib/src/components/floatUI/index.d.ts +1 -0
- package/lib/src/components/floatUI/types.d.ts +9 -0
- package/lib/src/components/index.d.ts +1 -1
- package/lib/src/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/floatUI/FloatUI.mdx +84 -0
- package/src/components/floatUI/FloatUI.stories.tsx +157 -0
- package/src/components/floatUI/FloatUI.test.tsx +129 -0
- package/src/components/floatUI/FloatUI.tsx +82 -0
- package/src/components/floatUI/index.ts +1 -0
- package/src/components/floatUI/styles/FloatUI.scss +11 -0
- package/src/components/floatUI/styles/_variables.scss +14 -0
- package/src/components/floatUI/types.ts +10 -0
- package/src/components/index.ts +1 -1
- package/src/index.ts +4 -1
- package/src/styles/index.scss +1 -1
- package/lib/src/components/popper/Popper.d.ts +0 -12
- package/lib/src/components/popper/Popper.stories.d.ts +0 -6
- package/lib/src/components/popper/index.d.ts +0 -1
- package/src/components/popper/Popper.mdx +0 -79
- package/src/components/popper/Popper.stories.tsx +0 -160
- package/src/components/popper/Popper.test.tsx +0 -68
- package/src/components/popper/Popper.tsx +0 -57
- package/src/components/popper/index.ts +0 -1
- package/src/components/popper/styles/Popper.scss +0 -11
- package/src/components/popper/styles/_variables.scss +0 -15
- /package/lib/src/components/{popper/Popper.test.d.ts → floatUI/FloatUI.test.d.ts} +0 -0
package/lib/index.css
CHANGED
|
@@ -1691,25 +1691,24 @@ form {
|
|
|
1691
1691
|
:root,
|
|
1692
1692
|
:root [data-theme=light],
|
|
1693
1693
|
:root [data-theme=dark] {
|
|
1694
|
-
--pf-
|
|
1695
|
-
--pf-
|
|
1696
|
-
--pf-
|
|
1697
|
-
--pf-popper-padding: var(--pf-padding-2);
|
|
1694
|
+
--pf-floatui-background-color: var(--pf-white-color);
|
|
1695
|
+
--pf-floatui-border-color: var(--pf-gray-color-900);
|
|
1696
|
+
--pf-floatui-border-radius: var(--pf-rounded);
|
|
1698
1697
|
}
|
|
1699
1698
|
|
|
1700
1699
|
:root [data-theme=dark] {
|
|
1701
|
-
--pf-
|
|
1702
|
-
--pf-
|
|
1700
|
+
--pf-floatui-background-color: var(--pf-primary-color-600);
|
|
1701
|
+
--pf-floatui-border-color: var(--pf-gray-color);
|
|
1703
1702
|
}
|
|
1704
1703
|
|
|
1705
|
-
.
|
|
1704
|
+
.floatui-container {
|
|
1706
1705
|
z-index: 99;
|
|
1707
1706
|
}
|
|
1708
1707
|
|
|
1709
|
-
.
|
|
1710
|
-
border-radius: var(--pf-
|
|
1711
|
-
border: 1px solid var(--pf-
|
|
1712
|
-
background: var(--pf-
|
|
1708
|
+
.floatui-content {
|
|
1709
|
+
border-radius: var(--pf-floatui-border-radius);
|
|
1710
|
+
border: 1px solid var(--pf-floatui-border-color);
|
|
1711
|
+
background: var(--pf-floatui-background-color);
|
|
1713
1712
|
}
|
|
1714
1713
|
|
|
1715
1714
|
.rdp {
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { UseFloatingOptions } from '@floating-ui/react-dom';
|
|
2
|
+
export * from '@floating-ui/react-dom';
|
|
1
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
4
|
import * as styled_components from 'styled-components';
|
|
3
|
-
import React$1, { ChangeEvent, MouseEventHandler } from 'react';
|
|
5
|
+
import React$1, { ChangeEvent, MouseEventHandler, ReactElement } from 'react';
|
|
4
6
|
import { PermafrostComponent as PermafrostComponent$1, IconName as IconName$1, IconSizes as IconSizes$1, SemanticColor } from '@/types';
|
|
5
7
|
import { AriaButtonProps } from '@react-types/button';
|
|
6
8
|
import { AriaRadioProps, RadioGroupProps as RadioGroupProps$1, AriaRadioGroupProps } from '@react-types/radio';
|
|
@@ -8,7 +10,6 @@ import { DateRange } from 'react-day-picker';
|
|
|
8
10
|
import { ContainerProps, RowProps, ColProps } from 'react-grid-system';
|
|
9
11
|
import { TableProps as TableProps$1, Direction as Direction$1, Alignment as Alignment$1 } from 'react-data-table-component';
|
|
10
12
|
import { Props as Props$r } from 'react-select';
|
|
11
|
-
import { Placement } from '@floating-ui/react-dom';
|
|
12
13
|
|
|
13
14
|
declare const GlobalStyles: () => react_jsx_runtime.JSX.Element;
|
|
14
15
|
|
|
@@ -1058,16 +1059,15 @@ type Props = {
|
|
|
1058
1059
|
};
|
|
1059
1060
|
declare const Card: React$1.FC<Props>;
|
|
1060
1061
|
|
|
1061
|
-
type
|
|
1062
|
-
children:
|
|
1063
|
-
referenceElement: HTMLElement | null;
|
|
1064
|
-
isOpen: boolean;
|
|
1065
|
-
onClose: () => void;
|
|
1062
|
+
type FloatUIProps = {
|
|
1063
|
+
children: [ReactElement, ReactElement];
|
|
1066
1064
|
ariaLabel: string;
|
|
1067
|
-
|
|
1068
|
-
|
|
1065
|
+
floatingOptions?: UseFloatingOptions;
|
|
1066
|
+
isOpen?: boolean;
|
|
1067
|
+
setIsOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
1069
1068
|
};
|
|
1070
|
-
|
|
1069
|
+
|
|
1070
|
+
declare function FloatUI({ children, ariaLabel, isOpen: controlledIsOpen, setIsOpen: controlledSetIsOpen, floatingOptions, }: FloatUIProps): react_jsx_runtime.JSX.Element;
|
|
1071
1071
|
|
|
1072
1072
|
type MenuProps = {
|
|
1073
1073
|
children: React$1.ReactNode;
|
|
@@ -1076,4 +1076,4 @@ declare function Menu({ children }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
|
1076
1076
|
|
|
1077
1077
|
declare const Pill: ({ children, className, color, size, ...rest }: PillProps) => react_jsx_runtime.JSX.Element;
|
|
1078
1078
|
|
|
1079
|
-
export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, EditableInput, Form, GlobalStyles, Icon, IconButton, LabeledInput as Input, Button$1 as LegacyButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, Menu, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, padding as PADDINGS, Pagination, LabeledPasswordInput as PasswordInput, PercentageRing, Pill,
|
|
1079
|
+
export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, EditableInput, FloatUI, Form, GlobalStyles, Icon, IconButton, LabeledInput as Input, Button$1 as LegacyButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, Menu, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, padding as PADDINGS, Pagination, LabeledPasswordInput as PasswordInput, PercentageRing, Pill, Radio$2 as Radio, RadioGroup$1 as RadioGroup, Radio as RadioInput, RandomLoadingMessage, Row, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select$1 as Select, Select as SelectInput, Shrug, SingleCombobox, Skeleton, typography as TYPOGRAPHY, Table, TextInput, TextTruncate, LabeledTextarea as Textarea, Toggle$1 as Toggle, Toggle as ToggleInput, Tooltip, color as colorUtils, number as numberUtils, string as stringUtils };
|
package/lib/index.esm.css
CHANGED
|
@@ -1691,25 +1691,24 @@ form {
|
|
|
1691
1691
|
:root,
|
|
1692
1692
|
:root [data-theme=light],
|
|
1693
1693
|
:root [data-theme=dark] {
|
|
1694
|
-
--pf-
|
|
1695
|
-
--pf-
|
|
1696
|
-
--pf-
|
|
1697
|
-
--pf-popper-padding: var(--pf-padding-2);
|
|
1694
|
+
--pf-floatui-background-color: var(--pf-white-color);
|
|
1695
|
+
--pf-floatui-border-color: var(--pf-gray-color-900);
|
|
1696
|
+
--pf-floatui-border-radius: var(--pf-rounded);
|
|
1698
1697
|
}
|
|
1699
1698
|
|
|
1700
1699
|
:root [data-theme=dark] {
|
|
1701
|
-
--pf-
|
|
1702
|
-
--pf-
|
|
1700
|
+
--pf-floatui-background-color: var(--pf-primary-color-600);
|
|
1701
|
+
--pf-floatui-border-color: var(--pf-gray-color);
|
|
1703
1702
|
}
|
|
1704
1703
|
|
|
1705
|
-
.
|
|
1704
|
+
.floatui-container {
|
|
1706
1705
|
z-index: 99;
|
|
1707
1706
|
}
|
|
1708
1707
|
|
|
1709
|
-
.
|
|
1710
|
-
border-radius: var(--pf-
|
|
1711
|
-
border: 1px solid var(--pf-
|
|
1712
|
-
background: var(--pf-
|
|
1708
|
+
.floatui-content {
|
|
1709
|
+
border-radius: var(--pf-floatui-border-radius);
|
|
1710
|
+
border: 1px solid var(--pf-floatui-border-color);
|
|
1711
|
+
background: var(--pf-floatui-background-color);
|
|
1713
1712
|
}
|
|
1714
1713
|
|
|
1715
1714
|
.rdp {
|