@newtonschool/grauity 3.0.20 → 3.0.21
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 +23 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/ui/elements/Carousel/Carousel.d.ts.map +1 -1
- package/dist/ui/elements/Carousel/Carousel.styles.d.ts.map +1 -1
- package/dist/ui/elements/Carousel/constants.d.ts +9 -0
- package/dist/ui/elements/Carousel/constants.d.ts.map +1 -0
- package/dist/ui/elements/Carousel/types.d.ts +11 -0
- package/dist/ui/elements/Carousel/types.d.ts.map +1 -1
- package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/ui/elements/DropdownMenu/DropdownMenu.styles.d.ts +1 -0
- package/dist/ui/elements/DropdownMenu/DropdownMenu.styles.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Carousel/Carousel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Carousel/Carousel.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,QAAA,MAAM,QAAQ,UAAW,aAAa,gBA6LrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Carousel/Carousel.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EACH,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,uBAAuB,EACvB,iCAAiC,EACpC,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,uBAAuB,iQAWnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iQAQnC,CAAC;
|
|
1
|
+
{"version":3,"file":"Carousel.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Carousel/Carousel.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EACH,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,uBAAuB,EACvB,iCAAiC,EACpC,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,uBAAuB,iQAWnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iQAQnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,6NAO/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,gQAKlC,CAAC;AAEF,eAAO,MAAM,4BAA4B,sQAOxC,CAAC;AAEF,eAAO,MAAM,kBAAkB,4PAG9B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SWIPE_THRESHOLD = 50;
|
|
2
|
+
export declare const CLASSNAMES: {
|
|
3
|
+
NS_CAROUSEL_HEADER_ROW: string;
|
|
4
|
+
NS_CAROUSEL_TITLE: string;
|
|
5
|
+
NS_CAROUSEL_CONTROLS: string;
|
|
6
|
+
NS_CAROUSEL_ITEMS_CONTAINER: string;
|
|
7
|
+
NS_CAROUSEL_ITEM: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Carousel/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { grauityIconName } from 'ui/core';
|
|
3
3
|
import { StyledDivProps } from '../../../common/types';
|
|
4
|
+
import { ButtonColors, ButtonVariants } from '../Button/types';
|
|
4
5
|
export type IconPosition = 'left' | 'right';
|
|
5
6
|
export interface CarouselProps {
|
|
6
7
|
/**
|
|
@@ -48,6 +49,16 @@ export interface CarouselProps {
|
|
|
48
49
|
* @default 12
|
|
49
50
|
*/
|
|
50
51
|
iconGap?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The variant of the navigation icon buttons.
|
|
54
|
+
* @default secondary
|
|
55
|
+
*/
|
|
56
|
+
iconButtonVariant?: ButtonVariants;
|
|
57
|
+
/**
|
|
58
|
+
* The color of the navigation icon buttons.
|
|
59
|
+
* @default neutral
|
|
60
|
+
*/
|
|
61
|
+
iconButtonColor?: ButtonColors;
|
|
51
62
|
/**
|
|
52
63
|
* Callback function to be called when the left navigation button is clicked.
|
|
53
64
|
* @default null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Carousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Carousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;;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O,CAAC;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;AAgBf,OAAO,EAIH,iBAAiB,EACpB,MAAM,SAAS,CAAC;AAQjB,QAAA,MAAM,YAAY,0FAiVjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const StyledDropdownMenuHeader: import("styled-components/dist/ty
|
|
|
5
5
|
export declare const StyledDropdownMenuHeaderTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
6
|
export declare const StyledDropdownMenuHeaderSubtext: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
7
|
export declare const StyledDropdownMenuBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const StyledDropdownOptionsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
9
|
export declare const StyledDropdownMenuSearchBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
10
|
export declare const StyledDropdownMenuSubHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
11
|
export declare const StyledDropdownMenuDivider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/DropdownMenu.styles.ts"],"names":[],"mappings":";AAOA,OAAO,EACH,wCAAwC,EACxC,uBAAuB,EAC1B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,kBAAkB,yaAiB9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,6NAWpC,CAAC;AACF,eAAO,MAAM,6BAA6B,6NAOzC,CAAC;AACF,eAAO,MAAM,+BAA+B,6NAO3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,6NAUlC,CAAC;AAEF,eAAO,MAAM,2BAA2B,6NAWvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,6NAiBvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,6NAOrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,yOAmCpC,CAAC;AACF,eAAO,MAAM,+BAA+B,6NAM3C,CAAC;AACF,eAAO,MAAM,6BAA6B,6NAWzC,CAAC;AACF,eAAO,MAAM,mCAAmC,6QAkB/C,CAAC;AAEF,eAAO,MAAM,wBAAwB,6NASpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"DropdownMenu.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/DropdownMenu.styles.ts"],"names":[],"mappings":";AAOA,OAAO,EACH,wCAAwC,EACxC,uBAAuB,EAC1B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAA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