@lumx/react 4.8.0-alpha.0 → 4.8.0-next.1
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.d.ts +60 -22
- package/index.js +260 -135
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Theme as Theme$1, Size as Size$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio as AspectRatio$1,
|
|
1
|
+
import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Theme as Theme$1, Size as Size$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio as AspectRatio$1, Emphasis as Emphasis$1 } from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/constants';
|
|
3
3
|
import * as _lumx_core_js_types from '@lumx/core/js/types';
|
|
4
4
|
import { GenericProps as GenericProps$1, HasTheme as HasTheme$1, ValueOf as ValueOf$1, PropsToOverride, HasCloseMode as HasCloseMode$1, HasClassName as HasClassName$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasAriaDisabled as HasAriaDisabled$1, HasRequiredLinkHref as HasRequiredLinkHref$1, HasAriaLabelOrLabelledBy as HasAriaLabelOrLabelledBy$1 } from '@lumx/core/js/types';
|
|
@@ -1291,7 +1291,15 @@ declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
|
1291
1291
|
/**
|
|
1292
1292
|
* Defines the props of the component.
|
|
1293
1293
|
*/
|
|
1294
|
-
interface DragHandleProps extends
|
|
1294
|
+
interface DragHandleProps$1 extends HasTheme, HasClassName {
|
|
1295
|
+
/** Reference to the root element */
|
|
1296
|
+
ref?: CommonRef;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Defines the props of the component.
|
|
1301
|
+
*/
|
|
1302
|
+
interface DragHandleProps extends GenericProps$1, ReactToJSX<DragHandleProps$1> {
|
|
1295
1303
|
}
|
|
1296
1304
|
/**
|
|
1297
1305
|
* DragHandle component.
|
|
@@ -1652,6 +1660,8 @@ interface FlexBoxProps$1 extends HasClassName {
|
|
|
1652
1660
|
vAlign?: FlexHorizontalAlignment;
|
|
1653
1661
|
/** Whether the "flex wrap" is enabled or not. */
|
|
1654
1662
|
wrap?: boolean;
|
|
1663
|
+
/** reference to the root element */
|
|
1664
|
+
ref?: CommonRef;
|
|
1655
1665
|
}
|
|
1656
1666
|
|
|
1657
1667
|
/**
|
|
@@ -1687,58 +1697,74 @@ declare const GenericBlockGapSize: Pick<{
|
|
|
1687
1697
|
readonly big: "big";
|
|
1688
1698
|
readonly huge: "huge";
|
|
1689
1699
|
}, "tiny" | "regular" | "medium" | "big" | "huge">;
|
|
1690
|
-
type GenericBlockGapSize = ValueOf
|
|
1700
|
+
type GenericBlockGapSize = ValueOf<typeof GenericBlockGapSize>;
|
|
1691
1701
|
|
|
1692
|
-
interface GenericBlockProps extends FlexBoxProps {
|
|
1702
|
+
interface GenericBlockProps$1 extends FlexBoxProps$1 {
|
|
1693
1703
|
/**
|
|
1694
1704
|
* Component to use as visual element.
|
|
1695
1705
|
*/
|
|
1696
|
-
figure?:
|
|
1706
|
+
figure?: JSXElement;
|
|
1697
1707
|
/**
|
|
1698
|
-
*
|
|
1708
|
+
* Main content.
|
|
1699
1709
|
*/
|
|
1700
|
-
|
|
1710
|
+
content?: JSXElement;
|
|
1701
1711
|
/**
|
|
1702
|
-
*
|
|
1703
|
-
* ({@see GenericBlock.Figure}, {@see GenericBlock.Content} & {@see GenericBlock.Actions})
|
|
1712
|
+
* Actions to set after the main content.
|
|
1704
1713
|
*/
|
|
1705
|
-
|
|
1714
|
+
actions?: JSXElement;
|
|
1706
1715
|
/**
|
|
1707
1716
|
* Orientation of the 3 sections
|
|
1708
1717
|
*/
|
|
1709
|
-
orientation?: FlexBoxProps['orientation'];
|
|
1718
|
+
orientation?: FlexBoxProps$1['orientation'];
|
|
1710
1719
|
/**
|
|
1711
1720
|
* Horizontal alignment.
|
|
1712
1721
|
*/
|
|
1713
|
-
|
|
1722
|
+
horizontalAlign?: FlexBoxProps$1['hAlign'];
|
|
1714
1723
|
/**
|
|
1715
1724
|
* Vertical alignment.
|
|
1716
1725
|
*/
|
|
1717
|
-
|
|
1726
|
+
verticalAlign?: FlexBoxProps$1['vAlign'];
|
|
1718
1727
|
/**
|
|
1719
1728
|
* The props to forward to the content.
|
|
1720
1729
|
* By default, the content will have the same alignment as wrapper.
|
|
1721
1730
|
*/
|
|
1722
|
-
contentProps?: Omit<FlexBoxProps, 'children'>;
|
|
1731
|
+
contentProps?: Omit<FlexBoxProps$1, 'children'>;
|
|
1723
1732
|
/**
|
|
1724
1733
|
* props to forward to the actions element.
|
|
1725
1734
|
*/
|
|
1726
|
-
actionsProps?: Omit<FlexBoxProps, 'children'>;
|
|
1735
|
+
actionsProps?: Omit<FlexBoxProps$1, 'children'>;
|
|
1727
1736
|
/**
|
|
1728
1737
|
* props to forward to the figure element.
|
|
1729
1738
|
*/
|
|
1730
|
-
figureProps?: Omit<FlexBoxProps, 'children'>;
|
|
1739
|
+
figureProps?: Omit<FlexBoxProps$1, 'children'>;
|
|
1740
|
+
/**
|
|
1741
|
+
* FlexBox component
|
|
1742
|
+
*/
|
|
1743
|
+
FlexBox: (props: FlexBoxProps$1) => any;
|
|
1731
1744
|
/**
|
|
1732
1745
|
* Gap space between sections.
|
|
1733
1746
|
*/
|
|
1734
1747
|
gap?: GenericBlockGapSize;
|
|
1748
|
+
/**
|
|
1749
|
+
* reference to the root element
|
|
1750
|
+
*/
|
|
1751
|
+
ref?: CommonRef;
|
|
1735
1752
|
}
|
|
1736
|
-
interface GenericBlockSectionProps extends FlexBoxProps {
|
|
1753
|
+
interface GenericBlockSectionProps extends FlexBoxProps$1 {
|
|
1737
1754
|
/**
|
|
1738
1755
|
* Gap space between items.
|
|
1739
1756
|
*/
|
|
1740
1757
|
gap?: GenericBlockGapSize;
|
|
1741
1758
|
}
|
|
1759
|
+
type GenericBlockPropsToOverride = 'FlexBox' | 'content';
|
|
1760
|
+
|
|
1761
|
+
interface GenericBlockProps extends GenericProps$1, ReactToJSX<GenericBlockProps$1, GenericBlockPropsToOverride> {
|
|
1762
|
+
/**
|
|
1763
|
+
* Main content to display or sections components
|
|
1764
|
+
* ({@see GenericBlock.Figure}, {@see GenericBlock.Content} & {@see GenericBlock.Actions})
|
|
1765
|
+
*/
|
|
1766
|
+
children: ReactNode;
|
|
1767
|
+
}
|
|
1742
1768
|
type BaseGenericBlock = Comp<GenericBlockProps, HTMLDivElement>;
|
|
1743
1769
|
/**
|
|
1744
1770
|
* The GenericBlock is a layout component made of 3 sections that can be
|
|
@@ -2209,23 +2235,35 @@ declare const ImageLightbox: Comp<ImageLightboxProps, HTMLDivElement> & {
|
|
|
2209
2235
|
/**
|
|
2210
2236
|
* Defines the props of the component.
|
|
2211
2237
|
*/
|
|
2212
|
-
interface InlineListProps extends
|
|
2238
|
+
interface InlineListProps$1 extends HasClassName {
|
|
2239
|
+
/**
|
|
2240
|
+
* List items to render.
|
|
2241
|
+
*/
|
|
2242
|
+
items?: JSXElement[];
|
|
2213
2243
|
/**
|
|
2214
2244
|
* Text color.
|
|
2215
2245
|
*/
|
|
2216
|
-
color?: ColorWithVariants
|
|
2246
|
+
color?: ColorWithVariants;
|
|
2217
2247
|
/**
|
|
2218
2248
|
* Lightened or darkened variant of the selected color.
|
|
2219
2249
|
*/
|
|
2220
|
-
colorVariant?: ColorVariant
|
|
2250
|
+
colorVariant?: ColorVariant;
|
|
2221
2251
|
/**
|
|
2222
2252
|
* Typography variant.
|
|
2223
2253
|
*/
|
|
2224
|
-
typography?: Typography
|
|
2254
|
+
typography?: Typography;
|
|
2225
2255
|
/**
|
|
2226
2256
|
* Activate line wrap on overflow.
|
|
2227
2257
|
*/
|
|
2228
2258
|
wrap?: boolean;
|
|
2259
|
+
/** reference to the root element */
|
|
2260
|
+
ref?: CommonRef;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* Defines the props of the component.
|
|
2265
|
+
*/
|
|
2266
|
+
interface InlineListProps extends GenericProps$1, ReactToJSX<InlineListProps$1, 'items'> {
|
|
2229
2267
|
/**
|
|
2230
2268
|
* Children
|
|
2231
2269
|
*/
|
|
@@ -2238,7 +2276,7 @@ interface InlineListProps extends GenericProps$1 {
|
|
|
2238
2276
|
* @param ref Component ref.
|
|
2239
2277
|
* @return React element.
|
|
2240
2278
|
*/
|
|
2241
|
-
declare const InlineList: Comp<InlineListProps,
|
|
2279
|
+
declare const InlineList: Comp<InlineListProps, HTMLUListElement>;
|
|
2242
2280
|
|
|
2243
2281
|
/**
|
|
2244
2282
|
* Defines the props of the component.
|