@soul-refiner/design-system 2.0.0-alpha.18 → 2.0.0-alpha.19
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 +5 -0
- package/dist/_virtual/_commonjsHelpers.js +10 -0
- package/dist/_virtual/_nodeUtil.js +5 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/isBuffer.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.min.js +5 -0
- package/dist/_virtual/util.js +5 -0
- package/dist/_virtual/with-selector.development.js +5 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector.production.min.js +5 -0
- package/dist/node_modules/@udecode/plate-alignment/dist/index.js +98 -0
- package/dist/node_modules/@udecode/plate-core/dist/index.js +2656 -0
- package/dist/node_modules/@udecode/plate-link/dist/index.js +585 -0
- package/dist/node_modules/@udecode/plate-media/dist/index.js +211 -0
- package/dist/node_modules/@udecode/plate-normalizers/dist/index.js +20 -0
- package/dist/node_modules/@udecode/plate-resizable/dist/index.js +334 -0
- package/dist/node_modules/@udecode/plate-table/dist/index.js +1371 -0
- package/dist/node_modules/@udecode/plate-utils/dist/index.js +127 -0
- package/dist/node_modules/@udecode/slate/dist/index.js +316 -0
- package/dist/node_modules/@udecode/slate-react/dist/index.js +35 -0
- package/dist/node_modules/@udecode/slate-utils/dist/index.js +230 -0
- package/dist/node_modules/@udecode/utils/dist/index.js +61 -0
- package/dist/node_modules/clsx/dist/clsx.m.js +8 -0
- package/dist/node_modules/dequal/dist/index.js +88 -0
- package/dist/node_modules/immer/dist/immer.js +968 -0
- package/dist/node_modules/is-hotkey/lib/index.js +253 -0
- package/dist/node_modules/jotai/esm/react/utils.js +29 -0
- package/dist/node_modules/jotai/esm/react.js +116 -0
- package/dist/node_modules/jotai/esm/vanilla/utils.js +44 -0
- package/dist/node_modules/jotai/esm/vanilla.js +602 -0
- package/dist/node_modules/jotai-optics/dist/index.modern.js +8 -0
- package/dist/node_modules/jotai-x/dist/index.js +259 -0
- package/dist/node_modules/js-video-url-parser/lib/base.js +9 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/allocine.js +38 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/canalplus.js +50 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/coub.js +58 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/dailymotion.js +74 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/facebook.js +82 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/loom.js +55 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/soundcloud.js +129 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/teachertube.js +114 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/ted.js +100 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/tiktok.js +54 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/twitch.js +154 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/vimeo.js +93 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/wistia.js +116 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/youku.js +87 -0
- package/dist/node_modules/js-video-url-parser/lib/provider/youtube.js +209 -0
- package/dist/node_modules/js-video-url-parser/lib/urlParser.js +88 -0
- package/dist/node_modules/js-video-url-parser/lib/util.js +112 -0
- package/dist/node_modules/lodash/_DataView.js +14 -0
- package/dist/node_modules/lodash/_Hash.js +42 -0
- package/dist/node_modules/lodash/_ListCache.js +42 -0
- package/dist/node_modules/lodash/_Map.js +14 -0
- package/dist/node_modules/lodash/_MapCache.js +42 -0
- package/dist/node_modules/lodash/_Promise.js +14 -0
- package/dist/node_modules/lodash/_Set.js +14 -0
- package/dist/node_modules/lodash/_SetCache.js +35 -0
- package/dist/node_modules/lodash/_Stack.js +38 -0
- package/dist/node_modules/lodash/_Symbol.js +12 -0
- package/dist/node_modules/lodash/_Uint8Array.js +12 -0
- package/dist/node_modules/lodash/_WeakMap.js +14 -0
- package/dist/node_modules/lodash/_apply.js +26 -0
- package/dist/node_modules/lodash/_arrayAggregator.js +27 -0
- package/dist/node_modules/lodash/_arrayEach.js +27 -0
- package/dist/node_modules/lodash/_arrayFilter.js +30 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +60 -0
- package/dist/node_modules/lodash/_arrayMap.js +26 -0
- package/dist/node_modules/lodash/_arrayPush.js +25 -0
- package/dist/node_modules/lodash/_arraySome.js +28 -0
- package/dist/node_modules/lodash/_assignMergeValue.js +27 -0
- package/dist/node_modules/lodash/_assignValue.js +35 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +27 -0
- package/dist/node_modules/lodash/_baseAggregator.js +27 -0
- package/dist/node_modules/lodash/_baseAssign.js +24 -0
- package/dist/node_modules/lodash/_baseAssignIn.js +24 -0
- package/dist/node_modules/lodash/_baseAssignValue.js +31 -0
- package/dist/node_modules/lodash/_baseClone.js +193 -0
- package/dist/node_modules/lodash/_baseCreate.js +36 -0
- package/dist/node_modules/lodash/_baseEach.js +21 -0
- package/dist/node_modules/lodash/_baseFlatten.js +45 -0
- package/dist/node_modules/lodash/_baseFor.js +22 -0
- package/dist/node_modules/lodash/_baseForOwn.js +23 -0
- package/dist/node_modules/lodash/_baseGet.js +31 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +27 -0
- package/dist/node_modules/lodash/_baseGetTag.js +36 -0
- package/dist/node_modules/lodash/_baseHasIn.js +18 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +25 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +35 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +96 -0
- package/dist/node_modules/lodash/_baseIsMap.js +25 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +69 -0
- package/dist/node_modules/lodash/_baseIsNative.js +56 -0
- package/dist/node_modules/lodash/_baseIsSet.js +25 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +68 -0
- package/dist/node_modules/lodash/_baseIteratee.js +41 -0
- package/dist/node_modules/lodash/_baseKeys.js +37 -0
- package/dist/node_modules/lodash/_baseKeysIn.js +41 -0
- package/dist/node_modules/lodash/_baseMap.js +29 -0
- package/dist/node_modules/lodash/_baseMatches.js +30 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +45 -0
- package/dist/node_modules/lodash/_baseMerge.js +54 -0
- package/dist/node_modules/lodash/_baseMergeDeep.js +114 -0
- package/dist/node_modules/lodash/_baseProperty.js +19 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +22 -0
- package/dist/node_modules/lodash/_baseRest.js +25 -0
- package/dist/node_modules/lodash/_baseSetToString.js +30 -0
- package/dist/node_modules/lodash/_baseSlice.js +36 -0
- package/dist/node_modules/lodash/_baseTimes.js +25 -0
- package/dist/node_modules/lodash/_baseToString.js +46 -0
- package/dist/node_modules/lodash/_baseUnary.js +19 -0
- package/dist/node_modules/lodash/_baseUnset.js +29 -0
- package/dist/node_modules/lodash/_baseValues.js +25 -0
- package/dist/node_modules/lodash/_cacheHas.js +18 -0
- package/dist/node_modules/lodash/_castPath.js +30 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +22 -0
- package/dist/node_modules/lodash/_cloneBuffer.js +48 -0
- package/dist/node_modules/lodash/_cloneDataView.js +22 -0
- package/dist/node_modules/lodash/_cloneRegExp.js +22 -0
- package/dist/node_modules/lodash/_cloneSymbol.js +24 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js +22 -0
- package/dist/node_modules/lodash/_copyArray.js +25 -0
- package/dist/node_modules/lodash/_copyObject.js +47 -0
- package/dist/node_modules/lodash/_copySymbols.js +23 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js +23 -0
- package/dist/node_modules/lodash/_coreJsData.js +12 -0
- package/dist/node_modules/lodash/_createAggregator.js +32 -0
- package/dist/node_modules/lodash/_createAssigner.js +44 -0
- package/dist/node_modules/lodash/_createBaseEach.js +38 -0
- package/dist/node_modules/lodash/_createBaseFor.js +30 -0
- package/dist/node_modules/lodash/_customDefaultsMerge.js +35 -0
- package/dist/node_modules/lodash/_customOmitClone.js +22 -0
- package/dist/node_modules/lodash/_defineProperty.js +17 -0
- package/dist/node_modules/lodash/_equalArrays.js +92 -0
- package/dist/node_modules/lodash/_equalByTag.js +123 -0
- package/dist/node_modules/lodash/_equalObjects.js +96 -0
- package/dist/node_modules/lodash/_flatRest.js +24 -0
- package/dist/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/node_modules/lodash/_getAllKeys.js +24 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js +25 -0
- package/dist/node_modules/lodash/_getMapData.js +24 -0
- package/dist/node_modules/lodash/_getMatchData.js +31 -0
- package/dist/node_modules/lodash/_getNative.js +24 -0
- package/dist/node_modules/lodash/_getPrototype.js +12 -0
- package/dist/node_modules/lodash/_getRawTag.js +52 -0
- package/dist/node_modules/lodash/_getSymbols.js +37 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js +34 -0
- package/dist/node_modules/lodash/_getTag.js +70 -0
- package/dist/node_modules/lodash/_getValue.js +18 -0
- package/dist/node_modules/lodash/_hasPath.js +50 -0
- package/dist/node_modules/lodash/_hashClear.js +21 -0
- package/dist/node_modules/lodash/_hashDelete.js +22 -0
- package/dist/node_modules/lodash/_hashGet.js +36 -0
- package/dist/node_modules/lodash/_hashHas.js +29 -0
- package/dist/node_modules/lodash/_hashSet.js +29 -0
- package/dist/node_modules/lodash/_initCloneArray.js +31 -0
- package/dist/node_modules/lodash/_initCloneByTag.js +87 -0
- package/dist/node_modules/lodash/_initCloneObject.js +26 -0
- package/dist/node_modules/lodash/_isFlattenable.js +28 -0
- package/dist/node_modules/lodash/_isIndex.js +30 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +39 -0
- package/dist/node_modules/lodash/_isKey.js +36 -0
- package/dist/node_modules/lodash/_isKeyable.js +20 -0
- package/dist/node_modules/lodash/_isMasked.js +26 -0
- package/dist/node_modules/lodash/_isPrototype.js +23 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +21 -0
- package/dist/node_modules/lodash/_listCacheClear.js +18 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +41 -0
- package/dist/node_modules/lodash/_listCacheGet.js +25 -0
- package/dist/node_modules/lodash/_listCacheHas.js +22 -0
- package/dist/node_modules/lodash/_listCacheSet.js +32 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +29 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +24 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +22 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +22 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +28 -0
- package/dist/node_modules/lodash/_mapToArray.js +23 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +25 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +32 -0
- package/dist/node_modules/lodash/_nativeCreate.js +12 -0
- package/dist/node_modules/lodash/_nativeKeys.js +12 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js +25 -0
- package/dist/node_modules/lodash/_nodeUtil.js +43 -0
- package/dist/node_modules/lodash/_objectToString.js +27 -0
- package/dist/node_modules/lodash/_overArg.js +20 -0
- package/dist/node_modules/lodash/_overRest.js +42 -0
- package/dist/node_modules/lodash/_parent.js +23 -0
- package/dist/node_modules/lodash/_root.js +15 -0
- package/dist/node_modules/lodash/_safeGet.js +26 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +24 -0
- package/dist/node_modules/lodash/_setCacheHas.js +19 -0
- package/dist/node_modules/lodash/_setToArray.js +23 -0
- package/dist/node_modules/lodash/_setToString.js +21 -0
- package/dist/node_modules/lodash/_shortOut.js +42 -0
- package/dist/node_modules/lodash/_stackClear.js +21 -0
- package/dist/node_modules/lodash/_stackDelete.js +23 -0
- package/dist/node_modules/lodash/_stackGet.js +19 -0
- package/dist/node_modules/lodash/_stackHas.js +19 -0
- package/dist/node_modules/lodash/_stackSet.js +42 -0
- package/dist/node_modules/lodash/_stringToPath.js +33 -0
- package/dist/node_modules/lodash/_toKey.js +27 -0
- package/dist/node_modules/lodash/_toSource.js +31 -0
- package/dist/node_modules/lodash/castArray.js +55 -0
- package/dist/node_modules/lodash/cloneDeep.js +40 -0
- package/dist/node_modules/lodash/constant.js +31 -0
- package/dist/node_modules/lodash/defaults.js +69 -0
- package/dist/node_modules/lodash/defaultsDeep.js +44 -0
- package/dist/node_modules/lodash/eq.js +42 -0
- package/dist/node_modules/lodash/flatten.js +28 -0
- package/dist/node_modules/lodash/get.js +39 -0
- package/dist/node_modules/lodash/hasIn.js +41 -0
- package/dist/node_modules/lodash/identity.js +26 -0
- package/dist/node_modules/lodash/isArguments.js +43 -0
- package/dist/node_modules/lodash/isArray.js +31 -0
- package/dist/node_modules/lodash/isArrayLike.js +40 -0
- package/dist/node_modules/lodash/isArrayLikeObject.js +40 -0
- package/dist/node_modules/lodash/isBuffer.js +52 -0
- package/dist/node_modules/lodash/isFunction.js +44 -0
- package/dist/node_modules/lodash/isLength.js +40 -0
- package/dist/node_modules/lodash/isMap.js +35 -0
- package/dist/node_modules/lodash/isObject.js +36 -0
- package/dist/node_modules/lodash/isObjectLike.js +34 -0
- package/dist/node_modules/lodash/isPlainObject.js +70 -0
- package/dist/node_modules/lodash/isSet.js +35 -0
- package/dist/node_modules/lodash/isSymbol.js +36 -0
- package/dist/node_modules/lodash/isTypedArray.js +35 -0
- package/dist/node_modules/lodash/keyBy.js +48 -0
- package/dist/node_modules/lodash/keys.js +45 -0
- package/dist/node_modules/lodash/keysIn.js +40 -0
- package/dist/node_modules/lodash/last.js +25 -0
- package/dist/node_modules/lodash/map.js +67 -0
- package/dist/node_modules/lodash/memoize.js +79 -0
- package/dist/node_modules/lodash/merge.js +51 -0
- package/dist/node_modules/lodash/mergeWith.js +46 -0
- package/dist/node_modules/lodash/omit.js +75 -0
- package/dist/node_modules/lodash/property.js +41 -0
- package/dist/node_modules/lodash/stubArray.js +28 -0
- package/dist/node_modules/lodash/stubFalse.js +23 -0
- package/dist/node_modules/lodash/toPlainObject.js +39 -0
- package/dist/node_modules/lodash/toString.js +34 -0
- package/dist/node_modules/lodash/values.js +46 -0
- package/dist/node_modules/lodash.mapvalues/index.js +2290 -0
- package/dist/node_modules/optics-ts/dist/mjs/index.js +31 -0
- package/dist/node_modules/optics-ts/dist/mjs/internals.js +460 -0
- package/dist/node_modules/proxy-compare/dist/index.modern.js +7 -0
- package/dist/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js +395 -0
- package/dist/node_modules/react-tracked/dist/index.modern.js +48 -0
- package/dist/node_modules/use-deep-compare/dist-web/index.js +35 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +181 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +32 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +254 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +30 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +21 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +19 -0
- package/dist/node_modules/zustand/esm/middleware.js +551 -0
- package/dist/node_modules/zustand/esm/traditional.js +25 -0
- package/dist/node_modules/zustand/esm/vanilla.js +34 -0
- package/dist/node_modules/zustand-x/dist/index.js +217 -0
- package/dist/src/common/styles.js +12 -12
- package/dist/src/components/actions/button/button.js +11 -10
- package/dist/src/components/actions/dropdown/dropdown.js +5 -5
- package/dist/src/components/actions/rate/rate.js +2 -2
- package/dist/src/components/actions/switch/switch.js +3 -3
- package/dist/src/components/actions/toggle/toggle.js +4 -4
- package/dist/src/components/actions/upload/upload.js +3 -3
- package/dist/src/components/atoms/box/box.js +2 -2
- package/dist/src/components/atoms/typography/display.js +2 -2
- package/dist/src/components/atoms/typography/heading.js +2 -2
- package/dist/src/components/atoms/typography/paragraph.js +2 -2
- package/dist/src/components/atoms/typography/typography.js +2 -2
- package/dist/src/components/card/action/action.js +6 -6
- package/dist/src/components/card/audio/audio.js +5 -5
- package/dist/src/components/card/feature/feature.js +7 -7
- package/dist/src/components/card/meeting/meeting.js +6 -6
- package/dist/src/components/card/person/person.js +5 -5
- package/dist/src/components/card/price/price.js +4 -4
- package/dist/src/components/card/regular/regular.js +2 -2
- package/dist/src/components/card/styles.js +2 -2
- package/dist/src/components/card/video/video.js +5 -5
- package/dist/src/components/card/written/written.js +5 -5
- package/dist/src/components/custom/courses_selection/courses_selection.js +5 -5
- package/dist/src/components/custom/users_selection/users_selection.js +6 -6
- package/dist/src/components/editor/editor.js +2 -2
- package/dist/src/components/editor/navbar/alignment_dropdown.js +3 -3
- package/dist/src/components/editor/navbar/button_modal.js +2 -2
- package/dist/src/components/editor/navbar/navbar.js +6 -6
- package/dist/src/components/editor/plugins/blocks/buttons.js +3 -3
- package/dist/src/components/editor/plugins/blocks/image.js +12 -11
- package/dist/src/components/editor/plugins/blocks/list.js +2 -2
- package/dist/src/components/editor/plugins/blocks/media-popover.js +9 -7
- package/dist/src/components/editor/plugins/blocks/qa.js +2 -2
- package/dist/src/components/editor/plugins/blocks/resizable.js +3 -3
- package/dist/src/components/editor/plugins/blocks/table-cell.js +7 -7
- package/dist/src/components/editor/plugins/blocks/table-row.js +2 -2
- package/dist/src/components/editor/plugins/blocks/table.js +16 -14
- package/dist/src/components/editor/plugins/leafs/leafs.js +2 -2
- package/dist/src/components/editor/plugins/leafs/link.js +2 -2
- package/dist/src/components/editor/plugins/plate.js +3 -3
- package/dist/src/components/editor/simple_editor/navbar.js +4 -4
- package/dist/src/components/editor/simple_editor/simple_editor.js +3 -3
- package/dist/src/components/editor/styles/menu_button.js +2 -2
- package/dist/src/components/feedback/animated_toast/animated_toast.js +3 -3
- package/dist/src/components/feedback/badge/badge.js +3 -3
- package/dist/src/components/feedback/banner/banner.js +2 -2
- package/dist/src/components/feedback/chip/chip.js +3 -3
- package/dist/src/components/feedback/loader/loader.js +4 -3
- package/dist/src/components/feedback/notification/notification.js +2 -2
- package/dist/src/components/feedback/progress/progress.js +5 -5
- package/dist/src/components/feedback/toast/toast.js +3 -3
- package/dist/src/components/iconography/avatar/avatar.js +6 -6
- package/dist/src/components/iconography/icon/icon.js +2 -2
- package/dist/src/components/input/calendar/calendar.js +13 -13
- package/dist/src/components/input/checkbox/checkbox.js +2 -2
- package/dist/src/components/input/date/date.js +13 -13
- package/dist/src/components/input/filter/filter.js +11 -10
- package/dist/src/components/input/filter/filter_option.js +3 -3
- package/dist/src/components/input/radio/radio.js +3 -3
- package/dist/src/components/input/search/search.js +4 -4
- package/dist/src/components/input/select/select.js +3 -3
- package/dist/src/components/input/text_area/text_area.js +6 -6
- package/dist/src/components/input/text_input/text_input.js +7 -7
- package/dist/src/components/input/time/time.js +3 -3
- package/dist/src/components/media/video-player/playlist-item.js +3 -3
- package/dist/src/components/media/video-player/video.js +6 -6
- package/dist/src/components/navigation/breadcrumb/breadcrumb.js +3 -3
- package/dist/src/components/navigation/inner/inner.js +8 -8
- package/dist/src/components/navigation/tabs/tabs.js +4 -4
- package/dist/src/components/surfaces/accordion/accordion.js +3 -3
- package/dist/src/components/surfaces/calendar_date/calendar_date.js +6 -6
- package/dist/src/components/surfaces/carousel/card/card.js +4 -4
- package/dist/src/components/surfaces/comment/comment.js +10 -10
- package/dist/src/components/surfaces/drawer/drawer.js +6 -6
- package/dist/src/components/surfaces/message/message.js +2 -2
- package/dist/src/components/surfaces/modal/modal.js +3 -3
- package/dist/src/components/surfaces/post/post.js +9 -9
- package/dist/src/components/table/table/table.js +7 -7
- package/dist/src/index.js +0 -1
- package/package.json +2 -1
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var immer = require('../../immer/dist/immer.js');
|
|
4
|
+
var index_modern = require('../../react-tracked/dist/index.modern.js');
|
|
5
|
+
var middleware = require('../../zustand/esm/middleware.js');
|
|
6
|
+
var traditional = require('../../zustand/esm/traditional.js');
|
|
7
|
+
var vanilla = require('../../zustand/esm/vanilla.js');
|
|
8
|
+
require('../../lodash.mapvalues/index.js');
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __defProps = Object.defineProperties;
|
|
12
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
13
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
16
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17
|
+
var __spreadValues = (a, b) => {
|
|
18
|
+
for (var prop in b || (b = {}))
|
|
19
|
+
if (__hasOwnProp.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols)
|
|
22
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
23
|
+
if (__propIsEnum.call(b, prop))
|
|
24
|
+
__defNormalProp(a, prop, b[prop]);
|
|
25
|
+
}
|
|
26
|
+
return a;
|
|
27
|
+
};
|
|
28
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
29
|
+
var immerMiddleware = (config) => (set, get, api) => {
|
|
30
|
+
const setState = (fn, actionName) => set(immer.produce(fn), true, actionName);
|
|
31
|
+
api.setState = setState;
|
|
32
|
+
return config(setState, get, api);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// src/utils/generateStateActions.ts
|
|
36
|
+
var generateStateActions = (store, storeName) => {
|
|
37
|
+
const actions = {};
|
|
38
|
+
Object.keys(store.getState()).forEach((key) => {
|
|
39
|
+
actions[key] = (value) => {
|
|
40
|
+
const prevValue = store.getState()[key];
|
|
41
|
+
if (prevValue === value)
|
|
42
|
+
return;
|
|
43
|
+
const actionKey = key.replace(/^\S/, (s) => s.toUpperCase());
|
|
44
|
+
store.setState((draft) => {
|
|
45
|
+
draft[key] = value;
|
|
46
|
+
}, `@@${storeName}/set${actionKey}`);
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
return actions;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// src/utils/generateStateGetSelectors.ts
|
|
53
|
+
var generateStateGetSelectors = (store) => {
|
|
54
|
+
const selectors = {};
|
|
55
|
+
Object.keys(store.getState()).forEach((key) => {
|
|
56
|
+
selectors[key] = () => store.getState()[key];
|
|
57
|
+
});
|
|
58
|
+
return selectors;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// src/utils/generateStateHookSelectors.ts
|
|
62
|
+
var generateStateHookSelectors = (useStore, store) => {
|
|
63
|
+
const selectors = {};
|
|
64
|
+
Object.keys(store.getState()).forEach((key) => {
|
|
65
|
+
selectors[key] = (equalityFn) => {
|
|
66
|
+
return useStore((state) => state[key], equalityFn);
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
return selectors;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// src/utils/generateStateTrackedHooksSelectors.ts
|
|
73
|
+
var generateStateTrackedHooksSelectors = (useTrackedStore, store) => {
|
|
74
|
+
const selectors = {};
|
|
75
|
+
Object.keys(store.getState()).forEach((key) => {
|
|
76
|
+
selectors[key] = () => {
|
|
77
|
+
return useTrackedStore()[key];
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
return selectors;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// src/utils/pipe.ts
|
|
84
|
+
function pipe(x, ...fns) {
|
|
85
|
+
return fns.reduce((y, fn) => fn(y), x);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// src/utils/extendActions.ts
|
|
89
|
+
var extendActions = (builder, api) => {
|
|
90
|
+
const actions = builder(api.set, api.get, api);
|
|
91
|
+
return __spreadProps(__spreadValues({}, api), {
|
|
92
|
+
set: __spreadValues(__spreadValues({}, api.set), actions)
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// src/utils/extendSelectors.ts
|
|
97
|
+
var extendSelectors = (builder, api) => {
|
|
98
|
+
const use = __spreadValues({}, api.use);
|
|
99
|
+
const useTracked = __spreadValues({}, api.useTracked);
|
|
100
|
+
const get = __spreadValues({}, api.get);
|
|
101
|
+
Object.keys(builder(api.store.getState(), api.get, api)).forEach((key) => {
|
|
102
|
+
use[key] = (...args) => api.useStore((state) => {
|
|
103
|
+
const selectors = builder(state, api.get, api);
|
|
104
|
+
const selector = selectors[key];
|
|
105
|
+
return selector(...args);
|
|
106
|
+
});
|
|
107
|
+
useTracked[key] = (...args) => {
|
|
108
|
+
const trackedState = api.useTrackedStore();
|
|
109
|
+
const selectors = builder(trackedState, api.get, api);
|
|
110
|
+
const selector = selectors[key];
|
|
111
|
+
return selector(...args);
|
|
112
|
+
};
|
|
113
|
+
get[key] = (...args) => {
|
|
114
|
+
const selectors = builder(api.store.getState(), api.get, api);
|
|
115
|
+
const selector = selectors[key];
|
|
116
|
+
return selector(...args);
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
return __spreadProps(__spreadValues({}, api), {
|
|
120
|
+
get,
|
|
121
|
+
use,
|
|
122
|
+
useTracked
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// src/utils/storeFactory.ts
|
|
127
|
+
var storeFactory = (api) => {
|
|
128
|
+
return __spreadProps(__spreadValues({}, api), {
|
|
129
|
+
extendSelectors: (builder) => storeFactory(extendSelectors(builder, api)),
|
|
130
|
+
extendActions: (builder) => storeFactory(extendActions(builder, api))
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
// src/createStore.ts
|
|
135
|
+
var createStore = (name) => (initialState, options = {}) => {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
const {
|
|
138
|
+
middlewares: _middlewares = [],
|
|
139
|
+
devtools,
|
|
140
|
+
persist,
|
|
141
|
+
immer: immer$1
|
|
142
|
+
} = options;
|
|
143
|
+
immer.setAutoFreeze((_a = immer$1 == null ? void 0 : immer$1.enabledAutoFreeze) != null ? _a : false);
|
|
144
|
+
if (immer$1 == null ? void 0 : immer$1.enableMapSet) {
|
|
145
|
+
immer.enableMapSet();
|
|
146
|
+
}
|
|
147
|
+
const middlewares = [immerMiddleware, ..._middlewares];
|
|
148
|
+
if (persist == null ? void 0 : persist.enabled) {
|
|
149
|
+
const opts = __spreadProps(__spreadValues({}, persist), {
|
|
150
|
+
name: (_b = persist.name) != null ? _b : name
|
|
151
|
+
});
|
|
152
|
+
middlewares.push((config) => middleware.persist(config, opts));
|
|
153
|
+
}
|
|
154
|
+
if (devtools == null ? void 0 : devtools.enabled) {
|
|
155
|
+
middlewares.push(
|
|
156
|
+
(config) => middleware.devtools(config, __spreadProps(__spreadValues({}, devtools), { name }))
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
middlewares.push(vanilla.createStore);
|
|
160
|
+
const pipeMiddlewares = (createState) => pipe(createState, ...middlewares);
|
|
161
|
+
const store = pipeMiddlewares(() => initialState);
|
|
162
|
+
const useStore = (selector, equalityFn) => traditional.useStoreWithEqualityFn(
|
|
163
|
+
store,
|
|
164
|
+
selector,
|
|
165
|
+
equalityFn
|
|
166
|
+
);
|
|
167
|
+
const stateActions = generateStateActions(store, name);
|
|
168
|
+
const mergeState = (state, actionName) => {
|
|
169
|
+
store.setState(
|
|
170
|
+
(draft) => {
|
|
171
|
+
Object.assign(draft, state);
|
|
172
|
+
},
|
|
173
|
+
actionName || `@@${name}/mergeState`
|
|
174
|
+
);
|
|
175
|
+
};
|
|
176
|
+
const setState = (fn, actionName) => {
|
|
177
|
+
store.setState(fn, actionName || `@@${name}/setState`);
|
|
178
|
+
};
|
|
179
|
+
const hookSelectors = generateStateHookSelectors(useStore, store);
|
|
180
|
+
const getterSelectors = generateStateGetSelectors(store);
|
|
181
|
+
const useTrackedStore = index_modern.createTrackedSelector(useStore);
|
|
182
|
+
const trackedHooksSelectors = generateStateTrackedHooksSelectors(
|
|
183
|
+
useTrackedStore,
|
|
184
|
+
store
|
|
185
|
+
);
|
|
186
|
+
const api = {
|
|
187
|
+
get: __spreadValues({
|
|
188
|
+
state: store.getState
|
|
189
|
+
}, getterSelectors),
|
|
190
|
+
name,
|
|
191
|
+
set: __spreadValues({
|
|
192
|
+
state: setState,
|
|
193
|
+
mergeState
|
|
194
|
+
}, stateActions),
|
|
195
|
+
store,
|
|
196
|
+
use: hookSelectors,
|
|
197
|
+
useTracked: trackedHooksSelectors,
|
|
198
|
+
useStore,
|
|
199
|
+
useTrackedStore,
|
|
200
|
+
extendSelectors: () => api,
|
|
201
|
+
extendActions: () => api
|
|
202
|
+
};
|
|
203
|
+
return storeFactory(api);
|
|
204
|
+
};
|
|
205
|
+
var createZustandStore = createStore;
|
|
206
|
+
|
|
207
|
+
exports.createStore = createStore;
|
|
208
|
+
exports.createZustandStore = createZustandStore;
|
|
209
|
+
exports.extendActions = extendActions;
|
|
210
|
+
exports.extendSelectors = extendSelectors;
|
|
211
|
+
exports.generateStateActions = generateStateActions;
|
|
212
|
+
exports.generateStateGetSelectors = generateStateGetSelectors;
|
|
213
|
+
exports.generateStateHookSelectors = generateStateHookSelectors;
|
|
214
|
+
exports.generateStateTrackedHooksSelectors = generateStateTrackedHooksSelectors;
|
|
215
|
+
exports.immerMiddleware = immerMiddleware;
|
|
216
|
+
exports.pipe = pipe;
|
|
217
|
+
exports.storeFactory = storeFactory;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var styled = require('styled-components');
|
|
4
4
|
var colors = require('./colors.js');
|
|
5
5
|
|
|
6
6
|
exports.Styles = void 0;
|
|
7
7
|
(function (Styles) {
|
|
8
|
-
Styles.backgroundColor =
|
|
8
|
+
Styles.backgroundColor = styled.css `
|
|
9
9
|
background-color: ${({ $backgroundColor }) => $backgroundColor ? colors.colorReference[$backgroundColor] : 'var(--page-bg)'};
|
|
10
10
|
`;
|
|
11
|
-
Styles.borderRadius =
|
|
11
|
+
Styles.borderRadius = styled.css `
|
|
12
12
|
border-radius: ${({ $borderRadius }) => $borderRadius ? `var(--${$borderRadius})` : ''};
|
|
13
13
|
`;
|
|
14
|
-
Styles.color =
|
|
14
|
+
Styles.color = styled.css `
|
|
15
15
|
color: ${({ $color }) => $color ? colors.colorReference[$color] : 'var(--color-grey-3)'};
|
|
16
16
|
`;
|
|
17
|
-
Styles.elevation =
|
|
17
|
+
Styles.elevation = styled.css `
|
|
18
18
|
box-shadow: ${({ $elevation }) => $elevation ? `var(--elevation-${$elevation})` : 'none'};
|
|
19
19
|
`;
|
|
20
|
-
Styles.flex =
|
|
20
|
+
Styles.flex = styled.css `
|
|
21
21
|
align-items: ${({ $align }) => $align ?? 'normal'};
|
|
22
22
|
gap: ${({ $gap }) => $gap && typeof $gap === 'number'
|
|
23
23
|
? `${$gap}px`
|
|
@@ -29,14 +29,14 @@ exports.Styles = void 0;
|
|
|
29
29
|
flex-direction: ${({ $dir }) => $dir ?? 'row'};
|
|
30
30
|
justify-content: ${({ $justify }) => $justify ?? 'normal'};
|
|
31
31
|
`;
|
|
32
|
-
Styles.margin =
|
|
32
|
+
Styles.margin = styled.css `
|
|
33
33
|
margin: ${({ $margin }) => $margin && typeof $margin === 'number'
|
|
34
34
|
? `${$margin}px`
|
|
35
35
|
: $margin && typeof $margin === 'string'
|
|
36
36
|
? `var(--${$margin})`
|
|
37
37
|
: '0px'};
|
|
38
38
|
`;
|
|
39
|
-
Styles.padding =
|
|
39
|
+
Styles.padding = styled.css `
|
|
40
40
|
padding: ${({ $padding }) => $padding && typeof $padding === 'number'
|
|
41
41
|
? `${$padding}px;`
|
|
42
42
|
: $padding && typeof $padding === 'string' && $padding.includes('px')
|
|
@@ -45,10 +45,10 @@ exports.Styles = void 0;
|
|
|
45
45
|
? `var(--${$padding});`
|
|
46
46
|
: '0px'};
|
|
47
47
|
`;
|
|
48
|
-
Styles.styleable =
|
|
48
|
+
Styles.styleable = styled.css `
|
|
49
49
|
${({ sx }) => (sx ? sx : '')}
|
|
50
50
|
`;
|
|
51
|
-
Styles.textClamp =
|
|
51
|
+
Styles.textClamp = styled.css `
|
|
52
52
|
overflow: hidden;
|
|
53
53
|
text-overflow: ellipsis;
|
|
54
54
|
display: -webkit-box;
|
|
@@ -56,11 +56,11 @@ exports.Styles = void 0;
|
|
|
56
56
|
-webkit-line-clamp: ${({ $textClampLines }) => $textClampLines ?? 1};
|
|
57
57
|
-webkit-box-orient: vertical;
|
|
58
58
|
`;
|
|
59
|
-
Styles.typography =
|
|
59
|
+
Styles.typography = styled.css `
|
|
60
60
|
font-style: ${({ $italic }) => ($italic ? 'italic' : 'normal')};
|
|
61
61
|
text-decoration: ${({ $strikethrough, $underline }) => $strikethrough ? 'line-through' : $underline ? 'underline' : 'none'};
|
|
62
62
|
`;
|
|
63
|
-
Styles.weight =
|
|
63
|
+
Styles.weight = styled.css `
|
|
64
64
|
font-weight: ${({ $bold, $semiBold, $mediumBold }) => $bold ? 700 : $semiBold ? 600 : $mediumBold ? 500 : 400};
|
|
65
65
|
`;
|
|
66
66
|
})(exports.Styles || (exports.Styles = {}));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
var styles = require('../../../common/styles.js');
|
|
7
7
|
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
8
8
|
var box = require('../../atoms/box/box.js');
|
|
@@ -12,6 +12,7 @@ var chevron_up = require('../../../icons/arrow/chevron_up.js');
|
|
|
12
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
13
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
+
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
15
16
|
|
|
16
17
|
const LG_ICON_SIZE = 20;
|
|
17
18
|
const LG_ICON_SIZE_WO_CHILDREN = 24;
|
|
@@ -70,7 +71,7 @@ const Components = () => ({
|
|
|
70
71
|
text: Text,
|
|
71
72
|
dropdown: Dropdown,
|
|
72
73
|
});
|
|
73
|
-
const base =
|
|
74
|
+
const base = styled.css `
|
|
74
75
|
font-family: var(--font-inter);
|
|
75
76
|
display: flex;
|
|
76
77
|
border-radius: ${({ $roundness }) => $roundness === 'large'
|
|
@@ -101,7 +102,7 @@ const base = styledComponents.css `
|
|
|
101
102
|
cursor: unset !important;
|
|
102
103
|
}
|
|
103
104
|
`;
|
|
104
|
-
const Primary =
|
|
105
|
+
const Primary = styled__default.default(box.Box) `
|
|
105
106
|
background-color: var(--color-primary-blue-2);
|
|
106
107
|
color: var(--color-white);
|
|
107
108
|
border: 1px solid var(--color-primary-blue-2);
|
|
@@ -127,7 +128,7 @@ const Primary = styledComponents.styled(box.Box) `
|
|
|
127
128
|
|
|
128
129
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
129
130
|
`;
|
|
130
|
-
const Secondary =
|
|
131
|
+
const Secondary = styled__default.default(box.Box) `
|
|
131
132
|
background-color: var(--color-primary-blue-4);
|
|
132
133
|
color: var(--color-primary-blue-2);
|
|
133
134
|
border: 1px solid var(--color-primary-blue-4);
|
|
@@ -154,7 +155,7 @@ const Secondary = styledComponents.styled(box.Box) `
|
|
|
154
155
|
|
|
155
156
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
156
157
|
`;
|
|
157
|
-
const Outlined =
|
|
158
|
+
const Outlined = styled__default.default(box.Box) `
|
|
158
159
|
background-color: var(--color-white);
|
|
159
160
|
color: var(--color-grey-3);
|
|
160
161
|
border: 1px solid var(--color-grey-8);
|
|
@@ -192,7 +193,7 @@ const Outlined = styledComponents.styled(box.Box) `
|
|
|
192
193
|
|
|
193
194
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
194
195
|
`;
|
|
195
|
-
const Danger =
|
|
196
|
+
const Danger = styled__default.default(box.Box) `
|
|
196
197
|
background-color: var(--color-red-4);
|
|
197
198
|
color: var(--color-white);
|
|
198
199
|
border: 1px solid var(--color-red-4);
|
|
@@ -218,7 +219,7 @@ const Danger = styledComponents.styled(box.Box) `
|
|
|
218
219
|
|
|
219
220
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
220
221
|
`;
|
|
221
|
-
const Text =
|
|
222
|
+
const Text = styled__default.default(box.Box) `
|
|
222
223
|
background-color: transparent;
|
|
223
224
|
border: 1px solid transparent;
|
|
224
225
|
color: var(--color-primary-blue-2);
|
|
@@ -247,7 +248,7 @@ const Text = styledComponents.styled(box.Box) `
|
|
|
247
248
|
|
|
248
249
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
249
250
|
`;
|
|
250
|
-
const Raised =
|
|
251
|
+
const Raised = styled__default.default(box.Box) `
|
|
251
252
|
background-color: var(--color-white);
|
|
252
253
|
color: var(--color-grey-3);
|
|
253
254
|
border: 1px solid var(--color-white);
|
|
@@ -273,7 +274,7 @@ const Raised = styledComponents.styled(box.Box) `
|
|
|
273
274
|
|
|
274
275
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
275
276
|
`;
|
|
276
|
-
const Special =
|
|
277
|
+
const Special = styled__default.default(box.Box) `
|
|
277
278
|
background-color: transparent;
|
|
278
279
|
border: 1px solid transparent;
|
|
279
280
|
color: var(--color-primary-grey-3);
|
|
@@ -303,7 +304,7 @@ const Special = styledComponents.styled(box.Box) `
|
|
|
303
304
|
|
|
304
305
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
305
306
|
`;
|
|
306
|
-
const Dropdown =
|
|
307
|
+
const Dropdown = styled__default.default(box.Box) `
|
|
307
308
|
width: 100%;
|
|
308
309
|
background-color: var(--color-blue-10);
|
|
309
310
|
color: var(--color-grey-3);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
var box = require('../../atoms/box/box.js');
|
|
7
7
|
var checkbox = require('../../input/checkbox/checkbox.js');
|
|
8
8
|
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
@@ -122,13 +122,13 @@ const Dropdown = ({ checkbox, children, closeOnChange = true, closeOnBlur = true
|
|
|
122
122
|
} }, dropdownOptions),
|
|
123
123
|
!!additionalOptions?.length && (React__default.default.createElement("div", { style: { display: 'flex', flexDirection: 'column' } }, additionalOptions.map((additionalOption) => (React__default.default.createElement(Option, { key: additionalOption.value, onClick: handleAdditionalChange, selected: additionalSelected === additionalOption.value, label: additionalOption.label, value: additionalOption.value }))))))))));
|
|
124
124
|
};
|
|
125
|
-
const Wrapper =
|
|
125
|
+
const Wrapper = styled.styled.div `
|
|
126
126
|
position: relative;
|
|
127
127
|
display: block;
|
|
128
128
|
outline: none;
|
|
129
129
|
${({ $sx }) => ($sx ? $sx : '')}
|
|
130
130
|
`;
|
|
131
|
-
const Container =
|
|
131
|
+
const Container = styled.styled.div `
|
|
132
132
|
z-index: 1;
|
|
133
133
|
background-color: var(--color-white);
|
|
134
134
|
position: absolute;
|
|
@@ -175,7 +175,7 @@ const Option = ({ checkbox: checkbox$1, disabled, icon, label, onClick, selected
|
|
|
175
175
|
};
|
|
176
176
|
Option.displayName = 'Dropdown.Option';
|
|
177
177
|
Dropdown.Option = Option;
|
|
178
|
-
const OptionWrapper =
|
|
178
|
+
const OptionWrapper = styled.styled.div `
|
|
179
179
|
position: relative;
|
|
180
180
|
z-index: 1;
|
|
181
181
|
padding: ${({ $hasSublabel }) => ($hasSublabel ? 10 : 12)}px 16px;
|
|
@@ -223,7 +223,7 @@ const Spacer = ({ sx }) => {
|
|
|
223
223
|
};
|
|
224
224
|
Spacer.displayName = 'Dropdown.Spacer';
|
|
225
225
|
Dropdown.Spacer = Spacer;
|
|
226
|
-
const SpacerWrapper =
|
|
226
|
+
const SpacerWrapper = styled.styled.div `
|
|
227
227
|
width: 100%;
|
|
228
228
|
height: 1px;
|
|
229
229
|
background-color: var(--color-grey-8);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
8
|
|
|
@@ -48,7 +48,7 @@ const Rate = ({ isRateable = true, onRate, percent, size, userRating, }) => {
|
|
|
48
48
|
React__default.default.createElement("stop", { offset: `${displayPercent}%`, stopColor: "#FF870A" }),
|
|
49
49
|
React__default.default.createElement("stop", { offset: `${displayPercent}%`, stopColor: "#FFFFFF" }))))));
|
|
50
50
|
};
|
|
51
|
-
const SVG =
|
|
51
|
+
const SVG = styled.styled.svg `
|
|
52
52
|
fill: url(#${({ $gradientId }) => $gradientId});
|
|
53
53
|
cursor: ${({ $isRateable }) => ($isRateable ? 'pointer' : 'initial')};
|
|
54
54
|
`;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
8
|
|
|
@@ -21,7 +21,7 @@ const Switch = ({ children, disabled, onChange, value, }) => {
|
|
|
21
21
|
});
|
|
22
22
|
})));
|
|
23
23
|
};
|
|
24
|
-
const Wrapper =
|
|
24
|
+
const Wrapper = styled.styled.div `
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-flow: row nowrap;
|
|
27
27
|
padding: 6px;
|
|
@@ -34,7 +34,7 @@ const SwitchItem = ({ active, children, disabled, icon, onClick, value, }) => {
|
|
|
34
34
|
icon && React__default.default.cloneElement(icon, { size: 24, color: 'grey-6' }),
|
|
35
35
|
children));
|
|
36
36
|
};
|
|
37
|
-
const Item =
|
|
37
|
+
const Item = styled.styled.button `
|
|
38
38
|
width: 154px;
|
|
39
39
|
height: 36px;
|
|
40
40
|
display: flex;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
var box = require('../../atoms/box/box.js');
|
|
7
7
|
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
8
8
|
|
|
@@ -18,18 +18,18 @@ const Toggle = ({ checked, label, onChange }) => {
|
|
|
18
18
|
React__default.default.createElement(Slider, { "$status": status })),
|
|
19
19
|
label && React__default.default.createElement(paragraph.P, { "$fontSize": 14 }, label)));
|
|
20
20
|
};
|
|
21
|
-
const Wrapper =
|
|
21
|
+
const Wrapper = styled.styled.label `
|
|
22
22
|
width: 28px;
|
|
23
23
|
height: 16px;
|
|
24
24
|
position: relative;
|
|
25
25
|
display: inline-block;
|
|
26
26
|
`;
|
|
27
|
-
const Input =
|
|
27
|
+
const Input = styled.styled.input `
|
|
28
28
|
opacity: 0;
|
|
29
29
|
width: 0;
|
|
30
30
|
height: 0;
|
|
31
31
|
`;
|
|
32
|
-
const Slider =
|
|
32
|
+
const Slider = styled.styled.span `
|
|
33
33
|
position: absolute;
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
top: 0px;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
var colors = require('../../../common/colors.js');
|
|
7
7
|
var box = require('../../atoms/box/box.js');
|
|
8
8
|
var button = require('../button/button.js');
|
|
@@ -144,7 +144,7 @@ const Upload = ({ background = 'hue-blue-3', borderColor = 'hue-blue-2', childre
|
|
|
144
144
|
return child;
|
|
145
145
|
})));
|
|
146
146
|
};
|
|
147
|
-
const Wrapper =
|
|
147
|
+
const Wrapper = styled.styled.div `
|
|
148
148
|
box-sizing: border-box;
|
|
149
149
|
width: ${({ $size }) => $size === 'large'
|
|
150
150
|
? '100%'
|
|
@@ -163,7 +163,7 @@ const Wrapper = styledComponents.styled.div `
|
|
|
163
163
|
border: 2px dashed var(--color-${({ $borderColor }) => $borderColor});
|
|
164
164
|
border-radius: ${({ $size }) => ($size === 'large' ? '16px' : '8px')};
|
|
165
165
|
`;
|
|
166
|
-
const Input =
|
|
166
|
+
const Input = styled.styled.input `
|
|
167
167
|
display: none;
|
|
168
168
|
`;
|
|
169
169
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
var styles = require('../../../common/styles.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
11
|
|
|
12
12
|
const Box = ({ $display = 'flex', sx, ...args }) => (React__default.default.createElement(Component, { "$display": $display, "$sx": sx, ...args }));
|
|
13
|
-
const Component =
|
|
13
|
+
const Component = styled.styled.div `
|
|
14
14
|
${({ $display }) => ($display === 'flex' ? 'display: flex;' : '')}
|
|
15
15
|
${styles.Styles.flex}
|
|
16
16
|
${styles.Styles.backgroundColor}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
var typography = require('./typography.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
11
|
|
|
12
12
|
const Display = ({ as = 'h1', $fontSize = 64, $lineHeight = 96, $textAlign = 'left', ...rest }) => (React__default.default.createElement(StyledDisplay, { as: as || 'h1', "$fontSize": $fontSize, "$lineHeight": $lineHeight, "$textAlign": $textAlign, ...rest }));
|
|
13
|
-
const StyledDisplay =
|
|
13
|
+
const StyledDisplay = styled.styled(typography.Typography) `
|
|
14
14
|
font-size: ${({ $fontSize }) => $fontSize + 'px'};
|
|
15
15
|
line-height: ${({ $lineHeight }) => $lineHeight + 'px'};
|
|
16
16
|
text-align: ${({ $textAlign }) => $textAlign || 'left'};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
var typography = require('./typography.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
9
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
11
|
|
|
12
|
-
const StyledH =
|
|
12
|
+
const StyledH = styled.styled(typography.Typography) `
|
|
13
13
|
font-size: ${({ $fontSize }) => $fontSize + 'px'};
|
|
14
14
|
line-height: ${({ $lineHeight }) => $lineHeight + 'px'};
|
|
15
15
|
text-align: ${({ $textAlign }) => $textAlign || 'left'};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styled = require('styled-components');
|
|
6
6
|
var styles = require('../../../common/styles.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
11
|
|
|
12
12
|
const P = ({ as = 'p', children, $fontSize = 16, $lineHeight = 24, $textAlign = 'left', sx, ...rest }) => (React__default.default.createElement(StyledP, { as: as, "$fontSize": $fontSize, "$lineHeight": $lineHeight, "$textAlign": $textAlign, "$sx": sx, ...rest }, children));
|
|
13
|
-
const StyledP =
|
|
13
|
+
const StyledP = styled.styled.p `
|
|
14
14
|
margin: 0px;
|
|
15
15
|
font-family: var(--font-inter);
|
|
16
16
|
font-size: ${({ $fontSize }) => $fontSize + 'px'};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var styled = require('styled-components');
|
|
5
5
|
var styles = require('../../../common/styles.js');
|
|
6
6
|
|
|
7
|
-
const Typography =
|
|
7
|
+
const Typography = styled.styled.p `
|
|
8
8
|
margin: 0px;
|
|
9
9
|
font-family: var(--font-inter);
|
|
10
10
|
${styles.Styles.color}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Image = require('next/image');
|
|
6
|
-
var
|
|
6
|
+
var styled = require('styled-components');
|
|
7
7
|
var box = require('../../atoms/box/box.js');
|
|
8
8
|
var heading = require('../../atoms/typography/heading.js');
|
|
9
9
|
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
@@ -26,11 +26,11 @@ const ActionCard = ({ actions, content, href, image, logo, subtitle, sx, title,
|
|
|
26
26
|
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-3", "$fontSize": 14, "$lineHeight": 20, "$textAlign": "center", "$textClampLines": 3, sx: "margin-top: 12px;" }, content),
|
|
27
27
|
React__default.default.createElement(box.Box, { "$display": "flex", "$dir": "row", "$gap": 8, sx: "margin-top: auto; width: 100%;" }, React__default.default.Children.toArray(actions))))));
|
|
28
28
|
};
|
|
29
|
-
const Wrapper =
|
|
29
|
+
const Wrapper = styled.styled.div `
|
|
30
30
|
text-decoration: none;
|
|
31
31
|
${({ as }) => (as === 'a' ? 'cursor: pointer;' : '')}
|
|
32
32
|
`;
|
|
33
|
-
const Action =
|
|
33
|
+
const Action = styled.styled.figure `
|
|
34
34
|
position: relative;
|
|
35
35
|
border-radius: 16px;
|
|
36
36
|
width: 318px;
|
|
@@ -48,7 +48,7 @@ const Action = styledComponents.styled.figure `
|
|
|
48
48
|
|
|
49
49
|
${({ $sx }) => ($sx ? $sx : '')};
|
|
50
50
|
`;
|
|
51
|
-
const ImgWrapper =
|
|
51
|
+
const ImgWrapper = styled.styled.div `
|
|
52
52
|
width: 318px;
|
|
53
53
|
height: 160px;
|
|
54
54
|
position: relative;
|
|
@@ -61,7 +61,7 @@ const ImgWrapper = styledComponents.styled.div `
|
|
|
61
61
|
border-radius: 16px 16px 0 0;
|
|
62
62
|
}
|
|
63
63
|
`;
|
|
64
|
-
const Figcaption =
|
|
64
|
+
const Figcaption = styled.styled.figcaption `
|
|
65
65
|
position: relative;
|
|
66
66
|
display: flex;
|
|
67
67
|
align-items: center;
|
|
@@ -73,7 +73,7 @@ const Figcaption = styledComponents.styled.figcaption `
|
|
|
73
73
|
border-radius: 0px 0px 15px 15px;
|
|
74
74
|
text-align: center;
|
|
75
75
|
`;
|
|
76
|
-
const LogoWrapper =
|
|
76
|
+
const LogoWrapper = styled.styled.div `
|
|
77
77
|
position: absolute;
|
|
78
78
|
top: -28px;
|
|
79
79
|
right: calc(50% - 28px);
|