@nobak/design-system 1.0.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 (304) hide show
  1. package/LICENSE +73 -0
  2. package/README.md +142 -0
  3. package/lib/assets/icons.js +67 -0
  4. package/lib/components/AccountOverview/AccountOverview.js +122 -0
  5. package/lib/components/AdminPanel.js +58 -0
  6. package/lib/components/AssetExchange/AssetExchange.js +189 -0
  7. package/lib/components/AuthenticationFlow.js +216 -0
  8. package/lib/components/ConversationInterface/ConversationInterface.js +232 -0
  9. package/lib/components/DevFooter.js +38 -0
  10. package/lib/components/DevMenu.js +35 -0
  11. package/lib/components/DevSidebar.js +28 -0
  12. package/lib/components/DigitalDisplay.js +83 -0
  13. package/lib/components/Footer.js +45 -0
  14. package/lib/components/HeroContainer.js +10 -0
  15. package/lib/components/IntentRecognition/IntentRecognition.js +174 -0
  16. package/lib/components/Logo.js +259 -0
  17. package/lib/components/MenuBar.js +56 -0
  18. package/lib/components/NetworkSettings.js +223 -0
  19. package/lib/components/RecoverySetup/RecoverySetup.js +354 -0
  20. package/lib/components/RisingSun.js +122 -0
  21. package/lib/components/Symbol.js +226 -0
  22. package/lib/components/TransactionComposer/TransactionComposer.js +258 -0
  23. package/lib/components/TransactionConfirmation.js +184 -0
  24. package/lib/components/WalletMenu.js +33 -0
  25. package/lib/components/console/code/CodeBlock.js +150 -0
  26. package/lib/components/console/code/index.js +9 -0
  27. package/lib/components/console/data/DataTable.js +245 -0
  28. package/lib/components/console/data/MetricCard.js +79 -0
  29. package/lib/components/console/data/index.js +11 -0
  30. package/lib/components/console/documentation/index.js +10 -0
  31. package/lib/components/console/forms/APIKeyGenerator.js +261 -0
  32. package/lib/components/console/forms/SearchBar.js +210 -0
  33. package/lib/components/console/forms/index.js +10 -0
  34. package/lib/components/console/index.js +29 -0
  35. package/lib/components/console/layout/ConsoleCard.js +82 -0
  36. package/lib/components/console/layout/ConsoleLayout.js +86 -0
  37. package/lib/components/console/layout/index.js +10 -0
  38. package/lib/components/console/monitoring/StatusIndicator.js +128 -0
  39. package/lib/components/console/monitoring/index.js +9 -0
  40. package/lib/components/console/navigation/DevFooter.js +38 -0
  41. package/lib/components/console/navigation/DevMenu.js +35 -0
  42. package/lib/components/console/navigation/DevSidebar.js +28 -0
  43. package/lib/components/console/navigation/index.js +11 -0
  44. package/lib/components/console/settings/index.js +10 -0
  45. package/lib/components/index.js +12 -0
  46. package/lib/design/ColorPicker.stories.js +9 -0
  47. package/lib/design/HSLTool-V1.js +345 -0
  48. package/lib/design/HSLTool-V2.js +475 -0
  49. package/lib/design/HSLTool-V3.js +543 -0
  50. package/lib/design/HSLTool-V4.js +1139 -0
  51. package/lib/design/HSLTool.js +374 -0
  52. package/lib/design/OKLCHColorPicker.stories.js +24 -0
  53. package/lib/design/OKLCHTool.js +1014 -0
  54. package/lib/index.js +4 -0
  55. package/lib/shared/components/Avatar/Avatar.js +18 -0
  56. package/lib/shared/components/Avatar/index.js +1 -0
  57. package/lib/shared/components/Badge/Badge.js +34 -0
  58. package/lib/shared/components/Badge/index.js +1 -0
  59. package/lib/shared/components/Breadcrumb/Breadcrumb.js +13 -0
  60. package/lib/shared/components/Breadcrumb/index.js +1 -0
  61. package/lib/shared/components/Button/Button.js +184 -0
  62. package/lib/shared/components/Button/index.js +1 -0
  63. package/lib/shared/components/Calendar/Calendar.js +155 -0
  64. package/lib/shared/components/Calendar/CalendarDay.js +251 -0
  65. package/lib/shared/components/Calendar/CalendarHeader.js +88 -0
  66. package/lib/shared/components/Calendar/CalendarMonth.js +106 -0
  67. package/lib/shared/components/Calendar/CalendarWeek.js +267 -0
  68. package/lib/shared/components/Calendar/constants.js +73 -0
  69. package/lib/shared/components/Calendar/index.js +3 -0
  70. package/lib/shared/components/Calendar/types.d.js +0 -0
  71. package/lib/shared/components/Cartel/Cartel.js +44 -0
  72. package/lib/shared/components/Cartel/index.js +1 -0
  73. package/lib/shared/components/Cell/Cell.js +105 -0
  74. package/lib/shared/components/Cell/index.js +1 -0
  75. package/lib/shared/components/Checkbox/Checkbox.js +27 -0
  76. package/lib/shared/components/Checkbox/index.js +1 -0
  77. package/lib/shared/components/Clock/Clock.js +6 -0
  78. package/lib/shared/components/Clock/index.js +1 -0
  79. package/lib/shared/components/ColorChecker/ColorChecker.js +89 -0
  80. package/lib/shared/components/ColorChecker/index.js +2 -0
  81. package/lib/shared/components/ColorChecker/utils.js +159 -0
  82. package/lib/shared/components/Command/Command.js +95 -0
  83. package/lib/shared/components/Command/index.js +1 -0
  84. package/lib/shared/components/Container/Container.js +18 -0
  85. package/lib/shared/components/Container/index.js +1 -0
  86. package/lib/shared/components/Cover/Cover.js +17 -0
  87. package/lib/shared/components/Cover/index.js +1 -0
  88. package/lib/shared/components/DatePicker/DatePicker.js +52 -0
  89. package/lib/shared/components/DatePicker/components/Calendar.js +125 -0
  90. package/lib/shared/components/DatePicker/components/CalendarDay.js +23 -0
  91. package/lib/shared/components/DatePicker/components/DateWrapper.js +15 -0
  92. package/lib/shared/components/DatePicker/components/index.js +2 -0
  93. package/lib/shared/components/DatePicker/index.js +1 -0
  94. package/lib/shared/components/DateTime/DateTime.js +51 -0
  95. package/lib/shared/components/DateTime/index.js +1 -0
  96. package/lib/shared/components/Debug/Debug.js +12 -0
  97. package/lib/shared/components/Debug/index.js +1 -0
  98. package/lib/shared/components/Disclosure/Disclosure.js +31 -0
  99. package/lib/shared/components/Disclosure/index.js +1 -0
  100. package/lib/shared/components/Dropdown/Dropdown.js +91 -0
  101. package/lib/shared/components/Dropdown/index.js +1 -0
  102. package/lib/shared/components/EmptyState/EmptyState.js +40 -0
  103. package/lib/shared/components/EmptyState/index.js +1 -0
  104. package/lib/shared/components/Form/Form.js +41 -0
  105. package/lib/shared/components/Form/components/DynamicForm.js +66 -0
  106. package/lib/shared/components/Form/components/StepperForm.js +266 -0
  107. package/lib/shared/components/Form/components/index.js +2 -0
  108. package/lib/shared/components/Form/context/Form.js +164 -0
  109. package/lib/shared/components/Form/context/index.js +1 -0
  110. package/lib/shared/components/Form/index.js +1 -0
  111. package/lib/shared/components/Form/types.d.js +1 -0
  112. package/lib/shared/components/Form/utils/index.js +31 -0
  113. package/lib/shared/components/GroupItems/GroupItems.js +17 -0
  114. package/lib/shared/components/GroupItems/index.js +1 -0
  115. package/lib/shared/components/Header/Header.js +26 -0
  116. package/lib/shared/components/Header/index.js +1 -0
  117. package/lib/shared/components/Heading/Heading.js +5 -0
  118. package/lib/shared/components/Heading/index.js +1 -0
  119. package/lib/shared/components/Icon/Icon.js +28 -0
  120. package/lib/shared/components/Icon/index.js +1 -0
  121. package/lib/shared/components/Identicons/Identicons.js +6 -0
  122. package/lib/shared/components/Identicons/index.d.js +0 -0
  123. package/lib/shared/components/Identicons/index.js +1 -0
  124. package/lib/shared/components/Image/Image.js +22 -0
  125. package/lib/shared/components/Image/index.js +1 -0
  126. package/lib/shared/components/Input/Input.js +201 -0
  127. package/lib/shared/components/Input/components/CheckBoxInput.js +81 -0
  128. package/lib/shared/components/Input/components/DateInput.js +89 -0
  129. package/lib/shared/components/Input/components/DefaultInput.js +102 -0
  130. package/lib/shared/components/Input/components/FileReaderInput.js +88 -0
  131. package/lib/shared/components/Input/components/NumberInput.js +141 -0
  132. package/lib/shared/components/Input/components/PickerInput.js +122 -0
  133. package/lib/shared/components/Input/components/RCInput.js +112 -0
  134. package/lib/shared/components/Input/components/Radiobox/RadioboxBasic.js +56 -0
  135. package/lib/shared/components/Input/components/Radiobox/RadioboxCard.js +27 -0
  136. package/lib/shared/components/Input/components/Radiobox/RadioboxFull.js +44 -0
  137. package/lib/shared/components/Input/components/Radiobox/index.js +3 -0
  138. package/lib/shared/components/Input/components/RadioboxInput.js +102 -0
  139. package/lib/shared/components/Input/components/SelectInput.js +70 -0
  140. package/lib/shared/components/Input/components/TextAreaInput.js +67 -0
  141. package/lib/shared/components/Input/components/TextInput.js +139 -0
  142. package/lib/shared/components/Input/components/TimeInput.js +37 -0
  143. package/lib/shared/components/Input/components/UploadFileInput.js +123 -0
  144. package/lib/shared/components/Input/components/index.js +13 -0
  145. package/lib/shared/components/Input/components/types.d.js +0 -0
  146. package/lib/shared/components/Input/index.js +1 -0
  147. package/lib/shared/components/Input/types.d.js +0 -0
  148. package/lib/shared/components/Layout/Layout.js +13 -0
  149. package/lib/shared/components/Layout/index.js +1 -0
  150. package/lib/shared/components/List/List.js +30 -0
  151. package/lib/shared/components/List/index.js +1 -0
  152. package/lib/shared/components/Loader/Loader.js +27 -0
  153. package/lib/shared/components/Loader/index.js +1 -0
  154. package/lib/shared/components/Modal/Modal.js +102 -0
  155. package/lib/shared/components/Modal/index.js +1 -0
  156. package/lib/shared/components/Notification/Notification.js +39 -0
  157. package/lib/shared/components/Notification/index.js +1 -0
  158. package/lib/shared/components/Person/Person.js +81 -0
  159. package/lib/shared/components/Person/index.js +1 -0
  160. package/lib/shared/components/Popover/Popover.js +39 -0
  161. package/lib/shared/components/Popover/index.js +1 -0
  162. package/lib/shared/components/QRCode/QRCode.js +329 -0
  163. package/lib/shared/components/QRCode/index.js +1 -0
  164. package/lib/shared/components/RadioGroup/RadioGroup.js +35 -0
  165. package/lib/shared/components/RadioGroup/components/DefaultGroup.js +71 -0
  166. package/lib/shared/components/RadioGroup/components/VerticalGroup.js +83 -0
  167. package/lib/shared/components/RadioGroup/components/index.js +2 -0
  168. package/lib/shared/components/RadioGroup/index.js +1 -0
  169. package/lib/shared/components/Search/Search.js +12 -0
  170. package/lib/shared/components/Search/index.js +1 -0
  171. package/lib/shared/components/Select/Select.js +90 -0
  172. package/lib/shared/components/Select/index.js +1 -0
  173. package/lib/shared/components/Sidebar/Sidebar.js +42 -0
  174. package/lib/shared/components/Sidebar/index.js +1 -0
  175. package/lib/shared/components/SlideOver/SlideOver.js +81 -0
  176. package/lib/shared/components/SlideOver/index.js +1 -0
  177. package/lib/shared/components/Slider/Slider.js +80 -0
  178. package/lib/shared/components/Slider/index.js +1 -0
  179. package/lib/shared/components/Stepper/Stepper.js +32 -0
  180. package/lib/shared/components/Stepper/index.js +1 -0
  181. package/lib/shared/components/Steps/Steps.js +53 -0
  182. package/lib/shared/components/Steps/index.js +1 -0
  183. package/lib/shared/components/Switch/Switch.js +26 -0
  184. package/lib/shared/components/Switch/index.js +1 -0
  185. package/lib/shared/components/Tab/Tab.js +59 -0
  186. package/lib/shared/components/Tab/index.js +1 -0
  187. package/lib/shared/components/Table/Table.js +47 -0
  188. package/lib/shared/components/Table/index.js +1 -0
  189. package/lib/shared/components/Text/Text.js +11 -0
  190. package/lib/shared/components/Text/index.js +1 -0
  191. package/lib/shared/components/TextList/TextList.js +15 -0
  192. package/lib/shared/components/TextList/index.js +1 -0
  193. package/lib/shared/components/TimePicker/TimePicker.js +161 -0
  194. package/lib/shared/components/TimePicker/index.js +1 -0
  195. package/lib/shared/components/Tooltip/Tooltip.js +13 -0
  196. package/lib/shared/components/Tooltip/index.js +1 -0
  197. package/lib/shared/components/Uploader/Uploader.js +63 -0
  198. package/lib/shared/components/Uploader/index.js +1 -0
  199. package/lib/shared/components/Video/Video.js +20 -0
  200. package/lib/shared/components/Video/index.js +1 -0
  201. package/lib/shared/components/index.d.js +0 -0
  202. package/lib/shared/components/index.js +50 -0
  203. package/lib/shared/elements/Color/ColorPallet.js +20 -0
  204. package/lib/shared/elements/Color/index.js +1 -0
  205. package/lib/shared/elements/Text.js +37 -0
  206. package/lib/shared/elements/index.js +1 -0
  207. package/lib/shared/helpers/FakeLink.js +8 -0
  208. package/lib/shared/helpers/constants.js +359 -0
  209. package/lib/shared/helpers/index.js +2 -0
  210. package/lib/shared/helpers/isEqual.js +56 -0
  211. package/lib/shared/index.d.js +0 -0
  212. package/lib/shared/index.js +1 -0
  213. package/lib/shared/stories/components/Avatar.stories.js +17 -0
  214. package/lib/shared/stories/components/Badge.stories.dev.js +37 -0
  215. package/lib/shared/stories/components/Button.stories.js +553 -0
  216. package/lib/shared/stories/components/Calendar.stories.js +62 -0
  217. package/lib/shared/stories/components/Cartel.stories.js +32 -0
  218. package/lib/shared/stories/components/Checkbox.stories.js +15 -0
  219. package/lib/shared/stories/components/ColorChecker.stories.dev.js +16 -0
  220. package/lib/shared/stories/components/DateTime.stories.js +27 -0
  221. package/lib/shared/stories/components/Disclosure.stories.js +30 -0
  222. package/lib/shared/stories/components/Dropdown.stories.js +39 -0
  223. package/lib/shared/stories/components/Form/Default.stories.js +201 -0
  224. package/lib/shared/stories/components/Form/DummyForm.stories.js +48 -0
  225. package/lib/shared/stories/components/Form/DynamicForm.stories.js +155 -0
  226. package/lib/shared/stories/components/Form/StepperForm.stories.js +138 -0
  227. package/lib/shared/stories/components/Form/ValidateForm.stories.js +70 -0
  228. package/lib/shared/stories/components/Form/Validation.stories.js +184 -0
  229. package/lib/shared/stories/components/GroupItems.stories.js +23 -0
  230. package/lib/shared/stories/components/Header.stories.js +29 -0
  231. package/lib/shared/stories/components/Heading.stories.js +27 -0
  232. package/lib/shared/stories/components/Icon.stories.js +22 -0
  233. package/lib/shared/stories/components/Image.stories.js +23 -0
  234. package/lib/shared/stories/components/Input/Checkbox.stories.js +45 -0
  235. package/lib/shared/stories/components/Input/DatePicker.stories.js +23 -0
  236. package/lib/shared/stories/components/Input/Defaut.stories.js +24 -0
  237. package/lib/shared/stories/components/Input/Number.stories.js +24 -0
  238. package/lib/shared/stories/components/Input/RCI.stories.js +59 -0
  239. package/lib/shared/stories/components/Input/Radiobox.stories.dev.js +28 -0
  240. package/lib/shared/stories/components/Input/Select.stories.dev.js +27 -0
  241. package/lib/shared/stories/components/Input/SelectMultiple.stories.dev.js +510 -0
  242. package/lib/shared/stories/components/Input/Textarea.stories.js +24 -0
  243. package/lib/shared/stories/components/List.stories.js +34 -0
  244. package/lib/shared/stories/components/Loader.stories.js +15 -0
  245. package/lib/shared/stories/components/Modal.stories.js +50 -0
  246. package/lib/shared/stories/components/Notification.stories.js +22 -0
  247. package/lib/shared/stories/components/Person.stories.js +41 -0
  248. package/lib/shared/stories/components/Picker.stories.js +15 -0
  249. package/lib/shared/stories/components/Popover.stories.js +36 -0
  250. package/lib/shared/stories/components/QRCode.stories.js +20 -0
  251. package/lib/shared/stories/components/RadioGroup.stories.js +56 -0
  252. package/lib/shared/stories/components/Select.stories.js +50 -0
  253. package/lib/shared/stories/components/Sidebar.stories.js +35 -0
  254. package/lib/shared/stories/components/Slider.stories.dev.js +48 -0
  255. package/lib/shared/stories/components/Stepper/Stepper.stories.js +38 -0
  256. package/lib/shared/stories/components/Steps.stories.js +15 -0
  257. package/lib/shared/stories/components/Switch.stories.js +15 -0
  258. package/lib/shared/stories/components/Tab.stories.js +15 -0
  259. package/lib/shared/stories/components/Table.stories.js +95 -0
  260. package/lib/shared/stories/components/TextList.stories.js +23 -0
  261. package/lib/shared/stories/components/Tooltip.stories.dev.js +40 -0
  262. package/lib/shared/stories/elements/Color.stories.js +269 -0
  263. package/lib/shared/stories/elements/Text.stories.js +45 -0
  264. package/lib/shared/types/index.js +1 -0
  265. package/lib/stories/Foundation/BrandIdentity.prod.stories.js +510 -0
  266. package/lib/stories/Foundation/Logo.stories.js +19 -0
  267. package/lib/stories/Foundation/RisingSun.stories.js +16 -0
  268. package/lib/stories/Foundation/Shadows.stories.js +601 -0
  269. package/lib/stories/Foundation/Symbol.stories.js +18 -0
  270. package/lib/stories/HeroContainer.stories.js +18 -0
  271. package/lib/styles/accessibilityTokens.js +72 -0
  272. package/lib/styles/borderWidth.js +10 -0
  273. package/lib/styles/colors.js +303 -0
  274. package/lib/styles/elevation.js +240 -0
  275. package/lib/styles/icons.js +218 -0
  276. package/lib/styles/index.js +29 -0
  277. package/lib/styles/motion.js +668 -0
  278. package/lib/styles/opacity.js +10 -0
  279. package/lib/styles/radius.js +11 -0
  280. package/lib/styles/sizing.js +35 -0
  281. package/lib/styles/space.js +24 -0
  282. package/lib/styles/theme/darkTheme.js +471 -0
  283. package/lib/styles/theme/index.js +44 -0
  284. package/lib/styles/theme/lightTheme.js +480 -0
  285. package/lib/styles/theme/themeTypes.js +1 -0
  286. package/lib/styles/theme/themeUtils.js +63 -0
  287. package/lib/styles/typography-advanced.js +510 -0
  288. package/lib/styles/typography.js +1419 -0
  289. package/lib/styles/zIndex.js +19 -0
  290. package/lib/tokens/borders.js +161 -0
  291. package/lib/tokens/colors.js +426 -0
  292. package/lib/tokens/components.js +499 -0
  293. package/lib/tokens/index.js +84 -0
  294. package/lib/tokens/lighting.js +384 -0
  295. package/lib/tokens/motion.js +284 -0
  296. package/lib/tokens/semantic.js +367 -0
  297. package/lib/tokens/shadows.js +114 -0
  298. package/lib/tokens/spacing.js +189 -0
  299. package/lib/tokens/typography.js +268 -0
  300. package/package.json +176 -0
  301. package/styles/generated-tokens.css +677 -0
  302. package/styles/index.css +2 -0
  303. package/styles/main.css +610 -0
  304. package/tailwind.config.js +64 -0
package/lib/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { Avatar, Badge, Button, Breadcrumb, Cover, Command, Calendar, CalendarDay, CalendarWeek, DateTime, Disclosure, Dropdown, Form, GroupItems, Heading, Icon, Image, Input, Layout, Loader, List, Modal, Notification, Popover, RadioGroup, Search, Select, SlideOver, Stepper, Switch, Tab, Table, Video, Uploader, Slider, Sidebar, Tooltip, QRCode } from "./shared/components";
2
+ export { RisingSun, MenuBar, DevMenu, Footer, DevFooter, Logo, AdminPanel, HeroContainer, DevSidebar, WalletMenu } from "./components";
3
+ export { DigitalDisplay } from "./components";
4
+ export { Symbol } from "./components";
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import clsx from 'clsx';
3
+ export var Avatar = function Avatar(_ref) {
4
+ var imageUrl = _ref.imageUrl,
5
+ _ref$size = _ref.size,
6
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
7
+ customCss = _ref.customCss;
8
+ var outside = clsx(size === 'xtiny' && 'ring-1', size === 'tiny' && 'ring-1', size === 'xs' && 'ring-1', size === 'small' && 'ring-1', size === 'medium' && 'ring-2', size === 'large' && 'ring-4', "relative w-fit rounded-full ring-neutral-100 shadow-soft-bevel shadow-inner");
9
+ var style = clsx(!imageUrl && 'bg-red-400', size === 'xtiny' && 'h-[24px] w-[24px]', size === 'tiny' && 'h-[32px] w-[32px]', size === 'xs' && 'h-[40px] w-[40px]', size === 'small' && 'h-[60px] w-[60px]', size === 'medium' && 'h-[100px] w-[100px]', size === 'large' && 'h-[200px] w-[200px] sm:h-[100px] sm:w-[100px]', 'bg-cover bg-center rounded-full', "".concat(customCss));
10
+ return /*#__PURE__*/React.createElement("div", {
11
+ className: outside
12
+ }, /*#__PURE__*/React.createElement("div", {
13
+ className: style,
14
+ style: {
15
+ backgroundImage: "url(".concat(imageUrl, ")")
16
+ }
17
+ }));
18
+ };
@@ -0,0 +1 @@
1
+ export { Avatar } from "./Avatar";
@@ -0,0 +1,34 @@
1
+ import clsx from 'clsx';
2
+ import React from 'react';
3
+ export var Badge = function Badge(_ref) {
4
+ var title = _ref.title,
5
+ _ref$variant = _ref.variant,
6
+ variant = _ref$variant === void 0 ? 'secondary' : _ref$variant,
7
+ _ref$size = _ref.size,
8
+ size = _ref$size === void 0 ? 'small' : _ref$size;
9
+ var style = clsx(size === 'small' && 'py-[4px] px-[8px] text-caption-bold', size === 'large' && 'py-[4px] px-[8px] text-caption-bold', variant === 'secondary' && 'bg-secondary-300 text-neutral-800', 'inline-flex items-center rounded-[4px] font-medium');
10
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
11
+ className: style
12
+ }, title));
13
+ };
14
+
15
+ // <span className="inline-flex rounded-full items-center py-0.5 pl-2.5 pr-1 text-sm font-medium bg-secondary-100 text-secondary-700">
16
+ // Large
17
+ // <button
18
+ // type="button"
19
+ // className="flex-shrink-0 ml-0.5 h-4 w-4 rounded-full inline-flex items-center justify-center text-secondary-400 hover:bg-secondary-200 hover:text-secondary-500 focus:outline-none focus:bg-secondary-500 focus:text-white"
20
+ // >
21
+ // <svg
22
+ // className="h-2 w-2"
23
+ // stroke="currentColor"
24
+ // fill="none"
25
+ // viewBox="0 0 8 8"
26
+ // >
27
+ // <path
28
+ // strokeLinecap="round"
29
+ // strokeWidth="1.5"
30
+ // d="M1 1l6 6m0-6L1 7"
31
+ // />
32
+ // </svg>
33
+ // </button>
34
+ // </span>
@@ -0,0 +1 @@
1
+ export { Badge } from "./Badge";
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export var Breadcrumb = function Breadcrumb(_ref) {
3
+ var items = _ref.items;
4
+ return /*#__PURE__*/React.createElement("div", {
5
+ className: "grid grid-cols-3 gap-4 content-start"
6
+ }, items === null || items === void 0 ? void 0 : items.map(function (item) {
7
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
8
+ className: "text-[14px] text-neutral-800 font-bold"
9
+ }, item[0]), /*#__PURE__*/React.createElement("div", {
10
+ className: "text-[16.2px] text-neutral-900"
11
+ }, item[1]));
12
+ }));
13
+ };
@@ -0,0 +1 @@
1
+ export { Breadcrumb } from "./Breadcrumb";
@@ -0,0 +1,184 @@
1
+ // Button.tsx
2
+ import React from 'react';
3
+ import clsx from 'clsx';
4
+ import { MenuButton, PopoverButton } from '@headlessui/react';
5
+ import { Icon } from "../Icon";
6
+ export var Button = function Button(_ref) {
7
+ var text = _ref.text,
8
+ _ref$variant = _ref.variant,
9
+ variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
10
+ Component = _ref.component,
11
+ _ref$size = _ref.size,
12
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
13
+ _ref$type = _ref.type,
14
+ type = _ref$type === void 0 ? 'button' : _ref$type,
15
+ _ref$as = _ref.as,
16
+ as = _ref$as === void 0 ? 'button' : _ref$as,
17
+ rounded = _ref.rounded,
18
+ icon = _ref.icon,
19
+ onClick = _ref.onClick,
20
+ startUpload = _ref.startUpload,
21
+ _ref$disabled = _ref.disabled,
22
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
23
+ to = _ref.to,
24
+ _ref$customCss = _ref.customCss,
25
+ customCss = _ref$customCss === void 0 ? '' : _ref$customCss,
26
+ _ref$loading = _ref.loading,
27
+ loading = _ref$loading === void 0 ? false : _ref$loading,
28
+ _ref$active = _ref.active,
29
+ active = _ref$active === void 0 ? false : _ref$active;
30
+ var variantClasses = {
31
+ primary: clsx(active ? 'bg-primary-100' : 'bg-primary-300', 'text-neutral-2400 border border-primary-800', 'outline-none hover:outline-none hover:bg-primary-100 hover:text-primary-2400', 'hover:border-[1px] hover:border-primary-400', 'hover:ring-[1px] hover:ring-primary-1000 hover:ring-offset-neutral-200 hover:shadow-md', 'active:outline-none active:bg-primary-1600 active:text-primary-2000', 'active:border-[1px] active:border-primary-400', 'active:ring-[1px] active:ring-primary-1400 active:ring-offset-neutral-300'),
32
+ secondary: clsx(active ? 'bg-primary-1600' : 'bt-secondary-default', 'text-neutral-800 border border-neutral-1400', 'hover:outline-none hover:bg-secondary-1600 hover:text-neutral-200', 'hover:border-[1px] hover:border-neutral-400', 'hover:ring-[1px] hover:ring-secondary-1400 hover:ring-offset-secondary-300', 'active:outline-none active:bg-secondary-1600 active:text-secondary-100', 'active:border-[1px] active:border-secondary-400', 'active:ring-[1px] active:ring-secondary-1400 active:ring-offset-secondary-300'),
33
+ neutral: clsx('bg-neutral-2700 text-neutral-400 border border-neutral-1400', 'hover:outline-none hover:bg-neutral-1600 hover:text-neutral-500', 'hover:border-[1px] hover:border-neutral-400', 'hover:ring-[1px] hover:ring-neutral-1400 hover:ring-offset-neutral-300', 'active:outline-none active:bg-neutral-1600 active:text-neutral-500', 'active:border-[1px] active:border-neutral-400', 'active:ring-[1px] active:ring-neutral-1400 active:ring-offset-neutral-300'),
34
+ basic: clsx('text-neutral-2200 hover:outline-none active:outline-none', 'hover:text-primary-1400 active:text-primary-1600'),
35
+ air: clsx(active ? 'bg-primary-100 text-primary-2400 shadow-lg' : 'text-primary-800', 'border border-primary-300', 'hover:outline-none hover:bg-primary-100 hover:text-primary-1200', 'hover:border-[1px] hover:border-primary-600', 'hover:ring-[1px] hover:ring-primary-500 hover:ring-offset-primary-400', 'active:outline-none active:bg-primary-600 active:text-primary-400', 'active:border-[1px] active:border-primary-400', 'active:ring-[1px] active:ring-primary-1400 active:ring-offset-primary-300'),
36
+ warning: clsx('bg-red-1400 text-neutral-500 border border-red-1400', 'hover:outline-none hover:bg-red-1600 hover:text-red-500', 'hover:border-[1px] hover:border-red-400', 'hover:ring-[1px] hover:ring-red-1400 hover:ring-offset-neutral-300', 'active:outline-none active:bg-red-1600 active:text-red-500', 'active:border-[1px] active:border-red-400', 'active:ring-[1px] active:ring-red-1400 active:ring-offset-neutral-300'),
37
+ positive: clsx('bg-green-1400 text-neutral-500 border border-green-1400', 'hover:outline-none hover:bg-green-600 hover:text-green-400', 'hover:border-[1px] hover:border-green-400', 'hover:ring-[1px] hover:ring-green-1400 hover:ring-offset-neutral-300', 'active:outline-none active:bg-green-600 active:text-green-400', 'active:border-[1px] active:border-green-400', 'active:ring-[1px] active:ring-green-1400 active:ring-offset-neutral-300'),
38
+ outline: clsx('border bt-neutral-default border-neutral-1400 text-neutral-2200', 'hover:outline-none hover:bg-neutral-1600 hover:text-neutral-1200', 'hover:border-[1px] hover:border-neutral-400', 'hover:ring-[1px] hover:ring-neutral-1400 hover:ring-offset-neutral-300', 'active:outline-none active:bg-neutral-1600 active:text-neutral-1200', 'active:border-[1px] active:border-neutral-400', 'active:ring-[1px] active:ring-neutral-1400 active:ring-offset-neutral-300'),
39
+ dropdown: clsx('border bt-neutral-default border-neutral-1400 text-neutral-2400', 'hover:outline-none hover:bg-neutral-1600 hover:text-neutral-2000', 'hover:border-[1px] hover:border-neutral-400', 'hover:ring-[1px] hover:ring-neutral-1400 hover:ring-offset-neutral-300', 'active:outline-none active:bg-neutral-1600 active:text-neutral-2000', 'active:border-[1px] active:border-neutral-400', 'active:ring-[1px] active:ring-neutral-1400 active:ring-offset-neutral-300'),
40
+ alert: '' // Add styles if needed
41
+ };
42
+ var sizeClasses = {
43
+ tiny: clsx('text-button-tiny font-medium tracking-wide rounded-[4px]', 'active:ring-offset-[1px] hover:ring-offset-[1px]', text ? 'px-[8px] py-[6px]' : '', icon && text ? 'py-[4px]' : '', icon && !text ? 'px-[4px] py-[4px] rounded-[4px]' : ''),
44
+ small: clsx('text-button-small font-medium tracking-wide rounded-[6px]', 'active:ring-offset-[1px] hover:ring-offset-[1px]', text ? 'px-[10px] py-[8px]' : '', icon && text ? 'py-[5.5px]' : '', icon && !text ? 'px-[5.5px] py-[5.5px] rounded-[6px]' : ''),
45
+ medium: clsx('text-button-medium font-bold tracking-wide rounded-[10px]', 'active:ring-offset-[2px] hover:ring-offset-[2px]', text ? 'px-[16px] py-[12px]' : '', icon && text ? 'py-[7px]' : '', icon && !text ? 'px-[7px] py-[7px] rounded-[10px]' : ''),
46
+ large: clsx('text-button-large font-bold rounded-[12px]', 'active:ring-offset-[3px] hover:ring-offset-[3px]', text ? 'px-[30px] py-[13px]' : '', icon && text ? 'py-[7.5px]' : '', icon && !text ? 'px-[7.5px] py-[7.5px] rounded-[12px]' : ''),
47
+ xlarge: clsx('text-[24px] font-bold rounded-[12px]', 'active:ring-offset-[4px] hover:ring-offset-[4px]', text ? 'px-[30px] py-[8.001px]' : '', icon && text ? 'py-[7.5px]' : '', icon && !text ? 'px-[8px] py-[8px] rounded-[12px]' : '')
48
+ };
49
+ var actionHeightClasses = {
50
+ tiny: 'h-[26px]',
51
+ small: 'h-[33px]',
52
+ medium: 'h-[44px]',
53
+ large: 'h-[51px]',
54
+ xlarge: 'h-[51px]'
55
+ };
56
+ var roundedClasses = {
57
+ small: 'rounded-[4px]',
58
+ medium: 'rounded-md',
59
+ full: 'rounded-full'
60
+ };
61
+ var disabledClasses = 'cursor-not-allowed bg-neutral-100 hover:bg-neutral-150';
62
+
63
+ // Base button classes
64
+ var baseButtonClasses = 'transition ease-in-out delay-75 duration-300 inline-flex justify-center cursor-pointer items-center font-bold';
65
+
66
+ // Compute the final class name for the button
67
+ var buttonClassName = clsx(baseButtonClasses, variantClasses[variant], sizeClasses[size], type === 'action' && actionHeightClasses[size], rounded && roundedClasses[rounded], disabled && disabledClasses, customCss);
68
+
69
+ // Classes for dropdown style
70
+ var dropdownClassName = clsx(active ? 'bg-neutral-150 text-neutral-2700' : 'text-neutral-600', disabled && 'cursor-not-allowed bg-neutral-100 hover:bg-neutral-100', 'group flex items-center py-[8px] px-[16px] text-sm', 'hover:outline-none hover:bg-neutral-1400 hover:text-neutral-2200 hover:font-bold', 'active:outline-none active:bg-neutral-100 active:text-primary-2700', 'active:ring-[1px] active:ring-primary-200 active:ring-offset-neutral-50', 'w-full', customCss);
71
+
72
+ // Span styles
73
+ var spanClassName = clsx('contents align-middle', text && size === 'tiny' && 'h-[14px]', text && size === 'small' && 'h-[17px]', text && size === 'medium' && 'h-[20px]', text && size === 'large' && 'h-[25px]', text && size === 'xlarge' && 'h-[30px]', icon && text && size === 'tiny' && 'pt-[1px]');
74
+
75
+ // Icon styles
76
+ var iconClassName = clsx(icon && text && size === 'tiny' && 'pr-[3px] hover:fill-black', icon && text && size === 'small' && 'pr-[4.5px] fill-white', icon && text && size === 'medium' && 'pr-[6px] hover:fill-black', icon && text && size === 'large' && 'pr-[6.5px] hover:fill-black', icon && text && size === 'xlarge' && 'pr-[7px] hover:fill-black');
77
+
78
+ // Helper component for icon and text
79
+ var ButtonContent = function ButtonContent() {
80
+ return /*#__PURE__*/React.createElement(React.Fragment, null, loading ? /*#__PURE__*/React.createElement("div", {
81
+ className: "pr-[8px]"
82
+ }, /*#__PURE__*/React.createElement("div", {
83
+ className: "origin-center animate-spin"
84
+ }, /*#__PURE__*/React.createElement(Icon, {
85
+ name: "spinner",
86
+ size: icon ? size : 'tiny',
87
+ viewBox: "0 0 16 16"
88
+ }))) : icon ? /*#__PURE__*/React.createElement("div", {
89
+ className: iconClassName
90
+ }, /*#__PURE__*/React.createElement(Icon, {
91
+ name: icon,
92
+ size: size
93
+ })) : null, text && /*#__PURE__*/React.createElement("span", {
94
+ className: spanClassName
95
+ }, text));
96
+ };
97
+
98
+ // Handle click events
99
+ var handleClick = function handleClick(event) {
100
+ if (onClick) onClick(event);
101
+ };
102
+
103
+ // Render based on the button type
104
+ switch (type) {
105
+ case 'menu':
106
+ return /*#__PURE__*/React.createElement(MenuButton, {
107
+ className: buttonClassName,
108
+ disabled: disabled,
109
+ onClick: handleClick
110
+ }, /*#__PURE__*/React.createElement(ButtonContent, null));
111
+ case 'popover':
112
+ return /*#__PURE__*/React.createElement(PopoverButton, {
113
+ className: buttonClassName,
114
+ disabled: disabled,
115
+ onClick: handleClick
116
+ }, /*#__PURE__*/React.createElement(ButtonContent, null));
117
+ case 'submit':
118
+ return /*#__PURE__*/React.createElement("button", {
119
+ type: "submit",
120
+ className: buttonClassName,
121
+ disabled: disabled,
122
+ onClick: handleClick
123
+ }, /*#__PURE__*/React.createElement(ButtonContent, null));
124
+ case 'action':
125
+ return /*#__PURE__*/React.createElement("form", {
126
+ className: "inline"
127
+ }, /*#__PURE__*/React.createElement("button", {
128
+ type: "submit",
129
+ formAction: to,
130
+ formMethod: "post",
131
+ className: variant === 'dropdown' ? dropdownClassName : buttonClassName,
132
+ disabled: disabled,
133
+ onClick: handleClick
134
+ }, /*#__PURE__*/React.createElement(ButtonContent, null)));
135
+ case 'link':
136
+ if (Component) {
137
+ return /*#__PURE__*/React.createElement(Component, {
138
+ to: !disabled ? to : '#',
139
+ className: variant === 'dropdown' ? dropdownClassName : buttonClassName,
140
+ disabled: disabled
141
+ }, /*#__PURE__*/React.createElement(ButtonContent, null));
142
+ }
143
+ return null;
144
+ case 'upload':
145
+ if (startUpload) {
146
+ return /*#__PURE__*/React.createElement("div", {
147
+ className: "pt-4"
148
+ }, /*#__PURE__*/React.createElement("label", {
149
+ htmlFor: "file-upload",
150
+ className: buttonClassName
151
+ }, /*#__PURE__*/React.createElement(ButtonContent, null), /*#__PURE__*/React.createElement("input", {
152
+ id: "file-upload",
153
+ name: "file-upload",
154
+ type: "file",
155
+ disabled: disabled,
156
+ className: "sr-only",
157
+ onChange: function onChange(e) {
158
+ return startUpload(e);
159
+ }
160
+ })));
161
+ }
162
+ return null;
163
+ case 'anchor':
164
+ if (to) {
165
+ return /*#__PURE__*/React.createElement("a", {
166
+ href: to,
167
+ className: variant === 'dropdown' ? dropdownClassName : buttonClassName
168
+ }, /*#__PURE__*/React.createElement(ButtonContent, null));
169
+ }
170
+ return null;
171
+ default:
172
+ if (as === 'div') {
173
+ return /*#__PURE__*/React.createElement("div", {
174
+ className: variant === 'dropdown' ? dropdownClassName : buttonClassName
175
+ }, /*#__PURE__*/React.createElement(ButtonContent, null));
176
+ }
177
+ return /*#__PURE__*/React.createElement("button", {
178
+ type: "button",
179
+ className: variant === 'dropdown' ? dropdownClassName : buttonClassName,
180
+ onClick: handleClick,
181
+ disabled: disabled
182
+ }, /*#__PURE__*/React.createElement(ButtonContent, null));
183
+ }
184
+ };
@@ -0,0 +1 @@
1
+ export { Button } from "./Button";
@@ -0,0 +1,155 @@
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ import React from 'react';
8
+ import { CalendarViewType, useCalendar } from '@h6s/calendar';
9
+ import { format } from 'date-fns';
10
+ import clsx from 'clsx';
11
+ // import { ClockIcon } from '@heroicons/react/solid';
12
+ import { WeekView } from "./CalendarWeek";
13
+ import { DayView } from "./CalendarDay";
14
+ import { MonthDesktop, MonthMobile } from "./CalendarMonth";
15
+ import { CalendarHeader } from "./CalendarHeader";
16
+ // Add moonphases to the calendar.
17
+ // import { Moon } from 'lunarphase-js';
18
+
19
+ export var Calendar = function Calendar(_ref) {
20
+ var _ref$events = _ref.events,
21
+ events = _ref$events === void 0 ? [] : _ref$events,
22
+ CTA = _ref.CTA,
23
+ openModal = _ref.openModal,
24
+ _ref$defaultView = _ref.defaultView,
25
+ defaultView = _ref$defaultView === void 0 ? 'month' : _ref$defaultView;
26
+ var _React$useState = React.useState(defaultView),
27
+ _React$useState2 = _slicedToArray(_React$useState, 2),
28
+ activeView = _React$useState2[0],
29
+ changeView = _React$useState2[1];
30
+ var _useCalendar = useCalendar({
31
+ defaultViewType: CalendarViewType.Month
32
+ }),
33
+ cursorDate = _useCalendar.cursorDate,
34
+ headers = _useCalendar.headers,
35
+ body = _useCalendar.body,
36
+ view = _useCalendar.view,
37
+ navigation = _useCalendar.navigation;
38
+ var setView = function setView(option) {
39
+ changeView(option);
40
+ switch (option) {
41
+ case 'month':
42
+ return view.showMonthView();
43
+ case 'day':
44
+ return view.showMonthView();
45
+ case 'week':
46
+ return view.showWeekView();
47
+ }
48
+ };
49
+
50
+ // React.useEffect, populate events, watch [view]
51
+ var eventsOnDate = events.filter(function (event) {
52
+ return format(cursorDate, 'DDD') === format(new Date(event.timestamp * 1000), 'DDD') ? true : false;
53
+ });
54
+
55
+ // React.useEffect(() => {
56
+ // console.log('activeView', activeView)
57
+ // if (!activeView) {
58
+ // view.showMonthView();
59
+ // }
60
+ // if (defaultView === 'week') {
61
+ // view.showWeekView();
62
+ // }
63
+ // }, [activeView])
64
+
65
+ var bodyStyle = clsx(activeView === 'month' && 'flex flex-col h-[800px]', (activeView === 'week' || activeView === 'day') && 'flex flex-col h-v92');
66
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
67
+ className: bodyStyle
68
+ }, /*#__PURE__*/React.createElement(CalendarHeader, {
69
+ CTA: CTA,
70
+ activeView: activeView,
71
+ setView: setView,
72
+ view: view,
73
+ cursorDate: cursorDate,
74
+ navigation: navigation
75
+ }), activeView === 'month' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
76
+ className: "shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col"
77
+ }, /*#__PURE__*/React.createElement("div", {
78
+ className: "grid grid-cols-7 gap-px text-center text-xs font-semibold leading-6 text-neutral-700 lg:flex-none"
79
+ }, headers.weekDays.map(function (_ref2, key) {
80
+ var value = _ref2.value;
81
+ var day = format(value, 'eee');
82
+ return /*#__PURE__*/React.createElement("div", {
83
+ className: "py-2",
84
+ key: key
85
+ }, day.charAt(0), /*#__PURE__*/React.createElement("span", {
86
+ className: "sr-only sm:not-sr-only"
87
+ }, day.slice(1, 3)));
88
+ })), /*#__PURE__*/React.createElement("div", {
89
+ className: "flex bg-neutral-300 p-[1px] text-xs leading-6 text-neutral-700 lg:flex-auto rounded-[20px] mb-[40px]"
90
+ }, /*#__PURE__*/React.createElement("div", {
91
+ className: "hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-".concat(body.value.length, " lg:gap-px")
92
+ }, body.value.map(function (_ref3) {
93
+ var key = _ref3.key,
94
+ weeks = _ref3.value;
95
+ return /*#__PURE__*/React.createElement(MonthDesktop, {
96
+ openModal: openModal,
97
+ key: key,
98
+ body: body,
99
+ weeks: weeks,
100
+ events: events,
101
+ activeDate: cursorDate,
102
+ navigation: navigation
103
+ });
104
+ })), /*#__PURE__*/React.createElement("div", {
105
+ className: "isolate grid w-full grid-cols-7 grid-rows-5 gap-px lg:hidden"
106
+ }, body.value.map(function (_ref4) {
107
+ var key = _ref4.key,
108
+ weeks = _ref4.value;
109
+ return /*#__PURE__*/React.createElement(MonthMobile, {
110
+ openModal: openModal,
111
+ key: key,
112
+ body: body,
113
+ weeks: weeks,
114
+ events: events,
115
+ activeDate: cursorDate,
116
+ navigation: navigation
117
+ });
118
+ }))))), activeView === 'week' && /*#__PURE__*/React.createElement(WeekView, {
119
+ headers: headers,
120
+ body: body,
121
+ events: events,
122
+ navigation: navigation,
123
+ cursorDate: cursorDate,
124
+ view: view
125
+ }), activeView === 'day' && /*#__PURE__*/React.createElement(DayView, {
126
+ headers: headers,
127
+ body: body,
128
+ events: events,
129
+ activeView: activeView,
130
+ navigation: navigation,
131
+ cursorDate: cursorDate,
132
+ view: view
133
+ }), activeView === 'month' && eventsOnDate.length > 0 && /*#__PURE__*/React.createElement("div", {
134
+ className: "py-10 px-4 sm:px-6 lg:hidden"
135
+ }, /*#__PURE__*/React.createElement("ol", {
136
+ className: "divide-y divide-neutral-100 overflow-hidden rounded-lg bg-neutral-100 text-sm shadow ring-1 ring-black ring-opacity-5"
137
+ }, eventsOnDate.map(function (event) {
138
+ return /*#__PURE__*/React.createElement("li", {
139
+ key: event.id,
140
+ className: "group flex p-4 pr-6 focus-within:bg-neutral-50 hover:bg-neutral-50"
141
+ }, /*#__PURE__*/React.createElement("div", {
142
+ className: "flex-auto"
143
+ }, /*#__PURE__*/React.createElement("p", {
144
+ className: "font-semibold text-neutral-900"
145
+ }, event.name), /*#__PURE__*/React.createElement("time", {
146
+ dateTime: format(new Date(event.timestamp * 1000), 'P pppp'),
147
+ className: "mt-2 flex items-center text-neutral-700"
148
+ }, format(new Date(event.timestamp * 1000), 'hh bbbb'))), /*#__PURE__*/React.createElement("a", {
149
+ href: event.href,
150
+ className: "ml-6 flex-none self-center rounded-md border border-neutral-900 bg-neutral-100 py-2 px-3 font-semibold text-neutral-700 opacity-0 shadow-sm hover:bg-neutral-50 focus:opacity-100 group-hover:opacity-100"
151
+ }, "Edit", /*#__PURE__*/React.createElement("span", {
152
+ className: "sr-only"
153
+ }, ", ", event.name)));
154
+ })))));
155
+ };