greenole-design-system 1.1.1 → 1.1.2

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 { DropdownProps } from './Dropdown.types';
3
+ declare const Dropdown: React.FC<DropdownProps>;
4
+ export default Dropdown;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Dropdown } from './';
3
+ declare const meta: Meta<typeof Dropdown>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Dropdown>;
6
+ export declare const Default: Story;
7
+ export declare const DarkTheme: Story;
@@ -0,0 +1,20 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface DropdownProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
3
+ options: DropdownOption[];
4
+ selectedValue?: string;
5
+ onChange?: (selected: string) => void;
6
+ className?: string;
7
+ width?: string;
8
+ theme?: "light" | "dark";
9
+ hasSearch?: boolean;
10
+ placeholder?: string;
11
+ label?: string;
12
+ subtitle?: string;
13
+ subtitleIcon?: React.ReactNode;
14
+ labelSize?: "body-sm" | "body-md" | "body-lg" | "body-xl";
15
+ labelWeight?: "regular" | "medium" | "semibold" | "bold";
16
+ }
17
+ export interface DropdownOption {
18
+ value: string;
19
+ label: string;
20
+ }
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { DropdownOption } from './Dropdown.types';
3
+ interface Props {
4
+ option: DropdownOption;
5
+ selected: boolean;
6
+ onSelect: () => void;
7
+ theme: "light" | "dark";
8
+ }
9
+ declare const DropdownOptionItem: React.FC<Props>;
10
+ export default DropdownOptionItem;
@@ -0,0 +1,2 @@
1
+ export { default as Dropdown } from './Dropdown';
2
+ export * from './Dropdown.types';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { AccordionProps } from './types';
3
+ export declare const Accordion: React.FC<AccordionProps>;
4
+ export default Accordion;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Accordion } from './Accordion';
3
+ declare const meta: Meta<typeof Accordion>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Accordion>;
6
+ export declare const Default: Story;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export interface AccordionProps {
3
+ title: string;
4
+ subtitle?: string;
5
+ subtitleIcon?: ReactNode;
6
+ defaultOpen?: boolean;
7
+ children: ReactNode;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CalendarProps } from './Calendar.types';
3
+ export declare const Calendar: React.FC<CalendarProps>;
4
+ export default Calendar;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Calendar } from './Calendar';
3
+ declare const meta: Meta<typeof Calendar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Calendar>;
6
+ export declare const Docs: Story;
7
+ export declare const Default: Story;
8
+ export declare const CustomRange: Story;
9
+ export declare const InsideCard: Story;
@@ -0,0 +1,11 @@
1
+ export declare const styles: {
2
+ dayBase: string;
3
+ dayHover: string;
4
+ dayInRange: string;
5
+ dayStart: string;
6
+ dayEnd: string;
7
+ daySingle: string;
8
+ presetBase: string;
9
+ presetActive: string;
10
+ presetHover: string;
11
+ };
@@ -0,0 +1,9 @@
1
+ import { Dayjs } from 'dayjs';
2
+ export type DateRange = {
3
+ start: Dayjs | null;
4
+ end: Dayjs | null;
5
+ };
6
+ export interface CalendarProps {
7
+ defaultRange?: DateRange;
8
+ onChange?: (range: DateRange) => void;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { Dayjs } from 'dayjs';
2
+ export declare const isSameRange: (a: {
3
+ start: Dayjs | null;
4
+ end: Dayjs | null;
5
+ }, b: {
6
+ start: Dayjs | null;
7
+ end: Dayjs | null;
8
+ }) => boolean | undefined;
9
+ export declare const formatDate: (date: Dayjs | null) => string;
10
+ export declare const getDaysOfWeek: (locale?: string) => string[];
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { DateRange } from './Calendar.types';
3
+ interface Props {
4
+ range: DateRange;
5
+ onChange: (range: DateRange) => void;
6
+ }
7
+ export declare const DateRangePicker: React.FC<Props>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { DateRange } from './Calendar.types';
3
+ interface PresetsProps {
4
+ currentRange: DateRange;
5
+ onSelect: (range: DateRange) => void;
6
+ }
7
+ export declare const Presets: React.FC<PresetsProps>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Calendar } from './Calendar';
2
+ export type { CalendarProps, DateRange } from './Calendar.types';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ChevronUpProps {
3
+ className?: string;
4
+ }
5
+ export default function ChevronUp({ className }: ChevronUpProps): React.JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface InfoProps {
3
+ className?: string;
4
+ }
5
+ declare const Info: React.FC<InfoProps>;
6
+ export default Info;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body-xl-bold' | 'body-xl-semibold' | 'body-xl-medium' | 'body-xl-regular' | 'body-lg-bold' | 'body-lg-semibold' | 'body-lg-medium' | 'body-lg-regular' | 'body-md-bold' | 'body-md-semibold' | 'body-md-medium' | 'body-md-regular' | 'body-sm-bold' | 'body-sm-semibold' | 'body-sm-medium' | 'body-sm-regular' | 'caption-bold' | 'caption-semibold' | 'caption-medium' | 'caption-regular';
2
+ export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body-xl-bold' | 'body-xl-semibold' | 'body-xl-medium' | 'body-xl-regular' | 'body-lg-bold' | 'body-lg-semibold' | 'body-lg-medium' | 'body-lg-regular' | 'body-md-bold' | 'body-md-semibold' | 'body-md-medium' | 'body-md-regular' | 'body-sm-bold' | 'body-sm-semibold' | 'body-sm-medium' | 'body-sm-regular' | 'caption-bold' | 'caption-semibold' | 'caption-medium' | 'caption-regular';
3
3
  interface TypographyProps {
4
4
  variant?: TypographyVariant;
5
5
  children: React.ReactNode;