@shakerquiz/utilities 0.5.213 → 0.5.215

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "0.5.213",
4
+ "version": "0.5.215",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -0,0 +1,27 @@
1
+ export const ThemeStatus = Object.freeze({
2
+ 'Active': 'Active',
3
+ 'Archive': 'Archive',
4
+ })
5
+
6
+ /** @satisfies {Array<keyof typeof ThemeStatus>} */
7
+ export const ThemeStatuses = Object.freeze([
8
+ 'Active',
9
+ 'Archive',
10
+ ])
11
+
12
+ /** @satisfies {Record<keyof typeof ThemeStatus, string>} */
13
+ export const ThemeStatusTitle = Object.freeze({
14
+ 'Active': 'Активно',
15
+ 'Archive': 'Архив',
16
+ })
17
+
18
+ /** @satisfies {Record<keyof typeof ThemeStatus, string>} */
19
+ export const ThemeStatusIcon = Object.freeze({
20
+ 'Active': 'hero/outline/check',
21
+ 'Archive': 'hero/outline/archive-box',
22
+ })
23
+
24
+ export const inferThemeStatus = Object.freeze(
25
+ /** @returns {keyof typeof ThemeStatus | 'Unknown'} */
26
+ x => ThemeStatus[x?.status ?? x] ?? 'Unknown',
27
+ )
@@ -9,8 +9,8 @@ export const VenueAudiences = Object.freeze([
9
9
  ])
10
10
 
11
11
  export const VenueAudienceTitle = Object.freeze({
12
- [VenueAudience['Open']]: 'Без ограничений',
13
- [VenueAudience['Restricted']]: 'Только взрослые',
12
+ [VenueAudience['Open']]: 'Все',
13
+ [VenueAudience['Restricted']]: 'Взрослые',
14
14
  })
15
15
 
16
16
  export const VenueAudienceIcon = Object.freeze({
@@ -1,5 +1,5 @@
1
1
  export const VenueStatus = Object.freeze({
2
- 'ACTIVE': 'ACTIVE',
2
+ 'Active': 'Active',
3
3
  'ARCHIVE': 'ARCHIVE',
4
4
  })
5
5