greenole-design-system 1.1.72 → 1.1.74

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.
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CheckboxProps } from './Checkbox.types';
3
+ export declare const Checkbox: React.FC<CheckboxProps>;
4
+ export default Checkbox;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Checkbox } from './Checkbox';
3
+ declare const meta: Meta<typeof Checkbox>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Checkbox>;
6
+ export declare const Playground: Story;
7
+ export declare const ListWithSelectAll: Story;
@@ -0,0 +1,10 @@
1
+ export declare const HiddenInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
2
+ export declare const Box: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
3
+ $checked: boolean;
4
+ $color: string;
5
+ $disabled?: boolean;
6
+ }>> & string;
7
+ export declare const LabelText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
8
+ export declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
9
+ $disabled?: boolean;
10
+ }>> & string;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ export type CheckboxProps = {
3
+ checked?: boolean;
4
+ defaultChecked?: boolean;
5
+ onChange?: (checked: boolean) => void;
6
+ color?: string;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ id?: string;
10
+ name?: string;
11
+ value?: string;
12
+ label?: ReactNode;
13
+ };
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof DropdownMenu>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithPortal: Story;
8
+ export declare const CloseOnContentClick: Story;
@@ -9,6 +9,7 @@ export interface DropdownMenuProps {
9
9
  onOpenChange?: (isOpen: boolean) => void;
10
10
  usePortal?: boolean;
11
11
  container?: HTMLElement | null;
12
+ closeOnContentClick?: boolean;
12
13
  }
13
14
  export type DropdownMenuPositionProps = 'top' | 'bottom' | 'left' | 'right';
14
15
  export type SetOpenState = React.Dispatch<React.SetStateAction<boolean>>;
@@ -1,7 +1,5 @@
1
1
  export declare const SwitchWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
2
2
  $checked: boolean;
3
3
  $color: string;
4
- $variant: "filled" | "outline";
5
- $thumbVariant: "filled" | "outline";
6
4
  $disabled?: boolean;
7
5
  }>> & string;
@@ -2,8 +2,6 @@ export type SwitchButtonProps = {
2
2
  checked?: boolean;
3
3
  onChange?: (checked: boolean) => void;
4
4
  color?: string;
5
- variant?: "filled" | "outline";
6
- thumbVariant?: "filled" | "outline";
7
5
  disabled?: boolean;
8
6
  className?: string;
9
7
  };
@@ -6,3 +6,5 @@ type Story = StoryObj<typeof Accordion>;
6
6
  export declare const Default: Story;
7
7
  export declare const CustomColors: Story;
8
8
  export declare const noPaddingContent: Story;
9
+ export declare const TitleWithNode: Story;
10
+ export declare const ScrollLimit: Story;
@@ -7,6 +7,7 @@ export declare const ChevronContainer: import('styled-components/dist/types').IS
7
7
  }>> & string;
8
8
  export declare const AccordionContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
9
  $noPaddingContent: boolean;
10
+ $contentMaxHeight?: string;
10
11
  }>> & string;
11
12
  export declare const SubtitleContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
13
  export declare const SubtitleIconContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface AccordionProps {
3
- title: string;
3
+ title: ReactNode;
4
4
  subtitle?: string;
5
5
  subtitleIcon?: ReactNode;
6
6
  defaultOpen?: boolean;
@@ -8,5 +8,6 @@ export interface AccordionProps {
8
8
  textColor?: string;
9
9
  borderColor?: string;
10
10
  noPaddingContent?: boolean;
11
+ contentMaxHeight?: number | string;
11
12
  children: ReactNode;
12
13
  }
@@ -12,3 +12,4 @@ export declare const CustomLabel: Story;
12
12
  export declare const WithMultipleSelect: Story;
13
13
  export declare const WithPortal: Story;
14
14
  export declare const WithPortalAtEdge: Story;
15
+ export declare const WithIcon: Story;
@@ -1,8 +1,12 @@
1
1
  export declare const FilterContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export declare const FilterButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
3
3
  $isOpen: boolean;
4
+ $width?: string | number;
5
+ $height?: string | number;
6
+ }>> & string;
7
+ export declare const FilterButtonLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
8
+ $placeholderColor?: string;
4
9
  }>> & string;
5
- export declare const FilterButtonLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
6
10
  export declare const FilterPanel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
11
  $usePortal?: boolean;
8
12
  }>> & string;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { THookTypes } from '../../utils/i18n/types';
2
3
  export interface FilterItemOption {
3
4
  label: string;
@@ -26,4 +27,8 @@ export interface FilterProps {
26
27
  onChange?: (output: FilterOutput) => void;
27
28
  usePortal?: boolean;
28
29
  container?: HTMLElement | null;
30
+ width?: string | number;
31
+ height?: string | number;
32
+ placeholderColor?: string;
33
+ icon?: ReactNode;
29
34
  }
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { SearchProps } from './Search.types';
3
+ export declare const Search: React.FC<SearchProps>;
4
+ export default Search;
@@ -0,0 +1,22 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Search } from './Search';
3
+ declare const meta: Meta<typeof Search>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Search>;
6
+ export declare const Collapsed: Story;
7
+ export declare const Expanded: Story;
8
+ export declare const WithDebounce: Story;
9
+ export declare const Controlled: Story;
10
+ export declare const WithURLSync: Story;
11
+ export declare const CollapsedWithURLValue: Story;
12
+ export declare const WithOnSubmit: Story;
13
+ export declare const Disabled: Story;
14
+ export declare const WithInitialValue: Story;
15
+ export declare const CollapsedWithDefaultValue: Story;
16
+ export declare const Playground: Story;
17
+ export declare const PositionedLeft: Story;
18
+ export declare const PositionedCenter: Story;
19
+ export declare const PositionedRight: Story;
20
+ export declare const ForceLeftAnimation: Story;
21
+ export declare const ForceRightAnimation: Story;
22
+ export declare const InSmallContainer: Story;
@@ -0,0 +1,12 @@
1
+ export declare const SearchWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ $expanded: boolean;
3
+ $disabled?: boolean;
4
+ }>> & string;
5
+ export declare const SearchIconButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
6
+ $disabled?: boolean;
7
+ $visible?: boolean;
8
+ }>> & string;
9
+ export declare const SearchInputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
+ $expanded: boolean;
11
+ $direction?: "left" | "right";
12
+ }>> & string;
@@ -0,0 +1,15 @@
1
+ export type SearchMode = 'collapsed' | 'expanded';
2
+ export type SearchAnimationDirection = 'left' | 'right' | 'auto';
3
+ export interface SearchProps {
4
+ mode?: SearchMode;
5
+ placeholder?: string;
6
+ defaultValue?: string;
7
+ value?: string;
8
+ disabled?: boolean;
9
+ debounceTime?: number;
10
+ queryKey?: string;
11
+ onChange?: (value: string) => void;
12
+ onSubmit?: (value: string) => void;
13
+ className?: string;
14
+ animationDirection?: SearchAnimationDirection;
15
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Search } from './Search';
2
+ export type { SearchProps, SearchMode } from './Search.types';