@cruk/chakra-components 3.1.0-dev.6 → 4.0.0-dev.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.
- package/README.md +34 -23
- package/dist/cjs/components/AlertBanner/index.js +1 -1
- package/dist/cjs/components/AlertBanner/index.js.map +1 -1
- package/dist/cjs/components/CTABanner/index.js +2 -0
- package/dist/cjs/components/CTABanner/index.js.map +1 -0
- package/dist/cjs/components/FileUploader/index.js +1 -1
- package/dist/cjs/components/FileUploader/index.js.map +1 -1
- package/dist/cjs/components/Icon/index.js +1 -1
- package/dist/cjs/components/Icon/index.js.map +1 -1
- package/dist/cjs/components/Link/index.js +1 -1
- package/dist/cjs/components/Link/index.js.map +1 -1
- package/dist/cjs/components/ReferenceBlock/index.js +1 -1
- package/dist/cjs/components/ReferenceBlock/index.js.map +1 -1
- package/dist/cjs/components/StickyNavigation/index.js +1 -1
- package/dist/cjs/components/StickyNavigation/index.js.map +1 -1
- package/dist/cjs/components/YouTubeEmbed/index.js +1 -1
- package/dist/cjs/components/YouTubeEmbed/index.js.map +1 -1
- package/dist/cjs/helpers/customIcons.js +2 -0
- package/dist/cjs/helpers/customIcons.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/static/icons/fileIcons/audioFileIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/audioFileIcon.js.map +1 -0
- package/dist/cjs/static/icons/fileIcons/codeIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/codeIcon.js.map +1 -0
- package/dist/cjs/static/icons/fileIcons/excelFileIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/excelFileIcon.js.map +1 -0
- package/dist/cjs/static/icons/fileIcons/imageFileIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/imageFileIcon.js.map +1 -0
- package/dist/cjs/static/icons/fileIcons/pdfFileIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/pdfFileIcon.js.map +1 -0
- package/dist/cjs/static/icons/fileIcons/printIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/printIcon.js.map +1 -0
- package/dist/cjs/static/icons/fileIcons/videoFileIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/videoFileIcon.js.map +1 -0
- package/dist/cjs/static/icons/fileIcons/wordFileIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/wordFileIcon.js.map +1 -0
- package/dist/cjs/static/icons/fileIcons/zipFileIcon.js +2 -0
- package/dist/cjs/static/icons/fileIcons/zipFileIcon.js.map +1 -0
- package/dist/cjs/static/icons/index.js +1 -1
- package/dist/cjs/theme/cruk/components/accordion.js +1 -1
- package/dist/cjs/theme/cruk/components/accordion.js.map +1 -1
- package/dist/cjs/theme/cruk/components/stickyNavigation.js +2 -0
- package/dist/cjs/theme/cruk/components/stickyNavigation.js.map +1 -0
- package/dist/cjs/theme/cruk/index.js +1 -1
- package/dist/cjs/theme/cruk/index.js.map +1 -1
- package/dist/cjs/theme/r4l/index.js +1 -1
- package/dist/cjs/theme/r4l/index.js.map +1 -1
- package/dist/esm/components/AlertBanner/index.js +1 -1
- package/dist/esm/components/AlertBanner/index.js.map +1 -1
- package/dist/esm/components/CTABanner/index.js +2 -0
- package/dist/esm/components/CTABanner/index.js.map +1 -0
- package/dist/esm/components/FileUploader/index.js +1 -1
- package/dist/esm/components/FileUploader/index.js.map +1 -1
- package/dist/esm/components/Icon/index.js +1 -1
- package/dist/esm/components/Icon/index.js.map +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Link/index.js.map +1 -1
- package/dist/esm/components/ReferenceBlock/index.js +1 -1
- package/dist/esm/components/ReferenceBlock/index.js.map +1 -1
- package/dist/esm/components/StickyNavigation/index.js +1 -1
- package/dist/esm/components/StickyNavigation/index.js.map +1 -1
- package/dist/esm/components/YouTubeEmbed/index.js +1 -1
- package/dist/esm/components/YouTubeEmbed/index.js.map +1 -1
- package/dist/esm/helpers/customIcons.js +2 -0
- package/dist/esm/helpers/customIcons.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/static/icons/fileIcons/audioFileIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/audioFileIcon.js.map +1 -0
- package/dist/esm/static/icons/fileIcons/codeIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/codeIcon.js.map +1 -0
- package/dist/esm/static/icons/fileIcons/excelFileIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/excelFileIcon.js.map +1 -0
- package/dist/esm/static/icons/fileIcons/imageFileIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/imageFileIcon.js.map +1 -0
- package/dist/esm/static/icons/fileIcons/pdfFileIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/pdfFileIcon.js.map +1 -0
- package/dist/esm/static/icons/fileIcons/printIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/printIcon.js.map +1 -0
- package/dist/esm/static/icons/fileIcons/videoFileIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/videoFileIcon.js.map +1 -0
- package/dist/esm/static/icons/fileIcons/wordFileIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/wordFileIcon.js.map +1 -0
- package/dist/esm/static/icons/fileIcons/zipFileIcon.js +2 -0
- package/dist/esm/static/icons/fileIcons/zipFileIcon.js.map +1 -0
- package/dist/esm/static/icons/index.js +1 -1
- package/dist/esm/theme/cruk/components/accordion.js +1 -1
- package/dist/esm/theme/cruk/components/accordion.js.map +1 -1
- package/dist/esm/theme/cruk/components/stickyNavigation.js +2 -0
- package/dist/esm/theme/cruk/components/stickyNavigation.js.map +1 -0
- package/dist/esm/theme/cruk/index.js +1 -1
- package/dist/esm/theme/cruk/index.js.map +1 -1
- package/dist/esm/theme/r4l/index.js +1 -1
- package/dist/esm/theme/r4l/index.js.map +1 -1
- package/dist/index.d.ts +47 -16
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -63,10 +63,9 @@ declare const Heading6: _chakra_ui_react.ComponentWithAs<"h6", HeadingProps>;
|
|
|
63
63
|
|
|
64
64
|
type IconProps = IconProps$1 & {
|
|
65
65
|
name?: string;
|
|
66
|
+
fileName?: string;
|
|
66
67
|
};
|
|
67
|
-
declare const Icon: ComponentWithAs<"svg", IconProps
|
|
68
|
-
name?: string;
|
|
69
|
-
}>;
|
|
68
|
+
declare const Icon: ComponentWithAs<"svg", IconProps>;
|
|
70
69
|
|
|
71
70
|
type ImageProps$1 = ImageProps$2 & {
|
|
72
71
|
aspectHeight?: ResponsiveValue<number>;
|
|
@@ -110,6 +109,7 @@ interface FileLinkProps extends LinkProps {
|
|
|
110
109
|
entryType?: string;
|
|
111
110
|
fileType?: string;
|
|
112
111
|
fileSize?: string;
|
|
112
|
+
href?: string;
|
|
113
113
|
}
|
|
114
114
|
declare const Link: ComponentWithAs<"a" | "p", FileLinkProps>;
|
|
115
115
|
|
|
@@ -159,6 +159,18 @@ type CircleDeviceProps = GridProps & {
|
|
|
159
159
|
};
|
|
160
160
|
declare const CircleDevice: _chakra_ui_react.ComponentWithAs<"div", CircleDeviceProps>;
|
|
161
161
|
|
|
162
|
+
type CTABannerProps = {
|
|
163
|
+
variant: "primary" | "secondary" | "primaryAlt" | "secondaryAlt";
|
|
164
|
+
alignItems: "left" | "center";
|
|
165
|
+
heading: string;
|
|
166
|
+
cta?: boolean;
|
|
167
|
+
ctaText?: string;
|
|
168
|
+
subHeading?: string;
|
|
169
|
+
body?: string;
|
|
170
|
+
href?: string;
|
|
171
|
+
};
|
|
172
|
+
declare const CTABanner: _chakra_ui_react.ComponentWithAs<"div", CTABannerProps>;
|
|
173
|
+
|
|
162
174
|
declare const DatePicker: _chakra_ui_react.ComponentWithAs<"input", InputProps$1>;
|
|
163
175
|
|
|
164
176
|
declare const Tabs: _chakra_ui_react.ComponentWithAs<"div", TabsProps>;
|
|
@@ -468,20 +480,20 @@ interface SocialProofProps extends FlexProps {
|
|
|
468
480
|
}
|
|
469
481
|
declare const SocialProof: _chakra_ui_react.ComponentWithAs<"div", SocialProofProps>;
|
|
470
482
|
|
|
483
|
+
interface StepperProps extends Omit<StepperProps$1, "children"> {
|
|
484
|
+
steps: string[];
|
|
485
|
+
}
|
|
486
|
+
declare const Stepper: _chakra_ui_react.ComponentWithAs<"div", StepperProps>;
|
|
487
|
+
|
|
471
488
|
interface Heading {
|
|
472
489
|
id: string;
|
|
473
490
|
text: string;
|
|
474
491
|
}
|
|
475
|
-
interface StickyNavigationProps {
|
|
492
|
+
interface StickyNavigationProps extends BoxProps {
|
|
476
493
|
headings: (Heading | string)[];
|
|
477
494
|
socialMediaSharing?: ("X" | "LinkedIn" | "Facebook" | "Email")[] | null;
|
|
478
495
|
}
|
|
479
|
-
declare const StickyNavigation:
|
|
480
|
-
|
|
481
|
-
interface StepperProps extends Omit<StepperProps$1, "children"> {
|
|
482
|
-
steps: string[];
|
|
483
|
-
}
|
|
484
|
-
declare const Stepper: _chakra_ui_react.ComponentWithAs<"div", StepperProps>;
|
|
496
|
+
declare const StickyNavigation: _chakra_ui_react.ComponentWithAs<"div", StickyNavigationProps>;
|
|
485
497
|
|
|
486
498
|
declare const Text: _chakra_ui_react.ComponentWithAs<"p", TextProps>;
|
|
487
499
|
|
|
@@ -534,12 +546,13 @@ type VimeoEmbedProps = ChakraProps & {
|
|
|
534
546
|
};
|
|
535
547
|
declare const VimeoEmbed: _chakra_ui_react.ComponentWithAs<"div", VimeoEmbedProps>;
|
|
536
548
|
|
|
537
|
-
|
|
549
|
+
declare const YouTubeEmbed: _chakra_ui_react.ComponentWithAs<"div", ChakraProps & {
|
|
538
550
|
videoID: string;
|
|
539
551
|
description: string;
|
|
540
552
|
aspectRatio?: number;
|
|
541
|
-
}
|
|
542
|
-
|
|
553
|
+
} & {
|
|
554
|
+
privacyMode?: boolean;
|
|
555
|
+
}>;
|
|
543
556
|
|
|
544
557
|
declare const Divider: _chakra_ui_react.ComponentWithAs<"div", DividerProps>;
|
|
545
558
|
|
|
@@ -627,7 +640,7 @@ declare const PauseIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_reac
|
|
|
627
640
|
|
|
628
641
|
declare const PayPal: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
629
642
|
|
|
630
|
-
declare const PdfIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
643
|
+
declare const PdfIcon$1: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
631
644
|
|
|
632
645
|
declare const People: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
633
646
|
|
|
@@ -677,6 +690,24 @@ declare const Wheelchairs: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_re
|
|
|
677
690
|
|
|
678
691
|
declare const YouTube: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
679
692
|
|
|
693
|
+
declare const PdfIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
694
|
+
|
|
695
|
+
declare const WordFileIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
696
|
+
|
|
697
|
+
declare const ExcelFileIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
698
|
+
|
|
699
|
+
declare const ZipFileIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
700
|
+
|
|
701
|
+
declare const VideoFileIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
702
|
+
|
|
703
|
+
declare const ImageIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
704
|
+
|
|
705
|
+
declare const AudioFileIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
706
|
+
|
|
707
|
+
declare const CodeIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
708
|
+
|
|
709
|
+
declare const PrintIcon: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
710
|
+
|
|
680
711
|
type SemanticTokensType = {
|
|
681
712
|
[key: string]: string | number | object;
|
|
682
713
|
};
|
|
@@ -693,5 +724,5 @@ type R4lTheme = Theme$2;
|
|
|
693
724
|
type Su2cTheme = Theme$1;
|
|
694
725
|
type Theme = CrukTheme | R4lTheme | Su2cTheme;
|
|
695
726
|
|
|
696
|
-
export { Accordion, Adult, Alert, AlertBanner, Apple, ArrownDown as ArrowDown, ArrowDownListItem, ArrowReturnUpIcon, ArrownUp as ArrowUp, Avatar, Badge, Bagdrop, Breadcrumb, BreadcrumbLink, Button, Card, CardStack, CheckCircle, CheckList, CheckListUL, Checkbox, CheckboxGroup, Children, CircleDevice, Clock, CloudUpload, Cross, Date, DatePicker, DirectDebit, Divider, Dogs, DonateWidget, EmailIcon, Facebook, FileUploader, Footer, Footnote, FormField, FormLabel, FourInFour, FundraisingRegulator, GoogleMapEmbed, GooglePay, Heading$1 as Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Heart, HeartSu2c, Icon, Image, Info, Input, Instagram, Link, LinkedIn, Loader, LogoGroup, MasterCard, Microscope, Navigation, Newsletter, NumberInput, OnThisPageHeadings, OneInFour, OvarianIcon, ParagraphWithMedia, Parking, PauseIcon, PayPal, PdfIcon, People, PhoneIcon, PlayIcon, Plus, PlusSu2c, Popover, PopoverAlert, Pound, ProgressBar, Pushchair, QuoteIcon, RadioConsent, ReferenceBlock, ReferenceBlockContainer, Refreshments, RichHeader, Royalties, Share, Shower, SideNav, SimpleHeader, SingleStatistics, SocialProof, SpeechBubble, SpotifyEmbed, Stepper, StickyNavigation, Success, Table, Tabs, Text, TextTruncate, TextareaWithWordCount, ThreeInFour, ThumbsUp, ThumbsUpSu2c, TikTok, ToggleGroup, Toilets, Totaliser, TwoBlockStatistics, TwoInFour, Venue, Video, VimeoEmbed, Visa, WhatsApp, Wheelchairs, X, YouTube, YouTubeEmbed, crukBrand, r4lBrand, su2cBrand };
|
|
697
|
-
export type { AlertBannerProps, AtLeastOnePropertyOf, ButtonProps, CardProps, CardStackProps, CrukTheme, FooterNavigationLink, FooterProps, IconProps, ImageLink, ImageProps$1 as ImageProps, LogoGroupProps, LogoProps, NavigationProps, PopoverAlertProps, R4lTheme, ReferenceBlockContainerProps, ReferenceBlockProps, SemanticTokensType, Su2cTheme, Theme };
|
|
727
|
+
export { Accordion, Adult, Alert, AlertBanner, Apple, ArrownDown as ArrowDown, ArrowDownListItem, ArrowReturnUpIcon, ArrownUp as ArrowUp, AudioFileIcon, Avatar, Badge, Bagdrop, Breadcrumb, BreadcrumbLink, Button, CTABanner, Card, CardStack, CheckCircle, CheckList, CheckListUL, Checkbox, CheckboxGroup, Children, CircleDevice, Clock, CloudUpload, CodeIcon, Cross, Date, DatePicker, DirectDebit, Divider, Dogs, DonateWidget, EmailIcon, ExcelFileIcon, Facebook, FileUploader, Footer, Footnote, FormField, FormLabel, FourInFour, FundraisingRegulator, GoogleMapEmbed, GooglePay, Heading$1 as Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Heart, HeartSu2c, Icon, Image, ImageIcon, Info, Input, Instagram, Link, LinkedIn, Loader, LogoGroup, MasterCard, Microscope, Navigation, Newsletter, NumberInput, OnThisPageHeadings, OneInFour, OvarianIcon, ParagraphWithMedia, Parking, PauseIcon, PayPal, PdfIcon as PdfFileIcon, PdfIcon$1 as PdfIcon, People, PhoneIcon, PlayIcon, Plus, PlusSu2c, Popover, PopoverAlert, Pound, PrintIcon, ProgressBar, Pushchair, QuoteIcon, RadioConsent, ReferenceBlock, ReferenceBlockContainer, Refreshments, RichHeader, Royalties, Share, Shower, SideNav, SimpleHeader, SingleStatistics, SocialProof, SpeechBubble, SpotifyEmbed, Stepper, StickyNavigation, Success, Table, Tabs, Text, TextTruncate, TextareaWithWordCount, ThreeInFour, ThumbsUp, ThumbsUpSu2c, TikTok, ToggleGroup, Toilets, Totaliser, TwoBlockStatistics, TwoInFour, Venue, Video, VideoFileIcon, VimeoEmbed, Visa, WhatsApp, Wheelchairs, WordFileIcon, X, YouTube, YouTubeEmbed, ZipFileIcon, crukBrand, r4lBrand, su2cBrand };
|
|
728
|
+
export type { AlertBannerProps, AtLeastOnePropertyOf, ButtonProps, CTABannerProps, CardProps, CardStackProps, CrukTheme, FooterNavigationLink, FooterProps, IconProps, ImageLink, ImageProps$1 as ImageProps, LogoGroupProps, LogoProps, NavigationProps, PopoverAlertProps, R4lTheme, ReferenceBlockContainerProps, ReferenceBlockProps, SemanticTokensType, Su2cTheme, Theme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cruk/chakra-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-dev.2",
|
|
4
4
|
"description": "Chakra UI v2 based components for CRUK applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@applitools/eyes-storybook": "^3.53.13",
|
|
56
56
|
"@chakra-ui/icons": "^2.2.4",
|
|
57
|
-
"@chakra-ui/react": "^2.10.
|
|
57
|
+
"@chakra-ui/react": "^2.10.9",
|
|
58
58
|
"@emotion/react": "^11.14.0",
|
|
59
|
-
"@emotion/styled": "^11.14.
|
|
60
|
-
"framer-motion": "^12.
|
|
59
|
+
"@emotion/styled": "^11.14.1",
|
|
60
|
+
"framer-motion": "^12.23.12",
|
|
61
61
|
"react": "^19.0.0",
|
|
62
62
|
"react-dom": "^19.0.0",
|
|
63
63
|
"react-dropzone": "^14.3.6",
|