@amedia/brick-mcp 0.1.3 ā 0.1.4
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/README.md +50 -1
- package/data/components/brick-mcp.md +259 -0
- package/data/components/brick-pill.md +362 -0
- package/data/components/brick-player.md +331 -0
- package/data/components/brick-published.md +219 -0
- package/data/components/brick-share.md +335 -0
- package/data/components/brick-stepper.md +319 -0
- package/data/components/brick-tab.md +241 -0
- package/data/components/brick-tabs.md +420 -0
- package/data/components/brick-tag.md +335 -0
- package/data/components/brick-teaser-player.md +248 -0
- package/data/components/brick-teaser-reels.md +190 -0
- package/data/components/brick-teaser.md +262 -0
- package/data/components/brick-template.md +226 -0
- package/data/components/brick-textarea.md +191 -0
- package/data/components/brick-themes.md +104 -0
- package/data/components/brick-toast.md +271 -0
- package/data/components/brick-toggle.md +268 -0
- package/data/components/brick-tokens.md +287 -0
- package/data/components/brick-tooltip.md +249 -0
- package/data/components-metadata.json +34 -34
- package/data/tokens.json +0 -7
- package/dist/data/components/brick-mcp.md +259 -0
- package/dist/data/components/brick-pill.md +362 -0
- package/dist/data/components/brick-player.md +331 -0
- package/dist/data/components/brick-published.md +219 -0
- package/dist/data/components/brick-share.md +335 -0
- package/dist/data/components/brick-stepper.md +319 -0
- package/dist/data/components/brick-tab.md +241 -0
- package/dist/data/components/brick-tabs.md +420 -0
- package/dist/data/components/brick-tag.md +335 -0
- package/dist/data/components/brick-teaser-player.md +248 -0
- package/dist/data/components/brick-teaser-reels.md +190 -0
- package/dist/data/components/brick-teaser.md +262 -0
- package/dist/data/components/brick-template.md +226 -0
- package/dist/data/components/brick-textarea.md +191 -0
- package/dist/data/components/brick-themes.md +104 -0
- package/dist/data/components/brick-toast.md +271 -0
- package/dist/data/components/brick-toggle.md +268 -0
- package/dist/data/components/brick-tokens.md +287 -0
- package/dist/data/components/brick-tooltip.md +249 -0
- package/dist/data/components-metadata.json +34 -34
- package/dist/data/tokens.json +0 -7
- package/package.json +37 -37
- package/data/components/brick-mcp.json +0 -6
- package/data/components/brick-pill.json +0 -6
- package/data/components/brick-player.json +0 -7
- package/data/components/brick-published.json +0 -7
- package/data/components/brick-share.json +0 -7
- package/data/components/brick-stepper.json +0 -7
- package/data/components/brick-tab.json +0 -7
- package/data/components/brick-tabs.json +0 -9
- package/data/components/brick-tag.json +0 -7
- package/data/components/brick-teaser-player.json +0 -9
- package/data/components/brick-teaser-reels.json +0 -9
- package/data/components/brick-teaser.json +0 -9
- package/data/components/brick-template.json +0 -9
- package/data/components/brick-textarea.json +0 -7
- package/data/components/brick-themes.json +0 -6
- package/data/components/brick-toast.json +0 -9
- package/data/components/brick-toggle.json +0 -7
- package/data/components/brick-tokens.json +0 -8
- package/data/components/brick-tooltip.json +0 -7
- package/dist/data/components/brick-mcp.json +0 -6
- package/dist/data/components/brick-pill.json +0 -6
- package/dist/data/components/brick-player.json +0 -7
- package/dist/data/components/brick-published.json +0 -7
- package/dist/data/components/brick-share.json +0 -7
- package/dist/data/components/brick-stepper.json +0 -7
- package/dist/data/components/brick-tab.json +0 -7
- package/dist/data/components/brick-tabs.json +0 -9
- package/dist/data/components/brick-tag.json +0 -7
- package/dist/data/components/brick-teaser-player.json +0 -9
- package/dist/data/components/brick-teaser-reels.json +0 -9
- package/dist/data/components/brick-teaser.json +0 -9
- package/dist/data/components/brick-template.json +0 -9
- package/dist/data/components/brick-textarea.json +0 -7
- package/dist/data/components/brick-themes.json +0 -6
- package/dist/data/components/brick-toast.json +0 -9
- package/dist/data/components/brick-toggle.json +0 -7
- package/dist/data/components/brick-tokens.json +0 -8
- package/dist/data/components/brick-tooltip.json +0 -7
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brick-tooltip
|
|
3
|
+
version: 1.0.17
|
|
4
|
+
selector: brick-tooltip-v1
|
|
5
|
+
category: Feedback
|
|
6
|
+
tags: [tooltip, hint, help, popover, overlay, positioning]
|
|
7
|
+
use_cases: [help-text, additional-info, icon-explanations, contextual-help]
|
|
8
|
+
related: [brick-tokens, brick-template]
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Brick Tooltip
|
|
12
|
+
|
|
13
|
+
A contextual help component that displays additional information when hovering over or focusing on an anchor element, with configurable positioning and optional tail indicator.
|
|
14
|
+
|
|
15
|
+
## Key Capabilities
|
|
16
|
+
|
|
17
|
+
- Four positioning options (above, below, left, right)
|
|
18
|
+
- Anchored to any element via ID reference
|
|
19
|
+
- Optional visual tail/arrow
|
|
20
|
+
- Hover and focus trigger support
|
|
21
|
+
- Automatic positioning within viewport
|
|
22
|
+
- Accessibility support with proper ARIA
|
|
23
|
+
- Server-side rendering support
|
|
24
|
+
|
|
25
|
+
## Props/Attributes
|
|
26
|
+
|
|
27
|
+
| Attribute | Type | Default | Required | Description |
|
|
28
|
+
| ---------------- | --------------------------------------- | -------- | -------- | ---------------------------------------------- |
|
|
29
|
+
| `data-anchor` | string | - | yes | ID of the element to anchor the tooltip to |
|
|
30
|
+
| `data-text` | string | - | yes | Tooltip text content |
|
|
31
|
+
| `data-position` | `"above" \| "below" \| "left" \| "right"` | `"above"` | no | Position relative to anchor element |
|
|
32
|
+
| `data-tail` | string | `"false"` | no | Set to "true" to show visual tail/arrow |
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
### Basic Tooltip (Above)
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<button id="help-btn">Help</button>
|
|
40
|
+
<brick-tooltip-v1
|
|
41
|
+
data-anchor="help-btn"
|
|
42
|
+
data-text="Click for more information"
|
|
43
|
+
>
|
|
44
|
+
</brick-tooltip-v1>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Tooltip Below
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<span id="username">John Doe</span>
|
|
51
|
+
<brick-tooltip-v1
|
|
52
|
+
data-anchor="username"
|
|
53
|
+
data-text="Premium member since 2020"
|
|
54
|
+
data-position="below"
|
|
55
|
+
>
|
|
56
|
+
</brick-tooltip-v1>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Tooltip with Tail
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<button id="save-btn">Save</button>
|
|
63
|
+
<brick-tooltip-v1
|
|
64
|
+
data-anchor="save-btn"
|
|
65
|
+
data-text="Save your changes"
|
|
66
|
+
data-position="above"
|
|
67
|
+
data-tail="true"
|
|
68
|
+
>
|
|
69
|
+
</brick-tooltip-v1>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Left Positioned
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<span id="info-icon">ā¹ļø</span>
|
|
76
|
+
<brick-tooltip-v1
|
|
77
|
+
data-anchor="info-icon"
|
|
78
|
+
data-text="Additional information about this feature"
|
|
79
|
+
data-position="left"
|
|
80
|
+
data-tail="true"
|
|
81
|
+
>
|
|
82
|
+
</brick-tooltip-v1>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Right Positioned
|
|
86
|
+
|
|
87
|
+
```html
|
|
88
|
+
<button id="delete-btn">Delete</button>
|
|
89
|
+
<brick-tooltip-v1
|
|
90
|
+
data-anchor="delete-btn"
|
|
91
|
+
data-text="This action cannot be undone"
|
|
92
|
+
data-position="right"
|
|
93
|
+
>
|
|
94
|
+
</brick-tooltip-v1>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Programmatic Usage
|
|
98
|
+
|
|
99
|
+
```javascript
|
|
100
|
+
// Create tooltip dynamically
|
|
101
|
+
const tooltip = document.createElement('brick-tooltip-v1');
|
|
102
|
+
tooltip.dataAnchor = 'my-button';
|
|
103
|
+
tooltip.dataText = 'Helpful information';
|
|
104
|
+
tooltip.dataPosition = 'below';
|
|
105
|
+
tooltip.dataTail = 'true';
|
|
106
|
+
document.body.appendChild(tooltip);
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Server-Side Rendering
|
|
110
|
+
|
|
111
|
+
```javascript
|
|
112
|
+
import { renderBrickTooltip } from '@amedia/brick-tooltip/template';
|
|
113
|
+
|
|
114
|
+
const html = renderBrickTooltip({
|
|
115
|
+
dataAnchor: 'help-icon',
|
|
116
|
+
dataText: 'This is a helpful tooltip',
|
|
117
|
+
dataPosition: 'above',
|
|
118
|
+
dataTail: 'true',
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Positioning
|
|
123
|
+
|
|
124
|
+
The tooltip automatically positions itself relative to the anchor element:
|
|
125
|
+
|
|
126
|
+
- **above**: Tooltip appears above the anchor
|
|
127
|
+
- **below**: Tooltip appears below the anchor
|
|
128
|
+
- **left**: Tooltip appears to the left of the anchor
|
|
129
|
+
- **right**: Tooltip appears to the right of the anchor
|
|
130
|
+
|
|
131
|
+
If there isn't enough space in the specified position, the tooltip may adjust to stay within the viewport.
|
|
132
|
+
|
|
133
|
+
## Accessibility
|
|
134
|
+
|
|
135
|
+
- Tooltip is announced to screen readers
|
|
136
|
+
- Anchor element receives `aria-describedby` pointing to tooltip
|
|
137
|
+
- Tooltip appears on both hover and keyboard focus
|
|
138
|
+
- ESC key dismisses tooltip
|
|
139
|
+
- Proper ARIA roles and attributes
|
|
140
|
+
|
|
141
|
+
## Common Patterns
|
|
142
|
+
|
|
143
|
+
### Icon with Tooltip
|
|
144
|
+
|
|
145
|
+
```html
|
|
146
|
+
<brick-icon id="help-icon" data-icon-id="help-circle"></brick-icon>
|
|
147
|
+
<brick-tooltip-v1
|
|
148
|
+
data-anchor="help-icon"
|
|
149
|
+
data-text="Click to learn more about this feature"
|
|
150
|
+
data-position="right"
|
|
151
|
+
data-tail="true"
|
|
152
|
+
>
|
|
153
|
+
</brick-tooltip-v1>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Form Field Help
|
|
157
|
+
|
|
158
|
+
```html
|
|
159
|
+
<label for="email">Email Address
|
|
160
|
+
<span id="email-help">?</span>
|
|
161
|
+
</label>
|
|
162
|
+
<input type="email" id="email" aria-describedby="tooltip-email">
|
|
163
|
+
|
|
164
|
+
<brick-tooltip-v1
|
|
165
|
+
id="tooltip-email"
|
|
166
|
+
data-anchor="email-help"
|
|
167
|
+
data-text="We'll never share your email address"
|
|
168
|
+
data-position="right"
|
|
169
|
+
>
|
|
170
|
+
</brick-tooltip-v1>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Button Explanation
|
|
174
|
+
|
|
175
|
+
```html
|
|
176
|
+
<button id="advanced-btn" aria-describedby="advanced-tooltip">
|
|
177
|
+
Advanced Settings
|
|
178
|
+
</button>
|
|
179
|
+
<brick-tooltip-v1
|
|
180
|
+
id="advanced-tooltip"
|
|
181
|
+
data-anchor="advanced-btn"
|
|
182
|
+
data-text="Configure advanced options for power users"
|
|
183
|
+
data-position="below"
|
|
184
|
+
data-tail="true"
|
|
185
|
+
>
|
|
186
|
+
</brick-tooltip-v1>
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Framework Integration
|
|
190
|
+
|
|
191
|
+
### Svelte
|
|
192
|
+
|
|
193
|
+
```svelte
|
|
194
|
+
<script>
|
|
195
|
+
let anchorId = 'my-element';
|
|
196
|
+
</script>
|
|
197
|
+
|
|
198
|
+
<button id={anchorId}>Hover me</button>
|
|
199
|
+
<brick-tooltip-v1
|
|
200
|
+
data-anchor={anchorId}
|
|
201
|
+
data-text="Helpful information"
|
|
202
|
+
data-position="above"
|
|
203
|
+
data-tail="true"
|
|
204
|
+
/>
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### React
|
|
208
|
+
|
|
209
|
+
```jsx
|
|
210
|
+
function ComponentWithTooltip() {
|
|
211
|
+
const id = 'help-button';
|
|
212
|
+
|
|
213
|
+
return (
|
|
214
|
+
<>
|
|
215
|
+
<button id={id}>Help</button>
|
|
216
|
+
<brick-tooltip-v1
|
|
217
|
+
data-anchor={id}
|
|
218
|
+
data-text="Get help and support"
|
|
219
|
+
data-position="below"
|
|
220
|
+
/>
|
|
221
|
+
</>
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## Technical Details
|
|
227
|
+
|
|
228
|
+
- **Custom Element**: `brick-tooltip-v1`
|
|
229
|
+
- **Base Class**: BrickElement
|
|
230
|
+
- **Dependencies**:
|
|
231
|
+
- @amedia/brick-template (base class)
|
|
232
|
+
- @amedia/brick-tokens (design tokens)
|
|
233
|
+
- **Renders as**: Positioned overlay element
|
|
234
|
+
- **SSR Compatible**: Yes, with template function
|
|
235
|
+
- **Positioning**: Absolute positioning relative to anchor
|
|
236
|
+
|
|
237
|
+
## Important Notes
|
|
238
|
+
|
|
239
|
+
- The anchor element must have a unique ID
|
|
240
|
+
- The anchor element must exist in the DOM when tooltip is created
|
|
241
|
+
- Tooltip visibility is controlled by CSS (hover/focus on anchor)
|
|
242
|
+
- The tail/arrow is purely visual and doesn't affect positioning logic
|
|
243
|
+
- Long tooltip text may wrap or require position adjustment
|
|
244
|
+
- Tooltips should be kept concise for best UX
|
|
245
|
+
- Multiple tooltips can exist on the same page for different anchors
|
|
246
|
+
|
|
247
|
+
## Version
|
|
248
|
+
|
|
249
|
+
Current version: 1.0.17
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"name": "brick-alt-teaser",
|
|
4
|
-
"version": "8.0
|
|
4
|
+
"version": "8.1.0",
|
|
5
5
|
"selector": "brick-alt-teaser-v8",
|
|
6
6
|
"category": "Display",
|
|
7
7
|
"tags": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "brick-avatar",
|
|
13
|
-
"version": "0.2.
|
|
13
|
+
"version": "0.2.44",
|
|
14
14
|
"selector": "brick-avatar-v0",
|
|
15
15
|
"description": "brick-avatar component",
|
|
16
16
|
"category": "Display",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"name": "brick-button",
|
|
23
|
-
"version": "9.4.
|
|
23
|
+
"version": "9.4.2",
|
|
24
24
|
"selector": "brick-button-v9",
|
|
25
25
|
"category": "Forms",
|
|
26
26
|
"tags": [
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "brick-byline",
|
|
33
|
-
"version": "1.0.
|
|
33
|
+
"version": "1.0.6",
|
|
34
34
|
"selector": "brick-byline-v1",
|
|
35
35
|
"description": "brick-byline component"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "brick-card",
|
|
39
|
-
"version": "7.3.
|
|
39
|
+
"version": "7.3.16",
|
|
40
40
|
"selector": "brick-card-v7",
|
|
41
41
|
"category": "Layout",
|
|
42
42
|
"tags": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "brick-carousel",
|
|
48
|
-
"version": "2.2.
|
|
48
|
+
"version": "2.2.5",
|
|
49
49
|
"selector": "brick-carousel-v2",
|
|
50
50
|
"description": "Simple carousel for any content passed to it.",
|
|
51
51
|
"category": "Display",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"name": "brick-classnames",
|
|
58
|
-
"version": "
|
|
59
|
-
"selector": "brick-classnames-
|
|
58
|
+
"version": "3.0.0",
|
|
59
|
+
"selector": "brick-classnames-v3",
|
|
60
60
|
"description": "Utility method to create a safe string from a design name",
|
|
61
61
|
"category": "Utilities",
|
|
62
62
|
"tags": [
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "brick-countdown",
|
|
68
|
-
"version": "2.0.
|
|
68
|
+
"version": "2.0.15",
|
|
69
69
|
"selector": "brick-countdown-v2",
|
|
70
70
|
"description": "brick-countdown component"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "brick-dialog",
|
|
74
|
-
"version": "2.0.
|
|
74
|
+
"version": "2.0.21",
|
|
75
75
|
"selector": "brick-dialog-v2",
|
|
76
76
|
"description": "brick-dialog component",
|
|
77
77
|
"category": "Feedback",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"name": "brick-expand",
|
|
84
|
-
"version": "0.0.
|
|
84
|
+
"version": "0.0.8",
|
|
85
85
|
"selector": "brick-expand-v0",
|
|
86
86
|
"description": "brick-expand component"
|
|
87
87
|
},
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"name": "brick-helloworld",
|
|
100
|
-
"version": "2.0.
|
|
100
|
+
"version": "2.0.9",
|
|
101
101
|
"selector": "brick-helloworld-v2",
|
|
102
102
|
"description": "Brick Hello World component"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"name": "brick-icon",
|
|
106
|
-
"version": "2.3.
|
|
106
|
+
"version": "2.3.8",
|
|
107
107
|
"selector": "brick-icon-v2",
|
|
108
108
|
"category": "Display",
|
|
109
109
|
"tags": [
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"name": "brick-image",
|
|
121
|
-
"version": "6.0.
|
|
121
|
+
"version": "6.0.11",
|
|
122
122
|
"selector": "brick-image-v6",
|
|
123
123
|
"category": "Display",
|
|
124
124
|
"tags": [
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"name": "brick-input",
|
|
130
|
-
"version": "3.0.
|
|
130
|
+
"version": "3.0.15",
|
|
131
131
|
"selector": "brick-input-v3",
|
|
132
132
|
"description": "brick-input component",
|
|
133
133
|
"category": "Forms",
|
|
@@ -138,48 +138,48 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "brick-nifs",
|
|
141
|
-
"version": "0.0.
|
|
141
|
+
"version": "0.0.8",
|
|
142
142
|
"selector": "brick-nifs-v0",
|
|
143
143
|
"description": "brick-nifs component"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"name": "brick-pill",
|
|
147
|
-
"version": "9.0.
|
|
147
|
+
"version": "9.0.9",
|
|
148
148
|
"selector": "brick-pill-v9"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
"name": "brick-player",
|
|
152
|
-
"version": "
|
|
153
|
-
"selector": "brick-player-
|
|
152
|
+
"version": "2.0.0",
|
|
153
|
+
"selector": "brick-player-v2",
|
|
154
154
|
"description": "Component for playing video and audio files"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"name": "brick-published",
|
|
158
|
-
"version": "4.0.
|
|
158
|
+
"version": "4.0.7",
|
|
159
159
|
"selector": "brick-published-v4",
|
|
160
160
|
"description": "brick-published"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"name": "brick-share",
|
|
164
|
-
"version": "0.3.
|
|
164
|
+
"version": "0.3.12",
|
|
165
165
|
"selector": "brick-share-v0",
|
|
166
166
|
"description": "brick-share component"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
"name": "brick-stepper",
|
|
170
|
-
"version": "1.0.
|
|
170
|
+
"version": "1.0.18",
|
|
171
171
|
"selector": "brick-stepper-v1",
|
|
172
172
|
"description": "brick-stepper component"
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
"name": "brick-tab",
|
|
176
|
-
"version": "0.1.
|
|
176
|
+
"version": "0.1.14",
|
|
177
177
|
"selector": "brick-tab-v0",
|
|
178
178
|
"description": "brick-tab component"
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
"name": "brick-tabs",
|
|
182
|
-
"version": "0.1.
|
|
182
|
+
"version": "0.1.15",
|
|
183
183
|
"selector": "brick-tabs-v0",
|
|
184
184
|
"description": "brick-tabs component handling tablist, tabs and tabpanel",
|
|
185
185
|
"category": "Navigation",
|
|
@@ -189,13 +189,13 @@
|
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"name": "brick-tag",
|
|
192
|
-
"version": "0.0.
|
|
192
|
+
"version": "0.0.14",
|
|
193
193
|
"selector": "brick-tag-v0",
|
|
194
194
|
"description": "brick-tag component"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"name": "brick-teaser",
|
|
198
|
-
"version": "21.
|
|
198
|
+
"version": "21.2.1",
|
|
199
199
|
"selector": "brick-teaser-v21",
|
|
200
200
|
"description": "Teaser component.",
|
|
201
201
|
"category": "Display",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"name": "brick-teaser-player",
|
|
208
|
-
"version": "1.0
|
|
208
|
+
"version": "1.1.0",
|
|
209
209
|
"selector": "brick-teaser-player-v1",
|
|
210
210
|
"description": "brick-video-teaser component",
|
|
211
211
|
"category": "Display",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"name": "brick-teaser-reels",
|
|
218
|
-
"version": "0.4.
|
|
218
|
+
"version": "0.4.5",
|
|
219
219
|
"selector": "brick-teaser-reels-v0",
|
|
220
220
|
"description": "brick-teaser-reels component",
|
|
221
221
|
"category": "Display",
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"name": "brick-textarea",
|
|
228
|
-
"version": "2.0.
|
|
228
|
+
"version": "2.0.10",
|
|
229
229
|
"selector": "brick-textarea-v2",
|
|
230
230
|
"description": "brick-textarea component"
|
|
231
231
|
},
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
"name": "brick-toast",
|
|
240
|
-
"version": "0.1.
|
|
240
|
+
"version": "0.1.28",
|
|
241
241
|
"selector": "brick-toast-v0",
|
|
242
242
|
"description": "brick-toast component",
|
|
243
243
|
"category": "Feedback",
|
|
@@ -247,14 +247,14 @@
|
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
"name": "brick-toggle",
|
|
250
|
-
"version": "3.1.
|
|
250
|
+
"version": "3.1.14",
|
|
251
251
|
"selector": "brick-toggle-v3",
|
|
252
252
|
"description": "brick-toggle component"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
"name": "brick-tokens",
|
|
256
|
-
"version": "
|
|
257
|
-
"selector": "brick-tokens-
|
|
256
|
+
"version": "6.0.0",
|
|
257
|
+
"selector": "brick-tokens-v6",
|
|
258
258
|
"description": "Tokens package",
|
|
259
259
|
"category": "Utilities",
|
|
260
260
|
"tags": [
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
265
|
"name": "brick-tooltip",
|
|
266
|
-
"version": "1.0.
|
|
266
|
+
"version": "1.0.17",
|
|
267
267
|
"selector": "brick-tooltip-v1",
|
|
268
268
|
"description": "brick-tooltip component"
|
|
269
269
|
}
|
package/dist/data/tokens.json
CHANGED
|
@@ -4008,13 +4008,6 @@
|
|
|
4008
4008
|
"description": "Mellomstor tekst til bruk i tabeller.",
|
|
4009
4009
|
"cssVariable": "font-family: var(--brick-fonts-baseTabularM);\nfont-size: var(--brick-fontSizes-baseTabularM);\nfont-weight: var(--brick-fontWeights-baseTabularM);\nletter-spacing: var(--brick-letterSpacings-baseTabularM);\nline-height: var(--brick-lineHeights-baseTabularM);"
|
|
4010
4010
|
},
|
|
4011
|
-
{
|
|
4012
|
-
"path": "typography.base.test",
|
|
4013
|
-
"name": "baseTest",
|
|
4014
|
-
"type": "typography",
|
|
4015
|
-
"value": "400 16px/1.4 'National 2'",
|
|
4016
|
-
"cssVariable": "font-family: var(--brick-fonts-baseTest);\nfont-size: var(--brick-fontSizes-baseTest);\nfont-weight: var(--brick-fontWeights-baseTest);\nletter-spacing: var(--brick-letterSpacings-baseTest);\nline-height: var(--brick-lineHeights-baseTest);"
|
|
4017
|
-
},
|
|
4018
4011
|
{
|
|
4019
4012
|
"path": "typography.article.body.s",
|
|
4020
4013
|
"name": "articleBodyS",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@amedia/brick-mcp",
|
|
3
3
|
"homepage": "https://github.com/amedia/brick.git",
|
|
4
4
|
"author": "Amedia",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.4",
|
|
6
6
|
"description": "This is a MCP server for Brick",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"type": "module",
|
|
@@ -31,47 +31,47 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@fastify/cors": "11.1.0",
|
|
34
|
-
"@modelcontextprotocol/sdk": "1.
|
|
34
|
+
"@modelcontextprotocol/sdk": "1.25.2",
|
|
35
35
|
"fastify": "5.6.1",
|
|
36
36
|
"zod": "3.25.76",
|
|
37
37
|
"zod-to-json-schema": "3.24.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@amedia/brick-alt-teaser": "
|
|
41
|
-
"@amedia/brick-avatar": "
|
|
42
|
-
"@amedia/brick-button": "
|
|
43
|
-
"@amedia/brick-byline": "
|
|
44
|
-
"@amedia/brick-card": "
|
|
45
|
-
"@amedia/brick-carousel": "
|
|
46
|
-
"@amedia/brick-classnames": "
|
|
47
|
-
"@amedia/brick-countdown": "
|
|
48
|
-
"@amedia/brick-dialog": "
|
|
49
|
-
"@amedia/brick-expand": "
|
|
50
|
-
"@amedia/brick-fonts": "
|
|
51
|
-
"@amedia/brick-helloworld": "
|
|
52
|
-
"@amedia/brick-icon": "
|
|
53
|
-
"@amedia/brick-icons": "
|
|
54
|
-
"@amedia/brick-illustrations": "
|
|
55
|
-
"@amedia/brick-image": "
|
|
56
|
-
"@amedia/brick-input": "
|
|
57
|
-
"@amedia/brick-pill": "
|
|
58
|
-
"@amedia/brick-player": "
|
|
59
|
-
"@amedia/brick-published": "
|
|
60
|
-
"@amedia/brick-share": "
|
|
61
|
-
"@amedia/brick-stepper": "
|
|
62
|
-
"@amedia/brick-tab": "
|
|
63
|
-
"@amedia/brick-tabs": "
|
|
64
|
-
"@amedia/brick-tag": "
|
|
65
|
-
"@amedia/brick-teaser": "
|
|
66
|
-
"@amedia/brick-teaser-player": "
|
|
67
|
-
"@amedia/brick-teaser-reels": "
|
|
68
|
-
"@amedia/brick-template": "
|
|
69
|
-
"@amedia/brick-textarea": "
|
|
70
|
-
"@amedia/brick-themes": "
|
|
71
|
-
"@amedia/brick-toast": "
|
|
72
|
-
"@amedia/brick-toggle": "
|
|
73
|
-
"@amedia/brick-tokens": "
|
|
74
|
-
"@amedia/brick-tooltip": "
|
|
40
|
+
"@amedia/brick-alt-teaser": "8.1.0",
|
|
41
|
+
"@amedia/brick-avatar": "0.2.44",
|
|
42
|
+
"@amedia/brick-button": "9.4.2",
|
|
43
|
+
"@amedia/brick-byline": "1.0.6",
|
|
44
|
+
"@amedia/brick-card": "7.3.16",
|
|
45
|
+
"@amedia/brick-carousel": "2.2.5",
|
|
46
|
+
"@amedia/brick-classnames": "3.0.0",
|
|
47
|
+
"@amedia/brick-countdown": "2.0.15",
|
|
48
|
+
"@amedia/brick-dialog": "2.0.21",
|
|
49
|
+
"@amedia/brick-expand": "0.0.8",
|
|
50
|
+
"@amedia/brick-fonts": "2.0.2",
|
|
51
|
+
"@amedia/brick-helloworld": "2.0.9",
|
|
52
|
+
"@amedia/brick-icon": "2.3.8",
|
|
53
|
+
"@amedia/brick-icons": "2.2.1",
|
|
54
|
+
"@amedia/brick-illustrations": "1.2.5",
|
|
55
|
+
"@amedia/brick-image": "6.0.11",
|
|
56
|
+
"@amedia/brick-input": "3.0.15",
|
|
57
|
+
"@amedia/brick-pill": "9.0.9",
|
|
58
|
+
"@amedia/brick-player": "2.0.0",
|
|
59
|
+
"@amedia/brick-published": "4.0.7",
|
|
60
|
+
"@amedia/brick-share": "0.3.12",
|
|
61
|
+
"@amedia/brick-stepper": "1.0.18",
|
|
62
|
+
"@amedia/brick-tab": "0.1.14",
|
|
63
|
+
"@amedia/brick-tabs": "0.1.15",
|
|
64
|
+
"@amedia/brick-tag": "0.0.14",
|
|
65
|
+
"@amedia/brick-teaser": "21.2.1",
|
|
66
|
+
"@amedia/brick-teaser-player": "1.1.0",
|
|
67
|
+
"@amedia/brick-teaser-reels": "0.4.5",
|
|
68
|
+
"@amedia/brick-template": "2.0.0",
|
|
69
|
+
"@amedia/brick-textarea": "2.0.10",
|
|
70
|
+
"@amedia/brick-themes": "1.0.1",
|
|
71
|
+
"@amedia/brick-toast": "0.1.28",
|
|
72
|
+
"@amedia/brick-toggle": "3.1.14",
|
|
73
|
+
"@amedia/brick-tokens": "6.0.0",
|
|
74
|
+
"@amedia/brick-tooltip": "1.0.17"
|
|
75
75
|
},
|
|
76
76
|
"eik": {
|
|
77
77
|
"server": "https://assets.acdn.no",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "brick-pill",
|
|
3
|
-
"version": "9.0.2",
|
|
4
|
-
"selector": "brick-pill-v9",
|
|
5
|
-
"mdx": "import {\n Meta,\n Story,\n Subtitle,\n Controls,\n Source,\n Markdown,\n Canvas,\n} from '@storybook/addon-docs/blocks';\n\nimport ReadMe from '../README.md?raw';\nimport * as BrickStories from './brick-pill.stories';\n\n<Meta of={BrickStories} />\n\n# brick-pill & brick-pillbox\n\n`brick-pill` can be used to display meta information, or a small piece of text information. They are read-only status indicators or labels, and are not interactive. It can hold text or text and icon, and be displayed with and without background color.\n\n`brick-pillbox` is a wrapper container for multiple pills.\n[Link to `brick-pillbox` documentation](?path=/docs/brick-pillbox--documentation)\n\n<Canvas of={BrickStories.Versions} />\n\n## Purpose\n\nUsed for example to decorate or embellish a frontpage article teaser. Adding small details about the\narticle the teaser links to.\nCan also be used elsewhere where such garnish is needed.\n\n## Accessibility\n\nColor contrasts adhere to the WCAG 2.1 guidelines. \nIcons in brick-pill are decorative, so we hide the icon from screenreaders.\n\n## Usage\n\n`brick-pill` can be used standalone, but you might wrap `brick-pill` with `brick-pillbox`.\nImport `brick-pill` and `brick-pillbox` in the file you render your markup:\n\nFirst you need to install the package in your project.\n\n<Source\n language=\"node\"\n code={`\n npm install @amedia/brick-pill\n `}\n/>\n\n### Server side rendering\n\nWhen rendering the markup serverside\n\n#### Import and render markup\n\n<Source\n language=\"javascript\"\n code={`\n import { renderBrickPill, renderBrickPillBox } from '@amedia/brick-pill/template';\n`}\n/>\n\n<Source\n language=\"javascript\"\n code={`\n \n const pills = renderBrickPill({\n filled: true,\n version: 'plus'\n })\n const wrapperMarkup = renderBrickPillBox({\n filled: true\n }, pills)\n`}\n/>\n\n### Client side\n\nIf the markup has been rendered serverside, the markup will not be recreated, but i.e eventlisteners will happen client side.\n\nInclude the client side class from the asset server with a script tag, or use import.\n\n#### Script tag\n\n<Source\n language=\"html\"\n code={`\n <script\n type=\"module\"\n src=\"https://assets.acdn.no/pkg/@amedia/brick-pill/v0/brick-pill.js\"\n></script>`}\n/>\n\n#### Import\n\n<Source\n language=\"javascript\"\n code={`\n import '@amedia/brick-pill';\n `}\n/>\n\n#### Create the DOM element\n\nThere are a few ways to create brick-pill client side.\n\nExample: Template literals\nThe simplest way is using template literals, passing the appropriate data-attributes.\n\n<Source\n language=\"html\"\n code={`\n <brick-pill\n data-text=\"Siste\"\n data-version=\"breaking\"\n data-filled=\"true\"\n></brick-pill>\n`}\n/>\n\nExample: Using javascript\nCreating the element using javascript, setting dataset properties.\n\n<Source\n language=\"javascript\"\n code={`\n const el = document.createElement('brick-pill-v9');\n el.dataset.version = 'vignette';\n el.dataset.text = 'Brick pill is awesome';\n el.dataset.filled = 'true';\n `}\n/>\n\n### Using Svelte?\n\nTake a look at this REPL: https://svelte.dev/repl/b124e26657b944908566c8c21f985415\n\n## Attributes and properties for brick-pill\n\n`brick-pill` exists in different [versions](?path=/story/brick-pill--versions), and [skins](?path=/story/brick-pill--black-filled).\n\nDataset attributes get camel cased as properties.\nFor example the attribute `data-text` is equivalent `dataset.text` on an element, and `dataText` as property.\n\n#### Note\n\nAll dataset attributes in html are in the format of <code>data-example-attribute=\"example\"</code>, but properties\nis camel cased, like <code>dataExampleAttrbute</code>. Se mapping to attributes in the \"Default\" column below.\n\n<Controls of={BrickStories.Versions} />\n\n### dataVersion: countdown\n\nTimestamp should always be a Epoch Unix Timestamp.\nBoth data-version data-countdown-date need to be present in order to render the component.\nIf adding the parameter \"data-countdown-toggle-text\", another pill will take its place when the countdown has ended. If you wish another version than \"vignette\", send in the version parameter parameter.\n\nNote that when using the countdown version, the inner markup (icon and clock) will always be rendered client-side.\n\n<Source\n language=\"javascript\"\n code={`const timestamp = new Date().getTime()\n //or \nconst timestamp = +new Date();\n `}\n/>\n\n<Source\n language=\"html\"\n code={`<brick-pill \n data-version=\"countdown\" \n data-countdown-date=\"1676460023618\" \n data-countdown-toggle-text=\"Direkte\" \n data-countdown-toggle-version=\"breaking\"></brick-pill>\n `}\n/>\n\n### dataVersion: opinion\n\nIf dataFilled is true, css variabels are used for background and text colors.\n\n<Source\n language=\"css\"\n code={`\n--opinion-background-color;\n--opinion-color-text;\n `}\n/>\n\n### Use with Pillbox\n\n<Source\n language=\"html\"\n code={`\n <brick-pillbox data-filled=\"true\"><brick-pill\n data-text=\"Siste\"\n data-version=\"breaking\"\n data-filled=\"true\"\n></brick-pill>\n</brick-pillbox>\n`}\n/>\n\nWhen the parent is `brick-pillbox`, it affects styling of the pill.\n\n- removes single pill border radius\n- truncates the text on the last pill\n- adds divider between pills eligble for dividers\n\n## Styling and CSS Properties\n\nš¤ `brick-pill` is styled using CSS properties.\n\nCSS Custom Properties can be used to customize the visual appearance. It is recommended to use the existing properties before resorting to custom properties.\n\nMake sure you scope the overrides.\n\n<div class=\"note\">\n <span>Note</span>\n <p>\n It is your responsibilty to validate that your overrides adhere to the\n **WCAG 2.1 AA** guidelines.\n </p>\n</div>\n\n<table>\n <thead>\n <tr>\n <th>Property</th>\n <th>Description</th>\n <th>Default</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>\n <code>--b-pill-color-bg</code>\n </td>\n <td>This variable controls the background color of the filled pill</td>\n <td>\n <code>-</code>\n </td>\n </tr>\n <tr>\n <td>\n <code>--b-pill-color-fg</code>\n </td>\n <td>This variable controls the text color of the pill</td>\n <td>\n <code>-</code>\n </td>\n </tr>\n <tr>\n <td>\n <code>--b-pill-color-breakingBg</code>\n </td>\n <td>\n This variable controls the background color of the filled breaking pill\n </td>\n <td>\n <code>-</code>\n </td>\n </tr>\n <tr>\n <td>\n <code>--b-pill-color-breakingFg</code>\n </td>\n <td>This variable controls the text color of the breaking pill</td>\n <td>\n <code>-</code>\n </td>\n </tr>\n <tr>\n <td>\n <code>--b-pill-svg</code>\n </td>\n <td>\n Set the url to an svg, scoped to pill with version \"icon\". Ex\n :--b-pill-svg:\n url('https://r.acdn.no/local/v3/publications/www.ao.no/gfx/square.svg')\n </td>\n <td>\n <code></code>\n </td>\n </tr>\n <tr>\n <td>\n <code>--b-pill-svg-width</code>\n </td>\n <td>This variable controls the width of the svg.</td>\n <td>\n <code>11px</code>\n </td>\n </tr>\n <tr>\n <td>\n <code>--b-pill-svg-height</code>\n </td>\n <td>This variable controls the height of the svg.</td>\n <td>\n <code>11px</code>\n </td>\n </tr>\n </tbody>\n</table>\n\n**_For local development with Storybook, please see the Brick [documentation](https://brick.api.no)._**\n\n<br />\n\n## Dependencies\n\nAs part of the Brick design system, the brick-pill is dependent the following:\n\n- @stitches/core - [Stitches](https://stitches.dev/), a CSS-in-JS tool enabling theming and variants support\n- brick-tokens [@amedia/brick-tokens](https://www.npmjs.com/package/@amedia/brick-tokens) for styling related to the [Brick designsystem](http://brick.api.no)\n- brick-icon: [@amedia/brick-icons](https://www.npmjs.com/package/@amedia/brick-icons)\n\n## Design\n\nWhen styling anything related to Brick, be sure to use the correct tokens documented in Figma, and the theme class will make sure the correct values are set.\n\nDesign with tokens can be found in Figma here: \nPill: https://www.figma.com/file/FC8ydpRXVG0TDJh6FBDLpt/Components?node-id=896%3A20191&t=0DnpQsgKFSnsGaDx-0 \nExample of use: https://www.figma.com/file/FC8ydpRXVG0TDJh6FBDLpt/Components?node-id=1023%3A22043&t=tnOBgNfqCz1lBphO-0\n\n## README\n\n<Markdown>{ReadMe}</Markdown>\n\n## CHANGELOG\n\n**/CHANGELOG.MD**\n[Changelog](https://github.com/amedia/brick/blob/master/packages/brick-pill/CHANGELOG.md)\n"
|
|
6
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "brick-player",
|
|
3
|
-
"version": "1.27.17",
|
|
4
|
-
"selector": "brick-player-v1",
|
|
5
|
-
"description": "Component for playing video and audio files",
|
|
6
|
-
"mdx": "import {\n Meta,\n Controls,\n Canvas,\n Source,\n Markdown,\n} from '@storybook/addon-docs/blocks';\nimport ReadMe from '../readme.md?raw';\nimport * as BrickStories from './brick-player.stories';\n\n<Meta of={BrickStories} />\n\n# brick-player\n\n## How to use this component\n\n<Source\n language=\"html\"\n code={`\n <brick-player\n mediaid=\"flowplayer-uuid-mediaid\"\n playerid=\"flowplayer-config-uuid\"\n/>`}\n/>\n\n## Testing ads\n\nIf you're experiencing issues with \"The Cross-Origin-Opener-Policy header has been ignored\" in\nChrome, you can try the following:\n\n1. Go to chrome://flags/#unsafely-treat-insecure-origin-as-secure\n1. Add http://imasdk.googleapis.com\n1. Set \"Insecure origins treated as secure\" to Enabled\n1. Restart Google Chrome\n\n## Attributes overview for brick-player\n\nAll html attributes are defined using regular strings. They are parsed during initialisation into instance properties with both built-in and custom types. Changes made to attributes after initialisation are reflected into properties in a reactive manner - and vice versa.\n\nIn the overview, the corresponding properties are listed in the \"Description\" column.\n\n<Controls of={BrickStories.AspectRatio169} />\n\n<Canvas of={BrickStories.AspectRatio169} />\n\n<Markdown>{ReadMe}</Markdown>\n"
|
|
7
|
-
}
|