@seed-design/react 1.1.18 → 1.1.19
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/Avatar/Avatar.cjs +10 -4
- package/lib/components/Avatar/Avatar.d.ts +4 -4
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.js +10 -4
- package/lib/components/BottomSheet/BottomSheet.cjs +1 -1
- package/lib/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/lib/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/components/Checkbox/Checkbox.cjs +0 -5
- package/lib/components/Checkbox/Checkbox.d.ts +0 -4
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +1 -5
- package/lib/components/Checkbox/Checkbox.namespace.cjs +0 -1
- package/lib/components/Checkbox/Checkbox.namespace.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.namespace.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.namespace.js +1 -1
- package/lib/components/Checkbox/index.cjs +0 -1
- package/lib/components/Checkbox/index.d.ts +1 -1
- package/lib/components/Checkbox/index.d.ts.map +1 -1
- package/lib/components/Checkbox/index.js +1 -1
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.cjs +0 -5
- package/lib/components/HelpBubble/HelpBubble.d.ts +0 -3
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.js +1 -5
- package/lib/components/HelpBubble/HelpBubble.namespace.cjs +0 -1
- package/lib/components/HelpBubble/HelpBubble.namespace.d.ts +1 -1
- package/lib/components/HelpBubble/HelpBubble.namespace.d.ts.map +1 -1
- package/lib/components/HelpBubble/HelpBubble.namespace.js +1 -1
- package/lib/components/HelpBubble/index.cjs +0 -1
- package/lib/components/HelpBubble/index.d.ts +1 -1
- package/lib/components/HelpBubble/index.d.ts.map +1 -1
- package/lib/components/HelpBubble/index.js +1 -1
- package/lib/components/MenuSheet/MenuSheet.cjs +24 -60
- package/lib/components/MenuSheet/MenuSheet.d.ts +0 -12
- package/lib/components/MenuSheet/MenuSheet.d.ts.map +1 -1
- package/lib/components/MenuSheet/MenuSheet.js +25 -57
- package/lib/components/MenuSheet/MenuSheet.namespace.cjs +0 -4
- package/lib/components/MenuSheet/MenuSheet.namespace.d.ts +1 -1
- package/lib/components/MenuSheet/MenuSheet.namespace.d.ts.map +1 -1
- package/lib/components/MenuSheet/MenuSheet.namespace.js +1 -1
- package/lib/components/MenuSheet/index.cjs +0 -4
- package/lib/components/MenuSheet/index.d.ts +1 -1
- package/lib/components/MenuSheet/index.d.ts.map +1 -1
- package/lib/components/MenuSheet/index.js +1 -1
- package/lib/components/RadioGroup/RadioGroup.cjs +1 -4
- package/lib/components/RadioGroup/RadioGroup.d.ts +2 -3
- package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.js +1 -4
- package/lib/components/SelectBox/CheckSelectBox.cjs +8 -117
- package/lib/components/SelectBox/CheckSelectBox.d.ts +10 -38
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.js +10 -113
- package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +0 -6
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts +1 -1
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.namespace.js +1 -1
- package/lib/components/SelectBox/RadioSelectBox.cjs +9 -112
- package/lib/components/SelectBox/RadioSelectBox.d.ts +7 -31
- package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/RadioSelectBox.js +10 -109
- package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +1 -5
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts +1 -1
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts.map +1 -1
- package/lib/components/SelectBox/RadioSelectBox.namespace.js +1 -1
- package/lib/components/SelectBox/index.cjs +1 -11
- package/lib/components/SelectBox/index.d.ts +2 -2
- package/lib/components/SelectBox/index.d.ts.map +1 -1
- package/lib/components/SelectBox/index.js +2 -2
- package/lib/components/Switch/Switch.cjs +5 -5
- package/lib/components/Switch/Switch.d.ts +3 -3
- package/lib/components/Switch/Switch.d.ts.map +1 -1
- package/lib/components/Switch/Switch.js +5 -5
- package/lib/components/TagGroup/TagGroup.cjs +9 -25
- package/lib/components/TagGroup/TagGroup.d.ts +1 -5
- package/lib/components/TagGroup/TagGroup.d.ts.map +1 -1
- package/lib/components/TagGroup/TagGroup.js +10 -25
- package/lib/components/TagGroup/TagGroup.namespace.cjs +0 -1
- package/lib/components/TagGroup/TagGroup.namespace.d.ts +1 -1
- package/lib/components/TagGroup/TagGroup.namespace.d.ts.map +1 -1
- package/lib/components/TagGroup/TagGroup.namespace.js +1 -1
- package/lib/components/TagGroup/index.cjs +0 -1
- package/lib/components/TagGroup/index.d.ts +1 -1
- package/lib/components/TagGroup/index.d.ts.map +1 -1
- package/lib/components/TagGroup/index.js +1 -1
- package/lib/components/index.cjs +1 -53
- package/lib/components/index.d.ts +0 -6
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +6 -16
- package/lib/index.cjs +1 -53
- package/lib/index.js +6 -16
- package/lib/utils/styled.cjs +0 -6
- package/lib/utils/styled.d.ts +0 -6
- package/lib/utils/styled.d.ts.map +1 -1
- package/lib/utils/styled.js +0 -6
- package/package.json +2 -2
- package/lib/components/AspectRatio/AspectRatio.cjs +0 -53
- package/lib/components/AspectRatio/AspectRatio.d.ts +0 -11
- package/lib/components/AspectRatio/AspectRatio.d.ts.map +0 -1
- package/lib/components/AspectRatio/AspectRatio.js +0 -30
- package/lib/components/AspectRatio/index.cjs +0 -9
- package/lib/components/AspectRatio/index.d.ts +0 -2
- package/lib/components/AspectRatio/index.d.ts.map +0 -1
- package/lib/components/AspectRatio/index.js +0 -1
- package/lib/components/Fieldset/Fieldset.cjs +0 -86
- package/lib/components/Fieldset/Fieldset.d.ts +0 -30
- package/lib/components/Fieldset/Fieldset.d.ts.map +0 -1
- package/lib/components/Fieldset/Fieldset.js +0 -75
- package/lib/components/Fieldset/Fieldset.namespace.cjs +0 -16
- package/lib/components/Fieldset/Fieldset.namespace.d.ts +0 -2
- package/lib/components/Fieldset/Fieldset.namespace.d.ts.map +0 -1
- package/lib/components/Fieldset/Fieldset.namespace.js +0 -1
- package/lib/components/Fieldset/index.cjs +0 -18
- package/lib/components/Fieldset/index.d.ts +0 -3
- package/lib/components/Fieldset/index.d.ts.map +0 -1
- package/lib/components/Fieldset/index.js +0 -3
- package/lib/components/Grid/Grid.cjs +0 -56
- package/lib/components/Grid/Grid.d.ts +0 -41
- package/lib/components/Grid/Grid.d.ts.map +0 -1
- package/lib/components/Grid/Grid.js +0 -33
- package/lib/components/Grid/index.cjs +0 -9
- package/lib/components/Grid/index.d.ts +0 -2
- package/lib/components/Grid/index.d.ts.map +0 -1
- package/lib/components/Grid/index.js +0 -1
- package/lib/components/GridItem/GridItem.cjs +0 -45
- package/lib/components/GridItem/GridItem.d.ts +0 -35
- package/lib/components/GridItem/GridItem.d.ts.map +0 -1
- package/lib/components/GridItem/GridItem.js +0 -22
- package/lib/components/GridItem/index.cjs +0 -9
- package/lib/components/GridItem/index.d.ts +0 -2
- package/lib/components/GridItem/index.d.ts.map +0 -1
- package/lib/components/GridItem/index.js +0 -1
- package/lib/components/ImageFrame/ImageFrame.cjs +0 -157
- package/lib/components/ImageFrame/ImageFrame.d.ts +0 -51
- package/lib/components/ImageFrame/ImageFrame.d.ts.map +0 -1
- package/lib/components/ImageFrame/ImageFrame.js +0 -129
- package/lib/components/ImageFrame/index.cjs +0 -14
- package/lib/components/ImageFrame/index.d.ts +0 -2
- package/lib/components/ImageFrame/index.d.ts.map +0 -1
- package/lib/components/ImageFrame/index.js +0 -1
- package/lib/components/RadioGroupField/RadioGroupField.cjs +0 -79
- package/lib/components/RadioGroupField/RadioGroupField.d.ts +0 -30
- package/lib/components/RadioGroupField/RadioGroupField.d.ts.map +0 -1
- package/lib/components/RadioGroupField/RadioGroupField.js +0 -68
- package/lib/components/RadioGroupField/RadioGroupField.namespace.cjs +0 -16
- package/lib/components/RadioGroupField/RadioGroupField.namespace.d.ts +0 -2
- package/lib/components/RadioGroupField/RadioGroupField.namespace.d.ts.map +0 -1
- package/lib/components/RadioGroupField/RadioGroupField.namespace.js +0 -1
- package/lib/components/RadioGroupField/index.cjs +0 -18
- package/lib/components/RadioGroupField/index.d.ts +0 -3
- package/lib/components/RadioGroupField/index.d.ts.map +0 -1
- package/lib/components/RadioGroupField/index.js +0 -3
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { Primitive } from '@seed-design/react-primitive';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
6
|
-
import { field } from '@seed-design/css/recipes/field';
|
|
7
|
-
import { fieldLabel } from '@seed-design/css/recipes/field-label';
|
|
8
|
-
import { Fieldset } from '@seed-design/react-fieldset';
|
|
9
|
-
import { InternalIcon } from '../private/Icon.js';
|
|
10
|
-
import clsx from 'clsx';
|
|
11
|
-
|
|
12
|
-
const { withProvider, withContext } = createSlotRecipeContext(field);
|
|
13
|
-
const {
|
|
14
|
-
withContext: withLabelContext,
|
|
15
|
-
withProvider: withLabelProvider,
|
|
16
|
-
useClassNames: useLabelClassNames
|
|
17
|
-
} = createSlotRecipeContext(fieldLabel);
|
|
18
|
-
const FieldsetRoot = withProvider(Fieldset.Root, "root");
|
|
19
|
-
const FieldsetHeader = withContext(
|
|
20
|
-
Primitive.div,
|
|
21
|
-
"header"
|
|
22
|
-
);
|
|
23
|
-
const FieldsetLabel = withLabelProvider(
|
|
24
|
-
Fieldset.Label,
|
|
25
|
-
"root"
|
|
26
|
-
);
|
|
27
|
-
const FieldsetIndicatorText = withLabelContext(
|
|
28
|
-
Primitive.span,
|
|
29
|
-
"indicatorText"
|
|
30
|
-
);
|
|
31
|
-
const FieldsetRequiredIndicator = forwardRef(
|
|
32
|
-
({ className, ...props }, ref) => {
|
|
33
|
-
const { indicatorIcon } = useLabelClassNames();
|
|
34
|
-
return /* @__PURE__ */ jsx(
|
|
35
|
-
InternalIcon,
|
|
36
|
-
{
|
|
37
|
-
svg: (
|
|
38
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: InternalIcon is aria-hidden
|
|
39
|
-
/* @__PURE__ */ jsx(
|
|
40
|
-
"svg",
|
|
41
|
-
{
|
|
42
|
-
viewBox: "0 0 6 6",
|
|
43
|
-
fill: "none",
|
|
44
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
-
className: clsx(indicatorIcon, className),
|
|
46
|
-
children: /* @__PURE__ */ jsx(
|
|
47
|
-
"path",
|
|
48
|
-
{
|
|
49
|
-
d: "M3.75002 1.55859L4.41318 1.09468C4.75243 0.857361 5.21982 0.939865 5.45732 1.27899C5.69499 1.61836 5.61243 2.08615 5.27295 2.32366L4.30763 2.99902L5.27372 3.67612C5.61285 3.91381 5.69517 4.38137 5.45761 4.72059C5.21999 5.0599 4.7523 5.14233 4.41299 4.90471L3.75002 4.44043V5.25C3.75002 5.66421 3.41423 6 3.00002 6C2.5858 6 2.25002 5.66421 2.25002 5.25V4.44043L1.58704 4.90471C1.24773 5.14233 0.780041 5.0599 0.542418 4.72059C0.304856 4.38137 0.387176 3.91381 0.726309 3.67612L1.6924 2.99902L0.727079 2.32366C0.387603 2.08615 0.305043 1.61836 0.542707 1.27899C0.780206 0.939865 1.2476 0.857361 1.58685 1.09468L2.25002 1.55859V0.75C2.25002 0.335786 2.5858 0 3.00002 0C3.41423 0 3.75002 0.335786 3.75002 0.75V1.55859Z",
|
|
50
|
-
fill: "currentColor"
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
),
|
|
56
|
-
ref,
|
|
57
|
-
...props
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
const FieldsetFooter = withContext(
|
|
63
|
-
Primitive.div,
|
|
64
|
-
"footer"
|
|
65
|
-
);
|
|
66
|
-
const FieldsetDescription = withContext(
|
|
67
|
-
Fieldset.Description,
|
|
68
|
-
"description"
|
|
69
|
-
);
|
|
70
|
-
const FieldsetErrorMessage = withContext(
|
|
71
|
-
Fieldset.ErrorMessage,
|
|
72
|
-
"errorMessage"
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
export { FieldsetDescription, FieldsetErrorMessage, FieldsetFooter, FieldsetHeader, FieldsetIndicatorText, FieldsetLabel, FieldsetRequiredIndicator, FieldsetRoot };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const Fieldset = require('./Fieldset.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.Description = Fieldset.FieldsetDescription;
|
|
10
|
-
exports.ErrorMessage = Fieldset.FieldsetErrorMessage;
|
|
11
|
-
exports.Footer = Fieldset.FieldsetFooter;
|
|
12
|
-
exports.Header = Fieldset.FieldsetHeader;
|
|
13
|
-
exports.IndicatorText = Fieldset.FieldsetIndicatorText;
|
|
14
|
-
exports.Label = Fieldset.FieldsetLabel;
|
|
15
|
-
exports.RequiredIndicator = Fieldset.FieldsetRequiredIndicator;
|
|
16
|
-
exports.Root = Fieldset.FieldsetRoot;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { FieldsetRoot as Root, FieldsetHeader as Header, FieldsetLabel as Label, FieldsetIndicatorText as IndicatorText, FieldsetRequiredIndicator as RequiredIndicator, FieldsetFooter as Footer, FieldsetDescription as Description, FieldsetErrorMessage as ErrorMessage, type FieldsetRootProps as RootProps, type FieldsetHeaderProps as HeaderProps, type FieldsetLabelProps as LabelProps, type FieldsetIndicatorTextProps as IndicatorTextProps, type FieldsetFooterProps as FooterProps, type FieldsetDescriptionProps as DescriptionProps, type FieldsetErrorMessageProps as ErrorMessageProps, } from './Fieldset';
|
|
2
|
-
//# sourceMappingURL=Fieldset.namespace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Fieldset.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/Fieldset/Fieldset.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,IAAI,EACpB,cAAc,IAAI,MAAM,EACxB,aAAa,IAAI,KAAK,EACtB,qBAAqB,IAAI,aAAa,EACtC,yBAAyB,IAAI,iBAAiB,EAC9C,cAAc,IAAI,MAAM,EACxB,mBAAmB,IAAI,WAAW,EAClC,oBAAoB,IAAI,YAAY,EACpC,KAAK,iBAAiB,IAAI,SAAS,EACnC,KAAK,mBAAmB,IAAI,WAAW,EACvC,KAAK,kBAAkB,IAAI,UAAU,EACrC,KAAK,0BAA0B,IAAI,kBAAkB,EACrD,KAAK,mBAAmB,IAAI,WAAW,EACvC,KAAK,wBAAwB,IAAI,gBAAgB,EACjD,KAAK,yBAAyB,IAAI,iBAAiB,GACpD,MAAM,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FieldsetDescription as Description, FieldsetErrorMessage as ErrorMessage, FieldsetFooter as Footer, FieldsetHeader as Header, FieldsetIndicatorText as IndicatorText, FieldsetLabel as Label, FieldsetRequiredIndicator as RequiredIndicator, FieldsetRoot as Root } from './Fieldset.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const Fieldset = require('./Fieldset.cjs');
|
|
6
|
-
const Fieldset_namespace = require('./Fieldset.namespace.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.FieldsetDescription = Fieldset.FieldsetDescription;
|
|
11
|
-
exports.FieldsetErrorMessage = Fieldset.FieldsetErrorMessage;
|
|
12
|
-
exports.FieldsetFooter = Fieldset.FieldsetFooter;
|
|
13
|
-
exports.FieldsetHeader = Fieldset.FieldsetHeader;
|
|
14
|
-
exports.FieldsetIndicatorText = Fieldset.FieldsetIndicatorText;
|
|
15
|
-
exports.FieldsetLabel = Fieldset.FieldsetLabel;
|
|
16
|
-
exports.FieldsetRequiredIndicator = Fieldset.FieldsetRequiredIndicator;
|
|
17
|
-
exports.FieldsetRoot = Fieldset.FieldsetRoot;
|
|
18
|
-
exports.Fieldset = Fieldset_namespace;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { FieldsetRoot, FieldsetHeader, FieldsetLabel, FieldsetIndicatorText, FieldsetRequiredIndicator, FieldsetFooter, FieldsetDescription, FieldsetErrorMessage, type FieldsetRootProps, type FieldsetHeaderProps, type FieldsetLabelProps, type FieldsetIndicatorTextProps, type FieldsetFooterProps, type FieldsetDescriptionProps, type FieldsetErrorMessageProps, } from './Fieldset';
|
|
2
|
-
export * as Fieldset from './Fieldset.namespace';
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Fieldset/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,GAC/B,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { FieldsetDescription, FieldsetErrorMessage, FieldsetFooter, FieldsetHeader, FieldsetIndicatorText, FieldsetLabel, FieldsetRequiredIndicator, FieldsetRoot } from './Fieldset.js';
|
|
2
|
-
import * as Fieldset_namespace from './Fieldset.namespace.js';
|
|
3
|
-
export { Fieldset_namespace as Fieldset };
|
|
@@ -1,56 +0,0 @@
|
|
|
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 domUtils = require('@seed-design/dom-utils');
|
|
8
|
-
const React = require('react');
|
|
9
|
-
const Box = require('../Box/Box.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
|
-
const Grid = React__namespace.forwardRef((props, ref) => {
|
|
31
|
-
const { align, justify, justifyItems, columns, rows, autoFlow, autoColumns, autoRows, ...rest } = props;
|
|
32
|
-
return (
|
|
33
|
-
// @ts-expect-error: display: "grid" is not allowed in the Box component
|
|
34
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
-
Box.Box,
|
|
36
|
-
{
|
|
37
|
-
ref,
|
|
38
|
-
alignItems: align,
|
|
39
|
-
justifyContent: justify,
|
|
40
|
-
...domUtils.mergeProps(rest, {
|
|
41
|
-
className: "seed-grid",
|
|
42
|
-
style: {
|
|
43
|
-
"--seed-grid-columns": typeof columns === "number" ? `repeat(${columns}, minmax(0, 1fr))` : columns,
|
|
44
|
-
"--seed-grid-rows": typeof rows === "number" ? `repeat(${rows}, minmax(0, 1fr))` : rows,
|
|
45
|
-
"--seed-grid-auto-flow": autoFlow,
|
|
46
|
-
"--seed-grid-auto-columns": autoColumns,
|
|
47
|
-
"--seed-grid-auto-rows": autoRows,
|
|
48
|
-
"--seed-grid-justify-items": justifyItems
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
exports.Grid = Grid;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '../Box/Box';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export interface GridProps extends Omit<BoxProps, "display"> {
|
|
4
|
-
/**
|
|
5
|
-
* @default "grid"
|
|
6
|
-
*/
|
|
7
|
-
display?: "grid" | "none";
|
|
8
|
-
/**
|
|
9
|
-
* Shorthand for `alignItems`.
|
|
10
|
-
*/
|
|
11
|
-
align?: BoxProps["alignItems"];
|
|
12
|
-
/**
|
|
13
|
-
* Shorthand for `justifyContent`.
|
|
14
|
-
*/
|
|
15
|
-
justify?: BoxProps["justifyContent"];
|
|
16
|
-
justifyItems?: "flex-start" | "flex-end" | "center" | "stretch";
|
|
17
|
-
/**
|
|
18
|
-
* Shorthand for `gridTemplateColumns`.
|
|
19
|
-
* If number, `repeat({columns}, minmax(0, 1fr))` is applied.
|
|
20
|
-
*/
|
|
21
|
-
columns?: number | string;
|
|
22
|
-
/**
|
|
23
|
-
* Shorthand for `gridTemplateRows`.
|
|
24
|
-
* If number, `repeat({rows}, minmax(0, 1fr))` is applied.
|
|
25
|
-
*/
|
|
26
|
-
rows?: number | string;
|
|
27
|
-
/**
|
|
28
|
-
* Shorthand for `gridAutoFlow`.
|
|
29
|
-
*/
|
|
30
|
-
autoFlow?: "row" | "column" | "row dense" | "column dense";
|
|
31
|
-
/**
|
|
32
|
-
* Shorthand for `gridAutoColumns`.
|
|
33
|
-
*/
|
|
34
|
-
autoColumns?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Shorthand for `gridAutoRows`.
|
|
37
|
-
*/
|
|
38
|
-
autoRows?: string;
|
|
39
|
-
}
|
|
40
|
-
export declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AACA,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,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAErC,YAAY,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEhE;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAMvB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC;IAE3D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,kFAwBf,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { mergeProps } from '@seed-design/dom-utils';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { Box } from '../Box/Box.js';
|
|
6
|
-
|
|
7
|
-
const Grid = React.forwardRef((props, ref) => {
|
|
8
|
-
const { align, justify, justifyItems, columns, rows, autoFlow, autoColumns, autoRows, ...rest } = props;
|
|
9
|
-
return (
|
|
10
|
-
// @ts-expect-error: display: "grid" is not allowed in the Box component
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
12
|
-
Box,
|
|
13
|
-
{
|
|
14
|
-
ref,
|
|
15
|
-
alignItems: align,
|
|
16
|
-
justifyContent: justify,
|
|
17
|
-
...mergeProps(rest, {
|
|
18
|
-
className: "seed-grid",
|
|
19
|
-
style: {
|
|
20
|
-
"--seed-grid-columns": typeof columns === "number" ? `repeat(${columns}, minmax(0, 1fr))` : columns,
|
|
21
|
-
"--seed-grid-rows": typeof rows === "number" ? `repeat(${rows}, minmax(0, 1fr))` : rows,
|
|
22
|
-
"--seed-grid-auto-flow": autoFlow,
|
|
23
|
-
"--seed-grid-auto-columns": autoColumns,
|
|
24
|
-
"--seed-grid-auto-rows": autoRows,
|
|
25
|
-
"--seed-grid-justify-items": justifyItems
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
}
|
|
29
|
-
)
|
|
30
|
-
);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export { Grid };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Grid } from './Grid.js';
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
12
|
-
if (e) {
|
|
13
|
-
for (const k in e) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: () => e[k]
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
28
|
-
|
|
29
|
-
const GridItem = React__namespace.forwardRef((props, ref) => {
|
|
30
|
-
const { asChild = false, colSpan, colStart, colEnd, rowSpan, rowStart, rowEnd, ...rest } = props;
|
|
31
|
-
const gridColumn = getGridLine(colSpan, colStart, colEnd);
|
|
32
|
-
const gridRow = getGridLine(rowSpan, rowStart, rowEnd);
|
|
33
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { ref, asChild, gridColumn, gridRow, ...rest });
|
|
34
|
-
});
|
|
35
|
-
GridItem.displayName = "GridItem";
|
|
36
|
-
function getGridLine(span, start, end) {
|
|
37
|
-
if (span === "full") return "1 / -1";
|
|
38
|
-
if (start !== void 0 && end !== void 0) return `${start} / ${end}`;
|
|
39
|
-
if (start !== void 0) return `${start}`;
|
|
40
|
-
if (end !== void 0) return `auto / ${end}`;
|
|
41
|
-
if (span !== void 0) return `span ${span}`;
|
|
42
|
-
return void 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
exports.GridItem = GridItem;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '../Box/Box';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export interface GridItemProps extends Omit<BoxProps, "gridColumn" | "gridRow" | "gridArea"> {
|
|
4
|
-
/**
|
|
5
|
-
* If true, the component will render its children directly without a wrapper element.
|
|
6
|
-
* @default false
|
|
7
|
-
*/
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Number of columns to span, or "full" for full width (1 / -1).
|
|
11
|
-
*/
|
|
12
|
-
colSpan?: number | "full";
|
|
13
|
-
/**
|
|
14
|
-
* Number of rows to span, or "full" for full height (1 / -1).
|
|
15
|
-
*/
|
|
16
|
-
rowSpan?: number | "full";
|
|
17
|
-
/**
|
|
18
|
-
* Starting column
|
|
19
|
-
*/
|
|
20
|
-
colStart?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Ending column.
|
|
23
|
-
*/
|
|
24
|
-
colEnd?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Starting row
|
|
27
|
-
*/
|
|
28
|
-
rowStart?: number;
|
|
29
|
-
/**
|
|
30
|
-
* Ending row.
|
|
31
|
-
*/
|
|
32
|
-
rowEnd?: number;
|
|
33
|
-
}
|
|
34
|
-
export declare const GridItem: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
//# sourceMappingURL=GridItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GridItem.d.ts","sourceRoot":"","sources":["../../../src/components/GridItem/GridItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,SAAS,GAAG,UAAU,CAAC;IAC1F;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CAGjB;AAED,eAAO,MAAM,QAAQ,sFAOnB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Box } from '../Box/Box.js';
|
|
5
|
-
|
|
6
|
-
const GridItem = React.forwardRef((props, ref) => {
|
|
7
|
-
const { asChild = false, colSpan, colStart, colEnd, rowSpan, rowStart, rowEnd, ...rest } = props;
|
|
8
|
-
const gridColumn = getGridLine(colSpan, colStart, colEnd);
|
|
9
|
-
const gridRow = getGridLine(rowSpan, rowStart, rowEnd);
|
|
10
|
-
return /* @__PURE__ */ jsx(Box, { ref, asChild, gridColumn, gridRow, ...rest });
|
|
11
|
-
});
|
|
12
|
-
GridItem.displayName = "GridItem";
|
|
13
|
-
function getGridLine(span, start, end) {
|
|
14
|
-
if (span === "full") return "1 / -1";
|
|
15
|
-
if (start !== void 0 && end !== void 0) return `${start} / ${end}`;
|
|
16
|
-
if (start !== void 0) return `${start}`;
|
|
17
|
-
if (end !== void 0) return `auto / ${end}`;
|
|
18
|
-
if (span !== void 0) return `span ${span}`;
|
|
19
|
-
return void 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { GridItem };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/GridItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { GridItem } from './GridItem.js';
|
|
@@ -1,157 +0,0 @@
|
|
|
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 imageFrame = require('@seed-design/css/recipes/image-frame');
|
|
8
|
-
const imageFrameIcon = require('@seed-design/css/recipes/image-frame-icon');
|
|
9
|
-
const imageFrameIndicator = require('@seed-design/css/recipes/image-frame-indicator');
|
|
10
|
-
const imageFrameReactionButton = require('@seed-design/css/recipes/image-frame-reaction-button');
|
|
11
|
-
const component = require('@seed-design/css/vars/component');
|
|
12
|
-
const reactImage = require('@seed-design/react-image');
|
|
13
|
-
const reactToggle = require('@seed-design/react-toggle');
|
|
14
|
-
const clsx = require('clsx');
|
|
15
|
-
const React = require('react');
|
|
16
|
-
const AspectRatio = require('../AspectRatio/AspectRatio.cjs');
|
|
17
|
-
const Badge = require('../Badge/Badge.cjs');
|
|
18
|
-
const Float = require('../Float/Float.cjs');
|
|
19
|
-
const Icon = require('../Icon/Icon.cjs');
|
|
20
|
-
|
|
21
|
-
function _interopNamespaceDefault(e) {
|
|
22
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
23
|
-
if (e) {
|
|
24
|
-
for (const k in e) {
|
|
25
|
-
if (k !== 'default') {
|
|
26
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
27
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: () => e[k]
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
n.default = e;
|
|
35
|
-
return Object.freeze(n);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
39
|
-
|
|
40
|
-
const ImageFrame = React__namespace.forwardRef(
|
|
41
|
-
({
|
|
42
|
-
ratio = 4 / 3,
|
|
43
|
-
rounded,
|
|
44
|
-
stroke,
|
|
45
|
-
src,
|
|
46
|
-
alt,
|
|
47
|
-
fallback,
|
|
48
|
-
className,
|
|
49
|
-
loading,
|
|
50
|
-
decoding,
|
|
51
|
-
crossOrigin,
|
|
52
|
-
referrerPolicy,
|
|
53
|
-
sizes,
|
|
54
|
-
srcSet,
|
|
55
|
-
onLoad,
|
|
56
|
-
onError,
|
|
57
|
-
children,
|
|
58
|
-
...rest
|
|
59
|
-
}, ref) => {
|
|
60
|
-
return /* @__PURE__ */ jsxRuntime.jsx(AspectRatio.AspectRatio, { ref, ratio, className, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(reactImage.Image.Root, { className: imageFrame.imageFrame({ rounded, stroke }), children: [
|
|
61
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
-
reactImage.Image.Content,
|
|
63
|
-
{
|
|
64
|
-
src,
|
|
65
|
-
alt,
|
|
66
|
-
loading,
|
|
67
|
-
decoding,
|
|
68
|
-
crossOrigin,
|
|
69
|
-
referrerPolicy,
|
|
70
|
-
sizes,
|
|
71
|
-
srcSet,
|
|
72
|
-
onLoad,
|
|
73
|
-
onError
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
fallback && /* @__PURE__ */ jsxRuntime.jsx(reactImage.Image.Fallback, { children: fallback }),
|
|
77
|
-
children
|
|
78
|
-
] }) });
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
ImageFrame.displayName = "ImageFrame";
|
|
82
|
-
const ImageFrameFloater = React__namespace.forwardRef(
|
|
83
|
-
({
|
|
84
|
-
offsetX = component.imageFrameFloater.base.enabled.root.offset,
|
|
85
|
-
offsetY = component.imageFrameFloater.base.enabled.root.offset,
|
|
86
|
-
...rest
|
|
87
|
-
}, ref) => {
|
|
88
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Float.Float, { ref, offsetX, offsetY, ...rest });
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
ImageFrameFloater.displayName = "ImageFrameFloater";
|
|
92
|
-
const ImageFrameBadge = React__namespace.forwardRef(
|
|
93
|
-
(props, ref) => {
|
|
94
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Badge.Badge, { ref, ...props });
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
ImageFrameBadge.displayName = "ImageFrameBadge";
|
|
98
|
-
const ImageFrameIcon = React__namespace.forwardRef(
|
|
99
|
-
({ svg, className, ...rest }, ref) => {
|
|
100
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { ref, className: clsx(imageFrameIcon.imageFrameIcon(), className), ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(Icon.Icon, { svg }) });
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
ImageFrameIcon.displayName = "ImageFrameIcon";
|
|
104
|
-
const ImageFrameIndicator = React__namespace.forwardRef(
|
|
105
|
-
({ children, className, ...rest }, ref) => {
|
|
106
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { ref, className: clsx(imageFrameIndicator.imageFrameIndicator(), className), ...rest, children });
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
ImageFrameIndicator.displayName = "ImageFrameIndicator";
|
|
110
|
-
const HeartFillPath = "M15.5452 10C11.7873 10 9.25 12.9484 9.25 16.6267C9.25 19.8754 11.1219 22.0952 13.1877 23.969C13.7807 24.5069 14.4438 25.0617 15.095 25.6066C15.5434 25.9817 15.9862 26.3522 16.3967 26.7093C17.4501 27.6257 18.4191 28.557 19.1995 29.5994C19.3886 29.8518 19.6856 30.0003 20.001 30C20.3163 29.9997 20.6131 29.8507 20.8016 29.5979C21.5785 28.5562 22.5453 27.6253 23.598 26.7091C24.0105 26.35 24.4568 25.9766 24.9089 25.5984C25.5573 25.0559 26.2176 24.5035 26.807 23.9693C28.8739 22.096 30.75 19.8761 30.75 16.6267C30.75 12.9484 28.2127 10 24.4548 10C22.6365 10 21.1002 11.0545 20 12.4906C18.8998 11.0545 17.3635 10 15.5452 10Z";
|
|
111
|
-
const HeartOutlineStrokePath = "M15.5452 12C13.0342 12 11.25 13.905 11.25 16.6267C11.25 18.9912 12.5659 20.7048 14.5314 22.4876C15.1157 23.0176 15.7038 23.5087 16.3148 24.019C16.7646 24.3946 17.2269 24.7807 17.7093 25.2003C18.4947 25.8835 19.2814 26.6141 19.9988 27.4215C20.7144 26.614 21.5001 25.8836 22.2849 25.2005C22.7714 24.7771 23.2368 24.3885 23.6895 24.0105C24.2967 23.5035 24.8813 23.0154 25.4639 22.4874C27.4317 20.704 28.75 18.9906 28.75 16.6267C28.75 13.905 26.9658 12 24.4548 12C23.069 12 21.747 12.8325 20.8919 14.5189C20.7215 14.8549 20.3768 15.0667 20 15.0667C19.6233 15.0667 19.2785 14.8549 19.1081 14.5189C18.2531 12.8325 16.931 12 15.5452 12ZM9.25 16.6267C9.25 12.9484 11.7873 10 15.5452 10C17.3146 10 18.8683 10.8364 20 12.2306C21.1317 10.8364 22.6854 10 24.4548 10C28.2127 10 30.75 12.9484 30.75 16.6267C30.75 19.8761 28.8739 22.096 26.807 23.9693C26.2176 24.5035 25.5573 25.0559 24.9089 25.5984C24.4568 25.9766 24.0105 26.35 23.598 26.7091C22.5453 27.6253 21.5785 28.5562 20.8016 29.5979C20.6131 29.8507 20.3163 29.9997 20.001 30C19.6856 30.0003 19.3886 29.8518 19.1995 29.5994C18.4191 28.557 17.4501 27.6257 16.3967 26.7093C15.9862 26.3522 15.5434 25.9817 15.095 25.6066C14.4438 25.0617 13.7807 24.5069 13.1877 23.969C11.1219 22.0952 9.25 19.8754 9.25 16.6267Z";
|
|
112
|
-
const UnselectedHeartIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "8 9 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
113
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: HeartFillPath, fill: "black", fillOpacity: "0.063" }),
|
|
114
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: HeartOutlineStrokePath, fill: "white" })
|
|
115
|
-
] });
|
|
116
|
-
const SelectedHeartIcon = () => {
|
|
117
|
-
const id = React__namespace.useId();
|
|
118
|
-
const gradientId = `seed-heart-gradient${id.replace(/:/g, "")}`;
|
|
119
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "8 9 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
120
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: HeartFillPath, fill: `url(#${gradientId})` }),
|
|
121
|
-
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
122
|
-
"linearGradient",
|
|
123
|
-
{
|
|
124
|
-
id: gradientId,
|
|
125
|
-
x1: "7",
|
|
126
|
-
y1: "8.5",
|
|
127
|
-
x2: "26.0974",
|
|
128
|
-
y2: "10.5391",
|
|
129
|
-
gradientUnits: "userSpaceOnUse",
|
|
130
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ jsxRuntime.jsx("stop", { stopColor: "#FF9A56" }),
|
|
132
|
-
/* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "1", stopColor: "#FF6600" })
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
) })
|
|
136
|
-
] });
|
|
137
|
-
};
|
|
138
|
-
const ImageFrameReactionButton = React__namespace.forwardRef(({ className, pressed, ...rest }, ref) => {
|
|
139
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
140
|
-
reactToggle.Toggle.Root,
|
|
141
|
-
{
|
|
142
|
-
ref,
|
|
143
|
-
className: clsx(imageFrameReactionButton.imageFrameReactionButton(), className),
|
|
144
|
-
pressed,
|
|
145
|
-
...rest,
|
|
146
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon.Icon, { svg: pressed ? /* @__PURE__ */ jsxRuntime.jsx(SelectedHeartIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(UnselectedHeartIcon, {}) })
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
});
|
|
150
|
-
ImageFrameReactionButton.displayName = "ImageFrameReactionButton";
|
|
151
|
-
|
|
152
|
-
exports.ImageFrame = ImageFrame;
|
|
153
|
-
exports.ImageFrameBadge = ImageFrameBadge;
|
|
154
|
-
exports.ImageFrameFloater = ImageFrameFloater;
|
|
155
|
-
exports.ImageFrameIcon = ImageFrameIcon;
|
|
156
|
-
exports.ImageFrameIndicator = ImageFrameIndicator;
|
|
157
|
-
exports.ImageFrameReactionButton = ImageFrameReactionButton;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ImageFrameVariantProps } from '@seed-design/css/recipes/image-frame';
|
|
2
|
-
import { ImageFrameIconVariantProps } from '@seed-design/css/recipes/image-frame-icon';
|
|
3
|
-
import { ImageFrameIndicatorVariantProps } from '@seed-design/css/recipes/image-frame-indicator';
|
|
4
|
-
import { Toggle as TogglePrimitive } from '@seed-design/react-toggle';
|
|
5
|
-
import { AspectRatioProps } from '../AspectRatio/AspectRatio';
|
|
6
|
-
import { BadgeProps } from '../Badge/Badge';
|
|
7
|
-
import { FloatProps } from '../Float/Float';
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
export interface ImageFrameProps extends Omit<AspectRatioProps, "children">, ImageFrameVariantProps {
|
|
10
|
-
src: string;
|
|
11
|
-
alt: string;
|
|
12
|
-
fallback?: React.ReactNode;
|
|
13
|
-
loading?: "eager" | "lazy";
|
|
14
|
-
decoding?: "async" | "auto" | "sync";
|
|
15
|
-
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
16
|
-
referrerPolicy?: React.HTMLAttributeReferrerPolicy;
|
|
17
|
-
sizes?: string;
|
|
18
|
-
srcSet?: string;
|
|
19
|
-
onLoad?: React.ReactEventHandler<HTMLImageElement>;
|
|
20
|
-
onError?: React.ReactEventHandler<HTMLImageElement>;
|
|
21
|
-
/**
|
|
22
|
-
* Overlay elements to be rendered on top of the image.
|
|
23
|
-
* Use ImageFrameFloater to position them.
|
|
24
|
-
*/
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
}
|
|
27
|
-
export declare const ImageFrame: React.ForwardRefExoticComponent<ImageFrameProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
-
export interface ImageFrameFloaterProps extends FloatProps {
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* ImageFrame 내에서 오버레이 요소를 배치하기 위한 컴포넌트
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* offsetX, offsetY 기본값은 rootage 스펙(image-frame-floater)에서 가져옵니다.
|
|
35
|
-
*/
|
|
36
|
-
export declare const ImageFrameFloater: React.ForwardRefExoticComponent<ImageFrameFloaterProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
-
export interface ImageFrameBadgeProps extends BadgeProps {
|
|
38
|
-
}
|
|
39
|
-
export declare const ImageFrameBadge: React.ForwardRefExoticComponent<ImageFrameBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
40
|
-
export interface ImageFrameIconProps extends ImageFrameIconVariantProps, Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
41
|
-
svg: React.ReactNode;
|
|
42
|
-
}
|
|
43
|
-
export declare const ImageFrameIcon: React.ForwardRefExoticComponent<ImageFrameIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
44
|
-
export interface ImageFrameIndicatorProps extends ImageFrameIndicatorVariantProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
45
|
-
children: React.ReactNode;
|
|
46
|
-
}
|
|
47
|
-
export declare const ImageFrameIndicator: React.ForwardRefExoticComponent<ImageFrameIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
48
|
-
export interface ImageFrameReactionButtonProps extends Omit<TogglePrimitive.RootProps, "children"> {
|
|
49
|
-
}
|
|
50
|
-
export declare const ImageFrameReactionButton: React.ForwardRefExoticComponent<ImageFrameReactionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
51
|
-
//# sourceMappingURL=ImageFrame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageFrame.d.ts","sourceRoot":"","sources":["../../../src/components/ImageFrame/ImageFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,gDAAgD,CAAC;AAIxD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGxD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,EACxC,sBAAsB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACrC,WAAW,CAAC,EAAE,WAAW,GAAG,iBAAiB,GAAG,EAAE,CAAC;IACnD,cAAc,CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,UAAU,wFA4CtB,CAAC;AAMF,MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,+FAW7B,CAAC;AAMF,MAAM,WAAW,oBAAqB,SAAQ,UAAU;CAAG;AAE3D,eAAO,MAAM,eAAe,8FAI3B,CAAC;AAMF,MAAM,WAAW,mBACf,SAAQ,0BAA0B,EAChC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACzD,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,6FAQ1B,CAAC;AAMF,MAAM,WAAW,wBACf,SAAQ,+BAA+B,EACrC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,kGAQ/B,CAAC;AA0CF,MAAM,WAAW,6BACf,SAAQ,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,UAAU,CAAC;CAAG;AAExD,eAAO,MAAM,wBAAwB,yGAcnC,CAAC"}
|