trepur_components 2.3.9 → 2.3.11

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 (284) 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 +25 -0
  7. package/lib/components/AlertBar/index.d.ts +15 -0
  8. package/lib/components/AlertBar/index.js +66 -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 +15 -0
  13. package/lib/components/Breadcrumbs/index.js +49 -0
  14. package/lib/components/Button/Button.stories.d.ts +24 -0
  15. package/lib/components/Button/index.d.ts +14 -0
  16. package/lib/components/Button/index.js +43 -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 +31 -0
  95. package/lib/components/Nav/index.d.ts +20 -0
  96. package/lib/components/Nav/index.js +81 -0
  97. package/lib/components/NavItem/NavItem.stories.d.ts +17 -0
  98. package/lib/components/NavItem/index.d.ts +8 -0
  99. package/lib/components/NavItem/index.js +31 -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 +30 -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/styles/global.css +19 -0
  144. package/{src → lib}/styles/themes/local.css +9 -1
  145. package/lib/styles/themes/penrithmrt.css +101 -0
  146. package/{tailwind → lib/tailwind}/colors.ts +12 -1
  147. package/lib/utils/controls.d.ts +36 -0
  148. package/lib/utils/matchMedia.d.ts +2 -0
  149. package/lib/utils/screens.d.ts +7 -0
  150. package/package.json +4 -1
  151. package/.eslintrc.cjs +0 -72
  152. package/.husky/pre-commit +0 -4
  153. package/.prettierignore +0 -10
  154. package/.prettierrc.json +0 -22
  155. package/postcss.config.js +0 -8
  156. package/src/components/Accordion/Accordion.stories.tsx +0 -39
  157. package/src/components/Accordion/const.tsx +0 -34
  158. package/src/components/Accordion/index.tsx +0 -22
  159. package/src/components/AlertBar/AlertBar.stories.tsx +0 -89
  160. package/src/components/AlertBar/index.tsx +0 -82
  161. package/src/components/Avatar/Avatar.stories.tsx +0 -14
  162. package/src/components/Avatar/index.tsx +0 -492
  163. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -29
  164. package/src/components/Breadcrumbs/index.tsx +0 -89
  165. package/src/components/Button/Button.stories.tsx +0 -24
  166. package/src/components/Button/index.tsx +0 -59
  167. package/src/components/Calendar/Calendar.stories.tsx +0 -21
  168. package/src/components/Calendar/index.tsx +0 -92
  169. package/src/components/Calendar/style.css +0 -233
  170. package/src/components/Card/Card.stories.tsx +0 -14
  171. package/src/components/Card/index.tsx +0 -39
  172. package/src/components/Carousel/Carousel.stories.tsx +0 -44
  173. package/src/components/Carousel/index.tsx +0 -301
  174. package/src/components/Carousel/utils.ts +0 -53
  175. package/src/components/CarouselThumbnail/CarouselThumbnail.stories.tsx +0 -29
  176. package/src/components/CarouselThumbnail/const.ts +0 -17
  177. package/src/components/CarouselThumbnail/index.tsx +0 -169
  178. package/src/components/CarouselThumbnail/utils.ts +0 -87
  179. package/src/components/Checkbox/Checkbox.mdx +0 -33
  180. package/src/components/Checkbox/Checkbox.stories.tsx +0 -27
  181. package/src/components/Checkbox/index.tsx +0 -44
  182. package/src/components/Collapsible/Collapsible.stories.tsx +0 -67
  183. package/src/components/Collapsible/index.tsx +0 -169
  184. package/src/components/Counter/Counter.stories.tsx +0 -20
  185. package/src/components/Counter/index.tsx +0 -98
  186. package/src/components/DetailUpdater/DetailUpdater.stories.tsx +0 -37
  187. package/src/components/DetailUpdater/index.tsx +0 -107
  188. package/src/components/Dialog/Dialog.stories.tsx +0 -65
  189. package/src/components/Dialog/index.tsx +0 -29
  190. package/src/components/Dropdown/Dropdown.stories.tsx +0 -22
  191. package/src/components/Dropdown/index.tsx +0 -117
  192. package/src/components/Dropdown/utils.ts +0 -15
  193. package/src/components/FileUploader/FilePreview.tsx +0 -45
  194. package/src/components/FileUploader/FileUploader.stories.tsx +0 -28
  195. package/src/components/FileUploader/index.tsx +0 -177
  196. package/src/components/Footer/Footer.stories.tsx +0 -47
  197. package/src/components/Footer/index.tsx +0 -96
  198. package/src/components/FooterNav/FooterNav.stories.tsx +0 -32
  199. package/src/components/FooterNav/index.tsx +0 -75
  200. package/src/components/Form/Form.stories.tsx +0 -86
  201. package/src/components/Form/index.tsx +0 -41
  202. package/src/components/Gallery/Gallery.stories.tsx +0 -39
  203. package/src/components/Gallery/index.tsx +0 -31
  204. package/src/components/Greeting/Greeting.stories.tsx +0 -16
  205. package/src/components/Greeting/index.tsx +0 -49
  206. package/src/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -14
  207. package/src/components/HamburgerIcon/index.tsx +0 -75
  208. package/src/components/Icon/Icon.stories.tsx +0 -41
  209. package/src/components/Icon/index.tsx +0 -33
  210. package/src/components/Image/Image.stories.tsx +0 -17
  211. package/src/components/Image/index.tsx +0 -25
  212. package/src/components/ImageCard/ImageCard.stories.tsx +0 -29
  213. package/src/components/ImageCard/index.tsx +0 -75
  214. package/src/components/Input/Input.stories.tsx +0 -25
  215. package/src/components/Input/index.tsx +0 -139
  216. package/src/components/MenuButton/MenuButton.stories.tsx +0 -46
  217. package/src/components/MenuButton/index.tsx +0 -66
  218. package/src/components/Modal/Modal.stories.tsx +0 -82
  219. package/src/components/Modal/index.tsx +0 -71
  220. package/src/components/Nav/Nav.stories.tsx +0 -80
  221. package/src/components/Nav/index.tsx +0 -171
  222. package/src/components/NavItem/NavItem.stories.tsx +0 -17
  223. package/src/components/NavItem/index.tsx +0 -39
  224. package/src/components/Pill/Pill.stories.tsx +0 -51
  225. package/src/components/Pill/index.tsx +0 -69
  226. package/src/components/Search/Search.stories.tsx +0 -63
  227. package/src/components/Search/index.tsx +0 -64
  228. package/src/components/Select/Select.stories.tsx +0 -55
  229. package/src/components/Select/index.tsx +0 -97
  230. package/src/components/Showcase/Showcase.stories.tsx +0 -31
  231. package/src/components/Showcase/index.tsx +0 -62
  232. package/src/components/SideNav/SideNav.stories.tsx +0 -50
  233. package/src/components/SideNav/index.tsx +0 -39
  234. package/src/components/SocialButton/SocialButton.stories.tsx +0 -88
  235. package/src/components/SocialButton/index.tsx +0 -63
  236. package/src/components/SplitCard/SplitCard.stories.tsx +0 -34
  237. package/src/components/SplitCard/index.tsx +0 -132
  238. package/src/components/Stars/Star.stories.tsx +0 -18
  239. package/src/components/Stars/index.tsx +0 -38
  240. package/src/components/Testimonial/Testimonial.stories.tsx +0 -37
  241. package/src/components/Testimonial/index.tsx +0 -123
  242. package/src/components/TextArea/TextArea.stories.tsx +0 -24
  243. package/src/components/TextArea/index.tsx +0 -133
  244. package/src/components/Timeline/Timeline.stories.tsx +0 -45
  245. package/src/components/Timeline/index.tsx +0 -65
  246. package/src/components/Tubestops/Tubestops.stories.tsx +0 -22
  247. package/src/components/Tubestops/index.tsx +0 -132
  248. package/src/components/Video/Video.stories.tsx +0 -58
  249. package/src/components/Video/assets/example.mp4 +0 -0
  250. package/src/components/Video/assets/example.ogv +0 -0
  251. package/src/components/Video/assets/example.webm +0 -0
  252. package/src/components/Video/index.tsx +0 -92
  253. package/src/custom.d.ts +0 -14
  254. package/src/documentation/Colours.mdx +0 -192
  255. package/src/documentation/Introduction.mdx +0 -13
  256. package/src/documentation/assets/index.ts +0 -3
  257. package/src/documentation/assets/trepurComponentsLogo.svg +0 -32
  258. package/src/documentation/typography/Fonts/Fonts.stories.tsx +0 -14
  259. package/src/documentation/typography/Fonts/Fonts.tsx +0 -73
  260. package/src/fonts/Sora/OFL.txt +0 -93
  261. package/src/fonts/Sora/README.txt +0 -70
  262. package/src/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  263. package/src/fonts/Sora/static/Sora-Bold.ttf +0 -0
  264. package/src/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  265. package/src/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  266. package/src/fonts/Sora/static/Sora-Light.ttf +0 -0
  267. package/src/fonts/Sora/static/Sora-Medium.ttf +0 -0
  268. package/src/fonts/Sora/static/Sora-Regular.ttf +0 -0
  269. package/src/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  270. package/src/fonts/Sora/static/Sora-Thin.ttf +0 -0
  271. package/src/styles/global.css +0 -75
  272. package/src/styles/themes/test.css +0 -28
  273. package/src/utils/controls.ts +0 -44
  274. package/src/utils/matchMedia.ts +0 -9
  275. package/src/utils/screens.ts +0 -7
  276. package/tailwind.config.ts +0 -13
  277. package/tsconfig.json +0 -49
  278. package/tsconfig.node.json +0 -12
  279. package/vite.config.mjs +0 -64
  280. /package/{src/index.ts → lib/index.d.ts} +0 -0
  281. /package/{tailwind → lib/tailwind}/boxShadow.ts +0 -0
  282. /package/{tailwind → lib/tailwind}/container.ts +0 -0
  283. /package/{tailwind → lib/tailwind}/preset.ts +0 -0
  284. /package/{tailwind → lib/tailwind}/spacing.ts +0 -0
@@ -1,21 +0,0 @@
1
- import { CalendarComponent } from './';
2
- import { Meta, StoryObj } from '@storybook/react';
3
-
4
- const meta = {
5
- title: 'V2Components/Calendar',
6
- component: CalendarComponent,
7
- } satisfies Meta<typeof CalendarComponent>;
8
-
9
- export default meta;
10
-
11
- type Story = StoryObj<typeof CalendarComponent>;
12
-
13
- export const Default: Story = {};
14
-
15
- export const ShowDoubleView: Story = {
16
- ...Default,
17
- args: {
18
- ...Default.args,
19
- showDoubleView: true,
20
- },
21
- };
@@ -1,92 +0,0 @@
1
- import { forwardRef, HTMLAttributes, useState } from 'react';
2
-
3
- import Calendar from 'react-calendar';
4
-
5
- import './style.css';
6
-
7
- export type Detail = 'month' | 'year' | 'decade' | 'century';
8
-
9
- export interface CalendarProps {
10
- onChange?: () => void;
11
- useRange?: boolean;
12
- minDetail?: Detail;
13
- minDate?: Date;
14
- maxDate?: Date;
15
- showNavigation?: true;
16
- disabledDates?: string[];
17
- showDoubleView?: boolean;
18
- }
19
-
20
- interface Tile {
21
- activeStartDate: Date;
22
- date: Date;
23
- view: string;
24
- }
25
-
26
- const CalendarComp = forwardRef<
27
- HTMLDivElement,
28
- HTMLAttributes<HTMLDivElement> & CalendarProps
29
- >(
30
- (
31
- {
32
- onChange,
33
- useRange,
34
- minDetail,
35
- minDate,
36
- maxDate,
37
- showNavigation,
38
- disabledDates,
39
- showDoubleView,
40
- },
41
- ref,
42
- ) => {
43
- const [today, setToday] = useState(new Date());
44
-
45
- const calculateDisabledDates = (
46
- date: Tile,
47
- disabledDates?: string[],
48
- ): boolean => {
49
- const formattedDate = new Intl.DateTimeFormat('en-gb', {
50
- year: 'numeric',
51
- month: '2-digit',
52
- day: '2-digit',
53
- }).format(date?.date);
54
-
55
- if (!disabledDates) return false;
56
-
57
- return disabledDates.includes(formattedDate);
58
- };
59
-
60
- return (
61
- <Calendar
62
- ref={ref}
63
- onActiveStartDateChange={({ value, activeStartDate, action }) => {
64
- const toFormat = activeStartDate !== null ? activeStartDate : today;
65
- if (action === 'next') {
66
- setToday(new Date(toFormat));
67
- }
68
- if (action === 'prev') {
69
- setToday(new Date(toFormat));
70
- }
71
- }}
72
- activeStartDate={today}
73
- onChange={onChange}
74
- selectRange={useRange}
75
- minDetail={minDetail}
76
- minDate={minDate}
77
- maxDate={maxDate}
78
- showNavigation={showNavigation}
79
- showDoubleView={showDoubleView}
80
- tileDisabled={(date: Tile) => {
81
- return calculateDisabledDates(date, disabledDates);
82
- }}
83
- />
84
- );
85
- },
86
- );
87
-
88
- CalendarComp.displayName = 'Calendar';
89
-
90
- const CalendarComponent = Object.assign(CalendarComp);
91
-
92
- export { CalendarComponent };
@@ -1,233 +0,0 @@
1
- .react-calendar {
2
- width: 410px;
3
- background: #fff;
4
- border: none;
5
- border-radius: 25px;
6
- border: 1px solid #fff;
7
- box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
8
- padding: 8px;
9
- line-height: 1.125em;
10
- }
11
-
12
- .react-calendar--doubleView .react-calendar__viewContainer {
13
- display: flex;
14
- margin: -0.5em;
15
- }
16
-
17
- .react-calendar--doubleView .react-calendar__viewContainer > * {
18
- width: 50%;
19
- margin: 0.5em;
20
- }
21
-
22
- .react-calendar button:enabled:hover {
23
- cursor: pointer;
24
- }
25
-
26
- .react-calendar__navigation {
27
- display: flex;
28
- height: 50px;
29
- margin-bottom: 1em;
30
- }
31
-
32
- .react-calendar__month-view__weekdays__weekday {
33
- padding: 0.5em;
34
- }
35
-
36
- .react-calendar__month-view__weekdays {
37
- text-align: center;
38
- text-transform: uppercase;
39
- font-size: 0.75em;
40
- }
41
-
42
- .react-calendar--doubleView {
43
- width: 800px;
44
- }
45
-
46
- .react-calendar__month-view {
47
- padding-left: 20px;
48
- padding-right: 20px;
49
- }
50
-
51
- .react-calendar__tile {
52
- height: 50px;
53
- width: 50px;
54
- }
55
-
56
- .react-calendar__tile:disabled {
57
- background-color: #fff;
58
- color: #bebebe;
59
- }
60
-
61
- .react-calendar__month-view__days__day--weekend {
62
- color: #000;
63
- }
64
-
65
- .react-calendar__month-view__days__day {
66
- color: #000;
67
- }
68
-
69
- .react-calendar__month-view__days__day--neighboringMonth {
70
- visibility: hidden;
71
- }
72
-
73
- .react-calendar__tile:enabled:hover,
74
- .react-calendar__tile:enabled:focus {
75
- border-radius: 50%;
76
- border: 1px solid;
77
- border-color: #000;
78
- background: #fff;
79
- color: #000;
80
- }
81
-
82
- .react-calendar__tile--now {
83
- background: #fff;
84
- color: #000;
85
- }
86
-
87
- .react-calendar__tile--now:enabled:hover,
88
- .react-calendar__tile--now:enabled:focus {
89
- border-radius: 50%;
90
- border: 1px solid;
91
- border-color: #000;
92
- background: #fff;
93
- color: #000;
94
- }
95
-
96
- .react-calendar__tile--hasActive:enabled:hover,
97
- .react-calendar__tile--hasActive:enabled:focus {
98
- background: #f8f8fa;
99
- }
100
-
101
- .react-calendar__tile--active {
102
- background: #000;
103
- border-radius: 50%;
104
- color: #fff;
105
- }
106
-
107
- .react-calendar__tile--rangeEnd.react-calendar__tile--active:enabled:hover,
108
- .react-calendar__tile--rangeEnd.react-calendar__tile--active:enabled:focus,
109
- .react-calendar__tile--rangeEnd:enabled {
110
- border-top-right-radius: 50%;
111
- border-bottom-right-radius: 50%;
112
- border-top-left-radius: 0;
113
- border-bottom-left-radius: 0;
114
- border: 1px solid;
115
- border-color: #000;
116
- background: #000;
117
- color: #fff;
118
- }
119
-
120
- .react-calendar__tile--rangeStart.react-calendar__tile--active:enabled:hover,
121
- .react-calendar__tile--rangeStart.react-calendar__tile--active:enabled:focus,
122
- .react-calendar__tile--rangeStart:enabled {
123
- border-top-right-radius: 0;
124
- border-bottom-right-radius: 0;
125
- border-top-left-radius: 50%;
126
- border-bottom-left-radius: 50%;
127
- border: 1px solid;
128
- border-color: #000;
129
- background: #000;
130
- color: #fff;
131
- }
132
-
133
- .react-calendar--selectRange .react-calendar__tile--hover {
134
- background-color: #dfdfe1;
135
- }
136
-
137
- .react-calendar--selectRange .react-calendar__tile--rangeStart {
138
- background-color: #000000;
139
- color: #fff;
140
- }
141
-
142
- .react-calendar__tile--range {
143
- background: #dfdfe1;
144
- color: #000;
145
- border-radius: 0;
146
- }
147
-
148
- .react-calendar__tile--rangeStart {
149
- border-top-right-radius: 0;
150
- border-bottom-right-radius: 0;
151
- border-top-left-radius: 50%;
152
- border-bottom-left-radius: 50%;
153
- background: #000;
154
- color: #fff;
155
- }
156
-
157
- .react-calendar__tile--rangeEnd {
158
- border-top-right-radius: 50%;
159
- border-bottom-right-radius: 50%;
160
- border-top-left-radius: 0;
161
- border-bottom-left-radius: 0;
162
- background: #000;
163
- color: #fff;
164
- }
165
-
166
- .react-calendar__navigation__prev-button {
167
- background: #fff;
168
- }
169
-
170
- .react-calendar__navigation__next-button {
171
- background: #fff;
172
- }
173
-
174
- .react-calendar__navigation__prev2-button {
175
- display: none;
176
- }
177
-
178
- .react-calendar__navigation__next2-button {
179
- display: none;
180
- }
181
-
182
- .react-calendar__navigation__label__labelText {
183
- color: #000000;
184
- }
185
-
186
- .react-calendar__navigation {
187
- height: 50px;
188
- }
189
-
190
- .react-calendar__navigation button {
191
- color: #000;
192
- width: 50px;
193
- background: none;
194
- font-size: 16px;
195
- }
196
- .react-calendar__navigation button:enabled:hover,
197
- .react-calendar__navigation button:enabled:focus {
198
- background-color: #bebebe;
199
- color: black;
200
- border-radius: 50%;
201
- }
202
-
203
- .react-calendar__navigation button:disabled {
204
- background: #fff;
205
- color: #bebebe;
206
- }
207
-
208
- abbr[title] {
209
- text-decoration: none;
210
- }
211
-
212
- .react-calendar__navigation__label__divider {
213
- display: none;
214
- }
215
-
216
- .react-calendar__navigation__label {
217
- padding-top: 20px;
218
- display: flex;
219
- flex-grow: 1;
220
- justify-content: space-between;
221
- }
222
-
223
- .react-calendar__navigation__label__labelText--from {
224
- margin-left: 80px;
225
- }
226
-
227
- .react-calendar__navigation__label__labelText--to {
228
- margin-right: 100px;
229
- }
230
-
231
- button.react-calendar__tile.react-calendar__tile--active.react-calendar__tile--range.react-calendar__tile--rangeStart.react-calendar__tile--rangeEnd.react-calendar__tile--rangeBothEnds.react-calendar__tile--hover.react-calendar__tile--hoverStart.react-calendar__tile--hoverEnd.react-calendar__tile--hoverBothEnds.react-calendar__month-view__days__day.react-calendar__month-view__days__day--weekend {
232
- background-color: #000;
233
- }
@@ -1,14 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
-
3
- import { Card } from '.';
4
-
5
- const meta = {
6
- title: 'V2Components/Card',
7
- component: Card,
8
- args: {},
9
- } satisfies Meta<typeof Card>;
10
- export default meta;
11
-
12
- type Story = StoryObj<typeof Card>;
13
-
14
- export const Default: Story = {};
@@ -1,39 +0,0 @@
1
- import { forwardRef, HTMLAttributes } from 'react';
2
-
3
- import clsx from 'clsx';
4
-
5
- interface AnchorAttributes
6
- extends Partial<Pick<JSX.IntrinsicElements['a'], 'href' | 'target'>> {}
7
-
8
- const CardComponent = forwardRef<
9
- HTMLAnchorElement,
10
- HTMLAttributes<HTMLDivElement> & { href: string; target: string }
11
- >(({ className, href, target, children, ...props }, ref) => {
12
- let Tag: keyof Pick<JSX.IntrinsicElements, 'a' | 'div'> = 'div';
13
- let attributes: AnchorAttributes = {};
14
-
15
- if (Boolean(href) || Boolean(target)) {
16
- Tag = 'a';
17
- attributes = { href, target, ...props };
18
- }
19
- return (
20
- <Tag
21
- className={clsx(
22
- 'grid grid-cols-1 rounded-xl bg-white p-4 drop-shadow',
23
- {
24
- 'hover:cursor-pointer': href,
25
- },
26
- className,
27
- )}
28
- {...attributes}
29
- >
30
- {children}
31
- </Tag>
32
- );
33
- });
34
-
35
- CardComponent.displayName = 'Card';
36
-
37
- const Card = Object.assign(CardComponent);
38
-
39
- export { Card };
@@ -1,44 +0,0 @@
1
- import { ImageCard } from '@components/ImageCard';
2
- import { Meta, StoryObj } from '@storybook/react';
3
-
4
- import { Carousel } from '.';
5
-
6
- const meta = {
7
- title: 'V2Components/Carousel',
8
- component: Carousel,
9
- args: {
10
- perView: 4,
11
- spacing: 16,
12
- loop: true,
13
- children: [
14
- <Carousel.Content>
15
- <Carousel.Arrow />
16
- <Carousel.Slides>
17
- {[...Array(5)].map((_, i) => (
18
- <ImageCard className="keen-slider__slide">
19
- <ImageCard.Image src={`https://picsum.photos/10${i}/100`} />
20
- <ImageCard.Content>
21
- <ImageCard.Title>This is a title</ImageCard.Title>
22
- <ImageCard.Subtitle>This is a subtitle</ImageCard.Subtitle>
23
- <ImageCard.Text>
24
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
25
- Eaque, est iusto. Veniam ullam impedit expedita perferendis
26
- cumque culpa saepe magni velit quia nemo suscipit, reiciendis
27
- ad libero, voluptate incidunt fugiat?
28
- </ImageCard.Text>
29
- </ImageCard.Content>
30
- </ImageCard>
31
- ))}
32
- </Carousel.Slides>
33
- <Carousel.Arrow rightArrow />
34
- </Carousel.Content>,
35
- <Carousel.Dots />,
36
- ],
37
- },
38
- } satisfies Meta<typeof Carousel>;
39
-
40
- export default meta;
41
-
42
- type Story = StoryObj<typeof Carousel>;
43
-
44
- export const Default: Story = {};