@seed-design/react 0.0.29 → 0.0.31
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/ContextualFloatingButton/ContextualFloatingButton.cjs +54 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts +8 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts.map +1 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.js +31 -0
- package/lib/components/ContextualFloatingButton/index.cjs +9 -0
- package/lib/components/ContextualFloatingButton/index.d.ts +2 -0
- package/lib/components/ContextualFloatingButton/index.d.ts.map +1 -0
- package/lib/components/ContextualFloatingButton/index.js +1 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts +6 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -1
- package/lib/components/Fab/Fab.d.ts +6 -0
- package/lib/components/Fab/Fab.d.ts.map +1 -1
- package/lib/components/Float/Float.cjs +97 -0
- package/lib/components/Float/Float.d.ts +17 -0
- package/lib/components/Float/Float.d.ts.map +1 -0
- package/lib/components/Float/Float.js +74 -0
- package/lib/components/Float/index.cjs +9 -0
- package/lib/components/Float/index.d.ts +2 -0
- package/lib/components/Float/index.d.ts.map +1 -0
- package/lib/components/Float/index.js +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.cjs +18 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +14 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.js +12 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.cjs +11 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.d.ts +2 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.js +1 -0
- package/lib/components/FloatingActionButton/index.cjs +13 -0
- package/lib/components/FloatingActionButton/index.d.ts +3 -0
- package/lib/components/FloatingActionButton/index.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/index.js +3 -0
- package/lib/components/Icon/Icon.d.ts +1 -1
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.namespace.cjs +5 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts +1 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.namespace.js +1 -0
- package/lib/components/Tabs/index.cjs +5 -0
- package/lib/components/Tabs/index.d.ts +1 -0
- package/lib/components/Tabs/index.d.ts.map +1 -1
- package/lib/components/Tabs/index.js +1 -0
- package/lib/components/index.cjs +15 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +6 -0
- package/lib/index.cjs +15 -0
- package/lib/index.js +6 -0
- package/lib/utils/styled.cjs +4 -0
- package/lib/utils/styled.d.ts +3 -1
- package/lib/utils/styled.d.ts.map +1 -1
- package/lib/utils/styled.js +4 -0
- package/package.json +5 -5
- package/src/components/ContextualFloatingButton/ContextualFloatingButton.tsx +49 -0
- package/src/components/ContextualFloatingButton/index.ts +4 -0
- package/src/components/ExtendedFab/ExtendedFab.tsx +6 -0
- package/src/components/Fab/Fab.tsx +6 -0
- package/src/components/Float/Float.tsx +116 -0
- package/src/components/Float/index.ts +1 -0
- package/src/components/FloatingActionButton/FloatingActionButton.namespace.tsx +8 -0
- package/src/components/FloatingActionButton/FloatingActionButton.tsx +38 -0
- package/src/components/FloatingActionButton/index.ts +10 -0
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Tabs/Tabs.namespace.ts +2 -0
- package/src/components/Tabs/index.ts +2 -0
- package/src/components/index.ts +3 -0
- package/src/utils/styled.tsx +10 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const contextualFloatingButton = require('@seed-design/css/recipes/contextual-floating-button');
|
|
8
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
9
|
+
const clsx = require('clsx');
|
|
10
|
+
const React = require('react');
|
|
11
|
+
const Icon = require('../Icon/Icon.cjs');
|
|
12
|
+
const usePendingButton = require('../LoadingIndicator/usePendingButton.cjs');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
16
|
+
if (e) {
|
|
17
|
+
for (const k in e) {
|
|
18
|
+
if (k !== 'default') {
|
|
19
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: () => e[k]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
n.default = e;
|
|
28
|
+
return Object.freeze(n);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
32
|
+
|
|
33
|
+
const ContextualFloatingButton = React__namespace.forwardRef(({ variant, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
34
|
+
const recipeClassName = contextualFloatingButton.contextualFloatingButton({ variant, layout });
|
|
35
|
+
const api = usePendingButton.usePendingButton({ loading, disabled: otherProps.disabled });
|
|
36
|
+
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
37
|
+
console.warn(
|
|
38
|
+
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx(usePendingButton.PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(Icon.IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
+
reactPrimitive.Primitive.button,
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
className: clsx(recipeClassName, className),
|
|
46
|
+
...api.stateProps,
|
|
47
|
+
...otherProps,
|
|
48
|
+
children
|
|
49
|
+
}
|
|
50
|
+
) }) });
|
|
51
|
+
});
|
|
52
|
+
ContextualFloatingButton.displayName = "ContextualFloatingButton";
|
|
53
|
+
|
|
54
|
+
exports.ContextualFloatingButton = ContextualFloatingButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContextualFloatingButtonVariantProps } from '@seed-design/css/recipes/contextual-floating-button';
|
|
2
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
+
import { UsePendingButtonProps } from '../LoadingIndicator/usePendingButton';
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export interface ContextualFloatingButtonProps extends ContextualFloatingButtonVariantProps, UsePendingButtonProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
}
|
|
7
|
+
export declare const ContextualFloatingButton: React.ForwardRefExoticComponent<ContextualFloatingButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
//# sourceMappingURL=ContextualFloatingButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextualFloatingButton.d.ts","sourceRoot":"","sources":["../../../src/components/ContextualFloatingButton/ContextualFloatingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oCAAoC,EAC1C,MAAM,qDAAqD,CAAC;AAC7D,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;AAE9C,MAAM,WAAW,6BACf,SAAQ,oCAAoC,EAC1C,qBAAqB,EACrB,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,wBAAwB,yGA2BnC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { contextualFloatingButton } from '@seed-design/css/recipes/contextual-floating-button';
|
|
4
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { IconRequired } from '../Icon/Icon.js';
|
|
8
|
+
import { usePendingButton, PendingButtonProvider } from '../LoadingIndicator/usePendingButton.js';
|
|
9
|
+
|
|
10
|
+
const ContextualFloatingButton = React.forwardRef(({ variant, loading = false, layout = "withText", className, children, ...otherProps }, ref) => {
|
|
11
|
+
const recipeClassName = contextualFloatingButton({ variant, layout });
|
|
12
|
+
const api = usePendingButton({ loading, disabled: otherProps.disabled });
|
|
13
|
+
if (layout === "iconOnly" && !(otherProps["aria-label"] || otherProps["aria-labelledby"])) {
|
|
14
|
+
console.warn(
|
|
15
|
+
"When layout is 'iconOnly', 'aria-label' or 'aria-labelledby' should be provided."
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
return /* @__PURE__ */ jsx(PendingButtonProvider, { value: api, children: /* @__PURE__ */ jsx(IconRequired, { enabled: layout === "iconOnly", children: /* @__PURE__ */ jsx(
|
|
19
|
+
Primitive.button,
|
|
20
|
+
{
|
|
21
|
+
ref,
|
|
22
|
+
className: clsx(recipeClassName, className),
|
|
23
|
+
...api.stateProps,
|
|
24
|
+
...otherProps,
|
|
25
|
+
children
|
|
26
|
+
}
|
|
27
|
+
) }) });
|
|
28
|
+
});
|
|
29
|
+
ContextualFloatingButton.displayName = "ContextualFloatingButton";
|
|
30
|
+
|
|
31
|
+
export { ContextualFloatingButton };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const ContextualFloatingButton = require('./ContextualFloatingButton.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.ContextualFloatingButton = ContextualFloatingButton.ContextualFloatingButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContextualFloatingButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,6BAA6B,GACnC,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ContextualFloatingButton } from './ContextualFloatingButton.js';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
2
|
import { ExtendedFabVariantProps } from '@seed-design/css/recipes/extended-fab';
|
|
3
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use `ContextualFloatingButton` instead.
|
|
6
|
+
*/
|
|
4
7
|
export interface ExtendedFabProps extends ExtendedFabVariantProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `ContextualFloatingButton` instead.
|
|
11
|
+
*/
|
|
6
12
|
export declare const ExtendedFab: ForwardRefExoticComponent<ExtendedFabProps & RefAttributes<HTMLButtonElement>>;
|
|
7
13
|
//# sourceMappingURL=ExtendedFab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedFab.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendedFab/ExtendedFab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAOlG,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,WAAW,gHAKtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ExtendedFab.d.ts","sourceRoot":"","sources":["../../../src/components/ExtendedFab/ExtendedFab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAOlG;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD;;GAEG;AACH,eAAO,MAAM,WAAW,gHAKtB,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
2
|
import { FabVariantProps } from '@seed-design/css/recipes/fab';
|
|
3
3
|
import type * as React from "react";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use `ContextualFloatingButton` instead.
|
|
6
|
+
*/
|
|
4
7
|
export interface FabProps extends FabVariantProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `ContextualFloatingButton` instead.
|
|
11
|
+
*/
|
|
6
12
|
export declare const Fab: React.ForwardRefExoticComponent<FabProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
13
|
//# sourceMappingURL=Fab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fab.d.ts","sourceRoot":"","sources":["../../../src/components/Fab/Fab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAO,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,WAAW,QACf,SAAQ,eAAe,EACrB,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,GAAG,oFAA6D,CAAC"}
|
|
1
|
+
{"version":3,"file":"Fab.d.ts","sourceRoot":"","sources":["../../../src/components/Fab/Fab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAO,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC;;GAEG;AACH,MAAM,WAAW,QACf,SAAQ,eAAe,EACrB,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD;;GAEG;AACH,eAAO,MAAM,GAAG,oFAA6D,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const React = require('react');
|
|
8
|
+
const Box = require('../Box/Box.cjs');
|
|
9
|
+
const styled = require('../../utils/styled.cjs');
|
|
10
|
+
|
|
11
|
+
function _interopNamespaceDefault(e) {
|
|
12
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
13
|
+
if (e) {
|
|
14
|
+
for (const k in e) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => e[k]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
n.default = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
|
+
|
|
30
|
+
function getPlacementStyle(placement, offsetX, offsetY) {
|
|
31
|
+
const offsetXValue = styled.handleDimension(offsetX);
|
|
32
|
+
const offsetYValue = styled.handleDimension(offsetY);
|
|
33
|
+
const centerLeft = offsetXValue ? `calc(50% + ${offsetXValue})` : "50%";
|
|
34
|
+
const middleTop = offsetYValue ? `calc(50% + ${offsetYValue})` : "50%";
|
|
35
|
+
const shiftLeft = "translateX(-50%)";
|
|
36
|
+
const shiftTop = "translateY(-50%)";
|
|
37
|
+
const shiftBoth = "translate(-50%, -50%)";
|
|
38
|
+
switch (placement) {
|
|
39
|
+
case "top-start":
|
|
40
|
+
return {
|
|
41
|
+
top: offsetYValue ?? 0,
|
|
42
|
+
left: offsetXValue ?? 0
|
|
43
|
+
};
|
|
44
|
+
case "top-center":
|
|
45
|
+
return {
|
|
46
|
+
top: offsetYValue ?? 0,
|
|
47
|
+
left: centerLeft,
|
|
48
|
+
unstable_transform: shiftLeft
|
|
49
|
+
};
|
|
50
|
+
case "top-end":
|
|
51
|
+
return {
|
|
52
|
+
top: offsetYValue ?? 0,
|
|
53
|
+
right: offsetXValue ?? 0
|
|
54
|
+
};
|
|
55
|
+
case "middle-start":
|
|
56
|
+
return {
|
|
57
|
+
top: middleTop,
|
|
58
|
+
left: offsetXValue ?? 0,
|
|
59
|
+
unstable_transform: shiftTop
|
|
60
|
+
};
|
|
61
|
+
case "middle-center":
|
|
62
|
+
return {
|
|
63
|
+
top: middleTop,
|
|
64
|
+
left: centerLeft,
|
|
65
|
+
unstable_transform: shiftBoth
|
|
66
|
+
};
|
|
67
|
+
case "middle-end":
|
|
68
|
+
return {
|
|
69
|
+
top: middleTop,
|
|
70
|
+
right: offsetXValue ?? 0,
|
|
71
|
+
unstable_transform: shiftTop
|
|
72
|
+
};
|
|
73
|
+
case "bottom-start":
|
|
74
|
+
return {
|
|
75
|
+
bottom: offsetYValue ?? 0,
|
|
76
|
+
left: offsetXValue ?? 0
|
|
77
|
+
};
|
|
78
|
+
case "bottom-center":
|
|
79
|
+
return {
|
|
80
|
+
bottom: offsetYValue ?? 0,
|
|
81
|
+
left: centerLeft,
|
|
82
|
+
unstable_transform: shiftLeft
|
|
83
|
+
};
|
|
84
|
+
case "bottom-end":
|
|
85
|
+
return {
|
|
86
|
+
bottom: offsetYValue ?? 0,
|
|
87
|
+
right: offsetXValue ?? 0
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const Float = React__namespace.forwardRef((props, ref) => {
|
|
92
|
+
const { as, placement, offsetX, offsetY, zIndex, ...rest } = props;
|
|
93
|
+
const placementStyle = getPlacementStyle(placement, offsetX, offsetY);
|
|
94
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { ref, as, position: "absolute", zIndex, ...placementStyle, ...rest });
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
exports.Float = Float;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dimension } from '@seed-design/css/vars';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface FloatProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
placement: "bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start";
|
|
6
|
+
/**
|
|
7
|
+
* @default 0
|
|
8
|
+
*/
|
|
9
|
+
offsetX?: 0 | Dimension | (string & {});
|
|
10
|
+
/**
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
offsetY?: 0 | Dimension | (string & {});
|
|
14
|
+
zIndex?: number | (string & {});
|
|
15
|
+
}
|
|
16
|
+
export declare const Float: React.ForwardRefExoticComponent<FloatProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
//# sourceMappingURL=Float.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Float.d.ts","sourceRoot":"","sources":["../../../src/components/Float/Float.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAEvB,SAAS,EACL,YAAY,GACZ,cAAc,GACd,SAAS,GACT,WAAW,GACX,eAAe,GACf,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,cAAc,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAExC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAExC,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACjC;AA6ED,eAAO,MAAM,KAAK,mFAQhB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Box } from '../Box/Box.js';
|
|
5
|
+
import { handleDimension } from '../../utils/styled.js';
|
|
6
|
+
|
|
7
|
+
function getPlacementStyle(placement, offsetX, offsetY) {
|
|
8
|
+
const offsetXValue = handleDimension(offsetX);
|
|
9
|
+
const offsetYValue = handleDimension(offsetY);
|
|
10
|
+
const centerLeft = offsetXValue ? `calc(50% + ${offsetXValue})` : "50%";
|
|
11
|
+
const middleTop = offsetYValue ? `calc(50% + ${offsetYValue})` : "50%";
|
|
12
|
+
const shiftLeft = "translateX(-50%)";
|
|
13
|
+
const shiftTop = "translateY(-50%)";
|
|
14
|
+
const shiftBoth = "translate(-50%, -50%)";
|
|
15
|
+
switch (placement) {
|
|
16
|
+
case "top-start":
|
|
17
|
+
return {
|
|
18
|
+
top: offsetYValue ?? 0,
|
|
19
|
+
left: offsetXValue ?? 0
|
|
20
|
+
};
|
|
21
|
+
case "top-center":
|
|
22
|
+
return {
|
|
23
|
+
top: offsetYValue ?? 0,
|
|
24
|
+
left: centerLeft,
|
|
25
|
+
unstable_transform: shiftLeft
|
|
26
|
+
};
|
|
27
|
+
case "top-end":
|
|
28
|
+
return {
|
|
29
|
+
top: offsetYValue ?? 0,
|
|
30
|
+
right: offsetXValue ?? 0
|
|
31
|
+
};
|
|
32
|
+
case "middle-start":
|
|
33
|
+
return {
|
|
34
|
+
top: middleTop,
|
|
35
|
+
left: offsetXValue ?? 0,
|
|
36
|
+
unstable_transform: shiftTop
|
|
37
|
+
};
|
|
38
|
+
case "middle-center":
|
|
39
|
+
return {
|
|
40
|
+
top: middleTop,
|
|
41
|
+
left: centerLeft,
|
|
42
|
+
unstable_transform: shiftBoth
|
|
43
|
+
};
|
|
44
|
+
case "middle-end":
|
|
45
|
+
return {
|
|
46
|
+
top: middleTop,
|
|
47
|
+
right: offsetXValue ?? 0,
|
|
48
|
+
unstable_transform: shiftTop
|
|
49
|
+
};
|
|
50
|
+
case "bottom-start":
|
|
51
|
+
return {
|
|
52
|
+
bottom: offsetYValue ?? 0,
|
|
53
|
+
left: offsetXValue ?? 0
|
|
54
|
+
};
|
|
55
|
+
case "bottom-center":
|
|
56
|
+
return {
|
|
57
|
+
bottom: offsetYValue ?? 0,
|
|
58
|
+
left: centerLeft,
|
|
59
|
+
unstable_transform: shiftLeft
|
|
60
|
+
};
|
|
61
|
+
case "bottom-end":
|
|
62
|
+
return {
|
|
63
|
+
bottom: offsetYValue ?? 0,
|
|
64
|
+
right: offsetXValue ?? 0
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const Float = React.forwardRef((props, ref) => {
|
|
69
|
+
const { as, placement, offsetX, offsetY, zIndex, ...rest } = props;
|
|
70
|
+
const placementStyle = getPlacementStyle(placement, offsetX, offsetY);
|
|
71
|
+
return /* @__PURE__ */ jsx(Box, { ref, as, position: "absolute", zIndex, ...placementStyle, ...rest });
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export { Float };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Float/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Float } from './Float.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const floatingActionButton = require('@seed-design/css/recipes/floating-action-button');
|
|
7
|
+
const reactPrimitive = require('@seed-design/react-primitive');
|
|
8
|
+
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
9
|
+
const Icon = require('../private/Icon.cjs');
|
|
10
|
+
|
|
11
|
+
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(floatingActionButton.floatingActionButton);
|
|
12
|
+
const FloatingActionButtonRoot = withProvider(reactPrimitive.Primitive.button, "root");
|
|
13
|
+
const FloatingActionButtonIcon = withContext(Icon.InternalIcon, "icon");
|
|
14
|
+
const FloatingActionButtonLabel = withContext(reactPrimitive.Primitive.span, "label");
|
|
15
|
+
|
|
16
|
+
exports.FloatingActionButtonIcon = FloatingActionButtonIcon;
|
|
17
|
+
exports.FloatingActionButtonLabel = FloatingActionButtonLabel;
|
|
18
|
+
exports.FloatingActionButtonRoot = FloatingActionButtonRoot;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FloatingActionButtonVariantProps } from '@seed-design/css/recipes/floating-action-button';
|
|
2
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
+
import { InternalIconProps } from '../private/Icon';
|
|
4
|
+
import type * as React from "react";
|
|
5
|
+
export interface FloatingActionButtonRootProps extends FloatingActionButtonVariantProps, PrimitiveProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
}
|
|
7
|
+
export declare const FloatingActionButtonRoot: React.ForwardRefExoticComponent<FloatingActionButtonRootProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export interface FloatingActionButtonIconProps extends InternalIconProps {
|
|
9
|
+
}
|
|
10
|
+
export declare const FloatingActionButtonIcon: React.ForwardRefExoticComponent<FloatingActionButtonIconProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export interface FloatingActionButtonLabelProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
12
|
+
}
|
|
13
|
+
export declare const FloatingActionButtonLabel: React.ForwardRefExoticComponent<FloatingActionButtonLabelProps & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
//# sourceMappingURL=FloatingActionButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/FloatingActionButton/FloatingActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMvE,MAAM,WAAW,6BACf,SAAQ,gCAAgC,EACtC,cAAc,EACd,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEpD,eAAO,MAAM,wBAAwB,yGAGV,CAAC;AAE5B,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;CAAG;AAE3E,eAAO,MAAM,wBAAwB,yGAGd,CAAC;AAExB,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,yBAAyB,wGAGZ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { floatingActionButton } from '@seed-design/css/recipes/floating-action-button';
|
|
3
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
4
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
5
|
+
import { InternalIcon } from '../private/Icon.js';
|
|
6
|
+
|
|
7
|
+
const { withProvider, withContext } = createSlotRecipeContext(floatingActionButton);
|
|
8
|
+
const FloatingActionButtonRoot = withProvider(Primitive.button, "root");
|
|
9
|
+
const FloatingActionButtonIcon = withContext(InternalIcon, "icon");
|
|
10
|
+
const FloatingActionButtonLabel = withContext(Primitive.span, "label");
|
|
11
|
+
|
|
12
|
+
export { FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const FloatingActionButton = require('./FloatingActionButton.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Icon = FloatingActionButton.FloatingActionButtonIcon;
|
|
10
|
+
exports.Label = FloatingActionButton.FloatingActionButtonLabel;
|
|
11
|
+
exports.Root = FloatingActionButton.FloatingActionButtonRoot;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { FloatingActionButtonIcon as Icon, FloatingActionButtonLabel as Label, FloatingActionButtonRoot as Root, type FloatingActionButtonIconProps as IconProps, type FloatingActionButtonLabelProps as LabelProps, type FloatingActionButtonRootProps as RootProps, } from './FloatingActionButton';
|
|
2
|
+
//# sourceMappingURL=FloatingActionButton.namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingActionButton.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/FloatingActionButton/FloatingActionButton.namespace.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,IAAI,IAAI,EAChC,yBAAyB,IAAI,KAAK,EAClC,wBAAwB,IAAI,IAAI,EAChC,KAAK,6BAA6B,IAAI,SAAS,EAC/C,KAAK,8BAA8B,IAAI,UAAU,EACjD,KAAK,6BAA6B,IAAI,SAAS,GAChD,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FloatingActionButtonIcon as Icon, FloatingActionButtonLabel as Label, FloatingActionButtonRoot as Root } from './FloatingActionButton.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const FloatingActionButton = require('./FloatingActionButton.cjs');
|
|
6
|
+
const FloatingActionButton_namespace = require('./FloatingActionButton.namespace.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.FloatingActionButtonIcon = FloatingActionButton.FloatingActionButtonIcon;
|
|
11
|
+
exports.FloatingActionButtonLabel = FloatingActionButton.FloatingActionButtonLabel;
|
|
12
|
+
exports.FloatingActionButtonRoot = FloatingActionButton.FloatingActionButtonRoot;
|
|
13
|
+
exports.FloatingActionButton = FloatingActionButton_namespace;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot, type FloatingActionButtonIconProps, type FloatingActionButtonLabelProps, type FloatingActionButtonRootProps, } from './FloatingActionButton';
|
|
2
|
+
export * as FloatingActionButton from './FloatingActionButton.namespace';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FloatingActionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,GACnC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,oBAAoB,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { FloatingActionButtonIcon, FloatingActionButtonLabel, FloatingActionButtonRoot } from './FloatingActionButton.js';
|
|
2
|
+
import * as FloatingActionButton_namespace from './FloatingActionButton.namespace.js';
|
|
3
|
+
export { FloatingActionButton_namespace as FloatingActionButton };
|
|
@@ -14,7 +14,7 @@ export declare const IconRequired: ({ children, enabled, }: {
|
|
|
14
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export interface IconProps {
|
|
16
16
|
svg: React.ReactNode;
|
|
17
|
-
size?: Dimension | string;
|
|
17
|
+
size?: Dimension | (string & {});
|
|
18
18
|
color?: ScopedColorFg | ScopedColorPalette;
|
|
19
19
|
}
|
|
20
20
|
export declare const Icon: ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI1F,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAIF,eAAO,MAAM,YAAY,GAAI,wBAG1B;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,4CAsDjD,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;IAErB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI1F,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAIF,eAAO,MAAM,YAAY,GAAI,wBAG1B;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,4CAsDjD,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;IAErB,IAAI,CAAC,EAAE,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAEjC,KAAK,CAAC,EAAE,aAAa,GAAG,kBAAkB,CAAC;CAC5C;AAED,eAAO,MAAM,IAAI,qGA+BhB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,EAC9C,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAC1D,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,OAAO,oHAe/D"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const Tabs = require('./Tabs.cjs');
|
|
6
|
+
const reactTabs = require('@seed-design/react-tabs');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
@@ -13,3 +14,7 @@ exports.Indicator = Tabs.TabsIndicator;
|
|
|
13
14
|
exports.List = Tabs.TabsList;
|
|
14
15
|
exports.Root = Tabs.TabsRoot;
|
|
15
16
|
exports.Trigger = Tabs.TabsTrigger;
|
|
17
|
+
Object.defineProperty(exports, "carouselPreventDrag", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => reactTabs.tabsCarouselPreventDrag
|
|
20
|
+
});
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsCarouselCamera as CarouselCamera, TabsCarousel as Carousel, TabsTrigger as Trigger, type TabsContentProps as ContentProps, type TabsIndicatorProps as IndicatorProps, type TabsListProps as ListProps, type TabsRootProps as RootProps, type TabsCarouselCameraProps as CarouselCameraProps, type TabsCarouselProps as CarouselProps, type TabsTriggerProps as TriggerProps, } from './Tabs';
|
|
2
|
+
export { tabsCarouselPreventDrag as carouselPreventDrag } from '@seed-design/react-tabs';
|
|
2
3
|
//# sourceMappingURL=Tabs.namespace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,OAAO,EACtB,aAAa,IAAI,SAAS,EAC1B,QAAQ,IAAI,IAAI,EAChB,QAAQ,IAAI,IAAI,EAChB,kBAAkB,IAAI,cAAc,EACpC,YAAY,IAAI,QAAQ,EACxB,WAAW,IAAI,OAAO,EACtB,KAAK,gBAAgB,IAAI,YAAY,EACrC,KAAK,kBAAkB,IAAI,cAAc,EACzC,KAAK,aAAa,IAAI,SAAS,EAC/B,KAAK,aAAa,IAAI,SAAS,EAC/B,KAAK,uBAAuB,IAAI,mBAAmB,EACnD,KAAK,iBAAiB,IAAI,aAAa,EACvC,KAAK,gBAAgB,IAAI,YAAY,GACtC,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"Tabs.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,OAAO,EACtB,aAAa,IAAI,SAAS,EAC1B,QAAQ,IAAI,IAAI,EAChB,QAAQ,IAAI,IAAI,EAChB,kBAAkB,IAAI,cAAc,EACpC,YAAY,IAAI,QAAQ,EACxB,WAAW,IAAI,OAAO,EACtB,KAAK,gBAAgB,IAAI,YAAY,EACrC,KAAK,kBAAkB,IAAI,cAAc,EACzC,KAAK,aAAa,IAAI,SAAS,EAC/B,KAAK,aAAa,IAAI,SAAS,EAC/B,KAAK,uBAAuB,IAAI,mBAAmB,EACnD,KAAK,iBAAiB,IAAI,aAAa,EACvC,KAAK,gBAAgB,IAAI,YAAY,GACtC,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,uBAAuB,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export { TabsCarousel as Carousel, TabsCarouselCamera as CarouselCamera, TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, TabsTrigger as Trigger } from './Tabs.js';
|
|
2
|
+
export { tabsCarouselPreventDrag as carouselPreventDrag } from '@seed-design/react-tabs';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const Tabs = require('./Tabs.cjs');
|
|
6
|
+
const reactTabs = require('@seed-design/react-tabs');
|
|
6
7
|
const Tabs_namespace = require('./Tabs.namespace.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
@@ -14,4 +15,8 @@ exports.TabsIndicator = Tabs.TabsIndicator;
|
|
|
14
15
|
exports.TabsList = Tabs.TabsList;
|
|
15
16
|
exports.TabsRoot = Tabs.TabsRoot;
|
|
16
17
|
exports.TabsTrigger = Tabs.TabsTrigger;
|
|
18
|
+
Object.defineProperty(exports, "tabsCarouselPreventDrag", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: () => reactTabs.tabsCarouselPreventDrag
|
|
21
|
+
});
|
|
17
22
|
exports.Tabs = Tabs_namespace;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { TabsContent, TabsIndicator, TabsList, TabsRoot, TabsCarouselCamera, TabsCarousel, TabsTrigger, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootProps, type TabsCarouselCameraProps, type TabsCarouselProps, type TabsTriggerProps, } from './Tabs';
|
|
2
|
+
export { tabsCarouselPreventDrag } from '@seed-design/react-tabs';
|
|
2
3
|
export * as Tabs from './Tabs.namespace';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { TabsCarousel, TabsCarouselCamera, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger } from './Tabs.js';
|
|
2
|
+
export { tabsCarouselPreventDrag } from '@seed-design/react-tabs';
|
|
2
3
|
import * as Tabs_namespace from './Tabs.namespace.js';
|
|
3
4
|
export { Tabs_namespace as Tabs };
|
package/lib/components/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ const ChipTabs = require('./ChipTabs/ChipTabs.cjs');
|
|
|
21
21
|
const ChipTabs_namespace = require('./ChipTabs/ChipTabs.namespace.cjs');
|
|
22
22
|
const Columns = require('./Columns/Columns.cjs');
|
|
23
23
|
const ConsistentWidth = require('./ConsistentWidth/ConsistentWidth.cjs');
|
|
24
|
+
const ContextualFloatingButton = require('./ContextualFloatingButton/ContextualFloatingButton.cjs');
|
|
24
25
|
const ControlChip = require('./ControlChip/ControlChip.cjs');
|
|
25
26
|
const Count = require('./Count/Count.cjs');
|
|
26
27
|
const Dialog = require('./Dialog/Dialog.cjs');
|
|
@@ -30,7 +31,10 @@ const ExtendedActionSheet = require('./ExtendedActionSheet/ExtendedActionSheet.c
|
|
|
30
31
|
const ExtendedActionSheet_namespace = require('./ExtendedActionSheet/ExtendedActionSheet.namespace.cjs');
|
|
31
32
|
const ExtendedFab = require('./ExtendedFab/ExtendedFab.cjs');
|
|
32
33
|
const Fab = require('./Fab/Fab.cjs');
|
|
34
|
+
const FloatingActionButton = require('./FloatingActionButton/FloatingActionButton.cjs');
|
|
35
|
+
const FloatingActionButton_namespace = require('./FloatingActionButton/FloatingActionButton.namespace.cjs');
|
|
33
36
|
const Flex = require('./Flex/Flex.cjs');
|
|
37
|
+
const Float = require('./Float/Float.cjs');
|
|
34
38
|
const HelpBubble = require('./HelpBubble/HelpBubble.cjs');
|
|
35
39
|
const HelpBubble_namespace = require('./HelpBubble/HelpBubble.namespace.cjs');
|
|
36
40
|
const Icon = require('./Icon/Icon.cjs');
|
|
@@ -67,6 +71,7 @@ const Stack = require('./Stack/Stack.cjs');
|
|
|
67
71
|
const Switch = require('./Switch/Switch.cjs');
|
|
68
72
|
const Switch_namespace = require('./Switch/Switch.namespace.cjs');
|
|
69
73
|
const Tabs = require('./Tabs/Tabs.cjs');
|
|
74
|
+
const reactTabs = require('@seed-design/react-tabs');
|
|
70
75
|
const Tabs_namespace = require('./Tabs/Tabs.namespace.cjs');
|
|
71
76
|
const Text = require('./Text/Text.cjs');
|
|
72
77
|
const TextField = require('./TextField/TextField.cjs');
|
|
@@ -134,6 +139,7 @@ exports.ChipTabs = ChipTabs_namespace;
|
|
|
134
139
|
exports.Column = Columns.Column;
|
|
135
140
|
exports.Columns = Columns.Columns;
|
|
136
141
|
exports.ConsistentWidth = ConsistentWidth.ConsistentWidth;
|
|
142
|
+
exports.ContextualFloatingButton = ContextualFloatingButton.ContextualFloatingButton;
|
|
137
143
|
exports.ControlChip = ControlChip.ControlChip;
|
|
138
144
|
exports.Count = Count.Count;
|
|
139
145
|
exports.DialogAction = Dialog.DialogAction;
|
|
@@ -163,7 +169,12 @@ exports.ExtendedActionSheetTrigger = ExtendedActionSheet.ExtendedActionSheetTrig
|
|
|
163
169
|
exports.ExtendedActionSheet = ExtendedActionSheet_namespace;
|
|
164
170
|
exports.ExtendedFab = ExtendedFab.ExtendedFab;
|
|
165
171
|
exports.Fab = Fab.Fab;
|
|
172
|
+
exports.FloatingActionButtonIcon = FloatingActionButton.FloatingActionButtonIcon;
|
|
173
|
+
exports.FloatingActionButtonLabel = FloatingActionButton.FloatingActionButtonLabel;
|
|
174
|
+
exports.FloatingActionButtonRoot = FloatingActionButton.FloatingActionButtonRoot;
|
|
175
|
+
exports.FloatingActionButton = FloatingActionButton_namespace;
|
|
166
176
|
exports.Flex = Flex.Flex;
|
|
177
|
+
exports.Float = Float.Float;
|
|
167
178
|
exports.HelpBubbleAnchor = HelpBubble.HelpBubbleAnchor;
|
|
168
179
|
exports.HelpBubbleArrow = HelpBubble.HelpBubbleArrow;
|
|
169
180
|
exports.HelpBubbleArrowTip = HelpBubble.HelpBubbleArrowTip;
|
|
@@ -265,6 +276,10 @@ exports.TabsIndicator = Tabs.TabsIndicator;
|
|
|
265
276
|
exports.TabsList = Tabs.TabsList;
|
|
266
277
|
exports.TabsRoot = Tabs.TabsRoot;
|
|
267
278
|
exports.TabsTrigger = Tabs.TabsTrigger;
|
|
279
|
+
Object.defineProperty(exports, "tabsCarouselPreventDrag", {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
get: () => reactTabs.tabsCarouselPreventDrag
|
|
282
|
+
});
|
|
268
283
|
exports.Tabs = Tabs_namespace;
|
|
269
284
|
exports.Text = Text.Text;
|
|
270
285
|
exports.TextFieldCharacterCount = TextField.TextFieldCharacterCount;
|