@v-miniapp/ui-react 1.0.60 → 1.0.72
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/index.d.ts +1 -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 +13358 -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 +141 -7488
- package/dist/locales/en.json.js +30 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/index.js +10 -0
- package/dist/locales/vi.json.js +30 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrBefore.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_DataView.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Hash.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_ListCache.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Map.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_MapCache.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Promise.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Set.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Stack.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_WeakMap.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_apply.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayFilter.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayLikeKeys.js +26 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayMap.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayPush.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assignMergeValue.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assignValue.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assocIndexOf.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssign.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssignIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssignValue.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseClone.js +70 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseCreate.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseFlatten.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseFor.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGet.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetAllKeys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseHasIn.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsArguments.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsMap.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsNative.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsTypedArray.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseKeys.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseKeysIn.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseMerge.js +27 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseMergeDeep.js +38 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_basePick.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_basePickBy.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseRest.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSet.js +31 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSetToString.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSlice.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTimes.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseToString.js +24 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseUnary.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseUnset.js +34 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_castPath.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneArrayBuffer.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneBuffer.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneDataView.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneRegExp.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneSymbol.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneTypedArray.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copyArray.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copyObject.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copySymbols.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copySymbolsIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_createAssigner.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_createBaseFor.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_customOmitClone.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_defineProperty.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_flatRest.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getAllKeys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getAllKeysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getMapData.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getNative.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getPrototype.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getSymbols.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getSymbolsIn.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getTag.js +33 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getValue.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hasPath.js +26 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashClear.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashDelete.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashGet.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashHas.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneArray.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneByTag.js +48 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneObject.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isFlattenable.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isIndex.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isIterateeCall.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isKey.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isKeyable.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isMasked.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isPrototype.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheClear.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheDelete.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheGet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheHas.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheClear.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheDelete.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheGet.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheHas.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_memoizeCapped.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeKeysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nodeUtil.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_overArg.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_overRest.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_parent.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_safeGet.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setToString.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_shortOut.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackClear.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackDelete.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackGet.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackHas.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackSet.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stringToPath.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_toKey.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_toSource.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/cloneDeepWith.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/constant.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js +60 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/eq.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/flatten.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/hasIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/identity.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArguments.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArray.js +10 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArrayLike.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArrayLikeObject.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isBuffer.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isFunction.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isLength.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isMap.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isPlainObject.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSet.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isTypedArray.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/keys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/keysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/last.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/memoize.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/merge.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/omit.js +29 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/pick.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/stubArray.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/stubFalse.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/throttle.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js +28 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toPlainObject.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toString.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/utils/bound.js +7 -0
- package/dist/utils/can-use-dom.js +4 -0
- package/dist/utils/classname.js +6 -0
- package/dist/utils/colors.gen.js +371 -0
- package/dist/utils/colors.js +8 -0
- package/dist/utils/convert-px.js +14 -0
- package/dist/utils/date.d.ts +2 -1
- package/dist/utils/date.js +9 -0
- package/dist/utils/deep-clone.js +10 -0
- package/dist/utils/dev-log.js +7 -0
- package/dist/utils/get-scroll-parent.js +20 -0
- package/dist/utils/is-dev.js +4 -0
- package/dist/utils/rubberband.js +11 -0
- package/dist/utils/sleep.js +4 -0
- package/dist/utils/supports-passive.js +15 -0
- package/dist/utils/to-css-length.js +6 -0
- package/dist/vsf/choose-image.js +14 -0
- package/dist-storybook/assets/AIApp-C4keJkW8.js +37 -0
- package/dist-storybook/assets/{App-CJxOxRXd.js → App-BkiRuUOF.js} +1 -1
- package/dist-storybook/assets/Color-6BZIO3FS-EdXZe4iv.js +1 -0
- package/dist-storybook/assets/{DEEPLINK-B5vUshJ4.js → DEEPLINK-CvpIbZVm.js} +1 -1
- package/dist-storybook/assets/DocsRenderer-LL677BLK-Ch7ovClC.js +2 -0
- package/dist-storybook/assets/{EVENTS-DIl-sE2t.js → EVENTS-Bnl2ehlm.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-CR4dG_o7.js → GETTING_STARTED-BYcN9hg3.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-CtonLhRi.js → GETTING_STARTED-BmHWFQQE.js} +1 -1
- package/dist-storybook/assets/GETTING_STARTED-C1AOB25Z.js +45 -0
- package/dist-storybook/assets/{GETTING_STARTED-CS2BpDsP.js → GETTING_STARTED-CBY9dL2_.js} +1 -1
- package/dist-storybook/assets/ICON-BaZgXbtw.js +6 -0
- package/dist-storybook/assets/ICON-CT1pTB1A.js +6 -0
- package/dist-storybook/assets/{INFINITE_SCROLL-BerukJIr.js → INFINITE_SCROLL-BJeWhgO7.js} +1 -1
- package/dist-storybook/assets/{LocalesProvider-CehS9yzW.js → LocalesProvider-CQEwtoq3.js} +1 -1
- package/dist-storybook/assets/{MIGRATE_DARKMODE_TO_THEME-CRf-7Wcz.js → MIGRATE_DARKMODE_TO_THEME-DCxXgvQC.js} +1 -1
- package/dist-storybook/assets/{MIGRATION_GUIDE-CRIHuXpT.js → MIGRATION_GUIDE-BN_V-xNj.js} +1 -1
- package/dist-storybook/assets/OVERVIEW-AI-CLWBzviY.js +35 -0
- package/dist-storybook/assets/{OVERVIEW-DayETux4.js → OVERVIEW-Byly3lQV.js} +1 -1
- package/dist-storybook/assets/{Router-CGsO5Wd_.js → Router-CO6rjSXr.js} +1 -1
- package/dist-storybook/assets/{TAILWIND_INTEGRATION-RPvFP-GI.js → TAILWIND_INTEGRATION-CpN4_fSu.js} +1 -1
- package/dist-storybook/assets/{THEME-C-pA_uq_.js → THEME-B9Y39f9D.js} +1 -1
- package/dist-storybook/assets/WithTooltip-65CFNBJE-D6J_7FjK.js +9 -0
- package/dist-storybook/assets/{alert.stories-CFBhdabd.js → alert.stories-CUItfPLn.js} +12 -12
- package/dist-storybook/assets/app.store-BJVKVv1J.js +1 -0
- package/dist-storybook/assets/avatar.stories-8_vV7Bb0.js +136 -0
- package/dist-storybook/assets/{axe-Cj9fkEY9.js → axe-4EaTvypG.js} +13 -13
- package/dist-storybook/assets/badge-Gh2kTOE3.js +1 -0
- package/dist-storybook/assets/{badge.stories-DhVKBE64.js → badge.stories-BXGAtgaV.js} +3 -3
- package/dist-storybook/assets/blocks-CB7UwFa4.js +758 -0
- package/dist-storybook/assets/bottom-tab-bar.stories-OrY-k1sb.js +280 -0
- package/dist-storybook/assets/button-BLW8SOpg.js +1 -0
- package/dist-storybook/assets/{button.stories-DgRH6oVV.js → button.stories--0kpp_af.js} +3 -3
- package/dist-storybook/assets/calendar-ySr-9cXG.js +1 -0
- package/dist-storybook/assets/{calendar.stories-B0K_T9ak.js → calendar.stories-4MQj1nsX.js} +1 -1
- package/dist-storybook/assets/carousel.stories-CMtljvBR.js +253 -0
- package/dist-storybook/assets/checkbox.stories-xYjsVg2X.js +201 -0
- package/dist-storybook/assets/{chip.stories-D0908ZyT.js → chip.stories-DYEfUGq3.js} +12 -12
- package/dist-storybook/assets/classname-Bl5epEs-.js +1 -0
- package/dist-storybook/assets/client-CN8vOzuD.js +9 -0
- package/dist-storybook/assets/{date-C1W0DfQy.js → date-DWIyMGld.js} +1 -1
- package/dist-storybook/assets/date-field.stories-5Tlzdpvr.js +129 -0
- package/dist-storybook/assets/date-picker-DeB43YU4.js +1 -0
- package/dist-storybook/assets/{date-picker.stories-Bahq3f1W.js → date-picker.stories-Shn-MmVG.js} +1 -1
- package/dist-storybook/assets/dialog.stories-DeNKN0oJ.js +212 -0
- package/dist-storybook/assets/dropdown.stories-Bqmu2_KM.js +449 -0
- package/dist-storybook/assets/{embla-carousel-react.esm-Pp2OIUrN.js → embla-carousel-react.esm-DOEAp-w3.js} +1 -1
- package/dist-storybook/assets/{en-Cs9O0XWn.js → en-IjeCvZ5U.js} +1 -1
- package/dist-storybook/assets/formatter-EIJCOSYU-DZLV30KU.js +1 -0
- package/dist-storybook/assets/icon-Cc9W858e.js +1 -0
- package/dist-storybook/assets/icon-list-grid-CSnpdoAW.js +1 -0
- package/dist-storybook/assets/{icon.stories-qg8UAHBM.js → icon.stories-DE484rTd.js} +3 -3
- package/dist-storybook/assets/iframe-BBKyXin_.css +1 -0
- package/dist-storybook/assets/iframe-Crg_lbde.js +1119 -0
- package/dist-storybook/assets/image-CB4oeTy-.js +9 -0
- package/dist-storybook/assets/{image.stories-sQtCaoL2.js → image.stories-BlYIb_Qu.js} +1 -1
- package/dist-storybook/assets/index-B24pfkXD.js +1 -0
- package/dist-storybook/assets/{index-1AHvPexM.js → index-CdnALcTP.js} +1 -1
- package/dist-storybook/assets/{index-DWjPAWoJ.js → index-hDlmuyu2.js} +1 -1
- package/dist-storybook/assets/input-wrapper-Gd3QJKqj.js +1 -0
- package/dist-storybook/assets/label-zfqCJTGJ.js +22 -0
- package/dist-storybook/assets/{label.stories-CCtGPDrS.js → label.stories-C-MVt-cu.js} +3 -3
- package/dist-storybook/assets/matchers-5TDFFDYO-HJu_DfWo.js +14 -0
- package/dist-storybook/assets/navigation-bar.stories-CZ-y3eDE.js +136 -0
- package/dist-storybook/assets/number-field.stories-BA0FySSU.js +167 -0
- package/dist-storybook/assets/omit-CRXr8Lio.js +1 -0
- package/dist-storybook/assets/option-item-DFWc14Up.js +1 -0
- package/dist-storybook/assets/{option-item.stories-ClUj8qVT.js → option-item.stories-DqA-ydWX.js} +3 -3
- package/dist-storybook/assets/pagination-CjgiVNvu.js +1 -0
- package/dist-storybook/assets/{pagination.stories-C9j6mE5z.js → pagination.stories-BsKHvdF4.js} +4 -4
- package/dist-storybook/assets/{radio.stories-D8_YUTw1.js → radio.stories-CBmxZRxo.js} +10 -10
- package/dist-storybook/assets/{rating.stories-BIftLeu2.js → rating.stories-CcdFtcNH.js} +9 -9
- package/dist-storybook/assets/react-18-D2tl8ksm.js +1 -0
- package/dist-storybook/assets/{react-zqqxT5R_.js → react-DO0-owxu.js} +1 -1
- package/dist-storybook/assets/search-field-zl4ROLfn.js +1 -0
- package/dist-storybook/assets/{search-field.stories-D1okdN8e.js → search-field.stories-DoclnxtC.js} +1 -1
- package/dist-storybook/assets/{section.stories-Cq5CY978.js → section.stories-Bqz_QgYp.js} +8 -8
- package/dist-storybook/assets/sheet-body-2dWL2AE5.js +1 -0
- package/dist-storybook/assets/sheet-footer-DuPhbVOb.js +1 -0
- package/dist-storybook/assets/{sheet.stories-DPcC0I5i.js → sheet.stories-CoXnt4LG.js} +4 -4
- package/dist-storybook/assets/skeleton-BVLpHxKT.js +1 -0
- package/dist-storybook/assets/{skeleton.stories-CD3J1XrJ.js → skeleton.stories-B-OfMZId.js} +3 -3
- package/dist-storybook/assets/{store-BmYgrUro.js → store-BwIebEt6.js} +5 -5
- package/dist-storybook/assets/{switch.stories-C5SDbdGL.js → switch.stories-D4PQjgbo.js} +9 -9
- package/dist-storybook/assets/syntaxhighlighter-ED5Y7EFY-BxRQp_WE.js +6 -0
- package/dist-storybook/assets/tab-bar.stories-BrcQMypS.js +164 -0
- package/dist-storybook/assets/{text-area.stories-3Z574UAD.js → text-area.stories-Bpaw2_4A.js} +10 -10
- package/dist-storybook/assets/text-field-CqJG0bIl.js +1 -0
- package/dist-storybook/assets/{text-field.stories-DzjpcKin.js → text-field.stories-PQoP3DbL.js} +1 -1
- package/dist-storybook/assets/toast.stories-DmPy9T3m.js +209 -0
- package/dist-storybook/assets/{tooltip.stories-DEnYdL1d.js → tooltip.stories-Be_kIaDc.js} +8 -8
- package/dist-storybook/assets/typography-CMIMyivt.js +1 -0
- package/dist-storybook/assets/{typography.stories-DWxFgTz3.js → typography.stories-DSt5W_AG.js} +3 -3
- package/dist-storybook/assets/uploader.stories-C5CmeXEk.js +65 -0
- package/dist-storybook/assets/{use-app-pause-CyjeIEPG.js → use-app-pause-_ycnhKwZ.js} +3 -3
- package/dist-storybook/assets/{use-app-resume-DntO6Rkm.js → use-app-resume-CWb2s-wo.js} +1 -1
- package/dist-storybook/assets/{use-bottom-tab-bar-Da7gjw6y.js → use-bottom-tab-bar--DRl-8c4.js} +1 -1
- package/dist-storybook/assets/{use-custom-icon-event-BEYPYrKY.js → use-custom-icon-event-BXcRPkLg.js} +1 -1
- package/dist-storybook/assets/{use-did-hide-Do-KOSzV.js → use-did-hide-LBcrwoUo.js} +1 -1
- package/dist-storybook/assets/{use-did-show-Bv9k7DdG.js → use-did-show-BXLstTgt.js} +1 -1
- package/dist-storybook/assets/{use-histories-Ci1HfRe-.js → use-histories-Cz7ncXaj.js} +1 -1
- package/dist-storybook/assets/{use-history-CkVE1jRy.js → use-history-B_w6SPwr.js} +1 -1
- package/dist-storybook/assets/{use-language-Bg-LzpzQ.js → use-language-D84C9QNT.js} +1 -1
- package/dist-storybook/assets/{use-load-more-eaC8W6Cc.js → use-load-more-Bb9YFkAE.js} +1 -1
- package/dist-storybook/assets/{use-location-BMrQnhPi.js → use-location-DnxJ5FvJ.js} +1 -1
- package/dist-storybook/assets/{use-navigate-BwwmhToy.js → use-navigate-OLqoL3vR.js} +3 -3
- package/dist-storybook/assets/{use-navigation-bar-DzgWeTpM.js → use-navigation-bar-D5BX6S-r.js} +15 -15
- package/dist-storybook/assets/{use-navigation-type-DNvXTqYH.js → use-navigation-type-Cq7T35ur.js} +1 -1
- package/dist-storybook/assets/{use-page-layout-BA2HvjAQ.js → use-page-layout-BrFRWwC6.js} +1 -1
- package/dist-storybook/assets/{use-page-scroll-D_gjlV-S.js → use-page-scroll-BZ8XiPza.js} +1 -1
- package/dist-storybook/assets/{use-pull-to-refresh-SZfswIA6.js → use-pull-to-refresh-BEjtxiFn.js} +1 -1
- package/dist-storybook/assets/{use-settings-changed-D2gdx5rD.js → use-settings-changed-UaQRSWAg.js} +1 -1
- package/dist-storybook/assets/{use-translate-BTC2AQ0k.js → use-translate-BO8E9Sde.js} +1 -1
- package/dist-storybook/iframe.html +58 -40
- package/dist-storybook/index.html +8 -16
- package/dist-storybook/index.json +1 -1
- package/dist-storybook/project.json +1 -1
- package/dist-storybook/sb-addons/a11y-2/manager-bundle.js +55 -3
- package/dist-storybook/sb-addons/docs-1/manager-bundle.js +1 -149
- package/dist-storybook/sb-addons/storybook-build-3/manager-bundle.js +19 -1
- package/dist-storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +93 -436
- package/dist-storybook/sb-manager/globals-runtime.js +73307 -65142
- package/dist-storybook/sb-manager/globals.js +6 -16
- package/dist-storybook/sb-manager/manager-stores.js +23 -0
- package/dist-storybook/sb-manager/runtime.js +17679 -10455
- package/dist-storybook/stories-data.json +91 -27
- package/dist-storybook/vite-inject-mocker-entry.js +2 -2
- package/package.json +5 -5
- package/dist-storybook/assets/Color-AVL7NMMY-DwohVA43.js +0 -1
- package/dist-storybook/assets/DocsRenderer-PQXLIZUC-vNsl3A7z.js +0 -2
- package/dist-storybook/assets/_baseClone-4nOrhHpR.js +0 -1
- package/dist-storybook/assets/alert-D3VdqAYm.js +0 -1
- package/dist-storybook/assets/app-B__CxZQv.js +0 -1
- package/dist-storybook/assets/avatar-BVV1WSnD.js +0 -1
- package/dist-storybook/assets/avatar.stories-D0RA2Mhh.js +0 -136
- package/dist-storybook/assets/badge-DLt8CmDs.js +0 -1
- package/dist-storybook/assets/blocks-D4qvS4eZ.js +0 -1243
- package/dist-storybook/assets/bottom-tab-bar-UaYvPAic.js +0 -115
- package/dist-storybook/assets/bottom-tab-bar.stories--7Qh-68J.js +0 -186
- package/dist-storybook/assets/button-CbLEqALK.js +0 -1
- package/dist-storybook/assets/calendar-C7tiySn0.js +0 -1
- package/dist-storybook/assets/carousel-C1nQGnJZ.js +0 -37
- package/dist-storybook/assets/carousel.stories-C5d6yLzd.js +0 -217
- package/dist-storybook/assets/checkbox-Bs8ghsWP.js +0 -1
- package/dist-storybook/assets/checkbox.stories-CG74gIlt.js +0 -201
- package/dist-storybook/assets/chip-D4_ukvFv.js +0 -1
- package/dist-storybook/assets/date-field-range-DSAQp9qR.js +0 -1
- package/dist-storybook/assets/date-field.stories-Dx6-qeWT.js +0 -129
- package/dist-storybook/assets/date-picker--PiU9sOL.js +0 -1
- package/dist-storybook/assets/dialog-8K5u-kre.js +0 -1
- package/dist-storybook/assets/dialog.stories-BxYc78Eo.js +0 -212
- package/dist-storybook/assets/dropdown-BeoO7m-R.js +0 -247
- package/dist-storybook/assets/dropdown.stories-Bfhg63tZ.js +0 -200
- package/dist-storybook/assets/icon-CgGksgRS.js +0 -1
- package/dist-storybook/assets/iframe-BKfReaAn.css +0 -1
- package/dist-storybook/assets/iframe-C0PGuV5s.js +0 -1071
- package/dist-storybook/assets/image-BdsCB1je.js +0 -9
- package/dist-storybook/assets/index-BLzgbpm2.js +0 -1
- package/dist-storybook/assets/index-SzFZQQjs.js +0 -1
- package/dist-storybook/assets/input-wrapper-DkEl0Eih.js +0 -1
- package/dist-storybook/assets/label-CHVpMhb5.js +0 -27
- package/dist-storybook/assets/matchers-7Z3WT2CE-Dw4MQV_s.js +0 -14
- package/dist-storybook/assets/navigation-bar-TpF0DSXB.js +0 -79
- package/dist-storybook/assets/navigation-bar.stories-CNXAxMYL.js +0 -73
- package/dist-storybook/assets/number-field-CvCF5adO.js +0 -1
- package/dist-storybook/assets/number-field.stories-Dsb_eChm.js +0 -167
- package/dist-storybook/assets/omit-D04qL5V_.js +0 -1
- package/dist-storybook/assets/option-item-Bmby544G.js +0 -1
- package/dist-storybook/assets/pagination-MBP1YLhT.js +0 -1
- package/dist-storybook/assets/proxy-edvPwIiD.js +0 -1
- package/dist-storybook/assets/radio-DRPO7cjx.js +0 -1
- package/dist-storybook/assets/rating-CTv8C1tH.js +0 -1
- package/dist-storybook/assets/react-18-CacBUmwb.js +0 -9
- package/dist-storybook/assets/search-field-CophTGGH.js +0 -1
- package/dist-storybook/assets/section-content-dVOJuOaN.js +0 -1
- package/dist-storybook/assets/sheet-footer-BL2JAvmb.js +0 -1
- package/dist-storybook/assets/skeleton-CmGRbWqE.js +0 -1
- package/dist-storybook/assets/switch-Cc-NvT4X.js +0 -1
- package/dist-storybook/assets/tab-bar-DTyg7tFP.js +0 -31
- package/dist-storybook/assets/tab-bar.stories-zKrihgXo.js +0 -136
- package/dist-storybook/assets/text-area-WRb8Dkvn.js +0 -1
- package/dist-storybook/assets/text-field-DrODy0yz.js +0 -1
- package/dist-storybook/assets/toast-provider-ChNGFQlt.js +0 -9
- package/dist-storybook/assets/toast.stories-Zj4qfKO_.js +0 -201
- package/dist-storybook/assets/tooltip-CrxOWTXS.js +0 -1
- package/dist-storybook/assets/typography-BcLxefPi.js +0 -1
- package/dist-storybook/assets/uploader.stories-DQN8yjt-.js +0 -65
- package/dist-storybook/assets/visibility-sensor-FN9n9CLs.js +0 -1
- package/dist-storybook/sb-manager/globals-module-info.js +0 -799
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import{j as e,r as i}from"./iframe-C0PGuV5s.js";import{T as v,S as h,M as l,P as B,a as I}from"./blocks-D4qvS4eZ.js";import{B as s}from"./bottom-tab-bar-UaYvPAic.js";import{t}from"./store-BmYgrUro.js";import"./preload-helper-PPVm8Dsz.js";import"./index-1AHvPexM.js";import"./icon-CgGksgRS.js";import"./colors-_6nFGM3e.js";import"./typography-BcLxefPi.js";const T=()=>{const o=`
|
|
2
|
-
## ${t("common.table.title")}
|
|
3
|
-
|
|
4
|
-
| ${t("common.table.name")} | ${t("common.table.type")} | ${t("common.table.required")} | ${t("common.table.description")} |
|
|
5
|
-
| :--- | :--- | :--- | :--- |
|
|
6
|
-
| \`items\` | \`IBottomTabBarItem[]\` | ${t("common.table.yes")} | ${t("components.bottomTabBar.itemsDescription")} |
|
|
7
|
-
| \`activeId\` | \`string\` | ${t("common.table.yes")} | ${t("components.bottomTabBar.activeIdDescription")} |
|
|
8
|
-
| \`indicator\` | \`boolean\` | ${t("common.table.no")} | ${t("components.bottomTabBar.indicatorDescription")} |
|
|
9
|
-
| \`setCssVariable\` | \`boolean\` | ${t("common.table.no")} | ${t("components.bottomTabBar.setCssVariableDescription")} |
|
|
10
|
-
| \`safeAreaBottomOffset\` | \`boolean\` | ${t("common.table.no")} | ${t("components.bottomTabBar.safeAreaBottomOffsetDescription")} |
|
|
11
|
-
| \`className\` | \`string\` | ${t("common.table.no")} | ${t("components.bottomTabBar.classNameDescription")} |
|
|
12
|
-
| \`onItemClick\` | \`(item: IBottomTabBarItem, index: number) => void\` | ${t("common.table.no")} | ${t("components.bottomTabBar.onItemClickDescription")} |
|
|
13
|
-
| \`...props\` | \`ComponentProps<'div'>\` | ${t("common.table.no")} | ${t("components.bottomTabBar.propsDescription")} |
|
|
14
|
-
`;return e.jsxs(e.Fragment,{children:[e.jsx(v,{}),e.jsx(h,{}),e.jsx(l,{children:t("components.bottomTabBar.description")}),e.jsx(B,{}),e.jsx(l,{children:o}),e.jsx(I,{})]})},S={title:"Components/BottomTabBar",component:s,parameters:{layout:"fullscreen",docs:{page:T}},tags:["autodocs"],argTypes:{items:{control:!1,description:t("components.bottomTabBar.argTypes.itemsDescription"),table:{type:{summary:"IBottomTabBarItem[]"}}},activeId:{control:"text",description:t("components.bottomTabBar.argTypes.activeIdDescription"),table:{type:{summary:"string"}}},indicator:{control:"boolean",description:t("components.bottomTabBar.argTypes.indicatorDescription"),table:{type:{summary:"boolean"},defaultValue:{summary:"true"}}},setCssVariable:{control:"boolean",description:t("components.bottomTabBar.argTypes.setCssVariableDescription"),table:{type:{summary:"boolean"}}},safeAreaBottomOffset:{control:"boolean",description:t("components.bottomTabBar.argTypes.safeAreaBottomOffsetDescription"),table:{type:{summary:"boolean"},defaultValue:{summary:"true"}}},onItemClick:{action:"item-clicked",description:t("components.bottomTabBar.argTypes.onItemClickDescription"),table:{type:{summary:"(item: IBottomTabBarItem, index: number) => void"}}}}},r={storyName:t("components.bottomTabBar.stories.default.title"),render:()=>{const[o,n]=i.useState("1");return e.jsxs("div",{style:{position:"relative",height:"100vh"},children:[e.jsx("div",{style:{padding:"20px"},children:e.jsx("p",{children:t("components.bottomTabBar.stories.default.content")})}),e.jsx(s,{activeId:o,onItemClick:a=>n(a.id),items:[{id:"1",name:t("components.bottomTabBar.stories.tabs.home")},{id:"2",name:t("components.bottomTabBar.stories.tabs.search")},{id:"3",name:t("components.bottomTabBar.stories.tabs.profile")}]})]})}},m={storyName:t("components.bottomTabBar.stories.withIcons.title"),render:()=>{const[o,n]=i.useState("1");return e.jsxs("div",{style:{position:"relative",height:"100vh"},children:[e.jsx("div",{style:{padding:"20px"},children:e.jsx("p",{children:t("components.bottomTabBar.stories.withIcons.content")})}),e.jsx(s,{activeId:o,onItemClick:a=>n(a.id),items:[{id:"1",name:t("components.bottomTabBar.stories.tabs.home"),icon:{name:"placeholder"}},{id:"2",name:t("components.bottomTabBar.stories.tabs.search"),icon:{name:"placeholder"}},{id:"3",name:t("components.bottomTabBar.stories.tabs.profile"),icon:{name:"placeholder"}}]})]})}},c={storyName:t("components.bottomTabBar.stories.withActiveIcons.title"),render:()=>{const[o,n]=i.useState("1");return e.jsxs("div",{style:{position:"relative",height:"100vh"},children:[e.jsx("div",{style:{padding:"20px"},children:e.jsx("p",{children:t("components.bottomTabBar.stories.withActiveIcons.content")})}),e.jsx(s,{activeId:o,onItemClick:a=>n(a.id),items:[{id:"1",name:t("components.bottomTabBar.stories.tabs.home"),icon:{name:"placeholder",type:"outline"},activeIcon:{name:"placeholder",type:"fill"}},{id:"2",name:t("components.bottomTabBar.stories.tabs.search"),icon:{name:"placeholder",type:"outline"},activeIcon:{name:"placeholder",type:"fill"}},{id:"3",name:t("components.bottomTabBar.stories.tabs.profile"),icon:{name:"placeholder",type:"outline"},activeIcon:{name:"placeholder",type:"fill"}}]})]})}},d={storyName:t("components.bottomTabBar.stories.withoutIndicator.title"),render:()=>{const[o,n]=i.useState("1");return e.jsxs("div",{style:{position:"relative",height:"100vh"},children:[e.jsx("div",{style:{padding:"20px"},children:e.jsx("p",{children:t("components.bottomTabBar.stories.withoutIndicator.content")})}),e.jsx(s,{activeId:o,onItemClick:a=>n(a.id),indicator:!1,items:[{id:"1",name:t("components.bottomTabBar.stories.tabs.tab1")},{id:"2",name:t("components.bottomTabBar.stories.tabs.tab2")},{id:"3",name:t("components.bottomTabBar.stories.tabs.tab3")}]})]})}},p={storyName:t("components.bottomTabBar.stories.interactive.title"),render:()=>{const o=[{id:"1",name:t("components.bottomTabBar.stories.tabs.home"),icon:{name:"placeholder"}},{id:"2",name:t("components.bottomTabBar.stories.tabs.search"),icon:{name:"placeholder"}},{id:"3",name:t("components.bottomTabBar.stories.tabs.profile"),icon:{name:"placeholder"}}],[n,a]=i.useState("1");return e.jsxs("div",{style:{position:"relative",height:"100vh"},children:[e.jsx("div",{style:{padding:"20px"},children:e.jsx("p",{children:t("components.bottomTabBar.stories.interactive.activeTab",{tabName:o.find(b=>b.id===n)?.name||""})})}),e.jsx(s,{activeId:n,onItemClick:b=>a(b.id),items:o})]})}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
15
|
-
storyName: t('components.bottomTabBar.stories.default.title'),
|
|
16
|
-
render: () => {
|
|
17
|
-
const [activeId, setActiveId] = useState('1');
|
|
18
|
-
return <div style={{
|
|
19
|
-
position: 'relative',
|
|
20
|
-
height: '100vh'
|
|
21
|
-
}}>
|
|
22
|
-
<div style={{
|
|
23
|
-
padding: '20px'
|
|
24
|
-
}}>
|
|
25
|
-
<p>{t('components.bottomTabBar.stories.default.content')}</p>
|
|
26
|
-
</div>
|
|
27
|
-
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} items={[{
|
|
28
|
-
id: '1',
|
|
29
|
-
name: t('components.bottomTabBar.stories.tabs.home')
|
|
30
|
-
}, {
|
|
31
|
-
id: '2',
|
|
32
|
-
name: t('components.bottomTabBar.stories.tabs.search')
|
|
33
|
-
}, {
|
|
34
|
-
id: '3',
|
|
35
|
-
name: t('components.bottomTabBar.stories.tabs.profile')
|
|
36
|
-
}]} />
|
|
37
|
-
</div>;
|
|
38
|
-
}
|
|
39
|
-
}`,...r.parameters?.docs?.source}}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
|
|
40
|
-
storyName: t('components.bottomTabBar.stories.withIcons.title'),
|
|
41
|
-
render: () => {
|
|
42
|
-
const [activeId, setActiveId] = useState('1');
|
|
43
|
-
return <div style={{
|
|
44
|
-
position: 'relative',
|
|
45
|
-
height: '100vh'
|
|
46
|
-
}}>
|
|
47
|
-
<div style={{
|
|
48
|
-
padding: '20px'
|
|
49
|
-
}}>
|
|
50
|
-
<p>{t('components.bottomTabBar.stories.withIcons.content')}</p>
|
|
51
|
-
</div>
|
|
52
|
-
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} items={[{
|
|
53
|
-
id: '1',
|
|
54
|
-
name: t('components.bottomTabBar.stories.tabs.home'),
|
|
55
|
-
icon: {
|
|
56
|
-
name: 'placeholder'
|
|
57
|
-
}
|
|
58
|
-
}, {
|
|
59
|
-
id: '2',
|
|
60
|
-
name: t('components.bottomTabBar.stories.tabs.search'),
|
|
61
|
-
icon: {
|
|
62
|
-
name: 'placeholder'
|
|
63
|
-
}
|
|
64
|
-
}, {
|
|
65
|
-
id: '3',
|
|
66
|
-
name: t('components.bottomTabBar.stories.tabs.profile'),
|
|
67
|
-
icon: {
|
|
68
|
-
name: 'placeholder'
|
|
69
|
-
}
|
|
70
|
-
}]} />
|
|
71
|
-
</div>;
|
|
72
|
-
}
|
|
73
|
-
}`,...m.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
74
|
-
storyName: t('components.bottomTabBar.stories.withActiveIcons.title'),
|
|
75
|
-
render: () => {
|
|
76
|
-
const [activeId, setActiveId] = useState('1');
|
|
77
|
-
return <div style={{
|
|
78
|
-
position: 'relative',
|
|
79
|
-
height: '100vh'
|
|
80
|
-
}}>
|
|
81
|
-
<div style={{
|
|
82
|
-
padding: '20px'
|
|
83
|
-
}}>
|
|
84
|
-
<p>{t('components.bottomTabBar.stories.withActiveIcons.content')}</p>
|
|
85
|
-
</div>
|
|
86
|
-
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} items={[{
|
|
87
|
-
id: '1',
|
|
88
|
-
name: t('components.bottomTabBar.stories.tabs.home'),
|
|
89
|
-
icon: {
|
|
90
|
-
name: 'placeholder',
|
|
91
|
-
type: 'outline'
|
|
92
|
-
},
|
|
93
|
-
activeIcon: {
|
|
94
|
-
name: 'placeholder',
|
|
95
|
-
type: 'fill'
|
|
96
|
-
}
|
|
97
|
-
}, {
|
|
98
|
-
id: '2',
|
|
99
|
-
name: t('components.bottomTabBar.stories.tabs.search'),
|
|
100
|
-
icon: {
|
|
101
|
-
name: 'placeholder',
|
|
102
|
-
type: 'outline'
|
|
103
|
-
},
|
|
104
|
-
activeIcon: {
|
|
105
|
-
name: 'placeholder',
|
|
106
|
-
type: 'fill'
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
id: '3',
|
|
110
|
-
name: t('components.bottomTabBar.stories.tabs.profile'),
|
|
111
|
-
icon: {
|
|
112
|
-
name: 'placeholder',
|
|
113
|
-
type: 'outline'
|
|
114
|
-
},
|
|
115
|
-
activeIcon: {
|
|
116
|
-
name: 'placeholder',
|
|
117
|
-
type: 'fill'
|
|
118
|
-
}
|
|
119
|
-
}]} />
|
|
120
|
-
</div>;
|
|
121
|
-
}
|
|
122
|
-
}`,...c.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
123
|
-
storyName: t('components.bottomTabBar.stories.withoutIndicator.title'),
|
|
124
|
-
render: () => {
|
|
125
|
-
const [activeId, setActiveId] = useState('1');
|
|
126
|
-
return <div style={{
|
|
127
|
-
position: 'relative',
|
|
128
|
-
height: '100vh'
|
|
129
|
-
}}>
|
|
130
|
-
<div style={{
|
|
131
|
-
padding: '20px'
|
|
132
|
-
}}>
|
|
133
|
-
<p>{t('components.bottomTabBar.stories.withoutIndicator.content')}</p>
|
|
134
|
-
</div>
|
|
135
|
-
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} indicator={false} items={[{
|
|
136
|
-
id: '1',
|
|
137
|
-
name: t('components.bottomTabBar.stories.tabs.tab1')
|
|
138
|
-
}, {
|
|
139
|
-
id: '2',
|
|
140
|
-
name: t('components.bottomTabBar.stories.tabs.tab2')
|
|
141
|
-
}, {
|
|
142
|
-
id: '3',
|
|
143
|
-
name: t('components.bottomTabBar.stories.tabs.tab3')
|
|
144
|
-
}]} />
|
|
145
|
-
</div>;
|
|
146
|
-
}
|
|
147
|
-
}`,...d.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
148
|
-
storyName: t('components.bottomTabBar.stories.interactive.title'),
|
|
149
|
-
render: () => {
|
|
150
|
-
const items = [{
|
|
151
|
-
id: '1',
|
|
152
|
-
name: t('components.bottomTabBar.stories.tabs.home'),
|
|
153
|
-
icon: {
|
|
154
|
-
name: 'placeholder'
|
|
155
|
-
}
|
|
156
|
-
}, {
|
|
157
|
-
id: '2',
|
|
158
|
-
name: t('components.bottomTabBar.stories.tabs.search'),
|
|
159
|
-
icon: {
|
|
160
|
-
name: 'placeholder'
|
|
161
|
-
}
|
|
162
|
-
}, {
|
|
163
|
-
id: '3',
|
|
164
|
-
name: t('components.bottomTabBar.stories.tabs.profile'),
|
|
165
|
-
icon: {
|
|
166
|
-
name: 'placeholder'
|
|
167
|
-
}
|
|
168
|
-
}] as IBottomTabBarItem[];
|
|
169
|
-
const [activeId, setActiveId] = useState('1');
|
|
170
|
-
return <div style={{
|
|
171
|
-
position: 'relative',
|
|
172
|
-
height: '100vh'
|
|
173
|
-
}}>
|
|
174
|
-
<div style={{
|
|
175
|
-
padding: '20px'
|
|
176
|
-
}}>
|
|
177
|
-
<p>
|
|
178
|
-
{t('components.bottomTabBar.stories.interactive.activeTab', {
|
|
179
|
-
tabName: items.find(item => item.id === activeId)?.name || ''
|
|
180
|
-
})}
|
|
181
|
-
</p>
|
|
182
|
-
</div>
|
|
183
|
-
<BottomTabBar activeId={activeId} onItemClick={item => setActiveId(item.id)} items={items} />
|
|
184
|
-
</div>;
|
|
185
|
-
}
|
|
186
|
-
}`,...p.parameters?.docs?.source}}};const D=["Default","WithIcons","WithActiveIcons","WithoutIndicator","Interactive"];export{r as Default,p as Interactive,c as WithActiveIcons,m as WithIcons,d as WithoutIndicator,D as __namedExportsOrder,S as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./iframe-C0PGuV5s.js";import{r as N}from"./icon-CgGksgRS.js";import{c as f,g as b}from"./store-BmYgrUro.js";import{T as j}from"./typography-BcLxefPi.js";const v={medium:"small",large:"base"},e=b("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:N(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(j,{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 +0,0 @@
|
|
|
1
|
-
import{r as x,j as e}from"./iframe-C0PGuV5s.js";import{c,g as _e}from"./store-BmYgrUro.js";import{d as k}from"./date-C1W0DfQy.js";import{I as A}from"./icon-CgGksgRS.js";import{B as F}from"./button-CbLEqALK.js";import{T as m}from"./typography-BcLxefPi.js";import{u as ye}from"./index-DWjPAWoJ.js";import{s as oe,p as ke,g as pe}from"./index-BLzgbpm2.js";class we{getNumDaysInMonth(t,i){return new Date(i,t+1,0).getDate()}isSame(t,i){return k(t).isSame(k(i),"day")}isBefore(t,i){return k(t).isBefore(k(i),"day")}isAfter(t,i){return k(t).isAfter(k(i),"day")}isSameOrBefore(t,i){return k(t).isSameOrBefore(k(i),"day")}isSameOrAfter(t,i){return k(t).isSameOrAfter(k(i),"day")}}const g=new we,Ce=n=>({date:t=>t.getDate(),headerLabel:(t,i)=>oe("calendar.headerLabel",{month:oe(`calendar.monthLabel[${t}]`,void 0,n),year:i},n),weekday:t=>oe(`calendar.weekdayLabel[${t}]`,void 0,n)}),ge=(n,t)=>({...t,...Ce(n==="en"?"en":"vi")}),xe=_e("calendar"),l=xe+"-single-picker",Se=new Date(1900,0,1),ze=new Date(2099,11,31),Ie=n=>{const t={};return n.defaultValue!==void 0&&(t.defaultValue=n.defaultValue),n.value!==void 0&&(t.value=n.value),n.onChange!==void 0&&(t.onChange=n.onChange),t},be=n=>{const{className:t,renderText:i,lang:p,navigationMode:w="month-year",defaultValue:Ne,onChange:Me,value:C,minDate:V=Se,maxDate:R=ze,...W}=n,[z,U]=ye(Ie(n)),ee=ge(p,i),{date:v,dateSubText:h,headerLabel:b,weekday:T}=ee,O=new Date,[d,I]=x.useState(()=>z?z.getMonth():O.getMonth()),[o,S]=x.useState(()=>z?z.getFullYear():O.getFullYear()),Y=(new Date(o,d,1).getDay()+6)%7,f=g.getNumDaysInMonth(d,o),K=Y+f,u=Math.ceil(K/7),P=R.getMonth(),N=R.getFullYear(),q=V.getMonth(),G=V.getFullYear(),Q=o<N||o===N&&d<P,H=o>G||o===G&&d>q,L=o<N||o+1===N&&d<=P,X=o>G||o-1===G&&d>=q,j=x.useMemo(()=>{if(!H)return null;let y=o,s=d-1;return s<0&&(y--,s=11),{month:s,year:y}},[d,H,o]),M=x.useMemo(()=>{if(!Q)return null;let y=o,s=d+1;return s>11&&(y++,s=0),{month:s,year:y}},[d,Q,o]),J=x.useMemo(()=>j?g.getNumDaysInMonth(j.month,j.year):null,[j]),te=x.useMemo(()=>M?g.getNumDaysInMonth(M.month,M.year):null,[M]),ne=y=>{const s=new Date(o,d,y);return g.isSameOrAfter(s,V)&&g.isSameOrBefore(s,R)};return e.jsxs("div",{className:c(xe,l,t),...W,children:[e.jsxs("div",{className:`${l}__header`,children:[w==="month-year"&&e.jsx(F,{type:"ghost",theme:"neutral",disabled:!X,onClick:()=>{X&&S(o-1)},children:e.jsx(A,{size:20,name:"double-chevron-left"})}),w!=="time-only"&&e.jsx(F,{type:"ghost",theme:"neutral",disabled:!H,onClick:()=>{j&&(I(j.month),S(j.year))},children:e.jsx(A,{size:20,name:"chevron-left"})}),e.jsx(m,{className:`${l}__header-label`,children:typeof b=="function"?b?.(d,o):b}),w!=="time-only"&&e.jsx(F,{type:"ghost",theme:"neutral",disabled:!Q,onClick:()=>{M&&(I(M.month),S(M.year))},children:e.jsx(A,{size:20,name:"chevron-right"})}),w==="month-year"&&e.jsx(F,{type:"ghost",theme:"neutral",disabled:!L,onClick:()=>{L&&S(o+1)},children:e.jsx(A,{size:20,name:"double-chevron-right"})})]}),e.jsx("div",{children:e.jsxs("div",{className:`${l}__grid`,children:[Array.from({length:7},(y,s)=>{const B=(s+1)%7;return e.jsx("div",{className:c(`${l}__cell-container`),children:e.jsx("div",{className:c(`${l}__cell`,`${l}__cell-week`),children:e.jsx(m,{color:"alias-object-secondary",children:typeof T=="function"?T(B):T})})})}),Array.from({length:u*7},(y,s)=>{if(s<Y){if(!J)return e.jsx("div",{className:c(`${l}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:c(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:"null"})},s);const $=J-Y+s+1,r=new Date(o,d,$);return e.jsx("div",{className:c(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:c(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:[typeof v=="function"?v(r):v,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(r):h})]})},s)}if(s>=Y+f){if(!te)return e.jsx("div",{className:c(`${l}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:c(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:"null"})},s);const $=s-(Y+f)+1,r=new Date(o,d,$);return e.jsx("div",{className:c(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:c(`${l}__cell`,`${l}__cell-day`,`${l}__cell-day-filler`),children:[typeof v=="function"?v(r):v,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(r):h})]})},s)}const B=s-Y+1,E=new Date(o,d,B),ae=!ne(B);return e.jsx("div",{className:c(`${l}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",onClick:()=>{!E||ae||U(E)},className:c(`${l}__cell`,`${l}__cell-day`,{[`${l}__cell-day--disabled`]:ae,[`${l}__cell-day--today`]:g.isSame(E,O),[`${l}__cell-day--selected`]:z&&g.isSame(E,z)}),children:[typeof v=="function"?v(E):v,e.jsx(m,{size:"2x-small",className:`${l}__cell-day-sub-title`,children:typeof h=="function"?h(E):h})]})},s)})]})})]})};be.__docgenInfo={description:"",methods:[],displayName:"SinglePicker"};const $e=_e("calendar"),a=$e+"-range-picker",Ye=new Date(1900,0,1),Pe=new Date(2099,11,31),Ee=n=>{const t={};return(n.defaultValue!==void 0||n.defaultValue===null)&&(t.defaultValue=n.defaultValue),(n.value!==void 0||n.value===null)&&(t.value=n.value),n.onChange!==void 0&&(t.onChange=n.onChange),t},ue=n=>{const t=new Date;if(n){const[i,p]=n;return i?i.getMonth():p?p.getMonth():t.getMonth()}return t.getMonth()},me=n=>{const t=new Date;if(n){const[i,p]=n;return i?i.getFullYear():p?p.getFullYear():t.getFullYear()}return t.getFullYear()},he=n=>{if(!n)return null;const[t]=n;return t},fe=n=>{if(!n)return null;const[,t]=n;return t},je=n=>{const{className:t,renderText:i,lang:p,navigationMode:w="month-year",defaultValue:Ne,onChange:Me,value:C,minDate:V=Ye,maxDate:R=Pe,onPick:W,...z}=n,[U,ee]=ye(Ee(n)),v=ge(p,i),{date:h,dateSubText:b,headerLabel:T,weekday:O}=v,[d,I]=x.useState(he(U)),[o,S]=x.useState(fe(U)),Y=new Date,[f,K]=x.useState(ue(U)),[u,P]=x.useState(me(U)),N=(new Date(u,f,1).getDay()+6)%7,q=g.getNumDaysInMonth(f,u),G=N+q,Q=Math.ceil(G/7),H=R.getMonth(),L=R.getFullYear(),X=V.getMonth(),j=V.getFullYear(),M=u<L||u===L&&f<H,J=u>j||u===j&&f>X,te=u<L||u+1===L&&f<=H,ne=u>j||u-1===j&&f>=X,y=x.useMemo(()=>{if(!J)return null;let $=u,r=f-1;return r<0&&($--,r=11),{month:r,year:$}},[f,J,u]),s=x.useMemo(()=>{if(!M)return null;let $=u,r=f+1;return r>11&&($++,r=0),{month:r,year:$}},[f,M,u]),B=x.useMemo(()=>y?g.getNumDaysInMonth(y.month,y.year):null,[y]),E=x.useMemo(()=>s?g.getNumDaysInMonth(s.month,s.year):null,[s]),ae=$=>{const r=new Date(u,f,$);return g.isSameOrAfter(r,V)&&g.isSameOrBefore(r,R)};return x.useEffect(()=>{C!=null&&(K(ue(C)),P(me(C)))},[C?.[0]?.getTime()]),x.useEffect(()=>{C!=null&&(I(he(C)),S(fe(C)))},[C]),e.jsxs("div",{className:c($e,a,t),...z,children:[e.jsxs("div",{className:`${a}__header`,children:[w==="month-year"&&e.jsx(F,{type:"ghost",theme:"neutral",disabled:!ne,onClick:()=>{ne&&P(u-1)},children:e.jsx(A,{size:20,name:"double-chevron-left"})}),w!=="time-only"&&e.jsx(F,{type:"ghost",theme:"neutral",disabled:!J,onClick:()=>{y&&(K(y.month),P(y.year))},children:e.jsx(A,{size:20,name:"chevron-left"})}),e.jsx(m,{className:`${a}__header-label`,children:typeof T=="function"?T?.(f,u):T}),w!=="time-only"&&e.jsx(F,{type:"ghost",theme:"neutral",disabled:!M,onClick:()=>{s&&(K(s.month),P(s.year))},children:e.jsx(A,{size:20,name:"chevron-right"})}),w==="month-year"&&e.jsx(F,{type:"ghost",theme:"neutral",disabled:!te,onClick:()=>{te&&P(u+1)},children:e.jsx(A,{size:20,name:"double-chevron-right"})})]}),e.jsx("div",{children:e.jsxs("div",{className:`${a}__grid`,children:[Array.from({length:7},($,r)=>{const le=(r+1)%7;return e.jsx("div",{className:c(`${a}__cell-container`),children:e.jsx("div",{className:c(`${a}__cell`,`${a}__cell-week`),children:e.jsx(m,{color:"alias-object-secondary",children:typeof O=="function"?O(le):O})})})}),Array.from({length:Q*7},($,r)=>{if(r<N){if(!B)return e.jsx("div",{className:c(`${a}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:c(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:"null"})},r);const D=B-N+r+1,Z=new Date(u,f,D);return e.jsx("div",{className:c(`${a}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:c(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:[typeof h=="function"?h(Z):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof b=="function"?b(Z):b})]})},r)}if(r>=N+q){if(!E)return e.jsx("div",{className:c(`${a}__cell-container`),children:e.jsx(m,{size:"base",role:"button",className:c(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:"null"})},r);const D=r-(N+q)+1,Z=new Date(u,f,D);return e.jsx("div",{className:c(`${a}__cell-container`),children:e.jsxs(m,{size:"base",role:"button",className:c(`${a}__cell`,`${a}__cell-day`,`${a}__cell-day-filler`),children:[typeof h=="function"?h(Z):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof b=="function"?b(Z):b})]})},r)}const le=r%7===6,De=r%7===0,ce=r-N+1,_=new Date(u,f,ce),ie=!ae(ce),se=d&&g.isSame(_,d),re=o&&g.isSame(_,o),de=(function(){return d&&o?g.isSameOrAfter(_,d)&&g.isSameOrBefore(_,o):!1})();return e.jsxs("div",{className:c(`${a}__cell-container`),children:[de&&e.jsx("div",{className:c(`${a}__cell-range-background`,{[`${a}__cell-range-background-start`]:se,[`${a}__cell-range-background-end`]:re,[`${a}__cell-range-background-start-end-row`]:se&&le,[`${a}__cell-range-background-end-start-row`]:re&&De})}),e.jsxs(m,{size:"base",role:"button",onClick:()=>{if(ie)return;if(d&&o){I(_),S(null),W?.([_,null]);return}if(!d&&!o){I(_),W?.([_,null]);return}const D=d||o;if(_<D){I(_),S(D),ee?.([_,D]),W?.([_,D]);return}I(D),S(_),ee?.([D,_]),W?.([D,_])},className:c(`${a}__cell`,`${a}__cell-day`,{[`${a}__cell-day--disabled`]:ie,[`${a}__cell-day--today`]:g.isSame(_,Y),[`${a}__cell-day--in-range-picker`]:de,[`${a}__cell-day--selected`]:se||re}),children:[typeof h=="function"?h(_):h,e.jsx(m,{size:"2x-small",className:`${a}__cell-day-sub-title`,children:typeof b=="function"?b(_):b})]})]},r)})]})})]})};je.__docgenInfo={description:"",methods:[],displayName:"RangePicker"};const ve=({type:n="single",...t})=>n==="single"?e.jsx(be,{...t}):e.jsx(je,{...t}),Ae=({lang:n,...t})=>{const{language:i}=pe();return e.jsx(ve,{lang:n||i,...t})},Fe=n=>ke()?e.jsx(ve,{...n}):e.jsx(Ae,{...n});Fe.__docgenInfo={description:"",methods:[],displayName:"Calendar"};export{Fe as C};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import{r as u,j as I}from"./iframe-C0PGuV5s.js";import{c as R,g as z}from"./store-BmYgrUro.js";import{u as B}from"./embla-carousel-react.esm-Pp2OIUrN.js";import{P as G}from"./pagination-MBP1YLhT.js";const J={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function K(a,e){const n=a.scrollSnapList();return typeof e=="number"?n.map(()=>e):e(n,a)}function Q(a,e){const n=a.rootNode();return e&&e(n)||n}function H(a={}){let e,n,s,f,p=null,l=0,o=!1,g=!1,t=!1,i=!1;function y(r,x){n=r;const{mergeOptions:q,optionsAtMedia:D}=x,U=q(J,H.globalOptions),$=q(U,a);if(e=D($),n.scrollSnapList().length<=1)return;i=e.jump,s=!1,f=K(n,e.delay);const{eventStore:C,ownerDocument:W}=n.internalEngine(),_=!!n.internalEngine().options.watchDrag,L=Q(n,e.rootNode);C.add(W,"visibilitychange",j),_&&n.on("pointerDown",w),_&&!e.stopOnInteraction&&n.on("pointerUp",S),e.stopOnMouseEnter&&C.add(L,"mouseenter",E),e.stopOnMouseEnter&&!e.stopOnInteraction&&C.add(L,"mouseleave",T),e.stopOnFocusIn&&n.on("slideFocusStart",d),e.stopOnFocusIn&&!e.stopOnInteraction&&C.add(n.containerNode(),"focusout",m),e.playOnInit&&m()}function c(){n.off("pointerDown",w).off("pointerUp",S).off("slideFocusStart",d),d(),s=!0,o=!1}function O(){const{ownerWindow:r}=n.internalEngine();r.clearTimeout(l),l=r.setTimeout(F,f[n.selectedScrollSnap()]),p=new Date().getTime(),n.emit("autoplay:timerset")}function h(){const{ownerWindow:r}=n.internalEngine();r.clearTimeout(l),l=0,p=null,n.emit("autoplay:timerstopped")}function m(){if(!s){if(k()){t=!0;return}o||n.emit("autoplay:play"),O(),o=!0}}function d(){s||(o&&n.emit("autoplay:stop"),h(),o=!1)}function j(){if(k())return t=o,d();t&&m()}function k(){const{ownerDocument:r}=n.internalEngine();return r.visibilityState==="hidden"}function w(){g||d()}function S(){g||m()}function E(){g=!0,d()}function T(){g=!1,m()}function A(r){typeof r<"u"&&(i=r),m()}function b(){o&&d()}function v(){o&&m()}function P(){return o}function F(){const{index:r}=n.internalEngine(),x=r.clone().add(1).get(),q=n.scrollSnapList().length-1,D=e.stopOnLastSnap&&x===q;if(n.canScrollNext()?n.scrollNext(i):n.scrollTo(0,i),n.emit("autoplay:select"),D)return d();m()}function M(){if(!p)return null;const r=f[n.selectedScrollSnap()],x=new Date().getTime()-p;return r-x}return{name:"autoplay",options:a,init:y,destroy:c,play:A,stop:b,reset:v,isPlaying:P,timeUntilNext:M}}H.globalOptions=void 0;function V(a={}){let e,n=[];const s=["select","slideFocus"];function f(t){e=t;const{options:{axis:i},slideRects:y}=e.internalEngine();i!=="y"&&(n=y.map(c=>c.height),s.forEach(c=>e.on(c,o)),o())}function p(){s.forEach(i=>e.off(i,o));const t=e.containerNode();t.style.height="",t.getAttribute("style")||t.removeAttribute("style")}function l(){const{slideRegistry:t}=e.internalEngine(),i=t[e.selectedScrollSnap()];return i?i.map(y=>n[y]).reduce((y,c)=>Math.max(y,c),0):null}function o(){l()!==null&&(e.containerNode().style.height=`${l()}px`)}return{name:"autoHeight",options:a,init:f,destroy:p}}V.globalOptions=void 0;const X=(a={})=>{const{align:e="center",initialIndex:n=0,autoplay:s=!1,delay:f=3e3,duration:p=25,loop:l,autoHeight:o=!0}=a,[g,t]=B({axis:"x",align:e,startIndex:n,duration:p,loop:l},[H({playOnInit:!0,delay:f,active:s}),V({active:o})]),i=t?.scrollNext,y=u.useCallback(v=>i?.(v.jump),[i]),c=t?.scrollPrev,O=u.useCallback(v=>c?.(v.jump),[c]),h=t?.scrollTo,m=u.useCallback((v,P)=>h?.(v,P.jump),[h]),[d,j]=u.useState(!1),[k,w]=u.useState(!1),[S,E]=u.useState(0),[T,A]=u.useState([]),b=u.useCallback(()=>{t&&(w(!!t?.canScrollPrev()),j(!!t?.canScrollNext()),A(t.scrollSnapList()),E(t.selectedScrollSnap()))},[t]);return u.useEffect(()=>{t&&(b(),t.on("reInit",b).on("select",b))},[t,b]),{ref:g,next:y,prev:O,toSlide:m,activeIndex:S,canNext:d,canPrev:k,snaps:T,options:a}},N=z("carousel"),Y=u.forwardRef(({className:a,carousel:e,options:n,pagination:s=!0,children:f},p)=>{const l=X(n);return e=e||l,u.useImperativeHandle(p,()=>e),I.jsxs("div",{className:R(N,a),style:{"--carousel-gap":typeof e.options.gap=="number"?e.options.gap+"px":"8px"},children:[I.jsx("div",{className:`${N}__viewport`,ref:e.ref,children:I.jsx("div",{className:`${N}__tracks`,children:f})}),!!s&&I.jsx(G,{total:e.snaps.length,activeIndex:e.activeIndex})]})}),Z=({children:a,className:e,...n})=>I.jsx("div",{className:R(`${N}__item`,e),...n,children:a});Y.__docgenInfo={description:"",methods:[],displayName:"Carousel",props:{className:{required:!1,tsType:{name:"string"},description:""},children:{required:!0,tsType:{name:"ReactNode"},description:""},carousel:{required:!1,tsType:{name:"signature",type:"object",raw:`{
|
|
2
|
-
ref: ICarouselViewPortRef
|
|
3
|
-
next: (options: ICarouselToOptions) => void
|
|
4
|
-
prev: (options: ICarouselToOptions) => void
|
|
5
|
-
toSlide: (index: number, options: ICarouselToOptions) => void
|
|
6
|
-
activeIndex: number
|
|
7
|
-
canNext: boolean
|
|
8
|
-
canPrev: boolean
|
|
9
|
-
snaps: number[]
|
|
10
|
-
options: ICarouselOptions
|
|
11
|
-
}`,signature:{properties:[{key:"ref",value:{name:"signature",type:"function",raw:`<ViewportElement extends HTMLElement>(
|
|
12
|
-
instance: ViewportElement | null,
|
|
13
|
-
) => void`,signature:{arguments:[{type:{name:"union",raw:"ViewportElement | null",elements:[{name:"ViewportElement"},{name:"null"}]},name:"instance"}],return:{name:"void"}},required:!0}},{key:"next",value:{name:"signature",type:"function",raw:"(options: ICarouselToOptions) => void",signature:{arguments:[{type:{name:"signature",type:"object",raw:`{
|
|
14
|
-
jump?: boolean
|
|
15
|
-
}`,signature:{properties:[{key:"jump",value:{name:"boolean",required:!1}}]}},name:"options"}],return:{name:"void"}},required:!0}},{key:"prev",value:{name:"signature",type:"function",raw:"(options: ICarouselToOptions) => void",signature:{arguments:[{type:{name:"signature",type:"object",raw:`{
|
|
16
|
-
jump?: boolean
|
|
17
|
-
}`,signature:{properties:[{key:"jump",value:{name:"boolean",required:!1}}]}},name:"options"}],return:{name:"void"}},required:!0}},{key:"toSlide",value:{name:"signature",type:"function",raw:"(index: number, options: ICarouselToOptions) => void",signature:{arguments:[{type:{name:"number"},name:"index"},{type:{name:"signature",type:"object",raw:`{
|
|
18
|
-
jump?: boolean
|
|
19
|
-
}`,signature:{properties:[{key:"jump",value:{name:"boolean",required:!1}}]}},name:"options"}],return:{name:"void"}},required:!0}},{key:"activeIndex",value:{name:"number",required:!0}},{key:"canNext",value:{name:"boolean",required:!0}},{key:"canPrev",value:{name:"boolean",required:!0}},{key:"snaps",value:{name:"Array",elements:[{name:"number"}],raw:"number[]",required:!0}},{key:"options",value:{name:"signature",type:"object",raw:`{
|
|
20
|
-
align?: ICarouselAlign
|
|
21
|
-
initialIndex?: number
|
|
22
|
-
loop?: boolean
|
|
23
|
-
duration?: number
|
|
24
|
-
autoplay?: boolean
|
|
25
|
-
delay?: number
|
|
26
|
-
autoHeight?: boolean
|
|
27
|
-
gap?: number
|
|
28
|
-
}`,signature:{properties:[{key:"align",value:{name:"union",raw:"'start' | 'center' | 'end'",elements:[{name:"literal",value:"'start'"},{name:"literal",value:"'center'"},{name:"literal",value:"'end'"}],required:!1}},{key:"initialIndex",value:{name:"number",required:!1}},{key:"loop",value:{name:"boolean",required:!1}},{key:"duration",value:{name:"number",required:!1}},{key:"autoplay",value:{name:"boolean",required:!1}},{key:"delay",value:{name:"number",required:!1}},{key:"autoHeight",value:{name:"boolean",required:!1}},{key:"gap",value:{name:"number",required:!1}}]},required:!0}}]}},description:""},options:{required:!1,tsType:{name:"signature",type:"object",raw:`{
|
|
29
|
-
align?: ICarouselAlign
|
|
30
|
-
initialIndex?: number
|
|
31
|
-
loop?: boolean
|
|
32
|
-
duration?: number
|
|
33
|
-
autoplay?: boolean
|
|
34
|
-
delay?: number
|
|
35
|
-
autoHeight?: boolean
|
|
36
|
-
gap?: number
|
|
37
|
-
}`,signature:{properties:[{key:"align",value:{name:"union",raw:"'start' | 'center' | 'end'",elements:[{name:"literal",value:"'start'"},{name:"literal",value:"'center'"},{name:"literal",value:"'end'"}],required:!1}},{key:"initialIndex",value:{name:"number",required:!1}},{key:"loop",value:{name:"boolean",required:!1}},{key:"duration",value:{name:"number",required:!1}},{key:"autoplay",value:{name:"boolean",required:!1}},{key:"delay",value:{name:"number",required:!1}},{key:"autoHeight",value:{name:"boolean",required:!1}},{key:"gap",value:{name:"number",required:!1}}]}},description:""},pagination:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}}}};Z.__docgenInfo={description:"",methods:[],displayName:"CarouselItem"};export{Y as C,Z as a,X as u};
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import{j as e,r as j}from"./iframe-C0PGuV5s.js";import{C as a,a as n,u as f}from"./carousel-C1nQGnJZ.js";import{B as r}from"./button-CbLEqALK.js";import{t as o}from"./store-BmYgrUro.js";import{T as F,S as b,M as h,P as $,a as v}from"./blocks-D4qvS4eZ.js";import"./preload-helper-PPVm8Dsz.js";import"./embla-carousel-react.esm-Pp2OIUrN.js";import"./pagination-MBP1YLhT.js";import"./icon-CgGksgRS.js";import"./colors-_6nFGM3e.js";import"./typography-BcLxefPi.js";import"./index-1AHvPexM.js";const N=()=>{const s=`
|
|
2
|
-
## ${o("common.table.title")}
|
|
3
|
-
|
|
4
|
-
| ${o("common.table.name")} | ${o("common.table.type")} | ${o("common.table.required")} | ${o("common.table.description")} |
|
|
5
|
-
| :--- | :--- | :--- | :--- |
|
|
6
|
-
| \`children\` | \`ReactNode\` | ${o("common.table.yes")} | ${o("components.carousel.childrenDescription")} |
|
|
7
|
-
| \`carousel\` | \`ICarouselInstance\` | ${o("common.table.no")} | ${o("components.carousel.carouselDescription")} |
|
|
8
|
-
| \`options\` | \`ICarouselOptions\` | ${o("common.table.no")} | ${o("components.carousel.optionsDescription")} |
|
|
9
|
-
| \`pagination\` | \`boolean\` | ${o("common.table.no")} | ${o("components.carousel.paginationDescription")} |
|
|
10
|
-
| \`className\` | \`string\` | ${o("common.table.no")} | ${o("components.carousel.classNameDescription")} |
|
|
11
|
-
|
|
12
|
-
### ICarouselOptions
|
|
13
|
-
|
|
14
|
-
| ${o("common.table.name")} | ${o("common.table.type")} | ${o("common.table.required")} | ${o("common.table.description")} |
|
|
15
|
-
| :--- | :--- | :--- | :--- |
|
|
16
|
-
| \`align\` | \`'start' | 'center' | 'end'\` | ${o("common.table.no")} | ${o("components.carousel.options.alignDescription")} |
|
|
17
|
-
| \`initialIndex\` | \`number\` | ${o("common.table.no")} | ${o("components.carousel.options.initialIndexDescription")} |
|
|
18
|
-
| \`loop\` | \`boolean\` | ${o("common.table.no")} | ${o("components.carousel.options.loopDescription")} |
|
|
19
|
-
| \`duration\` | \`number\` | ${o("common.table.no")} | ${o("components.carousel.options.durationDescription")} |
|
|
20
|
-
| \`autoplay\` | \`boolean\` | ${o("common.table.no")} | ${o("components.carousel.options.autoplayDescription")} |
|
|
21
|
-
| \`delay\` | \`number\` | ${o("common.table.no")} | ${o("components.carousel.options.delayDescription")} |
|
|
22
|
-
| \`autoHeight\` | \`boolean\` | ${o("common.table.no")} | ${o("components.carousel.options.autoHeightDescription")} |
|
|
23
|
-
| \`gap\` | \`number\` | ${o("common.table.no")} | ${o("components.carousel.options.gapDescription")} |
|
|
24
|
-
`;return e.jsxs(e.Fragment,{children:[e.jsx(F,{}),e.jsx(b,{}),e.jsx(h,{children:o("components.carousel.description")}),e.jsx($,{}),e.jsx(h,{children:s}),e.jsx(v,{})]})},z={title:"Components/Carousel",component:a,parameters:{layout:"padded",docs:{page:N}},tags:["autodocs"],argTypes:{children:{control:!1,description:o("components.carousel.argTypes.childrenDescription"),table:{type:{summary:"ReactNode"}}},carousel:{control:!1,description:o("components.carousel.argTypes.carouselDescription"),table:{type:{summary:"ICarouselInstance"}}},options:{control:"object",description:o("components.carousel.argTypes.optionsDescription"),table:{type:{summary:"ICarouselOptions"}}},pagination:{control:"boolean",description:o("components.carousel.argTypes.paginationDescription"),table:{type:{summary:"boolean"},defaultValue:{summary:"true"}}},className:{control:"text",description:o("components.carousel.argTypes.classNameDescription"),table:{type:{summary:"string"}}}}},t=(s,l)=>e.jsxs("div",{style:{width:"100%",height:"200px",backgroundColor:l,display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"24px",fontWeight:"bold"},children:[o("components.carousel.stories.slide")," ",s+1]}),c={storyName:o("components.carousel.stories.default.title"),render:()=>e.jsxs(a,{children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})},i={storyName:o("components.carousel.stories.withLoop.title"),render:()=>e.jsxs(a,{options:{loop:!0},children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})},u={storyName:o("components.carousel.stories.withoutPagination.title"),render:()=>e.jsxs(a,{pagination:!1,children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})},m={storyName:o("components.carousel.stories.customOptions.title"),render:()=>e.jsxs(a,{options:{align:"center",loop:!0,autoplay:!0,delay:5e3,gap:16,duration:25},children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})},p={storyName:o("components.carousel.stories.programmaticControl.title"),render:()=>{const s=j.useRef(null),l=()=>{s.current?.next({})},S=()=>{s.current?.prev({})},y=B=>{s.current?.toSlide(B,{})};return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx(r,{onClick:S,children:o("components.carousel.stories.programmaticControl.previous")}),e.jsx(r,{onClick:l,children:o("components.carousel.stories.programmaticControl.next")}),e.jsx(r,{onClick:()=>y(0),children:o("components.carousel.stories.programmaticControl.goToSlide",{index:1})}),e.jsx(r,{onClick:()=>y(1),children:o("components.carousel.stories.programmaticControl.goToSlide",{index:2})}),e.jsx(r,{onClick:()=>y(2),children:o("components.carousel.stories.programmaticControl.goToSlide",{index:3})})]}),e.jsxs(a,{ref:s,children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})]})}},d={storyName:o("components.carousel.stories.externalCarouselInstance.title"),render:()=>{const s=f({loop:!1,autoplay:!1});return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx(r,{onClick:()=>s.prev({}),children:o("components.carousel.stories.externalCarouselInstance.previous")}),e.jsx(r,{onClick:()=>s.next({}),children:o("components.carousel.stories.externalCarouselInstance.next")}),e.jsxs("p",{style:{fontSize:"14px",color:"#666"},children:[`${o("components.carousel.stories.externalCarouselInstance.activeIndex")} ${s.activeIndex} | `,`${o("components.carousel.stories.externalCarouselInstance.canNext")}: `,s.canNext?o("components.carousel.stories.externalCarouselInstance.yes"):o("components.carousel.stories.externalCarouselInstance.no"),` | ${o("components.carousel.stories.externalCarouselInstance.canPrev")}: `,s.canPrev?o("components.carousel.stories.externalCarouselInstance.yes"):o("components.carousel.stories.externalCarouselInstance.no")]})]}),e.jsxs(a,{carousel:s,children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})]})}},C={storyName:o("components.carousel.stories.alignmentOptions.title"),render:()=>{const[s,l]=j.useState("center");return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx(r,{onClick:()=>l("start"),type:s==="start"?"solid":"outline",children:o("components.carousel.stories.alignmentOptions.start")}),e.jsx(r,{onClick:()=>l("center"),type:s==="center"?"solid":"outline",children:o("components.carousel.stories.alignmentOptions.center")}),e.jsx(r,{onClick:()=>l("end"),type:s==="end"?"solid":"outline",children:o("components.carousel.stories.alignmentOptions.end")})]}),e.jsxs(a,{options:{align:s,loop:!0},children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})]})}},x={storyName:o("components.carousel.stories.multipleSlides.title"),render:()=>e.jsxs(a,{options:{loop:!0,gap:12},children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")}),e.jsx(n,{children:t(3,"#FFD93D")}),e.jsx(n,{children:t(4,"#9B59B6")}),e.jsx(n,{children:t(5,"#E67E22")})]})},g={storyName:o("components.carousel.stories.withoutAutoplay.title"),render:()=>e.jsxs(a,{options:{autoplay:!1},children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})},I={storyName:o("components.carousel.stories.interactive.title"),args:{pagination:!0,children:e.jsxs(e.Fragment,{children:[e.jsx(n,{children:t(0,"#4A90E2")}),e.jsx(n,{children:t(1,"#50C878")}),e.jsx(n,{children:t(2,"#FF6B6B")})]})}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
25
|
-
storyName: t('components.carousel.stories.default.title'),
|
|
26
|
-
render: () => <Carousel>
|
|
27
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
28
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
29
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
30
|
-
</Carousel>
|
|
31
|
-
}`,...c.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
|
|
32
|
-
storyName: t('components.carousel.stories.withLoop.title'),
|
|
33
|
-
render: () => <Carousel options={{
|
|
34
|
-
loop: true
|
|
35
|
-
}}>
|
|
36
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
37
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
38
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
39
|
-
</Carousel>
|
|
40
|
-
}`,...i.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
|
|
41
|
-
storyName: t('components.carousel.stories.withoutPagination.title'),
|
|
42
|
-
render: () => <Carousel pagination={false}>
|
|
43
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
44
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
45
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
46
|
-
</Carousel>
|
|
47
|
-
}`,...u.parameters?.docs?.source}}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
|
|
48
|
-
storyName: t('components.carousel.stories.customOptions.title'),
|
|
49
|
-
render: () => <Carousel options={{
|
|
50
|
-
align: 'center',
|
|
51
|
-
loop: true,
|
|
52
|
-
autoplay: true,
|
|
53
|
-
delay: 5000,
|
|
54
|
-
gap: 16,
|
|
55
|
-
duration: 25
|
|
56
|
-
}}>
|
|
57
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
58
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
59
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
60
|
-
</Carousel>
|
|
61
|
-
}`,...m.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
62
|
-
storyName: t('components.carousel.stories.programmaticControl.title'),
|
|
63
|
-
render: () => {
|
|
64
|
-
const carouselRef = useRef<ICarouselInstance | null>(null);
|
|
65
|
-
const goToNext = () => {
|
|
66
|
-
carouselRef.current?.next({});
|
|
67
|
-
};
|
|
68
|
-
const goToPrevious = () => {
|
|
69
|
-
carouselRef.current?.prev({});
|
|
70
|
-
};
|
|
71
|
-
const goToSlide = (index: number) => {
|
|
72
|
-
carouselRef.current?.toSlide(index, {});
|
|
73
|
-
};
|
|
74
|
-
return <div style={{
|
|
75
|
-
display: 'flex',
|
|
76
|
-
flexDirection: 'column',
|
|
77
|
-
gap: '16px'
|
|
78
|
-
}}>
|
|
79
|
-
<div style={{
|
|
80
|
-
display: 'flex',
|
|
81
|
-
gap: '8px'
|
|
82
|
-
}}>
|
|
83
|
-
<Button onClick={goToPrevious}>
|
|
84
|
-
{t('components.carousel.stories.programmaticControl.previous')}
|
|
85
|
-
</Button>
|
|
86
|
-
<Button onClick={goToNext}>
|
|
87
|
-
{t('components.carousel.stories.programmaticControl.next')}
|
|
88
|
-
</Button>
|
|
89
|
-
<Button onClick={() => goToSlide(0)}>
|
|
90
|
-
{t('components.carousel.stories.programmaticControl.goToSlide', {
|
|
91
|
-
index: 1
|
|
92
|
-
})}
|
|
93
|
-
</Button>
|
|
94
|
-
<Button onClick={() => goToSlide(1)}>
|
|
95
|
-
{t('components.carousel.stories.programmaticControl.goToSlide', {
|
|
96
|
-
index: 2
|
|
97
|
-
})}
|
|
98
|
-
</Button>
|
|
99
|
-
<Button onClick={() => goToSlide(2)}>
|
|
100
|
-
{t('components.carousel.stories.programmaticControl.goToSlide', {
|
|
101
|
-
index: 3
|
|
102
|
-
})}
|
|
103
|
-
</Button>
|
|
104
|
-
</div>
|
|
105
|
-
<Carousel ref={carouselRef}>
|
|
106
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
107
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
108
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
109
|
-
</Carousel>
|
|
110
|
-
</div>;
|
|
111
|
-
}
|
|
112
|
-
}`,...p.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
113
|
-
storyName: t('components.carousel.stories.externalCarouselInstance.title'),
|
|
114
|
-
render: () => {
|
|
115
|
-
const carousel = useCarousel({
|
|
116
|
-
loop: false,
|
|
117
|
-
autoplay: false
|
|
118
|
-
});
|
|
119
|
-
return <div style={{
|
|
120
|
-
display: 'flex',
|
|
121
|
-
flexDirection: 'column',
|
|
122
|
-
gap: '16px'
|
|
123
|
-
}}>
|
|
124
|
-
<div style={{
|
|
125
|
-
display: 'flex',
|
|
126
|
-
gap: '8px'
|
|
127
|
-
}}>
|
|
128
|
-
<Button onClick={() => carousel.prev({})}>
|
|
129
|
-
{t('components.carousel.stories.externalCarouselInstance.previous')}
|
|
130
|
-
</Button>
|
|
131
|
-
<Button onClick={() => carousel.next({})}>
|
|
132
|
-
{t('components.carousel.stories.externalCarouselInstance.next')}
|
|
133
|
-
</Button>
|
|
134
|
-
<p style={{
|
|
135
|
-
fontSize: '14px',
|
|
136
|
-
color: '#666'
|
|
137
|
-
}}>
|
|
138
|
-
{\`\${t('components.carousel.stories.externalCarouselInstance.activeIndex')} \${carousel.activeIndex} | \`}
|
|
139
|
-
{\`\${t('components.carousel.stories.externalCarouselInstance.canNext')}: \`}
|
|
140
|
-
{carousel.canNext ? t('components.carousel.stories.externalCarouselInstance.yes') : t('components.carousel.stories.externalCarouselInstance.no')}
|
|
141
|
-
{\` | \${t('components.carousel.stories.externalCarouselInstance.canPrev')}: \`}
|
|
142
|
-
{carousel.canPrev ? t('components.carousel.stories.externalCarouselInstance.yes') : t('components.carousel.stories.externalCarouselInstance.no')}
|
|
143
|
-
</p>
|
|
144
|
-
</div>
|
|
145
|
-
<Carousel carousel={carousel}>
|
|
146
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
147
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
148
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
149
|
-
</Carousel>
|
|
150
|
-
</div>;
|
|
151
|
-
}
|
|
152
|
-
}`,...d.parameters?.docs?.source}}};C.parameters={...C.parameters,docs:{...C.parameters?.docs,source:{originalSource:`{
|
|
153
|
-
storyName: t('components.carousel.stories.alignmentOptions.title'),
|
|
154
|
-
render: () => {
|
|
155
|
-
const [align, setAlign] = useState<'start' | 'center' | 'end'>('center');
|
|
156
|
-
return <div style={{
|
|
157
|
-
display: 'flex',
|
|
158
|
-
flexDirection: 'column',
|
|
159
|
-
gap: '16px'
|
|
160
|
-
}}>
|
|
161
|
-
<div style={{
|
|
162
|
-
display: 'flex',
|
|
163
|
-
gap: '8px'
|
|
164
|
-
}}>
|
|
165
|
-
<Button onClick={() => setAlign('start')} type={align === 'start' ? 'solid' : 'outline'}>
|
|
166
|
-
{t('components.carousel.stories.alignmentOptions.start')}
|
|
167
|
-
</Button>
|
|
168
|
-
<Button onClick={() => setAlign('center')} type={align === 'center' ? 'solid' : 'outline'}>
|
|
169
|
-
{t('components.carousel.stories.alignmentOptions.center')}
|
|
170
|
-
</Button>
|
|
171
|
-
<Button onClick={() => setAlign('end')} type={align === 'end' ? 'solid' : 'outline'}>
|
|
172
|
-
{t('components.carousel.stories.alignmentOptions.end')}
|
|
173
|
-
</Button>
|
|
174
|
-
</div>
|
|
175
|
-
<Carousel options={{
|
|
176
|
-
align,
|
|
177
|
-
loop: true
|
|
178
|
-
}}>
|
|
179
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
180
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
181
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
182
|
-
</Carousel>
|
|
183
|
-
</div>;
|
|
184
|
-
}
|
|
185
|
-
}`,...C.parameters?.docs?.source}}};x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
|
|
186
|
-
storyName: t('components.carousel.stories.multipleSlides.title'),
|
|
187
|
-
render: () => <Carousel options={{
|
|
188
|
-
loop: true,
|
|
189
|
-
gap: 12
|
|
190
|
-
}}>
|
|
191
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
192
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
193
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
194
|
-
<CarouselItem>{createSlideContent(3, '#FFD93D')}</CarouselItem>
|
|
195
|
-
<CarouselItem>{createSlideContent(4, '#9B59B6')}</CarouselItem>
|
|
196
|
-
<CarouselItem>{createSlideContent(5, '#E67E22')}</CarouselItem>
|
|
197
|
-
</Carousel>
|
|
198
|
-
}`,...x.parameters?.docs?.source}}};g.parameters={...g.parameters,docs:{...g.parameters?.docs,source:{originalSource:`{
|
|
199
|
-
storyName: t('components.carousel.stories.withoutAutoplay.title'),
|
|
200
|
-
render: () => <Carousel options={{
|
|
201
|
-
autoplay: false
|
|
202
|
-
}}>
|
|
203
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
204
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
205
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
206
|
-
</Carousel>
|
|
207
|
-
}`,...g.parameters?.docs?.source}}};I.parameters={...I.parameters,docs:{...I.parameters?.docs,source:{originalSource:`{
|
|
208
|
-
storyName: t('components.carousel.stories.interactive.title'),
|
|
209
|
-
args: {
|
|
210
|
-
pagination: true,
|
|
211
|
-
children: <>
|
|
212
|
-
<CarouselItem>{createSlideContent(0, '#4A90E2')}</CarouselItem>
|
|
213
|
-
<CarouselItem>{createSlideContent(1, '#50C878')}</CarouselItem>
|
|
214
|
-
<CarouselItem>{createSlideContent(2, '#FF6B6B')}</CarouselItem>
|
|
215
|
-
</>
|
|
216
|
-
}
|
|
217
|
-
}`,...I.parameters?.docs?.source}}};const q=["Default","WithLoop","WithoutPagination","CustomOptions","ProgrammaticControl","ExternalCarouselInstance","AlignmentOptions","MultipleSlides","WithoutAutoplay","Interactive"];export{C as AlignmentOptions,m as CustomOptions,c as Default,d as ExternalCarouselInstance,I as Interactive,x as MultipleSlides,p as ProgrammaticControl,i as WithLoop,g as WithoutAutoplay,u as WithoutPagination,q as __namedExportsOrder,z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,r as d}from"./iframe-C0PGuV5s.js";import{c as B,g as F}from"./store-BmYgrUro.js";import{u as p}from"./index-DWjPAWoJ.js";import{T as b}from"./typography-BcLxefPi.js";const g=({fill:n="white",...l})=>t.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:t.jsx("path",{d:"M5.11112 12.4445H5.10934C4.90756 12.4445 4.71645 12.352 4.59112 12.1947L1.03556 7.75026C0.805341 7.46226 0.851563 7.04359 1.13956 6.81337C1.42845 6.58315 1.84712 6.63026 2.07645 6.91737L5.11467 10.7147L12.1485 2.02492C12.3805 1.7387 12.7991 1.69337 13.0862 1.92626C13.3725 2.15826 13.4169 2.57781 13.1849 2.86403L5.62934 12.1974C5.50223 12.3538 5.31201 12.4445 5.11112 12.4445Z",fill:n})});g.__docgenInfo={description:"",methods:[],displayName:"CheckIcon",props:{fill:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'white'",computed:!1}}}};const x=({fill:n="white",...l})=>t.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:t.jsx("rect",{x:"2",y:"6.5",width:"11",height:"2",rx:"1",fill:n})});x.__docgenInfo={description:"",methods:[],displayName:"IndeterminateIcon",props:{fill:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'white'",computed:!1}}}};const a=F("checkbox"),S=d.forwardRef((n,l)=>{const{disabled:r=!1,theme:C="brand",variant:s="default",className:N,style:k,checked:V,defaultChecked:L,onChange:R,number:T,defaultNumber:q,onNumberChange:z,children:m,typography:_,...h}=n,v=C||"brand",u=d.useRef(null),[w,i]=d.useState(!1),[f,j]=p(n,{valuePropName:"checked",defaultValuePropName:"defaultChecked",trigger:"onChange"}),[o,y]=p(n,{valuePropName:"number",defaultValuePropName:"defaultNumber",trigger:"onNumberChange"}),c=o!==void 0?!0:f;d.useImperativeHandle(l,()=>({focus:()=>u.current?.focus?.(),blur:()=>u.current?.blur?.()}));const $=e=>{if(e.preventDefault(),r)return;const P=o===void 0?1:o+1;y(P)},I=()=>s==="number"?t.jsx("input",{...h,type:"text",inputMode:"numeric",value:o??"",disabled:r,readOnly:!0,ref:u,className:`${a}__input`,onClick:e=>e.stopPropagation(),onFocus:e=>{i(!0),n.onFocus?.(e)},onBlur:e=>{i(!1),n.onBlur?.(e)}}):t.jsx("input",{...h,type:"checkbox",checked:f,disabled:r,onChange:e=>j(e.target.checked),ref:u,className:`${a}__input`,onFocus:e=>{i(!0),n.onFocus?.(e)},onBlur:e=>{i(!1),n.onBlur?.(e)}});return t.jsxs("label",{className:B(a,{[`${a}--checked`]:c,[`${a}--unchecked`]:!c,[`${a}--disabled`]:r,[`${a}--focus`]:w,[`${a}--theme-${v}`]:!0,[`${a}--variant-${s}`]:s!=="default"},N),style:k,onClick:s==="number"?$:void 0,children:[t.jsxs("span",{className:`${a}__button`,children:[t.jsx("span",{className:`${a}__overlay`}),c&&s==="number"&&o!==void 0?t.jsx(b,{component:"span",size:"x-small",weight:700,color:r?"alias-border-disabled":"alias-object-on-brand",className:`${a}__number`,children:o}):c&&s==="indeterminate"?t.jsx(x,{fill:r?"var(--color-alias-border-disabled, rgba(10, 10, 10, 0.25))":"white"}):c?t.jsx(g,{fill:r?"var(--color-alias-border-disabled, rgba(10, 10, 10, 0.25))":"white"}):null,I()]}),m&&t.jsx(b,{component:"span",..._,size:"base",children:m})]})});S.__docgenInfo={description:"",methods:[{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"blur",docblock:null,modifiers:[],params:[],returns:null}],displayName:"Checkbox"};export{S as C};
|