@ap-gen/ui 1.0.5 → 1.0.7
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.
- package/README.md +28 -0
- package/dist/components/badge/index.d.ts +2 -1
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/button/index.d.ts +3 -1
- package/dist/components/calendar/date.d.ts +3 -4
- package/dist/components/calendar/index.d.ts +9 -1
- package/dist/components/calendar/month.d.ts +8 -1
- package/dist/components/calendar/schedule.d.ts +5 -1
- package/dist/components/chip/index.d.ts +2 -1
- package/dist/components/combo-box/index.d.ts +3 -2
- package/dist/components/date-picker/CalendarRangeSquare.d.ts +10 -0
- package/dist/components/date-picker/index.d.ts +14 -0
- package/dist/components/date-picker/input.d.ts +0 -0
- package/dist/components/date-picker/month.d.ts +14 -0
- package/dist/components/date-picker/single.d.ts +8 -0
- package/dist/components/date-picker/year.d.ts +3 -0
- package/dist/components/header/section.d.ts +2 -0
- package/dist/components/icon/index.d.ts +8 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/list/compact.d.ts +2 -1
- package/dist/components/list/default.d.ts +5 -1
- package/dist/components/list/tab.d.ts +3 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/search-box/index.d.ts +3 -2
- package/dist/components/slider/index.d.ts +2 -1
- package/dist/components/text/index.d.ts +1 -0
- package/dist/hooks/useCalendar.d.ts +3 -0
- package/dist/index.js +835 -901
- package/dist/index.js.map +1 -1
- package/dist/provider/CalendarProvider.d.ts +1 -0
- package/dist/provider/ClientProvider.d.ts +3 -1
- package/dist/provider/ColorThemeProvider.d.ts +2 -0
- package/esm/index.mjs +828 -902
- package/esm/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ type CalendarContextType = {
|
|
|
10
10
|
prevMonth: () => void;
|
|
11
11
|
nextMonth: () => void;
|
|
12
12
|
weekData: Day[];
|
|
13
|
+
nextMonthData: Day[][];
|
|
13
14
|
};
|
|
14
15
|
export declare const CalendarContext: import("react").Context<CalendarContextType | null>;
|
|
15
16
|
export declare const CalendarProvider: ({ children }: PropsWithChildren) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { ColorPalette, ThemeType } from 'src/styles/color';
|
|
3
|
+
import { TEXT_SCALE } from '../components/text/constant/variants';
|
|
3
4
|
export interface ClientProvidersProps extends PropsWithChildren {
|
|
4
5
|
initialTheme?: ThemeType;
|
|
5
6
|
brand?: 'afin' | 'saefarm';
|
|
7
|
+
textScale?: keyof typeof TEXT_SCALE;
|
|
6
8
|
}
|
|
7
9
|
type EmotionThemeType = {
|
|
8
10
|
colors: ColorPalette;
|
|
@@ -11,5 +13,5 @@ declare module '@emotion/react' {
|
|
|
11
13
|
interface Theme extends EmotionThemeType {
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
|
-
export declare const ClientProvider: ({ children, initialTheme, brand, }: ClientProvidersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const ClientProvider: ({ children, initialTheme, brand, textScale, }: ClientProvidersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
17
|
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { ThemeType } from '../styles/color';
|
|
3
|
+
import { TEXT_SCALE } from '../components/text/constant/variants';
|
|
3
4
|
export interface ColorThemeProviderProps extends PropsWithChildren {
|
|
4
5
|
}
|
|
5
6
|
export declare const ColorThemeContext: import("react").Context<{
|
|
6
7
|
theme: ThemeType;
|
|
7
8
|
onChange: (v: ThemeType) => void;
|
|
8
9
|
brand: "afin" | "saefarm";
|
|
10
|
+
textScale?: keyof typeof TEXT_SCALE;
|
|
9
11
|
}>;
|
|
10
12
|
export declare const ColorThemeProvider: ({ children }: ColorThemeProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|