@harpercollins/harpercollins-design-system 1.29.2 → 1.29.3

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 (93) hide show
  1. package/dist/cjs/components/data-display/ChipIcon/ChipIcon.cjs +2 -2
  2. package/dist/cjs/components/data-display/Heading/Heading.cjs +1 -1
  3. package/dist/cjs/components/data-display/Icon/Icon.cjs +3 -3
  4. package/dist/cjs/components/data-display/ReadMore/ReadMore.cjs +4 -4
  5. package/dist/cjs/components/data-display/StatusIcon/StatusIcon.cjs +2 -2
  6. package/dist/cjs/components/data-display/Table/FilterChipsSection.cjs +2 -2
  7. package/dist/cjs/components/data-display/Table/StickyHorizontalScrollbar.cjs +3 -3
  8. package/dist/cjs/components/data-display/Table/Table.styles.cjs +5 -5
  9. package/dist/cjs/components/data-display/Table/TableToolbar.cjs +3 -3
  10. package/dist/cjs/components/data-display/Table/filters/FilterComponents.cjs +4 -4
  11. package/dist/cjs/components/data-display/TextBlock/TextBlock.cjs +7 -7
  12. package/dist/cjs/components/data-display/Tooltip/Tooltip.cjs +2 -2
  13. package/dist/cjs/components/feedback/LoadingSpinner/LoadingSpinner.cjs +3 -3
  14. package/dist/cjs/components/feedback/ProgressBar/ProgressBar.cjs +4 -4
  15. package/dist/cjs/components/feedback/ToastMessages/ToastMessages.cjs +4 -4
  16. package/dist/cjs/components/global/AppBar/AppBar.cjs +8 -8
  17. package/dist/cjs/components/global/AppBar/NavigationProgress.cjs +4 -4
  18. package/dist/cjs/components/global/ErrorFallback/FullPageErrorFallback.cjs +3 -3
  19. package/dist/cjs/components/global/Footer/Footer.cjs +3 -3
  20. package/dist/cjs/components/global/Layout/Layout.cjs +3 -3
  21. package/dist/cjs/components/global/Logo/Logo.cjs +4 -4
  22. package/dist/cjs/components/global/Logo/LogoMini.cjs +2 -2
  23. package/dist/cjs/components/inputs/Autocomplete/AutocompleteSelectMultiple/AutocompleteSelectMultiple.cjs +2 -2
  24. package/dist/cjs/components/inputs/DatePicker/DatePicker.cjs +2 -2
  25. package/dist/cjs/components/inputs/DateTimeInput/DateTimeInput.cjs +4 -4
  26. package/dist/cjs/components/inputs/Input/Input.cjs +2 -2
  27. package/dist/cjs/components/navigation/Breadcrumb/Breadcrumb.cjs +4 -4
  28. package/dist/cjs/components/navigation/Drawer/Drawer.cjs +18 -18
  29. package/dist/cjs/components/navigation/Menu/MenuHeading.cjs +1 -1
  30. package/dist/cjs/components/navigation/Menu/MenuItem.cjs +1 -1
  31. package/dist/cjs/components/navigation/PrimaryNavigation/PrimaryNavigation.cjs +3 -3
  32. package/dist/cjs/components/surfaces/Accordion/Accordion.cjs +1 -1
  33. package/dist/cjs/components/surfaces/AccordionLegacy/Accordion.cjs +5 -5
  34. package/dist/cjs/index.cjs +1 -1
  35. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemButton/ListItemButton.cjs +1 -1
  36. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuItem/MenuItem.cjs +1 -1
  37. package/dist/esm/components/data-display/ChipIcon/ChipIcon.js +1 -1
  38. package/dist/esm/components/data-display/Heading/Heading.js +1 -1
  39. package/dist/esm/components/data-display/Icon/Icon.js +4 -4
  40. package/dist/esm/components/data-display/ReadMore/ReadMore.js +1 -1
  41. package/dist/esm/components/data-display/StatusIcon/StatusIcon.js +5 -5
  42. package/dist/esm/components/data-display/Table/FilterChipsSection.js +2 -2
  43. package/dist/esm/components/data-display/Table/StickyHorizontalScrollbar.js +1 -1
  44. package/dist/esm/components/data-display/Table/Table.styles.js +1 -1
  45. package/dist/esm/components/data-display/Table/TableToolbar.js +1 -1
  46. package/dist/esm/components/data-display/Table/filters/FilterComponents.js +2 -2
  47. package/dist/esm/components/data-display/TextBlock/TextBlock.js +4 -4
  48. package/dist/esm/components/data-display/Tooltip/Tooltip.js +3 -3
  49. package/dist/esm/components/feedback/LoadingSpinner/LoadingSpinner.js +5 -5
  50. package/dist/esm/components/feedback/ProgressBar/ProgressBar.js +3 -3
  51. package/dist/esm/components/feedback/ToastMessages/ToastMessages.js +1 -1
  52. package/dist/esm/components/global/AppBar/AppBar.js +8 -8
  53. package/dist/esm/components/global/AppBar/NavigationProgress.js +1 -1
  54. package/dist/esm/components/global/ErrorFallback/FullPageErrorFallback.js +1 -1
  55. package/dist/esm/components/global/Footer/Footer.js +1 -1
  56. package/dist/esm/components/global/Layout/Layout.js +1 -1
  57. package/dist/esm/components/global/Logo/Logo.js +9 -9
  58. package/dist/esm/components/global/Logo/LogoMini.js +7 -7
  59. package/dist/esm/components/inputs/Autocomplete/AutocompleteSelectMultiple/AutocompleteSelectMultiple.js +1 -1
  60. package/dist/esm/components/inputs/DatePicker/DatePicker.js +1 -1
  61. package/dist/esm/components/inputs/DateTimeInput/DateTimeInput.js +1 -1
  62. package/dist/esm/components/inputs/Input/Input.js +1 -1
  63. package/dist/esm/components/navigation/Breadcrumb/Breadcrumb.js +1 -1
  64. package/dist/esm/components/navigation/Drawer/Drawer.js +16 -16
  65. package/dist/esm/components/navigation/Menu/MenuHeading.js +1 -1
  66. package/dist/esm/components/navigation/Menu/MenuItem.js +1 -1
  67. package/dist/esm/components/navigation/PrimaryNavigation/PrimaryNavigation.js +27 -27
  68. package/dist/esm/components/surfaces/Accordion/Accordion.js +3 -3
  69. package/dist/esm/components/surfaces/AccordionLegacy/Accordion.js +1 -1
  70. package/dist/esm/index.js +195 -194
  71. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Accordion/accordionClasses.js +3 -3
  72. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/AccordionDetails/accordionDetailsClasses.js +3 -3
  73. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItem/listItemClasses.js +3 -3
  74. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemButton/ListItemButton.js +1 -1
  75. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemButton/listItemButtonClasses.js +3 -3
  76. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuItem/MenuItem.js +12 -12
  77. package/package.json +6 -3
  78. package/dist/cjs/node_modules/.pnpm/styled-components@6.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.cjs +0 -82
  79. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.cjs +0 -1
  80. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Middleware.cjs +0 -1
  81. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.cjs +0 -1
  82. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Prefixer.cjs +0 -1
  83. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.cjs +0 -1
  84. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.cjs +0 -1
  85. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.cjs +0 -1
  86. package/dist/esm/node_modules/.pnpm/styled-components@6.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js +0 -721
  87. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.js +0 -13
  88. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Middleware.js +0 -49
  89. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js +0 -136
  90. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Prefixer.js +0 -189
  91. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js +0 -28
  92. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js +0 -147
  93. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.js +0 -56
@@ -1,8 +1,8 @@
1
- import { generateUtilityClass as i, generateUtilityClasses as e } from "../className/index.js";
1
+ import { generateUtilityClasses as i, generateUtilityClass as e } from "../className/index.js";
2
2
  function r(t) {
3
- return i("MuiListItem", t);
3
+ return e("MuiListItem", t);
4
4
  }
5
- const a = e("MuiListItem", ["root", "startAction", "endAction", "nested", "nesting", "sticky", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
5
+ const a = i("MuiListItem", ["root", "startAction", "endAction", "nested", "nesting", "sticky", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
6
6
  export {
7
7
  a as default,
8
8
  r as getListItemUtilityClass
@@ -9,12 +9,12 @@ import H from "./ListItemButtonOrientationContext.js";
9
9
  import F from "../List/RowListContext.js";
10
10
  import E from "../utils/useSlot.js";
11
11
  import { jsx as x } from "react/jsx-runtime";
12
+ import y from "../styles/styled.js";
12
13
  import J from "../styles/useThemeProps.js";
13
14
  import U from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
14
15
  import { useButton as q } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useButton/useButton.js";
15
16
  import L from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/capitalize/capitalize.js";
16
17
  import Y from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
17
- import y from "../styles/styled.js";
18
18
  const G = ["children", "className", "action", "component", "orientation", "role", "selected", "color", "variant", "slots", "slotProps"], K = (e) => {
19
19
  const {
20
20
  color: o,
@@ -1,8 +1,8 @@
1
- import { generateUtilityClass as o, generateUtilityClasses as i } from "../className/index.js";
1
+ import { generateUtilityClasses as o, generateUtilityClass as i } from "../className/index.js";
2
2
  function r(t) {
3
- return o("MuiListItemButton", t);
3
+ return i("MuiListItemButton", t);
4
4
  }
5
- const a = i("MuiListItemButton", ["root", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "focusVisible", "disabled", "selected", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
5
+ const a = o("MuiListItemButton", ["root", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "focusVisible", "disabled", "selected", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
6
6
  export {
7
7
  a as default,
8
8
  r as getListItemButtonUtilityClass
@@ -9,13 +9,13 @@ import B from "../List/RowListContext.js";
9
9
  import E from "../ListItemButton/ListItemButtonOrientationContext.js";
10
10
  import J from "../utils/useSlot.js";
11
11
  import { jsx as m } from "react/jsx-runtime";
12
- import O from "../styles/styled.js";
13
- import { useMenuItemContextStabilizer as U } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useMenuItem/useMenuItemContextStabilizer.js";
14
- import { ListContext as $ } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useList/ListContext.js";
15
- import D from "../styles/useThemeProps.js";
16
- import { useMenuItem as F } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useMenuItem/useMenuItem.js";
12
+ import { useMenuItemContextStabilizer as O } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useMenuItem/useMenuItemContextStabilizer.js";
13
+ import { ListContext as U } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useList/ListContext.js";
14
+ import $ from "../styles/useThemeProps.js";
15
+ import { useMenuItem as D } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useMenuItem/useMenuItem.js";
17
16
  import f from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/capitalize/capitalize.js";
18
- import W from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
17
+ import F from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
18
+ import W from "../styles/styled.js";
19
19
  const k = ["children", "disabled", "component", "selected", "color", "orientation", "variant", "slots", "slotProps", "id"], q = (s) => {
20
20
  const {
21
21
  focusVisible: o,
@@ -26,13 +26,13 @@ const k = ["children", "disabled", "component", "selected", "color", "orientatio
26
26
  } = s, a = {
27
27
  root: ["root", o && "focusVisible", e && "disabled", t && "selected", r && `color${f(r)}`, i && `variant${f(i)}`]
28
28
  };
29
- return W(a, j, {});
30
- }, A = O(z, {
29
+ return F(a, j, {});
30
+ }, A = W(z, {
31
31
  name: "JoyMenuItem",
32
32
  slot: "Root",
33
33
  overridesResolver: (s, o) => o.root
34
34
  })({}), G = /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef(function(o, e) {
35
- const t = D({
35
+ const t = $({
36
36
  props: o,
37
37
  name: "JoyMenuItem"
38
38
  }), r = l.useContext(B), {
@@ -53,7 +53,7 @@ const k = ["children", "disabled", "component", "selected", "color", "orientatio
53
53
  getRootProps: y,
54
54
  disabled: S,
55
55
  focusVisible: w
56
- } = F({
56
+ } = D({
57
57
  id: C,
58
58
  disabled: a,
59
59
  rootRef: e
@@ -88,8 +88,8 @@ const k = ["children", "disabled", "component", "selected", "color", "orientatio
88
88
  const {
89
89
  contextValue: t,
90
90
  id: r
91
- } = U(o.id);
92
- return /* @__PURE__ */ m($.Provider, {
91
+ } = O(o.id);
92
+ return /* @__PURE__ */ m(U.Provider, {
93
93
  value: t,
94
94
  children: /* @__PURE__ */ m(G, n({}, o, {
95
95
  id: r,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.29.2",
3
+ "version": "1.29.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"
@@ -12,13 +12,15 @@
12
12
  "main": "dist/cjs/index.cjs",
13
13
  "module": "dist/esm/index.js",
14
14
  "types": "dist/index.d.ts",
15
+ "style": "dist/esm/assets/harpercollins-design-system.css",
15
16
  "type": "module",
16
17
  "exports": {
17
18
  ".": {
18
19
  "import": "./dist/esm/index.js",
19
20
  "require": "./dist/cjs/index.cjs",
20
21
  "types": "./dist/index.d.ts"
21
- }
22
+ },
23
+ "./styles.css": "./dist/esm/assets/harpercollins-design-system.css"
22
24
  },
23
25
  "files": [
24
26
  "dist/**/*",
@@ -104,7 +106,8 @@
104
106
  },
105
107
  "peerDependencies": {
106
108
  "react": "^18.2.0",
107
- "react-dom": "^18.2.0"
109
+ "react-dom": "^18.2.0",
110
+ "styled-components": "^6.1.11"
108
111
  },
109
112
  "browserslist": {
110
113
  "production": [
@@ -1,82 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const yt=require("../../../../@emotion_is-prop-valid@1.4.0/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.cjs"),C=require("react"),gt=require("../../../../stylis@4.3.6/node_modules/stylis/src/Enum.cjs"),fe=require("../../../../stylis@4.3.6/node_modules/stylis/src/Middleware.cjs"),ze=require("../../../../stylis@4.3.6/node_modules/stylis/src/Serializer.cjs"),vt=require("../../../../stylis@4.3.6/node_modules/stylis/src/Parser.cjs");var me,ye;const F=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xe="active",Ze="data-styled-version",Q="6.4.1",Ie=`/*!sc*/
2
- `,Z=typeof window<"u"&&typeof document<"u";function Ve(e){if(typeof process<"u"&&process.env!==void 0){const t=process.env[e];if(t!==void 0&&t!=="")return t!=="false"}}const St=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(ye=(me=Ve("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&me!==void 0?me:Ve("SC_DISABLE_SPEEDY"))!==null&&ye!==void 0?ye:typeof process>"u"||process.env===void 0||process.env.NODE_ENV!=="production"),Qe="sc-keyframes-",bt=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
3
-
4
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
5
-
6
- - Are you trying to reuse it across renders?
7
- - Are you accidentally calling collectStyles twice?
8
-
9
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
10
-
11
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
12
-
13
- - Does this error occur on the client and is your target falsy?
14
- - Does this error occur on the server and is the sheet falsy?
15
-
16
- `,5:`The clone method cannot be used on the client!
17
-
18
- - Are you running in a client-like environment on the server?
19
- - Are you trying to run SSR on the client?
20
-
21
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
22
-
23
- - Are you using a custom target that isn't mounted?
24
- - Does your document not have a valid head element?
25
- - Have you accidentally removed a style tag manually?
26
-
27
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
28
-
29
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
30
-
31
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
32
-
33
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.
34
-
35
- `,14:`ThemeProvider: "theme" prop is required.
36
-
37
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
38
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
39
- as for instance in your render method then you may be running into this limitation.
40
-
41
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
42
- Has styled-components' style tag been unmounted or altered by another script?
43
-
44
- `,18:`Accessing \`useTheme\` hook outside of a \`<ThemeProvider>\` element.
45
-
46
- \`\`\`jsx
47
- import { useTheme } from 'styled-components';
48
- export function StyledCompoent({ children }) {
49
- const theme = useTheme();
50
- return <div style={{ width: theme.sizes.full }}>{children}</div>;
51
- }
52
-
53
- import { StyledComponent } from './StyledComponent';
54
- import { theme } from './theme';
55
- export function App() {
56
- return (
57
- <ThemeProvider theme={theme}>
58
- <StyledComponent />
59
- </ThemeProvider>
60
- );
61
- }
62
- \`\`\`
63
-
64
- If you need access to the theme in an uncertain composition scenario, \`React.useContext(ThemeContext)\` will not emit an error if there is no \`ThemeProvider\` ancestor.
65
- `}:{};function Y(e,...t){return process.env.NODE_ENV==="production"?new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`):new Error((function(...n){let o=n[0];const r=[];for(let s=1,a=n.length;s<a;s+=1)r.push(n[s]);return r.forEach(s=>{o=o.replace(/%[a-z]/,s)}),o})(bt[e],...t).trim())}const wt=1<<30;let re=new Map,ae=new Map,se=1;const K=e=>{if(re.has(e))return re.get(e);for(;ae.has(se);)se++;const t=se++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>wt))throw Y(16,`${t}`);return re.set(e,t),ae.set(t,e),t},Nt=e=>ae.get(e),Ct=(e,t)=>{se=t+1,re.set(e,t),ae.set(t,e)},Ge=/invalid hook call/i,ne=new Set,At=(e,t)=>{if(process.env.NODE_ENV!=="production"){const n=`The component ${e}${t?` with the id of "${t}"`:""} has been created dynamically.
66
- You may see this warning because you've called styled inside another component.
67
- To resolve this only create new StyledComponents outside of any render method and function component.
68
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
69
- `,o=console.error;try{let r=!0;console.error=(s,...a)=>{Ge.test(s)?(r=!1,ne.delete(n)):o(s,...a)},typeof C.useState=="function"&&C.useState(null),r&&!ne.has(n)&&(console.warn(n),ne.add(n))}catch(r){Ge.test(r.message)&&ne.delete(n)}finally{console.error=o}}},Pe=Object.freeze([]),H=Object.freeze({});function Ot(e,t,n=H){return e.theme!==n.theme&&e.theme||t||n.theme}const Et=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_t=/(^-|-$)/g;function et(e){return e.replace(Et,"-").replace(_t,"")}const It=/(a)(d)/gi,Fe=e=>String.fromCharCode(e+(e>25?39:97));function je(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Fe(t%52)+n;return(Fe(t%52)+n).replace(It,"$1-$2")}const we=5381,V=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},tt=e=>V(we,e);function nt(e){return je(tt(e)>>>0)}function ke(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ie(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}function Pt(e){return ie(e)?`styled.${e}`:`Styled(${ke(e)})`}const ot=Symbol.for("react.memo"),jt=Symbol.for("react.forward_ref"),kt={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xt={[jt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ot]:rt};function qe(e){return("type"in(t=e)&&t.type.$$typeof)===ot?rt:"$$typeof"in e?xt[e.$$typeof]:kt;var t}const Tt=Object.defineProperty,$t=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,Mt=Object.getOwnPropertyDescriptor,zt=Object.getPrototypeOf,Vt=Object.prototype;function st(e,t,n){if(typeof t!="string"){const o=zt(t);o&&o!==Vt&&st(e,o,n);const r=$t(t).concat(Dt(t)),s=qe(e),a=qe(t);for(let c=0;c<r.length;++c){const i=r[c];if(!(i in Rt||n&&n[i]||a&&i in a||s&&i in s)){const d=Mt(t,i);try{Tt(e,i,d)}catch{}}}}return e}function ce(e){return typeof e=="function"}function Re(e){return typeof e=="object"&&"styledComponentId"in e}function X(e,t){return e&&t?e+" "+t:e||t||""}function Ne(e,t){return e.join("")}function q(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ce(e,t,n=!1){if(!n&&!q(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let o=0;o<t.length;o++)e[o]=Ce(e[o],t[o]);else if(q(t))for(const o in t)e[o]=Ce(e[o],t[o]);return e}function xe(e,t){Object.defineProperty(e,"toString",{value:t})}const Gt=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const r=this.groupSizes,s=r.length;let a=s;for(;e>=a;)if(a<<=1,a<0)throw Y(16,`${e}`);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(let c=s;c<a;c++)this.groupSizes[c]=0}let n=this.indexOfGroup(e+1),o=0;for(let r=0,s=t.length;r<s;r++)this.tag.insertRule(n,t[r])&&(this.groupSizes[e]++,n++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(let r=n;r<o;r++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||this.groupSizes[e]===0)return t;const n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n;for(let s=o;s<r;s++)t+=this.tag.getRule(s)+Ie;return t}},Ft=`style[${F}][${Ze}="${Q}"]`,qt=new RegExp(`^${F}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Be=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,Ae=e=>{if(!e)return document;if(Be(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Be(t))return t}return document},Bt=(e,t,n)=>{const o=n.split(",");let r;for(let s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},Lt=(e,t)=>{var n;const o=((n=t.textContent)!==null&&n!==void 0?n:"").split(Ie),r=[];for(let s=0,a=o.length;s<a;s++){const c=o[s].trim();if(!c)continue;const i=c.match(qt);if(i){const d=0|parseInt(i[1],10),h=i[2];d!==0&&(Ct(h,d),Bt(e,h,i[3]),e.getTag().insertRules(d,r)),r.length=0}else r.push(c)}},ge=e=>{const t=Ae(e.options.target).querySelectorAll(Ft);for(let n=0,o=t.length;n<o;n++){const r=t[n];r&&r.getAttribute(F)!==Xe&&(Lt(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let J=!1;function Wt(){if(J!==!1)return J;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return J=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return J=t.getAttribute("content")||void 0}return J=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const it=(e,t)=>{const n=document.head,o=e||n,r=document.createElement("style"),s=(i=>{const d=Array.from(i.querySelectorAll(`style[${F}]`));return d[d.length-1]})(o),a=s!==void 0?s.nextSibling:null;r.setAttribute(F,Xe),r.setAttribute(Ze,Q);const c=t||Wt();return c&&r.setAttribute("nonce",c),o.insertBefore(r,a),r},Ht=class{constructor(e,t){this.element=it(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(n=>{var o;if(n.sheet)return n.sheet;const r=(o=n.getRootNode().styleSheets)!==null&&o!==void 0?o:document.styleSheets;for(let s=0,a=r.length;s<a;s++){const c=r[s];if(c.ownerNode===n)return c}throw Y(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Yt=class{constructor(e,t){this.element=it(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Le=Z;const Ut={isServer:!Z,useCSSOMInjection:!St};class le{static registerId(t){return K(t)}constructor(t=H,n={},o){this.options=Object.assign(Object.assign({},Ut),t),this.gs=n,this.keyframeIds=new Set,this.names=new Map(o),this.server=!!t.isServer,!this.server&&Z&&Le&&(Le=!1,ge(this)),xe(this,()=>(r=>{const s=r.getTag(),{length:a}=s;let c="";for(let i=0;i<a;i++){const d=Nt(i);if(d===void 0)continue;const h=r.names.get(d);if(h===void 0||!h.size)continue;const m=s.getGroup(i);if(m.length===0)continue;const f=F+".g"+i+'[id="'+d+'"]';let I="";for(const p of h)p.length>0&&(I+=p+",");c+=m+f+'{content:"'+I+'"}'+Ie}return c})(this))}rehydrate(){!this.server&&Z&&ge(this)}reconstructWithOptions(t,n=!0){const o=new le(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return o.keyframeIds=new Set(this.keyframeIds),!this.server&&Z&&t.target!==this.options.target&&Ae(this.options.target)!==Ae(t.target)&&ge(o),o}allocateGSInstance(t){return this.gs[t]=(this.gs[t]||0)+1}getTag(){return this.tag||(this.tag=(t=(({useCSSOMInjection:n,target:o,nonce:r})=>n?new Ht(o,r):new Yt(o,r))(this.options),new Gt(t)));var t}hasNameForId(t,n){var o,r;return(r=(o=this.names.get(t))===null||o===void 0?void 0:o.has(n))!==null&&r!==void 0&&r}registerName(t,n){K(t),t.startsWith(Qe)&&this.keyframeIds.add(t);const o=this.names.get(t);o?o.add(n):this.names.set(t,new Set([n]))}insertRules(t,n,o){this.registerName(t,n),this.getTag().insertRules(K(t),o)}clearNames(t){this.names.has(t)&&this.names.get(t).clear()}clearRules(t){this.getTag().clearGroup(K(t)),this.clearNames(t)}clearTag(){this.tag=void 0}}const at=new WeakSet,Jt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Kt(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Jt||e.startsWith("--")?String(t).trim():t+"px"}const z=47;function We(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t="";for(let n=0;n<e.length;n++){const o=e.charCodeAt(n);t+=o>=65&&o<=90?"-"+String.fromCharCode(o+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const ct=Symbol.for("sc-keyframes");function Oe(e){return typeof e=="object"&&e!==null&&ct in e}function lt(e){return ce(e)&&!(e.prototype&&e.prototype.isReactComponent)}const ut=e=>e==null||e===!1||e==="",Xt=Symbol.for("react.client.reference");function He(e){return e.$$typeof===Xt}function Ye(e){const t=e.$$id,n=(t&&t.includes("#")?t.split("#").pop():t)||e.name||"unknown";console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function dt(e,t){for(const n in e){const o=e[n];e.hasOwnProperty(n)&&!ut(o)&&(Array.isArray(o)&&at.has(o)||ce(o)?t.push(We(n)+":",o,";"):q(o)?(t.push(n+" {"),dt(o,t),t.push("}")):t.push(We(n)+": "+Kt(n,o)+";"))}}function G(e,t,n,o,r=[]){if(ut(e))return r;const s=typeof e;if(s==="string")return r.push(e),r;if(s==="function"){if(He(e))return process.env.NODE_ENV!=="production"&&Ye(e),r;if(lt(e)&&t){const a=e(t);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||Oe(a)||q(a)||a===null||console.error(`${ke(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),G(a,t,n,o,r)}return r.push(e),r}if(Array.isArray(e)){for(let a=0;a<e.length;a++)G(e[a],t,n,o,r);return r}return Re(e)?(r.push(`.${e.styledComponentId}`),r):Oe(e)?(n?(e.inject(n,o),r.push(e.getName(o))):r.push(e),r):He(e)?(process.env.NODE_ENV!=="production"&&Ye(e),r):q(e)?(dt(e,r),r):(r.push(e.toString()),r)}const Zt=tt(Q);class Qt{constructor(t,n,o){this.rules=t,this.componentId=n,this.baseHash=V(Zt,n),this.baseStyle=o,le.registerId(n)}generateAndInjectStyles(t,n,o){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,o):"";{let s="";for(let a=0;a<this.rules.length;a++){const c=this.rules[a];if(typeof c=="string")s+=c;else if(c)if(lt(c)){const i=c(t);typeof i=="string"?s+=i:i!=null&&i!==!1&&(process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||Oe(i)||q(i)||console.error(`${ke(c)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),s+=Ne(G(i,t,n,o)))}else s+=Ne(G(c,t,n,o))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const a=o.hash?o.hash+s:s;let c=this.dynamicNameCache.get(a);if(!c){if(c=je(V(V(this.baseHash,o.hash),s)>>>0),this.dynamicNameCache.size>=200){const i=this.dynamicNameCache.keys().next().value;i!==void 0&&this.dynamicNameCache.delete(i)}this.dynamicNameCache.set(a,c)}if(!n.hasNameForId(this.componentId,c)){const i=o(s,"."+c,void 0,this.componentId);n.insertRules(this.componentId,c,i)}r=X(r,c)}}return r}}const en=/&/g;function ht(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function ve(e){const t=e.length;let n="",o=0,r=0,s=0,a=!1,c=!1;for(let i=0;i<t;i++){const d=e.charCodeAt(i);if(s!==0||a||d!==z||e.charCodeAt(i+1)!==42)if(a)d===42&&e.charCodeAt(i+1)===z&&(a=!1,i++);else if(d!==34&&d!==39||ht(e,i)){if(s===0)if(d===123)r++;else if(d===125){if(r--,r<0){c=!0;let h=i+1;for(;h<t;){const m=e.charCodeAt(h);if(m===59||m===10)break;h++}h<t&&e.charCodeAt(h)===59&&h++,r=0,i=h-1,o=h;continue}r===0&&(n+=e.substring(o,i+1),o=i+1)}else d===59&&r===0&&(n+=e.substring(o,i+1),o=i+1)}else s===0?s=d:s===d&&(s=0);else a=!0,i++}return c||r!==0||s!==0?(o<t&&r===0&&s===0&&(n+=e.substring(o)),n):e}function pt(e,t){const n=t+" ",o=","+n;for(let r=0;r<e.length;r++){const s=e[r];if(s.type==="rule"){s.value=(n+s.value).replaceAll(",",o);const a=s.props,c=[];for(let i=0;i<a.length;i++)c[i]=n+a[i];s.props=c}Array.isArray(s.children)&&s.type!=="@keyframes"&&pt(s.children,t)}return e}function tn({options:e=H,plugins:t=Pe}=H){let n,o,r;const s=(f,I,p)=>p.startsWith(o)&&p.endsWith(o)&&p.replaceAll(o,"").length>0?`.${n}`:f,a=t.slice();a.push(f=>{f.type===gt.RULESET&&f.value.includes("&")&&(r||(r=new RegExp(`\\${o}\\b`,"g")),f.props[0]=f.props[0].replace(en,o).replace(r,s))}),e.prefix&&a.push(fe.prefixer),a.push(ze.stringify);let c=[];const i=fe.middleware(a.concat(fe.rulesheet(f=>c.push(f)))),d=(f,I="",p="",E="&")=>{n=E,o=I,r=void 0;const A=(function(l){const x=l.indexOf("//")!==-1,ue=l.indexOf("}")!==-1;if(!x&&!ue)return l;if(!x)return ve(l);const _=l.length;let T="",P=0,u=0,$=0,B=0,O=0,U=!1;for(;u<_;){const v=l.charCodeAt(u);if(v!==34&&v!==39||ht(l,u))if($===0)if(v===z&&u+1<_&&l.charCodeAt(u+1)===42){for(u+=2;u+1<_&&(l.charCodeAt(u)!==42||l.charCodeAt(u+1)!==z);)u++;u+=2}else if(v!==40)if(v!==41)if(B>0)u++;else if(v===42&&u+1<_&&l.charCodeAt(u+1)===z)T+=l.substring(P,u),u+=2,P=u,U=!0;else if(v===z&&u+1<_&&l.charCodeAt(u+1)===z){for(T+=l.substring(P,u);u<_&&l.charCodeAt(u)!==10;)u++;P=u,U=!0}else v===123?O++:v===125&&O--,u++;else B>0&&B--,u++;else B++,u++;else u++;else $===0?$=v:$===v&&($=0),u++}return U?(P<_&&(T+=l.substring(P)),O===0?T:ve(T)):O===0?l:ve(l)})(f);let g=vt.compile(p||I?p+" "+I+" { "+A+" }":A);return e.namespace&&(g=pt(g,e.namespace)),c=[],ze.serialize(g,i),c},h=e;let m=we;for(let f=0;f<t.length;f++)t[f].name||Y(15),m=V(m,t[f].name);return h?.namespace&&(m=V(m,h.namespace)),h?.prefix&&(m=V(m,"p")),d.hash=m!==we?m.toString():"",d}const nn=new le,Ee=tn(),Te=C.createContext({shouldForwardProp:void 0,styleSheet:nn,stylis:Ee,stylisPlugins:void 0});Te.Consumer;function on(){return C.useContext(Te)}const $e=C.createContext(void 0);$e.Consumer;const Ue=Object.prototype.hasOwnProperty,Se={};function rn(e,t){const n=typeof e!="string"?"sc":et(e);Se[n]=(Se[n]||0)+1;const o=n+"-"+nt(Q+n+Se[n]);return t?t+"-"+o:o}let be;function sn(e,t,n){const o=Re(e),r=e,s=!ie(e),{attrs:a=Pe,componentId:c=rn(t.displayName,t.parentComponentId),displayName:i=Pt(e)}=t,d=t.displayName&&t.componentId?et(t.displayName)+"-"+t.componentId:t.componentId||c,h=o&&r.attrs?r.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:m}=t;if(o&&r.shouldForwardProp){const E=r.shouldForwardProp;if(t.shouldForwardProp){const A=t.shouldForwardProp;m=(g,l)=>E(g,l)&&A(g,l)}else m=E}const f=new Qt(n,d,o?r.componentStyle:void 0);function I(E,A){return(function(g,l,x){const{attrs:ue,componentStyle:_,defaultProps:T,foldedComponentIds:P,styledComponentId:u,target:$}=g,B=C.useContext($e),O=on(),U=g.shouldForwardProp||O.shouldForwardProp;process.env.NODE_ENV!=="production"&&C.useDebugValue&&C.useDebugValue(u);const v=Ot(l,B,T)||H;let j,L;{const k=C.useRef(null),w=k.current;if(w!==null&&w[1]===v&&w[2]===O.styleSheet&&w[3]===O.stylis&&w[7]===_&&(function(W,N,b){const y=W,S=N;let D=0;for(const M in S)if(Ue.call(S,M)&&(D++,y[M]!==S[M]))return!1;return D===b})(w[0],l,w[4]))j=w[5],L=w[6];else{j=(function(N,b,y){const S=Object.assign(Object.assign({},b),{className:void 0,theme:y}),D=N.length>1;for(let M=0;M<N.length;M++){const pe=N[M],te=ce(pe)?pe(D?Object.assign({},S):S):pe;for(const R in te)R==="className"?S.className=X(S.className,te[R]):R==="style"?S.style=Object.assign(Object.assign({},S.style),te[R]):R in b&&b[R]===void 0||(S[R]=te[R])}return"className"in b&&typeof b.className=="string"&&(S.className=X(S.className,b.className)),S})(ue,l,v),L=(function(N,b,y,S){const D=N.generateAndInjectStyles(b,y,S);return process.env.NODE_ENV!=="production"&&C.useDebugValue&&C.useDebugValue(D),D})(_,j,O.styleSheet,O.stylis);let W=0;for(const N in l)Ue.call(l,N)&&W++;k.current=[l,v,O.styleSheet,O.stylis,W,j,L,_]}}process.env.NODE_ENV!=="production"&&g.warnTooManyClasses&&g.warnTooManyClasses(L);const ee=j.as||$,de=(function(k,w,W,N){const b={};for(const y in k)k[y]===void 0||y[0]==="$"||y==="as"||y==="theme"&&k.theme===W||(y==="forwardedAs"?b.as=k.forwardedAs:N&&!N(y,w)||(b[y]=k[y],N||process.env.NODE_ENV!=="development"||yt(y)||(be||(be=new Set)).has(y)||!ie(w)||w.includes("-")||(be.add(y),console.warn(`styled-components: it looks like an unknown prop "${y}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return b})(j,ee,v,U);let he=X(P,u);return L&&(he+=" "+L),j.className&&(he+=" "+j.className),de[ie(ee)&&ee.includes("-")?"class":"className"]=he,x&&(de.ref=x),C.createElement(ee,de)})(p,E,A)}I.displayName=i;let p=C.forwardRef(I);return p.attrs=h,p.componentStyle=f,p.displayName=i,p.shouldForwardProp=m,p.foldedComponentIds=o?X(r.foldedComponentIds,r.styledComponentId):"",p.styledComponentId=d,p.target=o?r.target:e,Object.defineProperty(p,"defaultProps",{get(){return this._foldedDefaultProps},set(E){this._foldedDefaultProps=o?(function(A,...g){for(const l of g)Ce(A,l,!0);return A})({},r.defaultProps,E):E}}),process.env.NODE_ENV!=="production"&&(At(i,d),p.warnTooManyClasses=((E,A)=>{let g={},l=!1;return x=>{!l&&(g[x]=!0,Object.keys(g).length>=200)&&(console.warn(`Over 200 classes were generated for component ${E}${A?` with the id of "${A}"`:""}.
70
- Consider using the attrs method, together with a style object for frequently changed styles.
71
- Example:
72
- const Component = styled.div.attrs(props => ({
73
- style: {
74
- background: props.background,
75
- },
76
- }))\`width: 100%;\`
77
-
78
- <Component />`),l=!0,g={})}})(i,d)),xe(p,()=>`.${p.styledComponentId}`),s&&st(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),p}var an=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function Je(e,t){const n=[e[0]];for(let o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}const Ke=e=>(at.add(e),e);function De(e,...t){if(ce(e)||q(e))return Ke(G(Je(Pe,[e,...t])));const n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?G(n):Ke(G(Je(n,t)))}function _e(e,t,n=H){if(!t)throw Y(1,t);const o=(r,...s)=>e(t,n,De(r,...s));return o.attrs=r=>_e(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),o.withConfig=r=>_e(e,t,Object.assign(Object.assign({},n),r)),o}const ft=e=>_e(sn,e),Me=ft;an.forEach(e=>{Me[e]=ft(e)});var mt;class cn{constructor(t,n){this[mt]=!0,this.inject=(o,r=Ee)=>{const s=this.getName(r);if(!o.hasNameForId(this.id,s)){const a=r(this.rules,s,"@keyframes");o.insertRules(this.id,s,a)}},this.name=t,this.id=Qe+t,this.rules=n,K(this.id),xe(this,()=>{throw Y(12,String(this.name))})}getName(t=Ee){return t.hash?this.name+je(+t.hash>>>0):this.name}}function ln(e,...t){process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");const n=Ne(De(e,...t)),o=nt(n);return new cn(o,n)}mt=ct;process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
79
- Perhaps you're looking to import 'styled-components/native'?
80
- Read more about this at https://styled-components.com/docs/basics#react-native`);const oe=`__sc-${F}__`;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[oe]||(window[oe]=0),window[oe]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
81
-
82
- See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[oe]+=1);exports.StyleSheetContext=Te;exports.ThemeContext=$e;exports.css=De;exports.default=Me;exports.isStyledComponent=Re;exports.keyframes=ln;exports.styled=Me;exports.version=Q;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E="-ms-",r="-moz-",a="-webkit-",e="comm",M="rule",A="decl",v="@import",T="@namespace",R="@keyframes",S="@layer";exports.COMMENT=e;exports.DECLARATION=A;exports.IMPORT=v;exports.KEYFRAMES=R;exports.LAYER=S;exports.MOZ=r;exports.MS=E;exports.NAMESPACE=T;exports.RULESET=M;exports.WEBKIT=a;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./Enum.cjs"),p=require("./Utility.cjs"),i=require("./Tokenizer.cjs"),n=require("./Serializer.cjs"),y=require("./Prefixer.cjs");function w(r){var t=p.sizeof(r);return function(c,u,o,e){for(var a="",f=0;f<t;f++)a+=r[f](c,u,o,e)||"";return a}}function d(r){return function(t){t.root||(t=t.return)&&r(t)}}function g(r,t,c,u){if(r.length>-1&&!r.return)switch(r.type){case s.DECLARATION:r.return=y.prefix(r.value,r.length,c);return;case s.KEYFRAMES:return n.serialize([i.copy(r,{value:p.replace(r.value,"@","@"+s.WEBKIT)})],u);case s.RULESET:if(r.length)return p.combine(c=r.props,function(o){switch(p.match(o,u=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":i.lift(i.copy(r,{props:[p.replace(o,/:(read-\w+)/,":"+s.MOZ+"$1")]})),i.lift(i.copy(r,{props:[o]})),p.assign(r,{props:p.filter(c,u)});break;case"::placeholder":i.lift(i.copy(r,{props:[p.replace(o,/:(plac\w+)/,":"+s.WEBKIT+"input-$1")]})),i.lift(i.copy(r,{props:[p.replace(o,/:(plac\w+)/,":"+s.MOZ+"$1")]})),i.lift(i.copy(r,{props:[p.replace(o,/:(plac\w+)/,s.MS+"input-$1")]})),i.lift(i.copy(r,{props:[o]})),p.assign(r,{props:p.filter(c,u)});break}return""})}}exports.middleware=w;exports.prefixer=g;exports.rulesheet=d;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./Enum.cjs"),e=require("./Utility.cjs"),r=require("./Tokenizer.cjs");function C(c){return r.dealloc(M("",null,null,null,[""],c=r.alloc(c),0,[0],c))}function M(c,k,b,i,f,E,O,o,v){for(var u=0,l=0,s=O,y=0,h=0,p=0,n=1,q=1,m=1,t=0,w="",T=f,g=E,d=i,a=w;q;)switch(p=t,t=r.next()){case 40:if(p!=108&&e.charat(a,s-1)==58){e.indexof(a+=e.replace(r.delimit(t),"&","&\f"),"&\f",e.abs(u?o[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:a+=r.delimit(t);break;case 9:case 10:case 13:case 32:a+=r.whitespace(p);break;case 92:a+=r.escaping(r.caret()-1,7);continue;case 47:switch(r.peek()){case 42:case 47:e.append(A(r.commenter(r.next(),r.caret()),k,b,v),v),(r.token(p||1)==5||r.token(r.peek()||1)==5)&&e.strlen(a)&&e.substr(a,-1,void 0)!==" "&&(a+=" ");break;default:a+="/"}break;case 123*n:o[u++]=e.strlen(a)*m;case 125*n:case 59:case 0:switch(t){case 0:case 125:q=0;case 59+l:m==-1&&(a=e.replace(a,/\f/g,"")),h>0&&(e.strlen(a)-s||n===0&&p===47)&&e.append(h>32?x(a+";",i,b,s-1,v):x(e.replace(a," ","")+";",i,b,s-2,v),v);break;case 59:a+=";";default:if(e.append(d=S(a,k,b,u,l,f,o,w,T=[],g=[],s,E),E),t===123)if(l===0)M(a,k,d,d,T,E,s,o,g);else{switch(y){case 99:if(e.charat(a,3)===110)break;case 108:if(e.charat(a,2)===97)break;default:l=0;case 100:case 109:case 115:}l?M(c,d,d,i&&e.append(S(c,d,d,0,0,f,o,w,f,T=[],s,g),g),f,g,s,o,i?T:g):M(a,d,d,d,[""],g,0,o,g)}}u=l=h=0,n=m=1,w=a="",s=O;break;case 58:s=1+e.strlen(a),h=p;default:if(n<1){if(t==123)--n;else if(t==125&&n++==0&&r.prev()==125)continue}switch(a+=e.from(t),t*n){case 38:m=l>0?1:(a+="\f",-1);break;case 44:o[u++]=(e.strlen(a)-1)*m,m=1;break;case 64:r.peek()===45&&(a+=r.delimit(r.next())),y=r.peek(),l=s=e.strlen(w=a+=r.identifier(r.caret())),t++;break;case 45:p===45&&e.strlen(a)==2&&(n=0)}}return E}function S(c,k,b,i,f,E,O,o,v,u,l,s){for(var y=f-1,h=f===0?E:[""],p=e.sizeof(h),n=0,q=0,m=0;n<i;++n)for(var t=0,w=e.substr(c,y+1,y=e.abs(q=O[n])),T=c;t<p;++t)(T=e.trim(q>0?h[t]+" "+w:e.replace(w,/&\f/g,h[t])))&&(v[m++]=T);return r.node(c,k,b,f===0?z.RULESET:o,v,u,l,s)}function A(c,k,b,i){return r.node(c,k,b,z.COMMENT,e.from(r.char()),e.substr(c,2,-2),0,i)}function x(c,k,b,i,f){return r.node(c,k,b,z.DECLARATION,e.substr(c,0,i),e.substr(c,i+1,-1),i,f)}exports.comment=A;exports.compile=C;exports.declaration=x;exports.parse=M;exports.ruleset=S;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./Enum.cjs"),e=require("./Utility.cjs");function f(r,s,t){switch(e.hash(r,s)){case 5103:return c.WEBKIT+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return c.WEBKIT+r+r;case 4855:return c.WEBKIT+r.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+r;case 4789:return c.MOZ+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return c.WEBKIT+r+c.MOZ+r+c.MS+r+r;case 5936:switch(e.charat(r,s+11)){case 114:return c.WEBKIT+r+c.MS+e.replace(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return c.WEBKIT+r+c.MS+e.replace(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return c.WEBKIT+r+c.MS+e.replace(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return c.WEBKIT+r+c.MS+r+r;case 6165:return c.WEBKIT+r+c.MS+"flex-"+r+r;case 5187:return c.WEBKIT+r+e.replace(r,/(\w+).+(:[^]+)/,c.WEBKIT+"box-$1$2"+c.MS+"flex-$1$2")+r;case 5443:return c.WEBKIT+r+c.MS+"flex-item-"+e.replace(r,/flex-|-self/g,"")+(e.match(r,/flex-|baseline/)?"":c.MS+"grid-row-"+e.replace(r,/flex-|-self/g,""))+r;case 4675:return c.WEBKIT+r+c.MS+"flex-line-pack"+e.replace(r,/align-content|flex-|-self/g,"")+r;case 5548:return c.WEBKIT+r+c.MS+e.replace(r,"shrink","negative")+r;case 5292:return c.WEBKIT+r+c.MS+e.replace(r,"basis","preferred-size")+r;case 6060:return c.WEBKIT+"box-"+e.replace(r,"-grow","")+c.WEBKIT+r+c.MS+e.replace(r,"grow","positive")+r;case 4554:return c.WEBKIT+e.replace(r,/([^-])(transform)/g,"$1"+c.WEBKIT+"$2")+r;case 6187:return e.replace(e.replace(e.replace(r,/(zoom-|grab)/,c.WEBKIT+"$1"),/(image-set)/,c.WEBKIT+"$1"),r,"")+r;case 5495:case 3959:return e.replace(r,/(image-set\([^]*)/,c.WEBKIT+"$1$`$1");case 4968:return e.replace(e.replace(r,/(.+:)(flex-)?(.*)/,c.WEBKIT+"box-pack:$3"+c.MS+"flex-pack:$3"),/space-between/,"justify")+c.WEBKIT+r+r;case 4200:if(!e.match(r,/flex-|baseline/))return c.MS+"grid-column-align"+e.substr(r,s)+r;break;case 2592:case 3360:return c.MS+e.replace(r,"template-","")+r;case 4384:case 3616:return t&&t.some(function(a,n){return s=n,e.match(a.props,/grid-\w+-end/)})?~e.indexof(r+(t=t[s].value),"span",0)?r:c.MS+e.replace(r,"-start","")+r+c.MS+"grid-row-span:"+(~e.indexof(t,"span",0)?e.match(t,/\d+/):+e.match(t,/\d+/)-+e.match(r,/\d+/))+";":c.MS+e.replace(r,"-start","")+r;case 4896:case 4128:return t&&t.some(function(a){return e.match(a.props,/grid-\w+-start/)})?r:c.MS+e.replace(e.replace(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return e.replace(r,/(.+)-inline(.+)/,c.WEBKIT+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(e.strlen(r)-1-s>6)switch(e.charat(r,s+1)){case 109:if(e.charat(r,s+4)!==45)break;case 102:return e.replace(r,/(.+:)(.+)-([^]+)/,"$1"+c.WEBKIT+"$2-$3$1"+c.MOZ+(e.charat(r,s+3)==108?"$3":"$2-$3"))+r;case 115:return~e.indexof(r,"stretch",0)?f(e.replace(r,"stretch","fill-available"),s,t)+r:r}break;case 5152:case 5920:return e.replace(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(a,n,p,E,T,i,o){return c.MS+n+":"+p+o+(E?c.MS+n+"-span:"+(T?i:+i-+p)+o:"")+r});case 4949:if(e.charat(r,s+6)===121)return e.replace(r,":",":"+c.WEBKIT)+r;break;case 6444:switch(e.charat(r,e.charat(r,14)===45?18:11)){case 120:return e.replace(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c.WEBKIT+(e.charat(r,14)===45?"inline-":"")+"box$3$1"+c.WEBKIT+"$2$3$1"+c.MS+"$2box$3")+r;case 100:return e.replace(r,":",":"+c.MS)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return e.replace(r,"scroll-","scroll-snap-")+r}return r}exports.prefix=f;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Enum.cjs"),a=require("./Utility.cjs");function n(r,s){for(var i="",u=0;u<r.length;u++)i+=s(r[u],u,r,s)||"";return i}function o(r,s,i,u){switch(r.type){case t.LAYER:if(r.children.length)break;case t.IMPORT:case t.NAMESPACE:case t.DECLARATION:return r.return=r.return||r.value;case t.COMMENT:return"";case t.KEYFRAMES:return r.return=r.value+"{"+n(r.children,u)+"}";case t.RULESET:if(!a.strlen(r.value=r.props.join(",")))return""}return a.strlen(i=n(r.children,u))?r.return=r.value+"{"+i+"}":""}exports.serialize=n;exports.stringify=o;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./Utility.cjs");exports.line=1;exports.column=1;exports.length=0;exports.position=0;exports.character=0;exports.characters="";function l(e,c,h,f,m,p,d,g){return{value:e,root:c,parent:h,type:f,props:m,children:p,line:exports.line,column:exports.column,length:d,return:"",siblings:g}}function o(e,c){return n.assign(l("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},c)}function b(e){for(;e.root;)e=o(e.root,{children:[e]});n.append(e,e.siblings)}function k(){return exports.character}function w(){return exports.character=exports.position>0?n.charat(exports.characters,--exports.position):0,exports.column--,exports.character===10&&(exports.column=1,exports.line--),exports.character}function r(){return exports.character=exports.position<exports.length?n.charat(exports.characters,exports.position++):0,exports.column++,exports.character===10&&(exports.column=1,exports.line++),exports.character}function a(){return n.charat(exports.characters,exports.position)}function u(){return exports.position}function t(e,c){return n.substr(exports.characters,e,c)}function i(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function v(e){return exports.line=exports.column=1,exports.length=n.strlen(exports.characters=e),exports.position=0,[]}function x(e){return exports.characters="",e}function S(e){return n.trim(t(exports.position-1,s(e===91?e+2:e===40?e+1:e)))}function j(e){for(;(exports.character=a())&&exports.character<33;)r();return i(e)>2||i(exports.character)>3?"":" "}function q(e,c){for(;--c&&r()&&!(exports.character<48||exports.character>102||exports.character>57&&exports.character<65||exports.character>70&&exports.character<97););return t(e,u()+(c<6&&a()==32&&r()==32))}function s(e){for(;r();)switch(exports.character){case e:return exports.position;case 34:case 39:e!==34&&e!==39&&s(exports.character);break;case 40:e===41&&s(e);break;case 92:r();break}return exports.position}function M(e,c){for(;r()&&e+exports.character!==57;)if(e+exports.character===84&&a()===47)break;return"/*"+t(c,exports.position-1)+"*"+n.from(e===47?e:r())}function O(e){for(;!i(a());)r();return t(e,exports.position)}exports.alloc=v;exports.caret=u;exports.char=k;exports.commenter=M;exports.copy=o;exports.dealloc=x;exports.delimit=S;exports.delimiter=s;exports.escaping=q;exports.identifier=O;exports.lift=b;exports.next=r;exports.node=l;exports.peek=a;exports.prev=w;exports.slice=t;exports.token=i;exports.whitespace=j;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=Math.abs,c=String.fromCharCode,f=Object.assign;function u(n,r){return e(n,0)^45?(((r<<2^e(n,0))<<2^e(n,1))<<2^e(n,2))<<2^e(n,3):0}function s(n){return n.trim()}function i(n,r){return(n=r.exec(n))?n[0]:n}function a(n,r,t){return n.replace(r,t)}function h(n,r,t){return n.indexOf(r,t)}function e(n,r){return n.charCodeAt(r)|0}function m(n,r,t){return n.slice(r,t)}function b(n){return n.length}function p(n){return n.length}function d(n,r){return r.push(n),n}function g(n,r){return n.map(r).join("")}function l(n,r){return n.filter(function(t){return!i(t,r)})}exports.abs=o;exports.append=d;exports.assign=f;exports.charat=e;exports.combine=g;exports.filter=l;exports.from=c;exports.hash=u;exports.indexof=h;exports.match=i;exports.replace=a;exports.sizeof=p;exports.strlen=b;exports.substr=m;exports.trim=s;