ng-primitives 0.20.0 → 0.21.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.
@@ -31,7 +31,7 @@ export declare class NgpAccordion<T> {
31
31
  /**
32
32
  * The accordion orientation.
33
33
  */
34
- readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
34
+ readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
35
35
  /**
36
36
  * @param value The value to check.
37
37
  * @returns Whether the value is open.
@@ -0,0 +1,84 @@
1
+ /*
2
+ * This is a sample theme for the ng-primitives examples. It uses colors from the TailwindCSS palette.
3
+ */
4
+ :root {
5
+ --white: oklch(1 0.001 0.001);
6
+ --black: oklch(0 0.001 0.001);
7
+
8
+ --gray-50: oklch(0.985 0 0);
9
+ --gray-100: oklch(0.967 0.001 286.375);
10
+ --gray-200: oklch(0.92 0.004 286.32);
11
+ --gray-300: oklch(0.871 0.006 286.286);
12
+ --gray-400: oklch(0.705 0.015 286.067);
13
+ --gray-500: oklch(0.552 0.016 285.938);
14
+ --gray-600: oklch(0.442 0.017 285.786);
15
+ --gray-700: oklch(0.37 0.013 285.805);
16
+ --gray-800: oklch(0.274 0.006 286.033);
17
+ --gray-900: oklch(0.21 0.006 285.885);
18
+ --gray-950: oklch(0.141 0.005 285.823);
19
+
20
+ --background: var(--white);
21
+ --background-secondary: var(--gray-300);
22
+ --background-hover: var(--gray-50);
23
+ --background-active: var(--gray-100);
24
+ --background-inverse: var(--black);
25
+ --background-disabled: var(--gray-100);
26
+ --background-blue: #dbeafe;
27
+
28
+ --border: var(--gray-200);
29
+ --border-secondary: var(--gray-300);
30
+ --border-blue: #3b82f6;
31
+
32
+ --text-emphasis: var(--black);
33
+ --text-primary: var(--gray-900);
34
+ --text-secondary: var(--gray-600);
35
+ --text-tertiary: var(--gray-500);
36
+ --text-disabled: var(--gray-400);
37
+ --text-placeholder: var(--gray-400);
38
+ --text-inverse: var(--white);
39
+ --text-blue: #3b82f6;
40
+ --text-red: #ef4444;
41
+
42
+ --shadow: 0 1px 2px 0 rgba(0 0 0 0.05);
43
+
44
+ --focus-ring: rgb(59 130 246);
45
+
46
+ --avatar-background: #bae6fd;
47
+ --avatar-border: #fff;
48
+
49
+ --button-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1),
50
+ 0 0 0 1px rgb(0 0 0 / 0.05);
51
+
52
+ --input-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.1);
53
+ }
54
+
55
+ .dark {
56
+ --background: var(--gray-950);
57
+ --background-secondary: var(--gray-700);
58
+ --background-hover: var(--gray-900);
59
+ --background-active: var(--gray-800);
60
+ --background-inverse: var(--white);
61
+ --background-disabled: var(--gray-900);
62
+ --background-blue: rgba(95, 160, 246, 0.274);
63
+
64
+ --border: var(--gray-800);
65
+ --border-secondary: var(--gray-700);
66
+ --border-blue: #1980ff;
67
+
68
+ --text-emphasis: var(--white);
69
+ --text-primary: var(--gray-100);
70
+ --text-secondary: var(--gray-300);
71
+ --text-tertiary: var(--gray-400);
72
+ --text-disabled: var(--gray-500);
73
+ --text-inverse: var(--black);
74
+ --text-blue: #1980ff;
75
+ --text-red: #ff4d4d;
76
+
77
+ --avatar-background: #18181b;
78
+ --avatar-border: #3f3f46;
79
+
80
+ --input-shadow: 0 1px 2px rgba(255, 255, 255, 0.007), 0 0 0 1px rgba(255, 255, 255, 0.1);
81
+
82
+ --button-shadow: 0 1px 3px 0 rgb(255, 255, 255, 0.1), 0 1px 2px -1px rgb(255, 255, 255, 0.1),
83
+ 0 0 0 1px rgb(255, 255, 255, 0.05);
84
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ng-primitives",
3
3
  "license": "Apache-2.0",
4
- "version": "0.20.0",
4
+ "version": "0.21.0",
5
5
  "peerDependencies": {
6
6
  "@angular/core": ">=19.0.0",
7
7
  "@angular/cdk": ">=19.0.0",
@@ -26,9 +26,8 @@
26
26
  "sideEffects": false,
27
27
  "generators": "./generators.json",
28
28
  "schematics": "./generators.json",
29
- "module": "fesm2022/ng-primitives.mjs",
30
- "typings": "index.d.ts",
31
29
  "exports": {
30
+ "./example-theme/index.css": "./example-theme/index.css",
32
31
  "./package.json": {
33
32
  "default": "./package.json"
34
33
  },
@@ -48,10 +47,6 @@
48
47
  "types": "./autofill/index.d.ts",
49
48
  "default": "./fesm2022/ng-primitives-autofill.mjs"
50
49
  },
51
- "./button": {
52
- "types": "./button/index.d.ts",
53
- "default": "./fesm2022/ng-primitives-button.mjs"
54
- },
55
50
  "./avatar": {
56
51
  "types": "./avatar/index.d.ts",
57
52
  "default": "./fesm2022/ng-primitives-avatar.mjs"
@@ -60,6 +55,10 @@
60
55
  "types": "./checkbox/index.d.ts",
61
56
  "default": "./fesm2022/ng-primitives-checkbox.mjs"
62
57
  },
58
+ "./button": {
59
+ "types": "./button/index.d.ts",
60
+ "default": "./fesm2022/ng-primitives-button.mjs"
61
+ },
63
62
  "./date-picker": {
64
63
  "types": "./date-picker/index.d.ts",
65
64
  "default": "./fesm2022/ng-primitives-date-picker.mjs"
@@ -128,6 +127,10 @@
128
127
  "types": "./roving-focus/index.d.ts",
129
128
  "default": "./fesm2022/ng-primitives-roving-focus.mjs"
130
129
  },
130
+ "./search": {
131
+ "types": "./search/index.d.ts",
132
+ "default": "./fesm2022/ng-primitives-search.mjs"
133
+ },
131
134
  "./select": {
132
135
  "types": "./select/index.d.ts",
133
136
  "default": "./fesm2022/ng-primitives-select.mjs"
@@ -136,22 +139,18 @@
136
139
  "types": "./slider/index.d.ts",
137
140
  "default": "./fesm2022/ng-primitives-slider.mjs"
138
141
  },
139
- "./search": {
140
- "types": "./search/index.d.ts",
141
- "default": "./fesm2022/ng-primitives-search.mjs"
142
- },
143
142
  "./switch": {
144
143
  "types": "./switch/index.d.ts",
145
144
  "default": "./fesm2022/ng-primitives-switch.mjs"
146
145
  },
147
- "./textarea": {
148
- "types": "./textarea/index.d.ts",
149
- "default": "./fesm2022/ng-primitives-textarea.mjs"
150
- },
151
146
  "./tabs": {
152
147
  "types": "./tabs/index.d.ts",
153
148
  "default": "./fesm2022/ng-primitives-tabs.mjs"
154
149
  },
150
+ "./textarea": {
151
+ "types": "./textarea/index.d.ts",
152
+ "default": "./fesm2022/ng-primitives-textarea.mjs"
153
+ },
155
154
  "./toast": {
156
155
  "types": "./toast/index.d.ts",
157
156
  "default": "./fesm2022/ng-primitives-toast.mjs"
@@ -168,5 +167,7 @@
168
167
  "types": "./utils/index.d.ts",
169
168
  "default": "./fesm2022/ng-primitives-utils.mjs"
170
169
  }
171
- }
170
+ },
171
+ "module": "fesm2022/ng-primitives.mjs",
172
+ "typings": "index.d.ts"
172
173
  }