@cruk/chakra-components 4.0.0-compat.2 → 4.0.0-compat.3

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.
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("@chakra-ui/react");const s=r.forwardRef((s,a)=>e.jsx(r.Heading,{ref:a,...s,wordBreak:"break-word"})),a=r.forwardRef((r,a)=>e.jsx(s,{as:"h1",size:{base:"3xl",lg:"4xl"},ref:a,...r})),f=r.forwardRef((r,a)=>e.jsx(s,{as:"h2",size:{base:"2xl",lg:"3xl"},ref:a,...r})),x=r.forwardRef((r,a)=>e.jsx(s,{as:"h3",size:{base:"lg",lg:"xl"},ref:a,...r})),d=r.forwardRef((r,a)=>e.jsx(s,{as:"h4",size:{base:"md",lg:"lg"},ref:a,...r})),i=r.forwardRef((r,a)=>e.jsx(s,{as:"h5",size:{base:"sm",lg:"md"},ref:a,...r})),o=r.forwardRef((r,a)=>e.jsx(s,{as:"h6",size:{base:"xs",lg:"sm"},ref:a,...r}));exports.Heading=s,exports.Heading1=a,exports.Heading2=f,exports.Heading3=x,exports.Heading4=d,exports.Heading5=i,exports.Heading6=o;
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("@chakra-ui/react"),a=require("@cruk/helix-components/react");const t={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},n=new Set(["accessKey","autoCapitalize","autoFocus","contentEditable","dir","draggable","hidden","id","itemID","itemProp","itemRef","itemScope","itemType","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),s=new Set,i=(e,r)=>{"production"===process.env.NODE_ENV||s.has(e)||(s.add(e),console.warn(r))},o=e=>{const r={};return Object.entries(e).forEach(([e,a])=>{const t=e.startsWith("aria-")||e.startsWith("data-"),s=e.startsWith("on")&&"function"==typeof a;n.has(e)||t||s?r[e]=a:null!=a&&i(e,`[Heading compatibility] Prop "${e}" is not supported by the Helix Heading and has been ignored. Helix controls the visual hierarchy; use a consumer-owned class for layout.`)}),r},d=r.forwardRef((n,s)=>{const{as:d,children:c,className:l,...h}=n,f=(e=>null==e?2:"string"==typeof e&&e in t?t[e]:void 0)(d);if(null==f){const a="string"==typeof d?d:"custom component";return i(`as:${a}`,`[Heading compatibility] Chakra element "${a}" has no semantic Helix Heading equivalent and remains on the legacy Chakra rendering path.`),e.jsx(r.Heading,{ref:s,...n,wordBreak:"break-word"})}return null!=s&&i("ref","[Heading compatibility] Helix Heading does not support forwarded refs. The ref has been ignored."),e.jsx(a.Heading,{...o(h),className:l,level:f,children:c})}),c=r.forwardRef((r,a)=>e.jsx(d,{as:"h1",ref:a,...r})),l=r.forwardRef((r,a)=>e.jsx(d,{as:"h2",ref:a,...r})),h=r.forwardRef((r,a)=>e.jsx(d,{as:"h3",ref:a,...r})),f=r.forwardRef((r,a)=>e.jsx(d,{as:"h4",ref:a,...r})),p=r.forwardRef((r,a)=>e.jsx(d,{as:"h5",ref:a,...r})),u=r.forwardRef((r,a)=>e.jsx(d,{as:"h6",ref:a,...r}));exports.Heading=d,exports.Heading1=c,exports.Heading2=l,exports.Heading3=h,exports.Heading4=f,exports.Heading5=p,exports.Heading6=u;
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Heading/index.tsx"],"sourcesContent":[null],"names":["Heading","forwardRef","props","ref","_jsx","ChakraHeading","wordBreak","Heading1","as","size","base","lg","Heading2","Heading3","Heading4","Heading5","Heading6"],"mappings":"8EAMA,MAAMA,EAAUC,EAAAA,WAA+B,CAACC,EAAOC,IACrDC,EAAAA,IAACC,EAAAA,QAAa,CAACF,IAAKA,KAASD,EAAOI,UAAU,gBAG1CC,EAAWN,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,MAAOC,GAAI,OAASR,IAAKA,KAASD,KAG7DU,EAAWX,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,MAAOC,GAAI,OAASR,IAAKA,KAASD,KAG7DW,EAAWZ,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3DY,EAAWb,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3Da,EAAWd,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3Dc,EAAWf,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Heading/index.tsx"],"sourcesContent":[null],"names":["headingLevels","h1","h2","h3","h4","h5","h6","nativeHeadingProps","Set","warnedDroppedProps","warnOnce","key","message","process","env","NODE_ENV","has","add","console","warn","getNativeHeadingProps","props","nativeProps","Object","entries","forEach","value","isAriaOrDataAttribute","startsWith","isEventHandler","Heading","forwardRef","ref","as","children","className","rest","level","getHeadingLevel","elementName","_jsx","ChakraHeading","wordBreak","HelixHeading","Heading1","Heading2","Heading3","Heading4","Heading5","Heading6"],"mappings":"wHAmBA,MAAMA,EAAkD,CACtDC,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,GAAI,GAGAC,EAAqB,IAAIC,IAAI,CACjC,YACA,iBACA,YACA,kBACA,MACA,YACA,SACA,KACA,SACA,WACA,UACA,YACA,WACA,OACA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,EAAWf,EAAAA,WAA+B,CAACV,EAAOW,IACtDQ,EAAAA,IAACV,EAAO,CAACG,GAAG,KAAKD,IAAKA,KAASX,KAG3B0B,EAAWhB,EAAAA,WAA+B,CAACV,EAAOW,IACtDQ,EAAAA,IAACV,EAAO,CAACG,GAAG,KAAKD,IAAKA,KAASX,KAG3B2B,EAAWjB,EAAAA,WAA+B,CAACV,EAAOW,IACtDQ,EAAAA,IAACV,EAAO,CAACG,GAAG,KAAKD,IAAKA,KAASX,KAG3B4B,EAAWlB,EAAAA,WAA+B,CAACV,EAAOW,IACtDQ,EAAAA,IAACV,EAAO,CAACG,GAAG,KAAKD,IAAKA,KAASX"}
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{forwardRef as s,Heading as a}from"@chakra-ui/react";const r=s((s,r)=>e(a,{ref:r,...s,wordBreak:"break-word"})),l=s((s,a)=>e(r,{as:"h1",size:{base:"3xl",lg:"4xl"},ref:a,...s})),i=s((s,a)=>e(r,{as:"h2",size:{base:"2xl",lg:"3xl"},ref:a,...s})),f=s((s,a)=>e(r,{as:"h3",size:{base:"lg",lg:"xl"},ref:a,...s})),g=s((s,a)=>e(r,{as:"h4",size:{base:"md",lg:"lg"},ref:a,...s})),m=s((s,a)=>e(r,{as:"h5",size:{base:"sm",lg:"md"},ref:a,...s})),o=s((s,a)=>e(r,{as:"h6",size:{base:"xs",lg:"sm"},ref:a,...s}));export{r as Heading,l as Heading1,i as Heading2,f as Heading3,g as Heading4,m as Heading5,o as Heading6};
1
+ import{jsx as e}from"react/jsx-runtime";import{forwardRef as a,Heading as t}from"@chakra-ui/react";import{Heading as r}from"@cruk/helix-components/react";const n={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},i=new Set(["accessKey","autoCapitalize","autoFocus","contentEditable","dir","draggable","hidden","id","itemID","itemProp","itemRef","itemScope","itemType","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),o=new Set,s=(e,a)=>{"production"===process.env.NODE_ENV||o.has(e)||(o.add(e),console.warn(a))},l=e=>{const a={};return Object.entries(e).forEach(([e,t])=>{const r=e.startsWith("aria-")||e.startsWith("data-"),n=e.startsWith("on")&&"function"==typeof t;i.has(e)||r||n?a[e]=t:null!=t&&s(e,`[Heading compatibility] Prop "${e}" is not supported by the Helix Heading and has been ignored. Helix controls the visual hierarchy; use a consumer-owned class for layout.`)}),a},c=a((a,i)=>{const{as:o,children:c,className:h,...d}=a,p=(e=>null==e?2:"string"==typeof e&&e in n?n[e]:void 0)(o);if(null==p){const r="string"==typeof o?o:"custom component";return s(`as:${r}`,`[Heading compatibility] Chakra element "${r}" has no semantic Helix Heading equivalent and remains on the legacy Chakra rendering path.`),e(t,{ref:i,...a,wordBreak:"break-word"})}return null!=i&&s("ref","[Heading compatibility] Helix Heading does not support forwarded refs. The ref has been ignored."),e(r,{...l(d),className:h,level:p,children:c})}),h=a((a,t)=>e(c,{as:"h1",ref:t,...a})),d=a((a,t)=>e(c,{as:"h2",ref:t,...a})),p=a((a,t)=>e(c,{as:"h3",ref:t,...a})),m=a((a,t)=>e(c,{as:"h4",ref:t,...a})),u=a((a,t)=>e(c,{as:"h5",ref:t,...a})),f=a((a,t)=>e(c,{as:"h6",ref:t,...a}));export{c as Heading,h as Heading1,d as Heading2,p as Heading3,m as Heading4,u as Heading5,f as Heading6};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Heading/index.tsx"],"sourcesContent":[null],"names":["Heading","forwardRef","props","ref","_jsx","ChakraHeading","wordBreak","Heading1","as","size","base","lg","Heading2","Heading3","Heading4","Heading5","Heading6"],"mappings":"mGAMA,MAAMA,EAAUC,EAA+B,CAACC,EAAOC,IACrDC,EAACC,EAAa,CAACF,IAAKA,KAASD,EAAOI,UAAU,gBAG1CC,EAAWN,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,MAAOC,GAAI,OAASR,IAAKA,KAASD,KAG7DU,EAAWX,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,MAAOC,GAAI,OAASR,IAAKA,KAASD,KAG7DW,EAAWZ,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3DY,EAAWb,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3Da,EAAWd,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3Dc,EAAWf,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Heading/index.tsx"],"sourcesContent":[null],"names":["headingLevels","h1","h2","h3","h4","h5","h6","nativeHeadingProps","Set","warnedDroppedProps","warnOnce","key","message","process","env","NODE_ENV","has","add","console","warn","getNativeHeadingProps","props","nativeProps","Object","entries","forEach","value","isAriaOrDataAttribute","startsWith","isEventHandler","Heading","forwardRef","ref","as","children","className","rest","level","getHeadingLevel","elementName","_jsx","ChakraHeading","wordBreak","HelixHeading","Heading1","Heading2","Heading3","Heading4","Heading5","Heading6"],"mappings":"0JAmBA,MAAMA,EAAkD,CACtDC,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,GAAI,GAGAC,EAAqB,IAAIC,IAAI,CACjC,YACA,iBACA,YACA,kBACA,MACA,YACA,SACA,KACA,SACA,WACA,UACA,YACA,WACA,OACA,QACA,OACA,OAC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ASX,KAG3B0B,EAAWhB,EAA+B,CAACV,EAAOW,IACtDQ,EAACV,EAAO,CAACG,GAAG,KAAKD,IAAKA,KAASX,KAG3B2B,EAAWjB,EAA+B,CAACV,EAAOW,IACtDQ,EAACV,EAAO,CAACG,GAAG,KAAKD,IAAKA,KAASX,KAG3B4B,EAAWlB,EAA+B,CAACV,EAAOW,IACtDQ,EAACV,EAAO,CAACG,GAAG,KAAKD,IAAKA,KAASX"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _chakra_ui_react from '@chakra-ui/react';
2
- import { AccordionProps, AvatarProps, BoxProps, BreadcrumbProps, BreadcrumbItemProps as BreadcrumbItemProps$1, BreadcrumbLinkProps as BreadcrumbLinkProps$1, ButtonProps as ButtonProps$1, HeadingProps, IconProps as IconProps$1, ComponentWithAs, ImageProps as ImageProps$2, ResponsiveValue, ContainerProps, ProgressProps as ProgressProps$1, ChakraProps, LinkProps as LinkProps$1, CardProps as CardProps$1, StackProps, TagProps, CheckboxProps, CheckboxGroupProps, GridProps, InputProps as InputProps$1, TabsProps, FlexProps, HTMLChakraProps, FormLabelProps as FormLabelProps$1, ListItemProps, ListProps, NumberInputFieldProps, NumberInputProps, PopoverProps, StepperProps as StepperProps$1, TextProps, TextareaProps, RadioGroupProps, DividerProps, TableProps } from '@chakra-ui/react';
3
- export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AvatarBadge, AvatarGroup, Box, BoxProps, ButtonGroup, ChakraBaseProvider, Container, Flex, FlexProps, FormControl, Grid, GridItem, HStack, HeadingProps, IconButton, IconButtonProps, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, LinkOverlay, List, ListIcon, ListItem, Menu, MenuButton, MenuButtonProps, MenuItem, MenuItemProps, MenuList, MenuListProps, MenuProps, Modal, ModalCloseButton, ModalCloseButtonProps, ModalContent, ModalContentProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalOverlay, ModalOverlayProps, ModalProps, OrderedList, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverProps, PopoverTrigger, Portal, Radio, RadioGroup, Select, SimpleGrid, Skeleton, SkeletonCircle, SkeletonOptions, SkeletonProps, SkeletonText, SkeletonTextProps, Stack, Tab, TabList, TabPanel, TabPanels, TableBodyProps, TableCaption, TableCaptionProps, TableCellProps, TableColumnHeaderProps, TableContainer, TableContainerProps, TableHeadProps, TableProps, TableRowProps, Tag, TagProps, Tbody, Td, TextProps, Textarea, TextareaProps, Th, Thead, Tooltip, TooltipProps, Tr, UnorderedList, VStack, VisuallyHidden, Wrap, WrapItem, extendBaseTheme } from '@chakra-ui/react';
2
+ import { AccordionProps, AvatarProps, BoxProps, BreadcrumbProps, BreadcrumbItemProps as BreadcrumbItemProps$1, BreadcrumbLinkProps as BreadcrumbLinkProps$1, ButtonProps as ButtonProps$1, HeadingProps as HeadingProps$1, IconProps as IconProps$1, ComponentWithAs, ImageProps as ImageProps$2, ResponsiveValue, ContainerProps, ProgressProps as ProgressProps$1, ChakraProps, LinkProps as LinkProps$1, CardProps as CardProps$1, StackProps, TagProps, CheckboxProps, CheckboxGroupProps, GridProps, InputProps as InputProps$1, TabsProps, FlexProps, HTMLChakraProps, FormLabelProps as FormLabelProps$1, ListItemProps, ListProps, NumberInputFieldProps, NumberInputProps, PopoverProps, StepperProps as StepperProps$1, TextProps, TextareaProps, RadioGroupProps, DividerProps, TableProps } from '@chakra-ui/react';
3
+ export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AvatarBadge, AvatarGroup, Box, BoxProps, ButtonGroup, ChakraBaseProvider, Container, Flex, FlexProps, FormControl, Grid, GridItem, HStack, IconButton, IconButtonProps, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, LinkOverlay, List, ListIcon, ListItem, Menu, MenuButton, MenuButtonProps, MenuItem, MenuItemProps, MenuList, MenuListProps, MenuProps, Modal, ModalCloseButton, ModalCloseButtonProps, ModalContent, ModalContentProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalOverlay, ModalOverlayProps, ModalProps, OrderedList, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverProps, PopoverTrigger, Portal, Radio, RadioGroup, Select, SimpleGrid, Skeleton, SkeletonCircle, SkeletonOptions, SkeletonProps, SkeletonText, SkeletonTextProps, Stack, Tab, TabList, TabPanel, TabPanels, TableBodyProps, TableCaption, TableCaptionProps, TableCellProps, TableColumnHeaderProps, TableContainer, TableContainerProps, TableHeadProps, TableProps, TableRowProps, Tag, TagProps, Tbody, Td, TextProps, Textarea, TextareaProps, Th, Thead, Tooltip, TooltipProps, Tr, UnorderedList, VStack, VisuallyHidden, Wrap, WrapItem, extendBaseTheme } from '@chakra-ui/react';
4
4
  import * as React$1 from 'react';
5
5
  import React__default, { HTMLAttributes, CSSProperties, ElementType, ReactElement, ReactNode, ChangeEventHandler, FC } from 'react';
6
6
  import { FileRejection } from 'react-dropzone';
@@ -58,13 +58,18 @@ type ButtonProps = ButtonProps$1 & {
58
58
  };
59
59
  declare const Button: _chakra_ui_react.ComponentWithAs<"button", ButtonProps>;
60
60
 
61
- declare const Heading$1: _chakra_ui_react.ComponentWithAs<"h2", HeadingProps>;
62
- declare const Heading1: _chakra_ui_react.ComponentWithAs<"h1", HeadingProps>;
63
- declare const Heading2: _chakra_ui_react.ComponentWithAs<"h2", HeadingProps>;
64
- declare const Heading3: _chakra_ui_react.ComponentWithAs<"h3", HeadingProps>;
65
- declare const Heading4: _chakra_ui_react.ComponentWithAs<"h4", HeadingProps>;
66
- declare const Heading5: _chakra_ui_react.ComponentWithAs<"h5", HeadingProps>;
67
- declare const Heading6: _chakra_ui_react.ComponentWithAs<"h6", HeadingProps>;
61
+ /**
62
+ * Transitional Chakra-compatible props. Semantic h1-h6 headings ignore visual
63
+ * props such as `size` and `style` so Helix remains the styling authority.
64
+ */
65
+ type HeadingProps = HeadingProps$1;
66
+ declare const Heading$1: _chakra_ui_react.ComponentWithAs<"h2", HeadingProps$1>;
67
+ declare const Heading1: _chakra_ui_react.ComponentWithAs<"h1", HeadingProps$1>;
68
+ declare const Heading2: _chakra_ui_react.ComponentWithAs<"h2", HeadingProps$1>;
69
+ declare const Heading3: _chakra_ui_react.ComponentWithAs<"h3", HeadingProps$1>;
70
+ declare const Heading4: _chakra_ui_react.ComponentWithAs<"h4", HeadingProps$1>;
71
+ declare const Heading5: _chakra_ui_react.ComponentWithAs<"h5", HeadingProps$1>;
72
+ declare const Heading6: _chakra_ui_react.ComponentWithAs<"h6", HeadingProps$1>;
68
73
 
69
74
  type IconProps = IconProps$1 & {
70
75
  name?: string;
@@ -476,7 +481,7 @@ type SideNavLinkProps = LinkProps & {
476
481
  declare const SideNav: ComponentWithAs<"div", SideNavProps>;
477
482
 
478
483
  type SimpleHeaderProps = FlexProps & {
479
- heading: HeadingProps;
484
+ heading: HeadingProps$1;
480
485
  subheading?: React__default.ReactNode;
481
486
  button?: ButtonProps;
482
487
  link?: LinkProps;
@@ -917,4 +922,4 @@ type Su2cTheme = Theme$1;
917
922
  type Theme = CrukTheme | R4lTheme | Su2cTheme;
918
923
 
919
924
  export { Accordion, Add, Adult, Alert, AlertBanner, AmlCml as AmlCmlCancer, AnalCancer, Apple, ArrowDown, ArrowDownListItem, ArrowEconomicBenefits, ArrowReturnUpIcon, ArrowUp, AudioFileIcon, Avatar, Badge, Bagdrop, BileDuctCancer, BladderCancer, BlueSky, BoneCancer, BowelCancer, BrainCancer, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreastCancer, Building, Button, CTABanner, CarcinoidCancer, Card, CardStack, CervicalCancer, CheckCircle, CheckList, CheckListUL, Checkbox, CheckboxGroup, Children, CircleDevice, Clock, CloudUpload, CodeIcon, Cog, Course, Cross, Cursor, Date, DatePicker, DirectDebit, Divider, Documents, Dogs, DonateWidget, EmailIcon, EndometrialCancer, ExcelFileIcon, EyeCancer, Facebook, FileUpload, FileUploader, FiveK, FiveKCircle, Flask, FlaskCircle, FlaskR4lGradientCircle, FlaskSu2c, Footer, Footnote, FormErrorMessage, FormField, FormHelperText, FormLabel, FourInFour, FundraisingRegulator, GallbladderCancer, Globe, GoogleMapEmbed, GooglePay, GttCancer, GynaeCancer, Handshake, HeadShouldersX3, HeadShouldersX4, Heading$1 as Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Heart, HeartSu2c, HodgkinLymphoma, Icon, Image, ImageIcon, Info, Input, Instagram, KidneyCancer, LaryngealCancer, Link, LinkedIn, LiverCancer, Loader, Location, LogoGroup, LungCancer, MagnifyingGlass, Mail, MasterCard, Megaphone, MesotheliomaCancer, Microscope, Mortarboard, MouthCancer, MyelomaCancer, NasalSinusCancer, NasopharyngealCancer, Navigation, Network, News, Newsletter, NumberInput, OesophagealCancer, OnThisPageHeadings, OneInFour, OvarianCancer, PancreaticCancer, ParagraphWithMedia, Parking, PauseIcon, PayPal, PdfIcon$1 as PdfFileIcon, PdfIcon, PenileCancer, People, PhoneIcon, Pills, PlayIcon, Plus, PlusSu2c, Popover, PopoverAlert, Pound, PrettyMuddy, PrettyMuddyCircle, PrintIcon, ProgressBar, PromotionalBanner, ProstateCancer, Pushchair, QuoteIcon, RadioConsent, ReferenceBlock, ReferenceBlockContainer, Refreshments, RichHeader, Rocket, Royalties, SafetyNettingShield, SalivaryGlandCancer, Science, Share, Shower, SideNav, SimpleHeader, SingleStatistics, SkinCancer, SocialProof, SpeechBubble, SpotifyEmbed, Stepper, StickyNavigation, StomachCancer, Success, Syringe, Table, Tabs, Target, TenK, TenKCircle, TenPoundsCircle, TestTube, TesticularCancer, Text, TextTruncate, TextareaWithWordCount, ThreeInFour, ThreeK, ThreeKCircle, ThumbsUp, ThumbsUpSu2c, ThyroidCancer, TikTok, ToggleGroup, Toilets, Totaliser, TwoBlockStatistics, TwoInFour, UpperGiCancer, UrologicalCancer, VaginaCancer, Venue, Video, VideoFileIcon, VimeoEmbed, Visa, VulvalCancer, WhatsApp, Wheelchairs, WombCancer, WordFileIcon, X, YouTube, YouTubeEmbed, ZipFileIcon, crukBrand, r4lBrand, su2cBrand };
920
- export type { AlertBannerProps, AtLeastOnePropertyOf, BreadcrumbItemProps, ButtonProps, CTABannerProps, CardProps, CardStackProps, CrukTheme, FooterNavigationLink, FooterProps, IconProps, ImageLink, ImageProps$1 as ImageProps, LogoGroupProps, LogoProps, NavigationProps, PopoverAlertProps, PromotionalBannerDesign, PromotionalBannerProps, R4lTheme, ReferenceBlockContainerProps, ReferenceBlockProps, SemanticTokensType, Su2cTheme, Theme };
925
+ export type { AlertBannerProps, AtLeastOnePropertyOf, BreadcrumbItemProps, ButtonProps, CTABannerProps, CardProps, CardStackProps, CrukTheme, FooterNavigationLink, FooterProps, HeadingProps, IconProps, ImageLink, ImageProps$1 as ImageProps, LogoGroupProps, LogoProps, NavigationProps, PopoverAlertProps, PromotionalBannerDesign, PromotionalBannerProps, R4lTheme, ReferenceBlockContainerProps, ReferenceBlockProps, SemanticTokensType, Su2cTheme, Theme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cruk/chakra-components",
3
- "version": "4.0.0-compat.2",
3
+ "version": "4.0.0-compat.3",
4
4
  "description": "Chakra UI v2 based components for CRUK applications",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
@@ -68,7 +68,7 @@
68
68
  "@applitools/eyes-storybook-addon": "^1.0.4",
69
69
  "@axe-core/playwright": "^4.11.2",
70
70
  "@chromatic-com/storybook": "^4.1.3",
71
- "@cruk/helix-components": "0.7.0",
71
+ "@cruk/helix-components": "0.8.0",
72
72
  "@eslint/js": "^9.39.2",
73
73
  "@octokit/rest": "^22.0.1",
74
74
  "@playwright/experimental-ct-react": "^1.58.2",
@@ -123,7 +123,7 @@
123
123
  "peerDependencies": {
124
124
  "@chakra-ui/icons": "^2.2.4",
125
125
  "@chakra-ui/react": "^2.10.6",
126
- "@cruk/helix-components": "0.7.0",
126
+ "@cruk/helix-components": "0.8.0",
127
127
  "@emotion/react": "^11.14.0",
128
128
  "@emotion/styled": "^11.14.0",
129
129
  "framer-motion": "^12.4.7",