@seed-design/react 0.0.14 → 0.0.15
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/components/ActionButton/ActionButton.cjs +5 -1
- package/lib/components/ActionButton/ActionButton.d.ts +2 -1
- package/lib/components/ActionButton/ActionButton.d.ts.map +1 -1
- package/lib/components/ActionButton/ActionButton.js +5 -1
- package/lib/components/ActionChip/ActionChip.cjs +1 -0
- package/lib/components/ActionChip/ActionChip.js +1 -0
- package/lib/components/ActionSheet/ActionSheet.cjs +2 -0
- package/lib/components/ActionSheet/ActionSheet.js +2 -0
- package/lib/components/Avatar/Avatar.cjs +2 -0
- package/lib/components/Avatar/Avatar.js +2 -0
- package/lib/components/Badge/Badge.cjs +1 -0
- package/lib/components/Badge/Badge.js +1 -0
- package/lib/components/BottomSheet/BottomSheet.cjs +1 -0
- package/lib/components/BottomSheet/BottomSheet.js +1 -0
- package/lib/components/Callout/Callout.cjs +1 -0
- package/lib/components/Callout/Callout.js +1 -0
- package/lib/components/Checkbox/Checkbox.cjs +1 -0
- package/lib/components/Checkbox/Checkbox.js +1 -0
- package/lib/components/ChipTabs/ChipTabs.cjs +1 -0
- package/lib/components/ChipTabs/ChipTabs.js +1 -0
- package/lib/components/Columns/Columns.cjs +1 -1
- package/lib/components/Columns/Columns.d.ts +12 -0
- package/lib/components/Columns/Columns.d.ts.map +1 -1
- package/lib/components/Columns/Columns.js +1 -1
- package/lib/components/ControlChip/ControlChip.cjs +1 -0
- package/lib/components/ControlChip/ControlChip.js +1 -0
- package/lib/components/Dialog/Dialog.cjs +1 -0
- package/lib/components/Dialog/Dialog.js +1 -0
- package/lib/components/Divider/Divider.cjs +4 -3
- package/lib/components/Divider/Divider.d.ts +3 -3
- package/lib/components/Divider/Divider.d.ts.map +1 -1
- package/lib/components/Divider/Divider.js +4 -3
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +2 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +2 -0
- package/lib/components/ExtendedFab/ExtendedFab.cjs +1 -0
- package/lib/components/ExtendedFab/ExtendedFab.js +1 -0
- package/lib/components/Fab/Fab.cjs +1 -0
- package/lib/components/Fab/Fab.js +1 -0
- package/lib/components/Flex/Flex.cjs +15 -2
- package/lib/components/Flex/Flex.d.ts +26 -2
- package/lib/components/Flex/Flex.d.ts.map +1 -1
- package/lib/components/Flex/Flex.js +15 -2
- package/lib/components/HelpBubble/HelpBubble.cjs +1 -0
- package/lib/components/HelpBubble/HelpBubble.js +1 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +1 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +1 -0
- package/lib/components/Inline/Inline.cjs +2 -2
- package/lib/components/Inline/Inline.d.ts +6 -0
- package/lib/components/Inline/Inline.d.ts.map +1 -1
- package/lib/components/Inline/Inline.js +2 -2
- package/lib/components/InlineBanner/InlineBanner.cjs +1 -0
- package/lib/components/InlineBanner/InlineBanner.js +1 -0
- package/lib/components/LinkContent/LinkContent.cjs +1 -0
- package/lib/components/LinkContent/LinkContent.js +1 -0
- package/lib/components/MannerTemp/MannerTemp.cjs +1 -0
- package/lib/components/MannerTemp/MannerTemp.js +1 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.cjs +1 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.js +1 -0
- package/lib/components/NotificationBadge/NotificationBadge.cjs +2 -0
- package/lib/components/NotificationBadge/NotificationBadge.js +2 -0
- package/lib/components/ProgressCircle/ProgressCircle.cjs +1 -0
- package/lib/components/ProgressCircle/ProgressCircle.js +1 -0
- package/lib/components/PullToRefresh/PullToRefresh.cjs +1 -0
- package/lib/components/PullToRefresh/PullToRefresh.js +1 -0
- package/lib/components/ReactionButton/ReactionButton.cjs +1 -0
- package/lib/components/ReactionButton/ReactionButton.js +1 -0
- package/lib/components/SegmentedControl/SegmentedControl.cjs +1 -0
- package/lib/components/SegmentedControl/SegmentedControl.js +1 -0
- package/lib/components/SelectBox/CheckSelectBox.cjs +2 -0
- package/lib/components/SelectBox/CheckSelectBox.d.ts +1 -1
- package/lib/components/SelectBox/CheckSelectBox.js +2 -0
- package/lib/components/SelectBox/RadioSelectBox.cjs +2 -0
- package/lib/components/SelectBox/RadioSelectBox.js +2 -0
- package/lib/components/Skeleton/Skeleton.cjs +1 -0
- package/lib/components/Skeleton/Skeleton.js +1 -0
- package/lib/components/Snackbar/Snackbar.cjs +2 -0
- package/lib/components/Snackbar/Snackbar.js +2 -0
- package/lib/components/Stack/Stack.cjs +10 -2
- package/lib/components/Stack/Stack.d.ts +14 -2
- package/lib/components/Stack/Stack.d.ts.map +1 -1
- package/lib/components/Stack/Stack.js +9 -3
- package/lib/components/Stack/index.cjs +2 -0
- package/lib/components/Stack/index.d.ts +1 -1
- package/lib/components/Stack/index.d.ts.map +1 -1
- package/lib/components/Stack/index.js +1 -1
- package/lib/components/Switch/Switch.cjs +1 -0
- package/lib/components/Switch/Switch.js +1 -0
- package/lib/components/Tabs/Tabs.cjs +1 -0
- package/lib/components/Tabs/Tabs.js +1 -0
- package/lib/components/Text/Text.cjs +1 -0
- package/lib/components/Text/Text.js +1 -0
- package/lib/components/TextField/TextField.cjs +1 -0
- package/lib/components/TextField/TextField.js +1 -0
- package/lib/components/ToggleButton/ToggleButton.cjs +1 -0
- package/lib/components/ToggleButton/ToggleButton.js +1 -0
- package/lib/components/index.cjs +2 -0
- package/lib/components/index.js +1 -1
- package/lib/index.cjs +2 -0
- package/lib/index.js +1 -1
- package/lib/utils/styled.cjs +64 -15
- package/lib/utils/styled.d.ts +63 -31
- package/lib/utils/styled.d.ts.map +1 -1
- package/lib/utils/styled.js +64 -15
- package/package.json +7 -5
- package/src/components/ActionButton/ActionButton.tsx +5 -1
- package/src/components/Columns/Columns.tsx +13 -2
- package/src/components/Divider/Divider.tsx +7 -6
- package/src/components/Flex/Flex.tsx +44 -4
- package/src/components/Inline/Inline.tsx +8 -2
- package/src/components/SelectBox/CheckSelectBox.tsx +1 -1
- package/src/components/Stack/Stack.tsx +21 -3
- package/src/components/Stack/index.ts +8 -1
- package/src/utils/styled.tsx +208 -74
|
@@ -9,6 +9,8 @@ const clsx = require('clsx');
|
|
|
9
9
|
const React = require('react');
|
|
10
10
|
const Icon = require('../Icon/Icon.cjs');
|
|
11
11
|
const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
|
|
12
|
+
const styled = require('../../utils/styled.cjs');
|
|
13
|
+
require('@seed-design/css/recipes/action-button.css');
|
|
12
14
|
|
|
13
15
|
function _interopNamespaceDefault(e) {
|
|
14
16
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -33,6 +35,7 @@ const ActionButton = React__namespace.forwardRef(
|
|
|
33
35
|
({ variant, size, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
34
36
|
const recipeClassName = actionButton.actionButton({ variant, layout, size });
|
|
35
37
|
const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
|
|
38
|
+
const { style, restProps } = styled.useStyleProps(otherProps);
|
|
36
39
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
37
40
|
console.warn(
|
|
38
41
|
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
@@ -43,8 +46,9 @@ const ActionButton = React__namespace.forwardRef(
|
|
|
43
46
|
{
|
|
44
47
|
ref,
|
|
45
48
|
className: clsx(recipeClassName, className),
|
|
49
|
+
style,
|
|
46
50
|
...api.stateProps,
|
|
47
|
-
...
|
|
51
|
+
...restProps,
|
|
48
52
|
children
|
|
49
53
|
}
|
|
50
54
|
) }) });
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ActionButtonVariantProps } from '@seed-design/css/recipes/action-button';
|
|
2
2
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
3
|
import { UsePendingButtonProps } from '../LoadingIndicator/usePendingButton';
|
|
4
|
+
import { StyleProps } from '../../utils/styled';
|
|
4
5
|
import * as React from "react";
|
|
5
|
-
export interface ActionButtonProps extends ActionButtonVariantProps, UsePendingButtonProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
export interface ActionButtonProps extends ActionButtonVariantProps, UsePendingButtonProps, PrimitiveProps, Pick<StyleProps, "flexGrow">, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
7
|
}
|
|
7
8
|
export declare const ActionButton: React.ForwardRefExoticComponent<ActionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
9
|
//# sourceMappingURL=ActionButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,WAAW,iBACf,SAAQ,wBAAwB,EAC9B,qBAAqB,EACrB,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAC5B,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,YAAY,6FA+BxB,CAAC"}
|
|
@@ -5,11 +5,14 @@ import clsx from 'clsx';
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { IconRequired } from '../Icon/Icon.js';
|
|
7
7
|
import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
|
|
8
|
+
import { useStyleProps } from '../../utils/styled.js';
|
|
9
|
+
import '@seed-design/css/recipes/action-button.css';
|
|
8
10
|
|
|
9
11
|
const ActionButton = React.forwardRef(
|
|
10
12
|
({ variant, size, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
11
13
|
const recipeClassName = actionButton({ variant, layout, size });
|
|
12
14
|
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
15
|
+
const { style, restProps } = useStyleProps(otherProps);
|
|
13
16
|
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
14
17
|
console.warn(
|
|
15
18
|
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
@@ -20,8 +23,9 @@ const ActionButton = React.forwardRef(
|
|
|
20
23
|
{
|
|
21
24
|
ref,
|
|
22
25
|
className: clsx(recipeClassName, className),
|
|
26
|
+
style,
|
|
23
27
|
...api.stateProps,
|
|
24
|
-
...
|
|
28
|
+
...restProps,
|
|
25
29
|
children
|
|
26
30
|
}
|
|
27
31
|
) }) });
|
|
@@ -6,6 +6,7 @@ const actionChip = require('@seed-design/css/recipes/action-chip');
|
|
|
6
6
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
7
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
const Icon = require('../Icon/Icon.cjs');
|
|
9
|
+
require('@seed-design/css/recipes/action-chip.css');
|
|
9
10
|
|
|
10
11
|
const { withContext } = createRecipeContext.createRecipeContext(actionChip.actionChip);
|
|
11
12
|
const ActionChip = Icon.withIconRequired(
|
|
@@ -2,6 +2,7 @@ import { actionChip } from '@seed-design/css/recipes/action-chip';
|
|
|
2
2
|
import { Primitive } from '@seed-design/react-primitive';
|
|
3
3
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
import { withIconRequired } from '../Icon/Icon.js';
|
|
5
|
+
import '@seed-design/css/recipes/action-chip.css';
|
|
5
6
|
|
|
6
7
|
const { withContext } = createRecipeContext(actionChip);
|
|
7
8
|
const ActionChip = withIconRequired(
|
|
@@ -9,6 +9,8 @@ const reactPrimitive = require('@seed-design/react-primitive');
|
|
|
9
9
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
10
10
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
11
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
12
|
+
require('@seed-design/css/recipes/action-sheet.css');
|
|
13
|
+
require('@seed-design/css/recipes/action-sheet-item.css');
|
|
12
14
|
|
|
13
15
|
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(actionSheet.actionSheet);
|
|
14
16
|
const { withContext: withItemContext } = createRecipeContext.createRecipeContext(actionSheetItem.actionSheetItem);
|
|
@@ -5,6 +5,8 @@ import { Primitive } from '@seed-design/react-primitive';
|
|
|
5
5
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
6
6
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
7
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
8
|
+
import '@seed-design/css/recipes/action-sheet.css';
|
|
9
|
+
import '@seed-design/css/recipes/action-sheet-item.css';
|
|
8
10
|
|
|
9
11
|
const { withRootProvider, withContext } = createSlotRecipeContext(actionSheet);
|
|
10
12
|
const { withContext: withItemContext } = createRecipeContext(actionSheetItem);
|
|
@@ -10,6 +10,8 @@ const avatarStack = require('@seed-design/css/recipes/avatar-stack');
|
|
|
10
10
|
const clsx = require('clsx');
|
|
11
11
|
const React = require('react');
|
|
12
12
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
13
|
+
require('@seed-design/css/recipes/avatar.css');
|
|
14
|
+
require('@seed-design/css/recipes/avatar-stack.css');
|
|
13
15
|
|
|
14
16
|
function _interopNamespaceDefault(e) {
|
|
15
17
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -7,6 +7,8 @@ import clsx from 'clsx';
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
9
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
10
|
+
import '@seed-design/css/recipes/avatar.css';
|
|
11
|
+
import '@seed-design/css/recipes/avatar-stack.css';
|
|
10
12
|
|
|
11
13
|
const { PropsProvider, withProvider, withContext } = createSlotRecipeContext(avatar);
|
|
12
14
|
const AvatarRoot = withProvider(
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const badge = require('@seed-design/css/recipes/badge');
|
|
7
7
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
|
+
require('@seed-design/css/recipes/badge.css');
|
|
8
9
|
|
|
9
10
|
const { withContext } = createRecipeContext.createRecipeContext(badge.badge);
|
|
10
11
|
const Badge = withContext(reactPrimitive.Primitive.span);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Primitive } from '@seed-design/react-primitive';
|
|
2
2
|
import { badge } from '@seed-design/css/recipes/badge';
|
|
3
3
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
|
+
import '@seed-design/css/recipes/badge.css';
|
|
4
5
|
|
|
5
6
|
const { withContext } = createRecipeContext(badge);
|
|
6
7
|
const Badge = withContext(Primitive.span);
|
|
@@ -8,6 +8,7 @@ const bottomSheet = require('@seed-design/css/recipes/bottom-sheet');
|
|
|
8
8
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
9
9
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
10
10
|
const styled = require('../../utils/styled.cjs');
|
|
11
|
+
require('@seed-design/css/recipes/bottom-sheet.css');
|
|
11
12
|
|
|
12
13
|
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(bottomSheet.bottomSheet);
|
|
13
14
|
const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
|
|
@@ -4,6 +4,7 @@ import { bottomSheet } from '@seed-design/css/recipes/bottom-sheet';
|
|
|
4
4
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
5
5
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
6
6
|
import { withStyleProps } from '../../utils/styled.js';
|
|
7
|
+
import '@seed-design/css/recipes/bottom-sheet.css';
|
|
7
8
|
|
|
8
9
|
const { withRootProvider, withContext } = createSlotRecipeContext(bottomSheet);
|
|
9
10
|
const withStateProps = createWithStateProps([useDialogContext]);
|
|
@@ -6,6 +6,7 @@ const reactPrimitive = require('@seed-design/react-primitive');
|
|
|
6
6
|
const callout = require('@seed-design/css/recipes/callout');
|
|
7
7
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
8
8
|
const useDismissible = require('../private/useDismissible.cjs');
|
|
9
|
+
require('@seed-design/css/recipes/callout.css');
|
|
9
10
|
|
|
10
11
|
const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(callout.callout);
|
|
11
12
|
const CalloutRoot = withProvider(useDismissible.DismissibleRoot, "root");
|
|
@@ -2,6 +2,7 @@ import { Primitive } from '@seed-design/react-primitive';
|
|
|
2
2
|
import { callout } from '@seed-design/css/recipes/callout';
|
|
3
3
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
4
4
|
import { DismissibleCloseButton, DismissibleRoot } from '../private/useDismissible.js';
|
|
5
|
+
import '@seed-design/css/recipes/callout.css';
|
|
5
6
|
|
|
6
7
|
const { withContext, withProvider } = createSlotRecipeContext(callout);
|
|
7
8
|
const CalloutRoot = withProvider(DismissibleRoot, "root");
|
|
@@ -11,6 +11,7 @@ const React = require('react');
|
|
|
11
11
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
12
12
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
13
13
|
const Icon = require('../private/Icon.cjs');
|
|
14
|
+
require('@seed-design/css/recipes/checkbox.css');
|
|
14
15
|
|
|
15
16
|
const { withProvider, withContext, useClassNames } = createSlotRecipeContext.createSlotRecipeContext(checkbox.checkbox);
|
|
16
17
|
const withStateProps = createWithStateProps.createWithStateProps([reactCheckbox.useCheckboxContext]);
|
|
@@ -7,6 +7,7 @@ import { forwardRef } from 'react';
|
|
|
7
7
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
8
8
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
9
9
|
import { InternalIcon } from '../private/Icon.js';
|
|
10
|
+
import '@seed-design/css/recipes/checkbox.css';
|
|
10
11
|
|
|
11
12
|
const { withProvider, withContext, useClassNames } = createSlotRecipeContext(checkbox);
|
|
12
13
|
const withStateProps = createWithStateProps([useCheckboxContext]);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const chipTabs = require('@seed-design/css/recipes/chip-tabs');
|
|
6
6
|
const reactTabs = require('@seed-design/react-tabs');
|
|
7
7
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
8
|
+
require('@seed-design/css/recipes/chip-tabs.css');
|
|
8
9
|
|
|
9
10
|
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(chipTabs.chipTabs);
|
|
10
11
|
const ChipTabsRoot = withProvider(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { chipTabs } from '@seed-design/css/recipes/chip-tabs';
|
|
2
2
|
import { Tabs } from '@seed-design/react-tabs';
|
|
3
3
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
4
|
+
import '@seed-design/css/recipes/chip-tabs.css';
|
|
4
5
|
|
|
5
6
|
const { withProvider, withContext } = createSlotRecipeContext(chipTabs);
|
|
6
7
|
const ChipTabsRoot = withProvider(
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { BoxProps } from '../Box/Box';
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `HStack` instead.
|
|
5
|
+
*/
|
|
3
6
|
export interface ColumnsProps extends Omit<BoxProps, "display" | "direction"> {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `HStack` instead.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Columns: React.ForwardRefExoticComponent<ColumnsProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use `HStack` instead.
|
|
14
|
+
*/
|
|
6
15
|
export interface ColumnProps extends Omit<BoxProps, "display" | "flexDirection" | "width"> {
|
|
7
16
|
width?: BoxProps["width"] | "content";
|
|
8
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `HStack` instead.
|
|
20
|
+
*/
|
|
9
21
|
export declare const Column: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
22
|
//# sourceMappingURL=Columns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../src/components/Columns/Columns.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,WAAW,CAAC;CAAG;AAEhF,eAAO,MAAM,OAAO,qFAWlB,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,eAAe,GAAG,OAAO,CAAC;IACxF,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;CACvC;
|
|
1
|
+
{"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../src/components/Columns/Columns.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,WAAW,CAAC;CAAG;AAEhF;;GAEG;AACH,eAAO,MAAM,OAAO,qFAWlB,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,eAAe,GAAG,OAAO,CAAC;IACxF,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;CACvC;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,oFAcjB,CAAC"}
|
|
@@ -6,6 +6,7 @@ const controlChip = require('@seed-design/css/recipes/control-chip');
|
|
|
6
6
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
7
7
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
8
|
const Icon = require('../Icon/Icon.cjs');
|
|
9
|
+
require('@seed-design/css/recipes/control-chip.css');
|
|
9
10
|
|
|
10
11
|
const { withContext } = createRecipeContext.createRecipeContext(controlChip.controlChip);
|
|
11
12
|
const ControlChip = Icon.withIconRequired(
|
|
@@ -2,6 +2,7 @@ import { controlChip } from '@seed-design/css/recipes/control-chip';
|
|
|
2
2
|
import { Primitive } from '@seed-design/react-primitive';
|
|
3
3
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
4
|
import { withIconRequired } from '../Icon/Icon.js';
|
|
5
|
+
import '@seed-design/css/recipes/control-chip.css';
|
|
5
6
|
|
|
6
7
|
const { withContext } = createRecipeContext(controlChip);
|
|
7
8
|
const ControlChip = withIconRequired(
|
|
@@ -9,6 +9,7 @@ const dialog = require('@seed-design/css/recipes/dialog');
|
|
|
9
9
|
const React = require('react');
|
|
10
10
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
11
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
12
|
+
require('@seed-design/css/recipes/dialog.css');
|
|
12
13
|
|
|
13
14
|
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(dialog.dialog);
|
|
14
15
|
const withStateProps = createWithStateProps.createWithStateProps([reactDialog.useDialogContext]);
|
|
@@ -5,6 +5,7 @@ import { dialog } from '@seed-design/css/recipes/dialog';
|
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
7
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
8
|
+
import '@seed-design/css/recipes/dialog.css';
|
|
8
9
|
|
|
9
10
|
const { withRootProvider, withContext } = createSlotRecipeContext(dialog);
|
|
10
11
|
const withStateProps = createWithStateProps([useDialogContext]);
|
|
@@ -26,15 +26,16 @@ function _interopNamespaceDefault(e) {
|
|
|
26
26
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
27
27
|
|
|
28
28
|
const Divider = React__namespace.forwardRef((props, ref) => {
|
|
29
|
-
const { as = "hr",
|
|
29
|
+
const { as = "hr", color = "stroke.neutral", thickness = 1, ...rest } = props;
|
|
30
30
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31
31
|
Box.Box,
|
|
32
32
|
{
|
|
33
33
|
ref,
|
|
34
34
|
as,
|
|
35
35
|
display: "block",
|
|
36
|
-
borderColor,
|
|
37
|
-
borderWidth,
|
|
36
|
+
borderColor: color,
|
|
37
|
+
borderWidth: 0,
|
|
38
|
+
borderBottomWidth: thickness,
|
|
38
39
|
...rest
|
|
39
40
|
}
|
|
40
41
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BoxProps } from '../Box/Box';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
export interface DividerProps
|
|
3
|
+
export interface DividerProps {
|
|
4
4
|
/**
|
|
5
5
|
* @default "hr"
|
|
6
6
|
*/
|
|
@@ -8,11 +8,11 @@ export interface DividerProps extends Omit<BoxProps, "display"> {
|
|
|
8
8
|
/**
|
|
9
9
|
* @default "stroke.neutral"
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
color?: BoxProps["borderColor"];
|
|
12
12
|
/**
|
|
13
13
|
* @default 1
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
thickness?: BoxProps["borderBottomWidth"];
|
|
16
16
|
}
|
|
17
17
|
export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
|
|
18
18
|
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,OAAO,oFAclB,CAAC"}
|
|
@@ -3,15 +3,16 @@ import * as React from 'react';
|
|
|
3
3
|
import { Box } from '../Box/Box.js';
|
|
4
4
|
|
|
5
5
|
const Divider = React.forwardRef((props, ref) => {
|
|
6
|
-
const { as = "hr",
|
|
6
|
+
const { as = "hr", color = "stroke.neutral", thickness = 1, ...rest } = props;
|
|
7
7
|
return /* @__PURE__ */ jsx(
|
|
8
8
|
Box,
|
|
9
9
|
{
|
|
10
10
|
ref,
|
|
11
11
|
as,
|
|
12
12
|
display: "block",
|
|
13
|
-
borderColor,
|
|
14
|
-
borderWidth,
|
|
13
|
+
borderColor: color,
|
|
14
|
+
borderWidth: 0,
|
|
15
|
+
borderBottomWidth: thickness,
|
|
15
16
|
...rest
|
|
16
17
|
}
|
|
17
18
|
);
|
|
@@ -9,6 +9,8 @@ const extendedActionSheetItem = require('@seed-design/css/recipes/extended-actio
|
|
|
9
9
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
10
10
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
11
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
12
|
+
require('@seed-design/css/recipes/extended-action-sheet.css');
|
|
13
|
+
require('@seed-design/css/recipes/extended-action-sheet-item.css');
|
|
12
14
|
|
|
13
15
|
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(extendedActionSheet.extendedActionSheet);
|
|
14
16
|
const { withContext: withItemContext } = createRecipeContext.createRecipeContext(extendedActionSheetItem.extendedActionSheetItem);
|
|
@@ -5,6 +5,8 @@ import { extendedActionSheetItem } from '@seed-design/css/recipes/extended-actio
|
|
|
5
5
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
6
6
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
7
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
8
|
+
import '@seed-design/css/recipes/extended-action-sheet.css';
|
|
9
|
+
import '@seed-design/css/recipes/extended-action-sheet-item.css';
|
|
8
10
|
|
|
9
11
|
const { withRootProvider, withContext } = createSlotRecipeContext(extendedActionSheet);
|
|
10
12
|
const { withContext: withItemContext } = createRecipeContext(extendedActionSheetItem);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const extendedFab = require('@seed-design/css/recipes/extended-fab');
|
|
7
7
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
|
+
require('@seed-design/css/recipes/extended-fab.css');
|
|
8
9
|
|
|
9
10
|
const { withContext } = createRecipeContext.createRecipeContext(extendedFab.extendedFab);
|
|
10
11
|
const ExtendedFab = withContext(reactPrimitive.Primitive.button, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Primitive } from '@seed-design/react-primitive';
|
|
2
2
|
import { extendedFab } from '@seed-design/css/recipes/extended-fab';
|
|
3
3
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
|
+
import '@seed-design/css/recipes/extended-fab.css';
|
|
4
5
|
|
|
5
6
|
const { withContext } = createRecipeContext(extendedFab);
|
|
6
7
|
const ExtendedFab = withContext(Primitive.button, {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
6
6
|
const fab = require('@seed-design/css/recipes/fab');
|
|
7
7
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
8
|
+
require('@seed-design/css/recipes/fab.css');
|
|
8
9
|
|
|
9
10
|
const { withContext } = createRecipeContext.createRecipeContext(fab.fab);
|
|
10
11
|
const Fab = withContext(reactPrimitive.Primitive.button);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Primitive } from '@seed-design/react-primitive';
|
|
2
2
|
import { fab } from '@seed-design/css/recipes/fab';
|
|
3
3
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
4
|
+
import '@seed-design/css/recipes/fab.css';
|
|
4
5
|
|
|
5
6
|
const { withContext } = createRecipeContext(fab);
|
|
6
7
|
const Fab = withContext(Primitive.button);
|
|
@@ -26,8 +26,21 @@ function _interopNamespaceDefault(e) {
|
|
|
26
26
|
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
27
27
|
|
|
28
28
|
const Flex = React__namespace.forwardRef((props, ref) => {
|
|
29
|
-
const { direction, wrap, ...rest } = props;
|
|
30
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
+
const { direction, wrap, align, justify, grow, shrink, ...rest } = props;
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31
|
+
Box.Box,
|
|
32
|
+
{
|
|
33
|
+
ref,
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: direction,
|
|
36
|
+
flexWrap: wrap === true ? "wrap" : wrap,
|
|
37
|
+
alignItems: align,
|
|
38
|
+
justifyContent: justify,
|
|
39
|
+
flexGrow: grow === true ? 1 : grow,
|
|
40
|
+
flexShrink: shrink,
|
|
41
|
+
...rest
|
|
42
|
+
}
|
|
43
|
+
);
|
|
31
44
|
});
|
|
32
45
|
|
|
33
46
|
exports.Flex = Flex;
|
|
@@ -5,8 +5,32 @@ export interface FlexProps extends Omit<BoxProps, "display"> {
|
|
|
5
5
|
* @default "flex"
|
|
6
6
|
*/
|
|
7
7
|
display?: "flex" | "none";
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Shorthand for `flexDirection`.
|
|
10
|
+
*/
|
|
11
|
+
direction?: BoxProps["flexDirection"];
|
|
12
|
+
/**
|
|
13
|
+
* Shorthand for `flexWrap`.
|
|
14
|
+
* If true, flex-wrap will be set to `wrap`.
|
|
15
|
+
*/
|
|
16
|
+
wrap?: BoxProps["flexWrap"] | true;
|
|
17
|
+
/**
|
|
18
|
+
* Shorthand for `alignItems`.
|
|
19
|
+
*/
|
|
20
|
+
align?: BoxProps["alignItems"];
|
|
21
|
+
/**
|
|
22
|
+
* Shorthand for `justifyContent`.
|
|
23
|
+
*/
|
|
24
|
+
justify?: BoxProps["justifyContent"];
|
|
25
|
+
/**
|
|
26
|
+
* Shorthand for `flexGrow`.
|
|
27
|
+
* If true, flex-grow will be set to `1`.
|
|
28
|
+
*/
|
|
29
|
+
grow?: BoxProps["flexGrow"] | true;
|
|
30
|
+
/**
|
|
31
|
+
* Shorthand for `flexShrink`.
|
|
32
|
+
*/
|
|
33
|
+
shrink?: BoxProps["flexShrink"];
|
|
10
34
|
}
|
|
11
35
|
export declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
36
|
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC1D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC1D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAEtC;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAErC;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,IAAI,kFAgBf,CAAC"}
|
|
@@ -3,8 +3,21 @@ import * as React from 'react';
|
|
|
3
3
|
import { Box } from '../Box/Box.js';
|
|
4
4
|
|
|
5
5
|
const Flex = React.forwardRef((props, ref) => {
|
|
6
|
-
const { direction, wrap, ...rest } = props;
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
+
const { direction, wrap, align, justify, grow, shrink, ...rest } = props;
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Box,
|
|
9
|
+
{
|
|
10
|
+
ref,
|
|
11
|
+
display: "flex",
|
|
12
|
+
flexDirection: direction,
|
|
13
|
+
flexWrap: wrap === true ? "wrap" : wrap,
|
|
14
|
+
alignItems: align,
|
|
15
|
+
justifyContent: justify,
|
|
16
|
+
flexGrow: grow === true ? 1 : grow,
|
|
17
|
+
flexShrink: shrink,
|
|
18
|
+
...rest
|
|
19
|
+
}
|
|
20
|
+
);
|
|
8
21
|
});
|
|
9
22
|
|
|
10
23
|
export { Flex };
|
|
@@ -10,6 +10,7 @@ const React = require('react');
|
|
|
10
10
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
11
11
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
12
12
|
const styled = require('../../utils/styled.cjs');
|
|
13
|
+
require('@seed-design/css/recipes/help-bubble.css');
|
|
13
14
|
|
|
14
15
|
const { withRootProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(helpBubble.helpBubble);
|
|
15
16
|
const withStateProps = createWithStateProps.createWithStateProps([reactPopover.usePopoverContext]);
|
|
@@ -6,6 +6,7 @@ import { forwardRef } from 'react';
|
|
|
6
6
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
7
7
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
8
8
|
import { withStyleProps } from '../../utils/styled.js';
|
|
9
|
+
import '@seed-design/css/recipes/help-bubble.css';
|
|
9
10
|
|
|
10
11
|
const { withRootProvider, withContext } = createSlotRecipeContext(helpBubble);
|
|
11
12
|
const withStateProps = createWithStateProps([usePopoverContext]);
|
|
@@ -8,6 +8,7 @@ const domUtils = require('@seed-design/dom-utils');
|
|
|
8
8
|
const reactPrimitive = require('@seed-design/react-primitive');
|
|
9
9
|
const React = require('react');
|
|
10
10
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
11
|
+
require('@seed-design/css/recipes/identity-placeholder.css');
|
|
11
12
|
|
|
12
13
|
function _interopNamespaceDefault(e) {
|
|
13
14
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -4,6 +4,7 @@ import { mergeProps } from '@seed-design/dom-utils';
|
|
|
4
4
|
import { Primitive } from '@seed-design/react-primitive';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
7
|
+
import '@seed-design/css/recipes/identity-placeholder.css';
|
|
7
8
|
|
|
8
9
|
const { useClassNames, withProvider } = createSlotRecipeContext(identityPlaceholder);
|
|
9
10
|
const IdentityPlaceholderRoot = withProvider(
|
|
@@ -33,8 +33,8 @@ const Inline = React__namespace.forwardRef((props, ref) => {
|
|
|
33
33
|
display: "flex",
|
|
34
34
|
flexDirection: "row",
|
|
35
35
|
flexWrap: "wrap",
|
|
36
|
-
alignItems: "
|
|
37
|
-
justifyContent: "
|
|
36
|
+
alignItems: "flex-start",
|
|
37
|
+
justifyContent: "flex-start",
|
|
38
38
|
...props
|
|
39
39
|
}
|
|
40
40
|
);
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { BoxProps } from '../Box/Box';
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `HStack` instead.
|
|
5
|
+
*/
|
|
3
6
|
export interface InlineProps extends Omit<BoxProps, "display" | "direction" | "flexWrap"> {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `HStack` instead.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Inline: React.ForwardRefExoticComponent<InlineProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
12
|
//# sourceMappingURL=Inline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../../src/components/Inline/Inline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;CAAG;AAE5F,eAAO,MAAM,MAAM,oFAYjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../../src/components/Inline/Inline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;CAAG;AAE5F;;GAEG;AACH,eAAO,MAAM,MAAM,oFAYjB,CAAC"}
|
|
@@ -10,8 +10,8 @@ const Inline = React.forwardRef((props, ref) => {
|
|
|
10
10
|
display: "flex",
|
|
11
11
|
flexDirection: "row",
|
|
12
12
|
flexWrap: "wrap",
|
|
13
|
-
alignItems: "
|
|
14
|
-
justifyContent: "
|
|
13
|
+
alignItems: "flex-start",
|
|
14
|
+
justifyContent: "flex-start",
|
|
15
15
|
...props
|
|
16
16
|
}
|
|
17
17
|
);
|