@mrshmllw/smores-react 2.4.1 → 2.4.2

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 (88) hide show
  1. package/dist/Accordion/Accordion.d.ts +2 -1
  2. package/dist/Accordion/Accordion.js +14 -2
  3. package/dist/Accordion/Accordion.js.map +1 -1
  4. package/dist/ActionDropdown/ActionDropdown.d.ts +2 -1
  5. package/dist/ActionDropdown/ActionDropdown.js +19 -6
  6. package/dist/ActionDropdown/ActionDropdown.js.map +1 -1
  7. package/dist/Box/Box.d.ts +3 -3
  8. package/dist/Box/Box.js +3 -2
  9. package/dist/Box/Box.js.map +1 -1
  10. package/dist/Button/Button.d.ts +2 -2
  11. package/dist/Button/Button.js +10 -12
  12. package/dist/Button/Button.js.map +1 -1
  13. package/dist/Card/Card.d.ts +2 -1
  14. package/dist/Card/Card.js +17 -2
  15. package/dist/Card/Card.js.map +1 -1
  16. package/dist/CheckBoxGroup/CheckBoxGroup.d.ts +4 -3
  17. package/dist/CheckBoxGroup/CheckBoxGroup.js +17 -2
  18. package/dist/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
  19. package/dist/CheckBoxGroup/CheckBoxGroup.stories.d.ts +1 -1
  20. package/dist/Chip/Chip.d.ts +2 -1
  21. package/dist/Chip/Chip.js +3 -2
  22. package/dist/Chip/Chip.js.map +1 -1
  23. package/dist/ConfirmationRadioButtons/Confirmation.d.ts +2 -1
  24. package/dist/ConfirmationRadioButtons/Confirmation.js +14 -2
  25. package/dist/ConfirmationRadioButtons/Confirmation.js.map +1 -1
  26. package/dist/Datepicker/Datepicker.d.ts +2 -2
  27. package/dist/Datepicker/Datepicker.js +15 -3
  28. package/dist/Datepicker/Datepicker.js.map +1 -1
  29. package/dist/Datepicker/DatesList.d.ts +0 -1
  30. package/dist/Datepicker/DatesList.js +4 -5
  31. package/dist/Datepicker/DatesList.js.map +1 -1
  32. package/dist/Dropdown/Dropdown.d.ts +2 -2
  33. package/dist/Dropdown/Dropdown.js +1 -1
  34. package/dist/Dropdown/Dropdown.stories.d.ts +2 -2
  35. package/dist/Emoji/Emoji.d.ts +2 -6
  36. package/dist/Emoji/Emoji.js +17 -6
  37. package/dist/Emoji/Emoji.js.map +1 -1
  38. package/dist/Field/Field.d.ts +1 -1
  39. package/dist/Field/Field.js +14 -3
  40. package/dist/Field/Field.js.map +1 -1
  41. package/dist/Field/types/commonFieldTypes.d.ts +2 -1
  42. package/dist/Fieldset/Fieldset.d.ts +4 -3
  43. package/dist/Fieldset/Fieldset.js +14 -2
  44. package/dist/Fieldset/Fieldset.js.map +1 -1
  45. package/dist/Icon/Icon.d.ts +2 -6
  46. package/dist/Icon/Icon.js +819 -808
  47. package/dist/Icon/Icon.js.map +1 -1
  48. package/dist/IconWrapper/IconWrapper.d.ts +2 -1
  49. package/dist/IconWrapper/IconWrapper.js +21 -6
  50. package/dist/IconWrapper/IconWrapper.js.map +1 -1
  51. package/dist/LabelledText/LabelledText.d.ts +2 -1
  52. package/dist/LabelledText/LabelledText.js +19 -4
  53. package/dist/LabelledText/LabelledText.js.map +1 -1
  54. package/dist/NumberInput/NumberInput.d.ts +2 -1
  55. package/dist/NumberInput/NumberInput.js +15 -3
  56. package/dist/NumberInput/NumberInput.js.map +1 -1
  57. package/dist/Pagination/Pagination.d.ts +2 -1
  58. package/dist/Pagination/Pagination.js +14 -2
  59. package/dist/Pagination/Pagination.js.map +1 -1
  60. package/dist/RadioButton/RadioButton.d.ts +2 -1
  61. package/dist/RadioButton/RadioButton.js +14 -2
  62. package/dist/RadioButton/RadioButton.js.map +1 -1
  63. package/dist/Row/Row.d.ts +2 -1
  64. package/dist/Row/Row.js +15 -3
  65. package/dist/Row/Row.js.map +1 -1
  66. package/dist/SearchInput/SearchInput.d.ts +0 -1
  67. package/dist/SearchInput/SearchInput.js +15 -3
  68. package/dist/SearchInput/SearchInput.js.map +1 -1
  69. package/dist/SupportMessage/SupportMessage.d.ts +2 -1
  70. package/dist/SupportMessage/SupportMessage.js +22 -6
  71. package/dist/SupportMessage/SupportMessage.js.map +1 -1
  72. package/dist/Tag/Tag.d.ts +2 -1
  73. package/dist/Tag/Tag.js +18 -3
  74. package/dist/Tag/Tag.js.map +1 -1
  75. package/dist/Text/Text.d.ts +2 -1
  76. package/dist/Text/Text.js +2 -1
  77. package/dist/Text/Text.js.map +1 -1
  78. package/dist/Textarea/Textarea.d.ts +3 -5
  79. package/dist/Textarea/Textarea.js +1 -1
  80. package/dist/Textarea/Textarea.js.map +1 -1
  81. package/dist/Toggle/Toggle.d.ts +2 -1
  82. package/dist/Toggle/Toggle.js +16 -3
  83. package/dist/Toggle/Toggle.js.map +1 -1
  84. package/dist/Toggle/Toggle.stories.d.ts +1 -1
  85. package/dist/utils/space.d.ts +2 -2
  86. package/dist/utils/space.js +7 -2
  87. package/dist/utils/space.js.map +1 -1
  88. package/package.json +1 -1
@@ -27,8 +27,8 @@ export declare type DropdownProps = Props & TruncateProps;
27
27
  export declare const Dropdown: React.ForwardRefExoticComponent<(Pick<Props & {
28
28
  onSelect: (e: string) => void;
29
29
  onInputChange?: ((e: FormEvent<HTMLSelectElement>) => void) | undefined;
30
- }, "required" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "list" | "defaultValue" | "placeholder" | "onBlur" | "onSelect" | "outlined" | "errorMsg" | "renderAsTitle" | "onInputChange"> | Pick<Props & {
30
+ }, "required" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "list" | "defaultValue" | "placeholder" | "onBlur" | "onSelect" | "m" | "mx" | "my" | "ml" | "mr" | "mt" | "mb" | "outlined" | "errorMsg" | "renderAsTitle" | "onInputChange"> | Pick<Props & {
31
31
  onSelect?: ((e: string) => void) | undefined;
32
32
  onInputChange: (e: FormEvent<HTMLSelectElement>) => void;
33
- }, "required" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "list" | "defaultValue" | "placeholder" | "onBlur" | "onSelect" | "outlined" | "errorMsg" | "renderAsTitle" | "onInputChange">) & React.RefAttributes<HTMLSelectElement>>;
33
+ }, "required" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "list" | "defaultValue" | "placeholder" | "onBlur" | "onSelect" | "m" | "mx" | "my" | "ml" | "mr" | "mt" | "mb" | "outlined" | "errorMsg" | "renderAsTitle" | "onInputChange">) & React.RefAttributes<HTMLSelectElement>>;
34
34
  export {};
@@ -109,7 +109,7 @@ const StyledSelect = styled.select `
109
109
  value != '' &&
110
110
  `
111
111
  border: 2px solid ${theme.colors.outline};
112
- `}}
112
+ `}
113
113
 
114
114
  ${({ error, outlined }) => getErrorOutline(outlined, error)};
115
115
  `;
@@ -4,10 +4,10 @@ declare const _default: {
4
4
  component: React.ForwardRefExoticComponent<(Pick<import("./Dropdown").Props & {
5
5
  onSelect: (e: string) => void;
6
6
  onInputChange?: ((e: React.FormEvent<HTMLSelectElement>) => void) | undefined;
7
- }, "required" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "list" | "defaultValue" | "placeholder" | "onBlur" | "onSelect" | "outlined" | "errorMsg" | "renderAsTitle" | "onInputChange"> | Pick<import("./Dropdown").Props & {
7
+ }, "required" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "list" | "defaultValue" | "placeholder" | "onBlur" | "onSelect" | "m" | "mx" | "my" | "ml" | "mr" | "mt" | "mb" | "outlined" | "errorMsg" | "renderAsTitle" | "onInputChange"> | Pick<import("./Dropdown").Props & {
8
8
  onSelect?: ((e: string) => void) | undefined;
9
9
  onInputChange: (e: React.FormEvent<HTMLSelectElement>) => void;
10
- }, "required" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "list" | "defaultValue" | "placeholder" | "onBlur" | "onSelect" | "outlined" | "errorMsg" | "renderAsTitle" | "onInputChange">) & React.RefAttributes<HTMLSelectElement>>;
10
+ }, "required" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "list" | "defaultValue" | "placeholder" | "onBlur" | "onSelect" | "m" | "mx" | "my" | "ml" | "mr" | "mt" | "mb" | "outlined" | "errorMsg" | "renderAsTitle" | "onInputChange">) & React.RefAttributes<HTMLSelectElement>>;
11
11
  argTypes: {
12
12
  onSelect: {
13
13
  action: string;
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { MarginProps } from '../utils/space';
2
3
  export declare type EmojiProps = {
3
4
  /** className attribute to apply classes from props */
4
5
  className?: string;
@@ -8,10 +9,5 @@ export declare type EmojiProps = {
8
9
  size?: number;
9
10
  /** aria-label to identify Emoji */
10
11
  label: string;
11
- /** margins TOP-RIGHT-BOTTOM-LEFT */
12
- mt?: string;
13
- mr?: string;
14
- mb?: string;
15
- ml?: string;
16
- };
12
+ } & MarginProps;
17
13
  export declare const Emoji: FC<EmojiProps>;
@@ -1,11 +1,22 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
1
12
  import React from 'react';
2
13
  import styled, { css } from 'styled-components';
3
- export const Emoji = ({ className = '', symbol, size = 12, label, mt = '0', mr = '0', mb = '0', ml = '0', }) => (React.createElement(Container, { className: className, size: size, mt: mt, mr: mr, mb: mb, ml: ml, role: "img", "aria-label": label }, symbol));
4
- const Container = styled.span(({ size, mt, mr, mb, ml }) => css `
14
+ import { Box } from '../Box';
15
+ export const Emoji = (_a) => {
16
+ var { className = '', symbol, size = 12, label } = _a, marginProps = __rest(_a, ["className", "symbol", "size", "label"]);
17
+ return (React.createElement(Container, Object.assign({ as: "span", className: className, size: size, role: "img", "aria-label": label }, marginProps), symbol));
18
+ };
19
+ const Container = styled(Box)(({ size }) => css `
5
20
  font-size: ${size}px;
6
- margin-top: ${mt};
7
- margin-right: ${mr};
8
- margin-bottom: ${mb};
9
- margin-left: ${ml};
10
21
  `);
11
22
  //# sourceMappingURL=Emoji.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../src/Emoji/Emoji.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAkB/C,MAAM,CAAC,MAAM,KAAK,GAAmB,CAAC,EACpC,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,GAAG,EAAE,EACT,KAAK,EACL,EAAE,GAAG,GAAG,EACR,EAAE,GAAG,GAAG,EACR,EAAE,GAAG,GAAG,EACR,EAAE,GAAG,GAAG,GACT,EAAE,EAAE,CAAC,CACJ,oBAAC,SAAS,IACR,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,KAAK,gBACE,KAAK,IAEhB,MAAM,CACG,CACb,CAAA;AAUD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAC3B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;iBAClB,IAAI;kBACH,EAAE;oBACA,EAAE;qBACD,EAAE;mBACJ,EAAE;GAClB,CACF,CAAA"}
1
+ {"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../src/Emoji/Emoji.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAa5B,MAAM,CAAC,MAAM,KAAK,GAAmB,CAAC,EAMrC,EAAE,EAAE;QANiC,EACpC,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,GAAG,EAAE,EACT,KAAK,OAEN,EADI,WAAW,cALsB,wCAMrC,CADe;IACV,OAAA,CACJ,oBAAC,SAAS,kBACR,EAAE,EAAC,MAAM,EACT,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,KAAK,gBACE,KAAK,IACb,WAAW,GAEd,MAAM,CACG,CACb,CAAA;CAAA,CAAA;AAMD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAC3B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;iBACF,IAAI;GAClB,CACF,CAAA"}
@@ -8,5 +8,5 @@ interface FieldProps extends CommonFieldTypes {
8
8
  dropdownKey?: string;
9
9
  fullHeight?: boolean;
10
10
  }
11
- export declare const Field: ({ children, renderAsTitle, className, error, id, label, outlined, value, trailingIcon, errorMsg, dropdownKey, required, showCaret, fullHeight, }: FieldProps) => JSX.Element;
11
+ export declare const Field: ({ children, renderAsTitle, className, error, id, label, outlined, value, trailingIcon, errorMsg, dropdownKey, required, showCaret, fullHeight, ...marginProps }: FieldProps) => JSX.Element;
12
12
  export {};
@@ -1,3 +1,14 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
1
12
  import React from 'react';
2
13
  import styled from 'styled-components';
3
14
  import { darken } from 'polished';
@@ -5,8 +16,9 @@ import { Icon } from '../Icon';
5
16
  import { Text } from '../Text';
6
17
  import { Box } from '../Box';
7
18
  import { theme } from '../theme';
8
- export const Field = ({ children, renderAsTitle, className = '', error, id, label, outlined = false, value, trailingIcon, errorMsg, dropdownKey, required, showCaret, fullHeight = false, }) => {
9
- return (React.createElement(Container, { className: className },
19
+ export const Field = (_a) => {
20
+ var { children, renderAsTitle, className = '', error, id, label, outlined = false, value, trailingIcon, errorMsg, dropdownKey, required, showCaret, fullHeight = false } = _a, marginProps = __rest(_a, ["children", "renderAsTitle", "className", "error", "id", "label", "outlined", "value", "trailingIcon", "errorMsg", "dropdownKey", "required", "showCaret", "fullHeight"]);
21
+ return (React.createElement(Container, Object.assign({ className: className }, marginProps),
10
22
  label && (React.createElement(Box, { mb: { custom: outlined ? 4 : 0 } }, renderAsTitle ? (React.createElement(Title, null, label)) : (React.createElement(Text, { tag: "label", color: "subtext", typo: "label", htmlFor: id },
11
23
  label,
12
24
  required && React.createElement(Asterisk, null, "*"))))),
@@ -27,7 +39,6 @@ const Content = styled.div `
27
39
  position: relative;
28
40
  border-color: ${({ error }) => theme.colors[`${error ? 'error' : 'outline'}`]};
29
41
  background-color: ${({ outlined }) => !outlined ? 'transparent' : theme.colors['white']};
30
- display: flex;
31
42
  height: ${({ fullHeight }) => (fullHeight ? `100%` : `32px`)};
32
43
 
33
44
  &:hover,
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../src/Field/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE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AI1C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAC5B,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;;;IAGhE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,QAAQ;IACR;;;KAGC;;IAED,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACd,KAAK;IACL,KAAK,IAAI,EAAE;IACX;oBACgB,KAAK,CAAC,MAAM,CAAC,OAAO;KACnC;CACJ,CAAA;AAED,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAA;;WAEjB,KAAK,CAAC,MAAM,CAAC,KAAK;;CAE5B,CAAA;AAED,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAA;;;CAGtB,CAAA;AAED,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAuB;;;;WAIpC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;;;CAGrD,CAAA;AAED,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAA;;WAEjB,KAAK,CAAC,MAAM,CAAC,KAAK;CAC5B,CAAA"}
@@ -1,4 +1,5 @@
1
- export interface CommonFieldTypes {
1
+ import { MarginProps } from '../../utils/space';
2
+ export interface CommonFieldTypes extends MarginProps {
2
3
  label?: string;
3
4
  id?: string;
4
5
  error?: boolean;
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
+ import { MarginProps } from '../utils/space';
2
3
  declare type FieldSetProps = {
3
- children: React.ReactChildren;
4
+ children: React.ReactChild;
4
5
  label: string;
5
6
  outlined?: boolean;
6
- };
7
- export declare const Fieldset: ({ children, label, outlined, }: FieldSetProps) => JSX.Element;
7
+ } & MarginProps;
8
+ export declare const Fieldset: ({ children, label, outlined, ...marginProps }: FieldSetProps) => JSX.Element;
8
9
  export {};
@@ -1,8 +1,20 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
1
12
  import React from 'react';
2
13
  import styled from 'styled-components';
3
14
  import { Box } from '../Box';
4
- export const Fieldset = ({ children, label, outlined = false, }) => {
5
- return (React.createElement("fieldset", null,
15
+ export const Fieldset = (_a) => {
16
+ var { children, label, outlined = false } = _a, marginProps = __rest(_a, ["children", "label", "outlined"]);
17
+ return (React.createElement(Box, Object.assign({ as: "fieldset" }, marginProps),
6
18
  React.createElement(Box, { mb: { custom: outlined ? 4 : 0 } },
7
19
  React.createElement(Legend, null, label)),
8
20
  children));
@@ -1 +1 @@
1
- {"version":3,"file":"Fieldset.js","sourceRoot":"","sources":["../../src/Fieldset/Fieldset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAQ5B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,QAAQ,GAAG,KAAK,GACF,EAAE,EAAE;IAClB,OAAO,CACL;QACE,oBAAC,GAAG,IAAC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACnC,oBAAC,MAAM,QAAE,KAAK,CAAU,CACpB;QAEL,QAAQ,CACA,CACZ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;;;;CAI3B,CAAA"}
1
+ {"version":3,"file":"Fieldset.js","sourceRoot":"","sources":["../../src/Fieldset/Fieldset.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAGtC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAQ5B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAKT,EAAE,EAAE;QALK,EACvB,QAAQ,EACR,KAAK,EACL,QAAQ,GAAG,KAAK,OAEF,EADX,WAAW,cAJS,iCAKxB,CADe;IAEd,OAAO,CACL,oBAAC,GAAG,kBAAC,EAAE,EAAC,UAAU,IAAK,WAAW;QAChC,oBAAC,GAAG,IAAC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACnC,oBAAC,MAAM,QAAE,KAAK,CAAU,CACpB;QAEL,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;;;;CAI3B,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { MarginProps } from '../utils/space';
2
3
  import { Color } from '../theme';
3
4
  /**
4
5
  * When adding a new Icon please remember to also add it
@@ -17,10 +18,5 @@ export declare type IconProps = {
17
18
  color?: Color;
18
19
  /** rotation degrees */
19
20
  rotate?: number;
20
- /** margins TOP-RIGHT-BOTTOM-LEFT */
21
- mt?: string;
22
- mr?: string;
23
- mb?: string;
24
- ml?: string;
25
- };
21
+ } & MarginProps;
26
22
  export declare const Icon: FC<IconProps>;