@raketa-builder/ui 1.3.9 → 1.3.11

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.
Files changed (65) hide show
  1. package/dist/Button.js +44 -0
  2. package/dist/CategoriesMenu.js +47 -0
  3. package/dist/Container.js +12 -0
  4. package/dist/DataGrid.js +16 -0
  5. package/dist/DefaultAvatar.js +48 -0
  6. package/dist/Field.js +44 -0
  7. package/dist/FieldSet.js +15 -0
  8. package/dist/FormGroup.js +12 -0
  9. package/dist/Grid.js +52 -0
  10. package/dist/H.js +17 -0
  11. package/dist/Handle.js +12 -0
  12. package/dist/Hint.js +22 -0
  13. package/dist/ImageAvatar.js +22 -0
  14. package/dist/Input.js +12 -0
  15. package/dist/Label.js +17 -0
  16. package/dist/LanguageSwitcher.js +54 -0
  17. package/dist/Modal.js +93 -0
  18. package/dist/Navigation.js +25 -0
  19. package/dist/P.js +12 -0
  20. package/dist/PageTitle.js +22 -0
  21. package/dist/Pagination.js +86 -0
  22. package/dist/Panel.js +19 -0
  23. package/dist/Select.js +12 -0
  24. package/dist/Stack.js +12 -0
  25. package/dist/Tabs.js +40 -0
  26. package/dist/Textarea.js +17 -0
  27. package/dist/Toolbar.js +18 -0
  28. package/dist/chunk-ORMEWXMH.js +33 -0
  29. package/dist/cn.js +7 -0
  30. package/dist/index.js +30 -908
  31. package/{src → dist}/theme.js +7 -6
  32. package/package.json +17 -3
  33. package/CHANGELOG.md +0 -7
  34. package/biome.json +0 -3
  35. package/src/Button.jsx +0 -38
  36. package/src/CategoriesMenu.js +0 -53
  37. package/src/Container.jsx +0 -8
  38. package/src/DataGrid.jsx +0 -24
  39. package/src/DefaultAvatar.jsx +0 -47
  40. package/src/Field.jsx +0 -37
  41. package/src/FieldSet.js +0 -15
  42. package/src/FormGroup.jsx +0 -8
  43. package/src/Grid.jsx +0 -47
  44. package/src/H.jsx +0 -11
  45. package/src/Handle.jsx +0 -8
  46. package/src/Hint.jsx +0 -16
  47. package/src/ImageAvatar.jsx +0 -16
  48. package/src/Input.jsx +0 -8
  49. package/src/Label.jsx +0 -11
  50. package/src/LanguageSwitcher.jsx +0 -63
  51. package/src/Modal.jsx +0 -96
  52. package/src/Navigation.jsx +0 -20
  53. package/src/P.jsx +0 -8
  54. package/src/PageTitle.jsx +0 -21
  55. package/src/Pagination.jsx +0 -88
  56. package/src/Panel.jsx +0 -16
  57. package/src/Select.jsx +0 -8
  58. package/src/Stack.jsx +0 -8
  59. package/src/Tabs.jsx +0 -41
  60. package/src/Textarea.jsx +0 -11
  61. package/src/Toolbar.jsx +0 -12
  62. package/src/cn.js +0 -3
  63. package/src/index.js +0 -31
  64. package/src/styles.css +0 -841
  65. package/tsconfig.json +0 -5
@@ -1,6 +1,7 @@
1
+ import './chunk-ORMEWXMH.js';
2
+
1
3
  const base = 14;
2
4
  const fraction = 1.25;
3
-
4
5
  const small = base / fraction;
5
6
  const tiny = small / fraction;
6
7
  const medium = base * fraction;
@@ -8,7 +9,6 @@ const large = medium * fraction;
8
9
  const xlarge = large * fraction;
9
10
  const xxlarge = xlarge * fraction;
10
11
  const huge = xxlarge * fraction;
11
-
12
12
  const theme = {
13
13
  font: {
14
14
  tiny: `${tiny}px`,
@@ -19,7 +19,7 @@ const theme = {
19
19
  xlarge: `${xlarge}px`,
20
20
  xxlarge: `${xxlarge}px`,
21
21
  huge: `${huge}px`,
22
- line: 1.5,
22
+ line: 1.5
23
23
  },
24
24
  colors: {
25
25
  trueBlack: "#000",
@@ -43,8 +43,9 @@ const theme = {
43
43
  dangerDarker: "#bb121a",
44
44
  dangerDark: "#c9252d",
45
45
  danger: "#d7373f",
46
- dangerLight: "#e34850",
47
- },
46
+ dangerLight: "#e34850"
47
+ }
48
48
  };
49
+ var theme_default = theme;
49
50
 
50
- export default theme;
51
+ export { theme_default as default };
package/package.json CHANGED
@@ -1,12 +1,26 @@
1
1
  {
2
2
  "name": "@raketa-builder/ui",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
4
4
  "main": "./dist/index.js",
5
+ "module": "./dist/index.mjs",
5
6
  "types": "./dist/index.d.ts",
7
+ "sideEffects": false,
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "./*": "./*"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
6
20
  "license": "MIT",
7
21
  "scripts": {
8
- "build": "tsup src/index.js --format cjs --loader \".js=jsx\"",
9
- "dev": "tsup src/index.js --format cjs --loader \".js=jsx\" --watch",
22
+ "build": "tsup",
23
+ "dev": "tsup --watch",
10
24
  "format": "prettier --write .",
11
25
  "lint": "biome lint --max-diagnostics=5000 ."
12
26
  },
package/CHANGELOG.md DELETED
@@ -1,7 +0,0 @@
1
- # @raketa-builder/ui
2
-
3
- ## 0.1.0
4
-
5
- ### Minor Changes
6
-
7
- - First release of @raketa-builder/ui
package/biome.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": ["../../biome.json"]
3
- }
package/src/Button.jsx DELETED
@@ -1,38 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Button = ({
5
- as = "button",
6
- size = "md",
7
- variant = "primary",
8
- className,
9
- type = "button",
10
- ...rest
11
- }) => {
12
- const Component = as;
13
-
14
- return (
15
- <Component
16
- type={type}
17
- className={cn(
18
- "r-reset",
19
- "r-reset-button",
20
- "r-button",
21
- `r-button-${size}`,
22
- `r-button-${variant}`,
23
- className
24
- )}
25
- {...rest}
26
- />
27
- );
28
- };
29
-
30
- Button.variants = ["primary", "secondary", "success", "danger"];
31
-
32
- Button.sizes = {
33
- sm: "sm",
34
- md: "md",
35
- lg: "lg",
36
- };
37
-
38
- export default Button;
@@ -1,53 +0,0 @@
1
- import React from "react";
2
- const IconsWrapper = () => (
3
- <div className="r-reset r-categories-icons-wrapper">
4
- <img
5
- style={{
6
- color: "#fff",
7
- width: "24px",
8
- height: "24px",
9
- filter: "invert(1)",
10
- }}
11
- alt="directions"
12
- src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItZ3JpZCI+PHJlY3QgeD0iMyIgeT0iMyIgd2lkdGg9IjciIGhlaWdodD0iNyI+PC9yZWN0PjxyZWN0IHg9IjE0IiB5PSIzIiB3aWR0aD0iNyIgaGVpZ2h0PSI3Ij48L3JlY3Q+PHJlY3QgeD0iMTQiIHk9IjE0IiB3aWR0aD0iNyIgaGVpZ2h0PSI3Ij48L3JlY3Q+PHJlY3QgeD0iMyIgeT0iMTQiIHdpZHRoPSI3IiBoZWlnaHQ9IjciPjwvcmVjdD48L3N2Zz4="
13
- />
14
-
15
- <img
16
- className="r-reset r-category-chevron"
17
- alt="directions"
18
- src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAyMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIxIDExLjVMMTEgMS41TDEgMTEuNSIgc3Ryb2tlPSIjMEMwQTA5IiBzdHJva2Utd2lkdGg9IjIiLz4KPC9zdmc+Cg=="
19
- />
20
- </div>
21
- );
22
- const Title = () => <div className="r-categories-title">Categories</div>;
23
-
24
- const CategoriesInner = ({ ...props }) => (
25
- <div {...props} className="r-reset r-categories-inner" />
26
- );
27
-
28
- const CategoriesHiddenMenu = ({ paths }) => (
29
- <div className="r-reset r-categories-hidden-menu">
30
- {paths.map(({ title, link }, idx) => (
31
- <a key={`${idx}-${link}`} href={link} className="r-reset r-category-link">
32
- {title}
33
- </a>
34
- ))}
35
- </div>
36
- );
37
-
38
- const CategoriesMenuWrapper = ({ ...props }) => (
39
- <div className="r-reset r-categories-menu" {...props} />
40
- );
41
-
42
- const CategoriesMenu = ({ paths }) => (
43
- <CategoriesMenuWrapper>
44
- <CategoriesInner>
45
- <IconsWrapper />
46
-
47
- <Title />
48
- </CategoriesInner>
49
- <CategoriesHiddenMenu paths={paths} />
50
- </CategoriesMenuWrapper>
51
- );
52
-
53
- export default CategoriesMenu;
package/src/Container.jsx DELETED
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Container = ({ className, ...props }) => (
5
- <div className={cn("r-reset", "r-container", className)} {...props} />
6
- );
7
-
8
- export default Container;
package/src/DataGrid.jsx DELETED
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Wrapper = ({ className, ...props }) => (
5
- <div className={cn("r-reset", className)} {...props} />
6
- );
7
-
8
- const DataGrid = ({ list, header, row }) => (
9
- <Wrapper>
10
- <table className="r-table">
11
- <thead>
12
- <tr>{header()}</tr>
13
- </thead>
14
-
15
- <tbody>
16
- {list.map((item, idx) => (
17
- <tr key={item.id || idx}>{row(item)}</tr>
18
- ))}
19
- </tbody>
20
- </table>
21
- </Wrapper>
22
- );
23
-
24
- export default DataGrid;
@@ -1,47 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const AVATAR_COLORS = [
5
- "darkkhaki",
6
- "palevioletred",
7
- "mediumseagreen",
8
- "olivedrab",
9
- "steelblue",
10
- "salmon",
11
- "indianred",
12
- "mediumpurple",
13
- "coral",
14
- "rosybrown",
15
- "lightseagreen",
16
- "plum",
17
- "tan",
18
- ];
19
-
20
- const initialsToColor = (initials, colors) => {
21
- let asciiVal = initials.charCodeAt(0);
22
- asciiVal += initials.charCodeAt(1);
23
- let colorIndex = asciiVal % colors.length;
24
-
25
- return colors[colorIndex];
26
- };
27
-
28
- const DefaultAvatarStyles = ({ initials, size, className, ...props }) => (
29
- <div
30
- style={{
31
- width: size || "2.5rem",
32
- height: size || "2.5rem",
33
- fontSize: `calc(${size} * 0.4)`,
34
- backgroundColor: initialsToColor(initials, AVATAR_COLORS),
35
- }}
36
- className={cn("r-reset", "r-default-avatar", className)}
37
- {...props}
38
- />
39
- );
40
-
41
- const DefaultAvatar = ({ initials = "AA", size = "24px", ...props }) => (
42
- <DefaultAvatarStyles initials={initials} size={size} {...props}>
43
- {initials}
44
- </DefaultAvatarStyles>
45
- );
46
-
47
- export default DefaultAvatar;
package/src/Field.jsx DELETED
@@ -1,37 +0,0 @@
1
- import React from "react";
2
- import FormGroup from "./FormGroup";
3
- import Label from "./Label";
4
- import Input from "./Input";
5
- import Textarea from "./Textarea";
6
- import Select from "./Select";
7
- import Hint from "./Hint";
8
-
9
- const Field = ({
10
- as = "input",
11
- r,
12
- name,
13
- label,
14
- hint = "",
15
- error = "",
16
- wrapperProps,
17
- ...props
18
- }) => {
19
- const types = {
20
- input: Input,
21
- select: Select,
22
- textarea: Textarea,
23
- };
24
-
25
- const Component = types[as];
26
-
27
- return (
28
- <FormGroup {...wrapperProps}>
29
- {label && <Label htmlFor={name}>{label}</Label>}
30
- <Component ref={r} id={name} name={name} {...props} />
31
- {hint && <Hint>{hint}</Hint>}
32
- {error && <Hint type="error">{error}</Hint>}
33
- </FormGroup>
34
- );
35
- };
36
-
37
- export default Field;
package/src/FieldSet.js DELETED
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const FieldSet = ({ legend, children, className, ...props }) => (
5
- <fieldset className={cn("r-reset", "r-fieldset", className)} {...props}>
6
- {legend && (
7
- <legend className={cn("r-reset", "r-legend", "r-fs-small")}>
8
- {legend}
9
- </legend>
10
- )}
11
- {children}
12
- </fieldset>
13
- );
14
-
15
- export default FieldSet;
package/src/FormGroup.jsx DELETED
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const FormGroup = ({ type, className, ...props }) => (
5
- <div className={cn("r-reset", "r-form-group", className)} {...props} />
6
- );
7
-
8
- export default FormGroup;
package/src/Grid.jsx DELETED
@@ -1,47 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const getShift = (s) => {
5
- const SHIFTS = {
6
- 1: "2 / span 10",
7
- 2: "3 / span 8",
8
- 3: "4 / span 6",
9
- };
10
-
11
- return SHIFTS[s];
12
- };
13
-
14
- const Shift = ({ s, className, ...props }) => {
15
- return (
16
- <div
17
- style={{
18
- gridColumn: getShift(s) || "2 / span 10",
19
- }}
20
- className={cn("r-reset", className)}
21
- {...props}
22
- ></div>
23
- );
24
- };
25
-
26
- const Col = ({ s, className, ...props }) => (
27
- <div
28
- style={{
29
- gridColumn: `span ${s || "12"}`,
30
- }}
31
- className={cn("r-reset", className)}
32
- {...props}
33
- ></div>
34
- );
35
-
36
- const Row = ({ gutter, className, ...props }) => (
37
- <div
38
- style={{
39
- columnGap: gutter || "1em",
40
- rowGap: gutter || "1em",
41
- }}
42
- className={cn("r-reset", "r-row", className)}
43
- {...props}
44
- ></div>
45
- );
46
-
47
- export { Row, Col, Shift };
package/src/H.jsx DELETED
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const H = ({ size = "base", className = "", ...props }) => (
5
- <div
6
- className={cn("r-reset", "r-heading", `r-fs-${size}`, className)}
7
- {...props}
8
- />
9
- );
10
-
11
- export default H;
package/src/Handle.jsx DELETED
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Handle = ({ className, ...props }) => (
5
- <div className={cn("r-reset", "r-drag-handle", className)} {...props} />
6
- );
7
-
8
- export default Handle;
package/src/Hint.jsx DELETED
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Hint = ({ type, className, ...props }) => (
5
- <div
6
- className={cn(
7
- "r-reset",
8
- "r-fs-small r-hint",
9
- className,
10
- type === "error" && "r-hint-error",
11
- )}
12
- {...props}
13
- />
14
- );
15
-
16
- export default Hint;
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const ImageAvatar = ({ size = "24px", className, ...props }) => (
5
- <img
6
- alt=""
7
- style={{
8
- width: size || "2.5rem",
9
- height: size || "2.5rem",
10
- }}
11
- className={cn("r-reset", "r-image-avatar", className)}
12
- {...props}
13
- />
14
- );
15
-
16
- export default ImageAvatar;
package/src/Input.jsx DELETED
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Input = ({ className, ...rest }) => (
5
- <input className={cn("r-reset", "r-input", className)} {...rest} />
6
- );
7
-
8
- export default Input;
package/src/Label.jsx DELETED
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Label = ({ className, ...props }) => (
5
- <label
6
- className={cn("r-reset", "r-fs-small r-label", className)}
7
- {...props}
8
- />
9
- );
10
-
11
- export default Label;
@@ -1,63 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const LanguageSwitcherWrapper = ({ className, ...props }) => (
5
- <div className={cn("r-reset", "r-language-switcher", className)} {...props} />
6
- );
7
-
8
- const LanguageSwitcherMenu = ({ className, ...props }) => (
9
- <div className={cn("r-reset", "r-language-menu", className)} {...props} />
10
- );
11
-
12
- const LanguageSwitcherItem = ({ className, ...props }) => (
13
- <div className={cn("r-reset", "r-language-item", className)} {...props} />
14
- );
15
-
16
- const LanguageSwitcherNewItem = ({ className, ...props }) => (
17
- <div className={cn("r-reset", "r-language-new-item", className)} {...props} />
18
- );
19
-
20
- const LanguageSwitcherCurrent = ({ className, ...props }) => (
21
- <div
22
- className={cn("r-reset", "r-language-current-item", className)}
23
- {...props}
24
- />
25
- );
26
-
27
- const LanguageSwitcherItemComponent = ({ path, label }) => (
28
- <LanguageSwitcherItem>
29
- <a href={path}>{label}</a>
30
- </LanguageSwitcherItem>
31
- );
32
-
33
- const LanguageSwitcherNewItemComponent = ({ path, label }) => (
34
- <LanguageSwitcherNewItem>
35
- <span>{label}</span>
36
- <a href={path}>+</a>
37
- </LanguageSwitcherNewItem>
38
- );
39
-
40
- const LanguageSwitcher = ({ current, navigation }) => {
41
- return (
42
- <LanguageSwitcherWrapper>
43
- <LanguageSwitcherCurrent>{current}</LanguageSwitcherCurrent>
44
- <LanguageSwitcherMenu data-switcher>
45
- {navigation.map((navItem, idx) => {
46
- const LinkComponent = navItem.newItem
47
- ? LanguageSwitcherNewItemComponent
48
- : LanguageSwitcherItemComponent;
49
-
50
- return (
51
- <LinkComponent
52
- key={idx}
53
- path={navItem.path}
54
- label={navItem.label}
55
- />
56
- );
57
- })}
58
- </LanguageSwitcherMenu>
59
- </LanguageSwitcherWrapper>
60
- );
61
- };
62
-
63
- export default LanguageSwitcher;
package/src/Modal.jsx DELETED
@@ -1,96 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Overlay = ({ className, ...props }) => (
5
- <div className={cn("r-reset", "r-modal-overlay", className)} {...props} />
6
- );
7
-
8
- const Wrapper = ({ className, ...props }) => (
9
- <div className={cn("r-reset", "r-modal", className)} {...props} />
10
- );
11
-
12
- const Inner = ({ className, ...props }) => (
13
- <div className={cn("r-reset", "r-modal-inner", className)} {...props} />
14
- );
15
-
16
- const TitleBar = ({ className, ...props }) => (
17
- <div className={cn("r-reset", "r-modal-title-bar", className)} {...props} />
18
- );
19
-
20
- const Title = ({ className, ...props }) => (
21
- <div className={cn("r-reset", "r-modal-title", className)} {...props} />
22
- );
23
-
24
- const CloseButton = ({ className, ...props }) => (
25
- <button
26
- type="button"
27
- className={cn("r-reset-button r-modal-close-btn", className)}
28
- {...props}
29
- />
30
- );
31
-
32
- const FooterBar = ({ className, ...props }) => (
33
- <div className={cn("r-reset", "r-modal-footer-bar", className)} {...props} />
34
- );
35
-
36
- const Content = ({ className, ...props }) => (
37
- <div className={cn("r-reset", "r-modal-content", className)} {...props} />
38
- );
39
-
40
- function checkForChanges(hasChanges, onClose) {
41
- if (!hasChanges) {
42
- onClose();
43
- return;
44
- }
45
-
46
- if (
47
- !confirm(
48
- "You’ve made changes to the widget. Are you sure you want to cancel?"
49
- )
50
- )
51
- return;
52
-
53
- onClose();
54
- }
55
-
56
- const Modal = ({
57
- title,
58
- children,
59
- customWrapper,
60
- FooterContent,
61
- onClose,
62
- areChanges,
63
- ...rest
64
- }) => {
65
- const ModalWrapper = customWrapper ? customWrapper : Wrapper;
66
-
67
- return (
68
- <React.Fragment>
69
- <Overlay />
70
-
71
- <ModalWrapper {...rest}>
72
- <Inner>
73
- <TitleBar>
74
- <Title>{title}</Title>
75
- <CloseButton
76
- type="button"
77
- onClick={() => checkForChanges(areChanges, onClose)}
78
- >
79
- &times;
80
- </CloseButton>
81
- </TitleBar>
82
-
83
- <Content>{children}</Content>
84
-
85
- {FooterContent && (
86
- <FooterBar>
87
- <FooterContent />
88
- </FooterBar>
89
- )}
90
- </Inner>
91
- </ModalWrapper>
92
- </React.Fragment>
93
- );
94
- };
95
-
96
- export default Modal;
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const Navigation = ({ className, ...props }) => (
5
- <div className={cn("r-reset", "r-navigation", className)} {...props} />
6
- );
7
-
8
- const NavItem = ({ active, className, ...props }) => (
9
- <div
10
- className={cn(
11
- "r-reset",
12
- "r-navigation-item",
13
- active ? "r-navigation-item-active" : "",
14
- className,
15
- )}
16
- {...props}
17
- />
18
- );
19
-
20
- export { Navigation, NavItem };
package/src/P.jsx DELETED
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import cn from "./cn";
3
-
4
- const P = ({ className, ...props }) => (
5
- <div className={cn("r-reset", "r-paragraph", className)} {...props} />
6
- );
7
-
8
- export default P;
package/src/PageTitle.jsx DELETED
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import H from "./H";
3
- import cn from "./cn";
4
-
5
- const Wrapper = ({ className, ...props }) => (
6
- <div className={cn("r-reset", "r-page-title", className)} {...props} />
7
- );
8
-
9
- const PageTitle = ({ children }) => (
10
- <Wrapper>
11
- <H
12
- as="h1"
13
- size="xlarge"
14
- style={{ fontFamily: "sans-serif", fontWeight: 700 }}
15
- >
16
- {children}
17
- </H>
18
- </Wrapper>
19
- );
20
-
21
- export default PageTitle;