@e280/shiny 0.1.0-16 → 0.1.0-18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e280/shiny",
3
- "version": "0.1.0-16",
3
+ "version": "0.1.0-18",
4
4
  "description": "✨ web ui library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "count": "find s -path '*/_archive' -prune -o -name '*.ts' -exec wc -l {} +"
21
21
  },
22
22
  "peerDependencies": {
23
- "@e280/sly": "^0.3.0-9",
23
+ "@e280/sly": "^0.3.0-10",
24
24
  "lit": "^3.3.2"
25
25
  },
26
26
  "dependencies": {
@@ -13,6 +13,7 @@ export default css`@layer view {
13
13
  flex-direction: column;
14
14
  background: #0003;
15
15
  border-radius: var(--rounded);
16
+ backdrop-filter: blur(0.5em);
16
17
  }
17
18
 
18
19
  header {
@@ -35,8 +36,9 @@ header {
35
36
  code {
36
37
  padding: calc(var(--padding) / 4) var(--padding);
37
38
  color: var(--code);
38
- white-space: pre-wrap;
39
+ white-space: pre;
39
40
  tab-size: 2;
41
+ overflow-x: auto;
40
42
  }
41
43
 
42
44
  }`
@@ -4,19 +4,15 @@ export default css`@layer view {
4
4
 
5
5
  section.showcase {
6
6
  position: relative;
7
-
8
7
  display: flex;
9
8
  flex-direction: column;
10
-
11
9
  padding: 1em;
12
- border-radius: var(--rounded);
13
10
  gap: var(--padding);
14
11
 
15
12
  background: linear-gradient(to right top, #252dd985, #aa6affbd);
16
- backdrop-filter: blur(0.5em);
17
-
18
13
  box-shadow: 0 0 5em #5d1fadaa;
19
14
  border-top: 2px solid #fff4;
15
+ border-radius: var(--rounded);
20
16
 
21
17
  &::before {
22
18
  z-index: 0;
@@ -56,8 +52,8 @@ header {
56
52
 
57
53
  > * {
58
54
  flex: 1 1 0;
55
+ min-width: 0;
59
56
  }
60
-
61
57
  }
62
58
 
63
59
  .codezone {
@@ -7,6 +7,7 @@ import {themeCss} from "../../theme/theme.css.js"
7
7
 
8
8
  export const ShinyButton = shadow((content?: Content, options: {
9
9
  vibe?: "calm" | "lame" | "happy" | "sad" | "angry" | "zesty" | "quirky"
10
+ onClick?: (event: PointerEvent) => void
10
11
  } = {}) => {
11
12
 
12
13
  useName("shiny-button")
@@ -22,7 +23,8 @@ export const ShinyButton = shadow((content?: Content, options: {
22
23
  part=button
23
24
  data-vibe="${options.vibe ?? "calm"}"
24
25
  ?disabled="${attrs.disabled}"
25
- ?hidden="${attrs.hidden}">
26
+ ?hidden="${attrs.hidden}"
27
+ @click="${options.onClick}">
26
28
  <slot>${content}</slot>
27
29
  </button>
28
30
  `
@@ -22,7 +22,7 @@ export const tabsShowcase = () => Showcase("ShinyTabs", [
22
22
  `,
23
23
  }),
24
24
  styleboxCss: css`
25
- [view="shiny-button"] { font-size: 1.5em; }
25
+ [view="shiny-button"] { font-size: 1.2em; }
26
26
  p { margin-top: var(--padding); }
27
27
  `,
28
28
  js: `