@cngx/common 0.1.0-rc.5 → 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.
- package/fesm2022/cngx-common-data.mjs +2 -2
- package/fesm2022/cngx-common-display.mjs +8 -8
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +6 -6
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common.mjs +1 -1
- package/package.json +1 -1
- package/theming/components/cngx-accordion.css +17 -6
- package/theming/components/cngx-breadcrumb.css +1 -1
- package/theming/components/cngx-data-grid.css +3 -4
- package/theming/components/cngx-slider.css +1 -1
package/fesm2022/cngx-common.mjs
CHANGED
|
@@ -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.
|
|
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
|
@@ -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;
|
|
34
|
-
*
|
|
35
|
-
* `
|
|
36
|
-
*
|
|
37
|
-
*
|
|
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;
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
151
|
+
initial-value: 160px;
|
|
153
152
|
}
|
|
154
153
|
}
|