@ledgerhq/lumen-ui-rnative 0.1.32 → 0.1.34

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 (77) hide show
  1. package/dist/module/lib/Components/BaseTag/BaseTag.js +122 -0
  2. package/dist/module/lib/Components/BaseTag/BaseTag.js.map +1 -0
  3. package/dist/module/lib/Components/BaseTag/BaseTag.test.js +144 -0
  4. package/dist/module/lib/Components/BaseTag/BaseTag.test.js.map +1 -0
  5. package/dist/module/lib/Components/BaseTag/index.js +5 -0
  6. package/dist/module/lib/Components/BaseTag/index.js.map +1 -0
  7. package/dist/module/lib/Components/BaseTag/types.js +4 -0
  8. package/dist/module/lib/Components/BaseTag/types.js.map +1 -0
  9. package/dist/module/lib/Components/MediaImage/MediaImage.js +5 -1
  10. package/dist/module/lib/Components/MediaImage/MediaImage.js.map +1 -1
  11. package/dist/module/lib/Components/MediaTag/MediaTag.js +39 -0
  12. package/dist/module/lib/Components/MediaTag/MediaTag.js.map +1 -0
  13. package/dist/module/lib/Components/MediaTag/MediaTag.mdx +161 -0
  14. package/dist/module/lib/Components/MediaTag/MediaTag.stories.js +122 -0
  15. package/dist/module/lib/Components/MediaTag/MediaTag.stories.js.map +1 -0
  16. package/dist/module/lib/Components/MediaTag/MediaTag.test.js +30 -0
  17. package/dist/module/lib/Components/MediaTag/MediaTag.test.js.map +1 -0
  18. package/dist/module/lib/Components/MediaTag/index.js +5 -0
  19. package/dist/module/lib/Components/MediaTag/index.js.map +1 -0
  20. package/dist/module/lib/Components/MediaTag/types.js +4 -0
  21. package/dist/module/lib/Components/MediaTag/types.js.map +1 -0
  22. package/dist/module/lib/Components/Tag/Tag.js +10 -95
  23. package/dist/module/lib/Components/Tag/Tag.js.map +1 -1
  24. package/dist/module/lib/Components/Tag/Tag.mdx +1 -79
  25. package/dist/module/lib/Components/Tag/Tag.stories.js +8 -1
  26. package/dist/module/lib/Components/Tag/Tag.stories.js.map +1 -1
  27. package/dist/module/lib/Components/Tag/Tag.test.js +69 -0
  28. package/dist/module/lib/Components/Tag/Tag.test.js.map +1 -0
  29. package/dist/module/lib/Components/index.js +1 -0
  30. package/dist/module/lib/Components/index.js.map +1 -1
  31. package/dist/module/lib/Symbols/Icons/Lightbulb.js +50 -0
  32. package/dist/module/lib/Symbols/Icons/Lightbulb.js.map +1 -0
  33. package/dist/module/lib/Symbols/index.js +1 -0
  34. package/dist/module/lib/Symbols/index.js.map +1 -1
  35. package/dist/typescript/src/lib/Components/BaseTag/BaseTag.d.ts +3 -0
  36. package/dist/typescript/src/lib/Components/BaseTag/BaseTag.d.ts.map +1 -0
  37. package/dist/typescript/src/lib/Components/BaseTag/index.d.ts +3 -0
  38. package/dist/typescript/src/lib/Components/BaseTag/index.d.ts.map +1 -0
  39. package/dist/typescript/src/lib/Components/BaseTag/types.d.ts +10 -0
  40. package/dist/typescript/src/lib/Components/BaseTag/types.d.ts.map +1 -0
  41. package/dist/typescript/src/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
  42. package/dist/typescript/src/lib/Components/MediaTag/MediaTag.d.ts +26 -0
  43. package/dist/typescript/src/lib/Components/MediaTag/MediaTag.d.ts.map +1 -0
  44. package/dist/typescript/src/lib/Components/MediaTag/index.d.ts +3 -0
  45. package/dist/typescript/src/lib/Components/MediaTag/index.d.ts.map +1 -0
  46. package/dist/typescript/src/lib/Components/MediaTag/types.d.ts +10 -0
  47. package/dist/typescript/src/lib/Components/MediaTag/types.d.ts.map +1 -0
  48. package/dist/typescript/src/lib/Components/Tag/Tag.d.ts +1 -1
  49. package/dist/typescript/src/lib/Components/Tag/Tag.d.ts.map +1 -1
  50. package/dist/typescript/src/lib/Components/Tag/types.d.ts +1 -1
  51. package/dist/typescript/src/lib/Components/Tag/types.d.ts.map +1 -1
  52. package/dist/typescript/src/lib/Components/index.d.ts +1 -0
  53. package/dist/typescript/src/lib/Components/index.d.ts.map +1 -1
  54. package/dist/typescript/src/lib/Symbols/Icons/Lightbulb.d.ts +35 -0
  55. package/dist/typescript/src/lib/Symbols/Icons/Lightbulb.d.ts.map +1 -0
  56. package/dist/typescript/src/lib/Symbols/index.d.ts +1 -0
  57. package/dist/typescript/src/lib/Symbols/index.d.ts.map +1 -1
  58. package/package.json +2 -2
  59. package/src/lib/Components/BaseTag/BaseTag.test.tsx +137 -0
  60. package/src/lib/Components/BaseTag/BaseTag.tsx +152 -0
  61. package/src/lib/Components/BaseTag/index.ts +2 -0
  62. package/src/lib/Components/BaseTag/types.ts +11 -0
  63. package/src/lib/Components/MediaImage/MediaImage.tsx +5 -1
  64. package/src/lib/Components/MediaTag/MediaTag.mdx +161 -0
  65. package/src/lib/Components/MediaTag/MediaTag.stories.tsx +112 -0
  66. package/src/lib/Components/MediaTag/MediaTag.test.tsx +27 -0
  67. package/src/lib/Components/MediaTag/MediaTag.tsx +36 -0
  68. package/src/lib/Components/MediaTag/index.ts +2 -0
  69. package/src/lib/Components/MediaTag/types.ts +10 -0
  70. package/src/lib/Components/Tag/Tag.mdx +1 -79
  71. package/src/lib/Components/Tag/Tag.stories.tsx +3 -0
  72. package/src/lib/Components/Tag/Tag.test.tsx +51 -0
  73. package/src/lib/Components/Tag/Tag.tsx +12 -119
  74. package/src/lib/Components/Tag/types.ts +2 -1
  75. package/src/lib/Components/index.ts +1 -0
  76. package/src/lib/Symbols/Icons/Lightbulb.tsx +45 -0
  77. package/src/lib/Symbols/index.ts +1 -0
@@ -13,7 +13,8 @@ export type TagProps = {
13
13
  | 'accent-subtle'
14
14
  | 'success'
15
15
  | 'error'
16
- | 'warning';
16
+ | 'warning'
17
+ | 'white';
17
18
  /**
18
19
  * The icon of the tag.
19
20
  */
@@ -23,6 +23,7 @@ export * from './MediaBanner';
23
23
  export * from './MediaButton';
24
24
  export * from './MediaCard';
25
25
  export * from './MediaImage';
26
+ export * from './MediaTag';
26
27
  export * from './NavBar';
27
28
  export * from './OptionList';
28
29
  export * from './PageIndicator';
@@ -0,0 +1,45 @@
1
+ import Svg, { Path } from 'react-native-svg';
2
+ import createIcon from '../../Components/Icon/createIcon';
3
+
4
+ /**
5
+ * Lightbulb icon component for React Native.
6
+ *
7
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
8
+ * to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
9
+ * and additional size variants defined in the Icon component.
10
+ *
11
+ * @component
12
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
13
+ * @param {string} [color] - The color of the icon.
14
+ * @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
15
+ *
16
+ * @example
17
+ * // Basic usage with default size (24px)
18
+ * import { Lightbulb } from '@ledgerhq/lumen-ui-rnative/symbols';
19
+ *
20
+ * <Lightbulb />
21
+ *
22
+ * @example
23
+ * // With custom size and style
24
+ * <Lightbulb size={40} color="warning" lx={{ marginTop: 's4' }} />
25
+ *
26
+ * @example
27
+ * // Used within a Button component
28
+ * import { Button } from '@ledgerhq/lumen-ui-rnative';
29
+ *
30
+ * <Button icon={Lightbulb} size="md">
31
+ * Click me
32
+ * </Button>
33
+ */
34
+ export const Lightbulb = createIcon(
35
+ 'Lightbulb',
36
+ <Svg width={24} height={24} fill='currentColor' viewBox='0 0 24 24'>
37
+ <Path
38
+ stroke='currentColor'
39
+ strokeLinecap='round'
40
+ strokeLinejoin='round'
41
+ strokeWidth={1.5}
42
+ d='M15 15.19H9M20 5l1.19-1.19M4 15l-1.19 1.19M5 4 3.81 2.81M20 15l1.19 1.19M21 10h1.69M1.31 10H3m6 8h5.87m-6.33-3.104c-1.78-1.26-2.85-3.45-2.47-5.86.4-2.607 2.57-4.688 5.2-4.995a5.996 5.996 0 0 1 6.725 5.95c0 2.02-1.01 3.81-2.55 4.898-.28.19-.46.49-.46.83v2.76a2.5 2.5 0 0 1-2.5 2.5h-1c-1.39 0-2.5-1.12-2.5-2.5v-2.763c0-.35-.19-.65-.46-.85z'
43
+ />
44
+ </Svg>,
45
+ );
@@ -139,6 +139,7 @@ export { LedgerLogo } from './Icons/LedgerLogo';
139
139
  export { Legal } from './Icons/Legal';
140
140
  export { LifeRing } from './Icons/LifeRing';
141
141
  export { LifeRingFill } from './Icons/LifeRingFill';
142
+ export { Lightbulb } from './Icons/Lightbulb';
142
143
  export { Link } from './Icons/Link';
143
144
  export { Linkedin } from './Icons/Linkedin';
144
145
  export { Linux } from './Icons/Linux';