@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
|
@@ -13,7 +13,6 @@ export const recipe = defineSlotRecipe({
|
|
|
13
13
|
focusVisibleRing: 'outside',
|
|
14
14
|
_loading: {
|
|
15
15
|
borderRadius: 'sm',
|
|
16
|
-
bgColor: 'unset',
|
|
17
16
|
},
|
|
18
17
|
},
|
|
19
18
|
label: {
|
|
@@ -100,9 +99,6 @@ export const recipe = defineSlotRecipe({
|
|
|
100
99
|
root: {
|
|
101
100
|
bgColor: 'tag.root.subtle.bg',
|
|
102
101
|
color: 'tag.root.subtle.fg',
|
|
103
|
-
'&:not([data-loading], [aria-busy=true])': {
|
|
104
|
-
bgColor: 'tag.root.subtle.bg',
|
|
105
|
-
},
|
|
106
102
|
},
|
|
107
103
|
},
|
|
108
104
|
clickable: {
|
|
@@ -110,9 +106,6 @@ export const recipe = defineSlotRecipe({
|
|
|
110
106
|
cursor: 'pointer',
|
|
111
107
|
bgColor: 'tag.root.clickable.bg',
|
|
112
108
|
color: 'tag.root.clickable.fg',
|
|
113
|
-
'&:not([data-loading], [aria-busy=true])': {
|
|
114
|
-
bgColor: 'tag.root.clickable.bg',
|
|
115
|
-
},
|
|
116
109
|
_hover: {
|
|
117
110
|
opacity: 0.76,
|
|
118
111
|
},
|
|
@@ -121,9 +114,6 @@ export const recipe = defineSlotRecipe({
|
|
|
121
114
|
filter: {
|
|
122
115
|
root: {
|
|
123
116
|
bgColor: 'tag.root.filter.bg',
|
|
124
|
-
'&:not([data-loading], [aria-busy=true])': {
|
|
125
|
-
bgColor: 'tag.root.filter.bg',
|
|
126
|
-
},
|
|
127
117
|
},
|
|
128
118
|
},
|
|
129
119
|
select: {
|
|
@@ -131,9 +121,6 @@ export const recipe = defineSlotRecipe({
|
|
|
131
121
|
cursor: 'pointer',
|
|
132
122
|
bgColor: 'tag.root.select.bg',
|
|
133
123
|
color: 'tag.root.select.fg',
|
|
134
|
-
'&:not([data-loading], [aria-busy=true])': {
|
|
135
|
-
bgColor: 'tag.root.select.bg',
|
|
136
|
-
},
|
|
137
124
|
_hover: {
|
|
138
125
|
color: 'blue.400',
|
|
139
126
|
opacity: 0.76,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const recipe: import('@chakra-ui/react').SlotRecipeDefinition<"title" | "
|
|
1
|
+
export declare const recipe: import('@chakra-ui/react').SlotRecipeDefinition<"title" | "root" | "description" | "indicator" | "closeTrigger" | "actionTrigger", import('@chakra-ui/react').SlotRecipeVariantRecord<"title" | "root" | "description" | "indicator" | "closeTrigger" | "actionTrigger">>;
|
package/package.json
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockscout/ui-toolkit",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
5
8
|
"exports": {
|
|
6
|
-
"
|
|
7
|
-
"types": "./dist/
|
|
8
|
-
"import": "./dist/
|
|
9
|
-
},
|
|
10
|
-
"./chakra/*": {
|
|
11
|
-
"types": "./dist/chakra/*.d.ts",
|
|
12
|
-
"import": "./dist/chakra/*.js"
|
|
13
|
-
},
|
|
14
|
-
"./theme": {
|
|
15
|
-
"types": "./dist/theme/index.d.ts",
|
|
16
|
-
"import": "./dist/theme/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./hooks/*": {
|
|
19
|
-
"types": "./dist/hooks/*.d.ts",
|
|
20
|
-
"import": "./dist/hooks/*.js"
|
|
21
|
-
},
|
|
22
|
-
"./utils/*": {
|
|
23
|
-
"types": "./dist/utils/*.d.ts",
|
|
24
|
-
"import": "./dist/utils/*.js"
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
25
12
|
}
|
|
26
13
|
},
|
|
27
14
|
"files": [
|
|
@@ -30,16 +17,15 @@
|
|
|
30
17
|
"scripts": {
|
|
31
18
|
"build": "vite build",
|
|
32
19
|
"dev": "vite",
|
|
33
|
-
"typecheck": "tsc --noEmit"
|
|
34
|
-
"prepublishOnly": "npm run build"
|
|
20
|
+
"typecheck": "tsc --noEmit"
|
|
35
21
|
},
|
|
36
22
|
"peerDependencies": {
|
|
37
|
-
"@chakra-ui/react": "3.15.0",
|
|
38
|
-
"@emotion/react": "11.14.0",
|
|
39
|
-
"react": "18.3.1",
|
|
40
|
-
"react-dom": "18.3.1",
|
|
41
|
-
"next": "15.2.3",
|
|
42
|
-
"next-themes": "0.4.4"
|
|
23
|
+
"@chakra-ui/react": ">=3.15.0",
|
|
24
|
+
"@emotion/react": ">=11.14.0",
|
|
25
|
+
"react": ">=18.3.1",
|
|
26
|
+
"react-dom": ">=18.3.1",
|
|
27
|
+
"next": ">=15.2.3",
|
|
28
|
+
"next-themes": ">=0.4.4"
|
|
43
29
|
},
|
|
44
30
|
"devDependencies": {
|
|
45
31
|
"@types/node": "20.16.7",
|
package/dist/_virtual/Button.js
DELETED
package/dist/_virtual/Element.js
DELETED
package/dist/_virtual/Link.js
DELETED
package/dist/_virtual/index.js
DELETED
package/dist/_virtual/index2.js
DELETED
package/dist/_virtual/index3.js
DELETED
package/dist/_virtual/index4.js
DELETED
package/dist/_virtual/smooth.js
DELETED
package/dist/_virtual/utils.js
DELETED
package/dist/chakra/accordion.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Accordion as o, Icon as f } from "@chakra-ui/react";
|
|
3
|
-
import * as d from "react";
|
|
4
|
-
import u from "../icons/arrows/east-mini.svg.js";
|
|
5
|
-
const j = d.forwardRef(function(r, e) {
|
|
6
|
-
const { children: l, indicatorPlacement: m, variant: i, noIndicator: a, ...p } = r, c = i === "faq" ? "start" : m ?? "end", s = i === "faq" ? /* @__PURE__ */ t.jsx(
|
|
7
|
-
o.ItemIndicator,
|
|
8
|
-
{
|
|
9
|
-
asChild: !0,
|
|
10
|
-
rotate: "0deg",
|
|
11
|
-
position: "relative",
|
|
12
|
-
_before: {
|
|
13
|
-
content: '""',
|
|
14
|
-
position: "absolute",
|
|
15
|
-
display: "block",
|
|
16
|
-
bgColor: "{currentColor}",
|
|
17
|
-
w: "100%",
|
|
18
|
-
h: "2px",
|
|
19
|
-
borderRadius: "2px",
|
|
20
|
-
left: "0",
|
|
21
|
-
top: "50%",
|
|
22
|
-
transform: "translateY(-50%)"
|
|
23
|
-
},
|
|
24
|
-
_after: {
|
|
25
|
-
content: '""',
|
|
26
|
-
position: "absolute",
|
|
27
|
-
display: "block",
|
|
28
|
-
bgColor: "{currentColor}",
|
|
29
|
-
w: "2px",
|
|
30
|
-
h: "100%",
|
|
31
|
-
borderRadius: "2px",
|
|
32
|
-
left: "50%",
|
|
33
|
-
top: "0",
|
|
34
|
-
transform: "translateX(-50%)",
|
|
35
|
-
transition: "transform 0.2s ease-in-out"
|
|
36
|
-
},
|
|
37
|
-
_open: {
|
|
38
|
-
_after: {
|
|
39
|
-
transform: "translateX(-50%) rotate(90deg)"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
children: /* @__PURE__ */ t.jsx("div", {})
|
|
43
|
-
}
|
|
44
|
-
) : /* @__PURE__ */ t.jsx(o.ItemIndicator, { rotate: { base: "180deg", _open: "270deg" }, display: "flex", children: /* @__PURE__ */ t.jsx(f, { children: /* @__PURE__ */ t.jsx(u, {}) }) });
|
|
45
|
-
return /* @__PURE__ */ t.jsxs(o.ItemTrigger, { className: "group", ...p, ref: e, children: [
|
|
46
|
-
c === "start" && !a && s,
|
|
47
|
-
l,
|
|
48
|
-
c === "end" && !a && s
|
|
49
|
-
] });
|
|
50
|
-
}), b = d.forwardRef(function(r, e) {
|
|
51
|
-
return /* @__PURE__ */ t.jsx(o.ItemContent, { children: /* @__PURE__ */ t.jsx(o.ItemBody, { ...r, ref: e }) });
|
|
52
|
-
}), h = (n) => {
|
|
53
|
-
const { multiple: r = !0, ...e } = n;
|
|
54
|
-
return /* @__PURE__ */ t.jsx(o.Root, { multiple: r, ...e });
|
|
55
|
-
}, A = o.Item;
|
|
56
|
-
export {
|
|
57
|
-
A as AccordionItem,
|
|
58
|
-
b as AccordionItemContent,
|
|
59
|
-
j as AccordionItemTrigger,
|
|
60
|
-
h as AccordionRoot
|
|
61
|
-
};
|
package/dist/chakra/alert.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Alert as t, Icon as E } from "@chakra-ui/react";
|
|
3
|
-
import * as o from "react";
|
|
4
|
-
import R from "../icons/info_filled.svg.js";
|
|
5
|
-
import { CloseButton as k } from "./close-button.js";
|
|
6
|
-
import { Skeleton as v } from "./skeleton.js";
|
|
7
|
-
const y = o.forwardRef(
|
|
8
|
-
function(a, d) {
|
|
9
|
-
const {
|
|
10
|
-
title: n,
|
|
11
|
-
children: l,
|
|
12
|
-
icon: s,
|
|
13
|
-
closable: i,
|
|
14
|
-
onClose: r,
|
|
15
|
-
startElement: c,
|
|
16
|
-
endElement: f,
|
|
17
|
-
loading: m,
|
|
18
|
-
showIcon: p = !1,
|
|
19
|
-
descriptionProps: x,
|
|
20
|
-
...u
|
|
21
|
-
} = a, [j, h] = o.useState(!0), I = /* @__PURE__ */ e.jsx(E, { children: /* @__PURE__ */ e.jsx(R, {}) }), C = c !== void 0 ? c : !p && s === void 0 ? null : /* @__PURE__ */ e.jsx(t.Indicator, { children: s || I }), A = o.useCallback(() => {
|
|
22
|
-
h(!1), r == null || r();
|
|
23
|
-
}, [r]);
|
|
24
|
-
return i && !j ? null : /* @__PURE__ */ e.jsx(v, { loading: m, asChild: !0, children: /* @__PURE__ */ e.jsxs(t.Root, { ref: d, ...u, children: [
|
|
25
|
-
C,
|
|
26
|
-
l ? /* @__PURE__ */ e.jsxs(t.Content, { children: [
|
|
27
|
-
n && /* @__PURE__ */ e.jsx(t.Title, { children: n }),
|
|
28
|
-
/* @__PURE__ */ e.jsx(t.Description, { display: "inline-flex", flexWrap: "wrap", ...x, children: l })
|
|
29
|
-
] }) : /* @__PURE__ */ e.jsx(t.Title, { flex: "1", children: n }),
|
|
30
|
-
f,
|
|
31
|
-
i && /* @__PURE__ */ e.jsx(
|
|
32
|
-
k,
|
|
33
|
-
{
|
|
34
|
-
pos: "relative",
|
|
35
|
-
m: 0.5,
|
|
36
|
-
alignSelf: "flex-start",
|
|
37
|
-
onClick: A
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
] }) });
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
export {
|
|
44
|
-
y as Alert
|
|
45
|
-
};
|
package/dist/chakra/avatar.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Avatar as l, Group as h } from "@chakra-ui/react";
|
|
3
|
-
import * as i from "react";
|
|
4
|
-
const j = i.forwardRef(
|
|
5
|
-
function(r, t) {
|
|
6
|
-
const { name: a, src: e, srcSet: s, loading: o, icon: u, fallback: d, children: f, ...m } = r;
|
|
7
|
-
return /* @__PURE__ */ n.jsxs(l.Root, { ref: t, ...m, children: [
|
|
8
|
-
/* @__PURE__ */ n.jsx(p, { name: a, icon: u, children: d }),
|
|
9
|
-
/* @__PURE__ */ n.jsx(l.Image, { src: e, srcSet: s, loading: o }),
|
|
10
|
-
f
|
|
11
|
-
] });
|
|
12
|
-
}
|
|
13
|
-
), p = i.forwardRef(
|
|
14
|
-
function(r, t) {
|
|
15
|
-
const { name: a, icon: e, children: s, ...o } = r;
|
|
16
|
-
return /* @__PURE__ */ n.jsxs(l.Fallback, { ref: t, ...o, children: [
|
|
17
|
-
s,
|
|
18
|
-
a != null && s == null && /* @__PURE__ */ n.jsx(n.Fragment, { children: v(a) }),
|
|
19
|
-
a == null && s == null && /* @__PURE__ */ n.jsx(l.Icon, { asChild: !!e, children: e })
|
|
20
|
-
] });
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
function v(c) {
|
|
24
|
-
const r = c.trim().split(" "), t = r[0] != null ? r[0] : "", a = r.length > 1 ? r[r.length - 1] : "";
|
|
25
|
-
return t && a ? `${t.charAt(0)}${a.charAt(0)}` : t.charAt(0);
|
|
26
|
-
}
|
|
27
|
-
const g = i.forwardRef(
|
|
28
|
-
function(r, t) {
|
|
29
|
-
const { size: a, variant: e, borderless: s, ...o } = r;
|
|
30
|
-
return /* @__PURE__ */ n.jsx(l.PropsProvider, { value: { size: a, variant: e, borderless: s }, children: /* @__PURE__ */ n.jsx(h, { gap: "0", spaceX: "-3", ref: t, ...o }) });
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
export {
|
|
34
|
-
j as Avatar,
|
|
35
|
-
g as AvatarGroup
|
|
36
|
-
};
|
package/dist/chakra/badge.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { chakra as f, Badge as p } from "@chakra-ui/react";
|
|
3
|
-
import h from "react";
|
|
4
|
-
import x from "../components/TruncatedTextTooltip.js";
|
|
5
|
-
import { Skeleton as u } from "./skeleton.js";
|
|
6
|
-
const T = h.forwardRef(
|
|
7
|
-
function(n, o) {
|
|
8
|
-
const { loading: l, startElement: i, children: t, asChild: a = !0, truncated: s = !1, endElement: d, ...c } = n, r = /* @__PURE__ */ e.jsx(f.span, { overflow: "hidden", textOverflow: "ellipsis", children: t }), m = s ? /* @__PURE__ */ e.jsx(x, { label: t, children: r }) : r;
|
|
9
|
-
return /* @__PURE__ */ e.jsx(u, { loading: l, asChild: a, ref: o, children: /* @__PURE__ */ e.jsxs(p, { display: "inline-flex", alignItems: "center", whiteSpace: "nowrap", ...c, children: [
|
|
10
|
-
i,
|
|
11
|
-
m,
|
|
12
|
-
d
|
|
13
|
-
] }) });
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
export {
|
|
17
|
-
T as Badge
|
|
18
|
-
};
|
package/dist/chakra/button.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Button as k, ButtonGroup as j, AbsoluteCenter as y, Spinner as x, Span as G } from "@chakra-ui/react";
|
|
3
|
-
import * as r from "react";
|
|
4
|
-
import { Skeleton as B } from "./skeleton.js";
|
|
5
|
-
const A = r.forwardRef(
|
|
6
|
-
function(a, i) {
|
|
7
|
-
const { loading: t, disabled: o, loadingText: s, children: d, expanded: u, selected: c, highlighted: p, loadingSkeleton: l = !1, ...h } = a, f = t && !s ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
8
|
-
/* @__PURE__ */ e.jsx(y, { display: "inline-flex", children: /* @__PURE__ */ e.jsx(x, { size: "inherit", color: "inherit" }) }),
|
|
9
|
-
/* @__PURE__ */ e.jsx(G, { opacity: 0, children: d })
|
|
10
|
-
] }) : t && s ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
11
|
-
/* @__PURE__ */ e.jsx(x, { size: "inherit", color: "inherit" }),
|
|
12
|
-
s
|
|
13
|
-
] }) : d;
|
|
14
|
-
return /* @__PURE__ */ e.jsx(B, { loading: l, asChild: !0, ref: i, children: /* @__PURE__ */ e.jsx(
|
|
15
|
-
k,
|
|
16
|
-
{
|
|
17
|
-
...u ? { "data-expanded": !0 } : {},
|
|
18
|
-
...c ? { "data-selected": !0 } : {},
|
|
19
|
-
...p ? { "data-highlighted": !0 } : {},
|
|
20
|
-
...t ? { "data-loading": !0 } : {},
|
|
21
|
-
...l ? { "data-loading-skeleton": !0 } : {},
|
|
22
|
-
disabled: !l && (t || o),
|
|
23
|
-
...h,
|
|
24
|
-
children: f
|
|
25
|
-
}
|
|
26
|
-
) });
|
|
27
|
-
}
|
|
28
|
-
), T = r.forwardRef(
|
|
29
|
-
function(a, i) {
|
|
30
|
-
const { ...t } = a;
|
|
31
|
-
return /* @__PURE__ */ e.jsx(j, { ref: i, ...t });
|
|
32
|
-
}
|
|
33
|
-
), V = r.forwardRef(
|
|
34
|
-
function(a, i) {
|
|
35
|
-
const { children: t, onChange: o, variant: s = "segmented", defaultValue: d, loading: u = !1, equalWidth: c = !1, ...p } = a, l = r.useMemo(() => {
|
|
36
|
-
const n = Array.isArray(t) ? t[0] : void 0;
|
|
37
|
-
return typeof (n == null ? void 0 : n.props.value) == "string" ? n.props.value : void 0;
|
|
38
|
-
}, [t]), [h, f] = r.useState(d ?? l), v = r.useCallback((n) => {
|
|
39
|
-
const m = n.currentTarget.value;
|
|
40
|
-
f(m), o == null || o(m);
|
|
41
|
-
}, [o]), C = r.Children.map(t, (n) => r.cloneElement(n, {
|
|
42
|
-
onClick: v,
|
|
43
|
-
selected: h === n.props.value,
|
|
44
|
-
variant: s
|
|
45
|
-
})), R = r.Children.count(t);
|
|
46
|
-
return /* @__PURE__ */ e.jsx(B, { loading: u, children: /* @__PURE__ */ e.jsx(
|
|
47
|
-
j,
|
|
48
|
-
{
|
|
49
|
-
ref: i,
|
|
50
|
-
gap: 0,
|
|
51
|
-
...c ? {
|
|
52
|
-
display: "grid",
|
|
53
|
-
gridTemplateColumns: `repeat(${R}, 1fr)`
|
|
54
|
-
} : {},
|
|
55
|
-
...p,
|
|
56
|
-
children: C
|
|
57
|
-
}
|
|
58
|
-
) });
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
export {
|
|
62
|
-
A as Button,
|
|
63
|
-
T as ButtonGroup,
|
|
64
|
-
V as ButtonGroupRadio
|
|
65
|
-
};
|
package/dist/chakra/checkbox.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Checkbox as e, CheckboxGroup as p } from "@chakra-ui/react";
|
|
3
|
-
import * as s from "react";
|
|
4
|
-
const h = s.forwardRef(
|
|
5
|
-
function(t, c) {
|
|
6
|
-
const { icon: n, children: o, inputProps: i, rootRef: a, ...l } = t;
|
|
7
|
-
return /* @__PURE__ */ r.jsxs(e.Root, { ref: a, ...l, children: [
|
|
8
|
-
/* @__PURE__ */ r.jsx(e.HiddenInput, { ref: c, ...i }),
|
|
9
|
-
/* @__PURE__ */ r.jsx(e.Control, { children: n || /* @__PURE__ */ r.jsx(e.Indicator, {}) }),
|
|
10
|
-
o != null && /* @__PURE__ */ r.jsx(e.Label, { children: o })
|
|
11
|
-
] });
|
|
12
|
-
}
|
|
13
|
-
), d = s.forwardRef(
|
|
14
|
-
function(t, c) {
|
|
15
|
-
const { children: n, orientation: o = "vertical", ...i } = t;
|
|
16
|
-
return /* @__PURE__ */ r.jsx(
|
|
17
|
-
p,
|
|
18
|
-
{
|
|
19
|
-
ref: c,
|
|
20
|
-
orientation: o,
|
|
21
|
-
display: "flex",
|
|
22
|
-
flexDirection: o === "vertical" ? "column" : "row",
|
|
23
|
-
gap: o === "vertical" ? 3 : 8,
|
|
24
|
-
...i,
|
|
25
|
-
children: n
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
export {
|
|
31
|
-
h as Checkbox,
|
|
32
|
-
d as CheckboxGroup
|
|
33
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useRecipe as n, Icon as p } from "@chakra-ui/react";
|
|
3
|
-
import * as m from "react";
|
|
4
|
-
import l from "../icons/close.svg.js";
|
|
5
|
-
import { recipe as a } from "../theme/recipes/close-button.recipe.js";
|
|
6
|
-
import { IconButton as f } from "./icon-button.js";
|
|
7
|
-
const h = m.forwardRef(function(r, t) {
|
|
8
|
-
const e = n({ recipe: a }), [s, i] = e.splitVariantProps(r), c = e(s);
|
|
9
|
-
return /* @__PURE__ */ o.jsx(f, { "aria-label": "Close", ref: t, css: c, ...i, children: r.children ?? /* @__PURE__ */ o.jsx(p, { children: /* @__PURE__ */ o.jsx(l, {}) }) });
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
h as CloseButton
|
|
13
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Flex as S } from "@chakra-ui/react";
|
|
3
|
-
import a from "react";
|
|
4
|
-
import { m as x } from "../_virtual/index.js";
|
|
5
|
-
import g from "../lib/hooks/useUpdateEffect.js";
|
|
6
|
-
import { Link as f } from "./link.js";
|
|
7
|
-
const u = {
|
|
8
|
-
duration: 500,
|
|
9
|
-
smooth: !0
|
|
10
|
-
}, D = "CollapsibleDetails", I = (c) => {
|
|
11
|
-
const { children: p, id: t = D, onClick: o, isExpanded: l = !1, text: e, loading: d, noScroll: s, ...m } = c, [i, r] = a.useState(l), h = a.useCallback((E) => {
|
|
12
|
-
r((L) => !L), s || x.scroller.scrollTo(t, u), o == null || o(E);
|
|
13
|
-
}, [t, s, o]);
|
|
14
|
-
g(() => {
|
|
15
|
-
r(l), l && !s && x.scroller.scrollTo(t, u);
|
|
16
|
-
}, [l, t, s]);
|
|
17
|
-
const C = i ? (e == null ? void 0 : e[1]) ?? "Hide details" : (e == null ? void 0 : e[0]) ?? "View details";
|
|
18
|
-
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
19
|
-
/* @__PURE__ */ n.jsx(
|
|
20
|
-
f,
|
|
21
|
-
{
|
|
22
|
-
textStyle: "sm",
|
|
23
|
-
textDecorationLine: "underline",
|
|
24
|
-
textDecorationStyle: "dashed",
|
|
25
|
-
w: "fit-content",
|
|
26
|
-
onClick: h,
|
|
27
|
-
loading: d,
|
|
28
|
-
...m,
|
|
29
|
-
children: /* @__PURE__ */ n.jsx(x.Element, { name: t, children: C })
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
i && p
|
|
33
|
-
] });
|
|
34
|
-
}, y = (c) => {
|
|
35
|
-
const { items: t, renderItem: o, triggerProps: l, cutLength: e = 3, ...d } = c, [s, m] = a.useState(!1), i = a.useCallback(() => {
|
|
36
|
-
m((r) => !r);
|
|
37
|
-
}, []);
|
|
38
|
-
return /* @__PURE__ */ n.jsxs(S, { flexDir: "column", w: "100%", ...d, children: [
|
|
39
|
-
t.slice(0, s ? void 0 : e).map(o),
|
|
40
|
-
t.length > e && /* @__PURE__ */ n.jsx(
|
|
41
|
-
f,
|
|
42
|
-
{
|
|
43
|
-
textStyle: "sm",
|
|
44
|
-
textDecorationLine: "underline",
|
|
45
|
-
textDecorationStyle: "dashed",
|
|
46
|
-
w: "fit-content",
|
|
47
|
-
minW: "auto",
|
|
48
|
-
onClick: i,
|
|
49
|
-
...l,
|
|
50
|
-
children: s ? "Hide" : "Show all"
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
] });
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
I as CollapsibleDetails,
|
|
57
|
-
y as CollapsibleList
|
|
58
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { ThemeProvider as l, useTheme as s } from "next-themes";
|
|
3
|
-
import n from "../configs/app/index.js";
|
|
4
|
-
function a(e) {
|
|
5
|
-
var o;
|
|
6
|
-
return /* @__PURE__ */ t.jsx(
|
|
7
|
-
l,
|
|
8
|
-
{
|
|
9
|
-
attribute: "class",
|
|
10
|
-
scriptProps: { "data-cfasync": "false" },
|
|
11
|
-
defaultTheme: (o = n.UI.colorTheme.default) == null ? void 0 : o.colorMode,
|
|
12
|
-
disableTransitionOnChange: !0,
|
|
13
|
-
...e
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
function i() {
|
|
18
|
-
const { resolvedTheme: e, setTheme: o } = s();
|
|
19
|
-
return {
|
|
20
|
-
colorMode: e,
|
|
21
|
-
setColorMode: o,
|
|
22
|
-
toggleColorMode: () => {
|
|
23
|
-
o(e === "light" ? "dark" : "light");
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function m(e, o) {
|
|
28
|
-
const { colorMode: r } = i();
|
|
29
|
-
return r === "light" ? e : o;
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
a as ColorModeProvider,
|
|
33
|
-
i as useColorMode,
|
|
34
|
-
m as useColorModeValue
|
|
35
|
-
};
|