@ap-gen/ui 1.0.0

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 (93) hide show
  1. package/dist/components/alert/index.d.ts +11 -0
  2. package/dist/components/badge/index.d.ts +10 -0
  3. package/dist/components/breadcrumb/index.d.ts +10 -0
  4. package/dist/components/button/index.d.ts +17 -0
  5. package/dist/components/button/text.d.ts +17 -0
  6. package/dist/components/calendar/amount.d.ts +7 -0
  7. package/dist/components/calendar/date.d.ts +12 -0
  8. package/dist/components/calendar/index.d.ts +1 -0
  9. package/dist/components/calendar/month.d.ts +1 -0
  10. package/dist/components/calendar/schedule.d.ts +9 -0
  11. package/dist/components/calendar/week.d.ts +1 -0
  12. package/dist/components/calendar/year.d.ts +3 -0
  13. package/dist/components/card/index.d.ts +11 -0
  14. package/dist/components/cell-picker/index.d.ts +13 -0
  15. package/dist/components/cell-picker/item.d.ts +8 -0
  16. package/dist/components/checkbox/index.d.ts +7 -0
  17. package/dist/components/chip/index.d.ts +13 -0
  18. package/dist/components/color-picker/index.d.ts +6 -0
  19. package/dist/components/combo-box/index.d.ts +18 -0
  20. package/dist/components/combo-box/text.d.ts +17 -0
  21. package/dist/components/description/index.d.ts +15 -0
  22. package/dist/components/divider/index.d.ts +7 -0
  23. package/dist/components/empty/index.d.ts +5 -0
  24. package/dist/components/header/index.d.ts +8 -0
  25. package/dist/components/header/list.d.ts +13 -0
  26. package/dist/components/header/section.d.ts +19 -0
  27. package/dist/components/header/tab.d.ts +9 -0
  28. package/dist/components/icon/index.d.ts +553 -0
  29. package/dist/components/index.d.ts +48 -0
  30. package/dist/components/input/index.d.ts +20 -0
  31. package/dist/components/list/compact.d.ts +11 -0
  32. package/dist/components/list/default.d.ts +22 -0
  33. package/dist/components/list/index.d.ts +8 -0
  34. package/dist/components/list/tab.d.ts +11 -0
  35. package/dist/components/list-group/index.d.ts +14 -0
  36. package/dist/components/loading/index.d.ts +6 -0
  37. package/dist/components/motion-pressable/index.d.ts +3 -0
  38. package/dist/components/motion-pressable-div/index.d.ts +3 -0
  39. package/dist/components/navigation-bar/index.d.ts +10 -0
  40. package/dist/components/page-indicator/index.d.ts +8 -0
  41. package/dist/components/pagination/index.d.ts +8 -0
  42. package/dist/components/paragraph/index.d.ts +13 -0
  43. package/dist/components/popover/index.d.ts +16 -0
  44. package/dist/components/progress-bar/index.d.ts +10 -0
  45. package/dist/components/radio/index.d.ts +6 -0
  46. package/dist/components/search-bar/index.d.ts +7 -0
  47. package/dist/components/search-box/index.d.ts +8 -0
  48. package/dist/components/segmented-control/index.d.ts +17 -0
  49. package/dist/components/slider/index.d.ts +14 -0
  50. package/dist/components/snackbar/index.d.ts +19 -0
  51. package/dist/components/switch/index.d.ts +6 -0
  52. package/dist/components/tab-bar/index.d.ts +14 -0
  53. package/dist/components/table/column.d.ts +1 -0
  54. package/dist/components/table/front-checkbox.d.ts +2 -0
  55. package/dist/components/table/head-column.d.ts +15 -0
  56. package/dist/components/table/head-row.d.ts +17 -0
  57. package/dist/components/table/index.d.ts +1 -0
  58. package/dist/components/table/item.d.ts +14 -0
  59. package/dist/components/tabs/index.d.ts +13 -0
  60. package/dist/components/text/constant/variants.d.ts +153 -0
  61. package/dist/components/text/index.d.ts +278 -0
  62. package/dist/components/timeline/index.d.ts +10 -0
  63. package/dist/components/tooltip/index.d.ts +11 -0
  64. package/dist/components/tooltip/popover.d.ts +5 -0
  65. package/dist/components/upload/dropbox.d.ts +10 -0
  66. package/dist/components/upload/file.d.ts +8 -0
  67. package/dist/components/upload/image.d.ts +7 -0
  68. package/dist/components/upload/index.d.ts +8 -0
  69. package/dist/hooks/useCalendar.d.ts +21 -0
  70. package/dist/hooks/useClickOutside.d.ts +6 -0
  71. package/dist/index.d.ts +2 -0
  72. package/dist/index.js +2834 -0
  73. package/dist/index.js.map +1 -0
  74. package/dist/provider/CalendarProvider.d.ts +16 -0
  75. package/dist/provider/ClientProvider.d.ts +15 -0
  76. package/dist/provider/ColorThemeProvider.d.ts +10 -0
  77. package/dist/provider/Provider.d.ts +2 -0
  78. package/dist/provider/index.d.ts +2 -0
  79. package/dist/styles/color/base.d.ts +282 -0
  80. package/dist/styles/color/index.d.ts +293 -0
  81. package/dist/styles/color/themes/dark.d.ts +3 -0
  82. package/dist/styles/color/themes/elevated.d.ts +3 -0
  83. package/dist/styles/color/themes/light.d.ts +3 -0
  84. package/dist/styles/color/themes/trueDark.d.ts +3 -0
  85. package/dist/styles/color/themes/type.d.ts +322 -0
  86. package/dist/styles/color/type.d.ts +7 -0
  87. package/dist/utils/debounce.d.ts +1 -0
  88. package/dist/utils/getNestedValue.d.ts +1 -0
  89. package/dist/utils/hexToRgb.d.ts +1 -0
  90. package/dist/utils/index.d.ts +0 -0
  91. package/esm/index.mjs +2757 -0
  92. package/esm/index.mjs.map +1 -0
  93. package/package.json +214 -0
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ type AlertPropsVariants = 'mono' | 'core' | 'warning' | 'success';
3
+ type AlertProps = {
4
+ headline: string;
5
+ description?: string;
6
+ time?: string;
7
+ variant: AlertPropsVariants;
8
+ icon?: React.ReactNode;
9
+ };
10
+ export declare function Alert({ headline, description, time, variant, icon, }: AlertProps): import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ type VariantType = 'core' | 'mono' | 'notice' | 'increase' | 'flat' | 'warning' | 'success' | 'decrease';
3
+ type SizeType = 'large' | 'small';
4
+ type BadgeProps = {
5
+ size?: SizeType;
6
+ variant?: VariantType;
7
+ children: React.ReactNode;
8
+ };
9
+ export declare function Badge({ size, variant, children, }: BadgeProps): import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ type BreadcrumbPropsIcon = {
2
+ label: string;
3
+ path: string;
4
+ };
5
+ type BreadcrumbProps = {
6
+ items: BreadcrumbPropsIcon[];
7
+ onClick: (items: BreadcrumbPropsIcon[]) => void;
8
+ };
9
+ export declare function Breadcrumb({ items, onClick }: BreadcrumbProps): import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../icon';
3
+ type VariantType = 'core' | 'coreLight' | 'neutral' | 'neutralOutline' | 'warning' | 'warningLight';
4
+ type SizeType = 'large' | 'medium' | 'small';
5
+ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
6
+ variant?: VariantType;
7
+ size?: SizeType;
8
+ iconLeading?: IconProps['name'];
9
+ iconTrailing?: IconProps['name'];
10
+ iconAutoFill?: boolean;
11
+ iconAutoStroke?: boolean;
12
+ fullWidth?: boolean;
13
+ disabled?: boolean;
14
+ loading?: boolean;
15
+ }
16
+ export declare function Button({ variant, size, iconLeading, iconTrailing, iconAutoFill, iconAutoStroke, children, fullWidth, disabled, onClick, loading, ...props }: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../icon';
3
+ type VariantType = 'core' | 'warning' | 'mono';
4
+ type SizeType = 'large' | 'medium' | 'small';
5
+ export interface TextButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
6
+ variant?: VariantType;
7
+ size?: SizeType;
8
+ iconLeading?: IconProps['name'];
9
+ iconTrailing?: IconProps['name'];
10
+ iconAutoFill?: boolean;
11
+ iconAutoStroke?: boolean;
12
+ fullWidth?: boolean;
13
+ disabled?: boolean;
14
+ loading?: boolean;
15
+ }
16
+ export declare function TextButton({ variant, size, iconLeading, iconTrailing, iconAutoFill, iconAutoStroke, children, fullWidth, disabled, onClick, loading, ...props }: TextButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,7 @@
1
+ type AmountProps = {
2
+ label: string;
3
+ trend: 'negative' | 'positive' | 'flat';
4
+ cancelled?: boolean;
5
+ };
6
+ export declare function Amount({ label, trend, cancelled }: AmountProps): import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ type DateProps = {
3
+ selected?: boolean;
4
+ disabled?: boolean;
5
+ today?: boolean;
6
+ modifier?: string;
7
+ dayoff?: boolean;
8
+ date: number;
9
+ body?: React.ReactNode;
10
+ };
11
+ export declare function Date({ selected, disabled, today, modifier, dayoff, date, body, }: DateProps): import("@emotion/react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare function Calendar(): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Month(): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ type ScheduleProps = {
2
+ time: string;
3
+ label: string;
4
+ selected?: boolean;
5
+ done?: boolean;
6
+ onClick?: () => void;
7
+ };
8
+ export declare function Schedule({ time, label, selected, done, onClick, }: ScheduleProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare function Week(): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function Year({ onChange }: {
2
+ onChange: (month: number) => void;
3
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ type CardProps = {
3
+ collapsible?: boolean;
4
+ wide?: boolean;
5
+ children: React.ReactNode;
6
+ containerStyle?: React.CSSProperties;
7
+ surface?: boolean;
8
+ headline?: string;
9
+ };
10
+ export declare function Card({ collapsible, wide, children, containerStyle, surface, headline, }: CardProps): import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,13 @@
1
+ import { CellItemProps } from './item';
2
+ type CellOption = Omit<CellItemProps, 'onChange'> & {
3
+ id: string;
4
+ };
5
+ type CellPickerProps = {
6
+ items: CellOption[];
7
+ columns?: number;
8
+ minCellWidth?: number;
9
+ className?: string;
10
+ onOptionChange?: (id: string, value: boolean) => void;
11
+ };
12
+ export declare function CellPicker({ items, columns, minCellWidth, className, onOptionChange, }: CellPickerProps): import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export default CellPicker;
@@ -0,0 +1,8 @@
1
+ export type CellItemProps = {
2
+ active: boolean;
3
+ label: string;
4
+ subLabel?: string;
5
+ onClick: (value: boolean) => void;
6
+ disabled?: boolean;
7
+ };
8
+ export declare function Item({ active, label, subLabel, onClick, disabled, }: CellItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export type CheckboxProps = {
2
+ type?: 'check' | 'overlap';
3
+ value: boolean;
4
+ onChange: (value: boolean) => void;
5
+ disabled?: boolean;
6
+ };
7
+ export declare function Checkbox({ type, value, onChange, disabled, }: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { IconProps } from '../icon';
2
+ type ChipColor = 'mono' | 'core';
3
+ type ChipSize = 'medium' | 'large';
4
+ type ChipProps = {
5
+ color: ChipColor;
6
+ type: 'default' | 'filter' | 'input';
7
+ label: string;
8
+ size?: ChipSize;
9
+ containerStyle?: React.CSSProperties;
10
+ leadingIcon?: IconProps['name'];
11
+ };
12
+ export declare function Chip({ size, color, type, label, containerStyle, leadingIcon, }: ChipProps): import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,6 @@
1
+ interface ColorPickerProps {
2
+ color: string;
3
+ onColorChange: (color: string) => void;
4
+ }
5
+ export declare function ColorPicker(props: ColorPickerProps): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,18 @@
1
+ import { IconProps } from '../icon';
2
+ type SizeProps = 'small' | 'medium' | 'large';
3
+ type ComboBoxProps = {
4
+ size: SizeProps;
5
+ disabled?: boolean;
6
+ placeholder: string;
7
+ value?: string;
8
+ containerStyle?: React.CSSProperties;
9
+ options?: Array<{
10
+ value: string;
11
+ label: string;
12
+ }>;
13
+ onChange?: (value: string) => void;
14
+ icon?: IconProps['name'];
15
+ showDropdownIcon?: boolean;
16
+ };
17
+ export declare function ComboBox({ size, disabled, placeholder, value, containerStyle, options, onChange, icon, showDropdownIcon, }: ComboBoxProps): import("@emotion/react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,17 @@
1
+ import { IconProps } from '../icon';
2
+ type SizeProps = 'small' | 'medium' | 'large';
3
+ type ComboBoxProps = {
4
+ size: SizeProps;
5
+ disabled: boolean;
6
+ placeholder: string;
7
+ value: string;
8
+ options?: Array<{
9
+ value: string;
10
+ label: string;
11
+ }>;
12
+ onChange?: (value: string) => void;
13
+ icon?: IconProps['name'];
14
+ showDropdownIcon?: boolean;
15
+ };
16
+ export declare function TextComboBox({ size, disabled, placeholder, value, options, onChange, icon, showDropdownIcon, }: ComboBoxProps): import("@emotion/react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,15 @@
1
+ import { TextProps } from '../text';
2
+ type DescriptionProps = {
3
+ label: string;
4
+ labelProps?: TextProps;
5
+ subValue: string;
6
+ subValueProps?: TextProps;
7
+ value: string;
8
+ valueProps?: TextProps;
9
+ separator?: boolean;
10
+ type: 'default' | 'link';
11
+ align?: 'left' | 'right';
12
+ onClick?: () => void;
13
+ };
14
+ export declare function Description({ label, labelProps, subValue, subValueProps, value, valueProps, separator, type, align, onClick, }: DescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ type DividerProps = {
2
+ type: DividerType;
3
+ padding?: boolean;
4
+ };
5
+ type DividerType = 'line' | 'fill';
6
+ export declare function Divider({ type, padding }: DividerProps): import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ type EmptyProps = {
2
+ type: 'full' | 'list';
3
+ };
4
+ export declare function Empty({ type }: EmptyProps): import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ import { List } from './list';
2
+ import { Section } from './section';
3
+ import { Tab } from './tab';
4
+ export declare const Header: {
5
+ Section: typeof Section;
6
+ List: typeof List;
7
+ Tab: typeof Tab;
8
+ };
@@ -0,0 +1,13 @@
1
+ type SizeType = 'large' | 'medium' | 'small';
2
+ type ColorType = 'primary' | 'secondary';
3
+ export type ListProps = {
4
+ size?: SizeType;
5
+ color?: ColorType;
6
+ leading?: React.ReactNode;
7
+ headline?: string;
8
+ description?: string;
9
+ traillingText?: string;
10
+ trailling?: React.ReactNode;
11
+ };
12
+ export declare function List({ size, color, leading, headline, description, traillingText, trailling, }: ListProps): import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,19 @@
1
+ type SizeType = 'large' | 'small';
2
+ type CommonSectionProps = {
3
+ size?: SizeType;
4
+ subHeadline?: string;
5
+ subValue?: string;
6
+ description?: string;
7
+ trailling?: React.ReactNode;
8
+ };
9
+ type DefaultSectionProps = CommonSectionProps & {
10
+ type: 'default';
11
+ headline: string;
12
+ };
13
+ type ValueSectionProps = CommonSectionProps & {
14
+ type: 'value';
15
+ value: string;
16
+ };
17
+ export type SectionProps = DefaultSectionProps | ValueSectionProps;
18
+ export declare function Section(props: SectionProps): import("@emotion/react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,9 @@
1
+ type SizeType = 'large' | 'medium' | 'small';
2
+ type TabProps = {
3
+ title: string;
4
+ isFolded: boolean;
5
+ onClick: () => void;
6
+ size?: SizeType;
7
+ };
8
+ export declare function Tab({ title, isFolded, onClick, size }: TabProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export {};