@blockscout/ui-toolkit 0.0.1-alpha.1 → 0.0.1-alpha.2

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 (286) hide show
  1. package/README.md +8 -0
  2. package/dist/chakra/accordion.d.ts +1 -1
  3. package/dist/chakra/drawer.d.ts +1 -1
  4. package/dist/chakra/popover.d.ts +1 -2
  5. package/dist/index.d.ts +2 -0
  6. package/dist/index.js +9284 -0
  7. package/dist/package/src/index.d.ts +7 -11
  8. package/dist/theme/foundations/semanticTokens.ts +1 -5
  9. package/dist/theme/recipes/alert.recipe.d.ts +6 -46
  10. package/dist/theme/recipes/alert.recipe.ts +45 -48
  11. package/dist/theme/recipes/badge.recipe.d.ts +11 -44
  12. package/dist/theme/recipes/badge.recipe.ts +11 -45
  13. package/dist/theme/recipes/button.recipe.d.ts +17 -20
  14. package/dist/theme/recipes/button.recipe.ts +42 -27
  15. package/dist/theme/recipes/close-button.recipe.d.ts +0 -3
  16. package/dist/theme/recipes/close-button.recipe.ts +0 -3
  17. package/dist/theme/recipes/dialog.recipe.d.ts +1 -1
  18. package/dist/theme/recipes/drawer.recipe.d.ts +1 -1
  19. package/dist/theme/recipes/index.d.ts +47 -147
  20. package/dist/theme/recipes/link.recipe.d.ts +1 -9
  21. package/dist/theme/recipes/link.recipe.ts +1 -9
  22. package/dist/theme/recipes/list.recipe.d.ts +1 -1
  23. package/dist/theme/recipes/menu.recipe.d.ts +1 -1
  24. package/dist/theme/recipes/popover.recipe.ts +4 -3
  25. package/dist/theme/recipes/select.recipe.d.ts +1 -1
  26. package/dist/theme/recipes/skeleton.recipe.d.ts +5 -6
  27. package/dist/theme/recipes/skeleton.recipe.ts +10 -9
  28. package/dist/theme/recipes/table.recipe.d.ts +1 -1
  29. package/dist/theme/recipes/tag.recipe.d.ts +0 -12
  30. package/dist/theme/recipes/tag.recipe.ts +0 -13
  31. package/dist/theme/recipes/toast.recipe.d.ts +1 -1
  32. package/package.json +14 -28
  33. package/dist/_virtual/Button.js +0 -4
  34. package/dist/_virtual/Element.js +0 -4
  35. package/dist/_virtual/Link.js +0 -4
  36. package/dist/_virtual/_commonjsHelpers.js +0 -4
  37. package/dist/_virtual/animate-scroll.js +0 -4
  38. package/dist/_virtual/cancel-events.js +0 -4
  39. package/dist/_virtual/index.js +0 -5
  40. package/dist/_virtual/index2.js +0 -4
  41. package/dist/_virtual/index3.js +0 -4
  42. package/dist/_virtual/index4.js +0 -4
  43. package/dist/_virtual/jsx-runtime.js +0 -5
  44. package/dist/_virtual/jsx-runtime2.js +0 -4
  45. package/dist/_virtual/passive-event-listeners.js +0 -4
  46. package/dist/_virtual/react-is.development.js +0 -4
  47. package/dist/_virtual/react-is.production.min.js +0 -4
  48. package/dist/_virtual/react-jsx-runtime.development.js +0 -4
  49. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
  50. package/dist/_virtual/scroll-element.js +0 -4
  51. package/dist/_virtual/scroll-events.js +0 -4
  52. package/dist/_virtual/scroll-hash.js +0 -4
  53. package/dist/_virtual/scroll-link.js +0 -4
  54. package/dist/_virtual/scroll-spy.js +0 -4
  55. package/dist/_virtual/scroller.js +0 -4
  56. package/dist/_virtual/smooth.js +0 -4
  57. package/dist/_virtual/utils.js +0 -4
  58. package/dist/chakra/accordion.js +0 -61
  59. package/dist/chakra/alert.js +0 -45
  60. package/dist/chakra/avatar.js +0 -36
  61. package/dist/chakra/badge.js +0 -18
  62. package/dist/chakra/button.js +0 -65
  63. package/dist/chakra/checkbox.js +0 -33
  64. package/dist/chakra/close-button.js +0 -13
  65. package/dist/chakra/collapsible.js +0 -58
  66. package/dist/chakra/color-mode.js +0 -35
  67. package/dist/chakra/dialog.js +0 -47
  68. package/dist/chakra/drawer.js +0 -39
  69. package/dist/chakra/field.js +0 -65
  70. package/dist/chakra/heading.js +0 -12
  71. package/dist/chakra/icon-button.js +0 -44
  72. package/dist/chakra/image.js +0 -30
  73. package/dist/chakra/input-group.js +0 -47
  74. package/dist/chakra/input.js +0 -5
  75. package/dist/chakra/link.js +0 -68
  76. package/dist/chakra/menu.js +0 -63
  77. package/dist/chakra/pin-input.js +0 -15
  78. package/dist/chakra/popover.js +0 -69
  79. package/dist/chakra/progress-circle.js +0 -17
  80. package/dist/chakra/provider.js +0 -10
  81. package/dist/chakra/radio.js +0 -17
  82. package/dist/chakra/rating.js +0 -21
  83. package/dist/chakra/select.js +0 -185
  84. package/dist/chakra/skeleton.js +0 -40
  85. package/dist/chakra/slider.js +0 -39
  86. package/dist/chakra/switch.js +0 -19
  87. package/dist/chakra/table.js +0 -66
  88. package/dist/chakra/tabs.js +0 -29
  89. package/dist/chakra/tag.js +0 -51
  90. package/dist/chakra/textarea.js +0 -5
  91. package/dist/chakra/toaster.js +0 -31
  92. package/dist/chakra/tooltip.js +0 -85
  93. package/dist/chakra.d.ts +0 -1
  94. package/dist/chakra.js +0 -155
  95. package/dist/components/ButtonBackTo.js +0 -22
  96. package/dist/components/Filter/FilterInput.js +0 -48
  97. package/dist/components/TruncatedTextTooltip.js +0 -49
  98. package/dist/components.d.ts +0 -2
  99. package/dist/components.js +0 -1
  100. package/dist/configs/app/api.js +0 -23
  101. package/dist/configs/app/app.js +0 -19
  102. package/dist/configs/app/chain.js +0 -30
  103. package/dist/configs/app/features/account.js +0 -13
  104. package/dist/configs/app/features/addressMetadata.js +0 -15
  105. package/dist/configs/app/features/addressProfileAPI.js +0 -25
  106. package/dist/configs/app/features/addressVerification.js +0 -17
  107. package/dist/configs/app/features/adsBanner.js +0 -50
  108. package/dist/configs/app/features/adsText.js +0 -16
  109. package/dist/configs/app/features/advancedFilter.js +0 -11
  110. package/dist/configs/app/features/beaconChain.js +0 -15
  111. package/dist/configs/app/features/blockchainInteraction.js +0 -15
  112. package/dist/configs/app/features/bridgedTokens.js +0 -16
  113. package/dist/configs/app/features/celo.js +0 -13
  114. package/dist/configs/app/features/csvExport.js +0 -14
  115. package/dist/configs/app/features/dataAvailability.js +0 -11
  116. package/dist/configs/app/features/deFiDropdown.js +0 -12
  117. package/dist/configs/app/features/easterEggBadge.js +0 -12
  118. package/dist/configs/app/features/externalTxs.js +0 -14
  119. package/dist/configs/app/features/faultProofSystem.js +0 -12
  120. package/dist/configs/app/features/gasTracker.js +0 -17
  121. package/dist/configs/app/features/getGasButton.js +0 -17
  122. package/dist/configs/app/features/googleAnalytics.js +0 -12
  123. package/dist/configs/app/features/graphqlApiDocs.js +0 -12
  124. package/dist/configs/app/features/growthBook.js +0 -12
  125. package/dist/configs/app/features/index.js +0 -92
  126. package/dist/configs/app/features/marketplace.js +0 -46
  127. package/dist/configs/app/features/metasuites.js +0 -11
  128. package/dist/configs/app/features/mixpanel.js +0 -12
  129. package/dist/configs/app/features/mudFramework.js +0 -12
  130. package/dist/configs/app/features/multichainButton.js +0 -18
  131. package/dist/configs/app/features/nameService.js +0 -15
  132. package/dist/configs/app/features/pools.js +0 -15
  133. package/dist/configs/app/features/publicTagsSubmission.js +0 -17
  134. package/dist/configs/app/features/restApiDocs.js +0 -12
  135. package/dist/configs/app/features/rewards.js +0 -17
  136. package/dist/configs/app/features/rollbar.js +0 -20
  137. package/dist/configs/app/features/rollup.js +0 -37
  138. package/dist/configs/app/features/safe.js +0 -23
  139. package/dist/configs/app/features/saveOnGas.js +0 -13
  140. package/dist/configs/app/features/sol2uml.js +0 -16
  141. package/dist/configs/app/features/stats.js +0 -16
  142. package/dist/configs/app/features/suave.js +0 -11
  143. package/dist/configs/app/features/txInterpretation.js +0 -16
  144. package/dist/configs/app/features/userOps.js +0 -11
  145. package/dist/configs/app/features/validators.js +0 -16
  146. package/dist/configs/app/features/verifiedTokens.js +0 -15
  147. package/dist/configs/app/features/web3Wallet.js +0 -24
  148. package/dist/configs/app/features/xStarScore.js +0 -12
  149. package/dist/configs/app/index.js +0 -19
  150. package/dist/configs/app/meta.js +0 -16
  151. package/dist/configs/app/services.js +0 -9
  152. package/dist/configs/app/ui/views/address.js +0 -36
  153. package/dist/configs/app/ui/views/block.js +0 -11
  154. package/dist/configs/app/ui/views/index.js +0 -12
  155. package/dist/configs/app/ui/views/nft.js +0 -10
  156. package/dist/configs/app/ui/views/token.js +0 -7
  157. package/dist/configs/app/ui/views/tx.js +0 -15
  158. package/dist/configs/app/ui.js +0 -128
  159. package/dist/configs/app/utils.js +0 -45
  160. package/dist/hooks/useClipboard.js +0 -27
  161. package/dist/hooks/useDisclosure.js +0 -17
  162. package/dist/hooks/useViewportSize.js +0 -17
  163. package/dist/hooks.d.ts +0 -1
  164. package/dist/hooks.js +0 -8
  165. package/dist/icons/arrows/east-mini.svg.js +0 -4
  166. package/dist/icons/arrows/east.svg.js +0 -4
  167. package/dist/icons/check.svg.js +0 -4
  168. package/dist/icons/close.svg.js +0 -4
  169. package/dist/icons/info_filled.svg.js +0 -4
  170. package/dist/icons/link_external.svg.js +0 -4
  171. package/dist/icons/star_filled.svg.js +0 -4
  172. package/dist/icons/star_outline.svg.js +0 -4
  173. package/dist/lib/consts.js +0 -10
  174. package/dist/lib/hooks/useFirstMountState.js +0 -8
  175. package/dist/lib/hooks/useIsMobile.js +0 -7
  176. package/dist/lib/hooks/useUpdateEffect.js +0 -12
  177. package/dist/lib/html-entities.js +0 -5
  178. package/dist/lib/isBrowser.js +0 -6
  179. package/dist/lib/regexp.js +0 -4
  180. package/dist/lib/settings/colorTheme.js +0 -33
  181. package/dist/lib/stripTrailingSlash.js +0 -4
  182. package/dist/node_modules/@uidotdev/usehooks/index.js +0 -51
  183. package/dist/node_modules/bignumber.js/bignumber.js +0 -627
  184. package/dist/node_modules/es-toolkit/dist/function/debounce.js +0 -30
  185. package/dist/node_modules/es-toolkit/dist/function/throttle.js +0 -11
  186. package/dist/node_modules/lodash.throttle/index.js +0 -95
  187. package/dist/node_modules/object-assign/index.js +0 -54
  188. package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
  189. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
  190. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
  191. package/dist/node_modules/prop-types/index.js +0 -17
  192. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
  193. package/dist/node_modules/prop-types/lib/has.js +0 -7
  194. package/dist/node_modules/react-icons/lib/iconBase.js +0 -108
  195. package/dist/node_modules/react-icons/lib/iconContext.js +0 -12
  196. package/dist/node_modules/react-icons/lu/index.js +0 -12
  197. package/dist/node_modules/react-is/cjs/react-is.development.js +0 -95
  198. package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -78
  199. package/dist/node_modules/react-is/index.js +0 -10
  200. package/dist/node_modules/react-scroll/modules/components/Button.js +0 -58
  201. package/dist/node_modules/react-scroll/modules/components/Element.js +0 -72
  202. package/dist/node_modules/react-scroll/modules/components/Link.js +0 -49
  203. package/dist/node_modules/react-scroll/modules/index.js +0 -26
  204. package/dist/node_modules/react-scroll/modules/mixins/Helpers.js +0 -192
  205. package/dist/node_modules/react-scroll/modules/mixins/animate-scroll.js +0 -132
  206. package/dist/node_modules/react-scroll/modules/mixins/cancel-events.js +0 -20
  207. package/dist/node_modules/react-scroll/modules/mixins/passive-event-listeners.js +0 -27
  208. package/dist/node_modules/react-scroll/modules/mixins/scroll-element.js +0 -98
  209. package/dist/node_modules/react-scroll/modules/mixins/scroll-events.js +0 -23
  210. package/dist/node_modules/react-scroll/modules/mixins/scroll-hash.js +0 -61
  211. package/dist/node_modules/react-scroll/modules/mixins/scroll-link.js +0 -171
  212. package/dist/node_modules/react-scroll/modules/mixins/scroll-spy.js +0 -79
  213. package/dist/node_modules/react-scroll/modules/mixins/scroller.js +0 -62
  214. package/dist/node_modules/react-scroll/modules/mixins/smooth.js +0 -72
  215. package/dist/node_modules/react-scroll/modules/mixins/utils.js +0 -55
  216. package/dist/package/node_modules/react/cjs/react-jsx-runtime.development.js +0 -604
  217. package/dist/package/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -28
  218. package/dist/package/node_modules/react/jsx-runtime.js +0 -10
  219. package/dist/theme/foundations/animations.js +0 -15
  220. package/dist/theme/foundations/borders.js +0 -12
  221. package/dist/theme/foundations/breakpoints.js +0 -11
  222. package/dist/theme/foundations/colors.js +0 -163
  223. package/dist/theme/foundations/durations.js +0 -12
  224. package/dist/theme/foundations/semanticTokens.js +0 -474
  225. package/dist/theme/foundations/shadows.js +0 -16
  226. package/dist/theme/foundations/typography.js +0 -92
  227. package/dist/theme/foundations/zIndex.js +0 -24
  228. package/dist/theme/globalCss.js +0 -51
  229. package/dist/theme/globals/address-entity.js +0 -34
  230. package/dist/theme/globals/recaptcha.js +0 -21
  231. package/dist/theme/globals/scrollbar.js +0 -33
  232. package/dist/theme/index.d.ts +0 -1
  233. package/dist/theme/index.ts +0 -1
  234. package/dist/theme/recipes/accordion.recipe.js +0 -143
  235. package/dist/theme/recipes/alert.recipe.js +0 -134
  236. package/dist/theme/recipes/badge.recipe.js +0 -119
  237. package/dist/theme/recipes/button.recipe.js +0 -272
  238. package/dist/theme/recipes/checkbox.recipe.js +0 -53
  239. package/dist/theme/recipes/checkmark.recipe.js +0 -73
  240. package/dist/theme/recipes/close-button.recipe.js +0 -39
  241. package/dist/theme/recipes/dialog.recipe.js +0 -210
  242. package/dist/theme/recipes/drawer.recipe.js +0 -168
  243. package/dist/theme/recipes/field.recipe.js +0 -174
  244. package/dist/theme/recipes/index.js +0 -69
  245. package/dist/theme/recipes/input.recipe.js +0 -116
  246. package/dist/theme/recipes/link.recipe.js +0 -88
  247. package/dist/theme/recipes/list.recipe.js +0 -65
  248. package/dist/theme/recipes/menu.recipe.js +0 -104
  249. package/dist/theme/recipes/pin-input.recipe.js +0 -34
  250. package/dist/theme/recipes/popover.recipe.js +0 -72
  251. package/dist/theme/recipes/progress-circle.recipe.js +0 -74
  252. package/dist/theme/recipes/radio-group.recipe.js +0 -69
  253. package/dist/theme/recipes/radiomark.recipe.js +0 -87
  254. package/dist/theme/recipes/rating-group.recipe.js +0 -84
  255. package/dist/theme/recipes/select.recipe.js +0 -275
  256. package/dist/theme/recipes/skeleton.recipe.js +0 -54
  257. package/dist/theme/recipes/spinner.recipe.js +0 -33
  258. package/dist/theme/recipes/stat.recipe.js +0 -101
  259. package/dist/theme/recipes/switch.recipe.js +0 -125
  260. package/dist/theme/recipes/table.recipe.js +0 -83
  261. package/dist/theme/recipes/tabs.recipe.js +0 -216
  262. package/dist/theme/recipes/tag.recipe.js +0 -157
  263. package/dist/theme/recipes/textarea.recipe.js +0 -86
  264. package/dist/theme/recipes/toast.recipe.js +0 -98
  265. package/dist/theme/recipes/tooltip.recipe.js +0 -87
  266. package/dist/theme/theme.js +0 -40
  267. package/dist/theme/utils/entries.js +0 -11
  268. package/dist/theme.d.ts +0 -2
  269. package/dist/theme.js +0 -4
  270. package/dist/types/client/adProviders.js +0 -12
  271. package/dist/types/client/contract.js +0 -13
  272. package/dist/types/client/gasTracker.js +0 -7
  273. package/dist/types/client/navigation.js +0 -4
  274. package/dist/types/client/rollup.js +0 -11
  275. package/dist/types/client/txInterpretation.js +0 -8
  276. package/dist/types/client/validators.js +0 -8
  277. package/dist/types/client/wallets.js +0 -8
  278. package/dist/types/homepage.js +0 -15
  279. package/dist/types/views/address.js +0 -14
  280. package/dist/types/views/block.js +0 -12
  281. package/dist/types/views/tx.js +0 -16
  282. package/dist/ui/shared/forms/validators/url.js +0 -12
  283. package/dist/utils/getComponentDisplayName.js +0 -7
  284. package/dist/utils/index.d.ts +0 -1
  285. package/dist/utils.d.ts +0 -2
  286. package/dist/utils.js +0 -4
@@ -1,216 +0,0 @@
1
- import { defineSlotRecipe as e } from "@chakra-ui/react";
2
- const r = e({
3
- slots: ["root", "list", "trigger", "content", "indicator"],
4
- base: {
5
- root: {
6
- "--tabs-trigger-radius": "radii.l2",
7
- position: "relative",
8
- _horizontal: {
9
- display: "block"
10
- },
11
- _vertical: {
12
- display: "flex"
13
- }
14
- },
15
- list: {
16
- display: "inline-flex",
17
- width: "100%",
18
- position: "relative",
19
- isolation: "isolate",
20
- "--tabs-indicator-shadow": "shadows.xs",
21
- "--tabs-indicator-bg": "colors.bg",
22
- minH: "var(--tabs-height)",
23
- _horizontal: {
24
- flexDirection: "row"
25
- },
26
- _vertical: {
27
- flexDirection: "column"
28
- }
29
- },
30
- trigger: {
31
- outline: "0",
32
- minW: "var(--tabs-height)",
33
- height: "var(--tabs-height)",
34
- display: "flex",
35
- alignItems: "center",
36
- position: "relative",
37
- cursor: "button",
38
- gap: "2",
39
- _focusVisible: {
40
- zIndex: 1,
41
- outline: "2px solid",
42
- outlineColor: "colorPalette.focusRing"
43
- },
44
- _disabled: {
45
- cursor: "not-allowed",
46
- opacity: 0.5
47
- }
48
- },
49
- content: {
50
- focusVisibleRing: "inside",
51
- _horizontal: {
52
- width: "100%",
53
- pt: "var(--tabs-content-padding)"
54
- },
55
- _vertical: {
56
- height: "100%",
57
- ps: "var(--tabs-content-padding)"
58
- }
59
- },
60
- indicator: {
61
- width: "var(--width)",
62
- height: "var(--height)",
63
- borderRadius: "var(--tabs-indicator-radius)",
64
- bg: "var(--tabs-indicator-bg)",
65
- shadow: "var(--tabs-indicator-shadow)",
66
- zIndex: -1
67
- }
68
- },
69
- variants: {
70
- fitted: {
71
- true: {
72
- list: {
73
- display: "flex"
74
- },
75
- trigger: {
76
- flex: 1,
77
- textAlign: "center",
78
- justifyContent: "center"
79
- }
80
- }
81
- },
82
- justify: {
83
- start: {
84
- list: {
85
- justifyContent: "flex-start"
86
- }
87
- },
88
- center: {
89
- list: {
90
- justifyContent: "center"
91
- }
92
- },
93
- end: {
94
- list: {
95
- justifyContent: "flex-end"
96
- }
97
- }
98
- },
99
- size: {
100
- sm: {
101
- root: {
102
- "--tabs-height": "sizes.8",
103
- "--tabs-content-padding": "spacing.6"
104
- },
105
- trigger: {
106
- py: "1",
107
- px: "3",
108
- textStyle: "sm"
109
- }
110
- },
111
- md: {
112
- root: {
113
- "--tabs-height": "sizes.10",
114
- "--tabs-content-padding": "spacing.6"
115
- },
116
- trigger: {
117
- py: "2",
118
- px: "4",
119
- textStyle: "md"
120
- }
121
- },
122
- free: {}
123
- },
124
- variant: {
125
- solid: {
126
- trigger: {
127
- fontWeight: "600",
128
- gap: "1",
129
- borderRadius: "base",
130
- color: "tabs.solid.fg",
131
- bg: "transparent",
132
- _selected: {
133
- bg: "tabs.solid.bg.selected",
134
- color: "tabs.solid.fg.selected",
135
- _hover: {
136
- color: "tabs.solid.fg.selected"
137
- }
138
- },
139
- _hover: {
140
- color: "link.primary.hover"
141
- }
142
- }
143
- },
144
- secondary: {
145
- list: {
146
- border: "none",
147
- columnGap: "2",
148
- _horizontal: {
149
- _before: {
150
- display: "none"
151
- }
152
- }
153
- },
154
- trigger: {
155
- fontWeight: "500",
156
- color: "tabs.secondary.fg",
157
- bg: "transparent",
158
- borderWidth: "2px",
159
- borderStyle: "solid",
160
- borderColor: "tabs.secondary.border",
161
- borderRadius: "base",
162
- _selected: {
163
- bg: "tabs.secondary.bg.selected",
164
- borderColor: "transparent",
165
- _hover: {
166
- borderColor: "transparent"
167
- }
168
- },
169
- _hover: {
170
- color: "link.primary.hover",
171
- borderColor: "link.primary.hover"
172
- }
173
- }
174
- },
175
- segmented: {
176
- trigger: {
177
- color: "tabs.segmented.fg",
178
- bg: "transparent",
179
- borderWidth: "2px",
180
- borderStyle: "solid",
181
- borderColor: "tabs.segmented.border",
182
- _hover: {
183
- color: "link.primary.hover"
184
- },
185
- _selected: {
186
- color: "tabs.segmented.fg.selected",
187
- bg: "tabs.segmented.border",
188
- borderColor: "tabs.segmented.border",
189
- _hover: {
190
- color: "tabs.segmented.fg.selected"
191
- }
192
- },
193
- _notFirst: {
194
- borderLeftWidth: "0"
195
- },
196
- _first: {
197
- borderTopLeftRadius: "base",
198
- borderBottomLeftRadius: "base"
199
- },
200
- _last: {
201
- borderTopRightRadius: "base",
202
- borderBottomRightRadius: "base"
203
- }
204
- }
205
- },
206
- unstyled: {}
207
- }
208
- },
209
- defaultVariants: {
210
- size: "md",
211
- variant: "solid"
212
- }
213
- });
214
- export {
215
- r as recipe
216
- };
@@ -1,157 +0,0 @@
1
- import { defineSlotRecipe as e } from "@chakra-ui/react";
2
- const o = e({
3
- slots: ["root", "label", "startElement", "endElement", "closeTrigger"],
4
- base: {
5
- root: {
6
- display: "inline-flex",
7
- alignItems: "center",
8
- verticalAlign: "top",
9
- maxWidth: "100%",
10
- userSelect: "none",
11
- borderRadius: "sm",
12
- focusVisibleRing: "outside",
13
- _loading: {
14
- borderRadius: "sm",
15
- bgColor: "unset"
16
- }
17
- },
18
- label: {
19
- lineClamp: "1",
20
- whiteSpace: "nowrap",
21
- textOverflow: "ellipsis",
22
- fontWeight: "medium",
23
- display: "inline"
24
- },
25
- closeTrigger: {
26
- display: "flex",
27
- alignItems: "center",
28
- justifyContent: "center",
29
- outline: "0",
30
- borderRadius: "none",
31
- color: "closeButton.fg",
32
- focusVisibleRing: "inside",
33
- focusRingWidth: "2px",
34
- _hover: {
35
- color: "link.primary.hover"
36
- }
37
- },
38
- startElement: {
39
- flexShrink: 0,
40
- display: "inline-flex",
41
- alignItems: "center",
42
- justifyContent: "center",
43
- boxSize: "var(--tag-element-size)",
44
- ms: "var(--tag-element-offset)",
45
- "&:has([data-scope=avatar])": {
46
- boxSize: "var(--tag-avatar-size)",
47
- ms: "calc(var(--tag-element-offset) * 1.5)"
48
- },
49
- _icon: { boxSize: "100%" }
50
- },
51
- endElement: {
52
- flexShrink: 0,
53
- display: "inline-flex",
54
- alignItems: "center",
55
- justifyContent: "center",
56
- boxSize: "var(--tag-element-size)",
57
- me: "var(--tag-element-offset)",
58
- _icon: { boxSize: "100%" },
59
- "&:has(button)": {
60
- ms: "calc(var(--tag-element-offset) * -1)"
61
- }
62
- }
63
- },
64
- variants: {
65
- size: {
66
- md: {
67
- root: {
68
- px: "1",
69
- py: "0.5",
70
- minH: "6",
71
- gap: "1",
72
- "--tag-avatar-size": "spacing.4",
73
- "--tag-element-size": "spacing.3",
74
- "--tag-element-offset": "0px"
75
- },
76
- label: {
77
- textStyle: "sm"
78
- }
79
- },
80
- lg: {
81
- root: {
82
- px: "6px",
83
- py: "6px",
84
- minH: "8",
85
- gap: "1",
86
- "--tag-avatar-size": "spacing.4",
87
- "--tag-element-size": "spacing.3",
88
- "--tag-element-offset": "0px"
89
- },
90
- label: {
91
- textStyle: "sm"
92
- }
93
- }
94
- },
95
- variant: {
96
- subtle: {
97
- root: {
98
- bgColor: "tag.root.subtle.bg",
99
- color: "tag.root.subtle.fg",
100
- "&:not([data-loading], [aria-busy=true])": {
101
- bgColor: "tag.root.subtle.bg"
102
- }
103
- }
104
- },
105
- clickable: {
106
- root: {
107
- cursor: "pointer",
108
- bgColor: "tag.root.clickable.bg",
109
- color: "tag.root.clickable.fg",
110
- "&:not([data-loading], [aria-busy=true])": {
111
- bgColor: "tag.root.clickable.bg"
112
- },
113
- _hover: {
114
- opacity: 0.76
115
- }
116
- }
117
- },
118
- filter: {
119
- root: {
120
- bgColor: "tag.root.filter.bg",
121
- "&:not([data-loading], [aria-busy=true])": {
122
- bgColor: "tag.root.filter.bg"
123
- }
124
- }
125
- },
126
- select: {
127
- root: {
128
- cursor: "pointer",
129
- bgColor: "tag.root.select.bg",
130
- color: "tag.root.select.fg",
131
- "&:not([data-loading], [aria-busy=true])": {
132
- bgColor: "tag.root.select.bg"
133
- },
134
- _hover: {
135
- color: "blue.400",
136
- opacity: 0.76
137
- },
138
- _selected: {
139
- bgColor: "tag.root.select.bg.selected",
140
- color: "whiteAlpha.800",
141
- _hover: {
142
- color: "whiteAlpha.800",
143
- opacity: 0.76
144
- }
145
- }
146
- }
147
- }
148
- }
149
- },
150
- defaultVariants: {
151
- size: "md",
152
- variant: "subtle"
153
- }
154
- });
155
- export {
156
- o as recipe
157
- };
@@ -1,86 +0,0 @@
1
- import { defineRecipe as r } from "@chakra-ui/react";
2
- const e = r({
3
- base: {
4
- width: "100%",
5
- minWidth: "0",
6
- minHeight: "160px",
7
- outline: "0",
8
- position: "relative",
9
- appearance: "none",
10
- textAlign: "start",
11
- borderRadius: "base",
12
- color: "input.fg",
13
- "--focus-color": "colors.border.error",
14
- "--error-color": "colors.border.error",
15
- _invalid: {
16
- focusRingColor: "var(--error-color)",
17
- borderColor: "var(--error-color)"
18
- }
19
- },
20
- variants: {
21
- size: {
22
- "2xl": {
23
- textStyle: "md",
24
- py: "4",
25
- pl: "4",
26
- pr: "5",
27
- // === scrollbar width
28
- scrollPaddingBottom: "4"
29
- }
30
- },
31
- variant: {
32
- outline: {
33
- bg: "input.bg",
34
- borderWidth: "2px",
35
- borderColor: "input.border",
36
- focusVisibleRing: "none",
37
- _hover: {
38
- borderColor: "input.border.hover"
39
- },
40
- _focus: {
41
- borderColor: "input.border.focus",
42
- boxShadow: "size.md",
43
- _hover: {
44
- borderColor: "input.border.focus"
45
- }
46
- },
47
- _readOnly: {
48
- userSelect: "all",
49
- bg: "input.bg.readOnly",
50
- borderColor: "input.border.readOnly",
51
- _focus: {
52
- borderColor: "input.border.readOnly"
53
- },
54
- _hover: {
55
- borderColor: "input.border.readOnly"
56
- }
57
- },
58
- _disabled: {
59
- pointerEvents: "none",
60
- opacity: "control.disabled"
61
- },
62
- _invalid: {
63
- borderColor: "input.border.error",
64
- _hover: {
65
- borderColor: "input.border.error"
66
- }
67
- }
68
- }
69
- },
70
- floating: {
71
- true: {
72
- paddingTop: "8",
73
- _placeholderShown: {
74
- paddingTop: "10"
75
- }
76
- }
77
- }
78
- },
79
- defaultVariants: {
80
- size: "2xl",
81
- variant: "outline"
82
- }
83
- });
84
- export {
85
- e as recipe
86
- };
@@ -1,98 +0,0 @@
1
- import { defineSlotRecipe as t } from "@chakra-ui/react";
2
- const e = t({
3
- slots: ["root", "title", "description", "indicator", "actionTrigger", "closeTrigger"],
4
- base: {
5
- root: {
6
- width: "full",
7
- display: "flex",
8
- alignItems: "flex-start",
9
- position: "relative",
10
- gap: "3",
11
- py: "3",
12
- ps: "6",
13
- pe: "3",
14
- borderRadius: "md",
15
- translate: "var(--x) var(--y)",
16
- scale: "var(--scale)",
17
- zIndex: "var(--z-index)",
18
- height: "var(--height)",
19
- opacity: "var(--opacity)",
20
- willChange: "translate, opacity, scale",
21
- transition: "translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",
22
- transitionTimingFunction: "cubic-bezier(0.21, 1.02, 0.73, 1)",
23
- _closed: {
24
- transition: "translate 400ms, scale 400ms, opacity 200ms",
25
- transitionTimingFunction: "cubic-bezier(0.06, 0.71, 0.55, 1)"
26
- },
27
- bg: "toast.bg.info",
28
- color: "toast.fg",
29
- boxShadow: "xl",
30
- "--toast-trigger-bg": "colors.bg.muted",
31
- "&[data-type=warning]": {
32
- color: "toast.fg",
33
- bg: "toast.bg.warning",
34
- "--toast-trigger-bg": "{white/10}",
35
- "--toast-border-color": "{white/40}"
36
- },
37
- "&[data-type=success]": {
38
- color: "toast.fg",
39
- bg: "toast.bg.success",
40
- "--toast-trigger-bg": "{white/10}",
41
- "--toast-border-color": "{white/40}"
42
- },
43
- "&[data-type=error]": {
44
- color: "toast.fg",
45
- bg: "toast.bg.error",
46
- "--toast-trigger-bg": "{white/10}",
47
- "--toast-border-color": "{white/40}"
48
- },
49
- "&[data-type=info]": {
50
- color: "toast.fg",
51
- bg: "toast.bg.info",
52
- "--toast-trigger-bg": "{white/10}",
53
- "--toast-border-color": "{white/40}"
54
- },
55
- "&[data-type=loading]": {
56
- color: "toast.fg",
57
- bg: "toast.bg.info",
58
- "--toast-trigger-bg": "{white/10}",
59
- "--toast-border-color": "{white/40}"
60
- }
61
- },
62
- title: {
63
- fontWeight: "700",
64
- textStyle: "md",
65
- marginEnd: "0"
66
- },
67
- description: {
68
- display: "inline",
69
- textStyle: "md"
70
- },
71
- indicator: {
72
- flexShrink: "0",
73
- boxSize: "5"
74
- },
75
- actionTrigger: {
76
- textStyle: "sm",
77
- fontWeight: "medium",
78
- height: "8",
79
- px: "3",
80
- borderRadius: "base",
81
- alignSelf: "center",
82
- borderWidth: "1px",
83
- borderColor: "var(--toast-border-color, inherit)",
84
- transition: "background 200ms",
85
- _hover: {
86
- bg: "var(--toast-trigger-bg)"
87
- }
88
- },
89
- closeTrigger: {
90
- position: "static",
91
- alignSelf: "center",
92
- color: "closeButton.fg"
93
- }
94
- }
95
- });
96
- export {
97
- e as recipe
98
- };
@@ -1,87 +0,0 @@
1
- import { defineSlotRecipe as o } from "@chakra-ui/react";
2
- const r = o({
3
- slots: ["content", "arrow", "arrowTip"],
4
- base: {
5
- content: {
6
- px: "2",
7
- py: "1",
8
- borderRadius: "sm",
9
- fontWeight: "500",
10
- textStyle: "sm",
11
- textAlign: "center",
12
- boxShadow: "size.md",
13
- zIndex: "tooltip",
14
- maxW: "320px",
15
- transformOrigin: "var(--transform-origin)",
16
- _open: {
17
- animationStyle: "scale-fade-in",
18
- animationDuration: "fast"
19
- },
20
- _closed: {
21
- animationStyle: "scale-fade-out",
22
- animationDuration: "fast"
23
- }
24
- },
25
- arrow: {
26
- "--arrow-size": "sizes.2",
27
- "--arrow-background": "var(--tooltip-bg)"
28
- },
29
- arrowTip: {
30
- borderTopWidth: "1px",
31
- borderInlineStartWidth: "1px",
32
- borderColor: "var(--tooltip-bg)"
33
- }
34
- },
35
- variants: {
36
- variant: {
37
- regular: {
38
- content: {
39
- "--tooltip-bg": "colors.tooltip.bg",
40
- bg: "var(--tooltip-bg)",
41
- color: "tooltip.fg"
42
- }
43
- },
44
- navigation: {
45
- content: {
46
- "--tooltip-bg": "colors.tooltip.navigation.bg",
47
- bg: "var(--tooltip-bg)",
48
- color: "tooltip.navigation.fg",
49
- borderWidth: "0",
50
- borderRadius: "base",
51
- minW: "120px",
52
- boxShadow: "none",
53
- textAlign: "center",
54
- padding: "15px 12px",
55
- _selected: {
56
- color: "tooltip.navigation.fg.selected"
57
- }
58
- },
59
- arrow: {
60
- display: "none"
61
- },
62
- arrowTip: {
63
- display: "none"
64
- }
65
- },
66
- popover: {
67
- content: {
68
- maxW: "none",
69
- bg: "popover.bg",
70
- color: "text.primary",
71
- p: "4",
72
- boxShadow: "popover",
73
- boxShadowColor: "popover.shadow",
74
- borderRadius: "md",
75
- textAlign: "left",
76
- fontWeight: "normal"
77
- }
78
- }
79
- }
80
- },
81
- defaultVariants: {
82
- variant: "regular"
83
- }
84
- });
85
- export {
86
- r as recipe
87
- };
@@ -1,40 +0,0 @@
1
- import { defineConfig as o, createSystem as m, defaultConfig as r } from "@chakra-ui/react";
2
- import { keyframes as e } from "./foundations/animations.js";
3
- import * as t from "./foundations/borders.js";
4
- import s from "./foundations/breakpoints.js";
5
- import i from "./foundations/colors.js";
6
- import f from "./foundations/durations.js";
7
- import a from "./foundations/semanticTokens.js";
8
- import p from "./foundations/shadows.js";
9
- import { fonts as n, textStyles as l } from "./foundations/typography.js";
10
- import { zIndex as d } from "./foundations/zIndex.js";
11
- import u from "./globalCss.js";
12
- import { slotRecipes as c, recipes as b } from "./recipes/index.js";
13
- const g = o({
14
- globalCss: u,
15
- theme: {
16
- breakpoints: s,
17
- keyframes: e,
18
- recipes: b,
19
- slotRecipes: c,
20
- semanticTokens: a,
21
- textStyles: l,
22
- tokens: {
23
- ...t,
24
- colors: i,
25
- durations: f,
26
- fonts: n,
27
- shadows: p,
28
- zIndex: d,
29
- fontWeights: {
30
- normal: { value: "400" },
31
- medium: { value: "500" },
32
- semibold: { value: "600" },
33
- bold: { value: "700" }
34
- }
35
- }
36
- }
37
- }), T = m(r, g);
38
- export {
39
- T as default
40
- };
@@ -1,11 +0,0 @@
1
- function s(n, o) {
2
- const t = {};
3
- for (const r in n) {
4
- const e = o(r, n[r]);
5
- t[e[0]] = e[1];
6
- }
7
- return t;
8
- }
9
- export {
10
- s as mapEntries
11
- };
package/dist/theme.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './theme/index'
2
- export {}
package/dist/theme.js DELETED
@@ -1,4 +0,0 @@
1
- import { default as a } from "./theme/theme.js";
2
- export {
3
- a as theme
4
- };