@deepgram/styles 0.2.10 → 0.2.12
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/LICENSE +12 -19
- package/README.md +354 -386
- package/design-system.yaml +3742 -3869
- package/dist/deepgram.css +1 -1
- package/dist/deepgram.expanded.css +750 -1607
- package/dist/logo/lettermark-circle-dark.svg +15 -0
- package/dist/logo/lettermark-circle-light.svg +15 -0
- package/dist/logo/lettermark-circle.svg +27 -0
- package/dist/logo/lettermark-dark.svg +3 -0
- package/dist/logo/lettermark-light.svg +3 -0
- package/dist/logo/lettermark-square-dark.svg +10 -0
- package/dist/logo/lettermark-square-light.svg +10 -0
- package/dist/logo/lettermark-square.svg +22 -0
- package/dist/logo/lettermark.svg +9 -0
- package/dist/logo/wordmark-dark.svg +4 -0
- package/dist/logo/wordmark-light.svg +4 -0
- package/dist/logo/wordmark.svg +10 -0
- package/dist/react/ActionGroup.d.ts +4 -0
- package/dist/react/ActionGroup.js +9 -0
- package/dist/react/Alert.d.ts +34 -0
- package/dist/react/Alert.js +71 -0
- package/dist/react/Btn.d.ts +11 -0
- package/dist/react/Btn.js +16 -0
- package/dist/react/BtnCollapse.d.ts +4 -0
- package/dist/react/BtnCollapse.js +9 -0
- package/dist/react/BtnDangerGhost.d.ts +4 -0
- package/dist/react/BtnDangerGhost.js +9 -0
- package/dist/react/BtnGhost.d.ts +4 -0
- package/dist/react/BtnGhost.js +9 -0
- package/dist/react/BtnIcon.d.ts +4 -0
- package/dist/react/BtnIcon.js +9 -0
- package/dist/react/BtnSecondary.d.ts +4 -0
- package/dist/react/BtnSecondary.js +9 -0
- package/dist/react/BtnSmall.d.ts +4 -0
- package/dist/react/BtnSmall.js +9 -0
- package/dist/react/Card.d.ts +26 -0
- package/dist/react/Card.js +51 -0
- package/dist/react/CardHeading.d.ts +4 -0
- package/dist/react/CardHeading.js +9 -0
- package/dist/react/CardHeadings.d.ts +7 -0
- package/dist/react/CardHeadings.js +16 -0
- package/dist/react/Checkbox.d.ts +4 -0
- package/dist/react/Checkbox.js +9 -0
- package/dist/react/CheckboxDescription.d.ts +4 -0
- package/dist/react/CheckboxDescription.js +9 -0
- package/dist/react/CheckboxGroup.d.ts +4 -0
- package/dist/react/CheckboxGroup.js +9 -0
- package/dist/react/CheckboxLabel.d.ts +4 -0
- package/dist/react/CheckboxLabel.js +9 -0
- package/dist/react/CodeBlock.d.ts +7 -0
- package/dist/react/CodeBlock.js +12 -0
- package/dist/react/Columns.d.ts +25 -0
- package/dist/react/Columns.js +44 -0
- package/dist/react/ConstrainWidth.d.ts +4 -0
- package/dist/react/ConstrainWidth.js +9 -0
- package/dist/react/DragDropZone.d.ts +17 -0
- package/dist/react/DragDropZone.js +38 -0
- package/dist/react/Footer.d.ts +10 -0
- package/dist/react/Footer.js +23 -0
- package/dist/react/FormError.d.ts +4 -0
- package/dist/react/FormError.js +9 -0
- package/dist/react/FormField.d.ts +4 -0
- package/dist/react/FormField.js +9 -0
- package/dist/react/FormHelper.d.ts +4 -0
- package/dist/react/FormHelper.js +9 -0
- package/dist/react/FormLabel.d.ts +4 -0
- package/dist/react/FormLabel.js +9 -0
- package/dist/react/GridMobileStack.d.ts +4 -0
- package/dist/react/GridMobileStack.js +9 -0
- package/dist/react/Header.d.ts +25 -0
- package/dist/react/Header.js +58 -0
- package/dist/react/Hero.d.ts +25 -0
- package/dist/react/Hero.js +58 -0
- package/dist/react/Icon.d.ts +5 -0
- package/dist/react/Icon.js +10 -0
- package/dist/react/Input.d.ts +6 -0
- package/dist/react/Input.js +11 -0
- package/dist/react/ItemTitle.d.ts +4 -0
- package/dist/react/ItemTitle.js +9 -0
- package/dist/react/Link.d.ts +4 -0
- package/dist/react/Link.js +9 -0
- package/dist/react/Modal.d.ts +8 -0
- package/dist/react/Modal.js +17 -0
- package/dist/react/Newsletter.d.ts +8 -0
- package/dist/react/Newsletter.js +17 -0
- package/dist/react/Option.d.ts +4 -0
- package/dist/react/Option.js +9 -0
- package/dist/react/PageHeading.d.ts +10 -0
- package/dist/react/PageHeading.js +23 -0
- package/dist/react/PageHeadings.d.ts +13 -0
- package/dist/react/PageHeadings.js +30 -0
- package/dist/react/Prose.d.ts +6 -0
- package/dist/react/Prose.js +11 -0
- package/dist/react/Radio.d.ts +4 -0
- package/dist/react/Radio.js +9 -0
- package/dist/react/RadioDescription.d.ts +7 -0
- package/dist/react/RadioDescription.js +16 -0
- package/dist/react/RadioGroup.d.ts +4 -0
- package/dist/react/RadioGroup.js +9 -0
- package/dist/react/RadioLabel.d.ts +4 -0
- package/dist/react/RadioLabel.js +9 -0
- package/dist/react/Section.d.ts +9 -0
- package/dist/react/Section.js +14 -0
- package/dist/react/SectionHeading.d.ts +4 -0
- package/dist/react/SectionHeading.js +9 -0
- package/dist/react/Select.d.ts +4 -0
- package/dist/react/Select.js +9 -0
- package/dist/react/Spinner.d.ts +7 -0
- package/dist/react/Spinner.js +16 -0
- package/dist/react/Status.d.ts +12 -0
- package/dist/react/Status.js +17 -0
- package/dist/react/TextUtilities.d.ts +4 -0
- package/dist/react/TextUtilities.js +9 -0
- package/dist/react/Textarea.d.ts +4 -0
- package/dist/react/Textarea.js +9 -0
- package/dist/react/Toggle.d.ts +4 -0
- package/dist/react/Toggle.js +9 -0
- package/dist/react/ToggleGroup.d.ts +4 -0
- package/dist/react/ToggleGroup.js +9 -0
- package/dist/react/ToggleLabel.d.ts +4 -0
- package/dist/react/ToggleLabel.js +9 -0
- package/dist/react/index.d.ts +43 -0
- package/dist/react/index.js +43 -0
- package/dist/utils.d.ts +16 -0
- package/dist/utils.js +50 -0
- package/lib/deepgram.css +595 -752
- package/lib/tailwind-theme.css +27 -22
- package/package.json +54 -3
- package/src/react/ActionGroup.tsx +14 -0
- package/src/react/Alert.tsx +130 -0
- package/src/react/Btn.tsx +28 -0
- package/src/react/BtnCollapse.tsx +14 -0
- package/src/react/BtnDangerGhost.tsx +14 -0
- package/src/react/BtnGhost.tsx +14 -0
- package/src/react/BtnIcon.tsx +14 -0
- package/src/react/BtnSecondary.tsx +14 -0
- package/src/react/BtnSmall.tsx +14 -0
- package/src/react/Card.tsx +93 -0
- package/src/react/CardHeading.tsx +14 -0
- package/src/react/CardHeadings.tsx +27 -0
- package/src/react/Checkbox.tsx +14 -0
- package/src/react/CheckboxDescription.tsx +14 -0
- package/src/react/CheckboxGroup.tsx +14 -0
- package/src/react/CheckboxLabel.tsx +14 -0
- package/src/react/CodeBlock.tsx +20 -0
- package/src/react/Columns.tsx +82 -0
- package/src/react/ConstrainWidth.tsx +14 -0
- package/src/react/DragDropZone.tsx +68 -0
- package/src/react/Footer.tsx +40 -0
- package/src/react/FormError.tsx +14 -0
- package/src/react/FormField.tsx +14 -0
- package/src/react/FormHelper.tsx +14 -0
- package/src/react/FormLabel.tsx +14 -0
- package/src/react/GridMobileStack.tsx +14 -0
- package/src/react/Header.tsx +105 -0
- package/src/react/Hero.tsx +105 -0
- package/src/react/Icon.tsx +16 -0
- package/src/react/Input.tsx +18 -0
- package/src/react/ItemTitle.tsx +14 -0
- package/src/react/Link.tsx +14 -0
- package/src/react/Modal.tsx +29 -0
- package/src/react/Newsletter.tsx +29 -0
- package/src/react/Option.tsx +14 -0
- package/src/react/PageHeading.tsx +40 -0
- package/src/react/PageHeadings.tsx +53 -0
- package/src/react/Prose.tsx +18 -0
- package/src/react/Radio.tsx +14 -0
- package/src/react/RadioDescription.tsx +27 -0
- package/src/react/RadioGroup.tsx +14 -0
- package/src/react/RadioLabel.tsx +14 -0
- package/src/react/Section.tsx +24 -0
- package/src/react/SectionHeading.tsx +14 -0
- package/src/react/Select.tsx +14 -0
- package/src/react/Spinner.tsx +27 -0
- package/src/react/Status.tsx +30 -0
- package/src/react/TextUtilities.tsx +14 -0
- package/src/react/Textarea.tsx +14 -0
- package/src/react/Toggle.tsx +14 -0
- package/src/react/ToggleGroup.tsx +14 -0
- package/src/react/ToggleLabel.tsx +14 -0
- package/src/react/index.ts +43 -0
- package/src/utils.ts +60 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface ColumnsProps extends ComponentPropsWithRef<'div'> {
|
|
5
|
+
fixed?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const Columns = forwardRef<HTMLDivElement, ColumnsProps>(
|
|
9
|
+
function Columns({ fixed, className, children, ...props }, ref) {
|
|
10
|
+
const cls = [
|
|
11
|
+
'dg-columns',
|
|
12
|
+
fixed && 'dg-columns--fixed',
|
|
13
|
+
className,
|
|
14
|
+
].filter(Boolean).join(' ');
|
|
15
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export interface ColumnsWrapperProps extends ComponentPropsWithRef<'div'> {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const ColumnsWrapper = forwardRef<HTMLDivElement, ColumnsWrapperProps>(
|
|
23
|
+
function ColumnsWrapper({ className, children, ...props }, ref) {
|
|
24
|
+
const cls = [
|
|
25
|
+
'dg-columns__wrapper',
|
|
26
|
+
className,
|
|
27
|
+
].filter(Boolean).join(' ');
|
|
28
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export interface ColumnsMobileHeaderProps extends ComponentPropsWithRef<'div'> {
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const ColumnsMobileHeader = forwardRef<HTMLDivElement, ColumnsMobileHeaderProps>(
|
|
36
|
+
function ColumnsMobileHeader({ className, children, ...props }, ref) {
|
|
37
|
+
const cls = [
|
|
38
|
+
'dg-columns__mobile-header',
|
|
39
|
+
className,
|
|
40
|
+
].filter(Boolean).join(' ');
|
|
41
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
export interface ColumnsSidebarToggleProps extends ComponentPropsWithRef<'div'> {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const ColumnsSidebarToggle = forwardRef<HTMLDivElement, ColumnsSidebarToggleProps>(
|
|
49
|
+
function ColumnsSidebarToggle({ className, children, ...props }, ref) {
|
|
50
|
+
const cls = [
|
|
51
|
+
'dg-columns__sidebar-toggle',
|
|
52
|
+
className,
|
|
53
|
+
].filter(Boolean).join(' ');
|
|
54
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
export interface ColumnsColumnProps extends Omit<ComponentPropsWithRef<'div'>, 'is'> {
|
|
59
|
+
is?: React.ElementType;
|
|
60
|
+
left?: boolean;
|
|
61
|
+
right?: boolean;
|
|
62
|
+
center?: boolean;
|
|
63
|
+
sm?: boolean;
|
|
64
|
+
lg?: boolean;
|
|
65
|
+
xl?: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const ColumnsColumn = forwardRef<HTMLElement, ColumnsColumnProps>(
|
|
69
|
+
function ColumnsColumn({ is: Tag = 'div', left, right, center, sm, lg, xl, className, children, ...props }, ref) {
|
|
70
|
+
const cls = [
|
|
71
|
+
'dg-columns__column',
|
|
72
|
+
left && 'dg-columns__column--left',
|
|
73
|
+
right && 'dg-columns__column--right',
|
|
74
|
+
center && 'dg-columns__column--center',
|
|
75
|
+
sm && 'dg-columns__column--sm',
|
|
76
|
+
lg && 'dg-columns__column--lg',
|
|
77
|
+
xl && 'dg-columns__column--xl',
|
|
78
|
+
className,
|
|
79
|
+
].filter(Boolean).join(' ');
|
|
80
|
+
return <Tag ref={ref} className={cls} {...props}>{children}</Tag>;
|
|
81
|
+
}
|
|
82
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ConstrainWidthProps extends ComponentPropsWithRef<'div'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const ConstrainWidth = forwardRef<HTMLDivElement, ConstrainWidthProps>(
|
|
7
|
+
function ConstrainWidth({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-constrain-width',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface DragDropZoneProps extends ComponentPropsWithRef<'div'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const DragDropZone = forwardRef<HTMLDivElement, DragDropZoneProps>(
|
|
7
|
+
function DragDropZone({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-drag-drop-zone',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export interface DragDropZoneInputProps extends ComponentPropsWithRef<'input'> {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const DragDropZoneInput = forwardRef<HTMLInputElement, DragDropZoneInputProps>(
|
|
20
|
+
function DragDropZoneInput({ className, ...props }, ref) {
|
|
21
|
+
const cls = [
|
|
22
|
+
'dg-drag-drop-zone__input',
|
|
23
|
+
className,
|
|
24
|
+
].filter(Boolean).join(' ');
|
|
25
|
+
return <input ref={ref} type="file" className={cls} {...props} />;
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export interface DragDropZoneIconProps extends ComponentPropsWithRef<'i'> {
|
|
30
|
+
name?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const DragDropZoneIcon = forwardRef<HTMLElement, DragDropZoneIconProps>(
|
|
34
|
+
function DragDropZoneIcon({ name, className, children, ...props }, ref) {
|
|
35
|
+
const cls = [
|
|
36
|
+
'dg-drag-drop-zone__icon',
|
|
37
|
+
name && `fas fa-${name}`,
|
|
38
|
+
className,
|
|
39
|
+
].filter(Boolean).join(' ');
|
|
40
|
+
return <i ref={ref} className={cls} {...props}>{children}</i>;
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export interface DragDropZoneTextProps extends ComponentPropsWithRef<'p'> {
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const DragDropZoneText = forwardRef<HTMLParagraphElement, DragDropZoneTextProps>(
|
|
48
|
+
function DragDropZoneText({ className, children, ...props }, ref) {
|
|
49
|
+
const cls = [
|
|
50
|
+
'dg-drag-drop-zone__text',
|
|
51
|
+
className,
|
|
52
|
+
].filter(Boolean).join(' ');
|
|
53
|
+
return <p ref={ref} className={cls} {...props}>{children}</p>;
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
export interface DragDropZoneHintProps extends ComponentPropsWithRef<'p'> {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export const DragDropZoneHint = forwardRef<HTMLParagraphElement, DragDropZoneHintProps>(
|
|
61
|
+
function DragDropZoneHint({ className, children, ...props }, ref) {
|
|
62
|
+
const cls = [
|
|
63
|
+
'dg-drag-drop-zone__hint',
|
|
64
|
+
className,
|
|
65
|
+
].filter(Boolean).join(' ');
|
|
66
|
+
return <p ref={ref} className={cls} {...props}>{children}</p>;
|
|
67
|
+
}
|
|
68
|
+
);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface FooterProps extends ComponentPropsWithRef<'footer'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const Footer = forwardRef<HTMLElement, FooterProps>(
|
|
7
|
+
function Footer({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-footer',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <footer ref={ref} className={cls} {...props}>{children}</footer>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export interface FooterSocialLinksProps extends ComponentPropsWithRef<'div'> {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const FooterSocialLinks = forwardRef<HTMLDivElement, FooterSocialLinksProps>(
|
|
20
|
+
function FooterSocialLinks({ className, children, ...props }, ref) {
|
|
21
|
+
const cls = [
|
|
22
|
+
'dg-footer__social-links',
|
|
23
|
+
className,
|
|
24
|
+
].filter(Boolean).join(' ');
|
|
25
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export interface FooterSocialLinkProps extends ComponentPropsWithRef<'a'> {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const FooterSocialLink = forwardRef<HTMLAnchorElement, FooterSocialLinkProps>(
|
|
33
|
+
function FooterSocialLink({ className, children, ...props }, ref) {
|
|
34
|
+
const cls = [
|
|
35
|
+
'dg-footer__social-link',
|
|
36
|
+
className,
|
|
37
|
+
].filter(Boolean).join(' ');
|
|
38
|
+
return <a ref={ref} className={cls} {...props}>{children}</a>;
|
|
39
|
+
}
|
|
40
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface FormErrorProps extends ComponentPropsWithRef<'span'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const FormError = forwardRef<HTMLSpanElement, FormErrorProps>(
|
|
7
|
+
function FormError({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-form-error',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <span ref={ref} className={cls} {...props}>{children}</span>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface FormFieldProps extends ComponentPropsWithRef<'div'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const FormField = forwardRef<HTMLDivElement, FormFieldProps>(
|
|
7
|
+
function FormField({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-form-field',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface FormHelperProps extends ComponentPropsWithRef<'span'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const FormHelper = forwardRef<HTMLSpanElement, FormHelperProps>(
|
|
7
|
+
function FormHelper({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-form-helper',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <span ref={ref} className={cls} {...props}>{children}</span>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface FormLabelProps extends ComponentPropsWithRef<'label'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const FormLabel = forwardRef<HTMLLabelElement, FormLabelProps>(
|
|
7
|
+
function FormLabel({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-form-label',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <label ref={ref} className={cls} {...props}>{children}</label>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface GridMobileStackProps extends ComponentPropsWithRef<'div'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const GridMobileStack = forwardRef<HTMLDivElement, GridMobileStackProps>(
|
|
7
|
+
function GridMobileStack({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-grid-mobile-stack',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface HeaderProps extends ComponentPropsWithRef<'header'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const Header = forwardRef<HTMLElement, HeaderProps>(
|
|
7
|
+
function Header({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-header',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <header ref={ref} className={cls} {...props}>{children}</header>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export interface HeaderContainerProps extends ComponentPropsWithRef<'div'> {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const HeaderContainer = forwardRef<HTMLDivElement, HeaderContainerProps>(
|
|
20
|
+
function HeaderContainer({ className, children, ...props }, ref) {
|
|
21
|
+
const cls = [
|
|
22
|
+
'dg-header__container',
|
|
23
|
+
className,
|
|
24
|
+
].filter(Boolean).join(' ');
|
|
25
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export interface HeaderLogoProps extends ComponentPropsWithRef<'div'> {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const HeaderLogo = forwardRef<HTMLDivElement, HeaderLogoProps>(
|
|
33
|
+
function HeaderLogo({ className, children, ...props }, ref) {
|
|
34
|
+
const cls = [
|
|
35
|
+
'dg-header__logo',
|
|
36
|
+
className,
|
|
37
|
+
].filter(Boolean).join(' ');
|
|
38
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
export interface HeaderLogoImageProps extends ComponentPropsWithRef<'img'> {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export const HeaderLogoImage = forwardRef<HTMLImageElement, HeaderLogoImageProps>(
|
|
46
|
+
function HeaderLogoImage({ className, ...props }, ref) {
|
|
47
|
+
const cls = [
|
|
48
|
+
'dg-header__logo-image',
|
|
49
|
+
className,
|
|
50
|
+
].filter(Boolean).join(' ');
|
|
51
|
+
return <img ref={ref} className={cls} {...props} />;
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
export interface HeaderLogoTextProps extends ComponentPropsWithRef<'span'> {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const HeaderLogoText = forwardRef<HTMLSpanElement, HeaderLogoTextProps>(
|
|
59
|
+
function HeaderLogoText({ className, children, ...props }, ref) {
|
|
60
|
+
const cls = [
|
|
61
|
+
'dg-header__logo-text',
|
|
62
|
+
className,
|
|
63
|
+
].filter(Boolean).join(' ');
|
|
64
|
+
return <span ref={ref} className={cls} {...props}>{children}</span>;
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
export interface HeaderNavProps extends ComponentPropsWithRef<'nav'> {
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const HeaderNav = forwardRef<HTMLElement, HeaderNavProps>(
|
|
72
|
+
function HeaderNav({ className, children, ...props }, ref) {
|
|
73
|
+
const cls = [
|
|
74
|
+
'dg-header__nav',
|
|
75
|
+
className,
|
|
76
|
+
].filter(Boolean).join(' ');
|
|
77
|
+
return <nav ref={ref} className={cls} {...props}>{children}</nav>;
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
export interface HeaderProfileLinkProps extends ComponentPropsWithRef<'a'> {
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const HeaderProfileLink = forwardRef<HTMLAnchorElement, HeaderProfileLinkProps>(
|
|
85
|
+
function HeaderProfileLink({ className, children, ...props }, ref) {
|
|
86
|
+
const cls = [
|
|
87
|
+
'dg-header__profile-link',
|
|
88
|
+
className,
|
|
89
|
+
].filter(Boolean).join(' ');
|
|
90
|
+
return <a ref={ref} className={cls} {...props}>{children}</a>;
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
export interface HeaderProfileAvatarProps extends ComponentPropsWithRef<'img'> {
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const HeaderProfileAvatar = forwardRef<HTMLImageElement, HeaderProfileAvatarProps>(
|
|
98
|
+
function HeaderProfileAvatar({ className, ...props }, ref) {
|
|
99
|
+
const cls = [
|
|
100
|
+
'dg-header__profile-avatar',
|
|
101
|
+
className,
|
|
102
|
+
].filter(Boolean).join(' ');
|
|
103
|
+
return <img ref={ref} className={cls} {...props} />;
|
|
104
|
+
}
|
|
105
|
+
);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface HeroProps extends ComponentPropsWithRef<'section'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const Hero = forwardRef<HTMLElement, HeroProps>(
|
|
7
|
+
function Hero({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-hero',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <section ref={ref} className={cls} {...props}>{children}</section>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export interface HeroTitleProps extends ComponentPropsWithRef<'h1'> {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const HeroTitle = forwardRef<HTMLHeadingElement, HeroTitleProps>(
|
|
20
|
+
function HeroTitle({ className, children, ...props }, ref) {
|
|
21
|
+
const cls = [
|
|
22
|
+
'dg-hero__title',
|
|
23
|
+
className,
|
|
24
|
+
].filter(Boolean).join(' ');
|
|
25
|
+
return <h1 ref={ref} className={cls} {...props}>{children}</h1>;
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export interface HeroContentProps extends ComponentPropsWithRef<'div'> {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const HeroContent = forwardRef<HTMLDivElement, HeroContentProps>(
|
|
33
|
+
function HeroContent({ className, children, ...props }, ref) {
|
|
34
|
+
const cls = [
|
|
35
|
+
'dg-hero__content',
|
|
36
|
+
className,
|
|
37
|
+
].filter(Boolean).join(' ');
|
|
38
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
export interface HeroAnnouncementProps extends ComponentPropsWithRef<'a'> {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export const HeroAnnouncement = forwardRef<HTMLAnchorElement, HeroAnnouncementProps>(
|
|
46
|
+
function HeroAnnouncement({ className, children, ...props }, ref) {
|
|
47
|
+
const cls = [
|
|
48
|
+
'dg-hero__announcement',
|
|
49
|
+
className,
|
|
50
|
+
].filter(Boolean).join(' ');
|
|
51
|
+
return <a ref={ref} className={cls} {...props}>{children}</a>;
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
export interface HeroAnnouncementTextProps extends ComponentPropsWithRef<'span'> {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const HeroAnnouncementText = forwardRef<HTMLSpanElement, HeroAnnouncementTextProps>(
|
|
59
|
+
function HeroAnnouncementText({ className, children, ...props }, ref) {
|
|
60
|
+
const cls = [
|
|
61
|
+
'dg-hero__announcement-text',
|
|
62
|
+
className,
|
|
63
|
+
].filter(Boolean).join(' ');
|
|
64
|
+
return <span ref={ref} className={cls} {...props}>{children}</span>;
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
export interface HeroAnnouncementCtaProps extends ComponentPropsWithRef<'span'> {
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const HeroAnnouncementCta = forwardRef<HTMLSpanElement, HeroAnnouncementCtaProps>(
|
|
72
|
+
function HeroAnnouncementCta({ className, children, ...props }, ref) {
|
|
73
|
+
const cls = [
|
|
74
|
+
'dg-hero__announcement-cta',
|
|
75
|
+
className,
|
|
76
|
+
].filter(Boolean).join(' ');
|
|
77
|
+
return <span ref={ref} className={cls} {...props}>{children}</span>;
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
export interface HeroBodyProps extends ComponentPropsWithRef<'p'> {
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const HeroBody = forwardRef<HTMLParagraphElement, HeroBodyProps>(
|
|
85
|
+
function HeroBody({ className, children, ...props }, ref) {
|
|
86
|
+
const cls = [
|
|
87
|
+
'dg-hero__body',
|
|
88
|
+
className,
|
|
89
|
+
].filter(Boolean).join(' ');
|
|
90
|
+
return <p ref={ref} className={cls} {...props}>{children}</p>;
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
export interface HeroActionsProps extends ComponentPropsWithRef<'div'> {
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const HeroActions = forwardRef<HTMLDivElement, HeroActionsProps>(
|
|
98
|
+
function HeroActions({ className, children, ...props }, ref) {
|
|
99
|
+
const cls = [
|
|
100
|
+
'dg-hero__actions',
|
|
101
|
+
className,
|
|
102
|
+
].filter(Boolean).join(' ');
|
|
103
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
104
|
+
}
|
|
105
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IconProps extends ComponentPropsWithRef<'i'> {
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const Icon = forwardRef<HTMLElement, IconProps>(
|
|
8
|
+
function Icon({ name, className, children, ...props }, ref) {
|
|
9
|
+
const cls = [
|
|
10
|
+
'dg-icon',
|
|
11
|
+
name && `fas fa-${name}`,
|
|
12
|
+
className,
|
|
13
|
+
].filter(Boolean).join(' ');
|
|
14
|
+
return <i ref={ref} className={cls} {...props}>{children}</i>;
|
|
15
|
+
}
|
|
16
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface InputProps extends ComponentPropsWithRef<'input'> {
|
|
4
|
+
inline?: boolean;
|
|
5
|
+
full?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const Input = forwardRef<HTMLInputElement, InputProps>(
|
|
9
|
+
function Input({ inline, full, className, ...props }, ref) {
|
|
10
|
+
const cls = [
|
|
11
|
+
'dg-input',
|
|
12
|
+
inline && 'dg-input--inline',
|
|
13
|
+
full && 'dg-input--full',
|
|
14
|
+
className,
|
|
15
|
+
].filter(Boolean).join(' ');
|
|
16
|
+
return <input ref={ref} className={cls} {...props} />;
|
|
17
|
+
}
|
|
18
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ItemTitleProps extends ComponentPropsWithRef<'h4'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const ItemTitle = forwardRef<HTMLHeadingElement, ItemTitleProps>(
|
|
7
|
+
function ItemTitle({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-item-title',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <h4 ref={ref} className={cls} {...props}>{children}</h4>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface LinkProps extends ComponentPropsWithRef<'a'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const Link = forwardRef<HTMLAnchorElement, LinkProps>(
|
|
7
|
+
function Link({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-link',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <a ref={ref} className={cls} {...props}>{children}</a>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ModalProps extends ComponentPropsWithRef<'div'> {
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const Modal = forwardRef<HTMLDivElement, ModalProps>(
|
|
8
|
+
function Modal({ visible, className, children, ...props }, ref) {
|
|
9
|
+
const cls = [
|
|
10
|
+
'dg-modal',
|
|
11
|
+
visible && 'dg-modal--visible',
|
|
12
|
+
className,
|
|
13
|
+
].filter(Boolean).join(' ');
|
|
14
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export interface ModalContentProps extends ComponentPropsWithRef<'div'> {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const ModalContent = forwardRef<HTMLDivElement, ModalContentProps>(
|
|
22
|
+
function ModalContent({ className, children, ...props }, ref) {
|
|
23
|
+
const cls = [
|
|
24
|
+
'dg-modal__content',
|
|
25
|
+
className,
|
|
26
|
+
].filter(Boolean).join(' ');
|
|
27
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
28
|
+
}
|
|
29
|
+
);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface NewsletterProps extends ComponentPropsWithRef<'div'> {
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const Newsletter = forwardRef<HTMLDivElement, NewsletterProps>(
|
|
8
|
+
function Newsletter({ compact, className, children, ...props }, ref) {
|
|
9
|
+
const cls = [
|
|
10
|
+
'dg-newsletter',
|
|
11
|
+
compact && 'dg-newsletter--compact',
|
|
12
|
+
className,
|
|
13
|
+
].filter(Boolean).join(' ');
|
|
14
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export interface NewsletterFormProps extends ComponentPropsWithRef<'form'> {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const NewsletterForm = forwardRef<HTMLFormElement, NewsletterFormProps>(
|
|
22
|
+
function NewsletterForm({ className, children, ...props }, ref) {
|
|
23
|
+
const cls = [
|
|
24
|
+
'dg-newsletter__form',
|
|
25
|
+
className,
|
|
26
|
+
].filter(Boolean).join(' ');
|
|
27
|
+
return <form ref={ref} className={cls} {...props}>{children}</form>;
|
|
28
|
+
}
|
|
29
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface OptionProps extends ComponentPropsWithRef<'option'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const Option = forwardRef<HTMLOptionElement, OptionProps>(
|
|
7
|
+
function Option({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-option',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <option ref={ref} className={cls} {...props}>{children}</option>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { forwardRef, type ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface PageHeadingProps extends ComponentPropsWithRef<'div'> {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const PageHeading = forwardRef<HTMLDivElement, PageHeadingProps>(
|
|
7
|
+
function PageHeading({ className, children, ...props }, ref) {
|
|
8
|
+
const cls = [
|
|
9
|
+
'dg-page-heading',
|
|
10
|
+
className,
|
|
11
|
+
].filter(Boolean).join(' ');
|
|
12
|
+
return <div ref={ref} className={cls} {...props}>{children}</div>;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export interface PageHeadingTitleProps extends ComponentPropsWithRef<'h1'> {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const PageHeadingTitle = forwardRef<HTMLHeadingElement, PageHeadingTitleProps>(
|
|
20
|
+
function PageHeadingTitle({ className, children, ...props }, ref) {
|
|
21
|
+
const cls = [
|
|
22
|
+
'dg-page-heading__title',
|
|
23
|
+
className,
|
|
24
|
+
].filter(Boolean).join(' ');
|
|
25
|
+
return <h1 ref={ref} className={cls} {...props}>{children}</h1>;
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export interface PageHeadingDescriptionProps extends ComponentPropsWithRef<'p'> {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const PageHeadingDescription = forwardRef<HTMLParagraphElement, PageHeadingDescriptionProps>(
|
|
33
|
+
function PageHeadingDescription({ className, children, ...props }, ref) {
|
|
34
|
+
const cls = [
|
|
35
|
+
'dg-page-heading__description',
|
|
36
|
+
className,
|
|
37
|
+
].filter(Boolean).join(' ');
|
|
38
|
+
return <p ref={ref} className={cls} {...props}>{children}</p>;
|
|
39
|
+
}
|
|
40
|
+
);
|