@soul-refiner/design-system 2.0.0-alpha.20 → 2.0.0-alpha.21
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/index.js +11881 -0
- package/package.json +3 -4
- package/dist/_virtual/_cloneBuffer.js +0 -5
- package/dist/_virtual/_commonjsHelpers.js +0 -10
- package/dist/_virtual/_nodeUtil.js +0 -5
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index3.js +0 -5
- package/dist/_virtual/isBuffer.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.min.js +0 -5
- package/dist/_virtual/util.js +0 -5
- package/dist/_virtual/with-selector.development.js +0 -5
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector.production.min.js +0 -5
- package/dist/node_modules/@udecode/plate-alignment/dist/index.js +0 -98
- package/dist/node_modules/@udecode/plate-core/dist/index.js +0 -2656
- package/dist/node_modules/@udecode/plate-link/dist/index.js +0 -585
- package/dist/node_modules/@udecode/plate-media/dist/index.js +0 -211
- package/dist/node_modules/@udecode/plate-normalizers/dist/index.js +0 -20
- package/dist/node_modules/@udecode/plate-resizable/dist/index.js +0 -334
- package/dist/node_modules/@udecode/plate-table/dist/index.js +0 -1371
- package/dist/node_modules/@udecode/plate-utils/dist/index.js +0 -127
- package/dist/node_modules/@udecode/slate/dist/index.js +0 -316
- package/dist/node_modules/@udecode/slate-react/dist/index.js +0 -35
- package/dist/node_modules/@udecode/slate-utils/dist/index.js +0 -230
- package/dist/node_modules/@udecode/utils/dist/index.js +0 -61
- package/dist/node_modules/clsx/dist/clsx.m.js +0 -8
- package/dist/node_modules/dequal/dist/index.js +0 -88
- package/dist/node_modules/immer/dist/immer.js +0 -968
- package/dist/node_modules/is-hotkey/lib/index.js +0 -253
- package/dist/node_modules/jotai/esm/react/utils.js +0 -29
- package/dist/node_modules/jotai/esm/react.js +0 -116
- package/dist/node_modules/jotai/esm/vanilla/utils.js +0 -44
- package/dist/node_modules/jotai/esm/vanilla.js +0 -602
- package/dist/node_modules/jotai-optics/dist/index.modern.js +0 -8
- package/dist/node_modules/jotai-x/dist/index.js +0 -259
- package/dist/node_modules/js-video-url-parser/lib/base.js +0 -9
- package/dist/node_modules/js-video-url-parser/lib/provider/allocine.js +0 -38
- package/dist/node_modules/js-video-url-parser/lib/provider/canalplus.js +0 -50
- package/dist/node_modules/js-video-url-parser/lib/provider/coub.js +0 -58
- package/dist/node_modules/js-video-url-parser/lib/provider/dailymotion.js +0 -74
- package/dist/node_modules/js-video-url-parser/lib/provider/facebook.js +0 -82
- package/dist/node_modules/js-video-url-parser/lib/provider/loom.js +0 -55
- package/dist/node_modules/js-video-url-parser/lib/provider/soundcloud.js +0 -129
- package/dist/node_modules/js-video-url-parser/lib/provider/teachertube.js +0 -114
- package/dist/node_modules/js-video-url-parser/lib/provider/ted.js +0 -100
- package/dist/node_modules/js-video-url-parser/lib/provider/tiktok.js +0 -54
- package/dist/node_modules/js-video-url-parser/lib/provider/twitch.js +0 -154
- package/dist/node_modules/js-video-url-parser/lib/provider/vimeo.js +0 -93
- package/dist/node_modules/js-video-url-parser/lib/provider/wistia.js +0 -116
- package/dist/node_modules/js-video-url-parser/lib/provider/youku.js +0 -87
- package/dist/node_modules/js-video-url-parser/lib/provider/youtube.js +0 -209
- package/dist/node_modules/js-video-url-parser/lib/urlParser.js +0 -88
- package/dist/node_modules/js-video-url-parser/lib/util.js +0 -112
- package/dist/node_modules/lodash/_DataView.js +0 -14
- package/dist/node_modules/lodash/_Hash.js +0 -42
- package/dist/node_modules/lodash/_ListCache.js +0 -42
- package/dist/node_modules/lodash/_Map.js +0 -14
- package/dist/node_modules/lodash/_MapCache.js +0 -42
- package/dist/node_modules/lodash/_Promise.js +0 -14
- package/dist/node_modules/lodash/_Set.js +0 -14
- package/dist/node_modules/lodash/_SetCache.js +0 -35
- package/dist/node_modules/lodash/_Stack.js +0 -38
- package/dist/node_modules/lodash/_Symbol.js +0 -12
- package/dist/node_modules/lodash/_Uint8Array.js +0 -12
- package/dist/node_modules/lodash/_WeakMap.js +0 -14
- package/dist/node_modules/lodash/_apply.js +0 -26
- package/dist/node_modules/lodash/_arrayAggregator.js +0 -27
- package/dist/node_modules/lodash/_arrayEach.js +0 -27
- package/dist/node_modules/lodash/_arrayFilter.js +0 -30
- package/dist/node_modules/lodash/_arrayLikeKeys.js +0 -60
- package/dist/node_modules/lodash/_arrayMap.js +0 -26
- package/dist/node_modules/lodash/_arrayPush.js +0 -25
- package/dist/node_modules/lodash/_arraySome.js +0 -28
- package/dist/node_modules/lodash/_assignMergeValue.js +0 -27
- package/dist/node_modules/lodash/_assignValue.js +0 -35
- package/dist/node_modules/lodash/_assocIndexOf.js +0 -27
- package/dist/node_modules/lodash/_baseAggregator.js +0 -27
- package/dist/node_modules/lodash/_baseAssign.js +0 -24
- package/dist/node_modules/lodash/_baseAssignIn.js +0 -24
- package/dist/node_modules/lodash/_baseAssignValue.js +0 -31
- package/dist/node_modules/lodash/_baseClone.js +0 -193
- package/dist/node_modules/lodash/_baseCreate.js +0 -36
- package/dist/node_modules/lodash/_baseEach.js +0 -21
- package/dist/node_modules/lodash/_baseFlatten.js +0 -45
- package/dist/node_modules/lodash/_baseFor.js +0 -22
- package/dist/node_modules/lodash/_baseForOwn.js +0 -23
- package/dist/node_modules/lodash/_baseGet.js +0 -31
- package/dist/node_modules/lodash/_baseGetAllKeys.js +0 -27
- package/dist/node_modules/lodash/_baseGetTag.js +0 -36
- package/dist/node_modules/lodash/_baseHasIn.js +0 -18
- package/dist/node_modules/lodash/_baseIsArguments.js +0 -25
- package/dist/node_modules/lodash/_baseIsEqual.js +0 -35
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +0 -96
- package/dist/node_modules/lodash/_baseIsMap.js +0 -25
- package/dist/node_modules/lodash/_baseIsMatch.js +0 -69
- package/dist/node_modules/lodash/_baseIsNative.js +0 -56
- package/dist/node_modules/lodash/_baseIsSet.js +0 -25
- package/dist/node_modules/lodash/_baseIsTypedArray.js +0 -68
- package/dist/node_modules/lodash/_baseIteratee.js +0 -41
- package/dist/node_modules/lodash/_baseKeys.js +0 -37
- package/dist/node_modules/lodash/_baseKeysIn.js +0 -41
- package/dist/node_modules/lodash/_baseMap.js +0 -29
- package/dist/node_modules/lodash/_baseMatches.js +0 -30
- package/dist/node_modules/lodash/_baseMatchesProperty.js +0 -45
- package/dist/node_modules/lodash/_baseMerge.js +0 -54
- package/dist/node_modules/lodash/_baseMergeDeep.js +0 -114
- package/dist/node_modules/lodash/_baseProperty.js +0 -19
- package/dist/node_modules/lodash/_basePropertyDeep.js +0 -22
- package/dist/node_modules/lodash/_baseRest.js +0 -25
- package/dist/node_modules/lodash/_baseSetToString.js +0 -30
- package/dist/node_modules/lodash/_baseSlice.js +0 -36
- package/dist/node_modules/lodash/_baseTimes.js +0 -25
- package/dist/node_modules/lodash/_baseToString.js +0 -46
- package/dist/node_modules/lodash/_baseUnary.js +0 -19
- package/dist/node_modules/lodash/_baseUnset.js +0 -29
- package/dist/node_modules/lodash/_baseValues.js +0 -25
- package/dist/node_modules/lodash/_cacheHas.js +0 -18
- package/dist/node_modules/lodash/_castPath.js +0 -30
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +0 -22
- package/dist/node_modules/lodash/_cloneBuffer.js +0 -48
- package/dist/node_modules/lodash/_cloneDataView.js +0 -22
- package/dist/node_modules/lodash/_cloneRegExp.js +0 -22
- package/dist/node_modules/lodash/_cloneSymbol.js +0 -24
- package/dist/node_modules/lodash/_cloneTypedArray.js +0 -22
- package/dist/node_modules/lodash/_copyArray.js +0 -25
- package/dist/node_modules/lodash/_copyObject.js +0 -47
- package/dist/node_modules/lodash/_copySymbols.js +0 -23
- package/dist/node_modules/lodash/_copySymbolsIn.js +0 -23
- package/dist/node_modules/lodash/_coreJsData.js +0 -12
- package/dist/node_modules/lodash/_createAggregator.js +0 -32
- package/dist/node_modules/lodash/_createAssigner.js +0 -44
- package/dist/node_modules/lodash/_createBaseEach.js +0 -38
- package/dist/node_modules/lodash/_createBaseFor.js +0 -30
- package/dist/node_modules/lodash/_customDefaultsMerge.js +0 -35
- package/dist/node_modules/lodash/_customOmitClone.js +0 -22
- package/dist/node_modules/lodash/_defineProperty.js +0 -17
- package/dist/node_modules/lodash/_equalArrays.js +0 -92
- package/dist/node_modules/lodash/_equalByTag.js +0 -123
- package/dist/node_modules/lodash/_equalObjects.js +0 -96
- package/dist/node_modules/lodash/_flatRest.js +0 -24
- package/dist/node_modules/lodash/_freeGlobal.js +0 -11
- package/dist/node_modules/lodash/_getAllKeys.js +0 -24
- package/dist/node_modules/lodash/_getAllKeysIn.js +0 -25
- package/dist/node_modules/lodash/_getMapData.js +0 -24
- package/dist/node_modules/lodash/_getMatchData.js +0 -31
- package/dist/node_modules/lodash/_getNative.js +0 -24
- package/dist/node_modules/lodash/_getPrototype.js +0 -12
- package/dist/node_modules/lodash/_getRawTag.js +0 -52
- package/dist/node_modules/lodash/_getSymbols.js +0 -37
- package/dist/node_modules/lodash/_getSymbolsIn.js +0 -34
- package/dist/node_modules/lodash/_getTag.js +0 -70
- package/dist/node_modules/lodash/_getValue.js +0 -18
- package/dist/node_modules/lodash/_hasPath.js +0 -50
- package/dist/node_modules/lodash/_hashClear.js +0 -21
- package/dist/node_modules/lodash/_hashDelete.js +0 -22
- package/dist/node_modules/lodash/_hashGet.js +0 -36
- package/dist/node_modules/lodash/_hashHas.js +0 -29
- package/dist/node_modules/lodash/_hashSet.js +0 -29
- package/dist/node_modules/lodash/_initCloneArray.js +0 -31
- package/dist/node_modules/lodash/_initCloneByTag.js +0 -87
- package/dist/node_modules/lodash/_initCloneObject.js +0 -26
- package/dist/node_modules/lodash/_isFlattenable.js +0 -28
- package/dist/node_modules/lodash/_isIndex.js +0 -30
- package/dist/node_modules/lodash/_isIterateeCall.js +0 -39
- package/dist/node_modules/lodash/_isKey.js +0 -36
- package/dist/node_modules/lodash/_isKeyable.js +0 -20
- package/dist/node_modules/lodash/_isMasked.js +0 -26
- package/dist/node_modules/lodash/_isPrototype.js +0 -23
- package/dist/node_modules/lodash/_isStrictComparable.js +0 -21
- package/dist/node_modules/lodash/_listCacheClear.js +0 -18
- package/dist/node_modules/lodash/_listCacheDelete.js +0 -41
- package/dist/node_modules/lodash/_listCacheGet.js +0 -25
- package/dist/node_modules/lodash/_listCacheHas.js +0 -22
- package/dist/node_modules/lodash/_listCacheSet.js +0 -32
- package/dist/node_modules/lodash/_mapCacheClear.js +0 -29
- package/dist/node_modules/lodash/_mapCacheDelete.js +0 -24
- package/dist/node_modules/lodash/_mapCacheGet.js +0 -22
- package/dist/node_modules/lodash/_mapCacheHas.js +0 -22
- package/dist/node_modules/lodash/_mapCacheSet.js +0 -28
- package/dist/node_modules/lodash/_mapToArray.js +0 -23
- package/dist/node_modules/lodash/_matchesStrictComparable.js +0 -25
- package/dist/node_modules/lodash/_memoizeCapped.js +0 -32
- package/dist/node_modules/lodash/_nativeCreate.js +0 -12
- package/dist/node_modules/lodash/_nativeKeys.js +0 -12
- package/dist/node_modules/lodash/_nativeKeysIn.js +0 -25
- package/dist/node_modules/lodash/_nodeUtil.js +0 -43
- package/dist/node_modules/lodash/_objectToString.js +0 -27
- package/dist/node_modules/lodash/_overArg.js +0 -20
- package/dist/node_modules/lodash/_overRest.js +0 -42
- package/dist/node_modules/lodash/_parent.js +0 -23
- package/dist/node_modules/lodash/_root.js +0 -15
- package/dist/node_modules/lodash/_safeGet.js +0 -26
- package/dist/node_modules/lodash/_setCacheAdd.js +0 -24
- package/dist/node_modules/lodash/_setCacheHas.js +0 -19
- package/dist/node_modules/lodash/_setToArray.js +0 -23
- package/dist/node_modules/lodash/_setToString.js +0 -21
- package/dist/node_modules/lodash/_shortOut.js +0 -42
- package/dist/node_modules/lodash/_stackClear.js +0 -21
- package/dist/node_modules/lodash/_stackDelete.js +0 -23
- package/dist/node_modules/lodash/_stackGet.js +0 -19
- package/dist/node_modules/lodash/_stackHas.js +0 -19
- package/dist/node_modules/lodash/_stackSet.js +0 -42
- package/dist/node_modules/lodash/_stringToPath.js +0 -33
- package/dist/node_modules/lodash/_toKey.js +0 -27
- package/dist/node_modules/lodash/_toSource.js +0 -31
- package/dist/node_modules/lodash/castArray.js +0 -55
- package/dist/node_modules/lodash/cloneDeep.js +0 -40
- package/dist/node_modules/lodash/constant.js +0 -31
- package/dist/node_modules/lodash/defaults.js +0 -69
- package/dist/node_modules/lodash/defaultsDeep.js +0 -44
- package/dist/node_modules/lodash/eq.js +0 -42
- package/dist/node_modules/lodash/flatten.js +0 -28
- package/dist/node_modules/lodash/get.js +0 -39
- package/dist/node_modules/lodash/hasIn.js +0 -41
- package/dist/node_modules/lodash/identity.js +0 -26
- package/dist/node_modules/lodash/isArguments.js +0 -43
- package/dist/node_modules/lodash/isArray.js +0 -31
- package/dist/node_modules/lodash/isArrayLike.js +0 -40
- package/dist/node_modules/lodash/isArrayLikeObject.js +0 -40
- package/dist/node_modules/lodash/isBuffer.js +0 -52
- package/dist/node_modules/lodash/isFunction.js +0 -44
- package/dist/node_modules/lodash/isLength.js +0 -40
- package/dist/node_modules/lodash/isMap.js +0 -35
- package/dist/node_modules/lodash/isObject.js +0 -36
- package/dist/node_modules/lodash/isObjectLike.js +0 -34
- package/dist/node_modules/lodash/isPlainObject.js +0 -70
- package/dist/node_modules/lodash/isSet.js +0 -35
- package/dist/node_modules/lodash/isSymbol.js +0 -36
- package/dist/node_modules/lodash/isTypedArray.js +0 -35
- package/dist/node_modules/lodash/keyBy.js +0 -48
- package/dist/node_modules/lodash/keys.js +0 -45
- package/dist/node_modules/lodash/keysIn.js +0 -40
- package/dist/node_modules/lodash/last.js +0 -25
- package/dist/node_modules/lodash/map.js +0 -67
- package/dist/node_modules/lodash/memoize.js +0 -79
- package/dist/node_modules/lodash/merge.js +0 -51
- package/dist/node_modules/lodash/mergeWith.js +0 -46
- package/dist/node_modules/lodash/omit.js +0 -75
- package/dist/node_modules/lodash/property.js +0 -41
- package/dist/node_modules/lodash/stubArray.js +0 -28
- package/dist/node_modules/lodash/stubFalse.js +0 -23
- package/dist/node_modules/lodash/toPlainObject.js +0 -39
- package/dist/node_modules/lodash/toString.js +0 -34
- package/dist/node_modules/lodash/values.js +0 -46
- package/dist/node_modules/lodash.mapvalues/index.js +0 -2290
- package/dist/node_modules/optics-ts/dist/mjs/index.js +0 -31
- package/dist/node_modules/optics-ts/dist/mjs/internals.js +0 -460
- package/dist/node_modules/proxy-compare/dist/index.modern.js +0 -7
- package/dist/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js +0 -395
- package/dist/node_modules/react-tracked/dist/index.modern.js +0 -48
- package/dist/node_modules/use-deep-compare/dist-web/index.js +0 -35
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -181
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +0 -32
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -254
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +0 -30
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -21
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -19
- package/dist/node_modules/zustand/esm/middleware.js +0 -551
- package/dist/node_modules/zustand/esm/traditional.js +0 -25
- package/dist/node_modules/zustand/esm/vanilla.js +0 -34
- package/dist/node_modules/zustand-x/dist/index.js +0 -217
- package/dist/src/common/colors.js +0 -140
- package/dist/src/common/date.js +0 -34
- package/dist/src/common/styles.js +0 -66
- package/dist/src/components/actions/button/button.js +0 -330
- package/dist/src/components/actions/dropdown/dropdown.js +0 -237
- package/dist/src/components/actions/rate/rate.js +0 -56
- package/dist/src/components/actions/switch/switch.js +0 -81
- package/dist/src/components/actions/toggle/toggle.js +0 -67
- package/dist/src/components/actions/upload/upload.js +0 -170
- package/dist/src/components/atoms/box/box.js +0 -26
- package/dist/src/components/atoms/hide/hide.js +0 -18
- package/dist/src/components/atoms/seconds_to_duration/seconds_to_duration.js +0 -36
- package/dist/src/components/atoms/time_ago/time_ago.js +0 -40
- package/dist/src/components/atoms/typography/display.js +0 -19
- package/dist/src/components/atoms/typography/heading.js +0 -44
- package/dist/src/components/atoms/typography/paragraph.js +0 -27
- package/dist/src/components/atoms/typography/typography.js +0 -17
- package/dist/src/components/card/action/action.js +0 -84
- package/dist/src/components/card/audio/audio.js +0 -143
- package/dist/src/components/card/card.js +0 -34
- package/dist/src/components/card/feature/feature.js +0 -204
- package/dist/src/components/card/meeting/meeting.js +0 -152
- package/dist/src/components/card/person/person.js +0 -83
- package/dist/src/components/card/price/price.js +0 -89
- package/dist/src/components/card/regular/regular.js +0 -43
- package/dist/src/components/card/styles.js +0 -16
- package/dist/src/components/card/video/video.js +0 -140
- package/dist/src/components/card/written/written.js +0 -143
- package/dist/src/components/custom/courses_selection/courses_selection.js +0 -143
- package/dist/src/components/custom/users_selection/users_selection.js +0 -134
- package/dist/src/components/editor/constants.js +0 -195
- package/dist/src/components/editor/context.js +0 -17
- package/dist/src/components/editor/editor.js +0 -114
- package/dist/src/components/editor/icons/border-all.js +0 -12
- package/dist/src/components/editor/icons/border-bottom.js +0 -12
- package/dist/src/components/editor/icons/border-left.js +0 -12
- package/dist/src/components/editor/icons/border-none.js +0 -12
- package/dist/src/components/editor/icons/border-right.js +0 -12
- package/dist/src/components/editor/icons/border-top.js +0 -12
- package/dist/src/components/editor/navbar/alignment_dropdown.js +0 -106
- package/dist/src/components/editor/navbar/button_modal.js +0 -70
- package/dist/src/components/editor/navbar/navbar.js +0 -225
- package/dist/src/components/editor/navbar/style_dropdown.js +0 -74
- package/dist/src/components/editor/plugins/blocks/blockquote.js +0 -17
- package/dist/src/components/editor/plugins/blocks/blocks.js +0 -54
- package/dist/src/components/editor/plugins/blocks/buttons.js +0 -91
- package/dist/src/components/editor/plugins/blocks/dropdown-menu.js +0 -78
- package/dist/src/components/editor/plugins/blocks/image.js +0 -61
- package/dist/src/components/editor/plugins/blocks/list.js +0 -26
- package/dist/src/components/editor/plugins/blocks/media-popover.js +0 -43
- package/dist/src/components/editor/plugins/blocks/plate-button.js +0 -63
- package/dist/src/components/editor/plugins/blocks/popover.js +0 -39
- package/dist/src/components/editor/plugins/blocks/qa.js +0 -55
- package/dist/src/components/editor/plugins/blocks/resizable.js +0 -48
- package/dist/src/components/editor/plugins/blocks/separator.js +0 -44
- package/dist/src/components/editor/plugins/blocks/table-cell.js +0 -48
- package/dist/src/components/editor/plugins/blocks/table-row.js +0 -16
- package/dist/src/components/editor/plugins/blocks/table.js +0 -100
- package/dist/src/components/editor/plugins/blocks/text.js +0 -103
- package/dist/src/components/editor/plugins/blocks/video.js +0 -42
- package/dist/src/components/editor/plugins/leafs/leafs.js +0 -37
- package/dist/src/components/editor/plugins/leafs/link.js +0 -86
- package/dist/src/components/editor/plugins/marks/marks.js +0 -17
- package/dist/src/components/editor/plugins/plate.js +0 -43
- package/dist/src/components/editor/plugins/utils/exitBreak.js +0 -36
- package/dist/src/components/editor/plugins/utils/resetBlockType.js +0 -26
- package/dist/src/components/editor/plugins/utils/selectOnBackspace.js +0 -11
- package/dist/src/components/editor/plugins/utils/softBreak.js +0 -19
- package/dist/src/components/editor/plugins/utils/utils.js +0 -17
- package/dist/src/components/editor/simple_editor/navbar.js +0 -128
- package/dist/src/components/editor/simple_editor/plugins.js +0 -93
- package/dist/src/components/editor/simple_editor/simple_editor.js +0 -98
- package/dist/src/components/editor/styles/menu_button.js +0 -36
- package/dist/src/components/feedback/animated_toast/animated_toast.js +0 -64
- package/dist/src/components/feedback/badge/badge.js +0 -75
- package/dist/src/components/feedback/banner/banner.js +0 -95
- package/dist/src/components/feedback/chip/chip.js +0 -103
- package/dist/src/components/feedback/loader/loader.js +0 -44
- package/dist/src/components/feedback/notification/notification.js +0 -87
- package/dist/src/components/feedback/progress/progress.js +0 -101
- package/dist/src/components/feedback/toast/toast.js +0 -126
- package/dist/src/components/feedback/tooltip/tooltip.js +0 -35
- package/dist/src/components/iconography/avatar/avatar.js +0 -190
- package/dist/src/components/iconography/avatar/icons/approved.js +0 -14
- package/dist/src/components/iconography/avatar/icons/busy.js +0 -14
- package/dist/src/components/iconography/avatar/icons/declined.js +0 -14
- package/dist/src/components/iconography/avatar/icons/default.js +0 -13
- package/dist/src/components/iconography/avatar/icons/focus.js +0 -14
- package/dist/src/components/iconography/avatar/icons/locked.js +0 -14
- package/dist/src/components/iconography/avatar/icons/offline.js +0 -14
- package/dist/src/components/iconography/avatar/icons/online.js +0 -13
- package/dist/src/components/iconography/avatar/icons/subscribed.js +0 -18
- package/dist/src/components/iconography/icon/icon.js +0 -19
- package/dist/src/components/input/calendar/calendar.js +0 -267
- package/dist/src/components/input/checkbox/checkbox.js +0 -32
- package/dist/src/components/input/date/date.js +0 -529
- package/dist/src/components/input/filter/filter.js +0 -332
- package/dist/src/components/input/filter/filter_option.js +0 -82
- package/dist/src/components/input/radio/radio.js +0 -92
- package/dist/src/components/input/search/search.js +0 -148
- package/dist/src/components/input/select/select.js +0 -56
- package/dist/src/components/input/text_area/text_area.js +0 -120
- package/dist/src/components/input/text_input/text_input.js +0 -157
- package/dist/src/components/input/time/time.js +0 -80
- package/dist/src/components/media/video/video.js +0 -42
- package/dist/src/components/media/video-player/playlist-item.js +0 -48
- package/dist/src/components/media/video-player/video.js +0 -210
- package/dist/src/components/navigation/breadcrumb/breadcrumb.js +0 -119
- package/dist/src/components/navigation/inner/inner.js +0 -199
- package/dist/src/components/navigation/tabs/tabs.js +0 -159
- package/dist/src/components/surfaces/accordion/accordion.js +0 -56
- package/dist/src/components/surfaces/calendar_date/calendar_date.js +0 -55
- package/dist/src/components/surfaces/carousel/card/card.js +0 -106
- package/dist/src/components/surfaces/comment/comment.js +0 -211
- package/dist/src/components/surfaces/comment/helpers.js +0 -30
- package/dist/src/components/surfaces/drawer/drawer.js +0 -140
- package/dist/src/components/surfaces/message/message.js +0 -56
- package/dist/src/components/surfaces/modal/modal.js +0 -135
- package/dist/src/components/surfaces/portal/portal.js +0 -36
- package/dist/src/components/surfaces/post/post.js +0 -246
- package/dist/src/components/table/table/table.js +0 -192
- package/dist/src/emoji/emojis.json.js +0 -36331
- package/dist/src/icons/arrow/arrow_all.js +0 -15
- package/dist/src/icons/arrow/arrow_all_diagonal.js +0 -15
- package/dist/src/icons/arrow/arrow_both_downwards.js +0 -15
- package/dist/src/icons/arrow/arrow_both_upwards.js +0 -15
- package/dist/src/icons/arrow/arrow_circle_left.js +0 -15
- package/dist/src/icons/arrow/arrow_circle_left_double.js +0 -15
- package/dist/src/icons/arrow/arrow_circle_left_double_alert.js +0 -17
- package/dist/src/icons/arrow/arrow_circle_right.js +0 -15
- package/dist/src/icons/arrow/arrow_circle_right_double.js +0 -15
- package/dist/src/icons/arrow/arrow_circle_right_double_alert.js +0 -15
- package/dist/src/icons/arrow/arrow_diagonal_down_left.js +0 -15
- package/dist/src/icons/arrow/arrow_diagonal_down_left_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_diagonal_down_right.js +0 -15
- package/dist/src/icons/arrow/arrow_diagonal_down_right_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_diagonal_up_left.js +0 -15
- package/dist/src/icons/arrow/arrow_diagonal_up_left_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_diagonal_up_right.js +0 -15
- package/dist/src/icons/arrow/arrow_diagonal_up_right_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_down.js +0 -15
- package/dist/src/icons/arrow/arrow_down_bold.js +0 -15
- package/dist/src/icons/arrow/arrow_down_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_left.js +0 -15
- package/dist/src/icons/arrow/arrow_left_bold.js +0 -15
- package/dist/src/icons/arrow/arrow_left_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_left_curved.js +0 -15
- package/dist/src/icons/arrow/arrow_left_curved_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_right.js +0 -15
- package/dist/src/icons/arrow/arrow_right_bold.js +0 -15
- package/dist/src/icons/arrow/arrow_right_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_right_curved.js +0 -15
- package/dist/src/icons/arrow/arrow_right_curved_circle.js +0 -15
- package/dist/src/icons/arrow/arrow_up.js +0 -15
- package/dist/src/icons/arrow/arrow_up_bold.js +0 -15
- package/dist/src/icons/arrow/arrow_up_circle.js +0 -15
- package/dist/src/icons/arrow/chevron_down.js +0 -15
- package/dist/src/icons/arrow/chevron_down_circle.js +0 -15
- package/dist/src/icons/arrow/chevron_down_double.js +0 -15
- package/dist/src/icons/arrow/chevron_down_double_circle.js +0 -15
- package/dist/src/icons/arrow/chevron_left.js +0 -15
- package/dist/src/icons/arrow/chevron_left_circle.js +0 -15
- package/dist/src/icons/arrow/chevron_left_double.js +0 -15
- package/dist/src/icons/arrow/chevron_left_double_circle.js +0 -15
- package/dist/src/icons/arrow/chevron_right.js +0 -15
- package/dist/src/icons/arrow/chevron_right_circle.js +0 -15
- package/dist/src/icons/arrow/chevron_right_double.js +0 -15
- package/dist/src/icons/arrow/chevron_right_double_circle.js +0 -15
- package/dist/src/icons/arrow/chevron_scroll.js +0 -15
- package/dist/src/icons/arrow/chevron_up.js +0 -15
- package/dist/src/icons/arrow/chevron_up_circle.js +0 -15
- package/dist/src/icons/arrow/chevron_up_double.js +0 -15
- package/dist/src/icons/arrow/chevron_up_double_circle.js +0 -15
- package/dist/src/icons/arrow/forward_all.js +0 -15
- package/dist/src/icons/arrow/forward_all_bold.js +0 -15
- package/dist/src/icons/arrow/forward_bold.js +0 -15
- package/dist/src/icons/arrow/redo.js +0 -15
- package/dist/src/icons/arrow/redo_bold.js +0 -15
- package/dist/src/icons/arrow/reply.js +0 -15
- package/dist/src/icons/arrow/reply_all.js +0 -15
- package/dist/src/icons/arrow/reply_all_bold.js +0 -15
- package/dist/src/icons/arrow/reply_bold.js +0 -15
- package/dist/src/icons/arrow/undo.js +0 -15
- package/dist/src/icons/arrow/undo_bold.js +0 -15
- package/dist/src/icons/audio_video/drag_indicator.js +0 -15
- package/dist/src/icons/audio_video/eject.js +0 -15
- package/dist/src/icons/audio_video/equalizer.js +0 -15
- package/dist/src/icons/audio_video/fast_forward.js +0 -15
- package/dist/src/icons/audio_video/fast_forward_30.js +0 -15
- package/dist/src/icons/audio_video/fullscreen.js +0 -15
- package/dist/src/icons/audio_video/headphones.js +0 -15
- package/dist/src/icons/audio_video/library_add.js +0 -15
- package/dist/src/icons/audio_video/library_music.js +0 -15
- package/dist/src/icons/audio_video/microphone.js +0 -15
- package/dist/src/icons/audio_video/musical_note.js +0 -15
- package/dist/src/icons/audio_video/next.js +0 -15
- package/dist/src/icons/audio_video/pause.js +0 -15
- package/dist/src/icons/audio_video/pause_circle.js +0 -15
- package/dist/src/icons/audio_video/play.js +0 -15
- package/dist/src/icons/audio_video/play_circle.js +0 -15
- package/dist/src/icons/audio_video/play_display.js +0 -15
- package/dist/src/icons/audio_video/play_pause.js +0 -15
- package/dist/src/icons/audio_video/play_solid.js +0 -15
- package/dist/src/icons/audio_video/player_list.js +0 -15
- package/dist/src/icons/audio_video/player_list_add.js +0 -15
- package/dist/src/icons/audio_video/player_list_play.js +0 -15
- package/dist/src/icons/audio_video/previous.js +0 -15
- package/dist/src/icons/audio_video/radio.js +0 -15
- package/dist/src/icons/audio_video/record.js +0 -15
- package/dist/src/icons/audio_video/repeat.js +0 -15
- package/dist/src/icons/audio_video/rewind.js +0 -15
- package/dist/src/icons/audio_video/rewind_30.js +0 -15
- package/dist/src/icons/audio_video/shuffle.js +0 -15
- package/dist/src/icons/audio_video/sound_wave.js +0 -15
- package/dist/src/icons/audio_video/stop.js +0 -15
- package/dist/src/icons/audio_video/stop_circle.js +0 -15
- package/dist/src/icons/audio_video/subscriptions.js +0 -15
- package/dist/src/icons/audio_video/tuner.js +0 -15
- package/dist/src/icons/audio_video/volume.js +0 -15
- package/dist/src/icons/audio_video/volume_high.js +0 -15
- package/dist/src/icons/audio_video/volume_low.js +0 -15
- package/dist/src/icons/audio_video/volume_slash.js +0 -15
- package/dist/src/icons/basic/aa_sansserif.js +0 -16
- package/dist/src/icons/basic/aa_serif.js +0 -16
- package/dist/src/icons/basic/anchor.js +0 -17
- package/dist/src/icons/basic/bible.js +0 -15
- package/dist/src/icons/basic/bold.js +0 -15
- package/dist/src/icons/basic/book.js +0 -15
- package/dist/src/icons/basic/book_open.js +0 -15
- package/dist/src/icons/basic/bookmark.js +0 -15
- package/dist/src/icons/basic/bookmark_add.js +0 -15
- package/dist/src/icons/basic/bookmark_slash.js +0 -15
- package/dist/src/icons/basic/bookmarks.js +0 -15
- package/dist/src/icons/basic/books.js +0 -18
- package/dist/src/icons/basic/box.js +0 -15
- package/dist/src/icons/basic/briefcase.js +0 -15
- package/dist/src/icons/basic/browse_activity.js +0 -15
- package/dist/src/icons/basic/browser.js +0 -15
- package/dist/src/icons/basic/browser_slash.js +0 -15
- package/dist/src/icons/basic/calculator.js +0 -15
- package/dist/src/icons/basic/camera.js +0 -15
- package/dist/src/icons/basic/camera_add.js +0 -15
- package/dist/src/icons/basic/camera_slash.js +0 -15
- package/dist/src/icons/basic/checkmark.js +0 -15
- package/dist/src/icons/basic/checkmark_circle.js +0 -17
- package/dist/src/icons/basic/checkmark_filled.js +0 -15
- package/dist/src/icons/basic/checkmarks.js +0 -15
- package/dist/src/icons/basic/circle.js +0 -15
- package/dist/src/icons/basic/circle_slash.js +0 -17
- package/dist/src/icons/basic/clear_text_style.js +0 -15
- package/dist/src/icons/basic/close.js +0 -15
- package/dist/src/icons/basic/close_circle.js +0 -15
- package/dist/src/icons/basic/close_filled.js +0 -15
- package/dist/src/icons/basic/copy.js +0 -15
- package/dist/src/icons/basic/delete.js +0 -15
- package/dist/src/icons/basic/detail.js +0 -15
- package/dist/src/icons/basic/dot.js +0 -15
- package/dist/src/icons/basic/download.js +0 -15
- package/dist/src/icons/basic/download_arrow.js +0 -15
- package/dist/src/icons/basic/droplet.js +0 -17
- package/dist/src/icons/basic/ellipsis_horizontal.js +0 -15
- package/dist/src/icons/basic/ellipsis_horizontal_circle.js +0 -15
- package/dist/src/icons/basic/ellipsis_vertical.js +0 -15
- package/dist/src/icons/basic/ellipsis_vertical_circle.js +0 -15
- package/dist/src/icons/basic/eye.js +0 -15
- package/dist/src/icons/basic/eye_slash.js +0 -15
- package/dist/src/icons/basic/fingerprint.js +0 -15
- package/dist/src/icons/basic/flag.js +0 -15
- package/dist/src/icons/basic/flag_wave.js +0 -15
- package/dist/src/icons/basic/flag_wave_filled.js +0 -15
- package/dist/src/icons/basic/flame.js +0 -15
- package/dist/src/icons/basic/gauge.js +0 -15
- package/dist/src/icons/basic/glasses.js +0 -15
- package/dist/src/icons/basic/graduation_cap.js +0 -15
- package/dist/src/icons/basic/hashmark.js +0 -15
- package/dist/src/icons/basic/heart.js +0 -15
- package/dist/src/icons/basic/heart_slash.js +0 -15
- package/dist/src/icons/basic/highlighter.js +0 -15
- package/dist/src/icons/basic/home.js +0 -15
- package/dist/src/icons/basic/image.js +0 -15
- package/dist/src/icons/basic/inbox.js +0 -15
- package/dist/src/icons/basic/italic.js +0 -15
- package/dist/src/icons/basic/layers.js +0 -15
- package/dist/src/icons/basic/lightening.js +0 -15
- package/dist/src/icons/basic/lightening_slash.js +0 -15
- package/dist/src/icons/basic/link.js +0 -15
- package/dist/src/icons/basic/link_slash.js +0 -15
- package/dist/src/icons/basic/loudspeaker.js +0 -15
- package/dist/src/icons/basic/maximize.js +0 -15
- package/dist/src/icons/basic/menu.js +0 -15
- package/dist/src/icons/basic/menu_circle.js +0 -15
- package/dist/src/icons/basic/menu_dots.js +0 -15
- package/dist/src/icons/basic/microphone_slash.js +0 -15
- package/dist/src/icons/basic/minimize.js +0 -15
- package/dist/src/icons/basic/minus.js +0 -15
- package/dist/src/icons/basic/minus_circle.js +0 -15
- package/dist/src/icons/basic/move_item.js +0 -15
- package/dist/src/icons/basic/new.js +0 -15
- package/dist/src/icons/basic/newspaper.js +0 -15
- package/dist/src/icons/basic/node.js +0 -15
- package/dist/src/icons/basic/note_pad.js +0 -16
- package/dist/src/icons/basic/options.js +0 -15
- package/dist/src/icons/basic/paint_brush.js +0 -15
- package/dist/src/icons/basic/paperclip.js +0 -15
- package/dist/src/icons/basic/paperclip_slash.js +0 -15
- package/dist/src/icons/basic/pencil.js +0 -15
- package/dist/src/icons/basic/pencil_pad.js +0 -15
- package/dist/src/icons/basic/plus.js +0 -15
- package/dist/src/icons/basic/plus_circle.js +0 -15
- package/dist/src/icons/basic/presentation.js +0 -15
- package/dist/src/icons/basic/printer.js +0 -15
- package/dist/src/icons/basic/profile.js +0 -15
- package/dist/src/icons/basic/profile_check.js +0 -15
- package/dist/src/icons/basic/pulse.js +0 -15
- package/dist/src/icons/basic/qr_code.js +0 -15
- package/dist/src/icons/basic/resize.js +0 -17
- package/dist/src/icons/basic/scan.js +0 -15
- package/dist/src/icons/basic/scissors.js +0 -15
- package/dist/src/icons/basic/screenshot.js +0 -15
- package/dist/src/icons/basic/search.js +0 -15
- package/dist/src/icons/basic/select_item.js +0 -16
- package/dist/src/icons/basic/settings.js +0 -15
- package/dist/src/icons/basic/share.js +0 -15
- package/dist/src/icons/basic/share_external.js +0 -15
- package/dist/src/icons/basic/square.js +0 -15
- package/dist/src/icons/basic/star.js +0 -15
- package/dist/src/icons/basic/star_circle.js +0 -15
- package/dist/src/icons/basic/star_filled.js +0 -15
- package/dist/src/icons/basic/star_filled_half.js +0 -15
- package/dist/src/icons/basic/star_slash.js +0 -15
- package/dist/src/icons/basic/sticker.js +0 -15
- package/dist/src/icons/basic/strikethrough.js +0 -15
- package/dist/src/icons/basic/subtask.js +0 -16
- package/dist/src/icons/basic/tax.js +0 -18
- package/dist/src/icons/basic/text_bg_color.js +0 -15
- package/dist/src/icons/basic/text_color.js +0 -15
- package/dist/src/icons/basic/textbox.js +0 -15
- package/dist/src/icons/basic/thumbs_down.js +0 -15
- package/dist/src/icons/basic/thumbs_up.js +0 -15
- package/dist/src/icons/basic/thumbs_up_filled.js +0 -15
- package/dist/src/icons/basic/toggle_left.js +0 -15
- package/dist/src/icons/basic/toggle_right.js +0 -15
- package/dist/src/icons/basic/translate.js +0 -15
- package/dist/src/icons/basic/trash.js +0 -15
- package/dist/src/icons/basic/trash_slash.js +0 -15
- package/dist/src/icons/basic/underline.js +0 -15
- package/dist/src/icons/basic/upload.js +0 -15
- package/dist/src/icons/basic/video.js +0 -15
- package/dist/src/icons/basic/video_add.js +0 -16
- package/dist/src/icons/basic/video_slash.js +0 -15
- package/dist/src/icons/basic/wrench.js +0 -15
- package/dist/src/icons/basic/zoom_in.js +0 -15
- package/dist/src/icons/basic/zoom_out.js +0 -15
- package/dist/src/icons/data/bar_chart.js +0 -15
- package/dist/src/icons/data/bar_chart_downward.js +0 -15
- package/dist/src/icons/data/bar_chart_downward_outline.js +0 -15
- package/dist/src/icons/data/bar_chart_upward.js +0 -15
- package/dist/src/icons/data/bar_chart_upward_outline.js +0 -15
- package/dist/src/icons/data/candlestick_chart.js +0 -15
- package/dist/src/icons/data/four_circles.js +0 -15
- package/dist/src/icons/data/legend_toggle.js +0 -15
- package/dist/src/icons/data/line_chart.js +0 -15
- package/dist/src/icons/data/line_chart_area.js +0 -15
- package/dist/src/icons/data/line_chart_area_shaded.js +0 -15
- package/dist/src/icons/data/line_chart_double.js +0 -15
- package/dist/src/icons/data/line_chart_downward.js +0 -15
- package/dist/src/icons/data/line_chart_node.js +0 -15
- package/dist/src/icons/data/line_chart_outline.js +0 -15
- package/dist/src/icons/data/line_chart_search.js +0 -15
- package/dist/src/icons/data/line_chart_stars.js +0 -15
- package/dist/src/icons/data/line_chart_upward.js +0 -15
- package/dist/src/icons/data/pie_chart.js +0 -16
- package/dist/src/icons/data/tree.js +0 -15
- package/dist/src/icons/email/mail.js +0 -15
- package/dist/src/icons/email/mail_check.js +0 -15
- package/dist/src/icons/email/mail_minus.js +0 -15
- package/dist/src/icons/email/mail_send.js +0 -15
- package/dist/src/icons/email/send.js +0 -15
- package/dist/src/icons/email/send_close.js +0 -15
- package/dist/src/icons/email/send_schedule.js +0 -15
- package/dist/src/icons/email/send_text.js +0 -15
- package/dist/src/icons/emoji/emoji_add.js +0 -15
- package/dist/src/icons/emoji/laughing.js +0 -15
- package/dist/src/icons/emoji/neutral.js +0 -15
- package/dist/src/icons/emoji/sad.js +0 -15
- package/dist/src/icons/emoji/shocked.js +0 -15
- package/dist/src/icons/emoji/smile.js +0 -15
- package/dist/src/icons/file/clipboard.js +0 -15
- package/dist/src/icons/file/clipboard_check.js +0 -15
- package/dist/src/icons/file/clipboard_close.js +0 -15
- package/dist/src/icons/file/clipboard_minus.js +0 -15
- package/dist/src/icons/file/clipboard_plus.js +0 -15
- package/dist/src/icons/file/clipboard_text.js +0 -15
- package/dist/src/icons/file/file.js +0 -15
- package/dist/src/icons/file/file_add.js +0 -15
- package/dist/src/icons/file/file_check.js +0 -15
- package/dist/src/icons/file/file_close.js +0 -15
- package/dist/src/icons/file/file_code.js +0 -15
- package/dist/src/icons/file/file_download.js +0 -15
- package/dist/src/icons/file/file_draft.js +0 -15
- package/dist/src/icons/file/file_gear.js +0 -16
- package/dist/src/icons/file/file_minus.js +0 -15
- package/dist/src/icons/file/file_plus.js +0 -15
- package/dist/src/icons/file/file_scan.js +0 -15
- package/dist/src/icons/file/file_shred.js +0 -15
- package/dist/src/icons/file/file_text.js +0 -15
- package/dist/src/icons/file/file_upload.js +0 -15
- package/dist/src/icons/file/folder.js +0 -15
- package/dist/src/icons/file/folder_add.js +0 -15
- package/dist/src/icons/file/folder_arrow.js +0 -15
- package/dist/src/icons/file/folder_check.js +0 -15
- package/dist/src/icons/file/folder_close.js +0 -15
- package/dist/src/icons/file/folder_cloud.js +0 -15
- package/dist/src/icons/file/folder_gear.js +0 -16
- package/dist/src/icons/file/folder_minus.js +0 -15
- package/dist/src/icons/file/folder_music.js +0 -15
- package/dist/src/icons/file/folder_open.js +0 -15
- package/dist/src/icons/file/folder_plus.js +0 -15
- package/dist/src/icons/file/folder_zip.js +0 -15
- package/dist/src/icons/file/note.js +0 -15
- package/dist/src/icons/file/note_text.js +0 -15
- package/dist/src/icons/file/pdf.js +0 -15
- package/dist/src/icons/file/photo.js +0 -15
- package/dist/src/icons/finance/bitcoin.js +0 -15
- package/dist/src/icons/finance/coins.js +0 -19
- package/dist/src/icons/finance/credit_card.js +0 -15
- package/dist/src/icons/finance/credit_card_add.js +0 -15
- package/dist/src/icons/finance/credit_card_face.js +0 -15
- package/dist/src/icons/finance/credit_card_member.js +0 -15
- package/dist/src/icons/finance/credit_card_outcome.js +0 -15
- package/dist/src/icons/finance/credit_card_scan.js +0 -15
- package/dist/src/icons/finance/credit_card_share.js +0 -15
- package/dist/src/icons/finance/credit_card_slash.js +0 -15
- package/dist/src/icons/finance/currency_exchange.js +0 -15
- package/dist/src/icons/finance/dollar.js +0 -15
- package/dist/src/icons/finance/ethereum.js +0 -15
- package/dist/src/icons/finance/paypass.js +0 -15
- package/dist/src/icons/finance/strongbox.js +0 -15
- package/dist/src/icons/finance/wallet.js +0 -15
- package/dist/src/icons/index.js +0 -1095
- package/dist/src/icons/layout/block_align_bottom.js +0 -15
- package/dist/src/icons/layout/block_align_center.js +0 -15
- package/dist/src/icons/layout/block_align_left.js +0 -15
- package/dist/src/icons/layout/block_align_middle.js +0 -15
- package/dist/src/icons/layout/block_align_right.js +0 -15
- package/dist/src/icons/layout/block_align_top.js +0 -15
- package/dist/src/icons/layout/block_horizontal.js +0 -15
- package/dist/src/icons/layout/block_vertical.js +0 -15
- package/dist/src/icons/layout/edit_shape.js +0 -15
- package/dist/src/icons/layout/elements.js +0 -15
- package/dist/src/icons/layout/elements_add.js +0 -15
- package/dist/src/icons/layout/elements_filled.js +0 -15
- package/dist/src/icons/layout/elements_masonry.js +0 -15
- package/dist/src/icons/layout/frame.js +0 -15
- package/dist/src/icons/layout/frame_stack.js +0 -15
- package/dist/src/icons/layout/grid.js +0 -15
- package/dist/src/icons/layout/grid_column_three.js +0 -15
- package/dist/src/icons/layout/grid_column_two.js +0 -15
- package/dist/src/icons/layout/grid_dynamic.js +0 -15
- package/dist/src/icons/layout/grid_frame.js +0 -15
- package/dist/src/icons/layout/grid_row_three.js +0 -15
- package/dist/src/icons/layout/grid_row_two.js +0 -15
- package/dist/src/icons/layout/grid_six.js +0 -15
- package/dist/src/icons/layout/grid_small.js +0 -15
- package/dist/src/icons/layout/iframe.js +0 -15
- package/dist/src/icons/layout/kanban.js +0 -15
- package/dist/src/icons/layout/layout.js +0 -15
- package/dist/src/icons/layout/list.js +0 -15
- package/dist/src/icons/layout/list_filled.js +0 -20
- package/dist/src/icons/layout/padding.js +0 -15
- package/dist/src/icons/layout/page_break.js +0 -15
- package/dist/src/icons/layout/rotate_left.js +0 -15
- package/dist/src/icons/layout/rotate_right.js +0 -15
- package/dist/src/icons/layout/ruler.js +0 -15
- package/dist/src/icons/layout/segment.js +0 -15
- package/dist/src/icons/layout/select_area.js +0 -15
- package/dist/src/icons/layout/select_boundary.js +0 -15
- package/dist/src/icons/layout/sidebar_left.js +0 -15
- package/dist/src/icons/layout/sidebar_right.js +0 -15
- package/dist/src/icons/layout/slides.js +0 -15
- package/dist/src/icons/layout/slides_horizontal.js +0 -15
- package/dist/src/icons/layout/slides_vertical.js +0 -20
- package/dist/src/icons/layout/stack.js +0 -15
- package/dist/src/icons/layout/text.js +0 -15
- package/dist/src/icons/maps/atlas.js +0 -15
- package/dist/src/icons/maps/compass.js +0 -15
- package/dist/src/icons/maps/direction.js +0 -15
- package/dist/src/icons/maps/direction_angled.js +0 -15
- package/dist/src/icons/maps/globe.js +0 -15
- package/dist/src/icons/maps/globe_slash.js +0 -15
- package/dist/src/icons/maps/location.js +0 -15
- package/dist/src/icons/maps/location_slash.js +0 -15
- package/dist/src/icons/maps/map.js +0 -15
- package/dist/src/icons/maps/marker.js +0 -15
- package/dist/src/icons/maps/panorama.js +0 -15
- package/dist/src/icons/maps/pin.js +0 -15
- package/dist/src/icons/maps/pin_arrow.js +0 -15
- package/dist/src/icons/maps/pin_location.js +0 -15
- package/dist/src/icons/maps/pin_plus.js +0 -15
- package/dist/src/icons/maps/pin_question.js +0 -15
- package/dist/src/icons/maps/pin_slash.js +0 -15
- package/dist/src/icons/maps/push_pin.js +0 -15
- package/dist/src/icons/maps/push_pin_filled.js +0 -15
- package/dist/src/icons/maps/push_pin_slash.js +0 -15
- package/dist/src/icons/maps/radar.js +0 -15
- package/dist/src/icons/maps/route.js +0 -15
- package/dist/src/icons/message/bubble.js +0 -15
- package/dist/src/icons/message/bubble_question.js +0 -15
- package/dist/src/icons/message/comment.js +0 -15
- package/dist/src/icons/message/comment_add.js +0 -15
- package/dist/src/icons/message/comment_check.js +0 -15
- package/dist/src/icons/message/comment_close.js +0 -15
- package/dist/src/icons/message/comment_minus.js +0 -15
- package/dist/src/icons/message/comment_text.js +0 -15
- package/dist/src/icons/misc/advertisement.js +0 -15
- package/dist/src/icons/misc/atom.js +0 -15
- package/dist/src/icons/misc/bone.js +0 -15
- package/dist/src/icons/misc/brightness_high.js +0 -15
- package/dist/src/icons/misc/brightness_low.js +0 -15
- package/dist/src/icons/misc/contrast.js +0 -15
- package/dist/src/icons/misc/crosshairs.js +0 -15
- package/dist/src/icons/misc/crown.js +0 -15
- package/dist/src/icons/misc/footprint.js +0 -15
- package/dist/src/icons/misc/form.js +0 -15
- package/dist/src/icons/misc/funnel.js +0 -15
- package/dist/src/icons/misc/infinite.js +0 -15
- package/dist/src/icons/misc/insert_button.js +0 -15
- package/dist/src/icons/misc/light_bulb.js +0 -15
- package/dist/src/icons/misc/moon.js +0 -15
- package/dist/src/icons/misc/nut.js +0 -15
- package/dist/src/icons/misc/planet.js +0 -15
- package/dist/src/icons/misc/plus_thick.js +0 -15
- package/dist/src/icons/misc/pocket.js +0 -15
- package/dist/src/icons/misc/rocket.js +0 -15
- package/dist/src/icons/misc/soup.js +0 -19
- package/dist/src/icons/misc/sun.js +0 -15
- package/dist/src/icons/misc/toy_horse.js +0 -15
- package/dist/src/icons/misc/trophy.js +0 -15
- package/dist/src/icons/misc/watercloset.js +0 -15
- package/dist/src/icons/notifications/alert_circle.js +0 -15
- package/dist/src/icons/notifications/alert_octogon.js +0 -15
- package/dist/src/icons/notifications/alert_triangle.js +0 -15
- package/dist/src/icons/notifications/app_notification.js +0 -15
- package/dist/src/icons/notifications/bell.js +0 -15
- package/dist/src/icons/notifications/bell_alert.js +0 -15
- package/dist/src/icons/notifications/bell_checkmark.js +0 -15
- package/dist/src/icons/notifications/bell_minus.js +0 -15
- package/dist/src/icons/notifications/bell_plus.js +0 -15
- package/dist/src/icons/notifications/bell_ring.js +0 -17
- package/dist/src/icons/notifications/bell_slash.js +0 -15
- package/dist/src/icons/notifications/information.js +0 -15
- package/dist/src/icons/notifications/minus_octogon.js +0 -15
- package/dist/src/icons/notifications/question_circle.js +0 -15
- package/dist/src/icons/people/group.js +0 -15
- package/dist/src/icons/people/group_add.js +0 -15
- package/dist/src/icons/people/group_chat.js +0 -17
- package/dist/src/icons/people/group_remove.js +0 -15
- package/dist/src/icons/people/group_send.js +0 -16
- package/dist/src/icons/people/groups.js +0 -15
- package/dist/src/icons/people/person.js +0 -15
- package/dist/src/icons/people/person_add.js +0 -15
- package/dist/src/icons/people/person_checkmark.js +0 -15
- package/dist/src/icons/people/person_circle.js +0 -17
- package/dist/src/icons/people/person_close.js +0 -17
- package/dist/src/icons/people/person_remove.js +0 -15
- package/dist/src/icons/people/person_slash.js +0 -17
- package/dist/src/icons/phone/keypad.js +0 -15
- package/dist/src/icons/phone/phone.js +0 -15
- package/dist/src/icons/phone/phone_add.js +0 -15
- package/dist/src/icons/phone/phone_calling.js +0 -15
- package/dist/src/icons/phone/phone_check.js +0 -15
- package/dist/src/icons/phone/phone_close.js +0 -15
- package/dist/src/icons/phone/phone_decline.js +0 -15
- package/dist/src/icons/phone/phone_forwarded.js +0 -15
- package/dist/src/icons/phone/phone_hash.js +0 -15
- package/dist/src/icons/phone/phone_incoming.js +0 -15
- package/dist/src/icons/phone/phone_outgoing.js +0 -15
- package/dist/src/icons/phone/phone_pause.js +0 -15
- package/dist/src/icons/phone/phone_slash.js +0 -15
- package/dist/src/icons/phone/voicemail.js +0 -15
- package/dist/src/icons/security/key.js +0 -15
- package/dist/src/icons/security/key_slash.js +0 -15
- package/dist/src/icons/security/lock.js +0 -15
- package/dist/src/icons/security/lock_circle.js +0 -15
- package/dist/src/icons/security/lock_open.js +0 -15
- package/dist/src/icons/security/lock_slash.js +0 -15
- package/dist/src/icons/security/shield.js +0 -15
- package/dist/src/icons/security/shield_checkmark.js +0 -15
- package/dist/src/icons/security/shield_lock.js +0 -15
- package/dist/src/icons/security/shield_slash.js +0 -15
- package/dist/src/icons/security/verified.js +0 -15
- package/dist/src/icons/shopping/basket.js +0 -15
- package/dist/src/icons/shopping/cart.js +0 -15
- package/dist/src/icons/shopping/cart_filled.js +0 -15
- package/dist/src/icons/shopping/coupon.js +0 -15
- package/dist/src/icons/shopping/coupon_cut.js +0 -15
- package/dist/src/icons/shopping/delivery.js +0 -15
- package/dist/src/icons/shopping/discount.js +0 -15
- package/dist/src/icons/shopping/gift.js +0 -15
- package/dist/src/icons/shopping/gift_bag.js +0 -15
- package/dist/src/icons/shopping/inventory.js +0 -15
- package/dist/src/icons/shopping/point_of_sale.js +0 -15
- package/dist/src/icons/shopping/shirt.js +0 -15
- package/dist/src/icons/shopping/tag.js +0 -15
- package/dist/src/icons/shopping/tag_diagonal.js +0 -15
- package/dist/src/icons/shopping/tote.js +0 -15
- package/dist/src/icons/special/upload_audio.js +0 -20
- package/dist/src/icons/special/upload_file.js +0 -15
- package/dist/src/icons/special/upload_image.js +0 -17
- package/dist/src/icons/special/upload_video.js +0 -18
- package/dist/src/icons/symbols/at.js +0 -15
- package/dist/src/icons/symbols/cc.js +0 -15
- package/dist/src/icons/symbols/cmd.js +0 -15
- package/dist/src/icons/symbols/facebook.js +0 -15
- package/dist/src/icons/symbols/google.js +0 -18
- package/dist/src/icons/symbols/hash.js +0 -15
- package/dist/src/icons/symbols/instagram.js +0 -27
- package/dist/src/icons/symbols/messenger.js +0 -21
- package/dist/src/icons/symbols/twitter.js +0 -15
- package/dist/src/icons/technology/battery.js +0 -15
- package/dist/src/icons/technology/battery_100.js +0 -15
- package/dist/src/icons/technology/battery_20.js +0 -15
- package/dist/src/icons/technology/battery_40.js +0 -15
- package/dist/src/icons/technology/battery_60.js +0 -15
- package/dist/src/icons/technology/battery_80.js +0 -15
- package/dist/src/icons/technology/battery_charging.js +0 -15
- package/dist/src/icons/technology/battery_slash.js +0 -15
- package/dist/src/icons/technology/devices.js +0 -15
- package/dist/src/icons/technology/floppy_disk.js +0 -15
- package/dist/src/icons/technology/iphone.js +0 -15
- package/dist/src/icons/technology/laptop.js +0 -15
- package/dist/src/icons/technology/mobile.js +0 -15
- package/dist/src/icons/technology/monitor.js +0 -15
- package/dist/src/icons/technology/server.js +0 -15
- package/dist/src/icons/technology/sim_card.js +0 -15
- package/dist/src/icons/technology/usb_stick.js +0 -15
- package/dist/src/icons/text/align_center.js +0 -15
- package/dist/src/icons/text/align_justified.js +0 -15
- package/dist/src/icons/text/align_left.js +0 -15
- package/dist/src/icons/text/align_right.js +0 -15
- package/dist/src/icons/text/code_block.js +0 -15
- package/dist/src/icons/text/divider.js +0 -15
- package/dist/src/icons/text/footnote.js +0 -17
- package/dist/src/icons/text/indent_decrease.js +0 -15
- package/dist/src/icons/text/indent_increase.js +0 -15
- package/dist/src/icons/text/list_ordered.js +0 -15
- package/dist/src/icons/text/list_unordered.js +0 -15
- package/dist/src/icons/text/quote.js +0 -15
- package/dist/src/icons/text/table.js +0 -15
- package/dist/src/icons/time/alarm.js +0 -15
- package/dist/src/icons/time/alarm_checkmark.js +0 -15
- package/dist/src/icons/time/alarm_minus.js +0 -15
- package/dist/src/icons/time/alarm_plus.js +0 -15
- package/dist/src/icons/time/alarm_slash.js +0 -15
- package/dist/src/icons/time/alarm_snooze.js +0 -15
- package/dist/src/icons/time/calendar.js +0 -15
- package/dist/src/icons/time/calendar_add.js +0 -15
- package/dist/src/icons/time/calendar_checkmark.js +0 -15
- package/dist/src/icons/time/calendar_close.js +0 -15
- package/dist/src/icons/time/calendar_dates.js +0 -15
- package/dist/src/icons/time/calendar_minus.js +0 -15
- package/dist/src/icons/time/calendar_plus.js +0 -15
- package/dist/src/icons/time/calendar_scroll.js +0 -17
- package/dist/src/icons/time/clock.js +0 -15
- package/dist/src/icons/time/clock_history.js +0 -15
- package/dist/src/icons/time/stopwatch.js +0 -15
- package/dist/src/icons/time/timer.js +0 -15
- package/dist/src/icons/time/watch.js +0 -15
- package/dist/src/index.js +0 -115
- package/dist/src/utils/date.js +0 -73
- package/dist/src/utils/function.js +0 -5
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var Image = require('next/image');
|
|
6
|
-
var ReactPlayer = require('react-player');
|
|
7
|
-
var styled = require('styled-components');
|
|
8
|
-
var box = require('../../atoms/box/box.js');
|
|
9
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
10
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
11
|
-
var button = require('../../actions/button/button.js');
|
|
12
|
-
var lock_circle = require('../../../icons/security/lock_circle.js');
|
|
13
|
-
var play_solid = require('../../../icons/audio_video/play_solid.js');
|
|
14
|
-
var playlistItem = require('./playlist-item.js');
|
|
15
|
-
|
|
16
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
|
-
|
|
18
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
|
-
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
20
|
-
var ReactPlayer__default = /*#__PURE__*/_interopDefaultCompat(ReactPlayer);
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* ReactPlayer props reference -> https://www.npmjs.com/package/react-player#props
|
|
24
|
-
* HLS Option props reference -> https://github.com/video-dev/hls.js/blob/master/docs/API.md#fine-tuning
|
|
25
|
-
*/
|
|
26
|
-
const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange, onProgress, orientation, setMediaItem, subtitle, title, trailer, }) => {
|
|
27
|
-
const [showingAll, setShowingAll] = React__default.default.useState(false);
|
|
28
|
-
const [playingTrailer, setPlayingTrailer] = React__default.default.useState(!playable);
|
|
29
|
-
const ref = React__default.default.useRef(null);
|
|
30
|
-
const mediaItem = playingTrailer ? trailer : playlist?.[activeIndex];
|
|
31
|
-
const handleReady = () => {
|
|
32
|
-
if (!playingTrailer) {
|
|
33
|
-
const currTime = ref?.current?.getCurrentTime();
|
|
34
|
-
if (currTime === 0 && mediaItem?.progress !== 0) {
|
|
35
|
-
ref.current.seekTo(mediaItem.progress);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const handleMediaItemChange = (id) => {
|
|
40
|
-
setPlayingTrailer(false);
|
|
41
|
-
setMediaItem(id);
|
|
42
|
-
};
|
|
43
|
-
const toggleShowingAll = () => setShowingAll((prev) => !prev);
|
|
44
|
-
if (!mediaItem)
|
|
45
|
-
return null;
|
|
46
|
-
return (React__default.default.createElement(Wrapper, { "$orientation": orientation },
|
|
47
|
-
React__default.default.createElement(InnerWrapper, { "$orientation": orientation, "$playable": playable || playingTrailer },
|
|
48
|
-
orientation === 'vertical' && (React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4, sx: "margin: 24px;" },
|
|
49
|
-
React__default.default.createElement(heading.H, { as: "h2", "$bold": true, "$color": "white", "$fontSize": 28, "$lineHeight": 36 }, title),
|
|
50
|
-
React__default.default.createElement(paragraph.P, { as: "h3", "$bold": true, "$color": "grey-8" }, subtitle))),
|
|
51
|
-
React__default.default.createElement(ReactPlayer__default.default, { className: "player", config: {
|
|
52
|
-
file: {
|
|
53
|
-
attributes: {
|
|
54
|
-
crossOrigin: 'true',
|
|
55
|
-
},
|
|
56
|
-
forceHLS: true,
|
|
57
|
-
hlsOptions: {
|
|
58
|
-
autoStartLoad: true,
|
|
59
|
-
},
|
|
60
|
-
tracks: mediaItem.subtitles.map((subtitle) => ({
|
|
61
|
-
kind: 'subtitles',
|
|
62
|
-
label: subtitle.label,
|
|
63
|
-
src: subtitle.src,
|
|
64
|
-
srcLang: subtitle.locale,
|
|
65
|
-
})),
|
|
66
|
-
},
|
|
67
|
-
}, controls: true, height: "100%", light: React__default.default.createElement(Image__default.default, { alt: `thumbnail for ${title}`, layout: "fill", priority: true, quality: 100, style: {
|
|
68
|
-
objectFit: 'contain',
|
|
69
|
-
}, src: mediaItem.thumbnail }), progressInterval: 4000, onDisablePIP: () => onPipChange && onPipChange(false), onEnablePIP: () => onPipChange && onPipChange(true), onProgress: onProgress, onReady: handleReady, pip: pip, playIcon: playable || playingTrailer ? (React__default.default.createElement(play_solid.PlaySolid, { color: "white", size: 24, sx: "position: absolute; width: 54px; height: 54px;" })) : (React__default.default.createElement(lock_circle.LockCircle, { color: "white", size: 24, sx: "position: absolute; width: 54px; height: 54px;" })), playing: playable, ref: ref, style: {
|
|
70
|
-
backgroundColor: 'var(--color-grey-0)',
|
|
71
|
-
maxHeight: 720,
|
|
72
|
-
maxWidth: 1280,
|
|
73
|
-
minHeight: 480,
|
|
74
|
-
overflow: 'hidden',
|
|
75
|
-
position: 'relative',
|
|
76
|
-
}, url: mediaItem.src, width: "100%" }),
|
|
77
|
-
orientation === 'horizontal' && (React__default.default.createElement(Side, null,
|
|
78
|
-
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4 },
|
|
79
|
-
React__default.default.createElement(heading.H, { as: "h2", "$bold": true, "$color": "white", "$fontSize": 28, "$lineHeight": 36 }, title),
|
|
80
|
-
React__default.default.createElement(paragraph.P, { as: "h3", "$bold": true, "$color": "grey-8" }, subtitle)),
|
|
81
|
-
!!trailer && (React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 8, sx: `
|
|
82
|
-
margin-bottom: 8x;
|
|
83
|
-
border-bottom: 1px solid var(--color-grey-4);
|
|
84
|
-
padding-bottom: 16px;
|
|
85
|
-
` },
|
|
86
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px 8px 14px;" },
|
|
87
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "Trailer")),
|
|
88
|
-
React__default.default.createElement(playlistItem.PlaylistItem, { onClick: () => setPlayingTrailer(true), playable: true, thumbnail: trailer.thumbnail, title: `${title} Trailer` }))),
|
|
89
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px 8px 14px;" },
|
|
90
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "All lessons")),
|
|
91
|
-
React__default.default.createElement(HorizontalPlaylistWrapper, null, playlist.map((playlistItem$1, index) => (React__default.default.createElement(playlistItem.PlaylistItem, { key: playlistItem$1.id, duration: playlistItem$1.duration, onClick: () => handleMediaItemChange(index), playable: playable, progress: playlistItem$1.progress, shortDescription: playlistItem$1.shortDescription, thumbnail: playlistItem$1.thumbnail, title: playlistItem$1.title })))))),
|
|
92
|
-
orientation === 'vertical' && (React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 24 },
|
|
93
|
-
!!trailer && (React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 8, sx: "margin: 0px 24px;" },
|
|
94
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px 8px 14px;" },
|
|
95
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "Trailer")),
|
|
96
|
-
React__default.default.createElement(playlistItem.PlaylistItem, { onClick: () => setPlayingTrailer(true), playable: true, thumbnail: trailer.thumbnail, title: `${title} Trailer` }))),
|
|
97
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px; margin: 0px 24px; border-bottom: 1px solid var(--color-grey-3);" },
|
|
98
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "All lessons"),
|
|
99
|
-
React__default.default.createElement(button.Button, { onClick: toggleShowingAll, size: "small", sx: "background-color: var(--color-grey-2); border-color: var(--color-grey-8); color: var(--color-grey-8);", type: "text" }, showingAll ? 'Collapse' : 'View all')),
|
|
100
|
-
React__default.default.createElement(VerticalPlaylistWrapper, { "$showingAll": showingAll }, playlist.map((playlistItem$1, index) => (React__default.default.createElement(playlistItem.PlaylistItem, { key: playlistItem$1.id, duration: playlistItem$1.duration, onClick: () => handleMediaItemChange(index), playable: playable, progress: playlistItem$1.progress, shortDescription: playlistItem$1.shortDescription, thumbnail: playlistItem$1.thumbnail, title: playlistItem$1.title })))))))));
|
|
101
|
-
};
|
|
102
|
-
const Wrapper = styled.styled.div `
|
|
103
|
-
display: flex;
|
|
104
|
-
justify-content: center;
|
|
105
|
-
background-color: var(--color-grey-0);
|
|
106
|
-
|
|
107
|
-
img {
|
|
108
|
-
object-fit: cover !important;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
${({ $orientation }) => $orientation === 'vertical' ? 'max-width: 960px; height: max-content;' : ''}
|
|
112
|
-
`;
|
|
113
|
-
const InnerWrapper = styled.styled.div `
|
|
114
|
-
max-width: 2284px;
|
|
115
|
-
flex: 1;
|
|
116
|
-
display: flex;
|
|
117
|
-
justify-content: flex-end;
|
|
118
|
-
|
|
119
|
-
${({ $playable }) => $playable
|
|
120
|
-
? ''
|
|
121
|
-
: `
|
|
122
|
-
.player {
|
|
123
|
-
cursor: initial;
|
|
124
|
-
pointer-events: none;
|
|
125
|
-
user-select: none;
|
|
126
|
-
}`}
|
|
127
|
-
|
|
128
|
-
${({ $orientation }) => $orientation === 'vertical'
|
|
129
|
-
? `
|
|
130
|
-
flex-direction: column;
|
|
131
|
-
gap: 24px;
|
|
132
|
-
justify-content: flex-start;`
|
|
133
|
-
: `
|
|
134
|
-
& > div:first-of-type {
|
|
135
|
-
flex: 5;
|
|
136
|
-
aspect-ratio: 1280 / 720;
|
|
137
|
-
}
|
|
138
|
-
& > div:last-of-type {
|
|
139
|
-
flex: 3;
|
|
140
|
-
}`}
|
|
141
|
-
`;
|
|
142
|
-
const Side = styled.styled.div `
|
|
143
|
-
position: relative;
|
|
144
|
-
box-sizing: border-box;
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: column;
|
|
147
|
-
padding: 24px;
|
|
148
|
-
gap: 24px;
|
|
149
|
-
`;
|
|
150
|
-
const HorizontalPlaylistWrapper = styled.styled.div `
|
|
151
|
-
display: flex;
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
gap: 24px;
|
|
154
|
-
max-height: 548px;
|
|
155
|
-
overflow-y: auto;
|
|
156
|
-
overflow-x: hidden;
|
|
157
|
-
padding-right: 24px;
|
|
158
|
-
|
|
159
|
-
&::-webkit-scrollbar-track {
|
|
160
|
-
box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.15);
|
|
161
|
-
-webkit-box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.15);
|
|
162
|
-
border-radius: 4px;
|
|
163
|
-
background-color: var(--color-grey-2);
|
|
164
|
-
margin: 40px 0px 15px 0px;
|
|
165
|
-
}
|
|
166
|
-
&::-webkit-scrollbar {
|
|
167
|
-
width: 8px;
|
|
168
|
-
border-radius: 4px;
|
|
169
|
-
}
|
|
170
|
-
&::-webkit-scrollbar-thumb {
|
|
171
|
-
border-radius: 4px;
|
|
172
|
-
background-color: var(--color-grey-6);
|
|
173
|
-
opacity: 30%;
|
|
174
|
-
}
|
|
175
|
-
`;
|
|
176
|
-
const VerticalPlaylistWrapper = styled.styled.div `
|
|
177
|
-
display: flex;
|
|
178
|
-
flex-direction: column;
|
|
179
|
-
gap: 24px;
|
|
180
|
-
padding: 0px 12px 48px 24px;
|
|
181
|
-
margin-right: 24px;
|
|
182
|
-
max-height: 350px;
|
|
183
|
-
overflow-y: scroll;
|
|
184
|
-
overflow-x: hidden;
|
|
185
|
-
|
|
186
|
-
&::-webkit-scrollbar-track {
|
|
187
|
-
box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.15);
|
|
188
|
-
-webkit-box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.15);
|
|
189
|
-
border-radius: 4px;
|
|
190
|
-
background-color: var(--color-grey-2);
|
|
191
|
-
margin: 40px 0px 15px 0px;
|
|
192
|
-
}
|
|
193
|
-
&::-webkit-scrollbar {
|
|
194
|
-
width: 8px;
|
|
195
|
-
border-radius: 4px;
|
|
196
|
-
}
|
|
197
|
-
&::-webkit-scrollbar-thumb {
|
|
198
|
-
border-radius: 4px;
|
|
199
|
-
background-color: var(--color-grey-6);
|
|
200
|
-
opacity: 30%;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
${({ $showingAll }) => $showingAll
|
|
204
|
-
? `
|
|
205
|
-
max-height: unset;
|
|
206
|
-
overflow-y: visible;`
|
|
207
|
-
: ''}
|
|
208
|
-
`;
|
|
209
|
-
|
|
210
|
-
exports.VideoPlayer = VideoPlayer;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var Link = require('next/link');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var chevron_left = require('../../../icons/arrow/chevron_left.js');
|
|
9
|
-
var chevron_right = require('../../../icons/arrow/chevron_right.js');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
-
var Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
15
|
-
|
|
16
|
-
const Breadcrumb = ({ children, previous }) => {
|
|
17
|
-
const id = React__default.default.useId();
|
|
18
|
-
const _children = React__default.default.Children.toArray(children);
|
|
19
|
-
if (previous) {
|
|
20
|
-
return (React__default.default.createElement(box.Box, { "$align": "center", "$gap": 8, sx: "& > *:last-child { color: var(--color-grey-3) !important; };" },
|
|
21
|
-
React__default.default.createElement(React__default.default.Fragment, null,
|
|
22
|
-
React__default.default.createElement(chevron_left.ChevronLeft, { color: "grey-3", size: 24 }),
|
|
23
|
-
React__default.default.isValidElement(_children[0]) &&
|
|
24
|
-
React__default.default.cloneElement(_children[0], {
|
|
25
|
-
icon: undefined,
|
|
26
|
-
avatar: undefined,
|
|
27
|
-
}))));
|
|
28
|
-
}
|
|
29
|
-
return (React__default.default.createElement(box.Box, { "$align": "center", "$gap": 8 }, _children.map((child, index) => {
|
|
30
|
-
if (React__default.default.isValidElement(child) &&
|
|
31
|
-
(child.type?.displayName === 'BreadcrumbItem' ||
|
|
32
|
-
child.type?.displayName === 'Breadcrumb.Item')) {
|
|
33
|
-
return (React__default.default.createElement(React__default.default.Fragment, { key: id + index.toString(36) },
|
|
34
|
-
child,
|
|
35
|
-
_children.length - 1 !== index && (React__default.default.createElement(chevron_right.ChevronRight, { color: "grey-3", size: 24 }))));
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
})));
|
|
39
|
-
};
|
|
40
|
-
const BreadcrumbItem = ({ avatar, children, href, icon, iconColor = 'blue', onClick, }) => {
|
|
41
|
-
return (React__default.default.createElement(Item, { href: href || '#', onClick: onClick, "$type": icon ? 'icon' : avatar ? 'avatar' : 'text', "$iconColor": `hue-${iconColor}-1`, scroll: false },
|
|
42
|
-
icon && (React__default.default.createElement(IconWrapper, { "$color": iconColor }, React__default.default.cloneElement(icon, { color: `hue-${iconColor}-1`, size: 24 }))),
|
|
43
|
-
avatar,
|
|
44
|
-
children));
|
|
45
|
-
};
|
|
46
|
-
Breadcrumb.Item = BreadcrumbItem;
|
|
47
|
-
BreadcrumbItem.displayName = 'Breadcrumb.Item';
|
|
48
|
-
const Item = styled.styled(Link__default.default) `
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-flow: row nowrap;
|
|
51
|
-
align-items: center;
|
|
52
|
-
font-family: var(--font-inter);
|
|
53
|
-
color: var(--color-grey-3);
|
|
54
|
-
|
|
55
|
-
${({ as }) => as === 'a'
|
|
56
|
-
? `
|
|
57
|
-
text-decoration: none;
|
|
58
|
-
color: var(--color-primary-blue-2);
|
|
59
|
-
|
|
60
|
-
&:hover {
|
|
61
|
-
position: relative;
|
|
62
|
-
&:after {
|
|
63
|
-
content: '';
|
|
64
|
-
position: absolute;
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: 1px;
|
|
67
|
-
bottom: 0px;
|
|
68
|
-
right: 0px;
|
|
69
|
-
background-color: var(--color-primary-blue-1);
|
|
70
|
-
}
|
|
71
|
-
}`
|
|
72
|
-
: ''}
|
|
73
|
-
|
|
74
|
-
${({ $type, $iconColor }) => $type === 'icon'
|
|
75
|
-
? `
|
|
76
|
-
gap: 32px;
|
|
77
|
-
font-size: 24px;
|
|
78
|
-
font-weight: 700;
|
|
79
|
-
line-height: 36px;
|
|
80
|
-
color: var(--color-${$iconColor});
|
|
81
|
-
|
|
82
|
-
&:hover {
|
|
83
|
-
&:after {
|
|
84
|
-
width: calc(100% - 80px);
|
|
85
|
-
background-color: var(--color-${$iconColor});
|
|
86
|
-
}
|
|
87
|
-
}`
|
|
88
|
-
: $type === 'avatar'
|
|
89
|
-
? `
|
|
90
|
-
padding: 4px;
|
|
91
|
-
gap: 16px;
|
|
92
|
-
font-size: 18px;
|
|
93
|
-
font-weight: 700;
|
|
94
|
-
line-height: 26px;
|
|
95
|
-
color: var(--color-grey-1);
|
|
96
|
-
&:hover {
|
|
97
|
-
&:after {
|
|
98
|
-
background-color: var(--color-primary-blue-2);
|
|
99
|
-
}
|
|
100
|
-
}`
|
|
101
|
-
: `
|
|
102
|
-
padding: 4px 0px;
|
|
103
|
-
font-size: 16px;
|
|
104
|
-
font-weight: 500;
|
|
105
|
-
line-height: 24px;
|
|
106
|
-
`}
|
|
107
|
-
`;
|
|
108
|
-
const IconWrapper = styled.styled.div `
|
|
109
|
-
background-color: ${({ $color }) => `var(--color-hue-${$color}-2)`};
|
|
110
|
-
height: 48px;
|
|
111
|
-
width: 48px;
|
|
112
|
-
display: flex;
|
|
113
|
-
justify-content: center;
|
|
114
|
-
align-items: center;
|
|
115
|
-
box-sizing: border-box;
|
|
116
|
-
border-radius: 8px;
|
|
117
|
-
`;
|
|
118
|
-
|
|
119
|
-
exports.Breadcrumb = Breadcrumb;
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var styled = require('styled-components');
|
|
5
|
-
var Link = require('next/link');
|
|
6
|
-
var button = require('../../actions/button/button.js');
|
|
7
|
-
var drawer = require('../../surfaces/drawer/drawer.js');
|
|
8
|
-
var chevron_down = require('../../../icons/arrow/chevron_down.js');
|
|
9
|
-
var chevron_left = require('../../../icons/arrow/chevron_left.js');
|
|
10
|
-
var chevron_up = require('../../../icons/arrow/chevron_up.js');
|
|
11
|
-
var plus = require('../../../icons/basic/plus.js');
|
|
12
|
-
|
|
13
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
14
|
-
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
|
-
var Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
17
|
-
|
|
18
|
-
const INNER_NAV_CHILD_TYPES = [
|
|
19
|
-
'Header',
|
|
20
|
-
'Item',
|
|
21
|
-
'Dropdown',
|
|
22
|
-
'BackButton',
|
|
23
|
-
'Drawer',
|
|
24
|
-
'Misc',
|
|
25
|
-
];
|
|
26
|
-
/*************************************************************************************************************************
|
|
27
|
-
* Inner Navigation
|
|
28
|
-
*/
|
|
29
|
-
const InnerNav = ({ children }) => {
|
|
30
|
-
const elementsByType = {
|
|
31
|
-
Header: [],
|
|
32
|
-
Item: [],
|
|
33
|
-
Dropdown: [],
|
|
34
|
-
BackButton: [],
|
|
35
|
-
Drawer: [],
|
|
36
|
-
Misc: [],
|
|
37
|
-
};
|
|
38
|
-
const _children = React__default.default.Children.toArray(children);
|
|
39
|
-
for (const child of _children) {
|
|
40
|
-
const isValidChild = React__default.default.isValidElement(child);
|
|
41
|
-
const isInnerNavChild = isValidChild &&
|
|
42
|
-
INNER_NAV_CHILD_TYPES.includes(child?.type?.displayName?.replace('InnerNav.', ''));
|
|
43
|
-
if (isInnerNavChild) {
|
|
44
|
-
const type = child?.type?.displayName.replace('InnerNav.', '');
|
|
45
|
-
elementsByType[type].push(child);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
elementsByType['Misc'].push(child);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return (React__default.default.createElement(NavWrapper, { "aria-label": "side-navigation" },
|
|
52
|
-
React__default.default.createElement("div", null, elementsByType['Header']),
|
|
53
|
-
React__default.default.createElement("div", null, elementsByType['BackButton']),
|
|
54
|
-
React__default.default.createElement("div", null, elementsByType['Drawer']),
|
|
55
|
-
React__default.default.createElement("div", null, elementsByType['Item']),
|
|
56
|
-
React__default.default.createElement("div", null, elementsByType['Dropdown']),
|
|
57
|
-
React__default.default.createElement("div", null, elementsByType['Misc'])));
|
|
58
|
-
};
|
|
59
|
-
const NavWrapper = styled.styled.nav `
|
|
60
|
-
height: 100%;
|
|
61
|
-
width: 365px;
|
|
62
|
-
padding: 24px 12px 24px 16px;
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
background-color: var(--color-blue-10);
|
|
65
|
-
border-right: 1px solid var(--color-grey-9);
|
|
66
|
-
`;
|
|
67
|
-
const InnerNavItem = ({ active, href, icon, label, sx, onClick, }) => {
|
|
68
|
-
return (React__default.default.createElement(Item, { "$active": active, "$sx": sx, href: href || '#', scroll: false, onClick: onClick },
|
|
69
|
-
icon,
|
|
70
|
-
label));
|
|
71
|
-
};
|
|
72
|
-
const Item = styled.styled(Link__default.default) `
|
|
73
|
-
padding: 14px 16px;
|
|
74
|
-
display: flex;
|
|
75
|
-
gap: 16px;
|
|
76
|
-
align-items: center;
|
|
77
|
-
border-radius: 8px;
|
|
78
|
-
font-family: var(--font-inter);
|
|
79
|
-
font-weight: 500;
|
|
80
|
-
font-size: 16px;
|
|
81
|
-
line-height: 24px;
|
|
82
|
-
color: var(--color-blue-2);
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
svg {
|
|
85
|
-
fill: var(--color-blue-2);
|
|
86
|
-
}
|
|
87
|
-
${({ $active }) => $active
|
|
88
|
-
? `
|
|
89
|
-
background-color: var(--color-primary-blue-3);`
|
|
90
|
-
: `
|
|
91
|
-
&:hover {
|
|
92
|
-
background-color: var(--color-primary-blue-4);
|
|
93
|
-
}`}
|
|
94
|
-
|
|
95
|
-
${({ $sx }) => ($sx ? $sx : '')}
|
|
96
|
-
`;
|
|
97
|
-
InnerNav.Item = InnerNavItem;
|
|
98
|
-
InnerNavItem.displayName = 'InnerNav.Item';
|
|
99
|
-
const InnerNavDropdown = ({ children, icon, label, open, sx, onClick, }) => {
|
|
100
|
-
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
101
|
-
React__default.default.createElement(DropdownItem, { "$active": false, "$sx": sx, onClick: onClick },
|
|
102
|
-
icon,
|
|
103
|
-
React__default.default.createElement(DropdownTriggerWrapper, null,
|
|
104
|
-
label,
|
|
105
|
-
open && React__default.default.createElement(chevron_up.ChevronUp, { size: 16 }),
|
|
106
|
-
!open && React__default.default.createElement(chevron_down.ChevronDown, { size: 16 }))),
|
|
107
|
-
open && React__default.default.createElement(DropdownContent, null, children)));
|
|
108
|
-
};
|
|
109
|
-
const DropdownContent = styled.styled.div `
|
|
110
|
-
& > a,
|
|
111
|
-
& > button {
|
|
112
|
-
padding-left: 40px;
|
|
113
|
-
}
|
|
114
|
-
`;
|
|
115
|
-
const DropdownTriggerWrapper = styled.styled.div `
|
|
116
|
-
display: flex;
|
|
117
|
-
justify-content: space-between;
|
|
118
|
-
align-items: center;
|
|
119
|
-
flex: 1;
|
|
120
|
-
`;
|
|
121
|
-
const DropdownItem = styled.styled.a `
|
|
122
|
-
padding: 14px 16px;
|
|
123
|
-
display: flex;
|
|
124
|
-
gap: 16px;
|
|
125
|
-
align-items: center;
|
|
126
|
-
border-radius: 8px;
|
|
127
|
-
font-family: var(--font-inter);
|
|
128
|
-
font-weight: 500;
|
|
129
|
-
font-size: 16px;
|
|
130
|
-
line-height: 24px;
|
|
131
|
-
color: var(--color-blue-2);
|
|
132
|
-
cursor: pointer;
|
|
133
|
-
svg {
|
|
134
|
-
fill: var(--color-blue-2);
|
|
135
|
-
}
|
|
136
|
-
${({ $active }) => $active
|
|
137
|
-
? `
|
|
138
|
-
background-color: var(--color-primary-blue-3);`
|
|
139
|
-
: `
|
|
140
|
-
&:hover {
|
|
141
|
-
background-color: var(--color-primary-blue-4);
|
|
142
|
-
}`}
|
|
143
|
-
|
|
144
|
-
${({ $sx }) => ($sx ? $sx : '')}
|
|
145
|
-
`;
|
|
146
|
-
InnerNav.Dropdown = InnerNavDropdown;
|
|
147
|
-
InnerNavDropdown.displayName = 'InnerNav.Dropdown';
|
|
148
|
-
const InnerNavBackButton = ({ href, label, sx }) => {
|
|
149
|
-
return (React__default.default.createElement(BackButton, { href: href, "$sx": sx, scroll: false },
|
|
150
|
-
React__default.default.createElement("div", null,
|
|
151
|
-
React__default.default.createElement(chevron_left.ChevronLeft, { size: 24 })),
|
|
152
|
-
label));
|
|
153
|
-
};
|
|
154
|
-
const BackButton = styled.styled(Link__default.default) `
|
|
155
|
-
display: flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
gap: 8px;
|
|
158
|
-
font-family: var(--font-inter);
|
|
159
|
-
font-weight: 500;
|
|
160
|
-
font-size: 16px;
|
|
161
|
-
line-height: 24px;
|
|
162
|
-
color: var(--color-grey-3);
|
|
163
|
-
text-decoration: none;
|
|
164
|
-
border-radius: 8px;
|
|
165
|
-
|
|
166
|
-
&:hover {
|
|
167
|
-
background-color: var(--color-primary-blue-4);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
div {
|
|
171
|
-
padding: 12px;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
${({ $sx }) => ($sx ? $sx : '')}
|
|
175
|
-
`;
|
|
176
|
-
InnerNav.BackButton = InnerNavBackButton;
|
|
177
|
-
InnerNavBackButton.displayName = 'InnerNav.BackButton';
|
|
178
|
-
const InnerNavHeader = ({ children }) => {
|
|
179
|
-
return React__default.default.createElement(HeaderWrapper, null, children);
|
|
180
|
-
};
|
|
181
|
-
const HeaderWrapper = styled.styled.div ``;
|
|
182
|
-
InnerNav.Header = InnerNavHeader;
|
|
183
|
-
InnerNavHeader.displayName = 'InnerNav.Header';
|
|
184
|
-
const InnerNavDrawer = ({ children, label, controlledOpen, onOpenChange, }) => {
|
|
185
|
-
return (React__default.default.createElement(drawer.Drawer, { controlledOpen: controlledOpen, onOpenChange: onOpenChange },
|
|
186
|
-
React__default.default.createElement(drawer.Drawer.Trigger, null,
|
|
187
|
-
React__default.default.createElement(button.Button, { icon: React__default.default.createElement(plus.Plus, { color: "white" }), size: "small", sx: "width: 100%; margin-bottom: 24px;", type: "primary", onClick: () => {
|
|
188
|
-
onOpenChange?.();
|
|
189
|
-
} }, label)),
|
|
190
|
-
children));
|
|
191
|
-
};
|
|
192
|
-
InnerNav.Drawer = InnerNavDrawer;
|
|
193
|
-
InnerNavDrawer.displayName = 'InnerNav.Drawer';
|
|
194
|
-
InnerNav.DrawerHeader = drawer.Drawer.Header;
|
|
195
|
-
InnerNav.DrawerContent = drawer.Drawer.Content;
|
|
196
|
-
InnerNav.DrawerFooter = drawer.Drawer.Footer;
|
|
197
|
-
InnerNav.DrawerTrigger = drawer.Drawer.Trigger;
|
|
198
|
-
|
|
199
|
-
exports.InnerNav = InnerNav;
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var Link = require('next/link');
|
|
7
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
-
var Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
13
|
-
|
|
14
|
-
const colorLookup = {
|
|
15
|
-
blue: {
|
|
16
|
-
bg: 'var(--color-hue-blue-2)',
|
|
17
|
-
icon: 'var(--color-hue-blue-1)',
|
|
18
|
-
},
|
|
19
|
-
green: {
|
|
20
|
-
bg: 'var(--color-green-8)',
|
|
21
|
-
icon: 'var(--color-green-2)',
|
|
22
|
-
},
|
|
23
|
-
grey: {
|
|
24
|
-
bg: 'var(--color-grey-9)',
|
|
25
|
-
icon: 'var(--color-grey-7)',
|
|
26
|
-
},
|
|
27
|
-
mint: {
|
|
28
|
-
bg: 'var(--color-hue-mint-2)',
|
|
29
|
-
icon: 'var(--color-hue-mint-1)',
|
|
30
|
-
},
|
|
31
|
-
ocean: {
|
|
32
|
-
bg: 'var(--color-hue-ocean-2)',
|
|
33
|
-
icon: 'var(--color-hue-ocean-1)',
|
|
34
|
-
},
|
|
35
|
-
orange: {
|
|
36
|
-
bg: 'var(--color-hue-orange-2)',
|
|
37
|
-
icon: 'var(--color-hue-orange-1)',
|
|
38
|
-
},
|
|
39
|
-
pink: {
|
|
40
|
-
bg: 'var(--color-hue-pink-2)',
|
|
41
|
-
icon: 'var(--color-hue-pink-1)',
|
|
42
|
-
},
|
|
43
|
-
purple: {
|
|
44
|
-
bg: 'var(--color-hue-purple-2)',
|
|
45
|
-
icon: 'var(--color-hue-purple-1)',
|
|
46
|
-
},
|
|
47
|
-
red: {
|
|
48
|
-
bg: 'var(--color-red-9)',
|
|
49
|
-
icon: 'var(--color-red-3)',
|
|
50
|
-
},
|
|
51
|
-
yellow: {
|
|
52
|
-
bg: 'var(--color-yellow-8)',
|
|
53
|
-
icon: 'var(--color-yellow-3)',
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
const Tabs = ({ activeIndex, items, onChange, size = 'large', sx, }) => {
|
|
57
|
-
const id = React__default.default.useId();
|
|
58
|
-
return (React__default.default.createElement(Wrapper, { "$sx": sx }, items.map((item, index) => (React__default.default.createElement(Item, { active: activeIndex === index, color: item?.color, disabled: item?.disabled, href: item?.href, icon: item?.icon, key: id + index.toString(36), label: item.label, onClick: () => onChange && onChange(index), size: size })))));
|
|
59
|
-
};
|
|
60
|
-
const Wrapper = styled.styled.div `
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-flow: row nowrap;
|
|
63
|
-
align-items: flex-end;
|
|
64
|
-
justify-content: center;
|
|
65
|
-
gap: 16px;
|
|
66
|
-
margin: 0px;
|
|
67
|
-
padding: 0px;
|
|
68
|
-
|
|
69
|
-
a {
|
|
70
|
-
text-decoration: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
${({ $sx }) => ($sx ? $sx : '')}
|
|
74
|
-
`;
|
|
75
|
-
const Item = ({ active, color, disabled, href, icon, label, onClick, size = 'large', }) => {
|
|
76
|
-
const inputColor = disabled ? 'grey' : color ? color : 'blue';
|
|
77
|
-
const iconColor = colorLookup[inputColor].icon;
|
|
78
|
-
const bgColor = colorLookup[inputColor].bg;
|
|
79
|
-
const fontSize = size === 'large' ? 16 : size === 'medium' ? 14 : 12;
|
|
80
|
-
const lineHeight = size === 'large' ? 24 : size === 'medium' ? 20 : 16;
|
|
81
|
-
return (React__default.default.createElement(Element, { onClick: !disabled && onClick ? onClick : undefined, href: href || '#', scroll: false, "$active": active, "$color": iconColor, "$disabled": disabled, "$hasIcon": !!icon, "$size": size },
|
|
82
|
-
icon && React__default.default.createElement(IconWrapper, { "$bg": bgColor }, icon),
|
|
83
|
-
React__default.default.createElement(paragraph.P, { "$fontSize": fontSize, "$lineHeight": lineHeight, "$semiBold": true }, label)));
|
|
84
|
-
};
|
|
85
|
-
const Element = styled.styled(Link__default.default) `
|
|
86
|
-
position: relative;
|
|
87
|
-
display: flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
gap: 8px;
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
user-select: none;
|
|
92
|
-
|
|
93
|
-
${({ $size, $hasIcon }) => $hasIcon
|
|
94
|
-
? 'padding: 16px 12px;'
|
|
95
|
-
: $size === 'small'
|
|
96
|
-
? 'padding: 10px 8px;'
|
|
97
|
-
: $size === 'medium'
|
|
98
|
-
? 'padding: 14px 10px;'
|
|
99
|
-
: 'padding: 22px 12px;'}
|
|
100
|
-
|
|
101
|
-
${({ $hasIcon, $color, $disabled }) => $disabled
|
|
102
|
-
? `
|
|
103
|
-
cursor: initial;
|
|
104
|
-
`
|
|
105
|
-
: $hasIcon
|
|
106
|
-
? `
|
|
107
|
-
&:hover {
|
|
108
|
-
p {
|
|
109
|
-
color: ${$color};
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
div > svg {
|
|
114
|
-
fill: ${$color};
|
|
115
|
-
}`
|
|
116
|
-
: `
|
|
117
|
-
&:hover {
|
|
118
|
-
background-color: var(--color-grey-10);
|
|
119
|
-
&:after {
|
|
120
|
-
position: absolute;
|
|
121
|
-
content: '';
|
|
122
|
-
width: 100%;
|
|
123
|
-
height: 3px;
|
|
124
|
-
bottom: 0px;
|
|
125
|
-
left: 0px;
|
|
126
|
-
background-color: var(--color-primary-blue-3);
|
|
127
|
-
border-top-right-radius: 3px;
|
|
128
|
-
border-top-left-radius: 3px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
&:active {
|
|
132
|
-
background-color: var(--color-grey-9);
|
|
133
|
-
}`}
|
|
134
|
-
|
|
135
|
-
${({ $active, $color, $hasIcon }) => $active
|
|
136
|
-
? `
|
|
137
|
-
&:after {
|
|
138
|
-
position: absolute;
|
|
139
|
-
content: '';
|
|
140
|
-
width: 100%;
|
|
141
|
-
height: 3px;
|
|
142
|
-
bottom: 0px;
|
|
143
|
-
left: 0px;
|
|
144
|
-
background-color: ${$hasIcon ? $color : 'var(--color-primary-blue-2)'} !important;
|
|
145
|
-
border-top-right-radius: 3px;
|
|
146
|
-
border-top-left-radius: 3px;
|
|
147
|
-
}
|
|
148
|
-
`
|
|
149
|
-
: ''}
|
|
150
|
-
`;
|
|
151
|
-
const IconWrapper = styled.styled.div `
|
|
152
|
-
padding: 8px;
|
|
153
|
-
border-radius: 8px;
|
|
154
|
-
background-color: ${({ $bg }) => $bg};
|
|
155
|
-
`;
|
|
156
|
-
Tabs.Item = Item;
|
|
157
|
-
Item.displayName = 'Tabs.Item';
|
|
158
|
-
|
|
159
|
-
exports.Tabs = Tabs;
|