@ceed/ads 1.33.0 → 1.35.0
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/SearchBar/SearchBar.d.ts +20 -0
- package/dist/components/SearchBar/index.d.ts +2 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +5 -0
- package/dist/components/data-display/Markdown.md +62 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/inputs/SearchBar.md +103 -0
- package/dist/components/inputs/llms.txt +1 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +88 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +116 -28
- package/dist/llms.txt +1 -0
- package/framer/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -160,6 +160,7 @@ __export(index_exports, {
|
|
|
160
160
|
RadioGroup: () => RadioGroup,
|
|
161
161
|
RadioList: () => RadioList,
|
|
162
162
|
RadioTileGroup: () => RadioTileGroup,
|
|
163
|
+
SearchBar: () => SearchBar,
|
|
163
164
|
Select: () => Select,
|
|
164
165
|
Sheet: () => Sheet,
|
|
165
166
|
Skeleton: () => import_joy71.Skeleton,
|
|
@@ -7934,6 +7935,92 @@ function RadioList(props) {
|
|
|
7934
7935
|
}
|
|
7935
7936
|
RadioList.displayName = "RadioList";
|
|
7936
7937
|
|
|
7938
|
+
// src/components/SearchBar/SearchBar.tsx
|
|
7939
|
+
var React54 = __toESM(require("react"));
|
|
7940
|
+
var import_styles = require("@mui/joy/styles");
|
|
7941
|
+
var import_SearchRounded = __toESM(require("@mui/icons-material/SearchRounded"));
|
|
7942
|
+
var import_CloseRounded = __toESM(require("@mui/icons-material/CloseRounded"));
|
|
7943
|
+
var SearchBarRoot = (0, import_styles.styled)("div", {
|
|
7944
|
+
name: "SearchBar",
|
|
7945
|
+
slot: "root"
|
|
7946
|
+
})(({ theme, ownerState }) => {
|
|
7947
|
+
const width = `--${theme.cssVarPrefix}-SearchBar-width`;
|
|
7948
|
+
return {
|
|
7949
|
+
[width]: ownerState.hideSelect ? "220px" : "300px",
|
|
7950
|
+
display: "flex",
|
|
7951
|
+
flexDirection: "row",
|
|
7952
|
+
width: `var(${width})`,
|
|
7953
|
+
backgroundColor: theme.vars.palette.background.surface,
|
|
7954
|
+
borderRadius: theme.vars.radius.sm,
|
|
7955
|
+
border: `1px solid ${theme.vars.palette.neutral.outlinedBorder}`,
|
|
7956
|
+
overflow: "hidden"
|
|
7957
|
+
};
|
|
7958
|
+
});
|
|
7959
|
+
var SearchBar = React54.forwardRef(function SearchBar2(inProps, ref) {
|
|
7960
|
+
const props = (0, import_styles.useThemeProps)({ props: inProps, name: "SearchBar" });
|
|
7961
|
+
const { hideSelect = false, options, value, onChange, onSearch, ...other } = props;
|
|
7962
|
+
const [selectVal, setSelectVal] = React54.useState(options?.[0]?.value ?? "");
|
|
7963
|
+
const [isHovered, setIsHovered] = React54.useState(false);
|
|
7964
|
+
const ownerState = { hideSelect };
|
|
7965
|
+
const selectedOption = options?.find((o) => o.value === selectVal);
|
|
7966
|
+
const placeholder = selectedOption?.placeholder ?? "";
|
|
7967
|
+
const handleSearch = () => {
|
|
7968
|
+
onSearch?.({ selectValue: hideSelect ? void 0 : selectVal, inputValue: value });
|
|
7969
|
+
};
|
|
7970
|
+
const handleClear = () => {
|
|
7971
|
+
onChange("");
|
|
7972
|
+
};
|
|
7973
|
+
const handleKeyDown = (e) => {
|
|
7974
|
+
if (e.key === "Enter") {
|
|
7975
|
+
handleSearch();
|
|
7976
|
+
}
|
|
7977
|
+
};
|
|
7978
|
+
return /* @__PURE__ */ React54.createElement(SearchBarRoot, { ref, ownerState, ...other }, !hideSelect && options && /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(
|
|
7979
|
+
Select,
|
|
7980
|
+
{
|
|
7981
|
+
variant: "plain",
|
|
7982
|
+
size: "sm",
|
|
7983
|
+
color: "neutral",
|
|
7984
|
+
value: selectVal,
|
|
7985
|
+
options,
|
|
7986
|
+
onChange: (_, newValue) => setSelectVal(newValue),
|
|
7987
|
+
sx: { flex: 1, maxWidth: "110px" },
|
|
7988
|
+
slotProps: {
|
|
7989
|
+
button: {
|
|
7990
|
+
style: { display: "block", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }
|
|
7991
|
+
}
|
|
7992
|
+
}
|
|
7993
|
+
}
|
|
7994
|
+
), /* @__PURE__ */ React54.createElement(Divider, { orientation: "vertical", sx: { height: "16px", alignSelf: "center" } })), /* @__PURE__ */ React54.createElement(
|
|
7995
|
+
Input,
|
|
7996
|
+
{
|
|
7997
|
+
variant: "plain",
|
|
7998
|
+
size: "sm",
|
|
7999
|
+
color: "neutral",
|
|
8000
|
+
placeholder,
|
|
8001
|
+
value,
|
|
8002
|
+
onChange: (e) => onChange(e.target.value),
|
|
8003
|
+
onKeyDown: handleKeyDown,
|
|
8004
|
+
sx: { flex: 1, minWidth: 0 },
|
|
8005
|
+
onMouseEnter: () => setIsHovered(true),
|
|
8006
|
+
onMouseLeave: () => setIsHovered(false),
|
|
8007
|
+
endDecorator: isHovered && value ? /* @__PURE__ */ React54.createElement(
|
|
8008
|
+
IconButton,
|
|
8009
|
+
{
|
|
8010
|
+
variant: "plain",
|
|
8011
|
+
size: "sm",
|
|
8012
|
+
color: "neutral",
|
|
8013
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
8014
|
+
onClick: handleClear,
|
|
8015
|
+
"aria-label": "Clear"
|
|
8016
|
+
},
|
|
8017
|
+
/* @__PURE__ */ React54.createElement(import_CloseRounded.default, null)
|
|
8018
|
+
) : void 0
|
|
8019
|
+
}
|
|
8020
|
+
), /* @__PURE__ */ React54.createElement(IconButton, { variant: "plain", size: "sm", color: "neutral", onClick: handleSearch, "aria-label": "Search" }, /* @__PURE__ */ React54.createElement(import_SearchRounded.default, null)));
|
|
8021
|
+
});
|
|
8022
|
+
SearchBar.displayName = "SearchBar";
|
|
8023
|
+
|
|
7937
8024
|
// src/components/Stepper/Stepper.tsx
|
|
7938
8025
|
var import_react57 = __toESM(require("react"));
|
|
7939
8026
|
var import_joy67 = require("@mui/joy");
|
|
@@ -8248,6 +8335,7 @@ var defaultTheme = (0, import_joy70.extendTheme)({
|
|
|
8248
8335
|
}
|
|
8249
8336
|
}
|
|
8250
8337
|
},
|
|
8338
|
+
SearchBar: {},
|
|
8251
8339
|
JoySelect: {
|
|
8252
8340
|
defaultProps: {
|
|
8253
8341
|
size: "sm"
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, cardClasses, cardActionsClasses, cardContentClasses, cardCoverClasses, cardOverflowClasses, chipClasses, CircularProgress, circularProgressClasses, Drawer, 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 { Accordion, Accordions, Alert, Autocomplete, AccordionDetails, AccordionSummary, Avatar, AvatarGroup, Box, Breadcrumbs, Button, Calendar, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, Container, CssBaseline, CurrencyInput, DataTable, DatePicker, DateRangePicker, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, FilterableCheckboxGroup, FilterMenu, extendTheme, InsetDrawer, Uploader, FormControl, FormHelperText, FormLabel, Grid, IconButton, IconMenuButton, InfoSign, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthPicker, MonthRangePicker, PercentageInput, ProfileMenu, Pagination, NavigationGroup, NavigationItem, Navigator, Radio, RadioGroup, RadioList, RadioTileGroup, Select, Option, Sheet, Stack, Step, StepIndicator, Stepper, Switch, theme, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from './components';
|
|
3
|
+
export { Accordion, Accordions, Alert, Autocomplete, AccordionDetails, AccordionSummary, Avatar, AvatarGroup, Box, Breadcrumbs, Button, Calendar, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, Container, CssBaseline, CurrencyInput, DataTable, DatePicker, DateRangePicker, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, FilterableCheckboxGroup, FilterMenu, extendTheme, InsetDrawer, Uploader, FormControl, FormHelperText, FormLabel, Grid, IconButton, IconMenuButton, InfoSign, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthPicker, MonthRangePicker, PercentageInput, ProfileMenu, Pagination, NavigationGroup, NavigationItem, Navigator, Radio, RadioGroup, RadioList, RadioTileGroup, SearchBar, Select, Option, Sheet, Stack, Step, StepIndicator, Stepper, Switch, theme, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from './components';
|
|
4
4
|
export type * from './components';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
useTheme as useTheme2,
|
|
4
4
|
useColorScheme,
|
|
5
|
-
useThemeProps as
|
|
5
|
+
useThemeProps as useThemeProps10,
|
|
6
6
|
ButtonGroup,
|
|
7
7
|
alertClasses,
|
|
8
8
|
boxClasses,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
stepperClasses,
|
|
92
92
|
Skeleton as Skeleton2,
|
|
93
93
|
skeletonClasses,
|
|
94
|
-
styled as
|
|
94
|
+
styled as styled32
|
|
95
95
|
} from "@mui/joy";
|
|
96
96
|
|
|
97
97
|
// src/components/Accordions/Accordions.tsx
|
|
@@ -7828,23 +7828,109 @@ function RadioList(props) {
|
|
|
7828
7828
|
}
|
|
7829
7829
|
RadioList.displayName = "RadioList";
|
|
7830
7830
|
|
|
7831
|
+
// src/components/SearchBar/SearchBar.tsx
|
|
7832
|
+
import * as React54 from "react";
|
|
7833
|
+
import { styled as styled28, useThemeProps as useThemeProps9 } from "@mui/joy/styles";
|
|
7834
|
+
import SearchRoundedIcon from "@mui/icons-material/SearchRounded";
|
|
7835
|
+
import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
|
|
7836
|
+
var SearchBarRoot = styled28("div", {
|
|
7837
|
+
name: "SearchBar",
|
|
7838
|
+
slot: "root"
|
|
7839
|
+
})(({ theme, ownerState }) => {
|
|
7840
|
+
const width = `--${theme.cssVarPrefix}-SearchBar-width`;
|
|
7841
|
+
return {
|
|
7842
|
+
[width]: ownerState.hideSelect ? "220px" : "300px",
|
|
7843
|
+
display: "flex",
|
|
7844
|
+
flexDirection: "row",
|
|
7845
|
+
width: `var(${width})`,
|
|
7846
|
+
backgroundColor: theme.vars.palette.background.surface,
|
|
7847
|
+
borderRadius: theme.vars.radius.sm,
|
|
7848
|
+
border: `1px solid ${theme.vars.palette.neutral.outlinedBorder}`,
|
|
7849
|
+
overflow: "hidden"
|
|
7850
|
+
};
|
|
7851
|
+
});
|
|
7852
|
+
var SearchBar = React54.forwardRef(function SearchBar2(inProps, ref) {
|
|
7853
|
+
const props = useThemeProps9({ props: inProps, name: "SearchBar" });
|
|
7854
|
+
const { hideSelect = false, options, value, onChange, onSearch, ...other } = props;
|
|
7855
|
+
const [selectVal, setSelectVal] = React54.useState(options?.[0]?.value ?? "");
|
|
7856
|
+
const [isHovered, setIsHovered] = React54.useState(false);
|
|
7857
|
+
const ownerState = { hideSelect };
|
|
7858
|
+
const selectedOption = options?.find((o) => o.value === selectVal);
|
|
7859
|
+
const placeholder = selectedOption?.placeholder ?? "";
|
|
7860
|
+
const handleSearch = () => {
|
|
7861
|
+
onSearch?.({ selectValue: hideSelect ? void 0 : selectVal, inputValue: value });
|
|
7862
|
+
};
|
|
7863
|
+
const handleClear = () => {
|
|
7864
|
+
onChange("");
|
|
7865
|
+
};
|
|
7866
|
+
const handleKeyDown = (e) => {
|
|
7867
|
+
if (e.key === "Enter") {
|
|
7868
|
+
handleSearch();
|
|
7869
|
+
}
|
|
7870
|
+
};
|
|
7871
|
+
return /* @__PURE__ */ React54.createElement(SearchBarRoot, { ref, ownerState, ...other }, !hideSelect && options && /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(
|
|
7872
|
+
Select,
|
|
7873
|
+
{
|
|
7874
|
+
variant: "plain",
|
|
7875
|
+
size: "sm",
|
|
7876
|
+
color: "neutral",
|
|
7877
|
+
value: selectVal,
|
|
7878
|
+
options,
|
|
7879
|
+
onChange: (_, newValue) => setSelectVal(newValue),
|
|
7880
|
+
sx: { flex: 1, maxWidth: "110px" },
|
|
7881
|
+
slotProps: {
|
|
7882
|
+
button: {
|
|
7883
|
+
style: { display: "block", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }
|
|
7884
|
+
}
|
|
7885
|
+
}
|
|
7886
|
+
}
|
|
7887
|
+
), /* @__PURE__ */ React54.createElement(Divider, { orientation: "vertical", sx: { height: "16px", alignSelf: "center" } })), /* @__PURE__ */ React54.createElement(
|
|
7888
|
+
Input,
|
|
7889
|
+
{
|
|
7890
|
+
variant: "plain",
|
|
7891
|
+
size: "sm",
|
|
7892
|
+
color: "neutral",
|
|
7893
|
+
placeholder,
|
|
7894
|
+
value,
|
|
7895
|
+
onChange: (e) => onChange(e.target.value),
|
|
7896
|
+
onKeyDown: handleKeyDown,
|
|
7897
|
+
sx: { flex: 1, minWidth: 0 },
|
|
7898
|
+
onMouseEnter: () => setIsHovered(true),
|
|
7899
|
+
onMouseLeave: () => setIsHovered(false),
|
|
7900
|
+
endDecorator: isHovered && value ? /* @__PURE__ */ React54.createElement(
|
|
7901
|
+
IconButton,
|
|
7902
|
+
{
|
|
7903
|
+
variant: "plain",
|
|
7904
|
+
size: "sm",
|
|
7905
|
+
color: "neutral",
|
|
7906
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
7907
|
+
onClick: handleClear,
|
|
7908
|
+
"aria-label": "Clear"
|
|
7909
|
+
},
|
|
7910
|
+
/* @__PURE__ */ React54.createElement(CloseRoundedIcon, null)
|
|
7911
|
+
) : void 0
|
|
7912
|
+
}
|
|
7913
|
+
), /* @__PURE__ */ React54.createElement(IconButton, { variant: "plain", size: "sm", color: "neutral", onClick: handleSearch, "aria-label": "Search" }, /* @__PURE__ */ React54.createElement(SearchRoundedIcon, null)));
|
|
7914
|
+
});
|
|
7915
|
+
SearchBar.displayName = "SearchBar";
|
|
7916
|
+
|
|
7831
7917
|
// src/components/Stepper/Stepper.tsx
|
|
7832
|
-
import
|
|
7918
|
+
import React55 from "react";
|
|
7833
7919
|
import {
|
|
7834
7920
|
Stepper as JoyStepper,
|
|
7835
7921
|
Step as JoyStep,
|
|
7836
7922
|
StepIndicator as JoyStepIndicator,
|
|
7837
7923
|
stepClasses,
|
|
7838
7924
|
stepIndicatorClasses,
|
|
7839
|
-
styled as
|
|
7925
|
+
styled as styled29
|
|
7840
7926
|
} from "@mui/joy";
|
|
7841
7927
|
import CheckIcon from "@mui/icons-material/Check";
|
|
7842
7928
|
import { motion as motion26 } from "framer-motion";
|
|
7843
|
-
var Step =
|
|
7929
|
+
var Step = styled29(JoyStep)({});
|
|
7844
7930
|
Step.displayName = "Step";
|
|
7845
|
-
var StepIndicator =
|
|
7931
|
+
var StepIndicator = styled29(JoyStepIndicator)({});
|
|
7846
7932
|
StepIndicator.displayName = "StepIndicator";
|
|
7847
|
-
var StyledStepper =
|
|
7933
|
+
var StyledStepper = styled29(JoyStepper)(({ theme }) => ({
|
|
7848
7934
|
"--StepIndicator-size": "24px",
|
|
7849
7935
|
"--Step-gap": theme.spacing(2),
|
|
7850
7936
|
"--joy-palette-success-solidBg": "var(--joy-palette-success-400)",
|
|
@@ -7865,7 +7951,7 @@ function Stepper(props) {
|
|
|
7865
7951
|
stepOrientation = "horizontal"
|
|
7866
7952
|
} = props;
|
|
7867
7953
|
const effectiveStepOrientation = orientation === "vertical" ? "horizontal" : stepOrientation;
|
|
7868
|
-
return /* @__PURE__ */
|
|
7954
|
+
return /* @__PURE__ */ React55.createElement(
|
|
7869
7955
|
MotionStepper,
|
|
7870
7956
|
{
|
|
7871
7957
|
orientation,
|
|
@@ -7904,23 +7990,23 @@ function Stepper(props) {
|
|
|
7904
7990
|
const completed = activeStep > i + 1;
|
|
7905
7991
|
const disabled = activeStep < i + 1;
|
|
7906
7992
|
const hasContent = step.label || step.extraContent;
|
|
7907
|
-
return /* @__PURE__ */
|
|
7993
|
+
return /* @__PURE__ */ React55.createElement(
|
|
7908
7994
|
Step,
|
|
7909
7995
|
{
|
|
7910
7996
|
key: `step-${i}`,
|
|
7911
|
-
indicator: /* @__PURE__ */
|
|
7997
|
+
indicator: /* @__PURE__ */ React55.createElement(StepIndicator, { variant: disabled ? "outlined" : "solid", color: disabled ? "neutral" : "primary" }, completed ? /* @__PURE__ */ React55.createElement(CheckIcon, null) : step.indicatorContent),
|
|
7912
7998
|
active,
|
|
7913
7999
|
completed,
|
|
7914
8000
|
disabled,
|
|
7915
8001
|
orientation: effectiveStepOrientation
|
|
7916
8002
|
},
|
|
7917
|
-
hasContent && /* @__PURE__ */
|
|
8003
|
+
hasContent && /* @__PURE__ */ React55.createElement(
|
|
7918
8004
|
Stack_default,
|
|
7919
8005
|
{
|
|
7920
8006
|
sx: orientation === "horizontal" && effectiveStepOrientation === "vertical" ? { alignItems: "center" } : {}
|
|
7921
8007
|
},
|
|
7922
|
-
step.label && /* @__PURE__ */
|
|
7923
|
-
step.extraContent && /* @__PURE__ */
|
|
8008
|
+
step.label && /* @__PURE__ */ React55.createElement(Typography_default, { level: "title-sm" }, step.label),
|
|
8009
|
+
step.extraContent && /* @__PURE__ */ React55.createElement(Typography_default, { level: "body-xs" }, step.extraContent)
|
|
7924
8010
|
)
|
|
7925
8011
|
);
|
|
7926
8012
|
})
|
|
@@ -7929,11 +8015,11 @@ function Stepper(props) {
|
|
|
7929
8015
|
Stepper.displayName = "Stepper";
|
|
7930
8016
|
|
|
7931
8017
|
// src/components/Switch/Switch.tsx
|
|
7932
|
-
import
|
|
7933
|
-
import { Switch as JoySwitch, styled as
|
|
8018
|
+
import React56 from "react";
|
|
8019
|
+
import { Switch as JoySwitch, styled as styled30, switchClasses } from "@mui/joy";
|
|
7934
8020
|
import { motion as motion27 } from "framer-motion";
|
|
7935
8021
|
var MotionSwitch = motion27(JoySwitch);
|
|
7936
|
-
var StyledThumb =
|
|
8022
|
+
var StyledThumb = styled30(motion27.div)({
|
|
7937
8023
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
7938
8024
|
display: "inline-flex",
|
|
7939
8025
|
justifyContent: "center",
|
|
@@ -7951,14 +8037,14 @@ var StyledThumb = styled29(motion27.div)({
|
|
|
7951
8037
|
right: "var(--Switch-thumbOffset)"
|
|
7952
8038
|
}
|
|
7953
8039
|
});
|
|
7954
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
8040
|
+
var Thumb = (props) => /* @__PURE__ */ React56.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
7955
8041
|
var spring = {
|
|
7956
8042
|
type: "spring",
|
|
7957
8043
|
stiffness: 700,
|
|
7958
8044
|
damping: 30
|
|
7959
8045
|
};
|
|
7960
8046
|
var Switch = (props) => {
|
|
7961
|
-
return /* @__PURE__ */
|
|
8047
|
+
return /* @__PURE__ */ React56.createElement(
|
|
7962
8048
|
MotionSwitch,
|
|
7963
8049
|
{
|
|
7964
8050
|
...props,
|
|
@@ -7972,21 +8058,21 @@ var Switch = (props) => {
|
|
|
7972
8058
|
Switch.displayName = "Switch";
|
|
7973
8059
|
|
|
7974
8060
|
// src/components/Tabs/Tabs.tsx
|
|
7975
|
-
import
|
|
8061
|
+
import React57, { forwardRef as forwardRef12 } from "react";
|
|
7976
8062
|
import {
|
|
7977
8063
|
Tabs as JoyTabs,
|
|
7978
8064
|
Tab as JoyTab,
|
|
7979
8065
|
TabList as JoyTabList,
|
|
7980
8066
|
TabPanel as JoyTabPanel,
|
|
7981
|
-
styled as
|
|
8067
|
+
styled as styled31,
|
|
7982
8068
|
tabClasses
|
|
7983
8069
|
} from "@mui/joy";
|
|
7984
|
-
var StyledTabs =
|
|
8070
|
+
var StyledTabs = styled31(JoyTabs)(({ theme }) => ({
|
|
7985
8071
|
backgroundColor: theme.palette.background.body
|
|
7986
8072
|
}));
|
|
7987
8073
|
var Tabs = StyledTabs;
|
|
7988
8074
|
Tabs.displayName = "Tabs";
|
|
7989
|
-
var StyledTab =
|
|
8075
|
+
var StyledTab = styled31(JoyTab)(({ theme }) => ({
|
|
7990
8076
|
gap: theme.spacing(2),
|
|
7991
8077
|
[`&:not(.${tabClasses.selected})`]: {
|
|
7992
8078
|
color: theme.palette.neutral[700]
|
|
@@ -7995,15 +8081,15 @@ var StyledTab = styled30(JoyTab)(({ theme }) => ({
|
|
|
7995
8081
|
backgroundColor: theme.palette.background.body
|
|
7996
8082
|
}
|
|
7997
8083
|
}));
|
|
7998
|
-
var Tab =
|
|
7999
|
-
return /* @__PURE__ */
|
|
8084
|
+
var Tab = forwardRef12(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
|
|
8085
|
+
return /* @__PURE__ */ React57.createElement(StyledTab, { ...props, ref }, startDecorator, children, endDecorator);
|
|
8000
8086
|
});
|
|
8001
8087
|
Tab.displayName = "Tab";
|
|
8002
8088
|
var TabList = JoyTabList;
|
|
8003
8089
|
var TabPanel = JoyTabPanel;
|
|
8004
8090
|
|
|
8005
8091
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
8006
|
-
import
|
|
8092
|
+
import React58 from "react";
|
|
8007
8093
|
import { CssBaseline, CssVarsProvider, checkboxClasses, extendTheme, inputClasses } from "@mui/joy";
|
|
8008
8094
|
var colorScheme = {
|
|
8009
8095
|
palette: {
|
|
@@ -8156,6 +8242,7 @@ var defaultTheme = extendTheme({
|
|
|
8156
8242
|
}
|
|
8157
8243
|
}
|
|
8158
8244
|
},
|
|
8245
|
+
SearchBar: {},
|
|
8159
8246
|
JoySelect: {
|
|
8160
8247
|
defaultProps: {
|
|
8161
8248
|
size: "sm"
|
|
@@ -8282,7 +8369,7 @@ var defaultTheme = extendTheme({
|
|
|
8282
8369
|
});
|
|
8283
8370
|
function ThemeProvider(props) {
|
|
8284
8371
|
const theme = props.theme || defaultTheme;
|
|
8285
|
-
return /* @__PURE__ */
|
|
8372
|
+
return /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React58.createElement(CssBaseline, null), props.children));
|
|
8286
8373
|
}
|
|
8287
8374
|
ThemeProvider.displayName = "ThemeProvider";
|
|
8288
8375
|
export {
|
|
@@ -8366,6 +8453,7 @@ export {
|
|
|
8366
8453
|
RadioGroup,
|
|
8367
8454
|
RadioList,
|
|
8368
8455
|
RadioTileGroup,
|
|
8456
|
+
SearchBar,
|
|
8369
8457
|
Select,
|
|
8370
8458
|
Sheet,
|
|
8371
8459
|
Skeleton2 as Skeleton,
|
|
@@ -8450,7 +8538,7 @@ export {
|
|
|
8450
8538
|
stepButtonClasses,
|
|
8451
8539
|
stepClasses2 as stepClasses,
|
|
8452
8540
|
stepperClasses,
|
|
8453
|
-
|
|
8541
|
+
styled32 as styled,
|
|
8454
8542
|
switchClasses2 as switchClasses,
|
|
8455
8543
|
tabListClasses,
|
|
8456
8544
|
tabPanelClasses,
|
|
@@ -8462,5 +8550,5 @@ export {
|
|
|
8462
8550
|
typographyClasses,
|
|
8463
8551
|
useColorScheme,
|
|
8464
8552
|
useTheme2 as useTheme,
|
|
8465
|
-
|
|
8553
|
+
useThemeProps10 as useThemeProps
|
|
8466
8554
|
};
|
package/dist/llms.txt
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
- [Radio](./components/inputs/RadioButton.md)
|
|
41
41
|
- [RadioList](./components/inputs/RadioList.md)
|
|
42
42
|
- [RadioTileGroup](./components/inputs/RadioTileGroup.md)
|
|
43
|
+
- [SearchBar](./components/inputs/SearchBar.md)
|
|
43
44
|
- [Select](./components/inputs/Select.md)
|
|
44
45
|
- [Slider](./components/inputs/Slider.md)
|
|
45
46
|
- [Switch](./components/inputs/Switch.md)
|