spoko-design-system 0.0.1 → 0.0.5

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 (113) hide show
  1. package/.astro/icon.d.ts +8109 -10
  2. package/.github/workflows/deploy.yml +39 -39
  3. package/.stackblitzrc +5 -5
  4. package/.vscode/extensions.json +5 -4
  5. package/.vscode/launch.json +11 -11
  6. package/.vscode/settings.json +6 -0
  7. package/LICENSE +21 -21
  8. package/Layout/Header.astro +111 -89
  9. package/README.md +94 -69
  10. package/astro-i18next.config.mjs +17 -17
  11. package/astro-i18next.config.ts +10 -10
  12. package/astro.config.mjs +51 -42
  13. package/index.ts +6 -6
  14. package/package.json +25 -17
  15. package/public/astro-design-system-logo.svg +10 -10
  16. package/public/favicon.ico +0 -0
  17. package/public/favicon.svg +0 -0
  18. package/public/fonts/lg.svg +53 -53
  19. package/public/fonts/vwhead-bold-demo.html +549 -549
  20. package/public/fonts/vwhead-regular-demo.html +549 -549
  21. package/public/fonts/vwtext-bold-demo.html +549 -549
  22. package/public/fonts/vwtext-regular-demo.html +549 -549
  23. package/public/github.svg +3 -3
  24. package/public/grid_dot.svg +4 -4
  25. package/public/linkedin.svg +44 -44
  26. package/public/locales/en/translation.json +8 -5
  27. package/public/locales/pl/translation.json +8 -5
  28. package/public/make-scrollable-code-focusable.js +3 -3
  29. package/public/polo.blue.svg +29 -0
  30. package/public/spoko.space.svg +71 -0
  31. package/public/twitter.svg +46 -46
  32. package/sandbox.config.json +11 -11
  33. package/src/MyComponent.astro +8 -8
  34. package/src/components/Badge.vue +19 -19
  35. package/src/components/Badges.vue +24 -23
  36. package/src/components/Breadcrumbs.vue +108 -111
  37. package/src/components/Button.vue +37 -0
  38. package/src/components/ButtonCopy.vue +52 -0
  39. package/src/components/Card.astro +25 -0
  40. package/src/components/CategoryLink.astro +18 -0
  41. package/src/components/Copyright.astro +11 -11
  42. package/src/components/Date.astro +7 -0
  43. package/src/components/FuckRussia.vue +65 -65
  44. package/src/components/HandDrive.astro +29 -30
  45. package/src/components/HeadCommon.astro +40 -40
  46. package/src/components/HeadSEO.astro +41 -41
  47. package/src/components/Header/AstroLogo.astro +7 -27
  48. package/src/components/Header/Header.astro +44 -48
  49. package/src/components/Header/SkipToContent.astro +1 -1
  50. package/src/components/Headline.vue +60 -0
  51. package/src/components/Image.astro +30 -0
  52. package/src/components/Jumbatron.vue +46 -31
  53. package/src/components/LeftSidebar.astro +45 -44
  54. package/src/components/MainColors.vue +29 -29
  55. package/src/components/MainInput.vue +18 -18
  56. package/src/components/MainTable.vue +40 -45
  57. package/src/components/Modal.astro +30 -0
  58. package/src/components/PageContent.astro +14 -14
  59. package/src/components/PostHeader.astro +104 -0
  60. package/src/components/PrCode.vue +156 -0
  61. package/src/components/ProductNumber.astro +117 -0
  62. package/src/components/ProductTile.astro +54 -0
  63. package/src/components/RightSidebar.astro +15 -11
  64. package/src/components/SlimBanner.vue +59 -59
  65. package/src/components/TableOfContents.astro +11 -11
  66. package/src/components/Translations.vue +27 -0
  67. package/src/components/flags/FlagPL.vue +2 -2
  68. package/src/components/flags/FlagUA.vue +2 -2
  69. package/src/components/layout/Header.astro +50 -69
  70. package/src/config.ts +51 -42
  71. package/src/design.config.ts +73 -92
  72. package/src/env.d.ts +1 -1
  73. package/src/flag-poland.svg +1 -0
  74. package/src/flag-uk.svg +1 -0
  75. package/src/layouts/Layout.astro +43 -0
  76. package/src/layouts/MainLayout.astro +60 -50
  77. package/src/pages/components/badges.mdx +69 -35
  78. package/src/pages/components/breadcrumbs.mdx +136 -103
  79. package/src/pages/components/buttons.mdx +143 -60
  80. package/src/pages/components/card.mdx +40 -0
  81. package/src/pages/components/copyright.mdx +41 -24
  82. package/src/pages/components/flags.mdx +40 -26
  83. package/src/pages/components/fuck-russia.mdx +39 -16
  84. package/src/pages/components/hand-drive.mdx +38 -27
  85. package/src/pages/components/headline.mdx +148 -0
  86. package/src/pages/components/icons.astro +54 -45
  87. package/src/pages/components/image.mdx +502 -0
  88. package/src/pages/components/input.mdx +45 -14
  89. package/src/pages/components/jumbatron.mdx +71 -48
  90. package/src/pages/components/modal.mdx +64 -0
  91. package/src/pages/components/post-header.mdx +58 -0
  92. package/src/pages/components/pr-code.mdx +41 -0
  93. package/src/pages/components/product-number.mdx +65 -0
  94. package/src/pages/components/product-tile.mdx +39 -0
  95. package/src/pages/components/slimbanner.mdx +29 -27
  96. package/src/pages/components/table.mdx +39 -20
  97. package/src/pages/core/colors.mdx +8 -8
  98. package/src/pages/core/introduction.mdx +74 -68
  99. package/src/pages/core/shadows.astro +20 -20
  100. package/src/pages/core/typography.astro +46 -46
  101. package/src/pages/index.astro +70 -52
  102. package/src/pages/patterns/introduction.mdx +60 -61
  103. package/src/styles/_variables.scss +75 -75
  104. package/src/styles/base/_base.scss +166 -158
  105. package/src/styles/base/_typography.scss +147 -147
  106. package/src/styles/content.scss +66 -71
  107. package/src/styles/main.scss +22 -22
  108. package/tailwind.config.cjs +8 -8
  109. package/tsconfig.json +11 -11
  110. package/uno.config.ts +246 -227
  111. package/src/components/MainButton.vue +0 -26
  112. package/src/components/MainStatusPill.vue +0 -32
  113. package/src/pages/components/status-pill.mdx +0 -22
@@ -1,72 +1,67 @@
1
- .content {
2
- h1,
3
- h2,
4
- h3,
5
- h4,
6
- h5,
7
- h6 {
8
- margin-top: 1.77rem;
9
- }
10
- h1 {
11
- font-size: 22pt;
12
- font-weight: 400;
13
- }
14
- h2 {
15
- font-size: 17pt;
16
- font-weight: 500;
17
- }
18
- h3 {
19
- font-size: 15pt;
20
- font-weight: 600;
21
- }
22
- h4 {
23
- font-size: 13pt;
24
- }
25
- p {
26
- // margin-top: 0.77rem;
27
- // color: theme("colors.slate.600");
28
- }
29
- // a {
30
- // color: theme("colors.blue.600");
31
- // }
32
-
33
- pre.astro-code {
34
- margin: 0.5rem;
35
- }
36
-
37
- code {
38
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
39
- Consolas, "Liberation Mono", "Courier New", monospace;
40
- }
41
-
42
- .component-preview {
43
- padding: 4rem;
44
- display: flex;
45
- gap: 1rem;
46
- justify-content: center;
47
- align-items: center;
48
- @apply bg-gray-200;
49
- // background-image: url("/grid_dot.svg");
50
- background-repeat: repeat;
51
- background-size: 1.5rem;
52
- border-radius: 0.33rem;
53
- border: 1px solid theme("colors.slate.200");
54
- margin: 0.5rem;
55
- resize: both;
56
- }
57
-
58
- .astro-code {
59
- padding: 1rem;
60
- border-radius: 0.44rem;
61
- }
62
- }
63
-
64
-
65
- .bg-vw {
66
- background: radial-gradient(
67
- circle at 50% 85%,
68
- #00437A 0%,
69
- #001E50 100%
70
- );
71
- color: #fff;
1
+ .content {
2
+ .main-section {
3
+ &>h1,
4
+ &>h2,
5
+ &>h3,
6
+ &>h4,
7
+ &>h5,
8
+ &>h6 {
9
+ margin-top: 1.77rem;
10
+ }
11
+ &>h1 {
12
+ font-size: 22pt;
13
+ font-weight: 400;
14
+ }
15
+ &>h2 {
16
+ font-size: 17pt;
17
+ font-weight: 500;
18
+ }
19
+ &>h3 {
20
+ font-size: 15pt;
21
+ font-weight: 600;
22
+ }
23
+ &>h4 {
24
+ font-size: 13pt;
25
+ }
26
+ }
27
+
28
+ p {
29
+ // margin-top: 0.77rem;
30
+ // color: theme("colors.slate.600");
31
+ }
32
+
33
+ code {
34
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
35
+ Consolas, "Liberation Mono", "Courier New", monospace;
36
+ }
37
+
38
+ .component-preview {
39
+ @apply bg-blue-600 bg-opacity-5 px-0 py-4 mx-0 sm:(p-8) flex items-center;
40
+ gap: 1rem;
41
+ border-radius: 0.33rem;
42
+ border: 1px solid theme("colors.slate.200");
43
+ resize: both;
44
+ }
45
+
46
+ .astro-code {
47
+ @apply mx-0 p-4;
48
+ border-radius: 0.44rem;
49
+ }
50
+ }
51
+
52
+
53
+ table {
54
+ @apply table-auto text-left border bg-white shadow-md;
55
+
56
+ tr {
57
+ @apply border;
58
+ }
59
+
60
+ td, th {
61
+ @apply px-4 py-2;
62
+ }
63
+
64
+ thead {
65
+ @apply bg-gray-100;
66
+ }
72
67
  }
@@ -1,22 +1,22 @@
1
-
2
- @import "variables";
3
- @import "base/typography";
4
- @import "base/base";
5
-
6
-
7
-
8
-
9
- @import "content.scss";
10
-
11
-
12
-
13
-
14
-
15
- // body {
16
- // font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
17
- // Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
18
- // }
19
-
20
- // @tailwind base;
21
- // @tailwind components;
22
- // @tailwind utilities;
1
+
2
+ @import "variables";
3
+ @import "base/typography";
4
+ @import "base/base";
5
+
6
+
7
+
8
+
9
+ @import "content.scss";
10
+
11
+
12
+
13
+
14
+
15
+ // body {
16
+ // font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
17
+ // Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
18
+ // }
19
+
20
+ // @tailwind base;
21
+ // @tailwind components;
22
+ // @tailwind utilities;
@@ -1,8 +1,8 @@
1
- module.exports = {
2
- // darkMode: "class",
3
- content: ["./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}"],
4
- theme: {
5
- extend: {},
6
- },
7
- plugins: [],
8
- };
1
+ module.exports = {
2
+ // darkMode: "class",
3
+ content: ["./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}"],
4
+ theme: {
5
+ extend: {},
6
+ },
7
+ plugins: [],
8
+ };
package/tsconfig.json CHANGED
@@ -1,12 +1,12 @@
1
- {
2
- "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/**/*.d.ts"],
3
- "compilerOptions": {
4
- "target": "esnext",
5
- "useDefineForClassFields": true,
6
- "module": "esnext",
7
- "moduleResolution": "node",
8
- "jsx": "preserve",
9
- "allowJs": true,
10
- "types": ["vite/client"]
11
- },
1
+ {
2
+ "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/**/*.d.ts"],
3
+ "compilerOptions": {
4
+ "target": "esnext",
5
+ "useDefineForClassFields": true,
6
+ "module": "esnext",
7
+ "moduleResolution": "node",
8
+ "jsx": "preserve",
9
+ "allowJs": true,
10
+ "types": ["vite/client"]
11
+ },
12
12
  }