chop-logic-components 2.4.0 → 2.4.1

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 (82) hide show
  1. package/dist/assets/icons/index.d.ts +1 -1
  2. package/dist/atoms/grid/body/GridBody.d.ts +1 -1
  3. package/dist/atoms/grid/column-group/GridColumnGroup.d.ts +1 -1
  4. package/dist/atoms/grid/head/GridHead.d.ts +1 -1
  5. package/dist/atoms/header/Header.d.ts +1 -1
  6. package/dist/atoms/icon/Icon.d.ts +1 -1
  7. package/dist/atoms/index.d.ts +14 -14
  8. package/dist/atoms/input/inner-button/InnerButton.d.ts +1 -1
  9. package/dist/atoms/input/multi-select/Combobox.d.ts +1 -1
  10. package/dist/atoms/input/multi-select/Dropdown.d.ts +1 -1
  11. package/dist/atoms/input/multi-select/Option.d.ts +1 -1
  12. package/dist/atoms/input/select/combobox/Combobox.d.ts +1 -1
  13. package/dist/atoms/input/select/dropdown/Dropdown.d.ts +1 -1
  14. package/dist/atoms/input/select/option/Option.d.ts +1 -1
  15. package/dist/atoms/loader/Loader.d.ts +1 -1
  16. package/dist/atoms/loader/__docs__/Loader.example.d.ts +1 -1
  17. package/dist/atoms/menu/item/MenuItem.d.ts +1 -1
  18. package/dist/atoms/menu/leaf/MenuLeaf.d.ts +1 -1
  19. package/dist/atoms/menu/sub-menu/SubMenu.d.ts +1 -1
  20. package/dist/atoms/tabs/button/TabButton.d.ts +1 -1
  21. package/dist/atoms/tabs/content/TabContent.d.ts +1 -1
  22. package/dist/atoms/tabs/list/TabList.d.ts +1 -1
  23. package/dist/atoms/tooltip/Tooltip.d.ts +1 -1
  24. package/dist/atoms/tooltip/__docs__/Tooltip.example.d.ts +1 -1
  25. package/dist/atoms/tooltip/__docs__/Tooltip.stories.d.ts +1 -1
  26. package/dist/chop-logic-components.css +1 -1
  27. package/dist/contexts/form/context.d.ts +1 -1
  28. package/dist/contexts/theme/provider.d.ts +1 -1
  29. package/dist/hooks/index.d.ts +4 -4
  30. package/dist/hooks/use-container-dimensions/use-container-dimensions.d.ts +1 -1
  31. package/dist/index.cjs.js +4 -4
  32. package/dist/index.cjs.js.map +1 -1
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.es.js +765 -767
  35. package/dist/index.es.js.map +1 -1
  36. package/dist/models/button.d.ts +1 -1
  37. package/dist/models/dialog.d.ts +1 -1
  38. package/dist/models/header.d.ts +1 -1
  39. package/dist/models/icon.d.ts +1 -1
  40. package/dist/models/index.d.ts +1 -1
  41. package/dist/models/tabs.d.ts +1 -1
  42. package/dist/models/tooltip.d.ts +1 -1
  43. package/dist/molecules/index.d.ts +1 -1
  44. package/dist/molecules/inputs/button/Button.d.ts +1 -1
  45. package/dist/molecules/inputs/button/__docs__/Button.example.d.ts +1 -1
  46. package/dist/molecules/inputs/button/__docs__/Button.stories.d.ts +3 -3
  47. package/dist/molecules/inputs/checkbox/Checkbox.d.ts +1 -1
  48. package/dist/molecules/inputs/checkbox/__docs__/Checkbox.example.d.ts +1 -1
  49. package/dist/molecules/inputs/checkbox/__docs__/Checkbox.stories.d.ts +3 -3
  50. package/dist/molecules/inputs/multi-select/MultiSelect.d.ts +1 -1
  51. package/dist/molecules/inputs/multi-select/__docs__/MultiSelect.example.d.ts +1 -1
  52. package/dist/molecules/inputs/multi-select/__docs__/MultiSelect.stories.d.ts +3 -3
  53. package/dist/molecules/inputs/numeric/NumericInput.controller.d.ts +1 -1
  54. package/dist/molecules/inputs/numeric/NumericInput.d.ts +2 -2
  55. package/dist/molecules/inputs/numeric/__docs__/NumericInput.example.d.ts +1 -1
  56. package/dist/molecules/inputs/select/Select.d.ts +1 -1
  57. package/dist/molecules/inputs/select/__docs__/Select.example.d.ts +1 -1
  58. package/dist/molecules/inputs/text/TextInput.controller.d.ts +1 -1
  59. package/dist/molecules/inputs/text/TextInput.d.ts +1 -1
  60. package/dist/molecules/inputs/text/__docs__/TextInput.example.d.ts +1 -1
  61. package/dist/organisms/alert/Alert.d.ts +1 -1
  62. package/dist/organisms/alert/__docs__/Alert.example.d.ts +1 -1
  63. package/dist/organisms/dialog/Dialog.d.ts +1 -1
  64. package/dist/organisms/dialog/__docs__/Dialog.example.d.ts +2 -3
  65. package/dist/organisms/dialog/__docs__/Dialog.stories.d.ts +3 -3
  66. package/dist/organisms/form/Form.controller.d.ts +1 -1
  67. package/dist/organisms/form/Form.d.ts +1 -1
  68. package/dist/organisms/form/__docs__/Form.example.d.ts +1 -1
  69. package/dist/organisms/form/__docs__/Form.stories.d.ts +3 -3
  70. package/dist/organisms/grid/Grid.d.ts +1 -1
  71. package/dist/organisms/grid/Grid.helpers.d.ts +1 -1
  72. package/dist/organisms/grid/__docs__/Grid.example.d.ts +1 -1
  73. package/dist/organisms/grid/__docs__/Grid.stories.d.ts +3 -3
  74. package/dist/organisms/index.d.ts +2 -2
  75. package/dist/organisms/menu/Menu.d.ts +1 -1
  76. package/dist/organisms/menu/__docs__/Menu.example.d.ts +1 -1
  77. package/dist/organisms/menu/__docs__/Menu.stories.d.ts +1 -1
  78. package/dist/organisms/tabs/Tabs.d.ts +1 -1
  79. package/dist/organisms/tabs/__docs__/Tabs.example.d.ts +1 -1
  80. package/dist/utils/handle-dropdown-list-key-press.d.ts +1 -1
  81. package/dist/utils/index.d.ts +1 -1
  82. package/package.json +2 -1
@@ -1,6 +1,6 @@
1
+ import { ChopLogicIconName } from '../../enums';
1
2
  import { ChopLogicSVGElementProps } from '../../models';
2
3
  import { ReactElement } from 'react';
3
- import { ChopLogicIconName } from '../../enums';
4
4
  type ChopLogicIcons = {
5
5
  [key in ChopLogicIconName]: ({ title, ...rest }: ChopLogicSVGElementProps) => ReactElement;
6
6
  };
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicGridColumn, ChopLogicGridItem, RenderDataItemCallback } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  type Props = {
4
4
  data: ChopLogicGridItem[];
5
5
  columns: ChopLogicGridColumn[];
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicGridColumn } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  export declare const GridColumnGroup: React.FC<{
4
4
  columns: ChopLogicGridColumn[];
5
5
  selectable: boolean;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicGridColumn } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  type ChopLogicGridHeadProps = {
4
4
  columns: ChopLogicGridColumn[];
5
5
  gridId: string;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
1
  import { ChopLogicHeaderProps } from '../../models';
2
+ import { FC } from 'react';
3
3
  declare const Header: FC<ChopLogicHeaderProps>;
4
4
  export default Header;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicIconProps } from '../../models';
2
+ import { default as React } from 'react';
3
3
  declare const ChopLogicIcon: React.FC<ChopLogicIconProps>;
4
4
  export default ChopLogicIcon;
@@ -1,22 +1,22 @@
1
+ export { GridBody } from './grid/body/GridBody';
2
+ export { GridColumnGroup } from './grid/column-group/GridColumnGroup';
3
+ export { GridHead } from './grid/head/GridHead';
1
4
  export { ErrorMessage } from './input/error-message/ErrorMessage';
2
- export { Label } from './input/label/Label';
3
- export { Input } from './input/input/Input';
4
- export { SecondaryButton } from './input/secondary-button/SecondaryButton';
5
- export { PrimaryButton } from './input/primary-button/PrimaryButton';
6
5
  export { IconButton } from './input/icon-button/IconButton';
7
6
  export { InnerButton } from './input/inner-button/InnerButton';
8
- export { GridBody } from './grid/body/GridBody';
9
- export { GridHead } from './grid/head/GridHead';
10
- export { GridColumnGroup } from './grid/column-group/GridColumnGroup';
11
- export { TabList } from './tabs/list/TabList';
12
- export { TabContent } from './tabs/content/TabContent';
13
- export { MenuItem } from './menu/item/MenuItem';
14
- export { SelectCombobox } from './input/select/combobox/Combobox';
15
- export { SelectDropdown } from './input/select/dropdown/Dropdown';
7
+ export { Input } from './input/input/Input';
8
+ export { Label } from './input/label/Label';
16
9
  export { MultiSelectCombobox } from './input/multi-select/Combobox';
17
10
  export { MultiSelectDropdown } from './input/multi-select/Dropdown';
11
+ export { PrimaryButton } from './input/primary-button/PrimaryButton';
12
+ export { SecondaryButton } from './input/secondary-button/SecondaryButton';
13
+ export { SelectCombobox } from './input/select/combobox/Combobox';
14
+ export { SelectDropdown } from './input/select/dropdown/Dropdown';
15
+ export { MenuItem } from './menu/item/MenuItem';
16
+ export { TabContent } from './tabs/content/TabContent';
17
+ export { TabList } from './tabs/list/TabList';
18
+ export { default as ChopLogicHeader } from './header/Header';
18
19
  export { default as ChopLogicIcon } from './icon/Icon';
19
20
  export { default as ChopLogicLoader } from './loader/Loader';
20
- export { default as ChopLogicTooltip } from './tooltip/Tooltip';
21
21
  export { default as ChopLogicPortal } from './portal/Portal';
22
- export { default as ChopLogicHeader } from './header/Header';
22
+ export { default as ChopLogicTooltip } from './tooltip/Tooltip';
@@ -1,5 +1,5 @@
1
- import { default as React, ButtonHTMLAttributes } from 'react';
2
1
  import { ChopLogicIconName } from '../../../enums';
2
+ import { default as React, ButtonHTMLAttributes } from 'react';
3
3
  type Props = {
4
4
  label?: string;
5
5
  icon?: ChopLogicIconName;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicMultiSelectValue } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  type Props = {
4
4
  opened: boolean;
5
5
  disabled: boolean;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicMultiSelectValue } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  type Props = {
4
4
  options: ChopLogicMultiSelectValue[];
5
5
  opened: boolean;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicMultiSelectValue } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  type Props = {
4
4
  value: ChopLogicMultiSelectValue;
5
5
  onSelect: (id: string) => void;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicSelectValue } from '../../../../models';
2
+ import { default as React } from 'react';
3
3
  type Props = {
4
4
  opened: boolean;
5
5
  disabled: boolean;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicSelectValue } from '../../../../models';
2
+ import { default as React } from 'react';
3
3
  type Props = {
4
4
  options: ChopLogicSelectValue[];
5
5
  opened: boolean;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicSelectValue } from '../../../../models';
2
+ import { default as React } from 'react';
3
3
  type Props = {
4
4
  value: ChopLogicSelectValue;
5
5
  selected: boolean;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicLoaderProps } from '../../models';
2
+ import { default as React } from 'react';
3
3
  declare const ChopLogicLoader: React.FC<ChopLogicLoaderProps>;
4
4
  export default ChopLogicLoader;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicLoaderProps } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  export declare const LoaderExample: React.FC<ChopLogicLoaderProps>;
@@ -1,6 +1,6 @@
1
- import { default as React, PropsWithChildren } from 'react';
2
1
  import { ChopLogicOrientationMode } from '../../../enums';
3
2
  import { ChopLogicMenuItem } from '../../../models';
3
+ import { default as React, PropsWithChildren } from 'react';
4
4
  type Props = PropsWithChildren & {
5
5
  item: ChopLogicMenuItem;
6
6
  mode: ChopLogicOrientationMode;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicMenuItem } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  export declare const MenuLeaf: ({ item }: {
4
4
  item: ChopLogicMenuItem;
5
5
  }) => React.ReactElement;
@@ -1,6 +1,6 @@
1
- import { default as React, PropsWithChildren } from 'react';
2
1
  import { ChopLogicOrientationMode } from '../../../enums';
3
2
  import { ChopLogicMenuItem } from '../../../models';
3
+ import { default as React, PropsWithChildren } from 'react';
4
4
  type Props = PropsWithChildren & {
5
5
  item: ChopLogicMenuItem;
6
6
  isSubMenuOpened: boolean;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicOrientationMode } from '../../../enums';
2
+ import { default as React } from 'react';
3
3
  type Props = {
4
4
  title: string;
5
5
  tabId: string;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicTabItem } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  export declare const TabContent: React.FC<{
4
4
  tabs: ChopLogicTabItem[];
5
5
  selectedTabId: string;
@@ -1,6 +1,6 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicOrientationMode } from '../../../enums';
3
2
  import { ChopLogicTabItem } from '../../../models';
3
+ import { default as React } from 'react';
4
4
  type ChopLogicTabListProps = {
5
5
  tabs: ChopLogicTabItem[];
6
6
  tabIds: string[];
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicTooltipProps } from '../../models';
2
+ import { default as React } from 'react';
3
3
  declare const ChopLogicTooltip: React.FC<ChopLogicTooltipProps>;
4
4
  export default ChopLogicTooltip;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { ChopLogicTooltipProps } from '../../../models';
2
+ import { default as React } from 'react';
3
3
  export declare const TooltipExample: React.FC<ChopLogicTooltipProps>;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '../../../storybook/react-vite';
2
1
  import { ChopLogicTooltip } from '../..';
2
+ import { Meta, StoryObj } from '../../../storybook/react-vite';
3
3
  declare const meta: Meta<typeof ChopLogicTooltip>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof ChopLogicTooltip>;