@redvars/peacock 3.2.9 → 3.2.10

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/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { A as Accordion, a as Avatar, B as Badge, b as Breadcrumb, c as BreadcrumbItem, C as Chip, d as CircularProgress, e as Container, D as DatePicker, f as Divider, E as Elevation, g as EmptyState, F as Field, h as FocusRing, I as Icon, i as IconButton, j as Image, k as Input, L as LinearProgress, l as Link, N as NumberField, R as Ripple, S as Skeleton, m as Spinner, n as Switch, T as Tag, o as Textarea, p as TimePicker, q as Tooltip } from './image-DK6VQW7N.js';
1
+ export { A as Accordion, a as Avatar, B as Badge, b as Breadcrumb, c as BreadcrumbItem, C as Chip, d as CircularProgress, e as Container, D as DatePicker, f as Divider, E as Elevation, g as EmptyState, F as Field, h as FocusRing, I as Icon, i as IconButton, j as Image, k as Input, L as LinearProgress, l as Link, N as NumberField, R as Ripple, S as Skeleton, m as Spinner, n as Switch, T as Tag, o as Textarea, p as TimePicker, q as Tooltip } from './image-v3BujlY5.js';
2
2
  export { Clock } from './clock.js';
3
- export { B as Button } from './button-2MeDq0Yy.js';
3
+ export { B as Button } from './button-DaL4va7Q.js';
4
4
  export { ButtonGroup } from './button-group.js';
5
5
  export { NumberCounter } from './number-counter.js';
6
6
  export { CodeHighlighter } from './code-highlighter.js';
@@ -1,5 +1,5 @@
1
- import { A as Accordion, j as Image, e as Container, g as EmptyState, m as Spinner, n as Switch, c as BreadcrumbItem, b as Breadcrumb, q as Tooltip, p as TimePicker, D as DatePicker, o as Textarea, N as NumberField, F as Field, k as Input, S as Skeleton, d as CircularProgress, L as LinearProgress, T as Tag, C as Chip, l as Link, R as Ripple, E as Elevation, f as Divider, i as IconButton, B as Badge, a as Avatar, h as FocusRing, I as Icon } from './image-DK6VQW7N.js';
2
- import { s as spread, B as Button } from './button-2MeDq0Yy.js';
1
+ import { A as Accordion, j as Image, e as Container, g as EmptyState, m as Spinner, n as Switch, c as BreadcrumbItem, b as Breadcrumb, q as Tooltip, p as TimePicker, D as DatePicker, o as Textarea, N as NumberField, F as Field, k as Input, S as Skeleton, d as CircularProgress, L as LinearProgress, T as Tag, C as Chip, l as Link, R as Ripple, E as Elevation, f as Divider, i as IconButton, B as Badge, a as Avatar, h as FocusRing, I as Icon } from './image-v3BujlY5.js';
2
+ import { s as spread, B as Button } from './button-DaL4va7Q.js';
3
3
  import { ButtonGroup } from './button-group.js';
4
4
  import { i, _ as __decorate, n, a as i$1, w, b } from './PeacockComponent-CxJc63xj.js';
5
5
  import { r } from './state-B09bP3XH.js';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@redvars/peacock",
3
3
  "description": "The foundation for beautiful user interfaces",
4
4
  "license": "Apache-2.0",
5
- "version": "3.2.9",
5
+ "version": "3.2.10",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
package/readme.md CHANGED
@@ -44,9 +44,9 @@ Visit [https://peacock.redvars.com](https://peacock.redvars.com) to view the doc
44
44
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
45
45
  <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
46
46
 
47
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@redvars/peacock@3.2.8/dist/assets/styles.css"></link>
47
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@redvars/peacock@3.2.9/dist/assets/styles.css"></link>
48
48
  <script type='module'
49
- src='https://cdn.jsdelivr.net/npm/@redvars/peacock@3.2.8/dist/peacock-loader.js'></script>
49
+ src='https://cdn.jsdelivr.net/npm/@redvars/peacock@3.2.9/dist/peacock-loader.js'></script>
50
50
  </head>
51
51
 
52
52
  <base-button>Button</base-button>
@@ -0,0 +1 @@
1
+ @use 'tokens.css';
@@ -64,7 +64,7 @@ slot::slotted(*) {
64
64
  justify-content: center;
65
65
  gap: var(--_button-icon-label-spacing);
66
66
  width: 100%;
67
- z-index: 1;
67
+ z-index: 0;
68
68
 
69
69
  color: var(--_label-text-color);
70
70
  opacity: var(--_label-text-opacity, 1);
@@ -1,49 +1,56 @@
1
1
  :host {
2
- display: inline-block;
3
- }
4
-
5
- .image-wrapper {
6
- position: relative;
7
- display: inline-block;
8
- }
9
-
10
- img {
11
- display: block;
12
- max-width: 100%;
13
- }
14
-
15
- img.clickable {
16
- cursor: zoom-in;
17
- }
18
-
19
- .placeholder {
20
- background: #e0e0e0;
21
- min-width: 100px;
22
- min-height: 100px;
23
- display: block;
24
- }
25
-
26
- /* Preview overlay — rendered in light DOM via portal, but we keep
27
- a host-level overlay as a fallback when shadow DOM is used. */
28
- .preview-overlay {
29
- display: none;
30
- position: fixed;
31
- inset: 0;
32
- z-index: 9999;
33
- background: rgba(0, 0, 0, 0.85);
34
- align-items: center;
35
- justify-content: center;
36
- cursor: zoom-out;
37
- }
38
-
39
- .preview-overlay.open {
40
- display: flex;
41
- }
42
-
43
- .preview-overlay img {
44
- max-width: 90vw;
45
- max-height: 90vh;
46
- object-fit: contain;
47
- box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
48
- border-radius: 4px;
49
- }
2
+ display: block;
3
+ height: 100%;
4
+ width: 100%;
5
+ }
6
+
7
+ .image-wrapper {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ height: 100%;
12
+ width: 100%;
13
+ }
14
+
15
+ img {
16
+ display: block;
17
+ max-height: 100%;
18
+ max-width: 100%;
19
+ }
20
+
21
+
22
+ img.clickable {
23
+ cursor: zoom-in;
24
+ }
25
+
26
+ .placeholder {
27
+ background: #e0e0e0;
28
+ min-width: 100px;
29
+ min-height: 100px;
30
+ display: block;
31
+ }
32
+
33
+ /* Preview overlay — rendered in light DOM via portal, but we keep
34
+ a host-level overlay as a fallback when shadow DOM is used. */
35
+ .preview-overlay {
36
+ display: none;
37
+ position: fixed;
38
+ inset: 0;
39
+ z-index: 9999;
40
+ background: rgba(0, 0, 0, 0.85);
41
+ align-items: center;
42
+ justify-content: center;
43
+ cursor: zoom-out;
44
+ }
45
+
46
+ .preview-overlay.open {
47
+ display: flex;
48
+ }
49
+
50
+ .preview-overlay img {
51
+ max-width: 90vw;
52
+ max-height: 90vh;
53
+ object-fit: contain;
54
+ box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
55
+ border-radius: 4px;
56
+ }