@@ -3,7 +3,8 @@ import {css, html} from "lit"
33import { dom , view } from "@e280/sly"
44import { Showcase } from "./views/showcase/view.js"
55import { makeLipsumDispenser } from "./utils/lipsum.js"
6- import { buttonShowcase } from "../components/button/showcase.js"
6+ import { copyShowcase } from "../components/copy/showcase.js"
7+ import { buttonShowcase } from "../components/button/showcase.js"
78
89const dispenser = makeLipsumDispenser ( )
910const lipsum = ( ) => dispenser . takeFirst ( )
@@ -38,84 +39,8 @@ dom.register({ShinyDemo: view.component(use => {
3839
3940 const demonstrations = [
4041 buttonShowcase ,
42+ copyShowcase ,
4143
42- // Demonstration({
43- // name: "button",
44- // explain: html`
45- // <p>clicky-clacky pressy button.</p>
46- // `,
47- // snippets: [
48- // [labels.html, `
49- // <shiny-button>hello</shiny-button>
50- // `],
51- // [labels.view, `
52- // ShinyButton
53- // .props()
54- // .children("hello")
55- // .render()
56- // `],
57- // [labels.css, `
58- // shiny-button {
59- // font-size: 1em;
60- // --happy: #0fa;
61- // --angry: #f50;
62- // --lame: #8888;
63- // --inactive-opacity: 0.5;
64- // }
65- // `],
66- // ],
67- // content: [
68- // views.ShinyButton.props()
69- // .children("button")
70- // .render(),
71- // views.ShinyButton.props()
72- // .attr("gradient", true)
73- // .children("gradient")
74- // .render(),
75- // views.ShinyButton.props()
76- // .attr("angry", true)
77- // .attr("gradient", true)
78- // .children("angry")
79- // .render(),
80- // views.ShinyButton.props()
81- // .attr("happy", true)
82- // .attr("gradient", true)
83- // .children("happy")
84- // .render(),
85- // views.ShinyButton.props()
86- // .attr("zesty", true)
87- // .attr("gradient", true)
88- // .children("zesty")
89- // .render(),
90- // views.ShinyButton.props()
91- // .attr("sad", true)
92- // .attr("gradient", true)
93- // .children("sad")
94- // .render(),
95- // views.ShinyButton.props()
96- // .attr("quirky", true)
97- // .attr("gradient", true)
98- // .children("quirky")
99- // .render(),
100- // views.ShinyButton.props()
101- // .attr("plain", true)
102- // .children("plain")
103- // .render(),
104- // ],
105- // style: css`
106- // .content {
107- // flex-direction: row;
108- // flex-wrap: wrap;
109- // align-content: center;
110- // gap: 0.5em;
111- //
112- // sly-view {
113- // font-size: 1.2em;
114- // }
115- // }
116- // `,
117- // }),
118- //
11944 // Demonstration({
12045 // name: "tabs",
12146 // explain: html`
@@ -176,36 +101,6 @@ dom.register({ShinyDemo: view.component(use => {
176101 // }),
177102 //
178103 // Demonstration({
179- // name: "copy",
180- // explain: html`
181- // <p>click-to-copy text button.</p>
182- // `,
183- // snippets: [
184- // [labels.html, `
185- // <shiny-copy text="hello world"></shiny-copy>
186- // `],
187- // [labels.view, `
188- // ShinyCopy("hello world")
189- // `],
190- // [labels.css, `
191- // shiny-copy {
192- // font-size: 1em;
193- // --happy: #0fa;
194- // --angry: #f50;
195- // --lame: #8888;
196- // --inactive-opacity: 0.5;
197- // }
198- // `],
199- // ],
200- // content: views.ShinyCopy("hello world"),
201- // style: css`
202- // .content sly-view {
203- // font-size: 4em;
204- // }
205- // `,
206- // }),
207- //
208- // Demonstration({
209104 // name: "drawer",
210105 // explain: html`
211106 // <p>slide-out panel. button optional.</p>
0 commit comments