@v-miniapp/ui-react 1.0.60 → 1.0.71
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/dist/_virtual/_cloneBuffer.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/_nodeUtil.js +4 -0
- package/dist/_virtual/cloneDeepWith.js +7 -0
- package/dist/_virtual/isBuffer.js +4 -0
- package/dist/_virtual/isObject.js +7 -0
- package/dist/_virtual/isSameOrAfter.js +7 -0
- package/dist/_virtual/isSameOrAfter2.js +4 -0
- package/dist/_virtual/isSameOrBefore.js +7 -0
- package/dist/_virtual/isSameOrBefore2.js +4 -0
- package/dist/_virtual/merge.js +7 -0
- package/dist/_virtual/omit.js +7 -0
- package/dist/_virtual/pick.js +7 -0
- package/dist/_virtual/throttle.js +7 -0
- package/dist/assets/icons/loader.svg.js +5 -0
- package/dist/assets/icons/placeholder.svg.js +5 -0
- package/dist/assets/images/broken-image.svg.js +5 -0
- package/dist/assets/images/default-error.png.js +4 -0
- package/dist/assets/images/image.svg.js +5 -0
- package/dist/components/ai-app/ai-app.d.ts +7 -0
- package/dist/components/ai-app/ai-app.js +20 -0
- package/dist/components/ai-app/index.d.ts +1 -0
- package/dist/components/alert/alert.js +76 -0
- package/dist/components/app/app.d.ts +1 -6
- package/dist/components/app/app.js +78 -0
- package/dist/components/app/app.store.d.ts +6 -0
- package/dist/components/app/app.store.js +8 -0
- package/dist/components/app/bottom-tab-bar-layout/hook.js +36 -0
- package/dist/components/app/bottom-tab-bar-layout/index.js +38 -0
- package/dist/components/app/bottom-tab-bar-layout/store.js +54 -0
- package/dist/components/app/data-theme.js +29 -0
- package/dist/components/app/navigation-bar-layout/hook.js +39 -0
- package/dist/components/app/navigation-bar-layout/index.js +46 -0
- package/dist/components/app/navigation-bar-layout/store.js +60 -0
- package/dist/components/app/page-layout/hook.js +62 -0
- package/dist/components/app/page-layout/index.js +21 -0
- package/dist/components/app/page-layout/store.js +52 -0
- package/dist/components/avatar/avatar.js +79 -0
- package/dist/components/badge/badge.js +40 -0
- package/dist/components/bottom-tab-bar/bottom-tab-bar.js +90 -0
- package/dist/components/button/button.const.js +7 -0
- package/dist/components/button/button.js +62 -0
- package/dist/components/calendar/calendar-range-sheet.js +66 -0
- package/dist/components/calendar/calendar-single-sheet.js +64 -0
- package/dist/components/calendar/calendar.js +16 -0
- package/dist/components/calendar/default-render.js +16 -0
- package/dist/components/calendar/range-picker.js +301 -0
- package/dist/components/calendar/single-picker.js +186 -0
- package/dist/components/calendar/utils.js +25 -0
- package/dist/components/carousel/carousel.js +47 -0
- package/dist/components/carousel/use-carousel.js +54 -0
- package/dist/components/checkbox/check-icon.js +23 -0
- package/dist/components/checkbox/checkbox.js +131 -0
- package/dist/components/checkbox/indeterminate-icon.js +20 -0
- package/dist/components/chip/chip.js +80 -0
- package/dist/components/date-field/date-field-range.js +153 -0
- package/dist/components/date-field/date-field.js +100 -0
- package/dist/components/date-field/input.js +53 -0
- package/dist/components/date-picker/date-picker-base.js +214 -0
- package/dist/components/date-picker/date-picker-item.js +69 -0
- package/dist/components/date-picker/date-picker-sheet.js +54 -0
- package/dist/components/date-picker/date-picker.constant.js +11 -0
- package/dist/components/date-picker/date-picker.js +76 -0
- package/dist/components/date-picker/date-picker.utils.js +58 -0
- package/dist/components/dialog/dialog.js +115 -0
- package/dist/components/dropdown/dropdown-base.js +22 -0
- package/dist/components/dropdown/dropdown.js +148 -0
- package/dist/components/error/error-boundary.js +28 -0
- package/dist/components/error/error.js +25 -0
- package/dist/components/icon/icon-mapping.js +260 -0
- package/dist/components/icon/icon.js +54 -0
- package/dist/components/image/image.js +70 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-wrapper/input-wrapper.js +153 -0
- package/dist/components/label/label.js +58 -0
- package/dist/components/layout/page-loading.js +39 -0
- package/dist/components/layout/page.js +103 -0
- package/dist/components/list-item/list-item.js +36 -0
- package/dist/components/navigation-bar/navigation-bar.d.ts +1 -4
- package/dist/components/navigation-bar/navigation-bar.js +106 -0
- package/dist/components/number-field/number-field.js +162 -0
- package/dist/components/option-item/option-item.js +56 -0
- package/dist/components/pagination/pagination.js +20 -0
- package/dist/components/pull-to-refresh/pull-to-refresh.js +120 -0
- package/dist/components/radio/radio.js +72 -0
- package/dist/components/rating/rating.js +62 -0
- package/dist/components/rating/star.js +22 -0
- package/dist/components/search-field/search-field.js +40 -0
- package/dist/components/section/section-content.js +10 -0
- package/dist/components/section/section-title.js +32 -0
- package/dist/components/section/section.js +21 -0
- package/dist/components/seo/seo.js +18 -0
- package/dist/components/sheet/sheet-body.js +25 -0
- package/dist/components/sheet/sheet-footer.js +11 -0
- package/dist/components/sheet/sheet-header.js +52 -0
- package/dist/components/sheet/sheet.js +72 -0
- package/dist/components/skeleton/skeleton.js +50 -0
- package/dist/components/switch/switch.js +68 -0
- package/dist/components/tab-bar/tab-bar.js +130 -0
- package/dist/components/tab-bar/tab.js +55 -0
- package/dist/components/text-area/text-area.js +75 -0
- package/dist/components/text-field/text-field.js +63 -0
- package/dist/components/toast/toast-provider.js +45 -0
- package/dist/components/toast/toast.js +66 -0
- package/dist/components/toast/toast.store.js +35 -0
- package/dist/components/tooltip/tooltip.js +43 -0
- package/dist/components/typography/typography.js +28 -0
- package/dist/components/uploader/helper.js +21 -0
- package/dist/components/uploader/uploader.js +93 -0
- package/dist/components/visibility-sensor/visibility-sensor.js +17 -0
- package/dist/docs/ui-react/icon-list-grid.d.ts +1 -0
- package/dist/external/index.js +13357 -13497
- package/dist/external/styles.css +1 -1
- package/dist/hooks/use-custom-icon-event.js +16 -0
- package/dist/hooks/use-settings-changed.js +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +139 -7488
- package/dist/locales/en.json.js +30 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/index.js +10 -0
- package/dist/locales/vi.json.js +30 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrBefore.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_DataView.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Hash.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_ListCache.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Map.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_MapCache.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Promise.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Set.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Stack.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_WeakMap.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_apply.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayFilter.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayLikeKeys.js +26 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayMap.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayPush.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assignMergeValue.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assignValue.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assocIndexOf.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssign.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssignIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssignValue.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseClone.js +70 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseCreate.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseFlatten.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseFor.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGet.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetAllKeys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseHasIn.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsArguments.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsMap.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsNative.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsTypedArray.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseKeys.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseKeysIn.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseMerge.js +27 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseMergeDeep.js +38 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_basePick.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_basePickBy.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseRest.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSet.js +31 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSetToString.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSlice.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTimes.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseToString.js +24 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseUnary.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseUnset.js +34 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_castPath.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneArrayBuffer.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneBuffer.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneDataView.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneRegExp.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneSymbol.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneTypedArray.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copyArray.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copyObject.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copySymbols.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copySymbolsIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_createAssigner.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_createBaseFor.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_customOmitClone.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_defineProperty.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_flatRest.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getAllKeys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getAllKeysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getMapData.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getNative.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getPrototype.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getSymbols.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getSymbolsIn.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getTag.js +33 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getValue.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hasPath.js +26 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashClear.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashDelete.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashGet.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashHas.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneArray.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneByTag.js +48 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneObject.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isFlattenable.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isIndex.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isIterateeCall.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isKey.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isKeyable.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isMasked.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isPrototype.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheClear.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheDelete.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheGet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheHas.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheClear.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheDelete.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheGet.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheHas.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_memoizeCapped.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeKeysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nodeUtil.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_overArg.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_overRest.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_parent.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_safeGet.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setToString.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_shortOut.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackClear.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackDelete.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackGet.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackHas.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackSet.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stringToPath.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_toKey.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_toSource.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/cloneDeepWith.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/constant.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js +60 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/eq.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/flatten.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/hasIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/identity.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArguments.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArray.js +10 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArrayLike.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArrayLikeObject.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isBuffer.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isFunction.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isLength.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isMap.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isPlainObject.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSet.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isTypedArray.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/keys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/keysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/last.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/memoize.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/merge.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/omit.js +29 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/pick.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/stubArray.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/stubFalse.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/throttle.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js +28 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toPlainObject.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toString.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/utils/bound.js +7 -0
- package/dist/utils/can-use-dom.js +4 -0
- package/dist/utils/classname.js +6 -0
- package/dist/utils/colors.gen.js +371 -0
- package/dist/utils/colors.js +8 -0
- package/dist/utils/convert-px.js +14 -0
- package/dist/utils/date.d.ts +2 -1
- package/dist/utils/date.js +9 -0
- package/dist/utils/deep-clone.js +10 -0
- package/dist/utils/dev-log.js +7 -0
- package/dist/utils/get-scroll-parent.js +20 -0
- package/dist/utils/is-dev.js +4 -0
- package/dist/utils/rubberband.js +11 -0
- package/dist/utils/sleep.js +4 -0
- package/dist/utils/supports-passive.js +15 -0
- package/dist/utils/to-css-length.js +6 -0
- package/dist/vsf/choose-image.js +14 -0
- package/dist-storybook/assets/AIApp-C4keJkW8.js +37 -0
- package/dist-storybook/assets/{App-CJxOxRXd.js → App-BkiRuUOF.js} +1 -1
- package/dist-storybook/assets/Color-6BZIO3FS-EdXZe4iv.js +1 -0
- package/dist-storybook/assets/{DEEPLINK-B5vUshJ4.js → DEEPLINK-CvpIbZVm.js} +1 -1
- package/dist-storybook/assets/DocsRenderer-LL677BLK-Ch7ovClC.js +2 -0
- package/dist-storybook/assets/{EVENTS-DIl-sE2t.js → EVENTS-Bnl2ehlm.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-CR4dG_o7.js → GETTING_STARTED-BYcN9hg3.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-CtonLhRi.js → GETTING_STARTED-BmHWFQQE.js} +1 -1
- package/dist-storybook/assets/GETTING_STARTED-C1AOB25Z.js +45 -0
- package/dist-storybook/assets/{GETTING_STARTED-CS2BpDsP.js → GETTING_STARTED-CBY9dL2_.js} +1 -1
- package/dist-storybook/assets/ICON-BaZgXbtw.js +6 -0
- package/dist-storybook/assets/ICON-CT1pTB1A.js +6 -0
- package/dist-storybook/assets/{INFINITE_SCROLL-BerukJIr.js → INFINITE_SCROLL-BJeWhgO7.js} +1 -1
- package/dist-storybook/assets/{LocalesProvider-CehS9yzW.js → LocalesProvider-CQEwtoq3.js} +1 -1
- package/dist-storybook/assets/{MIGRATE_DARKMODE_TO_THEME-CRf-7Wcz.js → MIGRATE_DARKMODE_TO_THEME-DCxXgvQC.js} +1 -1
- package/dist-storybook/assets/{MIGRATION_GUIDE-CRIHuXpT.js → MIGRATION_GUIDE-BN_V-xNj.js} +1 -1
- package/dist-storybook/assets/OVERVIEW-AI-CLWBzviY.js +35 -0
- package/dist-storybook/assets/{OVERVIEW-DayETux4.js → OVERVIEW-Byly3lQV.js} +1 -1
- package/dist-storybook/assets/{Router-CGsO5Wd_.js → Router-CO6rjSXr.js} +1 -1
- package/dist-storybook/assets/{TAILWIND_INTEGRATION-RPvFP-GI.js → TAILWIND_INTEGRATION-CpN4_fSu.js} +1 -1
- package/dist-storybook/assets/{THEME-C-pA_uq_.js → THEME-B9Y39f9D.js} +1 -1
- package/dist-storybook/assets/WithTooltip-65CFNBJE-D6J_7FjK.js +9 -0
- package/dist-storybook/assets/{alert.stories-CFBhdabd.js → alert.stories-CUItfPLn.js} +12 -12
- package/dist-storybook/assets/app.store-BJVKVv1J.js +1 -0
- package/dist-storybook/assets/avatar.stories-8_vV7Bb0.js +136 -0
- package/dist-storybook/assets/{axe-Cj9fkEY9.js → axe-4EaTvypG.js} +13 -13
- package/dist-storybook/assets/badge-Gh2kTOE3.js +1 -0
- package/dist-storybook/assets/{badge.stories-DhVKBE64.js → badge.stories-BXGAtgaV.js} +3 -3
- package/dist-storybook/assets/blocks-CB7UwFa4.js +758 -0
- package/dist-storybook/assets/bottom-tab-bar.stories-OrY-k1sb.js +280 -0
- package/dist-storybook/assets/button-BLW8SOpg.js +1 -0
- package/dist-storybook/assets/{button.stories-DgRH6oVV.js → button.stories--0kpp_af.js} +3 -3
- package/dist-storybook/assets/calendar-ySr-9cXG.js +1 -0
- package/dist-storybook/assets/{calendar.stories-B0K_T9ak.js → calendar.stories-4MQj1nsX.js} +1 -1
- package/dist-storybook/assets/carousel.stories-CMtljvBR.js +253 -0
- package/dist-storybook/assets/checkbox.stories-xYjsVg2X.js +201 -0
- package/dist-storybook/assets/{chip.stories-D0908ZyT.js → chip.stories-DYEfUGq3.js} +12 -12
- package/dist-storybook/assets/classname-Bl5epEs-.js +1 -0
- package/dist-storybook/assets/client-CN8vOzuD.js +9 -0
- package/dist-storybook/assets/{date-C1W0DfQy.js → date-DWIyMGld.js} +1 -1
- package/dist-storybook/assets/date-field.stories-5Tlzdpvr.js +129 -0
- package/dist-storybook/assets/date-picker-DeB43YU4.js +1 -0
- package/dist-storybook/assets/{date-picker.stories-Bahq3f1W.js → date-picker.stories-Shn-MmVG.js} +1 -1
- package/dist-storybook/assets/dialog.stories-DeNKN0oJ.js +212 -0
- package/dist-storybook/assets/dropdown.stories-Bqmu2_KM.js +449 -0
- package/dist-storybook/assets/{embla-carousel-react.esm-Pp2OIUrN.js → embla-carousel-react.esm-DOEAp-w3.js} +1 -1
- package/dist-storybook/assets/{en-Cs9O0XWn.js → en-IjeCvZ5U.js} +1 -1
- package/dist-storybook/assets/formatter-EIJCOSYU-DZLV30KU.js +1 -0
- package/dist-storybook/assets/icon-Cc9W858e.js +1 -0
- package/dist-storybook/assets/icon-list-grid-CSnpdoAW.js +1 -0
- package/dist-storybook/assets/{icon.stories-qg8UAHBM.js → icon.stories-DE484rTd.js} +3 -3
- package/dist-storybook/assets/iframe-BBKyXin_.css +1 -0
- package/dist-storybook/assets/iframe-Crg_lbde.js +1119 -0
- package/dist-storybook/assets/image-CB4oeTy-.js +9 -0
- package/dist-storybook/assets/{image.stories-sQtCaoL2.js → image.stories-BlYIb_Qu.js} +1 -1
- package/dist-storybook/assets/index-B24pfkXD.js +1 -0
- package/dist-storybook/assets/{index-1AHvPexM.js → index-CdnALcTP.js} +1 -1
- package/dist-storybook/assets/{index-DWjPAWoJ.js → index-hDlmuyu2.js} +1 -1
- package/dist-storybook/assets/input-wrapper-Gd3QJKqj.js +1 -0
- package/dist-storybook/assets/label-zfqCJTGJ.js +22 -0
- package/dist-storybook/assets/{label.stories-CCtGPDrS.js → label.stories-C-MVt-cu.js} +3 -3
- package/dist-storybook/assets/matchers-5TDFFDYO-HJu_DfWo.js +14 -0
- package/dist-storybook/assets/navigation-bar.stories-CZ-y3eDE.js +136 -0
- package/dist-storybook/assets/number-field.stories-BA0FySSU.js +167 -0
- package/dist-storybook/assets/omit-CRXr8Lio.js +1 -0
- package/dist-storybook/assets/option-item-DFWc14Up.js +1 -0
- package/dist-storybook/assets/{option-item.stories-ClUj8qVT.js → option-item.stories-DqA-ydWX.js} +3 -3
- package/dist-storybook/assets/pagination-CjgiVNvu.js +1 -0
- package/dist-storybook/assets/{pagination.stories-C9j6mE5z.js → pagination.stories-BsKHvdF4.js} +4 -4
- package/dist-storybook/assets/{radio.stories-D8_YUTw1.js → radio.stories-CBmxZRxo.js} +10 -10
- package/dist-storybook/assets/{rating.stories-BIftLeu2.js → rating.stories-CcdFtcNH.js} +9 -9
- package/dist-storybook/assets/react-18-D2tl8ksm.js +1 -0
- package/dist-storybook/assets/{react-zqqxT5R_.js → react-DO0-owxu.js} +1 -1
- package/dist-storybook/assets/search-field-zl4ROLfn.js +1 -0
- package/dist-storybook/assets/{search-field.stories-D1okdN8e.js → search-field.stories-DoclnxtC.js} +1 -1
- package/dist-storybook/assets/{section.stories-Cq5CY978.js → section.stories-Bqz_QgYp.js} +8 -8
- package/dist-storybook/assets/sheet-body-2dWL2AE5.js +1 -0
- package/dist-storybook/assets/sheet-footer-DuPhbVOb.js +1 -0
- package/dist-storybook/assets/{sheet.stories-DPcC0I5i.js → sheet.stories-CoXnt4LG.js} +4 -4
- package/dist-storybook/assets/skeleton-BVLpHxKT.js +1 -0
- package/dist-storybook/assets/{skeleton.stories-CD3J1XrJ.js → skeleton.stories-B-OfMZId.js} +3 -3
- package/dist-storybook/assets/{store-BmYgrUro.js → store-BwIebEt6.js} +5 -5
- package/dist-storybook/assets/{switch.stories-C5SDbdGL.js → switch.stories-D4PQjgbo.js} +9 -9
- package/dist-storybook/assets/syntaxhighlighter-ED5Y7EFY-BxRQp_WE.js +6 -0
- package/dist-storybook/assets/tab-bar.stories-BrcQMypS.js +164 -0
- package/dist-storybook/assets/{text-area.stories-3Z574UAD.js → text-area.stories-Bpaw2_4A.js} +10 -10
- package/dist-storybook/assets/text-field-CqJG0bIl.js +1 -0
- package/dist-storybook/assets/{text-field.stories-DzjpcKin.js → text-field.stories-PQoP3DbL.js} +1 -1
- package/dist-storybook/assets/toast.stories-DmPy9T3m.js +209 -0
- package/dist-storybook/assets/{tooltip.stories-DEnYdL1d.js → tooltip.stories-Be_kIaDc.js} +8 -8
- package/dist-storybook/assets/typography-CMIMyivt.js +1 -0
- package/dist-storybook/assets/{typography.stories-DWxFgTz3.js → typography.stories-DSt5W_AG.js} +3 -3
- package/dist-storybook/assets/uploader.stories-C5CmeXEk.js +65 -0
- package/dist-storybook/assets/{use-app-pause-CyjeIEPG.js → use-app-pause-_ycnhKwZ.js} +3 -3
- package/dist-storybook/assets/{use-app-resume-DntO6Rkm.js → use-app-resume-CWb2s-wo.js} +1 -1
- package/dist-storybook/assets/{use-bottom-tab-bar-Da7gjw6y.js → use-bottom-tab-bar--DRl-8c4.js} +1 -1
- package/dist-storybook/assets/{use-custom-icon-event-BEYPYrKY.js → use-custom-icon-event-BXcRPkLg.js} +1 -1
- package/dist-storybook/assets/{use-did-hide-Do-KOSzV.js → use-did-hide-LBcrwoUo.js} +1 -1
- package/dist-storybook/assets/{use-did-show-Bv9k7DdG.js → use-did-show-BXLstTgt.js} +1 -1
- package/dist-storybook/assets/{use-histories-Ci1HfRe-.js → use-histories-Cz7ncXaj.js} +1 -1
- package/dist-storybook/assets/{use-history-CkVE1jRy.js → use-history-B_w6SPwr.js} +1 -1
- package/dist-storybook/assets/{use-language-Bg-LzpzQ.js → use-language-D84C9QNT.js} +1 -1
- package/dist-storybook/assets/{use-load-more-eaC8W6Cc.js → use-load-more-Bb9YFkAE.js} +1 -1
- package/dist-storybook/assets/{use-location-BMrQnhPi.js → use-location-DnxJ5FvJ.js} +1 -1
- package/dist-storybook/assets/{use-navigate-BwwmhToy.js → use-navigate-OLqoL3vR.js} +3 -3
- package/dist-storybook/assets/{use-navigation-bar-DzgWeTpM.js → use-navigation-bar-D5BX6S-r.js} +15 -15
- package/dist-storybook/assets/{use-navigation-type-DNvXTqYH.js → use-navigation-type-Cq7T35ur.js} +1 -1
- package/dist-storybook/assets/{use-page-layout-BA2HvjAQ.js → use-page-layout-BrFRWwC6.js} +1 -1
- package/dist-storybook/assets/{use-page-scroll-D_gjlV-S.js → use-page-scroll-BZ8XiPza.js} +1 -1
- package/dist-storybook/assets/{use-pull-to-refresh-SZfswIA6.js → use-pull-to-refresh-BEjtxiFn.js} +1 -1
- package/dist-storybook/assets/{use-settings-changed-D2gdx5rD.js → use-settings-changed-UaQRSWAg.js} +1 -1
- package/dist-storybook/assets/{use-translate-BTC2AQ0k.js → use-translate-BO8E9Sde.js} +1 -1
- package/dist-storybook/iframe.html +58 -40
- package/dist-storybook/index.html +8 -16
- package/dist-storybook/index.json +1 -1
- package/dist-storybook/project.json +1 -1
- package/dist-storybook/sb-addons/a11y-2/manager-bundle.js +55 -3
- package/dist-storybook/sb-addons/docs-1/manager-bundle.js +1 -149
- package/dist-storybook/sb-addons/storybook-build-3/manager-bundle.js +19 -1
- package/dist-storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +93 -436
- package/dist-storybook/sb-manager/globals-runtime.js +73307 -65142
- package/dist-storybook/sb-manager/globals.js +6 -16
- package/dist-storybook/sb-manager/manager-stores.js +23 -0
- package/dist-storybook/sb-manager/runtime.js +17679 -10455
- package/dist-storybook/stories-data.json +91 -27
- package/dist-storybook/vite-inject-mocker-entry.js +2 -2
- package/package.json +5 -5
- package/dist-storybook/assets/Color-AVL7NMMY-DwohVA43.js +0 -1
- package/dist-storybook/assets/DocsRenderer-PQXLIZUC-vNsl3A7z.js +0 -2
- package/dist-storybook/assets/_baseClone-4nOrhHpR.js +0 -1
- package/dist-storybook/assets/alert-D3VdqAYm.js +0 -1
- package/dist-storybook/assets/app-B__CxZQv.js +0 -1
- package/dist-storybook/assets/avatar-BVV1WSnD.js +0 -1
- package/dist-storybook/assets/avatar.stories-D0RA2Mhh.js +0 -136
- package/dist-storybook/assets/badge-DLt8CmDs.js +0 -1
- package/dist-storybook/assets/blocks-D4qvS4eZ.js +0 -1243
- package/dist-storybook/assets/bottom-tab-bar-UaYvPAic.js +0 -115
- package/dist-storybook/assets/bottom-tab-bar.stories--7Qh-68J.js +0 -186
- package/dist-storybook/assets/button-CbLEqALK.js +0 -1
- package/dist-storybook/assets/calendar-C7tiySn0.js +0 -1
- package/dist-storybook/assets/carousel-C1nQGnJZ.js +0 -37
- package/dist-storybook/assets/carousel.stories-C5d6yLzd.js +0 -217
- package/dist-storybook/assets/checkbox-Bs8ghsWP.js +0 -1
- package/dist-storybook/assets/checkbox.stories-CG74gIlt.js +0 -201
- package/dist-storybook/assets/chip-D4_ukvFv.js +0 -1
- package/dist-storybook/assets/date-field-range-DSAQp9qR.js +0 -1
- package/dist-storybook/assets/date-field.stories-Dx6-qeWT.js +0 -129
- package/dist-storybook/assets/date-picker--PiU9sOL.js +0 -1
- package/dist-storybook/assets/dialog-8K5u-kre.js +0 -1
- package/dist-storybook/assets/dialog.stories-BxYc78Eo.js +0 -212
- package/dist-storybook/assets/dropdown-BeoO7m-R.js +0 -247
- package/dist-storybook/assets/dropdown.stories-Bfhg63tZ.js +0 -200
- package/dist-storybook/assets/icon-CgGksgRS.js +0 -1
- package/dist-storybook/assets/iframe-BKfReaAn.css +0 -1
- package/dist-storybook/assets/iframe-C0PGuV5s.js +0 -1071
- package/dist-storybook/assets/image-BdsCB1je.js +0 -9
- package/dist-storybook/assets/index-BLzgbpm2.js +0 -1
- package/dist-storybook/assets/index-SzFZQQjs.js +0 -1
- package/dist-storybook/assets/input-wrapper-DkEl0Eih.js +0 -1
- package/dist-storybook/assets/label-CHVpMhb5.js +0 -27
- package/dist-storybook/assets/matchers-7Z3WT2CE-Dw4MQV_s.js +0 -14
- package/dist-storybook/assets/navigation-bar-TpF0DSXB.js +0 -79
- package/dist-storybook/assets/navigation-bar.stories-CNXAxMYL.js +0 -73
- package/dist-storybook/assets/number-field-CvCF5adO.js +0 -1
- package/dist-storybook/assets/number-field.stories-Dsb_eChm.js +0 -167
- package/dist-storybook/assets/omit-D04qL5V_.js +0 -1
- package/dist-storybook/assets/option-item-Bmby544G.js +0 -1
- package/dist-storybook/assets/pagination-MBP1YLhT.js +0 -1
- package/dist-storybook/assets/proxy-edvPwIiD.js +0 -1
- package/dist-storybook/assets/radio-DRPO7cjx.js +0 -1
- package/dist-storybook/assets/rating-CTv8C1tH.js +0 -1
- package/dist-storybook/assets/react-18-CacBUmwb.js +0 -9
- package/dist-storybook/assets/search-field-CophTGGH.js +0 -1
- package/dist-storybook/assets/section-content-dVOJuOaN.js +0 -1
- package/dist-storybook/assets/sheet-footer-BL2JAvmb.js +0 -1
- package/dist-storybook/assets/skeleton-CmGRbWqE.js +0 -1
- package/dist-storybook/assets/switch-Cc-NvT4X.js +0 -1
- package/dist-storybook/assets/tab-bar-DTyg7tFP.js +0 -31
- package/dist-storybook/assets/tab-bar.stories-zKrihgXo.js +0 -136
- package/dist-storybook/assets/text-area-WRb8Dkvn.js +0 -1
- package/dist-storybook/assets/text-field-DrODy0yz.js +0 -1
- package/dist-storybook/assets/toast-provider-ChNGFQlt.js +0 -9
- package/dist-storybook/assets/toast.stories-Zj4qfKO_.js +0 -201
- package/dist-storybook/assets/tooltip-CrxOWTXS.js +0 -1
- package/dist-storybook/assets/typography-BcLxefPi.js +0 -1
- package/dist-storybook/assets/uploader.stories-DQN8yjt-.js +0 -65
- package/dist-storybook/assets/visibility-sensor-FN9n9CLs.js +0 -1
- package/dist-storybook/sb-manager/globals-module-info.js +0 -799
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { jsxs as l, jsx as s, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { getPrefixClassName as T } from "../../utils/classname.js";
|
|
3
|
+
import b from "../../_virtual/pick.js";
|
|
4
|
+
import j from "../../_virtual/omit.js";
|
|
5
|
+
import { Label as F } from "../label/label.js";
|
|
6
|
+
import { renderIcon as v, Icon as g } from "../icon/icon.js";
|
|
7
|
+
import { Typography as x } from "../typography/typography.js";
|
|
8
|
+
import P from "classnames";
|
|
9
|
+
const i = T("input-wrapper");
|
|
10
|
+
function J(n) {
|
|
11
|
+
const c = b(n, [
|
|
12
|
+
"shape",
|
|
13
|
+
"disabled",
|
|
14
|
+
"success",
|
|
15
|
+
"successMessage",
|
|
16
|
+
"error",
|
|
17
|
+
"errorMessage",
|
|
18
|
+
"label",
|
|
19
|
+
"leadingIcon",
|
|
20
|
+
"onLeadingIconClick",
|
|
21
|
+
"trailingIcon",
|
|
22
|
+
"onTrailingIconClick",
|
|
23
|
+
"prefix",
|
|
24
|
+
"suffix",
|
|
25
|
+
"className"
|
|
26
|
+
]), e = j(n, [
|
|
27
|
+
"shape",
|
|
28
|
+
"disabled",
|
|
29
|
+
"success",
|
|
30
|
+
"successMessage",
|
|
31
|
+
"error",
|
|
32
|
+
"errorMessage",
|
|
33
|
+
"label",
|
|
34
|
+
"leadingIcon",
|
|
35
|
+
"onLeadingIconClick",
|
|
36
|
+
"trailingIcon",
|
|
37
|
+
"onTrailingIconClick",
|
|
38
|
+
"prefix",
|
|
39
|
+
"suffix",
|
|
40
|
+
"className"
|
|
41
|
+
]);
|
|
42
|
+
return { wrapper: c, props: e };
|
|
43
|
+
}
|
|
44
|
+
const K = ({
|
|
45
|
+
shape: n = "rounded",
|
|
46
|
+
disabled: c,
|
|
47
|
+
loadingNode: e,
|
|
48
|
+
success: a,
|
|
49
|
+
successMessage: t,
|
|
50
|
+
error: r,
|
|
51
|
+
errorMessage: p,
|
|
52
|
+
className: k,
|
|
53
|
+
label: o,
|
|
54
|
+
leadingIcon: _,
|
|
55
|
+
onLeadingIconClick: C,
|
|
56
|
+
trailingIcon: u,
|
|
57
|
+
onTrailingIconClick: I,
|
|
58
|
+
prefix: f,
|
|
59
|
+
suffix: d,
|
|
60
|
+
isFocus: N,
|
|
61
|
+
children: w,
|
|
62
|
+
align: $,
|
|
63
|
+
bottomInput: h,
|
|
64
|
+
onInputClick: y,
|
|
65
|
+
...z
|
|
66
|
+
}) => (r = !e && (r && !c || !!p), a = !e && !r && !c && (a || !!t), /* @__PURE__ */ l(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
...z,
|
|
70
|
+
className: P(i, k, {
|
|
71
|
+
[`${i}--${$}`]: $,
|
|
72
|
+
[`${i}--${n}`]: n,
|
|
73
|
+
[`${i}--disabled`]: c,
|
|
74
|
+
[`${i}--success`]: a,
|
|
75
|
+
[`${i}--error`]: r,
|
|
76
|
+
[`${i}--focus`]: N
|
|
77
|
+
}),
|
|
78
|
+
children: [
|
|
79
|
+
!!o && /* @__PURE__ */ s(F, { ...o, loading: !!e || o.loading }),
|
|
80
|
+
/* @__PURE__ */ l("div", { className: `${i}__input`, onClick: y, children: [
|
|
81
|
+
/* @__PURE__ */ l("div", { className: `${i}__input__body`, children: [
|
|
82
|
+
!!e && e,
|
|
83
|
+
!e && /* @__PURE__ */ l(L, { children: [
|
|
84
|
+
!!f && /* @__PURE__ */ s("div", { className: `${i}__input__prefix`, children: f }),
|
|
85
|
+
/* @__PURE__ */ l("div", { className: `${i}__input__inner`, children: [
|
|
86
|
+
!!_ && /* @__PURE__ */ s(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
className: `${i}__input__leading-icon`,
|
|
90
|
+
onClick: (m) => C?.(m),
|
|
91
|
+
children: v(_)
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ s("div", { className: `${i}__input__child`, children: w }),
|
|
95
|
+
!!r && /* @__PURE__ */ s(
|
|
96
|
+
g,
|
|
97
|
+
{
|
|
98
|
+
name: "triangle-warning",
|
|
99
|
+
size: 20,
|
|
100
|
+
color: "alias-support-negative",
|
|
101
|
+
type: "fill"
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
!!a && /* @__PURE__ */ s(
|
|
105
|
+
g,
|
|
106
|
+
{
|
|
107
|
+
name: "circle-check",
|
|
108
|
+
size: 20,
|
|
109
|
+
color: "alias-support-positive",
|
|
110
|
+
type: "fill"
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
!!u && /* @__PURE__ */ s(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
className: `${i}__input__trailing-icon`,
|
|
117
|
+
onClick: (m) => I?.(m),
|
|
118
|
+
children: v(u)
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] }),
|
|
122
|
+
!!d && /* @__PURE__ */ s("div", { className: `${i}__input__suffix`, children: d })
|
|
123
|
+
] })
|
|
124
|
+
] }),
|
|
125
|
+
!e && !!h && /* @__PURE__ */ s("div", { className: `${i}__input__footer`, children: h })
|
|
126
|
+
] }),
|
|
127
|
+
!e && r && !!p && /* @__PURE__ */ s(
|
|
128
|
+
x,
|
|
129
|
+
{
|
|
130
|
+
size: "small",
|
|
131
|
+
weight: 400,
|
|
132
|
+
color: "alias-support-negative",
|
|
133
|
+
className: `${i}__error-text`,
|
|
134
|
+
children: p
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
!e && a && !!t && /* @__PURE__ */ s(
|
|
138
|
+
x,
|
|
139
|
+
{
|
|
140
|
+
size: "small",
|
|
141
|
+
weight: 400,
|
|
142
|
+
color: "alias-support-positive",
|
|
143
|
+
className: `${i}__success-text`,
|
|
144
|
+
children: t
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
));
|
|
150
|
+
export {
|
|
151
|
+
K as InputWrapper,
|
|
152
|
+
J as getInputProps
|
|
153
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as n, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { getPrefixClassName as _ } from "../../utils/classname.js";
|
|
3
|
+
import { Skeleton as c } from "../skeleton/skeleton.js";
|
|
4
|
+
import { Typography as m } from "../typography/typography.js";
|
|
5
|
+
import { renderIcon as N } from "../icon/icon.js";
|
|
6
|
+
import f from "classnames";
|
|
7
|
+
const e = _("label"), u = ({
|
|
8
|
+
text: t,
|
|
9
|
+
helperText: l,
|
|
10
|
+
disabled: o,
|
|
11
|
+
required: h,
|
|
12
|
+
icon: p,
|
|
13
|
+
className: d,
|
|
14
|
+
loading: i,
|
|
15
|
+
...r
|
|
16
|
+
}) => /* @__PURE__ */ a(
|
|
17
|
+
"label",
|
|
18
|
+
{
|
|
19
|
+
...r,
|
|
20
|
+
className: f(e, d, {
|
|
21
|
+
[`${e}--disabled`]: o
|
|
22
|
+
}),
|
|
23
|
+
children: [
|
|
24
|
+
i && /* @__PURE__ */ a(n, { children: [
|
|
25
|
+
/* @__PURE__ */ s("span", { className: `${e}__content--loading`, children: /* @__PURE__ */ s(c, { width: 80, height: 14, shape: "pill" }) }),
|
|
26
|
+
!!l && /* @__PURE__ */ s("span", { className: `${e}__helper--loading`, children: /* @__PURE__ */ s(c, { width: 40, height: 12, shape: "pill" }) })
|
|
27
|
+
] }),
|
|
28
|
+
!i && /* @__PURE__ */ a(n, { children: [
|
|
29
|
+
/* @__PURE__ */ a("span", { className: `${e}__content`, children: [
|
|
30
|
+
h && /* @__PURE__ */ s("span", { className: `${e}__required`, children: "*" }),
|
|
31
|
+
/* @__PURE__ */ s(
|
|
32
|
+
m,
|
|
33
|
+
{
|
|
34
|
+
component: "span",
|
|
35
|
+
size: "small",
|
|
36
|
+
weight: 400,
|
|
37
|
+
className: `${e}__text`,
|
|
38
|
+
children: t || r.children
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ s("span", { className: `${e}__icon`, children: N(p) })
|
|
42
|
+
] }),
|
|
43
|
+
!!l && /* @__PURE__ */ s(
|
|
44
|
+
m,
|
|
45
|
+
{
|
|
46
|
+
size: "x-small",
|
|
47
|
+
weight: 400,
|
|
48
|
+
className: `${e}__helper`,
|
|
49
|
+
children: l
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
] })
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
export {
|
|
57
|
+
u as Label
|
|
58
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as i } from "../icon/icon.js";
|
|
3
|
+
const l = ({ color: t }) => /* @__PURE__ */ e(
|
|
4
|
+
"div",
|
|
5
|
+
{
|
|
6
|
+
style: {
|
|
7
|
+
position: "absolute",
|
|
8
|
+
top: 0,
|
|
9
|
+
left: 0,
|
|
10
|
+
right: 0,
|
|
11
|
+
bottom: 0,
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
justifyContent: "center",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
backgroundColor: "rgba(255, 255, 255, 0.8)",
|
|
17
|
+
backdropFilter: "blur(4px)",
|
|
18
|
+
zIndex: 999
|
|
19
|
+
},
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ o(i, { name: "loader", color: t, animation: "spin", size: 20 }),
|
|
22
|
+
/* @__PURE__ */ o(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
style: {
|
|
26
|
+
marginTop: 12,
|
|
27
|
+
fontSize: 14,
|
|
28
|
+
color: "#666",
|
|
29
|
+
fontWeight: 500
|
|
30
|
+
},
|
|
31
|
+
children: "Loading..."
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
export {
|
|
38
|
+
l as PageLoading
|
|
39
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as o, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { getPrefixClassName as v } from "../../utils/classname.js";
|
|
3
|
+
import { useMemo as l, useRef as C } from "react";
|
|
4
|
+
import { useTranslate as j } from "@v-miniapp/locale";
|
|
5
|
+
import R from "../../_virtual/throttle.js";
|
|
6
|
+
import { PullToRefresh as S } from "../pull-to-refresh/pull-to-refresh.js";
|
|
7
|
+
import c from "classnames";
|
|
8
|
+
import { VisibilitySensor as w } from "../visibility-sensor/visibility-sensor.js";
|
|
9
|
+
const t = v("page"), q = ({
|
|
10
|
+
hasSpacing: f = !0,
|
|
11
|
+
headerOffset: x = !1,
|
|
12
|
+
safeAreaTopOffset: g = !1,
|
|
13
|
+
safeAreaBottomOffset: T = !1,
|
|
14
|
+
className: p,
|
|
15
|
+
contentClassName: h,
|
|
16
|
+
children: u,
|
|
17
|
+
pullToRefresh: e,
|
|
18
|
+
onEndReached: n,
|
|
19
|
+
onEndReachedThreshold: d = 50,
|
|
20
|
+
onPageScroll: i,
|
|
21
|
+
pageScrollOptions: s,
|
|
22
|
+
...b
|
|
23
|
+
}) => {
|
|
24
|
+
const r = j(), N = l(() => ({
|
|
25
|
+
pullingText: e?.pullingText || r("pullToRefresh.pullingText"),
|
|
26
|
+
canReleaseText: e?.canReleaseText || r("pullToRefresh.canReleaseText"),
|
|
27
|
+
refreshingText: e?.refreshingText || r("pullToRefresh.refreshingText"),
|
|
28
|
+
completeText: e?.completeText || r("pullToRefresh.completeText")
|
|
29
|
+
}), [
|
|
30
|
+
e?.canReleaseText,
|
|
31
|
+
e?.completeText,
|
|
32
|
+
e?.pullingText,
|
|
33
|
+
e?.refreshingText,
|
|
34
|
+
r
|
|
35
|
+
]), a = C(i);
|
|
36
|
+
a.current = i;
|
|
37
|
+
const $ = l(() => R(
|
|
38
|
+
(m) => {
|
|
39
|
+
const P = m.target;
|
|
40
|
+
a.current?.(P, m);
|
|
41
|
+
},
|
|
42
|
+
s?.wait ?? 100,
|
|
43
|
+
s
|
|
44
|
+
), [JSON.stringify(s)]), y = () => /* @__PURE__ */ _(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: c(
|
|
48
|
+
`${t}__content`,
|
|
49
|
+
{
|
|
50
|
+
[`${t}__content--spacing`]: f
|
|
51
|
+
},
|
|
52
|
+
h
|
|
53
|
+
),
|
|
54
|
+
children: [
|
|
55
|
+
u,
|
|
56
|
+
!!n && /* @__PURE__ */ o(
|
|
57
|
+
w,
|
|
58
|
+
{
|
|
59
|
+
onActive: n,
|
|
60
|
+
style: {
|
|
61
|
+
position: "absolute",
|
|
62
|
+
bottom: 0,
|
|
63
|
+
left: 0,
|
|
64
|
+
right: 0,
|
|
65
|
+
height: d + 16,
|
|
66
|
+
zIndex: -1,
|
|
67
|
+
visibility: "hidden",
|
|
68
|
+
maxHeight: "100%"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
return /* @__PURE__ */ o(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: c(
|
|
79
|
+
t,
|
|
80
|
+
{
|
|
81
|
+
[`${t}--header-offset`]: x,
|
|
82
|
+
[`${t}--safe-area-top-offset`]: g,
|
|
83
|
+
[`${t}--safe-area-bottom-offset`]: T
|
|
84
|
+
},
|
|
85
|
+
p
|
|
86
|
+
),
|
|
87
|
+
...b,
|
|
88
|
+
onScroll: $,
|
|
89
|
+
children: /* @__PURE__ */ o(
|
|
90
|
+
S,
|
|
91
|
+
{
|
|
92
|
+
disabled: !e?.onRefresh,
|
|
93
|
+
...e,
|
|
94
|
+
...N,
|
|
95
|
+
children: y()
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
q as Page
|
|
103
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { getPrefixClassName as h } from "../../utils/classname.js";
|
|
3
|
+
import { Typography as d } from "../typography/typography.js";
|
|
4
|
+
import N from "classnames";
|
|
5
|
+
const s = h("list-item"), $ = ({
|
|
6
|
+
className: t,
|
|
7
|
+
label: i,
|
|
8
|
+
description: a,
|
|
9
|
+
prefix: r,
|
|
10
|
+
suffix: l,
|
|
11
|
+
leadContent: c,
|
|
12
|
+
trailContent: m,
|
|
13
|
+
divider: n,
|
|
14
|
+
..._
|
|
15
|
+
}) => /* @__PURE__ */ o("div", { className: N(s, t), ..._, children: [
|
|
16
|
+
!!r && /* @__PURE__ */ e("div", { className: `${s}__prefix`, children: r }),
|
|
17
|
+
!!c && /* @__PURE__ */ e("div", { className: `${s}__lead-content`, children: c }),
|
|
18
|
+
/* @__PURE__ */ o("div", { className: `${s}__content`, children: [
|
|
19
|
+
!!i && /* @__PURE__ */ e(d, { size: "small", weight: "medium", color: "alias-object-primary", children: i }),
|
|
20
|
+
!!a && /* @__PURE__ */ e(
|
|
21
|
+
d,
|
|
22
|
+
{
|
|
23
|
+
size: "x-small",
|
|
24
|
+
weight: "regular",
|
|
25
|
+
color: "alias-object-secondary",
|
|
26
|
+
children: a
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
] }),
|
|
30
|
+
!!l && /* @__PURE__ */ e("div", { className: `${s}__suffix`, children: l }),
|
|
31
|
+
!!m && /* @__PURE__ */ e("div", { className: `${s}__trail-content`, children: m }),
|
|
32
|
+
n && /* @__PURE__ */ e("div", { className: `${s}__divider` })
|
|
33
|
+
] });
|
|
34
|
+
export {
|
|
35
|
+
$ as ListItem
|
|
36
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IColor } from '../../types/colors';
|
|
2
|
-
import { FC,
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
import { IIconProps } from '../icon';
|
|
4
4
|
export type INavigationBarTransparent = 'auto' | 'always' | 'none';
|
|
5
5
|
export type INavigationBarTheme = 'default' | 'inverse';
|
|
@@ -23,6 +23,3 @@ export type INavigationBarProps = {
|
|
|
23
23
|
locationKey?: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const NavigationBar: FC<INavigationBarProps>;
|
|
26
|
-
export declare const NavigationBarPage: FC<PropsWithChildren<INavigationBarProps> & {
|
|
27
|
-
hidden?: boolean;
|
|
28
|
-
}>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsx as o, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as b, useMemo as C, useCallback as k, useEffect as w } from "react";
|
|
3
|
+
import { getPrefixClassName as q } from "../../utils/classname.js";
|
|
4
|
+
import { getColor as z } from "../../utils/colors.js";
|
|
5
|
+
import { getPageId as M } from "../app/page-layout/index.js";
|
|
6
|
+
import { Icon as A, renderIcon as f } from "../icon/icon.js";
|
|
7
|
+
import D from "classnames";
|
|
8
|
+
const e = q("navigation-bar"), U = ({
|
|
9
|
+
className: E,
|
|
10
|
+
scrollElementSelector: m,
|
|
11
|
+
theme: i = "default",
|
|
12
|
+
color: u,
|
|
13
|
+
transparent: a = "none",
|
|
14
|
+
title: S,
|
|
15
|
+
backIcon: s,
|
|
16
|
+
onBackClick: x,
|
|
17
|
+
leftIcon: d,
|
|
18
|
+
onLeftIconClick: B,
|
|
19
|
+
left: R,
|
|
20
|
+
rightIcon: v,
|
|
21
|
+
onRightIconClick: h,
|
|
22
|
+
right: j,
|
|
23
|
+
divider: L,
|
|
24
|
+
locationKey: l,
|
|
25
|
+
scrollThreshold: c = 100
|
|
26
|
+
}) => {
|
|
27
|
+
const g = b(null), O = b(-1), n = C(() => m || "#" + M(l || ""), [m, l]), p = k(() => typeof n == "string" ? document.querySelector(n) : typeof n == "function" ? n() : n, [n]), N = k(
|
|
28
|
+
(r) => {
|
|
29
|
+
const t = r.scrollTop, T = O.current, $ = t > c ? 1 : t < 0 ? 0 : t / c;
|
|
30
|
+
T !== $ && g.current?.style.setProperty(
|
|
31
|
+
"--navigation-bar-opacity",
|
|
32
|
+
$.toString()
|
|
33
|
+
);
|
|
34
|
+
},
|
|
35
|
+
[c]
|
|
36
|
+
);
|
|
37
|
+
w(() => {
|
|
38
|
+
i === "default" ? window.vsf?.setNavigationBar({
|
|
39
|
+
theme: "dark"
|
|
40
|
+
}) : i === "inverse" && window.vsf?.setNavigationBar({
|
|
41
|
+
theme: "light"
|
|
42
|
+
});
|
|
43
|
+
}, [i]);
|
|
44
|
+
const _ = C(() => s === !1 ? null : s === !0 ? /* @__PURE__ */ o(A, { name: "chevron-left", size: 24 }) : s, [s]);
|
|
45
|
+
return w(() => {
|
|
46
|
+
if (a !== "auto") return;
|
|
47
|
+
const r = p(), t = () => {
|
|
48
|
+
r && N(r);
|
|
49
|
+
};
|
|
50
|
+
return setTimeout(() => t(), 0), r?.addEventListener("scroll", t), () => {
|
|
51
|
+
r?.removeEventListener("scroll", t);
|
|
52
|
+
};
|
|
53
|
+
}, [a, l, p, N]), /* @__PURE__ */ y(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
className: D(
|
|
57
|
+
e,
|
|
58
|
+
`${e}--${i}`,
|
|
59
|
+
{
|
|
60
|
+
[`${e}--transparent`]: a === "always",
|
|
61
|
+
[`${e}--divider`]: L
|
|
62
|
+
},
|
|
63
|
+
E
|
|
64
|
+
),
|
|
65
|
+
ref: g,
|
|
66
|
+
style: u ? {
|
|
67
|
+
"--navigation-bar-background": z(u)
|
|
68
|
+
} : void 0,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ o("div", { className: `${e}__background` }),
|
|
71
|
+
/* @__PURE__ */ y("div", { className: `${e}__inner`, children: [
|
|
72
|
+
!!_ && /* @__PURE__ */ o(
|
|
73
|
+
"button",
|
|
74
|
+
{
|
|
75
|
+
className: `${e}__icon`,
|
|
76
|
+
onClick: () => x?.(),
|
|
77
|
+
children: f(_)
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
!!d && /* @__PURE__ */ o(
|
|
81
|
+
"button",
|
|
82
|
+
{
|
|
83
|
+
className: `${e}__icon`,
|
|
84
|
+
onClick: () => B?.(),
|
|
85
|
+
children: f(d)
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
R,
|
|
89
|
+
/* @__PURE__ */ o("div", { className: `${e}__title`, children: S }),
|
|
90
|
+
v && /* @__PURE__ */ o(
|
|
91
|
+
"button",
|
|
92
|
+
{
|
|
93
|
+
className: `${e}__icon`,
|
|
94
|
+
onClick: () => h?.(),
|
|
95
|
+
children: f(v)
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
j
|
|
99
|
+
] })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
U as NavigationBar
|
|
106
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useRef as B, useState as P, useImperativeHandle as I, useCallback as d } from "react";
|
|
3
|
+
import { getPrefixClassName as R } from "../../utils/classname.js";
|
|
4
|
+
import { useControllableValue as M } from "ahooks";
|
|
5
|
+
import { Skeleton as $ } from "../skeleton/skeleton.js";
|
|
6
|
+
import { Typography as m } from "../typography/typography.js";
|
|
7
|
+
import _ from "classnames";
|
|
8
|
+
const e = R("number-field"), O = z(
|
|
9
|
+
(l, n) => {
|
|
10
|
+
const {
|
|
11
|
+
length: s = 6,
|
|
12
|
+
errorMessage: r,
|
|
13
|
+
label: o,
|
|
14
|
+
shape: v,
|
|
15
|
+
disabled: c,
|
|
16
|
+
className: C,
|
|
17
|
+
loading: t,
|
|
18
|
+
masked: w,
|
|
19
|
+
value: A,
|
|
20
|
+
defaultValue: D,
|
|
21
|
+
onChange: H,
|
|
22
|
+
...x
|
|
23
|
+
} = l, u = B(null), [f, g] = P(!1);
|
|
24
|
+
I(n, () => ({
|
|
25
|
+
focus: () => u.current?.focus(),
|
|
26
|
+
blur: () => u.current?.blur()
|
|
27
|
+
}));
|
|
28
|
+
const [p, b] = M(l, {
|
|
29
|
+
defaultValue: "",
|
|
30
|
+
trigger: "onChange"
|
|
31
|
+
}), V = d(
|
|
32
|
+
(N) => {
|
|
33
|
+
if (t || c) return;
|
|
34
|
+
const i = N.target.value.replace(/\D/g, "").slice(0, s);
|
|
35
|
+
b(i);
|
|
36
|
+
},
|
|
37
|
+
[t, c, s, b]
|
|
38
|
+
), y = d(() => {
|
|
39
|
+
g(!0);
|
|
40
|
+
}, []), F = d(() => {
|
|
41
|
+
g(!1);
|
|
42
|
+
}, []), j = d(() => {
|
|
43
|
+
u.current?.focus();
|
|
44
|
+
}, []), k = (p ?? "").length;
|
|
45
|
+
return /* @__PURE__ */ h(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
...x,
|
|
49
|
+
onClick: j,
|
|
50
|
+
className: _(e, C, {
|
|
51
|
+
[`${e}--disabled`]: c,
|
|
52
|
+
[`${e}--error`]: !!r,
|
|
53
|
+
[`${e}--pill`]: v === "pill",
|
|
54
|
+
[`${e}--focused`]: f
|
|
55
|
+
}),
|
|
56
|
+
children: [
|
|
57
|
+
!!o && (t ? /* @__PURE__ */ a("div", { className: `${e}__label--loading`, children: /* @__PURE__ */ a($, { width: 80, height: 14, shape: "pill" }) }) : /* @__PURE__ */ a(
|
|
58
|
+
m,
|
|
59
|
+
{
|
|
60
|
+
size: "small",
|
|
61
|
+
weight: 400,
|
|
62
|
+
color: "alias-object-primary",
|
|
63
|
+
className: `${e}__label`,
|
|
64
|
+
children: o
|
|
65
|
+
}
|
|
66
|
+
)),
|
|
67
|
+
/* @__PURE__ */ h("div", { className: `${e}__inputs`, children: [
|
|
68
|
+
Array.from({ length: s }).map((N, i) => /* @__PURE__ */ a(
|
|
69
|
+
S,
|
|
70
|
+
{
|
|
71
|
+
value: (p ?? "")[i],
|
|
72
|
+
masked: w,
|
|
73
|
+
loading: t,
|
|
74
|
+
isFocused: f && i === k
|
|
75
|
+
},
|
|
76
|
+
i
|
|
77
|
+
)),
|
|
78
|
+
/* @__PURE__ */ a(
|
|
79
|
+
"input",
|
|
80
|
+
{
|
|
81
|
+
ref: u,
|
|
82
|
+
type: "text",
|
|
83
|
+
inputMode: "numeric",
|
|
84
|
+
autoComplete: "one-time-code",
|
|
85
|
+
pattern: "\\d*",
|
|
86
|
+
value: p ?? "",
|
|
87
|
+
onChange: V,
|
|
88
|
+
onFocus: y,
|
|
89
|
+
onBlur: F,
|
|
90
|
+
disabled: c || t,
|
|
91
|
+
className: `${e}__input-actual`,
|
|
92
|
+
maxLength: s,
|
|
93
|
+
"aria-label": o
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
] }),
|
|
97
|
+
r && /* @__PURE__ */ a(
|
|
98
|
+
m,
|
|
99
|
+
{
|
|
100
|
+
size: "small",
|
|
101
|
+
weight: 400,
|
|
102
|
+
color: "alias-support-negative",
|
|
103
|
+
className: `${e}__error-message`,
|
|
104
|
+
children: r
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
), S = ({
|
|
112
|
+
value: l,
|
|
113
|
+
masked: n,
|
|
114
|
+
loading: s,
|
|
115
|
+
isFocused: r
|
|
116
|
+
}) => {
|
|
117
|
+
const o = !l && r && !s;
|
|
118
|
+
return /* @__PURE__ */ h(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
className: _(`${e}__input`, {
|
|
122
|
+
[`${e}__input--focused`]: r
|
|
123
|
+
}),
|
|
124
|
+
children: [
|
|
125
|
+
!l && (s ? /* @__PURE__ */ a("div", { className: `${e}__placeholder--loading`, children: /* @__PURE__ */ a($, { width: 18, height: 12, shape: "pill" }) }) : /* @__PURE__ */ a(
|
|
126
|
+
m,
|
|
127
|
+
{
|
|
128
|
+
size: "base",
|
|
129
|
+
weight: 400,
|
|
130
|
+
color: "alias-object-placeholder",
|
|
131
|
+
className: `${e}__placeholder`,
|
|
132
|
+
children: "-"
|
|
133
|
+
}
|
|
134
|
+
)),
|
|
135
|
+
l && n && /* @__PURE__ */ a("div", { className: `${e}__value--masked` }),
|
|
136
|
+
l && !n && /* @__PURE__ */ a(
|
|
137
|
+
m,
|
|
138
|
+
{
|
|
139
|
+
component: "span",
|
|
140
|
+
size: "base",
|
|
141
|
+
weight: 400,
|
|
142
|
+
color: "alias-object-primary",
|
|
143
|
+
className: `${e}__value`,
|
|
144
|
+
children: l
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ a(
|
|
148
|
+
"div",
|
|
149
|
+
{
|
|
150
|
+
className: _(`${e}__pointer`, {
|
|
151
|
+
[`${e}__pointer--visible`]: o,
|
|
152
|
+
[`${e}__pointer--hidden`]: !o
|
|
153
|
+
})
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
};
|
|
160
|
+
export {
|
|
161
|
+
O as NumberField
|
|
162
|
+
};
|