@campxdev/react-blueprint 2.0.3 → 2.0.5

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';
@@ -11,5 +11,4 @@ export interface FormActionsProps {
11
11
  stackProps?: StackProps;
12
12
  showTopBorder?: boolean;
13
13
  }
14
- declare function FormActions({ submitButtonProps, cancelButtonProps, stackProps, showTopBorder, }: FormActionsProps): import("react/jsx-runtime").JSX.Element;
15
- export default FormActions;
14
+ export declare const FormActions: ({ submitButtonProps, cancelButtonProps, stackProps, showTopBorder, }: FormActionsProps) => import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -1161,6 +1175,7 @@ interface FormActionsProps {
1161
1175
  stackProps?: StackProps;
1162
1176
  showTopBorder?: boolean;
1163
1177
  }
1178
+ declare const FormActions: ({ submitButtonProps, cancelButtonProps, stackProps, showTopBorder, }: FormActionsProps) => react_jsx_runtime.JSX.Element;
1164
1179
 
1165
1180
  interface FormControlWrapperProps<T extends FieldValues = FieldValues> {
1166
1181
  control: Control<T>;
@@ -1192,6 +1207,14 @@ declare const IconButtons: {
1192
1207
  RedirectButton: typeof RedirectButton;
1193
1208
  };
1194
1209
 
1210
+ declare const LabelWrapper: ({ required, name, children, containerProps, label, }: {
1211
+ required: boolean;
1212
+ name?: string;
1213
+ label?: ReactNode | string;
1214
+ children: ReactNode;
1215
+ containerProps?: StackProps;
1216
+ }) => react_jsx_runtime.JSX.Element;
1217
+
1195
1218
  type MultiCheckboxProps = {
1196
1219
  containerProps?: StackProps;
1197
1220
  options: Array<{
@@ -1619,5 +1642,5 @@ declare const splitBreadcrumbIdSlug: (param: string) => {
1619
1642
  declare const isLocal: boolean;
1620
1643
  declare const isDevelopment: boolean;
1621
1644
 
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 };
1645
+ 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, FormActions, 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 };
1646
+ 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.3",
3
+ "version": "2.0.5",
4
4
  "description": "React UI component library for CampX applications",
5
5
  "author": "CampX",
6
6
  "license": "MIT",