@infonomic/uikit 2.0.0 → 2.1.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 (312) hide show
  1. package/dist/components/card/card.d.ts.map +1 -1
  2. package/package.json +9 -5
  3. package/src/astro.d.ts +43 -0
  4. package/src/astro.js +2 -2
  5. package/src/components/@types/shared.ts +24 -0
  6. package/src/components/accordion/accordion.module.css +60 -0
  7. package/src/components/accordion/accordion.stories.tsx +117 -0
  8. package/src/components/accordion/accordion.tsx +105 -0
  9. package/src/components/animation/fade-in-lift.stories.tsx +81 -0
  10. package/src/components/animation/fade-in-lift.tsx +42 -0
  11. package/src/components/avatar/avatar.module.css +54 -0
  12. package/src/components/avatar/avatar.stories.tsx +28 -0
  13. package/src/components/avatar/avatar.tsx +19 -0
  14. package/src/components/button/@types/button.ts +17 -0
  15. package/src/components/button/button-group.module.css +17 -0
  16. package/src/components/button/button-group.stories.tsx +45 -0
  17. package/src/components/button/button-group.tsx +132 -0
  18. package/src/components/button/button-icon.stories.tsx +145 -0
  19. package/src/components/button/button-intents.stories.tsx +50 -0
  20. package/src/components/button/button-variants.stories.tsx +60 -0
  21. package/src/components/button/button.astro +86 -0
  22. package/src/components/button/button.module.css +533 -0
  23. package/src/components/button/button.tsx +81 -0
  24. package/src/components/button/control-buttons.module.css +144 -0
  25. package/src/components/button/control-buttons.stories.tsx +60 -0
  26. package/src/components/button/control-buttons.tsx +137 -0
  27. package/src/components/button/copy-button.module.css +31 -0
  28. package/src/components/button/copy-button.stories.tsx +50 -0
  29. package/src/components/button/copy-button.tsx +92 -0
  30. package/src/components/button/icon-button.astro +47 -0
  31. package/src/components/button/icon-button.tsx +44 -0
  32. package/src/components/button/index.ts +5 -0
  33. package/src/components/calendar/calendar.module.css +315 -0
  34. package/src/components/calendar/calendar.stories.tsx +139 -0
  35. package/src/components/calendar/calendar.tsx +173 -0
  36. package/src/components/card/card-content.astro +14 -0
  37. package/src/components/card/card-description.astro +14 -0
  38. package/src/components/card/card-footer.astro +14 -0
  39. package/src/components/card/card-header.astro +14 -0
  40. package/src/components/card/card-title.astro +14 -0
  41. package/src/components/card/card.astro +41 -0
  42. package/src/components/card/card.module.css +67 -0
  43. package/src/components/card/card.stories.tsx +61 -0
  44. package/src/components/card/card.tsx +86 -0
  45. package/src/components/container/container.astro +13 -0
  46. package/src/components/container/container.module.css +28 -0
  47. package/src/components/container/container.stories.tsx +42 -0
  48. package/src/components/container/container.tsx +23 -0
  49. package/src/components/dropdown/dropdown.module.css +131 -0
  50. package/src/components/dropdown/dropdown.stories.tsx +103 -0
  51. package/src/components/dropdown/dropdown.tsx +193 -0
  52. package/src/components/hamburger/hamburger.astro +30 -0
  53. package/src/components/hamburger/hamburger.tsx +66 -0
  54. package/src/components/input/@types/checkbox.ts +20 -0
  55. package/src/components/input/@types/input.ts +20 -0
  56. package/src/components/input/checkbox-group.tsx +78 -0
  57. package/src/components/input/checkbox.module.css +267 -0
  58. package/src/components/input/checkbox.stories.tsx +240 -0
  59. package/src/components/input/checkbox.tsx +95 -0
  60. package/src/components/input/error-text.astro +14 -0
  61. package/src/components/input/error-text.module.css +19 -0
  62. package/src/components/input/error-text.tsx +18 -0
  63. package/src/components/input/errors.tsx +37 -0
  64. package/src/components/input/help-text.astro +13 -0
  65. package/src/components/input/help-text.module.css +19 -0
  66. package/src/components/input/help-text.tsx +13 -0
  67. package/src/components/input/index.tsx +8 -0
  68. package/src/components/input/input-adornment.astro +26 -0
  69. package/src/components/input/input-adornment.module.css +18 -0
  70. package/src/components/input/input-adornment.tsx +36 -0
  71. package/src/components/input/input.astro +99 -0
  72. package/src/components/input/input.module.css +310 -0
  73. package/src/components/input/input.stories.tsx +174 -0
  74. package/src/components/input/input.tsx +103 -0
  75. package/src/components/input/label.astro +24 -0
  76. package/src/components/input/label.module.css +28 -0
  77. package/src/components/input/label.tsx +25 -0
  78. package/src/components/input/radio-group.module.css +219 -0
  79. package/src/components/input/radio-group.stories.tsx +73 -0
  80. package/src/components/input/radio-group.tsx +67 -0
  81. package/src/components/input/select.module.css +75 -0
  82. package/src/components/input/select.stories.tsx +34 -0
  83. package/src/components/input/select.tsx +115 -0
  84. package/src/components/input/text-area.module.css +9 -0
  85. package/src/components/input/text-area.stories.tsx +51 -0
  86. package/src/components/input/text-area.tsx +81 -0
  87. package/src/components/input/utils.ts +21 -0
  88. package/src/components/notifications/@types/alert.ts +12 -0
  89. package/src/components/notifications/@types/toast.ts +12 -0
  90. package/src/components/notifications/alert.module.css +114 -0
  91. package/src/components/notifications/alert.stories.tsx +39 -0
  92. package/src/components/notifications/alert.tsx +117 -0
  93. package/src/components/notifications/index.ts +2 -0
  94. package/src/components/notifications/toast.module.css +237 -0
  95. package/src/components/notifications/toast.stories.tsx +42 -0
  96. package/src/components/notifications/toast.tsx +124 -0
  97. package/src/components/overlay/index.stories.tsx +29 -0
  98. package/src/components/overlay/index.ts +2 -0
  99. package/src/components/overlay/overlay.module.css +41 -0
  100. package/src/components/overlay/overlay.tsx +61 -0
  101. package/src/components/pager/@types/index.ts +2 -0
  102. package/src/components/pager/ellipses.tsx +18 -0
  103. package/src/components/pager/event-pager.tsx +18 -0
  104. package/src/components/pager/first-button.tsx +53 -0
  105. package/src/components/pager/hooks/types/usePagination.ts +80 -0
  106. package/src/components/pager/hooks/usePagination.ts +140 -0
  107. package/src/components/pager/icons/first.tsx +33 -0
  108. package/src/components/pager/icons/index.tsx +4 -0
  109. package/src/components/pager/icons/last.tsx +33 -0
  110. package/src/components/pager/icons/next.tsx +20 -0
  111. package/src/components/pager/icons/previous.tsx +20 -0
  112. package/src/components/pager/index.ts +4 -0
  113. package/src/components/pager/last-button.tsx +57 -0
  114. package/src/components/pager/next-button.tsx +55 -0
  115. package/src/components/pager/number-button.tsx +83 -0
  116. package/src/components/pager/pagination.module.css +165 -0
  117. package/src/components/pager/pagination.stories.tsx +190 -0
  118. package/src/components/pager/pagination.tsx +266 -0
  119. package/src/components/pager/previous-button.tsx +51 -0
  120. package/src/components/scroll-area/scroll-area.module.css +80 -0
  121. package/src/components/scroll-area/scroll-area.stories.tsx +33 -0
  122. package/src/components/scroll-area/scroll-area.tsx +22 -0
  123. package/src/components/scroll-to-top/scroll-to-top.tsx +59 -0
  124. package/src/components/section/section.astro +13 -0
  125. package/src/components/section/section.module.css +7 -0
  126. package/src/components/section/section.tsx +23 -0
  127. package/src/components/shimmer/shimmer.module.css +53 -0
  128. package/src/components/shimmer/shimmer.stories.tsx +24 -0
  129. package/src/components/shimmer/shimmer.tsx +70 -0
  130. package/src/components/table/table.module.css +100 -0
  131. package/src/components/table/table.stories.tsx +95 -0
  132. package/src/components/table/table.tsx +165 -0
  133. package/src/components/tabs/tabs.module.css +64 -0
  134. package/src/components/tabs/tabs.stories.tsx +47 -0
  135. package/src/components/tabs/tabs.tsx +75 -0
  136. package/src/components/timeline/timeline.module.css +87 -0
  137. package/src/components/timeline/timeline.stories.tsx +50 -0
  138. package/src/components/timeline/timeline.tsx +177 -0
  139. package/src/components/tooltip/tooltip.module.css +55 -0
  140. package/src/components/tooltip/tooltip.stories.tsx +59 -0
  141. package/src/components/tooltip/tooltip.tsx +51 -0
  142. package/src/declarations.d.ts +4 -0
  143. package/src/hooks/use-media-query.ts +20 -0
  144. package/src/icons/activity-icon.tsx +40 -0
  145. package/src/icons/calendar-icon.tsx +39 -0
  146. package/src/icons/check-icon.tsx +33 -0
  147. package/src/icons/chevron-down-icon.tsx +39 -0
  148. package/src/icons/chevron-left-double-icon.tsx +58 -0
  149. package/src/icons/chevron-left-icon.tsx +58 -0
  150. package/src/icons/chevron-right-double-icon.tsx +58 -0
  151. package/src/icons/chevron-right-icon.tsx +58 -0
  152. package/src/icons/chevrons-up-down.tsx +37 -0
  153. package/src/icons/close-icon.astro +38 -0
  154. package/src/icons/close-icon.tsx +30 -0
  155. package/src/icons/copy-icon.tsx +35 -0
  156. package/src/icons/danger-icon.tsx +18 -0
  157. package/src/icons/dashboard-icon.tsx +41 -0
  158. package/src/icons/delete-icon.tsx +34 -0
  159. package/src/icons/document-icon.tsx +38 -0
  160. package/src/icons/download-icon.tsx +39 -0
  161. package/src/icons/edit-icon.tsx +35 -0
  162. package/src/icons/ellipsis-icon.tsx +38 -0
  163. package/src/icons/email-icon.tsx +33 -0
  164. package/src/icons/external-link-icon.tsx +39 -0
  165. package/src/icons/github-icon.tsx +27 -0
  166. package/src/icons/globe-icon.tsx +50 -0
  167. package/src/icons/google-icon.tsx +44 -0
  168. package/src/icons/gripper-vertical-icon.tsx +43 -0
  169. package/src/icons/history-icon.tsx +32 -0
  170. package/src/icons/home-icon.tsx +34 -0
  171. package/src/icons/icon-element.astro +27 -0
  172. package/src/icons/icon-element.tsx +32 -0
  173. package/src/icons/icon-sprite.tsx +18 -0
  174. package/src/icons/icons.module.css +147 -0
  175. package/src/icons/index.stories.tsx +25 -0
  176. package/src/icons/index.ts +39 -0
  177. package/src/icons/info-icon.tsx +18 -0
  178. package/src/icons/infonomic-icon.tsx +173 -0
  179. package/src/icons/light-icon.astro +36 -0
  180. package/src/icons/light-icon.tsx +29 -0
  181. package/src/icons/location-pin-icon.tsx +36 -0
  182. package/src/icons/moon-icon.astro +38 -0
  183. package/src/icons/moon-icon.tsx +42 -0
  184. package/src/icons/plus-icon.tsx +34 -0
  185. package/src/icons/primary-icon.tsx +22 -0
  186. package/src/icons/refresh-icon.tsx +33 -0
  187. package/src/icons/return-icon.tsx +36 -0
  188. package/src/icons/roles-icon.tsx +34 -0
  189. package/src/icons/search-icon.astro +40 -0
  190. package/src/icons/search-icon.tsx +29 -0
  191. package/src/icons/search-menu-icon.tsx +42 -0
  192. package/src/icons/settings-gear-icon.tsx +36 -0
  193. package/src/icons/settings-sliders-icon.tsx +43 -0
  194. package/src/icons/sign-out-icon.tsx +35 -0
  195. package/src/icons/source/icon-calendar.svg +1 -0
  196. package/src/icons/source/icon-check.svg +4 -0
  197. package/src/icons/source/icon-close.svg +3 -0
  198. package/src/icons/source/icon-coinbase.svg +9 -0
  199. package/src/icons/source/icon-copy.svg +4 -0
  200. package/src/icons/source/icon-document.svg +5 -0
  201. package/src/icons/source/icon-download.svg +4 -0
  202. package/src/icons/source/icon-edit.svg +6 -0
  203. package/src/icons/source/icon-eth-purple.svg +15 -0
  204. package/src/icons/source/icon-etherscan.svg +5 -0
  205. package/src/icons/source/icon-external-link.svg +4 -0
  206. package/src/icons/source/icon-globe.svg +7 -0
  207. package/src/icons/source/icon-gripper-vertical.svg +9 -0
  208. package/src/icons/source/icon-info.svg +4 -0
  209. package/src/icons/source/icon-infonomic.svg +43 -0
  210. package/src/icons/source/icon-ledger.svg +4 -0
  211. package/src/icons/source/icon-light.svg +3 -0
  212. package/src/icons/source/icon-location-pin.svg +8 -0
  213. package/src/icons/source/icon-logout.svg +6 -0
  214. package/src/icons/source/icon-metamask.svg +32 -0
  215. package/src/icons/source/icon-moon.svg +3 -0
  216. package/src/icons/source/icon-plus.svg +4 -0
  217. package/src/icons/source/icon-refresh.svg +4 -0
  218. package/src/icons/source/icon-return.svg +4 -0
  219. package/src/icons/source/icon-search-menu.svg +13 -0
  220. package/src/icons/source/icon-search.svg +3 -0
  221. package/src/icons/source/icon-settings-gear.svg +5 -0
  222. package/src/icons/source/icon-settings.svg +12 -0
  223. package/src/icons/source/icon-wallet.svg +3 -0
  224. package/src/icons/source/icon-walletconnect.svg +4 -0
  225. package/src/icons/source/icon-x.svg +4 -0
  226. package/src/icons/stopwatch-icon.tsx +39 -0
  227. package/src/icons/success-icon.tsx +18 -0
  228. package/src/icons/types/icon.ts +8 -0
  229. package/src/icons/user-icon.tsx +33 -0
  230. package/src/icons/users-icon.tsx +35 -0
  231. package/src/icons/wallet-icon.tsx +29 -0
  232. package/src/icons/warning-icon.tsx +18 -0
  233. package/src/icons/x-icon.tsx +33 -0
  234. package/src/loaders/ellipses.tsx +36 -0
  235. package/src/loaders/loaders.stories.tsx +46 -0
  236. package/src/loaders/ring.tsx +33 -0
  237. package/src/loaders/spinner.tsx +28 -0
  238. package/src/loaders/types/index.ts +6 -0
  239. package/src/react.ts +99 -0
  240. package/src/styles/base/animations.css +143 -0
  241. package/src/styles/base/base.css +5 -0
  242. package/src/styles/base/colors.css +163 -0
  243. package/src/styles/base/colors.stories.tsx +671 -0
  244. package/src/styles/base/reset.css +464 -0
  245. package/src/styles/base/typography.css +25 -0
  246. package/src/styles/base/vars.css +188 -0
  247. package/src/styles/components/card.css +20 -0
  248. package/src/styles/components/checkbox.css +55 -0
  249. package/src/styles/components/components.css +11 -0
  250. package/src/styles/components/directional-button.css +92 -0
  251. package/src/styles/components/dropdown.css +19 -0
  252. package/src/styles/components/fade-in-lift.css +13 -0
  253. package/src/styles/components/hamburger.css +107 -0
  254. package/src/styles/components/icon-element.css +4 -0
  255. package/src/styles/components/list-checkbox.css +60 -0
  256. package/src/styles/components/loaders.css +196 -0
  257. package/src/styles/components/popover.css +15 -0
  258. package/src/styles/components/scroll-to-top.css +89 -0
  259. package/src/styles/components/toast.css +18 -0
  260. package/src/styles/styles.css +6 -0
  261. package/src/styles/theme/autofill.css +58 -0
  262. package/src/styles/theme/scrollers.css +52 -0
  263. package/src/styles/theme/theme.css +130 -0
  264. package/src/styles/theme/theme.stories.tsx +33 -0
  265. package/src/styles/typography/code.stories.tsx +76 -0
  266. package/src/styles/typography/default.stories.tsx +51 -0
  267. package/src/styles/typography/fonts.css +30 -0
  268. package/src/styles/typography/lists.stories.tsx +50 -0
  269. package/src/styles/typography/prose.css +404 -0
  270. package/src/styles/typography/quote.stories.tsx +37 -0
  271. package/src/styles/typography.css +24 -0
  272. package/src/styles/utils/scroll-layout-shift.css +9 -0
  273. package/src/styles/utils/utility-classes.css +1278 -0
  274. package/src/styles/utils/utils.css +2 -0
  275. package/src/theme/theme-provider/index.ts +1 -0
  276. package/src/theme/theme-provider/provider.tsx +44 -0
  277. package/src/utils/capitalize.ts +6 -0
  278. package/src/utils/externalLinkProps.ts +6 -0
  279. package/src/utils/findMatch.ts +7 -0
  280. package/src/utils/getPortalRoot.ts +3 -0
  281. package/src/utils/isTouchDevice.ts +11 -0
  282. package/src/utils/objectsToArray.ts +15 -0
  283. package/src/utils/objectsToString.ts +5 -0
  284. package/src/utils/polymorphic.ts +16 -0
  285. package/src/utils/to-kebab-case.ts +5 -0
  286. package/src/widgets/datepicker/datepicker.module.css +189 -0
  287. package/src/widgets/datepicker/datepicker.stories.tsx +25 -0
  288. package/src/widgets/datepicker/datepicker.tsx +310 -0
  289. package/src/widgets/drawer/drawer-container.tsx +26 -0
  290. package/src/widgets/drawer/drawer-content.tsx +26 -0
  291. package/src/widgets/drawer/drawer-context.tsx +49 -0
  292. package/src/widgets/drawer/drawer-header.tsx +27 -0
  293. package/src/widgets/drawer/drawer-top-actions.tsx +27 -0
  294. package/src/widgets/drawer/drawer-wrapper.tsx +54 -0
  295. package/src/widgets/drawer/drawer.module.css +116 -0
  296. package/src/widgets/drawer/drawer.stories.tsx +224 -0
  297. package/src/widgets/drawer/drawer.tsx +115 -0
  298. package/src/widgets/drawer/motionDomAnimation.ts +4 -0
  299. package/src/widgets/drawer/motionDomMax.ts +4 -0
  300. package/src/widgets/modal/modal-actions.tsx +26 -0
  301. package/src/widgets/modal/modal-container.tsx +26 -0
  302. package/src/widgets/modal/modal-content.tsx +26 -0
  303. package/src/widgets/modal/modal-header.tsx +27 -0
  304. package/src/widgets/modal/modal-wrapper.tsx +50 -0
  305. package/src/widgets/modal/modal.module.css +85 -0
  306. package/src/widgets/modal/modal.stories.tsx +71 -0
  307. package/src/widgets/modal/modal.tsx +110 -0
  308. package/src/widgets/modal/motionDomAnimation.ts +4 -0
  309. package/src/widgets/modal/motionDomMax.ts +4 -0
  310. package/src/widgets/search/index.ts +1 -0
  311. package/src/widgets/search/search.stories.tsx +18 -0
  312. package/src/widgets/search/search.tsx +186 -0
@@ -0,0 +1,55 @@
1
+ /* Define keyframes for the "checked" state */
2
+ @keyframes checkBoxIn {
3
+ 0% {
4
+ opacity: 0;
5
+ transform: scale(0.8);
6
+ }
7
+
8
+ 50% {
9
+ opacity: 1;
10
+ transform: scale(1.2);
11
+ /* Overshoot */
12
+ }
13
+
14
+ 80% {
15
+ transform: scale(0.9);
16
+ /* Slight bounce back */
17
+ }
18
+
19
+ 100% {
20
+ transform: scale(1);
21
+ /* Settle */
22
+ }
23
+ }
24
+
25
+ /* Define keyframes for the "unchecked" state */
26
+ @keyframes checkBoxOut {
27
+ from {
28
+ opacity: 1;
29
+ transform: scale(1);
30
+ }
31
+
32
+ to {
33
+ opacity: 0;
34
+ transform: scale(0.8);
35
+ }
36
+ }
37
+
38
+ .component--checkbox,
39
+ .component--checkbox-icon {
40
+ transition: all ease-in-out 200ms;
41
+ }
42
+
43
+ /* Style for the "checked" state */
44
+ .component--checkbox-indicator[data-state="checked"] .component--checkbox-icon {
45
+ animation: checkBoxIn 0.3s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
46
+ opacity: 1;
47
+ transform: scale(1);
48
+ }
49
+
50
+ /* Style for the "unchecked" state */
51
+ .component--checkbox-indicator[data-state="unchecked"] .component--checkbox-icon {
52
+ animation: checkBoxOut 0.2s ease-in;
53
+ opacity: 0;
54
+ transform: scale(0.8);
55
+ }
@@ -0,0 +1,11 @@
1
+ @import "./icon-element.css";
2
+ @import "./scroll-to-top.css";
3
+ @import "./hamburger.css";
4
+ @import "./list-checkbox.css";
5
+ @import "./loaders.css";
6
+ @import "./fade-in-lift.css";
7
+ @import "./checkbox.css";
8
+ @import "./card.css";
9
+ @import "./toast.css";
10
+ @import "./popover.css";
11
+ @import "./dropdown.css";
@@ -0,0 +1,92 @@
1
+ .component--directional-button {
2
+ display: flex;
3
+ align-items: center;
4
+ width: 40px;
5
+ height: 40px;
6
+ text-decoration: none;
7
+ border-style: none;
8
+ border-radius: 20px;
9
+ padding: 0;
10
+ margin: 0;
11
+ outline: none;
12
+ z-index: 20;
13
+ justify-content: center;
14
+ color: white;
15
+ background-color: var(--primary-500);
16
+ transition-property: all, color;
17
+ transition-duration: 0.3s, 1ms;
18
+ transition-timing-function: cubic-bezier(0.25, 0.8, 0.5, 1), ease;
19
+ transition-delay: 0s, 0s;
20
+ cursor: pointer;
21
+ }
22
+
23
+ .component--directional-button span {
24
+ width: 18px;
25
+ padding-bottom: 3px;
26
+ }
27
+
28
+ .component--directional-button span .icon path {
29
+ stroke: none;
30
+ fill: white;
31
+ }
32
+
33
+ @media screen and (min-width: 587px) {
34
+ .component--directional-button {
35
+ width: 42px;
36
+ height: 42px;
37
+ border-radius: 21px;
38
+ }
39
+ }
40
+
41
+ .component--directional-button:hover,
42
+ .component--directional-button:focus {
43
+ color: white;
44
+ background-color: var(--primary-500);
45
+ transform: translateY(-5px);
46
+ }
47
+
48
+ /* Up is default so no need to rotate */
49
+ .component--directional-button.up:hover,
50
+ .component--directional-button.up:focus {
51
+ transform: translateY(-5px);
52
+ }
53
+
54
+ .component--directional-button.down span,
55
+ .directional-button.down span {
56
+ transform: rotate(180deg);
57
+ }
58
+
59
+ .component--directional-button.down:hover,
60
+ .component--directional-button.down:focus {
61
+ transform: translateY(5px);
62
+ }
63
+
64
+ .component--directional-button.left span,
65
+ .component--directional-button.left span {
66
+ transform: rotate(-90deg);
67
+ }
68
+
69
+ .component--directional-button.left:hover,
70
+ .component--directional-button.left:focus {
71
+ transform: translateX(-5px);
72
+ }
73
+
74
+ .component--directional-button.right span,
75
+ .component--directional-button.right span {
76
+ transform: rotate(90deg);
77
+ }
78
+
79
+ .component--directional-button.right:hover,
80
+ .component--directional-button.right:focus {
81
+ transform: translateX(5px);
82
+ }
83
+
84
+ .dark .component--directional-button {
85
+ background-color: var(--secondary-700);
86
+ }
87
+
88
+ .dark .component--directional-button:hover,
89
+ .dark .component--directional-button:focus {
90
+ color: white;
91
+ background-color: var(--secondary-700);
92
+ }
@@ -0,0 +1,19 @@
1
+ .dropdown-menu-content[data-side="top"],
2
+ .dropdown-menu-subcontent[data-side="top"] {
3
+ animation: slideDownAndFade 100ms ease-in;
4
+ }
5
+
6
+ .dropdown-menu-content[data-side="right"],
7
+ .dropdown-menu-subcontent[data-side="right"] {
8
+ animation: slideLeftAndFade 100ms ease-in;
9
+ }
10
+
11
+ .dropdown-menu-content[data-side="bottom"],
12
+ .dropdown-menu-subcontent[data-side="bottom"] {
13
+ animation: slideUpAndFade 100ms ease-in;
14
+ }
15
+
16
+ .dropdown-menu-content[data-side="left"],
17
+ .dropdown-menu-subcontent[data-side="left"] {
18
+ animation: slideRightAndFade 100ms ease-in;
19
+ }
@@ -0,0 +1,13 @@
1
+ .component--fade-in-lift {
2
+ opacity: 0;
3
+ visibility: hidden;
4
+ transform: matrix(1, 0, 0, 1, 0, 18);
5
+ transition: opacity 0.5s ease-out, transform 0.7s ease-out;
6
+ will-change: opacity, visibility;
7
+ }
8
+
9
+ .component--fade-in-lift.is-visible {
10
+ opacity: 1;
11
+ visibility: visible;
12
+ transform: matrix(1, 0, 0, 1, 0, 0);
13
+ }
@@ -0,0 +1,107 @@
1
+ @layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
2
+
3
+ @layer infonomic-components {
4
+ .component--hamburger {
5
+ display: flex;
6
+ position: relative;
7
+ align-items: center;
8
+ justify-content: center;
9
+ z-index: 200;
10
+ width: 42px;
11
+ height: 34px;
12
+ overflow: hidden;
13
+ cursor: pointer;
14
+ transition-property: opacity, filter;
15
+ transition-duration: 0.15s;
16
+ transition-timing-function: ease;
17
+ font: inherit;
18
+ color: inherit;
19
+ text-transform: none;
20
+ background-color: transparent;
21
+ border: 0;
22
+ margin: 0;
23
+ border-radius: 4px;
24
+ }
25
+
26
+ /* .component--hamburger:hover {
27
+ @apply bg-primary-200;
28
+ } */
29
+
30
+ .component--hamburger:active,
31
+ .component--hamburger:focus {
32
+ outline: none !important;
33
+ border-color: white;
34
+ border-width: 0.5px;
35
+ border-style: dashed;
36
+ /* border: dashed 0.5px #ffffff; */
37
+ border-radius: 4px;
38
+ }
39
+
40
+ .component--hamburger .box {
41
+ width: 24px;
42
+ height: 24px;
43
+ display: block;
44
+ position: relative;
45
+ }
46
+
47
+ .component--hamburger .inner {
48
+ display: block;
49
+ top: 50%;
50
+ margin-top: -1px;
51
+ transition-duration: 0.075s;
52
+ transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
53
+ }
54
+
55
+ .component--hamburger .inner,
56
+ .component--hamburger .inner::before,
57
+ .component--hamburger .inner::after {
58
+ position: absolute;
59
+ width: 24px;
60
+ height: 2px;
61
+ border-radius: 0;
62
+ /* background-color: white; */
63
+ transition-property: transform;
64
+ transition-duration: 0.15s;
65
+ transition-timing-function: ease;
66
+ }
67
+
68
+ /* .dark .component--hamburger .inner,
69
+ .dark .component--hamburger .inner::before,
70
+ .dark .component--hamburger .inner::after {
71
+ background-color: white;
72
+ } */
73
+
74
+ .component--hamburger .inner::before,
75
+ .component--hamburger .inner::after {
76
+ content: "";
77
+ display: block;
78
+ }
79
+
80
+ .component--hamburger .inner::before {
81
+ top: -8px;
82
+ transition: top 0.075s 0.12s ease, opacity 0.075s ease;
83
+ }
84
+
85
+ .component--hamburger .inner::after {
86
+ bottom: -8px;
87
+ transition: bottom 0.075s 0.12s ease, transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
88
+ }
89
+
90
+ .component--hamburger.is_active .inner {
91
+ transform: rotate(45deg);
92
+ transition-delay: 0.12s;
93
+ transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
94
+ }
95
+
96
+ .component--hamburger.is_active .inner::before {
97
+ top: 0;
98
+ opacity: 0;
99
+ transition: top 0.075s ease, opacity 0.075s 0.12s ease;
100
+ }
101
+
102
+ .component--hamburger.is_active .inner::after {
103
+ bottom: 0;
104
+ transform: rotate(-90deg);
105
+ transition: bottom 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
106
+ }
107
+ }
@@ -0,0 +1,4 @@
1
+ .component--icon-element-root svg {
2
+ display: block;
3
+ margin: auto;
4
+ }
@@ -0,0 +1,60 @@
1
+ ul.check {
2
+ padding-left: 0;
3
+ }
4
+
5
+ .component--list-item-checkbox {
6
+ position: relative;
7
+ margin-left: 0;
8
+ margin-right: 8px;
9
+ padding-left: 28px;
10
+ padding-right: 24px;
11
+ list-style-type: none;
12
+ outline: none;
13
+ }
14
+
15
+ @media screen and (min-width: 768px) {
16
+ ul.check {
17
+ padding-left: 1rem;
18
+ }
19
+ }
20
+
21
+ .component--list-item-checkbox::before {
22
+ content: "";
23
+ width: 16px;
24
+ height: 16px;
25
+ top: 8px;
26
+ left: 0;
27
+ cursor: pointer;
28
+ display: block;
29
+ background-size: cover;
30
+ position: absolute;
31
+ border: 1px solid rgb(125, 125, 125);
32
+ border-radius: 2px;
33
+ background-repeat: no-repeat;
34
+ }
35
+
36
+ .component--list-item-checkbox-checked {
37
+ text-decoration: line-through;
38
+ }
39
+
40
+ .component--list-item-checkbox-checked::before {
41
+ border: 1px solid var(--secondary-300);
42
+ background-color: var(--secondary-400);
43
+ background-repeat: no-repeat;
44
+ }
45
+
46
+ .component--list-item-checkbox-checked::after {
47
+ content: "";
48
+ cursor: pointer;
49
+ border-color: #fff;
50
+ border-style: solid;
51
+ position: absolute;
52
+ display: block;
53
+ top: 11px;
54
+ width: 4px;
55
+ left: 6px;
56
+ right: 7px;
57
+ height: 8px;
58
+ transform: rotate(45deg);
59
+ border-width: 0 2px 2px 0;
60
+ }
@@ -0,0 +1,196 @@
1
+ .lds-ellipsis {
2
+ display: inline-block;
3
+ position: relative;
4
+ }
5
+
6
+ .lds-ellipsis div {
7
+ position: absolute;
8
+ top: 41.25%;
9
+ width: 16.25%;
10
+ height: 32.25%;
11
+ border-radius: 50%;
12
+ background: #fff;
13
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
14
+ }
15
+
16
+ .lds-ellipsis div:nth-child(1) {
17
+ left: 10%;
18
+ animation: lds-ellipsis1 0.6s infinite;
19
+ }
20
+
21
+ .lds-ellipsis div:nth-child(2) {
22
+ left: 10%;
23
+ animation: lds-ellipsis2 0.6s infinite;
24
+ }
25
+
26
+ .lds-ellipsis div:nth-child(3) {
27
+ left: 40%;
28
+ animation: lds-ellipsis2 0.6s infinite;
29
+ }
30
+
31
+ .lds-ellipsis div:nth-child(4) {
32
+ left: 70%;
33
+ animation: lds-ellipsis3 0.6s infinite;
34
+ }
35
+
36
+ @keyframes lds-ellipsis1 {
37
+ 0% {
38
+ transform: scale(0);
39
+ }
40
+
41
+ 100% {
42
+ transform: scale(1);
43
+ }
44
+ }
45
+
46
+ @keyframes lds-ellipsis3 {
47
+ 0% {
48
+ transform: scale(1);
49
+ }
50
+
51
+ 100% {
52
+ transform: scale(0);
53
+ }
54
+ }
55
+
56
+ @keyframes lds-ellipsis2 {
57
+ 0% {
58
+ transform: translate(0, 0);
59
+ }
60
+
61
+ 100% {
62
+ transform: translate(184.61%, 0);
63
+ }
64
+ }
65
+
66
+ .lds-ring {
67
+ display: inline-block;
68
+ position: relative;
69
+ }
70
+
71
+ .lds-ring div {
72
+ box-sizing: border-box;
73
+ display: block;
74
+ position: absolute;
75
+ border: 8px solid #fff;
76
+ border-radius: 50%;
77
+ animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
78
+ border-color: #fff transparent transparent transparent;
79
+ }
80
+
81
+ .lds-ring div:nth-child(1) {
82
+ animation-delay: -0.45s;
83
+ }
84
+
85
+ .lds-ring div:nth-child(2) {
86
+ animation-delay: -0.3s;
87
+ }
88
+
89
+ .lds-ring div:nth-child(3) {
90
+ animation-delay: -0.15s;
91
+ }
92
+
93
+ @keyframes lds-ring {
94
+ 0% {
95
+ transform: rotate(0deg);
96
+ }
97
+
98
+ 100% {
99
+ transform: rotate(360deg);
100
+ }
101
+ }
102
+
103
+ .lds-spinner {
104
+ color: official;
105
+ display: inline-block;
106
+ position: relative;
107
+ width: 56px;
108
+ height: 56px;
109
+ }
110
+
111
+ .lds-spinner div {
112
+ transform-origin: 28px 32px;
113
+ animation: lds-spinner 1.2s linear infinite;
114
+ }
115
+
116
+ .lds-spinner div .div-after {
117
+ content: " ";
118
+ display: block;
119
+ position: absolute;
120
+ top: 0;
121
+ left: 25px;
122
+ width: 5px;
123
+ height: 14px;
124
+ border-radius: 20%;
125
+ background: #fff;
126
+ }
127
+
128
+ .lds-spinner div:nth-child(1) {
129
+ transform: rotate(0deg);
130
+ animation-delay: -1.1s;
131
+ }
132
+
133
+ .lds-spinner div:nth-child(2) {
134
+ transform: rotate(30deg);
135
+ animation-delay: -1s;
136
+ }
137
+
138
+ .lds-spinner div:nth-child(3) {
139
+ transform: rotate(60deg);
140
+ animation-delay: -0.9s;
141
+ }
142
+
143
+ .lds-spinner div:nth-child(4) {
144
+ transform: rotate(90deg);
145
+ animation-delay: -0.8s;
146
+ }
147
+
148
+ .lds-spinner div:nth-child(5) {
149
+ transform: rotate(120deg);
150
+ animation-delay: -0.7s;
151
+ }
152
+
153
+ .lds-spinner div:nth-child(6) {
154
+ transform: rotate(150deg);
155
+ animation-delay: -0.6s;
156
+ }
157
+
158
+ .lds-spinner div:nth-child(7) {
159
+ transform: rotate(180deg);
160
+ animation-delay: -0.5s;
161
+ }
162
+
163
+ .lds-spinner div:nth-child(8) {
164
+ transform: rotate(210deg);
165
+ animation-delay: -0.4s;
166
+ }
167
+
168
+ .lds-spinner div:nth-child(9) {
169
+ transform: rotate(240deg);
170
+ animation-delay: -0.3s;
171
+ }
172
+
173
+ .lds-spinner div:nth-child(10) {
174
+ transform: rotate(270deg);
175
+ animation-delay: -0.2s;
176
+ }
177
+
178
+ .lds-spinner div:nth-child(11) {
179
+ transform: rotate(300deg);
180
+ animation-delay: -0.1s;
181
+ }
182
+
183
+ .lds-spinner div:nth-child(12) {
184
+ transform: rotate(330deg);
185
+ animation-delay: 0s;
186
+ }
187
+
188
+ @keyframes lds-spinner {
189
+ 0% {
190
+ opacity: 1;
191
+ }
192
+
193
+ 100% {
194
+ opacity: 0;
195
+ }
196
+ }
@@ -0,0 +1,15 @@
1
+ .popover-content[data-state="open"][data-side="top"] {
2
+ animation: slideDownAndFade 100ms ease-in;
3
+ }
4
+
5
+ .popover-content[data-state="open"][data-side="right"] {
6
+ animation: slideLeftAndFade 100ms ease-in;
7
+ }
8
+
9
+ .popover-content[data-state="open"][data-side="bottom"] {
10
+ animation: slideUpAndFade 100ms ease-in;
11
+ }
12
+
13
+ .popover-content[data-state="open"][data-side="left"] {
14
+ animation: slideRightAndFade 100ms ease-in;
15
+ }
@@ -0,0 +1,89 @@
1
+ .btn-to-top {
2
+ display: flex;
3
+ position: fixed;
4
+ width: 0;
5
+ height: 0;
6
+ opacity: 0;
7
+ visibility: hidden;
8
+ align-items: center;
9
+ text-decoration: none;
10
+ border-style: none;
11
+ padding: 0;
12
+ margin: 0;
13
+ outline: none;
14
+ z-index: 20;
15
+ justify-content: center;
16
+ bottom: 45px;
17
+ right: 30px;
18
+ color: white;
19
+ background-color: var(--primary-500);
20
+ transition-property: all, color;
21
+ transition-duration: 0.3s, 1ms;
22
+ transition-timing-function: cubic-bezier(0.25, 0.8, 0.5, 1), ease;
23
+ transition-delay: 0s, 0s;
24
+ cursor: pointer;
25
+ }
26
+
27
+ .dark .btn-to-top {
28
+ background-color: var(--secondary-700);
29
+ }
30
+
31
+ .btn-to-top span {
32
+ width: 18px;
33
+ padding-bottom: 3px;
34
+ }
35
+
36
+ .btn-to-top span .icon path {
37
+ stroke: none;
38
+ fill: white;
39
+ }
40
+
41
+ @media screen and (min-width: 587px) {
42
+ .btn-to-top {
43
+ bottom: 45px;
44
+ right: 45px;
45
+ }
46
+
47
+ .btn-to-top span {
48
+ width: 18px;
49
+ }
50
+ }
51
+
52
+ .btn-to-top:hover,
53
+ .btn-to-top:focus {
54
+ color: white;
55
+ background-color: var(--primary-500);
56
+ transform: translateY(-5px);
57
+ }
58
+
59
+ .dark .btn-to-top {
60
+ background-color: var(--primary-600);
61
+ }
62
+
63
+ .dark .btn-to-top:hover,
64
+ .dark .btn-to-top:focus {
65
+ color: white;
66
+ background-color: var(--primary-600);
67
+ }
68
+
69
+ .btn-floating {
70
+ min-width: 0;
71
+ opacity: 1;
72
+ visibility: visible;
73
+ padding: 0;
74
+ width: 40px;
75
+ height: 40px;
76
+ bottom: 20px;
77
+ right: 10px;
78
+ border-radius: 20px;
79
+ }
80
+
81
+ @media screen and (min-width: 587px) {
82
+ .btn-floating {
83
+ width: 42px;
84
+ height: 42px;
85
+ border-radius: 21px;
86
+ bottom: 22px;
87
+ right: 22px;
88
+ }
89
+ }
@@ -0,0 +1,18 @@
1
+ /* styles.css */
2
+
3
+ .toast-viewport {
4
+ --viewport-padding: 25px;
5
+ position: fixed;
6
+ bottom: 0;
7
+ right: 0;
8
+ display: flex;
9
+ flex-direction: column;
10
+ padding: var(--viewport-padding);
11
+ gap: 10px;
12
+ width: 100vw;
13
+ max-width: 100vw;
14
+ margin: 0;
15
+ list-style: none;
16
+ z-index: 2147483647;
17
+ outline: none;
18
+ }
@@ -0,0 +1,6 @@
1
+ @layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
2
+
3
+ @import "./base/base.css";
4
+ @import "./utils/utils.css";
5
+ @import "./theme/theme.css";
6
+ @import "./components/components.css";