@homefile/components-v2 2.8.23 → 2.8.24

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.
@@ -1,2 +1,2 @@
1
1
  import { ItemSubTypeSelectI } from '../../interfaces';
2
- export declare const ItemSubTypeSelect: ({ handleSelectSubType, subTypes, initialSubType, label, }: ItemSubTypeSelectI) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ItemSubTypeSelect: ({ onSelectSubType, subTypes, initialSubType, label, }: ItemSubTypeSelectI) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box, Flex, Text } from '@chakra-ui/react';
3
3
  import { SelectInput } from '..';
4
- export const ItemSubTypeSelect = ({ handleSelectSubType, subTypes, initialSubType, label, }) => {
5
- return (_jsx(Box, { bg: "lightBlue.1", py: "1rem", w: "100%", children: initialSubType && (_jsxs(Flex, { alignItems: "center", justifyContent: "flex-start", children: [label && _jsx(Text, { p: ".5rem", children: label }), _jsx(SelectInput, { handleClick: handleSelectSubType, initialValue: initialSubType.name, items: subTypes })] })) }));
4
+ export const ItemSubTypeSelect = ({ onSelectSubType, subTypes, initialSubType, label, }) => {
5
+ return (_jsx(Box, { bg: "lightBlue.1", py: "1rem", w: "100%", children: initialSubType && (_jsxs(Flex, { alignItems: "center", justifyContent: "flex-start", children: [label && _jsx(Text, { p: ".5rem", children: label }), _jsx(SelectInput, { handleClick: onSelectSubType, initialValue: initialSubType.name, items: subTypes })] })) }));
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { SelectItemI } from '..';
2
2
  export interface ItemSubTypeSelectI {
3
- handleSelectSubType: (form: SelectItemI | string) => void;
3
+ onSelectSubType: (form: SelectItemI | string) => void;
4
4
  subTypes: SelectItemI[];
5
5
  initialSubType: SelectItemI;
6
6
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.8.23",
3
+ "version": "2.8.24",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -3,7 +3,7 @@ import { SelectInput } from '@/components'
3
3
  import { ItemSubTypeSelectI } from '@/interfaces'
4
4
 
5
5
  export const ItemSubTypeSelect = ({
6
- handleSelectSubType,
6
+ onSelectSubType,
7
7
  subTypes,
8
8
  initialSubType,
9
9
  label,
@@ -14,7 +14,7 @@ export const ItemSubTypeSelect = ({
14
14
  <Flex alignItems="center" justifyContent="flex-start">
15
15
  {label && <Text p=".5rem">{label}</Text>}
16
16
  <SelectInput
17
- handleClick={handleSelectSubType}
17
+ handleClick={onSelectSubType}
18
18
  initialValue={initialSubType.name}
19
19
  items={subTypes}
20
20
  />
@@ -1,8 +1,8 @@
1
1
  import { SelectItemI } from '@/interfaces'
2
2
 
3
3
  export interface ItemSubTypeSelectI {
4
- handleSelectSubType: (form: SelectItemI | string) => void
4
+ onSelectSubType: (form: SelectItemI | string) => void
5
5
  subTypes: SelectItemI[]
6
6
  initialSubType: SelectItemI
7
7
  label?: string
8
- }
8
+ }