@assistanz/carbideui 1.4.0 → 1.5.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.
package/README.md CHANGED
@@ -25,6 +25,7 @@ An independent, community-driven Angular component library inspired by the [Carb
25
25
  - [Tooltip & Skeleton](#tooltip--skeleton)
26
26
  - [Navigation — Tabs & Accordion](#navigation--tabs--accordion)
27
27
  - [Charts](#charts)
28
+ - [Layout & Display](#layout--display)
28
29
  - [Theming](#theming)
29
30
  - [Reactive Forms](#reactive-forms)
30
31
  - [Accessibility](#accessibility)
@@ -54,10 +55,11 @@ Add the following to your global stylesheet (`src/styles.scss`):
54
55
  );
55
56
 
56
57
  @use '@carbon/styles';
57
- @use '@assistanz/carbideui/styles';
58
+ @use '@assistanz/carbideui/styles/carbon';
58
59
  ```
59
60
 
60
- > Without this, components will render unstyled.
61
+ > Without this, components will render unstyled. The path is `styles/carbon`; `@assistanz/carbideui/styles`
62
+ > alone does not resolve.
61
63
 
62
64
  ---
63
65
 
@@ -113,6 +115,54 @@ import { NgccInput } from '@assistanz/carbideui';
113
115
  ```
114
116
  ---
115
117
 
118
+ ### Layout & Display
119
+
120
+ New in 1.4.0: `ngcc-page-header` (breadcrumbs, title, actions), `ngcc-stepper` (multi-step progress),
121
+ `ngcc-avatar`, `ngcc-popover` (non-modal), `ngcc-page-grid` with `ngccGridSpan`, and `ngcc-panel-grid`.
122
+
123
+ ```html
124
+ <ngcc-stepper [steps]="steps" [(current)]="step" ariaLabel="Create client" />
125
+
126
+ <ngcc-popover label="Cluster details" placement="bottom-start">
127
+ <button ngccPopoverTrigger class="cds--btn cds--btn--ghost">Details</button>
128
+ <p>Region eu-west-1, 12 nodes</p>
129
+ </ngcc-popover>
130
+
131
+ <ngcc-avatar name="Ada Lovelace" size="lg" />
132
+ ```
133
+
134
+ Charts also gain `stackedArea`, `combo`, `horizontalBar` and `heatmap` types, threshold lines, and
135
+ `ngcc-sparkline` / `[sparkline]` trends on `ngcc-stat-tile`. Tables gain status cells, expandable rows and
136
+ single-row selection. Tabs use equal widths for 2–4 tabs, content width with horizontal scrolling from 5, and
137
+ show a tooltip when a label is cut off.
138
+
139
+ ### Theming
140
+
141
+ Three independent settings, each an attribute on `<html>`, owned by `NgccThemeService`:
142
+
143
+ | Setting | Values |
144
+ | ---------------------- | ---------------------------------- |
145
+ | Color theme | `white`, `g10`, `g90`, `g100` |
146
+ | Corner style | `square`, `rounded`, `curved` |
147
+ | Button label alignment | `left`, `centered` |
148
+
149
+ Apply a theme at start-up, with an optional ready-made color theme (`ocean`, `royal` or `ember`):
150
+
151
+ ```typescript
152
+ bootstrapApplication(AppComponent, {
153
+ providers: [
154
+ provideNgccTheme({ defaultTheme: 'white' }),
155
+ provideNgccColorTheme({ defaultPreset: 'ocean' }),
156
+ ],
157
+ });
158
+ ```
159
+
160
+ Users can change these at runtime with `<ngcc-theme-switcher />` and `<ngcc-color-theme-switcher />`; their
161
+ choice is saved and wins over your defaults. See the
162
+ [V1.4.0 usage reference](https://github.com/assistanz/carbideui/blob/main/docs/V1.4.0_USAGE_REFERENCE.md).
163
+
164
+ ---
165
+
116
166
  ## Reactive Forms
117
167
 
118
168
  ```typescript
@@ -183,11 +233,10 @@ bootstrapApplication(AppComponent);
183
233
  ```
184
234
 
185
235
  **Theme does not change**
186
- Use the signal setter — direct assignment does not trigger reactivity:
236
+ Use `NgccThemeService`, which is the only owner of the theme attributes. Do not set `data-carbon-theme` yourself.
187
237
 
188
238
  ```typescript
189
- this.themeService.baseTheme.set('g90'); // correct
190
- this.themeService.baseTheme = 'g90'; // does not work
239
+ inject(NgccThemeService).setTheme('g90');
191
240
  ```
192
241
 
193
242
  ---
@@ -196,8 +245,8 @@ this.themeService.baseTheme = 'g90'; // does not work
196
245
 
197
246
  | Dependency | Version |
198
247
  | --------------- | ------------------ |
199
- | Angular | ^20.0.0 |
200
- | @carbon/styles | ^1.98.0 |
248
+ | Angular | >=20 <22 |
249
+ | @carbon/styles | ^1.102.0 |
201
250
  | @carbon/charts | ^1.27.0 |
202
251
  | TypeScript | ~5.9 |
203
252
  | Node.js | >=20 |
@@ -208,7 +257,8 @@ this.themeService.baseTheme = 'g90'; // does not work
208
257
 
209
258
  - [GitHub Repository](https://github.com/assistanz/carbideui)
210
259
  - [Storybook / Interactive Docs](https://assistanz.github.io/carbideui)
211
- - [Component Usage Reference](https://github.com/assistanz/carbideui/blob/main/COMPONENT_USAGE_REFERENCE.md)
260
+ - [Component Usage Reference](https://github.com/assistanz/carbideui/blob/main/docs/COMPONENT_USAGE_REFERENCE.md)
261
+ - [Release Notes 1.4.0](https://github.com/assistanz/carbideui/blob/main/docs/RELEASE_NOTES_1.4.0.md)
212
262
  - [Changelog](https://github.com/assistanz/carbideui/blob/main/CHANGELOG.md)
213
263
  - [Issue Tracker](https://github.com/assistanz/carbideui/issues)
214
264
  - [Contributing Guide](https://github.com/assistanz/carbideui/blob/main/.github/CONTRIBUTING.md)