@frontify/fondue 12.1.11 → 12.1.13
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/components/RichTextEditor/RichTextEditor.es.js +22 -22
- package/dist/components/Tree/Tree.es.js +8 -8
- package/dist/components/Tree/TreeItem/TreeItem.es.js +21 -21
- package/dist/components/Tree/TreeItem/TreeItemMultiselect.es.js +21 -21
- package/dist/components/Tree/TreeItem/TreeItemMultiselect.es.js.map +1 -1
- package/dist/components/Tree/helpers/reducer.es.js +1 -1
- package/dist/index.cjs.js +25 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.umd.js +26 -26
- package/dist/index.umd.js.map +1 -1
- package/dist/packages/tokens/tailwind.config.js +1 -1
- package/package.json +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.es.js +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.es.js +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.es.js +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.es.js +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.es.js +0 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.es.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.es.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.es.js +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.es.js +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.es.js +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.es.js +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.es.js +0 -33
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.es.js +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.es.js +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.es.js +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.es.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.es.js +0 -41
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.es.js +0 -46
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.es.js +0 -37
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.es.js +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.es.js +0 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.es.js +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.es.js +0 -29
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.es.js +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.es.js +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.es.js +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.es.js +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.es.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.es.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.es.js +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.es.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.es.js +0 -18
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.es.js +0 -18
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.es.js +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.es.js +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.es.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.es.js +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.es.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.es.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.es.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.es.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.es.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.es.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as i, jsxs as S } from "react/jsx-runtime";
|
|
2
2
|
import { Plate as g, PlateContent as z } from "@udecode/plate-core";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import W from "
|
|
3
|
+
import { noop as D } from "lodash-es";
|
|
4
|
+
import { useMemo as j, useCallback as T } from "react";
|
|
5
|
+
import { BlurObserver as B } from "./BlurObserver.es.js";
|
|
6
|
+
import { useMemoizedId as H } from "../../hooks/useMemoizedId.es.js";
|
|
7
|
+
import { merge as U } from "../../utilities/merge.es.js";
|
|
8
|
+
import { ContentReplacement as A } from "./ContentReplacement.es.js";
|
|
9
|
+
import { RichTextEditorProvider as J } from "./context/RichTextEditorContext.es.js";
|
|
10
|
+
import { PaddingSizes as Y } from "./types.es.js";
|
|
11
|
+
import { useEditorState as b } from "./hooks/useEditorState.es.js";
|
|
12
|
+
import { KEY_ELEMENT_BREAK_AFTER_COLUMN as q, GAP_DEFAULT as v } from "./Plugins/ColumnBreakPlugin/createColumnBreakPlugin.es.js";
|
|
13
|
+
import { forceToFocusNextElement as Q } from "./helpers/forceToFocusElement.es.js";
|
|
14
|
+
import { RenderPlaceholder as W } from "./components/RenderPlaceholder/RenderPlaceholder.es.js";
|
|
15
15
|
import { Position as h } from "./components/EditorPositioningWrapper/types.es.js";
|
|
16
16
|
import { defaultPlugins as X } from "./Plugins/defaultPlugins.es.js";
|
|
17
17
|
import { parseRawValue as Z } from "./utils/parseRawValue.es.js";
|
|
@@ -22,7 +22,7 @@ const $ = ({
|
|
|
22
22
|
readonly: x = !1,
|
|
23
23
|
onTextChange: C,
|
|
24
24
|
onBlur: n,
|
|
25
|
-
padding: F =
|
|
25
|
+
padding: F = Y.None,
|
|
26
26
|
position: l = h.FLOATING,
|
|
27
27
|
plugins: s = X,
|
|
28
28
|
updateValueOnChange: O = !1,
|
|
@@ -32,13 +32,13 @@ const $ = ({
|
|
|
32
32
|
hideExternalFloatingModals: K
|
|
33
33
|
}) => {
|
|
34
34
|
var u, E, y;
|
|
35
|
-
const t =
|
|
35
|
+
const t = H(N), { localValue: a, onChange: L, memoizedValue: P, config: r } = b({
|
|
36
36
|
editorId: t,
|
|
37
37
|
initialValue: m,
|
|
38
38
|
onTextChange: C,
|
|
39
39
|
plugins: s,
|
|
40
40
|
onValueChanged: V
|
|
41
|
-
}), o = s.plugins.find((e) => e.key ===
|
|
41
|
+
}), o = s.plugins.find((e) => e.key === q), c = (u = o == null ? void 0 : o.options) == null ? void 0 : u.customClass, d = c ? null : ((E = o == null ? void 0 : o.options) == null ? void 0 : E.columns) ?? 1, p = ((y = o == null ? void 0 : o.options) == null ? void 0 : y.gap) ?? v, _ = j(
|
|
42
42
|
() => ({
|
|
43
43
|
columns: d,
|
|
44
44
|
columnGap: p,
|
|
@@ -48,23 +48,23 @@ const $ = ({
|
|
|
48
48
|
), G = T(() => {
|
|
49
49
|
n && n(JSON.stringify(a.current));
|
|
50
50
|
}, [n, a]), M = T((e) => {
|
|
51
|
-
e.code === "Tab" &&
|
|
51
|
+
e.code === "Tab" && Q(e, !e.shiftKey);
|
|
52
52
|
}, []), f = {
|
|
53
53
|
placeholder: R,
|
|
54
|
-
renderPlaceholder:
|
|
54
|
+
renderPlaceholder: W,
|
|
55
55
|
readOnly: x,
|
|
56
56
|
onBlur: G,
|
|
57
|
-
className:
|
|
57
|
+
className: U([F, c]),
|
|
58
58
|
style: _,
|
|
59
59
|
onKeyDown: M,
|
|
60
|
-
scrollSelectionIntoView:
|
|
60
|
+
scrollSelectionIntoView: D
|
|
61
61
|
};
|
|
62
|
-
return /* @__PURE__ */ i(
|
|
62
|
+
return /* @__PURE__ */ i(J, { styles: r.styles(), position: l, border: w, editorId: t, children: /* @__PURE__ */ S(g, { id: t, onChange: L, plugins: r.plugins, initialValue: P, children: [
|
|
63
63
|
/* @__PURE__ */ i(z, { ...f }),
|
|
64
64
|
!f.readOnly && r.toolbar(I),
|
|
65
65
|
r.inline(),
|
|
66
|
-
O && /* @__PURE__ */ i(
|
|
67
|
-
l === h.FLOATING && /* @__PURE__ */ i(
|
|
66
|
+
O && /* @__PURE__ */ i(A, { value: Z({ editorId: t, raw: m, plugins: s }) }),
|
|
67
|
+
l === h.FLOATING && /* @__PURE__ */ i(B, { hideExternalFloatingModals: K })
|
|
68
68
|
] }) });
|
|
69
69
|
};
|
|
70
70
|
$.displayName = "FondueRichTextEditor";
|
|
@@ -3,12 +3,12 @@ import { MeasuringStrategy as Ie, useSensors as Ne, useSensor as V, PointerSenso
|
|
|
3
3
|
import { restrictToWindowEdges as De } from "@dnd-kit/modifiers";
|
|
4
4
|
import { SortableContext as Ce, verticalListSortingStrategy as Te } from "@dnd-kit/sortable";
|
|
5
5
|
import { enableMapSet as Oe, produce as fe } from "immer";
|
|
6
|
+
import { isEqual as Y } from "lodash-es";
|
|
6
7
|
import { memo as _e, useMemo as D, useReducer as xe, useTransition as ve, useState as g, useEffect as C, useCallback as c, useRef as Le, cloneElement as be } from "react";
|
|
7
8
|
import { createPortal as Ae } from "react-dom";
|
|
8
9
|
import { TreeContext as Pe } from "./TreeContext.es.js";
|
|
9
10
|
import { getReactNodeIdsInFlatArray as Me, removeReactNodesFromFlatArray as je, getTreeNodesWithoutElements as Ge, getNodesToRender as ke } from "./helpers/nodes.es.js";
|
|
10
|
-
import { findIndexById as He, getNodeChildrenIds as Ke, currentNodesChanged as Fe, getCurrentChildrenForNewNodesIfExpanded as
|
|
11
|
-
import $ from "../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.es.js";
|
|
11
|
+
import { findIndexById as He, getNodeChildrenIds as Ke, currentNodesChanged as Fe, getCurrentChildrenForNewNodesIfExpanded as J, updateNodeWithNewChildren as Ue, shouldUpdateTreeState as $ } from "./helpers/reducer.es.js";
|
|
12
12
|
import { handleKeyDownEvent as We } from "./helpers/treeHandleKeyDown.es.js";
|
|
13
13
|
import { sortableTreeKeyboardCoordinates as Be } from "./utils/keyboardCoordinates.es.js";
|
|
14
14
|
import { getAnnouncements as Xe } from "./helpers/getMovementAnnouncements.es.js";
|
|
@@ -39,7 +39,7 @@ const Qe = fe((o, n) => {
|
|
|
39
39
|
o.selectionMode = n.payload.selectionMode;
|
|
40
40
|
return;
|
|
41
41
|
case "SET_PROJECTION": {
|
|
42
|
-
|
|
42
|
+
Y(o.projection, n.payload) || (o.projection = n.payload);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
case "REGISTER_OVERLAY_ITEM": {
|
|
@@ -47,7 +47,7 @@ const Qe = fe((o, n) => {
|
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
case "REGISTER_ROOT_NODES": {
|
|
50
|
-
o.rootNodes =
|
|
50
|
+
o.rootNodes = J(
|
|
51
51
|
o.rootNodes,
|
|
52
52
|
o.expandedIds,
|
|
53
53
|
n.payload
|
|
@@ -61,8 +61,8 @@ const Qe = fe((o, n) => {
|
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
const E = Ke(o.rootNodes, d), I = p.map((l) => l.props.id);
|
|
64
|
-
if (
|
|
65
|
-
const l =
|
|
64
|
+
if (!Y(E, I) || Fe(E, o.rootNodes, p)) {
|
|
65
|
+
const l = J(
|
|
66
66
|
o.rootNodes,
|
|
67
67
|
o.expandedIds,
|
|
68
68
|
p
|
|
@@ -133,12 +133,12 @@ const Qe = fe((o, n) => {
|
|
|
133
133
|
), [t, a] = xe(Qe, Q), [, Z] = ve(), [N, M] = g(null), [T, O] = g(null), [f, j] = g(null), [G, _] = g(null);
|
|
134
134
|
C(() => {
|
|
135
135
|
const e = (r) => {
|
|
136
|
-
|
|
136
|
+
$(r, i) && a({
|
|
137
137
|
type: "SET_SELECTION_MODE",
|
|
138
138
|
payload: { selectionMode: "multiselect" }
|
|
139
139
|
});
|
|
140
140
|
}, s = (r) => {
|
|
141
|
-
|
|
141
|
+
$(r, i) && a({
|
|
142
142
|
type: "SET_SELECTION_MODE",
|
|
143
143
|
payload: { selectionMode: "single" }
|
|
144
144
|
});
|
|
@@ -3,17 +3,17 @@ import { memo as re, useRef as ae, useEffect as oe, useCallback as C, Children a
|
|
|
3
3
|
import { useDndContext as de, useDndMonitor as le } from "@dnd-kit/core";
|
|
4
4
|
import { useSortable as pe } from "@dnd-kit/sortable";
|
|
5
5
|
import { CSS as ue } from "@dnd-kit/utilities";
|
|
6
|
-
import {
|
|
6
|
+
import { noop as me } from "lodash-es";
|
|
7
|
+
import { TreeItemColorsClassMap as ce, TreeItemSpacingClassMap as ie, TreeItemBorderRadiusClassMap as M, TreeItemBorderClassMap as gt, TreeItemBorderStyleClassMap as we, TreeItemShadowClassMap as fe } from "../types.es.js";
|
|
7
8
|
import { useDebounce as Dt } from "../../../hooks/useDebounce.es.js";
|
|
8
|
-
import { FOCUS_VISIBLE_STYLE as
|
|
9
|
+
import { FOCUS_VISIBLE_STYLE as be } from "../../../utilities/focusStyle.es.js";
|
|
9
10
|
import { merge as b } from "../../../utilities/merge.es.js";
|
|
10
|
-
import { DragHandle as
|
|
11
|
-
import { ExpandButton as
|
|
12
|
-
import { useTreeItem as
|
|
13
|
-
import { EXPAND_ONHOVER_DELAY as
|
|
14
|
-
import { removeFragmentsAndEnrichChildren as
|
|
15
|
-
import { useDeepCompareEffect as
|
|
16
|
-
import Te from "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.es.js";
|
|
11
|
+
import { DragHandle as he } from "./DragHandle.es.js";
|
|
12
|
+
import { ExpandButton as Ie } from "./ExpandButton.es.js";
|
|
13
|
+
import { useTreeItem as ye } from "./useTreeItem.es.js";
|
|
14
|
+
import { EXPAND_ONHOVER_DELAY as ge, INDENTATION_WIDTH as Tt } from "../helpers/constants.es.js";
|
|
15
|
+
import { removeFragmentsAndEnrichChildren as De } from "../utils/removeFragmentsAndEnrichChildren.es.js";
|
|
16
|
+
import { useDeepCompareEffect as Te } from "../utils/useDeepCompareEffect.es.js";
|
|
17
17
|
const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
18
18
|
({
|
|
19
19
|
id: r,
|
|
@@ -44,9 +44,9 @@ const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
|
44
44
|
"data-test-id": At = "fondue-tree-item"
|
|
45
45
|
}) => {
|
|
46
46
|
var rt, at, ot, nt, dt, lt, pt, ut, mt, ct, it, wt, ft, bt, ht;
|
|
47
|
-
const { active: o, over: R } = de(), { isSelected: c, isExpanded: i, projection: e } =
|
|
47
|
+
const { active: o, over: R } = de(), { isSelected: c, isExpanded: i, projection: e } = ye(r), G = ae(), s = (o == null ? void 0 : o.id) === r, t = s && e !== null && e !== void 0 ? e : null, Rt = typeof ((at = (rt = R == null ? void 0 : R.data) == null ? void 0 : rt.current) == null ? void 0 : at.accepts) == "string" ? (ot = R.data.current.accepts) == null ? void 0 : ot.split(", ") : [], vt = typeof (t == null ? void 0 : t.accepts) == "string" ? (nt = t.accepts) == null ? void 0 : nt.split(", ") : [], g = ((dt = o == null ? void 0 : o.data.current) == null ? void 0 : dt.type) || "", D = ((lt = e == null ? void 0 : e.previousNode) == null ? void 0 : lt.depth) !== void 0 && (e == null ? void 0 : e.depth) > ((pt = e == null ? void 0 : e.previousNode) == null ? void 0 : pt.depth), Bt = D && e.depth - 1 === ((ut = e == null ? void 0 : e.previousNode) == null ? void 0 : ut.depth), Y = D && ((mt = e == null ? void 0 : e.previousNode) == null ? void 0 : mt.accepts) !== void 0 && (((ct = e == null ? void 0 : e.previousNode) == null ? void 0 : ct.accepts.includes(`${g}-deeper`)) || ((it = e == null ? void 0 : e.previousNode) == null ? void 0 : it.accepts.includes(`${g}-within`))), Ct = s && Bt && ((wt = t == null ? void 0 : t.previousNode) == null ? void 0 : wt.accepts) !== void 0 && ((ft = t == null ? void 0 : t.previousNode) == null ? void 0 : ft.accepts.includes(`${g}-within`)) || (t == null ? void 0 : t.isWithinParent) && vt.includes(`${g}-within`), T = s && (o == null ? void 0 : o.data.current) && (Rt.includes(g) && !D || Ct), J = Dt((a) => {
|
|
48
48
|
G.current === a && (u == null || u(a));
|
|
49
|
-
},
|
|
49
|
+
}, ge);
|
|
50
50
|
oe(() => {
|
|
51
51
|
var a, l, f;
|
|
52
52
|
s && (G.current = D ? (a = t == null ? void 0 : t.previousNode) == null ? void 0 : a.id : null), s && Y && (t != null && t.parentId) && t.previousNode && t.parentId === t.previousNode.id && t.parentId !== ((f = (l = o == null ? void 0 : o.data) == null ? void 0 : l.current) == null ? void 0 : f.parentId) && J(t == null ? void 0 : t.parentId);
|
|
@@ -116,7 +116,7 @@ const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
|
116
116
|
},
|
|
117
117
|
q ? 300 : 0
|
|
118
118
|
), Q = H && (o == null ? void 0 : o.id) === H, Z = yt.count(I) > 0, { enrichedChildren: $, childrenIds: Et } = z(() => {
|
|
119
|
-
const a =
|
|
119
|
+
const a = De(I, { parentId: r, level: p + 1 });
|
|
120
120
|
return {
|
|
121
121
|
enrichedChildren: a,
|
|
122
122
|
childrenIds: a.map((l) => l.props.id)
|
|
@@ -136,7 +136,7 @@ const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
|
136
136
|
animateLayoutChanges: Ne,
|
|
137
137
|
transition: null
|
|
138
138
|
});
|
|
139
|
-
|
|
139
|
+
Te(() => {
|
|
140
140
|
if (yt.count($) === 0) {
|
|
141
141
|
d == null || d(r);
|
|
142
142
|
return;
|
|
@@ -156,12 +156,12 @@ const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
|
156
156
|
borderStyle: "none",
|
|
157
157
|
activeColorStyle: "neutral",
|
|
158
158
|
...X
|
|
159
|
-
}), [X]), w =
|
|
159
|
+
}), [X]), w = ce[n.activeColorStyle ?? "neutral"], { liClassName: Vt, backgroundClassName: Kt } = z(() => ({
|
|
160
160
|
liClassName: b([
|
|
161
|
-
|
|
161
|
+
be,
|
|
162
162
|
"tw-box-content tw-relative tw-cursor-default tw-transition-colors tw-outline-none tw-ring-inset tw-group tw-no-underline tw-leading-5",
|
|
163
163
|
!s && c ? w.selectedTextColor : w.textColor,
|
|
164
|
-
|
|
164
|
+
ie[n.spacingY ?? "none"]
|
|
165
165
|
]),
|
|
166
166
|
backgroundClassName: b([
|
|
167
167
|
"tw-block tw-absolute tw-inset-0 tw-transition-colors -tw-z-10",
|
|
@@ -182,10 +182,10 @@ const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
|
182
182
|
const Jt = n.borderWidth !== "none" && k === "" ? b([
|
|
183
183
|
gt[n.borderWidth ?? "none"],
|
|
184
184
|
M[n.borderRadius ?? "small"],
|
|
185
|
-
|
|
185
|
+
we[n.borderStyle ?? "none"]
|
|
186
186
|
]) : "", Ot = n.contentHight === "single-line" ? "tw-h-10" : "tw-h-fit", Qt = n.contentHight === "single-line" ? "tw-h-12" : "tw-h-fit", Zt = b([
|
|
187
187
|
"tw-relative tw-z-0 tw-transition-colors tw-flex tw-items-center tw-leading-5 tw-width-fit tw-justify-between",
|
|
188
|
-
|
|
188
|
+
fe[n.shadow ?? "none"],
|
|
189
189
|
s ? "tw-border-dashed tw-border-2 tw-pr-0" : Jt,
|
|
190
190
|
s && M[n.borderRadius ?? "small"],
|
|
191
191
|
s ? Qt : Ot,
|
|
@@ -195,7 +195,7 @@ const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
|
195
195
|
transform: ue.Transform.toString(v),
|
|
196
196
|
transition: Yt
|
|
197
197
|
}, et = { ...Ft, ..._t }, st = m !== "none" ? /* @__PURE__ */ N(
|
|
198
|
-
|
|
198
|
+
he,
|
|
199
199
|
{
|
|
200
200
|
...m !== "none" ? et : {},
|
|
201
201
|
active: c,
|
|
@@ -215,7 +215,7 @@ const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
|
215
215
|
tabIndex: 0,
|
|
216
216
|
role: "treeitem",
|
|
217
217
|
style: Pt,
|
|
218
|
-
onKeyDown:
|
|
218
|
+
onKeyDown: me,
|
|
219
219
|
"aria-label": h,
|
|
220
220
|
"aria-level": p + 1,
|
|
221
221
|
onClick: Ht,
|
|
@@ -231,7 +231,7 @@ const Ne = ({ isSorting: r, wasDragging: L }) => !(r || L), xe = re(
|
|
|
231
231
|
/* @__PURE__ */ N("span", { className: Kt, style: jt, "aria-hidden": !0 }),
|
|
232
232
|
m === "left" && st,
|
|
233
233
|
U && /* @__PURE__ */ N(
|
|
234
|
-
|
|
234
|
+
Ie,
|
|
235
235
|
{
|
|
236
236
|
active: v != null && v.y ? !1 : c,
|
|
237
237
|
onClick: O,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as t, jsxs as $ } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import le from "
|
|
2
|
+
import { noop as q } from "lodash-es";
|
|
3
|
+
import { memo as D, useRef as G, useCallback as J, useEffect as Q, Children as M, useMemo as x } from "react";
|
|
4
|
+
import { Checkbox as V, CheckboxEmphasis as X, CheckboxSize as Z, CheckboxState as S } from "../../Checkbox/Checkbox.es.js";
|
|
5
|
+
import { getMultiselectLiClassName as ee, getMultiselectBackgroundClassName as te, getMultiselectContainerClassName as ae } from "../helpers/multiselectTreeItemstyling.es.js";
|
|
6
|
+
import { ExpandButton as se } from "./ExpandButton.es.js";
|
|
7
|
+
import { useMultiselectTreeItem as oe } from "./useMultiselectTreeItem.es.js";
|
|
8
|
+
import { Container as re } from "../../Container/Container.es.js";
|
|
9
|
+
import { getMultiselectCheckBoxState as le } from "../helpers/multiselect.es.js";
|
|
10
10
|
import { removeFragmentsAndEnrichChildren as ne } from "../utils/removeFragmentsAndEnrichChildren.es.js";
|
|
11
11
|
import { useDeepCompareEffect as ce } from "../utils/useDeepCompareEffect.es.js";
|
|
12
12
|
import { INDENTATION_WIDTH as me } from "../helpers/constants.es.js";
|
|
13
|
-
const ie =
|
|
13
|
+
const ie = D(
|
|
14
14
|
({
|
|
15
15
|
id: e,
|
|
16
16
|
label: c,
|
|
@@ -30,13 +30,13 @@ const ie = q(
|
|
|
30
30
|
itemStyle: g,
|
|
31
31
|
"data-test-id": W = "fondue-tree-item"
|
|
32
32
|
}) => {
|
|
33
|
-
const B =
|
|
33
|
+
const B = G(null), { isSelected: o, isExpanded: r, isPartialSelected: E, isParentSelected: N } = oe(e), j = J(
|
|
34
34
|
(l) => {
|
|
35
35
|
l == null || l.stopPropagation(), r ? p == null || p(e) : i == null || i(e);
|
|
36
36
|
},
|
|
37
37
|
[e, r, i, p]
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
Q(() => {
|
|
40
40
|
N && !o && a && a(e, !0);
|
|
41
41
|
}, [e, a, N, o, L]);
|
|
42
42
|
const I = M.count(u) > 0, { enrichedChildren: C, childrenIds: A } = x(() => {
|
|
@@ -66,23 +66,23 @@ const ie = q(
|
|
|
66
66
|
activeColorStyle: "neutral",
|
|
67
67
|
...g
|
|
68
68
|
}), [g]), { liClassName: H, backgroundClassName: P } = x(() => ({
|
|
69
|
-
liClassName:
|
|
70
|
-
backgroundClassName:
|
|
71
|
-
}), [n, s, o]), R = "tw-max-w-full tw-grow", z = r, F = c !== void 0, w = b && (T ?? I), O =
|
|
72
|
-
} : () => a == null ? void 0 : a(e, !1), y = h !== "none" ? /* @__PURE__ */ t(
|
|
73
|
-
|
|
69
|
+
liClassName: ee(n, s),
|
|
70
|
+
backgroundClassName: te(n, o, s)
|
|
71
|
+
}), [n, s, o]), R = "tw-max-w-full tw-grow", z = r, F = c !== void 0, w = b && (T ?? I), O = ae(n), k = m * me, K = { paddingLeft: k }, U = n.borderWidth !== "none" ? {} : { marginLeft: -1 * k }, Y = s ? () => {
|
|
72
|
+
} : () => a == null ? void 0 : a(e, !1), y = h !== "none" ? /* @__PURE__ */ t(re, { maxWidth: "16px", maxHeight: "16px", children: /* @__PURE__ */ t(
|
|
73
|
+
V,
|
|
74
74
|
{
|
|
75
75
|
id: `checkbox-${e}`,
|
|
76
76
|
ref: B,
|
|
77
77
|
disabled: s,
|
|
78
78
|
"aria-label": c ?? "",
|
|
79
|
-
emphasis:
|
|
79
|
+
emphasis: X.Weak,
|
|
80
80
|
helperText: "",
|
|
81
81
|
hideLabel: !0,
|
|
82
82
|
label: "",
|
|
83
83
|
onChange: Y,
|
|
84
|
-
size:
|
|
85
|
-
state: s ?
|
|
84
|
+
size: Z.Default,
|
|
85
|
+
state: s ? S.Unchecked : le(o, E),
|
|
86
86
|
tooltip: [],
|
|
87
87
|
value: e
|
|
88
88
|
}
|
|
@@ -94,7 +94,7 @@ const ie = q(
|
|
|
94
94
|
tabIndex: 0,
|
|
95
95
|
role: "treeitem",
|
|
96
96
|
style: K,
|
|
97
|
-
onKeyDown:
|
|
97
|
+
onKeyDown: q,
|
|
98
98
|
"aria-label": c,
|
|
99
99
|
"aria-level": m + 1,
|
|
100
100
|
className: H,
|
|
@@ -107,7 +107,7 @@ const ie = q(
|
|
|
107
107
|
/* @__PURE__ */ t("span", { className: P, style: U, "aria-hidden": !0 }),
|
|
108
108
|
h === "left" && y,
|
|
109
109
|
b && /* @__PURE__ */ t(
|
|
110
|
-
|
|
110
|
+
se,
|
|
111
111
|
{
|
|
112
112
|
onClick: j,
|
|
113
113
|
expanded: z,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeItemMultiselect.es.js","sources":["../../../../src/components/Tree/TreeItem/TreeItemMultiselect.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { noop } from 'lodash-es';\nimport { Children, type MouseEvent, memo, useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { Checkbox, CheckboxEmphasis, CheckboxSize, CheckboxState } from '@components/Checkbox/Checkbox';\nimport { Container } from '@components/Container';\nimport {\n type RegisterNodeChildrenPayload,\n type TreeItemMultiselectProps,\n type TreeItemStyling,\n} from '@components/Tree/types';\n\nimport { INDENTATION_WIDTH, getMultiselectCheckBoxState } from '../helpers';\nimport {\n getMultiselectBackgroundClassName,\n getMultiselectContainerClassName,\n getMultiselectLiClassName,\n} from '../helpers/multiselectTreeItemstyling';\nimport { removeFragmentsAndEnrichChildren, useDeepCompareEffect } from '../utils';\n\nimport { ExpandButton } from './ExpandButton';\nimport { useMultiselectTreeItem } from './useMultiselectTreeItem';\n\n/** @private */\ntype TreeItemPrivateProps = {\n parentId?: string;\n level?: number;\n /** onSelect is passed by the Tree component when cloning the TreeItem */\n onSelect?: (id: string, ignoreRemoveSelected: boolean) => void;\n onExpand?: (id: string) => void;\n onShrink?: (id: string) => void;\n unregisterNodeChildren?: (payload: string) => void;\n registerNodeChildren?: (payload: RegisterNodeChildrenPayload) => void;\n};\n\n/** @private */\nexport type InternalTreeItemMultiSelectProps = TreeItemMultiselectProps & TreeItemPrivateProps;\n\nexport const TreeItemMultiselect = memo(\n ({\n id,\n label,\n showCaret,\n children,\n level = 0,\n contentComponent,\n parentId,\n onSelect,\n onExpand,\n onShrink,\n registerNodeChildren,\n unregisterNodeChildren,\n isDisabled = false,\n expandable = true,\n checkBoxPosition = 'left',\n itemStyle,\n 'data-test-id': dataTestId = 'fondue-tree-item',\n }: InternalTreeItemMultiSelectProps) => {\n const setActiveNodeRef = useRef<HTMLInputElement | null>(null);\n const { isSelected, isExpanded, isPartialSelected, isParentSelected } = useMultiselectTreeItem(id);\n\n const toggleExpand = useCallback(\n (event?: MouseEvent<HTMLButtonElement>) => {\n event?.stopPropagation();\n isExpanded ? onShrink?.(id) : onExpand?.(id);\n },\n [id, isExpanded, onExpand, onShrink],\n );\n\n useEffect(() => {\n if (isParentSelected && !isSelected && onSelect) {\n onSelect(id, true);\n }\n }, [id, onSelect, isParentSelected, isSelected, parentId]);\n\n const hasChildren = Children.count(children) > 0;\n\n const { enrichedChildren, childrenIds } = useMemo(() => {\n const enrichedChildren = removeFragmentsAndEnrichChildren(children, {\n parentId: id,\n level: level + 1,\n });\n\n return {\n enrichedChildren,\n childrenIds: enrichedChildren.map((child) => child.props.id),\n };\n }, [children, id, level]);\n\n useDeepCompareEffect(() => {\n if (Children.count(enrichedChildren) === 0 || !isExpanded) {\n unregisterNodeChildren?.(id);\n return;\n }\n\n registerNodeChildren?.({ id, children: enrichedChildren });\n }, [isExpanded, enrichedChildren, id]);\n\n const itemStyleProps = useMemo(() => {\n return {\n spacingY: 'none',\n contentHight: 'single-line',\n shadow: 'none',\n borderRadius: 'small',\n borderWidth: 'none',\n borderStyle: 'none',\n activeColorStyle: 'neutral',\n ...itemStyle,\n } as TreeItemStyling;\n }, [itemStyle]);\n\n const { liClassName, backgroundClassName } = useMemo(() => {\n return {\n liClassName: getMultiselectLiClassName(itemStyleProps, isDisabled),\n backgroundClassName: getMultiselectBackgroundClassName(itemStyleProps, isSelected, isDisabled),\n };\n }, [itemStyleProps, isDisabled, isSelected]);\n\n const wrapperContentClassName = 'tw-max-w-full\ttw-grow';\n const showChildren = isExpanded;\n const showLabel = label !== undefined;\n const showExpandButton = expandable && (showCaret ?? hasChildren);\n\n const containerClassName = getMultiselectContainerClassName(itemStyleProps);\n\n const levelPadding = level * INDENTATION_WIDTH;\n const liStyle = { paddingLeft: levelPadding };\n const backgroundStyle = itemStyleProps.borderWidth !== 'none' ? {} : { marginLeft: -1 * levelPadding };\n\n const checkBoxOnSelect = isDisabled ? () => {} : () => onSelect?.(id, false);\n const checkBox =\n checkBoxPosition !== 'none' ? (\n <Container maxWidth=\"16px\" maxHeight=\"16px\">\n <Checkbox\n id={`checkbox-${id}`}\n ref={setActiveNodeRef}\n disabled={isDisabled}\n aria-label={label ?? ''}\n emphasis={CheckboxEmphasis.Weak}\n helperText=\"\"\n hideLabel\n label=\"\"\n onChange={checkBoxOnSelect}\n size={CheckboxSize.Default}\n state={\n isDisabled\n ? CheckboxState.Unchecked\n : getMultiselectCheckBoxState(isSelected, isPartialSelected)\n }\n tooltip={[]}\n value={id}\n />\n </Container>\n ) : null;\n\n return (\n <li\n id={id}\n key={id}\n tabIndex={0}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n role=\"treeitem\"\n style={liStyle}\n onKeyDown={noop}\n aria-label={label}\n aria-level={level + 1}\n className={liClassName}\n data-test-id={dataTestId}\n aria-selected={isSelected}\n aria-expanded={isExpanded}\n data-has-children={hasChildren}\n aria-owns={childrenIds.join(' ')}\n >\n <div className={containerClassName}>\n <span className={backgroundClassName} style={backgroundStyle} aria-hidden={true} />\n {checkBoxPosition === 'left' && checkBox}\n\n {expandable && (\n <ExpandButton\n onClick={toggleExpand}\n expanded={showChildren}\n disabled={!showExpandButton}\n aria-hidden={!showExpandButton}\n className={showExpandButton ? 'tw-visible' : 'tw-invisible tw-pointer-events-none'}\n />\n )}\n\n {showLabel && <span className=\"first:tw-ml-3.5 tw-h-full tw-flex tw-items-center\">{label}</span>}\n\n <div className={wrapperContentClassName}>{contentComponent}</div>\n\n {checkBoxPosition === 'right' && checkBox}\n </div>\n </li>\n );\n },\n);\n\nTreeItemMultiselect.displayName = 'FondueTreeItemMultiselect';\n"],"names":["TreeItemMultiselect","memo","id","label","showCaret","children","level","contentComponent","parentId","onSelect","onExpand","onShrink","registerNodeChildren","unregisterNodeChildren","isDisabled","expandable","checkBoxPosition","itemStyle","dataTestId","setActiveNodeRef","useRef","isSelected","isExpanded","isPartialSelected","isParentSelected","useMultiselectTreeItem","toggleExpand","useCallback","event","useEffect","hasChildren","Children","enrichedChildren","childrenIds","useMemo","removeFragmentsAndEnrichChildren","child","useDeepCompareEffect","itemStyleProps","liClassName","backgroundClassName","getMultiselectLiClassName","getMultiselectBackgroundClassName","wrapperContentClassName","showChildren","showLabel","showExpandButton","containerClassName","getMultiselectContainerClassName","levelPadding","INDENTATION_WIDTH","liStyle","backgroundStyle","checkBoxOnSelect","checkBox","jsx","Container","Checkbox","CheckboxEmphasis","CheckboxSize","CheckboxState","getMultiselectCheckBoxState","noop","jsxs","ExpandButton"],"mappings":";;;;;;;;;;;;AAuCO,MAAMA,KAAsBC;AAAA,EAC/B,CAAC;AAAA,IACG,IAAAC;AAAA,IACA,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,kBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,YAAAC,IAAa;AAAA,IACb,kBAAAC,IAAmB;AAAA,IACnB,WAAAC;AAAA,IACA,gBAAgBC,IAAa;AAAA,EAAA,MACO;AAC9B,UAAAC,IAAmBC,EAAgC,IAAI,GACvD,EAAE,YAAAC,GAAY,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IAAQ;AAAA,QACpB,WAAWiC;AAAA,QACX,gBAAcrB;AAAA,QACd,iBAAeG;AAAA,QACf,iBAAeC;AAAA,QACf,qBAAmBQ;AAAA,QACnB,aAAWG,EAAY,KAAK,GAAG;AAAA,QAE/B,UAAA,gBAAA8B,EAAC,OAAI,EAAA,WAAWhB,GACZ,UAAA;AAAA,UAAA,gBAAAQ,EAAC,UAAK,WAAWf,GAAqB,OAAOY,GAAiB,eAAa,IAAM;AAAA,UAChFpC,MAAqB,UAAUsC;AAAA,UAE/BvC,KACG,gBAAAwC;AAAA,YAACS;AAAA,YAAA;AAAA,cACG,SAAStC;AAAA,cACT,UAAUkB;AAAA,cACV,UAAU,CAACE;AAAA,cACX,eAAa,CAACA;AAAA,cACd,WAAWA,IAAmB,eAAe;AAAA,YAAA;AAAA,UACjD;AAAA,UAGHD,KAAa,gBAAAU,EAAC,QAAK,EAAA,WAAU,qDAAqD,UAAMpD,GAAA;AAAA,UAExF,gBAAAoD,EAAA,OAAA,EAAI,WAAWZ,GAA0B,UAAiBpC,GAAA;AAAA,UAE1DS,MAAqB,WAAWsC;AAAA,QAAA,GACrC;AAAA,MAAA;AAAA,MAlCKpD;AAAA,IAAA;AAAA,EAqCjB;AACJ;AAEAF,GAAoB,cAAc;"}
|
|
1
|
+
{"version":3,"file":"TreeItemMultiselect.es.js","sources":["../../../../src/components/Tree/TreeItem/TreeItemMultiselect.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { noop } from 'lodash-es';\nimport { Children, type MouseEvent, memo, useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { Checkbox, CheckboxEmphasis, CheckboxSize, CheckboxState } from '@components/Checkbox/Checkbox';\nimport { Container } from '@components/Container';\nimport {\n type RegisterNodeChildrenPayload,\n type TreeItemMultiselectProps,\n type TreeItemStyling,\n} from '@components/Tree/types';\n\nimport { INDENTATION_WIDTH, getMultiselectCheckBoxState } from '../helpers';\nimport {\n getMultiselectBackgroundClassName,\n getMultiselectContainerClassName,\n getMultiselectLiClassName,\n} from '../helpers/multiselectTreeItemstyling';\nimport { removeFragmentsAndEnrichChildren, useDeepCompareEffect } from '../utils';\n\nimport { ExpandButton } from './ExpandButton';\nimport { useMultiselectTreeItem } from './useMultiselectTreeItem';\n\n/** @private */\ntype TreeItemPrivateProps = {\n parentId?: string;\n level?: number;\n /** onSelect is passed by the Tree component when cloning the TreeItem */\n onSelect?: (id: string, ignoreRemoveSelected: boolean) => void;\n onExpand?: (id: string) => void;\n onShrink?: (id: string) => void;\n unregisterNodeChildren?: (payload: string) => void;\n registerNodeChildren?: (payload: RegisterNodeChildrenPayload) => void;\n};\n\n/** @private */\nexport type InternalTreeItemMultiSelectProps = TreeItemMultiselectProps & TreeItemPrivateProps;\n\nexport const TreeItemMultiselect = memo(\n ({\n id,\n label,\n showCaret,\n children,\n level = 0,\n contentComponent,\n parentId,\n onSelect,\n onExpand,\n onShrink,\n registerNodeChildren,\n unregisterNodeChildren,\n isDisabled = false,\n expandable = true,\n checkBoxPosition = 'left',\n itemStyle,\n 'data-test-id': dataTestId = 'fondue-tree-item',\n }: InternalTreeItemMultiSelectProps) => {\n const setActiveNodeRef = useRef<HTMLInputElement | null>(null);\n const { isSelected, isExpanded, isPartialSelected, isParentSelected } = useMultiselectTreeItem(id);\n\n const toggleExpand = useCallback(\n (event?: MouseEvent<HTMLButtonElement>) => {\n event?.stopPropagation();\n isExpanded ? onShrink?.(id) : onExpand?.(id);\n },\n [id, isExpanded, onExpand, onShrink],\n );\n\n useEffect(() => {\n if (isParentSelected && !isSelected && onSelect) {\n onSelect(id, true);\n }\n }, [id, onSelect, isParentSelected, isSelected, parentId]);\n\n const hasChildren = Children.count(children) > 0;\n\n const { enrichedChildren, childrenIds } = useMemo(() => {\n const enrichedChildren = removeFragmentsAndEnrichChildren(children, {\n parentId: id,\n level: level + 1,\n });\n\n return {\n enrichedChildren,\n childrenIds: enrichedChildren.map((child) => child.props.id),\n };\n }, [children, id, level]);\n\n useDeepCompareEffect(() => {\n if (Children.count(enrichedChildren) === 0 || !isExpanded) {\n unregisterNodeChildren?.(id);\n return;\n }\n\n registerNodeChildren?.({ id, children: enrichedChildren });\n }, [isExpanded, enrichedChildren, id]);\n\n const itemStyleProps = useMemo(() => {\n return {\n spacingY: 'none',\n contentHight: 'single-line',\n shadow: 'none',\n borderRadius: 'small',\n borderWidth: 'none',\n borderStyle: 'none',\n activeColorStyle: 'neutral',\n ...itemStyle,\n } as TreeItemStyling;\n }, [itemStyle]);\n\n const { liClassName, backgroundClassName } = useMemo(() => {\n return {\n liClassName: getMultiselectLiClassName(itemStyleProps, isDisabled),\n backgroundClassName: getMultiselectBackgroundClassName(itemStyleProps, isSelected, isDisabled),\n };\n }, [itemStyleProps, isDisabled, isSelected]);\n\n const wrapperContentClassName = 'tw-max-w-full\ttw-grow';\n const showChildren = isExpanded;\n const showLabel = label !== undefined;\n const showExpandButton = expandable && (showCaret ?? hasChildren);\n\n const containerClassName = getMultiselectContainerClassName(itemStyleProps);\n\n const levelPadding = level * INDENTATION_WIDTH;\n const liStyle = { paddingLeft: levelPadding };\n const backgroundStyle = itemStyleProps.borderWidth !== 'none' ? {} : { marginLeft: -1 * levelPadding };\n\n const checkBoxOnSelect = isDisabled ? () => {} : () => onSelect?.(id, false);\n const checkBox =\n checkBoxPosition !== 'none' ? (\n <Container maxWidth=\"16px\" maxHeight=\"16px\">\n <Checkbox\n id={`checkbox-${id}`}\n ref={setActiveNodeRef}\n disabled={isDisabled}\n aria-label={label ?? ''}\n emphasis={CheckboxEmphasis.Weak}\n helperText=\"\"\n hideLabel\n label=\"\"\n onChange={checkBoxOnSelect}\n size={CheckboxSize.Default}\n state={\n isDisabled\n ? CheckboxState.Unchecked\n : getMultiselectCheckBoxState(isSelected, isPartialSelected)\n }\n tooltip={[]}\n value={id}\n />\n </Container>\n ) : null;\n\n return (\n <li\n id={id}\n key={id}\n tabIndex={0}\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n role=\"treeitem\"\n style={liStyle}\n onKeyDown={noop}\n aria-label={label}\n aria-level={level + 1}\n className={liClassName}\n data-test-id={dataTestId}\n aria-selected={isSelected}\n aria-expanded={isExpanded}\n data-has-children={hasChildren}\n aria-owns={childrenIds.join(' ')}\n >\n <div className={containerClassName}>\n <span className={backgroundClassName} style={backgroundStyle} aria-hidden={true} />\n {checkBoxPosition === 'left' && checkBox}\n\n {expandable && (\n <ExpandButton\n onClick={toggleExpand}\n expanded={showChildren}\n disabled={!showExpandButton}\n aria-hidden={!showExpandButton}\n className={showExpandButton ? 'tw-visible' : 'tw-invisible tw-pointer-events-none'}\n />\n )}\n\n {showLabel && <span className=\"first:tw-ml-3.5 tw-h-full tw-flex tw-items-center\">{label}</span>}\n\n <div className={wrapperContentClassName}>{contentComponent}</div>\n\n {checkBoxPosition === 'right' && checkBox}\n </div>\n </li>\n );\n },\n);\n\nTreeItemMultiselect.displayName = 'FondueTreeItemMultiselect';\n"],"names":["TreeItemMultiselect","memo","id","label","showCaret","children","level","contentComponent","parentId","onSelect","onExpand","onShrink","registerNodeChildren","unregisterNodeChildren","isDisabled","expandable","checkBoxPosition","itemStyle","dataTestId","setActiveNodeRef","useRef","isSelected","isExpanded","isPartialSelected","isParentSelected","useMultiselectTreeItem","toggleExpand","useCallback","event","useEffect","hasChildren","Children","enrichedChildren","childrenIds","useMemo","removeFragmentsAndEnrichChildren","child","useDeepCompareEffect","itemStyleProps","liClassName","backgroundClassName","getMultiselectLiClassName","getMultiselectBackgroundClassName","wrapperContentClassName","showChildren","showLabel","showExpandButton","containerClassName","getMultiselectContainerClassName","levelPadding","INDENTATION_WIDTH","liStyle","backgroundStyle","checkBoxOnSelect","checkBox","jsx","Container","Checkbox","CheckboxEmphasis","CheckboxSize","CheckboxState","getMultiselectCheckBoxState","noop","jsxs","ExpandButton"],"mappings":";;;;;;;;;;;;AAuCO,MAAMA,KAAsBC;AAAA,EAC/B,CAAC;AAAA,IACG,IAAAC;AAAA,IACA,O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as a } from "lodash-es";
|
|
1
2
|
import { getReactNodeIdsInFlatArray as l, removeReactNodesFromFlatArray as h, getReactNodesInFlatArray as I } from "./nodes.es.js";
|
|
2
|
-
import a from "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.es.js";
|
|
3
3
|
const x = (t, r) => r && (t.key === "Meta" || t.ctrlKey), m = (t, r) => t.findIndex((o) => o.props.id === r), F = (t, r) => t.filter((o) => o.props.parentId === r).map((o) => o.props.id), N = (t, r, o) => {
|
|
4
4
|
const s = l(t, r), e = s.length > 0 ? h(t, s) : t, n = m(e, r);
|
|
5
5
|
return n === -1 ? t : [...e.slice(0, n + 1), ...o, ...e.slice(n + 1)];
|