@wireapp/react-ui-kit 9.0.8 → 9.0.10

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 (66) hide show
  1. package/lib/Form/Button.js +3 -3
  2. package/lib/Form/Checkbox.d.ts.map +1 -1
  3. package/lib/Form/Checkbox.js +5 -5
  4. package/lib/Form/CodeInput.js +1 -1
  5. package/lib/Form/DropFileInput.js +3 -3
  6. package/lib/Form/ErrorMessage.js +1 -1
  7. package/lib/Form/Input.js +3 -3
  8. package/lib/Form/InputLabel.d.ts.map +1 -1
  9. package/lib/Form/InputLabel.js +3 -3
  10. package/lib/Form/RangeInput.d.ts.map +1 -1
  11. package/lib/Form/RangeInput.js +1 -4
  12. package/lib/Form/RangeInput.styles.d.ts +1 -1
  13. package/lib/Form/RangeInput.styles.d.ts.map +1 -1
  14. package/lib/Form/RangeInput.styles.js +2 -2
  15. package/lib/Form/Select.d.ts.map +1 -1
  16. package/lib/Form/Select.js +6 -1
  17. package/lib/Form/SelectComponents.js +1 -1
  18. package/lib/Form/SelectStyles.d.ts +2 -2
  19. package/lib/Form/SelectStyles.js +1 -1
  20. package/lib/Form/ShakeBox.d.ts +1 -1
  21. package/lib/Form/Switch.js +1 -1
  22. package/lib/Form/TextArea.js +2 -2
  23. package/lib/Form/Tooltip.js +2 -2
  24. package/lib/GlobalStyle.d.ts.map +1 -1
  25. package/lib/GlobalStyle.js +2 -1
  26. package/lib/Layout/Container.d.ts +5 -5
  27. package/lib/Layout/StyledApp.d.ts +1 -1
  28. package/lib/Layout/StyledApp.d.ts.map +1 -1
  29. package/lib/Layout/StyledApp.js +1 -1
  30. package/lib/Layout/headerMenu/MenuItems.d.ts +1 -1
  31. package/lib/Layout/headerMenu/MenuItems.d.ts.map +1 -1
  32. package/lib/Layout/headerMenu/MenuLink.d.ts +1 -1
  33. package/lib/Layout/headerMenu/MenuLink.d.ts.map +1 -1
  34. package/lib/Layout/headerMenu/MenuLink.js +2 -2
  35. package/lib/Layout/headerMenu/MenuOpenButton.d.ts +1 -1
  36. package/lib/Layout/headerMenu/MenuOpenButton.d.ts.map +1 -1
  37. package/lib/Layout/headerMenu/MenuSubLink.d.ts +1 -1
  38. package/lib/Layout/headerMenu/MenuSubLink.d.ts.map +1 -1
  39. package/lib/Layout/headerMenu/MenuSubLink.js +2 -2
  40. package/lib/Layout/index.d.ts +1 -1
  41. package/lib/Layout/index.d.ts.map +1 -1
  42. package/lib/Layout/index.js +1 -1
  43. package/lib/Menu/TabBar.js +1 -1
  44. package/lib/Misc/ButtonGroup.js +4 -4
  45. package/lib/Misc/Pill.js +2 -2
  46. package/lib/Text/Heading.js +8 -8
  47. package/lib/Text/Label.d.ts.map +1 -1
  48. package/lib/Text/Label.js +2 -2
  49. package/lib/Text/Link.js +2 -2
  50. package/lib/Text/Paragraph.js +2 -2
  51. package/lib/Text/Text.d.ts +6 -6
  52. package/lib/Text/Text.js +1 -1
  53. package/lib/Text/TextLink.js +1 -1
  54. package/lib/Text/Title.js +1 -1
  55. package/lib/{GlobalCssVariables.d.ts → Theme/GlobalCssVariables.d.ts} +0 -0
  56. package/lib/Theme/GlobalCssVariables.d.ts.map +1 -0
  57. package/lib/{GlobalCssVariables.js → Theme/GlobalCssVariables.js} +1 -1
  58. package/lib/Theme/Sizes.d.ts +9 -0
  59. package/lib/Theme/Sizes.d.ts.map +1 -0
  60. package/lib/Theme/Sizes.js +29 -0
  61. package/lib/{Layout → Theme}/Theme.d.ts +8 -0
  62. package/lib/Theme/Theme.d.ts.map +1 -0
  63. package/lib/{Layout → Theme}/Theme.js +4 -0
  64. package/package.json +2 -2
  65. package/lib/GlobalCssVariables.d.ts.map +0 -1
  66. package/lib/Layout/Theme.d.ts.map +0 -1
@@ -27,7 +27,7 @@ var ButtonVariant;
27
27
  ButtonVariant["SEND"] = "send";
28
28
  })(ButtonVariant = exports.ButtonVariant || (exports.ButtonVariant = {}));
29
29
  const buttonStyle = (theme, _a) => {
30
- var { variant = ButtonVariant.PRIMARY, backgroundColor, block = false, disabled = false, noCapital = false, bold = true, center = true, color = Identity_1.COLOR.WHITE, fontSize = '16px', noWrap = true, textTransform = 'none', truncate = true } = _a, props = __rest(_a, ["variant", "backgroundColor", "block", "disabled", "noCapital", "bold", "center", "color", "fontSize", "noWrap", "textTransform", "truncate"]);
30
+ var { variant = ButtonVariant.PRIMARY, backgroundColor, block = false, disabled = false, noCapital = false, bold = true, center = true, color = Identity_1.COLOR.WHITE, fontSize = theme.fontSizes.base, noWrap = true, textTransform = 'none', truncate = true } = _a, props = __rest(_a, ["variant", "backgroundColor", "block", "disabled", "noCapital", "bold", "center", "color", "fontSize", "noWrap", "textTransform", "truncate"]);
31
31
  return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block,
32
32
  bold,
33
33
  center,
@@ -65,7 +65,7 @@ const buttonStyle = (theme, _a) => {
65
65
  border: `1px solid ${theme.Button.secondaryActiveBorder}`,
66
66
  color: theme.general.primaryColor,
67
67
  },
68
- })))), (variant === ButtonVariant.TERTIARY && Object.assign({ backgroundColor: backgroundColor || (disabled ? theme.Button.tertiarydisabledBg : theme.Button.tertiaryBg), border: disabled ? `1px solid ${theme.Button.tertiaryDisabledBorder}` : `1px solid ${theme.Button.tertiaryBorder}`, borderRadius: '12px', color: disabled ? theme.Input.placeholderColor : theme.general.color, fontSize: '14px', fontWeight: 700, lineHeight: '24px', padding: '4px 8px', '& > svg > path': {
68
+ })))), (variant === ButtonVariant.TERTIARY && Object.assign({ backgroundColor: backgroundColor || (disabled ? theme.Button.tertiarydisabledBg : theme.Button.tertiaryBg), border: disabled ? `1px solid ${theme.Button.tertiaryDisabledBorder}` : `1px solid ${theme.Button.tertiaryBorder}`, borderRadius: '12px', color: disabled ? theme.Input.placeholderColor : theme.general.color, fontSize: theme.fontSizes.medium, fontWeight: 700, lineHeight: '1.5rem', padding: '4px 8px', '& > svg > path': {
69
69
  fill: disabled ? theme.Input.placeholderColor : theme.general.color,
70
70
  } }, (!disabled && {
71
71
  '&:hover, &:focus': {
@@ -82,7 +82,7 @@ const buttonStyle = (theme, _a) => {
82
82
  fill: theme.IconButton.primaryActiveFillColor,
83
83
  },
84
84
  },
85
- })))), (variant === ButtonVariant.QUATERNARY && Object.assign({ backgroundColor: backgroundColor || (disabled ? Identity_1.COLOR_V2.GRAY_50 : Identity_1.COLOR_V2.GREEN), color: disabled ? Identity_1.COLOR_V2.GRAY_80 : Identity_1.COLOR_V2.WHITE, lineHeight: '24px' }, (!disabled && {
85
+ })))), (variant === ButtonVariant.QUATERNARY && Object.assign({ backgroundColor: backgroundColor || (disabled ? Identity_1.COLOR_V2.GRAY_50 : Identity_1.COLOR_V2.GREEN), color: disabled ? Identity_1.COLOR_V2.GRAY_80 : Identity_1.COLOR_V2.WHITE, lineHeight: '1.5rem' }, (!disabled && {
86
86
  '&:hover, &:focus': {
87
87
  backgroundColor: Identity_1.COLOR_V2.GREEN_LIGHT_600,
88
88
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Form/Checkbox.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAkB,UAAU,EAAC,MAAM,SAAS,CAAC;AAGpD,OAAO,EAAO,SAAS,EAAY,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAmFD,UAAU,aAAa,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACjE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6D5C,CAAC;AAGF,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,eAAe,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEnE,eAAO,MAAM,aAAa,iBAAgB,kBAAkB,qDAS3D,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Form/Checkbox.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAkB,UAAU,EAAC,MAAM,SAAS,CAAC;AAGpD,OAAO,EAAO,SAAS,EAAY,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAmFD,UAAU,aAAa,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACjE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8D5C,CAAC;AAGF,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,eAAe,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEnE,eAAO,MAAM,aAAa,iBAAgB,kBAAkB,qDAS3D,CAAC"}
@@ -67,10 +67,10 @@ const StyledLabel = (_a) => {
67
67
  fill: theme.general.backgroundColor,
68
68
  }, [`.${Input_1.INPUT_CLASSNAME} + & > svg`]: Object.assign({ fill: 'none', position: 'absolute', top: '50%', transform: 'translateY(-50%)' }, (labelBeforeCheckbox
69
69
  ? {
70
- right: '0.75rem',
70
+ right: theme.fontSizes.small,
71
71
  }
72
72
  : {
73
- left: '0.25rem',
73
+ left: '4px',
74
74
  })) }, (!disabled && {
75
75
  [`.${Input_1.INPUT_CLASSNAME}:hover + &::before`]: {
76
76
  borderColor: theme.general.primaryColor,
@@ -83,10 +83,10 @@ const StyledLabel = (_a) => {
83
83
  }
84
84
  : {
85
85
  border: `2px solid ${theme.Checkbox.disableBorderColor}`,
86
- })), { borderRadius: '3px', boxSizing: 'border-box', content: '""', display: 'inline-block', width: '22px', height: '22px', lineHeight: 1.4, margin: '0 8px 0 0px', color: theme.general.color }) }), (labelBeforeCheckbox && {
86
+ })), { borderRadius: '3px', boxSizing: 'border-box', content: '""', display: 'inline-block', width: '22px', height: '22px', lineHeight: '1.4rem', margin: '0 8px 0 0px', color: theme.general.color }) }), (labelBeforeCheckbox && {
87
87
  flexDirection: 'row-reverse',
88
88
  justifyContent: 'space-between',
89
- })), { alignItems: 'center', position: 'relative', margin: '0 0 0 -16px', width: aligncenter ? 'auto' : '100%', lineHeight: 1.4, display: 'flex', opacity: disabled ? 0.56 : 1, cursor: disabled ? 'not-allowed' : 'pointer', borderRadius: '4px' })) }, props, { children: [children, (0, jsx_runtime_1.jsx)("svg", Object.assign({ width: "15", height: "13", viewBox: "0 0 16 13", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M5.65685 12.0711L15.9842 1.62738L14.57 0.213167L5.65685 9.24264L1.41421 5L0 6.41421L5.65685 12.0711Z" }) }))] })));
89
+ })), { alignItems: 'center', position: 'relative', margin: '0 0 0 -16px', width: aligncenter ? 'auto' : '100%', lineHeight: '1.4rem', display: 'flex', opacity: disabled ? 0.56 : 1, cursor: disabled ? 'not-allowed' : 'pointer', borderRadius: '4px' })) }, props, { children: [children, (0, jsx_runtime_1.jsx)("svg", Object.assign({ width: "15", height: "13", viewBox: "0 0 16 13", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M5.65685 12.0711L15.9842 1.62738L14.57 0.213167L5.65685 9.24264L1.41421 5L0 6.41421L5.65685 12.0711Z" }) }))] })));
90
90
  };
91
91
  exports.Checkbox = React.forwardRef((_a, ref) => {
92
92
  var { id, children, style, disabled, wrapperCSS = {}, markInvalid, aligncenter, labelBeforeCheckbox, outlineOffset = '0.4rem' } = _a, props = __rest(_a, ["id", "children", "style", "disabled", "wrapperCSS", "markInvalid", "aligncenter", "labelBeforeCheckbox", "outlineOffset"]);
@@ -100,7 +100,7 @@ exports.Checkbox = React.forwardRef((_a, ref) => {
100
100
  opacity: 0,
101
101
  width: '22px',
102
102
  cursor: disabled ? 'not-allowed' : 'pointer',
103
- }, disabled: disabled, ref: ref, className: Input_1.INPUT_CLASSNAME }, props)), (0, jsx_runtime_1.jsx)(StyledLabel, Object.assign({ htmlFor: id, disabled: disabled, markInvalid: markInvalid, aligncenter: aligncenter, labelBeforeCheckbox: labelBeforeCheckbox }, { children: children }))] })));
103
+ }, disabled: disabled, ref: ref, className: Input_1.INPUT_CLASSNAME }, props)), (0, jsx_runtime_1.jsx)(StyledLabel, Object.assign({ htmlFor: id !== null && id !== void 0 ? id : inputId, disabled: disabled, markInvalid: markInvalid, aligncenter: aligncenter, labelBeforeCheckbox: labelBeforeCheckbox }, { children: children }))] })));
104
104
  });
105
105
  exports.Checkbox.displayName = 'Checkbox';
106
106
  const CheckboxLabel = (_a) => {
@@ -56,7 +56,7 @@ const digitInputStyle = (theme, props) => (Object.assign(Object.assign({}, (0, I
56
56
  marginLeft: 'min(19px, 2vw)',
57
57
  }, '&:hover': {
58
58
  boxShadow: `0 0 0 1px ${Identity_1.COLOR_V2.GRAY_60}`,
59
- }, fontSize: '24px', lineHeight: '28px', borderRadius: '12px', padding: 0, textAlign: 'center', width: 'min(48px, 13vw)', height: '56px' }));
59
+ }, fontSize: theme.fontSizes.extraLarge, lineHeight: '1.75rem', borderRadius: '12px', padding: 0, textAlign: 'center', width: 'min(48px, 13vw)', height: '56px' }));
60
60
  const DigitInput = React.forwardRef((props, ref) => (0, jsx_runtime_1.jsx)("input", Object.assign({ ref: ref, css: (theme) => digitInputStyle(theme, props) }, props, { type: "tel" })));
61
61
  DigitInput.displayName = 'DigitInput';
62
62
  const CodeInput = ({ style, digits = 6, autoFocus = false, markInvalid, onCodeComplete = util_1.noop, disabled, }) => {
@@ -56,7 +56,7 @@ const dropFileZoneWrapperStyle = (theme, isDraggedOver) => ({
56
56
  textAlign: 'center',
57
57
  backgroundColor: isDraggedOver ? theme.general.backgroundColor : Identity_1.COLOR.WHITE,
58
58
  fontWeight: 400,
59
- fontSize: '12px',
59
+ fontSize: '0.75rem',
60
60
  lineHeight: '13px',
61
61
  color: Identity_1.COLOR.GRAY,
62
62
  });
@@ -79,8 +79,8 @@ exports.dropFileZoneHeadingStyle = {
79
79
  exports.dropFileZonDescriptionStyle = {
80
80
  marginTop: '12px',
81
81
  fontWeight: 400,
82
- fontSize: '10px',
83
- lineHeight: '13px',
82
+ fontSize: '0.625rem',
83
+ lineHeight: '0.8125rem',
84
84
  color: Identity_1.COLOR.GRAY,
85
85
  whiteSpace: 'pre-line',
86
86
  };
@@ -19,7 +19,7 @@ const Text_1 = require("../Text");
19
19
  const util_1 = require("../util");
20
20
  const errorMessageStyle = (theme, _a) => {
21
21
  var { justify = 'flex-start', align = 'center' } = _a, props = __rest(_a, ["justify", "align"]);
22
- return (Object.assign(Object.assign({}, (0, Layout_1.flexBoxStyle)(Object.assign({ align, justify }, props))), { a: Object.assign({}, (0, Text_1.linkStyle)(theme, Object.assign({ bold: false, fontSize: '12px', textTransform: 'none' }, props))), marginBottom: '12px' }));
22
+ return (Object.assign(Object.assign({}, (0, Layout_1.flexBoxStyle)(Object.assign({ align, justify }, props))), { a: Object.assign({}, (0, Text_1.linkStyle)(theme, Object.assign({ bold: false, fontSize: theme.fontSizes.small, textTransform: 'none' }, props))), marginBottom: '12px' }));
23
23
  };
24
24
  exports.errorMessageStyle = errorMessageStyle;
25
25
  const filterErrorMessageProps = (props) => {
package/lib/Form/Input.js CHANGED
@@ -62,7 +62,7 @@ const util_1 = require("../util");
62
62
  const inputStyle = (theme, { markInvalid = false, placeholderTextTransform = 'none', disabled = false }) => {
63
63
  const placeholderStyle = {
64
64
  color: theme.Input.placeholderColor,
65
- fontSize: '16px',
65
+ fontSize: theme.fontSizes.base,
66
66
  textTransform: placeholderTextTransform,
67
67
  };
68
68
  return {
@@ -88,7 +88,7 @@ const inputStyle = (theme, { markInvalid = false, placeholderTextTransform = 'no
88
88
  color: theme.general.color,
89
89
  fontWeight: 300,
90
90
  height: '48px',
91
- lineHeight: '24px',
91
+ lineHeight: '1.5rem',
92
92
  outline: 'none',
93
93
  padding: '0 16px',
94
94
  width: '100%',
@@ -114,7 +114,7 @@ exports.Input = React.forwardRef((_a, ref) => {
114
114
  return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: exports.INPUT_GROUP, css: (theme) => (Object.assign({ marginBottom: hasError ? '2px' : '20px', width: '100%', '&:focus-within label': {
115
115
  color: theme.general.primaryColor,
116
116
  } }, wrapperCSS)) }, { children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.InputLabel, Object.assign({ htmlFor: props.id, isRequired: props.required, markInvalid: props.markInvalid }, { children: label }))), (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: { marginBottom: hasError && '8px', position: 'relative' } }, { children: [(0, jsx_runtime_1.jsx)("input", Object.assign({ className: exports.INPUT_CLASSNAME, css: (theme) => (0, exports.inputStyle)(theme, props, hasError), ref: ref, type: isPasswordInput ? toggledPasswordType : type, "aria-required": props.required }, filterInputProps(props))), hasError && !isPasswordInput && ((0, jsx_runtime_1.jsx)(Icon_1.ErrorIcon, { css: centerInputAction, width: 16, height: 16, "aria-hidden": "true" })), isPasswordInput && ((0, jsx_runtime_1.jsx)("button", Object.assign({ type: "button", "data-uie-name": !togglePassword ? 'do-show-password' : 'do-hide-password', css: Object.assign(Object.assign({}, centerInputAction), { background: 'transparent', border: 'none', cursor: 'pointer', padding: 0 }), onClick: toggleSetPassword, title: "Toggle password visibility", "aria-controls": props.id, "aria-expanded": togglePassword }, { children: togglePassword ? (0, jsx_runtime_1.jsx)(Icon_1.HideIcon, {}) : (0, jsx_runtime_1.jsx)(Icon_1.ShowIcon, {}) })))] })), !hasError && helperText && ((0, jsx_runtime_1.jsx)("p", Object.assign({ css: (theme) => ({
117
- fontSize: '12px',
117
+ fontSize: theme.fontSizes.small,
118
118
  fontWeight: 400,
119
119
  color: theme.Input.placeholderColor,
120
120
  marginTop: 8,
@@ -1 +1 @@
1
- {"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../src/Form/InputLabel.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,EAAE,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAKpC,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAenC,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,CAAC"}
1
+ {"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../src/Form/InputLabel.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,EAAE,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAKpC,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAqBnC,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,CAAC"}
@@ -17,10 +17,10 @@ const Identity_1 = require("../Identity");
17
17
  const InputLabel = (_a) => {
18
18
  var { htmlFor, markInvalid, isRequired, children } = _a, props = __rest(_a, ["htmlFor", "markInvalid", "isRequired", "children"]);
19
19
  return ((0, jsx_runtime_1.jsxs)("label", Object.assign({ htmlFor: htmlFor, css: (theme) => ({
20
- fontSize: '14px',
20
+ fontSize: theme.fontSizes.medium,
21
21
  fontWeight: 400,
22
- lineHeight: '16px',
22
+ lineHeight: '1rem',
23
23
  color: markInvalid ? Identity_1.COLOR_V2.RED_LIGHT_500 : theme.Input.labelColor,
24
- }) }, props, { children: [children, isRequired && (0, jsx_runtime_1.jsx)("span", Object.assign({ css: { fontSize: '16px', marginLeft: '4px', color: Identity_1.COLOR_V2.RED_LIGHT_500 } }, { children: "*" }))] })));
24
+ }) }, props, { children: [children, isRequired && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: (theme) => ({ fontSize: theme.fontSizes.base, marginLeft: '4px', color: Identity_1.COLOR_V2.RED_LIGHT_500 }) }, { children: "*" })))] })));
25
25
  };
26
26
  exports.InputLabel = InputLabel;
@@ -1 +1 @@
1
- {"version":3,"file":"RangeInput.d.ts","sourceRoot":"","sources":["../../src/Form/RangeInput.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,EAAE,EAAa,MAAM,OAAO,CAAC;AAErC,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAWzC,OAAO,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA+C1C,CAAC"}
1
+ {"version":3,"file":"RangeInput.d.ts","sourceRoot":"","sources":["../../src/Form/RangeInput.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,EAAE,EAAa,MAAM,OAAO,CAAC;AAErC,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAWzC,OAAO,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAgD1C,CAAC"}
@@ -40,9 +40,6 @@ exports.RangeInput = (0, react_1.forwardRef)((_a, ref) => {
40
40
  const maxNum = Number(max);
41
41
  const valueNum = Number(value);
42
42
  const backgroundSize = `${((valueNum - minNum) * 100) / (maxNum - minNum)}% 100%`;
43
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ css: wrapperCSS }, { children: [label && (0, jsx_runtime_1.jsx)(InputLabel_1.InputLabel, Object.assign({ htmlFor: id }, { children: label })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: RangeInput_styles_1.rangeInputWrapperStyles }, { children: [minValueLabel && (0, jsx_runtime_1.jsx)("span", Object.assign({ css: (0, RangeInput_styles_1.getValueLabelStyles)(RangeInput_styles_1.ValueLabelPosition.LEFT) }, { children: minValueLabel })), maxValueLabel && (0, jsx_runtime_1.jsx)("span", Object.assign({ css: (0, RangeInput_styles_1.getValueLabelStyles)(RangeInput_styles_1.ValueLabelPosition.RIGHT) }, { children: maxValueLabel })), (0, jsx_runtime_1.jsx)("input", Object.assign({ ref: ref, css: (theme) => {
44
- console.info('hallo', theme, backgroundSize);
45
- return (0, RangeInput_styles_1.getImageCropZoomInputStyles)(theme, backgroundSize);
46
- }, id: id, name: id, min: min, max: max, value: value, onChange: onChange, type: "range" }, inputProps))] }))] })));
43
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ css: wrapperCSS }, { children: [label && (0, jsx_runtime_1.jsx)(InputLabel_1.InputLabel, Object.assign({ htmlFor: id }, { children: label })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: RangeInput_styles_1.rangeInputWrapperStyles }, { children: [minValueLabel && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: (theme) => (0, RangeInput_styles_1.getValueLabelStyles)(theme, RangeInput_styles_1.ValueLabelPosition.LEFT) }, { children: minValueLabel }))), maxValueLabel && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: (theme) => (0, RangeInput_styles_1.getValueLabelStyles)(theme, RangeInput_styles_1.ValueLabelPosition.RIGHT) }, { children: maxValueLabel }))), (0, jsx_runtime_1.jsx)("input", Object.assign({ ref: ref, css: (theme) => (0, RangeInput_styles_1.getImageCropZoomInputStyles)(theme, backgroundSize), id: id, name: id, min: min, max: max, value: value, onChange: onChange, type: "range" }, inputProps))] }))] })));
47
44
  });
48
45
  exports.RangeInput.displayName = 'RangeInput';
@@ -6,5 +6,5 @@ export declare enum ValueLabelPosition {
6
6
  LEFT = "left",
7
7
  RIGHT = "right"
8
8
  }
9
- export declare const getValueLabelStyles: (position: ValueLabelPosition) => CSSObject;
9
+ export declare const getValueLabelStyles: (theme: Theme, position: ValueLabelPosition) => CSSObject;
10
10
  //# sourceMappingURL=RangeInput.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RangeInput.styles.d.ts","sourceRoot":"","sources":["../../src/Form/RangeInput.styles.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAGhC,eAAO,MAAM,uBAAuB,EAAE,SAGrC,CAAC;AAKF,eAAO,MAAM,2BAA2B,UAAW,KAAK,kBAAkB,GAAG,MAAM,KAAK,MAAM,GAAG,KAAG,SA4BlG,CAAC;AAEH,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,mBAAmB,aAAc,kBAAkB,KAAG,SAOjE,CAAC"}
1
+ {"version":3,"file":"RangeInput.styles.d.ts","sourceRoot":"","sources":["../../src/Form/RangeInput.styles.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAGhC,eAAO,MAAM,uBAAuB,EAAE,SAGrC,CAAC;AAKF,eAAO,MAAM,2BAA2B,UAAW,KAAK,kBAAkB,GAAG,MAAM,KAAK,MAAM,GAAG,KAAG,SA4BlG,CAAC;AAEH,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,mBAAmB,UAAW,KAAK,YAAY,kBAAkB,KAAG,SAO/E,CAAC"}
@@ -48,10 +48,10 @@ var ValueLabelPosition;
48
48
  ValueLabelPosition["LEFT"] = "left";
49
49
  ValueLabelPosition["RIGHT"] = "right";
50
50
  })(ValueLabelPosition = exports.ValueLabelPosition || (exports.ValueLabelPosition = {}));
51
- const getValueLabelStyles = (position) => ({
51
+ const getValueLabelStyles = (theme, position) => ({
52
52
  pointerEvents: 'none',
53
53
  bottom: '100%',
54
- fontSize: '16px',
54
+ fontSize: theme.fontSizes.base,
55
55
  fontWeight: 300,
56
56
  position: 'absolute',
57
57
  [position]: '4px',
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Form/Select.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAC,SAAS,EAAW,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iDAAiD,CAAC;AAevF,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,UAAU,WAAW,CAAC,OAAO,SAAS,OAAO,CAAE,SAAQ,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC;IACvF,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,MAAM,qOAkElB,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Form/Select.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAC,SAAS,EAAW,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iDAAiD,CAAC;AAevF,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,UAAU,WAAW,CAAC,OAAO,SAAS,OAAO,CAAE,SAAQ,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC;IACvF,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,MAAM,qOAyElB,CAAC"}
@@ -34,6 +34,11 @@ const Select = (_a) => {
34
34
  Menu: (0, SelectComponents_1.Menu)(dataUieName),
35
35
  ValueContainer: SelectComponents_1.ValueContainer,
36
36
  IndicatorsContainer: SelectComponents_1.IndicatorsContainer,
37
- }, tabIndex: -1, isDisabled: disabled, hideSelectedOptions: false, isSearchable: false, isClearable: false, closeMenuOnSelect: !isMulti, isMulti: isMulti, options: options }, props)), !hasError && helperText && ((0, jsx_runtime_1.jsx)("p", Object.assign({ css: (theme) => ({ fontSize: '12px', fontWeight: 400, color: theme.Input.labelColor, marginTop: 8 }) }, { children: helperText }))), error] })));
37
+ }, tabIndex: -1, isDisabled: disabled, hideSelectedOptions: false, isSearchable: false, isClearable: false, closeMenuOnSelect: !isMulti, isMulti: isMulti, options: options }, props)), !hasError && helperText && ((0, jsx_runtime_1.jsx)("p", Object.assign({ css: (theme) => ({
38
+ fontSize: theme.fontSizes.small,
39
+ fontWeight: 400,
40
+ color: theme.Input.labelColor,
41
+ marginTop: 8,
42
+ }) }, { children: helperText }))), error] })));
38
43
  };
39
44
  exports.Select = Select;
@@ -59,7 +59,7 @@ const CustomOption = (dataUieName) => (props) => {
59
59
  'data-uie-selected': isSelected,
60
60
  }), { children: [isMulti && ((0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: isSelected, onChange: () => null, css: { gridArea: 'checkbox', width: 22, height: 22, cursor: 'pointer', placeSelf: 'center' } })), (0, jsx_runtime_1.jsx)("div", Object.assign({ css: { gridArea: 'label', overflowWrap: 'break-word', overflow: 'hidden' } }, { children: children })), data && data.description && ((0, jsx_runtime_1.jsx)("p", Object.assign({ css: (theme) => ({
61
61
  marginBottom: 0,
62
- fontSize: '14px',
62
+ fontSize: theme.fontSizes.medium,
63
63
  color: isSelected ? theme.Select.focusedDescriptionColor : theme.Input.labelColor,
64
64
  gridArea: 'description',
65
65
  }) }, { children: data.description })))] })) })));
@@ -143,7 +143,7 @@ export declare const customStyles: (theme: Theme, markInvalid?: boolean) => {
143
143
  fontKerning?: import("csstype").Property.FontKerning | NonNullable<import("csstype").Property.FontKerning>[] | import("csstype").Property.FontKerning[];
144
144
  fontLanguageOverride?: string[] | import("csstype").Property.FontLanguageOverride | import("csstype").Property.FontLanguageOverride[];
145
145
  fontOpticalSizing?: import("csstype").Property.FontOpticalSizing | NonNullable<import("csstype").Property.FontOpticalSizing>[] | import("csstype").Property.FontOpticalSizing[];
146
- fontSize?: (string | (string & {}))[] | import("csstype").Property.FontSize<string | number> | NonNullable<import("csstype").Property.FontSize<string | number>>[];
146
+ fontSize?: import("csstype").Property.FontSize<string | number> | NonNullable<import("csstype").Property.FontSize<string | number>>[] | (string | (string & {}))[];
147
147
  fontSizeAdjust?: import("csstype").Property.FontSizeAdjust | NonNullable<import("csstype").Property.FontSizeAdjust>[] | ("none" | (string & {}) | import("csstype").Globals | "from-font")[];
148
148
  fontSmooth?: string[] | import("csstype").Property.FontSmooth<string | number> | NonNullable<import("csstype").Property.FontSmooth<string | number>>[];
149
149
  fontStretch?: string[] | import("csstype").Property.FontStretch | import("csstype").Property.FontStretch[];
@@ -382,7 +382,7 @@ export declare const customStyles: (theme: Theme, markInvalid?: boolean) => {
382
382
  animation?: import("csstype").Property.Animation<string & {}> | NonNullable<import("csstype").Property.Animation<string & {}>>[] | (import("csstype").Globals | import("csstype").DataType.SingleAnimationDirection | import("csstype").DataType.SingleAnimationFillMode | "infinite" | "paused" | "running" | import("csstype").DataType.EasingFunction)[];
383
383
  background?: (string | (string & {}))[] | import("csstype").Property.Background<string | number> | NonNullable<import("csstype").Property.Background<string | number>>[];
384
384
  backgroundPosition?: (string | (string & {}))[] | import("csstype").Property.BackgroundPosition<string | number> | NonNullable<import("csstype").Property.BackgroundPosition<string | number>>[];
385
- border?: import("csstype").Property.Border<string | number> | NonNullable<import("csstype").Property.Border<string | number>>[] | (string | (string & {}))[];
385
+ border?: (string | (string & {}))[] | import("csstype").Property.Border<string | number> | NonNullable<import("csstype").Property.Border<string | number>>[];
386
386
  borderBlock?: (string | (string & {}))[] | import("csstype").Property.BorderBlock<string | number> | NonNullable<import("csstype").Property.BorderBlock<string | number>>[];
387
387
  borderBlockEnd?: (string | (string & {}))[] | import("csstype").Property.BorderBlockEnd<string | number> | NonNullable<import("csstype").Property.BorderBlockEnd<string | number>>[];
388
388
  borderBlockStart?: (string | (string & {}))[] | import("csstype").Property.BorderBlockStart<string | number> | NonNullable<import("csstype").Property.BorderBlockStart<string | number>>[];
@@ -64,7 +64,7 @@ const customStyles = (theme, markInvalid = false) => ({
64
64
  },
65
65
  menu: provided => (Object.assign(Object.assign({}, provided), { boxShadow: `0 0 0 1px ${theme.general.primaryColor}, 0 4px 11px hsl(0deg 0% 0% / 10%)`, borderRadius: 12, marginBottom: 0, marginTop: 4, overflowY: 'overlay' })),
66
66
  menuList: provided => (Object.assign(Object.assign({}, provided), { borderRadius: 12, paddingBottom: 0, paddingTop: 0 })),
67
- option: (provided, { isMulti, isDisabled, isFocused, isSelected }) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, provided), { backgroundColor: theme.Input.backgroundColor, color: theme.general.color, padding: '10px 18px', cursor: isDisabled ? 'not-allowed' : 'pointer', fontSize: '16px', fontWeight: 300, lineHeight: '24px' }), (isSelected &&
67
+ option: (provided, { isMulti, isDisabled, isFocused, isSelected }) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, provided), { backgroundColor: theme.Input.backgroundColor, color: theme.general.color, padding: '10px 18px', cursor: isDisabled ? 'not-allowed' : 'pointer', fontSize: theme.fontSizes.base, fontWeight: 300, lineHeight: '1.5rem' }), (isSelected &&
68
68
  !isDisabled &&
69
69
  !isMulti && {
70
70
  background: theme.general.primaryColor,
@@ -8,5 +8,5 @@ export interface ShakeBoxProps extends React.HTMLProps<HTMLDivElement> {
8
8
  export interface ShakeBoxRef {
9
9
  shake: () => void;
10
10
  }
11
- export declare const ShakeBox: React.ForwardRefExoticComponent<Pick<ShakeBoxProps, "children" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "css" | "color" | "content" | "height" | "translate" | "width" | "key" | "value" | "hidden" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "start" | "size" | "default" | "wrap" | "open" | "multiple" | "disabled" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "wmode" | "amplitude" | "speed" | "damping" | "threshold"> & React.RefAttributes<ShakeBoxRef>>;
11
+ export declare const ShakeBox: React.ForwardRefExoticComponent<Pick<ShakeBoxProps, "children" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "css" | "color" | "content" | "height" | "translate" | "width" | "key" | "value" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "amplitude" | "speed" | "damping" | "threshold"> & React.RefAttributes<ShakeBoxRef>>;
12
12
  //# sourceMappingURL=ShakeBox.d.ts.map
@@ -56,7 +56,7 @@ const Switch = ({ id = Math.random().toString(), checked, onToggle = () => { },
56
56
  display: 'block',
57
57
  float: 'left',
58
58
  height: '25px',
59
- lineHeight: '25px',
59
+ lineHeight: '1.5625rem',
60
60
  padding: 0,
61
61
  width: '50%',
62
62
  },
@@ -49,7 +49,7 @@ const util_1 = require("../util");
49
49
  const textAreaStyle = (theme, { markInvalid = false, placeholderTextTransform = 'none', disabled = false }) => {
50
50
  const placeholderStyle = {
51
51
  color: theme.Input.placeholderColor,
52
- fontSize: '16px',
52
+ fontSize: theme.fontSizes.base,
53
53
  textTransform: placeholderTextTransform,
54
54
  };
55
55
  return {
@@ -71,7 +71,7 @@ const textAreaStyle = (theme, { markInvalid = false, placeholderTextTransform =
71
71
  caretColor: Identity_1.COLOR.BLUE,
72
72
  color: theme.general.color,
73
73
  fontWeight: 300,
74
- lineHeight: '24px',
74
+ lineHeight: '1.5rem',
75
75
  margin: '0 0 16px',
76
76
  outline: 'none',
77
77
  padding: '16px 16px',
@@ -24,10 +24,10 @@ const tooltipStyle = ({ disabled = false, bottom = false, left = false, right =
24
24
  color: light ? Identity_1.COLOR.TEXT : Identity_1.COLOR.WHITE,
25
25
  content: 'attr(data-text)',
26
26
  display: 'block',
27
- fontSize: '12px',
27
+ fontSize: '0.75rem',
28
28
  fontWeight: light ? 400 : 600,
29
29
  left: right ? 'calc(100% + 8px)' : 'auto',
30
- lineHeight: '14px',
30
+ lineHeight: '0.875rem',
31
31
  maxWidth: '200px',
32
32
  minWidth: '120px',
33
33
  opacity: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalStyle.d.ts","sourceRoot":"","sources":["../src/GlobalStyle.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AA4C/B,eAAO,MAAM,WAAW;WAA+B,KAAK;;;EAU1D,CAAC"}
1
+ {"version":3,"file":"GlobalStyle.d.ts","sourceRoot":"","sources":["../src/GlobalStyle.tsx"],"names":[],"mappings":";AAsBA,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AA8C/B,eAAO,MAAM,WAAW;WAA+B,KAAK;;;EAU1D,CAAC"}
@@ -25,7 +25,7 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
25
25
  */
26
26
  const react_1 = require("@emotion/react");
27
27
  const emotion_normalize_1 = __importDefault(require("emotion-normalize"));
28
- const GlobalCssVariables_1 = require("./GlobalCssVariables");
28
+ const GlobalCssVariables_1 = require("./Theme/GlobalCssVariables");
29
29
  const getGlobalStyles = (theme) => ({
30
30
  '*': {
31
31
  boxSizing: 'border-box',
@@ -39,6 +39,7 @@ const getGlobalStyles = (theme) => ({
39
39
  html: {
40
40
  background: theme.general.backgroundColor,
41
41
  transition: 'background 0.15s',
42
+ fontSize: '16px',
42
43
  },
43
44
  p: {
44
45
  marginTop: 0,