trepur_components 2.3.9 → 2.3.10

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 (282) hide show
  1. package/lib/_virtual/react.js +4 -0
  2. package/lib/components/Accordion/Accordion.stories.d.ts +47 -0
  3. package/lib/components/Accordion/const.d.ts +31 -0
  4. package/lib/components/Accordion/index.d.ts +5 -0
  5. package/lib/components/Accordion/index.js +9 -0
  6. package/lib/components/AlertBar/AlertBar.stories.d.ts +24 -0
  7. package/lib/components/AlertBar/index.d.ts +16 -0
  8. package/lib/components/AlertBar/index.js +36 -0
  9. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  10. package/lib/components/Avatar/index.d.ts +3 -0
  11. package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +18 -0
  12. package/lib/components/Breadcrumbs/index.d.ts +17 -0
  13. package/lib/components/Breadcrumbs/index.js +16 -0
  14. package/lib/components/Button/Button.stories.d.ts +20 -0
  15. package/lib/components/Button/index.d.ts +13 -0
  16. package/lib/components/Button/index.js +30 -0
  17. package/lib/components/Calendar/Calendar.stories.d.ts +11 -0
  18. package/lib/components/Calendar/index.d.ts +14 -0
  19. package/lib/components/Calendar/index.js +49 -0
  20. package/lib/components/Calendar/style.css.js +1 -0
  21. package/lib/components/Card/Card.stories.d.ts +11 -0
  22. package/lib/components/Card/index.d.ts +2 -0
  23. package/lib/components/Card/index.js +25 -0
  24. package/lib/components/Carousel/Carousel.stories.d.ts +23 -0
  25. package/lib/components/Carousel/index.d.ts +70 -0
  26. package/lib/components/Carousel/index.js +159 -0
  27. package/lib/components/Carousel/utils.d.ts +1 -0
  28. package/lib/components/Carousel/utils.js +38 -0
  29. package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +22 -0
  30. package/lib/components/CarouselThumbnail/const.d.ts +1 -0
  31. package/lib/components/CarouselThumbnail/const.js +20 -0
  32. package/lib/components/CarouselThumbnail/index.d.ts +51 -0
  33. package/lib/components/CarouselThumbnail/index.js +74 -0
  34. package/lib/components/CarouselThumbnail/utils.d.ts +2 -0
  35. package/lib/components/CarouselThumbnail/utils.js +65 -0
  36. package/lib/components/Checkbox/Checkbox.stories.d.ts +17 -0
  37. package/lib/components/Checkbox/index.d.ts +11 -0
  38. package/lib/components/Checkbox/index.js +28 -0
  39. package/lib/components/Collapsible/Collapsible.stories.d.ts +57 -0
  40. package/lib/components/Collapsible/index.d.ts +19 -0
  41. package/lib/components/Collapsible/index.js +87 -0
  42. package/lib/components/Counter/Counter.stories.d.ts +17 -0
  43. package/lib/components/Counter/index.d.ts +14 -0
  44. package/lib/components/Counter/index.js +49 -0
  45. package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +20 -0
  46. package/lib/components/DetailUpdater/index.d.ts +18 -0
  47. package/lib/components/DetailUpdater/index.js +63 -0
  48. package/lib/components/Dialog/Dialog.stories.d.ts +15 -0
  49. package/lib/components/Dialog/index.d.ts +12 -0
  50. package/lib/components/Dialog/index.js +16 -0
  51. package/lib/components/Dropdown/Dropdown.stories.d.ts +17 -0
  52. package/lib/components/Dropdown/index.d.ts +13 -0
  53. package/lib/components/Dropdown/index.js +66 -0
  54. package/lib/components/Dropdown/utils.d.ts +1 -0
  55. package/lib/components/Dropdown/utils.js +14 -0
  56. package/lib/components/FileUploader/FilePreview.d.ts +8 -0
  57. package/lib/components/FileUploader/FileUploader.stories.d.ts +52 -0
  58. package/lib/components/FileUploader/index.d.ts +15 -0
  59. package/lib/components/Footer/Footer.stories.d.ts +19 -0
  60. package/lib/components/Footer/index.d.ts +16 -0
  61. package/lib/components/Footer/index.js +36 -0
  62. package/lib/components/FooterNav/FooterNav.stories.d.ts +22 -0
  63. package/lib/components/FooterNav/index.d.ts +15 -0
  64. package/lib/components/FooterNav/index.js +38 -0
  65. package/lib/components/Form/Form.stories.d.ts +117 -0
  66. package/lib/components/Form/index.d.ts +13 -0
  67. package/lib/components/Form/index.js +17 -0
  68. package/lib/components/Gallery/Gallery.stories.d.ts +16 -0
  69. package/lib/components/Gallery/index.d.ts +7 -0
  70. package/lib/components/Greeting/Greeting.stories.d.ts +13 -0
  71. package/lib/components/Greeting/index.d.ts +7 -0
  72. package/lib/components/Greeting/index.js +20 -0
  73. package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +10 -0
  74. package/lib/components/HamburgerIcon/index.d.ts +2 -0
  75. package/lib/components/HamburgerIcon/index.js +78 -0
  76. package/lib/components/Icon/Icon.stories.d.ts +16 -0
  77. package/lib/components/Icon/index.d.ts +10 -0
  78. package/lib/components/Icon/index.js +23 -0
  79. package/lib/components/Image/Image.stories.d.ts +13 -0
  80. package/lib/components/Image/index.d.ts +5 -0
  81. package/lib/components/Image/index.js +17 -0
  82. package/lib/components/ImageCard/ImageCard.stories.d.ts +19 -0
  83. package/lib/components/ImageCard/index.d.ts +11 -0
  84. package/lib/components/ImageCard/index.js +32 -0
  85. package/lib/components/Input/Input.stories.d.ts +22 -0
  86. package/lib/components/Input/index.d.ts +33 -0
  87. package/lib/components/Input/index.js +83 -0
  88. package/lib/components/MenuButton/MenuButton.stories.d.ts +76 -0
  89. package/lib/components/MenuButton/index.d.ts +14 -0
  90. package/lib/components/MenuButton/index.js +56 -0
  91. package/lib/components/Modal/Modal.stories.d.ts +67 -0
  92. package/lib/components/Modal/index.d.ts +10 -0
  93. package/lib/components/Modal/index.js +45 -0
  94. package/lib/components/Nav/Nav.stories.d.ts +32 -0
  95. package/lib/components/Nav/index.d.ts +21 -0
  96. package/lib/components/Nav/index.js +82 -0
  97. package/lib/components/NavItem/NavItem.stories.d.ts +18 -0
  98. package/lib/components/NavItem/index.d.ts +8 -0
  99. package/lib/components/NavItem/index.js +24 -0
  100. package/lib/components/Pill/Pill.stories.d.ts +22 -0
  101. package/lib/components/Pill/index.d.ts +17 -0
  102. package/lib/components/Pill/index.js +31 -0
  103. package/lib/components/Search/Search.stories.d.ts +86 -0
  104. package/lib/components/Search/index.d.ts +12 -0
  105. package/lib/components/Search/index.js +42 -0
  106. package/lib/components/Select/Select.stories.d.ts +56 -0
  107. package/lib/components/Select/index.d.ts +11 -0
  108. package/lib/components/Select/index.js +68 -0
  109. package/lib/components/Showcase/Showcase.stories.d.ts +55 -0
  110. package/lib/components/Showcase/index.d.ts +15 -0
  111. package/lib/components/SideNav/SideNav.stories.d.ts +80 -0
  112. package/lib/components/SideNav/index.d.ts +12 -0
  113. package/lib/components/SocialButton/SocialButton.stories.d.ts +130 -0
  114. package/lib/components/SocialButton/index.d.ts +12 -0
  115. package/lib/components/SplitCard/SplitCard.stories.d.ts +21 -0
  116. package/lib/components/SplitCard/index.d.ts +14 -0
  117. package/lib/components/Stars/Star.stories.d.ts +14 -0
  118. package/lib/components/Stars/index.d.ts +8 -0
  119. package/lib/components/Stars/index.js +22 -0
  120. package/lib/components/Testimonial/Testimonial.stories.d.ts +21 -0
  121. package/lib/components/Testimonial/index.d.ts +13 -0
  122. package/lib/components/Testimonial/index.js +42 -0
  123. package/lib/components/TextArea/TextArea.stories.d.ts +21 -0
  124. package/lib/components/TextArea/index.d.ts +33 -0
  125. package/lib/components/TextArea/index.js +76 -0
  126. package/lib/components/Timeline/Timeline.stories.d.ts +21 -0
  127. package/lib/components/Timeline/index.d.ts +11 -0
  128. package/lib/components/Timeline/index.js +31 -0
  129. package/lib/components/Tubestops/Tubestops.stories.d.ts +19 -0
  130. package/lib/components/Tubestops/index.d.ts +15 -0
  131. package/lib/components/Tubestops/index.js +77 -0
  132. package/lib/components/Video/Video.stories.d.ts +23 -0
  133. package/lib/components/Video/index.d.ts +18 -0
  134. package/lib/components/Video/index.js +32 -0
  135. package/{src/components/index.ts → lib/components/index.d.ts} +35 -71
  136. package/lib/documentation/assets/index.d.ts +3 -0
  137. package/lib/documentation/typography/Fonts/Fonts.d.ts +2 -0
  138. package/lib/documentation/typography/Fonts/Fonts.stories.d.ts +10 -0
  139. package/lib/index.js +72 -0
  140. package/lib/node_modules/keen-slider/keen-slider.min.css.js +1 -0
  141. package/lib/node_modules/keen-slider/react.js +591 -0
  142. package/lib/style.css +1 -0
  143. package/lib/utils/controls.d.ts +36 -0
  144. package/lib/utils/matchMedia.d.ts +2 -0
  145. package/lib/utils/screens.d.ts +7 -0
  146. package/package.json +4 -1
  147. package/.eslintrc.cjs +0 -72
  148. package/.husky/pre-commit +0 -4
  149. package/.prettierignore +0 -10
  150. package/.prettierrc.json +0 -22
  151. package/postcss.config.js +0 -8
  152. package/src/components/Accordion/Accordion.stories.tsx +0 -39
  153. package/src/components/Accordion/const.tsx +0 -34
  154. package/src/components/Accordion/index.tsx +0 -22
  155. package/src/components/AlertBar/AlertBar.stories.tsx +0 -89
  156. package/src/components/AlertBar/index.tsx +0 -82
  157. package/src/components/Avatar/Avatar.stories.tsx +0 -14
  158. package/src/components/Avatar/index.tsx +0 -492
  159. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -29
  160. package/src/components/Breadcrumbs/index.tsx +0 -89
  161. package/src/components/Button/Button.stories.tsx +0 -24
  162. package/src/components/Button/index.tsx +0 -59
  163. package/src/components/Calendar/Calendar.stories.tsx +0 -21
  164. package/src/components/Calendar/index.tsx +0 -92
  165. package/src/components/Calendar/style.css +0 -233
  166. package/src/components/Card/Card.stories.tsx +0 -14
  167. package/src/components/Card/index.tsx +0 -39
  168. package/src/components/Carousel/Carousel.stories.tsx +0 -44
  169. package/src/components/Carousel/index.tsx +0 -301
  170. package/src/components/Carousel/utils.ts +0 -53
  171. package/src/components/CarouselThumbnail/CarouselThumbnail.stories.tsx +0 -29
  172. package/src/components/CarouselThumbnail/const.ts +0 -17
  173. package/src/components/CarouselThumbnail/index.tsx +0 -169
  174. package/src/components/CarouselThumbnail/utils.ts +0 -87
  175. package/src/components/Checkbox/Checkbox.mdx +0 -33
  176. package/src/components/Checkbox/Checkbox.stories.tsx +0 -27
  177. package/src/components/Checkbox/index.tsx +0 -44
  178. package/src/components/Collapsible/Collapsible.stories.tsx +0 -67
  179. package/src/components/Collapsible/index.tsx +0 -169
  180. package/src/components/Counter/Counter.stories.tsx +0 -20
  181. package/src/components/Counter/index.tsx +0 -98
  182. package/src/components/DetailUpdater/DetailUpdater.stories.tsx +0 -37
  183. package/src/components/DetailUpdater/index.tsx +0 -107
  184. package/src/components/Dialog/Dialog.stories.tsx +0 -65
  185. package/src/components/Dialog/index.tsx +0 -29
  186. package/src/components/Dropdown/Dropdown.stories.tsx +0 -22
  187. package/src/components/Dropdown/index.tsx +0 -117
  188. package/src/components/Dropdown/utils.ts +0 -15
  189. package/src/components/FileUploader/FilePreview.tsx +0 -45
  190. package/src/components/FileUploader/FileUploader.stories.tsx +0 -28
  191. package/src/components/FileUploader/index.tsx +0 -177
  192. package/src/components/Footer/Footer.stories.tsx +0 -47
  193. package/src/components/Footer/index.tsx +0 -96
  194. package/src/components/FooterNav/FooterNav.stories.tsx +0 -32
  195. package/src/components/FooterNav/index.tsx +0 -75
  196. package/src/components/Form/Form.stories.tsx +0 -86
  197. package/src/components/Form/index.tsx +0 -41
  198. package/src/components/Gallery/Gallery.stories.tsx +0 -39
  199. package/src/components/Gallery/index.tsx +0 -31
  200. package/src/components/Greeting/Greeting.stories.tsx +0 -16
  201. package/src/components/Greeting/index.tsx +0 -49
  202. package/src/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -14
  203. package/src/components/HamburgerIcon/index.tsx +0 -75
  204. package/src/components/Icon/Icon.stories.tsx +0 -41
  205. package/src/components/Icon/index.tsx +0 -33
  206. package/src/components/Image/Image.stories.tsx +0 -17
  207. package/src/components/Image/index.tsx +0 -25
  208. package/src/components/ImageCard/ImageCard.stories.tsx +0 -29
  209. package/src/components/ImageCard/index.tsx +0 -75
  210. package/src/components/Input/Input.stories.tsx +0 -25
  211. package/src/components/Input/index.tsx +0 -139
  212. package/src/components/MenuButton/MenuButton.stories.tsx +0 -46
  213. package/src/components/MenuButton/index.tsx +0 -66
  214. package/src/components/Modal/Modal.stories.tsx +0 -82
  215. package/src/components/Modal/index.tsx +0 -71
  216. package/src/components/Nav/Nav.stories.tsx +0 -80
  217. package/src/components/Nav/index.tsx +0 -171
  218. package/src/components/NavItem/NavItem.stories.tsx +0 -17
  219. package/src/components/NavItem/index.tsx +0 -39
  220. package/src/components/Pill/Pill.stories.tsx +0 -51
  221. package/src/components/Pill/index.tsx +0 -69
  222. package/src/components/Search/Search.stories.tsx +0 -63
  223. package/src/components/Search/index.tsx +0 -64
  224. package/src/components/Select/Select.stories.tsx +0 -55
  225. package/src/components/Select/index.tsx +0 -97
  226. package/src/components/Showcase/Showcase.stories.tsx +0 -31
  227. package/src/components/Showcase/index.tsx +0 -62
  228. package/src/components/SideNav/SideNav.stories.tsx +0 -50
  229. package/src/components/SideNav/index.tsx +0 -39
  230. package/src/components/SocialButton/SocialButton.stories.tsx +0 -88
  231. package/src/components/SocialButton/index.tsx +0 -63
  232. package/src/components/SplitCard/SplitCard.stories.tsx +0 -34
  233. package/src/components/SplitCard/index.tsx +0 -132
  234. package/src/components/Stars/Star.stories.tsx +0 -18
  235. package/src/components/Stars/index.tsx +0 -38
  236. package/src/components/Testimonial/Testimonial.stories.tsx +0 -37
  237. package/src/components/Testimonial/index.tsx +0 -123
  238. package/src/components/TextArea/TextArea.stories.tsx +0 -24
  239. package/src/components/TextArea/index.tsx +0 -133
  240. package/src/components/Timeline/Timeline.stories.tsx +0 -45
  241. package/src/components/Timeline/index.tsx +0 -65
  242. package/src/components/Tubestops/Tubestops.stories.tsx +0 -22
  243. package/src/components/Tubestops/index.tsx +0 -132
  244. package/src/components/Video/Video.stories.tsx +0 -58
  245. package/src/components/Video/assets/example.mp4 +0 -0
  246. package/src/components/Video/assets/example.ogv +0 -0
  247. package/src/components/Video/assets/example.webm +0 -0
  248. package/src/components/Video/index.tsx +0 -92
  249. package/src/custom.d.ts +0 -14
  250. package/src/documentation/Colours.mdx +0 -192
  251. package/src/documentation/Introduction.mdx +0 -13
  252. package/src/documentation/assets/index.ts +0 -3
  253. package/src/documentation/assets/trepurComponentsLogo.svg +0 -32
  254. package/src/documentation/typography/Fonts/Fonts.stories.tsx +0 -14
  255. package/src/documentation/typography/Fonts/Fonts.tsx +0 -73
  256. package/src/fonts/Sora/OFL.txt +0 -93
  257. package/src/fonts/Sora/README.txt +0 -70
  258. package/src/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  259. package/src/fonts/Sora/static/Sora-Bold.ttf +0 -0
  260. package/src/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  261. package/src/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  262. package/src/fonts/Sora/static/Sora-Light.ttf +0 -0
  263. package/src/fonts/Sora/static/Sora-Medium.ttf +0 -0
  264. package/src/fonts/Sora/static/Sora-Regular.ttf +0 -0
  265. package/src/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  266. package/src/fonts/Sora/static/Sora-Thin.ttf +0 -0
  267. package/src/utils/controls.ts +0 -44
  268. package/src/utils/matchMedia.ts +0 -9
  269. package/src/utils/screens.ts +0 -7
  270. package/tailwind.config.ts +0 -13
  271. package/tsconfig.json +0 -49
  272. package/tsconfig.node.json +0 -12
  273. package/vite.config.mjs +0 -64
  274. /package/{src/index.ts → lib/index.d.ts} +0 -0
  275. /package/{src → lib}/styles/global.css +0 -0
  276. /package/{src → lib}/styles/themes/local.css +0 -0
  277. /package/{src → lib}/styles/themes/test.css +0 -0
  278. /package/{tailwind → lib/tailwind}/boxShadow.ts +0 -0
  279. /package/{tailwind → lib/tailwind}/colors.ts +0 -0
  280. /package/{tailwind → lib/tailwind}/container.ts +0 -0
  281. /package/{tailwind → lib/tailwind}/preset.ts +0 -0
  282. /package/{tailwind → lib/tailwind}/spacing.ts +0 -0
package/.eslintrc.cjs DELETED
@@ -1,72 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- settings: {
7
- 'import/resolver': {
8
- typescript: {},
9
- },
10
- },
11
- extends: ['plugin:storybook/recommended'],
12
- parserOptions: {
13
- project: ['tsconfig.eslint.json'],
14
- ecmaVersion: 'latest',
15
- sourceType: 'module',
16
- },
17
- plugins: ['react', 'prettier'],
18
- ignorePatterns: [
19
- 'archive',
20
- '.eslintrc.cjs',
21
- 'tailwind.config.js',
22
- 'webpack.config.js',
23
- 'tailwind/*.js',
24
- 'vite.config.mjs',
25
- 'lib/*',
26
- 'postcss.config.js',
27
- ],
28
- rules: {
29
- 'react/jsx-no-bind': 'off',
30
- 'sort-keys': [
31
- 'error',
32
- 'asc',
33
- { caseSensitive: true, natural: false, minKeys: 2 },
34
- ],
35
- 'import/no-extraneous-dependencies': [
36
- 'error',
37
- {
38
- devDependencies: ['**/*.stories.*', '**/*.test.*', '**/story-utils/*'],
39
- peerDependencies: true,
40
- },
41
- ],
42
- },
43
- overrides: [
44
- {
45
- files: ['*.tsx', '*.jsx'],
46
- rules: {
47
- '@typescript-eslint/ban-types': [
48
- 'error',
49
- {
50
- extendDefaults: true,
51
- types: {
52
- '{}': false,
53
- },
54
- },
55
- ],
56
- },
57
- extends: 'love',
58
- },
59
- ],
60
- ignorePatterns: ['.eslintrc.js', 'tailwind.config.js'],
61
- rules: {
62
- '@typescript-eslint/consistent-type-imports': 'off',
63
- '@typescript-eslint/strict-boolean-expressions': 'off',
64
- 'no-empty-pattern': 'off',
65
- 'prettier/prettier': [
66
- 'error',
67
- {
68
- singleQuote: true,
69
- },
70
- ],
71
- },
72
- };
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npm run lint
package/.prettierignore DELETED
@@ -1,10 +0,0 @@
1
- .github/
2
- .husky/
3
- .prettierignore
4
- .storybook/tailwind/
5
- coverage/
6
- deployment/
7
- lib/
8
- node_modules/
9
- storybook-build/
10
- **/*.svg
package/.prettierrc.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "all",
4
- "importOrder": [
5
- "^react$",
6
- "<THIRD_PARTY_MODULES>",
7
- "^effects(/.+)?$",
8
- "^@(/.+)?$",
9
- "^hooks(/.+)?$",
10
- "^layout(/.+)?$",
11
- "^next(/.+)?$",
12
- "^styles(/.+)?$",
13
- "^types(/.+)?$",
14
- "^utils(/.+)?$",
15
- "^\\.?\\.(/.+)?$"
16
- ],
17
- "importOrderSeparation": true,
18
- "plugins": [
19
- "@trivago/prettier-plugin-sort-imports",
20
- "prettier-plugin-tailwindcss"
21
- ]
22
- }
package/postcss.config.js DELETED
@@ -1,8 +0,0 @@
1
- const config = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
7
-
8
- export default config;
@@ -1,39 +0,0 @@
1
- import { Collapsible } from '@components/Collapsible';
2
- import { Meta, StoryObj } from '@storybook/react';
3
- import { idAndClassName } from '@utils/controls';
4
-
5
- import { Accordion } from '.';
6
- import { items } from './const';
7
-
8
- const meta = {
9
- title: 'V2Components/Accordion',
10
- component: Accordion,
11
- argTypes: {
12
- ...idAndClassName,
13
- },
14
- args: {
15
- children: items.map((item) => {
16
- return (
17
- <Collapsible>
18
- <Collapsible.Header>
19
- {item.image && <Collapsible.Image src={item.image} />}
20
- <Collapsible.HeaderContent>
21
- <Collapsible.Label>{item.label}</Collapsible.Label>
22
- <Collapsible.Title>{item.title}</Collapsible.Title>
23
- <Collapsible.Subtitle>{item.subtitle}</Collapsible.Subtitle>
24
- </Collapsible.HeaderContent>
25
- </Collapsible.Header>
26
- <Collapsible.Content>
27
- <Collapsible.Text>{item.content}</Collapsible.Text>
28
- </Collapsible.Content>
29
- </Collapsible>
30
- );
31
- }),
32
- },
33
- } satisfies Meta<typeof Accordion>;
34
-
35
- export default meta;
36
-
37
- type Story = StoryObj<typeof Accordion>;
38
-
39
- export const Default: Story = {};
@@ -1,34 +0,0 @@
1
- export const items = [
2
- {
3
- label: 'This is some text',
4
- title: 'This is a title',
5
- subtitle: 'This is a subtitle',
6
- image: 'https://picsum.photos/100/100',
7
- content:
8
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
9
- },
10
- {
11
- title: 'This is a title',
12
- content:
13
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
14
- },
15
- {
16
- label:
17
- 'Lorem, ipsum dolor sit amet consectetur adipisicing elit. Repellendus nihil, molestias amet sed, corrupti debitis odit doloribus perspiciatis est, quasi illum culpa iusto. Molestias, ducimus. Provident, quibusdam fuga. Voluptatem, saepe.',
18
- title: 'This is a title',
19
- image: 'https://picsum.photos/101/100',
20
- content:
21
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
22
- },
23
- {
24
- subtitle: 'This is a subtitle',
25
- image: 'https://picsum.photos/100/101',
26
- content:
27
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
28
- },
29
- {
30
- image: 'https://picsum.photos/102/100',
31
- content:
32
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
33
- },
34
- ];
@@ -1,22 +0,0 @@
1
- import { forwardRef, HTMLAttributes } from 'react';
2
-
3
- import clsx from 'clsx';
4
-
5
- export interface AccordionProps {
6
- loading?: boolean;
7
- }
8
-
9
- const AccordionComponent = forwardRef<
10
- HTMLDivElement,
11
- HTMLAttributes<HTMLDivElement> & AccordionProps
12
- >(({ id, className, children, loading = false, ...props }, ref) => (
13
- <div id={id} className={clsx('', className)} ref={ref} {...props}>
14
- {children}
15
- </div>
16
- ));
17
-
18
- AccordionComponent.displayName = 'Accordion';
19
-
20
- const Accordion = Object.assign(AccordionComponent);
21
-
22
- export { Accordion };
@@ -1,89 +0,0 @@
1
- import { AlertBar } from './';
2
- import {
3
- faCheckCircle,
4
- faExclamationCircle,
5
- faHeart,
6
- faQuestionCircle,
7
- faStopCircle,
8
- } from '@fortawesome/fontawesome-free-solid';
9
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
10
- import { action } from '@storybook/addon-actions';
11
- import { Meta, StoryObj } from '@storybook/react';
12
-
13
- const meta = {
14
- title: 'V2Components/Alert Bar',
15
- component: AlertBar,
16
-
17
- args: {
18
- children: [
19
- <AlertBar.Icon icon={faHeart} />,
20
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
21
- ],
22
- },
23
- } satisfies Meta<typeof AlertBar>;
24
- export default meta;
25
-
26
- type Story = StoryObj<typeof AlertBar>;
27
-
28
- export const Default: Story = {};
29
-
30
- export const Error: Story = {
31
- ...Default,
32
- args: {
33
- ...Default.args,
34
- children: [
35
- <AlertBar.Icon icon={faStopCircle} />,
36
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
37
- ],
38
- variant: 'error',
39
- },
40
- };
41
-
42
- export const Success: Story = {
43
- ...Default,
44
- args: {
45
- ...Default.args,
46
- children: [
47
- <AlertBar.Icon icon={faCheckCircle} />,
48
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
49
- ],
50
- variant: 'success',
51
- },
52
- };
53
-
54
- export const Warning: Story = {
55
- ...Default,
56
- args: {
57
- ...Default.args,
58
- children: [
59
- <AlertBar.Icon icon={faExclamationCircle} />,
60
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
61
- ],
62
- variant: 'warning',
63
- },
64
- };
65
-
66
- export const Info: Story = {
67
- ...Default,
68
- args: {
69
- ...Default.args,
70
- children: [
71
- <AlertBar.Icon icon={faQuestionCircle} />,
72
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
73
- ],
74
- variant: 'info',
75
- },
76
- };
77
-
78
- export const Dismiss: Story = {
79
- ...Default,
80
- args: {
81
- ...Default.args,
82
- children: [
83
- <AlertBar.Icon icon={faQuestionCircle} />,
84
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
85
- <AlertBar.Dismiss onClick={action('clicked')} />,
86
- ],
87
- variant: 'info',
88
- },
89
- };
@@ -1,82 +0,0 @@
1
- import { ComponentPropsWithoutRef, forwardRef, HTMLAttributes } from 'react';
2
-
3
- import { PickU } from '@components/Pill';
4
- import { faExclamation } from '@fortawesome/fontawesome-free-solid';
5
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
6
- import clsx from 'clsx';
7
-
8
- import { Button } from '..';
9
- import { Icon } from '../Icon';
10
-
11
- export interface AlertBarProps {
12
- id?: string;
13
- className?: string;
14
- variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
15
- loading?: boolean;
16
- }
17
-
18
- const AlertBarComponent = forwardRef<
19
- HTMLDivElement,
20
- HTMLAttributes<HTMLDivElement> & AlertBarProps
21
- >(
22
- (
23
- { id, className, children, variant = 'default', loading, ...props },
24
- ref,
25
- ) => {
26
- return (
27
- <div
28
- id={id}
29
- className={clsx('flex w-full items-center gap-x-4 px-8 py-2', {
30
- '': variant === 'default',
31
- 'border-error-default bg-error-light text-error-default':
32
- variant === 'error',
33
- 'border-info-default bg-info-light text-info-default':
34
- variant === 'info',
35
- 'border-success-default bg-success-light text-success-default':
36
- variant === 'success',
37
- 'border-warning-default bg-warning-light text-warning-default':
38
- variant === 'warning',
39
- })}
40
- ref={ref}
41
- {...props}
42
- >
43
- {children}
44
- </div>
45
- );
46
- },
47
- );
48
-
49
- const AlertBarLabel = forwardRef<
50
- HTMLParagraphElement,
51
- HTMLAttributes<HTMLParagraphElement>
52
- >(({ ...props }, ref) => (
53
- <p className="text-md text-light-grey flex-1 truncate" ref={ref} {...props} />
54
- ));
55
-
56
- const AlertBarIcon = forwardRef<
57
- SVGSVGElement,
58
- PickU<ComponentPropsWithoutRef<typeof Icon>, 'icon'>
59
- >(({ icon }, ref) => <Icon ref={ref} icon={icon} />);
60
-
61
- const AlertBarDismiss = forwardRef<
62
- HTMLButtonElement,
63
- Omit<HTMLAttributes<HTMLButtonElement>, 'icon'>
64
- >(({ ...props }) => (
65
- <Button variant="ghost" {...props}>
66
- <Icon icon={faExclamation} />
67
- </Button>
68
- ));
69
-
70
- AlertBarComponent.displayName = 'AlertBar';
71
-
72
- AlertBarLabel.displayName = 'AlertBar.Label';
73
- AlertBarIcon.displayName = 'AlertBar.Icon';
74
- AlertBarDismiss.displayName = 'AlertBar.Dismiss';
75
-
76
- const AlertBar = Object.assign(AlertBarComponent, {
77
- Label: AlertBarLabel,
78
- Icon: AlertBarIcon,
79
- Dismiss: AlertBarDismiss,
80
- });
81
-
82
- export { AlertBar };
@@ -1,14 +0,0 @@
1
- import { Avatar } from './';
2
- import { Meta, StoryObj } from '@storybook/react';
3
-
4
- const meta = {
5
- title: 'Components/Avatar',
6
- component: Avatar,
7
- args: {},
8
- } satisfies Meta<typeof Avatar>;
9
-
10
- export default meta;
11
-
12
- type Story = StoryObj<typeof meta>;
13
-
14
- export const Default: Story = {};