@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,129 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { imageFrame } from '@seed-design/css/recipes/image-frame';
|
|
4
|
-
import { imageFrameIcon } from '@seed-design/css/recipes/image-frame-icon';
|
|
5
|
-
import { imageFrameIndicator } from '@seed-design/css/recipes/image-frame-indicator';
|
|
6
|
-
import { imageFrameReactionButton } from '@seed-design/css/recipes/image-frame-reaction-button';
|
|
7
|
-
import { imageFrameFloater } from '@seed-design/css/vars/component';
|
|
8
|
-
import { Image } from '@seed-design/react-image';
|
|
9
|
-
import { Toggle } from '@seed-design/react-toggle';
|
|
10
|
-
import clsx from 'clsx';
|
|
11
|
-
import * as React from 'react';
|
|
12
|
-
import { AspectRatio } from '../AspectRatio/AspectRatio.js';
|
|
13
|
-
import { Badge } from '../Badge/Badge.js';
|
|
14
|
-
import { Float } from '../Float/Float.js';
|
|
15
|
-
import { Icon } from '../Icon/Icon.js';
|
|
16
|
-
|
|
17
|
-
const ImageFrame = React.forwardRef(
|
|
18
|
-
({
|
|
19
|
-
ratio = 4 / 3,
|
|
20
|
-
rounded,
|
|
21
|
-
stroke,
|
|
22
|
-
src,
|
|
23
|
-
alt,
|
|
24
|
-
fallback,
|
|
25
|
-
className,
|
|
26
|
-
loading,
|
|
27
|
-
decoding,
|
|
28
|
-
crossOrigin,
|
|
29
|
-
referrerPolicy,
|
|
30
|
-
sizes,
|
|
31
|
-
srcSet,
|
|
32
|
-
onLoad,
|
|
33
|
-
onError,
|
|
34
|
-
children,
|
|
35
|
-
...rest
|
|
36
|
-
}, ref) => {
|
|
37
|
-
return /* @__PURE__ */ jsx(AspectRatio, { ref, ratio, className, ...rest, children: /* @__PURE__ */ jsxs(Image.Root, { className: imageFrame({ rounded, stroke }), children: [
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
39
|
-
Image.Content,
|
|
40
|
-
{
|
|
41
|
-
src,
|
|
42
|
-
alt,
|
|
43
|
-
loading,
|
|
44
|
-
decoding,
|
|
45
|
-
crossOrigin,
|
|
46
|
-
referrerPolicy,
|
|
47
|
-
sizes,
|
|
48
|
-
srcSet,
|
|
49
|
-
onLoad,
|
|
50
|
-
onError
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
fallback && /* @__PURE__ */ jsx(Image.Fallback, { children: fallback }),
|
|
54
|
-
children
|
|
55
|
-
] }) });
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
ImageFrame.displayName = "ImageFrame";
|
|
59
|
-
const ImageFrameFloater = React.forwardRef(
|
|
60
|
-
({
|
|
61
|
-
offsetX = imageFrameFloater.base.enabled.root.offset,
|
|
62
|
-
offsetY = imageFrameFloater.base.enabled.root.offset,
|
|
63
|
-
...rest
|
|
64
|
-
}, ref) => {
|
|
65
|
-
return /* @__PURE__ */ jsx(Float, { ref, offsetX, offsetY, ...rest });
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
ImageFrameFloater.displayName = "ImageFrameFloater";
|
|
69
|
-
const ImageFrameBadge = React.forwardRef(
|
|
70
|
-
(props, ref) => {
|
|
71
|
-
return /* @__PURE__ */ jsx(Badge, { ref, ...props });
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
ImageFrameBadge.displayName = "ImageFrameBadge";
|
|
75
|
-
const ImageFrameIcon = React.forwardRef(
|
|
76
|
-
({ svg, className, ...rest }, ref) => {
|
|
77
|
-
return /* @__PURE__ */ jsx("span", { ref, className: clsx(imageFrameIcon(), className), ...rest, children: /* @__PURE__ */ jsx(Icon, { svg }) });
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
ImageFrameIcon.displayName = "ImageFrameIcon";
|
|
81
|
-
const ImageFrameIndicator = React.forwardRef(
|
|
82
|
-
({ children, className, ...rest }, ref) => {
|
|
83
|
-
return /* @__PURE__ */ jsx("span", { ref, className: clsx(imageFrameIndicator(), className), ...rest, children });
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
ImageFrameIndicator.displayName = "ImageFrameIndicator";
|
|
87
|
-
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";
|
|
88
|
-
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";
|
|
89
|
-
const UnselectedHeartIcon = () => /* @__PURE__ */ jsxs("svg", { viewBox: "8 9 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
90
|
-
/* @__PURE__ */ jsx("path", { d: HeartFillPath, fill: "black", fillOpacity: "0.063" }),
|
|
91
|
-
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: HeartOutlineStrokePath, fill: "white" })
|
|
92
|
-
] });
|
|
93
|
-
const SelectedHeartIcon = () => {
|
|
94
|
-
const id = React.useId();
|
|
95
|
-
const gradientId = `seed-heart-gradient${id.replace(/:/g, "")}`;
|
|
96
|
-
return /* @__PURE__ */ jsxs("svg", { viewBox: "8 9 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
97
|
-
/* @__PURE__ */ jsx("path", { d: HeartFillPath, fill: `url(#${gradientId})` }),
|
|
98
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
99
|
-
"linearGradient",
|
|
100
|
-
{
|
|
101
|
-
id: gradientId,
|
|
102
|
-
x1: "7",
|
|
103
|
-
y1: "8.5",
|
|
104
|
-
x2: "26.0974",
|
|
105
|
-
y2: "10.5391",
|
|
106
|
-
gradientUnits: "userSpaceOnUse",
|
|
107
|
-
children: [
|
|
108
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "#FF9A56" }),
|
|
109
|
-
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#FF6600" })
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
) })
|
|
113
|
-
] });
|
|
114
|
-
};
|
|
115
|
-
const ImageFrameReactionButton = React.forwardRef(({ className, pressed, ...rest }, ref) => {
|
|
116
|
-
return /* @__PURE__ */ jsx(
|
|
117
|
-
Toggle.Root,
|
|
118
|
-
{
|
|
119
|
-
ref,
|
|
120
|
-
className: clsx(imageFrameReactionButton(), className),
|
|
121
|
-
pressed,
|
|
122
|
-
...rest,
|
|
123
|
-
children: /* @__PURE__ */ jsx(Icon, { svg: pressed ? /* @__PURE__ */ jsx(SelectedHeartIcon, {}) : /* @__PURE__ */ jsx(UnselectedHeartIcon, {}) })
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
});
|
|
127
|
-
ImageFrameReactionButton.displayName = "ImageFrameReactionButton";
|
|
128
|
-
|
|
129
|
-
export { ImageFrame, ImageFrameBadge, ImageFrameFloater, ImageFrameIcon, ImageFrameIndicator, ImageFrameReactionButton };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const ImageFrame = require('./ImageFrame.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.ImageFrame = ImageFrame.ImageFrame;
|
|
10
|
-
exports.ImageFrameBadge = ImageFrame.ImageFrameBadge;
|
|
11
|
-
exports.ImageFrameFloater = ImageFrame.ImageFrameFloater;
|
|
12
|
-
exports.ImageFrameIcon = ImageFrame.ImageFrameIcon;
|
|
13
|
-
exports.ImageFrameIndicator = ImageFrame.ImageFrameIndicator;
|
|
14
|
-
exports.ImageFrameReactionButton = ImageFrame.ImageFrameReactionButton;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { ImageFrame, ImageFrameFloater, ImageFrameBadge, ImageFrameIcon, ImageFrameIndicator, ImageFrameReactionButton, type ImageFrameProps, type ImageFrameFloaterProps, type ImageFrameBadgeProps, type ImageFrameIconProps, type ImageFrameIndicatorProps, type ImageFrameReactionButtonProps, } from './ImageFrame';
|
|
2
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ImageFrame/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,MAAM,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ImageFrame, ImageFrameBadge, ImageFrameFloater, ImageFrameIcon, ImageFrameIndicator, ImageFrameReactionButton } from './ImageFrame.js';
|
|
@@ -1,79 +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 field = require('@seed-design/css/recipes/field');
|
|
8
|
-
const fieldLabel = require('@seed-design/css/recipes/field-label');
|
|
9
|
-
const reactPrimitive = require('@seed-design/react-primitive');
|
|
10
|
-
const reactRadioGroup = require('@seed-design/react-radio-group');
|
|
11
|
-
const React = require('react');
|
|
12
|
-
const clsx = require('clsx');
|
|
13
|
-
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
14
|
-
const Icon = require('../private/Icon.cjs');
|
|
15
|
-
|
|
16
|
-
const { withProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(field.field);
|
|
17
|
-
const {
|
|
18
|
-
withContext: withLabelContext,
|
|
19
|
-
withProvider: withLabelProvider,
|
|
20
|
-
useClassNames: useLabelClassNames
|
|
21
|
-
} = createSlotRecipeContext.createSlotRecipeContext(fieldLabel.fieldLabel);
|
|
22
|
-
const RadioGroupFieldRoot = withProvider(
|
|
23
|
-
reactRadioGroup.RadioGroup.Root,
|
|
24
|
-
"root"
|
|
25
|
-
);
|
|
26
|
-
const RadioGroupFieldHeader = withContext(
|
|
27
|
-
reactPrimitive.Primitive.div,
|
|
28
|
-
"header"
|
|
29
|
-
);
|
|
30
|
-
const RadioGroupFieldLabel = withLabelProvider(
|
|
31
|
-
reactRadioGroup.RadioGroup.Label,
|
|
32
|
-
"root"
|
|
33
|
-
);
|
|
34
|
-
const RadioGroupFieldIndicatorText = withLabelContext(reactPrimitive.Primitive.span, "indicatorText");
|
|
35
|
-
const RadioGroupFieldRequiredIndicator = React.forwardRef(({ className, ...props }, ref) => {
|
|
36
|
-
const { indicatorIcon } = useLabelClassNames();
|
|
37
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
|
-
Icon.InternalIcon,
|
|
39
|
-
{
|
|
40
|
-
svg: (
|
|
41
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: InternalIcon is aria-hidden
|
|
42
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
-
"svg",
|
|
44
|
-
{
|
|
45
|
-
viewBox: "0 0 6 6",
|
|
46
|
-
fill: "none",
|
|
47
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
48
|
-
className: clsx(indicatorIcon, className),
|
|
49
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
-
"path",
|
|
51
|
-
{
|
|
52
|
-
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",
|
|
53
|
-
fill: "currentColor"
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
),
|
|
59
|
-
ref,
|
|
60
|
-
...props
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
});
|
|
64
|
-
RadioGroupFieldRequiredIndicator.displayName = "RadioGroupFieldRequiredIndicator";
|
|
65
|
-
const RadioGroupFieldFooter = withContext(
|
|
66
|
-
reactPrimitive.Primitive.div,
|
|
67
|
-
"footer"
|
|
68
|
-
);
|
|
69
|
-
const RadioGroupFieldDescription = withContext(reactRadioGroup.RadioGroup.Description, "description");
|
|
70
|
-
const RadioGroupFieldErrorMessage = withContext(reactRadioGroup.RadioGroup.ErrorMessage, "errorMessage");
|
|
71
|
-
|
|
72
|
-
exports.RadioGroupFieldDescription = RadioGroupFieldDescription;
|
|
73
|
-
exports.RadioGroupFieldErrorMessage = RadioGroupFieldErrorMessage;
|
|
74
|
-
exports.RadioGroupFieldFooter = RadioGroupFieldFooter;
|
|
75
|
-
exports.RadioGroupFieldHeader = RadioGroupFieldHeader;
|
|
76
|
-
exports.RadioGroupFieldIndicatorText = RadioGroupFieldIndicatorText;
|
|
77
|
-
exports.RadioGroupFieldLabel = RadioGroupFieldLabel;
|
|
78
|
-
exports.RadioGroupFieldRequiredIndicator = RadioGroupFieldRequiredIndicator;
|
|
79
|
-
exports.RadioGroupFieldRoot = RadioGroupFieldRoot;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FieldVariantProps } from '@seed-design/css/recipes/field';
|
|
2
|
-
import { FieldLabelVariantProps } from '@seed-design/css/recipes/field-label';
|
|
3
|
-
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
4
|
-
import { RadioGroup as RadioGroupPrimitive } from '@seed-design/react-radio-group';
|
|
5
|
-
import type * as React from "react";
|
|
6
|
-
export interface RadioGroupFieldRootProps extends FieldVariantProps, RadioGroupPrimitive.RootProps {
|
|
7
|
-
}
|
|
8
|
-
export declare const RadioGroupFieldRoot: React.ForwardRefExoticComponent<RadioGroupFieldRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export interface RadioGroupFieldHeaderProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
}
|
|
11
|
-
export declare const RadioGroupFieldHeader: React.ForwardRefExoticComponent<RadioGroupFieldHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export interface RadioGroupFieldLabelProps extends FieldLabelVariantProps, RadioGroupPrimitive.LabelProps {
|
|
13
|
-
}
|
|
14
|
-
export declare const RadioGroupFieldLabel: React.ForwardRefExoticComponent<RadioGroupFieldLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
export interface RadioGroupFieldIndicatorTextProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
16
|
-
}
|
|
17
|
-
export declare const RadioGroupFieldIndicatorText: React.ForwardRefExoticComponent<RadioGroupFieldIndicatorTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
18
|
-
export interface RadioGroupFieldRequiredIndicatorProps extends React.SVGProps<SVGElement> {
|
|
19
|
-
}
|
|
20
|
-
export declare const RadioGroupFieldRequiredIndicator: React.ForwardRefExoticComponent<Omit<RadioGroupFieldRequiredIndicatorProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
21
|
-
export interface RadioGroupFieldFooterProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
-
}
|
|
23
|
-
export declare const RadioGroupFieldFooter: React.ForwardRefExoticComponent<RadioGroupFieldFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export interface RadioGroupFieldDescriptionProps extends RadioGroupPrimitive.DescriptionProps {
|
|
25
|
-
}
|
|
26
|
-
export declare const RadioGroupFieldDescription: React.ForwardRefExoticComponent<RadioGroupFieldDescriptionProps & React.RefAttributes<HTMLSpanElement>>;
|
|
27
|
-
export interface RadioGroupFieldErrorMessageProps extends RadioGroupPrimitive.ErrorMessageProps {
|
|
28
|
-
}
|
|
29
|
-
export declare const RadioGroupFieldErrorMessage: React.ForwardRefExoticComponent<RadioGroupFieldErrorMessageProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
//# sourceMappingURL=RadioGroupField.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroupField.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroupField/RadioGroupField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAepC,MAAM,WAAW,wBACf,SAAQ,iBAAiB,EACvB,mBAAmB,CAAC,SAAS;CAAG;AAEpC,eAAO,MAAM,mBAAmB,iGAG/B,CAAC;AAIF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,mGAGjC,CAAC;AAEF,MAAM,WAAW,yBACf,SAAQ,sBAAsB,EAC5B,mBAAmB,CAAC,UAAU;CAAG;AAErC,eAAO,MAAM,oBAAoB,kGAGhC,CAAC;AAEF,MAAM,WAAW,iCACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,4BAA4B,2GAGP,CAAC;AAEnC,MAAM,WAAW,qCAAsC,SAAQ,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;CAAG;AAE5F,eAAO,MAAM,gCAAgC,0HA0B3C,CAAC;AAKH,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,mGAGjC,CAAC;AAEF,MAAM,WAAW,+BAAgC,SAAQ,mBAAmB,CAAC,gBAAgB;CAAG;AAEhG,eAAO,MAAM,0BAA0B,yGAGU,CAAC;AAElD,MAAM,WAAW,gCAAiC,SAAQ,mBAAmB,CAAC,iBAAiB;CAAG;AAElG,eAAO,MAAM,2BAA2B,yGAGW,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { field } from '@seed-design/css/recipes/field';
|
|
4
|
-
import { fieldLabel } from '@seed-design/css/recipes/field-label';
|
|
5
|
-
import { Primitive } from '@seed-design/react-primitive';
|
|
6
|
-
import { RadioGroup } from '@seed-design/react-radio-group';
|
|
7
|
-
import { forwardRef } from 'react';
|
|
8
|
-
import clsx from 'clsx';
|
|
9
|
-
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
10
|
-
import { InternalIcon } from '../private/Icon.js';
|
|
11
|
-
|
|
12
|
-
const { withProvider, withContext } = createSlotRecipeContext(field);
|
|
13
|
-
const {
|
|
14
|
-
withContext: withLabelContext,
|
|
15
|
-
withProvider: withLabelProvider,
|
|
16
|
-
useClassNames: useLabelClassNames
|
|
17
|
-
} = createSlotRecipeContext(fieldLabel);
|
|
18
|
-
const RadioGroupFieldRoot = withProvider(
|
|
19
|
-
RadioGroup.Root,
|
|
20
|
-
"root"
|
|
21
|
-
);
|
|
22
|
-
const RadioGroupFieldHeader = withContext(
|
|
23
|
-
Primitive.div,
|
|
24
|
-
"header"
|
|
25
|
-
);
|
|
26
|
-
const RadioGroupFieldLabel = withLabelProvider(
|
|
27
|
-
RadioGroup.Label,
|
|
28
|
-
"root"
|
|
29
|
-
);
|
|
30
|
-
const RadioGroupFieldIndicatorText = withLabelContext(Primitive.span, "indicatorText");
|
|
31
|
-
const RadioGroupFieldRequiredIndicator = forwardRef(({ className, ...props }, ref) => {
|
|
32
|
-
const { indicatorIcon } = useLabelClassNames();
|
|
33
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
-
InternalIcon,
|
|
35
|
-
{
|
|
36
|
-
svg: (
|
|
37
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: InternalIcon is aria-hidden
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
39
|
-
"svg",
|
|
40
|
-
{
|
|
41
|
-
viewBox: "0 0 6 6",
|
|
42
|
-
fill: "none",
|
|
43
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
-
className: clsx(indicatorIcon, className),
|
|
45
|
-
children: /* @__PURE__ */ jsx(
|
|
46
|
-
"path",
|
|
47
|
-
{
|
|
48
|
-
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",
|
|
49
|
-
fill: "currentColor"
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
),
|
|
55
|
-
ref,
|
|
56
|
-
...props
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
});
|
|
60
|
-
RadioGroupFieldRequiredIndicator.displayName = "RadioGroupFieldRequiredIndicator";
|
|
61
|
-
const RadioGroupFieldFooter = withContext(
|
|
62
|
-
Primitive.div,
|
|
63
|
-
"footer"
|
|
64
|
-
);
|
|
65
|
-
const RadioGroupFieldDescription = withContext(RadioGroup.Description, "description");
|
|
66
|
-
const RadioGroupFieldErrorMessage = withContext(RadioGroup.ErrorMessage, "errorMessage");
|
|
67
|
-
|
|
68
|
-
export { RadioGroupFieldDescription, RadioGroupFieldErrorMessage, RadioGroupFieldFooter, RadioGroupFieldHeader, RadioGroupFieldIndicatorText, RadioGroupFieldLabel, RadioGroupFieldRequiredIndicator, RadioGroupFieldRoot };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const RadioGroupField = require('./RadioGroupField.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.Description = RadioGroupField.RadioGroupFieldDescription;
|
|
10
|
-
exports.ErrorMessage = RadioGroupField.RadioGroupFieldErrorMessage;
|
|
11
|
-
exports.Footer = RadioGroupField.RadioGroupFieldFooter;
|
|
12
|
-
exports.Header = RadioGroupField.RadioGroupFieldHeader;
|
|
13
|
-
exports.IndicatorText = RadioGroupField.RadioGroupFieldIndicatorText;
|
|
14
|
-
exports.Label = RadioGroupField.RadioGroupFieldLabel;
|
|
15
|
-
exports.RequiredIndicator = RadioGroupField.RadioGroupFieldRequiredIndicator;
|
|
16
|
-
exports.Root = RadioGroupField.RadioGroupFieldRoot;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { RadioGroupFieldRoot as Root, RadioGroupFieldHeader as Header, RadioGroupFieldLabel as Label, RadioGroupFieldIndicatorText as IndicatorText, RadioGroupFieldRequiredIndicator as RequiredIndicator, RadioGroupFieldFooter as Footer, RadioGroupFieldDescription as Description, RadioGroupFieldErrorMessage as ErrorMessage, type RadioGroupFieldRootProps as RootProps, type RadioGroupFieldHeaderProps as HeaderProps, type RadioGroupFieldLabelProps as LabelProps, type RadioGroupFieldIndicatorTextProps as IndicatorTextProps, type RadioGroupFieldRequiredIndicatorProps as RequiredIndicatorProps, type RadioGroupFieldFooterProps as FooterProps, type RadioGroupFieldDescriptionProps as DescriptionProps, type RadioGroupFieldErrorMessageProps as ErrorMessageProps, } from './RadioGroupField';
|
|
2
|
-
//# sourceMappingURL=RadioGroupField.namespace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroupField.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroupField/RadioGroupField.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,IAAI,IAAI,EAC3B,qBAAqB,IAAI,MAAM,EAC/B,oBAAoB,IAAI,KAAK,EAC7B,4BAA4B,IAAI,aAAa,EAC7C,gCAAgC,IAAI,iBAAiB,EACrD,qBAAqB,IAAI,MAAM,EAC/B,0BAA0B,IAAI,WAAW,EACzC,2BAA2B,IAAI,YAAY,EAC3C,KAAK,wBAAwB,IAAI,SAAS,EAC1C,KAAK,0BAA0B,IAAI,WAAW,EAC9C,KAAK,yBAAyB,IAAI,UAAU,EAC5C,KAAK,iCAAiC,IAAI,kBAAkB,EAC5D,KAAK,qCAAqC,IAAI,sBAAsB,EACpE,KAAK,0BAA0B,IAAI,WAAW,EAC9C,KAAK,+BAA+B,IAAI,gBAAgB,EACxD,KAAK,gCAAgC,IAAI,iBAAiB,GAC3D,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { RadioGroupFieldDescription as Description, RadioGroupFieldErrorMessage as ErrorMessage, RadioGroupFieldFooter as Footer, RadioGroupFieldHeader as Header, RadioGroupFieldIndicatorText as IndicatorText, RadioGroupFieldLabel as Label, RadioGroupFieldRequiredIndicator as RequiredIndicator, RadioGroupFieldRoot as Root } from './RadioGroupField.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const RadioGroupField = require('./RadioGroupField.cjs');
|
|
6
|
-
const RadioGroupField_namespace = require('./RadioGroupField.namespace.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.RadioGroupFieldDescription = RadioGroupField.RadioGroupFieldDescription;
|
|
11
|
-
exports.RadioGroupFieldErrorMessage = RadioGroupField.RadioGroupFieldErrorMessage;
|
|
12
|
-
exports.RadioGroupFieldFooter = RadioGroupField.RadioGroupFieldFooter;
|
|
13
|
-
exports.RadioGroupFieldHeader = RadioGroupField.RadioGroupFieldHeader;
|
|
14
|
-
exports.RadioGroupFieldIndicatorText = RadioGroupField.RadioGroupFieldIndicatorText;
|
|
15
|
-
exports.RadioGroupFieldLabel = RadioGroupField.RadioGroupFieldLabel;
|
|
16
|
-
exports.RadioGroupFieldRequiredIndicator = RadioGroupField.RadioGroupFieldRequiredIndicator;
|
|
17
|
-
exports.RadioGroupFieldRoot = RadioGroupField.RadioGroupFieldRoot;
|
|
18
|
-
exports.RadioGroupField = RadioGroupField_namespace;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroupField/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { RadioGroupFieldDescription, RadioGroupFieldErrorMessage, RadioGroupFieldFooter, RadioGroupFieldHeader, RadioGroupFieldIndicatorText, RadioGroupFieldLabel, RadioGroupFieldRequiredIndicator, RadioGroupFieldRoot } from './RadioGroupField.js';
|
|
2
|
-
import * as RadioGroupField_namespace from './RadioGroupField.namespace.js';
|
|
3
|
-
export { RadioGroupField_namespace as RadioGroupField };
|