spoko-design-system 1.1.16 → 1.2.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 (59) hide show
  1. package/.github/workflows/code-quality.yml +7 -6
  2. package/.github/workflows/deploy.yml +4 -5
  3. package/.github/workflows/release.yml +7 -19
  4. package/.github/workflows/sonarcloud.yml +8 -7
  5. package/.vscode/settings.json +20 -0
  6. package/CHANGELOG.md +27 -0
  7. package/icon.config.ts +3 -1
  8. package/package.json +16 -16
  9. package/sonar-project.properties +4 -1
  10. package/src/components/Badge.vue +4 -1
  11. package/src/components/Badges.vue +40 -10
  12. package/src/components/Breadcrumbs.vue +41 -12
  13. package/src/components/ButtonCopy.vue +10 -4
  14. package/src/components/Category/CategoryLink.vue +5 -1
  15. package/src/components/Category/CategorySidebarToggler.vue +5 -1
  16. package/src/components/FeaturesList.vue +11 -4
  17. package/src/components/FuckRussia.vue +36 -9
  18. package/src/components/Input.vue +18 -5
  19. package/src/components/MainColors.vue +13 -3
  20. package/src/components/MainInput.vue +2 -3
  21. package/src/components/PartNumber.vue +4 -1
  22. package/src/components/Product/ProductButton.vue +4 -1
  23. package/src/components/Product/ProductDetailName.vue +4 -1
  24. package/src/components/Product/ProductDetails.vue +57 -15
  25. package/src/components/Product/ProductDoc.vue +4 -1
  26. package/src/components/Product/ProductEngineType.vue +4 -1
  27. package/src/components/Product/ProductLink.vue +27 -8
  28. package/src/components/Product/ProductLinkInfo.astro +1 -1
  29. package/src/components/Product/ProductModel.vue +4 -1
  30. package/src/components/Product/ProductModels.vue +10 -2
  31. package/src/components/Product/ProductPositions.vue +5 -1
  32. package/src/components/ProductCodes.vue +9 -2
  33. package/src/components/ProductDetailName.vue +4 -1
  34. package/src/components/ProductDetailsList.vue +46 -15
  35. package/src/components/SlimBanner.vue +9 -7
  36. package/src/components/Table.vue +16 -4
  37. package/src/components/Translations.vue +4 -1
  38. package/src/pages/index.astro +12 -12
  39. package/src/styles/base/base.css +7 -8
  40. package/src/styles/base/typography.css +2 -2
  41. package/src/styles/main.css +0 -1
  42. package/src/types/Product.ts +77 -22
  43. package/src/types/catalog.ts +33 -0
  44. package/src/types/category.ts +54 -0
  45. package/src/types/common.ts +38 -0
  46. package/src/types/index.ts +5 -232
  47. package/src/utils/api/getCategories.ts +0 -4
  48. package/src/utils/product/getProductChecklist.ts +1 -1
  49. package/src/utils/seo/getShorterDescription.ts +1 -1
  50. package/uno-config/theme/index.ts +7 -9
  51. package/uno-config/theme/shortcuts/buttons.ts +1 -1
  52. package/.astro/content-assets.mjs +0 -1
  53. package/.astro/content-modules.mjs +0 -1
  54. package/.astro/content.d.ts +0 -210
  55. package/.astro/data-store.json +0 -1
  56. package/.astro/settings.json +0 -5
  57. package/.astro/types.d.ts +0 -2
  58. package/.claude/settings.local.json +0 -25
  59. /package/{src/components/Jumbotron/styles.css → .nojekyll} +0 -0
@@ -1,210 +0,0 @@
1
- declare module 'astro:content' {
2
- interface Render {
3
- '.mdx': Promise<{
4
- Content: import('astro').MarkdownInstance<{}>['Content'];
5
- headings: import('astro').MarkdownHeading[];
6
- remarkPluginFrontmatter: Record<string, any>;
7
- components: import('astro').MDXInstance<{}>['components'];
8
- }>;
9
- }
10
- }
11
-
12
- declare module 'astro:content' {
13
- export interface RenderResult {
14
- Content: import('astro/runtime/server/index.js').AstroComponentFactory;
15
- headings: import('astro').MarkdownHeading[];
16
- remarkPluginFrontmatter: Record<string, any>;
17
- }
18
- interface Render {
19
- '.md': Promise<RenderResult>;
20
- }
21
-
22
- export interface RenderedContent {
23
- html: string;
24
- metadata?: {
25
- imagePaths: Array<string>;
26
- [key: string]: unknown;
27
- };
28
- }
29
- }
30
-
31
- declare module 'astro:content' {
32
- type Flatten<T> = T extends { [K: string]: infer U } ? U : never;
33
-
34
- export type CollectionKey = keyof AnyEntryMap;
35
- export type CollectionEntry<C extends CollectionKey> = Flatten<AnyEntryMap[C]>;
36
-
37
- export type ContentCollectionKey = keyof ContentEntryMap;
38
- export type DataCollectionKey = keyof DataEntryMap;
39
-
40
- type AllValuesOf<T> = T extends any ? T[keyof T] : never;
41
- type ValidContentEntrySlug<C extends keyof ContentEntryMap> = AllValuesOf<
42
- ContentEntryMap[C]
43
- >['slug'];
44
-
45
- export type ReferenceDataEntry<
46
- C extends CollectionKey,
47
- E extends keyof DataEntryMap[C] = string,
48
- > = {
49
- collection: C;
50
- id: E;
51
- };
52
- export type ReferenceContentEntry<
53
- C extends keyof ContentEntryMap,
54
- E extends ValidContentEntrySlug<C> | (string & {}) = string,
55
- > = {
56
- collection: C;
57
- slug: E;
58
- };
59
- export type ReferenceLiveEntry<C extends keyof LiveContentConfig['collections']> = {
60
- collection: C;
61
- id: string;
62
- };
63
-
64
- /** @deprecated Use `getEntry` instead. */
65
- export function getEntryBySlug<
66
- C extends keyof ContentEntryMap,
67
- E extends ValidContentEntrySlug<C> | (string & {}),
68
- >(
69
- collection: C,
70
- // Note that this has to accept a regular string too, for SSR
71
- entrySlug: E,
72
- ): E extends ValidContentEntrySlug<C>
73
- ? Promise<CollectionEntry<C>>
74
- : Promise<CollectionEntry<C> | undefined>;
75
-
76
- /** @deprecated Use `getEntry` instead. */
77
- export function getDataEntryById<C extends keyof DataEntryMap, E extends keyof DataEntryMap[C]>(
78
- collection: C,
79
- entryId: E,
80
- ): Promise<CollectionEntry<C>>;
81
-
82
- export function getCollection<C extends keyof AnyEntryMap, E extends CollectionEntry<C>>(
83
- collection: C,
84
- filter?: (entry: CollectionEntry<C>) => entry is E,
85
- ): Promise<E[]>;
86
- export function getCollection<C extends keyof AnyEntryMap>(
87
- collection: C,
88
- filter?: (entry: CollectionEntry<C>) => unknown,
89
- ): Promise<CollectionEntry<C>[]>;
90
-
91
- export function getLiveCollection<C extends keyof LiveContentConfig['collections']>(
92
- collection: C,
93
- filter?: LiveLoaderCollectionFilterType<C>,
94
- ): Promise<
95
- import('astro').LiveDataCollectionResult<LiveLoaderDataType<C>, LiveLoaderErrorType<C>>
96
- >;
97
-
98
- export function getEntry<
99
- C extends keyof ContentEntryMap,
100
- E extends ValidContentEntrySlug<C> | (string & {}),
101
- >(
102
- entry: ReferenceContentEntry<C, E>,
103
- ): E extends ValidContentEntrySlug<C>
104
- ? Promise<CollectionEntry<C>>
105
- : Promise<CollectionEntry<C> | undefined>;
106
- export function getEntry<
107
- C extends keyof DataEntryMap,
108
- E extends keyof DataEntryMap[C] | (string & {}),
109
- >(
110
- entry: ReferenceDataEntry<C, E>,
111
- ): E extends keyof DataEntryMap[C]
112
- ? Promise<DataEntryMap[C][E]>
113
- : Promise<CollectionEntry<C> | undefined>;
114
- export function getEntry<
115
- C extends keyof ContentEntryMap,
116
- E extends ValidContentEntrySlug<C> | (string & {}),
117
- >(
118
- collection: C,
119
- slug: E,
120
- ): E extends ValidContentEntrySlug<C>
121
- ? Promise<CollectionEntry<C>>
122
- : Promise<CollectionEntry<C> | undefined>;
123
- export function getEntry<
124
- C extends keyof DataEntryMap,
125
- E extends keyof DataEntryMap[C] | (string & {}),
126
- >(
127
- collection: C,
128
- id: E,
129
- ): E extends keyof DataEntryMap[C]
130
- ? string extends keyof DataEntryMap[C]
131
- ? Promise<DataEntryMap[C][E]> | undefined
132
- : Promise<DataEntryMap[C][E]>
133
- : Promise<CollectionEntry<C> | undefined>;
134
- export function getLiveEntry<C extends keyof LiveContentConfig['collections']>(
135
- collection: C,
136
- filter: string | LiveLoaderEntryFilterType<C>,
137
- ): Promise<import('astro').LiveDataEntryResult<LiveLoaderDataType<C>, LiveLoaderErrorType<C>>>;
138
-
139
- /** Resolve an array of entry references from the same collection */
140
- export function getEntries<C extends keyof ContentEntryMap>(
141
- entries: ReferenceContentEntry<C, ValidContentEntrySlug<C>>[],
142
- ): Promise<CollectionEntry<C>[]>;
143
- export function getEntries<C extends keyof DataEntryMap>(
144
- entries: ReferenceDataEntry<C, keyof DataEntryMap[C]>[],
145
- ): Promise<CollectionEntry<C>[]>;
146
-
147
- export function render<C extends keyof AnyEntryMap>(
148
- entry: AnyEntryMap[C][string],
149
- ): Promise<RenderResult>;
150
-
151
- export function reference<C extends keyof AnyEntryMap>(
152
- collection: C,
153
- ): import('astro/zod').ZodEffects<
154
- import('astro/zod').ZodString,
155
- C extends keyof ContentEntryMap
156
- ? ReferenceContentEntry<C, ValidContentEntrySlug<C>>
157
- : ReferenceDataEntry<C, keyof DataEntryMap[C]>
158
- >;
159
- // Allow generic `string` to avoid excessive type errors in the config
160
- // if `dev` is not running to update as you edit.
161
- // Invalid collection names will be caught at build time.
162
- export function reference<C extends string>(
163
- collection: C,
164
- ): import('astro/zod').ZodEffects<import('astro/zod').ZodString, never>;
165
-
166
- type ReturnTypeOrOriginal<T> = T extends (...args: any[]) => infer R ? R : T;
167
- type InferEntrySchema<C extends keyof AnyEntryMap> = import('astro/zod').infer<
168
- ReturnTypeOrOriginal<Required<ContentConfig['collections'][C]>['schema']>
169
- >;
170
-
171
- type ContentEntryMap = {
172
-
173
- };
174
-
175
- type DataEntryMap = {
176
-
177
- };
178
-
179
- type AnyEntryMap = ContentEntryMap & DataEntryMap;
180
-
181
- type ExtractLoaderTypes<T> = T extends import('astro/loaders').LiveLoader<
182
- infer TData,
183
- infer TEntryFilter,
184
- infer TCollectionFilter,
185
- infer TError
186
- >
187
- ? { data: TData; entryFilter: TEntryFilter; collectionFilter: TCollectionFilter; error: TError }
188
- : { data: never; entryFilter: never; collectionFilter: never; error: never };
189
- type ExtractDataType<T> = ExtractLoaderTypes<T>['data'];
190
- type ExtractEntryFilterType<T> = ExtractLoaderTypes<T>['entryFilter'];
191
- type ExtractCollectionFilterType<T> = ExtractLoaderTypes<T>['collectionFilter'];
192
- type ExtractErrorType<T> = ExtractLoaderTypes<T>['error'];
193
-
194
- type LiveLoaderDataType<C extends keyof LiveContentConfig['collections']> =
195
- LiveContentConfig['collections'][C]['schema'] extends undefined
196
- ? ExtractDataType<LiveContentConfig['collections'][C]['loader']>
197
- : import('astro/zod').infer<
198
- Exclude<LiveContentConfig['collections'][C]['schema'], undefined>
199
- >;
200
- type LiveLoaderEntryFilterType<C extends keyof LiveContentConfig['collections']> =
201
- ExtractEntryFilterType<LiveContentConfig['collections'][C]['loader']>;
202
- type LiveLoaderCollectionFilterType<C extends keyof LiveContentConfig['collections']> =
203
- ExtractCollectionFilterType<LiveContentConfig['collections'][C]['loader']>;
204
- type LiveLoaderErrorType<C extends keyof LiveContentConfig['collections']> = ExtractErrorType<
205
- LiveContentConfig['collections'][C]['loader']
206
- >;
207
-
208
- export type ContentConfig = typeof import("../src/content.config.mjs");
209
- export type LiveContentConfig = never;
210
- }
@@ -1 +0,0 @@
1
- [["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.13.10","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"site\":\"https://sds.spoko.space/\",\"compressHTML\":true,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":1},\"server\":{\"open\":false,\"host\":false,\"port\":1234,\"streaming\":true,\"allowedHosts\":[]},\"redirects\":{},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[\"placehold.co\",\"api.polo.blue\",\"polo.blue\",\"media.istockphoto.com\",\"freepik.com\",\"img.freepik.com\",\"polo6r.pl\"],\"remotePatterns\":[],\"responsiveStyles\":false},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":{\"type\":\"shiki\",\"excludeLangs\":[\"math\"]},\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true},\"env\":{\"schema\":{},\"validateSecrets\":false},\"experimental\":{\"clientPrerender\":false,\"contentIntellisense\":false,\"headingIdCompat\":false,\"preserveScriptOrder\":false,\"liveContentCollections\":false,\"csp\":false,\"staticImportMetaEnv\":false,\"chromeDevtoolsWorkspace\":false},\"legacy\":{\"collections\":false}}"]
@@ -1,5 +0,0 @@
1
- {
2
- "_variables": {
3
- "lastUpdateCheck": 1758628311891
4
- }
5
- }
package/.astro/types.d.ts DELETED
@@ -1,2 +0,0 @@
1
- /// <reference types="astro/client" />
2
- /// <reference path="content.d.ts" />
@@ -1,25 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(git remote get-url:*)",
5
- "Bash(npm run dev:*)",
6
- "Bash(tasklist)",
7
- "Bash(findstr:*)",
8
- "Bash(git add:*)",
9
- "Bash(npm install:*)",
10
- "Bash(pnpm add:*)",
11
- "Bash(pnpm i:*)",
12
- "Bash(pnpm install:*)",
13
- "Bash(pnpm dev:*)",
14
- "Bash(node:*)",
15
- "WebFetch(domain:polo.blue)",
16
- "Bash(git commit:*)",
17
- "Bash(git push:*)",
18
- "Bash(pnpm run:*)",
19
- "Bash(git stash:*)",
20
- "Bash(git pull:*)"
21
- ],
22
- "deny": [],
23
- "ask": []
24
- }
25
- }