@max-ts/kit 1.3.2 → 1.5.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.
- package/lib/components/Calendar/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/Carousel/Buttons/Buttons.d.ts +1 -1
- package/lib/components/Carousel/Buttons/Buttons.d.ts.map +1 -1
- package/lib/components/Carousel/Buttons/styles.css.d.ts +3 -3
- package/lib/components/Carousel/Buttons/styles.css.d.ts.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +14 -16
- package/lib/components/Carousel/Carousel.d.ts.map +1 -1
- package/lib/components/Carousel/CarouselContext.d.ts +3 -5
- package/lib/components/Carousel/CarouselContext.d.ts.map +1 -1
- package/lib/components/Carousel/Content/Content.d.ts +2 -1
- package/lib/components/Carousel/Content/Content.d.ts.map +1 -1
- package/lib/components/Carousel/Content/styles.css.d.ts +1 -1
- package/lib/components/Carousel/Content/styles.css.d.ts.map +1 -1
- package/lib/components/Carousel/Dots/Dots.d.ts +2 -5
- package/lib/components/Carousel/Dots/Dots.d.ts.map +1 -1
- package/lib/components/Carousel/Dots/useLogic/useLogic.d.ts.map +1 -1
- package/lib/components/Carousel/Item/Item.d.ts +2 -1
- package/lib/components/Carousel/Item/Item.d.ts.map +1 -1
- package/lib/components/Carousel/Item/styles.css.d.ts +1 -0
- package/lib/components/Carousel/Item/styles.css.d.ts.map +1 -1
- package/lib/components/Carousel/types.d.ts +16 -6
- package/lib/components/Carousel/types.d.ts.map +1 -1
- package/lib/components/Carousel/useLogic/useLogic.d.ts +13 -13
- package/lib/components/Carousel/useLogic/useLogic.d.ts.map +1 -1
- package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts.map +1 -1
- package/lib/components/Select/Select.d.ts +15 -26
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/styles.css.d.ts +0 -1
- package/lib/components/Select/styles.css.d.ts.map +1 -1
- package/lib/components/Select/types.d.ts +23 -0
- package/lib/components/Select/types.d.ts.map +1 -0
- package/lib/index.mjs +347 -142
- package/lib/stories/Carousel.stories.d.ts +1 -0
- package/lib/stories/Carousel.stories.d.ts.map +1 -1
- package/lib/stories/Select.stories.d.ts +12 -4
- package/lib/stories/Select.stories.d.ts.map +1 -1
- package/lib/styles.css +100 -47
- package/package.json +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,wBAAgB,QAAQ,CACvB,KAAK,EAAE;IACN,OAAO,CAAC,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;CACvC,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,+BA6C7D"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function Arrows({ className, ...props }: ComponentProps<'button'>): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=Buttons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Buttons.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Buttons/Buttons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Buttons.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Buttons/Buttons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,+BAwCvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
export declare const iconWrapper: string;
|
|
2
|
+
export declare const buttonNext: Record<"horizontal" | "vertical", string>;
|
|
3
|
+
export declare const buttonPrev: Record<"horizontal" | "vertical", string>;
|
|
4
4
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Buttons/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Buttons/styles.css.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,WAAW,QActB,CAAC;AAOH,eAAO,MAAM,UAAU,2CAmBrB,CAAC;AAEH,eAAO,MAAM,UAAU,2CAmBrB,CAAC"}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export type CarouselProps<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
setApi?: (api: CarouselApi) => void;
|
|
8
|
-
className?: string;
|
|
9
|
-
width?: CSSProperties['width'];
|
|
10
|
-
height?: CSSProperties['height'];
|
|
11
|
-
data: TData[];
|
|
12
|
-
keyId: keyof TData;
|
|
13
|
-
showDots?: boolean;
|
|
14
|
-
showArrows?: boolean;
|
|
15
|
-
renderItem: (item: TData) => React.ReactNode;
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import type { CarouselAlign, CarouselApi, CarouselOrientation } from './types';
|
|
3
|
+
export type CarouselProps = ComponentProps<'section'> & {
|
|
4
|
+
align?: CarouselAlign;
|
|
5
|
+
orientation?: CarouselOrientation;
|
|
6
|
+
setApi?: (api: CarouselApi | undefined) => void;
|
|
16
7
|
};
|
|
17
|
-
|
|
8
|
+
declare function Carousel({ align, children, className, orientation: orientationProp, setApi, ...props }: CarouselProps): import("react").JSX.Element;
|
|
9
|
+
declare namespace Carousel {
|
|
10
|
+
var Content: typeof import("./Content").Content;
|
|
11
|
+
var Item: typeof import("./Item").Item;
|
|
12
|
+
var Arrows: typeof import("./Buttons").Arrows;
|
|
13
|
+
var Dots: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export { Carousel };
|
|
18
16
|
//# sourceMappingURL=Carousel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAG/E,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,SAAS,CAAC,GAAG;IACvD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,iBAAS,QAAQ,CAAC,EACjB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,WAAW,EAAE,eAAe,EAC5B,MAAM,EACN,GAAG,KAAK,EACR,EAAE,aAAa,+BAkCf;kBAzCQ,QAAQ;;;;;;AAgDjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { EmblaViewportRefType } from 'embla-carousel-react';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import type { CarouselApi,
|
|
2
|
+
import type { CarouselApi, CarouselOrientation } from './types';
|
|
4
3
|
type CarouselContextProps = {
|
|
5
|
-
carouselRef:
|
|
4
|
+
carouselRef: (node: HTMLDivElement | null) => void;
|
|
6
5
|
api: CarouselApi;
|
|
7
|
-
|
|
8
|
-
orientation: 'horizontal' | 'vertical';
|
|
6
|
+
orientation: CarouselOrientation;
|
|
9
7
|
scrollPrev: () => void;
|
|
10
8
|
scrollNext: () => void;
|
|
11
9
|
canScrollPrev: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselContext.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"CarouselContext.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/CarouselContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEhE,KAAK,oBAAoB,GAAG;IAC3B,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,GAAG,EAAE,WAAW,CAAC;IACjB,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,eAAe,4CAE3B,CAAC;AAEF,wBAAgB,WAAW,yBAQ1B"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export declare function Content({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2
3
|
//# sourceMappingURL=Content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Content/Content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Content/Content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAgBrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Content/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Content/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,QAalB,CAAC;AAEH,eAAO,MAAM,YAAY,2CAmBvB,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const Dots: ({
|
|
3
|
-
api: CarouselApi;
|
|
4
|
-
orientation: "horizontal" | "vertical";
|
|
5
|
-
}) => import("react").JSX.Element;
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export declare const Dots: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
|
|
6
3
|
//# sourceMappingURL=Dots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dots.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Dots/Dots.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Dots.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Dots/Dots.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,eAAO,MAAM,IAAI,GAAI,yBAAyB,cAAc,CAAC,KAAK,CAAC,gCAkBlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/Dots/useLogic/useLogic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,QAAQ,GAAI,KAAK,WAAW;;;8BAK/B,MAAM;
|
|
1
|
+
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../../src/components/Carousel/Dots/useLogic/useLogic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,QAAQ,GAAI,KAAK,WAAW;;;8BAK/B,MAAM;CA6Bf,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export declare function Item({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2
3
|
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Item/Item.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Item/Item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAclE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Item/styles.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,QAKf,CAAC"}
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/Item/styles.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,QAKf,CAAC;AAEH,eAAO,MAAM,YAAY,2CASvB,CAAC"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
|
|
1
|
+
export type CarouselAlign = 'start' | 'center' | 'end';
|
|
2
|
+
export type CarouselOrientation = 'horizontal' | 'vertical';
|
|
3
|
+
export type CarouselEventName = 'reInit' | 'select';
|
|
4
|
+
export type CarouselEventCallback = (api: CarouselApi) => void;
|
|
5
|
+
export type CarouselApi = {
|
|
6
|
+
scrollPrev: () => void;
|
|
7
|
+
scrollNext: () => void;
|
|
8
|
+
scrollTo: (index: number, jump?: boolean) => void;
|
|
9
|
+
canScrollNext: () => boolean;
|
|
10
|
+
canScrollPrev: () => boolean;
|
|
11
|
+
selectedScrollSnap: () => number;
|
|
12
|
+
scrollSnapList: () => number[];
|
|
13
|
+
on: (event: CarouselEventName, callback: CarouselEventCallback) => CarouselApi;
|
|
14
|
+
off: (event: CarouselEventName, callback: CarouselEventCallback) => CarouselApi;
|
|
15
|
+
reInit: () => void;
|
|
16
|
+
};
|
|
7
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACvD,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACpD,MAAM,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,aAAa,EAAE,MAAM,OAAO,CAAC;IAC7B,aAAa,EAAE,MAAM,OAAO,CAAC;IAC7B,kBAAkB,EAAE,MAAM,MAAM,CAAC;IACjC,cAAc,EAAE,MAAM,MAAM,EAAE,CAAC;IAC/B,EAAE,EAAE,CACH,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,qBAAqB,KAC3B,WAAW,CAAC;IACjB,GAAG,EAAE,CACJ,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,qBAAqB,KAC3B,WAAW,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { CarouselApi,
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type KeyboardEvent } from 'react';
|
|
2
|
+
import type { CarouselAlign, CarouselApi, CarouselOrientation } from '../types';
|
|
3
|
+
type UseLogicProps = {
|
|
4
|
+
align?: CarouselAlign;
|
|
5
|
+
orientation?: CarouselOrientation;
|
|
6
|
+
setApi?: (api: CarouselApi | undefined) => void;
|
|
7
|
+
};
|
|
8
|
+
type UseLogicReturn = {
|
|
9
|
+
carouselRef: (node: HTMLDivElement | null) => void;
|
|
10
|
+
api: CarouselApi;
|
|
6
11
|
scrollPrev: () => void;
|
|
7
12
|
scrollNext: () => void;
|
|
8
13
|
canScrollPrev: boolean;
|
|
9
14
|
canScrollNext: boolean;
|
|
10
|
-
handleKeyDown: (event:
|
|
11
|
-
|
|
12
|
-
orientation: 'horizontal' | 'vertical';
|
|
13
|
-
onDotButtonClick: (index: number) => void;
|
|
14
|
-
isShowButtons: boolean;
|
|
15
|
-
isShowDots: boolean;
|
|
16
|
-
data: TData[];
|
|
15
|
+
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
16
|
+
orientation: CarouselOrientation;
|
|
17
17
|
};
|
|
18
|
-
export declare const useLogic:
|
|
18
|
+
export declare const useLogic: ({ orientation, align, setApi, }: UseLogicProps) => UseLogicReturn;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=useLogic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/useLogic/useLogic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../src/components/Carousel/useLogic/useLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,EAMlB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACX,aAAa,EACb,WAAW,EAGX,mBAAmB,EACnB,MAAM,UAAU,CAAC;AAElB,KAAK,aAAa,GAAG;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,KAAK,cAAc,GAAG;IACrB,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,GAAG,EAAE,WAAW,CAAC;IACjB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC9D,WAAW,EAAE,mBAAmB,CAAC;CACjC,CAAC;AAIF,eAAO,MAAM,QAAQ,GAAI,iCAItB,aAAa,KAAG,cAuQlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YearsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/PeriodPicker/YearsDropdown/YearsDropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"YearsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/PeriodPicker/YearsDropdown/YearsDropdown.tsx"],"names":[],"mappings":"AAEA,KAAK,kBAAkB,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC7B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,GACP,EAAE,kBAAkB,+BA8BpB"}
|
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
export type SelectContentProps = SelectPrimitive.Popup.Props & Pick<SelectPositioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'> & {
|
|
17
|
-
position?: 'popper' | 'item-aligned';
|
|
18
|
-
};
|
|
19
|
-
declare const SelectContent: ({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, position, ...props }: SelectContentProps) => import("react").JSX.Element;
|
|
20
|
-
export type SelectLabelProps = SelectPrimitive.GroupLabel.Props;
|
|
21
|
-
declare const SelectLabel: ({ className, ...props }: SelectLabelProps) => import("react").JSX.Element;
|
|
22
|
-
export type SelectItemProps = SelectPrimitive.Item.Props;
|
|
23
|
-
declare const SelectItem: ({ className, children, ...props }: SelectItemProps) => import("react").JSX.Element;
|
|
24
|
-
export type SelectSeparatorProps = SelectPrimitive.Separator.Props;
|
|
25
|
-
declare const SelectSeparator: ({ className, ...props }: SelectSeparatorProps) => import("react").JSX.Element;
|
|
26
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
1
|
+
import type { SelectProps } from './types';
|
|
2
|
+
declare function Select<Value = string, Multiple extends boolean | undefined = false>({ onValueChange, ...props }: SelectProps.Root<Value, Multiple>): import("react").JSX.Element;
|
|
3
|
+
declare namespace Select {
|
|
4
|
+
var Trigger: ({ className, children, size, ...props }: SelectProps.Trigger) => import("react").JSX.Element;
|
|
5
|
+
var Value: ({ ...props }: SelectProps.Value) => import("react").JSX.Element;
|
|
6
|
+
var Content: ({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, position, ...props }: SelectProps.Content) => import("react").JSX.Element;
|
|
7
|
+
var Group: ({ ...props }: SelectProps.Group) => import("react").JSX.Element;
|
|
8
|
+
var Label: ({ className, ...props }: SelectProps.Label) => import("react").JSX.Element;
|
|
9
|
+
var Item: ({ className, children, ...props }: SelectProps.Item) => import("react").JSX.Element;
|
|
10
|
+
var ScrollDownButton: ({ className, ...props }: SelectProps.ScrollDownButton) => import("react").JSX.Element;
|
|
11
|
+
var ScrollUpButton: ({ className, ...props }: SelectProps.ScrollUpButton) => import("react").JSX.Element;
|
|
12
|
+
var Separator: ({ className, ...props }: SelectProps.Separator) => import("react").JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export type { SelectProps };
|
|
15
|
+
export { Select };
|
|
27
16
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,iBAAS,MAAM,CAAC,KAAK,GAAG,MAAM,EAAE,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,EAAE,EAC7E,aAAa,EACb,GAAG,KAAK,EACR,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,+BAYnC;kBAfQ,MAAM;2DA8BZ,WAAW,CAAC,OAAO;8BATO,WAAW,CAAC,KAAK;2HA+D3C,WAAW,CAAC,OAAO;8BAnEO,WAAW,CAAC,KAAK;yCAoGN,WAAW,CAAC,KAAK;kDAUR,WAAW,CAAC,IAAI;oDAjE9D,WAAW,CAAC,gBAAgB;kDAfkB,WAAW,CAAC,cAAc;6CAoG/B,WAAW,CAAC,SAAS;;AAoBjE,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.css.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,OAAO,QAwClB,CAAC;AAQH,eAAO,MAAM,YAAY,QAMvB,CAAC;AAEH,eAAO,MAAM,UAAU,QAGrB,CAAC;AAEH,eAAO,MAAM,OAAO,QAgClB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAInB,CAAC;AAEH,eAAO,MAAM,KAAK,QAIhB,CAAC;AAEH,eAAO,MAAM,IAAI,QAsBf,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAQ/B,CAAC;AAEH,eAAO,MAAM,SAAS,QAIpB,CAAC;AAEH,eAAO,MAAM,IAAI,QAGf,CAAC;AAEH,eAAO,MAAM,OAAO,QAIlB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Select as SelectPrimitive } from '@base-ui/react/select';
|
|
2
|
+
export type SelectSize = 'small' | 'medium' | 'large';
|
|
3
|
+
type SelectValue<Value, Multiple extends boolean | undefined> = Multiple extends true ? Value[] : Value;
|
|
4
|
+
export declare namespace SelectProps {
|
|
5
|
+
type Root<Value = string, Multiple extends boolean | undefined = false> = Omit<SelectPrimitive.Root.Props<Value, Multiple>, 'onValueChange'> & {
|
|
6
|
+
onValueChange?: (value: SelectValue<Value, Multiple>, eventDetails: SelectPrimitive.Root.ChangeEventDetails) => void;
|
|
7
|
+
};
|
|
8
|
+
type Trigger = SelectPrimitive.Trigger.Props & {
|
|
9
|
+
size?: SelectSize;
|
|
10
|
+
};
|
|
11
|
+
type ScrollUpButton = SelectPrimitive.ScrollUpArrow.Props;
|
|
12
|
+
type ScrollDownButton = SelectPrimitive.ScrollDownArrow.Props;
|
|
13
|
+
type Content = SelectPrimitive.Popup.Props & Pick<SelectPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'> & {
|
|
14
|
+
position?: 'popper' | 'item-aligned';
|
|
15
|
+
};
|
|
16
|
+
type Group = SelectPrimitive.Group.Props;
|
|
17
|
+
type Value = SelectPrimitive.Value.Props;
|
|
18
|
+
type Label = SelectPrimitive.GroupLabel.Props;
|
|
19
|
+
type Item = SelectPrimitive.Item.Props;
|
|
20
|
+
type Separator = SelectPrimitive.Separator.Props;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEvE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,KAAK,WAAW,CACf,KAAK,EACL,QAAQ,SAAS,OAAO,GAAG,SAAS,IACjC,QAAQ,SAAS,IAAI,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;AAE5C,yBAAiB,WAAW,CAAC;IAC5B,KAAY,IAAI,CACf,KAAK,GAAG,MAAM,EACd,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,IACzC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,eAAe,CAAC,GAAG;QACxE,aAAa,CAAC,EAAE,CACf,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,EACnC,YAAY,EAAE,eAAe,CAAC,IAAI,CAAC,kBAAkB,KACjD,IAAI,CAAC;KACV,CAAC;IAEF,KAAY,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,KAAK,GAAG;QACrD,IAAI,CAAC,EAAE,UAAU,CAAC;KAClB,CAAC;IAEF,KAAY,cAAc,GAAG,eAAe,CAAC,aAAa,CAAC,KAAK,CAAC;IAEjE,KAAY,gBAAgB,GAAG,eAAe,CAAC,eAAe,CAAC,KAAK,CAAC;IAErE,KAAY,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,GAChD,IAAI,CACH,eAAe,CAAC,UAAU,CAAC,KAAK,EAChC,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,sBAAsB,CACxE,GAAG;QACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;KACrC,CAAC;IAEH,KAAY,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;IAEhD,KAAY,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;IAEhD,KAAY,KAAK,GAAG,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC;IAErD,KAAY,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC;IAE9C,KAAY,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC;CACxD"}
|