widenarrow-ui 0.1.33 → 1.0.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 (43) hide show
  1. package/lib/components/Image/Image.d.ts +3 -1
  2. package/lib/components/ListItem/ListItem.d.ts +22 -0
  3. package/lib/components/ListItem/ListItem.stories.d.ts +7 -0
  4. package/lib/components/ListItem/index.d.ts +1 -0
  5. package/lib/components/RadioButton/RadioButton.d.ts +15 -0
  6. package/lib/components/RadioButton/RadioButton.stories.d.ts +6 -0
  7. package/lib/components/RadioButton/index.d.ts +1 -0
  8. package/lib/components/SortableTable/SortableTable.d.ts +2 -1
  9. package/lib/components/SwitchButton/SwitchButton.d.ts +14 -0
  10. package/lib/components/SwitchButton/SwitchButton.stories.d.ts +6 -0
  11. package/lib/components/SwitchButton/index.d.ts +1 -0
  12. package/lib/index.css +1 -1
  13. package/lib/index.d.ts +3 -0
  14. package/lib/index.esm.css +1 -1
  15. package/lib/index.esm.js +246 -147
  16. package/lib/index.esm.js.map +1 -1
  17. package/lib/index.js +248 -146
  18. package/lib/index.js.map +1 -1
  19. package/lib/types/styling.d.ts +1 -1
  20. package/package.json +1 -1
  21. package/src/components/Grid/Grid.stories.tsx +2 -1
  22. package/src/components/Image/Image.module.scss +10 -3
  23. package/src/components/Image/Image.tsx +10 -6
  24. package/src/components/ListItem/ListItem.module.scss +123 -0
  25. package/src/components/ListItem/ListItem.stories.tsx +44 -0
  26. package/src/components/ListItem/ListItem.tsx +137 -0
  27. package/src/components/ListItem/index.tsx +1 -0
  28. package/src/components/RadioButton/RadioButton.module.scss +148 -0
  29. package/src/components/RadioButton/RadioButton.stories.tsx +16 -0
  30. package/src/components/RadioButton/RadioButton.tsx +87 -0
  31. package/src/components/RadioButton/index.tsx +1 -0
  32. package/src/components/SolidSpinner/SolidSpinner.module.scss +1 -3
  33. package/src/components/SolidSpinner/SolidSpinner.tsx +4 -4
  34. package/src/components/SortableTable/SortableTable.module.scss +5 -0
  35. package/src/components/SortableTable/SortableTable.stories.tsx +2 -2
  36. package/src/components/SortableTable/SortableTable.tsx +27 -33
  37. package/src/components/SwitchButton/SwitchButton.module.scss +139 -0
  38. package/src/components/SwitchButton/SwitchButton.stories.tsx +16 -0
  39. package/src/components/SwitchButton/SwitchButton.tsx +72 -0
  40. package/src/components/SwitchButton/index.tsx +1 -0
  41. package/src/index.ts +6 -0
  42. package/src/styles/mixins.scss +13 -147
  43. package/src/types/styling.ts +1 -1
@@ -4,8 +4,10 @@ interface Props {
4
4
  src: string;
5
5
  alt?: string;
6
6
  className?: string;
7
- customCellComponent?: ReactNode;
7
+ imageClassName?: string;
8
+ customComponent?: ReactNode;
8
9
  aspectRatio?: Partial<AspectRatioTypes>;
10
+ withContainer?: boolean;
9
11
  bgImage?: boolean;
10
12
  bgImageProps?: {
11
13
  size: 'cover' | 'contain';
@@ -0,0 +1,22 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { AspectRatioTypes, ColorTypes, IconTypes, SizeTypes } from 'src/constants';
3
+ import { MarginInterface, PaddingInterface } from 'src/types/styling';
4
+ interface Props extends MarginInterface, PaddingInterface {
5
+ buttonsComponent?: ReactNode;
6
+ contentComponent?: ReactNode;
7
+ className?: string;
8
+ imageSrc?: string;
9
+ withBorderRadius?: boolean;
10
+ imageIcon?: Partial<IconTypes>;
11
+ size: Partial<SizeTypes>;
12
+ imageAspectRatio?: Partial<AspectRatioTypes>;
13
+ borderColor?: Partial<ColorTypes>;
14
+ backgroundColor?: Partial<ColorTypes>;
15
+ wrapperElement?: 'div' | 'li' | 'section';
16
+ border?: '1' | '2' | '3';
17
+ borderTop?: '1' | '2' | '3';
18
+ borderBottom?: '1' | '2' | '3';
19
+ onClickCallback?: () => void;
20
+ }
21
+ declare const ListItem: FC<Props>;
22
+ export default ListItem;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ListItem from 'src/components/ListItem';
3
+ declare const meta: Meta<typeof ListItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ListItem>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
@@ -0,0 +1 @@
1
+ export { default } from './ListItem';
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ className?: string;
4
+ name?: string;
5
+ label?: string;
6
+ value?: string | number;
7
+ disabled?: boolean;
8
+ helperText?: string;
9
+ marginRight?: boolean;
10
+ checked: boolean;
11
+ toolTip?: string;
12
+ onChange: (value: string | number) => void;
13
+ }
14
+ declare const RadioButton: FC<Props>;
15
+ export default RadioButton;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import RadioButton from 'src/components/RadioButton';
3
+ declare const meta: Meta<typeof RadioButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof RadioButton>;
6
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export { default } from './RadioButton';
@@ -19,7 +19,8 @@ interface Props {
19
19
  }>;
20
20
  className?: string;
21
21
  headerClassName?: string;
22
- fetching?: boolean;
22
+ rowClassName?: string;
23
+ loading?: boolean;
23
24
  skeletonRows?: number;
24
25
  withStickyHeader?: boolean;
25
26
  withIntersectionObserver?: boolean;
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ checked: boolean;
4
+ name: string;
5
+ label?: string;
6
+ disabled?: boolean;
7
+ alignCenter?: boolean;
8
+ className?: string;
9
+ marginBottom?: boolean;
10
+ inlineLabel?: boolean;
11
+ onClickCallback: () => void;
12
+ }
13
+ declare const SwitchButton: FC<Props>;
14
+ export default SwitchButton;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import SwitchButton from 'src/components/SwitchButton';
3
+ declare const meta: Meta<typeof SwitchButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SwitchButton>;
6
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export { default } from './SwitchButton';