@veritone-ce/design-system 2.2.5 → 2.3.0

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 (53) hide show
  1. package/dist/cjs/Dialog/components.js +39 -13
  2. package/dist/cjs/Dialog/styles.module.scss.js +1 -1
  3. package/dist/cjs/Drawer/components.js +46 -13
  4. package/dist/cjs/Drawer/styles.module.scss.js +1 -1
  5. package/dist/cjs/FormControl/context.js +16 -0
  6. package/dist/cjs/FormControl/index.js +63 -0
  7. package/dist/cjs/FormControl/styles.module.scss.js +7 -0
  8. package/dist/cjs/Input/index.js +42 -52
  9. package/dist/cjs/Input/styles.module.scss.js +1 -1
  10. package/dist/cjs/Menu/controlled.js +2 -0
  11. package/dist/cjs/Select/controlled.js +35 -56
  12. package/dist/cjs/Select/styles.module.scss.js +1 -1
  13. package/dist/cjs/TablePagination/index.js +18 -20
  14. package/dist/cjs/TablePagination/styles.module.scss.js +1 -1
  15. package/dist/cjs/Textarea/index.js +33 -44
  16. package/dist/cjs/Textarea/styles.module.scss.js +1 -1
  17. package/dist/cjs/Typography/index.js +2 -1
  18. package/dist/cjs/Typography/variants.module.scss.js +1 -1
  19. package/dist/cjs/styles/typography.js +9 -1
  20. package/dist/cjs/styles.css +8 -7
  21. package/dist/esm/Dialog/components.js +40 -14
  22. package/dist/esm/Dialog/styles.module.scss.js +1 -1
  23. package/dist/esm/Drawer/components.js +47 -14
  24. package/dist/esm/Drawer/styles.module.scss.js +1 -1
  25. package/dist/esm/FormControl/context.js +13 -0
  26. package/dist/esm/FormControl/index.js +59 -0
  27. package/dist/esm/FormControl/styles.module.scss.js +3 -0
  28. package/dist/esm/Input/index.js +42 -52
  29. package/dist/esm/Input/styles.module.scss.js +1 -1
  30. package/dist/esm/Menu/controlled.js +2 -0
  31. package/dist/esm/Select/controlled.js +35 -56
  32. package/dist/esm/Select/styles.module.scss.js +1 -1
  33. package/dist/esm/TablePagination/index.js +15 -17
  34. package/dist/esm/TablePagination/styles.module.scss.js +1 -1
  35. package/dist/esm/Textarea/index.js +34 -45
  36. package/dist/esm/Textarea/styles.module.scss.js +1 -1
  37. package/dist/esm/Typography/index.js +2 -1
  38. package/dist/esm/Typography/variants.module.scss.js +1 -1
  39. package/dist/esm/styles/scss/theme.generated.scss +25 -1
  40. package/dist/esm/styles/typography.js +9 -1
  41. package/dist/esm/styles.css +8 -7
  42. package/dist/types/Dialog/components.d.ts +2 -0
  43. package/dist/types/Dialog/factory.d.ts +1 -0
  44. package/dist/types/Drawer/components.d.ts +5 -0
  45. package/dist/types/Drawer/factory.d.ts +2 -0
  46. package/dist/types/FormControl/context.d.ts +7 -0
  47. package/dist/types/FormControl/index.d.ts +15 -0
  48. package/dist/types/Input/index.d.ts +3 -8
  49. package/dist/types/Menu/controlled.d.ts +2 -1
  50. package/dist/types/Select/types.d.ts +1 -3
  51. package/dist/types/Textarea/index.d.ts +4 -7
  52. package/dist/types/styles/typography.d.ts +1 -1
  53. package/package.json +1 -1
@@ -3,6 +3,7 @@
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import { forwardRef } from 'react';
5
5
  import modules_efc4e723 from './styles.module.scss.js';
6
+ import { useFormControlContext } from '../FormControl/context.js';
6
7
  import 'color2k';
7
8
  import '../styles/css-vars.js';
8
9
  import { cx } from '../styles/cx.js';
@@ -11,58 +12,47 @@ import '@mui/system';
11
12
  import '../Box/index.js';
12
13
  import '../styles/styled.js';
13
14
 
14
- const Input = forwardRef((props, ref) => {
15
- return /* @__PURE__ */ jsxs(
16
- "span",
17
- {
18
- "data-testid": props["data-testid"],
19
- className: cx(modules_efc4e723["input"], props.className),
20
- style: props.style,
21
- children: [
22
- /* @__PURE__ */ jsx("label", { className: modules_efc4e723["label"], children: props.label }),
23
- /* @__PURE__ */ jsxs(
24
- "span",
25
- {
26
- "data-disabled": props.disabled ?? false,
27
- "data-error": props.error !== void 0,
28
- className: modules_efc4e723["inner-input-container"],
29
- children: [
30
- props.startIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["input-icon"], children: props.startIcon }),
31
- /* @__PURE__ */ jsx(
32
- "input",
33
- {
34
- ref,
35
- type: props.type,
36
- name: props.name,
37
- placeholder: props.placeholder,
38
- value: props.value,
39
- disabled: props.disabled,
40
- onChange: props.onChange,
41
- className: modules_efc4e723["inner-input"]
42
- }
43
- ),
44
- props.endIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["input-icon"], children: props.endIcon })
45
- ]
46
- }
47
- ),
48
- props.helpLabel && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["help-label"], children: props.helpLabel }),
49
- props.error && /* @__PURE__ */ jsxs("span", { className: modules_efc4e723["error-label"], children: [
50
- /* @__PURE__ */ jsx(IndicatorCircle, {}),
51
- /* @__PURE__ */ jsx("span", { children: props.error })
52
- ] })
53
- ]
54
- }
55
- );
56
- });
57
- const IndicatorCircle = () => /* @__PURE__ */ jsx(
58
- "svg",
59
- {
60
- width: "12",
61
- height: "12",
62
- viewBox: "0 0 12 12",
63
- fill: "none",
64
- xmlns: "http://www.w3.org/2000/svg",
65
- children: /* @__PURE__ */ jsx("circle", { cx: "6", cy: "6", r: "6", fill: "currentColor" })
15
+ const Input = forwardRef(
16
+ ({
17
+ placeholder,
18
+ value,
19
+ error: propsError,
20
+ disabled: propsDisabled,
21
+ startIcon,
22
+ endIcon,
23
+ "data-testid": dataTestId,
24
+ style,
25
+ className,
26
+ ...props
27
+ }, ref) => {
28
+ const ctx = useFormControlContext();
29
+ const error = propsError ?? ctx.error;
30
+ const disabled = propsDisabled ?? ctx.disabled;
31
+ return /* @__PURE__ */ jsxs(
32
+ "span",
33
+ {
34
+ "data-disabled": disabled,
35
+ "data-error": error,
36
+ "data-testid": dataTestId,
37
+ style,
38
+ className: cx(modules_efc4e723["input"], className),
39
+ children: [
40
+ startIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["input-icon"], children: startIcon }),
41
+ /* @__PURE__ */ jsx(
42
+ "input",
43
+ {
44
+ ref,
45
+ ...props,
46
+ placeholder,
47
+ value,
48
+ disabled,
49
+ className: modules_efc4e723["inner-input"]
50
+ }
51
+ ),
52
+ endIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["input-icon"], children: endIcon })
53
+ ]
54
+ }
55
+ );
66
56
  }
67
57
  );
68
58
 
@@ -1,3 +1,3 @@
1
- var modules_efc4e723 = {"input":"vt_ce_Input_input__f7983a21","label":"vt_ce_Input_label__f7983a21","inner-input-container":"vt_ce_Input_innerInputContainer__f7983a21","inner-input":"vt_ce_Input_innerInput__f7983a21","input-icon":"vt_ce_Input_inputIcon__f7983a21","help-label":"vt_ce_Input_helpLabel__f7983a21","error-label":"vt_ce_Input_errorLabel__f7983a21"};
1
+ var modules_efc4e723 = {"input":"vt_ce_Input_input__a83b3209","inner-input":"vt_ce_Input_innerInput__a83b3209","input-icon":"vt_ce_Input_inputIcon__a83b3209"};
2
2
 
3
3
  export { modules_efc4e723 as default };
@@ -23,6 +23,7 @@ function Menu({
23
23
  matchAnchorWidth = false,
24
24
  options,
25
25
  dismissEnabled = true,
26
+ disableAutoFocus = false,
26
27
  className,
27
28
  ...props
28
29
  }) {
@@ -89,6 +90,7 @@ function Menu({
89
90
  {
90
91
  context,
91
92
  modal: false,
93
+ disabled: disableAutoFocus,
92
94
  order: ["reference", "content"],
93
95
  children: /* @__PURE__ */ jsx(PortalThemeRelay, { children: /* @__PURE__ */ jsx(
94
96
  "div",
@@ -14,6 +14,7 @@ import { ArrowDropDown, Close } from '@mui/icons-material';
14
14
  import Menu from '../Menu/controlled.js';
15
15
  import { adaptMuiSvgIcon } from '../Icon/wrappers.js';
16
16
  import '../Icon/factory.js';
17
+ import { useFormControlContext } from '../FormControl/context.js';
17
18
 
18
19
  const DefaultEndIcon = adaptMuiSvgIcon(ArrowDropDown);
19
20
  const DefaultUnsetIcon = adaptMuiSvgIcon(Close);
@@ -24,6 +25,9 @@ function ControlledSelect({
24
25
  clearable = true,
25
26
  ...props
26
27
  }) {
28
+ const ctx = useFormControlContext();
29
+ const error = props.error ?? ctx.error;
30
+ const disabled = props.disabled ?? ctx.disabled;
27
31
  const anchorId = useId();
28
32
  const anchorRef = useRef(null);
29
33
  const [open, setOpen] = useState(false);
@@ -44,58 +48,44 @@ function ControlledSelect({
44
48
  {
45
49
  id: anchorId,
46
50
  ref: anchorRef,
47
- className: cx(modules_efc4e723["select"], props.className),
51
+ "data-focused": open,
52
+ "data-disabled": disabled,
53
+ "data-error": error,
54
+ onClick: () => setOpen(true),
48
55
  "data-testid": props["data-testid"],
49
56
  style: props.style,
50
- onClick: () => setOpen(true),
57
+ className: cx(modules_efc4e723["select"], props.className),
51
58
  children: [
52
- /* @__PURE__ */ jsx("label", { className: modules_efc4e723["label"], children: props.label }),
53
- /* @__PURE__ */ jsxs(
59
+ props.startIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["select-icon"], children: props.startIcon }),
60
+ /* @__PURE__ */ jsx(
61
+ "input",
62
+ {
63
+ ref,
64
+ type: "text",
65
+ size: props.size,
66
+ "data-selected": Boolean(selectedOption),
67
+ placeholder: selectedOption?.label ?? placeholder,
68
+ value: props.inputValue,
69
+ disabled: props.disabled,
70
+ onChange: (e) => {
71
+ setOpen(true);
72
+ props.onInputChange(e, e.target.value);
73
+ },
74
+ className: modules_efc4e723["inner-input"]
75
+ }
76
+ ),
77
+ selectedOption && clearable && /* @__PURE__ */ jsx(
54
78
  "span",
55
79
  {
56
- "data-focused": open,
57
- "data-disabled": props.disabled ?? false,
58
- "data-error": props.error !== void 0,
59
- className: modules_efc4e723["inner-input-container"],
60
- children: [
61
- props.startIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["select-icon"], children: props.startIcon }),
62
- /* @__PURE__ */ jsx(
63
- "input",
64
- {
65
- ref,
66
- type: "text",
67
- size: props.size,
68
- "data-selected": Boolean(selectedOption),
69
- placeholder: selectedOption?.label ?? placeholder,
70
- value: props.inputValue,
71
- disabled: props.disabled,
72
- onChange: (e) => {
73
- setOpen(true);
74
- props.onInputChange(e, e.target.value);
75
- },
76
- className: modules_efc4e723["inner-input"]
77
- }
78
- ),
79
- selectedOption && clearable && /* @__PURE__ */ jsx(
80
- "span",
81
- {
82
- className: modules_efc4e723["select-icon"],
83
- onClick: (e) => {
84
- props.onChange?.(e, null);
85
- props.onInputChange(e, "");
86
- },
87
- children: unsetIcon
88
- }
89
- ),
90
- endIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["select-icon"], children: endIcon })
91
- ]
80
+ className: modules_efc4e723["select-icon"],
81
+ onClick: (e) => {
82
+ props.onChange?.(e, null);
83
+ props.onInputChange(e, "");
84
+ },
85
+ children: unsetIcon
92
86
  }
93
87
  ),
94
- props.helpLabel && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["help-label"], children: props.helpLabel }),
95
- props.error && /* @__PURE__ */ jsxs("span", { className: modules_efc4e723["error-label"], children: [
96
- /* @__PURE__ */ jsx(IndicatorCircle, {}),
97
- /* @__PURE__ */ jsx("span", { children: props.error })
98
- ] })
88
+ endIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["select-icon"], children: endIcon })
99
89
  ]
100
90
  }
101
91
  ),
@@ -126,16 +116,5 @@ function ControlledSelect({
126
116
  )
127
117
  ] });
128
118
  }
129
- const IndicatorCircle = () => /* @__PURE__ */ jsx(
130
- "svg",
131
- {
132
- width: "12",
133
- height: "12",
134
- viewBox: "0 0 12 12",
135
- fill: "none",
136
- xmlns: "http://www.w3.org/2000/svg",
137
- children: /* @__PURE__ */ jsx("circle", { cx: "6", cy: "6", r: "6", fill: "currentColor" })
138
- }
139
- );
140
119
 
141
120
  export { ControlledSelect as default };
@@ -1,3 +1,3 @@
1
- var modules_efc4e723 = {"select":"vt_ce_Select_select__cb05e024","label":"vt_ce_Select_label__cb05e024","inner-input-container":"vt_ce_Select_innerInputContainer__cb05e024","inner-input":"vt_ce_Select_innerInput__cb05e024","select-icon":"vt_ce_Select_selectIcon__cb05e024","help-label":"vt_ce_Select_helpLabel__cb05e024","error-label":"vt_ce_Select_errorLabel__cb05e024"};
1
+ var modules_efc4e723 = {"select":"vt_ce_Select_select__a4ea9d62","inner-input":"vt_ce_Select_innerInput__a4ea9d62","select-icon":"vt_ce_Select_selectIcon__a4ea9d62"};
2
2
 
3
3
  export { modules_efc4e723 as default };
@@ -7,6 +7,7 @@ import { DSIcon } from '../Icon/internal.js';
7
7
  import '../Select/controlled.js';
8
8
  import Select from '../Select/uncontrolled.js';
9
9
  import 'react';
10
+ import FormControl from '../FormControl/index.js';
10
11
 
11
12
  function TablePagination({
12
13
  page,
@@ -19,23 +20,20 @@ function TablePagination({
19
20
  const showPrev = page !== 1;
20
21
  const showNext = page < count / rowsPerPage;
21
22
  return /* @__PURE__ */ jsxs("nav", { className: modules_efc4e723["container"], children: [
22
- /* @__PURE__ */ jsxs("span", { className: modules_efc4e723["rows-per-page"], children: [
23
- /* @__PURE__ */ jsx("label", { className: modules_efc4e723["rows-per-page-label"], children: rowsPerPageLabel }),
24
- /* @__PURE__ */ jsx(
25
- Select,
26
- {
27
- defaultValue: rowsPerPage,
28
- clearable: false,
29
- size: rowsPerPageOptions.length > 0 ? getDigits(Math.max(...rowsPerPageOptions)) : 3,
30
- options: rowsPerPageOptions.map((option) => ({
31
- label: option.toLocaleString(),
32
- value: option
33
- })),
34
- onChange: (_, newRowsPerPage) => props.onRowsPerPageChange?.(newRowsPerPage),
35
- className: modules_efc4e723["rows-per-page-select"]
36
- }
37
- )
38
- ] }),
23
+ /* @__PURE__ */ jsx(FormControl, { label: rowsPerPageLabel, placement: "inline-start", children: /* @__PURE__ */ jsx(
24
+ Select,
25
+ {
26
+ defaultValue: rowsPerPage,
27
+ clearable: false,
28
+ size: rowsPerPageOptions.length > 0 ? getDigits(Math.max(...rowsPerPageOptions)) + 1 : 3,
29
+ options: rowsPerPageOptions.map((option) => ({
30
+ label: option.toLocaleString(),
31
+ value: option
32
+ })),
33
+ onChange: (_, newRowsPerPage) => props.onRowsPerPageChange?.(newRowsPerPage),
34
+ className: modules_efc4e723["rows-per-page-select"]
35
+ }
36
+ ) }),
39
37
  /* @__PURE__ */ jsxs("span", { className: modules_efc4e723["page-counts"], children: [
40
38
  (page - 1) * rowsPerPage + 1,
41
39
  "-",
@@ -1,3 +1,3 @@
1
- var modules_efc4e723 = {"container":"vt_ce_TablePagination_container__8da45ccd","rows-per-page":"vt_ce_TablePagination_rowsPerPage__8da45ccd","rows-per-page-label":"vt_ce_TablePagination_rowsPerPageLabel__8da45ccd","rows-per-page-select":"vt_ce_TablePagination_rowsPerPageSelect__8da45ccd","page-counts":"vt_ce_TablePagination_pageCounts__8da45ccd","btn-list":"vt_ce_TablePagination_btnList__8da45ccd","ellipsis":"vt_ce_TablePagination_ellipsis__8da45ccd"};
1
+ var modules_efc4e723 = {"container":"vt_ce_TablePagination_container__b08ac6ea","rows-per-page-select":"vt_ce_TablePagination_rowsPerPageSelect__b08ac6ea","page-counts":"vt_ce_TablePagination_pageCounts__b08ac6ea","btn-list":"vt_ce_TablePagination_btnList__b08ac6ea","ellipsis":"vt_ce_TablePagination_ellipsis__b08ac6ea"};
2
2
 
3
3
  export { modules_efc4e723 as default };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  'use client';
3
- import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { jsx } from 'react/jsx-runtime';
4
4
  import { forwardRef } from 'react';
5
5
  import modules_efc4e723 from './styles.module.scss.js';
6
6
  import 'color2k';
@@ -10,57 +10,46 @@ import '../styles/defaultTheme.js';
10
10
  import '@mui/system';
11
11
  import '../Box/index.js';
12
12
  import '../styles/styled.js';
13
+ import { useFormControlContext } from '../FormControl/context.js';
13
14
 
14
15
  const Textarea = forwardRef(
15
- (props, ref) => {
16
- return /* @__PURE__ */ jsxs(
16
+ ({
17
+ placeholder,
18
+ value,
19
+ disabled: propsDisabled,
20
+ error: propsError,
21
+ rows,
22
+ "data-testid": dataTestId,
23
+ style,
24
+ className,
25
+ ...props
26
+ }, ref) => {
27
+ const ctx = useFormControlContext();
28
+ const error = propsError ?? ctx.error;
29
+ const disabled = propsDisabled ?? ctx.disabled;
30
+ return /* @__PURE__ */ jsx(
17
31
  "span",
18
32
  {
19
- "data-testid": props["data-testid"],
20
- style: props.style,
21
- className: cx(modules_efc4e723["textarea"], props.className),
22
- children: [
23
- /* @__PURE__ */ jsx("label", { className: modules_efc4e723["label"], children: props.label }),
24
- /* @__PURE__ */ jsx(
25
- "span",
26
- {
27
- "data-disabled": props.disabled ?? false,
28
- "data-error": props.error !== void 0,
29
- className: modules_efc4e723["inner-textarea-container"],
30
- children: /* @__PURE__ */ jsx(
31
- "textarea",
32
- {
33
- ref,
34
- placeholder: props.placeholder,
35
- value: props.value,
36
- rows: props.rows,
37
- onChange: props.onChange,
38
- disabled: props.disabled,
39
- className: modules_efc4e723["inner-textarea"]
40
- }
41
- )
42
- }
43
- ),
44
- props.helpLabel && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["help-label"], children: props.helpLabel }),
45
- props.error && /* @__PURE__ */ jsxs("span", { className: modules_efc4e723["error-label"], children: [
46
- /* @__PURE__ */ jsx(IndicatorCircle, {}),
47
- /* @__PURE__ */ jsx("span", { children: props.error })
48
- ] })
49
- ]
33
+ "data-disabled": disabled,
34
+ "data-error": error,
35
+ "data-testid": dataTestId,
36
+ style,
37
+ className: cx(modules_efc4e723["textarea"], className),
38
+ children: /* @__PURE__ */ jsx(
39
+ "textarea",
40
+ {
41
+ ref,
42
+ ...props,
43
+ placeholder,
44
+ value,
45
+ rows,
46
+ disabled,
47
+ className: modules_efc4e723["inner-textarea"]
48
+ }
49
+ )
50
50
  }
51
51
  );
52
52
  }
53
53
  );
54
- const IndicatorCircle = () => /* @__PURE__ */ jsx(
55
- "svg",
56
- {
57
- width: "12",
58
- height: "12",
59
- viewBox: "0 0 12 12",
60
- fill: "none",
61
- xmlns: "http://www.w3.org/2000/svg",
62
- children: /* @__PURE__ */ jsx("circle", { cx: "6", cy: "6", r: "6", fill: "currentColor" })
63
- }
64
- );
65
54
 
66
55
  export { Textarea as default };
@@ -1,3 +1,3 @@
1
- var modules_efc4e723 = {"textarea":"vt_ce_Textarea_textarea__77e999b0","label":"vt_ce_Textarea_label__77e999b0","inner-textarea-container":"vt_ce_Textarea_innerTextareaContainer__77e999b0","inner-textarea":"vt_ce_Textarea_innerTextarea__77e999b0","help-label":"vt_ce_Textarea_helpLabel__77e999b0","error-label":"vt_ce_Textarea_errorLabel__77e999b0"};
1
+ var modules_efc4e723 = {"textarea":"vt_ce_Textarea_textarea__bb23b4a3","inner-textarea":"vt_ce_Textarea_innerTextarea__bb23b4a3"};
2
2
 
3
3
  export { modules_efc4e723 as default };
@@ -33,7 +33,8 @@ const variantComponents = {
33
33
  paragraph2: "p",
34
34
  paragraph3: "p",
35
35
  button: "span",
36
- buttonSmall: "span"
36
+ buttonSmall: "span",
37
+ input: "span"
37
38
  };
38
39
 
39
40
  export { Typography as default };
@@ -1,3 +1,3 @@
1
- var modules_b5c3b63b = {"t-title":"vt_ce_Typography_tTitle__56e154f0","t-h1":"vt_ce_Typography_tH1__56e154f0","t-h2":"vt_ce_Typography_tH2__56e154f0","t-h3":"vt_ce_Typography_tH3__56e154f0","t-h4":"vt_ce_Typography_tH4__56e154f0","t-label":"vt_ce_Typography_tLabel__56e154f0","t-paragraph1":"vt_ce_Typography_tParagraph1__56e154f0","t-paragraph2":"vt_ce_Typography_tParagraph2__56e154f0","t-paragraph3":"vt_ce_Typography_tParagraph3__56e154f0","t-button":"vt_ce_Typography_tButton__56e154f0","t-buttonSmall":"vt_ce_Typography_tButtonSmall__56e154f0","c-primary":"vt_ce_Typography_cPrimary__56e154f0","c-secondary":"vt_ce_Typography_cSecondary__56e154f0","c-tertiary":"vt_ce_Typography_cTertiary__56e154f0","c-disabled":"vt_ce_Typography_cDisabled__56e154f0","c-inherit":"vt_ce_Typography_cInherit__56e154f0"};
1
+ var modules_b5c3b63b = {"t-title":"vt_ce_Typography_tTitle__c826af39","t-h1":"vt_ce_Typography_tH1__c826af39","t-h2":"vt_ce_Typography_tH2__c826af39","t-h3":"vt_ce_Typography_tH3__c826af39","t-h4":"vt_ce_Typography_tH4__c826af39","t-label":"vt_ce_Typography_tLabel__c826af39","t-paragraph1":"vt_ce_Typography_tParagraph1__c826af39","t-paragraph2":"vt_ce_Typography_tParagraph2__c826af39","t-paragraph3":"vt_ce_Typography_tParagraph3__c826af39","t-button":"vt_ce_Typography_tButton__c826af39","t-buttonSmall":"vt_ce_Typography_tButtonSmall__c826af39","t-input":"vt_ce_Typography_tInput__c826af39","c-primary":"vt_ce_Typography_cPrimary__c826af39","c-secondary":"vt_ce_Typography_cSecondary__c826af39","c-tertiary":"vt_ce_Typography_cTertiary__c826af39","c-disabled":"vt_ce_Typography_cDisabled__c826af39","c-inherit":"vt_ce_Typography_cInherit__c826af39"};
2
2
 
3
3
  export { modules_b5c3b63b as default };
@@ -167,7 +167,14 @@ $default-theme: (
167
167
  "typography-buttonSmall-letterSpacing": (inherit),
168
168
  "typography-buttonSmall-textTransform": (inherit),
169
169
  "typography-buttonSmall-fontSize": (12px),
170
- "typography-buttonSmall-lineHeight": (18px)
170
+ "typography-buttonSmall-lineHeight": (18px),
171
+ "typography-input-fontFamily": (Nunito Sans, Helvetica, sans-serif),
172
+ "typography-input-fontStyle": (normal),
173
+ "typography-input-fontWeight": (400),
174
+ "typography-input-letterSpacing": (inherit),
175
+ "typography-input-textTransform": (inherit),
176
+ "typography-input-fontSize": (14px),
177
+ "typography-input-lineHeight": (20px)
171
178
  );
172
179
 
173
180
  $theme-palette-brand-1-base-surface: var(--vt-ce-theme-palette-brand-1-base-surface, (#214167));
@@ -336,6 +343,13 @@ $theme-typography-buttonSmall-letterSpacing: var(--vt-ce-theme-typography-button
336
343
  $theme-typography-buttonSmall-textTransform: var(--vt-ce-theme-typography-buttonSmall-textTransform, (inherit));
337
344
  $theme-typography-buttonSmall-fontSize: var(--vt-ce-theme-typography-buttonSmall-fontSize, (12px));
338
345
  $theme-typography-buttonSmall-lineHeight: var(--vt-ce-theme-typography-buttonSmall-lineHeight, (18px));
346
+ $theme-typography-input-fontFamily: var(--vt-ce-theme-typography-input-fontFamily, (Nunito Sans, Helvetica, sans-serif));
347
+ $theme-typography-input-fontStyle: var(--vt-ce-theme-typography-input-fontStyle, (normal));
348
+ $theme-typography-input-fontWeight: var(--vt-ce-theme-typography-input-fontWeight, (400));
349
+ $theme-typography-input-letterSpacing: var(--vt-ce-theme-typography-input-letterSpacing, (inherit));
350
+ $theme-typography-input-textTransform: var(--vt-ce-theme-typography-input-textTransform, (inherit));
351
+ $theme-typography-input-fontSize: var(--vt-ce-theme-typography-input-fontSize, (14px));
352
+ $theme-typography-input-lineHeight: var(--vt-ce-theme-typography-input-lineHeight, (20px));
339
353
 
340
354
  // unsafe - does not check for existence of variable
341
355
  @function _unsafe-theme-var($var) {
@@ -452,6 +466,16 @@ $theme-typography-buttonSmall-lineHeight: var(--vt-ce-theme-typography-buttonSma
452
466
  text-transform: $theme-typography-buttonSmall-textTransform;
453
467
  }
454
468
 
469
+ @mixin theme-typography-input {
470
+ font-family: $theme-typography-input-fontFamily;
471
+ font-size: $theme-typography-input-fontSize;
472
+ font-style: $theme-typography-input-fontStyle;
473
+ font-weight: $theme-typography-input-fontWeight;
474
+ line-height: $theme-typography-input-lineHeight;
475
+ letter-spacing: $theme-typography-input-letterSpacing;
476
+ text-transform: $theme-typography-input-textTransform;
477
+ }
478
+
455
479
  // unsafe - does not check for existence of variable
456
480
  @mixin _unsafe-theme-typography($variant) {
457
481
  font-family: _unsafe-theme-var(typography-#{$variant}-font-family);
@@ -10,7 +10,8 @@ const TypographyVariantKeys = [
10
10
  "paragraph2",
11
11
  "paragraph3",
12
12
  "button",
13
- "buttonSmall"
13
+ "buttonSmall",
14
+ "input"
14
15
  ];
15
16
  function createTypography(typography = {}) {
16
17
  const base = {
@@ -107,6 +108,13 @@ function createTypography(typography = {}) {
107
108
  fontWeight: base.fontWeightMedium,
108
109
  lineHeight: "18px",
109
110
  ...typography.buttonSmall
111
+ },
112
+ input: {
113
+ ...inherit,
114
+ fontSize: "14px",
115
+ fontWeight: base.fontWeightRegular,
116
+ lineHeight: "20px",
117
+ ...typography.input
110
118
  }
111
119
  };
112
120
  }