@pathscale/ui 0.0.116 → 0.0.117
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.
|
@@ -32,6 +32,7 @@ export interface ImmersiveLandingContextValue {
|
|
|
32
32
|
direction: Accessor<"next" | "prev" | null>;
|
|
33
33
|
transitionDuration: number;
|
|
34
34
|
pages: readonly string[];
|
|
35
|
+
appVersion?: string;
|
|
35
36
|
}
|
|
36
37
|
export interface ImmersiveLandingProps extends IComponentBaseProps {
|
|
37
38
|
pages: readonly string[];
|
|
@@ -42,6 +43,7 @@ export interface ImmersiveLandingProps extends IComponentBaseProps {
|
|
|
42
43
|
enableScrollNavigation?: boolean;
|
|
43
44
|
showNavigation?: boolean;
|
|
44
45
|
showArrows?: boolean;
|
|
46
|
+
appVersion?: string;
|
|
45
47
|
children: JSX.Element | ((context: ImmersiveLandingContextValue) => JSX.Element);
|
|
46
48
|
}
|
|
47
49
|
export interface ImmersiveLandingPageProps extends IComponentBaseProps {
|
package/dist/index.js
CHANGED
|
@@ -9397,7 +9397,7 @@ const DropdownDetails = Object.assign(Details, {
|
|
|
9397
9397
|
Toggle: DropdownToggle_Summary
|
|
9398
9398
|
});
|
|
9399
9399
|
var DropdownItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li role=menuitem>"), DropdownItem_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a>"), DropdownItem_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button>");
|
|
9400
|
-
const
|
|
9400
|
+
const DropdownItem_DropdownItem = (props)=>{
|
|
9401
9401
|
const dropdownContext = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.useContext)(DropdownContext);
|
|
9402
9402
|
const defaultProps = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.mergeProps)({
|
|
9403
9403
|
closeOnClick: true
|
|
@@ -9439,7 +9439,7 @@ const DropdownItem = (props)=>{
|
|
|
9439
9439
|
return _el$;
|
|
9440
9440
|
})();
|
|
9441
9441
|
};
|
|
9442
|
-
const
|
|
9442
|
+
const DropdownItem = DropdownItem_DropdownItem;
|
|
9443
9443
|
var DropdownMenu_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<ul>");
|
|
9444
9444
|
const DropdownMenu = (props)=>{
|
|
9445
9445
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -9641,7 +9641,7 @@ const dropdown_Dropdown = Object.assign(Dropdown, {
|
|
|
9641
9641
|
Details: DropdownDetails,
|
|
9642
9642
|
Toggle: dropdown_DropdownToggle,
|
|
9643
9643
|
Menu: dropdown_DropdownMenu,
|
|
9644
|
-
Item:
|
|
9644
|
+
Item: DropdownItem
|
|
9645
9645
|
});
|
|
9646
9646
|
const dropdown = dropdown_Dropdown;
|
|
9647
9647
|
var FileInput_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>");
|
|
@@ -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><div class="relative z-10 h-full w-full">');
|
|
10943
|
+
var ImmersiveLanding_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="pointer-events-none absolute inset-0 z-0 flex items-end justify-end p-6"aria-hidden=true><span class="font-mono text-base-content/10 text-[clamp(0.75rem,2vw,1.25rem)] tracking-[0.4em]">v'), ImmersiveLanding_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="relative z-10 h-full w-full">');
|
|
10944
10944
|
const ImmersiveLanding = (props)=>{
|
|
10945
10945
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10946
10946
|
"pages",
|
|
@@ -10951,6 +10951,7 @@ const ImmersiveLanding = (props)=>{
|
|
|
10951
10951
|
"enableScrollNavigation",
|
|
10952
10952
|
"showNavigation",
|
|
10953
10953
|
"showArrows",
|
|
10954
|
+
"appVersion",
|
|
10954
10955
|
"class",
|
|
10955
10956
|
"className",
|
|
10956
10957
|
"style"
|
|
@@ -10974,18 +10975,19 @@ const ImmersiveLanding = (props)=>{
|
|
|
10974
10975
|
isLastPage: navigation.isLastPage,
|
|
10975
10976
|
direction: navigation.direction,
|
|
10976
10977
|
transitionDuration: navigation.transitionDuration,
|
|
10977
|
-
pages: local.pages
|
|
10978
|
+
pages: local.pages,
|
|
10979
|
+
appVersion: local.appVersion
|
|
10978
10980
|
};
|
|
10979
10981
|
const showNav = ()=>false !== local.showNavigation;
|
|
10980
10982
|
const showArrowNav = ()=>false !== local.showArrows;
|
|
10981
|
-
const classes = ()=>twMerge("fixed inset-0 overflow-hidden bg-transparent", local.class, local.className);
|
|
10983
|
+
const classes = ()=>twMerge("fixed inset-0 overflow-hidden bg-transparent relative", local.class, local.className);
|
|
10982
10984
|
const renderChildren = ()=>"function" == typeof props.children ? props.children(contextValue) : props.children;
|
|
10983
10985
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ImmersiveLandingContext.Provider, {
|
|
10984
10986
|
value: contextValue,
|
|
10985
10987
|
get children () {
|
|
10986
10988
|
return [
|
|
10987
10989
|
(()=>{
|
|
10988
|
-
var _el$ = ImmersiveLanding_tmpl$(), _el$
|
|
10990
|
+
var _el$ = ImmersiveLanding_tmpl$2(), _el$5 = _el$.firstChild;
|
|
10989
10991
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
10990
10992
|
get ["class"] () {
|
|
10991
10993
|
return classes();
|
|
@@ -10994,7 +10996,18 @@ const ImmersiveLanding = (props)=>{
|
|
|
10994
10996
|
return local.style;
|
|
10995
10997
|
}
|
|
10996
10998
|
}, others), false, true);
|
|
10997
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el
|
|
10999
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
11000
|
+
get when () {
|
|
11001
|
+
return local.appVersion;
|
|
11002
|
+
},
|
|
11003
|
+
get children () {
|
|
11004
|
+
var _el$2 = ImmersiveLanding_tmpl$(), _el$3 = _el$2.firstChild;
|
|
11005
|
+
_el$3.firstChild;
|
|
11006
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.appVersion, null);
|
|
11007
|
+
return _el$2;
|
|
11008
|
+
}
|
|
11009
|
+
}), _el$5);
|
|
11010
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, renderChildren);
|
|
10998
11011
|
return _el$;
|
|
10999
11012
|
})(),
|
|
11000
11013
|
(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, {
|