@ardium-ui/ui 4.2.3 → 4.4.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.
Files changed (45) hide show
  1. package/esm2022/lib/_internal/form-field-component.mjs +1 -1
  2. package/esm2022/lib/_internal/selectable-list-component.mjs +1 -1
  3. package/esm2022/lib/calendar/calendar.component.mjs +20 -7
  4. package/esm2022/lib/calendar/calendar.defaults.mjs +3 -3
  5. package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +4 -4
  6. package/esm2022/lib/form-field/form-field-base.mjs +53 -0
  7. package/esm2022/lib/form-field/form-field-child.token.mjs +3 -0
  8. package/esm2022/lib/form-field/form-field-native-inputs.mjs +80 -0
  9. package/esm2022/lib/form-field/form-field.component.mjs +7 -28
  10. package/esm2022/lib/form-field/form-field.defaults.mjs +3 -1
  11. package/esm2022/lib/form-field/form-field.module.mjs +6 -1
  12. package/esm2022/lib/form-field/horizontal-form-field.component.mjs +7 -28
  13. package/esm2022/lib/form-field/index.mjs +2 -1
  14. package/esm2022/lib/form-field/label/label.component.mjs +10 -4
  15. package/esm2022/lib/inputs/date-input/date-input.component.mjs +4 -3
  16. package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +4 -3
  17. package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +4 -3
  18. package/esm2022/lib/inputs/input/input.component.mjs +4 -4
  19. package/esm2022/lib/inputs/number-input/number-input.component.mjs +4 -3
  20. package/esm2022/lib/inputs/password-input/password-input.component.mjs +4 -3
  21. package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +4 -4
  22. package/esm2022/lib/radio/radio-group.component.mjs +4 -3
  23. package/esm2022/lib/segment/segment.component.mjs +4 -4
  24. package/esm2022/lib/select/select.component.mjs +4 -3
  25. package/fesm2022/ardium-ui-ui.mjs +163 -53
  26. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  27. package/lib/_internal/form-field-component.d.ts +2 -1
  28. package/lib/_internal/selectable-list-component.d.ts +2 -1
  29. package/lib/calendar/calendar.component.d.ts +2 -2
  30. package/lib/calendar/calendar.defaults.d.ts +2 -2
  31. package/lib/form-field/form-field-base.d.ts +22 -0
  32. package/lib/form-field/form-field-child.token.d.ts +8 -0
  33. package/lib/form-field/form-field-native-inputs.d.ts +22 -0
  34. package/lib/form-field/form-field.component.d.ts +3 -15
  35. package/lib/form-field/form-field.defaults.d.ts +2 -0
  36. package/lib/form-field/form-field.module.d.ts +8 -7
  37. package/lib/form-field/horizontal-form-field.component.d.ts +3 -15
  38. package/lib/form-field/index.d.ts +1 -0
  39. package/lib/form-field/label/label.component.d.ts +4 -1
  40. package/package.json +1 -1
  41. package/prebuilt-themes/default/buttons/button.css +2 -2
  42. package/prebuilt-themes/default/form-field.css +13 -0
  43. package/prebuilt-themes/default/form-field.css.map +1 -1
  44. package/themes/default/buttons/button.scss +2 -2
  45. package/themes/default/form-field.scss +16 -0
@@ -1,4 +1,5 @@
1
1
  import { ControlValueAccessor } from '@angular/forms';
2
+ import { ArdFormFieldControl } from '../form-field/form-field-child.token';
2
3
  import { _NgModelComponentBase, _NgModelComponentDefaults } from './ngmodel-component';
3
4
  import * as i0 from "@angular/core";
4
5
  export interface _FormFieldComponentDefaults extends _NgModelComponentDefaults {
@@ -10,7 +11,7 @@ export declare const _formFieldComponentDefaults: _FormFieldComponentDefaults;
10
11
  *
11
12
  * **Warning**: `writeValue` function should be implemented on the child component!
12
13
  */
13
- export declare abstract class _FormFieldComponentBase extends _NgModelComponentBase implements ControlValueAccessor {
14
+ export declare abstract class _FormFieldComponentBase extends _NgModelComponentBase implements ControlValueAccessor, ArdFormFieldControl {
14
15
  protected readonly _DEFAULTS: _FormFieldComponentDefaults;
15
16
  readonly _required: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
16
17
  get required(): boolean;
@@ -1,4 +1,5 @@
1
1
  import { ControlValueAccessor } from '@angular/forms';
2
+ import { ArdFormFieldControl } from '../form-field/form-field-child.token';
2
3
  import { ArdOptionSimple, CompareWithFn, OptionContext } from '../types/item-storage.types';
3
4
  import { Nullable } from '../types/utility.types';
4
5
  import { _FormFieldComponentBase, _FormFieldComponentDefaults } from './form-field-component';
@@ -15,7 +16,7 @@ export interface _SelectableListComponentDefaults extends _FormFieldComponentDef
15
16
  maxSelectedItems: Nullable<number>;
16
17
  }
17
18
  export declare const _selectableListComponentDefaults: _SelectableListComponentDefaults;
18
- export declare abstract class _SelectableListComponentBase extends _FormFieldComponentBase implements ControlValueAccessor, SimpleItemStorageHost {
19
+ export declare abstract class _SelectableListComponentBase extends _FormFieldComponentBase implements ControlValueAccessor, SimpleItemStorageHost, ArdFormFieldControl {
19
20
  protected readonly _DEFAULTS: _SelectableListComponentDefaults;
20
21
  readonly itemStorage: SimpleItemStorage;
21
22
  readonly element: HTMLElement;
@@ -1,11 +1,11 @@
1
- import { _NgModelComponentBase } from '../_internal/ngmodel-component';
1
+ import { _FormFieldComponentBase } from '../_internal/form-field-component';
2
2
  import { ComponentColor } from '../types/colors.types';
3
3
  import { ArdCalendarDefaults } from './calendar.defaults';
4
4
  import { ArdCalendarDaysViewHeaderTemplateDirective, ArdCalendarDayTemplateDirective, ArdCalendarFloatingMonthTemplateDirective, ArdCalendarMonthsViewHeaderTemplateDirective, ArdCalendarMonthTemplateDirective, ArdCalendarWeekdayTemplateDirective, ArdCalendarYearsViewHeaderTemplateDirective, ArdCalendarYearTemplateDirective } from './calendar.directives';
5
5
  import { _CalendarTemplateRepositoryDirective } from './calendar.internal-directives';
6
6
  import { ArdCalendarFilterFn, ArdCalendarView } from './calendar.types';
7
7
  import * as i0 from "@angular/core";
8
- export declare class ArdiumCalendarComponent extends _NgModelComponentBase {
8
+ export declare class ArdiumCalendarComponent extends _FormFieldComponentBase {
9
9
  protected readonly _DEFAULTS: ArdCalendarDefaults;
10
10
  constructor(defaults: ArdCalendarDefaults);
11
11
  readonly color: import("@angular/core").InputSignal<ComponentColor>;
@@ -1,8 +1,8 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
- import { _NgModelComponentDefaults } from '../_internal/ngmodel-component';
2
+ import { _FormFieldComponentDefaults } from '../_internal/form-field-component';
3
3
  import { ComponentColor } from '../types/colors.types';
4
4
  import { ArdCalendarFilterFn, ArdCalendarView } from './calendar.types';
5
- export interface ArdCalendarDefaults extends _NgModelComponentDefaults {
5
+ export interface ArdCalendarDefaults extends _FormFieldComponentDefaults {
6
6
  color: ComponentColor;
7
7
  activeView: ArdCalendarView;
8
8
  activeYear: number;
@@ -0,0 +1,22 @@
1
+ import { ArdiumErrorDirective } from './error/error.directive';
2
+ import { ArdFormFieldControl } from './form-field-child.token';
3
+ import { ArdiumHintDirective } from './hint/hint.directive';
4
+ import { ArdiumLabelComponent } from './label/label.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare abstract class _FormFieldBase {
7
+ protected readonly _DEFAULTS: import("./form-field.defaults").ArdFormFieldDefaults;
8
+ readonly alignHintToLeftByDefault: boolean;
9
+ readonly control: import("@angular/core").Signal<ArdFormFieldControl | undefined>;
10
+ get controlHasError(): boolean | undefined;
11
+ get controlIsSuccess(): boolean | undefined;
12
+ get controlDisabled(): boolean | undefined;
13
+ get controlHtmlId(): string | undefined;
14
+ readonly label: import("@angular/core").Signal<ArdiumLabelComponent | undefined>;
15
+ readonly hints: import("@angular/core").Signal<readonly ArdiumHintDirective[]>;
16
+ readonly errors: import("@angular/core").Signal<readonly ArdiumErrorDirective[]>;
17
+ readonly hasAnyError: import("@angular/core").Signal<boolean>;
18
+ readonly reserveHintLine: import("@angular/core").InputSignalWithTransform<boolean, any>;
19
+ ngOnInit(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<_FormFieldBase, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_FormFieldBase, never, never, { "reserveHintLine": { "alias": "reserveHintLine"; "required": false; "isSignal": true; }; }, {}, ["control", "label", "hints", "errors"], never, false, never>;
22
+ }
@@ -0,0 +1,8 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export interface ArdFormFieldControl {
3
+ hasError: (() => boolean) | boolean;
4
+ isSuccess?: (() => boolean) | boolean;
5
+ disabled: (() => boolean) | boolean;
6
+ htmlId: (() => string) | string;
7
+ }
8
+ export declare const ARD_FORM_FIELD_CONTROL: InjectionToken<ArdFormFieldControl>;
@@ -0,0 +1,22 @@
1
+ import { Injector, Signal } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { ArdFormFieldControl } from './form-field-child.token';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ArdiumFormFieldNativeInputAdapterDirective implements ArdFormFieldControl {
6
+ readonly _required: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
7
+ get required(): boolean;
8
+ readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean, any>;
9
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
10
+ protected readonly _injector: Injector;
11
+ readonly wasTouched: import("@angular/core").WritableSignal<boolean>;
12
+ private _statusChangesSub?;
13
+ ngOnInit(): void;
14
+ protected _ngControl: NgControl | null;
15
+ readonly htmlId: import("@angular/core").InputSignal<string>;
16
+ readonly _hasError: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
17
+ private readonly _hasErrorInControl;
18
+ readonly hasError: Signal<boolean>;
19
+ ngOnDestroy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldNativeInputAdapterDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ArdiumFormFieldNativeInputAdapterDirective, "ard-form-field > input, ard-form-field > textarea, ard-form-field > select, ard-horizontal-form-field > input, ard-horizontal-form-field > textarea, ard-horizontal-form-field > select", never, { "_required": { "alias": "required"; "required": false; "isSignal": true; }; "isSuccess": { "alias": "isSuccess"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "_hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
22
+ }
@@ -1,19 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { _FormFieldComponentBase } from '../_internal/form-field-component';
3
- import { ArdiumErrorDirective } from './error/error.directive';
4
- import { ArdiumHintDirective } from './hint/hint.directive';
5
- import { ArdiumLabelComponent } from './label/label.component';
2
+ import { _FormFieldBase } from './form-field-base';
6
3
  import * as i0 from "@angular/core";
7
- export declare class ArdiumFormFieldComponent implements OnInit {
8
- protected readonly _DEFAULTS: import("./form-field.defaults").ArdFormFieldDefaults;
9
- readonly alignHintToLeftByDefault: boolean;
10
- readonly control: import("@angular/core").Signal<_FormFieldComponentBase | undefined>;
11
- readonly label: import("@angular/core").Signal<ArdiumLabelComponent | undefined>;
12
- readonly hints: import("@angular/core").Signal<readonly ArdiumHintDirective[]>;
13
- readonly errors: import("@angular/core").Signal<readonly ArdiumErrorDirective[]>;
14
- readonly hasAnyError: import("@angular/core").Signal<boolean>;
15
- readonly reserveHintLine: import("@angular/core").InputSignalWithTransform<boolean, any>;
16
- ngOnInit(): void;
4
+ export declare class ArdiumFormFieldComponent extends _FormFieldBase implements OnInit {
17
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldComponent, "ard-form-field", never, { "reserveHintLine": { "alias": "reserveHintLine"; "required": false; "isSignal": true; }; }, {}, ["control", "label", "hints", "errors"], ["ard-label, [ard-label]", "*", "ard-error, [ard-error]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[left], [ard-hint][left]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[right], [ard-hint][right]"], false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumFormFieldComponent, "ard-form-field", never, {}, {}, never, ["ard-label, [ard-label]", "*", "ard-error, [ard-error]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[left], [ard-hint][left]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[right], [ard-hint][right]"], false, never>;
19
7
  }
@@ -3,6 +3,8 @@ import { SimpleOneAxisAlignment } from './../types/alignment.types';
3
3
  export interface ArdFormFieldDefaults {
4
4
  defaultHintAlign: SimpleOneAxisAlignment;
5
5
  reserveHintLine: boolean;
6
+ labelRequiredText: string;
7
+ labelOptionalText: string;
6
8
  }
7
9
  export declare const ARD_FORM_FIELD_DEFAULTS: InjectionToken<ArdFormFieldDefaults>;
8
10
  export declare function provideFormFieldDefaults(config: Partial<ArdFormFieldDefaults>): Provider;
@@ -1,14 +1,15 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./form-field.component";
3
3
  import * as i2 from "./horizontal-form-field.component";
4
- import * as i3 from "./label/label.component";
5
- import * as i4 from "./hint/hint.component";
6
- import * as i5 from "./error/error.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "./hint/hint.directive";
9
- import * as i8 from "./error/error.directive";
4
+ import * as i3 from "./form-field-native-inputs";
5
+ import * as i4 from "./label/label.component";
6
+ import * as i5 from "./hint/hint.component";
7
+ import * as i6 from "./error/error.component";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "./hint/hint.directive";
10
+ import * as i9 from "./error/error.directive";
10
11
  export declare class ArdiumFormFieldModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumFormFieldModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumFormFieldModule, [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumLabelComponent, typeof i4.ArdiumHintComponent, typeof i5.ArdiumErrorComponent], [typeof i6.CommonModule, typeof i7.ArdiumHintDirective, typeof i8.ArdiumErrorDirective], [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumLabelComponent, typeof i4.ArdiumHintComponent, typeof i5.ArdiumErrorComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumFormFieldModule, [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumFormFieldNativeInputAdapterDirective, typeof i4.ArdiumLabelComponent, typeof i5.ArdiumHintComponent, typeof i6.ArdiumErrorComponent], [typeof i7.CommonModule, typeof i8.ArdiumHintDirective, typeof i9.ArdiumErrorDirective], [typeof i1.ArdiumFormFieldComponent, typeof i2.ArdiumHorizontalFormFieldComponent, typeof i3.ArdiumFormFieldNativeInputAdapterDirective, typeof i4.ArdiumLabelComponent, typeof i5.ArdiumHintComponent, typeof i6.ArdiumErrorComponent]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumFormFieldModule>;
14
15
  }
@@ -1,19 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { _FormFieldComponentBase } from '../_internal/form-field-component';
3
- import { ArdiumErrorDirective } from './error/error.directive';
4
- import { ArdiumHintDirective } from './hint/hint.directive';
5
- import { ArdiumLabelComponent } from './label/label.component';
2
+ import { _FormFieldBase } from './form-field-base';
6
3
  import * as i0 from "@angular/core";
7
- export declare class ArdiumHorizontalFormFieldComponent implements OnInit {
8
- protected readonly _DEFAULTS: import("./form-field.defaults").ArdFormFieldDefaults;
9
- readonly alignHintToLeftByDefault: boolean;
10
- readonly control: import("@angular/core").Signal<_FormFieldComponentBase | undefined>;
11
- readonly label: import("@angular/core").Signal<ArdiumLabelComponent | undefined>;
12
- readonly hints: import("@angular/core").Signal<readonly ArdiumHintDirective[]>;
13
- readonly errors: import("@angular/core").Signal<readonly ArdiumErrorDirective[]>;
14
- readonly hasAnyError: import("@angular/core").Signal<boolean>;
15
- readonly reserveHintLine: import("@angular/core").InputSignalWithTransform<boolean, any>;
16
- ngOnInit(): void;
4
+ export declare class ArdiumHorizontalFormFieldComponent extends _FormFieldBase implements OnInit {
17
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumHorizontalFormFieldComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumHorizontalFormFieldComponent, "ard-horizontal-form-field", never, { "reserveHintLine": { "alias": "reserveHintLine"; "required": false; "isSignal": true; }; }, {}, ["control", "label", "hints", "errors"], ["ard-label, [ard-label]", "*", "ard-error, [ard-error]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[left], [ard-hint][left]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[right], [ard-hint][right]"], false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumHorizontalFormFieldComponent, "ard-horizontal-form-field", never, {}, {}, never, ["ard-label, [ard-label]", "*", "ard-error, [ard-error]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[left], [ard-hint][left]", "ard-hint:not([left]):not([right]), [ard-hint]:not([left]):not([right])", "ard-hint[right], [ard-hint][right]"], false, never>;
19
7
  }
@@ -1,5 +1,6 @@
1
1
  export * from './error/error.component';
2
2
  export * from './error/error.directive';
3
+ export * from './form-field-native-inputs';
3
4
  export * from './form-field.component';
4
5
  export * from './form-field.module';
5
6
  export * from './hint/hint.component';
@@ -1,8 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ArdiumLabelComponent {
3
+ protected readonly _DEFAULTS: import("../form-field.defaults").ArdFormFieldDefaults;
3
4
  readonly required: import("@angular/core").InputSignalWithTransform<boolean, any>;
4
5
  readonly optional: import("@angular/core").InputSignalWithTransform<boolean, any>;
6
+ readonly requiredText: import("@angular/core").InputSignal<string>;
7
+ readonly optionalText: import("@angular/core").InputSignal<string>;
5
8
  constructor();
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumLabelComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumLabelComponent, "ard-label", never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumLabelComponent, "ard-label", never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "requiredText": { "alias": "requiredText"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
8
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ardium-ui/ui",
3
- "version": "4.2.3",
3
+ "version": "4.4.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -15,7 +15,7 @@ ard-button {
15
15
  cursor: pointer;
16
16
  outline: none;
17
17
  background: transparent;
18
- gap: 6px;
18
+ gap: 0.375rem;
19
19
  font-size: 0.875rem;
20
20
  height: 2.5em;
21
21
  padding: 0 1.2em;
@@ -244,7 +244,7 @@ ard-button {
244
244
  .ard-button .ard-button-content {
245
245
  display: flex;
246
246
  align-items: center;
247
- gap: 0.875rem;
247
+ gap: 0.375rem;
248
248
  }
249
249
  .ard-button.ard-align-left {
250
250
  flex-direction: row;
@@ -15,6 +15,19 @@ ard-horizontal-form-field {
15
15
  font-size: 0.9375rem;
16
16
  font-weight: 500;
17
17
  }
18
+ .ard-form-field .ard-label .ard-label__required .ard-label__required-optional-text,
19
+ .ard-horizontal-form-field .ard-label .ard-label__required .ard-label__required-optional-text {
20
+ font-weight: 500;
21
+ color: orangered;
22
+ font-size: 112.5%;
23
+ line-height: 1;
24
+ }
25
+ .ard-form-field .ard-label .ard-label__optional .ard-label__required-optional-text,
26
+ .ard-horizontal-form-field .ard-label .ard-label__optional .ard-label__required-optional-text {
27
+ font-weight: 400;
28
+ font-size: 0.8125rem;
29
+ font-style: italic;
30
+ }
18
31
  .ard-form-field .ard-form-field__hints,
19
32
  .ard-horizontal-form-field .ard-form-field__hints {
20
33
  padding: 0.125rem 0 0.25rem 0.125rem;
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/form-field.scss","../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAEA;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAEF;AAAA;EACE;EACA;EACA;;AAEA;AAAA;EACE;EACA;;AAIF;AAAA;EACE;;AAGJ;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;;AAEF;AAAA;EACE,OCjCI;;ADmCN;AAAA;EACE,OCkCQ;EDjCR;EACA;;AAIA;AAAA;EACE,OC2BM;;ADvBR;AAAA;EACE,OCgDO;;AD5CT;AAAA;EACE;;AAEF;AAAA;EACE;;;AAIN;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEF;EACE;;AAIA;EACE;;;AAKN;EACE;IACE;;EAEF;IACE","file":"form-field.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/form-field.scss","../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAEA;AAAA;EAEE;EACA;;;AAGF;AAAA;EAEE;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAGE;AAAA;EACE;EACA;EACA;EACA;;AAIF;AAAA;EACE;EACA;EACA;;AAIN;AAAA;EACE;EACA;EACA;;AAEA;AAAA;EACE;EACA;;AAIF;AAAA;EACE;;AAGJ;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;;AAEF;AAAA;EACE,OCjDI;;ADmDN;AAAA;EACE,OCkBQ;EDjBR;EACA;;AAIA;AAAA;EACE,OCWM;;ADPR;AAAA;EACE,OCgCO;;AD5BT;AAAA;EACE;;AAEF;AAAA;EACE;;;AAIN;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEF;EACE;;AAIA;EACE;;;AAKN;EACE;IACE;;EAEF;IACE","file":"form-field.css"}
@@ -9,7 +9,7 @@ ard-button {
9
9
  .ard-button {
10
10
  @include shared.button;
11
11
  background: transparent;
12
- gap: 6px;
12
+ gap: 0.375rem;
13
13
  font-size: 0.875rem;
14
14
  height: 2.5em;
15
15
  padding: 0 1.2em;
@@ -22,7 +22,7 @@ ard-button {
22
22
  .ard-button-content {
23
23
  display: flex;
24
24
  align-items: center;
25
- gap: 0.875rem;
25
+ gap: 0.375rem;
26
26
  }
27
27
 
28
28
  //! aligns
@@ -15,6 +15,22 @@ ard-horizontal-form-field {
15
15
  padding: 0.25rem 0 0.125rem 0.125rem;
16
16
  font-size: 0.9375rem;
17
17
  font-weight: 500;
18
+
19
+ .ard-label__required {
20
+ .ard-label__required-optional-text {
21
+ font-weight: 500;
22
+ color: orangered;
23
+ font-size: 112.5%;
24
+ line-height: 1;
25
+ }
26
+ }
27
+ .ard-label__optional {
28
+ .ard-label__required-optional-text {
29
+ font-weight: 400;
30
+ font-size: 0.8125rem;
31
+ font-style: italic;
32
+ }
33
+ }
18
34
  }
19
35
  .ard-form-field__hints {
20
36
  padding: 0.125rem 0 0.25rem 0.125rem;