@cruk/chakra-components 0.1.0-alpha.0 → 0.1.0-alpha.1

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 ADDED
@@ -0,0 +1,70 @@
1
+ # @cruk/chakra-components
2
+
3
+ This is a Chakra UI based component library for Cancer Research UK. It's currently a work in progress.
4
+
5
+ ## Installation
6
+
7
+ You can start using `@cruk/chakra-components` in your project by running the following command:
8
+
9
+ ```bash
10
+ npm i @cruk/chakra-components
11
+ ```
12
+
13
+ Once added to the project, you can use the `ChakraProvider` to wrap your application and provide styled based on the `crukBrand` theme.
14
+
15
+ ```javascript
16
+ import type { AppProps } from "next/app";
17
+ import { ChakraProvider, crukBrand } from "@cruk/chakra-components";
18
+
19
+ const App = ({ Component, pageProps }: AppProps) => (
20
+ <ChakraProvider theme={crukBrand}>
21
+ <Component {...pageProps} />
22
+ </ChakraProvider>
23
+ );
24
+
25
+ export default App;
26
+ ```
27
+
28
+ ## Documentation
29
+
30
+ The Storybook documentation for these components can be found at: https://main-site-components.vercel.app
31
+
32
+ ## Chakra UI
33
+
34
+ The components in this library are based on Chakra UI. Components are being constantly added and will be updated as per the brand teams additions to the new CRUK Design System.
35
+
36
+ ## Theming Components
37
+
38
+ Components can be extended using a Chakra Theme provider. Here is an example of how a button can be extended:
39
+
40
+ ```javascript
41
+ import type { AppProps } from "next/app";
42
+ import {
43
+ ChakraProvider,
44
+ crukBrand,
45
+ extendTheme,
46
+ } from "@cruk/chakra-components";
47
+
48
+ // Customise the crukBrand
49
+ const theme = extendTheme({
50
+ ...crukBrand,
51
+ components: {
52
+ Button: {
53
+ baseStyle: {
54
+ fontWeight: "bold",
55
+ // Add your custom values here
56
+ },
57
+ },
58
+ },
59
+ });
60
+
61
+ const App = ({ Component, pageProps }: AppProps) => (
62
+ <ChakraProvider theme={theme}>
63
+ <Component {...pageProps} />
64
+ </ChakraProvider>
65
+ );
66
+
67
+ export default App;
68
+ ```
69
+
70
+ Components can also be themed using [Style Props](https://chakra-ui.com/docs/styled-system/style-props)
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),t=require("@chakra-ui/react"),u=t.forwardRef((function(u,n){return r.jsx(t.Button,e.__assign({size:{base:"small",lg:"large"},ref:n},u))}));Object.defineProperty(exports,"ButtonGroup",{enumerable:!0,get:function(){return t.ButtonGroup}}),exports.Button=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),t=require("@chakra-ui/react"),u=t.forwardRef((function(u,n){return r.jsx(t.Button,e.__assign({ref:n,size:{base:"sm",lg:"lg"}},u))}));Object.defineProperty(exports,"ButtonGroup",{enumerable:!0,get:function(){return t.ButtonGroup}}),exports.Button=u;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"poppins.light",borderRadius:"none",padding:"0.75rem 1.5rem 0.75rem 1.5rem"},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground",opacity:1}},secondary:{bg:"buttonSecondaryBackground",color:"buttonSecondaryText",border:"1px solid",borderColor:"buttonSecondaryBorder",padding:"0.6875rem 1.4375rem 0.6875rem 1.4375rem",_hover:{color:"buttonSecondaryTextHover",bg:"buttonSecondaryBackgroundHover",border:"none",padding:"0.75rem 1.5rem 0.75rem 1.5rem",_disabled:{color:"buttonSecondaryDisabledText"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,borderColor:"buttonSecondaryDisabledBorder",_hover:{border:"1px solid",padding:"0.6875rem 1.4375rem 0.6875rem 1.4375rem"}}},alternative:{bg:"buttonAlternativeBackground",color:"buttonAlternativeText",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},link:{fontFamily:"poppins.medium",fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:"none",_hover:{textDecoration:"underline"}},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:"1rem"}},sizes:{small:{fontSize:"text.small",lineHeight:"text.small"},large:{fontSize:"text.large",lineHeight:"text.large"}},defaultProps:{variant:"primary"}});exports.buttonTheme=e,exports.default=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"poppins.light",borderRadius:"none",padding:"0.75rem 1.5rem 0.75rem 1.5rem"},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground",opacity:1}},secondary:{bg:"buttonSecondaryBackground",color:"buttonSecondaryText",border:"1px solid",borderColor:"buttonSecondaryBorder",padding:"0.6875rem 1.4375rem 0.6875rem 1.4375rem",_hover:{color:"buttonSecondaryTextHover",bg:"buttonSecondaryBackgroundHover",border:"none",padding:"0.75rem 1.5rem 0.75rem 1.5rem",_disabled:{color:"buttonSecondaryDisabledText"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,borderColor:"buttonSecondaryDisabledBorder",_hover:{border:"1px solid",padding:"0.6875rem 1.4375rem 0.6875rem 1.4375rem"}}},alternative:{bg:"buttonAlternativeBackground",color:"buttonAlternativeText",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},link:{fontFamily:"poppins.medium",fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:"none",_hover:{textDecoration:"underline"}},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:"1rem"}},sizes:{sm:{fontSize:"text.sm",lineHeight:"text.sm"},lg:{fontSize:"text.lg",lineHeight:"text.lg"}},defaultProps:{variant:"primary"}});exports.buttonTheme=e,exports.default=e;
2
2
  //# sourceMappingURL=button.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"../../../../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{forwardRef as a,Button as o}from"@chakra-ui/react";export{ButtonGroup}from"@chakra-ui/react";var e=a((function(a,e){return t(o,r({size:{base:"small",lg:"large"},ref:e},a))}));export{e as Button};
1
+ import{__assign as r}from"../../../../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{forwardRef as o,Button as a}from"@chakra-ui/react";export{ButtonGroup}from"@chakra-ui/react";var e=o((function(o,e){return t(a,r({ref:e,size:{base:"sm",lg:"lg"}},o))}));export{e as Button};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{defineStyleConfig as e}from"@chakra-ui/react";var o=e({baseStyle:{fontFamily:"poppins.light",borderRadius:"none",padding:"0.75rem 1.5rem 0.75rem 1.5rem"},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground",opacity:1}},secondary:{bg:"buttonSecondaryBackground",color:"buttonSecondaryText",border:"1px solid",borderColor:"buttonSecondaryBorder",padding:"0.6875rem 1.4375rem 0.6875rem 1.4375rem",_hover:{color:"buttonSecondaryTextHover",bg:"buttonSecondaryBackgroundHover",border:"none",padding:"0.75rem 1.5rem 0.75rem 1.5rem",_disabled:{color:"buttonSecondaryDisabledText"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,borderColor:"buttonSecondaryDisabledBorder",_hover:{border:"1px solid",padding:"0.6875rem 1.4375rem 0.6875rem 1.4375rem"}}},alternative:{bg:"buttonAlternativeBackground",color:"buttonAlternativeText",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},link:{fontFamily:"poppins.medium",fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:"none",_hover:{textDecoration:"underline"}},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:"1rem"}},sizes:{small:{fontSize:"text.small",lineHeight:"text.small"},large:{fontSize:"text.large",lineHeight:"text.large"}},defaultProps:{variant:"primary"}});export{o as buttonTheme,o as default};
1
+ import{defineStyleConfig as e}from"@chakra-ui/react";var o=e({baseStyle:{fontFamily:"poppins.light",borderRadius:"none",padding:"0.75rem 1.5rem 0.75rem 1.5rem"},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground",opacity:1}},secondary:{bg:"buttonSecondaryBackground",color:"buttonSecondaryText",border:"1px solid",borderColor:"buttonSecondaryBorder",padding:"0.6875rem 1.4375rem 0.6875rem 1.4375rem",_hover:{color:"buttonSecondaryTextHover",bg:"buttonSecondaryBackgroundHover",border:"none",padding:"0.75rem 1.5rem 0.75rem 1.5rem",_disabled:{color:"buttonSecondaryDisabledText"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,borderColor:"buttonSecondaryDisabledBorder",_hover:{border:"1px solid",padding:"0.6875rem 1.4375rem 0.6875rem 1.4375rem"}}},alternative:{bg:"buttonAlternativeBackground",color:"buttonAlternativeText",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},link:{fontFamily:"poppins.medium",fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:"none",_hover:{textDecoration:"underline"}},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:"1rem"}},sizes:{sm:{fontSize:"text.sm",lineHeight:"text.sm"},lg:{fontSize:"text.lg",lineHeight:"text.lg"}},defaultProps:{variant:"primary"}});export{o as buttonTheme,o as default};
2
2
  //# sourceMappingURL=button.js.map
@@ -1,24 +1,24 @@
1
1
  import { As, CardProps as ChakraCardProps, ComponentWithAs, GridProps } from "@chakra-ui/react";
2
- interface IconProps {
2
+ type IconProps = {
3
3
  name: string;
4
4
  color?: string;
5
- }
6
- interface ImageProps {
5
+ };
6
+ type ImageProps = {
7
7
  as?: As;
8
8
  src: string;
9
9
  alt: string;
10
10
  width?: number;
11
11
  height?: number;
12
- }
13
- interface ButtonProps {
12
+ };
13
+ type ButtonProps = {
14
14
  as?: As;
15
15
  displayText: string;
16
- }
17
- interface LinkProps {
16
+ };
17
+ type LinkProps = {
18
18
  as?: As;
19
19
  href: string;
20
20
  displayText: string;
21
- }
21
+ };
22
22
  type CardProps = ChakraCardProps & {
23
23
  step?: number;
24
24
  heading?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,EAAE,EAIF,SAAS,IAAI,eAAe,EAE5B,eAAe,EAEf,SAAS,EAGV,MAAM,kBAAkB,CAAC;AAW1B,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,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CAAC;AAEH,QAAA,MAAM,SAAS,wCAyCb,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { ComponentWithAs, IconProps, LinkOverlay, LinkOverlayProps, LinkProps } from "@chakra-ui/react";
2
- interface FileIconType {
2
+ type FileIconType = {
3
3
  pdf: ComponentWithAs<"svg", IconProps>;
4
- }
5
- interface FileLinkProps extends LinkProps {
4
+ };
5
+ type FileLinkProps = LinkProps & {
6
6
  fileType?: keyof FileIconType;
7
7
  fileSize?: string;
8
8
  variant?: "inline" | "file" | "external";
9
- }
9
+ };
10
10
  declare const Link: ComponentWithAs<"a" | "p", FileLinkProps>;
11
11
  export { Link, LinkOverlay, type LinkOverlayProps, type LinkProps };
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Link/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAGf,SAAS,EAET,WAAW,EACX,gBAAgB,EAChB,SAAS,EACV,MAAM,kBAAkB,CAAC;AAK1B,UAAU,YAAY;IACpB,GAAG,EAAE,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;CACxC;AAED,UAAU,aAAc,SAAQ,SAAS;IACvC,QAAQ,CAAC,EAAE,MAAM,YAAY,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;CAC1C;AAoCD,QAAA,MAAM,IAAI,2CAYR,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Link/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAGf,SAAS,EAET,WAAW,EACX,gBAAgB,EAChB,SAAS,EACV,MAAM,kBAAkB,CAAC;AAK1B,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;CACxC,CAAC;AAEF,KAAK,aAAa,GAAG,SAAS,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,YAAY,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;CAC1C,CAAC;AAoCF,QAAA,MAAM,IAAI,2CAYR,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,CAAC"}
@@ -1,7 +1,8 @@
1
- export interface DotProps {
1
+ type DotProps = {
2
2
  color: string;
3
3
  delay: number;
4
- }
4
+ };
5
5
  declare const Dot: ({ color, delay }: DotProps) => import("react/jsx-runtime").JSX.Element;
6
+ export { type DotProps };
6
7
  export default Dot;
7
8
  //# sourceMappingURL=Dot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dot.d.ts","sourceRoot":"","sources":["../../../../../src/components/Loader/Dot.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAOD,QAAA,MAAM,GAAG,qBAAsB,QAAQ,4CAQtC,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Dot.d.ts","sourceRoot":"","sources":["../../../../../src/components/Loader/Dot.tsx"],"names":[],"mappings":"AAIA,KAAK,QAAQ,GAAG;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAOF,QAAA,MAAM,GAAG,qBAAsB,QAAQ,4CAQtC,CAAC;AAEF,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;AACzB,eAAe,GAAG,CAAC"}
@@ -1,8 +1,8 @@
1
- interface TileGroupProps {
1
+ type TileGroupProps = {
2
2
  name: string;
3
3
  options: Array<string>;
4
4
  defaultOption: string;
5
- }
5
+ };
6
6
  declare const RadioTileGroup: (props: TileGroupProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export default RadioTileGroup;
8
8
  //# sourceMappingURL=RadioTileGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioTileGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Radio/RadioTileGroup.tsx"],"names":[],"mappings":"AAQA,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB;AAuCD,QAAA,MAAM,cAAc,UAAW,cAAc,4CAuB5C,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"RadioTileGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Radio/RadioTileGroup.tsx"],"names":[],"mappings":"AAQA,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAuCF,QAAA,MAAM,cAAc,UAAW,cAAc,4CAuB5C,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -5,11 +5,11 @@ export declare const buttonTheme: {
5
5
  padding: string;
6
6
  };
7
7
  sizes?: {
8
- small: {
8
+ sm: {
9
9
  fontSize: string;
10
10
  lineHeight: string;
11
11
  };
12
- large: {
12
+ lg: {
13
13
  fontSize: string;
14
14
  lineHeight: string;
15
15
  };
@@ -89,7 +89,7 @@ export declare const buttonTheme: {
89
89
  };
90
90
  };
91
91
  defaultProps?: {
92
- size?: "small" | "large";
92
+ size?: "sm" | "lg";
93
93
  variant?: "link" | "primary" | "secondary" | "alternative" | "video";
94
94
  colorScheme?: string;
95
95
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cruk/chakra-components",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.1",
4
4
  "description": "Chakra UI based components for CRUK - Work In Progress",
5
5
  "main": "./dist/cjs/packages/components/src/index.js",
6
6
  "module": "./dist/esm/packages/components/src/index.js",