@deepgram/styles 0.2.11 → 0.2.13

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 (142) hide show
  1. package/README.md +285 -317
  2. package/design-system.yaml +3115 -3336
  3. package/dist/deepgram.css +1 -1
  4. package/dist/deepgram.expanded.css +741 -880
  5. package/dist/react/ActionGroup.d.ts +4 -0
  6. package/dist/react/ActionGroup.js +9 -0
  7. package/dist/react/Alert.d.ts +34 -0
  8. package/dist/react/Alert.js +71 -0
  9. package/dist/react/Btn.d.ts +11 -0
  10. package/dist/react/Btn.js +16 -0
  11. package/dist/react/Card.d.ts +26 -0
  12. package/dist/react/Card.js +51 -0
  13. package/dist/react/CardHeading.d.ts +4 -0
  14. package/dist/react/CardHeading.js +9 -0
  15. package/dist/react/CardHeadings.d.ts +7 -0
  16. package/dist/react/CardHeadings.js +16 -0
  17. package/dist/react/Checkbox.d.ts +4 -0
  18. package/dist/react/Checkbox.js +9 -0
  19. package/dist/react/CheckboxDescription.d.ts +4 -0
  20. package/dist/react/CheckboxDescription.js +9 -0
  21. package/dist/react/CheckboxGroup.d.ts +4 -0
  22. package/dist/react/CheckboxGroup.js +9 -0
  23. package/dist/react/CheckboxLabel.d.ts +4 -0
  24. package/dist/react/CheckboxLabel.js +9 -0
  25. package/dist/react/CodeBlock.d.ts +7 -0
  26. package/dist/react/CodeBlock.js +12 -0
  27. package/dist/react/Columns.d.ts +25 -0
  28. package/dist/react/Columns.js +44 -0
  29. package/dist/react/ConstrainWidth.d.ts +4 -0
  30. package/dist/react/ConstrainWidth.js +9 -0
  31. package/dist/react/DragDropZone.d.ts +17 -0
  32. package/dist/react/DragDropZone.js +38 -0
  33. package/dist/react/Footer.d.ts +10 -0
  34. package/dist/react/Footer.js +23 -0
  35. package/dist/react/FormError.d.ts +4 -0
  36. package/dist/react/FormError.js +9 -0
  37. package/dist/react/FormField.d.ts +4 -0
  38. package/dist/react/FormField.js +9 -0
  39. package/dist/react/FormHelper.d.ts +4 -0
  40. package/dist/react/FormHelper.js +9 -0
  41. package/dist/react/FormLabel.d.ts +4 -0
  42. package/dist/react/FormLabel.js +9 -0
  43. package/dist/react/GridMobileStack.d.ts +4 -0
  44. package/dist/react/GridMobileStack.js +9 -0
  45. package/dist/react/Hero.d.ts +25 -0
  46. package/dist/react/Hero.js +58 -0
  47. package/dist/react/Icon.d.ts +5 -0
  48. package/dist/react/Icon.js +10 -0
  49. package/dist/react/Input.d.ts +6 -0
  50. package/dist/react/Input.js +11 -0
  51. package/dist/react/ItemTitle.d.ts +4 -0
  52. package/dist/react/ItemTitle.js +9 -0
  53. package/dist/react/Newsletter.d.ts +8 -0
  54. package/dist/react/Newsletter.js +17 -0
  55. package/dist/react/Option.d.ts +4 -0
  56. package/dist/react/Option.js +9 -0
  57. package/dist/react/PageHeading.d.ts +10 -0
  58. package/dist/react/PageHeading.js +23 -0
  59. package/dist/react/PageHeadings.d.ts +13 -0
  60. package/dist/react/PageHeadings.js +30 -0
  61. package/dist/react/Prose.d.ts +6 -0
  62. package/dist/react/Prose.js +11 -0
  63. package/dist/react/Radio.d.ts +4 -0
  64. package/dist/react/Radio.js +9 -0
  65. package/dist/react/RadioDescription.d.ts +7 -0
  66. package/dist/react/RadioDescription.js +16 -0
  67. package/dist/react/RadioGroup.d.ts +4 -0
  68. package/dist/react/RadioGroup.js +9 -0
  69. package/dist/react/RadioLabel.d.ts +4 -0
  70. package/dist/react/RadioLabel.js +9 -0
  71. package/dist/react/Section.d.ts +9 -0
  72. package/dist/react/Section.js +14 -0
  73. package/dist/react/SectionHeading.d.ts +4 -0
  74. package/dist/react/SectionHeading.js +9 -0
  75. package/dist/react/Select.d.ts +4 -0
  76. package/dist/react/Select.js +9 -0
  77. package/dist/react/Spinner.d.ts +7 -0
  78. package/dist/react/Spinner.js +16 -0
  79. package/dist/react/Status.d.ts +12 -0
  80. package/dist/react/Status.js +17 -0
  81. package/dist/react/TextUtilities.d.ts +4 -0
  82. package/dist/react/TextUtilities.js +9 -0
  83. package/dist/react/Textarea.d.ts +4 -0
  84. package/dist/react/Textarea.js +9 -0
  85. package/dist/react/Toggle.d.ts +4 -0
  86. package/dist/react/Toggle.js +9 -0
  87. package/dist/react/ToggleGroup.d.ts +4 -0
  88. package/dist/react/ToggleGroup.js +9 -0
  89. package/dist/react/ToggleLabel.d.ts +4 -0
  90. package/dist/react/ToggleLabel.js +9 -0
  91. package/dist/react/index.d.ts +43 -0
  92. package/dist/react/index.js +43 -0
  93. package/dist/utils.d.ts +16 -0
  94. package/dist/utils.js +50 -0
  95. package/lib/deepgram.css +531 -486
  96. package/lib/tailwind-theme.css +0 -1
  97. package/package.json +17 -2
  98. package/src/react/ActionGroup.tsx +14 -0
  99. package/src/react/Alert.tsx +130 -0
  100. package/src/react/Btn.tsx +28 -0
  101. package/src/react/Card.tsx +93 -0
  102. package/src/react/CardHeading.tsx +14 -0
  103. package/src/react/CardHeadings.tsx +27 -0
  104. package/src/react/Checkbox.tsx +14 -0
  105. package/src/react/CheckboxDescription.tsx +14 -0
  106. package/src/react/CheckboxGroup.tsx +14 -0
  107. package/src/react/CheckboxLabel.tsx +14 -0
  108. package/src/react/CodeBlock.tsx +20 -0
  109. package/src/react/Columns.tsx +82 -0
  110. package/src/react/ConstrainWidth.tsx +14 -0
  111. package/src/react/DragDropZone.tsx +68 -0
  112. package/src/react/Footer.tsx +40 -0
  113. package/src/react/FormError.tsx +14 -0
  114. package/src/react/FormField.tsx +14 -0
  115. package/src/react/FormHelper.tsx +14 -0
  116. package/src/react/FormLabel.tsx +14 -0
  117. package/src/react/GridMobileStack.tsx +14 -0
  118. package/src/react/Hero.tsx +105 -0
  119. package/src/react/Icon.tsx +16 -0
  120. package/src/react/Input.tsx +18 -0
  121. package/src/react/ItemTitle.tsx +14 -0
  122. package/src/react/Newsletter.tsx +29 -0
  123. package/src/react/Option.tsx +14 -0
  124. package/src/react/PageHeading.tsx +40 -0
  125. package/src/react/PageHeadings.tsx +53 -0
  126. package/src/react/Prose.tsx +18 -0
  127. package/src/react/Radio.tsx +14 -0
  128. package/src/react/RadioDescription.tsx +27 -0
  129. package/src/react/RadioGroup.tsx +14 -0
  130. package/src/react/RadioLabel.tsx +14 -0
  131. package/src/react/Section.tsx +24 -0
  132. package/src/react/SectionHeading.tsx +14 -0
  133. package/src/react/Select.tsx +14 -0
  134. package/src/react/Spinner.tsx +27 -0
  135. package/src/react/Status.tsx +30 -0
  136. package/src/react/TextUtilities.tsx +14 -0
  137. package/src/react/Textarea.tsx +14 -0
  138. package/src/react/Toggle.tsx +14 -0
  139. package/src/react/ToggleGroup.tsx +14 -0
  140. package/src/react/ToggleLabel.tsx +14 -0
  141. package/src/react/index.ts +43 -0
  142. package/src/utils.ts +60 -0
@@ -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 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,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
+ );
@@ -0,0 +1,53 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface PageHeadingsProps extends ComponentPropsWithRef<'div'> {
4
+ }
5
+
6
+ export const PageHeadings = forwardRef<HTMLDivElement, PageHeadingsProps>(
7
+ function PageHeadings({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-page-headings',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <div ref={ref} className={cls} {...props}>{children}</div>;
13
+ }
14
+ );
15
+
16
+ export interface PageHeadingsTitleWrapperProps extends ComponentPropsWithRef<'div'> {
17
+ }
18
+
19
+ export const PageHeadingsTitleWrapper = forwardRef<HTMLDivElement, PageHeadingsTitleWrapperProps>(
20
+ function PageHeadingsTitleWrapper({ className, children, ...props }, ref) {
21
+ const cls = [
22
+ 'dg-page-headings__title-wrapper',
23
+ className,
24
+ ].filter(Boolean).join(' ');
25
+ return <div ref={ref} className={cls} {...props}>{children}</div>;
26
+ }
27
+ );
28
+
29
+ export interface PageHeadingsTitleProps extends ComponentPropsWithRef<'h2'> {
30
+ }
31
+
32
+ export const PageHeadingsTitle = forwardRef<HTMLHeadingElement, PageHeadingsTitleProps>(
33
+ function PageHeadingsTitle({ className, children, ...props }, ref) {
34
+ const cls = [
35
+ 'dg-page-headings__title',
36
+ className,
37
+ ].filter(Boolean).join(' ');
38
+ return <h2 ref={ref} className={cls} {...props}>{children}</h2>;
39
+ }
40
+ );
41
+
42
+ export interface PageHeadingsActionsProps extends ComponentPropsWithRef<'div'> {
43
+ }
44
+
45
+ export const PageHeadingsActions = forwardRef<HTMLDivElement, PageHeadingsActionsProps>(
46
+ function PageHeadingsActions({ className, children, ...props }, ref) {
47
+ const cls = [
48
+ 'dg-page-headings__actions',
49
+ className,
50
+ ].filter(Boolean).join(' ');
51
+ return <div ref={ref} className={cls} {...props}>{children}</div>;
52
+ }
53
+ );
@@ -0,0 +1,18 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface ProseProps extends ComponentPropsWithRef<'p'> {
4
+ large?: boolean;
5
+ small?: boolean;
6
+ }
7
+
8
+ export const Prose = forwardRef<HTMLParagraphElement, ProseProps>(
9
+ function Prose({ large, small, className, children, ...props }, ref) {
10
+ const cls = [
11
+ 'dg-prose',
12
+ large && 'dg-prose--large',
13
+ small && 'dg-prose--small',
14
+ className,
15
+ ].filter(Boolean).join(' ');
16
+ return <p ref={ref} className={cls} {...props}>{children}</p>;
17
+ }
18
+ );
@@ -0,0 +1,14 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface RadioProps extends ComponentPropsWithRef<'input'> {
4
+ }
5
+
6
+ export const Radio = forwardRef<HTMLInputElement, RadioProps>(
7
+ function Radio({ className, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-radio',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <input ref={ref} type="radio" className={cls} {...props} />;
13
+ }
14
+ );
@@ -0,0 +1,27 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface RadioDescriptionProps extends ComponentPropsWithRef<'div'> {
4
+ }
5
+
6
+ export const RadioDescription = forwardRef<HTMLDivElement, RadioDescriptionProps>(
7
+ function RadioDescription({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-radio-description',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <div ref={ref} className={cls} {...props}>{children}</div>;
13
+ }
14
+ );
15
+
16
+ export interface RadioDescriptionHintProps extends ComponentPropsWithRef<'span'> {
17
+ }
18
+
19
+ export const RadioDescriptionHint = forwardRef<HTMLSpanElement, RadioDescriptionHintProps>(
20
+ function RadioDescriptionHint({ className, children, ...props }, ref) {
21
+ const cls = [
22
+ 'dg-radio-description__hint',
23
+ className,
24
+ ].filter(Boolean).join(' ');
25
+ return <span ref={ref} className={cls} {...props}>{children}</span>;
26
+ }
27
+ );
@@ -0,0 +1,14 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface RadioGroupProps extends ComponentPropsWithRef<'div'> {
4
+ }
5
+
6
+ export const RadioGroup = forwardRef<HTMLDivElement, RadioGroupProps>(
7
+ function RadioGroup({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-radio-group',
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 RadioLabelProps extends ComponentPropsWithRef<'label'> {
4
+ }
5
+
6
+ export const RadioLabel = forwardRef<HTMLLabelElement, RadioLabelProps>(
7
+ function RadioLabel({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-radio-label',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <label ref={ref} className={cls} {...props}>{children}</label>;
13
+ }
14
+ );
@@ -0,0 +1,24 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface SectionProps extends ComponentPropsWithRef<'div'> {
4
+ compact?: boolean;
5
+ spacious?: boolean;
6
+ bordered?: boolean;
7
+ elevated?: boolean;
8
+ fieldset?: boolean;
9
+ }
10
+
11
+ export const Section = forwardRef<HTMLDivElement, SectionProps>(
12
+ function Section({ compact, spacious, bordered, elevated, fieldset, className, children, ...props }, ref) {
13
+ const cls = [
14
+ 'dg-section',
15
+ compact && 'dg-section--compact',
16
+ spacious && 'dg-section--spacious',
17
+ bordered && 'dg-section--bordered',
18
+ elevated && 'dg-section--elevated',
19
+ fieldset && 'dg-section--fieldset',
20
+ className,
21
+ ].filter(Boolean).join(' ');
22
+ return <div ref={ref} className={cls} {...props}>{children}</div>;
23
+ }
24
+ );
@@ -0,0 +1,14 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface SectionHeadingProps extends ComponentPropsWithRef<'h2'> {
4
+ }
5
+
6
+ export const SectionHeading = forwardRef<HTMLHeadingElement, SectionHeadingProps>(
7
+ function SectionHeading({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-section-heading',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <h2 ref={ref} className={cls} {...props}>{children}</h2>;
13
+ }
14
+ );
@@ -0,0 +1,14 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface SelectProps extends ComponentPropsWithRef<'select'> {
4
+ }
5
+
6
+ export const Select = forwardRef<HTMLSelectElement, SelectProps>(
7
+ function Select({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-select',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <select ref={ref} className={cls} {...props}>{children}</select>;
13
+ }
14
+ );
@@ -0,0 +1,27 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface SpinnerProps extends ComponentPropsWithRef<'div'> {
4
+ }
5
+
6
+ export const Spinner = forwardRef<HTMLDivElement, SpinnerProps>(
7
+ function Spinner({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-spinner',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <div ref={ref} className={cls} {...props}>{children}</div>;
13
+ }
14
+ );
15
+
16
+ export interface SpinnerTitleProps extends ComponentPropsWithRef<'p'> {
17
+ }
18
+
19
+ export const SpinnerTitle = forwardRef<HTMLParagraphElement, SpinnerTitleProps>(
20
+ function SpinnerTitle({ className, children, ...props }, ref) {
21
+ const cls = [
22
+ 'dg-spinner__title',
23
+ className,
24
+ ].filter(Boolean).join(' ');
25
+ return <p ref={ref} className={cls} {...props}>{children}</p>;
26
+ }
27
+ );
@@ -0,0 +1,30 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface StatusProps extends ComponentPropsWithRef<'div'> {
4
+ info?: boolean;
5
+ success?: boolean;
6
+ warning?: boolean;
7
+ error?: boolean;
8
+ primary?: boolean;
9
+ secondary?: boolean;
10
+ withIcon?: boolean;
11
+ compact?: boolean;
12
+ }
13
+
14
+ export const Status = forwardRef<HTMLDivElement, StatusProps>(
15
+ function Status({ info, success, warning, error, primary, secondary, withIcon, compact, className, children, ...props }, ref) {
16
+ const cls = [
17
+ 'dg-status',
18
+ info && 'dg-status--info',
19
+ success && 'dg-status--success',
20
+ warning && 'dg-status--warning',
21
+ error && 'dg-status--error',
22
+ primary && 'dg-status--primary',
23
+ secondary && 'dg-status--secondary',
24
+ withIcon && 'dg-status--with-icon',
25
+ compact && 'dg-status--compact',
26
+ className,
27
+ ].filter(Boolean).join(' ');
28
+ return <div ref={ref} className={cls} {...props}>{children}</div>;
29
+ }
30
+ );
@@ -0,0 +1,14 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface TextUtilitiesProps extends ComponentPropsWithRef<'div'> {
4
+ }
5
+
6
+ export const TextUtilities = forwardRef<HTMLDivElement, TextUtilitiesProps>(
7
+ function TextUtilities({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-text-utilities',
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 TextareaProps extends ComponentPropsWithRef<'textarea'> {
4
+ }
5
+
6
+ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
7
+ function Textarea({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-textarea',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <textarea ref={ref} className={cls} {...props}>{children}</textarea>;
13
+ }
14
+ );
@@ -0,0 +1,14 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface ToggleProps extends ComponentPropsWithRef<'input'> {
4
+ }
5
+
6
+ export const Toggle = forwardRef<HTMLInputElement, ToggleProps>(
7
+ function Toggle({ className, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-toggle',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <input ref={ref} type="checkbox" className={cls} {...props} />;
13
+ }
14
+ );
@@ -0,0 +1,14 @@
1
+ import { forwardRef, type ComponentPropsWithRef } from 'react';
2
+
3
+ export interface ToggleGroupProps extends ComponentPropsWithRef<'div'> {
4
+ }
5
+
6
+ export const ToggleGroup = forwardRef<HTMLDivElement, ToggleGroupProps>(
7
+ function ToggleGroup({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-toggle-group',
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 ToggleLabelProps extends ComponentPropsWithRef<'label'> {
4
+ }
5
+
6
+ export const ToggleLabel = forwardRef<HTMLLabelElement, ToggleLabelProps>(
7
+ function ToggleLabel({ className, children, ...props }, ref) {
8
+ const cls = [
9
+ 'dg-toggle-label',
10
+ className,
11
+ ].filter(Boolean).join(' ');
12
+ return <label ref={ref} className={cls} {...props}>{children}</label>;
13
+ }
14
+ );