@popsure/dirty-swan 0.33.5 → 0.34.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 (100) hide show
  1. package/dist/cjs/index.js +15 -15
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/cards/cardButton/index.d.ts +8 -8
  4. package/dist/cjs/lib/components/cards/cardButton/index.stories.d.ts +39 -0
  5. package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -12
  6. package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +55 -0
  7. package/dist/cjs/lib/components/cards/cardWithTopIcon/index.d.ts +5 -11
  8. package/dist/cjs/lib/components/cards/cardWithTopIcon/index.stories.d.ts +59 -0
  9. package/dist/cjs/lib/components/cards/cardWithTopLeftIcon/index.d.ts +6 -12
  10. package/dist/cjs/lib/components/cards/cardWithTopLeftIcon/index.stories.d.ts +49 -0
  11. package/dist/cjs/lib/components/cards/index.d.ts +5 -5
  12. package/dist/cjs/lib/components/cards/infoCard/index.d.ts +4 -10
  13. package/dist/cjs/lib/components/cards/infoCard/index.stories.d.ts +47 -0
  14. package/dist/cjs/lib/components/input/index.d.ts +4 -5
  15. package/dist/cjs/lib/components/input/input.stories.d.ts +90 -0
  16. package/dist/cjs/lib/components/input/stories/config.d.ts +71 -0
  17. package/dist/cjs/lib/index.d.ts +1 -1
  18. package/dist/esm/components/autocompleteAddress/index.js +1 -1
  19. package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
  20. package/dist/esm/components/cards/cardButton/index.js +1 -1
  21. package/dist/esm/components/cards/cardButton/index.stories.js +49 -0
  22. package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -0
  23. package/dist/esm/components/cards/cardWithLeftIcon/index.js +1 -1
  24. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js +64 -0
  25. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js.map +1 -0
  26. package/dist/esm/components/cards/cardWithTopIcon/index.js +1 -1
  27. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js +68 -0
  28. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js.map +1 -0
  29. package/dist/esm/components/cards/cardWithTopLeftIcon/index.js +1 -1
  30. package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js +57 -0
  31. package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js.map +1 -0
  32. package/dist/esm/components/cards/index.js +9 -9
  33. package/dist/esm/components/cards/index.js.map +1 -1
  34. package/dist/esm/components/cards/infoCard/index.js +1 -1
  35. package/dist/esm/components/cards/infoCard/index.stories.js +58 -0
  36. package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -0
  37. package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +1 -1
  38. package/dist/esm/components/comparisonTable/components/TableArrows/index.js +1 -1
  39. package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +1 -1
  40. package/dist/esm/components/input/autoSuggestInput/index.js +1 -1
  41. package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
  42. package/dist/esm/components/input/currency/index.js +1 -1
  43. package/dist/esm/components/input/currency/index.js.map +1 -1
  44. package/dist/esm/components/input/iban/index.js +1 -1
  45. package/dist/esm/components/input/iban/index.js.map +1 -1
  46. package/dist/esm/components/input/index.js +1 -1
  47. package/dist/esm/components/input/index.js.map +1 -1
  48. package/dist/esm/components/input/input.stories.js +85 -0
  49. package/dist/esm/components/input/input.stories.js.map +1 -0
  50. package/dist/esm/index-47663d39.js.map +1 -1
  51. package/dist/esm/index.js +1 -1
  52. package/dist/esm/lib/components/cards/cardButton/index.d.ts +8 -8
  53. package/dist/esm/lib/components/cards/cardButton/index.stories.d.ts +39 -0
  54. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -12
  55. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +55 -0
  56. package/dist/esm/lib/components/cards/cardWithTopIcon/index.d.ts +5 -11
  57. package/dist/esm/lib/components/cards/cardWithTopIcon/index.stories.d.ts +59 -0
  58. package/dist/esm/lib/components/cards/cardWithTopLeftIcon/index.d.ts +6 -12
  59. package/dist/esm/lib/components/cards/cardWithTopLeftIcon/index.stories.d.ts +49 -0
  60. package/dist/esm/lib/components/cards/index.d.ts +5 -5
  61. package/dist/esm/lib/components/cards/infoCard/index.d.ts +4 -10
  62. package/dist/esm/lib/components/cards/infoCard/index.stories.d.ts +47 -0
  63. package/dist/esm/lib/components/input/index.d.ts +4 -5
  64. package/dist/esm/lib/components/input/input.stories.d.ts +90 -0
  65. package/dist/esm/lib/components/input/stories/config.d.ts +71 -0
  66. package/dist/esm/lib/index.d.ts +1 -1
  67. package/dist/esm/scss/public/demo.js +1 -1
  68. package/dist/esm/scss/public/demo.js.map +1 -1
  69. package/dist/index.css +10 -10
  70. package/dist/lib/scss/public/colors/default.scss +2 -2
  71. package/dist/lib/scss/public/demo.tsx +1 -1
  72. package/package.json +1 -1
  73. package/src/lib/components/autocompleteAddress/index.tsx +1 -1
  74. package/src/lib/components/cards/cardButton/index.stories.tsx +61 -0
  75. package/src/lib/components/cards/cardButton/index.tsx +9 -10
  76. package/src/lib/components/cards/cardWithLeftIcon/index.stories.tsx +79 -0
  77. package/src/lib/components/cards/cardWithLeftIcon/index.tsx +8 -6
  78. package/src/lib/components/cards/cardWithTopIcon/index.stories.tsx +85 -0
  79. package/src/lib/components/cards/cardWithTopIcon/index.tsx +9 -7
  80. package/src/lib/components/cards/cardWithTopLeftIcon/index.stories.tsx +73 -0
  81. package/src/lib/components/cards/cardWithTopLeftIcon/index.tsx +8 -6
  82. package/src/lib/components/cards/index.tsx +5 -5
  83. package/src/lib/components/cards/infoCard/index.stories.tsx +71 -0
  84. package/src/lib/components/cards/infoCard/index.tsx +7 -5
  85. package/src/lib/components/input/a.stories.mdx +2 -2
  86. package/src/lib/components/input/autoSuggestInput/index.tsx +1 -1
  87. package/src/lib/components/input/currency/index.tsx +1 -1
  88. package/src/lib/components/input/iban/index.tsx +1 -1
  89. package/src/lib/components/input/index.tsx +4 -4
  90. package/src/lib/components/input/input.stories.tsx +48 -0
  91. package/src/lib/components/input/stories/config.ts +56 -0
  92. package/src/lib/index.tsx +1 -1
  93. package/src/lib/scss/public/colors/default.scss +2 -2
  94. package/src/lib/scss/public/demo.tsx +1 -1
  95. package/src/lib/components/cards/cardButton/index.stories.mdx +0 -47
  96. package/src/lib/components/cards/cardWithLeftIcon/index.stories.mdx +0 -103
  97. package/src/lib/components/cards/cardWithTopIcon/index.stories.mdx +0 -105
  98. package/src/lib/components/cards/cardWithTopLeftIcon/index.stories.mdx +0 -101
  99. package/src/lib/components/cards/infoCard/index.stories.mdx +0 -61
  100. package/src/lib/components/input/index.stories.mdx +0 -108
@@ -1,103 +0,0 @@
1
- import { Meta, Preview } from '@storybook/addon-docs/blocks';
2
-
3
- import CardWithLeftIcon from '.';
4
- import { featherLogo } from '../icons';
5
-
6
- <Meta title="JSX/Cards/Card with left icon" />
7
-
8
- # Card with left icon
9
-
10
- | attribute | unit | description | default value | required |
11
- | ---------- | ------------------------------------------------------------------------------------ | ------------------------------------------------- | ------------- | -------- |
12
- | title | string | The title text that needs to be displayed | n/a | true |
13
- | cardSize | [Card Size (xs,s,m,b)](?path=/story/jsx-cards-intro--page#card-size-xsmall-small-medium-big) | Size of the card | medium | false |
14
- | leftIcon | [Icon](?path=/story/jsx-cards-intro--page#icon) | Icon displayed on the left hand side of the card | n/a | false |
15
- | rightIcon | [Icon](?path=/story/jsx-cards-intro--page#icon) | Icon displayed on the right hand side of the card | n/a | false |
16
- | state | [Card State](?path=/story/jsx-cards-intro--page#card-state) | State that describe the interation with the card | actionable | false |
17
- | dropshadow | boolean | If the card should have a box-shadow or not | true | false |
18
- | className | string | Class name for most top parent element | 'n/a' | false |
19
-
20
- <Preview>
21
- <>
22
- <h4 className="p-h4">Extra small card</h4>
23
- <CardWithLeftIcon
24
- title="Lorem ipsum"
25
- cardSize="xsmall"
26
- className="wmx6 mt8"
27
- rightIcon="arrow"
28
- leftIcon={featherLogo}
29
- >
30
- Praesent euismod porta odio at tempus.{' '}
31
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
32
- eros at, rhoncus imperdiet nunc
33
- </CardWithLeftIcon>
34
- <h4 className="p-h4">Small card</h4>
35
- <CardWithLeftIcon
36
- title="Lorem ipsum"
37
- cardSize="small"
38
- className="wmx6 mt8"
39
- rightIcon="arrow"
40
- leftIcon={featherLogo}
41
- >
42
- Praesent euismod porta odio at tempus.{' '}
43
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
44
- eros at, rhoncus imperdiet nunc
45
- </CardWithLeftIcon>
46
- <h4 className="p-h4 mt24">Medium card</h4>
47
- <CardWithLeftIcon
48
- title="Lorem ipsum"
49
- cardSize="medium"
50
- className="wmx6 mt8"
51
- rightIcon="arrow"
52
- leftIcon={featherLogo}
53
- >
54
- Praesent euismod porta odio at tempus.{' '}
55
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
56
- eros at, rhoncus imperdiet nunc
57
- </CardWithLeftIcon>
58
- <h4 className="p-h4 mt24">Big card</h4>
59
- <CardWithLeftIcon
60
- title="Lorem ipsum"
61
- cardSize="big"
62
- className="wmx6 mt8"
63
- rightIcon="arrow"
64
- leftIcon={featherLogo}
65
- >
66
- Praesent euismod porta odio at tempus.{' '}
67
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
68
- eros at, rhoncus imperdiet nunc
69
- </CardWithLeftIcon>
70
- <h4 className="p-h4 mt24">Muted</h4>
71
- <CardWithLeftIcon
72
- state="muted"
73
- title="Lorem ipsum"
74
- cardSize="big"
75
- className="wmx6 mt8"
76
- rightIcon="arrow"
77
- leftIcon={featherLogo}
78
- >
79
- Praesent euismod porta odio at tempus.{' '}
80
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
81
- eros at, rhoncus imperdiet nunc
82
- </CardWithLeftIcon>
83
- <h4 className="p-h4 mt24">No left icon and right icon</h4>
84
- <CardWithLeftIcon title="Lorem ipsum" cardSize="big" className="wmx6 mt8">
85
- Praesent euismod porta odio at tempus.{' '}
86
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
87
- eros at, rhoncus imperdiet nunc
88
- </CardWithLeftIcon>
89
- <h4 className="p-h4 mt24">No dropshadow</h4>
90
- <CardWithLeftIcon
91
- title="Lorem ipsum"
92
- cardSize="medium"
93
- className="wmx6 mt8"
94
- rightIcon="arrow"
95
- leftIcon={featherLogo}
96
- dropshadow={false}
97
- >
98
- Praesent euismod porta odio at tempus.{' '}
99
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
100
- eros at, rhoncus imperdiet nunc
101
- </CardWithLeftIcon>
102
- </>
103
- </Preview>
@@ -1,105 +0,0 @@
1
- import { Meta, Preview } from '@storybook/addon-docs/blocks';
2
-
3
- import CardWithTopIcon from '.';
4
- import { featherLogo } from '../icons';
5
-
6
- <Meta title="JSX/Cards/Card with top icon" />
7
-
8
- # Card with top icon
9
-
10
- | attribute | unit | description | default value | required |
11
- | ---------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------ | ------------- | -------- |
12
- | title | string | The title text that needs to be displayed | n/a | true |
13
- | cardSize | [Card Size (s,m,b)](?path=/story/jsx-cards-intro--page#card-size-xsmall-small-medium-big) | Size of the card | medium | false |
14
- | topIcon | [Icon](?path=/story/jsx-cards-intro--page#icon) | Icon displayed on the top of the card | n/a | true |
15
- | rightIcon | [Icon](?path=/story/jsx-cards-intro--page#icon) | Icon displayed on the right of the title | n/a | false |
16
- | state | [Card State](?path=/story/jsx-cards-intro--page#card-state) | State that describe the interation with the card | actionable | false |
17
- | dropshadow | boolean | If the card should have a box-shadow or not | true | false |
18
-
19
- <Preview>
20
- <>
21
- <h4 className="p-h4">Small card</h4>
22
- <CardWithTopIcon
23
- title="Lorem ipsum"
24
- cardSize="small"
25
- className="wmx6 mt8"
26
- rightIcon="arrow"
27
- topIcon={featherLogo}
28
- >
29
- <p className="p-p mt16 tc-grey-600">
30
- Praesent euismod porta odio at tempus.{' '}
31
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
32
- eros at, rhoncus imperdiet nunc
33
- </p>
34
- </CardWithTopIcon>
35
- <h4 className="p-h4 mt24">Medium card</h4>
36
- <CardWithTopIcon
37
- title="Lorem ipsum"
38
- cardSize="medium"
39
- className="wmx6 mt8"
40
- rightIcon="arrow"
41
- topIcon={featherLogo}
42
- >
43
- <p className="p-p mt16 tc-grey-600">
44
- Praesent euismod porta odio at tempus.{' '}
45
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
46
- eros at, rhoncus imperdiet nunc
47
- </p>
48
- </CardWithTopIcon>
49
- <h4 className="p-h4 mt24">Big card</h4>
50
- <CardWithTopIcon
51
- title="Lorem ipsum"
52
- cardSize="big"
53
- className="wmx6 mt8"
54
- rightIcon="arrow"
55
- topIcon={featherLogo}
56
- >
57
- <p className="p-p mt16 tc-grey-600">
58
- Praesent euismod porta odio at tempus.{' '}
59
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
60
- eros at, rhoncus imperdiet nunc
61
- </p>
62
- </CardWithTopIcon>
63
- <h4 className="p-h4 mt24">Muted</h4>
64
- <CardWithTopIcon
65
- title="Lorem ipsum"
66
- className="wmx6 mt8"
67
- rightIcon="arrow"
68
- topIcon={featherLogo}
69
- state="muted"
70
- >
71
- <p className="p-p mt16 tc-grey-600">
72
- Praesent euismod porta odio at tempus.{' '}
73
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
74
- eros at, rhoncus imperdiet nunc
75
- </p>
76
- </CardWithTopIcon>
77
- <h4 className="p-h4 mt24">No right icon</h4>
78
- <CardWithTopIcon
79
- title="Lorem ipsum"
80
- topIcon={featherLogo}
81
- cardSize="small"
82
- className="wmx6 mt8"
83
- >
84
- <p className="p-p mt16 tc-grey-600">
85
- Praesent euismod porta odio at tempus.{' '}
86
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
87
- eros at, rhoncus imperdiet nunc
88
- </p>
89
- </CardWithTopIcon>
90
- <h4 className="p-h4 mt24">No dropshadow</h4>
91
- <CardWithTopIcon
92
- title="Lorem ipsum"
93
- topIcon={featherLogo}
94
- cardSize="small"
95
- className="wmx6 mt8"
96
- dropshadow={false}
97
- >
98
- <p className="p-p mt16 tc-grey-600">
99
- Praesent euismod porta odio at tempus.{' '}
100
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
101
- eros at, rhoncus imperdiet nunc
102
- </p>
103
- </CardWithTopIcon>
104
- </>
105
- </Preview>
@@ -1,101 +0,0 @@
1
- import { Meta, Preview } from '@storybook/addon-docs/blocks';
2
-
3
- import CardWithTopLeftIcon from '.';
4
- import { featherLogo } from '../icons';
5
-
6
- <Meta title="JSX/Cards/Card with top left icon" />
7
-
8
- # Card with top left icon
9
-
10
- | attribute | unit | description | default value | required |
11
- | ---------- | --------------------------------------------------------------------------------- | ------------------------------------------------ | ------------- | -------- |
12
- | title | string | The title text that needs to be displayed | n/a | true |
13
- | cardSize | [Card Size (xs,s,m,b)](?path=/story/jsx-cards-intro--page#card-size-xsmall-small-medium-big) | Size of the card | medium | false |
14
- | topIcon | [Icon](?path=/story/jsx-cards-intro--page#icon) | Icon displayed on the left of the title | n/a | false |
15
- | rightIcon | [Icon](?path=/story/jsx-cards-intro--page#icon) | Icon displayed on the right of the title | n/a | false |
16
- | state | [Card State](?path=/story/jsx-cards-intro--page#card-state) | State that describe the interation with the card | actionable | false |
17
- | dropshadow | boolean | If the card should have a box-shadow or not | true | false |
18
-
19
- <Preview>
20
- <>
21
- <h4 className="p-h4">Extra small card</h4>
22
- <CardWithTopLeftIcon
23
- title="Lorem ipsum"
24
- cardSize="xsmall"
25
- className="wmx6 mt8"
26
- rightIcon="arrow"
27
- leftIcon={featherLogo}
28
- >
29
- Praesent euismod porta odio at tempus.{' '}
30
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
31
- eros at, rhoncus imperdiet nunc
32
- </CardWithTopLeftIcon>
33
- <h4 className="p-h4 mt24">Small card</h4>
34
- <CardWithTopLeftIcon
35
- title="Lorem ipsum"
36
- cardSize="small"
37
- className="wmx6 mt8"
38
- rightIcon="arrow"
39
- leftIcon={featherLogo}
40
- >
41
- Praesent euismod porta odio at tempus.{' '}
42
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
43
- eros at, rhoncus imperdiet nunc
44
- </CardWithTopLeftIcon>
45
- <h4 className="p-h4 mt24">Medium card</h4>
46
- <CardWithTopLeftIcon
47
- title="Lorem ipsum"
48
- cardSize="medium"
49
- className="wmx6 mt8"
50
- rightIcon="arrow"
51
- leftIcon={featherLogo}
52
- >
53
- Praesent euismod porta odio at tempus.{' '}
54
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
55
- eros at, rhoncus imperdiet nunc
56
- </CardWithTopLeftIcon>
57
- <h4 className="p-h4 mt24">Big card</h4>
58
- <CardWithTopLeftIcon
59
- title="Lorem ipsum"
60
- cardSize="big"
61
- className="wmx6 mt8"
62
- rightIcon="arrow"
63
- leftIcon={featherLogo}
64
- >
65
- Praesent euismod porta odio at tempus.{' '}
66
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
67
- eros at, rhoncus imperdiet nunc
68
- </CardWithTopLeftIcon>
69
- <h4 className="p-h4 mt24">Muted</h4>
70
- <CardWithTopLeftIcon
71
- title="Lorem ipsum"
72
- state="muted"
73
- className="wmx6 mt8"
74
- rightIcon="arrow"
75
- leftIcon={featherLogo}
76
- >
77
- Praesent euismod porta odio at tempus.{' '}
78
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
79
- eros at, rhoncus imperdiet nunc
80
- </CardWithTopLeftIcon>
81
- <h4 className="p-h4 mt24">No right icon or left icon</h4>
82
- <CardWithTopLeftIcon title="Lorem ipsum" className="wmx6 mt8">
83
- Praesent euismod porta odio at tempus.{' '}
84
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
85
- eros at, rhoncus imperdiet nunc
86
- </CardWithTopLeftIcon>
87
- <h4 className="p-h4">No dropshadow</h4>
88
- <CardWithTopLeftIcon
89
- title="Lorem ipsum"
90
- cardSize="medium"
91
- className="wmx6 mt8"
92
- rightIcon="arrow"
93
- leftIcon={featherLogo}
94
- dropshadow={false}
95
- >
96
- Praesent euismod porta odio at tempus.{' '}
97
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
98
- eros at, rhoncus imperdiet nunc
99
- </CardWithTopLeftIcon>
100
- </>
101
- </Preview>
@@ -1,61 +0,0 @@
1
- import { Meta, Preview } from '@storybook/addon-docs/blocks';
2
-
3
- import InfoCard from '.';
4
- import { featherLogo } from '../icons';
5
-
6
- <Meta title="JSX/Cards/Info card" />
7
-
8
- # Info card
9
-
10
- | attribute | unit | description | default value | required |
11
- | ---------- | ----------------------------------------------------------- | --------------------------------------------------------------- | ------------- | -------- |
12
- | title | string | The title text that needs to be displayed | n/a | true |
13
- | topIcon | [Icon](?path=/story/jsx-cards-intro--page#icon) | Icon displayed on the top of the card, inside the purple circle | n/a | true |
14
- | rightIcon | [Icon](?path=/story/jsx-cards-intro--page#icon) | Icon displayed on the top right corner of the card | n/a | false |
15
- | state | [Card State](?path=/story/jsx-cards-intro--page#card-state) | State that describe the interation with the card | actionable | false |
16
- | dropshadow | boolean | If the card should have a box-shadow or not | true | false |
17
-
18
- <Preview>
19
- <>
20
- <h4 className="p-h4">With right icon</h4>
21
- <InfoCard
22
- className="wmx6 mt8"
23
- title="Lorem ipsum"
24
- rightIcon="info"
25
- topIcon={featherLogo}
26
- >
27
- Praesent euismod porta odio at tempus.{' '}
28
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
29
- eros at, rhoncus imperdiet nunc
30
- </InfoCard>
31
- <h4 className="p-h4 mt24">Without right icon</h4>
32
- <InfoCard className="wmx6 mt8" title="Lorem ipsum" topIcon={featherLogo}>
33
- Praesent euismod porta odio at tempus.{' '}
34
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
35
- eros at, rhoncus imperdiet nunc
36
- </InfoCard>
37
- <h4 className="p-h4 mt24">Muted</h4>
38
- <InfoCard
39
- className="wmx6 mt8"
40
- title="Lorem ipsum"
41
- topIcon={featherLogo}
42
- state="muted"
43
- >
44
- Praesent euismod porta odio at tempus.{' '}
45
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
46
- eros at, rhoncus imperdiet nunc
47
- </InfoCard>
48
- <h4 className="p-h4">No dropshadow</h4>
49
- <InfoCard
50
- className="wmx6 mt8"
51
- title="Lorem ipsum"
52
- rightIcon="info"
53
- topIcon={featherLogo}
54
- dropshadow={false}
55
- >
56
- Praesent euismod porta odio at tempus.{' '}
57
- <span className="fw-bold">Aenean urna massa</span>, facilisis malesuada
58
- eros at, rhoncus imperdiet nunc
59
- </InfoCard>
60
- </>
61
- </Preview>
@@ -1,108 +0,0 @@
1
- import { Meta, Preview } from '@storybook/addon-docs/blocks';
2
-
3
- import Input from '.';
4
-
5
- <Meta title="JSX/Inputs/Input" />
6
-
7
- ## Input
8
-
9
- The default input component is used to gather informations from the user.
10
-
11
- You are looking at the JSX definition of the Input component, if you want you can use the [css alternative](?path=/story/css-components-input--page)
12
-
13
- <Preview>
14
- <>
15
- <h1 className="p-h1">Without placeholder</h1>
16
- <h4 className="p-h4 mt24">Empty</h4>
17
- <Input className="wmx5 mt8" />
18
- <h4 className="p-h4 mt24">Filled</h4>
19
- <Input className="wmx5 mt8" value="Lorem ipsum" />
20
- <h4 className="p-h4 mt24">Disabled</h4>
21
- <Input className="wmx5 mt8" value="Lorem ipsum" disabled={true} />
22
- <h4 className="p-h4 mt24">Error</h4>
23
- <Input
24
- className="wmx5 mt8"
25
- value="Lorem ipsum"
26
- error="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
27
- />
28
- <h1 className="p-h1 mt32">With placeholder</h1>
29
- <h4 className="p-h4 mt24">Empty</h4>
30
- <Input className="wmx5 mt8" placeholder="Email" />
31
- <h4 className="p-h4 mt24">Filled</h4>
32
- <Input
33
- className="wmx5 mt8"
34
- value="jane.doe@feather-insurance.com"
35
- placeholder="Email"
36
- />
37
- <h4 className="p-h4 mt24">Disabled</h4>
38
- <Input className="wmx5 mt8" placeholder="Email" disabled />
39
- <h4 className="p-h4 mt24">Error</h4>
40
- <Input
41
- className="wmx5 mt8"
42
- value="jane.doe@feather-insurance.com"
43
- placeholder="Email"
44
- error="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
45
- />
46
- <h1 className="p-h1 mt32">With prefix</h1>
47
- <h4 className="p-h4 mt24">Empty</h4>
48
- <Input className="wmx5 mt8" prefix="€" />
49
- <h4 className="p-h4 mt24">Filled</h4>
50
- <Input className="wmx5 mt8" value="100" prefix="€" />
51
- <h4 className="p-h4 mt24">Empty with placeholder</h4>
52
- <Input className="wmx5 mt8" placeholder="amount" prefix="€" />
53
- <h4 className="p-h4 mt24">Filled with placeholder</h4>
54
- <Input className="wmx5 mt8" placeholder="amount" value="100" prefix="€" />
55
- <h4 className="p-h4 mt24">Disabled</h4>
56
- <Input className="wmx5 mt8" placeholder="amount" disabled prefix="€" />
57
- <h4 className="p-h4 mt24">Error</h4>
58
- <Input
59
- className="wmx5 mt8"
60
- placeholder="amount"
61
- value="100"
62
- prefix="€"
63
- error="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ac hendrerit justo. Nunc nibh ex, vulputate ac leo id, feugiat rhoncus purus."
64
- />
65
- <h1 className="p-h1 mt32">With label</h1>
66
- <h4 className="p-h4 mt24">Empty</h4>
67
- <Input className="wmx5 mt8" label="Email" />
68
- <h4 className="p-h4 mt24">With placeholder</h4>
69
- <Input
70
- className="wmx5 mt8"
71
- label="Email"
72
- placeholder="email@feather-insurance.com"
73
- />
74
- <h4 className="p-h4 mt24">Filled</h4>
75
- <Input
76
- className="wmx5 mt8"
77
- value="email@feather-insurance.com"
78
- label="Email"
79
- placeholder="email@feather-insurance.com"
80
- />
81
- <h4 className="p-h4 mt24">Disabled</h4>
82
- <Input
83
- className="wmx5 mt8"
84
- label="Email"
85
- placeholder="email@feather-insurance.com"
86
- disabled
87
- />
88
- <h4 className="p-h4 mt24">Error</h4>
89
- <Input
90
- className="wmx5 mt8"
91
- label="Email"
92
- value="invalid.email@feather-insurance.com"
93
- placeholder="email@feather-insurance.com"
94
- error="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
95
- />
96
- <h4 className="p-h4 mt24">With prefix</h4>
97
- <Input className="wmx5 mt8" label="Amount" value="100" prefix="€" />
98
- <h4 className="p-h4 mt24">With label hidden</h4>
99
- <Input
100
- className="wmx5 mt8"
101
- label="Amount"
102
- value="100"
103
- prefix="€"
104
- hideLabel
105
- onChange={() => {}}
106
- />
107
- </>
108
- </Preview>