@ledgerhq/react-ui 0.10.0 → 0.10.1-next.0

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 (148) hide show
  1. package/lib/assets/logos/LedgerLiveAltRegular.d.ts +1 -1
  2. package/lib/assets/logos/LedgerLiveRegular.d.ts +1 -1
  3. package/lib/cjs/components/asorted/Icon/FlagIcon.js +1 -1
  4. package/lib/cjs/components/asorted/Icon/FlagIcon.js.map +1 -1
  5. package/lib/cjs/components/asorted/Icon/PaymentIcon.js +1 -1
  6. package/lib/cjs/components/asorted/Icon/PaymentIcon.js.map +1 -1
  7. package/lib/cjs/components/asorted/Icon/ProviderIcon.js +15 -11
  8. package/lib/cjs/components/asorted/Icon/ProviderIcon.js.map +2 -2
  9. package/lib/components/Chart/index.d.ts +1 -1
  10. package/lib/components/Chart/types.d.ts +3 -3
  11. package/lib/components/Table/index.d.ts +1 -1
  12. package/lib/components/Table/stories.helper.d.ts +2 -2
  13. package/lib/components/Tag/index.d.ts +3 -3
  14. package/lib/components/asorted/Divider/index.d.ts +1 -1
  15. package/lib/components/asorted/Icon/BoxedIcon.d.ts +3 -3
  16. package/lib/components/asorted/Icon/CryptoIcon.d.ts +1 -1
  17. package/lib/components/asorted/Icon/FlagIcon.d.ts +2 -2
  18. package/lib/components/asorted/Icon/FlagIcon.js +1 -1
  19. package/lib/components/asorted/Icon/Icon.d.ts +1 -1
  20. package/lib/components/asorted/Icon/PaymentIcon.d.ts +3 -3
  21. package/lib/components/asorted/Icon/PaymentIcon.js +1 -1
  22. package/lib/components/asorted/Icon/ProviderIcon.d.ts +3 -3
  23. package/lib/components/asorted/Icon/ProviderIcon.js +12 -9
  24. package/lib/components/asorted/Text/index.d.ts +2 -2
  25. package/lib/components/cards/Carousel/Slide.d.ts +1 -1
  26. package/lib/components/cards/Carousel/index.d.ts +1 -1
  27. package/lib/components/cta/Button/index.d.ts +3 -3
  28. package/lib/components/cta/Link/index.d.ts +1 -1
  29. package/lib/components/form/BaseInput/index.d.ts +4 -4
  30. package/lib/components/form/Checkbox/Checkbox.d.ts +1 -1
  31. package/lib/components/form/Dropdown/index.d.ts +1 -1
  32. package/lib/components/form/DropdownGeneric/index.d.ts +2 -2
  33. package/lib/components/form/LegendInput/index.d.ts +1 -1
  34. package/lib/components/form/Radio/RadioElement.d.ts +2 -2
  35. package/lib/components/form/Radio/RadioListElement.d.ts +3 -3
  36. package/lib/components/form/Radio/index.d.ts +1 -1
  37. package/lib/components/form/SelectInput/Option.d.ts +2 -2
  38. package/lib/components/form/SelectInput/ValueContainer.d.ts +1 -1
  39. package/lib/components/form/SelectInput/VirtualMenuList.d.ts +1 -1
  40. package/lib/components/form/SelectInput/index.d.ts +2 -2
  41. package/lib/components/form/SplitInput/index.d.ts +4 -4
  42. package/lib/components/form/Switch/Switch.d.ts +1 -1
  43. package/lib/components/helpers.d.ts +1 -1
  44. package/lib/components/layout/Box/index.d.ts +1 -1
  45. package/lib/components/layout/Flex/index.d.ts +1 -1
  46. package/lib/components/layout/List/VerticalTimeline/TimelineIndicator.d.ts +1 -1
  47. package/lib/components/layout/List/VerticalTimeline/TimelineItem.d.ts +1 -1
  48. package/lib/components/layout/List/VerticalTimeline/index.d.ts +3 -3
  49. package/lib/components/layout/Popin/index.d.ts +1 -1
  50. package/lib/components/loaders/InfiniteLoader/index.d.ts +1 -1
  51. package/lib/components/message/Alert/index.d.ts +2 -2
  52. package/lib/components/message/Log/index.d.ts +1 -1
  53. package/lib/components/message/Notification/Badge.d.ts +1 -1
  54. package/lib/components/message/Notification/index.d.ts +1 -1
  55. package/lib/components/message/Tip/index.d.ts +1 -1
  56. package/lib/components/message/Tooltip/index.d.ts +1 -1
  57. package/lib/components/navigation/Aside/index.d.ts +1 -1
  58. package/lib/components/navigation/Breadcrumb/index.d.ts +4 -4
  59. package/lib/components/navigation/FlowStepper/index.d.ts +7 -7
  60. package/lib/components/navigation/Header/index.d.ts +1 -1
  61. package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts +1 -1
  62. package/lib/components/navigation/progress/Stepper/index.d.ts +3 -3
  63. package/lib/components/navigation/sideBar/Item/Item.d.ts +1 -1
  64. package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts +1 -1
  65. package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts +1 -1
  66. package/lib/components/navigation/sideBar/index.d.ts +1 -1
  67. package/lib/components/styled.d.ts +1 -1
  68. package/lib/components/tabs/Bar/index.d.ts +1 -1
  69. package/lib/components/tabs/Chip/index.d.ts +1 -1
  70. package/lib/components/tabs/Pill/index.d.ts +1 -1
  71. package/lib/components/tabs/Tabs/index.d.ts +1 -1
  72. package/lib/components/transitions/TransitionInOut.d.ts +1 -1
  73. package/lib/components/transitions/TransitionScale.d.ts +1 -1
  74. package/lib/components/transitions/TransitionSlide.d.ts +1 -1
  75. package/lib/styles/InvertTheme.d.ts +1 -1
  76. package/lib/styles/global.d.ts +1 -1
  77. package/lib/styles/theme.d.ts +4 -4
  78. package/package.json +5 -5
  79. package/lib/assets/providersFavicons/Aave.png +0 -0
  80. package/lib/assets/providersFavicons/Baanx.png +0 -0
  81. package/lib/assets/providersFavicons/Banxa.png +0 -0
  82. package/lib/assets/providersFavicons/Bitrefill.png +0 -0
  83. package/lib/assets/providersFavicons/BtcDirect.png +0 -0
  84. package/lib/assets/providersFavicons/Changelly.png +0 -0
  85. package/lib/assets/providersFavicons/CoinGecko.png +0 -0
  86. package/lib/assets/providersFavicons/Coinify.png +0 -0
  87. package/lib/assets/providersFavicons/Compound.png +0 -0
  88. package/lib/assets/providersFavicons/Deversifi.png +0 -0
  89. package/lib/assets/providersFavicons/Ftx.png +0 -0
  90. package/lib/assets/providersFavicons/Ftxus.png +0 -0
  91. package/lib/assets/providersFavicons/Kiln.png +0 -0
  92. package/lib/assets/providersFavicons/LedgerBlack.png +0 -0
  93. package/lib/assets/providersFavicons/LedgerCard.png +0 -0
  94. package/lib/assets/providersFavicons/LedgerWhite.png +0 -0
  95. package/lib/assets/providersFavicons/Lido.png +0 -0
  96. package/lib/assets/providersFavicons/LoopiPay.png +0 -0
  97. package/lib/assets/providersFavicons/Mercuryo.png +0 -0
  98. package/lib/assets/providersFavicons/Moonpay.png +0 -0
  99. package/lib/assets/providersFavicons/Opensea.png +0 -0
  100. package/lib/assets/providersFavicons/PancakeSwap.png +0 -0
  101. package/lib/assets/providersFavicons/Paraswap.png +0 -0
  102. package/lib/assets/providersFavicons/Poap.png +0 -0
  103. package/lib/assets/providersFavicons/RainbowMe.png +0 -0
  104. package/lib/assets/providersFavicons/Ramp.png +0 -0
  105. package/lib/assets/providersFavicons/Rarible.png +0 -0
  106. package/lib/assets/providersFavicons/Simplex.png +0 -0
  107. package/lib/assets/providersFavicons/SushiSwap.png +0 -0
  108. package/lib/assets/providersFavicons/Transak.png +0 -0
  109. package/lib/assets/providersFavicons/Wyre.png +0 -0
  110. package/lib/assets/providersFavicons/Zerion.png +0 -0
  111. package/lib/assets/providersFavicons/_1Inch.png +0 -0
  112. package/lib/cjs/assets/providersFavicons/Aave.png +0 -0
  113. package/lib/cjs/assets/providersFavicons/Baanx.png +0 -0
  114. package/lib/cjs/assets/providersFavicons/Banxa.png +0 -0
  115. package/lib/cjs/assets/providersFavicons/Bitrefill.png +0 -0
  116. package/lib/cjs/assets/providersFavicons/BtcDirect.png +0 -0
  117. package/lib/cjs/assets/providersFavicons/Changelly.png +0 -0
  118. package/lib/cjs/assets/providersFavicons/CoinGecko.png +0 -0
  119. package/lib/cjs/assets/providersFavicons/Coinify.png +0 -0
  120. package/lib/cjs/assets/providersFavicons/Compound.png +0 -0
  121. package/lib/cjs/assets/providersFavicons/Deversifi.png +0 -0
  122. package/lib/cjs/assets/providersFavicons/Ftx.png +0 -0
  123. package/lib/cjs/assets/providersFavicons/Ftxus.png +0 -0
  124. package/lib/cjs/assets/providersFavicons/Kiln.png +0 -0
  125. package/lib/cjs/assets/providersFavicons/LedgerBlack.png +0 -0
  126. package/lib/cjs/assets/providersFavicons/LedgerCard.png +0 -0
  127. package/lib/cjs/assets/providersFavicons/LedgerWhite.png +0 -0
  128. package/lib/cjs/assets/providersFavicons/Lido.png +0 -0
  129. package/lib/cjs/assets/providersFavicons/LoopiPay.png +0 -0
  130. package/lib/cjs/assets/providersFavicons/Mercuryo.png +0 -0
  131. package/lib/cjs/assets/providersFavicons/Moonpay.png +0 -0
  132. package/lib/cjs/assets/providersFavicons/Opensea.png +0 -0
  133. package/lib/cjs/assets/providersFavicons/PancakeSwap.png +0 -0
  134. package/lib/cjs/assets/providersFavicons/Paraswap.png +0 -0
  135. package/lib/cjs/assets/providersFavicons/Poap.png +0 -0
  136. package/lib/cjs/assets/providersFavicons/RainbowMe.png +0 -0
  137. package/lib/cjs/assets/providersFavicons/Ramp.png +0 -0
  138. package/lib/cjs/assets/providersFavicons/Rarible.png +0 -0
  139. package/lib/cjs/assets/providersFavicons/Simplex.png +0 -0
  140. package/lib/cjs/assets/providersFavicons/SushiSwap.png +0 -0
  141. package/lib/cjs/assets/providersFavicons/Transak.png +0 -0
  142. package/lib/cjs/assets/providersFavicons/Wyre.png +0 -0
  143. package/lib/cjs/assets/providersFavicons/Zerion.png +0 -0
  144. package/lib/cjs/assets/providersFavicons/_1Inch.png +0 -0
  145. package/lib/cjs/components/asorted/Icon/providerFaviconsIndex.js +0 -92
  146. package/lib/cjs/components/asorted/Icon/providerFaviconsIndex.js.map +0 -7
  147. package/lib/components/asorted/Icon/providerFaviconsIndex.d.ts +0 -33
  148. package/lib/components/asorted/Icon/providerFaviconsIndex.js +0 -33
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  width?: number | string;
4
4
  height?: number | string;
5
5
  color?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  width?: number | string;
4
4
  height?: number | string;
5
5
  color?: string;
@@ -26,7 +26,7 @@ __export(exports, {
26
26
  iconNames: () => iconNames,
27
27
  sizes: () => sizes
28
28
  });
29
- var flags = __toModule(require("@ledgerhq/icons-ui/react/_Flags/index"));
29
+ var flags = __toModule(require("@ledgerhq/icons-ui/react/Flags/index"));
30
30
  var import_react = __toModule(require("react"));
31
31
  const sizes = {
32
32
  XXS: 16,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/components/asorted/Icon/FlagIcon.tsx"],
4
- "sourcesContent": ["import * as flags from \"@ledgerhq/icons-ui/react/_Flags/index\";\nimport React from \"react\";\n\nexport const sizes = {\n XXS: 16,\n XS: 24,\n S: 32,\n M: 40,\n L: 48,\n XL: 56,\n};\n\nexport type FlagsSizes = keyof typeof sizes;\n\nexport type Props = {\n name: string;\n size?: FlagsSizes;\n};\n\nexport const iconNames = Array.from(\n Object.keys(flags).reduce((set, rawKey) => {\n const key = rawKey\n .replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, \"$1\")\n .replace(/(.+)(Ultra)+$/g, \"$1\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nconst FlagIcon = ({ name, size = \"S\" }: Props): JSX.Element | null => {\n const maybeIconName = `${name}`;\n if (maybeIconName in flags) {\n // @ts-expect-error FIXME I don't know how to make you happy ts\n const Component = flags[maybeIconName];\n return <Component size={sizes[size]} />;\n }\n return null;\n};\n\nexport default FlagIcon;\n"],
4
+ "sourcesContent": ["import * as flags from \"@ledgerhq/icons-ui/react/Flags/index\";\nimport React from \"react\";\n\nexport const sizes = {\n XXS: 16,\n XS: 24,\n S: 32,\n M: 40,\n L: 48,\n XL: 56,\n};\n\nexport type FlagsSizes = keyof typeof sizes;\n\nexport type Props = {\n name: string;\n size?: FlagsSizes;\n};\n\nexport const iconNames = Array.from(\n Object.keys(flags).reduce((set, rawKey) => {\n const key = rawKey\n .replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, \"$1\")\n .replace(/(.+)(Ultra)+$/g, \"$1\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nconst FlagIcon = ({ name, size = \"S\" }: Props): JSX.Element | null => {\n const maybeIconName = `${name}`;\n if (maybeIconName in flags) {\n // @ts-expect-error FIXME I don't know how to make you happy ts\n const Component = flags[maybeIconName];\n return <Component size={sizes[size]} />;\n }\n return null;\n};\n\nexport default FlagIcon;\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AACvB,mBAAkB;AAEX,MAAM,QAAQ;AAAA,EACnB,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA;AAUC,MAAM,YAAY,MAAM,KAC7B,OAAO,KAAK,OAAO,OAAO,CAAC,KAAK,WAAW;AACzC,QAAM,MAAM,OACT,QAAQ,iDAAiD,MACzD,QAAQ,kBAAkB;AAC7B,MAAI,CAAC,IAAI,IAAI;AAAM,QAAI,IAAI;AAC3B,SAAO;AAAA,GACN,IAAI;AAGT,MAAM,WAAW,CAAC,EAAE,MAAM,OAAO,UAAqC;AACpE,QAAM,gBAAgB,GAAG;AACzB,MAAI,iBAAiB,OAAO;AAE1B,UAAM,YAAY,MAAM;AACxB,WAAO,mDAAC,WAAD;AAAA,MAAW,MAAM,MAAM;AAAA;AAAA;AAEhC,SAAO;AAAA;AAGT,IAAO,mBAAQ;",
6
6
  "names": []
7
7
  }
@@ -26,7 +26,7 @@ __export(exports, {
26
26
  iconNames: () => iconNames,
27
27
  sizes: () => sizes
28
28
  });
29
- var paymentProviders = __toModule(require("@ledgerhq/icons-ui/react/_Payment/index"));
29
+ var paymentProviders = __toModule(require("@ledgerhq/icons-ui/react/Payment/index"));
30
30
  var import_react = __toModule(require("react"));
31
31
  const sizes = {
32
32
  XXS: 16,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/components/asorted/Icon/PaymentIcon.tsx"],
4
- "sourcesContent": ["import * as paymentProviders from \"@ledgerhq/icons-ui/react/_Payment/index\";\n\nimport React from \"react\";\n\nexport const sizes = {\n XXS: 16,\n XS: 24,\n S: 32,\n M: 40,\n L: 48,\n XL: 56,\n};\n\nexport type PaymentIconSizes = keyof typeof sizes;\n\nexport type Props = {\n name: string;\n size?: PaymentIconSizes;\n};\n\nexport const iconNames = Array.from(\n Object.keys(paymentProviders).reduce((set, rawKey) => {\n const key = rawKey\n .replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, \"$1\")\n .replace(/(.+)(Ultra)+$/g, \"$1\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nexport type IconGetterProps = {\n search: string;\n object: Record<string, React.ReactNode>;\n};\n\nconst getIconCaseInsensitive = ({ search, object }: IconGetterProps) => {\n const asLower = search.toLowerCase();\n const key = Object.keys(object).find((key) => key.toLowerCase() === asLower);\n return key ? object[key] : null;\n};\n\nconst PaymentIcon = ({ name, size = \"S\" }: Props): JSX.Element | null => {\n const maybeIconName = `${name}`;\n\n const Component = getIconCaseInsensitive({\n search: maybeIconName,\n object: paymentProviders,\n }) as React.ElementType;\n if (Component) {\n return <Component size={sizes[size]} />;\n }\n return null;\n};\n\nexport default PaymentIcon;\n"],
4
+ "sourcesContent": ["import * as paymentProviders from \"@ledgerhq/icons-ui/react/Payment/index\";\n\nimport React from \"react\";\n\nexport const sizes = {\n XXS: 16,\n XS: 24,\n S: 32,\n M: 40,\n L: 48,\n XL: 56,\n};\n\nexport type PaymentIconSizes = keyof typeof sizes;\n\nexport type Props = {\n name: string;\n size?: PaymentIconSizes;\n};\n\nexport const iconNames = Array.from(\n Object.keys(paymentProviders).reduce((set, rawKey) => {\n const key = rawKey\n .replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, \"$1\")\n .replace(/(.+)(Ultra)+$/g, \"$1\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nexport type IconGetterProps = {\n search: string;\n object: Record<string, React.ReactNode>;\n};\n\nconst getIconCaseInsensitive = ({ search, object }: IconGetterProps) => {\n const asLower = search.toLowerCase();\n const key = Object.keys(object).find((key) => key.toLowerCase() === asLower);\n return key ? object[key] : null;\n};\n\nconst PaymentIcon = ({ name, size = \"S\" }: Props): JSX.Element | null => {\n const maybeIconName = `${name}`;\n\n const Component = getIconCaseInsensitive({\n search: maybeIconName,\n object: paymentProviders,\n }) as React.ElementType;\n if (Component) {\n return <Component size={sizes[size]} />;\n }\n return null;\n};\n\nexport default PaymentIcon;\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAkC;AAElC,mBAAkB;AAEX,MAAM,QAAQ;AAAA,EACnB,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA;AAUC,MAAM,YAAY,MAAM,KAC7B,OAAO,KAAK,kBAAkB,OAAO,CAAC,KAAK,WAAW;AACpD,QAAM,MAAM,OACT,QAAQ,iDAAiD,MACzD,QAAQ,kBAAkB;AAC7B,MAAI,CAAC,IAAI,IAAI;AAAM,QAAI,IAAI;AAC3B,SAAO;AAAA,GACN,IAAI;AAQT,MAAM,yBAAyB,CAAC,EAAE,QAAQ,aAA8B;AACtE,QAAM,UAAU,OAAO;AACvB,QAAM,MAAM,OAAO,KAAK,QAAQ,KAAK,CAAC,SAAQ,KAAI,kBAAkB;AACpE,SAAO,MAAM,OAAO,OAAO;AAAA;AAG7B,MAAM,cAAc,CAAC,EAAE,MAAM,OAAO,UAAqC;AACvE,QAAM,gBAAgB,GAAG;AAEzB,QAAM,YAAY,uBAAuB;AAAA,IACvC,QAAQ;AAAA,IACR,QAAQ;AAAA;AAEV,MAAI,WAAW;AACb,WAAO,mDAAC,WAAD;AAAA,MAAW,MAAM,MAAM;AAAA;AAAA;AAEhC,SAAO;AAAA;AAGT,IAAO,sBAAQ;",
6
6
  "names": []
7
7
  }
@@ -26,10 +26,10 @@ __export(exports, {
26
26
  iconNames: () => iconNames,
27
27
  sizes: () => sizes
28
28
  });
29
- var providers = __toModule(require("@ledgerhq/icons-ui/react/_ProvidersLogos/index"));
30
- var favicons = __toModule(require("./providerFaviconsIndex"));
29
+ var providers = __toModule(require("@ledgerhq/icons-ui/react/Providers/index"));
30
+ var providersBoxed = __toModule(require("@ledgerhq/icons-ui/react/ProvidersBoxed/index"));
31
31
  var import_react = __toModule(require("react"));
32
- var import_styled_components = __toModule(require("styled-components"));
32
+ var import_Flex = __toModule(require("../../layout/Flex"));
33
33
  const sizes = {
34
34
  XXS: 16,
35
35
  XS: 24,
@@ -39,27 +39,31 @@ const sizes = {
39
39
  XL: 56
40
40
  };
41
41
  const iconNames = Array.from(Object.keys(providers).reduce((set, rawKey) => {
42
- const key = rawKey.replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, "$1").replace(/(.+)(Ultra)+$/g, "$1");
42
+ const key = rawKey.replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, "$1").replace(/(.+)(Ultra)+$/g, "$1").replace(/^_/, "");
43
43
  if (!set.has(key))
44
44
  set.add(key);
45
45
  return set;
46
46
  }, new Set()));
47
- const Favicon = import_styled_components.default.img`
48
- border-radius: 8px;
49
- `;
50
47
  const getIconCaseInsensitive = ({ search, object }) => {
51
48
  const asLower = search.toLowerCase();
52
- const key = Object.keys(object).find((key2) => key2.toLowerCase() === asLower);
49
+ const key = Object.keys(object).find((key2) => key2.toLowerCase().replace(/^_/, "") === asLower);
53
50
  return key ? object[key] : null;
54
51
  };
55
52
  const ProviderIcon = ({ name, size = "S", boxed = false }) => {
56
53
  const maybeIconName = `${name}`;
57
54
  if (boxed) {
58
- return /* @__PURE__ */ import_react.default.createElement(Favicon, {
55
+ const BoxedComponent = getIconCaseInsensitive({
56
+ search: maybeIconName,
57
+ object: providersBoxed
58
+ });
59
+ return /* @__PURE__ */ import_react.default.createElement(import_Flex.default, {
59
60
  width: sizes[size],
60
61
  height: sizes[size],
61
- src: getIconCaseInsensitive({ search: maybeIconName, object: favicons })
62
- });
62
+ borderRadius: 8,
63
+ overflow: "hidden"
64
+ }, /* @__PURE__ */ import_react.default.createElement(BoxedComponent, {
65
+ size: sizes[size]
66
+ }));
63
67
  }
64
68
  const Component = getIconCaseInsensitive({
65
69
  search: maybeIconName,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/components/asorted/Icon/ProviderIcon.tsx"],
4
- "sourcesContent": ["import * as providers from \"@ledgerhq/icons-ui/react/_ProvidersLogos/index\";\nimport * as favicons from \"./providerFaviconsIndex\";\n\nimport React from \"react\";\nimport styled from \"styled-components\";\n\nexport const sizes = {\n XXS: 16,\n XS: 24,\n S: 32,\n M: 40,\n L: 48,\n XL: 56,\n};\n\nexport type ProviderSizes = keyof typeof sizes;\n\nexport type Props = {\n name: string;\n size?: ProviderSizes;\n boxed?: boolean;\n};\n\nexport const iconNames = Array.from(\n Object.keys(providers).reduce((set, rawKey) => {\n const key = rawKey\n .replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, \"$1\")\n .replace(/(.+)(Ultra)+$/g, \"$1\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nconst Favicon = styled.img`\n border-radius: 8px;\n`;\n\nexport type IconGetterProps = {\n search: string;\n object: Record<string, React.ReactNode>;\n};\n\nconst getIconCaseInsensitive = ({ search, object }: IconGetterProps) => {\n const asLower = search.toLowerCase();\n const key = Object.keys(object).find((key) => key.toLowerCase() === asLower);\n return key ? object[key] : null;\n};\n\nconst ProviderIcon = ({ name, size = \"S\", boxed = false }: Props): JSX.Element | null => {\n const maybeIconName = `${name}`;\n\n if (boxed) {\n return (\n <Favicon\n width={sizes[size]}\n height={sizes[size]}\n src={getIconCaseInsensitive({ search: maybeIconName, object: favicons }) as string}\n />\n );\n }\n const Component = getIconCaseInsensitive({\n search: maybeIconName,\n object: providers,\n }) as React.ElementType;\n if (Component) {\n return <Component size={sizes[size]} />;\n }\n return null;\n};\n\nexport default ProviderIcon;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA2B;AAC3B,eAA0B;AAE1B,mBAAkB;AAClB,+BAAmB;AAEZ,MAAM,QAAQ;AAAA,EACnB,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA;AAWC,MAAM,YAAY,MAAM,KAC7B,OAAO,KAAK,WAAW,OAAO,CAAC,KAAK,WAAW;AAC7C,QAAM,MAAM,OACT,QAAQ,iDAAiD,MACzD,QAAQ,kBAAkB;AAC7B,MAAI,CAAC,IAAI,IAAI;AAAM,QAAI,IAAI;AAC3B,SAAO;AAAA,GACN,IAAI;AAGT,MAAM,UAAU,iCAAO;AAAA;AAAA;AASvB,MAAM,yBAAyB,CAAC,EAAE,QAAQ,aAA8B;AACtE,QAAM,UAAU,OAAO;AACvB,QAAM,MAAM,OAAO,KAAK,QAAQ,KAAK,CAAC,SAAQ,KAAI,kBAAkB;AACpE,SAAO,MAAM,OAAO,OAAO;AAAA;AAG7B,MAAM,eAAe,CAAC,EAAE,MAAM,OAAO,KAAK,QAAQ,YAAuC;AACvF,QAAM,gBAAgB,GAAG;AAEzB,MAAI,OAAO;AACT,WACE,mDAAC,SAAD;AAAA,MACE,OAAO,MAAM;AAAA,MACb,QAAQ,MAAM;AAAA,MACd,KAAK,uBAAuB,EAAE,QAAQ,eAAe,QAAQ;AAAA;AAAA;AAInE,QAAM,YAAY,uBAAuB;AAAA,IACvC,QAAQ;AAAA,IACR,QAAQ;AAAA;AAEV,MAAI,WAAW;AACb,WAAO,mDAAC,WAAD;AAAA,MAAW,MAAM,MAAM;AAAA;AAAA;AAEhC,SAAO;AAAA;AAGT,IAAO,uBAAQ;",
4
+ "sourcesContent": ["import * as providers from \"@ledgerhq/icons-ui/react/Providers/index\";\nimport * as providersBoxed from \"@ledgerhq/icons-ui/react/ProvidersBoxed/index\";\n\nimport React from \"react\";\nimport FlexBox from \"../../layout/Flex\";\n\nexport const sizes = {\n XXS: 16,\n XS: 24,\n S: 32,\n M: 40,\n L: 48,\n XL: 56,\n};\n\nexport type ProviderSizes = keyof typeof sizes;\n\nexport type Props = {\n name: string;\n size?: ProviderSizes;\n boxed?: boolean;\n};\n\nexport const iconNames = Array.from(\n Object.keys(providers).reduce((set, rawKey) => {\n const key = rawKey\n .replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, \"$1\")\n .replace(/(.+)(Ultra)+$/g, \"$1\")\n .replace(/^_/, \"\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nexport type IconGetterProps = {\n search: string;\n object: Record<string, React.ReactNode>;\n};\n\nconst getIconCaseInsensitive = ({ search, object }: IconGetterProps) => {\n const asLower = search.toLowerCase();\n const key = Object.keys(object).find((key) => key.toLowerCase().replace(/^_/, \"\") === asLower);\n return key ? object[key] : null;\n};\n\nconst ProviderIcon = ({ name, size = \"S\", boxed = false }: Props): JSX.Element | null => {\n const maybeIconName = `${name}`;\n\n if (boxed) {\n const BoxedComponent = getIconCaseInsensitive({\n search: maybeIconName,\n object: providersBoxed,\n }) as React.ElementType;\n return (\n <FlexBox width={sizes[size]} height={sizes[size]} borderRadius={8} overflow={\"hidden\"}>\n <BoxedComponent size={sizes[size]} />\n </FlexBox>\n );\n }\n const Component = getIconCaseInsensitive({\n search: maybeIconName,\n object: providers,\n }) as React.ElementType;\n if (Component) {\n return <Component size={sizes[size]} />;\n }\n return null;\n};\n\nexport default ProviderIcon;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA2B;AAC3B,qBAAgC;AAEhC,mBAAkB;AAClB,kBAAoB;AAEb,MAAM,QAAQ;AAAA,EACnB,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA;AAWC,MAAM,YAAY,MAAM,KAC7B,OAAO,KAAK,WAAW,OAAO,CAAC,KAAK,WAAW;AAC7C,QAAM,MAAM,OACT,QAAQ,iDAAiD,MACzD,QAAQ,kBAAkB,MAC1B,QAAQ,MAAM;AACjB,MAAI,CAAC,IAAI,IAAI;AAAM,QAAI,IAAI;AAC3B,SAAO;AAAA,GACN,IAAI;AAQT,MAAM,yBAAyB,CAAC,EAAE,QAAQ,aAA8B;AACtE,QAAM,UAAU,OAAO;AACvB,QAAM,MAAM,OAAO,KAAK,QAAQ,KAAK,CAAC,SAAQ,KAAI,cAAc,QAAQ,MAAM,QAAQ;AACtF,SAAO,MAAM,OAAO,OAAO;AAAA;AAG7B,MAAM,eAAe,CAAC,EAAE,MAAM,OAAO,KAAK,QAAQ,YAAuC;AACvF,QAAM,gBAAgB,GAAG;AAEzB,MAAI,OAAO;AACT,UAAM,iBAAiB,uBAAuB;AAAA,MAC5C,QAAQ;AAAA,MACR,QAAQ;AAAA;AAEV,WACE,mDAAC,qBAAD;AAAA,MAAS,OAAO,MAAM;AAAA,MAAO,QAAQ,MAAM;AAAA,MAAO,cAAc;AAAA,MAAG,UAAU;AAAA,OAC3E,mDAAC,gBAAD;AAAA,MAAgB,MAAM,MAAM;AAAA;AAAA;AAIlC,QAAM,YAAY,uBAAuB;AAAA,IACvC,QAAQ;AAAA,IACR,QAAQ;AAAA;AAEV,MAAI,WAAW;AACb,WAAO,mDAAC,WAAD;AAAA,MAAW,MAAM,MAAM;AAAA;AAAA;AAEhC,SAAO;AAAA;AAGT,IAAO,uBAAQ;",
6
6
  "names": []
7
7
  }
@@ -2,7 +2,7 @@
2
2
  import { ChartProps } from "react-chartjs-2";
3
3
  import "chartjs-adapter-moment";
4
4
  import type { Item, timeOptions } from "./types";
5
- export declare type Props = Omit<ChartProps, "type" | "data" | "options"> & {
5
+ export type Props = Omit<ChartProps, "type" | "data" | "options"> & {
6
6
  data: Array<Item>;
7
7
  color: string;
8
8
  variant?: "default" | "small";
@@ -1,11 +1,11 @@
1
- export declare type Item = {
1
+ export type Item = {
2
2
  date: Date;
3
3
  value?: number | string;
4
4
  } & {
5
5
  [key: string]: number | string;
6
6
  };
7
- declare type Unit = "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
8
- export declare type timeOptions = {
7
+ type Unit = "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
8
+ export type timeOptions = {
9
9
  unit?: Unit;
10
10
  displayFormats?: {
11
11
  [unit in Unit]?: string;
@@ -11,7 +11,7 @@ export interface ContainerProps extends ContainerExtraProps, GridProps {
11
11
  export declare const ExtraRowContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
12
12
  gridColumn: string;
13
13
  } & GridColumnProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>, "gridColumn">;
14
- export declare type RowContainerProps = {
14
+ export type RowContainerProps = {
15
15
  rowIndex: number;
16
16
  };
17
17
  export declare const RowContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
@@ -1,5 +1,5 @@
1
1
  import { Column } from "./index";
2
- export declare type BalanceElement = {
2
+ export type BalanceElement = {
3
3
  currency: string;
4
4
  amount: number;
5
5
  counterValue: number;
@@ -11,7 +11,7 @@ export declare const balance: {
11
11
  data: BalanceElement[];
12
12
  columns: Column<BalanceElement>[];
13
13
  };
14
- export declare type Account = {
14
+ export type Account = {
15
15
  name: string;
16
16
  currency: {
17
17
  name: string;
@@ -2,9 +2,9 @@ import React from "react";
2
2
  import { BorderProps } from "styled-system";
3
3
  import { TextProps } from "../asorted/Text";
4
4
  import { BaseStyledProps } from "../styled";
5
- export declare type Size = "large" | "medium" | "small";
6
- export declare type Type = "plain" | "opacity" | "outlined" | "outlinedOpacity";
7
- export declare type TagProps = BaseStyledProps & BorderProps & React.PropsWithChildren<{
5
+ export type Size = "large" | "medium" | "small";
6
+ export type Type = "plain" | "opacity" | "outlined" | "outlinedOpacity";
7
+ export type TagProps = BaseStyledProps & BorderProps & React.PropsWithChildren<{
8
8
  /**
9
9
  * Changes the appearance based on the active state.
10
10
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type Props = {
2
+ export type Props = {
3
3
  variant: "default" | "light";
4
4
  };
5
5
  declare const _default: ({ variant }: Props) => JSX.Element;
@@ -2,11 +2,11 @@ import React from "react";
2
2
  export declare const DEFAULT_BOX_SIZE = 40;
3
3
  export declare const DEFAULT_ICON_SIZE = 16;
4
4
  export declare const DEFAULT_BADGE_SIZE = 20;
5
- export declare type IconProps = {
5
+ export type IconProps = {
6
6
  size?: number;
7
7
  color?: string;
8
8
  };
9
- export declare type IconBoxProps = {
9
+ export type IconBoxProps = {
10
10
  /**
11
11
  * Component that takes `{size?: number; color?: string}` as props. Will be rendered at the top right with the size provided in `badgeSize` or a default size.
12
12
  */
@@ -29,7 +29,7 @@ export declare type IconBoxProps = {
29
29
  */
30
30
  size?: number;
31
31
  };
32
- export declare type BoxedIconProps = IconBoxProps & {
32
+ export type BoxedIconProps = IconBoxProps & {
33
33
  /**
34
34
  * Component that takes `{size?: number; color?: string}` as props. Will be rendered at the top right with the size provided in `iconSize` or a default size.
35
35
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type Props = {
2
+ export type Props = {
3
3
  name: string;
4
4
  size?: number;
5
5
  color?: string;
@@ -7,8 +7,8 @@ export declare const sizes: {
7
7
  L: number;
8
8
  XL: number;
9
9
  };
10
- export declare type FlagsSizes = keyof typeof sizes;
11
- export declare type Props = {
10
+ export type FlagsSizes = keyof typeof sizes;
11
+ export type Props = {
12
12
  name: string;
13
13
  size?: FlagsSizes;
14
14
  };
@@ -1,4 +1,4 @@
1
- import * as flags from "@ledgerhq/icons-ui/react/_Flags/index";
1
+ import * as flags from "@ledgerhq/icons-ui/react/Flags/index";
2
2
  import React from "react";
3
3
  export const sizes = {
4
4
  XXS: 16,
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type Props = {
2
+ export type Props = {
3
3
  name: string;
4
4
  size?: number;
5
5
  weight?: "Regular" | "Thin" | "Light" | "Medium" | "UltraLight";
@@ -7,13 +7,13 @@ export declare const sizes: {
7
7
  L: number;
8
8
  XL: number;
9
9
  };
10
- export declare type PaymentIconSizes = keyof typeof sizes;
11
- export declare type Props = {
10
+ export type PaymentIconSizes = keyof typeof sizes;
11
+ export type Props = {
12
12
  name: string;
13
13
  size?: PaymentIconSizes;
14
14
  };
15
15
  export declare const iconNames: string[];
16
- export declare type IconGetterProps = {
16
+ export type IconGetterProps = {
17
17
  search: string;
18
18
  object: Record<string, React.ReactNode>;
19
19
  };
@@ -1,4 +1,4 @@
1
- import * as paymentProviders from "@ledgerhq/icons-ui/react/_Payment/index";
1
+ import * as paymentProviders from "@ledgerhq/icons-ui/react/Payment/index";
2
2
  import React from "react";
3
3
  export const sizes = {
4
4
  XXS: 16,
@@ -7,14 +7,14 @@ export declare const sizes: {
7
7
  L: number;
8
8
  XL: number;
9
9
  };
10
- export declare type ProviderSizes = keyof typeof sizes;
11
- export declare type Props = {
10
+ export type ProviderSizes = keyof typeof sizes;
11
+ export type Props = {
12
12
  name: string;
13
13
  size?: ProviderSizes;
14
14
  boxed?: boolean;
15
15
  };
16
16
  export declare const iconNames: string[];
17
- export declare type IconGetterProps = {
17
+ export type IconGetterProps = {
18
18
  search: string;
19
19
  object: Record<string, React.ReactNode>;
20
20
  };
@@ -1,7 +1,7 @@
1
- import * as providers from "@ledgerhq/icons-ui/react/_ProvidersLogos/index";
2
- import * as favicons from "./providerFaviconsIndex";
1
+ import * as providers from "@ledgerhq/icons-ui/react/Providers/index";
2
+ import * as providersBoxed from "@ledgerhq/icons-ui/react/ProvidersBoxed/index";
3
3
  import React from "react";
4
- import styled from "styled-components";
4
+ import FlexBox from "../../layout/Flex";
5
5
  export const sizes = {
6
6
  XXS: 16,
7
7
  XS: 24,
@@ -13,23 +13,26 @@ export const sizes = {
13
13
  export const iconNames = Array.from(Object.keys(providers).reduce((set, rawKey) => {
14
14
  const key = rawKey
15
15
  .replace(/(.+)(Regular|Light|UltraLight|Thin|Medium)+$/g, "$1")
16
- .replace(/(.+)(Ultra)+$/g, "$1");
16
+ .replace(/(.+)(Ultra)+$/g, "$1")
17
+ .replace(/^_/, "");
17
18
  if (!set.has(key))
18
19
  set.add(key);
19
20
  return set;
20
21
  }, new Set()));
21
- const Favicon = styled.img `
22
- border-radius: 8px;
23
- `;
24
22
  const getIconCaseInsensitive = ({ search, object }) => {
25
23
  const asLower = search.toLowerCase();
26
- const key = Object.keys(object).find((key) => key.toLowerCase() === asLower);
24
+ const key = Object.keys(object).find((key) => key.toLowerCase().replace(/^_/, "") === asLower);
27
25
  return key ? object[key] : null;
28
26
  };
29
27
  const ProviderIcon = ({ name, size = "S", boxed = false }) => {
30
28
  const maybeIconName = `${name}`;
31
29
  if (boxed) {
32
- return (React.createElement(Favicon, { width: sizes[size], height: sizes[size], src: getIconCaseInsensitive({ search: maybeIconName, object: favicons }) }));
30
+ const BoxedComponent = getIconCaseInsensitive({
31
+ search: maybeIconName,
32
+ object: providersBoxed,
33
+ });
34
+ return (React.createElement(FlexBox, { width: sizes[size], height: sizes[size], borderRadius: 8, overflow: "hidden" },
35
+ React.createElement(BoxedComponent, { size: sizes[size] })));
33
36
  }
34
37
  const Component = getIconCaseInsensitive({
35
38
  search: maybeIconName,
@@ -1,7 +1,7 @@
1
1
  import { BaseStyledProps } from "../../styled";
2
2
  import { TextVariants } from "../../../styles/theme";
3
- declare type FontFamilies = "Inter|ExtraLight" | "Inter|Light" | "Inter|Regular" | "Inter|Medium" | "Inter|SemiBold" | "Inter|Bold" | "Inter|ExtraBold" | "Alpha|Medium";
4
- declare type WhiteSpace = "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
3
+ type FontFamilies = "Inter|ExtraLight" | "Inter|Light" | "Inter|Regular" | "Inter|Medium" | "Inter|SemiBold" | "Inter|Bold" | "Inter|ExtraBold" | "Alpha|Medium";
4
+ type WhiteSpace = "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
5
5
  export interface TextProps extends BaseStyledProps {
6
6
  fontFamily?: string;
7
7
  ff?: FontFamilies;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type Props = {
2
+ export type Props = {
3
3
  onClick: () => void;
4
4
  title: string;
5
5
  description: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Props as SlideProps } from "./Slide";
3
- export declare type Props = {
3
+ export type Props = {
4
4
  timeout?: number;
5
5
  queue: SlideProps[];
6
6
  isDismissed: boolean;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { BaseStyledProps } from "../../styled";
3
3
  import { BordersProps } from "styled-system";
4
- export declare type ButtonVariants = "main" | "shade" | "error" | "color" | "neutral";
5
- export declare type IconPosition = "right" | "left";
4
+ export type ButtonVariants = "main" | "shade" | "error" | "color" | "neutral";
5
+ export type IconPosition = "right" | "left";
6
6
  interface BaseProps extends BaseStyledProps, BordersProps {
7
7
  ff?: string;
8
8
  color?: string;
@@ -39,7 +39,7 @@ declare const ButtonWithRef: {
39
39
  onToggle?: ((arg0: boolean) => void) | undefined;
40
40
  }, "overflow" | "p" | "style" | "key" | "color" | "children" | "onClick" | "variant" | "size" | "rowGap" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontSize" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "top" | "verticalAlign" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "margin" | "outline" | "padding" | "disabled" | "onToggle" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "bg" | "borderX" | "borderY" | "Icon" | "iconSize" | "ff" | "iconPosition" | "iconButton" | "iconName"> & React.RefAttributes<HTMLButtonElement>>;
41
41
  };
42
- export declare type ButtonExpandProps = React.PropsWithChildren<ButtonProps & {
42
+ export type ButtonExpandProps = React.PropsWithChildren<ButtonProps & {
43
43
  onToggle?: (arg0: boolean) => void;
44
44
  }>;
45
45
  export declare function ButtonExpand({ onToggle, onClick, ...props }: ButtonExpandProps, ref?: React.ForwardedRef<HTMLButtonElement>): React.ReactElement;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { TextProps } from "../../asorted/Text";
3
3
  import { BaseStyledProps } from "../../styled";
4
- export declare type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & BaseStyledProps & {
4
+ export type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & BaseStyledProps & {
5
5
  /**
6
6
  * Component that takes `{size: number; color?: string}` as props
7
7
  */
@@ -1,12 +1,12 @@
1
1
  import { TypographyProps } from "styled-system";
2
2
  import React, { InputHTMLAttributes } from "react";
3
- declare type ValueType = HTMLInputElement["value"];
4
- export declare type CommonProps = InputHTMLAttributes<HTMLInputElement> & TypographyProps & {
3
+ type ValueType = HTMLInputElement["value"];
4
+ export type CommonProps = InputHTMLAttributes<HTMLInputElement> & TypographyProps & {
5
5
  disabled?: boolean;
6
6
  error?: string;
7
7
  warning?: string;
8
8
  };
9
- export declare type InputProps<T = ValueType> = Omit<CommonProps, "value" | "onChange"> & {
9
+ export type InputProps<T = ValueType> = Omit<CommonProps, "value" | "onChange"> & {
10
10
  value: T;
11
11
  onChange?: (value: T) => void;
12
12
  onChangeEvent?: InputHTMLAttributes<HTMLInputElement>["onChange"];
@@ -32,7 +32,7 @@ export declare type InputProps<T = ValueType> = Omit<CommonProps, "value" | "onC
32
32
  */
33
33
  deserialize?: (value: ValueType) => T;
34
34
  };
35
- export declare type InputContainerProps = React.ComponentProps<typeof InputContainer>;
35
+ export type InputContainerProps = React.ComponentProps<typeof InputContainer>;
36
36
  export declare const InputContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Partial<CommonProps> & {
37
37
  focus?: boolean | undefined;
38
38
  }, never>;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type CheckboxProps = {
2
+ export type CheckboxProps = {
3
3
  isDisabled?: boolean;
4
4
  isChecked: boolean;
5
5
  variant?: "default" | "success" | "error";
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { GroupBase } from "react-select";
3
3
  import { Props as SelectInputProps } from "../../form/SelectInput";
4
- export declare type Props<O> = SelectInputProps<O, false, GroupBase<O>> & {
4
+ export type Props<O> = SelectInputProps<O, false, GroupBase<O>> & {
5
5
  label: string;
6
6
  };
7
7
  export default function Dropdown<O>(props: Props<O>): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  export declare const placements: readonly ["bottom-start", "bottom", "bottom-end"];
3
- declare type Placement = typeof placements[number];
4
- export declare type Props = {
3
+ type Placement = typeof placements[number];
4
+ export type Props = {
5
5
  /**
6
6
  * Label of the dropdown button, displayed before the dropdown icon.
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { InputProps } from "../BaseInput";
3
- export declare type Props = InputProps & {
3
+ export type Props = InputProps & {
4
4
  legend: string;
5
5
  };
6
6
  declare const _default: React.ForwardRefExoticComponent<Omit<import("../BaseInput").CommonProps, "onChange" | "value"> & {
@@ -1,6 +1,6 @@
1
1
  import { InputHTMLAttributes } from "react";
2
- declare type InputAttributes = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "name">;
3
- export declare type RadioElementProps = InputAttributes & {
2
+ type InputAttributes = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "name">;
3
+ export type RadioElementProps = InputAttributes & {
4
4
  variant?: "default" | "main" | "success" | "error";
5
5
  label: string;
6
6
  outlined?: boolean;
@@ -1,12 +1,12 @@
1
1
  import React, { InputHTMLAttributes } from "react";
2
2
  import { FlexBoxProps } from "../../layout/Flex";
3
- declare type ElementState = {
3
+ type ElementState = {
4
4
  checked: boolean;
5
5
  disabled: boolean | undefined;
6
6
  };
7
7
  export declare const Label: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../../asorted/Text").TextProps & ElementState, keyof import("../../asorted/Text").TextProps>;
8
- declare type InputAttributes = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "name">;
9
- export declare type RadioListElementProps = InputAttributes & {
8
+ type InputAttributes = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "name">;
9
+ export type RadioListElementProps = InputAttributes & {
10
10
  /**
11
11
  * The string or component that will be rendered as label of this radio element
12
12
  * If it's a component, it's rendered with these props: { checked:boolean; disabled:boolean }
@@ -1,6 +1,6 @@
1
1
  import React, { InputHTMLAttributes } from "react";
2
2
  import { FlexBoxProps } from "../../layout/Flex";
3
- export declare type RadioProps = {
3
+ export type RadioProps = {
4
4
  currentValue?: InputHTMLAttributes<HTMLInputElement>["value"];
5
5
  onChange: (value: InputHTMLAttributes<HTMLInputElement>["value"]) => void;
6
6
  children: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { GroupBase, StylesConfig, OptionProps } from "react-select";
3
3
  export declare function getStyles<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>>(): NonNullable<StylesConfig<O, M, G>["option"]>;
4
- export declare type ExtraProps<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>> = {
4
+ export type ExtraProps<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>> = {
5
5
  render?: (props: React.PropsWithChildren<OptionProps<O, M, G>>) => React.ReactNode;
6
6
  };
7
- export declare type Props<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>> = OptionProps<O, M, G> & ExtraProps<O, M, G>;
7
+ export type Props<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>> = OptionProps<O, M, G> & ExtraProps<O, M, G>;
8
8
  export declare function Option<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>>(props: Props<O, M, G>): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { GroupBase, StylesConfig, ValueContainerProps } from "react-select";
3
3
  export declare function getStyles<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>>(): StylesConfig<O, M, G>["valueContainer"];
4
- declare type ExtraProps<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>> = {
4
+ type ExtraProps<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>> = {
5
5
  render?: (props: React.PropsWithChildren<ValueContainerProps<O, M, G>>) => React.ReactNode;
6
6
  };
7
7
  export declare function ValueContainer<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>>(props: ValueContainerProps<O, M, G> & ExtraProps<O, M, G>): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { GroupBase, MenuListProps } from "react-select";
3
- export declare type RowProps = React.PropsWithChildren<{
3
+ export type RowProps = React.PropsWithChildren<{
4
4
  style: React.CSSProperties;
5
5
  }>;
6
6
  export declare const VirtualRow: React.MemoExoticComponent<({ style, children }: RowProps) => JSX.Element>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Props as SelectProps, ControlProps, IndicatorsContainerProps, GroupBase, StylesConfig } from "react-select";
3
- export declare type SelfProps<O, M extends boolean, G extends GroupBase<O>> = {
3
+ export type SelfProps<O, M extends boolean, G extends GroupBase<O>> = {
4
4
  error?: string;
5
5
  renderLeft?: (props: ControlProps<O, M, G>) => React.ReactNode;
6
6
  renderRight?: (props: IndicatorsContainerProps<O, M, G>) => React.ReactNode;
@@ -8,7 +8,7 @@ export declare type SelfProps<O, M extends boolean, G extends GroupBase<O>> = {
8
8
  unwrapped?: boolean;
9
9
  extendStyles?: (styles: StylesConfig<O, M, G>) => StylesConfig<O, M, G>;
10
10
  };
11
- export declare type Props<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>> = SelectProps<O, M, G> & SelfProps<O, M, G>;
11
+ export type Props<O = unknown, M extends boolean = false, G extends GroupBase<O> = GroupBase<O>> = SelectProps<O, M, G> & SelfProps<O, M, G>;
12
12
  declare function SelectInput<O, M extends boolean, G extends GroupBase<O>>({ error, rowHeight, unwrapped, extendStyles, ...props }: Props<O, M, G>): JSX.Element;
13
13
  declare const _default: typeof SelectInput;
14
14
  export default _default;
@@ -1,17 +1,17 @@
1
1
  import React from "react";
2
- declare type Callbacks = {
2
+ type Callbacks = {
3
3
  onFocus: <F>(event: React.FocusEvent<F>) => void;
4
4
  onBlur: <B>(event: React.FocusEvent<B>) => void;
5
5
  };
6
- declare type ExtraRenderProps = {
6
+ type ExtraRenderProps = {
7
7
  renderLeft: (p: StateProps & Callbacks) => React.ReactNode;
8
8
  renderRight: (p: StateProps & Callbacks) => React.ReactNode;
9
9
  };
10
- export declare type StateProps = {
10
+ export type StateProps = {
11
11
  error?: string | undefined;
12
12
  disabled?: boolean;
13
13
  isDisabled?: boolean;
14
14
  };
15
- export declare type Props = StateProps & ExtraRenderProps;
15
+ export type Props = StateProps & ExtraRenderProps;
16
16
  export default function SplitInput(props: Props): JSX.Element;
17
17
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type SwitchProps = {
2
+ export type SwitchProps = {
3
3
  name: string;
4
4
  checked: boolean;
5
5
  onChange: (e: React.FormEvent<HTMLDivElement>) => void;