@imaginario27/air-ui-utils 1.2.2 → 1.2.3

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/CHANGELOG.md CHANGED
@@ -1,203 +1,226 @@
1
- # Changelog
2
-
3
- All notable changes to this package are documented in this file.
4
-
5
- Historical releases were reconstructed from git history (GitHub repository) and npm publish dates.
6
- Future releases will include detailed entries generated with Changesets.
7
-
8
- ## 1.2.0 - 2026-03-18
9
-
10
- Release type: minor.
11
- Commits found in range: 1.
12
-
13
- ### Changed
14
-
15
- 1. update dependencies and improve toggles ([a119bf4](https://github.com/imaginario27/air-ui/commit/a119bf4396147b8e24652682ada438744416c0b1))
16
-
17
- - Package: @imaginario27/air-ui-utils.
18
-
19
- ## 1.1.1 - 2026-02-18
20
-
21
- Release type: minor.
22
- Commits found in range: 1.
23
-
24
- ### Added
25
-
26
- 1. Improves breadcrumbs, fixes tab styling issues and adds new functionalities to tabs an tables. ([6f35018](https://github.com/imaginario27/air-ui/commit/6f35018388a750e726ce95570c77d6b9c05deb8f))
27
-
28
- - Package: @imaginario27/air-ui-utils.
29
-
30
- ## 1.0.14 - 2026-02-09
31
-
32
- Release type: patch.
33
- Commits found in range: 1.
34
-
35
- ### Added
36
-
37
- 1. add transitions to dropdowns and modals ([9c837a5](https://github.com/imaginario27/air-ui/commit/9c837a567265118b6607e9633632ed8e7a216fad))
38
-
39
- - Package: @imaginario27/air-ui-utils.
40
-
41
- ## 1.0.13 - 2026-02-06
42
-
43
- Release type: patch.
44
- Commits found in range: 1.
45
-
46
- ### Added
47
-
48
- 1. adds missing utils docs pages and fixes general issues ([3f31a47](https://github.com/imaginario27/air-ui/commit/3f31a477d1bb1c04b2065b940093cfa59c6089ae))
49
-
50
- - Package: @imaginario27/air-ui-utils.
51
-
52
- ## 1.0.12 - 2026-02-05
53
-
54
- Release type: patch.
55
- Commits found in range: 0.
56
-
57
- ### Changed
58
-
59
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
60
-
61
- - Package: @imaginario27/air-ui-utils.
62
-
63
- ## 1.0.11 - 2026-02-04
64
-
65
- Release type: patch.
66
- Commits found in range: 1.
67
-
68
- ### Fixed
69
-
70
- 1. removes export depedencies and jsPDF + bumps package versions ([9139e12](https://github.com/imaginario27/air-ui/commit/9139e1221a00638c4cdb8021006c7276d2ccaed5))
71
-
72
- - Package: @imaginario27/air-ui-utils.
73
-
74
- ## 1.0.10 - 2026-02-02
75
-
76
- Release type: patch.
77
- Commits found in range: 0.
78
-
79
- ### Changed
80
-
81
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
82
-
83
- - Package: @imaginario27/air-ui-utils.
84
-
85
- ## 1.0.9 - 2026-02-02
86
-
87
- Release type: patch.
88
- Commits found in range: 1.
89
-
90
- ### Added
91
-
92
- 1. Add utils docs pages + Updates components props ([6f65f04](https://github.com/imaginario27/air-ui/commit/6f65f044b0ccc85dcc00f3ba6735232ce957a02b))
93
-
94
- - Package: @imaginario27/air-ui-utils.
95
-
96
- ## 1.0.8 - 2026-01-31
97
-
98
- Release type: patch.
99
- Commits found in range: 4.
100
-
101
- ### Added
102
-
103
- 1. Replaces the Nuxt MDI icon module with Nuxt Icon module ([b3343f1](https://github.com/imaginario27/air-ui/commit/b3343f152ee8726f4312059428bec15097b64ce8))
104
- 2. improve getting started pages and UI components ([999f965](https://github.com/imaginario27/air-ui/commit/999f9654e821630af762593dc712d47a46913e35))
105
-
106
- ### Fixed
107
-
108
- 1. Fixes packages bump version ([7fe0732](https://github.com/imaginario27/air-ui/commit/7fe0732ec573c05b08c687f802c7c4e5c3a78c24))
109
-
110
- ### Changed
111
-
112
- 1. Bumps package version ([0eaefbc](https://github.com/imaginario27/air-ui/commit/0eaefbcbe5fe8cbcf3b6297a80873687a631258b))
113
-
114
- - Package: @imaginario27/air-ui-utils.
115
-
116
- ## 1.0.7 - 2025-12-10
117
-
118
- Release type: patch.
119
- Commits found in range: 0.
120
-
121
- ### Changed
122
-
123
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
124
-
125
- - Package: @imaginario27/air-ui-utils.
126
-
127
- ## 1.0.6 - 2025-12-10
128
-
129
- Release type: patch.
130
- Commits found in range: 0.
131
-
132
- ### Changed
133
-
134
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
135
-
136
- - Package: @imaginario27/air-ui-utils.
137
-
138
- ## 1.0.5 - 2025-12-09
139
-
140
- Release type: patch.
141
- Commits found in range: 0.
142
-
143
- ### Changed
144
-
145
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
146
-
147
- - Package: @imaginario27/air-ui-utils.
148
-
149
- ## 1.0.4 - 2025-12-09
150
-
151
- Release type: patch.
152
- Commits found in range: 0.
153
-
154
- ### Changed
155
-
156
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
157
-
158
- - Package: @imaginario27/air-ui-utils.
159
-
160
- ## 1.0.3 - 2025-12-09
161
-
162
- Release type: patch.
163
- Commits found in range: 0.
164
-
165
- ### Changed
166
-
167
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
168
-
169
- - Package: @imaginario27/air-ui-utils.
170
-
171
- ## 1.0.2 - 2025-12-07
172
-
173
- Release type: patch.
174
- Commits found in range: 0.
175
-
176
- ### Changed
177
-
178
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
179
-
180
- - Package: @imaginario27/air-ui-utils.
181
-
182
- ## 1.0.1 - 2025-12-07
183
-
184
- Release type: patch.
185
- Commits found in range: 1.
186
-
187
- ### Changed
188
-
189
- 1. Init ([f153db6](https://github.com/imaginario27/air-ui/commit/f153db6d125daee38fd029ac4bcdb81190893024))
190
-
191
- - Package: @imaginario27/air-ui-utils.
192
-
193
- ## 1.0.0 - 2025-12-05
194
-
195
- Release type: initial.
196
- Commits found in range: 0.
197
-
198
- ### Changed
199
-
200
- 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
201
-
202
- - Package: @imaginario27/air-ui-utils.
203
-
1
+ # Changelog
2
+
3
+ All notable changes to this package are documented in this file.
4
+
5
+ Historical releases were reconstructed from git history (GitHub repository) and npm publish dates.
6
+ Future releases will include detailed entries generated with Changesets.
7
+
8
+ ## 1.2.2 - 2026-04-07
9
+
10
+ Release type: patch.
11
+ Commits found in range: 1.
12
+
13
+ ### Added
14
+
15
+ 1. add formatNumberWithThousands number util ([1c66034](https://github.com/imaginario27/air-ui/commit/1c660343c4718947e43c5393af2dc079f0ed176a))
16
+
17
+ - Package: @imaginario27/air-ui-utils.
18
+
19
+ ## 1.2.1 - 2026-03-21
20
+
21
+ Release type: patch.
22
+ Commits found in range: 2.
23
+
24
+ ### Added
25
+
26
+ 1. update package versions ([c5a01a1](https://github.com/imaginario27/air-ui/commit/c5a01a186b047bceca41d6cf50d1f9da4e1aa15e))
27
+ 2. add new TagsField and RulesField components + component fixes ([c8c125e](https://github.com/imaginario27/air-ui/commit/c8c125eb110eedc16f29706778578514bc28eb4f))
28
+
29
+ - Package: @imaginario27/air-ui-utils.
30
+
31
+ ## 1.2.0 - 2026-03-18
32
+
33
+ Release type: minor.
34
+ Commits found in range: 1.
35
+
36
+ ### Changed
37
+
38
+ 1. update dependencies and improve toggles ([a119bf4](https://github.com/imaginario27/air-ui/commit/a119bf4396147b8e24652682ada438744416c0b1))
39
+
40
+ - Package: @imaginario27/air-ui-utils.
41
+
42
+ ## 1.1.1 - 2026-02-18
43
+
44
+ Release type: minor.
45
+ Commits found in range: 1.
46
+
47
+ ### Added
48
+
49
+ 1. Improves breadcrumbs, fixes tab styling issues and adds new functionalities to tabs an tables. ([6f35018](https://github.com/imaginario27/air-ui/commit/6f35018388a750e726ce95570c77d6b9c05deb8f))
50
+
51
+ - Package: @imaginario27/air-ui-utils.
52
+
53
+ ## 1.0.14 - 2026-02-09
54
+
55
+ Release type: patch.
56
+ Commits found in range: 1.
57
+
58
+ ### Added
59
+
60
+ 1. add transitions to dropdowns and modals ([9c837a5](https://github.com/imaginario27/air-ui/commit/9c837a567265118b6607e9633632ed8e7a216fad))
61
+
62
+ - Package: @imaginario27/air-ui-utils.
63
+
64
+ ## 1.0.13 - 2026-02-06
65
+
66
+ Release type: patch.
67
+ Commits found in range: 1.
68
+
69
+ ### Added
70
+
71
+ 1. adds missing utils docs pages and fixes general issues ([3f31a47](https://github.com/imaginario27/air-ui/commit/3f31a477d1bb1c04b2065b940093cfa59c6089ae))
72
+
73
+ - Package: @imaginario27/air-ui-utils.
74
+
75
+ ## 1.0.12 - 2026-02-05
76
+
77
+ Release type: patch.
78
+ Commits found in range: 0.
79
+
80
+ ### Changed
81
+
82
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
83
+
84
+ - Package: @imaginario27/air-ui-utils.
85
+
86
+ ## 1.0.11 - 2026-02-04
87
+
88
+ Release type: patch.
89
+ Commits found in range: 1.
90
+
91
+ ### Fixed
92
+
93
+ 1. removes export depedencies and jsPDF + bumps package versions ([9139e12](https://github.com/imaginario27/air-ui/commit/9139e1221a00638c4cdb8021006c7276d2ccaed5))
94
+
95
+ - Package: @imaginario27/air-ui-utils.
96
+
97
+ ## 1.0.10 - 2026-02-02
98
+
99
+ Release type: patch.
100
+ Commits found in range: 0.
101
+
102
+ ### Changed
103
+
104
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
105
+
106
+ - Package: @imaginario27/air-ui-utils.
107
+
108
+ ## 1.0.9 - 2026-02-02
109
+
110
+ Release type: patch.
111
+ Commits found in range: 1.
112
+
113
+ ### Added
114
+
115
+ 1. Add utils docs pages + Updates components props ([6f65f04](https://github.com/imaginario27/air-ui/commit/6f65f044b0ccc85dcc00f3ba6735232ce957a02b))
116
+
117
+ - Package: @imaginario27/air-ui-utils.
118
+
119
+ ## 1.0.8 - 2026-01-31
120
+
121
+ Release type: patch.
122
+ Commits found in range: 4.
123
+
124
+ ### Added
125
+
126
+ 1. Replaces the Nuxt MDI icon module with Nuxt Icon module ([b3343f1](https://github.com/imaginario27/air-ui/commit/b3343f152ee8726f4312059428bec15097b64ce8))
127
+ 2. improve getting started pages and UI components ([999f965](https://github.com/imaginario27/air-ui/commit/999f9654e821630af762593dc712d47a46913e35))
128
+
129
+ ### Fixed
130
+
131
+ 1. Fixes packages bump version ([7fe0732](https://github.com/imaginario27/air-ui/commit/7fe0732ec573c05b08c687f802c7c4e5c3a78c24))
132
+
133
+ ### Changed
134
+
135
+ 1. Bumps package version ([0eaefbc](https://github.com/imaginario27/air-ui/commit/0eaefbcbe5fe8cbcf3b6297a80873687a631258b))
136
+
137
+ - Package: @imaginario27/air-ui-utils.
138
+
139
+ ## 1.0.7 - 2025-12-10
140
+
141
+ Release type: patch.
142
+ Commits found in range: 0.
143
+
144
+ ### Changed
145
+
146
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
147
+
148
+ - Package: @imaginario27/air-ui-utils.
149
+
150
+ ## 1.0.6 - 2025-12-10
151
+
152
+ Release type: patch.
153
+ Commits found in range: 0.
154
+
155
+ ### Changed
156
+
157
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
158
+
159
+ - Package: @imaginario27/air-ui-utils.
160
+
161
+ ## 1.0.5 - 2025-12-09
162
+
163
+ Release type: patch.
164
+ Commits found in range: 0.
165
+
166
+ ### Changed
167
+
168
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
169
+
170
+ - Package: @imaginario27/air-ui-utils.
171
+
172
+ ## 1.0.4 - 2025-12-09
173
+
174
+ Release type: patch.
175
+ Commits found in range: 0.
176
+
177
+ ### Changed
178
+
179
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
180
+
181
+ - Package: @imaginario27/air-ui-utils.
182
+
183
+ ## 1.0.3 - 2025-12-09
184
+
185
+ Release type: patch.
186
+ Commits found in range: 0.
187
+
188
+ ### Changed
189
+
190
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
191
+
192
+ - Package: @imaginario27/air-ui-utils.
193
+
194
+ ## 1.0.2 - 2025-12-07
195
+
196
+ Release type: patch.
197
+ Commits found in range: 0.
198
+
199
+ ### Changed
200
+
201
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
202
+
203
+ - Package: @imaginario27/air-ui-utils.
204
+
205
+ ## 1.0.1 - 2025-12-07
206
+
207
+ Release type: patch.
208
+ Commits found in range: 1.
209
+
210
+ ### Changed
211
+
212
+ 1. Init ([f153db6](https://github.com/imaginario27/air-ui/commit/f153db6d125daee38fd029ac4bcdb81190893024))
213
+
214
+ - Package: @imaginario27/air-ui-utils.
215
+
216
+ ## 1.0.0 - 2025-12-05
217
+
218
+ Release type: initial.
219
+ Commits found in range: 0.
220
+
221
+ ### Changed
222
+
223
+ 1. Historical release reconstructed from npm publish metadata (no package commits found in this publish window).
224
+
225
+ - Package: @imaginario27/air-ui-utils.
226
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imaginario27/air-ui-utils",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "author": "imaginario27",
5
5
  "type": "module",
6
6
  "homepage": "https://air-ui.netlify.app/",
package/utils/counters.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { StackCounterType } from '../../air-ui-ds/models/enums/counters'
2
+
1
3
  /**
2
4
  * Returns the counter content for a stack display based on the number of items, counter type, and item limit.
3
5
  *
package/utils/data.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { SelectOption } from '../../air-ui-ds/models/types/selects'
2
+
1
3
  /**
2
4
  * Creates a delay for a specified number of milliseconds.
3
5
  *
@@ -42,7 +44,6 @@ export function getPaginatedData<T>(
42
44
  return result.slice(start, end)
43
45
  }
44
46
 
45
-
46
47
  /**
47
48
  * Converts an array of objects into SelectOption[] by mapping specified keys or transformation functions.
48
49
  *
@@ -1,5 +1,4 @@
1
1
 
2
- import { FieldError } from '../models/constants/form'
3
2
  import type {
4
3
  ArrayValidator,
5
4
  CreateRulesFieldValidatorOptions,
@@ -7,6 +6,17 @@ import type {
7
6
  RuleValidationValue,
8
7
  } from '../models/types/formValidation'
9
8
 
9
+ // Centralized error messages for form validation
10
+ const FieldError = {
11
+ REQUIRED_FIELD: 'This field is required.',
12
+ REQUIRED_EMAIL: 'Email is required.',
13
+ INVALID_EMAIL: 'Invalid email address.',
14
+ REQUIRED_OPTION: 'Please select an option.',
15
+ INVALID_DATE_RANGE: 'Start date must be before or equal to end date',
16
+ PASSWORDS_DO_NOT_MATCH: 'Passwords do not match.',
17
+ INVALID_URL: 'Invalid URL.',
18
+ }
19
+
10
20
  /**
11
21
  * Validates a field value to ensure it is not empty, null, or undefined.
12
22
  *
package/utils/pages.ts CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ import { PageTitleFormat } from '../../air-ui-ds/models/enums/pages'
3
+
2
4
  /**
3
5
  * Generates a formatted page title based on the specified format.
4
6
  *
@@ -1,8 +0,0 @@
1
- export const App = {
2
- NAME: 'AirUI',
3
- }
4
-
5
- export const AppSlug = {
6
- DOCS: 'docs',
7
- COMPONENTS: 'components',
8
- }
@@ -1,22 +0,0 @@
1
-
2
- export const FieldMaxLength = {
3
- FULLNAME: 80,
4
- LASTNAME: 80,
5
- EMAIL: 254,
6
- PHONE: 15,
7
- SUBJECT: 100,
8
- MESSAGE: 500,
9
- PASSWORD: 64,
10
- SEARCH: 80,
11
- DESCRIPTION: 400,
12
- }
13
-
14
- export const FieldError = {
15
- REQUIRED_FIELD: 'This field is required.',
16
- REQUIRED_EMAIL: 'Email is required.',
17
- INVALID_EMAIL: 'Invalid email address.',
18
- REQUIRED_OPTION: 'Please select an option.',
19
- INVALID_DATE_RANGE: 'Start date must be before or equal to end date',
20
- PASSWORDS_DO_NOT_MATCH: 'Passwords do not match.',
21
- INVALID_URL: 'Invalid URL.',
22
- }
@@ -1,4 +0,0 @@
1
- export const AppNotification = {
2
- COPIED_TO_CLIPBOARD: 'Copied to clipboard',
3
- COPIED_TO_CLIPBOARD_ERROR: 'Error copying to clipboard',
4
- }
@@ -1,4 +0,0 @@
1
- export enum StackCounterType {
2
- COUNTER = 'counter',
3
- ELLIPSIS = 'ellipsis',
4
- }
@@ -1,4 +0,0 @@
1
- export enum PageTitleFormat {
2
- FULL = 'full',
3
- SIMPLE = 'simple',
4
- }
@@ -1,6 +0,0 @@
1
- export interface HeaderConfig {
2
- field: string
3
- callback?: (value: any) => string
4
- }
5
-
6
- export type Headers = Record<string, string | HeaderConfig>
@@ -1,14 +0,0 @@
1
- export interface SelectOption {
2
- id?: string | number
3
- value: string | number
4
- text?: string
5
- icon?: any
6
- customIcon?: string
7
- userDisplayName?: string
8
- userProfileImg?: string
9
- imgUrl?: string
10
- alt?: string
11
- helpText?: string
12
- to?: string
13
- isExternal?: boolean
14
- }