@nan0web/ui 1.12.3 → 3.1.1

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 (136) hide show
  1. package/package.json +29 -20
  2. package/src/Component/index.js +1 -5
  3. package/src/Model/Element.js +183 -0
  4. package/src/Theme/AppTheme.js +19 -0
  5. package/src/Theme/CustomTheme.js +32 -0
  6. package/src/Theme/DarkLightTheme.js +34 -0
  7. package/src/Theme/Theme.js +25 -0
  8. package/src/Theme/atoms/Avatar.js +20 -0
  9. package/src/Theme/atoms/Badge.js +28 -0
  10. package/src/Theme/atoms/Button.js +88 -0
  11. package/src/Theme/atoms/Checkbox.js +26 -0
  12. package/src/Theme/atoms/Input.js +28 -0
  13. package/src/Theme/atoms/Radio.js +26 -0
  14. package/src/Theme/atoms/Select.js +16 -0
  15. package/src/Theme/atoms/TextArea.js +17 -0
  16. package/src/Theme/atoms/Typography.js +26 -0
  17. package/src/Theme/atoms/index.js +11 -0
  18. package/src/Theme/createTheme.js +22 -0
  19. package/src/Theme/index.js +20 -0
  20. package/src/Theme/molecules/Card.js +24 -0
  21. package/src/Theme/molecules/index.js +3 -0
  22. package/src/Theme/organisms/Modal.js +24 -0
  23. package/src/Theme/organisms/index.js +3 -0
  24. package/src/Theme/presets/HighContrastTheme.js +65 -0
  25. package/src/Theme/presets/NightTheme.js +66 -0
  26. package/src/Theme/presets/index.js +4 -0
  27. package/src/Theme/tokens.js +115 -0
  28. package/src/core/InputAdapter.js +1 -2
  29. package/src/core/Intent.js +22 -8
  30. package/src/core/Message/Message.js +3 -0
  31. package/src/core/OutputAdapter.js +9 -13
  32. package/src/core/index.js +7 -4
  33. package/src/domain/ModelAsApp.js +1 -1
  34. package/src/domain/app/IntentAuditor.js +53 -0
  35. package/src/domain/app/JsIntentAuditor.js +145 -0
  36. package/src/domain/app/PyIntentAuditor.js +144 -0
  37. package/src/domain/app/SnapshotAuditor.js +8 -8
  38. package/src/domain/components/ShellModel.js +2 -2
  39. package/src/index.js +35 -9
  40. package/src/inspect.js +3 -0
  41. package/src/utils/format.js +21 -0
  42. package/src/utils/processI18n.js +27 -0
  43. package/src/utils/resolveContext.js +79 -0
  44. package/types/Component/index.d.ts +1 -5
  45. package/types/Model/Element.d.ts +87 -0
  46. package/types/Theme/AppTheme.d.ts +14 -0
  47. package/types/Theme/CustomTheme.d.ts +21 -0
  48. package/types/Theme/DarkLightTheme.d.ts +16 -0
  49. package/types/Theme/Theme.d.ts +18 -0
  50. package/types/Theme/atoms/Avatar.d.ts +14 -0
  51. package/types/Theme/atoms/Badge.d.ts +22 -0
  52. package/types/Theme/atoms/Button.d.ts +144 -0
  53. package/types/Theme/atoms/Checkbox.d.ts +20 -0
  54. package/types/Theme/atoms/Input.d.ts +22 -0
  55. package/types/Theme/atoms/Radio.d.ts +20 -0
  56. package/types/Theme/atoms/Select.d.ts +15 -0
  57. package/types/Theme/atoms/TextArea.d.ts +17 -0
  58. package/types/Theme/atoms/Typography.d.ts +47 -0
  59. package/types/Theme/atoms/index.d.ts +10 -0
  60. package/types/Theme/createTheme.d.ts +7 -0
  61. package/types/Theme/index.d.ts +10 -0
  62. package/types/Theme/molecules/Card.d.ts +18 -0
  63. package/types/Theme/molecules/index.d.ts +2 -0
  64. package/types/Theme/organisms/Modal.d.ts +18 -0
  65. package/types/Theme/organisms/index.d.ts +2 -0
  66. package/types/Theme/presets/HighContrastTheme.d.ts +2 -0
  67. package/types/Theme/presets/NightTheme.d.ts +2 -0
  68. package/types/Theme/presets/index.d.ts +3 -0
  69. package/types/Theme/tokens.d.ts +119 -0
  70. package/types/core/Intent.d.ts +10 -7
  71. package/types/core/Message/Message.d.ts +3 -0
  72. package/types/core/OutputAdapter.d.ts +2 -4
  73. package/types/core/index.d.ts +5 -2
  74. package/types/domain/Document.d.ts +2 -1
  75. package/types/domain/FooterModel.d.ts +2 -1
  76. package/types/domain/ModelAsApp.d.ts +48 -48
  77. package/types/domain/app/IntentAuditor.d.ts +23 -0
  78. package/types/domain/app/JsIntentAuditor.d.ts +22 -0
  79. package/types/domain/app/PyIntentAuditor.d.ts +22 -0
  80. package/types/domain/app/SnapshotAuditor.d.ts +5 -6
  81. package/types/domain/components/ShellModel.d.ts +1 -5
  82. package/types/index.d.ts +7 -9
  83. package/types/inspect.d.ts +3 -0
  84. package/types/utils/format.d.ts +5 -0
  85. package/types/utils/processI18n.d.ts +8 -0
  86. package/types/utils/resolveContext.d.ts +21 -0
  87. package/src/App/Command/DepsCommand.js +0 -24
  88. package/src/App/Core/CoreApp.js +0 -125
  89. package/src/App/Core/UI.js +0 -63
  90. package/src/App/Core/Widget.js +0 -61
  91. package/src/App/Core/index.js +0 -11
  92. package/src/App/Scenario.js +0 -45
  93. package/src/App/User/Command/Message.js +0 -3
  94. package/src/App/User/Command/index.js +0 -5
  95. package/src/App/User/UserApp.js +0 -85
  96. package/src/App/User/UserUI.js +0 -20
  97. package/src/App/User/index.js +0 -9
  98. package/src/App/index.js +0 -14
  99. package/src/Component/Process/Input.js +0 -63
  100. package/src/Component/Process/Process.js +0 -24
  101. package/src/Component/Process/index.js +0 -5
  102. package/src/Component/Welcome/Input.js +0 -48
  103. package/src/Component/Welcome/Welcome.js +0 -22
  104. package/src/Component/Welcome/index.js +0 -5
  105. package/src/Frame/Frame.js +0 -608
  106. package/src/Frame/Props.js +0 -96
  107. package/src/StdIn.js +0 -100
  108. package/src/StdOut.js +0 -95
  109. package/src/View/RenderOptions.js +0 -48
  110. package/src/View/View.js +0 -306
  111. package/src/core/Message/index.js +0 -6
  112. package/types/App/Command/DepsCommand.d.ts +0 -14
  113. package/types/App/Core/CoreApp.d.ts +0 -70
  114. package/types/App/Core/UI.d.ts +0 -38
  115. package/types/App/Core/Widget.d.ts +0 -39
  116. package/types/App/Core/index.d.ts +0 -10
  117. package/types/App/Scenario.d.ts +0 -26
  118. package/types/App/User/Command/Message.d.ts +0 -2
  119. package/types/App/User/Command/index.d.ts +0 -3
  120. package/types/App/User/UserApp.d.ts +0 -41
  121. package/types/App/User/UserUI.d.ts +0 -9
  122. package/types/App/User/index.d.ts +0 -8
  123. package/types/App/index.d.ts +0 -12
  124. package/types/Component/Process/Input.d.ts +0 -48
  125. package/types/Component/Process/Process.d.ts +0 -13
  126. package/types/Component/Process/index.d.ts +0 -4
  127. package/types/Component/Welcome/Input.d.ts +0 -34
  128. package/types/Component/Welcome/Welcome.d.ts +0 -13
  129. package/types/Component/Welcome/index.d.ts +0 -4
  130. package/types/Frame/Frame.d.ts +0 -186
  131. package/types/Frame/Props.d.ts +0 -77
  132. package/types/StdIn.d.ts +0 -62
  133. package/types/StdOut.d.ts +0 -52
  134. package/types/View/RenderOptions.d.ts +0 -29
  135. package/types/View/View.d.ts +0 -124
  136. package/types/core/Message/index.d.ts +0 -4
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @typedef {{ atoms?: object, molecules?: object, organisms?: object }} UserThemeConfig
3
+ */
4
+ /**
5
+ * Returns selected or custom user theme.
6
+ * @param {string | UserThemeConfig} themeNameOrConfig
7
+ * @returns {import('./Theme.js').ThemeConfig}
8
+ */
9
+ export function getUserTheme(themeNameOrConfig: string | UserThemeConfig): import("./Theme.js").ThemeConfig;
10
+ /**
11
+ * Custom user theme.
12
+ * Extends the base Theme to allow passing configuration during instantiation.
13
+ * @param {UserThemeConfig} config
14
+ * @returns {import('./Theme.js').ThemeConfig}
15
+ */
16
+ export default function CustomTheme(config: UserThemeConfig): import("./Theme.js").ThemeConfig;
17
+ export type UserThemeConfig = {
18
+ atoms?: object;
19
+ molecules?: object;
20
+ organisms?: object;
21
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Theme that automatically switches between light/dark modes.
3
+ */
4
+ export default class DarkLightTheme {
5
+ /** @type {Object} */
6
+ static light: any;
7
+ /** @type {Object} */
8
+ static dark: any;
9
+ /** @type {string} */
10
+ static current: string;
11
+ /**
12
+ * Gets active theme (light, dark, or system preference).
13
+ * @returns {Object}
14
+ */
15
+ static getActiveTheme(): any;
16
+ }
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ atoms: typeof atoms;
3
+ molecules: typeof molecules;
4
+ organisms: typeof organisms;
5
+ };
6
+ export default _default;
7
+ /**
8
+ * Universal UI theme foundation.
9
+ * Holds atoms, molecules, and organisms styling configs.
10
+ */
11
+ export type ThemeConfig = {
12
+ atoms: Partial<typeof atoms>;
13
+ molecules: typeof molecules;
14
+ organisms: typeof organisms;
15
+ };
16
+ import * as atoms from './atoms/index.js';
17
+ import * as molecules from './molecules/index.js';
18
+ import * as organisms from './organisms/index.js';
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ size: string;
3
+ borderRadius: string;
4
+ border: string;
5
+ };
6
+ export default _default;
7
+ /**
8
+ * Theme definition for Avatar atom.
9
+ */
10
+ export type AvatarTheme = {
11
+ size: string;
12
+ borderRadius: string;
13
+ border: string;
14
+ };
@@ -0,0 +1,22 @@
1
+ declare const _default: {
2
+ borderRadius: string;
3
+ fontSize: string;
4
+ paddingX: string;
5
+ paddingY: string;
6
+ fontWeight: string;
7
+ backgroundColor: string;
8
+ color: string;
9
+ };
10
+ export default _default;
11
+ /**
12
+ * Theme definition for Badge atom.
13
+ */
14
+ export type BadgeTheme = {
15
+ borderRadius: string;
16
+ fontSize: string;
17
+ paddingX: string;
18
+ paddingY: string;
19
+ fontWeight: string;
20
+ backgroundColor: string;
21
+ color: string;
22
+ };
@@ -0,0 +1,144 @@
1
+ declare const _default: {
2
+ color: string;
3
+ background: string;
4
+ shadow: string;
5
+ hoverBackground: string;
6
+ solid: {
7
+ primary: {
8
+ background: string;
9
+ color: string;
10
+ border: string;
11
+ };
12
+ secondary: {
13
+ background: string;
14
+ color: string;
15
+ border: string;
16
+ };
17
+ success: {
18
+ background: string;
19
+ color: string;
20
+ border: string;
21
+ };
22
+ warning: {
23
+ background: string;
24
+ color: string;
25
+ border: string;
26
+ };
27
+ danger: {
28
+ background: string;
29
+ color: string;
30
+ border: string;
31
+ };
32
+ info: {
33
+ background: string;
34
+ color: string;
35
+ border: string;
36
+ };
37
+ light: {
38
+ background: string;
39
+ color: string;
40
+ border: string;
41
+ };
42
+ dark: {
43
+ background: string;
44
+ color: string;
45
+ border: string;
46
+ };
47
+ link: {
48
+ background: string;
49
+ color: string;
50
+ border: string;
51
+ };
52
+ };
53
+ outline: {
54
+ primary: {
55
+ background: string;
56
+ color: string;
57
+ border: string;
58
+ };
59
+ secondary: {
60
+ background: string;
61
+ color: string;
62
+ border: string;
63
+ };
64
+ success: {
65
+ background: string;
66
+ color: string;
67
+ border: string;
68
+ };
69
+ warning: {
70
+ background: string;
71
+ color: string;
72
+ border: string;
73
+ };
74
+ danger: {
75
+ background: string;
76
+ color: string;
77
+ border: string;
78
+ };
79
+ info: {
80
+ background: string;
81
+ color: string;
82
+ border: string;
83
+ };
84
+ light: {
85
+ background: string;
86
+ color: string;
87
+ border: string;
88
+ };
89
+ dark: {
90
+ background: string;
91
+ color: string;
92
+ border: string;
93
+ };
94
+ };
95
+ size: {
96
+ sm: {
97
+ fontSize: string;
98
+ paddingX: string;
99
+ paddingY: string;
100
+ };
101
+ md: {
102
+ fontSize: string;
103
+ paddingX: string;
104
+ paddingY: string;
105
+ };
106
+ };
107
+ animation: {
108
+ transition: string;
109
+ hoverAdjust: number;
110
+ activeAdjust: number;
111
+ focusScale: number;
112
+ activeScale: number;
113
+ disabledOpacity: number;
114
+ };
115
+ borderColor: string;
116
+ borderRadius: string;
117
+ borderWidth: string;
118
+ fontSize: string;
119
+ paddingX: string;
120
+ paddingY: string;
121
+ fontFamily: string;
122
+ };
123
+ export default _default;
124
+ /**
125
+ * Theme definition for Button atom.
126
+ * Inherits common properties from Input and defines colour and shadow.
127
+ */
128
+ export type ButtonTheme = {
129
+ color: string;
130
+ background: string;
131
+ shadow: string;
132
+ hoverBackground: string;
133
+ solid: any;
134
+ outline: any;
135
+ size: any;
136
+ animation: any;
137
+ borderColor: string;
138
+ borderRadius: string;
139
+ borderWidth: string;
140
+ fontSize: string;
141
+ paddingX: string;
142
+ paddingY: string;
143
+ fontFamily: string;
144
+ };
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ size: string;
3
+ borderColor: string;
4
+ borderRadius: string;
5
+ borderWidth: string;
6
+ backgroundColor: string;
7
+ checkedColor: string;
8
+ };
9
+ export default _default;
10
+ /**
11
+ * Theme definition for Checkbox atom.
12
+ */
13
+ export type CheckboxTheme = {
14
+ size: string;
15
+ borderColor: string;
16
+ borderRadius: string;
17
+ borderWidth: string;
18
+ backgroundColor: string;
19
+ checkedColor: string;
20
+ };
@@ -0,0 +1,22 @@
1
+ declare const _default: {
2
+ borderRadius: string;
3
+ borderWidth: string;
4
+ borderColor: string;
5
+ fontSize: string;
6
+ paddingX: string;
7
+ paddingY: string;
8
+ fontFamily: string;
9
+ };
10
+ export default _default;
11
+ /**
12
+ * Theme definition for Input atom.
13
+ */
14
+ export type InputTheme = {
15
+ borderRadius: string;
16
+ borderWidth: string;
17
+ borderColor: string;
18
+ fontSize: string;
19
+ paddingX: string;
20
+ paddingY: string;
21
+ fontFamily: string;
22
+ };
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ size: string;
3
+ borderColor: string;
4
+ borderRadius: string;
5
+ borderWidth: string;
6
+ backgroundColor: string;
7
+ checkedColor: string;
8
+ };
9
+ export default _default;
10
+ /**
11
+ * Theme definition for Radio atom.
12
+ */
13
+ export type RadioTheme = {
14
+ size: string;
15
+ borderColor: string;
16
+ borderRadius: string;
17
+ borderWidth: string;
18
+ backgroundColor: string;
19
+ checkedColor: string;
20
+ };
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ borderRadius: string;
3
+ borderWidth: string;
4
+ borderColor: string;
5
+ fontSize: string;
6
+ paddingX: string;
7
+ paddingY: string;
8
+ fontFamily: string;
9
+ };
10
+ export default _default;
11
+ /**
12
+ * Theme definition for Select atom.
13
+ * Inherits all properties from InputTheme.
14
+ */
15
+ export type SelectTheme = import("./Input.js").InputTheme;
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ height: string;
3
+ borderRadius: string;
4
+ borderWidth: string;
5
+ borderColor: string;
6
+ fontSize: string;
7
+ paddingX: string;
8
+ paddingY: string;
9
+ fontFamily: string;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Theme definition for TextArea atom.
14
+ */
15
+ export type TextAreaTheme = {
16
+ height: string;
17
+ };
@@ -0,0 +1,47 @@
1
+ declare const _default: {
2
+ variants: {
3
+ h1: {
4
+ fontSize: string;
5
+ fontWeight: string;
6
+ };
7
+ h2: {
8
+ fontSize: string;
9
+ fontWeight: string;
10
+ };
11
+ h3: {
12
+ fontSize: string;
13
+ fontWeight: string;
14
+ };
15
+ h4: {
16
+ fontSize: string;
17
+ fontWeight: string;
18
+ };
19
+ h5: {
20
+ fontSize: string;
21
+ fontWeight: string;
22
+ };
23
+ h6: {
24
+ fontSize: string;
25
+ fontWeight: string;
26
+ };
27
+ body: {
28
+ fontSize: string;
29
+ fontWeight: string;
30
+ };
31
+ small: {
32
+ fontSize: string;
33
+ fontWeight: string;
34
+ };
35
+ caption: {
36
+ fontSize: string;
37
+ fontWeight: string;
38
+ };
39
+ };
40
+ };
41
+ export default _default;
42
+ /**
43
+ * Theme definition for Typography atom.
44
+ */
45
+ export type TypographyTheme = {
46
+ variants: any;
47
+ };
@@ -0,0 +1,10 @@
1
+ import Avatar from './Avatar.js';
2
+ import Badge from './Badge.js';
3
+ import Button from './Button.js';
4
+ import Checkbox from './Checkbox.js';
5
+ import Input from './Input.js';
6
+ import Radio from './Radio.js';
7
+ import Select from './Select.js';
8
+ import TextArea from './TextArea.js';
9
+ import Typography from './Typography.js';
10
+ export { Avatar, Badge, Button, Checkbox, Input, Radio, Select, TextArea, Typography };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Creates a theme instance with merged configuration.
3
+ *
4
+ * @param {Partial<import('./Theme.js').ThemeConfig>} overrides
5
+ * @returns {import('./Theme.js').ThemeConfig}
6
+ */
7
+ export function createTheme(overrides?: Partial<import("./Theme.js").ThemeConfig>): import("./Theme.js").ThemeConfig;
@@ -0,0 +1,10 @@
1
+ export default Theme;
2
+ import Theme from './Theme.js';
3
+ import CustomTheme from './CustomTheme.js';
4
+ import { getUserTheme } from './CustomTheme.js';
5
+ import AppTheme from './AppTheme.js';
6
+ import DarkLightTheme from './DarkLightTheme.js';
7
+ import HighContrastTheme from './presets/HighContrastTheme.js';
8
+ import NightTheme from './presets/NightTheme.js';
9
+ import { createTheme } from './createTheme.js';
10
+ export { Theme, CustomTheme, getUserTheme, AppTheme, DarkLightTheme, HighContrastTheme, NightTheme, createTheme };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ borderRadius: string;
3
+ boxShadow: string;
4
+ padding: string;
5
+ backgroundColor: string;
6
+ borderColor: string;
7
+ };
8
+ export default _default;
9
+ /**
10
+ * Theme definition for Card molecule.
11
+ */
12
+ export type CardTheme = {
13
+ borderRadius: string;
14
+ boxShadow: string;
15
+ padding: string;
16
+ backgroundColor: string;
17
+ borderColor: string;
18
+ };
@@ -0,0 +1,2 @@
1
+ export { Card };
2
+ import Card from './Card.js';
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ overlayBackground: string;
3
+ borderRadius: string;
4
+ boxShadow: string;
5
+ padding: string;
6
+ backgroundColor: string;
7
+ };
8
+ export default _default;
9
+ /**
10
+ * Theme definition for Modal organism.
11
+ */
12
+ export type ModalTheme = {
13
+ overlayBackground: string;
14
+ borderRadius: string;
15
+ boxShadow: string;
16
+ padding: string;
17
+ backgroundColor: string;
18
+ };
@@ -0,0 +1,2 @@
1
+ export { Modal };
2
+ import Modal from './Modal.js';
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../Theme.js").ThemeConfig;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../Theme.js").ThemeConfig;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import HighContrastTheme from './HighContrastTheme.js';
2
+ import NightTheme from './NightTheme.js';
3
+ export { HighContrastTheme, NightTheme };
@@ -0,0 +1,119 @@
1
+ export namespace tokens {
2
+ export namespace space {
3
+ let xs: string;
4
+ let sm: string;
5
+ let md: string;
6
+ let lg: string;
7
+ let xl: string;
8
+ }
9
+ export namespace radius {
10
+ export let none: string;
11
+ let sm_1: string;
12
+ export { sm_1 as sm };
13
+ let md_1: string;
14
+ export { md_1 as md };
15
+ let lg_1: string;
16
+ export { lg_1 as lg };
17
+ export let full: string;
18
+ }
19
+ export namespace border {
20
+ namespace width {
21
+ let sm_2: string;
22
+ export { sm_2 as sm };
23
+ let md_2: string;
24
+ export { md_2 as md };
25
+ }
26
+ namespace color {
27
+ let _default: string;
28
+ export { _default as default };
29
+ export let muted: string;
30
+ export let error: string;
31
+ }
32
+ }
33
+ export namespace color_1 {
34
+ export let text: string;
35
+ export let background: string;
36
+ export let primary: string;
37
+ export let success: string;
38
+ export let warning: string;
39
+ let error_1: string;
40
+ export { error_1 as error };
41
+ }
42
+ export { color_1 as color };
43
+ export namespace font {
44
+ let family: string;
45
+ namespace size {
46
+ let xs_1: string;
47
+ export { xs_1 as xs };
48
+ let sm_3: string;
49
+ export { sm_3 as sm };
50
+ export let base: string;
51
+ let lg_2: string;
52
+ export { lg_2 as lg };
53
+ let xl_1: string;
54
+ export { xl_1 as xl };
55
+ }
56
+ namespace weight {
57
+ let normal: string;
58
+ let medium: string;
59
+ let bold: string;
60
+ }
61
+ }
62
+ export namespace shadow {
63
+ let sm_4: string;
64
+ export { sm_4 as sm };
65
+ let md_3: string;
66
+ export { md_3 as md };
67
+ let lg_3: string;
68
+ export { lg_3 as lg };
69
+ }
70
+ export namespace breakpoint {
71
+ let xs_2: string;
72
+ export { xs_2 as xs };
73
+ let sm_5: string;
74
+ export { sm_5 as sm };
75
+ let md_4: string;
76
+ export { md_4 as md };
77
+ let lg_4: string;
78
+ export { lg_4 as lg };
79
+ let xl_2: string;
80
+ export { xl_2 as xl };
81
+ export let xxl: string;
82
+ }
83
+ export namespace container {
84
+ let sm_6: string;
85
+ export { sm_6 as sm };
86
+ let md_5: string;
87
+ export { md_5 as md };
88
+ let lg_5: string;
89
+ export { lg_5 as lg };
90
+ let xl_3: string;
91
+ export { xl_3 as xl };
92
+ let xxl_1: string;
93
+ export { xxl_1 as xxl };
94
+ }
95
+ export namespace zIndex {
96
+ let dropdown: number;
97
+ let sticky: number;
98
+ let fixed: number;
99
+ let modalBackdrop: number;
100
+ let modal: number;
101
+ let popover: number;
102
+ let tooltip: number;
103
+ }
104
+ export let opacity: {
105
+ 0: string;
106
+ 10: string;
107
+ 25: string;
108
+ 50: string;
109
+ 75: string;
110
+ 90: string;
111
+ 100: string;
112
+ };
113
+ export namespace transition {
114
+ export let fast: string;
115
+ let medium_1: string;
116
+ export { medium_1 as medium };
117
+ export let slow: string;
118
+ }
119
+ }
@@ -44,11 +44,14 @@ export function ask(field: string, schema: object | Function): AskIntent;
44
44
  * @returns {ProgressIntent}
45
45
  */
46
46
  export function progress(message: string, value?: number, optionsOrTotalOrId?: ProgressOptions | number | string, id?: string): ProgressIntent;
47
- export function log(level: any, message: any, data?: {}): {
48
- type: string;
49
- level: any;
50
- message: any;
51
- };
47
+ /**
48
+ * Lgs a message if level is greater or equal the current view level.
49
+ * @param {LogLevel} level
50
+ * @param {string} message
51
+ * @param {object} [data={}]
52
+ * @returns {LogIntent}
53
+ */
54
+ export function log(level: LogLevel, message: string, data?: object): LogIntent;
52
55
  /**
53
56
  * Create a render intent.
54
57
  * @param {string} component - Component name (e.g. 'App.Layout.Header').
@@ -115,7 +118,7 @@ export function agent(task: string, context?: AgentContext): AgentIntent;
115
118
  /**
116
119
  * @typedef {'info' | 'warn' | 'error' | 'success'} ShowLevel
117
120
  */
118
- /** @typedef {ShowLevel} LogLevel */
121
+ /** @typedef {ShowLevel | 'debug'} LogLevel */
119
122
  /**
120
123
  * Model emits a show message. No response expected.
121
124
  * Message MUST come from the Model (i18n static field value).
@@ -333,7 +336,7 @@ export type ProgressIntent = {
333
336
  options?: ProgressOptions | undefined;
334
337
  };
335
338
  export type ShowLevel = "info" | "warn" | "error" | "success";
336
- export type LogLevel = ShowLevel;
339
+ export type LogLevel = ShowLevel | "debug";
337
340
  /**
338
341
  * Model emits a show message. No response expected.
339
342
  * Message MUST come from the Model (i18n static field value).
@@ -14,6 +14,9 @@
14
14
  *
15
15
  * @class UiMessage
16
16
  * @extends Message
17
+ * @property {Record<string, any>} head - Message head.
18
+ * @property {boolean} isValid - True if message is valid.
19
+ * @property {Date} time - Creation timestamp.
17
20
  *
18
21
  * @example
19
22
  * class UserLoginMessage extends UiMessage {
@@ -9,10 +9,10 @@ declare class OutputAdapter extends Event {
9
9
  /**
10
10
  * Renders a message to the user.
11
11
  *
12
- * @param {OutputMessage|FormMessage} message - Message to render.
12
+ * @param {object} message - Message to render.
13
13
  * @throws {Error} If not overridden by a subclass.
14
14
  */
15
- render(message: OutputMessage | FormMessage): void;
15
+ render(message: object): void;
16
16
  /**
17
17
  * Shows progress of a long‑running operation.
18
18
  *
@@ -29,5 +29,3 @@ declare class OutputAdapter extends Event {
29
29
  stop(): void;
30
30
  }
31
31
  import Event from '@nan0web/event/oop';
32
- import OutputMessage from './Message/OutputMessage.js';
33
- import FormMessage from './Form/Message.js';