@pathscale/ui 0.0.119 → 0.0.120
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.
|
@@ -44,6 +44,7 @@ export interface ImmersiveLandingProps extends IComponentBaseProps {
|
|
|
44
44
|
showNavigation?: boolean;
|
|
45
45
|
showArrows?: boolean;
|
|
46
46
|
appVersion?: string;
|
|
47
|
+
overlay?: JSX.Element | ((context: ImmersiveLandingContextValue) => JSX.Element);
|
|
47
48
|
children: JSX.Element | ((context: ImmersiveLandingContextValue) => JSX.Element);
|
|
48
49
|
}
|
|
49
50
|
export interface ImmersiveLandingPageProps extends IComponentBaseProps {
|
package/dist/index.js
CHANGED
|
@@ -10940,7 +10940,7 @@ const immersive_landing_ImmersiveLandingNavigation = ImmersiveLandingNavigation;
|
|
|
10940
10940
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
10941
10941
|
"click"
|
|
10942
10942
|
]);
|
|
10943
|
-
var ImmersiveLanding_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="
|
|
10943
|
+
var ImmersiveLanding_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="relative h-full w-full"><div class="relative z-10 h-full w-full">'), ImmersiveLanding_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 flex items-end justify-end p-6"aria-hidden=true><span class="font-mono text-base-content/20 text-[clamp(0.75rem,2vw,1.25rem)] tracking-[0.4em]">v'), ImmersiveLanding_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="pointer-events-none fixed inset-0 z-30">');
|
|
10944
10944
|
const ImmersiveLanding = (props)=>{
|
|
10945
10945
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10946
10946
|
"pages",
|
|
@@ -10952,6 +10952,7 @@ const ImmersiveLanding = (props)=>{
|
|
|
10952
10952
|
"showNavigation",
|
|
10953
10953
|
"showArrows",
|
|
10954
10954
|
"appVersion",
|
|
10955
|
+
"overlay",
|
|
10955
10956
|
"children",
|
|
10956
10957
|
"class",
|
|
10957
10958
|
"className",
|
|
@@ -10983,12 +10984,13 @@ const ImmersiveLanding = (props)=>{
|
|
|
10983
10984
|
const showArrowNav = ()=>false !== local.showArrows;
|
|
10984
10985
|
const classes = ()=>twMerge("fixed inset-0 h-screen w-screen overflow-hidden bg-transparent relative isolate", local.class, local.className);
|
|
10985
10986
|
const renderChildren = ()=>"function" == typeof local.children ? local.children(contextValue) : local.children;
|
|
10987
|
+
const renderOverlay = ()=>"function" == typeof local.overlay ? local.overlay(contextValue) : local.overlay;
|
|
10986
10988
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ImmersiveLandingContext.Provider, {
|
|
10987
10989
|
value: contextValue,
|
|
10988
10990
|
get children () {
|
|
10989
10991
|
return [
|
|
10990
10992
|
(()=>{
|
|
10991
|
-
var _el$ = ImmersiveLanding_tmpl$
|
|
10993
|
+
var _el$ = ImmersiveLanding_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
|
|
10992
10994
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
10993
10995
|
get ["class"] () {
|
|
10994
10996
|
return classes();
|
|
@@ -10998,19 +11000,29 @@ const ImmersiveLanding = (props)=>{
|
|
|
10998
11000
|
}
|
|
10999
11001
|
}, others), false, true);
|
|
11000
11002
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, renderChildren);
|
|
11001
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
11002
|
-
get when () {
|
|
11003
|
-
return local.appVersion;
|
|
11004
|
-
},
|
|
11005
|
-
get children () {
|
|
11006
|
-
var _el$4 = ImmersiveLanding_tmpl$(), _el$5 = _el$4.firstChild;
|
|
11007
|
-
_el$5.firstChild;
|
|
11008
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, ()=>local.appVersion, null);
|
|
11009
|
-
return _el$4;
|
|
11010
|
-
}
|
|
11011
|
-
}), null);
|
|
11012
11003
|
return _el$;
|
|
11013
11004
|
})(),
|
|
11005
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
11006
|
+
get when () {
|
|
11007
|
+
return local.overlay || local.appVersion;
|
|
11008
|
+
},
|
|
11009
|
+
get children () {
|
|
11010
|
+
var _el$4 = ImmersiveLanding_tmpl$3();
|
|
11011
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, renderOverlay, null);
|
|
11012
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
11013
|
+
get when () {
|
|
11014
|
+
return local.appVersion;
|
|
11015
|
+
},
|
|
11016
|
+
get children () {
|
|
11017
|
+
var _el$5 = ImmersiveLanding_tmpl$2(), _el$6 = _el$5.firstChild;
|
|
11018
|
+
_el$6.firstChild;
|
|
11019
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, ()=>local.appVersion, null);
|
|
11020
|
+
return _el$5;
|
|
11021
|
+
}
|
|
11022
|
+
}), null);
|
|
11023
|
+
return _el$4;
|
|
11024
|
+
}
|
|
11025
|
+
}),
|
|
11014
11026
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!showArrowNav())() && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(immersive_landing_ImmersiveLandingArrows, {
|
|
11015
11027
|
get onPrev () {
|
|
11016
11028
|
return navigation.goPrev;
|