@ceed/cds 1.21.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/RadioTileGroup/RadioTileGroup.d.ts +56 -0
- package/dist/components/RadioTileGroup/index.d.ts +3 -0
- package/dist/components/data-display/Typography.md +63 -63
- package/dist/components/feedback/Dialog.md +72 -62
- package/dist/components/feedback/Modal.md +426 -138
- package/dist/components/index.d.ts +1 -0
- package/dist/components/inputs/RadioTileGroup.md +418 -0
- package/dist/components/inputs/llms.txt +1 -0
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +345 -181
- package/dist/index.d.ts +1 -1
- package/dist/index.js +212 -48
- package/dist/llms.txt +1 -0
- package/framer/index.js +39 -39
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useTheme, useColorScheme, useThemeProps, ButtonGroup, alertClasses, boxClasses, buttonClasses, checkboxClasses, dividerClasses, iconButtonClasses, inputClasses, menuClasses, menuButtonClasses, menuItemClasses, optionClasses, radioClasses, radioGroupClasses, selectClasses, switchClasses, tableClasses, textareaClasses, typographyClasses, formControlClasses, formLabelClasses, formHelperTextClasses, gridClasses, stackClasses, sheetClasses, modalClasses, modalCloseClasses, modalDialogClasses, modalOverflowClasses, dialogTitleClasses, dialogContentClasses, dialogActionsClasses, tooltipClasses, tabsClasses, tabListClasses, tabPanelClasses, accordionClasses, accordionDetailsClasses, accordionGroupClasses as accordionsClasses, accordionSummaryClasses, AutocompleteListbox, AutocompleteOption, autocompleteClasses, autocompleteListboxClasses, autocompleteOptionClasses, avatarClasses, avatarGroupClasses, AspectRatio, aspectRatioClasses, Badge, badgeClasses, breadcrumbsClasses, Card, cardClasses, CardActions, cardActionsClasses, CardContent, cardContentClasses, CardCover, cardCoverClasses, CardOverflow, cardOverflowClasses, Chip, chipClasses, CircularProgress, circularProgressClasses, drawerClasses, LinearProgress, linearProgressClasses, List, listClasses, ListDivider, listDividerClasses, ListItem, listItemClasses, ListItemButton, listItemButtonClasses, ListItemContent, listItemContentClasses, ListItemDecorator, listItemDecoratorClasses, ListSubheader, listSubheaderClasses, Link, linkClasses, Slider, sliderClasses, stepClasses, StepButton, stepButtonClasses, stepperClasses, Skeleton, skeletonClasses, styled, } from '@mui/joy';
|
|
2
2
|
export type { ButtonProps, Theme } from '@mui/joy';
|
|
3
|
-
export { Autocomplete, Accordion, Alert, Accordions, AccordionDetails, AccordionSummary, Avatar, AvatarGroup, Box, Breadcrumbs, Button, Calendar, Checkbox, Container, CurrencyInput, DataTable, DatePicker, DateRangePicker, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Drawer, Dropdown, extendTheme, FilterableCheckboxGroup, InsetDrawer, FormControl, FormHelperText, FormLabel, Grid, IconButton, IconMenuButton, InfoSign, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthPicker, MonthRangePicker, NavigationGroup, NavigationItem, Navigator, Pagination, PercentageInput, Radio, RadioGroup, RadioList, Select, Step, StepIndicator, Stepper, Option, Sheet, Stack, Switch, theme, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, Uploader, } from './components';
|
|
3
|
+
export { Autocomplete, Accordion, Alert, Accordions, AccordionDetails, AccordionSummary, Avatar, AvatarGroup, Box, Breadcrumbs, Button, Calendar, Checkbox, Container, CurrencyInput, DataTable, DatePicker, DateRangePicker, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Drawer, Dropdown, extendTheme, FilterableCheckboxGroup, InsetDrawer, FormControl, FormHelperText, FormLabel, Grid, IconButton, IconMenuButton, InfoSign, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthPicker, MonthRangePicker, NavigationGroup, NavigationItem, Navigator, Pagination, PercentageInput, Radio, RadioGroup, RadioTileGroup, RadioList, Select, Step, StepIndicator, Stepper, Option, Sheet, Stack, Switch, theme, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, Uploader, } from './components';
|
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
menuButtonClasses,
|
|
72
72
|
menuItemClasses,
|
|
73
73
|
optionClasses,
|
|
74
|
-
radioClasses,
|
|
74
|
+
radioClasses as radioClasses2,
|
|
75
75
|
radioGroupClasses,
|
|
76
76
|
selectClasses,
|
|
77
77
|
switchClasses as switchClasses2,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
formHelperTextClasses,
|
|
84
84
|
gridClasses,
|
|
85
85
|
stackClasses,
|
|
86
|
-
sheetClasses,
|
|
86
|
+
sheetClasses as sheetClasses2,
|
|
87
87
|
modalClasses,
|
|
88
88
|
modalCloseClasses,
|
|
89
89
|
modalDialogClasses,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
stepperClasses,
|
|
153
153
|
Skeleton as Skeleton2,
|
|
154
154
|
skeletonClasses,
|
|
155
|
-
styled as
|
|
155
|
+
styled as styled31
|
|
156
156
|
} from "@mui/joy";
|
|
157
157
|
|
|
158
158
|
// src/components/Accordions/Accordions.tsx
|
|
@@ -5927,31 +5927,194 @@ var MotionRadioGroup = motion26(JoyRadioGroup);
|
|
|
5927
5927
|
var RadioGroup = MotionRadioGroup;
|
|
5928
5928
|
RadioGroup.displayName = "RadioGroup";
|
|
5929
5929
|
|
|
5930
|
-
// src/components/
|
|
5930
|
+
// src/components/RadioTileGroup/RadioTileGroup.tsx
|
|
5931
5931
|
import React41 from "react";
|
|
5932
|
+
import { styled as styled26, radioClasses, sheetClasses } from "@mui/joy";
|
|
5933
|
+
var RadioTileGroupRoot = styled26(RadioGroup, {
|
|
5934
|
+
name: "RadioTileGroup",
|
|
5935
|
+
slot: "root",
|
|
5936
|
+
shouldForwardProp: (prop) => prop !== "flex" && prop !== "columns"
|
|
5937
|
+
})(({ theme, flex, columns }) => ({
|
|
5938
|
+
flexDirection: "row",
|
|
5939
|
+
gap: theme.spacing(2),
|
|
5940
|
+
...flex && { flex: 1 },
|
|
5941
|
+
...columns && {
|
|
5942
|
+
display: "grid",
|
|
5943
|
+
gridTemplateColumns: `repeat(${columns}, 1fr)`
|
|
5944
|
+
},
|
|
5945
|
+
[`& .${sheetClasses.root}.${radioClasses.disabled}`]: {
|
|
5946
|
+
borderColor: theme.palette.neutral.outlinedDisabledBorder
|
|
5947
|
+
},
|
|
5948
|
+
[`& .${radioClasses.root}`]: {
|
|
5949
|
+
[`& .${radioClasses.action}`]: {
|
|
5950
|
+
borderRadius: theme.radius.md
|
|
5951
|
+
},
|
|
5952
|
+
[`&.${radioClasses.checked}`]: {
|
|
5953
|
+
[`& .${radioClasses.action}`]: {
|
|
5954
|
+
inset: -1,
|
|
5955
|
+
border: "2px solid",
|
|
5956
|
+
borderColor: theme.palette.primary.outlinedColor
|
|
5957
|
+
},
|
|
5958
|
+
[`&.${radioClasses.disabled}`]: {
|
|
5959
|
+
[`& .${radioClasses.action}`]: {
|
|
5960
|
+
borderColor: theme.palette.neutral.outlinedBorder
|
|
5961
|
+
}
|
|
5962
|
+
}
|
|
5963
|
+
}
|
|
5964
|
+
}
|
|
5965
|
+
}));
|
|
5966
|
+
var RadioTileSheet = styled26(Sheet, {
|
|
5967
|
+
name: "RadioTileGroup",
|
|
5968
|
+
slot: "tile",
|
|
5969
|
+
shouldForwardProp: (prop) => prop !== "disabled" && prop !== "size" && prop !== "flex" && prop !== "textAlign"
|
|
5970
|
+
})(({
|
|
5971
|
+
theme,
|
|
5972
|
+
disabled,
|
|
5973
|
+
size = "sm",
|
|
5974
|
+
flex,
|
|
5975
|
+
textAlign
|
|
5976
|
+
}) => {
|
|
5977
|
+
const px = { sm: theme.spacing(3), md: theme.spacing(3), lg: theme.spacing(4) }[size];
|
|
5978
|
+
const py = { sm: theme.spacing(3), md: theme.spacing(4), lg: theme.spacing(4) }[size];
|
|
5979
|
+
return {
|
|
5980
|
+
borderRadius: theme.radius.md,
|
|
5981
|
+
display: "flex",
|
|
5982
|
+
gap: { sm: theme.spacing(2), md: theme.spacing(3), lg: theme.spacing(4) }[size],
|
|
5983
|
+
padding: `${py} ${px}`,
|
|
5984
|
+
// NOTE: Radio에도 Label과의 정렬을 맞추기 위해 중복 코드가 있지만 Icon과 RadioButton 의 정렬도 일치시켜야 해서 코드가 중복으로 존재할수밖에 없다.
|
|
5985
|
+
flexDirection: textAlign === "start" ? "row-reverse" : "column-reverse",
|
|
5986
|
+
justifyContent: textAlign === "start" ? "space-between" : "center",
|
|
5987
|
+
alignItems: "center",
|
|
5988
|
+
...flex ? { flex: 1 } : {},
|
|
5989
|
+
...disabled ? { borderColor: theme.palette.neutral.outlinedDisabledBorder } : {
|
|
5990
|
+
":hover": {
|
|
5991
|
+
backgroundColor: theme.palette.neutral.outlinedHoverBg
|
|
5992
|
+
},
|
|
5993
|
+
":active": {
|
|
5994
|
+
backgroundColor: theme.palette.neutral.outlinedActiveBg
|
|
5995
|
+
}
|
|
5996
|
+
}
|
|
5997
|
+
};
|
|
5998
|
+
});
|
|
5999
|
+
function RadioTileGroup(props) {
|
|
6000
|
+
const {
|
|
6001
|
+
options,
|
|
6002
|
+
value,
|
|
6003
|
+
defaultValue,
|
|
6004
|
+
onChange,
|
|
6005
|
+
name,
|
|
6006
|
+
disabled: allDisabled,
|
|
6007
|
+
sx,
|
|
6008
|
+
className,
|
|
6009
|
+
useIndicator,
|
|
6010
|
+
textAlign = "center",
|
|
6011
|
+
size = "sm",
|
|
6012
|
+
flex,
|
|
6013
|
+
columns,
|
|
6014
|
+
label,
|
|
6015
|
+
helperText,
|
|
6016
|
+
error,
|
|
6017
|
+
required
|
|
6018
|
+
} = props;
|
|
6019
|
+
const radioGroup = /* @__PURE__ */ React41.createElement(
|
|
6020
|
+
RadioTileGroupRoot,
|
|
6021
|
+
{
|
|
6022
|
+
overlay: true,
|
|
6023
|
+
name,
|
|
6024
|
+
value,
|
|
6025
|
+
defaultValue,
|
|
6026
|
+
onChange,
|
|
6027
|
+
flex,
|
|
6028
|
+
columns
|
|
6029
|
+
},
|
|
6030
|
+
options.map((option) => /* @__PURE__ */ React41.createElement(
|
|
6031
|
+
RadioTileSheet,
|
|
6032
|
+
{
|
|
6033
|
+
key: option.value,
|
|
6034
|
+
variant: "outlined",
|
|
6035
|
+
disabled: allDisabled ?? option.disabled,
|
|
6036
|
+
size,
|
|
6037
|
+
flex,
|
|
6038
|
+
textAlign
|
|
6039
|
+
},
|
|
6040
|
+
/* @__PURE__ */ React41.createElement(
|
|
6041
|
+
Radio,
|
|
6042
|
+
{
|
|
6043
|
+
id: `${option.value}`,
|
|
6044
|
+
value: option.value,
|
|
6045
|
+
label: option.label,
|
|
6046
|
+
disableIcon: !useIndicator,
|
|
6047
|
+
disabled: allDisabled ?? option.disabled,
|
|
6048
|
+
size,
|
|
6049
|
+
slotProps: {
|
|
6050
|
+
root: {
|
|
6051
|
+
sx: {
|
|
6052
|
+
width: "100%",
|
|
6053
|
+
flexDirection: textAlign === "start" ? "row-reverse" : "column-reverse",
|
|
6054
|
+
justifyContent: textAlign === "start" ? "space-between" : "center",
|
|
6055
|
+
alignItems: "center",
|
|
6056
|
+
gap: { sm: 2, md: 3, lg: 4 }[size]
|
|
6057
|
+
}
|
|
6058
|
+
},
|
|
6059
|
+
label: ({ disabled }) => ({
|
|
6060
|
+
sx: (theme) => ({
|
|
6061
|
+
...theme.typography[{ sm: "body-sm", md: "body-md", lg: "body-lg" }[size]],
|
|
6062
|
+
color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor
|
|
6063
|
+
})
|
|
6064
|
+
})
|
|
6065
|
+
}
|
|
6066
|
+
}
|
|
6067
|
+
),
|
|
6068
|
+
option.startDecorator && /* @__PURE__ */ React41.createElement(
|
|
6069
|
+
Box_default,
|
|
6070
|
+
{
|
|
6071
|
+
sx: {
|
|
6072
|
+
zIndex: 2,
|
|
6073
|
+
// HACK: Radio의 overlay가 decorator를 덮어버리기 때문에 문제 예방을 위해 적용해야 한다.
|
|
6074
|
+
width: { sm: "20px", md: "24px", lg: "24px" }[size],
|
|
6075
|
+
height: { sm: "20px", md: "24px", lg: "24px" }[size],
|
|
6076
|
+
color: "inherit",
|
|
6077
|
+
"& > .MuiSvgIcon-root": {
|
|
6078
|
+
width: "inherit",
|
|
6079
|
+
height: "inherit",
|
|
6080
|
+
fill: "currentColor",
|
|
6081
|
+
color: "inherit"
|
|
6082
|
+
}
|
|
6083
|
+
}
|
|
6084
|
+
},
|
|
6085
|
+
option.startDecorator
|
|
6086
|
+
)
|
|
6087
|
+
))
|
|
6088
|
+
);
|
|
6089
|
+
return /* @__PURE__ */ React41.createElement(FormControl_default, { required, disabled: allDisabled, error, size, sx, className }, label && /* @__PURE__ */ React41.createElement(FormLabel_default, null, label), radioGroup, helperText && /* @__PURE__ */ React41.createElement(FormHelperText_default, null, helperText));
|
|
6090
|
+
}
|
|
6091
|
+
RadioTileGroup.displayName = "RadioTileGroup";
|
|
6092
|
+
|
|
6093
|
+
// src/components/RadioList/RadioList.tsx
|
|
6094
|
+
import React42 from "react";
|
|
5932
6095
|
function RadioList(props) {
|
|
5933
6096
|
const { items, ...innerProps } = props;
|
|
5934
|
-
return /* @__PURE__ */
|
|
6097
|
+
return /* @__PURE__ */ React42.createElement(RadioGroup, { ...innerProps }, items.map((item) => /* @__PURE__ */ React42.createElement(Radio, { key: `${item.value}`, value: item.value, label: item.label })));
|
|
5935
6098
|
}
|
|
5936
6099
|
RadioList.displayName = "RadioList";
|
|
5937
6100
|
|
|
5938
6101
|
// src/components/Stepper/Stepper.tsx
|
|
5939
|
-
import
|
|
6102
|
+
import React43 from "react";
|
|
5940
6103
|
import {
|
|
5941
6104
|
Stepper as JoyStepper,
|
|
5942
6105
|
Step as JoyStep,
|
|
5943
6106
|
StepIndicator as JoyStepIndicator,
|
|
5944
6107
|
stepClasses,
|
|
5945
6108
|
stepIndicatorClasses,
|
|
5946
|
-
styled as
|
|
6109
|
+
styled as styled27
|
|
5947
6110
|
} from "@mui/joy";
|
|
5948
6111
|
import CheckIcon from "@mui/icons-material/Check";
|
|
5949
6112
|
import { motion as motion27 } from "framer-motion";
|
|
5950
|
-
var Step =
|
|
6113
|
+
var Step = styled27(JoyStep)({});
|
|
5951
6114
|
Step.displayName = "Step";
|
|
5952
|
-
var StepIndicator =
|
|
6115
|
+
var StepIndicator = styled27(JoyStepIndicator)({});
|
|
5953
6116
|
StepIndicator.displayName = "StepIndicator";
|
|
5954
|
-
var StyledStepper =
|
|
6117
|
+
var StyledStepper = styled27(JoyStepper)(({ theme }) => ({
|
|
5955
6118
|
"--StepIndicator-size": "24px",
|
|
5956
6119
|
"--Step-gap": theme.spacing(2),
|
|
5957
6120
|
"--joy-palette-success-solidBg": "var(--joy-palette-success-400)",
|
|
@@ -5972,7 +6135,7 @@ function Stepper(props) {
|
|
|
5972
6135
|
stepOrientation = "horizontal"
|
|
5973
6136
|
} = props;
|
|
5974
6137
|
const effectiveStepOrientation = orientation === "vertical" ? "horizontal" : stepOrientation;
|
|
5975
|
-
return /* @__PURE__ */
|
|
6138
|
+
return /* @__PURE__ */ React43.createElement(
|
|
5976
6139
|
MotionStepper,
|
|
5977
6140
|
{
|
|
5978
6141
|
orientation,
|
|
@@ -6011,23 +6174,23 @@ function Stepper(props) {
|
|
|
6011
6174
|
const completed = activeStep > i + 1;
|
|
6012
6175
|
const disabled = activeStep < i + 1;
|
|
6013
6176
|
const hasContent = step.label || step.extraContent;
|
|
6014
|
-
return /* @__PURE__ */
|
|
6177
|
+
return /* @__PURE__ */ React43.createElement(
|
|
6015
6178
|
Step,
|
|
6016
6179
|
{
|
|
6017
6180
|
key: `step-${i}`,
|
|
6018
|
-
indicator: /* @__PURE__ */
|
|
6181
|
+
indicator: /* @__PURE__ */ React43.createElement(StepIndicator, { variant: disabled ? "outlined" : "solid", color: disabled ? "neutral" : "primary" }, completed ? /* @__PURE__ */ React43.createElement(CheckIcon, null) : step.indicatorContent),
|
|
6019
6182
|
active,
|
|
6020
6183
|
completed,
|
|
6021
6184
|
disabled,
|
|
6022
6185
|
orientation: effectiveStepOrientation
|
|
6023
6186
|
},
|
|
6024
|
-
hasContent && /* @__PURE__ */
|
|
6187
|
+
hasContent && /* @__PURE__ */ React43.createElement(
|
|
6025
6188
|
Stack_default,
|
|
6026
6189
|
{
|
|
6027
6190
|
sx: orientation === "horizontal" && effectiveStepOrientation === "vertical" ? { alignItems: "center" } : {}
|
|
6028
6191
|
},
|
|
6029
|
-
step.label && /* @__PURE__ */
|
|
6030
|
-
step.extraContent && /* @__PURE__ */
|
|
6192
|
+
step.label && /* @__PURE__ */ React43.createElement(Typography_default, { level: "title-sm" }, step.label),
|
|
6193
|
+
step.extraContent && /* @__PURE__ */ React43.createElement(Typography_default, { level: "body-xs" }, step.extraContent)
|
|
6031
6194
|
)
|
|
6032
6195
|
);
|
|
6033
6196
|
})
|
|
@@ -6036,11 +6199,11 @@ function Stepper(props) {
|
|
|
6036
6199
|
Stepper.displayName = "Stepper";
|
|
6037
6200
|
|
|
6038
6201
|
// src/components/Switch/Switch.tsx
|
|
6039
|
-
import
|
|
6040
|
-
import { Switch as JoySwitch, styled as
|
|
6202
|
+
import React44 from "react";
|
|
6203
|
+
import { Switch as JoySwitch, styled as styled28, switchClasses } from "@mui/joy";
|
|
6041
6204
|
import { motion as motion28 } from "framer-motion";
|
|
6042
6205
|
var MotionSwitch = motion28(JoySwitch);
|
|
6043
|
-
var StyledThumb =
|
|
6206
|
+
var StyledThumb = styled28(motion28.div)({
|
|
6044
6207
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
6045
6208
|
display: "inline-flex",
|
|
6046
6209
|
justifyContent: "center",
|
|
@@ -6058,14 +6221,14 @@ var StyledThumb = styled27(motion28.div)({
|
|
|
6058
6221
|
right: "var(--Switch-thumbOffset)"
|
|
6059
6222
|
}
|
|
6060
6223
|
});
|
|
6061
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
6224
|
+
var Thumb = (props) => /* @__PURE__ */ React44.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
6062
6225
|
var spring = {
|
|
6063
6226
|
type: "spring",
|
|
6064
6227
|
stiffness: 700,
|
|
6065
6228
|
damping: 30
|
|
6066
6229
|
};
|
|
6067
6230
|
var Switch = (props) => {
|
|
6068
|
-
return /* @__PURE__ */
|
|
6231
|
+
return /* @__PURE__ */ React44.createElement(
|
|
6069
6232
|
MotionSwitch,
|
|
6070
6233
|
{
|
|
6071
6234
|
...props,
|
|
@@ -6079,21 +6242,21 @@ var Switch = (props) => {
|
|
|
6079
6242
|
Switch.displayName = "Switch";
|
|
6080
6243
|
|
|
6081
6244
|
// src/components/Tabs/Tabs.tsx
|
|
6082
|
-
import
|
|
6245
|
+
import React45, { forwardRef as forwardRef11 } from "react";
|
|
6083
6246
|
import {
|
|
6084
6247
|
Tabs as JoyTabs,
|
|
6085
6248
|
Tab as JoyTab,
|
|
6086
6249
|
TabList as JoyTabList,
|
|
6087
6250
|
TabPanel as JoyTabPanel,
|
|
6088
|
-
styled as
|
|
6251
|
+
styled as styled29,
|
|
6089
6252
|
tabClasses
|
|
6090
6253
|
} from "@mui/joy";
|
|
6091
|
-
var StyledTabs =
|
|
6254
|
+
var StyledTabs = styled29(JoyTabs)(({ theme }) => ({
|
|
6092
6255
|
backgroundColor: theme.palette.background.body
|
|
6093
6256
|
}));
|
|
6094
6257
|
var Tabs = StyledTabs;
|
|
6095
6258
|
Tabs.displayName = "Tabs";
|
|
6096
|
-
var StyledTab =
|
|
6259
|
+
var StyledTab = styled29(JoyTab)(({ theme }) => ({
|
|
6097
6260
|
gap: theme.spacing(2),
|
|
6098
6261
|
[`&:not(.${tabClasses.selected})`]: {
|
|
6099
6262
|
color: theme.palette.neutral[700]
|
|
@@ -6103,14 +6266,14 @@ var StyledTab = styled28(JoyTab)(({ theme }) => ({
|
|
|
6103
6266
|
}
|
|
6104
6267
|
}));
|
|
6105
6268
|
var Tab = forwardRef11(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
|
|
6106
|
-
return /* @__PURE__ */
|
|
6269
|
+
return /* @__PURE__ */ React45.createElement(StyledTab, { ...props, ref }, startDecorator, children, endDecorator);
|
|
6107
6270
|
});
|
|
6108
6271
|
Tab.displayName = "Tab";
|
|
6109
6272
|
var TabList = JoyTabList;
|
|
6110
6273
|
var TabPanel = JoyTabPanel;
|
|
6111
6274
|
|
|
6112
6275
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
6113
|
-
import
|
|
6276
|
+
import React46 from "react";
|
|
6114
6277
|
import {
|
|
6115
6278
|
CssBaseline,
|
|
6116
6279
|
CssVarsProvider,
|
|
@@ -6366,13 +6529,13 @@ var defaultTheme = extendTheme({
|
|
|
6366
6529
|
});
|
|
6367
6530
|
function ThemeProvider(props) {
|
|
6368
6531
|
const theme = props.theme || defaultTheme;
|
|
6369
|
-
return /* @__PURE__ */
|
|
6532
|
+
return /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React46.createElement(CssBaseline, null), props.children));
|
|
6370
6533
|
}
|
|
6371
6534
|
ThemeProvider.displayName = "ThemeProvider";
|
|
6372
6535
|
|
|
6373
6536
|
// src/components/Uploader/Uploader.tsx
|
|
6374
|
-
import
|
|
6375
|
-
import { styled as
|
|
6537
|
+
import React47, { useCallback as useCallback17, useEffect as useEffect12, useMemo as useMemo15, useRef as useRef11, useState as useState15 } from "react";
|
|
6538
|
+
import { styled as styled30, Input as Input2 } from "@mui/joy";
|
|
6376
6539
|
import MuiFileUploadIcon from "@mui/icons-material/CloudUploadRounded";
|
|
6377
6540
|
import MuiUploadFileIcon from "@mui/icons-material/UploadFileRounded";
|
|
6378
6541
|
import MuiClearIcon from "@mui/icons-material/ClearRounded";
|
|
@@ -6394,7 +6557,7 @@ var esmFiles = {
|
|
|
6394
6557
|
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js"
|
|
6395
6558
|
)
|
|
6396
6559
|
};
|
|
6397
|
-
var VisuallyHiddenInput =
|
|
6560
|
+
var VisuallyHiddenInput = styled30(Input2)({
|
|
6398
6561
|
width: "1px",
|
|
6399
6562
|
height: "1px",
|
|
6400
6563
|
overflow: "hidden",
|
|
@@ -6403,18 +6566,18 @@ var VisuallyHiddenInput = styled29(Input2)({
|
|
|
6403
6566
|
clipPath: "inset(50%)",
|
|
6404
6567
|
position: "absolute"
|
|
6405
6568
|
});
|
|
6406
|
-
var PreviewRoot =
|
|
6569
|
+
var PreviewRoot = styled30(Stack_default, {
|
|
6407
6570
|
name: "Uploader",
|
|
6408
6571
|
slot: "PreviewRoot"
|
|
6409
6572
|
})({});
|
|
6410
|
-
var UploadCard =
|
|
6573
|
+
var UploadCard = styled30(Card, {
|
|
6411
6574
|
name: "Uploader",
|
|
6412
6575
|
slot: "UploadCard"
|
|
6413
6576
|
})(({ theme }) => ({
|
|
6414
6577
|
padding: theme.spacing(2.5),
|
|
6415
6578
|
border: `1px solid ${theme.palette.neutral.outlinedBorder}`
|
|
6416
6579
|
}));
|
|
6417
|
-
var UploadFileIcon =
|
|
6580
|
+
var UploadFileIcon = styled30(MuiUploadFileIcon, {
|
|
6418
6581
|
name: "Uploader",
|
|
6419
6582
|
slot: "UploadFileIcon"
|
|
6420
6583
|
})(({ theme }) => ({
|
|
@@ -6422,7 +6585,7 @@ var UploadFileIcon = styled29(MuiUploadFileIcon, {
|
|
|
6422
6585
|
width: "32px",
|
|
6423
6586
|
height: "32px"
|
|
6424
6587
|
}));
|
|
6425
|
-
var ClearIcon2 =
|
|
6588
|
+
var ClearIcon2 = styled30(MuiClearIcon, {
|
|
6426
6589
|
name: "Uploader",
|
|
6427
6590
|
slot: "ClearIcon"
|
|
6428
6591
|
})(({ theme }) => ({
|
|
@@ -6448,7 +6611,7 @@ var getFileSize = (n) => {
|
|
|
6448
6611
|
};
|
|
6449
6612
|
var Preview = (props) => {
|
|
6450
6613
|
const { files, uploaded, onDelete } = props;
|
|
6451
|
-
return /* @__PURE__ */
|
|
6614
|
+
return /* @__PURE__ */ React47.createElement(PreviewRoot, { gap: 1 }, [...uploaded, ...files].map((file) => /* @__PURE__ */ React47.createElement(UploadCard, { key: file.name, size: "sm", color: "neutral" }, /* @__PURE__ */ React47.createElement(Stack_default, { direction: "row", alignItems: "center", gap: 2 }, /* @__PURE__ */ React47.createElement(UploadFileIcon, null), /* @__PURE__ */ React47.createElement(Stack_default, { flex: "1", sx: { overflow: "hidden" } }, /* @__PURE__ */ React47.createElement(
|
|
6452
6615
|
Typography_default,
|
|
6453
6616
|
{
|
|
6454
6617
|
level: "body-sm",
|
|
@@ -6460,15 +6623,15 @@ var Preview = (props) => {
|
|
|
6460
6623
|
}
|
|
6461
6624
|
},
|
|
6462
6625
|
file.name
|
|
6463
|
-
), !!file.size && /* @__PURE__ */
|
|
6626
|
+
), !!file.size && /* @__PURE__ */ React47.createElement(Typography_default, { level: "body-xs", fontWeight: "300", lineHeight: "1.33", textColor: "text.tertiary" }, getFileSize(file.size))), /* @__PURE__ */ React47.createElement(IconButton_default, { onClick: () => onDelete?.(file) }, /* @__PURE__ */ React47.createElement(ClearIcon2, null))))));
|
|
6464
6627
|
};
|
|
6465
|
-
var UploaderRoot =
|
|
6628
|
+
var UploaderRoot = styled30(Stack_default, {
|
|
6466
6629
|
name: "Uploader",
|
|
6467
6630
|
slot: "root"
|
|
6468
6631
|
})(({ theme }) => ({
|
|
6469
6632
|
gap: theme.spacing(2)
|
|
6470
6633
|
}));
|
|
6471
|
-
var FileDropZone =
|
|
6634
|
+
var FileDropZone = styled30(Sheet_default, {
|
|
6472
6635
|
name: "Uploader",
|
|
6473
6636
|
slot: "dropZone",
|
|
6474
6637
|
shouldForwardProp: (prop) => prop !== "error" && prop !== "disabled"
|
|
@@ -6489,7 +6652,7 @@ var FileDropZone = styled29(Sheet_default, {
|
|
|
6489
6652
|
}
|
|
6490
6653
|
})
|
|
6491
6654
|
);
|
|
6492
|
-
var UploaderIcon =
|
|
6655
|
+
var UploaderIcon = styled30(MuiFileUploadIcon, {
|
|
6493
6656
|
name: "Uploader",
|
|
6494
6657
|
slot: "iconContainer",
|
|
6495
6658
|
shouldForwardProp: (prop) => prop !== "error" && prop !== "disabled"
|
|
@@ -6503,7 +6666,7 @@ var UploaderIcon = styled29(MuiFileUploadIcon, {
|
|
|
6503
6666
|
}
|
|
6504
6667
|
})
|
|
6505
6668
|
);
|
|
6506
|
-
var Uploader =
|
|
6669
|
+
var Uploader = React47.memo(
|
|
6507
6670
|
(props) => {
|
|
6508
6671
|
const {
|
|
6509
6672
|
accept,
|
|
@@ -6693,7 +6856,7 @@ var Uploader = React46.memo(
|
|
|
6693
6856
|
const handleUploaderButtonClick = useCallback17(() => {
|
|
6694
6857
|
inputRef.current?.click();
|
|
6695
6858
|
}, []);
|
|
6696
|
-
const uploader = /* @__PURE__ */
|
|
6859
|
+
const uploader = /* @__PURE__ */ React47.createElement(
|
|
6697
6860
|
FileDropZone,
|
|
6698
6861
|
{
|
|
6699
6862
|
state: previewState,
|
|
@@ -6702,8 +6865,8 @@ var Uploader = React46.memo(
|
|
|
6702
6865
|
ref: dropZoneRef,
|
|
6703
6866
|
onClick: handleUploaderButtonClick
|
|
6704
6867
|
},
|
|
6705
|
-
/* @__PURE__ */
|
|
6706
|
-
/* @__PURE__ */
|
|
6868
|
+
/* @__PURE__ */ React47.createElement(Stack_default, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React47.createElement(UploaderIcon, { state: previewState, error: !!(error || errorText), disabled })),
|
|
6869
|
+
/* @__PURE__ */ React47.createElement(
|
|
6707
6870
|
VisuallyHiddenInput,
|
|
6708
6871
|
{
|
|
6709
6872
|
disabled,
|
|
@@ -6726,7 +6889,7 @@ var Uploader = React46.memo(
|
|
|
6726
6889
|
}
|
|
6727
6890
|
)
|
|
6728
6891
|
);
|
|
6729
|
-
return /* @__PURE__ */
|
|
6892
|
+
return /* @__PURE__ */ React47.createElement(UploaderRoot, null, showDropZone && /* @__PURE__ */ React47.createElement(FormControl_default, { size, error: !!(error || errorText), disabled, required: !!minCount }, label && /* @__PURE__ */ React47.createElement(FormLabel_default, null, label), uploader, /* @__PURE__ */ React47.createElement(FormHelperText_default, null, /* @__PURE__ */ React47.createElement(Stack_default, null, errorText && /* @__PURE__ */ React47.createElement("div", null, errorText), /* @__PURE__ */ React47.createElement("div", null, helperText)))), [...uploaded, ...files].length > 0 && /* @__PURE__ */ React47.createElement(Preview, { files, uploaded, onDelete: handleDeleteFile }));
|
|
6730
6893
|
}
|
|
6731
6894
|
);
|
|
6732
6895
|
Uploader.displayName = "Uploader";
|
|
@@ -6807,6 +6970,7 @@ export {
|
|
|
6807
6970
|
Radio,
|
|
6808
6971
|
RadioGroup,
|
|
6809
6972
|
RadioList,
|
|
6973
|
+
RadioTileGroup,
|
|
6810
6974
|
Select,
|
|
6811
6975
|
Sheet,
|
|
6812
6976
|
Skeleton2 as Skeleton,
|
|
@@ -6881,17 +7045,17 @@ export {
|
|
|
6881
7045
|
modalDialogClasses,
|
|
6882
7046
|
modalOverflowClasses,
|
|
6883
7047
|
optionClasses,
|
|
6884
|
-
radioClasses,
|
|
7048
|
+
radioClasses2 as radioClasses,
|
|
6885
7049
|
radioGroupClasses,
|
|
6886
7050
|
selectClasses,
|
|
6887
|
-
sheetClasses,
|
|
7051
|
+
sheetClasses2 as sheetClasses,
|
|
6888
7052
|
skeletonClasses,
|
|
6889
7053
|
sliderClasses,
|
|
6890
7054
|
stackClasses,
|
|
6891
7055
|
stepButtonClasses,
|
|
6892
7056
|
stepClasses2 as stepClasses,
|
|
6893
7057
|
stepperClasses,
|
|
6894
|
-
|
|
7058
|
+
styled31 as styled,
|
|
6895
7059
|
switchClasses2 as switchClasses,
|
|
6896
7060
|
tabListClasses,
|
|
6897
7061
|
tabPanelClasses,
|
package/dist/llms.txt
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
- [MonthRangePicker](./components/inputs/MonthRangePicker.md)
|
|
35
35
|
- [PercentageInput](./components/inputs/PercentageInput.md)
|
|
36
36
|
- [Radio](./components/inputs/RadioButton.md)
|
|
37
|
+
- [RadioTileGroup](./components/inputs/RadioTileGroup.md)
|
|
37
38
|
- [Select](./components/inputs/Select.md)
|
|
38
39
|
- [Switch](./components/inputs/Switch.md)
|
|
39
40
|
- [Textarea](./components/inputs/Textarea.md)
|