ng-primitives 0.50.0 → 0.52.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.
@@ -0,0 +1,47 @@
1
+ import { Component } from '@angular/core';
2
+ import { NgpSelect } from 'ng-primitives/select';
3
+
4
+ @Component({
5
+ selector: 'select[<%= prefix %>-select]',
6
+ hostDirectives: [{ directive: NgpSelect, inputs: ['ngpSelectDisabled:disabled'] }],
7
+ template: `
8
+ <ng-content />
9
+ `,
10
+ styles: `
11
+ /* These styles rely on CSS variables that can be imported from ng-primitives/example-theme/index.css in your global styles */
12
+
13
+ :host {
14
+ all: unset;
15
+ appearance: none;
16
+ display: flex;
17
+ width: 90%;
18
+ align-items: center;
19
+ height: 2.5rem;
20
+ padding: 0 1rem;
21
+ border-radius: 0.5rem;
22
+ background-color: var(--ngp-background);
23
+ text-align: start;
24
+ box-shadow: var(--ngp-button-shadow);
25
+ outline: none;
26
+ background-position-x: calc(100% - 10px);
27
+ background-position-y: 50%;
28
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iIzczNzM3MyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS4yMiA4LjIyYS43NS43NSAwIDAgMSAxLjA2IDBMMTAgMTEuOTRsMy43Mi0zLjcyYS43NS43NSAwIDEgMSAxLjA2IDEuMDZsLTQuMjUgNC4yNWEuNzUuNzUgMCAwIDEtMS4wNiAwTDUuMjIgOS4yOGEuNzUuNzUgMCAwIDEgMC0xLjA2WiIgY2xpcC1ydWxlPSJldmVub2RkIj48L3BhdGg+PC9zdmc+');
29
+ background-size: 1.25rem;
30
+ background-repeat: no-repeat;
31
+ }
32
+
33
+ :host[data-hover] {
34
+ background-color: var(--ngp-background-hover);
35
+ }
36
+
37
+ :host[data-focus-visible] {
38
+ outline: 2px solid var(--ngp-focus-ring);
39
+ outline-offset: 0;
40
+ }
41
+
42
+ :host[data-press] {
43
+ background-color: var(--ngp-background-active);
44
+ }
45
+ `,
46
+ })
47
+ export class Select<%= componentSuffix %> {}
@@ -6,7 +6,7 @@ export declare class NgpSliderThumb {
6
6
  /**
7
7
  * Access the slider state.
8
8
  */
9
- protected readonly sliderState: import("@angular/core").Signal<import("ng-primitives/state").State<import("ng-primitives/slider").NgpSlider>>;
9
+ protected readonly state: import("@angular/core").Signal<import("ng-primitives/state").State<import("ng-primitives/slider").NgpSlider>>;
10
10
  /**
11
11
  * Store the dragging state.
12
12
  */