@codezee/sixtify-brahma 0.2.92 → 0.2.93

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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/packages/shared-components/dist/Card/Card.d.ts.map +1 -1
  3. package/packages/shared-components/dist/Card/Card.js +1 -1
  4. package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.d.ts +2 -1
  5. package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.d.ts.map +1 -1
  6. package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.js +2 -2
  7. package/packages/shared-components/dist/FormFields/CheckBox/CheckBox.d.ts +1 -0
  8. package/packages/shared-components/dist/FormFields/CheckBox/CheckBox.d.ts.map +1 -1
  9. package/packages/shared-components/dist/FormFields/RadioGroupField/RadioGroupField.d.ts +2 -1
  10. package/packages/shared-components/dist/FormFields/RadioGroupField/RadioGroupField.d.ts.map +1 -1
  11. package/packages/shared-components/dist/FormFields/RadioGroupField/RadioGroupField.js +3 -3
  12. package/packages/shared-components/dist/FormFields/Rating/Ratting.d.ts +4 -0
  13. package/packages/shared-components/dist/FormFields/Rating/Ratting.d.ts.map +1 -0
  14. package/packages/shared-components/dist/FormFields/Rating/Ratting.js +19 -0
  15. package/packages/shared-components/dist/FormFields/Rating/Skeleton.d.ts +6 -0
  16. package/packages/shared-components/dist/FormFields/Rating/Skeleton.d.ts.map +1 -0
  17. package/packages/shared-components/dist/FormFields/Rating/Skeleton.js +14 -0
  18. package/packages/shared-components/dist/FormFields/Rating/index.d.ts +2 -0
  19. package/packages/shared-components/dist/FormFields/Rating/index.d.ts.map +1 -0
  20. package/packages/shared-components/dist/FormFields/Rating/index.js +17 -0
  21. package/packages/shared-components/dist/FormFields/Rating/types.d.ts +9 -0
  22. package/packages/shared-components/dist/FormFields/Rating/types.d.ts.map +1 -0
  23. package/packages/shared-components/dist/FormFields/Rating/types.js +2 -0
  24. package/packages/shared-components/dist/FormFields/index.d.ts +1 -0
  25. package/packages/shared-components/dist/FormFields/index.d.ts.map +1 -1
  26. package/packages/shared-components/dist/FormFields/index.js +1 -0
  27. package/packages/shared-components/dist/utils/hooks/useDialogActions.d.ts +1 -1
  28. package/packages/shared-components/dist/utils/hooks/useDialogActions.d.ts.map +1 -1
  29. package/packages/shared-components/dist/utils/regex.d.ts +1 -0
  30. package/packages/shared-components/dist/utils/regex.d.ts.map +1 -1
  31. package/packages/shared-components/dist/utils/regex.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.92",
3
+ "version": "0.2.93",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,KAAK,SAAS,GAAG,iBAAiB,CAAC;IACjC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC,CAAC;AAEH,wBAAgB,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,QAAQ,CAAC,SAAS,CAAC,2CAwBtE"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,KAAK,SAAS,GAAG,iBAAiB,CAAC;IACjC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC,CAAC;AAEH,wBAAgB,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,QAAQ,CAAC,SAAS,CAAC,2CA0BtE"}
@@ -7,5 +7,5 @@ const PadBox_1 = require("../PadBox");
7
7
  function Card({ heading, children, action }) {
8
8
  const theme = (0, material_1.useTheme)();
9
9
  const { lightBlue } = theme.palette.app.color;
10
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { bgcolor: lightBlue[50], flex: 1, sx: { borderRadius: "5px" }, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: 2 }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "10px", children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { flexDirection: "row", alignItems: "center", justifyContent: "space-between", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", children: heading }), (0, jsx_runtime_1.jsx)(material_1.Box, { children: action })] }), children] }) }) }));
10
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { bgcolor: lightBlue[50], flex: 1, sx: { borderRadius: "5px" }, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: 2 }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "10px", children: [(heading || action) && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { flexDirection: "row", alignItems: "center", justifyContent: "space-between", children: [heading && (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", children: heading }), action && (0, jsx_runtime_1.jsx)(material_1.Box, { children: action })] })), children] }) }) }));
11
11
  }
@@ -21,6 +21,7 @@ export type AutocompleteProps<P extends FieldValues> = UseControllerProps<P> & O
21
21
  onAction?: () => void;
22
22
  isShowSelectAll?: boolean;
23
23
  isShowOptionsOnType?: boolean;
24
+ autoFocus?: boolean;
24
25
  isShowEmployeeData?: boolean;
25
26
  maxLimit?: number;
26
27
  renderOption?: (props: React.HTMLProps<HTMLLIElement>, option: Option, state: {
@@ -30,5 +31,5 @@ export type AutocompleteProps<P extends FieldValues> = UseControllerProps<P> & O
30
31
  defaultOption?: AutocompleteValue<Option, boolean, boolean, boolean>;
31
32
  disableClearable?: boolean;
32
33
  };
33
- export declare function Autocomplete<P extends FieldValues>({ control, defaultValue, name, required, label, multiple, disabled, options, rules, loading, helperText, error, withLabel, placeholder, freeSolo, isShowOptionsOnType, isShowSelectAll, isShowAvatar, isShowEmployeeData, shouldCloseOnSelect, onAction, renderOption, getOptionLabel, maxLimit, defaultOption, disableClearable, ...restProps }: AutocompleteProps<P>): import("react/jsx-runtime").JSX.Element;
34
+ export declare function Autocomplete<P extends FieldValues>({ control, defaultValue, name, required, label, multiple, disabled, options, rules, loading, helperText, error, withLabel, placeholder, freeSolo, isShowOptionsOnType, isShowSelectAll, isShowAvatar, isShowEmployeeData, shouldCloseOnSelect, onAction, renderOption, getOptionLabel, maxLimit, autoFocus, defaultOption, disableClearable, ...restProps }: AutocompleteProps<P>): import("react/jsx-runtime").JSX.Element;
34
35
  //# sourceMappingURL=Autocomplete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/FormFields/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,IAAI,oBAAoB,EAC1C,MAAM,eAAe,CAAC;AAmBvB,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAOzB,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,C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@@ -11,7 +11,7 @@ const Actions_1 = require("../../Actions");
11
11
  const Toast_1 = require("../../Toast");
12
12
  const CheckBox_styled_1 = require("../CheckBox/CheckBox.styled");
13
13
  const Skeleton_1 = require("./Skeleton");
14
- function Autocomplete({ control, defaultValue, name, required = false, label, multiple = false, disabled = false, options = [], rules, loading = false, helperText, error, withLabel = false, placeholder = "", freeSolo, isShowOptionsOnType = false, isShowSelectAll = true, isShowAvatar = false, isShowEmployeeData = false, shouldCloseOnSelect = false, onAction, renderOption, getOptionLabel, maxLimit, defaultOption, disableClearable = required ? true : false, ...restProps }) {
14
+ function Autocomplete({ control, defaultValue, name, required = false, label, multiple = false, disabled = false, options = [], rules, loading = false, helperText, error, withLabel = false, placeholder = "", freeSolo, isShowOptionsOnType = false, isShowSelectAll = true, isShowAvatar = false, isShowEmployeeData = false, shouldCloseOnSelect = false, onAction, renderOption, getOptionLabel, maxLimit, autoFocus = false, defaultOption, disableClearable = required ? true : false, ...restProps }) {
15
15
  const { field: { onChange, value, ...restField }, } = (0, react_hook_form_1.useController)({
16
16
  name,
17
17
  control,
@@ -161,7 +161,7 @@ function Autocomplete({ control, defaultValue, name, required = false, label, mu
161
161
  if (!multiple && selectedValue?.avatar && getOptionLabel) {
162
162
  startAdornment = ((0, jsx_runtime_1.jsx)(material_1.Box, { width: "20px", marginLeft: "10px", children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { src: selectedValue.avatar, alt: selectedValue.label, sx: { width: 24, height: 24 } }) }));
163
163
  }
164
- return ((0, jsx_runtime_1.jsx)(material_1.TextField, { ...params, placeholder: placeholder || `Select ${label}`, error: error, helperText: helperText, InputProps: {
164
+ return ((0, jsx_runtime_1.jsx)(material_1.TextField, { ...params, placeholder: placeholder || `Select ${label}`, error: error, autoFocus: autoFocus, helperText: helperText, InputProps: {
165
165
  ...params.InputProps,
166
166
  startAdornment,
167
167
  }, onChange: (e) => {
@@ -4,6 +4,7 @@ import { type ControllerRenderProps, type FieldValues, type UseControllerProps }
4
4
  export type CheckBoxProps<P extends FieldValues> = UseControllerProps<P> & Omit<Omit<MuiCheckboxProps, "checked">, keyof ControllerRenderProps<P>> & {
5
5
  loading?: boolean;
6
6
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
7
+ checked?: boolean;
7
8
  };
8
9
  export declare function CheckBox<P extends FieldValues>({ name, rules, control, defaultValue, size, loading, ...restCheckBoxProps }: CheckBoxProps<P>): import("react/jsx-runtime").JSX.Element;
9
10
  //# sourceMappingURL=CheckBox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckBox.d.ts","sourceRoot":"","sources":["../../../src/FormFields/CheckBox/CheckBox.tsx"],"names":[],"mappings":"AAAA,OAAiB,EACf,KAAK,aAAa,IAAI,gBAAgB,EACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAIzB,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GACtE,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,GAAG;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEJ,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAAE,EAC9C,IAAI,EACJ,KAAK,EACL,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,OAAe,EACf,GAAG,iBAAiB,EACrB,EAAE,aAAa,CAAC,CAAC,CAAC,2CAkBlB"}
1
+ {"version":3,"file":"CheckBox.d.ts","sourceRoot":"","sources":["../../../src/FormFields/CheckBox/CheckBox.tsx"],"names":[],"mappings":"AAAA,OAAiB,EACf,KAAK,aAAa,IAAI,gBAAgB,EACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAIzB,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GACtE,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,GAAG;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAAE,EAC9C,IAAI,EACJ,KAAK,EACL,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,OAAe,EACf,GAAG,iBAAiB,EACrB,EAAE,aAAa,CAAC,CAAC,CAAC,2CAkBlB"}
@@ -15,8 +15,9 @@ export type RadioGroupFieldProps<P extends FieldValues> = UseControllerProps<P>
15
15
  required?: boolean;
16
16
  direction?: StackOwnProps["direction"];
17
17
  sx?: SxProps;
18
+ isHorizontal?: boolean;
18
19
  containerProps?: StackProps;
19
20
  };
20
- export declare function RadioGroupField<P extends FieldValues>({ name, rules, label, control, options, defaultValue, size, color, loading, required, direction, sx, containerProps, ...restRadioButtonProps }: RadioGroupFieldProps<P>): import("react/jsx-runtime").JSX.Element;
21
+ export declare function RadioGroupField<P extends FieldValues>({ name, rules, label, control, options, defaultValue, size, color, loading, required, direction, sx, containerProps, isHorizontal, ...restRadioButtonProps }: RadioGroupFieldProps<P>): import("react/jsx-runtime").JSX.Element;
21
22
  export {};
22
23
  //# sourceMappingURL=RadioGroupField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroupField.d.ts","sourceRoot":"","sources":["../../../src/FormFields/RadioGroupField/RadioGroupField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AACvB,OAAc,EAAE,KAAK,UAAU,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAGzB,KAAK,OAAO,GAAG;IACb,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,WAAW,IACpD,kBAAkB,CAAC,CAAC,CAAC,GACnB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,GAAG;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,cAAc,CAAC,EAAE,UAAU,CAAC;CAC7B,CAAC;AAEN,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,EAAE,EACrD,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,IAAc,EACd,KAAmB,EACnB,OAAe,EACf,QAAgB,EAChB,SAAiB,EACjB,EAAO,EACP,cAAc,EACd,GAAG,oBAAoB,EACxB,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CA+DzB"}
1
+ {"version":3,"file":"RadioGroupField.d.ts","sourceRoot":"","sources":["../../../src/FormFields/RadioGroupField/RadioGroupField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AACvB,OAAc,EAAE,KAAK,UAAU,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAGzB,KAAK,OAAO,GAAG;IACb,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,WAAW,IACpD,kBAAkB,CAAC,CAAC,CAAC,GACnB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,GAAG;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,UAAU,CAAC;CAC7B,CAAC;AAEN,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,EAAE,EACrD,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,IAAc,EACd,KAAmB,EACnB,OAAe,EACf,QAAgB,EAChB,SAAiB,EACjB,EAAO,EACP,cAAc,EACd,YAAoB,EACpB,GAAG,oBAAoB,EACxB,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAmEzB"}
@@ -9,12 +9,12 @@ const material_1 = require("@mui/material");
9
9
  const Radio_1 = __importDefault(require("@mui/material/Radio"));
10
10
  const react_hook_form_1 = require("react-hook-form");
11
11
  const Skeleton_1 = require("./Skeleton");
12
- function RadioGroupField({ name, rules, label, control, options, defaultValue, size = "small", color = "secondary", loading = false, required = false, direction = "row", sx = {}, containerProps, ...restRadioButtonProps }) {
12
+ function RadioGroupField({ name, rules, label, control, options, defaultValue, size = "small", color = "secondary", loading = false, required = false, direction = "row", sx = {}, containerProps, isHorizontal = false, ...restRadioButtonProps }) {
13
13
  const { field: { value, onChange, ...restField }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
14
14
  if (loading) {
15
15
  return (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, {});
16
16
  }
17
- return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "5px", children: [label && ((0, jsx_runtime_1.jsx)(material_1.InputLabel, { sx: { fontSize: { xs: "14px", md: "16px" } }, required: required, children: label })), (0, jsx_runtime_1.jsx)(material_1.RadioGroup, { name: name, value: value, onChange: (_, event) => {
17
+ return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: isHorizontal ? "row" : "column", alignItems: isHorizontal ? "center" : undefined, gap: isHorizontal ? 1 : "5px", children: [label && ((0, jsx_runtime_1.jsx)(material_1.InputLabel, { sx: { fontSize: { xs: "14px", md: "16px" } }, required: required, children: label })), (0, jsx_runtime_1.jsx)(material_1.RadioGroup, { name: name, value: value, onChange: (_, event) => {
18
18
  if (event === "true") {
19
19
  onChange(true);
20
20
  }
@@ -24,7 +24,7 @@ function RadioGroupField({ name, rules, label, control, options, defaultValue, s
24
24
  else {
25
25
  onChange(event);
26
26
  }
27
- }, children: (0, jsx_runtime_1.jsx)(material_1.Stack, { gap: direction === "column" ? "5px" : "45px", direction: direction, ...containerProps, children: options?.map(({ label, values, disabled }, index) => {
27
+ }, children: (0, jsx_runtime_1.jsx)(material_1.Stack, { gap: direction === "column" ? "5px" : "10px", direction: direction, ...containerProps, children: options?.map(({ label, values, disabled }, index) => {
28
28
  return (
29
29
  // eslint-disable-next-line sonarjs/no-array-index-key
30
30
  (0, jsx_runtime_1.jsx)(material_1.Box, { width: "max-content", children: (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: values, control: (0, jsx_runtime_1.jsx)(Radio_1.default, { ...restField, ...restRadioButtonProps, color: color, size: size }), disabled: disabled, label: label, sx: sx }) }, index));
@@ -0,0 +1,4 @@
1
+ import { type FieldValues } from "react-hook-form";
2
+ import type { RatingProps } from "./types";
3
+ export declare function Rating<P extends FieldValues>({ control, name, defaultValue, label, rules, disabled, loading, direction, ...ratingProps }: RatingProps<P>): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=Ratting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ratting.d.ts","sourceRoot":"","sources":["../../../src/FormFields/Rating/Ratting.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,WAAW,EAAE,EAC5C,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,KAAU,EACV,KAAK,EACL,QAAQ,EACR,OAAe,EACf,SAAoB,EACpB,GAAG,WAAW,EACf,EAAE,WAAW,CAAC,CAAC,CAAC,2CA0ChB"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Rating = Rating;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const react_hook_form_1 = require("react-hook-form");
7
+ const Skeleton_1 = require("./Skeleton");
8
+ function Rating({ control, name, defaultValue, label = "", rules, disabled, loading = false, direction = "column", ...ratingProps }) {
9
+ const { field: { value, onChange, ...restField }, fieldState: { error }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
10
+ if (loading) {
11
+ return (0, jsx_runtime_1.jsx)(Skeleton_1.RatingSkeleton, { label: label });
12
+ }
13
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "10px", direction: direction, alignItems: direction === "row" ? "center" : "flex-start", children: [label && ((0, jsx_runtime_1.jsx)(material_1.InputLabel, { sx: {
14
+ minWidth: direction === "row" ? "120px" : "auto",
15
+ marginBottom: direction === "row" ? 0 : "auto",
16
+ }, children: label })), (0, jsx_runtime_1.jsx)(material_1.Rating, { disabled: disabled, value: value ?? null, onChange: (event, newValue) => {
17
+ onChange(newValue);
18
+ }, ...restField, ...ratingProps })] }), error && (0, jsx_runtime_1.jsx)(material_1.FormHelperText, { error: true, children: error?.message })] }));
19
+ }
@@ -0,0 +1,6 @@
1
+ type RatingSkeletonProps = {
2
+ label?: string;
3
+ };
4
+ export declare const RatingSkeleton: ({ label }: RatingSkeletonProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=Skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/FormFields/Rating/Skeleton.tsx"],"names":[],"mappings":"AAEA,KAAK,mBAAmB,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAIF,eAAO,MAAM,cAAc,GAAI,WAAW,mBAAmB,4CA2B5D,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RatingSkeleton = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const STAR_KEYS = ["star-1", "star-2", "star-3", "star-4", "star-5"];
7
+ const RatingSkeleton = ({ label }) => {
8
+ return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "10px", children: [label && ((0, jsx_runtime_1.jsx)(material_1.Skeleton, { width: 120, height: "23px", sx: {
9
+ transform: "scale(1)",
10
+ } })), (0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", gap: "5px", children: STAR_KEYS.map((key) => ((0, jsx_runtime_1.jsx)(material_1.Skeleton, { width: 30, height: 30, sx: {
11
+ transform: "scale(1)",
12
+ } }, key))) })] }));
13
+ };
14
+ exports.RatingSkeleton = RatingSkeleton;
@@ -0,0 +1,2 @@
1
+ export * from "./Ratting";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FormFields/Rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Ratting"), exports);
@@ -0,0 +1,9 @@
1
+ import { type RatingProps as MuiRatingProps } from "@mui/material";
2
+ import { type ControllerRenderProps, type FieldValues, type UseControllerProps } from "react-hook-form";
3
+ export type RatingProps<P extends FieldValues> = UseControllerProps<P> & Omit<MuiRatingProps, keyof ControllerRenderProps<P>> & {
4
+ label?: string;
5
+ loading?: boolean;
6
+ required?: boolean;
7
+ direction?: "row" | "column";
8
+ };
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/FormFields/Rating/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GACpE,IAAI,CAAC,cAAc,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,GAAG;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,6 +10,7 @@ export * from "./ListItemButton";
10
10
  export * from "./PasswordField";
11
11
  export * from "./PhoneInputField";
12
12
  export * from "./RadioGroupField";
13
+ export * from "./Rating";
13
14
  export * from "./SearchField";
14
15
  export * from "./Select";
15
16
  export * from "./SwitchField";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFields/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFields/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
@@ -26,6 +26,7 @@ __exportStar(require("./ListItemButton"), exports);
26
26
  __exportStar(require("./PasswordField"), exports);
27
27
  __exportStar(require("./PhoneInputField"), exports);
28
28
  __exportStar(require("./RadioGroupField"), exports);
29
+ __exportStar(require("./Rating"), exports);
29
30
  __exportStar(require("./SearchField"), exports);
30
31
  __exportStar(require("./Select"), exports);
31
32
  __exportStar(require("./SwitchField"), exports);
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- export type DialogTypes = "add" | "edit" | "delete" | "viewAttachment" | "deleteTemplate" | "editTemplate" | "addTemplate" | "addDepartment" | "addWorkType" | "addSubDepartment" | "addDocument" | "addGrade" | "addSkillType" | "addDesignation" | "cancel" | "saveAsDraft" | "history" | "view" | "action" | "updateShift" | "updateWeeklyOff" | "updateHoliday" | "configureLeave" | "approve" | "reject" | "cancelled" | "formulaBuilderDialog" | "revise" | "manageEmployeeAccess" | "saveTemplate" | "confirm" | "reset" | "addExistingEmployee" | "reviewAllEmployees" | "eligibleEmployees" | "saveAsDefault" | "bankRegister" | "applyLeave" | "providentFundReport" | "esicReport" | "professionalTaxReport" | "incomeTaxReport" | "lwfReport" | "approveOvertime" | "rejectOvertime" | "approveExit" | "rejectExit" | "approveLoan" | "rejectLoan" | "approveSalary" | "rejectSalary" | "approveBulkLeave" | "rejectBulkLeave" | "approveBulkOvertime" | "rejectBulkOvertime";
2
+ export type DialogTypes = "add" | "edit" | "delete" | "viewAttachment" | "deleteTemplate" | "editTemplate" | "addTemplate" | "addAuto" | "addDepartment" | "addWorkType" | "addSubDepartment" | "addDocument" | "addGrade" | "addSkillType" | "addDesignation" | "cancel" | "saveAsDraft" | "history" | "view" | "action" | "updateShift" | "updateWeeklyOff" | "updateHoliday" | "configureLeave" | "approve" | "reject" | "cancelled" | "formulaBuilderDialog" | "revise" | "manageEmployeeAccess" | "saveTemplate" | "confirm" | "reset" | "addExistingEmployee" | "reviewAllEmployees" | "eligibleEmployees" | "saveAsDefault" | "bankRegister" | "applyLeave" | "providentFundReport" | "esicReport" | "professionalTaxReport" | "incomeTaxReport" | "lwfReport" | "approveOvertime" | "rejectOvertime" | "approveExit" | "rejectExit" | "approveLoan" | "rejectLoan" | "approveSalary" | "rejectSalary" | "approveBulkLeave" | "rejectBulkLeave" | "approveBulkOvertime" | "rejectBulkOvertime";
3
3
  export type DialogRenderer = {
4
4
  [key in DialogTypes]?: ReactNode;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDialogActions.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useDialogActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,MAAM,GACN,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,aAAa,GACb,eAAe,GACf,aAAa,GACb,kBAAkB,GAClB,aAAa,GACb,UAAU,GACV,cAAc,GACd,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,SAAS,GACT,MAAM,GACN,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,SAAS,GACT,QAAQ,GACR,WAAW,GACX,sBAAsB,GACtB,QAAQ,GACR,sBAAsB,GACtB,cAAc,GACd,SAAS,GACT,OAAO,GACP,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,qBAAqB,GACrB,YAAY,GACZ,uBAAuB,GACvB,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;KAAG,GAAG,IAAI,WAAW,CAAC,CAAC,EAAE,SAAS;CAAE,CAAC;AAElE,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,wBAAgB,gBAAgB;;gCAGK,WAAW;;EAU/C"}
1
+ {"version":3,"file":"useDialogActions.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useDialogActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,MAAM,GACN,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,aAAa,GACb,SAAS,GACT,eAAe,GACf,aAAa,GACb,kBAAkB,GAClB,aAAa,GACb,UAAU,GACV,cAAc,GACd,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,SAAS,GACT,MAAM,GACN,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,SAAS,GACT,QAAQ,GACR,WAAW,GACX,sBAAsB,GACtB,QAAQ,GACR,sBAAsB,GACtB,cAAc,GACd,SAAS,GACT,OAAO,GACP,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,qBAAqB,GACrB,YAAY,GACZ,uBAAuB,GACvB,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;KAAG,GAAG,IAAI,WAAW,CAAC,CAAC,EAAE,SAAS;CAAE,CAAC;AAElE,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,wBAAgB,gBAAgB;;gCAGK,WAAW;;EAU/C"}
@@ -1,3 +1,4 @@
1
1
  export declare const monthYearRegex: RegExp;
2
2
  export declare const isoDateRegex: RegExp;
3
+ export declare const noSpecialCharacterRegex: RegExp;
3
4
  //# sourceMappingURL=regex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"regex.d.ts","sourceRoot":"","sources":["../../src/utils/regex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,QAAkB,CAAC;AAE9C,eAAO,MAAM,YAAY,QAAwB,CAAC"}
1
+ {"version":3,"file":"regex.d.ts","sourceRoot":"","sources":["../../src/utils/regex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,QAAkB,CAAC;AAE9C,eAAO,MAAM,YAAY,QAAwB,CAAC;AAElD,eAAO,MAAM,uBAAuB,QAAoB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isoDateRegex = exports.monthYearRegex = void 0;
3
+ exports.noSpecialCharacterRegex = exports.isoDateRegex = exports.monthYearRegex = void 0;
4
4
  exports.monthYearRegex = /^\d{4}-\d{2}$/;
5
5
  exports.isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
6
+ exports.noSpecialCharacterRegex = /^[a-zA-Z0-9 ]*$/;