@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.
- package/README.md +8 -0
- package/dist/chakra/accordion.d.ts +1 -1
- package/dist/chakra/drawer.d.ts +1 -1
- package/dist/chakra/popover.d.ts +1 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9284 -0
- package/dist/package/src/index.d.ts +7 -11
- package/dist/theme/foundations/semanticTokens.ts +1 -5
- package/dist/theme/recipes/alert.recipe.d.ts +6 -46
- package/dist/theme/recipes/alert.recipe.ts +45 -48
- package/dist/theme/recipes/badge.recipe.d.ts +11 -44
- package/dist/theme/recipes/badge.recipe.ts +11 -45
- package/dist/theme/recipes/button.recipe.d.ts +17 -20
- package/dist/theme/recipes/button.recipe.ts +42 -27
- package/dist/theme/recipes/close-button.recipe.d.ts +0 -3
- package/dist/theme/recipes/close-button.recipe.ts +0 -3
- package/dist/theme/recipes/dialog.recipe.d.ts +1 -1
- package/dist/theme/recipes/drawer.recipe.d.ts +1 -1
- package/dist/theme/recipes/index.d.ts +47 -147
- package/dist/theme/recipes/link.recipe.d.ts +1 -9
- package/dist/theme/recipes/link.recipe.ts +1 -9
- package/dist/theme/recipes/list.recipe.d.ts +1 -1
- package/dist/theme/recipes/menu.recipe.d.ts +1 -1
- package/dist/theme/recipes/popover.recipe.ts +4 -3
- package/dist/theme/recipes/select.recipe.d.ts +1 -1
- package/dist/theme/recipes/skeleton.recipe.d.ts +5 -6
- package/dist/theme/recipes/skeleton.recipe.ts +10 -9
- package/dist/theme/recipes/table.recipe.d.ts +1 -1
- package/dist/theme/recipes/tag.recipe.d.ts +0 -12
- package/dist/theme/recipes/tag.recipe.ts +0 -13
- package/dist/theme/recipes/toast.recipe.d.ts +1 -1
- package/package.json +14 -28
- package/dist/_virtual/Button.js +0 -4
- package/dist/_virtual/Element.js +0 -4
- package/dist/_virtual/Link.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -4
- package/dist/_virtual/animate-scroll.js +0 -4
- package/dist/_virtual/cancel-events.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/index4.js +0 -4
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/_virtual/passive-event-listeners.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
- package/dist/_virtual/scroll-element.js +0 -4
- package/dist/_virtual/scroll-events.js +0 -4
- package/dist/_virtual/scroll-hash.js +0 -4
- package/dist/_virtual/scroll-link.js +0 -4
- package/dist/_virtual/scroll-spy.js +0 -4
- package/dist/_virtual/scroller.js +0 -4
- package/dist/_virtual/smooth.js +0 -4
- package/dist/_virtual/utils.js +0 -4
- package/dist/chakra/accordion.js +0 -61
- package/dist/chakra/alert.js +0 -45
- package/dist/chakra/avatar.js +0 -36
- package/dist/chakra/badge.js +0 -18
- package/dist/chakra/button.js +0 -65
- package/dist/chakra/checkbox.js +0 -33
- package/dist/chakra/close-button.js +0 -13
- package/dist/chakra/collapsible.js +0 -58
- package/dist/chakra/color-mode.js +0 -35
- package/dist/chakra/dialog.js +0 -47
- package/dist/chakra/drawer.js +0 -39
- package/dist/chakra/field.js +0 -65
- package/dist/chakra/heading.js +0 -12
- package/dist/chakra/icon-button.js +0 -44
- package/dist/chakra/image.js +0 -30
- package/dist/chakra/input-group.js +0 -47
- package/dist/chakra/input.js +0 -5
- package/dist/chakra/link.js +0 -68
- package/dist/chakra/menu.js +0 -63
- package/dist/chakra/pin-input.js +0 -15
- package/dist/chakra/popover.js +0 -69
- package/dist/chakra/progress-circle.js +0 -17
- package/dist/chakra/provider.js +0 -10
- package/dist/chakra/radio.js +0 -17
- package/dist/chakra/rating.js +0 -21
- package/dist/chakra/select.js +0 -185
- package/dist/chakra/skeleton.js +0 -40
- package/dist/chakra/slider.js +0 -39
- package/dist/chakra/switch.js +0 -19
- package/dist/chakra/table.js +0 -66
- package/dist/chakra/tabs.js +0 -29
- package/dist/chakra/tag.js +0 -51
- package/dist/chakra/textarea.js +0 -5
- package/dist/chakra/toaster.js +0 -31
- package/dist/chakra/tooltip.js +0 -85
- package/dist/chakra.d.ts +0 -1
- package/dist/chakra.js +0 -155
- package/dist/components/ButtonBackTo.js +0 -22
- package/dist/components/Filter/FilterInput.js +0 -48
- package/dist/components/TruncatedTextTooltip.js +0 -49
- package/dist/components.d.ts +0 -2
- package/dist/components.js +0 -1
- package/dist/configs/app/api.js +0 -23
- package/dist/configs/app/app.js +0 -19
- package/dist/configs/app/chain.js +0 -30
- package/dist/configs/app/features/account.js +0 -13
- package/dist/configs/app/features/addressMetadata.js +0 -15
- package/dist/configs/app/features/addressProfileAPI.js +0 -25
- package/dist/configs/app/features/addressVerification.js +0 -17
- package/dist/configs/app/features/adsBanner.js +0 -50
- package/dist/configs/app/features/adsText.js +0 -16
- package/dist/configs/app/features/advancedFilter.js +0 -11
- package/dist/configs/app/features/beaconChain.js +0 -15
- package/dist/configs/app/features/blockchainInteraction.js +0 -15
- package/dist/configs/app/features/bridgedTokens.js +0 -16
- package/dist/configs/app/features/celo.js +0 -13
- package/dist/configs/app/features/csvExport.js +0 -14
- package/dist/configs/app/features/dataAvailability.js +0 -11
- package/dist/configs/app/features/deFiDropdown.js +0 -12
- package/dist/configs/app/features/easterEggBadge.js +0 -12
- package/dist/configs/app/features/externalTxs.js +0 -14
- package/dist/configs/app/features/faultProofSystem.js +0 -12
- package/dist/configs/app/features/gasTracker.js +0 -17
- package/dist/configs/app/features/getGasButton.js +0 -17
- package/dist/configs/app/features/googleAnalytics.js +0 -12
- package/dist/configs/app/features/graphqlApiDocs.js +0 -12
- package/dist/configs/app/features/growthBook.js +0 -12
- package/dist/configs/app/features/index.js +0 -92
- package/dist/configs/app/features/marketplace.js +0 -46
- package/dist/configs/app/features/metasuites.js +0 -11
- package/dist/configs/app/features/mixpanel.js +0 -12
- package/dist/configs/app/features/mudFramework.js +0 -12
- package/dist/configs/app/features/multichainButton.js +0 -18
- package/dist/configs/app/features/nameService.js +0 -15
- package/dist/configs/app/features/pools.js +0 -15
- package/dist/configs/app/features/publicTagsSubmission.js +0 -17
- package/dist/configs/app/features/restApiDocs.js +0 -12
- package/dist/configs/app/features/rewards.js +0 -17
- package/dist/configs/app/features/rollbar.js +0 -20
- package/dist/configs/app/features/rollup.js +0 -37
- package/dist/configs/app/features/safe.js +0 -23
- package/dist/configs/app/features/saveOnGas.js +0 -13
- package/dist/configs/app/features/sol2uml.js +0 -16
- package/dist/configs/app/features/stats.js +0 -16
- package/dist/configs/app/features/suave.js +0 -11
- package/dist/configs/app/features/txInterpretation.js +0 -16
- package/dist/configs/app/features/userOps.js +0 -11
- package/dist/configs/app/features/validators.js +0 -16
- package/dist/configs/app/features/verifiedTokens.js +0 -15
- package/dist/configs/app/features/web3Wallet.js +0 -24
- package/dist/configs/app/features/xStarScore.js +0 -12
- package/dist/configs/app/index.js +0 -19
- package/dist/configs/app/meta.js +0 -16
- package/dist/configs/app/services.js +0 -9
- package/dist/configs/app/ui/views/address.js +0 -36
- package/dist/configs/app/ui/views/block.js +0 -11
- package/dist/configs/app/ui/views/index.js +0 -12
- package/dist/configs/app/ui/views/nft.js +0 -10
- package/dist/configs/app/ui/views/token.js +0 -7
- package/dist/configs/app/ui/views/tx.js +0 -15
- package/dist/configs/app/ui.js +0 -128
- package/dist/configs/app/utils.js +0 -45
- package/dist/hooks/useClipboard.js +0 -27
- package/dist/hooks/useDisclosure.js +0 -17
- package/dist/hooks/useViewportSize.js +0 -17
- package/dist/hooks.d.ts +0 -1
- package/dist/hooks.js +0 -8
- package/dist/icons/arrows/east-mini.svg.js +0 -4
- package/dist/icons/arrows/east.svg.js +0 -4
- package/dist/icons/check.svg.js +0 -4
- package/dist/icons/close.svg.js +0 -4
- package/dist/icons/info_filled.svg.js +0 -4
- package/dist/icons/link_external.svg.js +0 -4
- package/dist/icons/star_filled.svg.js +0 -4
- package/dist/icons/star_outline.svg.js +0 -4
- package/dist/lib/consts.js +0 -10
- package/dist/lib/hooks/useFirstMountState.js +0 -8
- package/dist/lib/hooks/useIsMobile.js +0 -7
- package/dist/lib/hooks/useUpdateEffect.js +0 -12
- package/dist/lib/html-entities.js +0 -5
- package/dist/lib/isBrowser.js +0 -6
- package/dist/lib/regexp.js +0 -4
- package/dist/lib/settings/colorTheme.js +0 -33
- package/dist/lib/stripTrailingSlash.js +0 -4
- package/dist/node_modules/@uidotdev/usehooks/index.js +0 -51
- package/dist/node_modules/bignumber.js/bignumber.js +0 -627
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +0 -30
- package/dist/node_modules/es-toolkit/dist/function/throttle.js +0 -11
- package/dist/node_modules/lodash.throttle/index.js +0 -95
- package/dist/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -17
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/react-icons/lib/iconBase.js +0 -108
- package/dist/node_modules/react-icons/lib/iconContext.js +0 -12
- package/dist/node_modules/react-icons/lu/index.js +0 -12
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/react-scroll/modules/components/Button.js +0 -58
- package/dist/node_modules/react-scroll/modules/components/Element.js +0 -72
- package/dist/node_modules/react-scroll/modules/components/Link.js +0 -49
- package/dist/node_modules/react-scroll/modules/index.js +0 -26
- package/dist/node_modules/react-scroll/modules/mixins/Helpers.js +0 -192
- package/dist/node_modules/react-scroll/modules/mixins/animate-scroll.js +0 -132
- package/dist/node_modules/react-scroll/modules/mixins/cancel-events.js +0 -20
- package/dist/node_modules/react-scroll/modules/mixins/passive-event-listeners.js +0 -27
- package/dist/node_modules/react-scroll/modules/mixins/scroll-element.js +0 -98
- package/dist/node_modules/react-scroll/modules/mixins/scroll-events.js +0 -23
- package/dist/node_modules/react-scroll/modules/mixins/scroll-hash.js +0 -61
- package/dist/node_modules/react-scroll/modules/mixins/scroll-link.js +0 -171
- package/dist/node_modules/react-scroll/modules/mixins/scroll-spy.js +0 -79
- package/dist/node_modules/react-scroll/modules/mixins/scroller.js +0 -62
- package/dist/node_modules/react-scroll/modules/mixins/smooth.js +0 -72
- package/dist/node_modules/react-scroll/modules/mixins/utils.js +0 -55
- package/dist/package/node_modules/react/cjs/react-jsx-runtime.development.js +0 -604
- package/dist/package/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -28
- package/dist/package/node_modules/react/jsx-runtime.js +0 -10
- package/dist/theme/foundations/animations.js +0 -15
- package/dist/theme/foundations/borders.js +0 -12
- package/dist/theme/foundations/breakpoints.js +0 -11
- package/dist/theme/foundations/colors.js +0 -163
- package/dist/theme/foundations/durations.js +0 -12
- package/dist/theme/foundations/semanticTokens.js +0 -474
- package/dist/theme/foundations/shadows.js +0 -16
- package/dist/theme/foundations/typography.js +0 -92
- package/dist/theme/foundations/zIndex.js +0 -24
- package/dist/theme/globalCss.js +0 -51
- package/dist/theme/globals/address-entity.js +0 -34
- package/dist/theme/globals/recaptcha.js +0 -21
- package/dist/theme/globals/scrollbar.js +0 -33
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.ts +0 -1
- package/dist/theme/recipes/accordion.recipe.js +0 -143
- package/dist/theme/recipes/alert.recipe.js +0 -134
- package/dist/theme/recipes/badge.recipe.js +0 -119
- package/dist/theme/recipes/button.recipe.js +0 -272
- package/dist/theme/recipes/checkbox.recipe.js +0 -53
- package/dist/theme/recipes/checkmark.recipe.js +0 -73
- package/dist/theme/recipes/close-button.recipe.js +0 -39
- package/dist/theme/recipes/dialog.recipe.js +0 -210
- package/dist/theme/recipes/drawer.recipe.js +0 -168
- package/dist/theme/recipes/field.recipe.js +0 -174
- package/dist/theme/recipes/index.js +0 -69
- package/dist/theme/recipes/input.recipe.js +0 -116
- package/dist/theme/recipes/link.recipe.js +0 -88
- package/dist/theme/recipes/list.recipe.js +0 -65
- package/dist/theme/recipes/menu.recipe.js +0 -104
- package/dist/theme/recipes/pin-input.recipe.js +0 -34
- package/dist/theme/recipes/popover.recipe.js +0 -72
- package/dist/theme/recipes/progress-circle.recipe.js +0 -74
- package/dist/theme/recipes/radio-group.recipe.js +0 -69
- package/dist/theme/recipes/radiomark.recipe.js +0 -87
- package/dist/theme/recipes/rating-group.recipe.js +0 -84
- package/dist/theme/recipes/select.recipe.js +0 -275
- package/dist/theme/recipes/skeleton.recipe.js +0 -54
- package/dist/theme/recipes/spinner.recipe.js +0 -33
- package/dist/theme/recipes/stat.recipe.js +0 -101
- package/dist/theme/recipes/switch.recipe.js +0 -125
- package/dist/theme/recipes/table.recipe.js +0 -83
- package/dist/theme/recipes/tabs.recipe.js +0 -216
- package/dist/theme/recipes/tag.recipe.js +0 -157
- package/dist/theme/recipes/textarea.recipe.js +0 -86
- package/dist/theme/recipes/toast.recipe.js +0 -98
- package/dist/theme/recipes/tooltip.recipe.js +0 -87
- package/dist/theme/theme.js +0 -40
- package/dist/theme/utils/entries.js +0 -11
- package/dist/theme.d.ts +0 -2
- package/dist/theme.js +0 -4
- package/dist/types/client/adProviders.js +0 -12
- package/dist/types/client/contract.js +0 -13
- package/dist/types/client/gasTracker.js +0 -7
- package/dist/types/client/navigation.js +0 -4
- package/dist/types/client/rollup.js +0 -11
- package/dist/types/client/txInterpretation.js +0 -8
- package/dist/types/client/validators.js +0 -8
- package/dist/types/client/wallets.js +0 -8
- package/dist/types/homepage.js +0 -15
- package/dist/types/views/address.js +0 -14
- package/dist/types/views/block.js +0 -12
- package/dist/types/views/tx.js +0 -16
- package/dist/ui/shared/forms/validators/url.js +0 -12
- package/dist/utils/getComponentDisplayName.js +0 -7
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils.d.ts +0 -2
- 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
|
-
};
|
package/dist/theme/theme.js
DELETED
|
@@ -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
|
-
};
|
package/dist/theme.d.ts
DELETED
package/dist/theme.js
DELETED