@v-miniapp/ui-react 1.0.59 → 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-Dp1UG-xp.js → App-BkiRuUOF.js} +1 -1
- package/dist-storybook/assets/Color-6BZIO3FS-EdXZe4iv.js +1 -0
- package/dist-storybook/assets/{DEEPLINK-cjgFMuRJ.js → DEEPLINK-CvpIbZVm.js} +1 -1
- package/dist-storybook/assets/DocsRenderer-LL677BLK-Ch7ovClC.js +2 -0
- package/dist-storybook/assets/{EVENTS-BY66PjI7.js → EVENTS-Bnl2ehlm.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-BiQMvjvo.js → GETTING_STARTED-BYcN9hg3.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-580o-9Mx.js → GETTING_STARTED-BmHWFQQE.js} +1 -1
- package/dist-storybook/assets/GETTING_STARTED-C1AOB25Z.js +45 -0
- package/dist-storybook/assets/{GETTING_STARTED-CIVMqKZW.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-BbeR5HeP.js → INFINITE_SCROLL-BJeWhgO7.js} +1 -1
- package/dist-storybook/assets/{LocalesProvider-CMlmwAyY.js → LocalesProvider-CQEwtoq3.js} +1 -1
- package/dist-storybook/assets/{MIGRATE_DARKMODE_TO_THEME-CBDyZyg2.js → MIGRATE_DARKMODE_TO_THEME-DCxXgvQC.js} +1 -1
- package/dist-storybook/assets/{MIGRATION_GUIDE-FZyRWI-B.js → MIGRATION_GUIDE-BN_V-xNj.js} +1 -1
- package/dist-storybook/assets/OVERVIEW-AI-CLWBzviY.js +35 -0
- package/dist-storybook/assets/{OVERVIEW-C9_6gX5Q.js → OVERVIEW-Byly3lQV.js} +1 -1
- package/dist-storybook/assets/{Router-B5U8bubH.js → Router-CO6rjSXr.js} +1 -1
- package/dist-storybook/assets/{TAILWIND_INTEGRATION-BJdy5DAv.js → TAILWIND_INTEGRATION-CpN4_fSu.js} +1 -1
- package/dist-storybook/assets/{THEME-CRbvH7KT.js → THEME-B9Y39f9D.js} +1 -1
- package/dist-storybook/assets/WithTooltip-65CFNBJE-D6J_7FjK.js +9 -0
- package/dist-storybook/assets/{alert.stories-D0X5wUHk.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-BHGdSCoA.js → axe-4EaTvypG.js} +13 -13
- package/dist-storybook/assets/badge-Gh2kTOE3.js +1 -0
- package/dist-storybook/assets/{badge.stories-BEFNaUA1.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-DgYDJ6x7.js → button.stories--0kpp_af.js} +3 -3
- package/dist-storybook/assets/calendar-ySr-9cXG.js +1 -0
- package/dist-storybook/assets/{calendar.stories-IVvRAjWN.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-D7E6fdiV.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-B3PFMb6s.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-CIFgk4q_.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-5D5fs7OQ.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-DWwbUUY-.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-BhZU057W.js → image.stories-BlYIb_Qu.js} +1 -1
- package/dist-storybook/assets/index-B24pfkXD.js +1 -0
- package/dist-storybook/assets/{index-cMNObl2z.js → index-CdnALcTP.js} +1 -1
- package/dist-storybook/assets/{index-EGt7xBnA.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-CXJjdYf_.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-BvXoc8WX.js → option-item.stories-DqA-ydWX.js} +3 -3
- package/dist-storybook/assets/pagination-CjgiVNvu.js +1 -0
- package/dist-storybook/assets/{pagination.stories-_5qj2nTS.js → pagination.stories-BsKHvdF4.js} +4 -4
- package/dist-storybook/assets/{radio.stories-BNR-wwuw.js → radio.stories-CBmxZRxo.js} +10 -10
- package/dist-storybook/assets/{rating.stories-CI0LG0Qq.js → rating.stories-CcdFtcNH.js} +9 -9
- package/dist-storybook/assets/react-18-D2tl8ksm.js +1 -0
- package/dist-storybook/assets/{react-I9jCW2VV.js → react-DO0-owxu.js} +1 -1
- package/dist-storybook/assets/search-field-zl4ROLfn.js +1 -0
- package/dist-storybook/assets/{search-field.stories-CKXC6-Za.js → search-field.stories-DoclnxtC.js} +1 -1
- package/dist-storybook/assets/{section.stories-9vd48AgB.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-C3gLIQsn.js → sheet.stories-CoXnt4LG.js} +4 -4
- package/dist-storybook/assets/skeleton-BVLpHxKT.js +1 -0
- package/dist-storybook/assets/{skeleton.stories-C0y1o1Y_.js → skeleton.stories-B-OfMZId.js} +3 -3
- package/dist-storybook/assets/{store-Ce3Ikv5g.js → store-BwIebEt6.js} +5 -5
- package/dist-storybook/assets/{switch.stories-BdWFln-M.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-DCt3RB3A.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-Bqv7f948.js → text-field.stories-PQoP3DbL.js} +1 -1
- package/dist-storybook/assets/toast.stories-DmPy9T3m.js +209 -0
- package/dist-storybook/assets/{tooltip.stories-DDdsuU3U.js → tooltip.stories-Be_kIaDc.js} +8 -8
- package/dist-storybook/assets/typography-CMIMyivt.js +1 -0
- package/dist-storybook/assets/{typography.stories-BzCxaZQU.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-ClsUnndr.js → use-app-pause-_ycnhKwZ.js} +3 -3
- package/dist-storybook/assets/{use-app-resume-D_EcIvMd.js → use-app-resume-CWb2s-wo.js} +1 -1
- package/dist-storybook/assets/{use-bottom-tab-bar-BC1cz2uE.js → use-bottom-tab-bar--DRl-8c4.js} +1 -1
- package/dist-storybook/assets/{use-custom-icon-event-cUk4Md0Y.js → use-custom-icon-event-BXcRPkLg.js} +1 -1
- package/dist-storybook/assets/{use-did-hide-BmABiaUE.js → use-did-hide-LBcrwoUo.js} +1 -1
- package/dist-storybook/assets/{use-did-show-CQuySkkT.js → use-did-show-BXLstTgt.js} +1 -1
- package/dist-storybook/assets/{use-histories-CBm09Lno.js → use-histories-Cz7ncXaj.js} +1 -1
- package/dist-storybook/assets/{use-history-7yguNz6O.js → use-history-B_w6SPwr.js} +1 -1
- package/dist-storybook/assets/{use-language-DPyWMce2.js → use-language-D84C9QNT.js} +1 -1
- package/dist-storybook/assets/{use-load-more-KlDJZhj2.js → use-load-more-Bb9YFkAE.js} +1 -1
- package/dist-storybook/assets/{use-location-C7kE1yla.js → use-location-DnxJ5FvJ.js} +1 -1
- package/dist-storybook/assets/{use-navigate-BpIyvtwc.js → use-navigate-OLqoL3vR.js} +3 -3
- package/dist-storybook/assets/{use-navigation-bar-guzwhM_u.js → use-navigation-bar-D5BX6S-r.js} +15 -15
- package/dist-storybook/assets/{use-navigation-type-DOndDqQH.js → use-navigation-type-Cq7T35ur.js} +1 -1
- package/dist-storybook/assets/{use-page-layout-dO6ylI1b.js → use-page-layout-BrFRWwC6.js} +1 -1
- package/dist-storybook/assets/{use-page-scroll-CCG2d2Gb.js → use-page-scroll-BZ8XiPza.js} +1 -1
- package/dist-storybook/assets/{use-pull-to-refresh-lhumDu1H.js → use-pull-to-refresh-BEjtxiFn.js} +1 -1
- package/dist-storybook/assets/{use-settings-changed-Bt58DJ-c.js → use-settings-changed-UaQRSWAg.js} +1 -1
- package/dist-storybook/assets/{use-translate-Jhz6jTXo.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-XA8cFKdV.js +0 -1
- package/dist-storybook/assets/DocsRenderer-PQXLIZUC-D10-0Yfb.js +0 -2
- package/dist-storybook/assets/_baseClone-DQVxEhny.js +0 -1
- package/dist-storybook/assets/alert-CKwsuaPI.js +0 -1
- package/dist-storybook/assets/app-CTv8lFU3.js +0 -1
- package/dist-storybook/assets/avatar-rWcYGe6j.js +0 -1
- package/dist-storybook/assets/avatar.stories-8lrbhMma.js +0 -136
- package/dist-storybook/assets/badge-VcjGVEum.js +0 -1
- package/dist-storybook/assets/blocks-DKR3P4qW.js +0 -1243
- package/dist-storybook/assets/bottom-tab-bar-B6IAoRwz.js +0 -115
- package/dist-storybook/assets/bottom-tab-bar.stories-DXzLlO5o.js +0 -186
- package/dist-storybook/assets/button-DJH3RlJl.js +0 -1
- package/dist-storybook/assets/calendar-C4Xe_TW2.js +0 -1
- package/dist-storybook/assets/carousel-DJlgMyS5.js +0 -37
- package/dist-storybook/assets/carousel.stories-3rA3nxdL.js +0 -217
- package/dist-storybook/assets/checkbox-JOxcmyCZ.js +0 -1
- package/dist-storybook/assets/checkbox.stories-ge3pgfBb.js +0 -201
- package/dist-storybook/assets/chip-Crt60rph.js +0 -1
- package/dist-storybook/assets/date-field-range-B-sv9nbW.js +0 -1
- package/dist-storybook/assets/date-field.stories-B9G2heHt.js +0 -129
- package/dist-storybook/assets/date-picker-BPzKPdhO.js +0 -1
- package/dist-storybook/assets/dialog-BAfGQzk5.js +0 -1
- package/dist-storybook/assets/dialog.stories-vDMKz9Tw.js +0 -212
- package/dist-storybook/assets/dropdown-Dtomaqpw.js +0 -247
- package/dist-storybook/assets/dropdown.stories-Cj0HM0VI.js +0 -200
- package/dist-storybook/assets/icon-CdiFzFyf.js +0 -1
- package/dist-storybook/assets/iframe-BHaCv4dM.css +0 -1
- package/dist-storybook/assets/iframe-DfPay7Zl.js +0 -1071
- package/dist-storybook/assets/image-CMKb-R3x.js +0 -9
- package/dist-storybook/assets/index-BWpuenI4.js +0 -1
- package/dist-storybook/assets/index-DqZh6B0b.js +0 -1
- package/dist-storybook/assets/input-wrapper-CgaUwbbE.js +0 -1
- package/dist-storybook/assets/label-D44azUgi.js +0 -27
- package/dist-storybook/assets/matchers-7Z3WT2CE-Dw4MQV_s.js +0 -14
- package/dist-storybook/assets/navigation-bar-DK3TxcTu.js +0 -79
- package/dist-storybook/assets/navigation-bar.stories-CB3Kg-sH.js +0 -73
- package/dist-storybook/assets/number-field-Bz7su9S1.js +0 -1
- package/dist-storybook/assets/number-field.stories-DSxPSzLv.js +0 -167
- package/dist-storybook/assets/omit-BWHsnDSR.js +0 -1
- package/dist-storybook/assets/option-item-CpeNcb5w.js +0 -1
- package/dist-storybook/assets/pagination-Cp-DHO4Q.js +0 -1
- package/dist-storybook/assets/proxy-B4G9nIBd.js +0 -1
- package/dist-storybook/assets/radio-D0aV0RIg.js +0 -1
- package/dist-storybook/assets/rating-D2e8RTGl.js +0 -1
- package/dist-storybook/assets/react-18-C7pDmBBf.js +0 -9
- package/dist-storybook/assets/search-field-DINESW8Y.js +0 -1
- package/dist-storybook/assets/section-content-D49PabBW.js +0 -1
- package/dist-storybook/assets/sheet-footer-nEdxsYan.js +0 -1
- package/dist-storybook/assets/skeleton-B12XbNAJ.js +0 -1
- package/dist-storybook/assets/switch-D0Z9tWin.js +0 -1
- package/dist-storybook/assets/tab-bar-kExoGg5P.js +0 -31
- package/dist-storybook/assets/tab-bar.stories-BgDXX0of.js +0 -136
- package/dist-storybook/assets/text-area-GKy5HL12.js +0 -1
- package/dist-storybook/assets/text-field-CGWNqitB.js +0 -1
- package/dist-storybook/assets/toast-provider-DKSrfhJD.js +0 -9
- package/dist-storybook/assets/toast.stories-CcFzS6QI.js +0 -201
- package/dist-storybook/assets/tooltip-B9rDI6z9.js +0 -1
- package/dist-storybook/assets/typography-CB8hPDyK.js +0 -1
- package/dist-storybook/assets/uploader.stories-izVumFqZ.js +0 -65
- package/dist-storybook/assets/visibility-sensor-Jf-Nmil6.js +0 -1
- package/dist-storybook/sb-manager/globals-module-info.js +0 -799
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import{r as s,j as n}from"./iframe-Crg_lbde.js";import{T as j,S as q,a as f,P as N,b as P}from"./blocks-CB7UwFa4.js";import{c as T,g as $}from"./classname-Bl5epEs-.js";import{r as B}from"./icon-Cc9W858e.js";import{T as x}from"./typography-CMIMyivt.js";import{t as e}from"./store-BwIebEt6.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CdnALcTP.js";import"./colors-_6nFGM3e.js";const i=$("bottom-tab-bar"),m=({items:t,activeId:a,className:r,indicator:l=!0,setCssVariable:g,onItemClick:w,safeAreaBottomOffset:I=!0})=>{const y=s.useMemo(()=>a?t.findIndex(o=>o.id===a):-1,[a,t]),c=s.useMemo(()=>t.some(o=>!!o.icon),[t]);return s.useEffect(()=>{g&&(I?document.body?.style?.setProperty("--vsf-bottom-tab-bar-height",c?"calc(var(--safe-area-inset-bottom, 0px) + 52px)":"calc(var(--safe-area-inset-bottom, 0px) + 40px)"):document.body?.style?.setProperty("--vsf-bottom-tab-bar-height",c?"52px":"40px"))},[c,I,g]),n.jsxs("div",{className:T(i,{[`${i}--safe-area-bottom-offset`]:I,[`${i}--has-icon`]:c},r),children:[!!l&&n.jsx("div",{className:`${i}__divider`}),!!l&&y>=0&&n.jsx("div",{className:`${i}__indicator`,style:{left:`calc(100% * ${y} / ${t.length})`,width:`calc(100% / ${t.length})`}}),t.map((o,C)=>{const k=o.id===a,h=!!o.icon;return n.jsxs("div",{className:T(`${i}__item`,{[`${i}__item--active`]:k,[`${i}__item--has-icon`]:h}),onClick:()=>w?.(o,C),children:[h&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`${i}__icon`,children:B(o.icon)}),n.jsx("div",{className:`${i}__icon-active`,children:B(o.activeIcon||o.icon)})]}),n.jsx(x,{size:o.icon?"2x-small":"small",className:`${i}__label`,children:o.name}),n.jsx(x,{size:o.icon?"2x-small":"small",className:`${i}__label-active`,children:o.name})]},o.id)})]})};m.__docgenInfo={description:"",methods:[],displayName:"BottomTabBar",props:{className:{required:!1,tsType:{name:"string"},description:""},items:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{
|
|
2
|
+
id: string
|
|
3
|
+
name: string
|
|
4
|
+
icon?: IIconProps | ReactNode
|
|
5
|
+
activeIcon?: IIconProps | ReactNode
|
|
6
|
+
}`,signature:{properties:[{key:"id",value:{name:"string",required:!0}},{key:"name",value:{name:"string",required:!0}},{key:"icon",value:{name:"union",raw:"IIconProps | ReactNode",elements:[{name:"IOverride",elements:[{name:"Omit",elements:[{name:"intersection",raw:`React.ComponentProps<'svg'> & {
|
|
7
|
+
title?: string
|
|
8
|
+
titleId?: string
|
|
9
|
+
desc?: string
|
|
10
|
+
descId?: string
|
|
11
|
+
}`,elements:[{name:"ReactComponentProps",raw:"React.ComponentProps<'svg'>",elements:[{name:"literal",value:"'svg'"}]},{name:"signature",type:"object",raw:`{
|
|
12
|
+
title?: string
|
|
13
|
+
titleId?: string
|
|
14
|
+
desc?: string
|
|
15
|
+
descId?: string
|
|
16
|
+
}`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"titleId",value:{name:"string",required:!1}},{key:"desc",value:{name:"string",required:!1}},{key:"descId",value:{name:"string",required:!1}}]}}]},{name:"union",raw:"'name' | 'type' | 'children'",elements:[{name:"literal",value:"'name'"},{name:"literal",value:"'type'"},{name:"literal",value:"'children'"}]}],raw:"Omit<ISVGComponentProps, 'name' | 'type' | 'children'>"},{name:"intersection",raw:`{
|
|
17
|
+
size?: number | string
|
|
18
|
+
color?: IColor
|
|
19
|
+
animation?: IIconAnimation
|
|
20
|
+
} & ({ name: IIconName; type?: 'outline' | 'fill' } | { children: ReactNode })`,elements:[{name:"signature",type:"object",raw:`{
|
|
21
|
+
size?: number | string
|
|
22
|
+
color?: IColor
|
|
23
|
+
animation?: IIconAnimation
|
|
24
|
+
}`,signature:{properties:[{key:"size",value:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}],required:!1}},{key:"color",value:{name:"IColor",required:!1}},{key:"animation",value:{name:"union",raw:"'spin' | 'ping' | 'pulse' | 'bounce'",elements:[{name:"literal",value:"'spin'"},{name:"literal",value:"'ping'"},{name:"literal",value:"'pulse'"},{name:"literal",value:"'bounce'"}],required:!1}}]}},{name:"unknown"}]}],raw:`IOverride<
|
|
25
|
+
Omit<ISVGComponentProps, 'name' | 'type' | 'children'>,
|
|
26
|
+
IBaseIconProps
|
|
27
|
+
>`},{name:"ReactNode"}],required:!1}},{key:"activeIcon",value:{name:"union",raw:"IIconProps | ReactNode",elements:[{name:"IOverride",elements:[{name:"Omit",elements:[{name:"intersection",raw:`React.ComponentProps<'svg'> & {
|
|
28
|
+
title?: string
|
|
29
|
+
titleId?: string
|
|
30
|
+
desc?: string
|
|
31
|
+
descId?: string
|
|
32
|
+
}`,elements:[{name:"ReactComponentProps",raw:"React.ComponentProps<'svg'>",elements:[{name:"literal",value:"'svg'"}]},{name:"signature",type:"object",raw:`{
|
|
33
|
+
title?: string
|
|
34
|
+
titleId?: string
|
|
35
|
+
desc?: string
|
|
36
|
+
descId?: string
|
|
37
|
+
}`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"titleId",value:{name:"string",required:!1}},{key:"desc",value:{name:"string",required:!1}},{key:"descId",value:{name:"string",required:!1}}]}}]},{name:"union",raw:"'name' | 'type' | 'children'",elements:[{name:"literal",value:"'name'"},{name:"literal",value:"'type'"},{name:"literal",value:"'children'"}]}],raw:"Omit<ISVGComponentProps, 'name' | 'type' | 'children'>"},{name:"intersection",raw:`{
|
|
38
|
+
size?: number | string
|
|
39
|
+
color?: IColor
|
|
40
|
+
animation?: IIconAnimation
|
|
41
|
+
} & ({ name: IIconName; type?: 'outline' | 'fill' } | { children: ReactNode })`,elements:[{name:"signature",type:"object",raw:`{
|
|
42
|
+
size?: number | string
|
|
43
|
+
color?: IColor
|
|
44
|
+
animation?: IIconAnimation
|
|
45
|
+
}`,signature:{properties:[{key:"size",value:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}],required:!1}},{key:"color",value:{name:"IColor",required:!1}},{key:"animation",value:{name:"union",raw:"'spin' | 'ping' | 'pulse' | 'bounce'",elements:[{name:"literal",value:"'spin'"},{name:"literal",value:"'ping'"},{name:"literal",value:"'pulse'"},{name:"literal",value:"'bounce'"}],required:!1}}]}},{name:"unknown"}]}],raw:`IOverride<
|
|
46
|
+
Omit<ISVGComponentProps, 'name' | 'type' | 'children'>,
|
|
47
|
+
IBaseIconProps
|
|
48
|
+
>`},{name:"ReactNode"}],required:!1}}]}}],raw:"IBottomTabBarItem[]"},description:""},activeId:{required:!1,tsType:{name:"string"},description:""},indicator:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},setCssVariable:{required:!1,tsType:{name:"boolean"},description:""},bgColor:{required:!1,tsType:{name:"IColor"},description:""},color:{required:!1,tsType:{name:"IColor"},description:""},activeColor:{required:!1,tsType:{name:"IColor"},description:""},onItemClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(item: IBottomTabBarItem, index: number) => void",signature:{arguments:[{type:{name:"signature",type:"object",raw:`{
|
|
49
|
+
id: string
|
|
50
|
+
name: string
|
|
51
|
+
icon?: IIconProps | ReactNode
|
|
52
|
+
activeIcon?: IIconProps | ReactNode
|
|
53
|
+
}`,signature:{properties:[{key:"id",value:{name:"string",required:!0}},{key:"name",value:{name:"string",required:!0}},{key:"icon",value:{name:"union",raw:"IIconProps | ReactNode",elements:[{name:"IOverride",elements:[{name:"Omit",elements:[{name:"intersection",raw:`React.ComponentProps<'svg'> & {
|
|
54
|
+
title?: string
|
|
55
|
+
titleId?: string
|
|
56
|
+
desc?: string
|
|
57
|
+
descId?: string
|
|
58
|
+
}`,elements:[{name:"ReactComponentProps",raw:"React.ComponentProps<'svg'>",elements:[{name:"literal",value:"'svg'"}]},{name:"signature",type:"object",raw:`{
|
|
59
|
+
title?: string
|
|
60
|
+
titleId?: string
|
|
61
|
+
desc?: string
|
|
62
|
+
descId?: string
|
|
63
|
+
}`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"titleId",value:{name:"string",required:!1}},{key:"desc",value:{name:"string",required:!1}},{key:"descId",value:{name:"string",required:!1}}]}}]},{name:"union",raw:"'name' | 'type' | 'children'",elements:[{name:"literal",value:"'name'"},{name:"literal",value:"'type'"},{name:"literal",value:"'children'"}]}],raw:"Omit<ISVGComponentProps, 'name' | 'type' | 'children'>"},{name:"intersection",raw:`{
|
|
64
|
+
size?: number | string
|
|
65
|
+
color?: IColor
|
|
66
|
+
animation?: IIconAnimation
|
|
67
|
+
} & ({ name: IIconName; type?: 'outline' | 'fill' } | { children: ReactNode })`,elements:[{name:"signature",type:"object",raw:`{
|
|
68
|
+
size?: number | string
|
|
69
|
+
color?: IColor
|
|
70
|
+
animation?: IIconAnimation
|
|
71
|
+
}`,signature:{properties:[{key:"size",value:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}],required:!1}},{key:"color",value:{name:"IColor",required:!1}},{key:"animation",value:{name:"union",raw:"'spin' | 'ping' | 'pulse' | 'bounce'",elements:[{name:"literal",value:"'spin'"},{name:"literal",value:"'ping'"},{name:"literal",value:"'pulse'"},{name:"literal",value:"'bounce'"}],required:!1}}]}},{name:"unknown"}]}],raw:`IOverride<
|
|
72
|
+
Omit<ISVGComponentProps, 'name' | 'type' | 'children'>,
|
|
73
|
+
IBaseIconProps
|
|
74
|
+
>`},{name:"ReactNode"}],required:!1}},{key:"activeIcon",value:{name:"union",raw:"IIconProps | ReactNode",elements:[{name:"IOverride",elements:[{name:"Omit",elements:[{name:"intersection",raw:`React.ComponentProps<'svg'> & {
|
|
75
|
+
title?: string
|
|
76
|
+
titleId?: string
|
|
77
|
+
desc?: string
|
|
78
|
+
descId?: string
|
|
79
|
+
}`,elements:[{name:"ReactComponentProps",raw:"React.ComponentProps<'svg'>",elements:[{name:"literal",value:"'svg'"}]},{name:"signature",type:"object",raw:`{
|
|
80
|
+
title?: string
|
|
81
|
+
titleId?: string
|
|
82
|
+
desc?: string
|
|
83
|
+
descId?: string
|
|
84
|
+
}`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"titleId",value:{name:"string",required:!1}},{key:"desc",value:{name:"string",required:!1}},{key:"descId",value:{name:"string",required:!1}}]}}]},{name:"union",raw:"'name' | 'type' | 'children'",elements:[{name:"literal",value:"'name'"},{name:"literal",value:"'type'"},{name:"literal",value:"'children'"}]}],raw:"Omit<ISVGComponentProps, 'name' | 'type' | 'children'>"},{name:"intersection",raw:`{
|
|
85
|
+
size?: number | string
|
|
86
|
+
color?: IColor
|
|
87
|
+
animation?: IIconAnimation
|
|
88
|
+
} & ({ name: IIconName; type?: 'outline' | 'fill' } | { children: ReactNode })`,elements:[{name:"signature",type:"object",raw:`{
|
|
89
|
+
size?: number | string
|
|
90
|
+
color?: IColor
|
|
91
|
+
animation?: IIconAnimation
|
|
92
|
+
}`,signature:{properties:[{key:"size",value:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}],required:!1}},{key:"color",value:{name:"IColor",required:!1}},{key:"animation",value:{name:"union",raw:"'spin' | 'ping' | 'pulse' | 'bounce'",elements:[{name:"literal",value:"'spin'"},{name:"literal",value:"'ping'"},{name:"literal",value:"'pulse'"},{name:"literal",value:"'bounce'"}],required:!1}}]}},{name:"unknown"}]}],raw:`IOverride<
|
|
93
|
+
Omit<ISVGComponentProps, 'name' | 'type' | 'children'>,
|
|
94
|
+
IBaseIconProps
|
|
95
|
+
>`},{name:"ReactNode"}],required:!1}}]}},name:"item"},{type:{name:"number"},name:"index"}],return:{name:"void"}}},description:""},safeAreaBottomOffset:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}}}};const A=()=>{const t=`
|
|
96
|
+
## ${e("common.table.title")}
|
|
97
|
+
|
|
98
|
+
| ${e("common.table.name")} | ${e("common.table.type")} | ${e("common.table.required")} | ${e("common.table.description")} |
|
|
99
|
+
| :--- | :--- | :--- | :--- |
|
|
100
|
+
| \`items\` | \`IBottomTabBarItem[]\` | ${e("common.table.yes")} | ${e("components.bottomTabBar.itemsDescription")} |
|
|
101
|
+
| \`activeId\` | \`string\` | ${e("common.table.yes")} | ${e("components.bottomTabBar.activeIdDescription")} |
|
|
102
|
+
| \`indicator\` | \`boolean\` | ${e("common.table.no")} | ${e("components.bottomTabBar.indicatorDescription")} |
|
|
103
|
+
| \`setCssVariable\` | \`boolean\` | ${e("common.table.no")} | ${e("components.bottomTabBar.setCssVariableDescription")} |
|
|
104
|
+
| \`safeAreaBottomOffset\` | \`boolean\` | ${e("common.table.no")} | ${e("components.bottomTabBar.safeAreaBottomOffsetDescription")} |
|
|
105
|
+
| \`className\` | \`string\` | ${e("common.table.no")} | ${e("components.bottomTabBar.classNameDescription")} |
|
|
106
|
+
| \`onItemClick\` | \`(item: IBottomTabBarItem, index: number) => void\` | ${e("common.table.no")} | ${e("components.bottomTabBar.onItemClickDescription")} |
|
|
107
|
+
| \`...props\` | \`ComponentProps<'div'>\` | ${e("common.table.no")} | ${e("components.bottomTabBar.propsDescription")} |
|
|
108
|
+
`;return n.jsxs(n.Fragment,{children:[n.jsx(j,{}),n.jsx(q,{}),n.jsx(f,{children:e("components.bottomTabBar.description")}),n.jsx(N,{}),n.jsx(f,{children:t}),n.jsx(P,{})]})},E={title:"Components/BottomTabBar",component:m,parameters:{layout:"fullscreen",docs:{page:A}},tags:["autodocs"],argTypes:{items:{control:!1,description:e("components.bottomTabBar.argTypes.itemsDescription"),table:{type:{summary:"IBottomTabBarItem[]"}}},activeId:{control:"text",description:e("components.bottomTabBar.argTypes.activeIdDescription"),table:{type:{summary:"string"}}},indicator:{control:"boolean",description:e("components.bottomTabBar.argTypes.indicatorDescription"),table:{type:{summary:"boolean"},defaultValue:{summary:"true"}}},setCssVariable:{control:"boolean",description:e("components.bottomTabBar.argTypes.setCssVariableDescription"),table:{type:{summary:"boolean"}}},safeAreaBottomOffset:{control:"boolean",description:e("components.bottomTabBar.argTypes.safeAreaBottomOffsetDescription"),table:{type:{summary:"boolean"},defaultValue:{summary:"true"}}},onItemClick:{action:"item-clicked",description:e("components.bottomTabBar.argTypes.onItemClickDescription"),table:{type:{summary:"(item: IBottomTabBarItem, index: number) => void"}}}}},d={storyName:e("components.bottomTabBar.stories.default.title"),render:()=>{const[t,a]=s.useState("1");return n.jsxs("div",{style:{position:"relative",height:"100vh"},children:[n.jsx("div",{style:{padding:"20px"},children:n.jsx("p",{children:e("components.bottomTabBar.stories.default.content")})}),n.jsx(m,{activeId:t,onItemClick:r=>a(r.id),items:[{id:"1",name:e("components.bottomTabBar.stories.tabs.home")},{id:"2",name:e("components.bottomTabBar.stories.tabs.search")},{id:"3",name:e("components.bottomTabBar.stories.tabs.profile")}]})]})}},p={storyName:e("components.bottomTabBar.stories.withIcons.title"),render:()=>{const[t,a]=s.useState("1");return n.jsxs("div",{style:{position:"relative",height:"100vh"},children:[n.jsx("div",{style:{padding:"20px"},children:n.jsx("p",{children:e("components.bottomTabBar.stories.withIcons.content")})}),n.jsx(m,{activeId:t,onItemClick:r=>a(r.id),items:[{id:"1",name:e("components.bottomTabBar.stories.tabs.home"),icon:{name:"placeholder"}},{id:"2",name:e("components.bottomTabBar.stories.tabs.search"),icon:{name:"placeholder"}},{id:"3",name:e("components.bottomTabBar.stories.tabs.profile"),icon:{name:"placeholder"}}]})]})}},u={storyName:e("components.bottomTabBar.stories.withActiveIcons.title"),render:()=>{const[t,a]=s.useState("1");return n.jsxs("div",{style:{position:"relative",height:"100vh"},children:[n.jsx("div",{style:{padding:"20px"},children:n.jsx("p",{children:e("components.bottomTabBar.stories.withActiveIcons.content")})}),n.jsx(m,{activeId:t,onItemClick:r=>a(r.id),items:[{id:"1",name:e("components.bottomTabBar.stories.tabs.home"),icon:{name:"placeholder",type:"outline"},activeIcon:{name:"placeholder",type:"fill"}},{id:"2",name:e("components.bottomTabBar.stories.tabs.search"),icon:{name:"placeholder",type:"outline"},activeIcon:{name:"placeholder",type:"fill"}},{id:"3",name:e("components.bottomTabBar.stories.tabs.profile"),icon:{name:"placeholder",type:"outline"},activeIcon:{name:"placeholder",type:"fill"}}]})]})}},b={storyName:e("components.bottomTabBar.stories.withoutIndicator.title"),render:()=>{const[t,a]=s.useState("1");return n.jsxs("div",{style:{position:"relative",height:"100vh"},children:[n.jsx("div",{style:{padding:"20px"},children:n.jsx("p",{children:e("components.bottomTabBar.stories.withoutIndicator.content")})}),n.jsx(m,{activeId:t,onItemClick:r=>a(r.id),indicator:!1,items:[{id:"1",name:e("components.bottomTabBar.stories.tabs.tab1")},{id:"2",name:e("components.bottomTabBar.stories.tabs.tab2")},{id:"3",name:e("components.bottomTabBar.stories.tabs.tab3")}]})]})}},v={storyName:e("components.bottomTabBar.stories.interactive.title"),render:()=>{const t=[{id:"1",name:e("components.bottomTabBar.stories.tabs.home"),icon:{name:"placeholder"}},{id:"2",name:e("components.bottomTabBar.stories.tabs.search"),icon:{name:"placeholder"}},{id:"3",name:e("components.bottomTabBar.stories.tabs.profile"),icon:{name:"placeholder"}}],[a,r]=s.useState("1");return n.jsxs("div",{style:{position:"relative",height:"100vh"},children:[n.jsx("div",{style:{padding:"20px"},children:n.jsx("p",{children:e("components.bottomTabBar.stories.interactive.activeTab",{tabName:t.find(l=>l.id===a)?.name||""})})}),n.jsx(m,{activeId:a,onItemClick:l=>r(l.id),items:t})]})}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
109
|
+
storyName: t('components.bottomTabBar.stories.default.title'),
|
|
110
|
+
render: () => {
|
|
111
|
+
const [activeId, setActiveId] = useState('1');
|
|
112
|
+
return <div style={{
|
|
113
|
+
position: 'relative',
|
|
114
|
+
height: '100vh'
|
|
115
|
+
}}>
|
|
116
|
+
<div style={{
|
|
117
|
+
padding: '20px'
|
|
118
|
+
}}>
|
|
119
|
+
<p>{t('components.bottomTabBar.stories.default.content')}</p>
|
|
120
|
+
</div>
|
|
121
|
+
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} items={[{
|
|
122
|
+
id: '1',
|
|
123
|
+
name: t('components.bottomTabBar.stories.tabs.home')
|
|
124
|
+
}, {
|
|
125
|
+
id: '2',
|
|
126
|
+
name: t('components.bottomTabBar.stories.tabs.search')
|
|
127
|
+
}, {
|
|
128
|
+
id: '3',
|
|
129
|
+
name: t('components.bottomTabBar.stories.tabs.profile')
|
|
130
|
+
}]} />
|
|
131
|
+
</div>;
|
|
132
|
+
}
|
|
133
|
+
}`,...d.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
134
|
+
storyName: t('components.bottomTabBar.stories.withIcons.title'),
|
|
135
|
+
render: () => {
|
|
136
|
+
const [activeId, setActiveId] = useState('1');
|
|
137
|
+
return <div style={{
|
|
138
|
+
position: 'relative',
|
|
139
|
+
height: '100vh'
|
|
140
|
+
}}>
|
|
141
|
+
<div style={{
|
|
142
|
+
padding: '20px'
|
|
143
|
+
}}>
|
|
144
|
+
<p>{t('components.bottomTabBar.stories.withIcons.content')}</p>
|
|
145
|
+
</div>
|
|
146
|
+
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} items={[{
|
|
147
|
+
id: '1',
|
|
148
|
+
name: t('components.bottomTabBar.stories.tabs.home'),
|
|
149
|
+
icon: {
|
|
150
|
+
name: 'placeholder'
|
|
151
|
+
}
|
|
152
|
+
}, {
|
|
153
|
+
id: '2',
|
|
154
|
+
name: t('components.bottomTabBar.stories.tabs.search'),
|
|
155
|
+
icon: {
|
|
156
|
+
name: 'placeholder'
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
id: '3',
|
|
160
|
+
name: t('components.bottomTabBar.stories.tabs.profile'),
|
|
161
|
+
icon: {
|
|
162
|
+
name: 'placeholder'
|
|
163
|
+
}
|
|
164
|
+
}]} />
|
|
165
|
+
</div>;
|
|
166
|
+
}
|
|
167
|
+
}`,...p.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
|
|
168
|
+
storyName: t('components.bottomTabBar.stories.withActiveIcons.title'),
|
|
169
|
+
render: () => {
|
|
170
|
+
const [activeId, setActiveId] = useState('1');
|
|
171
|
+
return <div style={{
|
|
172
|
+
position: 'relative',
|
|
173
|
+
height: '100vh'
|
|
174
|
+
}}>
|
|
175
|
+
<div style={{
|
|
176
|
+
padding: '20px'
|
|
177
|
+
}}>
|
|
178
|
+
<p>{t('components.bottomTabBar.stories.withActiveIcons.content')}</p>
|
|
179
|
+
</div>
|
|
180
|
+
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} items={[{
|
|
181
|
+
id: '1',
|
|
182
|
+
name: t('components.bottomTabBar.stories.tabs.home'),
|
|
183
|
+
icon: {
|
|
184
|
+
name: 'placeholder',
|
|
185
|
+
type: 'outline'
|
|
186
|
+
},
|
|
187
|
+
activeIcon: {
|
|
188
|
+
name: 'placeholder',
|
|
189
|
+
type: 'fill'
|
|
190
|
+
}
|
|
191
|
+
}, {
|
|
192
|
+
id: '2',
|
|
193
|
+
name: t('components.bottomTabBar.stories.tabs.search'),
|
|
194
|
+
icon: {
|
|
195
|
+
name: 'placeholder',
|
|
196
|
+
type: 'outline'
|
|
197
|
+
},
|
|
198
|
+
activeIcon: {
|
|
199
|
+
name: 'placeholder',
|
|
200
|
+
type: 'fill'
|
|
201
|
+
}
|
|
202
|
+
}, {
|
|
203
|
+
id: '3',
|
|
204
|
+
name: t('components.bottomTabBar.stories.tabs.profile'),
|
|
205
|
+
icon: {
|
|
206
|
+
name: 'placeholder',
|
|
207
|
+
type: 'outline'
|
|
208
|
+
},
|
|
209
|
+
activeIcon: {
|
|
210
|
+
name: 'placeholder',
|
|
211
|
+
type: 'fill'
|
|
212
|
+
}
|
|
213
|
+
}]} />
|
|
214
|
+
</div>;
|
|
215
|
+
}
|
|
216
|
+
}`,...u.parameters?.docs?.source}}};b.parameters={...b.parameters,docs:{...b.parameters?.docs,source:{originalSource:`{
|
|
217
|
+
storyName: t('components.bottomTabBar.stories.withoutIndicator.title'),
|
|
218
|
+
render: () => {
|
|
219
|
+
const [activeId, setActiveId] = useState('1');
|
|
220
|
+
return <div style={{
|
|
221
|
+
position: 'relative',
|
|
222
|
+
height: '100vh'
|
|
223
|
+
}}>
|
|
224
|
+
<div style={{
|
|
225
|
+
padding: '20px'
|
|
226
|
+
}}>
|
|
227
|
+
<p>{t('components.bottomTabBar.stories.withoutIndicator.content')}</p>
|
|
228
|
+
</div>
|
|
229
|
+
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} indicator={false} items={[{
|
|
230
|
+
id: '1',
|
|
231
|
+
name: t('components.bottomTabBar.stories.tabs.tab1')
|
|
232
|
+
}, {
|
|
233
|
+
id: '2',
|
|
234
|
+
name: t('components.bottomTabBar.stories.tabs.tab2')
|
|
235
|
+
}, {
|
|
236
|
+
id: '3',
|
|
237
|
+
name: t('components.bottomTabBar.stories.tabs.tab3')
|
|
238
|
+
}]} />
|
|
239
|
+
</div>;
|
|
240
|
+
}
|
|
241
|
+
}`,...b.parameters?.docs?.source}}};v.parameters={...v.parameters,docs:{...v.parameters?.docs,source:{originalSource:`{
|
|
242
|
+
storyName: t('components.bottomTabBar.stories.interactive.title'),
|
|
243
|
+
render: () => {
|
|
244
|
+
const items = [{
|
|
245
|
+
id: '1',
|
|
246
|
+
name: t('components.bottomTabBar.stories.tabs.home'),
|
|
247
|
+
icon: {
|
|
248
|
+
name: 'placeholder'
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
id: '2',
|
|
252
|
+
name: t('components.bottomTabBar.stories.tabs.search'),
|
|
253
|
+
icon: {
|
|
254
|
+
name: 'placeholder'
|
|
255
|
+
}
|
|
256
|
+
}, {
|
|
257
|
+
id: '3',
|
|
258
|
+
name: t('components.bottomTabBar.stories.tabs.profile'),
|
|
259
|
+
icon: {
|
|
260
|
+
name: 'placeholder'
|
|
261
|
+
}
|
|
262
|
+
}] as IBottomTabBarItem[];
|
|
263
|
+
const [activeId, setActiveId] = useState('1');
|
|
264
|
+
return <div style={{
|
|
265
|
+
position: 'relative',
|
|
266
|
+
height: '100vh'
|
|
267
|
+
}}>
|
|
268
|
+
<div style={{
|
|
269
|
+
padding: '20px'
|
|
270
|
+
}}>
|
|
271
|
+
<p>
|
|
272
|
+
{t('components.bottomTabBar.stories.interactive.activeTab', {
|
|
273
|
+
tabName: items.find(item => item.id === activeId)?.name || ''
|
|
274
|
+
})}
|
|
275
|
+
</p>
|
|
276
|
+
</div>
|
|
277
|
+
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} items={items} />
|
|
278
|
+
</div>;
|
|
279
|
+
}
|
|
280
|
+
}`,...v.parameters?.docs?.source}}};const M=["Default","WithIcons","WithActiveIcons","WithoutIndicator","Interactive"];export{d as Default,v as Interactive,u as WithActiveIcons,p as WithIcons,b as WithoutIndicator,M as __namedExportsOrder,E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as u}from"./iframe-Crg_lbde.js";import{c as f,g as N}from"./classname-Bl5epEs-.js";import{T as b}from"./typography-CMIMyivt.js";import{r as j}from"./icon-Cc9W858e.js";const v={medium:"small",large:"base"},e=N("button"),g=({shape:p="rounded",size:m="medium",type:c="solid",theme:a="default",disabled:i,loading:s,children:r,className:$,leadingIcon:o,trailingIcon:l,htmlType:_,block:x,...d})=>{a=a==="default"?"brand":a;const n=(t,y)=>t?u.jsx("span",{className:f(`${e}__icon`,y),children:j(t)}):null;return u.jsxs("button",{...d,onClick:t=>{i||s||d.onClick?.(t)},disabled:i,type:_,className:f(e,{[`${e}--${p}`]:!0,[`${e}--${m}`]:!0,[`${e}--${c}`]:!0,[`${e}--block`]:x,[`${e}--theme-${a}`]:!0,[`${e}--icon-only`]:!r&&(o&&!l||!o&&l),[`${e}--loading`]:s},$),children:[u.jsx("span",{className:`${e}__overlay`}),!!s&&n({name:"loader",animation:"spin"},`${e}__icon--loading`),!s&&n(o,`${e}__icon--leading`),!!r&&u.jsx(b,{size:v[m],weight:"medium",children:r}),n(l,`${e}__icon--trailing`)]})};g.__docgenInfo={description:"",methods:[],displayName:"Button",props:{shape:{defaultValue:{value:"'rounded'",computed:!1},required:!1},size:{defaultValue:{value:"'medium'",computed:!1},required:!1},type:{defaultValue:{value:"'solid'",computed:!1},required:!1},theme:{defaultValue:{value:"'default'",computed:!1},required:!1}}};export{g as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-Crg_lbde.js";import{T as y,S as x,a as u,P as h,b as g}from"./blocks-CB7UwFa4.js";import{B as o}from"./button-BLW8SOpg.js";import{t}from"./store-BwIebEt6.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CdnALcTP.js";import"./classname-Bl5epEs-.js";import"./typography-CMIMyivt.js";import"./colors-_6nFGM3e.js";import"./icon-Cc9W858e.js";const f=()=>{const b=`
|
|
2
2
|
## ${t("common.table.title")}
|
|
3
3
|
|
|
4
4
|
| ${t("common.table.name")} | ${t("common.table.type")} | ${t("common.table.required")} | ${t("common.table.description")} |
|
|
@@ -16,7 +16,7 @@ import{j as e}from"./iframe-DfPay7Zl.js";import{T as y,S as x,M as u,P as h,a as
|
|
|
16
16
|
| \`children\` | \`ReactNode\` | ${t("common.table.no")} | ${t("components.button.childrenDescription")} |
|
|
17
17
|
| \`className\` | \`string\` | ${t("common.table.no")} | ${t("components.button.classNameDescription")} |
|
|
18
18
|
| \`...props\` | \`ComponentPropsWithRef<'button'>\` | ${t("common.table.no")} | ${t("components.button.propsDescription")} |
|
|
19
|
-
`;return e.jsxs(e.Fragment,{children:[e.jsx(y,{}),e.jsx(x,{}),e.jsx(u,{children:t("components.button.description")}),e.jsx(h,{}),e.jsx(u,{children:b}),e.jsx(g,{})]})},
|
|
19
|
+
`;return e.jsxs(e.Fragment,{children:[e.jsx(y,{}),e.jsx(x,{}),e.jsx(u,{children:t("components.button.description")}),e.jsx(h,{}),e.jsx(u,{children:b}),e.jsx(g,{})]})},T={title:"Components/Button",component:o,parameters:{layout:"padded",docs:{page:f}},tags:["autodocs"],argTypes:{shape:{control:"select",options:["rounded","pill"],description:t("components.button.argTypes.shapeDescription"),table:{type:{summary:"IButtonShape"},defaultValue:{summary:"rounded"}}},size:{control:"select",options:["large","medium"],description:t("components.button.argTypes.sizeDescription"),table:{type:{summary:"IButtonSize"},defaultValue:{summary:"medium"}}},type:{control:"select",options:["solid","solid-subtle","outline","ghost"],description:t("components.button.argTypes.typeDescription"),table:{type:{summary:"IButtonType"},defaultValue:{summary:"solid"}}},theme:{control:"select",options:["default","brand","neutral","neutral-inverse"],description:t("components.button.argTypes.themeDescription"),table:{type:{summary:"IButtonTheme"},defaultValue:{summary:"default"}}},disabled:{control:"boolean",description:t("components.button.argTypes.disabledDescription"),table:{type:{summary:"boolean"}}},loading:{control:"boolean",description:t("components.button.argTypes.loadingDescription"),table:{type:{summary:"boolean"}}},leadingIcon:{control:!1,description:t("components.button.argTypes.leadingIconDescription"),table:{type:{summary:"IIconProps | ReactNode"}}},trailingIcon:{control:!1,description:t("components.button.argTypes.trailingIconDescription"),table:{type:{summary:"IIconProps | ReactNode"}}},htmlType:{control:"select",options:["button","submit","reset"],description:t("components.button.argTypes.htmlTypeDescription"),table:{type:{summary:'"button" | "submit" | "reset"'}}},block:{control:"boolean",description:t("components.button.argTypes.blockDescription"),table:{type:{summary:"boolean"}}},children:{control:"text",description:t("components.button.argTypes.childrenDescription"),table:{type:{summary:"ReactNode"}}}}},n={storyName:t("components.button.stories.default.title"),args:{children:t("components.button.stories.default.label")}},s={storyName:t("components.button.stories.themes.title"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{theme:"brand",children:t("components.button.stories.themes.brand")}),e.jsx(o,{theme:"neutral",children:t("components.button.stories.themes.neutral")}),e.jsx(o,{theme:"neutral-inverse",children:t("components.button.stories.themes.neutralInverse")})]})},i={storyName:t("components.button.stories.types.title"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{type:"solid",children:t("components.button.stories.types.solid")}),e.jsx(o,{type:"solid-subtle",children:t("components.button.stories.types.solidSubtle")}),e.jsx(o,{type:"outline",children:t("components.button.stories.types.outline")}),e.jsx(o,{type:"ghost",children:t("components.button.stories.types.ghost")})]}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{type:"solid",theme:"neutral",children:t("components.button.stories.types.solid")}),e.jsx(o,{type:"solid-subtle",theme:"neutral",children:t("components.button.stories.types.solidSubtle")}),e.jsx(o,{type:"outline",theme:"neutral",children:t("components.button.stories.types.outline")}),e.jsx(o,{type:"ghost",theme:"neutral",children:t("components.button.stories.types.ghost")})]})]})},r={storyName:t("components.button.stories.sizes.title"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"12px",alignItems:"center"},children:[e.jsx(o,{size:"medium",children:t("components.button.stories.sizes.medium")}),e.jsx(o,{size:"large",children:t("components.button.stories.sizes.large")})]})},l={storyName:t("components.button.stories.shapes.title"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{shape:"rounded",children:t("components.button.stories.shapes.rounded")}),e.jsx(o,{shape:"pill",children:t("components.button.stories.shapes.pill")})]})},a={storyName:t("components.button.stories.withIcons.title"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{leadingIcon:{name:"placeholder"},children:t("components.button.stories.icons.leading")}),e.jsx(o,{trailingIcon:{name:"placeholder"},children:t("components.button.stories.icons.trailing")}),e.jsx(o,{leadingIcon:{name:"placeholder"},trailingIcon:{name:"placeholder"},children:t("components.button.stories.icons.both")})]}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{leadingIcon:{name:"placeholder"}}),e.jsx(o,{trailingIcon:{name:"placeholder"}})]})]})},p={storyName:t("components.button.stories.states.title"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{children:t("components.button.stories.states.default")}),e.jsx(o,{disabled:!0,children:t("components.button.stories.states.disabled")}),e.jsx(o,{loading:!0,children:t("components.button.stories.states.loading")}),e.jsx(o,{disabled:!0,loading:!0,children:t("components.button.stories.states.disabledLoading")})]}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{type:"outline",children:t("components.button.stories.states.default")}),e.jsx(o,{type:"outline",disabled:!0,children:t("components.button.stories.states.disabled")}),e.jsx(o,{type:"outline",loading:!0,children:t("components.button.stories.states.loading")})]})]})},c={storyName:t("components.button.stories.blockButton.title"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px",maxWidth:"400px"},children:[e.jsx(o,{block:!0,children:t("components.button.stories.block.fullWidth")}),e.jsx(o,{block:!0,type:"outline",children:t("components.button.stories.block.fullWidthOutline")}),e.jsx(o,{block:!0,loading:!0,children:t("components.button.stories.block.fullWidthLoading")})]})},d={storyName:t("components.button.stories.completeExample.title"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:t("components.button.stories.complete.primaryActions")}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{type:"solid",size:"large",leadingIcon:{name:"placeholder"},children:t("components.button.stories.complete.saveChanges")}),e.jsx(o,{type:"outline",size:"large",children:t("components.button.stories.complete.cancel")})]})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:t("components.button.stories.complete.secondaryActions")}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{type:"solid-subtle",theme:"neutral",children:t("components.button.stories.complete.secondary")}),e.jsx(o,{type:"ghost",theme:"neutral",children:t("components.button.stories.complete.tertiary")})]})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:t("components.button.stories.complete.iconButtons")}),e.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[e.jsx(o,{leadingIcon:{name:"placeholder"}}),e.jsx(o,{trailingIcon:{name:"placeholder"}}),e.jsx(o,{leadingIcon:{name:"placeholder"},shape:"pill"})]})]})]})},m={storyName:t("components.button.stories.interactive.title"),args:{children:t("components.button.stories.interactive.label"),shape:"rounded",size:"medium",type:"solid",theme:"default",disabled:!1,loading:!1,block:!1}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
|
|
20
20
|
storyName: t('components.button.stories.default.title'),
|
|
21
21
|
args: {
|
|
22
22
|
children: t('components.button.stories.default.label')
|
|
@@ -284,4 +284,4 @@ import{j as e}from"./iframe-DfPay7Zl.js";import{T as y,S as x,M as u,P as h,a as
|
|
|
284
284
|
loading: false,
|
|
285
285
|
block: false
|
|
286
286
|
}
|
|
287
|
-
}`,...m.parameters?.docs?.source}}};const
|
|
287
|
+
}`,...m.parameters?.docs?.source}}};const k=["Default","Themes","Types","Sizes","Shapes","WithIcons","States","BlockButton","CompleteExample","Interactive"];export{c as BlockButton,d as CompleteExample,n as Default,m as Interactive,l as Shapes,r as Sizes,p as States,s as Themes,i as Types,a as WithIcons,k as __namedExportsOrder,T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as T,j as l}from"./iframe-Crg_lbde.js";import{c as z,g as sa}from"./classname-Bl5epEs-.js";import{d as U}from"./date-DWIyMGld.js";import{u as la}from"./index-hDlmuyu2.js";import{c as za}from"./react-DO0-owxu.js";import{B as H}from"./button-BLW8SOpg.js";import{I as J}from"./icon-Cc9W858e.js";import{T as R}from"./typography-CMIMyivt.js";var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var we,_r;function Ea(){if(_r)return we;_r=1;function e(){this.__data__=[],this.size=0}return we=e,we}var $e,gr;function fe(){if(gr)return $e;gr=1;function e(t,r){return t===r||t!==t&&r!==r}return $e=e,$e}var De,pr;function de(){if(pr)return De;pr=1;var e=fe();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return De=t,De}var Ne,mr;function La(){if(mr)return Ne;mr=1;var e=de(),t=Array.prototype,r=t.splice;function n(a){var o=this.__data__,i=e(o,a);if(i<0)return!1;var u=o.length-1;return i==u?o.pop():r.call(o,i,1),--this.size,!0}return Ne=n,Ne}var Oe,br;function Fa(){if(br)return Oe;br=1;var e=de();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return Oe=t,Oe}var Me,jr;function Ta(){if(jr)return Me;jr=1;var e=de();function t(r){return e(this.__data__,r)>-1}return Me=t,Me}var Se,xr;function Ya(){if(xr)return Se;xr=1;var e=de();function t(r,n){var a=this.__data__,o=e(a,r);return o<0?(++this.size,a.push([r,n])):a[o][1]=n,this}return Se=t,Se}var Ce,wr;function ve(){if(wr)return Ce;wr=1;var e=Ea(),t=La(),r=Fa(),n=Ta(),a=Ya();function o(i){var u=-1,c=i==null?0:i.length;for(this.clear();++u<c;){var s=i[u];this.set(s[0],s[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,Ce=o,Ce}var ke,$r;function Ia(){if($r)return ke;$r=1;var e=ve();function t(){this.__data__=new e,this.size=0}return ke=t,ke}var Ae,Dr;function Ra(){if(Dr)return Ae;Dr=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ae=e,Ae}var ze,Nr;function Ba(){if(Nr)return ze;Nr=1;function e(t){return this.__data__.get(t)}return ze=e,ze}var Pe,Or;function Va(){if(Or)return Pe;Or=1;function e(t){return this.__data__.has(t)}return Pe=e,Pe}var Ee,Mr;function fa(){if(Mr)return Ee;Mr=1;var e=typeof ue=="object"&&ue&&ue.Object===Object&&ue;return Ee=e,Ee}var Le,Sr;function ee(){if(Sr)return Le;Sr=1;var e=fa(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Le=r,Le}var Fe,Cr;function da(){if(Cr)return Fe;Cr=1;var e=ee(),t=e.Symbol;return Fe=t,Fe}var Te,kr;function Ua(){if(kr)return Te;kr=1;var e=da(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function o(i){var u=r.call(i,a),c=i[a];try{i[a]=void 0;var s=!0}catch{}var d=n.call(i);return s&&(u?i[a]=c:delete i[a]),d}return Te=o,Te}var Ye,Ar;function Ga(){if(Ar)return Ye;Ar=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ye=r,Ye}var Ie,zr;function he(){if(zr)return Ie;zr=1;var e=da(),t=Ua(),r=Ga(),n="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function i(u){return u==null?u===void 0?a:n:o&&o in Object(u)?t(u):r(u)}return Ie=i,Ie}var Re,Pr;function Q(){if(Pr)return Re;Pr=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Re=e,Re}var Be,Er;function sr(){if(Er)return Be;Er=1;var e=he(),t=Q(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function i(u){if(!t(u))return!1;var c=e(u);return c==n||c==a||c==r||c==o}return Be=i,Be}var Ve,Lr;function Ka(){if(Lr)return Ve;Lr=1;var e=ee(),t=e["__core-js_shared__"];return Ve=t,Ve}var Ue,Fr;function Wa(){if(Fr)return Ue;Fr=1;var e=Ka(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Ue=r,Ue}var Ge,Tr;function qa(){if(Tr)return Ge;Tr=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Ge=r,Ge}var Ke,Yr;function Ha(){if(Yr)return Ke;Yr=1;var e=sr(),t=Wa(),r=Q(),n=qa(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,i=Function.prototype,u=Object.prototype,c=i.toString,s=u.hasOwnProperty,d=RegExp("^"+c.call(s).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(g){if(!r(g)||t(g))return!1;var N=e(g)?d:o;return N.test(n(g))}return Ke=h,Ke}var We,Ir;function Ja(){if(Ir)return We;Ir=1;function e(t,r){return t?.[r]}return We=e,We}var qe,Rr;function lr(){if(Rr)return qe;Rr=1;var e=Ha(),t=Ja();function r(n,a){var o=t(n,a);return e(o)?o:void 0}return qe=r,qe}var He,Br;function va(){if(Br)return He;Br=1;var e=lr(),t=ee(),r=e(t,"Map");return He=r,He}var Je,Vr;function ye(){if(Vr)return Je;Vr=1;var e=lr(),t=e(Object,"create");return Je=t,Je}var Qe,Ur;function Qa(){if(Ur)return Qe;Ur=1;var e=ye();function t(){this.__data__=e?e(null):{},this.size=0}return Qe=t,Qe}var Xe,Gr;function Xa(){if(Gr)return Xe;Gr=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Xe=e,Xe}var Ze,Kr;function Za(){if(Kr)return Ze;Kr=1;var e=ye(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(o){var i=this.__data__;if(e){var u=i[o];return u===t?void 0:u}return n.call(i,o)?i[o]:void 0}return Ze=a,Ze}var et,Wr;function eo(){if(Wr)return et;Wr=1;var e=ye(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var o=this.__data__;return e?o[a]!==void 0:r.call(o,a)}return et=n,et}var tt,qr;function to(){if(qr)return tt;qr=1;var e=ye(),t="__lodash_hash_undefined__";function r(n,a){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&a===void 0?t:a,this}return tt=r,tt}var rt,Hr;function ro(){if(Hr)return rt;Hr=1;var e=Qa(),t=Xa(),r=Za(),n=eo(),a=to();function o(i){var u=-1,c=i==null?0:i.length;for(this.clear();++u<c;){var s=i[u];this.set(s[0],s[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,rt=o,rt}var nt,Jr;function no(){if(Jr)return nt;Jr=1;var e=ro(),t=ve(),r=va();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return nt=n,nt}var at,Qr;function ao(){if(Qr)return at;Qr=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return at=e,at}var ot,Xr;function _e(){if(Xr)return ot;Xr=1;var e=ao();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return ot=t,ot}var it,Zr;function oo(){if(Zr)return it;Zr=1;var e=_e();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return it=t,it}var ut,en;function io(){if(en)return ut;en=1;var e=_e();function t(r){return e(this,r).get(r)}return ut=t,ut}var ct,tn;function uo(){if(tn)return ct;tn=1;var e=_e();function t(r){return e(this,r).has(r)}return ct=t,ct}var st,rn;function co(){if(rn)return st;rn=1;var e=_e();function t(r,n){var a=e(this,r),o=a.size;return a.set(r,n),this.size+=a.size==o?0:1,this}return st=t,st}var lt,nn;function so(){if(nn)return lt;nn=1;var e=no(),t=oo(),r=io(),n=uo(),a=co();function o(i){var u=-1,c=i==null?0:i.length;for(this.clear();++u<c;){var s=i[u];this.set(s[0],s[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,lt=o,lt}var ft,an;function lo(){if(an)return ft;an=1;var e=ve(),t=va(),r=so(),n=200;function a(o,i){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([o,i]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(o,i),this.size=u.size,this}return ft=a,ft}var dt,on;function fo(){if(on)return dt;on=1;var e=ve(),t=Ia(),r=Ra(),n=Ba(),a=Va(),o=lo();function i(u){var c=this.__data__=new e(u);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=a,i.prototype.set=o,dt=i,dt}var vt,un;function ha(){if(un)return vt;un=1;var e=lr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return vt=t,vt}var ht,cn;function fr(){if(cn)return ht;cn=1;var e=ha();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return ht=t,ht}var yt,sn;function ya(){if(sn)return yt;sn=1;var e=fr(),t=fe();function r(n,a,o){(o!==void 0&&!t(n[a],o)||o===void 0&&!(a in n))&&e(n,a,o)}return yt=r,yt}var _t,ln;function vo(){if(ln)return _t;ln=1;function e(t){return function(r,n,a){for(var o=-1,i=Object(r),u=a(r),c=u.length;c--;){var s=u[t?c:++o];if(n(i[s],s,i)===!1)break}return r}}return _t=e,_t}var gt,fn;function ho(){if(fn)return gt;fn=1;var e=vo(),t=e();return gt=t,gt}var ce={exports:{}};ce.exports;var dn;function yo(){return dn||(dn=1,(function(e,t){var r=ee(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o?r.Buffer:void 0,u=i?i.allocUnsafe:void 0;function c(s,d){if(d)return s.slice();var h=s.length,g=u?u(h):new s.constructor(h);return s.copy(g),g}e.exports=c})(ce,ce.exports)),ce.exports}var pt,vn;function _o(){if(vn)return pt;vn=1;var e=ee(),t=e.Uint8Array;return pt=t,pt}var mt,hn;function go(){if(hn)return mt;hn=1;var e=_o();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return mt=t,mt}var bt,yn;function po(){if(yn)return bt;yn=1;var e=go();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.length)}return bt=t,bt}var jt,_n;function mo(){if(_n)return jt;_n=1;function e(t,r){var n=-1,a=t.length;for(r||(r=Array(a));++n<a;)r[n]=t[n];return r}return jt=e,jt}var xt,gn;function bo(){if(gn)return xt;gn=1;var e=Q(),t=Object.create,r=(function(){function n(){}return function(a){if(!e(a))return{};if(t)return t(a);n.prototype=a;var o=new n;return n.prototype=void 0,o}})();return xt=r,xt}var wt,pn;function jo(){if(pn)return wt;pn=1;function e(t,r){return function(n){return t(r(n))}}return wt=e,wt}var $t,mn;function _a(){if(mn)return $t;mn=1;var e=jo(),t=e(Object.getPrototypeOf,Object);return $t=t,$t}var Dt,bn;function ga(){if(bn)return Dt;bn=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return Dt=t,Dt}var Nt,jn;function xo(){if(jn)return Nt;jn=1;var e=bo(),t=_a(),r=ga();function n(a){return typeof a.constructor=="function"&&!r(a)?e(t(a)):{}}return Nt=n,Nt}var Ot,xn;function ae(){if(xn)return Ot;xn=1;function e(t){return t!=null&&typeof t=="object"}return Ot=e,Ot}var Mt,wn;function wo(){if(wn)return Mt;wn=1;var e=he(),t=ae(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return Mt=n,Mt}var St,$n;function pa(){if($n)return St;$n=1;var e=wo(),t=ae(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(i){return t(i)&&n.call(i,"callee")&&!a.call(i,"callee")};return St=o,St}var Ct,Dn;function ma(){if(Dn)return Ct;Dn=1;var e=Array.isArray;return Ct=e,Ct}var kt,Nn;function ba(){if(Nn)return kt;Nn=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return kt=t,kt}var At,On;function dr(){if(On)return At;On=1;var e=sr(),t=ba();function r(n){return n!=null&&t(n.length)&&!e(n)}return At=r,At}var zt,Mn;function $o(){if(Mn)return zt;Mn=1;var e=dr(),t=ae();function r(n){return t(n)&&e(n)}return zt=r,zt}var se={exports:{}},Pt,Sn;function Do(){if(Sn)return Pt;Sn=1;function e(){return!1}return Pt=e,Pt}se.exports;var Cn;function ja(){return Cn||(Cn=1,(function(e,t){var r=ee(),n=Do(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,u=i?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(se,se.exports)),se.exports}var Et,kn;function No(){if(kn)return Et;kn=1;var e=he(),t=_a(),r=ae(),n="[object Object]",a=Function.prototype,o=Object.prototype,i=a.toString,u=o.hasOwnProperty,c=i.call(Object);function s(d){if(!r(d)||e(d)!=n)return!1;var h=t(d);if(h===null)return!0;var g=u.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&i.call(g)==c}return Et=s,Et}var Lt,An;function Oo(){if(An)return Lt;An=1;var e=he(),t=ba(),r=ae(),n="[object Arguments]",a="[object Array]",o="[object Boolean]",i="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",d="[object Number]",h="[object Object]",g="[object RegExp]",N="[object Set]",S="[object String]",w="[object WeakMap]",$="[object ArrayBuffer]",E="[object DataView]",j="[object Float32Array]",x="[object Float64Array]",Y="[object Int8Array]",_="[object Int16Array]",C="[object Int32Array]",D="[object Uint8Array]",y="[object Uint8ClampedArray]",V="[object Uint16Array]",v="[object Uint32Array]",f={};f[j]=f[x]=f[Y]=f[_]=f[C]=f[D]=f[y]=f[V]=f[v]=!0,f[n]=f[a]=f[$]=f[o]=f[E]=f[i]=f[u]=f[c]=f[s]=f[d]=f[h]=f[g]=f[N]=f[S]=f[w]=!1;function k(L){return r(L)&&t(L.length)&&!!f[e(L)]}return Lt=k,Lt}var Ft,zn;function Mo(){if(zn)return Ft;zn=1;function e(t){return function(r){return t(r)}}return Ft=e,Ft}var le={exports:{}};le.exports;var Pn;function So(){return Pn||(Pn=1,(function(e,t){var r=fa(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,u=(function(){try{var c=a&&a.require&&a.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}})();e.exports=u})(le,le.exports)),le.exports}var Tt,En;function xa(){if(En)return Tt;En=1;var e=Oo(),t=Mo(),r=So(),n=r&&r.isTypedArray,a=n?t(n):e;return Tt=a,Tt}var Yt,Ln;function wa(){if(Ln)return Yt;Ln=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Yt=e,Yt}var It,Fn;function Co(){if(Fn)return It;Fn=1;var e=fr(),t=fe(),r=Object.prototype,n=r.hasOwnProperty;function a(o,i,u){var c=o[i];(!(n.call(o,i)&&t(c,u))||u===void 0&&!(i in o))&&e(o,i,u)}return It=a,It}var Rt,Tn;function ko(){if(Tn)return Rt;Tn=1;var e=Co(),t=fr();function r(n,a,o,i){var u=!o;o||(o={});for(var c=-1,s=a.length;++c<s;){var d=a[c],h=i?i(o[d],n[d],d,o,n):void 0;h===void 0&&(h=n[d]),u?t(o,d,h):e(o,d,h)}return o}return Rt=r,Rt}var Bt,Yn;function Ao(){if(Yn)return Bt;Yn=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return Bt=e,Bt}var Vt,In;function $a(){if(In)return Vt;In=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var o=typeof n;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return Vt=r,Vt}var Ut,Rn;function zo(){if(Rn)return Ut;Rn=1;var e=Ao(),t=pa(),r=ma(),n=ja(),a=$a(),o=xa(),i=Object.prototype,u=i.hasOwnProperty;function c(s,d){var h=r(s),g=!h&&t(s),N=!h&&!g&&n(s),S=!h&&!g&&!N&&o(s),w=h||g||N||S,$=w?e(s.length,String):[],E=$.length;for(var j in s)(d||u.call(s,j))&&!(w&&(j=="length"||N&&(j=="offset"||j=="parent")||S&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||a(j,E)))&&$.push(j);return $}return Ut=c,Ut}var Gt,Bn;function Po(){if(Bn)return Gt;Bn=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Gt=e,Gt}var Kt,Vn;function Eo(){if(Vn)return Kt;Vn=1;var e=Q(),t=ga(),r=Po(),n=Object.prototype,a=n.hasOwnProperty;function o(i){if(!e(i))return r(i);var u=t(i),c=[];for(var s in i)s=="constructor"&&(u||!a.call(i,s))||c.push(s);return c}return Kt=o,Kt}var Wt,Un;function Da(){if(Un)return Wt;Un=1;var e=zo(),t=Eo(),r=dr();function n(a){return r(a)?e(a,!0):t(a)}return Wt=n,Wt}var qt,Gn;function Lo(){if(Gn)return qt;Gn=1;var e=ko(),t=Da();function r(n){return e(n,t(n))}return qt=r,qt}var Ht,Kn;function Fo(){if(Kn)return Ht;Kn=1;var e=ya(),t=yo(),r=po(),n=mo(),a=xo(),o=pa(),i=ma(),u=$o(),c=ja(),s=sr(),d=Q(),h=No(),g=xa(),N=wa(),S=Lo();function w($,E,j,x,Y,_,C){var D=N($,j),y=N(E,j),V=C.get(y);if(V){e($,j,V);return}var v=_?_(D,y,j+"",$,E,C):void 0,f=v===void 0;if(f){var k=i(y),L=!k&&c(y),G=!k&&!L&&g(y);v=y,k||L||G?i(D)?v=D:u(D)?v=n(D):L?(f=!1,v=t(y,!0)):G?(f=!1,v=r(y,!0)):v=[]:h(y)||o(y)?(v=D,o(D)?v=S(D):(!d(D)||s(D))&&(v=a(y))):f=!1}f&&(C.set(y,v),Y(v,y,x,_,C),C.delete(y)),e($,j,v)}return Ht=w,Ht}var Jt,Wn;function To(){if(Wn)return Jt;Wn=1;var e=fo(),t=ya(),r=ho(),n=Fo(),a=Q(),o=Da(),i=wa();function u(c,s,d,h,g){c!==s&&r(s,function(N,S){if(g||(g=new e),a(N))n(c,s,S,d,u,h,g);else{var w=h?h(i(c,S),N,S+"",c,s,g):void 0;w===void 0&&(w=N),t(c,S,w)}},o)}return Jt=u,Jt}var Qt,qn;function Na(){if(qn)return Qt;qn=1;function e(t){return t}return Qt=e,Qt}var Xt,Hn;function Yo(){if(Hn)return Xt;Hn=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Xt=e,Xt}var Zt,Jn;function Io(){if(Jn)return Zt;Jn=1;var e=Yo(),t=Math.max;function r(n,a,o){return a=t(a===void 0?n.length-1:a,0),function(){for(var i=arguments,u=-1,c=t(i.length-a,0),s=Array(c);++u<c;)s[u]=i[a+u];u=-1;for(var d=Array(a+1);++u<a;)d[u]=i[u];return d[a]=o(s),e(n,this,d)}}return Zt=r,Zt}var er,Qn;function Ro(){if(Qn)return er;Qn=1;function e(t){return function(){return t}}return er=e,er}var tr,Xn;function Bo(){if(Xn)return tr;Xn=1;var e=Ro(),t=ha(),r=Na(),n=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return tr=n,tr}var rr,Zn;function Vo(){if(Zn)return rr;Zn=1;var e=800,t=16,r=Date.now;function n(a){var o=0,i=0;return function(){var u=r(),c=t-(u-i);if(i=u,c>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return rr=n,rr}var nr,ea;function Uo(){if(ea)return nr;ea=1;var e=Bo(),t=Vo(),r=t(e);return nr=r,nr}var ar,ta;function Go(){if(ta)return ar;ta=1;var e=Na(),t=Io(),r=Uo();function n(a,o){return r(t(a,o,e),a+"")}return ar=n,ar}var or,ra;function Ko(){if(ra)return or;ra=1;var e=fe(),t=dr(),r=$a(),n=Q();function a(o,i,u){if(!n(u))return!1;var c=typeof i;return(c=="number"?t(u)&&r(i,u.length):c=="string"&&i in u)?e(u[i],o):!1}return or=a,or}var ir,na;function Wo(){if(na)return ir;na=1;var e=Go(),t=Ko();function r(n){return e(function(a,o){var i=-1,u=o.length,c=u>1?o[u-1]:void 0,s=u>2?o[2]:void 0;for(c=n.length>3&&typeof c=="function"?(u--,c):void 0,s&&t(o[0],o[1],s)&&(c=u<3?void 0:c,u=1),a=Object(a);++i<u;){var d=o[i];d&&n(a,d,i,c)}return a})}return ir=r,ir}var ur,aa;function qo(){if(aa)return ur;aa=1;var e=To(),t=Wo(),r=t(function(n,a,o){e(n,a,o)});return ur=r,ur}var Ho=qo();const Jo=Pa(Ho);function Qo(e,t){if(!t)return e;const r=[];let n=0;return e.replace(/\{(\w+)\}/g,(a,o,i)=>(i>n&&r.push(e.slice(n,i)),r.push(t[o]?.toString()??a),n=i+a.length,a)),n<e.length&&r.push(e.slice(n)),r.join("")}const Xo={vi:{},en:{}},Zo=(e,t)=>Jo({},e,t),ne=za((e,t)=>({language:"system",systemLanguage:window.LANG_CODE||new URL(window?.location.href).searchParams.get("langCode")||"vi",initialized:!1,resources:Xo,translate:(r,n,a)=>{const o=a??t().language,{resources:i,systemLanguage:u}=t();let c=o;o==="system"&&(c=u);const s=(i[c]??{})[r];return s?Qo(s,n):(console.warn(`Translation key "${r}" not found in locale "${o}"`),r)},setLanguage:r=>{e({language:r})},init:r=>{window.addEventListener("SYSTEM_LANG_CODE_CHANGED",n=>{const{language:a}=n.detail;e({systemLanguage:a})}),e(({resources:n})=>({resources:Zo(n,r?.resources),initialized:!0,language:"system",systemLanguage:window.LANG_CODE||new URL(window?.location.href).searchParams.get("langCode")||"vi"}))}})),cr=(e,t,r)=>{const n=ne.getState().translate;return n(e,t,r)};function ei(){const e=ne(n=>n.language),t=ne(n=>n.systemLanguage),r=ne(n=>n.setLanguage);return{language:e,systemLanguage:t,setLanguage:r}}const ti=()=>ne(e=>e.initialized);class ri{getNumDaysInMonth(t,r){return new Date(r,t+1,0).getDate()}isSame(t,r){return U(t).isSame(U(r),"day")}isBefore(t,r){return U(t).isBefore(U(r),"day")}isAfter(t,r){return U(t).isAfter(U(r),"day")}isSameOrBefore(t,r){return U(t).isSameOrBefore(U(r),"day")}isSameOrAfter(t,r){return U(t).isSameOrAfter(U(r),"day")}}const P=new ri,ni=e=>({date:t=>t.getDate(),headerLabel:(t,r)=>cr("calendar.headerLabel",{month:cr(`calendar.monthLabel[${t}]`,void 0,e),year:r},e),weekday:t=>cr(`calendar.weekdayLabel[${t}]`,void 0,e)}),Oa=(e,t)=>({...t,...ni(e==="en"?"en":"vi")}),Ma=sa("calendar"),A=Ma+"-single-picker",ai=new Date(1900,0,1),oi=new Date(2099,11,31),ii=e=>{const t={};return e.defaultValue!==void 0&&(t.defaultValue=e.defaultValue),e.value!==void 0&&(t.value=e.value),e.onChange!==void 0&&(t.onChange=e.onChange),t},Sa=e=>{const{className:t,renderText:r,lang:n,navigationMode:a="month-year",defaultValue:o,onChange:i,value:u,minDate:c=ai,maxDate:s=oi,...d}=e,[h,g]=la(ii(e)),N=Oa(n,r),{date:S,dateSubText:w,headerLabel:$,weekday:E}=N,j=new Date,[x,Y]=T.useState(()=>h?h.getMonth():j.getMonth()),[_,C]=T.useState(()=>h?h.getFullYear():j.getFullYear()),D=(new Date(_,x,1).getDay()+6)%7,y=P.getNumDaysInMonth(x,_),V=D+y,v=Math.ceil(V/7),f=s.getMonth(),k=s.getFullYear(),L=c.getMonth(),G=c.getFullYear(),ge=_<k||_===k&&x<f,oe=_>G||_===G&&x>L,X=_<k||_+1===k&&x<=f,ie=_>G||_-1===G&&x>=L,I=T.useMemo(()=>{let O=_,p=x-1;return p<0&&(O--,p=11),{month:p,year:O}},[x,_]),Z=T.useMemo(()=>{let O=_,p=x+1;return p>11&&(O++,p=0),{month:p,year:O}},[x,_]),pe=T.useMemo(()=>P.getNumDaysInMonth(I.month,I.year),[I]),me=O=>{const p=new Date(_,x,O);return P.isSameOrAfter(p,c)&&P.isSameOrBefore(p,s)},te=O=>{const{date:p,cellKey:W,isFiller:q,disabled:F,onClick:b}=O,K=P.isSame(p,j),be=!!(h&&P.isSame(p,h));return l.jsx("div",{className:z(`${A}__cell-container`),children:l.jsxs(R,{size:"base",role:"button",onClick:q?void 0:b,className:z(`${A}__cell`,`${A}__cell-day`,{[`${A}__cell-day-filler`]:q},{[`${A}__cell-day--disabled`]:F,[`${A}__cell-day--today`]:K,[`${A}__cell-day--selected`]:be}),children:[typeof S=="function"?S(p):S,l.jsx(R,{size:"2x-small",className:`${A}__cell-day-sub-title`,children:typeof w=="function"?w(p):w})]})},W)};return l.jsxs("div",{className:z(Ma,A,t),...d,children:[l.jsxs("div",{className:`${A}__header`,children:[a==="month-year"&&l.jsx(H,{type:"ghost",theme:"neutral",disabled:!ie,onClick:()=>{C(_-1)},children:l.jsx(J,{size:20,name:"double-chevron-left"})}),a!=="time-only"&&l.jsx(H,{type:"ghost",theme:"neutral",disabled:!oe,onClick:()=>{Y(I.month),C(I.year)},children:l.jsx(J,{size:20,name:"chevron-left"})}),l.jsx(R,{className:`${A}__header-label`,children:typeof $=="function"?$?.(x,_):$}),a!=="time-only"&&l.jsx(H,{type:"ghost",theme:"neutral",disabled:!ge,onClick:()=>{Y(Z.month),C(Z.year)},children:l.jsx(J,{size:20,name:"chevron-right"})}),a==="month-year"&&l.jsx(H,{type:"ghost",theme:"neutral",disabled:!X,onClick:()=>{C(_+1)},children:l.jsx(J,{size:20,name:"double-chevron-right"})})]}),l.jsx("div",{children:l.jsxs("div",{className:`${A}__grid`,children:[Array.from({length:7},(O,p)=>{const W=(p+1)%7;return l.jsx("div",{className:z(`${A}__cell-container`),children:l.jsx("div",{className:z(`${A}__cell`,`${A}__cell-week`),children:l.jsx(R,{color:"alias-object-secondary",children:typeof E=="function"?E(W):E})})})}),Array.from({length:v*7},(O,p)=>{if(p<D){const b=pe-D+p+1,K=new Date(I.year,I.month,b);return te({date:K,cellKey:p,isFiller:!0})}if(p>=D+y){const b=p-(D+y)+1,K=new Date(Z.year,Z.month,b);return te({date:K,cellKey:p,isFiller:!0})}const W=p-D+1,q=new Date(_,x,W),F=!me(W);return te({date:q,cellKey:p,disabled:F,onClick:()=>{!q||F||g(q)}})})]})})]})};Sa.__docgenInfo={description:"",methods:[],displayName:"SinglePicker"};const Ca=sa("calendar"),m=Ca+"-range-picker",ui=new Date(1900,0,1),ci=new Date(2099,11,31),si=e=>{const t={};return(e.defaultValue!==void 0||e.defaultValue===null)&&(t.defaultValue=e.defaultValue),(e.value!==void 0||e.value===null)&&(t.value=e.value),e.onChange!==void 0&&(t.onChange=e.onChange),t},oa=e=>{const t=new Date;if(e){const[r,n]=e;return r?r.getMonth():n?n.getMonth():t.getMonth()}return t.getMonth()},ia=e=>{const t=new Date;if(e){const[r,n]=e;return r?r.getFullYear():n?n.getFullYear():t.getFullYear()}return t.getFullYear()},ua=e=>{if(!e)return null;const[t]=e;return t},ca=e=>{if(!e)return null;const[,t]=e;return t},ka=e=>{const{className:t,renderText:r,lang:n,navigationMode:a="month-year",defaultValue:o,onChange:i,value:u,minDate:c=ui,maxDate:s=ci,onPick:d,...h}=e,[g,N]=la(si(e)),S=Oa(n,r),{date:w,dateSubText:$,headerLabel:E,weekday:j}=S,[x,Y]=T.useState(ua(g)),[_,C]=T.useState(ca(g)),D=new Date,[y,V]=T.useState(oa(g)),[v,f]=T.useState(ia(g)),k=(new Date(v,y,1).getDay()+6)%7,L=P.getNumDaysInMonth(y,v),G=k+L,ge=Math.ceil(G/7),oe=s.getMonth(),X=s.getFullYear(),ie=c.getMonth(),I=c.getFullYear(),Z=v<X||v===X&&y<oe,pe=v>I||v===I&&y>ie,me=v<X||v+1===X&&y<=oe,te=v>I||v-1===I&&y>=ie,O=T.useMemo(()=>{let F=v,b=y-1;return b<0&&(F--,b=11),{month:b,year:F}},[y,v]),p=T.useMemo(()=>{let F=v,b=y+1;return b>11&&(F++,b=0),{month:b,year:F}},[y,v]),W=T.useMemo(()=>P.getNumDaysInMonth(O.month,O.year),[O]),q=F=>{const b=new Date(v,y,F);return P.isSameOrAfter(b,c)&&P.isSameOrBefore(b,s)};return T.useEffect(()=>{u!=null&&(V(oa(u)),f(ia(u)))},[u?.[0]?.getTime()]),T.useEffect(()=>{u!=null&&(Y(ua(u)),C(ca(u)))},[u]),l.jsxs("div",{className:z(Ca,m,t),...h,children:[l.jsxs("div",{className:`${m}__header`,children:[a==="month-year"&&l.jsx(H,{type:"ghost",theme:"neutral",disabled:!te,onClick:()=>{f(v-1)},children:l.jsx(J,{size:20,name:"double-chevron-left"})}),a!=="time-only"&&l.jsx(H,{type:"ghost",theme:"neutral",disabled:!pe,onClick:()=>{V(O.month),f(O.year)},children:l.jsx(J,{size:20,name:"chevron-left"})}),l.jsx(R,{className:`${m}__header-label`,children:typeof E=="function"?E?.(y,v):E}),a!=="time-only"&&l.jsx(H,{type:"ghost",theme:"neutral",disabled:!Z,onClick:()=>{V(p.month),f(p.year)},children:l.jsx(J,{size:20,name:"chevron-right"})}),a==="month-year"&&l.jsx(H,{type:"ghost",theme:"neutral",disabled:!me,onClick:()=>{f(v+1)},children:l.jsx(J,{size:20,name:"double-chevron-right"})})]}),l.jsx("div",{children:l.jsxs("div",{className:`${m}__grid`,children:[Array.from({length:7},(F,b)=>{const K=(b+1)%7;return l.jsx("div",{className:z(`${m}__cell-container`),children:l.jsx("div",{className:z(`${m}__cell`,`${m}__cell-week`),children:l.jsx(R,{color:"alias-object-secondary",children:typeof j=="function"?j(K):j})})})}),Array.from({length:ge*7},(F,b)=>{if(b<k){const B=W-k+b+1,re=new Date(O.year,O.month,B);return l.jsx("div",{className:z(`${m}__cell-container`),children:l.jsxs(R,{size:"base",role:"button",className:z(`${m}__cell`,`${m}__cell-day`,`${m}__cell-day-filler`),children:[typeof w=="function"?w(re):w,l.jsx(R,{size:"2x-small",className:`${m}__cell-day-sub-title`,children:typeof $=="function"?$(re):$})]})},b)}if(b>=k+L){const B=b-(k+L)+1,re=new Date(p.year,p.month,B);return l.jsx("div",{className:z(`${m}__cell-container`),children:l.jsxs(R,{size:"base",role:"button",className:z(`${m}__cell`,`${m}__cell-day`,`${m}__cell-day-filler`),children:[typeof w=="function"?w(re):w,l.jsx(R,{size:"2x-small",className:`${m}__cell-day-sub-title`,children:typeof $=="function"?$(re):$})]})},b)}const K=b%7===6,be=b%7===0,vr=b-k+1,M=new Date(v,y,vr),hr=!q(vr),je=x&&P.isSame(M,x),xe=_&&P.isSame(M,_),yr=(function(){return x&&_?P.isSameOrAfter(M,x)&&P.isSameOrBefore(M,_):!1})();return l.jsxs("div",{className:z(`${m}__cell-container`),children:[yr&&l.jsx("div",{className:z(`${m}__cell-range-background`,{[`${m}__cell-range-background-start`]:je,[`${m}__cell-range-background-end`]:xe,[`${m}__cell-range-background-start-end-row`]:je&&K,[`${m}__cell-range-background-end-start-row`]:xe&&be})}),l.jsxs(R,{size:"base",role:"button",onClick:()=>{if(hr)return;if(x&&_){Y(M),C(null),d?.([M,null]);return}if(!x&&!_){Y(M),d?.([M,null]);return}const B=x||_;if(M<B){Y(M),C(B),N?.([M,B]),d?.([M,B]);return}Y(B),C(M),N?.([B,M]),d?.([B,M])},className:z(`${m}__cell`,`${m}__cell-day`,{[`${m}__cell-day--disabled`]:hr,[`${m}__cell-day--today`]:P.isSame(M,D),[`${m}__cell-day--in-range-picker`]:yr,[`${m}__cell-day--selected`]:je||xe}),children:[typeof w=="function"?w(M):w,l.jsx(R,{size:"2x-small",className:`${m}__cell-day-sub-title`,children:typeof $=="function"?$(M):$})]})]},b)})]})})]})};ka.__docgenInfo={description:"",methods:[],displayName:"RangePicker"};const Aa=({type:e="single",...t})=>e==="single"?l.jsx(Sa,{...t}):l.jsx(ka,{...t}),li=({lang:e,...t})=>{const{language:r}=ei();return l.jsx(Aa,{lang:e||r,...t})},fi=e=>ti()?l.jsx(Aa,{...e}):l.jsx(li,{...e});fi.__docgenInfo={description:"",methods:[],displayName:"Calendar"};export{fi as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as D,j as t}from"./iframe-Crg_lbde.js";import{C as r}from"./calendar-ySr-9cXG.js";import{t as e}from"./store-BwIebEt6.js";import{T as f,S as w,a as b,P as S,b as C}from"./blocks-CB7UwFa4.js";import"./preload-helper-PPVm8Dsz.js";import"./classname-Bl5epEs-.js";import"./date-DWIyMGld.js";import"./index-hDlmuyu2.js";import"./index-B-Ksafg0.js";import"./react-DO0-owxu.js";import"./button-BLW8SOpg.js";import"./typography-CMIMyivt.js";import"./colors-_6nFGM3e.js";import"./icon-Cc9W858e.js";import"./index-CdnALcTP.js";const c=new Date;c.setDate(c.getDate()+1);const x=new Date;x.setDate(x.getDate()+4);const N=()=>{const n=`
|
|
2
2
|
## ${e("common.table.title")}
|
|
3
3
|
|
|
4
4
|
| ${e("common.table.name")} | ${e("common.table.type")} | ${e("common.table.required")} | ${e("common.table.description")} |
|