@campxdev/react-blueprint 2.0.2 → 2.0.4

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.
@@ -10,5 +10,5 @@ interface ChipsProps {
10
10
  singleSelection?: boolean;
11
11
  toggle?: boolean;
12
12
  }
13
- export default function Chips({ list, selected: _selected, onSelected, direction, singleSelection, toggle, }: ChipsProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare const Chips: ({ list, selected: _selected, onSelected, direction, singleSelection, toggle, }: ChipsProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export {};
@@ -1,3 +1,4 @@
1
+ export * from './Accordion/Accordion';
1
2
  export * from './AccordionGroup/AccordionGroup';
2
3
  export * from './ActivityLogView/ActivityLogView';
3
4
  export * from './Avatar/Avatar';
@@ -6,6 +6,7 @@ export * from './FormActions/FormActions';
6
6
  export * from './FormControlWrapper/FormControlWrapper';
7
7
  export * from './FormWrapper/FormWrapper';
8
8
  export * from './IconButtons/IconButtons';
9
+ export * from './LabelWrapper/LabelWrapper';
9
10
  export * from './MultiCheckBox/MultiCheckBox';
10
11
  export * from './PasswordField/PasswordField';
11
12
  export * from './RadioGroup/RadioGroup';
@@ -1,5 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
- import Chips from '../../components/DataDisplay/Chips/Chips';
2
+ import { Chips } from '../../components/export';
3
3
  declare const _default: Meta<typeof Chips>;
4
4
  export default _default;
5
5
  export declare const Default: {
package/dist/index.d.ts CHANGED
@@ -914,6 +914,7 @@ type AccordionProps = {
914
914
  errorKeys?: string[];
915
915
  expanded?: boolean | number;
916
916
  } & Omit<AccordionProps$1, 'children' | 'content' | 'title' | 'index' | 'expanded' | 'actions'>;
917
+ declare const Accordion: (props: AccordionProps) => react_jsx_runtime.JSX.Element;
917
918
 
918
919
  type AccordionGroupProps = {
919
920
  data: AccordionProps[];
@@ -993,6 +994,19 @@ interface CardProps {
993
994
  }
994
995
  declare const Card: ({ title, titleImgIcon, caption, status, footer, fields, imageSrc, statusSx, cardSx, headerSx, moreOptions, titleProps, captionProps, icon, children, menu, }: CardProps) => react_jsx_runtime.JSX.Element;
995
996
 
997
+ interface ChipsProps {
998
+ list: {
999
+ label: string | ReactNode;
1000
+ value: string | number;
1001
+ }[];
1002
+ selected: string[] | string | number;
1003
+ onSelected: (selected: string[] | string | number) => void;
1004
+ direction?: 'row' | 'column';
1005
+ singleSelection?: boolean;
1006
+ toggle?: boolean;
1007
+ }
1008
+ declare const Chips: ({ list, selected: _selected, onSelected, direction, singleSelection, toggle, }: ChipsProps) => react_jsx_runtime.JSX.Element;
1009
+
996
1010
  type DataTableProps = {
997
1011
  limit?: number;
998
1012
  offset?: number;
@@ -1192,6 +1206,14 @@ declare const IconButtons: {
1192
1206
  RedirectButton: typeof RedirectButton;
1193
1207
  };
1194
1208
 
1209
+ declare const LabelWrapper: ({ required, name, children, containerProps, label, }: {
1210
+ required: boolean;
1211
+ name?: string;
1212
+ label?: ReactNode | string;
1213
+ children: ReactNode;
1214
+ containerProps?: StackProps;
1215
+ }) => react_jsx_runtime.JSX.Element;
1216
+
1195
1217
  type MultiCheckboxProps = {
1196
1218
  containerProps?: StackProps;
1197
1219
  options: Array<{
@@ -1619,5 +1641,5 @@ declare const splitBreadcrumbIdSlug: (param: string) => {
1619
1641
  declare const isLocal: boolean;
1620
1642
  declare const isDevelopment: boolean;
1621
1643
 
1622
- export { AccordionGroup, ActivityLogView, Alert, AnimatedGIFs, AppHeader, BarChart, Breadcrumbs, Button, Card, CellContainer, CenterBox, CircularAvatar, ConfirmDialog, DataTable, DatePicker, DateTimePicker, DensitySelector, Dialog, DialogButton, DropDownButton, DropDownIcon, DropdownMenu, DropdownMenuItem, EditableDataTable, EditableTableCore, EmptyIllustration, FileUpload, FloatingContent, FooterContainerContainer, FormControlWrapper, FormWrapper, IconButtons, Icons, InternalServerError, LineChart, MuiThemeProvider, MultiCheckBox, NoInterneConnection, NoItemFound, PageContent, PageHeader, PageNotFound, PasswordField, PieChart, PreviewFiles, RadioGroup, SearchBar, Select, SidePanel, SidePanelVariables, Sidebar, SingleCheckBox, SingleSelect, Snackbar, Spinner, SquareAvatar, StatusCard, Stepper, StyledContainer, Svgs, Switch, TableColumnsSelector, TableColumnsSelectorMenuFooter, TabsContainer, TabsLayout, TextField, TimePicker, Timeline, ToolTipContent, Tooltip, Tutorial, Typography, UnAuthorized, UploadDialog, createBreadcrumbIdSlug, darkTheme, getBreadcrumbsCharacter, isDevelopment, isLocal, lightTheme, reactBlueprintReducers, splitBreadcrumbIdSlug, usePageHeader, useParams, useUrlParams };
1623
- export type { Activity, ActivityAction, AlertProps, AppHeaderProps, BarChartProps, BreadcrumbsProps, ButtonConfig, ButtonProps, CardProps, CheckboxProps, CircularAvatarProps, ConfirmDialogProps, ConfirmDialogType, DataTableProps, DensitySelectorProps, DialogButtonProps, DialogProps, DropdownMenuItemProps, DropdownMenuProps, EditableDataTableProps, FileUploadProps, FloatingContainerProps, FormActionsProps, IconComponent, IconProps, IconsType, LineChartProps, MultiCheckboxProps, PageContentProps, PasswordFieldProps, PieChartProps, PreviewFilesProps, RadioGroupProps, SearchBarProps, SelectProps, Severity, SideMenuItemProps, SidePanelProps, SingleSelectProps, SnackbarProps, SquareAvatarProps, StatusCardProps, SubMenuItemProps, SwitchProps, TableColumnsSelectorProps, TabsContainerProps, TextFieldProps, TimelineItems, TimelineProps, TooltipContentProps, TooltipProps, TypographyProps, UploadDialogProps };
1644
+ export { Accordion, AccordionGroup, ActivityLogView, Alert, AnimatedGIFs, AppHeader, BarChart, Breadcrumbs, Button, Card, CellContainer, CenterBox, Chips, CircularAvatar, ConfirmDialog, DataTable, DatePicker, DateTimePicker, DensitySelector, Dialog, DialogButton, DropDownButton, DropDownIcon, DropdownMenu, DropdownMenuItem, EditableDataTable, EditableTableCore, EmptyIllustration, FileUpload, FloatingContent, FooterContainerContainer, FormControlWrapper, FormWrapper, IconButtons, Icons, InternalServerError, LabelWrapper, LineChart, MuiThemeProvider, MultiCheckBox, NoInterneConnection, NoItemFound, PageContent, PageHeader, PageNotFound, PasswordField, PieChart, PreviewFiles, RadioGroup, SearchBar, Select, SidePanel, SidePanelVariables, Sidebar, SingleCheckBox, SingleSelect, Snackbar, Spinner, SquareAvatar, StatusCard, Stepper, StyledContainer, Svgs, Switch, TableColumnsSelector, TableColumnsSelectorMenuFooter, TabsContainer, TabsLayout, TextField, TimePicker, Timeline, ToolTipContent, Tooltip, Tutorial, Typography, UnAuthorized, UploadDialog, createBreadcrumbIdSlug, darkTheme, getBreadcrumbsCharacter, isDevelopment, isLocal, lightTheme, reactBlueprintReducers, splitBreadcrumbIdSlug, usePageHeader, useParams, useUrlParams };
1645
+ export type { AccordionProps, Activity, ActivityAction, AlertProps, AppHeaderProps, BarChartProps, BreadcrumbsProps, ButtonConfig, ButtonProps, CardProps, CheckboxProps, CircularAvatarProps, ConfirmDialogProps, ConfirmDialogType, DataTableProps, DensitySelectorProps, DialogButtonProps, DialogProps, DropdownMenuItemProps, DropdownMenuProps, EditableDataTableProps, FileUploadProps, FloatingContainerProps, FormActionsProps, IconComponent, IconProps, IconsType, LineChartProps, MultiCheckboxProps, PageContentProps, PasswordFieldProps, PieChartProps, PreviewFilesProps, RadioGroupProps, SearchBarProps, SelectProps, Severity, SideMenuItemProps, SidePanelProps, SingleSelectProps, SnackbarProps, SquareAvatarProps, StatusCardProps, SubMenuItemProps, SwitchProps, TableColumnsSelectorProps, TabsContainerProps, TextFieldProps, TimelineItems, TimelineProps, TooltipContentProps, TooltipProps, TypographyProps, UploadDialogProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "React UI component library for CampX applications",
5
5
  "author": "CampX",
6
6
  "license": "MIT",
@@ -30,13 +30,13 @@
30
30
  "prepare": "npm run build"
31
31
  },
32
32
  "peerDependencies": {
33
- "@emotion/react": "^11.13.0",
34
- "@emotion/styled": "^11.13.0",
35
- "@mui/icons-material": "^6.1.5",
36
- "@mui/lab": "^6.0.0-beta.16",
37
- "@mui/material": "^6.1.5",
38
- "@mui/x-data-grid": "^7.22.1",
39
- "@mui/x-date-pickers": "^7.22.1",
33
+ "@emotion/react": "^11.14.0",
34
+ "@emotion/styled": "^11.14.0",
35
+ "@mui/icons-material": "^7.0.2",
36
+ "@mui/lab": "^7.0.0-beta.11",
37
+ "@mui/material": "^7.0.2",
38
+ "@mui/x-data-grid": "^8.1.0",
39
+ "@mui/x-date-pickers": "^8.1.0",
40
40
  "react": "^18.3.0",
41
41
  "react-dom": "^18.3.0",
42
42
  "react-router-dom": "^6.24.0"