@laststranger/lz-test1
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -43,2 +43,3 @@ "use strict"; | ||
return (react_1.default.createElement(styled_1.StyledBar, null, | ||
react_1.default.createElement(styled_1.GlobalStyle, null), | ||
react_1.default.createElement("div", { className: "scrollbar" }), | ||
@@ -45,0 +46,0 @@ react_1.default.createElement("div", { className: "scrollPath" }))); |
@@ -0,1 +1,2 @@ | ||
export declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>; | ||
export declare const StyledBar: import("styled-components").StyledComponent<"div", any, {}, never>; |
@@ -22,4 +22,14 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StyledBar = void 0; | ||
exports.StyledBar = exports.GlobalStyle = void 0; | ||
const styled_components_1 = __importStar(require("styled-components")); | ||
exports.GlobalStyle = (0, styled_components_1.createGlobalStyle) ` | ||
::-webkit-scrollbar { | ||
width: 0; | ||
} | ||
:root { | ||
--start-color: #008aff; | ||
--end-color: #00ffe7; | ||
} | ||
`; | ||
const animate = (0, styled_components_1.keyframes) ` | ||
@@ -34,11 +44,2 @@ 0%,100% { | ||
exports.StyledBar = styled_components_1.default.div ` | ||
::-webkit-scrollbar { | ||
width: 0; | ||
} | ||
:root { | ||
--start-color: #008aff; | ||
--end-color: #00ffe7; | ||
} | ||
.scrollPath { | ||
@@ -45,0 +46,0 @@ position: fixed; |
import React, { useLayoutEffect, useRef } from "react"; | ||
import { StyledBar } from "./styled"; | ||
import { GlobalStyle, StyledBar } from "./styled"; | ||
const FancyBar = () => { | ||
@@ -22,2 +22,3 @@ const idRef = useRef(); | ||
return (React.createElement(StyledBar, null, | ||
React.createElement(GlobalStyle, null), | ||
React.createElement("div", { className: "scrollbar" }), | ||
@@ -24,0 +25,0 @@ React.createElement("div", { className: "scrollPath" }))); |
@@ -0,1 +1,2 @@ | ||
export declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>; | ||
export declare const StyledBar: import("styled-components").StyledComponent<"div", any, {}, never>; |
@@ -1,2 +0,12 @@ | ||
import styled, { keyframes } from "styled-components"; | ||
import styled, { createGlobalStyle, keyframes } from "styled-components"; | ||
export const GlobalStyle = createGlobalStyle ` | ||
::-webkit-scrollbar { | ||
width: 0; | ||
} | ||
:root { | ||
--start-color: #008aff; | ||
--end-color: #00ffe7; | ||
} | ||
`; | ||
const animate = keyframes ` | ||
@@ -11,11 +21,2 @@ 0%,100% { | ||
export const StyledBar = styled.div ` | ||
::-webkit-scrollbar { | ||
width: 0; | ||
} | ||
:root { | ||
--start-color: #008aff; | ||
--end-color: #00ffe7; | ||
} | ||
.scrollPath { | ||
@@ -22,0 +23,0 @@ position: fixed; |
{ | ||
"name": "@laststranger/lz-test1", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "test action one, here we go", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22169
401