@cngx/common 0.1.0-rc.4 → 0.1.0-rc.6

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.
@@ -8,7 +8,7 @@ export * from '@cngx/common/popover';
8
8
  import { makeVersion } from '@cngx/utils';
9
9
 
10
10
  /** @internal — replaced at publish time, not part of consumer API. */
11
- const VERSION = makeVersion('0.1.0-rc.4');
11
+ const VERSION = makeVersion('0.1.0-rc.6');
12
12
 
13
13
  /**
14
14
  * Public API Surface of @cngx/common
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cngx/common",
3
- "version": "0.1.0-rc.4",
3
+ "version": "0.1.0-rc.6",
4
4
  "description": "Atoms and molecules (a11y, interactive, layout, dialog, popover, display) for the CNGX Angular component library.",
5
5
  "keywords": [
6
6
  "cngx",
@@ -55,6 +55,10 @@
55
55
  "types": "./types/cngx-common-a11y.d.ts",
56
56
  "default": "./fesm2022/cngx-common-a11y.mjs"
57
57
  },
58
+ "./audio": {
59
+ "types": "./types/cngx-common-audio.d.ts",
60
+ "default": "./fesm2022/cngx-common-audio.mjs"
61
+ },
58
62
  "./card": {
59
63
  "types": "./types/cngx-common-card.d.ts",
60
64
  "default": "./fesm2022/cngx-common-card.mjs"
@@ -30,11 +30,12 @@
30
30
  @layer cngx.tokens {
31
31
  /**
32
32
  * Header button padding. The pixel `initial-value` is only the un-set
33
- * fallback; `@cngx/ui/accordion` SETs this from `--cngx-space-*` at its group
34
- * default (`accordion-group.component.css` `:not([data-skin])`) so a global
35
- * `[data-density]` re-scales it. Never put `var()` in the `initial-value` (it
36
- * is invalid, and a registered initial-value defeats any `var()` fallback -
37
- * reference_property_color_initial_defeats_fallback); derive via a host SET.
33
+ * fallback; the standalone `[cngxAccordion]` host SETs this from
34
+ * `--cngx-space-*` (below) so a global `[data-density]` re-scales a bare
35
+ * `@cngx/common` accordion, and the `@cngx/ui/accordion` organism SETs the
36
+ * same tokens at its group default. Never put `var()` in the `initial-value`
37
+ * (it is invalid, and a registered initial-value defeats any `var()` fallback
38
+ * - reference_property_color_initial_defeats_fallback); derive via a host SET.
38
39
  * @group Header
39
40
  */
40
41
  @property --cngx-accordion-header-padding {
@@ -86,6 +87,16 @@
86
87
 
87
88
  @layer cngx.components {
88
89
  [cngxAccordion] {
90
+ /* Derive header + region padding from the scale so a bare @cngx/common
91
+ accordion densifies at its own default host - standalone use must not
92
+ depend on the @cngx/ui/accordion organism (which SETs the same tokens at
93
+ its group default). Both @property tokens are inherits:true, so this host
94
+ SET reaches the header / region descendants. 0.75rem 1rem -> sm md. */
95
+ --cngx-accordion-header-padding: var(--cngx-space-sm, 8px) var(--cngx-space-md, 16px);
96
+ --cngx-accordion-region-padding: var(--cngx-space-sm, 8px) var(--cngx-space-md, 16px);
97
+ /* Label/twisty gap on the header button - derived from the scale too, via
98
+ the same token the @cngx/ui organism uses. 0.5rem -> sm. */
99
+ --cngx-accordion-header-gap: var(--cngx-space-sm, 8px);
89
100
  display: block;
90
101
  border: 1px solid var(--cngx-accordion-border-color, oklch(0.88 0.005 250));
91
102
  border-radius: var(--cngx-radius-md, 0.375rem);
@@ -96,7 +107,7 @@
96
107
  display: flex;
97
108
  align-items: center;
98
109
  justify-content: space-between;
99
- gap: 0.5rem;
110
+ gap: var(--cngx-accordion-header-gap, 0.5rem);
100
111
  inline-size: 100%;
101
112
  padding: var(--cngx-accordion-header-padding, 0.75rem 1rem);
102
113
  border: 0;
@@ -34,7 +34,7 @@
34
34
  @property --cngx-breadcrumb-gap {
35
35
  syntax: '<length>';
36
36
  inherits: true;
37
- initial-value: 0.5rem;
37
+ initial-value: 8px;
38
38
  }
39
39
 
40
40
  /**
@@ -83,7 +83,6 @@
83
83
  @property --cngx-dga-fs {
84
84
  syntax: '*';
85
85
  inherits: true;
86
- initial-value: inherit;
87
86
  }
88
87
 
89
88
  /**
@@ -129,7 +128,7 @@
129
128
  @property --cngx-dga-col-sm {
130
129
  syntax: '<length>';
131
130
  inherits: true;
132
- initial-value: 5rem;
131
+ initial-value: 80px;
133
132
  }
134
133
 
135
134
  /**
@@ -139,7 +138,7 @@
139
138
  @property --cngx-dga-col-md {
140
139
  syntax: '<length>';
141
140
  inherits: true;
142
- initial-value: 7rem;
141
+ initial-value: 112px;
143
142
  }
144
143
 
145
144
  /**
@@ -149,6 +148,6 @@
149
148
  @property --cngx-dga-col-lg {
150
149
  syntax: '<length>';
151
150
  inherits: true;
152
- initial-value: 10rem;
151
+ initial-value: 160px;
153
152
  }
154
153
  }
@@ -88,7 +88,7 @@
88
88
  @property --cngx-slider-length {
89
89
  syntax: '<length>';
90
90
  inherits: true;
91
- initial-value: 9rem;
91
+ initial-value: 144px;
92
92
  }
93
93
  }
94
94