@latitude-ui/widgets 0.0.13 → 0.0.15

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 (197) hide show
  1. package/README.md +2 -2
  2. package/button/index.d.ts +19 -0
  3. package/checkbox/{src/checkbox.component.d.ts → index.d.ts} +6 -3
  4. package/core/index.d.ts +39 -0
  5. package/fesm2022/latitude-ui-widgets-button.mjs +51 -0
  6. package/fesm2022/latitude-ui-widgets-button.mjs.map +1 -0
  7. package/fesm2022/latitude-ui-widgets-checkbox.mjs +40 -0
  8. package/fesm2022/latitude-ui-widgets-checkbox.mjs.map +1 -0
  9. package/fesm2022/latitude-ui-widgets-core.mjs +116 -0
  10. package/fesm2022/latitude-ui-widgets-core.mjs.map +1 -0
  11. package/fesm2022/latitude-ui-widgets-icons.mjs +118 -0
  12. package/fesm2022/latitude-ui-widgets-icons.mjs.map +1 -0
  13. package/fesm2022/latitude-ui-widgets-input.mjs +225 -0
  14. package/fesm2022/latitude-ui-widgets-input.mjs.map +1 -0
  15. package/fesm2022/latitude-ui-widgets-listbox.mjs +51 -0
  16. package/fesm2022/latitude-ui-widgets-listbox.mjs.map +1 -0
  17. package/fesm2022/latitude-ui-widgets-select.mjs +316 -0
  18. package/fesm2022/latitude-ui-widgets-select.mjs.map +1 -0
  19. package/fesm2022/latitude-ui-widgets-switch.mjs +37 -0
  20. package/fesm2022/latitude-ui-widgets-switch.mjs.map +1 -0
  21. package/fesm2022/latitude-ui-widgets-textbox-number.mjs +168 -0
  22. package/fesm2022/latitude-ui-widgets-textbox-number.mjs.map +1 -0
  23. package/fesm2022/latitude-ui-widgets-textbox.mjs +62 -0
  24. package/fesm2022/latitude-ui-widgets-textbox.mjs.map +1 -0
  25. package/fesm2022/latitude-ui-widgets-toolbar.mjs +20 -0
  26. package/fesm2022/latitude-ui-widgets-toolbar.mjs.map +1 -0
  27. package/fesm2022/latitude-ui-widgets.mjs +6 -0
  28. package/fesm2022/latitude-ui-widgets.mjs.map +1 -0
  29. package/icons/index.d.ts +19 -0
  30. package/index.d.ts +2 -0
  31. package/input/index.d.ts +116 -0
  32. package/listbox/index.d.ts +23 -0
  33. package/package.json +30 -45
  34. package/select/index.d.ts +74 -0
  35. package/switch/{src/switch.component.d.ts → index.d.ts} +6 -3
  36. package/textbox/index.d.ts +26 -0
  37. package/textbox-number/index.d.ts +44 -0
  38. package/toolbar/{src/toolbar.component.d.ts → index.d.ts} +5 -2
  39. package/button/latitude-ui-widgets-button.d.ts +0 -5
  40. package/button/public-api.d.ts +0 -2
  41. package/button/src/button.component.d.ts +0 -14
  42. package/button/src/button.types.d.ts +0 -2
  43. package/checkbox/latitude-ui-widgets-checkbox.d.ts +0 -5
  44. package/checkbox/public-api.d.ts +0 -1
  45. package/combobox/latitude-ui-widgets-combobox.d.ts +0 -5
  46. package/combobox/public-api.d.ts +0 -2
  47. package/core/latitude-ui-widgets-core.d.ts +0 -5
  48. package/core/public-api.d.ts +0 -6
  49. package/core/src/dimensions.d.ts +0 -13
  50. package/core/src/illegal.d.ts +0 -2
  51. package/core/src/listeners.d.ts +0 -8
  52. package/core/src/noop.d.ts +0 -1
  53. package/core/src/root.d.ts +0 -12
  54. package/core/src/uid.d.ts +0 -1
  55. package/esm2022/button/latitude-ui-widgets-button.js +0 -5
  56. package/esm2022/button/public-api.js +0 -3
  57. package/esm2022/button/src/button.component.js +0 -44
  58. package/esm2022/button/src/button.types.js +0 -1
  59. package/esm2022/checkbox/latitude-ui-widgets-checkbox.js +0 -5
  60. package/esm2022/checkbox/public-api.js +0 -2
  61. package/esm2022/checkbox/src/checkbox.component.js +0 -33
  62. package/esm2022/combobox/latitude-ui-widgets-combobox.js +0 -5
  63. package/esm2022/combobox/public-api.js +0 -2
  64. package/esm2022/core/latitude-ui-widgets-core.js +0 -5
  65. package/esm2022/core/public-api.js +0 -7
  66. package/esm2022/core/src/dimensions.js +0 -56
  67. package/esm2022/core/src/illegal.js +0 -5
  68. package/esm2022/core/src/listeners.js +0 -32
  69. package/esm2022/core/src/noop.js +0 -3
  70. package/esm2022/core/src/root.js +0 -20
  71. package/esm2022/core/src/uid.js +0 -4
  72. package/esm2022/icons/latitude-ui-widgets-icons.js +0 -5
  73. package/esm2022/icons/public-api.js +0 -3
  74. package/esm2022/icons/src/icon.component.js +0 -35
  75. package/esm2022/icons/src/icon.service.js +0 -62
  76. package/esm2022/icons/src/icon.tokens.js +0 -19
  77. package/esm2022/input/latitude-ui-widgets-input.js +0 -5
  78. package/esm2022/input/public-api.js +0 -6
  79. package/esm2022/input/src/input-error/i18n/en.js +0 -9
  80. package/esm2022/input/src/input-error/i18n/ru.js +0 -9
  81. package/esm2022/input/src/input-error/input-error.component.js +0 -22
  82. package/esm2022/input/src/input-error/input-error.i18n.js +0 -65
  83. package/esm2022/input/src/input-label/input-label.component.js +0 -20
  84. package/esm2022/input/src/input.component.js +0 -44
  85. package/esm2022/input/src/input.directive.js +0 -116
  86. package/esm2022/input/src/input.module.js +0 -9
  87. package/esm2022/input/src/input.types.js +0 -1
  88. package/esm2022/latitude-ui-widgets.js +0 -5
  89. package/esm2022/listbox/latitude-ui-widgets-listbox.js +0 -5
  90. package/esm2022/listbox/public-api.js +0 -4
  91. package/esm2022/listbox/src/listbox-option.component.js +0 -49
  92. package/esm2022/listbox/src/listbox.component.js +0 -14
  93. package/esm2022/listbox/src/listbox.module.js +0 -7
  94. package/esm2022/lookup/latitude-ui-widgets-lookup.js +0 -5
  95. package/esm2022/lookup/public-api.js +0 -3
  96. package/esm2022/lookup/src/lookup-outlet.directive.js +0 -13
  97. package/esm2022/lookup/src/lookup.component.js +0 -11
  98. package/esm2022/public-api.js +0 -2
  99. package/esm2022/select/latitude-ui-widgets-select.js +0 -5
  100. package/esm2022/select/public-api.js +0 -7
  101. package/esm2022/select/src/select/select.directive.js +0 -86
  102. package/esm2022/select/src/select-dropdown/select-dropdown.component.js +0 -39
  103. package/esm2022/select/src/select-multiple.component.js +0 -60
  104. package/esm2022/select/src/select-option/select-option.component.js +0 -21
  105. package/esm2022/select/src/select-option/select-option.directive.js +0 -19
  106. package/esm2022/select/src/select-single.component.js +0 -51
  107. package/esm2022/select/src/select-trigger/select-trigger.component.js +0 -29
  108. package/esm2022/select/src/select-value/select-value.component.js +0 -15
  109. package/esm2022/select/src/select-values/select-values.component.js +0 -16
  110. package/esm2022/select/src/select.module.js +0 -9
  111. package/esm2022/switch/latitude-ui-widgets-switch.js +0 -5
  112. package/esm2022/switch/public-api.js +0 -2
  113. package/esm2022/switch/src/switch.component.js +0 -30
  114. package/esm2022/textarea/latitude-ui-widgets-textarea.js +0 -5
  115. package/esm2022/textarea/public-api.js +0 -2
  116. package/esm2022/textarea/src/textarea.component.js +0 -26
  117. package/esm2022/textbox/latitude-ui-widgets-textbox.js +0 -5
  118. package/esm2022/textbox/public-api.js +0 -3
  119. package/esm2022/textbox/src/textbox.component.js +0 -25
  120. package/esm2022/textbox/src/textbox.directive.js +0 -25
  121. package/esm2022/textbox-number/latitude-ui-widgets-textbox-number.js +0 -5
  122. package/esm2022/textbox-number/public-api.js +0 -2
  123. package/esm2022/textbox-number/src/spinners.component.js +0 -22
  124. package/esm2022/textbox-number/src/textbox-number.component.js +0 -136
  125. package/esm2022/textbox-search/latitude-ui-widgets-textbox-search.js +0 -5
  126. package/esm2022/textbox-search/public-api.js +0 -2
  127. package/esm2022/textbox-search/src/textbox-search.component.js +0 -41
  128. package/esm2022/toolbar/latitude-ui-widgets-toolbar.js +0 -5
  129. package/esm2022/toolbar/public-api.js +0 -2
  130. package/esm2022/toolbar/src/toolbar.component.js +0 -14
  131. package/icons/latitude-ui-widgets-icons.d.ts +0 -5
  132. package/icons/public-api.d.ts +0 -2
  133. package/icons/src/icon.component.d.ts +0 -11
  134. package/icons/src/icon.service.d.ts +0 -15
  135. package/icons/src/icon.tokens.d.ts +0 -4
  136. package/input/latitude-ui-widgets-input.d.ts +0 -5
  137. package/input/public-api.d.ts +0 -5
  138. package/input/src/input-error/i18n/en.d.ts +0 -9
  139. package/input/src/input-error/i18n/ru.d.ts +0 -9
  140. package/input/src/input-error/input-error.component.d.ts +0 -9
  141. package/input/src/input-error/input-error.i18n.d.ts +0 -28
  142. package/input/src/input-label/input-label.component.d.ts +0 -11
  143. package/input/src/input.component.d.ts +0 -28
  144. package/input/src/input.directive.d.ts +0 -62
  145. package/input/src/input.module.d.ts +0 -4
  146. package/input/src/input.types.d.ts +0 -1
  147. package/latitude-ui-widgets.d.ts +0 -5
  148. package/listbox/latitude-ui-widgets-listbox.d.ts +0 -5
  149. package/listbox/public-api.d.ts +0 -3
  150. package/listbox/src/listbox-option.component.d.ts +0 -17
  151. package/listbox/src/listbox.component.d.ts +0 -5
  152. package/listbox/src/listbox.module.d.ts +0 -3
  153. package/lookup/README.md +0 -3
  154. package/lookup/latitude-ui-widgets-lookup.d.ts +0 -5
  155. package/lookup/public-api.d.ts +0 -2
  156. package/lookup/src/lookup-outlet.directive.d.ts +0 -5
  157. package/lookup/src/lookup.component.d.ts +0 -5
  158. package/public-api.d.ts +0 -2
  159. package/select/latitude-ui-widgets-select.d.ts +0 -5
  160. package/select/public-api.d.ts +0 -6
  161. package/select/src/select/select.directive.d.ts +0 -24
  162. package/select/src/select-dropdown/select-dropdown.component.d.ts +0 -14
  163. package/select/src/select-multiple.component.d.ts +0 -10
  164. package/select/src/select-option/select-option.component.d.ts +0 -10
  165. package/select/src/select-option/select-option.directive.d.ts +0 -14
  166. package/select/src/select-single.component.d.ts +0 -10
  167. package/select/src/select-trigger/select-trigger.component.d.ts +0 -9
  168. package/select/src/select-value/select-value.component.d.ts +0 -7
  169. package/select/src/select-values/select-values.component.d.ts +0 -7
  170. package/select/src/select.module.d.ts +0 -4
  171. package/styles/_colors.scss +0 -99
  172. package/styles/_defaults.scss +0 -135
  173. package/styles/_index.scss +0 -11
  174. package/styles/_typography.scss +0 -37
  175. package/styles/button/_index.scss +0 -199
  176. package/styles/forms/_index.scss +0 -867
  177. package/styles/icons/_index.scss +0 -34
  178. package/styles/list/_index.scss +0 -0
  179. package/styles/listbox/_index.scss +0 -30
  180. package/switch/latitude-ui-widgets-switch.d.ts +0 -5
  181. package/switch/public-api.d.ts +0 -1
  182. package/textarea/latitude-ui-widgets-textarea.d.ts +0 -5
  183. package/textarea/public-api.d.ts +0 -1
  184. package/textarea/src/textarea.component.d.ts +0 -9
  185. package/textbox/latitude-ui-widgets-textbox.d.ts +0 -5
  186. package/textbox/public-api.d.ts +0 -2
  187. package/textbox/src/textbox.component.d.ts +0 -8
  188. package/textbox/src/textbox.directive.d.ts +0 -12
  189. package/textbox-number/latitude-ui-widgets-textbox-number.d.ts +0 -5
  190. package/textbox-number/public-api.d.ts +0 -1
  191. package/textbox-number/src/spinners.component.d.ts +0 -8
  192. package/textbox-number/src/textbox-number.component.d.ts +0 -36
  193. package/textbox-search/latitude-ui-widgets-textbox-search.d.ts +0 -5
  194. package/textbox-search/public-api.d.ts +0 -1
  195. package/textbox-search/src/textbox-search.component.d.ts +0 -15
  196. package/toolbar/latitude-ui-widgets-toolbar.d.ts +0 -5
  197. package/toolbar/public-api.d.ts +0 -1
@@ -1,6 +0,0 @@
1
- export * from './src/select/select.directive';
2
- export * from './src/select-option/select-option.component';
3
- export * from './src/select-option/select-option.directive';
4
- export * from './src/select-multiple.component';
5
- export * from './src/select-single.component';
6
- export * from './src/select.module';
@@ -1,24 +0,0 @@
1
- import { Signal } from '@angular/core';
2
- import { ConnectedOverlayPositionChange, ConnectedPosition } from '@angular/cdk/overlay';
3
- import { BuildInInputValueAccessor } from '@latitude-ui/widgets/input';
4
- import { SelectOptionDirective } from '../select-option/select-option.directive';
5
- import * as i0 from "@angular/core";
6
- export declare abstract class SelectDirective<T, TValue> extends BuildInInputValueAccessor<TValue> {
7
- readonly _children: Signal<readonly SelectOptionDirective<T>[]>;
8
- readonly _indexes: Signal<Map<T, SelectOptionDirective<T>>>;
9
- readonly _selected: Signal<SelectOptionDirective<T>[]>;
10
- readonly _overlayWidth: import("@angular/core").WritableSignal<number>;
11
- readonly _overlayState: import("@angular/core").WritableSignal<boolean>;
12
- readonly _overlayExpanded: Signal<boolean>;
13
- readonly _overlayPositions: import("@angular/core").WritableSignal<ConnectedPosition[]>;
14
- readonly _overlayPositionSide: import("@angular/core").WritableSignal<"bottom" | "top" | "left" | "right">;
15
- hide(): undefined;
16
- open(): undefined;
17
- toggle(): void;
18
- _updateOverlayPositionSide({ connectionPair }: ConnectedOverlayPositionChange): void;
19
- /** ABSTRACT SECTION */
20
- abstract selected: Signal<T[]>;
21
- abstract select(option: SelectOptionDirective<T>): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectDirective<any, any>, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<SelectDirective<any, any>, never, never, {}, {}, ["_children"], never, true, never>;
24
- }
@@ -1,14 +0,0 @@
1
- import { TextBoxComponent } from '@latitude-ui/widgets/textbox';
2
- import { SelectDirective } from '../select/select.directive';
3
- import { SelectOptionDirective } from '../select-option/select-option.directive';
4
- import * as i0 from "@angular/core";
5
- export declare class SelectDropDownComponent<T> {
6
- readonly dir: SelectDirective<any, any>;
7
- readonly selection: import("@angular/core").OutputEmitterRef<SelectOptionDirective<T>>;
8
- readonly textbox: import("@angular/core").Signal<TextBoxComponent>;
9
- readonly filters: import("@angular/core").WritableSignal<string>;
10
- readonly options: import("@angular/core").Signal<readonly SelectOptionDirective<any>[]>;
11
- constructor();
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectDropDownComponent<any>, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectDropDownComponent<any>, "lat-select-dropdown", ["latSelectDropDown"], {}, { "selection": "selection"; }, never, never, true, never>;
14
- }
@@ -1,10 +0,0 @@
1
- import { SelectDirective } from './select/select.directive';
2
- import { SelectOptionDirective } from './select-option/select-option.directive';
3
- import * as i0 from "@angular/core";
4
- export declare class SelectMultipleComponent<T> extends SelectDirective<T, T[]> {
5
- readonly maxlength: import("@angular/core").InputSignalWithTransform<number, unknown>;
6
- selected: import("@angular/core").Signal<T[]>;
7
- select(option: SelectOptionDirective<T>): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectMultipleComponent<any>, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectMultipleComponent<any>, "lat-select[type=\"multiple\"]", ["latSelect"], { "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./select-option.directive";
3
- export declare class SelectOptionComponent<T> {
4
- readonly value: import("@angular/core").InputSignal<T>;
5
- readonly label: import("@angular/core").InputSignal<string>;
6
- readonly hidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
7
- readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionComponent<any>, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionComponent<any>, "lat-select-option", ["latSelectOption"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.SelectOptionDirective; inputs: {}; outputs: {}; }]>;
10
- }
@@ -1,14 +0,0 @@
1
- import { SelectDirective } from '../select/select.directive';
2
- import { SelectOptionComponent } from './select-option.component';
3
- import * as i0 from "@angular/core";
4
- export declare class SelectOptionDirective<T> {
5
- readonly select: SelectDirective<any, any>;
6
- readonly option: SelectOptionComponent<T>;
7
- readonly value: import("@angular/core").Signal<T>;
8
- readonly label: import("@angular/core").Signal<string>;
9
- readonly hidden: import("@angular/core").Signal<boolean>;
10
- readonly disabled: import("@angular/core").Signal<boolean>;
11
- readonly selected: import("@angular/core").Signal<boolean>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionDirective<any>, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<SelectOptionDirective<any>, never, never, {}, {}, never, never, true, never>;
14
- }
@@ -1,10 +0,0 @@
1
- import { SelectDirective } from './select/select.directive';
2
- import { SelectOptionDirective } from './select-option/select-option.directive';
3
- import * as i0 from "@angular/core";
4
- export declare class SelectSingleComponent<T> extends SelectDirective<T, T> {
5
- readonly nullable: import("@angular/core").InputSignalWithTransform<unknown, boolean>;
6
- selected: import("@angular/core").Signal<T[]>;
7
- select(option: SelectOptionDirective<T>): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectSingleComponent<any>, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectSingleComponent<any>, "lat-select[type=\"single\"]", ["latSelect"], { "nullable": { "alias": "nullable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
- }
@@ -1,9 +0,0 @@
1
- import { SelectDirective } from '../select/select.directive';
2
- import * as i0 from "@angular/core";
3
- export declare class SelectTriggerComponent {
4
- readonly select: SelectDirective<any, any>;
5
- readonly nativeElement: any;
6
- constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectTriggerComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectTriggerComponent, "lat-select-trigger", ["latSelectTrigger"], {}, {}, never, ["lat-select-values"], true, never>;
9
- }
@@ -1,7 +0,0 @@
1
- import { SelectDirective } from '../select/select.directive';
2
- import * as i0 from "@angular/core";
3
- export declare class SelectValueComponent {
4
- readonly select: SelectDirective<any, any>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectValueComponent, "lat-select-value", ["latSelectValue"], {}, {}, never, ["*"], true, never>;
7
- }
@@ -1,7 +0,0 @@
1
- import { SelectDirective } from '../select/select.directive';
2
- import * as i0 from "@angular/core";
3
- export declare class SelectValuesComponent {
4
- readonly select: SelectDirective<any, any>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectValuesComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectValuesComponent, "lat-select-values", ["latSelectValues"], {}, {}, never, never, true, never>;
7
- }
@@ -1,4 +0,0 @@
1
- import { SelectOptionComponent } from './select-option/select-option.component';
2
- import { SelectMultipleComponent } from './select-multiple.component';
3
- import { SelectSingleComponent } from './select-single.component';
4
- export declare const SelectModule: readonly [typeof SelectOptionComponent, typeof SelectMultipleComponent, typeof SelectSingleComponent];
@@ -1,99 +0,0 @@
1
- $icon-color: #6d6e6f !default;
2
- $icon-color-hover: #1e1f21 !default;
3
- $icon-color-active: #1e1f21 !default;
4
- $icon-color-strong: #6d6e6f !default;
5
- $icon-color-disabled: #afabac !default;
6
- $icon-color-foreground: #ffffff !default;
7
-
8
- $text-color: #1e1f21 !default;
9
- $text-color-strong: #555555 !default;
10
- $text-color-subtle: #6d6e6f !default;
11
- $text-color-subtle-hover: #1e1f21 !default;
12
- $text-color-disabled: #afabac !default;
13
- $text-color-foreground: #ffffff !default;
14
-
15
- $shadow-color: rgba(109, 110, 111, .1) !default;
16
- $shadow-color-weak: rgba(109, 110, 111, .08) !default;
17
- $shadow-color-strong: rgba(109, 110, 111, .12) !default;
18
-
19
- $outline-color: #edeae9 !default;
20
- $outline-color-hover: #afabac !default;
21
- $outline-color-active: #6d6e6f !default;
22
- $outline-color-strong: #cfcbcb !default;
23
-
24
- $background-color: #ffffff !default;
25
- $background-color-hover: rgba(55, 23, 23, .03) !default;
26
- $background-color-active: rgba(55, 23, 23, .05) !default;
27
- $background-color-strong: #f5f3f3 !default;
28
- $background-color-subtle: #f9f8f8 !default;
29
- $background-color-subtle-hover: rgba(55, 23, 23, .05) !default;
30
- $background-color-subtle-active: rgba(55, 23, 23, .06) !default;
31
-
32
- $primary-color: #4573d2 !default;
33
- $primary-color-hover: #426dc6 !default;
34
- $primary-color-active: #3f66ba !default;
35
-
36
- $primary-color-weak: #f1f2fc !default;
37
- $primary-color-weak-hover: #e7e9fc !default;
38
- $primary-color-weak-active: #dbe0fd !default;
39
-
40
- $danger-color: #fa5252 !default;
41
- $danger-color-hover: #fa5252 !default;
42
- $danger-color-active: #fa5252 !default;
43
-
44
- $box-shadow-small: 0 0 0 1px #edeae9, 0 1px 4px 0 rgba(109, 110, 111, .08);
45
- $box-shadow-medium: 0 0 0 1px #edeae9, 0 3px 8px 0 rgba(109, 110, 111, .1);
46
- $box-shadow-medium-hover: 0 0 0 1px #afabac, 0 3px 8px 0 rgba(109, 110, 111, .1);
47
- $box-shadow-medium-active: 0 0 0 1px #6d6e6f, 0 3px 8px 0 rgba(109, 110, 111, .1);
48
- $box-shadow-large: 0 0 0 1px #edeae9, 0 6px 12px 0 rgba(109, 110, 111, .12);
49
-
50
- :root {
51
- --lat-icon-color: #{$icon-color};
52
- --lat-icon-color-hover: #{$icon-color-hover};
53
- --lat-icon-color-active: #{$icon-color-active};
54
- --lat-icon-color-strong: #{$icon-color-strong};
55
- --lat-icon-color-disabled: #{$icon-color-disabled};
56
- --lat-icon-color-foreground: #{$icon-color-foreground};
57
-
58
- --lat-text-color: #{$text-color};
59
- --lat-text-color-strong: #{$text-color-strong};
60
- --lat-text-color-subtle: #{$text-color-subtle};
61
- --lat-text-color-subtle-hover: #{$text-color-subtle-hover};
62
- --lat-text-color-disabled: #{$text-color-disabled};
63
- --lat-text-color-foreground: #{$text-color-foreground};
64
-
65
- --lat-shadow-color: #{$shadow-color};
66
- --lat-shadow-color-weak: #{$shadow-color-weak};
67
- --lat-shadow-color-strong: #{$shadow-color-strong};
68
-
69
- --lat-outline-color: #{$outline-color};
70
- --lat-outline-color-hover: #{$outline-color-hover};
71
- --lat-outline-color-active: #{$outline-color-active};
72
- --lat-outline-color-strong: #{$outline-color-strong};
73
-
74
- --lat-background-color: #{$background-color};
75
- --lat-background-color-hover: #{$background-color-hover};
76
- --lat-background-color-active: #{$background-color-active};
77
- --lat-background-color-strong: #{$background-color-strong};
78
- --lat-background-color-subtle: #{$background-color-subtle};
79
- --lat-background-color-subtle-hover: #{$background-color-subtle-hover};
80
- --lat-background-color-subtle-active: #{$background-color-subtle-active};
81
-
82
- --lat-primary-color: #{$primary-color};
83
- --lat-primary-color-hover: #{$primary-color-hover};
84
- --lat-primary-color-active: #{$primary-color-active};
85
-
86
- --lat-primary-color-weak: #{$primary-color-weak};
87
- --lat-primary-color-weak-hover: #{$primary-color-weak-hover};
88
- --lat-primary-color-weak-active: #{$primary-color-weak-active};
89
-
90
- --lat-danger-color: #{$danger-color};
91
- --lat-danger-color-hover: #{$danger-color-hover};
92
- --lat-danger-color-active: #{$danger-color-active};
93
-
94
- --lat-box-shadow-small: #{$box-shadow-small};
95
- --lat-box-shadow-medium: #{$box-shadow-medium};
96
- --lat-box-shadow-medium-hover: #{$box-shadow-medium-hover};
97
- --lat-box-shadow-medium-active: #{$box-shadow-medium-active};
98
- --lat-box-shadow-large: #{$box-shadow-large};
99
- }
@@ -1,135 +0,0 @@
1
-
2
-
3
- *,
4
- ::before,
5
- ::after {
6
- box-sizing: border-box;
7
- }
8
-
9
- html {
10
- font-family: var(--lat-font-family-sans, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'), sans-serif;
11
-
12
- font-size: 16px;
13
- font-weight: var(--lat-font-weight-normal, 450);
14
- line-height: 24px;
15
-
16
- -webkit-text-size-adjust: 100%;
17
- tab-size: 4;
18
- }
19
-
20
-
21
- body {
22
- margin: 0;
23
- }
24
-
25
- b,
26
- strong {
27
- font-weight: bolder;
28
- }
29
-
30
-
31
- code,
32
- kbd,
33
- samp,
34
- pre {
35
- font-family: var(--lat-font-famiy-monospace, ui-monospace, SFMono-Regular, inherit Consolas, 'Liberation Mono', Menlo), monospace;
36
- font-size: 1em;
37
- }
38
-
39
-
40
- small {
41
- font-size: 80%;
42
- }
43
-
44
-
45
- sub,
46
- sup {
47
- font-size: 75%;
48
- line-height: 0;
49
- position: relative;
50
- vertical-align: baseline;
51
- }
52
-
53
- sub {
54
- bottom: -0.25em;
55
- }
56
-
57
- sup {
58
- top: -0.5em;
59
- }
60
-
61
-
62
- table {
63
- border-color: currentcolor;
64
- }
65
-
66
-
67
- button,
68
- input,
69
- optgroup,
70
- select,
71
- textarea {
72
- font-family: inherit;
73
- font-size: 100%;
74
- line-height: 1.15;
75
- margin: 0;
76
- }
77
-
78
-
79
- button,
80
- [type='button'],
81
- [type='reset'],
82
- [type='submit'] {
83
- -webkit-appearance: button;
84
- }
85
-
86
-
87
- legend {
88
- padding: 0;
89
- }
90
-
91
-
92
- progress {
93
- vertical-align: baseline;
94
- }
95
-
96
-
97
- ::-webkit-inner-spin-button,
98
- ::-webkit-outer-spin-button {
99
- height: auto;
100
- }
101
-
102
-
103
- [type='search'] {
104
- -webkit-appearance: textfield;
105
- outline-offset: -2px;
106
- }
107
-
108
-
109
- ::-webkit-search-decoration {
110
- -webkit-appearance: none;
111
- }
112
-
113
-
114
- ::-webkit-file-upload-button {
115
- -webkit-appearance: button;
116
- font: inherit;
117
- }
118
-
119
-
120
- summary {
121
- display: list-item;
122
- }
123
-
124
- .lat-root {
125
- display: flex;
126
-
127
- overflow: hidden;
128
- box-sizing: border-box;
129
-
130
- width: var(--lat-layout-width, 100vw);
131
- height: var(--lat-layout-height, 100vw);
132
- }
133
-
134
-
135
-
@@ -1,11 +0,0 @@
1
- @use "colors";
2
- @use "typography";
3
-
4
- @use "defaults";
5
-
6
- @use "button";
7
- @use "icons";
8
- @use "listbox";
9
-
10
- @use "forms";
11
-
@@ -1,37 +0,0 @@
1
- $font-family-sans: "Inter Variable", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !default;
2
- $font-family-monospace: "Berkeley Mono", "SFMono Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !default;
3
-
4
- $font-size-tiny: 0.625rem !default;
5
- $font-size-small: 0.75rem !default;
6
- $font-size-normal: 0.875rem !default;
7
- $font-size-medium: 1rem !default;
8
- $font-size-large: 1.25rem !default;
9
-
10
- $font-weight-light: 300 !default;
11
- $font-weight-normal: 400 !default;
12
- $font-weight-medium: 500 !default;
13
- $font-weight-semibold: 600 !default;
14
- $font-weight-bold: 700 !default;
15
-
16
-
17
- :root {
18
- --lat-font-family-sans: #{$font-family-sans};
19
- --lat-font-family-monospace: #{$font-family-monospace};
20
-
21
- --lat-font-size-tiny: #{$font-size-tiny};
22
- --lat-font-size-small: #{$font-size-small};
23
- --lat-font-size-normal: #{$font-size-normal};
24
- --lat-font-size-medium: #{$font-size-medium};
25
- --lat-font-size-large: #{$font-size-large};
26
-
27
- --lat-font-weight-light: #{$font-weight-light};
28
- --lat-font-weight-normal: #{$font-weight-normal};
29
- --lat-font-weight-medium: #{$font-weight-medium};
30
- --lat-font-weight-semibold: #{$font-weight-semibold};
31
- --lat-font-weight-bold: #{$font-weight-bold};
32
-
33
- --lat-font-size: var(--lat-font-size-medium);
34
- --lat-font-family: var(--lat-font-family-sans);
35
- --lat-font-weight: var(--lat-font-weight-normal);
36
-
37
- }
@@ -1,199 +0,0 @@
1
-
2
- lat-button {
3
- overflow: hidden;
4
- position: relative;
5
-
6
- box-sizing: border-box;
7
-
8
- display: inline-flex;
9
-
10
- gap: 4px;
11
- flex-shrink: 0;
12
-
13
- align-items: center;
14
- justify-content: center;
15
-
16
- margin: 0;
17
- padding: 0;
18
-
19
- outline: none;
20
-
21
- cursor: pointer;
22
- user-select: none;
23
- white-space: nowrap;
24
- vertical-align: top;
25
- text-decoration: none;
26
- touch-action: manipulation;
27
-
28
- border-width: 0;
29
- border-color: transparent;
30
- border-style: solid;
31
- border-radius: 4px;
32
-
33
- font-family: var(--lat-font-family-sans), sans-serif;
34
- font-weight: var(--lat-font-weight-normal);
35
- line-height: normal;
36
-
37
- transition-property: background, border, color, fill, opacity;
38
- transition-duration: 0.2s;
39
-
40
- &[data-size] {
41
- height: var(--lat-button-height);
42
- padding: var(--lat-button-padding);
43
- font-size: var(--lat-button-font-size);
44
- line-height: var(--lat-button-line-height);
45
- }
46
-
47
- &[data-onlyicon="true"] {
48
- width: var(--lat-button-height);
49
- min-width: var(--lat-button-height);
50
- }
51
-
52
- &[data-size="sm"] {
53
- --lat-button-height: 24px;
54
- --lat-button-padding: 0 8px;
55
- --lat-button-font-size: 12px;
56
- --lat-button-line-height: 24px;
57
- }
58
-
59
- &[data-size="md"] {
60
- --lat-button-height: 28px;
61
- --lat-button-padding: 0 8px;
62
- --lat-button-font-size: 12px;
63
- --lat-button-line-height: 28px;
64
- }
65
-
66
- &[data-size="lg"] {
67
- --lat-button-height: 32px;
68
- --lat-button-padding: 0 10px;
69
- --lat-button-font-size: 14px;
70
- --lat-button-line-height: 32px;
71
- }
72
-
73
- &[data-variant="action"] {
74
- fill: #ffffff;
75
- color: #ffffff;
76
- border-width: 1px;
77
- border-style: solid;
78
- border-color: var(--lat-primary-color);
79
- background-color: var(--lat-primary-color);
80
-
81
- &:hover {
82
- fill: #ffffff;
83
- color: #ffffff;
84
- border-color: var(--lat-primary-color-hover);
85
- background-color: var(--lat-primary-color-hover);
86
- }
87
-
88
- &:active {
89
- fill: #ffffff;
90
- color: #ffffff;
91
- border-color: var(--lat-primary-color-active);
92
- background-color: var(--lat-primary-color-active);
93
- }
94
-
95
- &:focus-visible {
96
- }
97
- }
98
-
99
- &[data-variant="default"] {
100
- fill: var(--lat-icon-color);
101
- color: var(--lat-text-color);
102
- border-width: 1px;
103
- border-style: solid;
104
- border-color: var(--lat-outline-color-strong);
105
- background-color: #ffffff;
106
-
107
- &:hover {
108
- fill: var(--lat-icon-hover);
109
- color: var(--lat-text-color);
110
- border-color: var(--lat-outline-color-hover);
111
- background-color: var(--lat-background-color-subtle);
112
- }
113
-
114
- &:active {
115
- fill: var(--lat-icon-hover);
116
- color: var(--lat-text-color);
117
- border-color: var(--lat-outline-color-active);
118
- background-color: var(--lat-background-color-strong);
119
- }
120
-
121
- &:focus-visible {
122
- }
123
- }
124
-
125
- &[data-variant="text"] {
126
- fill: var(--lat-text-color);
127
- color: var(--lat-text-color);
128
- border-color: transparent;
129
- background-color: transparent;
130
-
131
- &:hover {
132
- fill: var(--lat-text-color);
133
- color: var(--lat-text-color);
134
- border-color: var(--lat-background-color-hover);
135
- background-color: var(--lat-background-color-hover);
136
- }
137
-
138
- &:active {
139
- fill: var(--lat-text-color);
140
- color: var(--lat-text-color);
141
- border-color: var(--lat-background-color-active);
142
- background-color: var(--lat-background-color-active);
143
- }
144
-
145
- &:focus-visible {
146
- }
147
- }
148
-
149
- &[data-variant="subtle"] {
150
- fill: var(--lat-text-color-subtle);
151
- color: var(--lat-text-color-subtle);
152
- border-color: transparent;
153
- background-color: transparent;
154
-
155
- &:hover {
156
- fill: var(--lat-text-color);
157
- color: var(--lat-text-color);
158
- border-color: var(--lat-background-color-subtle-hover);
159
- background-color: var(--lat-background-color-subtle-hover);
160
- }
161
-
162
- &:active {
163
- fill: var(--lat-text-color);
164
- color: var(--lat-text-color);
165
- border-color: var(--lat-background-color-subtle-active);
166
- background-color: var(--lat-background-color-subtle-active);
167
- }
168
-
169
- &:focus-visible {
170
- }
171
- }
172
-
173
- &[data-variant="danger"] {
174
-
175
- }
176
-
177
- &[data-variant="success"] {
178
-
179
- }
180
-
181
- &[aria-disabled="true"] {
182
- cursor: not-allowed;
183
-
184
- fill: var(--lat-text-color-disabled);
185
- color: var(--lat-text-color-disabled);
186
- background: #ffffff;
187
- border-color: var(--lat-outline-color);
188
-
189
- &:hover,
190
- &:active,
191
- &:focus-visible {
192
- fill: var(--lat-text-color-disabled);
193
- color: var(--lat-text-color-disabled);
194
- background: #ffffff;
195
- border-color: var(--lat-outline-color);
196
- }
197
- }
198
-
199
- }