Commit Graph

12 Commits

Author SHA1 Message Date
Marc Stammerjohann ae85c62f14 feat: support styles for input, input-group and textarea (#1352)
* feat(textarea): support styles, remove error variants, update examples

* feat(input): support styles, remove error variants, more examples

* update sidebar-input

* feat(input-group): support styles, update examples

* feat: update snaphot

* feat(input-group): remove invalid state as css selector check for descendant

* fix(input): test

* chore: update hlm files

* fix(input): lint issues

* fix(input): update tests, classes are now applied via spartan-input and in cli copied
2026-05-07 15:56:38 +02:00
Sammy Mohamed 3f743e19f7 feat: better form control integration (#1053)
* feat: better form control integration

- general a11y described by service
- hint and error stories
- datepicker value type
- mock resizeObserver causing select failure
- form desciption test failures

* feat: autocomplete and combobox

- re-implemented form integration based on latest implementation

* fix: error state

* fix: formatting

* chore: update snapshot

* fix: format

* fix: update snapshot

* fix: autocomplete stories

* fix: test

* fix: remove not needed effects

* fix: call onTouched when autocomplete focus out

* fix: evaluate only error state in field

* fix: fix slider classes and field integration

* fix: set correct error styles to input group

* feat: add native select field control support

* fix: implement field control

* fix: emit touched when blurred for combobox

* fix: add invalid support for combobox multiple

* fix: fix autcomplete search and input styles

* feat: improve control state data attributes and hlm-error

- render hlm-error if error presetn
- add touched, dirty and matches-spartan-invalid attributes

* feat: apply field control as host directive

* test: fix some control error stories WIP

* fix: lint issues w/ type imports and sort order

* chore: remove form-field package as it is replaced by field

* chore: update snapshot

* fix: fix autocomplete providers array and error story

* fix: fix select, field error and input group

* docs: fix reactive forms examples WIP

* feat: add healthcheck and migration for hlm-form-field to hlm-field

* fix: add value accessor to date-picker multi

* docs: update field for/id

* fix: fix checkbox and rename CVA providers

* fix: add and fix tests

* docs(field): update headings

* feat(autocomplete): add inputId

* feat(combobox): add input/button id

* chore: update snapshot

* docs(date-picker): use hlm field

* docs(field): add native-select example, simplify selectId

* docs: use hlm-field for date-picker blocks

* feat: update form field usage in autocomplete story

* fix(input): unit test and remove unused ngControl

* fix: comment out missing errorState in select

* feat: remove ng-* classes

* feat: remove unused code

* fix: comment out error in unit tests

* feat: set label for attribute automatically

* refactor: rename variable

* docs: add brain input and textarea docs

* fix: apply button styles in storybook

* fix: fix select test and add missing attributes

* feat: add attributes to switch

* fix: fix field e2e tests and lint errors

* chore: fix format

* fix: add optional chain

* feat(select): add controls and aria labels to brn-select-trigger

* fix: update default value for select demo

* docs(select): add form example

* chore: update snapshot

* fix(select): add optional chain for aria-invalid

* feat(select): update e2e test form attributes

* fix(input): form unit test

* fix(select): update unit test template, add HlmFieldControlDescribedBy to select trigger button

* fix(combobox): use new combobox template for unit test

* add hlmFieldControlDescribedBy to combobox trigger button

* chore: remove console log from unit test

* fix(checkbox): use buttonName instead of id

* fix: lint issue w/ import

* test: fix unit tests

* docs: add field date picker preview

* docs: fix blocks and reactive forms

* docs: improve control, field and forms docs

* feat: add provider for error matcher

* chore: rename var

* fix: replace aria-invalid in registry styles

* feat: move state to brn, add to combo tigger

* chore: format

* feat(combobox): apply form attributes on brnComboboxTrigger

* remove need for applyControlState

* chore: update snapshot

* docs: update container width for the responsive select demo

* fix: remove aria invalid and fix chips focus styles

* feat(field): move HlmFieldControlDescribedBy and HlmFieldA11yService into brain package

* chore: update snapshot

* feat(field): update id input handling, update styles

* docs: update form examples to required

* feat: add forceInvalid to brn-field and brn-checkbox

* allow overrides to data-invalid and data-matches-spartan-invalid

* fix: add error if ngControl.control is not defined

---------

Co-authored-by: Merlin <merlin.moos@oldendorff.com>
Co-authored-by: Toni Škobić <toni.skobic@gmail.com>
Co-authored-by: Marc Stammerjohann <8985933+marcjulian@users.noreply.github.com>
2026-03-31 12:41:44 +02:00
oussema sahbeni 66256d8ec1 fix(input-group): update padding classes for RTL support 2026-01-02 22:59:28 +01:00
Ashley Hunter 3c0ab73226 refactor: replace hlm with new classes utility (#1086)
* feat: adding classes util

* fix: improving hlm

* fix: classes

* fix: classes tests and linting

* feat: adding tests

* fix: perf

* fix: perf improvements

* test: fixing tests
2025-12-22 16:06:40 +01:00
Marc Stammerjohann fe32745835 feat: input group polishing (#1026)
* feat(input-group): add type button

* refactor(input-group): move data-slot above class

* docs(input-group): use hlm-spinner for spinner example, fix text code snippet

* docs(input-group): form example
2025-11-17 18:16:24 +01:00
Marc Stammerjohann 1751394540 feat: use ng-icon in spinner (#977)
* feat(spinner): replace spinner svg with ng-icon and lucideLoader2 as default icon

* feat(empty): add hlm-empty-* selector, fix empty-content style typo

* change media target ng-icon text-* instead of size-*

* feat(item): add hlm-item-* selectors

* docs(spinner): add more examples

* chore: update snapshot

* docs(button): update spinner example

* refactor: change ng-icon size selector to target text-* size instead
2025-10-31 17:15:55 +01:00
moosme 0404376bbe feat: tailwind update and renew website style (#939)
* feat: polish the website and tailwind 4

* feat: fix context menu

* feat: add components page

* feat: add components page

* feat: add new label #924 and restyle

* feat: polish website and remove docsearch

* feat: add custom docsearch

* feat: storybook setup tailwind 4 (wip)

* feat: change css layer order

* feat: change title restructure code

* feat: finalize docs

* feat: storybook fix

* feat: fix missing links

* feat: fix tests

* feat: fix styling and wip links

* feat: fix spacing

* feat: add github stars

* feat: fix tests

* feat: align style

* fix: resolve comments

---------

Co-authored-by: Merlin <merlin.moos@oldendorff.com>
2025-10-22 08:40:51 +02:00
Merlin ca4081d166 feat(input-group): finalize docs 2025-10-16 14:26:00 +02:00
Merlin d531f74447 feat(input-group): polish input group 2025-10-16 10:51:53 +02:00
Merlin Moos 9637ade315 feat(input-group): rework input-group 2025-10-10 22:16:16 +02:00
Merlin 1fde374690 feat(input-group): create more hlm components 2025-09-28 23:16:13 +02:00
Merlin 40698f5dbd feat(input-group): add input group #598 2025-09-24 16:02:44 +02:00