@besaitech/ng-design-system 0.0.55 → 0.0.57
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 +7 -6
- package/fesm2022/besaitech-ng-design-system.mjs +390 -115
- package/fesm2022/besaitech-ng-design-system.mjs.map +1 -1
- package/index.d.ts +118 -31
- package/package.json +1 -1
- package/themes/base.css +13 -0
- package/themes/belvigo-emerald.css +22 -4
package/README.md
CHANGED
|
@@ -69,7 +69,8 @@ This is the step that makes the components look right. Tailwind v4 is CSS-first
|
|
|
69
69
|
@import "@besaitech/ng-design-system/themes/base.css";
|
|
70
70
|
@import "@besaitech/ng-design-system/themes/saitech.css"; /* blues */
|
|
71
71
|
/* @import "@besaitech/ng-design-system/themes/belvigo.css"; black */
|
|
72
|
-
/* @import "@besaitech/ng-design-system/themes/belvigo-emerald.css"; emerald (Belvigo merchant)
|
|
72
|
+
/* @import "@besaitech/ng-design-system/themes/belvigo-emerald.css"; emerald (Belvigo merchant);
|
|
73
|
+
keeps green primary fills in dark mode through the --sds-dark-* hooks listed in base.css */
|
|
73
74
|
|
|
74
75
|
/* Override any base default in your own @theme afterwards, e.g. the typeface. */
|
|
75
76
|
@theme {
|
|
@@ -171,16 +172,16 @@ Import names are the `Sl…` classes; the markup selectors are `sds-…`.
|
|
|
171
172
|
| Component | Selector | Notes |
|
|
172
173
|
| --- | --- | --- |
|
|
173
174
|
| `SdsButton` | `<sds-button>` | `variant` (primary·secondary·tertiary·ghost·danger), `size`, `loading`, `block`, `iconOnly`; `[sdsIconLeading]`/`[sdsIconTrailing]` slots |
|
|
174
|
-
| `SdsInput` | `<sds-input>` | CVA. `label`, `hint`, `error`, `size`, `appearance` (default·on-brand), `leading/trailingIcon`, `clearable` |
|
|
175
|
-
| `SdsTextarea` | `<sds-textarea>` | CVA. Auto-grow, `label`, `hint`, `error` |
|
|
175
|
+
| `SdsInput` | `<sds-input>` | CVA. `label`, `hint`, `error`, `size`, `appearance` (default·on-brand), `leading/trailingIcon`, `clearable`, `required`, `invalid`, `inputId` |
|
|
176
|
+
| `SdsTextarea` | `<sds-textarea>` | CVA. Auto-grow, `label`, `hint`, `error`, `required` |
|
|
176
177
|
| `SdsTimeInput` | `<sds-time-input>` | CVA time of day, 24 h, value `"HH:mm"` \| null; `minuteStep`, `clearable`, `withSeconds` |
|
|
177
178
|
| `SdsChipGroup` / `SdsChip` | `<sds-chip-group>` / `<sds-chip>` | Filter/choice chips: one or `multiple` (array), counts, `[(value)]` or CVA; single toggle chip `[(selected)]` |
|
|
178
179
|
| `SdsToggleSwitch` | `<sds-toggle-switch>` | CVA boolean toggle |
|
|
179
180
|
| `SdsSelect` | `<sds-select>` | CVA single-select dropdown |
|
|
180
|
-
| `SdsMultiSelect` | `<sds-multi-select>` | CVA multi-select with chips |
|
|
181
|
+
| `SdsMultiSelect` | `<sds-multi-select>` | CVA multi-select with chips; `(opened)` / `(closed)` (emits the selection) |
|
|
181
182
|
| `SdsDatePicker` / `SdsCalendar` | `<sds-date-picker>` / `<sds-calendar>` | CVA date field + popover calendar (`date-utils` helpers) |
|
|
182
183
|
| `SdsPhoneInput` | `<sds-phone-input>` | CVA phone field with country selector (`phone-countries`) |
|
|
183
|
-
| `SdsIcon` | `<sds-icon>` | Inline-SVG icon; `name`, `size`, `strokeWidth` |
|
|
184
|
+
| `SdsIcon` | `<sds-icon>` | Inline-SVG icon; `name`, `size`, `strokeWidth`, `filled` |
|
|
184
185
|
| `SdsAvatar` | `<sds-avatar>` | Image, initials or `fallbackIcon` + status dot; `shape` (circle·rounded·square), `decorative`; broken image falls back |
|
|
185
186
|
| `SdsBadge` | `<sds-badge>` | Status pill; `variant`, `dot` |
|
|
186
187
|
| `SdsCard` | `<sds-card>` | Surface container; `variant`, `interactive`, `padding` |
|
|
@@ -189,7 +190,7 @@ Import names are the `Sl…` classes; the markup selectors are `sds-…`.
|
|
|
189
190
|
|
|
190
191
|
| Component | Selectors |
|
|
191
192
|
| --- | --- |
|
|
192
|
-
| Tabs | `<sds-tabs>` · `<sds-tab-list>` · `<sds-tab>` · `<sds-tab-panels>` · `<sds-tab-panel>` — `controlled` + `(tabSelect)` for query-param/guarded tabs; panels optional |
|
|
193
|
+
| Tabs | `<sds-tabs>` · `<sds-tab-list>` · `<sds-tab>` · `<sds-tab-panels>` · `<sds-tab-panel>` — `controlled` + `(tabSelect)` for query-param/guarded tabs; panels optional; `<sds-tab-list [ariaLabel]>` |
|
|
193
194
|
| Accordion | `<sds-accordion>` · `<sds-accordion-panel>` · `<sds-accordion-header>` · `<sds-accordion-content>` |
|
|
194
195
|
| Table | `<sds-table>` · `ng-template[sdsCell]` · `[sdsHeader]` · `[sdsRowExpansion]` · `[sdsTableEmpty]` — `rowClickable`, `[rowClass]` |
|
|
195
196
|
| Paginator | `<sds-paginator>` |
|