@primer/view-components 0.1.0-rc.d6eb7cd7 → 0.1.0
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/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +2 -2
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_list.css.json +164 -1
- package/app/components/primer/alpha/auto_complete.css.json +34 -1
- package/app/components/primer/alpha/banner.css.json +38 -1
- package/app/components/primer/alpha/button_marketing.css.json +43 -1
- package/app/components/primer/alpha/dialog.css.json +145 -1
- package/app/components/primer/alpha/dropdown.css.json +61 -1
- package/app/components/primer/alpha/layout.css.json +107 -1
- package/app/components/primer/alpha/menu.css.json +39 -1
- package/app/components/primer/alpha/modal_dialog.js +2 -0
- package/app/components/primer/alpha/nav_list.d.ts +6 -3
- package/app/components/primer/alpha/nav_list.js +98 -6
- package/app/components/primer/alpha/overlay.css +1 -0
- package/app/components/primer/alpha/overlay.css.json +11 -0
- package/app/components/primer/alpha/segmented_control.css +1 -1
- package/app/components/primer/alpha/segmented_control.css.json +46 -1
- package/app/components/primer/alpha/tab_nav.css.json +34 -1
- package/app/components/primer/alpha/text_field.css +2 -2
- package/app/components/primer/alpha/text_field.css.json +172 -1
- package/app/components/primer/alpha/toggle_switch.css +1 -1
- package/app/components/primer/alpha/toggle_switch.css.json +56 -1
- package/app/components/primer/alpha/toggle_switch.js +23 -11
- package/app/components/primer/alpha/tool_tip.js +0 -3
- package/app/components/primer/alpha/underline_nav.css.json +41 -1
- package/app/components/primer/anchored_position.d.ts +27 -0
- package/app/components/primer/anchored_position.js +149 -0
- package/app/components/primer/beta/avatar.css.json +31 -1
- package/app/components/primer/beta/avatar_stack.css.json +37 -1
- package/app/components/primer/beta/blankslate.css.json +34 -1
- package/app/components/primer/beta/border_box.css.json +86 -1
- package/app/components/primer/beta/breadcrumbs.css.json +15 -1
- package/app/components/primer/beta/button.css +1 -1
- package/app/components/primer/beta/button.css.json +93 -1
- package/app/components/primer/beta/counter.css.json +16 -1
- package/app/components/primer/beta/flash.css.json +42 -1
- package/app/components/primer/beta/label.css.json +45 -1
- package/app/components/primer/beta/link.css.json +27 -1
- package/app/components/primer/beta/popover.css.json +57 -1
- package/app/components/primer/beta/progress_bar.css.json +16 -1
- package/app/components/primer/beta/state.css.json +23 -1
- package/app/components/primer/beta/subhead.css.json +20 -1
- package/app/components/primer/beta/timeline_item.css.json +25 -1
- package/app/components/primer/beta/truncate.css.json +18 -1
- package/app/components/primer/primer.d.ts +4 -2
- package/app/components/primer/primer.js +4 -2
- package/app/components/primer/truncate.css.json +20 -1
- package/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/lib/primer/forms/toggle_switch_input.js +29 -0
- package/package.json +4 -2
- package/static/arguments.json +1416 -1402
- package/static/audited_at.json +16 -24
- package/static/classes.json +311 -0
- package/static/constants.json +129 -71
- package/static/previews.json +1833 -0
- package/static/statuses.json +14 -22
- package/app/components/primer/time_ago_component.d.ts +0 -1
- package/app/components/primer/time_ago_component.js +0 -1
- /package/app/components/primer/{local_time.d.ts → beta/relative_time.d.ts} +0 -0
- /package/app/components/primer/{local_time.js → beta/relative_time.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { controller, target } from '@github/catalyst';
|
|
8
|
+
let ToggleSwitchInputElement = class ToggleSwitchInputElement extends HTMLElement {
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
this.addEventListener('toggleSwitchError', (event) => {
|
|
11
|
+
this.validationMessageElement.innerText = event.detail;
|
|
12
|
+
this.validationElement.removeAttribute('hidden');
|
|
13
|
+
});
|
|
14
|
+
this.addEventListener('toggleSwitchSuccess', () => {
|
|
15
|
+
this.validationMessageElement.innerText = '';
|
|
16
|
+
this.validationElement.setAttribute('hidden', 'hidden');
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
target
|
|
22
|
+
], ToggleSwitchInputElement.prototype, "validationElement", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
target
|
|
25
|
+
], ToggleSwitchInputElement.prototype, "validationMessageElement", void 0);
|
|
26
|
+
ToggleSwitchInputElement = __decorate([
|
|
27
|
+
controller
|
|
28
|
+
], ToggleSwitchInputElement);
|
|
29
|
+
export { ToggleSwitchInputElement };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/view-components",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "ViewComponents for the Primer Design System",
|
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
|
6
6
|
"module": "app/components/primer/primer.js",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"@github/mini-throttle": "^2.1.0",
|
|
54
54
|
"@github/relative-time-element": "^4.0.0",
|
|
55
55
|
"@github/tab-container-element": "^3.1.2",
|
|
56
|
+
"@oddbird/popover-polyfill": "^0.0.8",
|
|
56
57
|
"@primer/behaviors": "^1.2.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
@@ -63,11 +64,12 @@
|
|
|
63
64
|
"@github/markdownlint-github": "^0.2.2",
|
|
64
65
|
"@playwright/test": "^1.27.1",
|
|
65
66
|
"@primer/css": "20.4.7",
|
|
66
|
-
"@primer/primitives": "^7.
|
|
67
|
+
"@primer/primitives": "^7.11.1",
|
|
67
68
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
68
69
|
"@rollup/plugin-typescript": "^8.3.3",
|
|
69
70
|
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
70
71
|
"@typescript-eslint/parser": "^5.31.0",
|
|
72
|
+
"axe-core": "^4.6.2",
|
|
71
73
|
"chokidar-cli": "^3.0.0",
|
|
72
74
|
"cssnano": "^5.1.13",
|
|
73
75
|
"eslint": "^8.23.1",
|