@easypost/easy-ui 1.0.0-alpha.5 → 1.0.0-alpha.7

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 (138) hide show
  1. package/Badge/index.js +16 -16
  2. package/Badge/index.mjs +14 -14
  3. package/Banner/index.js +7 -7
  4. package/Banner/index.mjs +5 -5
  5. package/Button/Button.d.ts +61 -0
  6. package/Button/Button.d.ts.map +1 -1
  7. package/Button/index.js +23 -23
  8. package/Button/index.mjs +20 -20
  9. package/CHANGELOG.md +22 -0
  10. package/Card/index.js +84 -5
  11. package/Card/index.mjs +84 -5
  12. package/Checkbox/index.js +28 -28
  13. package/Checkbox/index.mjs +26 -26
  14. package/CodeBlock/CodeBlock.d.ts +49 -61
  15. package/CodeBlock/CodeBlock.d.ts.map +1 -1
  16. package/CodeBlock/CodeBlock.stories.d.ts +3 -2
  17. package/CodeBlock/CodeBlock.stories.d.ts.map +1 -1
  18. package/CodeBlock/CopyButton.d.ts +9 -0
  19. package/CodeBlock/CopyButton.d.ts.map +1 -0
  20. package/CodeBlock/LanguageMenu.d.ts +18 -0
  21. package/CodeBlock/LanguageMenu.d.ts.map +1 -0
  22. package/CodeBlock/context.d.ts +11 -0
  23. package/CodeBlock/context.d.ts.map +1 -0
  24. package/CodeBlock/index.js +310 -5335
  25. package/CodeBlock/index.mjs +299 -5340
  26. package/CodeSnippet/CodeSnippet.d.ts +82 -0
  27. package/CodeSnippet/CodeSnippet.d.ts.map +1 -0
  28. package/CodeSnippet/CodeSnippet.stories.d.ts +14 -0
  29. package/CodeSnippet/CodeSnippet.stories.d.ts.map +1 -0
  30. package/CodeSnippet/CodeSnippet.test.d.ts +2 -0
  31. package/CodeSnippet/CodeSnippet.test.d.ts.map +1 -0
  32. package/CodeSnippet/SyntaxHighlighter.d.ts +8 -0
  33. package/CodeSnippet/SyntaxHighlighter.d.ts.map +1 -0
  34. package/CodeSnippet/index.d.ts +2 -0
  35. package/CodeSnippet/index.d.ts.map +1 -0
  36. package/CodeSnippet/index.js +11 -0
  37. package/CodeSnippet/index.mjs +11 -0
  38. package/CodeSnippet/theme.d.ts.map +1 -0
  39. package/CodeSnippet/useScrollbar.d.ts.map +1 -0
  40. package/DropdownButton/DropdownButton.d.ts +48 -0
  41. package/DropdownButton/DropdownButton.d.ts.map +1 -1
  42. package/DropdownButton/index.js +17 -17
  43. package/DropdownButton/index.mjs +15 -15
  44. package/HorizontalGrid/index.js +1 -1
  45. package/HorizontalGrid/index.mjs +1 -1
  46. package/HorizontalStack/index.js +48 -4
  47. package/HorizontalStack/index.mjs +48 -4
  48. package/Icon/Icon.d.ts +51 -0
  49. package/Icon/Icon.d.ts.map +1 -1
  50. package/Icon/index.js +38 -4
  51. package/Icon/index.mjs +38 -4
  52. package/IconButton/IconButton.d.ts +62 -0
  53. package/IconButton/IconButton.d.ts.map +1 -1
  54. package/IconButton/index.js +18 -18
  55. package/IconButton/index.mjs +15 -15
  56. package/InputField/index.js +282 -11
  57. package/InputField/index.mjs +266 -11
  58. package/Menu/index.js +57 -15
  59. package/Menu/index.mjs +58 -16
  60. package/Notification/index.js +1534 -14
  61. package/Notification/index.mjs +1518 -14
  62. package/Provider/index.js +9 -9
  63. package/Provider/index.mjs +9 -9
  64. package/RadioGroup/index.js +24 -24
  65. package/RadioGroup/index.mjs +22 -22
  66. package/Select/index.js +71 -29
  67. package/Select/index.mjs +71 -29
  68. package/SelectorErrorTooltip/index.js +99 -8
  69. package/SelectorErrorTooltip/index.mjs +85 -10
  70. package/Text/index.js +85 -4
  71. package/Text/index.mjs +85 -4
  72. package/TextField/index.js +7 -7
  73. package/TextField/index.mjs +8 -8
  74. package/Textarea/index.js +7 -7
  75. package/Textarea/index.mjs +8 -8
  76. package/Theme/index.js +145 -9
  77. package/Theme/index.mjs +145 -9
  78. package/Toggle/index.js +14 -14
  79. package/Toggle/index.mjs +14 -14
  80. package/Tooltip/Tooltip.stories.d.ts +1 -0
  81. package/Tooltip/Tooltip.stories.d.ts.map +1 -1
  82. package/Tooltip/index.js +5 -5
  83. package/Tooltip/index.mjs +6 -6
  84. package/UnstyledButton/index.js +3 -3
  85. package/UnstyledButton/index.mjs +3 -3
  86. package/VerticalStack/index.js +3 -3
  87. package/VerticalStack/index.mjs +3 -3
  88. package/__chunks__/{InputIcon-4a8e5243.mjs → InputIcon-1f2ed127.mjs} +26 -26
  89. package/__chunks__/{InputIcon-70dad3e5.js → InputIcon-f456e366.js} +29 -29
  90. package/__chunks__/{import-87c465c9.js → import-0f8555a4.js} +1 -1
  91. package/__chunks__/{import-fbe7cc7e.mjs → import-19bc38ac.mjs} +26 -26
  92. package/__chunks__/{import-9581a2dc.js → import-26676303.js} +44 -1
  93. package/__chunks__/{import-d2e79ac1.mjs → import-29af6941.mjs} +3 -3
  94. package/__chunks__/{import-a6cadfe8.mjs → import-3faba3a6.mjs} +58 -15
  95. package/__chunks__/{import-d52cd5cf.js → import-890ae60e.js} +1 -1
  96. package/__chunks__/{import-29edaaea.mjs → import-c4caaddf.mjs} +9 -9
  97. package/__chunks__/{import-9c958e32.mjs → import-eb35a9b9.mjs} +2 -2
  98. package/__chunks__/{UnstyledButton-981cd9af.mjs → index-45f05366.mjs} +2 -2
  99. package/__chunks__/{UnstyledButton-5bbb3c5e.js → index-5f429325.js} +1 -1
  100. package/__chunks__/index-72137376.mjs +5421 -0
  101. package/__chunks__/index-a7b6b429.js +5420 -0
  102. package/__chunks__/{Tooltip-c5076ca7.js → index-affe5510.js} +13 -12
  103. package/__chunks__/{Tooltip-b4e23b78.mjs → index-e989a741.mjs} +14 -13
  104. package/__chunks__/{overlayscrollbars-react.es-c8369a03.mjs → overlayscrollbars-react.es-7f332a3b.mjs} +4 -4
  105. package/__chunks__/{overlayscrollbars-react.es-20563393.js → overlayscrollbars-react.es-f2a0bcff.js} +4 -4
  106. package/__chunks__/{real-module-2f165429.mjs → real-module-515df21d.mjs} +4 -4
  107. package/__chunks__/{tokens-6be8e137.mjs → tokens-3c27019b.mjs} +1 -0
  108. package/__chunks__/{tokens-e696ca96.js → tokens-ad06cd2c.js} +1 -0
  109. package/__chunks__/{useTriggerWidth-29becc21.mjs → useTriggerWidth-b554acaf.mjs} +50 -8
  110. package/__chunks__/{useTriggerWidth-9528009c.js → useTriggerWidth-e11bf6d6.js} +48 -6
  111. package/package.json +10 -8
  112. package/style.css +2182 -2110
  113. package/utilities/react.d.ts +15 -0
  114. package/utilities/react.d.ts.map +1 -0
  115. package/utilities/react.js +333 -0
  116. package/utilities/react.mjs +333 -0
  117. package/CodeBlock/SyntaxHighlighter.d.ts +0 -5
  118. package/CodeBlock/SyntaxHighlighter.d.ts.map +0 -1
  119. package/CodeBlock/theme.d.ts.map +0 -1
  120. package/CodeBlock/useScrollbar.d.ts.map +0 -1
  121. package/__chunks__/Card-2bd533c4.js +0 -85
  122. package/__chunks__/Card-4ad318ba.mjs +0 -86
  123. package/__chunks__/HorizontalStack-65adb570.mjs +0 -50
  124. package/__chunks__/HorizontalStack-f331bfc7.js +0 -49
  125. package/__chunks__/Icon-1a25dcae.js +0 -39
  126. package/__chunks__/Icon-6eb724b4.mjs +0 -40
  127. package/__chunks__/InputField-cc829736.mjs +0 -268
  128. package/__chunks__/InputField-f5072e37.js +0 -283
  129. package/__chunks__/Notification-8d749bd1.mjs +0 -1533
  130. package/__chunks__/Notification-b7a2c277.js +0 -1548
  131. package/__chunks__/SelectorErrorTooltip-4d820c45.mjs +0 -83
  132. package/__chunks__/SelectorErrorTooltip-b7bb5b9d.js +0 -98
  133. package/__chunks__/Text-2efbe1fe.js +0 -86
  134. package/__chunks__/Text-ec2b8d8a.mjs +0 -87
  135. package/__chunks__/Theme-123ba2c3.mjs +0 -147
  136. package/__chunks__/Theme-57f8311c.js +0 -146
  137. /package/{CodeBlock → CodeSnippet}/theme.d.ts +0 -0
  138. /package/{CodeBlock → CodeSnippet}/useScrollbar.d.ts +0 -0
@@ -0,0 +1,82 @@
1
+ import React from "react";
2
+ import { SnippetLanguage } from "./SyntaxHighlighter";
3
+ export type CodeSnippetProps = Partial<Omit<HTMLDivElement, "children">> & {
4
+ /**
5
+ * `children` is not supported. Use `code` instead.
6
+ */
7
+ children?: never;
8
+ /**
9
+ * The code snippet to be rendered.
10
+ */
11
+ code: string;
12
+ /**
13
+ * The language of the code snippet.
14
+ */
15
+ language: SnippetLanguage;
16
+ /**
17
+ * Constrains the height of code block to a set number of lines.
18
+ */
19
+ maxLines?: number;
20
+ /**
21
+ * Include line numbers in code block.
22
+ */
23
+ showLineNumbers?: boolean;
24
+ };
25
+ /**
26
+ * A display element for readable blocks of code.
27
+ *
28
+ * @remarks
29
+ * Use a Code Block to improve readability of embedded code samples with
30
+ * syntax highlighting and automatic line numbering.
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * <CodeSnippet
35
+ * code={`console.log("Hello world");`}
36
+ * language="javascript"
37
+ * />
38
+ * ```
39
+ *
40
+ * @example
41
+ * _Line numbers:_
42
+ * ```tsx
43
+ * <CodeSnippet
44
+ * code={`console.log("Hello world");`}
45
+ * language="javascript"
46
+ * showLineNumbers
47
+ * />
48
+ * ```
49
+ *
50
+ * @example
51
+ * _Max lines:_
52
+ * ```tsx
53
+ * <CodeSnippet
54
+ * code={`console.log("Hello world");`}
55
+ * language="javascript"
56
+ * maxLines={8}
57
+ * />
58
+ * ```
59
+ */
60
+ export declare const CodeSnippet: React.ForwardRefExoticComponent<Partial<Omit<HTMLDivElement, "children">> & {
61
+ /**
62
+ * `children` is not supported. Use `code` instead.
63
+ */
64
+ children?: undefined;
65
+ /**
66
+ * The code snippet to be rendered.
67
+ */
68
+ code: string;
69
+ /**
70
+ * The language of the code snippet.
71
+ */
72
+ language: SnippetLanguage;
73
+ /**
74
+ * Constrains the height of code block to a set number of lines.
75
+ */
76
+ maxLines?: number | undefined;
77
+ /**
78
+ * Include line numbers in code block.
79
+ */
80
+ showLineNumbers?: boolean | undefined;
81
+ } & React.RefAttributes<HTMLDivElement>>;
82
+ //# sourceMappingURL=CodeSnippet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeSnippet.d.ts","sourceRoot":"","sources":["../../src/CodeSnippet/CodeSnippet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAqB,MAAM,qBAAqB,CAAC;AAOzE,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC,GAAG;IACzE;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,WAAW;IA7DtB;;OAEG;;IAGH;;OAEG;UACG,MAAM;IAEZ;;OAEG;cACO,eAAe;IAEzB;;OAEG;;IAGH;;OAEG;;wCAkEJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { CodeSnippet } from "./CodeSnippet";
3
+ import { SnippetLanguage } from "./SyntaxHighlighter";
4
+ type Story = StoryObj<typeof CodeSnippet>;
5
+ declare const meta: Meta<typeof CodeSnippet>;
6
+ export default meta;
7
+ export declare const Default: Story;
8
+ export declare const LineNumbers: Story;
9
+ export declare const MaxLines: Story;
10
+ export declare function getSnippetEntries(): [SnippetLanguage, string][];
11
+ export declare function getSnippets(): {
12
+ [x: string]: string;
13
+ };
14
+ //# sourceMappingURL=CodeSnippet.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeSnippet.stories.d.ts","sourceRoot":"","sources":["../../src/CodeSnippet/CodeSnippet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAoB,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAoB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAExE,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAM1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CASlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,wBAAgB,iBAAiB,gCAEhC;AAED,wBAAgB,WAAW;;EAoN1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CodeSnippet.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeSnippet.test.d.ts","sourceRoot":"","sources":["../../src/CodeSnippet/CodeSnippet.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
2
+ export type SnippetLanguage = "csharp" | "go" | "java" | "javascript" | "json" | "php" | "python" | "ruby" | "shell";
3
+ declare const SnippetLanguages: Record<string, SnippetLanguage>;
4
+ declare const friendlySnippetLanguageNames: {
5
+ [x: string]: string;
6
+ };
7
+ export { SyntaxHighlighter, SnippetLanguages, friendlySnippetLanguageNames };
8
+ //# sourceMappingURL=SyntaxHighlighter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyntaxHighlighter.d.ts","sourceRoot":"","sources":["../../src/CodeSnippet/SyntaxHighlighter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAY3E,MAAM,MAAM,eAAe,GACvB,QAAQ,GACR,IAAI,GACJ,MAAM,GACN,YAAY,GACZ,MAAM,GACN,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,CAAC;AAEZ,QAAA,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAUrD,CAAC;AAEF,QAAA,MAAM,4BAA4B;;CAUjC,CAAC;AAYF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./CodeSnippet";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CodeSnippet/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const CodeSnippet_index = require("../__chunks__/index-a7b6b429.js");
4
+ require("../__chunks__/import-a1e0f814.js");
5
+ require("react");
6
+ require("../Card/index.js");
7
+ require("../__chunks__/omit-fca26542.js");
8
+ require("../utilities/css.js");
9
+ require("../__chunks__/tokens-ad06cd2c.js");
10
+ require("../__chunks__/overlayscrollbars-react.es-f2a0bcff.js");
11
+ exports.CodeSnippet = CodeSnippet_index.CodeSnippet;
@@ -0,0 +1,11 @@
1
+ import { a } from "../__chunks__/index-72137376.mjs";
2
+ import "../__chunks__/import-19bc38ac.mjs";
3
+ import "react";
4
+ import "../Card/index.mjs";
5
+ import "../__chunks__/omit-f17deb8f.mjs";
6
+ import "../utilities/css.mjs";
7
+ import "../__chunks__/tokens-3c27019b.mjs";
8
+ import "../__chunks__/overlayscrollbars-react.es-7f332a3b.mjs";
9
+ export {
10
+ a as CodeSnippet
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/CodeSnippet/theme.ts"],"names":[],"mappings":";AAIA,wBAAgB,+BAA+B,CAAC,QAAQ,CAAC,EAAE,MAAM,iDAqBhE;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,UAAU,CACxB,MAAM,EAAE,4BAA4B,GACnC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAiMrC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollbar.d.ts","sourceRoot":"","sources":["../../src/CodeSnippet/useScrollbar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAa,MAAM,OAAO,CAAC;AAEpD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,YAAY,EAAE,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,QA0CtD"}
@@ -12,6 +12,54 @@ export type DropdownButtonProps = AriaButtonProps & {
12
12
  /** Content inside button */
13
13
  children?: ReactNode;
14
14
  };
15
+ /**
16
+ * Typically used as a trigger to display a set of options for
17
+ * the user to choose from.
18
+ *
19
+ * @remarks
20
+ * Can be used alongside Easy UI's `<Menu />` as the trigger element.
21
+ * Comes pre-styled with separator and right-aligned arrow icon. Supports
22
+ * multiple colors and an outlined variant. Underlying element is a button.
23
+ *
24
+ * @example
25
+ * _Default:_
26
+ * ```tsx
27
+ * import { DropdownButton } from "@easypost/easy-ui/DropdownButton";
28
+ *
29
+ * export function Component() {
30
+ * return (
31
+ * <DropdownButton onPress={() => alert("clicked")}>Button</DropdownButton>
32
+ * );
33
+ * }
34
+ * ```
35
+ *
36
+ * @example
37
+ * _Outlined variant:_
38
+ * ```tsx
39
+ * import { DropdownButton } from "@easypost/easy-ui/DropdownButton";
40
+ *
41
+ * export function Component() {
42
+ * return (
43
+ * <DropdownButton onPress={() => alert("clicked")} variant="outlined">
44
+ * Button
45
+ * </DropdownButton>
46
+ * );
47
+ * }
48
+ * ```
49
+ * @example
50
+ * _Success color:_
51
+ * ```tsx
52
+ * import { DropdownButton } from "@easypost/easy-ui/DropdownButton";
53
+ *
54
+ * export function Component() {
55
+ * return (
56
+ * <DropdownButton onPress={() => alert("clicked")} color="success">
57
+ * Button
58
+ * </DropdownButton>
59
+ * );
60
+ * }
61
+ * ```
62
+ */
15
63
  export declare const DropdownButton: React.ForwardRefExoticComponent<AriaButtonProps<"button"> & {
16
64
  /** Button color */
17
65
  color?: ButtonColor | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton.d.ts","sourceRoot":"","sources":["../../src/DropdownButton/DropdownButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAOxC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc;IAVzB,mBAAmB;;IAEnB,qBAAqB;;IAErB,sBAAsB;;IAEtB,6BAA6B;eAClB,SAAS;8BAgCrB,CAAC"}
1
+ {"version":3,"file":"DropdownButton.d.ts","sourceRoot":"","sources":["../../src/DropdownButton/DropdownButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAOxC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,cAAc;IA1DzB,mBAAmB;;IAEnB,qBAAqB;;IAErB,sBAAsB;;IAEtB,6BAA6B;eAClB,SAAS;8BAgFrB,CAAC"}
@@ -30,23 +30,23 @@ var __objRest = (source, exclude) => {
30
30
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
31
31
  const ExpandMore400 = require("../__chunks__/ExpandMore400-92646971.js");
32
32
  const React = require("react");
33
- const UnstyledButton = require("../__chunks__/UnstyledButton-5bbb3c5e.js");
34
- const Icon = require("../__chunks__/Icon-1a25dcae.js");
33
+ const UnstyledButton_index = require("../__chunks__/index-5f429325.js");
34
+ const Icon_index = require("../Icon/index.js");
35
35
  const utilities_css = require("../utilities/css.js");
36
36
  require("../__chunks__/import-a1e0f814.js");
37
37
  require("../__chunks__/omit-fca26542.js");
38
- require("../__chunks__/import-9581a2dc.js");
39
- const DropdownButton$1 = "_DropdownButton_wpn09_5";
40
- const colorPrimary = "_colorPrimary_wpn09_26";
41
- const colorSecondary = "_colorSecondary_wpn09_34";
42
- const colorSuccess = "_colorSuccess_wpn09_42";
43
- const colorWarning = "_colorWarning_wpn09_50";
44
- const colorNeutral = "_colorNeutral_wpn09_58";
45
- const colorSupport = "_colorSupport_wpn09_66";
46
- const colorInverse = "_colorInverse_wpn09_72";
47
- const variantOutlined = "_variantOutlined_wpn09_78";
48
- const variantFilled = "_variantFilled_wpn09_109";
49
- const pipeSeparator = "_pipeSeparator_wpn09_136";
38
+ require("../__chunks__/import-26676303.js");
39
+ const DropdownButton$1 = "_DropdownButton_1qxoo_5";
40
+ const colorPrimary = "_colorPrimary_1qxoo_26";
41
+ const colorSecondary = "_colorSecondary_1qxoo_34";
42
+ const colorSuccess = "_colorSuccess_1qxoo_42";
43
+ const colorWarning = "_colorWarning_1qxoo_50";
44
+ const colorNeutral = "_colorNeutral_1qxoo_58";
45
+ const colorSupport = "_colorSupport_1qxoo_66";
46
+ const colorInverse = "_colorInverse_1qxoo_72";
47
+ const variantOutlined = "_variantOutlined_1qxoo_78";
48
+ const variantFilled = "_variantFilled_1qxoo_109";
49
+ const pipeSeparator = "_pipeSeparator_1qxoo_136";
50
50
  const styles = {
51
51
  DropdownButton: DropdownButton$1,
52
52
  colorPrimary,
@@ -62,14 +62,14 @@ const styles = {
62
62
  };
63
63
  const DropdownButton = React.forwardRef((props, inRef) => {
64
64
  const _a = props, { color = "primary", variant = "filled", isDisabled = false, children = "Button" } = _a, restProps = __objRest(_a, ["color", "variant", "isDisabled", "children"]);
65
- UnstyledButton.logWarningIfInvalidColorVariantCombination(color, variant);
66
- return React.createElement(UnstyledButton.UnstyledButton, __spreadValues({
65
+ UnstyledButton_index.logWarningIfInvalidColorVariantCombination(color, variant);
66
+ return React.createElement(UnstyledButton_index.UnstyledButton, __spreadValues({
67
67
  isDisabled,
68
68
  ref: inRef,
69
69
  className: utilities_css.classNames(styles.DropdownButton, styles[utilities_css.variationName("variant", variant)], styles[utilities_css.variationName("color", color)])
70
70
  }, restProps), React.createElement("span", null, children), React.createElement("span", {
71
71
  className: utilities_css.classNames(styles.pipeSeparator)
72
- }), React.createElement(Icon.Icon, {
72
+ }), React.createElement(Icon_index.Icon, {
73
73
  symbol: ExpandMore400.ExpandMore400
74
74
  }));
75
75
  });
@@ -28,23 +28,23 @@ var __objRest = (source, exclude) => {
28
28
  };
29
29
  import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-7c5263a4.mjs";
30
30
  import React__default, { forwardRef } from "react";
31
- import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/UnstyledButton-981cd9af.mjs";
32
- import { I as Icon } from "../__chunks__/Icon-6eb724b4.mjs";
31
+ import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/index-45f05366.mjs";
32
+ import { Icon } from "../Icon/index.mjs";
33
33
  import { classNames, variationName } from "../utilities/css.mjs";
34
- import "../__chunks__/import-fbe7cc7e.mjs";
34
+ import "../__chunks__/import-19bc38ac.mjs";
35
35
  import "../__chunks__/omit-f17deb8f.mjs";
36
- import "../__chunks__/import-a6cadfe8.mjs";
37
- const DropdownButton$1 = "_DropdownButton_wpn09_5";
38
- const colorPrimary = "_colorPrimary_wpn09_26";
39
- const colorSecondary = "_colorSecondary_wpn09_34";
40
- const colorSuccess = "_colorSuccess_wpn09_42";
41
- const colorWarning = "_colorWarning_wpn09_50";
42
- const colorNeutral = "_colorNeutral_wpn09_58";
43
- const colorSupport = "_colorSupport_wpn09_66";
44
- const colorInverse = "_colorInverse_wpn09_72";
45
- const variantOutlined = "_variantOutlined_wpn09_78";
46
- const variantFilled = "_variantFilled_wpn09_109";
47
- const pipeSeparator = "_pipeSeparator_wpn09_136";
36
+ import "../__chunks__/import-3faba3a6.mjs";
37
+ const DropdownButton$1 = "_DropdownButton_1qxoo_5";
38
+ const colorPrimary = "_colorPrimary_1qxoo_26";
39
+ const colorSecondary = "_colorSecondary_1qxoo_34";
40
+ const colorSuccess = "_colorSuccess_1qxoo_42";
41
+ const colorWarning = "_colorWarning_1qxoo_50";
42
+ const colorNeutral = "_colorNeutral_1qxoo_58";
43
+ const colorSupport = "_colorSupport_1qxoo_66";
44
+ const colorInverse = "_colorInverse_1qxoo_72";
45
+ const variantOutlined = "_variantOutlined_1qxoo_78";
46
+ const variantFilled = "_variantFilled_1qxoo_109";
47
+ const pipeSeparator = "_pipeSeparator_1qxoo_136";
48
48
  const styles = {
49
49
  DropdownButton: DropdownButton$1,
50
50
  colorPrimary,
@@ -47,7 +47,7 @@ function getColumnValue(columns) {
47
47
  }
48
48
  }).join(" ");
49
49
  }
50
- const HorizontalGrid$1 = "_HorizontalGrid_fynrb_5";
50
+ const HorizontalGrid$1 = "_HorizontalGrid_unqrd_5";
51
51
  const styles = {
52
52
  HorizontalGrid: HorizontalGrid$1
53
53
  };
@@ -45,7 +45,7 @@ function getColumnValue(columns) {
45
45
  }
46
46
  }).join(" ");
47
47
  }
48
- const HorizontalGrid$1 = "_HorizontalGrid_fynrb_5";
48
+ const HorizontalGrid$1 = "_HorizontalGrid_unqrd_5";
49
49
  const styles = {
50
50
  HorizontalGrid: HorizontalGrid$1
51
51
  };
@@ -1,6 +1,50 @@
1
1
  "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
2
33
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const HorizontalStack = require("../__chunks__/HorizontalStack-f331bfc7.js");
4
- require("react");
5
- require("../utilities/css.js");
6
- exports.HorizontalStack = HorizontalStack.HorizontalStack;
34
+ const React = require("react");
35
+ const utilities_css = require("../utilities/css.js");
36
+ const HorizontalStack$1 = "_HorizontalStack_1x1v6_5";
37
+ const styles = {
38
+ HorizontalStack: HorizontalStack$1
39
+ };
40
+ const HorizontalStack = React.forwardRef((props, ref) => {
41
+ const _a = props, { as: As = "div", align, blockAlign, gap, wrap = true, children, inline } = _a, restProps = __objRest(_a, ["as", "align", "blockAlign", "gap", "wrap", "children", "inline"]);
42
+ const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, utilities_css.getResponsiveDesignToken("horizontal-stack", "gap", "space", gap)), utilities_css.getComponentToken("horizontal-stack", "align", align)), utilities_css.getComponentToken("horizontal-stack", "block-align", blockAlign)), utilities_css.getComponentToken("horizontal-stack", "wrap", wrap ? "wrap" : "nowrap")), utilities_css.getComponentToken("horizontal-stack", "display", inline ? "inline-flex" : "flex"));
43
+ return React.createElement(As, __spreadProps(__spreadValues({}, restProps), {
44
+ className: styles.HorizontalStack,
45
+ style,
46
+ ref
47
+ }), children);
48
+ });
49
+ HorizontalStack.displayName = "HorizontalStack";
50
+ exports.HorizontalStack = HorizontalStack;
@@ -1,6 +1,50 @@
1
- import { H } from "../__chunks__/HorizontalStack-65adb570.mjs";
2
- import "react";
3
- import "../utilities/css.mjs";
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import React__default, { forwardRef } from "react";
33
+ import { getResponsiveDesignToken, getComponentToken } from "../utilities/css.mjs";
34
+ const HorizontalStack$1 = "_HorizontalStack_1x1v6_5";
35
+ const styles = {
36
+ HorizontalStack: HorizontalStack$1
37
+ };
38
+ const HorizontalStack = forwardRef((props, ref) => {
39
+ const _a = props, { as: As = "div", align, blockAlign, gap, wrap = true, children, inline } = _a, restProps = __objRest(_a, ["as", "align", "blockAlign", "gap", "wrap", "children", "inline"]);
40
+ const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, getResponsiveDesignToken("horizontal-stack", "gap", "space", gap)), getComponentToken("horizontal-stack", "align", align)), getComponentToken("horizontal-stack", "block-align", blockAlign)), getComponentToken("horizontal-stack", "wrap", wrap ? "wrap" : "nowrap")), getComponentToken("horizontal-stack", "display", inline ? "inline-flex" : "flex"));
41
+ return React__default.createElement(As, __spreadProps(__spreadValues({}, restProps), {
42
+ className: styles.HorizontalStack,
43
+ style,
44
+ ref
45
+ }), children);
46
+ });
47
+ HorizontalStack.displayName = "HorizontalStack";
4
48
  export {
5
- H as HorizontalStack
49
+ HorizontalStack
6
50
  };
package/Icon/Icon.d.ts CHANGED
@@ -13,5 +13,56 @@ export type IconProps = {
13
13
  /** Description of icon for informative symbols */
14
14
  accessibilityLabel?: string;
15
15
  };
16
+ /**
17
+ * Icons are helpful and familiar visual symbols used to communicate
18
+ * ideas and represent objects and actions.
19
+ *
20
+ * @remarks
21
+ * Can accept any Easy UI icon via `symbol` prop. Supports customizable
22
+ * responsive sizing, theme and design token colors, and an accessibility
23
+ * label for informative symbols.
24
+ *
25
+ * @example
26
+ * _Default:_
27
+ * ```tsx
28
+ * import { Icon } from "@easypost/easy-ui/Icon";
29
+ * import AddIcon from "@easypost/easy-ui-icons/Add";
30
+ *
31
+ * export function Component() {
32
+ * return <Icon symbol={AddIcon} />;
33
+ * }
34
+ * ```
35
+ *
36
+ * @example
37
+ * _With accessibility label:_
38
+ * ```tsx
39
+ * import { Icon } from "@easypost/easy-ui/Icon";
40
+ * import AddIcon from "@easypost/easy-ui-icons/Add";
41
+ *
42
+ * export function Component() {
43
+ * return <Icon symbol={AddIcon} accessibilityLabel="Add item" />;
44
+ * }
45
+ * ```
46
+ * @example
47
+ * _With color and size:_
48
+ * ```tsx
49
+ * import { Icon } from "@easypost/easy-ui/Icon";
50
+ * import AddIcon from "@easypost/easy-ui-icons/Add";
51
+ *
52
+ * export function Component() {
53
+ * return <Icon symbol={AddIcon} color="success.inverse" size="sm" />;
54
+ * }
55
+ * ```
56
+ * @example
57
+ * _With responsive sizing:_
58
+ * ```tsx
59
+ * import { Icon } from "@easypost/easy-ui/Icon";
60
+ * import AddIcon from "@easypost/easy-ui-icons/Add";
61
+ *
62
+ * export function Component() {
63
+ * return <Icon symbol={AddIcon} size={{ sm: "sm", md: "md", lg: "lg" }} />;
64
+ * }
65
+ * ```
66
+ */
16
67
  export declare function Icon({ symbol: Symbol, size, color, accessibilityLabel, }: IconProps): React.JSX.Element;
17
68
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EAGL,cAAc,EACf,MAAM,kBAAkB,CAAC;AAI1B,MAAM,MAAM,QAAQ,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG;IACtB,0DAA0D;IAC1D,MAAM,EAAE,UAAU,CAAC;IACnB,uBAAuB;IACvB,IAAI,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAChC,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,IAAI,CAAC,EACnB,MAAM,EAAE,MAAM,EACd,IAAW,EACX,KAAK,EACL,kBAAkB,GACnB,EAAE,SAAS,qBAgBX"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EAGL,cAAc,EACf,MAAM,kBAAkB,CAAC;AAI1B,MAAM,MAAM,QAAQ,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG;IACtB,0DAA0D;IAC1D,MAAM,EAAE,UAAU,CAAC;IACnB,uBAAuB;IACvB,IAAI,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAChC,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAgB,IAAI,CAAC,EACnB,MAAM,EAAE,MAAM,EACd,IAAW,EACX,KAAK,EACL,kBAAkB,GACnB,EAAE,SAAS,qBAgBX"}
package/Icon/index.js CHANGED
@@ -1,6 +1,40 @@
1
1
  "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __spreadValues = (a, b) => {
8
+ for (var prop in b || (b = {}))
9
+ if (__hasOwnProp.call(b, prop))
10
+ __defNormalProp(a, prop, b[prop]);
11
+ if (__getOwnPropSymbols)
12
+ for (var prop of __getOwnPropSymbols(b)) {
13
+ if (__propIsEnum.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ }
16
+ return a;
17
+ };
2
18
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Icon = require("../__chunks__/Icon-1a25dcae.js");
4
- require("react");
5
- require("../utilities/css.js");
6
- exports.Icon = Icon.Icon;
19
+ const React = require("react");
20
+ const utilities_css = require("../utilities/css.js");
21
+ const Icon$1 = "_Icon_1yhzm_5";
22
+ const Svg = "_Svg_1yhzm_54";
23
+ const styles = {
24
+ Icon: Icon$1,
25
+ Svg
26
+ };
27
+ function Icon({ symbol: Symbol2, size = "md", color, accessibilityLabel }) {
28
+ const style = __spreadValues(__spreadValues({}, utilities_css.getComponentThemeToken("icon", "color", "color.text", color)), utilities_css.getResponsiveDesignToken("icon", "size", "size.icon", size));
29
+ return React.createElement("span", {
30
+ className: styles.Icon,
31
+ style
32
+ }, React.createElement(Symbol2, {
33
+ className: styles.Svg,
34
+ focusable: "false",
35
+ role: "img",
36
+ title: accessibilityLabel,
37
+ "aria-hidden": !accessibilityLabel ? "true" : void 0
38
+ }));
39
+ }
40
+ exports.Icon = Icon;
package/Icon/index.mjs CHANGED
@@ -1,6 +1,40 @@
1
- import { I } from "../__chunks__/Icon-6eb724b4.mjs";
2
- import "react";
3
- import "../utilities/css.mjs";
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
17
+ import React__default from "react";
18
+ import { getComponentThemeToken, getResponsiveDesignToken } from "../utilities/css.mjs";
19
+ const Icon$1 = "_Icon_1yhzm_5";
20
+ const Svg = "_Svg_1yhzm_54";
21
+ const styles = {
22
+ Icon: Icon$1,
23
+ Svg
24
+ };
25
+ function Icon({ symbol: Symbol2, size = "md", color, accessibilityLabel }) {
26
+ const style = __spreadValues(__spreadValues({}, getComponentThemeToken("icon", "color", "color.text", color)), getResponsiveDesignToken("icon", "size", "size.icon", size));
27
+ return React__default.createElement("span", {
28
+ className: styles.Icon,
29
+ style
30
+ }, React__default.createElement(Symbol2, {
31
+ className: styles.Svg,
32
+ focusable: "false",
33
+ role: "img",
34
+ title: accessibilityLabel,
35
+ "aria-hidden": !accessibilityLabel ? "true" : void 0
36
+ }));
37
+ }
4
38
  export {
5
- I as Icon
39
+ Icon
6
40
  };