@guardian/stand 0.0.19 → 0.0.21

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 (59) hide show
  1. package/dist/TopBar.cjs +2 -0
  2. package/dist/TopBar.js +1 -1
  3. package/dist/components/form/Form.cjs +47 -0
  4. package/dist/components/form/Form.js +17 -0
  5. package/dist/components/form/styles.cjs +49 -0
  6. package/dist/components/form/styles.js +35 -0
  7. package/dist/components/form/types.cjs +7 -0
  8. package/dist/components/form/types.js +5 -0
  9. package/dist/components/menu/Menu.cjs +1 -7
  10. package/dist/components/menu/Menu.js +1 -9
  11. package/dist/components/menu/styles.cjs +25 -11
  12. package/dist/components/menu/styles.js +25 -11
  13. package/dist/components/select/Select.cjs +6 -15
  14. package/dist/components/select/Select.js +5 -5
  15. package/dist/components/select/styles.cjs +30 -55
  16. package/dist/components/select/styles.js +31 -53
  17. package/dist/components/text-input/TextInput.cjs +28 -0
  18. package/dist/components/text-input/TextInput.js +12 -0
  19. package/dist/components/text-input/styles.cjs +35 -0
  20. package/dist/components/text-input/styles.js +32 -0
  21. package/dist/form.cjs +7 -0
  22. package/dist/form.js +1 -0
  23. package/dist/index.cjs +4 -0
  24. package/dist/index.js +2 -0
  25. package/dist/styleD/build/css/component/form.css +28 -0
  26. package/dist/styleD/build/css/component/menu.css +2 -0
  27. package/dist/styleD/build/css/component/select.css +37 -46
  28. package/dist/styleD/build/css/component/textInput.css +29 -0
  29. package/dist/styleD/build/typescript/component/form.cjs +57 -0
  30. package/dist/styleD/build/typescript/component/form.js +55 -0
  31. package/dist/styleD/build/typescript/component/menu.cjs +5 -1
  32. package/dist/styleD/build/typescript/component/menu.js +5 -1
  33. package/dist/styleD/build/typescript/component/select.cjs +50 -69
  34. package/dist/styleD/build/typescript/component/select.js +50 -69
  35. package/dist/styleD/build/typescript/component/textInput.cjs +45 -0
  36. package/dist/styleD/build/typescript/component/textInput.js +43 -0
  37. package/dist/text-input.cjs +9 -0
  38. package/dist/text-input.js +2 -0
  39. package/dist/types/TopBar.d.ts +1 -1
  40. package/dist/types/components/form/Form.d.ts +5 -0
  41. package/dist/types/components/form/styles.d.ts +15 -0
  42. package/dist/types/components/form/types.d.ts +40 -0
  43. package/dist/types/components/menu/styles.d.ts +1 -1
  44. package/dist/types/components/select/Select.d.ts +1 -1
  45. package/dist/types/components/select/styles.d.ts +0 -3
  46. package/dist/types/components/select/types.d.ts +2 -14
  47. package/dist/types/components/text-input/TextInput.d.ts +2 -0
  48. package/dist/types/components/text-input/sandbox.d.ts +5 -0
  49. package/dist/types/components/text-input/styles.d.ts +7 -0
  50. package/dist/types/components/text-input/types.d.ts +4 -0
  51. package/dist/types/form.d.ts +8 -0
  52. package/dist/types/index.d.ts +4 -0
  53. package/dist/types/menu.d.ts +0 -1
  54. package/dist/types/styleD/build/typescript/component/form.d.ts +57 -0
  55. package/dist/types/styleD/build/typescript/component/menu.d.ts +4 -0
  56. package/dist/types/styleD/build/typescript/component/select.d.ts +46 -65
  57. package/dist/types/styleD/build/typescript/component/textInput.d.ts +45 -0
  58. package/dist/types/text-input.d.ts +20 -0
  59. package/package.json +30 -17
@@ -3,16 +3,6 @@ import { componentSelect } from '../../styleD/build/typescript/component/select.
3
3
  import { convertTypographyToEmotionStringStyle } from '../../styleD/utils/semantic/typography.js';
4
4
 
5
5
  const defaultSelectTheme = componentSelect;
6
- const selectStyles = (theme) => {
7
- return css`
8
- display: ${theme.shared.display};
9
- flex-direction: ${theme.shared.flexDirection};
10
- gap: ${theme.shared.gap};
11
-
12
- max-width: ${theme.shared.maxWidth};
13
- width: ${theme.shared.width};
14
- `;
15
- };
16
6
  const popoverStyles = (theme) => {
17
7
  return css`
18
8
  max-width: ${theme.shared.maxWidth};
@@ -21,10 +11,10 @@ const popoverStyles = (theme) => {
21
11
  };
22
12
  const listBoxItemStyles = (theme) => {
23
13
  return css`
24
- padding-left: ${theme.option.paddingLeft};
25
- padding-right: ${theme.option.paddingRight};
26
- padding-top: ${theme.option.paddingTop};
27
- padding-bottom: ${theme.option.paddingBottom};
14
+ padding-left: ${theme.shared.option.paddingLeft};
15
+ padding-right: ${theme.shared.option.paddingRight};
16
+ padding-top: ${theme.shared.option.paddingTop};
17
+ padding-bottom: ${theme.shared.option.paddingBottom};
28
18
 
29
19
  &[data-hovered] {
30
20
  outline: ${theme.shared.hover.outline};
@@ -41,9 +31,9 @@ const listBoxItemStyles = (theme) => {
41
31
  }
42
32
 
43
33
  &[data-focus-visible] {
44
- outline: ${theme.option.focused.outline};
45
- outline-offset: ${theme.option.focused["outline-offset"]};
46
- background-color: ${theme.option.focused.backgroundColor};
34
+ outline: ${theme.shared.option.focused.outline};
35
+ outline-offset: ${theme.shared.option.focused["outline-offset"]};
36
+ background-color: ${theme.shared.option.focused.backgroundColor};
47
37
  }
48
38
 
49
39
  /* Must be last to take precedence */
@@ -54,41 +44,29 @@ const listBoxItemStyles = (theme) => {
54
44
  };
55
45
  const listBoxStyles = (theme) => {
56
46
  return css`
57
- ${convertTypographyToEmotionStringStyle(theme.listBox.typography)}
58
- background-color: ${theme.listBox.backgroundColor};
59
- border: ${theme.listBox.border};
60
- box-shadow: ${theme.listBox.shadow};
47
+ ${convertTypographyToEmotionStringStyle(theme.shared.listBox.typography)}
48
+ background-color: ${theme.shared.listBox.backgroundColor};
49
+ border: ${theme.shared.listBox.border};
50
+ box-shadow: ${theme.shared.listBox.shadow};
61
51
  max-width: ${theme.shared.maxWidth};
62
52
  width: ${theme.shared.width};
63
53
  outline: none;
64
54
  `;
65
55
  };
66
- const labelStyles = (theme) => {
67
- return css`
68
- color: ${theme.label.color};
69
- ${convertTypographyToEmotionStringStyle(theme.label.typography)};
70
- `;
71
- };
72
- const helpTextStyles = (theme) => {
73
- return css`
74
- color: ${theme.helpText.color};
75
- ${convertTypographyToEmotionStringStyle(theme.helpText.typography)}
76
- `;
77
- };
78
56
  const buttonStyles = (theme, isInvalid) => {
79
57
  return css`
80
- display: ${theme.button.display};
81
- justify-content: ${theme.button.justifyContent};
82
- align-items: ${theme.button.alignItems};
83
- background-color: ${theme.button.backgroundColor};
84
- border: ${theme.button.border};
85
- border-radius: ${theme.button.borderRadius};
86
- height: ${theme.button.height};
87
- padding-left: ${theme.button.paddingLeft};
88
- padding-right: ${theme.button.paddingRight};
89
- margin-top: ${theme.button.marginTop};
90
- ${convertTypographyToEmotionStringStyle(theme.button.typography)}
91
- color: ${theme.button.color};
58
+ display: ${theme.shared.button.display};
59
+ justify-content: ${theme.shared.button.justifyContent};
60
+ align-items: ${theme.shared.button.alignItems};
61
+ background-color: ${theme.shared.button.backgroundColor};
62
+ border: ${theme.shared.button.border};
63
+ border-radius: ${theme.shared.button.borderRadius};
64
+ height: ${theme.shared.button.height};
65
+ padding-left: ${theme.shared.button.paddingLeft};
66
+ padding-right: ${theme.shared.button.paddingRight};
67
+ margin-top: ${theme.shared.button.marginTop};
68
+ ${convertTypographyToEmotionStringStyle(theme.shared.button.typography)}
69
+ color: ${theme.shared.button.color};
92
70
 
93
71
  &[data-hovered] {
94
72
  background-color: ${theme.shared.hover.backgroundColor};
@@ -99,19 +77,19 @@ const buttonStyles = (theme, isInvalid) => {
99
77
  }
100
78
 
101
79
  &[data-focus-visible] {
102
- outline: ${theme.button.focused.outline};
103
- outline-offset: ${theme.button.focused["outline-offset"]};
80
+ outline: ${theme.shared.button.focused.outline};
81
+ outline-offset: ${theme.shared.button.focused["outline-offset"]};
104
82
  }
105
83
 
106
84
  &[data-disabled] {
107
- cursor: ${theme.button.disabled.cursor};
108
- background-color: ${theme.button.disabled.backgroundColor};
109
- color: ${theme.button.disabled.color};
110
- border: ${theme.button.disabled.border};
85
+ cursor: ${theme.shared.button.disabled.cursor};
86
+ background-color: ${theme.shared.button.disabled.backgroundColor};
87
+ color: ${theme.shared.button.disabled.color};
88
+ border: ${theme.shared.button.disabled.border};
111
89
  }
112
90
 
113
- ${isInvalid ? `border: ${theme.button.error.border};` : ``}
91
+ ${isInvalid ? `border: ${theme.shared.button.error.border};` : ``}
114
92
  `;
115
93
  };
116
94
 
117
- export { buttonStyles, defaultSelectTheme, helpTextStyles, labelStyles, listBoxItemStyles, listBoxStyles, popoverStyles, selectStyles };
95
+ export { buttonStyles, defaultSelectTheme, listBoxItemStyles, listBoxStyles, popoverStyles };
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('@emotion/react/jsx-runtime');
4
+ var reactAriaComponents = require('react-aria-components');
5
+ var mergeDeep = require('../../util/mergeDeep.cjs');
6
+ var Form = require('../form/Form.cjs');
7
+ var styles = require('./styles.cjs');
8
+
9
+ function TextInput({
10
+ size = "md",
11
+ isInvalid = false,
12
+ theme = {},
13
+ ...props
14
+ }) {
15
+ const mergedTheme = mergeDeep.mergeDeep(styles.defaultTextInputTheme, theme);
16
+ return /* @__PURE__ */ jsxRuntime.jsx(
17
+ Form.FormInputContainer,
18
+ {
19
+ as: reactAriaComponents.TextField,
20
+ size,
21
+ isInvalid,
22
+ ...props,
23
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Input, { css: styles.textInputStyles(mergedTheme, { size, isInvalid }) })
24
+ }
25
+ );
26
+ }
27
+
28
+ exports.TextInput = TextInput;
@@ -0,0 +1,12 @@
1
+ import { jsx } from '@emotion/react/jsx-runtime';
2
+ import { TextField, Input } from 'react-aria-components';
3
+ import { mergeDeep } from '../../util/mergeDeep.js';
4
+ import { FormInputContainer } from '../form/Form.js';
5
+ import { textInputStyles, defaultTextInputTheme } from './styles.js';
6
+
7
+ function TextInput({ size = "md", isInvalid = false, theme = {}, ...props }) {
8
+ const mergedTheme = mergeDeep(defaultTextInputTheme, theme);
9
+ return jsx(FormInputContainer, { as: TextField, size, isInvalid, ...props, children: jsx(Input, { css: textInputStyles(mergedTheme, { size, isInvalid }) }) });
10
+ }
11
+
12
+ export { TextInput };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ var react = require('@emotion/react');
4
+ var textInput = require('../../styleD/build/typescript/component/textInput.cjs');
5
+ var typography = require('../../styleD/utils/semantic/typography.cjs');
6
+
7
+ const defaultTextInputTheme = textInput.componentTextInput;
8
+ const textInputStyles = (theme, { size, isInvalid }) => {
9
+ return react.css`
10
+ ${typography.convertTypographyToEmotionStringStyle(theme[size].typography)}
11
+ background-color: ${theme.shared["background-color"]};
12
+ border-radius: ${theme.shared["border-radius"]};
13
+ border: ${theme.shared.border};
14
+ color: ${theme.shared.color};
15
+ cursor: ${theme.shared.cursor};
16
+ height: ${theme[size].height};
17
+ margin-top: ${theme.shared["margin-top"]};
18
+ padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
19
+ ${theme.shared.padding.bottom} ${theme.shared.padding.left};
20
+
21
+ &[data-disabled] {
22
+ background-color: ${theme.shared.disabled.backgroundColor};
23
+ border: ${theme.shared.disabled.border};
24
+ color: ${theme.shared.disabled.color};
25
+ cursor: ${theme.shared.disabled.cursor};
26
+ }
27
+
28
+ ${isInvalid && react.css`
29
+ border: ${theme.shared.error.border};
30
+ `}
31
+ `;
32
+ };
33
+
34
+ exports.defaultTextInputTheme = defaultTextInputTheme;
35
+ exports.textInputStyles = textInputStyles;
@@ -0,0 +1,32 @@
1
+ import { css } from '@emotion/react';
2
+ import { componentTextInput } from '../../styleD/build/typescript/component/textInput.js';
3
+ import { convertTypographyToEmotionStringStyle } from '../../styleD/utils/semantic/typography.js';
4
+
5
+ const defaultTextInputTheme = componentTextInput;
6
+ const textInputStyles = (theme, { size, isInvalid }) => {
7
+ return css`
8
+ ${convertTypographyToEmotionStringStyle(theme[size].typography)}
9
+ background-color: ${theme.shared["background-color"]};
10
+ border-radius: ${theme.shared["border-radius"]};
11
+ border: ${theme.shared.border};
12
+ color: ${theme.shared.color};
13
+ cursor: ${theme.shared.cursor};
14
+ height: ${theme[size].height};
15
+ margin-top: ${theme.shared["margin-top"]};
16
+ padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
17
+ ${theme.shared.padding.bottom} ${theme.shared.padding.left};
18
+
19
+ &[data-disabled] {
20
+ background-color: ${theme.shared.disabled.backgroundColor};
21
+ border: ${theme.shared.disabled.border};
22
+ color: ${theme.shared.disabled.color};
23
+ cursor: ${theme.shared.disabled.cursor};
24
+ }
25
+
26
+ ${isInvalid && css`
27
+ border: ${theme.shared.error.border};
28
+ `}
29
+ `;
30
+ };
31
+
32
+ export { defaultTextInputTheme, textInputStyles };
package/dist/form.cjs ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var form = require('./styleD/build/typescript/component/form.cjs');
4
+
5
+
6
+
7
+ exports.componentForm = form.componentForm;
package/dist/form.js ADDED
@@ -0,0 +1 @@
1
+ export { componentForm } from './styleD/build/typescript/component/form.js';
package/dist/index.cjs CHANGED
@@ -9,10 +9,12 @@ var button = require('./styleD/build/typescript/component/button.cjs');
9
9
  var typography$1 = require('./styleD/build/typescript/component/typography.cjs');
10
10
  var icon = require('./styleD/build/typescript/component/icon.cjs');
11
11
  var favicon = require('./styleD/build/typescript/component/favicon.cjs');
12
+ var textInput = require('./styleD/build/typescript/component/textInput.cjs');
12
13
  var inlineMessage = require('./styleD/build/typescript/component/inlineMessage.cjs');
13
14
  var select = require('./styleD/build/typescript/component/select.cjs');
14
15
  var menu = require('./styleD/build/typescript/component/menu.cjs');
15
16
  var TopBar = require('./styleD/build/typescript/component/TopBar.cjs');
17
+ var form = require('./styleD/build/typescript/component/form.cjs');
16
18
  var colors = require('./styleD/build/typescript/base/colors.cjs');
17
19
  var typography = require('./styleD/build/typescript/base/typography.cjs');
18
20
  var spacing = require('./styleD/build/typescript/base/spacing.cjs');
@@ -34,10 +36,12 @@ exports.componentButton = button.componentButton;
34
36
  exports.componentTypography = typography$1.componentTypography;
35
37
  exports.componentIcon = icon.componentIcon;
36
38
  exports.componentFavicon = favicon.componentFavicon;
39
+ exports.componentTextInput = textInput.componentTextInput;
37
40
  exports.componentInlineMessage = inlineMessage.componentInlineMessage;
38
41
  exports.componentSelect = select.componentSelect;
39
42
  exports.componentMenu = menu.componentMenu;
40
43
  exports.componentTopBar = TopBar.componentTopBar;
44
+ exports.componentForm = form.componentForm;
41
45
  exports.baseColors = colors.baseColors;
42
46
  exports.baseTypography = typography.baseTypography;
43
47
  exports.baseSpacing = spacing.baseSpacing;
package/dist/index.js CHANGED
@@ -7,10 +7,12 @@ export { componentButton } from './styleD/build/typescript/component/button.js';
7
7
  export { componentTypography } from './styleD/build/typescript/component/typography.js';
8
8
  export { componentIcon } from './styleD/build/typescript/component/icon.js';
9
9
  export { componentFavicon } from './styleD/build/typescript/component/favicon.js';
10
+ export { componentTextInput } from './styleD/build/typescript/component/textInput.js';
10
11
  export { componentInlineMessage } from './styleD/build/typescript/component/inlineMessage.js';
11
12
  export { componentSelect } from './styleD/build/typescript/component/select.js';
12
13
  export { componentMenu } from './styleD/build/typescript/component/menu.js';
13
14
  export { componentTopBar } from './styleD/build/typescript/component/TopBar.js';
15
+ export { componentForm } from './styleD/build/typescript/component/form.js';
14
16
  export { baseColors } from './styleD/build/typescript/base/colors.js';
15
17
  export { baseTypography } from './styleD/build/typescript/base/typography.js';
16
18
  export { baseSpacing } from './styleD/build/typescript/base/spacing.js';
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-form-input-shared-container-display: flex;
7
+ --component-form-input-shared-container-flex-direction: column;
8
+ --component-form-input-shared-container-gap: 0.25rem;
9
+ --component-form-input-shared-container-width: 100%;
10
+ --component-form-input-shared-label-color: #000000;
11
+ --component-form-input-shared-label-disabled-color: #999999;
12
+ --component-form-input-shared-description-color: #545454;
13
+ --component-form-input-shared-description-typography-font: normal 460
14
+ 0.875rem/1.3 'Open Sans';
15
+ --component-form-input-shared-description-typography-letter-spacing: 0;
16
+ --component-form-input-shared-description-typography-font-width: 95;
17
+ --component-form-input-shared-description-disabled-color: #999999;
18
+ --component-form-input-sm-container-max-width: 200px;
19
+ --component-form-input-sm-label-typography-font: normal 700 0.875rem/1.15
20
+ 'Open Sans';
21
+ --component-form-input-sm-label-typography-letter-spacing: -0.0125rem;
22
+ --component-form-input-sm-label-typography-font-width: 95;
23
+ --component-form-input-md-container-max-width: 320px;
24
+ --component-form-input-md-label-typography-font: normal 700 1rem/1.15
25
+ 'Open Sans';
26
+ --component-form-input-md-label-typography-letter-spacing: -0.03125rem;
27
+ --component-form-input-md-label-typography-font-width: 95;
28
+ }
@@ -63,9 +63,11 @@
63
63
  --component-menu-menu-item-shared-aside-typography-font-width: 95;
64
64
  --component-menu-menu-item-shared-last-child-border-bottom: none;
65
65
  --component-menu-menu-item-shared-hover-background-color: #f6f6f6;
66
+ --component-menu-menu-item-shared-hover-outline: none; /** Override outline focus styles on hover */
66
67
  --component-menu-menu-item-shared-focus-visible-outline: 0.125rem solid
67
68
  #0072a9;
68
69
  --component-menu-menu-item-shared-focus-visible-outline-offset: -0.125rem;
70
+ --component-menu-menu-item-shared-pressed-background-color: #ededed;
69
71
  --component-menu-menu-item-sm-icon-size: 1.125rem;
70
72
  --component-menu-menu-item-sm-icon-line-height: 1.3;
71
73
  --component-menu-menu-item-md-icon-size: 1.25rem;
@@ -3,55 +3,46 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --component-select-shared-display: flex;
7
- --component-select-shared-flex-direction: column;
8
- --component-select-shared-gap: 0.25rem;
9
- --component-select-shared-max-width: 333px;
6
+ --component-select-shared-max-width: 320px;
10
7
  --component-select-shared-width: 100%;
11
8
  --component-select-shared-hover-background-color: #f6f6f6;
12
9
  --component-select-shared-hover-outline: none; /** Override outline focus styles on hover */
13
10
  --component-select-shared-pressed-background-color: #ededed;
14
- --component-select-label-color: #000000;
15
- --component-select-label-typography-font: normal 700 1rem/1.15 'Open Sans';
16
- --component-select-label-typography-letter-spacing: -0.03125rem;
17
- --component-select-label-typography-font-width: 95;
18
- --component-select-help-text-color: #545454;
19
- --component-select-help-text-typography-font: normal 460 0.875rem/1.3
11
+ --component-select-shared-button-display: flex;
12
+ --component-select-shared-button-justify-content: space-between;
13
+ --component-select-shared-button-align-items: center;
14
+ --component-select-shared-button-margin-top: 0.25rem;
15
+ --component-select-shared-button-background-color: #ffffff;
16
+ --component-select-shared-button-border: 0.0625rem solid #545454;
17
+ --component-select-shared-button-border-radius: 0.25rem;
18
+ --component-select-shared-button-height: 2.5rem;
19
+ --component-select-shared-button-padding-left: 0.75rem;
20
+ --component-select-shared-button-padding-right: 0.25rem;
21
+ --component-select-shared-button-color: #545454;
22
+ --component-select-shared-button-typography-font: normal 460 1rem/1.3
20
23
  'Open Sans';
21
- --component-select-help-text-typography-letter-spacing: 0;
22
- --component-select-help-text-typography-font-width: 95;
23
- --component-select-button-display: flex;
24
- --component-select-button-justify-content: space-between;
25
- --component-select-button-align-items: center;
26
- --component-select-button-margin-top: 0.25rem;
27
- --component-select-button-background-color: #ffffff;
28
- --component-select-button-border: 0.0625rem solid #545454;
29
- --component-select-button-border-radius: 0.25rem;
30
- --component-select-button-height: 2.5rem;
31
- --component-select-button-padding-left: 0.75rem;
32
- --component-select-button-padding-right: 0.25rem;
33
- --component-select-button-color: #545454;
34
- --component-select-button-typography-font: normal 460 1rem/1.3 'Open Sans';
35
- --component-select-button-typography-letter-spacing: 0;
36
- --component-select-button-typography-font-width: 95;
37
- --component-select-button-focused-outline: 0.125rem solid #0072a9;
38
- --component-select-button-focused-outline-offset: 0.125rem;
39
- --component-select-button-disabled-background-color: #ffffff;
40
- --component-select-button-disabled-cursor: not-allowed;
41
- --component-select-button-disabled-color: #999999;
42
- --component-select-button-disabled-border: 0.0625rem solid #dcdcdc;
43
- --component-select-button-error-border: 0.0625rem solid #b42a19;
44
- --component-select-option-padding-left: 1rem;
45
- --component-select-option-padding-right: 1rem;
46
- --component-select-option-padding-top: 0.75rem;
47
- --component-select-option-padding-bottom: 0.75rem;
48
- --component-select-option-focused-outline: 0.125rem solid #0072a9;
49
- --component-select-option-focused-outline-offset: 0;
50
- --component-select-option-focused-background-color: inherit;
51
- --component-select-list-box-typography-font: normal 460 1rem/1.3 'Open Sans';
52
- --component-select-list-box-typography-letter-spacing: 0;
53
- --component-select-list-box-typography-font-width: 95;
54
- --component-select-list-box-border: 0.0625rem solid #cccccc;
55
- --component-select-list-box-background-color: #ffffff;
56
- --component-select-list-box-shadow: 0 0.125rem 0.375rem 0 rgb(0% 0% 0% / 0.3);
24
+ --component-select-shared-button-typography-letter-spacing: 0;
25
+ --component-select-shared-button-typography-font-width: 95;
26
+ --component-select-shared-button-focused-outline: 0.125rem solid #0072a9;
27
+ --component-select-shared-button-focused-outline-offset: 0.125rem;
28
+ --component-select-shared-button-disabled-background-color: #ffffff;
29
+ --component-select-shared-button-disabled-cursor: not-allowed;
30
+ --component-select-shared-button-disabled-color: #999999;
31
+ --component-select-shared-button-disabled-border: 0.0625rem solid #dcdcdc;
32
+ --component-select-shared-button-error-border: 0.0625rem solid #b42a19;
33
+ --component-select-shared-option-padding-left: 1rem;
34
+ --component-select-shared-option-padding-right: 1rem;
35
+ --component-select-shared-option-padding-top: 0.75rem;
36
+ --component-select-shared-option-padding-bottom: 0.75rem;
37
+ --component-select-shared-option-focused-outline: 0.125rem solid #0072a9;
38
+ --component-select-shared-option-focused-outline-offset: 0;
39
+ --component-select-shared-option-focused-background-color: inherit;
40
+ --component-select-shared-list-box-typography-font: normal 460 1rem/1.3
41
+ 'Open Sans';
42
+ --component-select-shared-list-box-typography-letter-spacing: 0;
43
+ --component-select-shared-list-box-typography-font-width: 95;
44
+ --component-select-shared-list-box-border: 0.0625rem solid #cccccc;
45
+ --component-select-shared-list-box-background-color: #ffffff;
46
+ --component-select-shared-list-box-shadow: 0 0.125rem 0.375rem 0
47
+ rgb(0% 0% 0% / 0.3);
57
48
  }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-text-input-shared-color: #000000;
7
+ --component-text-input-shared-cursor: text;
8
+ --component-text-input-shared-padding-top: 0;
9
+ --component-text-input-shared-padding-right: 0.75rem;
10
+ --component-text-input-shared-padding-bottom: 0;
11
+ --component-text-input-shared-padding-left: 0.75rem;
12
+ --component-text-input-shared-margin-top: 0.5rem; /** spacing between the input itself and the previous element (label or description) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
13
+ --component-text-input-shared-border-radius: 0.25rem;
14
+ --component-text-input-shared-border: 0.0625rem solid #545454;
15
+ --component-text-input-shared-background-color: #ffffff;
16
+ --component-text-input-shared-disabled-background-color: #ffffff;
17
+ --component-text-input-shared-disabled-cursor: not-allowed;
18
+ --component-text-input-shared-disabled-color: #999999;
19
+ --component-text-input-shared-disabled-border: 0.0625rem solid #dcdcdc;
20
+ --component-text-input-shared-error-border: 0.0625rem solid #b42a19;
21
+ --component-text-input-sm-height: 2rem;
22
+ --component-text-input-sm-typography-font: normal 460 0.875rem/1.3 'Open Sans';
23
+ --component-text-input-sm-typography-letter-spacing: 0;
24
+ --component-text-input-sm-typography-font-width: 95;
25
+ --component-text-input-md-height: 2.5rem;
26
+ --component-text-input-md-typography-font: normal 460 1rem/1.3 'Open Sans';
27
+ --component-text-input-md-typography-letter-spacing: 0;
28
+ --component-text-input-md-typography-font-width: 95;
29
+ }
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ const componentForm = {
4
+ input: {
5
+ shared: {
6
+ container: {
7
+ display: "flex",
8
+ "flex-direction": "column",
9
+ gap: "0.25rem",
10
+ width: "100%"
11
+ },
12
+ label: {
13
+ color: "#000000",
14
+ disabled: {
15
+ color: "#999999"
16
+ }
17
+ },
18
+ description: {
19
+ color: "#545454",
20
+ typography: {
21
+ font: "normal 460 0.875rem/1.3 Open Sans",
22
+ letterSpacing: "0rem",
23
+ fontWidth: 95
24
+ },
25
+ disabled: {
26
+ color: "#999999"
27
+ }
28
+ }
29
+ },
30
+ sm: {
31
+ container: {
32
+ "max-width": "200px"
33
+ },
34
+ label: {
35
+ typography: {
36
+ font: "normal 700 0.875rem/1.15 Open Sans",
37
+ letterSpacing: "-0.0125rem",
38
+ fontWidth: 95
39
+ }
40
+ }
41
+ },
42
+ md: {
43
+ container: {
44
+ "max-width": "320px"
45
+ },
46
+ label: {
47
+ typography: {
48
+ font: "normal 700 1rem/1.15 Open Sans",
49
+ letterSpacing: "-0.03125rem",
50
+ fontWidth: 95
51
+ }
52
+ }
53
+ }
54
+ }
55
+ };
56
+
57
+ exports.componentForm = componentForm;
@@ -0,0 +1,55 @@
1
+ const componentForm = {
2
+ input: {
3
+ shared: {
4
+ container: {
5
+ display: "flex",
6
+ "flex-direction": "column",
7
+ gap: "0.25rem",
8
+ width: "100%"
9
+ },
10
+ label: {
11
+ color: "#000000",
12
+ disabled: {
13
+ color: "#999999"
14
+ }
15
+ },
16
+ description: {
17
+ color: "#545454",
18
+ typography: {
19
+ font: "normal 460 0.875rem/1.3 Open Sans",
20
+ letterSpacing: "0rem",
21
+ fontWidth: 95
22
+ },
23
+ disabled: {
24
+ color: "#999999"
25
+ }
26
+ }
27
+ },
28
+ sm: {
29
+ container: {
30
+ "max-width": "200px"
31
+ },
32
+ label: {
33
+ typography: {
34
+ font: "normal 700 0.875rem/1.15 Open Sans",
35
+ letterSpacing: "-0.0125rem",
36
+ fontWidth: 95
37
+ }
38
+ }
39
+ },
40
+ md: {
41
+ container: {
42
+ "max-width": "320px"
43
+ },
44
+ label: {
45
+ typography: {
46
+ font: "normal 700 1rem/1.15 Open Sans",
47
+ letterSpacing: "-0.03125rem",
48
+ fontWidth: 95
49
+ }
50
+ }
51
+ }
52
+ }
53
+ };
54
+
55
+ export { componentForm };
@@ -95,11 +95,15 @@ const componentMenu = {
95
95
  "border-bottom": "none"
96
96
  },
97
97
  ":hover": {
98
- "background-color": "#f6f6f6"
98
+ "background-color": "#f6f6f6",
99
+ outline: "none"
99
100
  },
100
101
  ":focus-visible": {
101
102
  outline: "0.125rem solid #0072a9",
102
103
  "outline-offset": "-0.125rem"
104
+ },
105
+ ":pressed": {
106
+ "background-color": "#ededed"
103
107
  }
104
108
  },
105
109
  sm: {
@@ -93,11 +93,15 @@ const componentMenu = {
93
93
  "border-bottom": "none"
94
94
  },
95
95
  ":hover": {
96
- "background-color": "#f6f6f6"
96
+ "background-color": "#f6f6f6",
97
+ outline: "none"
97
98
  },
98
99
  ":focus-visible": {
99
100
  outline: "0.125rem solid #0072a9",
100
101
  "outline-offset": "-0.125rem"
102
+ },
103
+ ":pressed": {
104
+ "background-color": "#ededed"
101
105
  }
102
106
  },
103
107
  sm: {