@uniformdev/design-system 20.1.1-alpha.2 → 20.3.1-alpha.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 +5 -5
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +5 -5
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -1520,12 +1520,12 @@ function Tooltip({
|
|
|
1520
1520
|
placement = "bottom",
|
|
1521
1521
|
visible,
|
|
1522
1522
|
withoutPortal = false,
|
|
1523
|
-
...
|
|
1523
|
+
...tooltipProps
|
|
1524
1524
|
}) {
|
|
1525
1525
|
const tooltip = useTooltipStore({ placement, open: visible });
|
|
1526
1526
|
return !title ? children : /* @__PURE__ */ jsxs5(TooltipProvider, { store: tooltip, timeout: 0, children: [
|
|
1527
1527
|
/* @__PURE__ */ jsx11(TooltipAnchor, { store: tooltip, render: children }),
|
|
1528
|
-
/* @__PURE__ */ jsxs5(AriakitTooltip, { store: tooltip, ...
|
|
1528
|
+
/* @__PURE__ */ jsxs5(AriakitTooltip, { store: tooltip, ...tooltipProps, portal: !withoutPortal, css: TooltipContainer, children: [
|
|
1529
1529
|
/* @__PURE__ */ jsx11(TooltipArrow, { store: tooltip, css: TooltipArrowStyles }),
|
|
1530
1530
|
title
|
|
1531
1531
|
] })
|
|
@@ -6809,7 +6809,7 @@ var PopoverDefaulterTriggerBtn = css48`
|
|
|
6809
6809
|
var Popover = (maxWidth = "220px") => css48`
|
|
6810
6810
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
6811
6811
|
border-radius: var(--rounded-base);
|
|
6812
|
-
box-shadow: var(--
|
|
6812
|
+
box-shadow: var(--elevation-400);
|
|
6813
6813
|
background: var(--white);
|
|
6814
6814
|
display: grid;
|
|
6815
6815
|
gap: var(--spacing-sm);
|
|
@@ -15900,7 +15900,7 @@ var SwitchInput = (size) => css103`
|
|
|
15900
15900
|
display: block;
|
|
15901
15901
|
width: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
|
|
15902
15902
|
height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
|
|
15903
|
-
margin-top: ${size === "sm" ? "var(--spacing-
|
|
15903
|
+
margin-top: ${size === "sm" ? "var(--spacing-2xs)" : "none"};
|
|
15904
15904
|
transition:
|
|
15905
15905
|
transform var(--duration-fast) var(--timing-ease-out),
|
|
15906
15906
|
background-color var(--duration-fast) var(--timing-ease-out),
|
|
@@ -15954,7 +15954,7 @@ var SwitchInputLabel = (size) => css103`
|
|
|
15954
15954
|
overflow: hidden;
|
|
15955
15955
|
width: ${size === "sm" ? "var(--spacing-lg)" : "var(--spacing-xl)"};
|
|
15956
15956
|
height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
|
|
15957
|
-
margin-top: ${size === "sm" ? "var(--spacing-
|
|
15957
|
+
margin-top: ${size === "sm" ? "var(--spacing-2xs)" : "none"};
|
|
15958
15958
|
position: absolute;
|
|
15959
15959
|
left: 0;
|
|
15960
15960
|
top: 0;
|
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionL
|
|
|
7
7
|
import * as _emotion_react from '@emotion/react';
|
|
8
8
|
import { SerializedStyles } from '@emotion/react';
|
|
9
9
|
import * as _ariakit_react from '@ariakit/react';
|
|
10
|
-
import { TooltipOptions, TooltipStoreProps, ButtonProps as ButtonProps$1, MenuStoreProps, PopoverStoreState, MenuProps as MenuProps$1, Menu as Menu$1, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
10
|
+
import { TooltipOptions, TooltipStoreProps, TooltipProps as TooltipProps$1, ButtonProps as ButtonProps$1, MenuStoreProps, PopoverStoreState, MenuProps as MenuProps$1, Menu as Menu$1, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
11
11
|
export { PopoverStore } from '@ariakit/react';
|
|
12
12
|
import { RefType } from 'react-hotkeys-hook/dist/types';
|
|
13
13
|
import { IconType as IconType$1, IconBaseProps } from '@react-icons/all-files/lib';
|
|
@@ -400,11 +400,13 @@ type TooltipProps = TooltipOptions & {
|
|
|
400
400
|
placement?: TooltipStoreProps['placement'];
|
|
401
401
|
/** Optional ability to control visibility of Tooltip manually, useful for showing tooltip on click instead of on hover */
|
|
402
402
|
visible?: TooltipStoreProps['open'];
|
|
403
|
+
/** Offset between the reference and the popover on the main axis. Use it only in special cases. */
|
|
404
|
+
gutter?: TooltipProps$1['gutter'];
|
|
403
405
|
children: JSX.Element;
|
|
404
406
|
/** If the tooltip should not be rendered inside a portal */
|
|
405
407
|
withoutPortal?: boolean;
|
|
406
408
|
} & Pick<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
407
|
-
declare function Tooltip({ children, title, placement, visible, withoutPortal, ...
|
|
409
|
+
declare function Tooltip({ children, title, placement, visible, withoutPortal, ...tooltipProps }: TooltipProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
408
410
|
|
|
409
411
|
/** Button sizes that are available to use with our brand */
|
|
410
412
|
type ButtonSizeProps$1 = 'zero' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -3472,7 +3474,7 @@ declare const ParameterToggle: React$1.ForwardRefExoticComponent<Omit<React$1.In
|
|
|
3472
3474
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3473
3475
|
declare const ParameterToggleInner: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3474
3476
|
|
|
3475
|
-
type PopoverProps = PopoverProps$1 & {
|
|
3477
|
+
type PopoverProps = Omit<PopoverProps$1, 'unmountOnHide'> & {
|
|
3476
3478
|
/** sets the aria-controls and id value of the matching popover set */
|
|
3477
3479
|
/** sets the icon color
|
|
3478
3480
|
* @default 'action'
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionL
|
|
|
7
7
|
import * as _emotion_react from '@emotion/react';
|
|
8
8
|
import { SerializedStyles } from '@emotion/react';
|
|
9
9
|
import * as _ariakit_react from '@ariakit/react';
|
|
10
|
-
import { TooltipOptions, TooltipStoreProps, ButtonProps as ButtonProps$1, MenuStoreProps, PopoverStoreState, MenuProps as MenuProps$1, Menu as Menu$1, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
10
|
+
import { TooltipOptions, TooltipStoreProps, TooltipProps as TooltipProps$1, ButtonProps as ButtonProps$1, MenuStoreProps, PopoverStoreState, MenuProps as MenuProps$1, Menu as Menu$1, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
11
11
|
export { PopoverStore } from '@ariakit/react';
|
|
12
12
|
import { RefType } from 'react-hotkeys-hook/dist/types';
|
|
13
13
|
import { IconType as IconType$1, IconBaseProps } from '@react-icons/all-files/lib';
|
|
@@ -400,11 +400,13 @@ type TooltipProps = TooltipOptions & {
|
|
|
400
400
|
placement?: TooltipStoreProps['placement'];
|
|
401
401
|
/** Optional ability to control visibility of Tooltip manually, useful for showing tooltip on click instead of on hover */
|
|
402
402
|
visible?: TooltipStoreProps['open'];
|
|
403
|
+
/** Offset between the reference and the popover on the main axis. Use it only in special cases. */
|
|
404
|
+
gutter?: TooltipProps$1['gutter'];
|
|
403
405
|
children: JSX.Element;
|
|
404
406
|
/** If the tooltip should not be rendered inside a portal */
|
|
405
407
|
withoutPortal?: boolean;
|
|
406
408
|
} & Pick<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
407
|
-
declare function Tooltip({ children, title, placement, visible, withoutPortal, ...
|
|
409
|
+
declare function Tooltip({ children, title, placement, visible, withoutPortal, ...tooltipProps }: TooltipProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
408
410
|
|
|
409
411
|
/** Button sizes that are available to use with our brand */
|
|
410
412
|
type ButtonSizeProps$1 = 'zero' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -3472,7 +3474,7 @@ declare const ParameterToggle: React$1.ForwardRefExoticComponent<Omit<React$1.In
|
|
|
3472
3474
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3473
3475
|
declare const ParameterToggleInner: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3474
3476
|
|
|
3475
|
-
type PopoverProps = PopoverProps$1 & {
|
|
3477
|
+
type PopoverProps = Omit<PopoverProps$1, 'unmountOnHide'> & {
|
|
3476
3478
|
/** sets the aria-controls and id value of the matching popover set */
|
|
3477
3479
|
/** sets the icon color
|
|
3478
3480
|
* @default 'action'
|
package/dist/index.js
CHANGED
|
@@ -3189,12 +3189,12 @@ function Tooltip({
|
|
|
3189
3189
|
placement = "bottom",
|
|
3190
3190
|
visible,
|
|
3191
3191
|
withoutPortal = false,
|
|
3192
|
-
...
|
|
3192
|
+
...tooltipProps
|
|
3193
3193
|
}) {
|
|
3194
3194
|
const tooltip = (0, import_react14.useTooltipStore)({ placement, open: visible });
|
|
3195
3195
|
return !title ? children : /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react14.TooltipProvider, { store: tooltip, timeout: 0, children: [
|
|
3196
3196
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react14.TooltipAnchor, { store: tooltip, render: children }),
|
|
3197
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react14.Tooltip, { store: tooltip, ...
|
|
3197
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react14.Tooltip, { store: tooltip, ...tooltipProps, portal: !withoutPortal, css: TooltipContainer, children: [
|
|
3198
3198
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react14.TooltipArrow, { store: tooltip, css: TooltipArrowStyles }),
|
|
3199
3199
|
title
|
|
3200
3200
|
] })
|
|
@@ -8577,7 +8577,7 @@ var PopoverDefaulterTriggerBtn = import_react69.css`
|
|
|
8577
8577
|
var Popover = (maxWidth = "220px") => import_react69.css`
|
|
8578
8578
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
8579
8579
|
border-radius: var(--rounded-base);
|
|
8580
|
-
box-shadow: var(--
|
|
8580
|
+
box-shadow: var(--elevation-400);
|
|
8581
8581
|
background: var(--white);
|
|
8582
8582
|
display: grid;
|
|
8583
8583
|
gap: var(--spacing-sm);
|
|
@@ -17741,7 +17741,7 @@ var SwitchInput = (size) => import_react167.css`
|
|
|
17741
17741
|
display: block;
|
|
17742
17742
|
width: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
|
|
17743
17743
|
height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
|
|
17744
|
-
margin-top: ${size === "sm" ? "var(--spacing-
|
|
17744
|
+
margin-top: ${size === "sm" ? "var(--spacing-2xs)" : "none"};
|
|
17745
17745
|
transition:
|
|
17746
17746
|
transform var(--duration-fast) var(--timing-ease-out),
|
|
17747
17747
|
background-color var(--duration-fast) var(--timing-ease-out),
|
|
@@ -17795,7 +17795,7 @@ var SwitchInputLabel = (size) => import_react167.css`
|
|
|
17795
17795
|
overflow: hidden;
|
|
17796
17796
|
width: ${size === "sm" ? "var(--spacing-lg)" : "var(--spacing-xl)"};
|
|
17797
17797
|
height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
|
|
17798
|
-
margin-top: ${size === "sm" ? "var(--spacing-
|
|
17798
|
+
margin-top: ${size === "sm" ? "var(--spacing-2xs)" : "none"};
|
|
17799
17799
|
position: absolute;
|
|
17800
17800
|
left: 0;
|
|
17801
17801
|
top: 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.3.1-alpha.0+86ebe90984",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@storybook/theming": "^8.3.3",
|
|
27
27
|
"@types/react": "18.3.11",
|
|
28
28
|
"@types/react-dom": "18.3.1",
|
|
29
|
-
"@uniformdev/canvas": "^20.
|
|
30
|
-
"@uniformdev/richtext": "^20.
|
|
29
|
+
"@uniformdev/canvas": "^20.3.1-alpha.0+86ebe90984",
|
|
30
|
+
"@uniformdev/richtext": "^20.3.1-alpha.0+86ebe90984",
|
|
31
31
|
"autoprefixer": "10.4.16",
|
|
32
32
|
"hygen": "6.2.11",
|
|
33
33
|
"postcss": "8.4.47",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "86ebe909840ce1e8a9ecabc93298b5243a7b6179"
|
|
81
81
|
}
|