@kickstartds/ds-agency-premium 1.4.12--canary.15.804.0 → 1.4.12

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 (60) hide show
  1. package/dist/{BlogAsideProps-99489f0b.d.ts → BlogAsideProps-e1cbd5d3.d.ts} +4 -11
  2. package/dist/{BlogHeadProps-f9a49428.d.ts → BlogHeadProps-3f6e4072.d.ts} +2 -1
  3. package/dist/BlogOverviewProps-9f207f1c.d.ts +1 -1
  4. package/dist/{BlogPostProps-440f88a5.d.ts → BlogPostProps-6b3cff22.d.ts} +3 -3
  5. package/dist/BlogTagProps-f5855e93.d.ts +16 -0
  6. package/dist/{BlogTeaserProps-525f7f9f.d.ts → BlogTeaserProps-f5855e93.d.ts} +2 -1
  7. package/dist/PageProps-aa29c554.d.ts +49 -0
  8. package/dist/components/blog-aside/blog-aside.css +16 -8
  9. package/dist/components/blog-aside/blog-aside.schema.dereffed.json +7 -21
  10. package/dist/components/blog-aside/blog-aside.schema.json +5 -16
  11. package/dist/components/blog-aside/index.d.ts +1 -1
  12. package/dist/components/blog-aside/index.js +2 -2
  13. package/dist/components/blog-head/blog-head.schema.dereffed.json +18 -4
  14. package/dist/components/blog-head/blog-head.schema.json +1 -2
  15. package/dist/components/blog-head/index.d.ts +1 -1
  16. package/dist/components/blog-head/index.js +1 -1
  17. package/dist/components/blog-overview/blog-overview.schema.dereffed.json +54 -12
  18. package/dist/components/blog-post/blog-post.schema.dereffed.json +26 -25
  19. package/dist/components/blog-post/blog-post.schema.json +1 -1
  20. package/dist/components/blog-post/index.d.ts +1 -1
  21. package/dist/components/blog-post/index.js +1 -1
  22. package/dist/components/blog-tag/blog-tag.schema.dereffed.json +21 -0
  23. package/dist/components/blog-tag/blog-tag.schema.json +16 -0
  24. package/dist/components/blog-teaser/blog-teaser.schema.dereffed.json +18 -4
  25. package/dist/components/blog-teaser/blog-teaser.schema.json +1 -2
  26. package/dist/components/blog-teaser/index.d.ts +1 -1
  27. package/dist/components/blog-teaser/index.js +1 -1
  28. package/dist/components/index/index.d.ts +4 -51
  29. package/dist/components/nav-flyout/nav-flyout.css +1 -6
  30. package/dist/components/nav-main/index.js +1 -0
  31. package/dist/components/nav-main/nav-main.css +11 -0
  32. package/dist/components/nav-toggle/nav-toggle.css +0 -5
  33. package/dist/components/nav-topbar/nav-topbar.css +1 -7
  34. package/dist/components/page/index.d.ts +4 -0
  35. package/dist/components/page/index.js +6 -0
  36. package/dist/components/page-wrapper/index.js +0 -6
  37. package/dist/components/page-wrapper/tokens.css +9 -9
  38. package/dist/components/presets.json +60 -197
  39. package/dist/components/providers/index.js +1 -7
  40. package/dist/components/split/index.d.ts +1 -2
  41. package/dist/components/split/index.js +1 -11
  42. package/dist/components/split/split.css +10 -36
  43. package/dist/components/split/split.schema.dereffed.json +3 -12
  44. package/dist/components/split/split.schema.json +1 -7
  45. package/dist/static/img/people/author-john.png +0 -0
  46. package/dist/tokens/themes.css +4 -4
  47. package/dist/tokens/tokens.css +9 -9
  48. package/dist/tokens/tokens.js +9 -9
  49. package/package.json +1 -1
  50. package/dist/components/contact/contact.css +0 -125
  51. package/dist/components/contact/contact.schema.dereffed.json +0 -125
  52. package/dist/components/contact/contact.schema.json +0 -107
  53. package/dist/components/contact/index.d.ts +0 -70
  54. package/dist/components/contact/index.js +0 -16
  55. package/dist/components/html/html.schema.json +0 -25
  56. package/dist/components/html/index.d.ts +0 -26
  57. package/dist/components/html/index.js +0 -6
  58. package/dist/static/img/people/contact-jim.png +0 -0
  59. package/dist/static/img/people/contact-john.png +0 -0
  60. package/dist/static/img/people/portrait-young-girl-smiling.jpg +0 -0
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Sep 2024 11:11:38 GMT
3
+ * Generated on Mon, 02 Sep 2024 12:04:56 GMT
4
4
  */
5
5
  :root [ks-theme=business] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2727,7 +2727,7 @@
2727
2727
  }
2728
2728
  /**
2729
2729
  * Do not edit directly
2730
- * Generated on Mon, 02 Sep 2024 11:11:41 GMT
2730
+ * Generated on Mon, 02 Sep 2024 12:05:00 GMT
2731
2731
  */
2732
2732
  :root [ks-theme=google] {
2733
2733
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -5458,7 +5458,7 @@
5458
5458
  }
5459
5459
  /**
5460
5460
  * Do not edit directly
5461
- * Generated on Mon, 02 Sep 2024 11:11:40 GMT
5461
+ * Generated on Mon, 02 Sep 2024 12:04:58 GMT
5462
5462
  */
5463
5463
  :root [ks-theme=ngo] {
5464
5464
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -8459,7 +8459,7 @@
8459
8459
  }
8460
8460
  /**
8461
8461
  * Do not edit directly
8462
- * Generated on Mon, 02 Sep 2024 11:11:43 GMT
8462
+ * Generated on Mon, 02 Sep 2024 12:05:03 GMT
8463
8463
  */
8464
8464
  :root [ks-theme=telekom] {
8465
8465
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Sep 2024 11:11:36 GMT
3
+ * Generated on Mon, 02 Sep 2024 12:04:53 GMT
4
4
  */
5
5
 
6
6
  :root, [ks-theme] {
@@ -116,8 +116,8 @@
116
116
  --ks-background-color-secondary-inverted-interactive-active-base: var(--ks-color-secondary-inverted-to-bg-2-base);
117
117
  --ks-background-color-secondary-inverted-interactive-selected-base: var(--ks-color-secondary-inverted-to-bg-4-base);
118
118
  --ks-background-color-secondary-inverted-translucent-base: var(--ks-color-secondary-inverted-alpha-5-base);
119
- --ks-border-color-accent-base: var(--ks-color-fg-to-bg-7-base);
120
- --ks-border-color-accent-inverted-base: var(--ks-color-fg-inverted-to-bg-7-base);
119
+ --ks-border-color-accent-base: var(--ks-color-primary-to-bg-8-base);
120
+ --ks-border-color-accent-inverted-base: var(--ks-color-primary-inverted-to-bg-8-base);
121
121
  --ks-border-color-clear-base: var(--ks-color-transparent-base);
122
122
  --ks-border-color-clear-interactive-base: var(--ks-color-transparent-base);
123
123
  --ks-border-color-clear-interactive-hover-base: var(--ks-color-primary-alpha-8-base);
@@ -808,14 +808,14 @@
808
808
  --ks-spacing-inset-stretch-xl: var(--ks-spacing-xxl) var(--ks-spacing-xl);
809
809
  --ks-text-color-default-base: var(--ks-color-fg-base);
810
810
  --ks-text-color-default-interactive-base: var(--ks-color-link-base);
811
- --ks-text-color-default-interactive-hover-base: var(--ks-color-link-to-fg-5-base);
812
- --ks-text-color-default-interactive-active-base: var(--ks-color-link-to-fg-5-base);
813
- --ks-text-color-default-interactive-selected-base: var(--ks-color-link-to-fg-5-base);
811
+ --ks-text-color-default-interactive-hover-base: var(--ks-color-link-base);
812
+ --ks-text-color-default-interactive-active-base: var(--ks-color-link-base);
813
+ --ks-text-color-default-interactive-selected-base: var(--ks-color-link-base);
814
814
  --ks-text-color-default-inverted-base: var(--ks-color-fg-inverted-base);
815
815
  --ks-text-color-default-inverted-interactive-base: var(--ks-color-link-inverted-base);
816
- --ks-text-color-default-inverted-interactive-hover-base: var(--ks-color-link-inverted-to-fg-5-base);
817
- --ks-text-color-default-inverted-interactive-active-base: var(--ks-color-link-inverted-to-fg-5-base);
818
- --ks-text-color-default-inverted-interactive-selected-base: var(--ks-color-link-inverted-to-fg-5-base);
816
+ --ks-text-color-default-inverted-interactive-hover-base: var(--ks-color-link-inverted-base);
817
+ --ks-text-color-default-inverted-interactive-active-base: var(--ks-color-link-inverted-base);
818
+ --ks-text-color-default-inverted-interactive-selected-base: var(--ks-color-link-inverted-base);
819
819
  --ks-text-color-copy-base: var(--ks-color-fg-alpha-3-base);
820
820
  --ks-text-color-copy-interactive-base: var(--ks-color-link-base);
821
821
  --ks-text-color-copy-interactive-hover-base: var(--ks-color-link-to-fg-2-base);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 02 Sep 2024 11:11:36 GMT
3
+ * Generated on Mon, 02 Sep 2024 12:04:53 GMT
4
4
  */
5
5
 
6
6
  export const KsBackgroundColorAccentBase = "#230a2b";
@@ -115,8 +115,8 @@ export const KsBackgroundColorSecondaryInvertedInteractiveHoverBase = "#e43489";
115
115
  export const KsBackgroundColorSecondaryInvertedInteractiveActiveBase = "#e43489";
116
116
  export const KsBackgroundColorSecondaryInvertedInteractiveSelectedBase = "#e868a6";
117
117
  export const KsBackgroundColorSecondaryInvertedTranslucentBase = "rgba(226, 24, 121, 0.5)";
118
- export const KsBorderColorAccentBase = "#424355";
119
- export const KsBorderColorAccentInvertedBase = "#b9b9c0";
118
+ export const KsBorderColorAccentBase = "#230a2b";
119
+ export const KsBorderColorAccentInvertedBase = "#dcd6f2";
120
120
  export const KsBorderColorClearBase = "rgba(0, 0, 0, 0)";
121
121
  export const KsBorderColorClearInteractiveBase = "rgba(0, 0, 0, 0)";
122
122
  export const KsBorderColorClearInteractiveHoverBase = "rgba(226, 24, 121, 0.13)";
@@ -811,14 +811,14 @@ export const KsSpacingInsetStretchL = "1.7768rem 1.2469rem";
811
811
  export const KsSpacingInsetStretchXl = "2.5319rem 1.7768rem";
812
812
  export const KsTextColorDefaultBase = "#ffffff";
813
813
  export const KsTextColorDefaultInteractiveBase = "#b7a5ff";
814
- export const KsTextColorDefaultInteractiveHoverBase = "#dbd2ff";
815
- export const KsTextColorDefaultInteractiveActiveBase = "#dbd2ff";
816
- export const KsTextColorDefaultInteractiveSelectedBase = "#dbd2ff";
814
+ export const KsTextColorDefaultInteractiveHoverBase = "#b7a5ff";
815
+ export const KsTextColorDefaultInteractiveActiveBase = "#b7a5ff";
816
+ export const KsTextColorDefaultInteractiveSelectedBase = "#b7a5ff";
817
817
  export const KsTextColorDefaultInvertedBase = "#06081f";
818
818
  export const KsTextColorDefaultInvertedInteractiveBase = "#6642f6";
819
- export const KsTextColorDefaultInvertedInteractiveHoverBase = "#36258b";
820
- export const KsTextColorDefaultInvertedInteractiveActiveBase = "#36258b";
821
- export const KsTextColorDefaultInvertedInteractiveSelectedBase = "#36258b";
819
+ export const KsTextColorDefaultInvertedInteractiveHoverBase = "#6642f6";
820
+ export const KsTextColorDefaultInvertedInteractiveActiveBase = "#6642f6";
821
+ export const KsTextColorDefaultInvertedInteractiveSelectedBase = "#6642f6";
822
822
  export const KsTextColorCopyBase = "rgba(255, 255, 255, 0.76)";
823
823
  export const KsTextColorCopyInteractiveBase = "#b7a5ff";
824
824
  export const KsTextColorCopyInteractiveHoverBase = "#c0b1ff";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kickstartds/ds-agency-premium",
3
- "version": "1.4.12--canary.15.804.0",
3
+ "version": "1.4.12",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {
@@ -1,125 +0,0 @@
1
- .l-container--contact {
2
- /* stylelint-disable-next-line property-no-unknown */
3
- container-name: contact;
4
- }
5
-
6
- .dsa-contact {
7
- --dsa-contact--gap-horizontal: var(--ks-spacing-inline-m);
8
- --dsa-contact--gap-vertical: var(--ks-spacing-stack-m);
9
- --dsa-contact__header--gap: 0;
10
- --dsa-contact__image--flex-basis: 200px;
11
- --dsa-contact__image--border-radius: var(--ks-border-radius-card);
12
- --dsa-contact__body--gap: var(--ks-spacing-stack-xs);
13
- --dsa-contact__body--flex-basis: 300px;
14
- --dsa-contact__copy--font: var(--dsa-rich-text--font);
15
- --dsa-contact__copy--color: var(--dsa-rich-text--color);
16
- --dsa-contact__title--color: var(--ks-text-color-display);
17
- --dsa-contact__title--font: var(--ks-font-copy-l);
18
- --dsa-contact__title--font-weight: var(--ks-font-weight-bold);
19
- --dsa-contact__subtitle--color: var(--ks-text-color-display);
20
- --dsa-contact__subtitle--font: var(--ks-font-copy-m);
21
- --dsa-contact__subtitle--font-weight: var(--ks-font-weight-regular);
22
- --dsa-contact__links--gap: 0;
23
- --dsa-contact__link--color: var(--dsa-link--color);
24
- --dsa-contact__link--color_hover: var(--dsa-link--color_hover);
25
- --dsa-contact__link--font: var(--ks-font-interface-m);
26
- --dsa-contact__link--font-weight: var(--dsa-link--font-weight);
27
- --dsa-contact__link__icon--margin-right: 0.5em;
28
- --dsa-contact__link__icon--size: 1.5em;
29
- --dsa-contact__link__icon--color: inherit;
30
- }
31
-
32
- .l-container--contact {
33
- /* stylelint-disable-next-line property-no-unknown */
34
- container-name: contact;
35
- }
36
-
37
- .dsa-contact {
38
- display: flex;
39
- flex-wrap: wrap;
40
- gap: var(--dsa-contact--gap-horizontal) var(--dsa-contact--gap-vertical);
41
- }
42
- .dsa-contact__image-wrap, .dsa-contact__body {
43
- flex-grow: 1;
44
- }
45
- .dsa-contact__body {
46
- display: flex;
47
- flex-grow: 1;
48
- flex-shrink: 0;
49
- flex-direction: column;
50
- gap: var(--dsa-contact__body--gap);
51
- flex-basis: var(--dsa-contact__body--flex-basis);
52
- }
53
- .dsa-contact__copy {
54
- font: var(--dsa-contact__copy--font);
55
- color: var(--dsa-contact__copy--color);
56
- }
57
- .dsa-contact__image-wrap {
58
- flex: none;
59
- flex-basis: var(--dsa-contact__image--flex-basis);
60
- height: 100%;
61
- width: 100%;
62
- }
63
- .dsa-contact--image-full-width .dsa-contact__image-wrap {
64
- flex-grow: 1;
65
- }
66
- .dsa-contact--image-square .dsa-contact__image-wrap {
67
- aspect-ratio: 1/1;
68
- }
69
- .dsa-contact--image-wide .dsa-contact__image-wrap {
70
- aspect-ratio: 4/3;
71
- }
72
- .dsa-contact--image-vertical .dsa-contact__image-wrap {
73
- aspect-ratio: 3/4;
74
- }
75
- .dsa-contact__image {
76
- width: 100%;
77
- object-fit: cover;
78
- height: 100%;
79
- border-radius: var(--dsa-contact__image--border-radius);
80
- }
81
- .dsa-contact__header {
82
- display: flex;
83
- flex-direction: column;
84
- gap: var(--dsa-contact__header--gap);
85
- }
86
- .dsa-contact__title {
87
- font: var(--dsa-contact__title--font);
88
- color: var(--dsa-contact__title--color);
89
- font-weight: var(--dsa-contact__title--font-weight);
90
- }
91
- .dsa-contact__subtitle {
92
- font: var(--dsa-contact__subtitle--font);
93
- color: var(--dsa-contact__subtitle--color);
94
- font-weight: var(--dsa-contact__subtitle--font-weight);
95
- }
96
- .dsa-contact__links {
97
- display: flex;
98
- flex-direction: column;
99
- gap: var(--dsa-contact__links--gap);
100
- list-style: none;
101
- padding: 0;
102
- margin: 0;
103
- }
104
- .dsa-contact a.dsa-contact__link {
105
- color: var(--dsa-contact__link--color);
106
- font: var(--dsa-contact__link--font);
107
- font-weight: var(--dsa-contact__link--font-weight);
108
- }
109
- .dsa-contact a.dsa-contact__link .icon {
110
- width: var(--dsa-contact__link__icon--size);
111
- height: var(--dsa-contact__link__icon--size);
112
- color: var(--dsa-contact__link__icon--color);
113
- margin-right: var(--dsa-contact__link__icon--margin-right);
114
- }
115
- .dsa-contact a.dsa-contact__link:hover {
116
- color: var(--dsa-contact__link--color_hover);
117
- }
118
- .dsa-contact .c-headline {
119
- --c-headline--color: var(--dsa-contact__headline--color);
120
- --c-headline--font: var(--dsa-contact__headline--font);
121
- --c-headline--font-weight: var(--dsa-contact__headline--font-weight);
122
- --c-headline__subheadline--color: var(--dsa-contact__headline__subheadline--color);
123
- --c-headline__subheadline--font: var(--dsa-contact__headline__subheadline--font);
124
- --c-headline__subheadline--font-weight: var(--dsa-contact__headline__subheadline--font-weight);
125
- }
@@ -1,125 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.mydesignsystem.com/contact.schema.json",
4
- "title": "Contact",
5
- "description": "Component used for user interaction",
6
- "type": "object",
7
- "properties": {
8
- "image": {
9
- "type": "object",
10
- "properties": {
11
- "src": {
12
- "type": "string",
13
- "format": "image",
14
- "title": "Image Source",
15
- "description": "URL of the image to display",
16
- "examples": [
17
- "img/people/author-emily.png"
18
- ]
19
- },
20
- "alt": {
21
- "type": "string",
22
- "title": "Alt Text",
23
- "description": "Alt text of the image",
24
- "examples": [
25
- "Picture of Jane Smith"
26
- ]
27
- },
28
- "fullWidth": {
29
- "type": "boolean",
30
- "title": "Full Width",
31
- "description": "Image uses all the horizontal space vailable",
32
- "default": false
33
- },
34
- "aspectRatio": {
35
- "type": "string",
36
- "title": "aspectRatio",
37
- "description": "Aspect Ratio of the Images",
38
- "enum": [
39
- "wide",
40
- "square",
41
- "vertical"
42
- ],
43
- "default": "square"
44
- }
45
- },
46
- "additionalProperties": false
47
- },
48
- "title": {
49
- "title": "Title",
50
- "description": "Name, company name, etc.",
51
- "type": "string",
52
- "examples": [
53
- "Jane Smith"
54
- ]
55
- },
56
- "subtitle": {
57
- "title": "Subtitle",
58
- "description": "Position, profession, department, location, etc.",
59
- "type": "string",
60
- "examples": [
61
- "CEO at Company"
62
- ]
63
- },
64
- "links": {
65
- "type": "array",
66
- "items": {
67
- "type": "object",
68
- "properties": {
69
- "icon": {
70
- "type": "string"
71
- },
72
- "label": {
73
- "type": "string"
74
- },
75
- "href": {
76
- "type": "string",
77
- "format": "uri"
78
- },
79
- "newTab": {
80
- "title": "Open link in new Tab",
81
- "description": "Open link in new Tab",
82
- "type": "boolean",
83
- "default": false
84
- }
85
- },
86
- "additionalProperties": false
87
- },
88
- "examples": [
89
- [
90
- {
91
- "icon": "phone",
92
- "label": "0228 / 688 966 20",
93
- "href": "tel:+4922868896620"
94
- },
95
- {
96
- "icon": "email",
97
- "label": "mail@example.com",
98
- "href": "mailto:mail@example.com"
99
- }
100
- ]
101
- ]
102
- },
103
- "copy": {
104
- "title": "Copy text",
105
- "type": "string"
106
- },
107
- "className": {
108
- "title": "Class",
109
- "description": "Additional css classes attached to the wrapping element",
110
- "type": "string"
111
- },
112
- "component": {
113
- "title": "`ks-component` attribute",
114
- "description": "Optional custom component identifier",
115
- "type": "string"
116
- },
117
- "type": {
118
- "const": "contact"
119
- }
120
- },
121
- "additionalProperties": false,
122
- "required": [
123
- "name"
124
- ]
125
- }
@@ -1,107 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.mydesignsystem.com/contact.schema.json",
4
- "title": "Contact",
5
- "description": "Component used for user interaction",
6
- "type": "object",
7
- "properties": {
8
- "image": {
9
- "type": "object",
10
- "properties": {
11
- "src": {
12
- "type": "string",
13
- "format": "image",
14
- "title": "Image Source",
15
- "description": "URL of the image to display",
16
- "examples": ["img/people/author-emily.png"]
17
- },
18
- "alt": {
19
- "type": "string",
20
- "title": "Alt Text",
21
- "description": "Alt text of the image",
22
- "examples": ["Picture of Jane Smith"]
23
- },
24
- "fullWidth": {
25
- "type": "boolean",
26
- "title": "Full Width",
27
- "description": "Image uses all the horizontal space vailable",
28
- "default": false
29
- },
30
- "aspectRatio": {
31
- "type": "string",
32
- "title": "aspectRatio",
33
- "description": "Aspect Ratio of the Images",
34
- "enum": ["wide", "square", "vertical"],
35
- "default": "square"
36
- }
37
- }
38
- },
39
- "title": {
40
- "title": "Title",
41
- "description": "Name, company name, etc.",
42
- "type": "string",
43
- "examples": ["Jane Smith"]
44
- },
45
- "subtitle": {
46
- "title": "Subtitle",
47
- "description": "Position, profession, department, location, etc.",
48
- "type": "string",
49
- "examples": ["CEO at Company"]
50
- },
51
- "links": {
52
- "type": "array",
53
- "items": {
54
- "type": "object",
55
- "properties": {
56
- "icon": {
57
- "type": "string"
58
- },
59
- "label": {
60
- "type": "string"
61
- },
62
- "href": {
63
- "type": "string",
64
- "format": "uri"
65
- },
66
- "newTab": {
67
- "title": "Open link in new Tab",
68
- "description": "Open link in new Tab",
69
- "type": "boolean",
70
- "default": false
71
- }
72
- },
73
- "additionalProperties": false
74
- },
75
- "examples": [
76
- [
77
- {
78
- "icon": "phone",
79
- "label": "0228 / 688 966 20",
80
- "href": "tel:+4922868896620"
81
- },
82
- {
83
- "icon": "email",
84
- "label": "mail@example.com",
85
- "href": "mailto:mail@example.com"
86
- }
87
- ]
88
- ]
89
- },
90
- "copy": {
91
- "title": "Copy text",
92
- "type": "string"
93
- },
94
- "className": {
95
- "title": "Class",
96
- "description": "Additional css classes attached to the wrapping element",
97
- "type": "string"
98
- },
99
- "component": {
100
- "title": "`ks-component` attribute",
101
- "description": "Optional custom component identifier",
102
- "type": "string"
103
- }
104
- },
105
- "additionalProperties": false,
106
- "required": ["name"]
107
- }
@@ -1,70 +0,0 @@
1
- /// <reference types="react" />
2
- import { HTMLAttributes, FC, PropsWithChildren } from "react";
3
- /* eslint-disable */
4
- /**
5
- * This file was automatically generated by json-schema-to-typescript.
6
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
- * and run json-schema-to-typescript to regenerate this file.
8
- */
9
- /**
10
- * URL of the image to display
11
- */
12
- type ImageSource = string;
13
- /**
14
- * Alt text of the image
15
- */
16
- type AltText = string;
17
- /**
18
- * Image uses all the horizontal space vailable
19
- */
20
- type FullWidth = boolean;
21
- /**
22
- * Aspect Ratio of the Images
23
- */
24
- type AspectRatio = "wide" | "square" | "vertical";
25
- /**
26
- * Name, company name, etc.
27
- */
28
- type Title = string;
29
- /**
30
- * Position, profession, department, location, etc.
31
- */
32
- type Subtitle = string;
33
- /**
34
- * Open link in new Tab
35
- */
36
- type OpenLinkInNewTab = boolean;
37
- type CopyText = string;
38
- /**
39
- * Additional css classes attached to the wrapping element
40
- */
41
- type Class = string;
42
- /**
43
- * Optional custom component identifier
44
- */
45
- type KsComponentAttribute = string;
46
- /**
47
- * Component used for user interaction
48
- */
49
- interface ContactProps {
50
- image?: {
51
- src?: ImageSource;
52
- alt?: AltText;
53
- fullWidth?: FullWidth;
54
- aspectRatio?: AspectRatio;
55
- };
56
- title?: Title;
57
- subtitle?: Subtitle;
58
- links?: {
59
- icon?: string;
60
- label?: string;
61
- href?: string;
62
- newTab?: OpenLinkInNewTab;
63
- }[];
64
- copy?: CopyText;
65
- className?: Class;
66
- component?: KsComponentAttribute;
67
- }
68
- declare const Contact: import("react").ForwardRefExoticComponent<ContactProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLAnchorElement>>;
69
- declare const ContactProvider: FC<PropsWithChildren>;
70
- export { Contact, ContactProvider };
@@ -1,16 +0,0 @@
1
- import "./contact.css";
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { forwardRef } from 'react';
4
- import classnames from 'classnames';
5
- import { Picture } from '@kickstartds/base/lib/picture';
6
- import { ContactContext } from '@kickstartds/base/lib/contact';
7
- import { Link } from '@kickstartds/base/lib/link';
8
- import { Icon } from '@kickstartds/base/lib/icon';
9
- import { RichText } from '@kickstartds/base/lib/rich-text';
10
- import { Container } from '@kickstartds/core/lib/container';
11
-
12
- const Contact = forwardRef(({ title, subtitle, image, links, copy, className, ...props }, ref) => (jsx(Container, { name: "contact", children: jsxs("address", { className: classnames("dsa-contact", image?.aspectRatio && `dsa-contact--image-${image?.aspectRatio}`, image?.fullWidth && `dsa-contact--image-full-width`, className), ref: ref, ...props, children: [image && image.src ? (jsx("div", { className: "dsa-contact__image-wrap", children: jsx(Picture, { ...image, className: "dsa-contact__image" }) })) : (""), jsxs("div", { className: "dsa-contact__body", children: [title && (jsxs("div", { className: "dsa-contact__header", children: [jsx("span", { className: "dsa-contact__title", children: title }), jsx("span", { className: "dsa-contact__subtitle", children: subtitle })] })), copy && jsx(RichText, { text: copy, className: "dsa-contact__copy" }), links.length ? (jsx("ul", { className: "dsa-contact__links", children: links.map(({ icon, href, label, newTab }, i) => (jsx("li", { children: jsxs(Link, { className: "dsa-contact__link", href: href, ...(newTab ? { target: "_blank", rel: "noopener" } : {}), children: [jsx(Icon, { icon: icon }), label] }) }, i))) })) : ("")] })] }) })));
13
- Contact.displayName = "Contact";
14
- const ContactProvider = (props) => (jsx(ContactContext.Provider, { ...props, value: Contact }));
15
-
16
- export { Contact, ContactProvider };
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.kickstartds.com/base/html.schema.json",
4
- "title": "HTML",
5
- "description": "Display raw HTML.",
6
- "type": "object",
7
- "properties": {
8
- "html": {
9
- "title": "HTML string",
10
- "type": "string",
11
- "examples": ["<p>Hello world!</p>"]
12
- },
13
- "className": {
14
- "title": "Additional Classes",
15
- "description": "Add additional css classes that should be applied to the element",
16
- "type": "string"
17
- },
18
- "component": {
19
- "title": "`ks-component` attribute",
20
- "description": "Optional custom component identifier",
21
- "type": "string"
22
- }
23
- },
24
- "additionalProperties": false
25
- }
@@ -1,26 +0,0 @@
1
- import { ForwardRefRenderFunction, HTMLAttributes } from 'react';
2
- /* eslint-disable */
3
- /**
4
- * This file was automatically generated by json-schema-to-typescript.
5
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
- * and run `yarn run schema` to regenerate this file.
7
- */
8
- type HTMLString = string;
9
- /**
10
- * Add additional css classes that should be applied to the element
11
- */
12
- type AdditionalClasses = string;
13
- /**
14
- * Optional custom component identifier
15
- */
16
- type KsComponentAttribute = string;
17
- /**
18
- * Display raw HTML.
19
- */
20
- interface HTMLProps {
21
- html?: HTMLString;
22
- className?: AdditionalClasses;
23
- component?: KsComponentAttribute;
24
- }
25
- declare const HtmlComponent: ForwardRefRenderFunction<HTMLDivElement, HTMLProps & HTMLAttributes<HTMLDivElement>>;
26
- export { HTMLProps, HtmlComponent };
@@ -1,6 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import classnames from 'classnames';
3
-
4
- const HtmlComponent = ({ html, className, component, ...props }, ref) => (jsx("div", { className: classnames('c-html', className), dangerouslySetInnerHTML: { __html: html }, "ks-component": component, ref: ref, ...props }));
5
-
6
- export { HtmlComponent };