@uniformdev/design-system 18.14.0 → 18.16.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/dist/esm/index.js +14 -2
- package/dist/index.d.ts +17 -12
- package/dist/index.js +15 -2
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -542,6 +542,16 @@ var fadeInBottom = keyframes`
|
|
|
542
542
|
transform: translateY(0);
|
|
543
543
|
}
|
|
544
544
|
`;
|
|
545
|
+
var fadeInTop = keyframes`
|
|
546
|
+
0% {
|
|
547
|
+
opacity: 0;
|
|
548
|
+
transform: translateY(-10px);
|
|
549
|
+
}
|
|
550
|
+
100% {
|
|
551
|
+
opacity: 1;
|
|
552
|
+
transform: translateY(0);
|
|
553
|
+
}
|
|
554
|
+
`;
|
|
545
555
|
var fadeOutBottom = keyframes`
|
|
546
556
|
0% {
|
|
547
557
|
opacity: 1;
|
|
@@ -8288,6 +8298,7 @@ import {
|
|
|
8288
8298
|
MenuButton,
|
|
8289
8299
|
useMenuState
|
|
8290
8300
|
} from "reakit/Menu";
|
|
8301
|
+
import { Portal } from "reakit/Portal";
|
|
8291
8302
|
|
|
8292
8303
|
// src/components/Menu/Menu.styles.ts
|
|
8293
8304
|
import { css as css17 } from "@emotion/react";
|
|
@@ -8320,7 +8331,7 @@ var Menu = ({
|
|
|
8320
8331
|
const menuState = useMenuState({ placement });
|
|
8321
8332
|
return /* @__PURE__ */ jsxs10(MenuContext.Provider, { value: menuState, children: [
|
|
8322
8333
|
/* @__PURE__ */ jsx19(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
8323
|
-
/* @__PURE__ */ jsx19(
|
|
8334
|
+
/* @__PURE__ */ jsx19(Portal, { children: /* @__PURE__ */ jsx19(
|
|
8324
8335
|
BaseMenu,
|
|
8325
8336
|
{
|
|
8326
8337
|
...menuState,
|
|
@@ -8332,7 +8343,7 @@ var Menu = ({
|
|
|
8332
8343
|
className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
|
|
8333
8344
|
children
|
|
8334
8345
|
}
|
|
8335
|
-
)
|
|
8346
|
+
) })
|
|
8336
8347
|
] });
|
|
8337
8348
|
};
|
|
8338
8349
|
|
|
@@ -11583,6 +11594,7 @@ export {
|
|
|
11583
11594
|
fadeInBottom,
|
|
11584
11595
|
fadeInLtr,
|
|
11585
11596
|
fadeInRtl,
|
|
11597
|
+
fadeInTop,
|
|
11586
11598
|
fadeOutBottom,
|
|
11587
11599
|
growSubtle,
|
|
11588
11600
|
input,
|
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,11 @@ declare const growSubtle: _emotion_react.Keyframes;
|
|
|
84
84
|
* @description - fades in an element from the Y axis by 10px
|
|
85
85
|
*/
|
|
86
86
|
declare const fadeInBottom: _emotion_react.Keyframes;
|
|
87
|
+
/**
|
|
88
|
+
* fadeInTop animation
|
|
89
|
+
* @description - fades in an element from the Y axis by -10px
|
|
90
|
+
*/
|
|
91
|
+
declare const fadeInTop: _emotion_react.Keyframes;
|
|
87
92
|
/**
|
|
88
93
|
* fadeOutBottom animation
|
|
89
94
|
* @description - fades out an element from the Y axis by 10px
|
|
@@ -252,7 +257,7 @@ type ButtonProps = ButtonProps$1 & {
|
|
|
252
257
|
* @param {BaseButtonProps} props - object of button props from reakit
|
|
253
258
|
* @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world')}>Click me</Button>
|
|
254
259
|
*/
|
|
255
|
-
declare const Button: React$1.ForwardRefExoticComponent<
|
|
260
|
+
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
256
261
|
|
|
257
262
|
type ButtonThemeProps = 'primary' | 'secondary' | 'unimportant' | 'ghost';
|
|
258
263
|
interface ActionButtonsProps {
|
|
@@ -1099,13 +1104,13 @@ type TableCellDataProps = React$1.ComponentPropsWithoutRef<'td'>;
|
|
|
1099
1104
|
</TableFoot>
|
|
1100
1105
|
</Table>
|
|
1101
1106
|
*/
|
|
1102
|
-
declare const Table: React$1.ForwardRefExoticComponent<
|
|
1103
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<
|
|
1104
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<
|
|
1105
|
-
declare const TableFoot: React$1.ForwardRefExoticComponent<
|
|
1106
|
-
declare const TableRow: React$1.ForwardRefExoticComponent<
|
|
1107
|
-
declare const TableCellHead: React$1.ForwardRefExoticComponent<
|
|
1108
|
-
declare const TableCellData: React$1.ForwardRefExoticComponent<
|
|
1107
|
+
declare const Table: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & React$1.RefAttributes<HTMLTableElement>>;
|
|
1108
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1109
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1110
|
+
declare const TableFoot: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
1111
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
1112
|
+
declare const TableCellHead: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1113
|
+
declare const TableCellData: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
1109
1114
|
|
|
1110
1115
|
declare const useCurrentTab: () => TabState;
|
|
1111
1116
|
interface TabsProps {
|
|
@@ -1320,7 +1325,7 @@ type LinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
1320
1325
|
/** Uniform Link Component
|
|
1321
1326
|
* @example <Link text="my link" href="#" />
|
|
1322
1327
|
*/
|
|
1323
|
-
declare const Link: React$1.ForwardRefExoticComponent<
|
|
1328
|
+
declare const Link: React$1.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
1324
1329
|
type LinkManagerWithRefType = (props: Partial<LinkProps> & {
|
|
1325
1330
|
as?: string;
|
|
1326
1331
|
href: string;
|
|
@@ -1331,7 +1336,7 @@ type LinkManagerWithRefType = (props: Partial<LinkProps> & {
|
|
|
1331
1336
|
* We recommend using this link `next/link`
|
|
1332
1337
|
* @example <LinkWithRef linkManagerComponent={NextLink} href="some-url" text="my link" />
|
|
1333
1338
|
*/
|
|
1334
|
-
declare const LinkWithRef: React$1.ForwardRefExoticComponent<
|
|
1339
|
+
declare const LinkWithRef: React$1.ForwardRefExoticComponent<Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1335
1340
|
/** sets the link text and title text */
|
|
1336
1341
|
text: string;
|
|
1337
1342
|
/** (optional) sets the link color
|
|
@@ -1348,7 +1353,7 @@ declare const LinkWithRef: React$1.ForwardRefExoticComponent<Pick<React$1.Anchor
|
|
|
1348
1353
|
href: string;
|
|
1349
1354
|
as?: string | undefined;
|
|
1350
1355
|
linkManagerComponent: LinkManagerWithRefType;
|
|
1351
|
-
}, "
|
|
1356
|
+
}, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
1352
1357
|
|
|
1353
1358
|
interface RouteProps {
|
|
1354
1359
|
as: string;
|
|
@@ -1387,4 +1392,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
1387
1392
|
};
|
|
1388
1393
|
declare const StatusBullet: ({ status, hideText, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1389
1394
|
|
|
1390
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, LottieFile, LottieFileKeyProps, LottieFileProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, Tooltip, TooltipProps, UniformBadge, UniformLogo, UniformLogoProps, UseShortcutOptions, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonGhostDestructive, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeOutBottom, growSubtle, input, inputError, inputSelect, isMacLike, labelText, macifyShortcut, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useShortcut };
|
|
1395
|
+
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, LottieFile, LottieFileKeyProps, LottieFileProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, Tooltip, TooltipProps, UniformBadge, UniformLogo, UniformLogoProps, UseShortcutOptions, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonGhostDestructive, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, growSubtle, input, inputError, inputSelect, isMacLike, labelText, macifyShortcut, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useShortcut };
|
package/dist/index.js
CHANGED
|
@@ -121,6 +121,7 @@ __export(src_exports, {
|
|
|
121
121
|
fadeInBottom: () => fadeInBottom,
|
|
122
122
|
fadeInLtr: () => fadeInLtr,
|
|
123
123
|
fadeInRtl: () => fadeInRtl,
|
|
124
|
+
fadeInTop: () => fadeInTop,
|
|
124
125
|
fadeOutBottom: () => fadeOutBottom,
|
|
125
126
|
growSubtle: () => growSubtle,
|
|
126
127
|
input: () => input,
|
|
@@ -688,6 +689,16 @@ var fadeInBottom = import_react5.keyframes`
|
|
|
688
689
|
transform: translateY(0);
|
|
689
690
|
}
|
|
690
691
|
`;
|
|
692
|
+
var fadeInTop = import_react5.keyframes`
|
|
693
|
+
0% {
|
|
694
|
+
opacity: 0;
|
|
695
|
+
transform: translateY(-10px);
|
|
696
|
+
}
|
|
697
|
+
100% {
|
|
698
|
+
opacity: 1;
|
|
699
|
+
transform: translateY(0);
|
|
700
|
+
}
|
|
701
|
+
`;
|
|
691
702
|
var fadeOutBottom = import_react5.keyframes`
|
|
692
703
|
0% {
|
|
693
704
|
opacity: 1;
|
|
@@ -8430,6 +8441,7 @@ var import_cg5 = require("react-icons/cg");
|
|
|
8430
8441
|
// src/components/Menu/Menu.tsx
|
|
8431
8442
|
var React6 = __toESM(require("react"));
|
|
8432
8443
|
var import_Menu = require("reakit/Menu");
|
|
8444
|
+
var import_Portal = require("reakit/Portal");
|
|
8433
8445
|
|
|
8434
8446
|
// src/components/Menu/Menu.styles.ts
|
|
8435
8447
|
var import_react24 = require("@emotion/react");
|
|
@@ -8462,7 +8474,7 @@ var Menu = ({
|
|
|
8462
8474
|
const menuState = (0, import_Menu.useMenuState)({ placement });
|
|
8463
8475
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(MenuContext.Provider, { value: menuState, children: [
|
|
8464
8476
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Menu.MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
8465
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
8477
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Portal.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
8466
8478
|
import_Menu.Menu,
|
|
8467
8479
|
{
|
|
8468
8480
|
...menuState,
|
|
@@ -8474,7 +8486,7 @@ var Menu = ({
|
|
|
8474
8486
|
className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
|
|
8475
8487
|
children
|
|
8476
8488
|
}
|
|
8477
|
-
)
|
|
8489
|
+
) })
|
|
8478
8490
|
] });
|
|
8479
8491
|
};
|
|
8480
8492
|
|
|
@@ -11716,6 +11728,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
11716
11728
|
fadeInBottom,
|
|
11717
11729
|
fadeInLtr,
|
|
11718
11730
|
fadeInRtl,
|
|
11731
|
+
fadeInTop,
|
|
11719
11732
|
fadeOutBottom,
|
|
11720
11733
|
growSubtle,
|
|
11721
11734
|
input,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.16.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@emotion/jest": "11.10.5",
|
|
21
21
|
"@storybook/addon-docs": "6.5.16",
|
|
22
22
|
"@storybook/react": "6.5.16",
|
|
23
|
-
"@types/react": "18.0.
|
|
23
|
+
"@types/react": "18.0.28",
|
|
24
24
|
"autoprefixer": "10.4.13",
|
|
25
25
|
"hygen": "6.2.11",
|
|
26
26
|
"postcss": "8.4.21",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "debae7a8698824593e47c8886dcd6a5d4c4727a7"
|
|
53
53
|
}
|