@primer/view-components 0.35.0-rc.03ac8a4d → 0.35.0-rc.145043a3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/app/assets/javascripts/{app/components → components}/primer/primer.d.ts +3 -3
  2. package/app/assets/javascripts/primer_view_components.js.map +1 -1
  3. package/app/components/primer/primer.js +3 -3
  4. package/package.json +2 -2
  5. package/app/components/primer/alpha/action_bar_element.d.ts +0 -17
  6. package/app/components/primer/alpha/action_list.d.ts +0 -16
  7. package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +0 -42
  8. package/app/components/primer/alpha/dropdown/menu.d.ts +0 -1
  9. package/app/components/primer/alpha/dropdown.d.ts +0 -1
  10. package/app/components/primer/alpha/image_crop.d.ts +0 -1
  11. package/app/components/primer/alpha/modal_dialog.d.ts +0 -18
  12. package/app/components/primer/alpha/segmented_control.d.ts +0 -12
  13. package/app/components/primer/alpha/select_panel_element.d.ts +0 -63
  14. package/app/components/primer/alpha/tab_container.d.ts +0 -1
  15. package/app/components/primer/alpha/toggle_switch.d.ts +0 -34
  16. package/app/components/primer/alpha/tool_tip.d.ts +0 -27
  17. package/app/components/primer/alpha/x_banner.d.ts +0 -18
  18. package/app/components/primer/anchored_position.d.ts +0 -27
  19. package/app/components/primer/aria_live.d.ts +0 -8
  20. package/app/components/primer/beta/auto_complete/auto_complete.d.ts +0 -1
  21. package/app/components/primer/beta/clipboard_copy.d.ts +0 -1
  22. package/app/components/primer/beta/nav_list.d.ts +0 -20
  23. package/app/components/primer/beta/nav_list_group_element.d.ts +0 -19
  24. package/app/components/primer/beta/relative_time.d.ts +0 -1
  25. package/app/components/primer/dialog_helper.d.ts +0 -15
  26. package/app/components/primer/focus_group.d.ts +0 -19
  27. package/app/components/primer/primer.d.ts +0 -28
  28. package/app/components/primer/scrollable_region.d.ts +0 -13
  29. package/app/components/primer/shared_events.d.ts +0 -11
  30. package/lib/primer/forms/primer_multi_input.js +0 -44
  31. package/lib/primer/forms/primer_text_field.js +0 -119
  32. package/lib/primer/forms/toggle_switch_input.js +0 -34
  33. /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_bar_element.d.ts +0 -0
  34. /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_list.d.ts +0 -0
  35. /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_menu/action_menu_element.d.ts +0 -0
  36. /package/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown/menu.d.ts +0 -0
  37. /package/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown.d.ts +0 -0
  38. /package/app/assets/javascripts/{app/components → components}/primer/alpha/image_crop.d.ts +0 -0
  39. /package/app/assets/javascripts/{app/components → components}/primer/alpha/modal_dialog.d.ts +0 -0
  40. /package/app/assets/javascripts/{app/components → components}/primer/alpha/segmented_control.d.ts +0 -0
  41. /package/app/assets/javascripts/{app/components → components}/primer/alpha/select_panel_element.d.ts +0 -0
  42. /package/app/assets/javascripts/{app/components → components}/primer/alpha/tab_container.d.ts +0 -0
  43. /package/app/assets/javascripts/{app/components → components}/primer/alpha/toggle_switch.d.ts +0 -0
  44. /package/app/assets/javascripts/{app/components → components}/primer/alpha/tool_tip.d.ts +0 -0
  45. /package/app/assets/javascripts/{app/components → components}/primer/alpha/x_banner.d.ts +0 -0
  46. /package/app/assets/javascripts/{app/components → components}/primer/anchored_position.d.ts +0 -0
  47. /package/app/assets/javascripts/{app/components → components}/primer/aria_live.d.ts +0 -0
  48. /package/app/assets/javascripts/{app/components → components}/primer/beta/auto_complete/auto_complete.d.ts +0 -0
  49. /package/app/assets/javascripts/{app/components → components}/primer/beta/clipboard_copy.d.ts +0 -0
  50. /package/app/assets/javascripts/{app/components → components}/primer/beta/nav_list.d.ts +0 -0
  51. /package/app/assets/javascripts/{app/components → components}/primer/beta/nav_list_group_element.d.ts +0 -0
  52. /package/app/assets/javascripts/{app/components → components}/primer/beta/relative_time.d.ts +0 -0
  53. /package/app/assets/javascripts/{app/components → components}/primer/dialog_helper.d.ts +0 -0
  54. /package/app/assets/javascripts/{app/components → components}/primer/focus_group.d.ts +0 -0
  55. /package/app/assets/javascripts/{app/components → components}/primer/scrollable_region.d.ts +0 -0
  56. /package/app/assets/javascripts/{app/components → components}/primer/shared_events.d.ts +0 -0
@@ -1,34 +0,0 @@
1
- /* eslint-disable custom-elements/expose-class-on-global */
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- import { controller, target } from '@github/catalyst';
9
- let ToggleSwitchInputElement = class ToggleSwitchInputElement extends HTMLElement {
10
- connectedCallback() {
11
- this.addEventListener('toggleSwitchError', (event) => {
12
- this.validationMessageElement.textContent = event.detail;
13
- this.validationElement.removeAttribute('hidden');
14
- });
15
- this.addEventListener('toggleSwitchSuccess', () => {
16
- this.validationMessageElement.textContent = '';
17
- this.validationElement.setAttribute('hidden', 'hidden');
18
- });
19
- this.addEventListener('toggleSwitchLoading', () => {
20
- this.validationMessageElement.textContent = '';
21
- this.validationElement.setAttribute('hidden', 'hidden');
22
- });
23
- }
24
- };
25
- __decorate([
26
- target
27
- ], ToggleSwitchInputElement.prototype, "validationElement", void 0);
28
- __decorate([
29
- target
30
- ], ToggleSwitchInputElement.prototype, "validationMessageElement", void 0);
31
- ToggleSwitchInputElement = __decorate([
32
- controller
33
- ], ToggleSwitchInputElement);
34
- export { ToggleSwitchInputElement };