@prokodo/ui 0.1.3 → 0.1.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 (122) hide show
  1. package/dist/components/accordion/Accordion.css +288 -0
  2. package/dist/components/accordion/Accordion.module.css +288 -0
  3. package/dist/components/accordion/Accordion.view.js +110 -114
  4. package/dist/components/animated/Animated.css +158 -0
  5. package/dist/components/animated/Animated.module.css +158 -0
  6. package/dist/components/avatar/Avatar.css +190 -0
  7. package/dist/components/avatar/Avatar.module.css +190 -0
  8. package/dist/components/button/Button.css +318 -0
  9. package/dist/components/button/Button.module.css +318 -0
  10. package/dist/components/card/Card.css +267 -0
  11. package/dist/components/card/Card.module.css +267 -0
  12. package/dist/components/card/{Card.base.module.scss.js → Card.module.scss.js} +7 -0
  13. package/dist/components/card/Card.view.js +1 -11
  14. package/dist/components/carousel/Carousel.css +236 -0
  15. package/dist/components/carousel/Carousel.module.css +236 -0
  16. package/dist/components/chip/Chip.css +265 -0
  17. package/dist/components/chip/Chip.module.css +265 -0
  18. package/dist/components/dialog/Dialog.css +314 -0
  19. package/dist/components/dialog/Dialog.module.css +314 -0
  20. package/dist/components/drawer/Drawer.css +240 -0
  21. package/dist/components/drawer/Drawer.module.css +240 -0
  22. package/dist/components/drawer/Drawer.view.js +1 -1
  23. package/dist/components/dynamic-list/DynamicList.css +199 -0
  24. package/dist/components/dynamic-list/DynamicList.module.css +199 -0
  25. package/dist/components/form/Form.css +154 -0
  26. package/dist/components/form/Form.module.css +154 -0
  27. package/dist/components/form/Form.module.scss.js +2 -1
  28. package/dist/components/form/FormField.client.js +1 -1
  29. package/dist/components/form/FormField.server.js +1 -1
  30. package/dist/components/form/FormResponse.css +168 -0
  31. package/dist/components/form/FormResponse.module.css +168 -0
  32. package/dist/components/grid/Grid.css +333 -0
  33. package/dist/components/grid/Grid.module.css +333 -0
  34. package/dist/components/grid/Grid.module.scss.js +65 -1
  35. package/dist/components/grid/GridRow.js +1 -1
  36. package/dist/components/headline/Headline.css +322 -0
  37. package/dist/components/headline/Headline.js +19 -26
  38. package/dist/components/headline/Headline.module.css +322 -0
  39. package/dist/components/headline/{Headline.base.module.scss.js → Headline.module.scss.js} +7 -0
  40. package/dist/components/icon/Icon.css +181 -0
  41. package/dist/components/icon/Icon.module.css +181 -0
  42. package/dist/components/image/Image.client.js +63 -10
  43. package/dist/components/image/Image.css +167 -0
  44. package/dist/components/image/Image.js +2 -0
  45. package/dist/components/image/Image.module.css +167 -0
  46. package/dist/components/image/Image.server.js +11 -15
  47. package/dist/components/image-text/ImageText.css +196 -0
  48. package/dist/components/image-text/ImageText.module.css +196 -0
  49. package/dist/components/input/Input.css +353 -0
  50. package/dist/components/input/Input.module.css +353 -0
  51. package/dist/components/inputOTP/InputOTP.css +155 -0
  52. package/dist/components/inputOTP/InputOTP.module.css +155 -0
  53. package/dist/components/label/Label.css +174 -0
  54. package/dist/components/label/Label.module.css +174 -0
  55. package/dist/components/link/Link.css +192 -0
  56. package/dist/components/link/Link.module.css +192 -0
  57. package/dist/components/list/List.css +365 -0
  58. package/dist/components/list/List.module.css +365 -0
  59. package/dist/components/lottie/Lottie.css +129 -0
  60. package/dist/components/lottie/Lottie.module.css +129 -0
  61. package/dist/components/post-item/PostItem.css +295 -0
  62. package/dist/components/post-item/PostItem.module.css +295 -0
  63. package/dist/components/post-item/PostItemAuthor.css +156 -0
  64. package/dist/components/post-item/PostItemAuthor.module.css +156 -0
  65. package/dist/components/post-teaser/PostTeaser.css +259 -0
  66. package/dist/components/post-teaser/PostTeaser.module.css +259 -0
  67. package/dist/components/post-widget/PostWidget.css +214 -0
  68. package/dist/components/post-widget/PostWidget.module.css +214 -0
  69. package/dist/components/post-widget-carousel/PostWidgetCarousel.css +181 -0
  70. package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +181 -0
  71. package/dist/components/progressBar/ProgressBar.css +205 -0
  72. package/dist/components/progressBar/ProgressBar.module.css +205 -0
  73. package/dist/components/quote/Quote.css +204 -0
  74. package/dist/components/quote/Quote.module.css +204 -0
  75. package/dist/components/rating/Rating.css +247 -0
  76. package/dist/components/rating/Rating.module.css +247 -0
  77. package/dist/components/rich-text/RichText.css +290 -0
  78. package/dist/components/rich-text/RichText.module.css +290 -0
  79. package/dist/components/select/Select.css +448 -0
  80. package/dist/components/select/Select.module.css +448 -0
  81. package/dist/components/sidenav/SideNav.css +292 -0
  82. package/dist/components/sidenav/SideNav.module.css +292 -0
  83. package/dist/components/skeleton/Skeleton.css +192 -0
  84. package/dist/components/skeleton/Skeleton.js +17 -21
  85. package/dist/components/skeleton/Skeleton.module.css +192 -0
  86. package/dist/components/slider/Slider.css +307 -0
  87. package/dist/components/slider/Slider.module.css +307 -0
  88. package/dist/components/snackbar/Snackbar.css +214 -0
  89. package/dist/components/snackbar/Snackbar.module.css +214 -0
  90. package/dist/components/stepper/Stepper.css +347 -0
  91. package/dist/components/stepper/Stepper.module.css +347 -0
  92. package/dist/components/switch/Switch.css +256 -0
  93. package/dist/components/switch/Switch.module.css +256 -0
  94. package/dist/components/table/Table.css +252 -0
  95. package/dist/components/table/Table.module.css +252 -0
  96. package/dist/components/table/Table.module.scss.js +4 -1
  97. package/dist/components/table/TableCell.js +1 -1
  98. package/dist/components/teaser/Teaser.css +203 -0
  99. package/dist/components/teaser/Teaser.module.css +203 -0
  100. package/dist/constants/project.js +1 -1
  101. package/dist/theme.css +5058 -0
  102. package/dist/tsconfig.build.tsbuildinfo +1 -1
  103. package/package.json +48 -5
  104. package/dist/components/accordion/Accordion.effects.client.js +0 -16
  105. package/dist/components/accordion/Accordion.effects.module.scss.js +0 -8
  106. package/dist/components/card/Card.effects.client.js +0 -20
  107. package/dist/components/card/Card.effects.module.scss.js +0 -14
  108. package/dist/components/form/FormField.module.scss.js +0 -6
  109. package/dist/components/grid/GridRow.module.scss.js +0 -69
  110. package/dist/components/headline/Headline.effects.client.js +0 -14
  111. package/dist/components/headline/Headline.effects.module.scss.js +0 -13
  112. package/dist/components/skeleton/Skeleton.effects.client.js +0 -18
  113. package/dist/components/skeleton/Skeleton.effects.module.scss.js +0 -7
  114. package/dist/components/table/TableCell.module.scss.js +0 -8
  115. package/dist/types/components/accordion/Accordion.effects.client.d.ts +0 -5
  116. package/dist/types/components/card/Card.effects.client.d.ts +0 -7
  117. package/dist/types/components/headline/Headline.effects.client.d.ts +0 -1
  118. package/dist/types/components/skeleton/Skeleton.effects.client.d.ts +0 -5
  119. package/dist/ui.css +0 -10776
  120. /package/dist/components/accordion/{Accordion.base.module.scss.js → Accordion.module.scss.js} +0 -0
  121. /package/dist/components/drawer/{Drawer.base.module.scss.js → Drawer.module.scss.js} +0 -0
  122. /package/dist/components/skeleton/{Skeleton.base.module.scss.js → Skeleton.module.scss.js} +0 -0
@@ -1,10 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { jsxs, jsx } from "react/jsx-runtime";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { create } from "../../helpers/bem.js";
5
5
  import { isNull, isArray } from "../../helpers/validations.js";
6
- import styles from "./Accordion.base.module.scss.js";
7
- import { AccordionEffectsLoader } from "./Accordion.effects.client.js";
6
+ import styles from "./Accordion.module.scss.js";
8
7
  import { Headline } from "../headline/Headline.js";
9
8
  import { Animated } from "../animated/Animated.js";
10
9
  import { Button } from "../button/Button.js";
@@ -21,129 +20,126 @@ function AccordionView({
21
20
  iconProps,
22
21
  ...domRest
23
22
  }) {
24
- return /* @__PURE__ */ jsxs(
23
+ return /* @__PURE__ */ jsx(
25
24
  "div",
26
25
  {
27
26
  ...domRest,
28
27
  className: bem(void 0, { [variant]: true }, className),
29
- children: [
30
- /* @__PURE__ */ jsx(AccordionEffectsLoader, { useBorderShift: true }),
31
- items.map((item, index) => {
32
- const {
33
- title,
34
- renderHeader,
35
- renderHeaderActions,
36
- renderContent,
37
- actions,
38
- className: itemCls
39
- } = item;
40
- const accId = `${id}-${title}`;
41
- const isExpanded = expandedIndex === index;
42
- const accHeaderProps = {
43
- "aria-controls": `${accId}-content`,
44
- "aria-expanded": isExpanded,
45
- role: "button",
46
- tabIndex: 0,
47
- onClick: onToggle ? (e) => onToggle(index, e) : void 0,
48
- onKeyDown: onToggle ? (e) => {
49
- if (e.key === "Enter" || e.key === " ") onToggle(index, e);
50
- } : void 0
51
- };
52
- return /* @__PURE__ */ jsxs(
53
- "div",
54
- {
55
- className: bem("item", { "is-expanded": isExpanded }, itemCls),
56
- children: [
57
- /* @__PURE__ */ jsx(
58
- "div",
59
- {
60
- className: bem("header__wrapper", { "is-expanded": isExpanded }),
61
- children: /* @__PURE__ */ jsxs(
62
- "div",
63
- {
64
- ...accHeaderProps,
65
- className: bem("header__toggle", { "is-expanded": isExpanded }),
66
- id: `${accId}-header`,
67
- children: [
68
- !isNull(renderHeader) ? renderHeader : /* @__PURE__ */ jsx(
69
- Headline,
28
+ children: items.map((item, index) => {
29
+ const {
30
+ title,
31
+ renderHeader,
32
+ renderHeaderActions,
33
+ renderContent,
34
+ actions,
35
+ className: itemCls
36
+ } = item;
37
+ const accId = `${id}-${title}`;
38
+ const isExpanded = expandedIndex === index;
39
+ const accHeaderProps = {
40
+ "aria-controls": `${accId}-content`,
41
+ "aria-expanded": isExpanded,
42
+ role: "button",
43
+ tabIndex: 0,
44
+ onClick: onToggle ? (e) => onToggle(index, e) : void 0,
45
+ onKeyDown: onToggle ? (e) => {
46
+ if (e.key === "Enter" || e.key === " ") onToggle(index, e);
47
+ } : void 0
48
+ };
49
+ return /* @__PURE__ */ jsxs(
50
+ "div",
51
+ {
52
+ className: bem("item", { "is-expanded": isExpanded }, itemCls),
53
+ children: [
54
+ /* @__PURE__ */ jsx(
55
+ "div",
56
+ {
57
+ className: bem("header__wrapper", { "is-expanded": isExpanded }),
58
+ children: /* @__PURE__ */ jsxs(
59
+ "div",
60
+ {
61
+ ...accHeaderProps,
62
+ className: bem("header__toggle", { "is-expanded": isExpanded }),
63
+ id: `${accId}-header`,
64
+ children: [
65
+ !isNull(renderHeader) ? renderHeader : /* @__PURE__ */ jsx(
66
+ Headline,
67
+ {
68
+ animated: true,
69
+ className: bem("title"),
70
+ highlight: isExpanded,
71
+ size: "xs",
72
+ type: "h3",
73
+ variant: isExpanded ? "primary" : "inherit",
74
+ ...item.titleOptions ?? titleOptions,
75
+ children: title
76
+ }
77
+ ),
78
+ /* @__PURE__ */ jsxs("div", { className: bem("header__actions__wrapper"), children: [
79
+ !isNull(renderHeaderActions) && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
80
+ /* @__PURE__ */ jsx(
81
+ "div",
70
82
  {
71
- animated: true,
72
- className: bem("title"),
73
- highlight: isExpanded,
74
- size: "xs",
75
- type: "h3",
76
- variant: isExpanded ? "primary" : "inherit",
77
- ...item.titleOptions ?? titleOptions,
78
- children: title
83
+ className: bem("header__actions"),
84
+ onClick: /* @__PURE__ */ __name((e) => e.stopPropagation(), "onClick"),
85
+ onMouseDown: /* @__PURE__ */ __name((e) => e.stopPropagation(), "onMouseDown"),
86
+ onKeyDown: /* @__PURE__ */ __name((e) => e.key === "Enter" ? e.stopPropagation() : void 0, "onKeyDown"),
87
+ children: renderHeaderActions
79
88
  }
80
89
  ),
81
- /* @__PURE__ */ jsxs("div", { className: bem("header__actions__wrapper"), children: [
82
- !isNull(renderHeaderActions) && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
90
+ /* @__PURE__ */ jsxs("div", { className: bem("header__icons"), children: [
83
91
  /* @__PURE__ */ jsx(
84
- "div",
92
+ Icon,
85
93
  {
86
- className: bem("header__actions"),
87
- onClick: /* @__PURE__ */ __name((e) => e.stopPropagation(), "onClick"),
88
- onMouseDown: /* @__PURE__ */ __name((e) => e.stopPropagation(), "onMouseDown"),
89
- onKeyDown: /* @__PURE__ */ __name((e) => e.key === "Enter" ? e.stopPropagation() : void 0, "onKeyDown"),
90
- children: renderHeaderActions
94
+ className: bem("icon", { "is-hidden": isExpanded }),
95
+ color: "inherit",
96
+ name: "PlusSignIcon",
97
+ size: "sm",
98
+ ...iconProps
91
99
  }
92
100
  ),
93
- /* @__PURE__ */ jsxs("div", { className: bem("header__icons"), children: [
94
- /* @__PURE__ */ jsx(
95
- Icon,
96
- {
97
- className: bem("icon", { "is-hidden": isExpanded }),
98
- color: "inherit",
99
- name: "PlusSignIcon",
100
- size: "sm",
101
- ...iconProps
102
- }
103
- ),
104
- /* @__PURE__ */ jsx(
105
- Icon,
106
- {
107
- className: bem("icon", { "is-hidden": !isExpanded }),
108
- color: "inherit",
109
- name: "MinusSignIcon",
110
- size: "sm",
111
- ...iconProps
112
- }
113
- )
114
- ] })
101
+ /* @__PURE__ */ jsx(
102
+ Icon,
103
+ {
104
+ className: bem("icon", { "is-hidden": !isExpanded }),
105
+ color: "inherit",
106
+ name: "MinusSignIcon",
107
+ size: "sm",
108
+ ...iconProps
109
+ }
110
+ )
115
111
  ] })
116
- ]
117
- }
118
- )
119
- }
120
- ),
121
- /* @__PURE__ */ jsxs(
122
- "div",
123
- {
124
- "aria-labelledby": `${accId}-header`,
125
- className: bem("content", { "is-expanded": isExpanded }),
126
- hidden: !isExpanded,
127
- id: `${accId}-content`,
128
- role: "region",
129
- children: [
130
- !isNull(renderContent) && /* @__PURE__ */ jsx(Animated, { children: renderContent }),
131
- isArray(actions) ? /* @__PURE__ */ jsx("div", { className: bem("actions"), children: actions.map((action) => /* @__PURE__ */ jsx(
132
- Button,
133
- {
134
- ...action
135
- },
136
- `${accId}-action-${action.id}`
137
- )) }) : null
138
- ]
139
- }
140
- )
141
- ]
142
- },
143
- accId
144
- );
145
- })
146
- ]
112
+ ] })
113
+ ]
114
+ }
115
+ )
116
+ }
117
+ ),
118
+ /* @__PURE__ */ jsxs(
119
+ "div",
120
+ {
121
+ "aria-labelledby": `${accId}-header`,
122
+ className: bem("content", { "is-expanded": isExpanded }),
123
+ hidden: !isExpanded,
124
+ id: `${accId}-content`,
125
+ role: "region",
126
+ children: [
127
+ !isNull(renderContent) && /* @__PURE__ */ jsx(Animated, { children: renderContent }),
128
+ isArray(actions) ? /* @__PURE__ */ jsx("div", { className: bem("actions"), children: actions.map((action) => /* @__PURE__ */ jsx(
129
+ Button,
130
+ {
131
+ ...action
132
+ },
133
+ `${accId}-action-${action.id}`
134
+ )) }) : null
135
+ ]
136
+ }
137
+ )
138
+ ]
139
+ },
140
+ accId
141
+ );
142
+ })
147
143
  }
148
144
  );
149
145
  }
@@ -0,0 +1,158 @@
1
+ /* stylelint-disable */
2
+ /**
3
+ * Calculates a rem-based value by a given pixel size.
4
+ */
5
+ /* stylelint-disable */
6
+ /**
7
+ * Applies flex-column and gap.
8
+ */
9
+ /*
10
+ As example (light, primary)
11
+ See defined modes in designsystem/config/gradients
12
+ */
13
+ /**
14
+ * Mixin that renders a media query that target screens that are larger than the
15
+ * given size.
16
+ */
17
+ /**
18
+ * Mixin that renders a media query that target screens that are smaller than the
19
+ * given size.
20
+ */
21
+ /**
22
+ * Mixin that renders a media query that target screens in between the given range.
23
+ */
24
+ /**
25
+ * Mixin that renders a media query that target screens that have height larger than the
26
+ * given size.
27
+ */
28
+ /**
29
+ * Mixin that renders a media query that target screens that have height smaller than the
30
+ * given size.
31
+ */
32
+ /* stylelint-disable */
33
+ /* M3/Elevation Light/1 */
34
+ /* M3/Elevation Light/2 */
35
+ /* M3/Elevation/5 */
36
+ /* M3/Elevation/1 Text */
37
+ /* Inner elevations */
38
+ /* stylelint-disable */
39
+ /**
40
+ * Visually hides an element but not removes them for screen readers.
41
+ */
42
+ /**
43
+ * The inverse of the `hidden` helper to reset a previously hidden element to be
44
+ * visible for users.
45
+ */
46
+ /**
47
+ * Creates a selector for :hover effects depending on the current user input
48
+ * device. If the input device is a mouse, this hover effect will appear.
49
+ * Keyboard and touch inputs are ignored.
50
+ *
51
+ * Example usage:
52
+ * .link {
53
+ * color: blue;
54
+ *
55
+ * @include when-hovered() {
56
+ * color: green;
57
+ * }
58
+ * }
59
+ */
60
+ /**
61
+ * Creates a selector for :active effects depending on the current user input
62
+ * device. The state applies when the input device is a mouse or keyboard. Touch
63
+ * devices will not show a pressed state.
64
+ *
65
+ * Example usage:
66
+ * .link {
67
+ * box-shadow: none;
68
+ *
69
+ * @include when-pressed() {
70
+ * box-shadow: inset 0 2px 4px grey;
71
+ * }
72
+ * }
73
+ */
74
+ /**
75
+ * Creates a selector for :focus effects depending on the current user input
76
+ * device. When the user navigates using a keyboard, the focus effect defined in
77
+ * here is applied. For other input devices they don't show up.
78
+ *
79
+ * Example usage:
80
+ * .link {
81
+ * text-decoration: none;
82
+ *
83
+ * @include when-focused() {
84
+ * text-decoration: underline;
85
+ * }
86
+ * }
87
+ */
88
+ /**
89
+ * Creates a selector for :focus-within effects depending on the current user
90
+ * input device. When the user navigates using a keyboard, the focus effect
91
+ * defined in here is applied. For other input devices they don't show up.
92
+ *
93
+ * Example usage:
94
+ * .link {
95
+ * img {
96
+ * opacity: 0.75;
97
+ *
98
+ * @include when-focused-within() {
99
+ * opacity: 1;
100
+ * }
101
+ * }
102
+ * }
103
+ */
104
+ /**
105
+ * Wrapper for media query "prefers-reduced-motion".
106
+ */
107
+ /**
108
+ * This helper hides the outline but still makes it visible for
109
+ * Windows high-contrast users. Use this instead of `outline: 0;`.
110
+ */
111
+ /**
112
+ * This helper hides the outline but still makes it visible for
113
+ * Windows high-contrast users. Use this instead of `outline: 0;`.
114
+ */
115
+ /**
116
+ * Renders an alternative, but application consistent focus-ring.
117
+ */
118
+ /**
119
+ * Specifies the outer layout for all contents across breakpoints. Apply this
120
+ * mixin to the container element, to center the contents on the screen within
121
+ * the layout offsets.
122
+ */
123
+ /**
124
+ * This mixin specifies basic text-styles for components that render a richtext
125
+ * content.
126
+ */
127
+ .prokodo-Animated {
128
+ opacity: 0;
129
+ visibility: hidden;
130
+ transition: opacity 300ms ease-out, transform 300ms ease-out, visibility 300ms ease-out;
131
+ will-change: opacity, transform, visibility;
132
+ }
133
+ .prokodo-Animated--animate-bottom-top {
134
+ transform: translate(0, 20vh);
135
+ }
136
+ .prokodo-Animated--animate-top-bottom {
137
+ transform: translate(0, -20vh);
138
+ }
139
+ .prokodo-Animated--animate-left-right {
140
+ transform: translate(-20vh, 0);
141
+ }
142
+ .prokodo-Animated--animate-right-left {
143
+ transform: translate(20vh, 0);
144
+ }
145
+ .prokodo-Animated--is-visible {
146
+ opacity: 1;
147
+ transform: none;
148
+ visibility: visible;
149
+ }
150
+ .prokodo-Animated--is-disabled {
151
+ transform: none;
152
+ }
153
+ .prokodo-Animated--has-fast-speed {
154
+ transition: opacity 500ms ease-out, transform 500ms ease-out, visibility 500ms ease-out;
155
+ }
156
+ .prokodo-Animated--has-slow-speed {
157
+ transition: opacity 1500ms ease-out, transform 500ms ease-out, visibility 1500ms ease-out;
158
+ }
@@ -0,0 +1,158 @@
1
+ /* stylelint-disable */
2
+ /**
3
+ * Calculates a rem-based value by a given pixel size.
4
+ */
5
+ /* stylelint-disable */
6
+ /**
7
+ * Applies flex-column and gap.
8
+ */
9
+ /*
10
+ As example (light, primary)
11
+ See defined modes in designsystem/config/gradients
12
+ */
13
+ /**
14
+ * Mixin that renders a media query that target screens that are larger than the
15
+ * given size.
16
+ */
17
+ /**
18
+ * Mixin that renders a media query that target screens that are smaller than the
19
+ * given size.
20
+ */
21
+ /**
22
+ * Mixin that renders a media query that target screens in between the given range.
23
+ */
24
+ /**
25
+ * Mixin that renders a media query that target screens that have height larger than the
26
+ * given size.
27
+ */
28
+ /**
29
+ * Mixin that renders a media query that target screens that have height smaller than the
30
+ * given size.
31
+ */
32
+ /* stylelint-disable */
33
+ /* M3/Elevation Light/1 */
34
+ /* M3/Elevation Light/2 */
35
+ /* M3/Elevation/5 */
36
+ /* M3/Elevation/1 Text */
37
+ /* Inner elevations */
38
+ /* stylelint-disable */
39
+ /**
40
+ * Visually hides an element but not removes them for screen readers.
41
+ */
42
+ /**
43
+ * The inverse of the `hidden` helper to reset a previously hidden element to be
44
+ * visible for users.
45
+ */
46
+ /**
47
+ * Creates a selector for :hover effects depending on the current user input
48
+ * device. If the input device is a mouse, this hover effect will appear.
49
+ * Keyboard and touch inputs are ignored.
50
+ *
51
+ * Example usage:
52
+ * .link {
53
+ * color: blue;
54
+ *
55
+ * @include when-hovered() {
56
+ * color: green;
57
+ * }
58
+ * }
59
+ */
60
+ /**
61
+ * Creates a selector for :active effects depending on the current user input
62
+ * device. The state applies when the input device is a mouse or keyboard. Touch
63
+ * devices will not show a pressed state.
64
+ *
65
+ * Example usage:
66
+ * .link {
67
+ * box-shadow: none;
68
+ *
69
+ * @include when-pressed() {
70
+ * box-shadow: inset 0 2px 4px grey;
71
+ * }
72
+ * }
73
+ */
74
+ /**
75
+ * Creates a selector for :focus effects depending on the current user input
76
+ * device. When the user navigates using a keyboard, the focus effect defined in
77
+ * here is applied. For other input devices they don't show up.
78
+ *
79
+ * Example usage:
80
+ * .link {
81
+ * text-decoration: none;
82
+ *
83
+ * @include when-focused() {
84
+ * text-decoration: underline;
85
+ * }
86
+ * }
87
+ */
88
+ /**
89
+ * Creates a selector for :focus-within effects depending on the current user
90
+ * input device. When the user navigates using a keyboard, the focus effect
91
+ * defined in here is applied. For other input devices they don't show up.
92
+ *
93
+ * Example usage:
94
+ * .link {
95
+ * img {
96
+ * opacity: 0.75;
97
+ *
98
+ * @include when-focused-within() {
99
+ * opacity: 1;
100
+ * }
101
+ * }
102
+ * }
103
+ */
104
+ /**
105
+ * Wrapper for media query "prefers-reduced-motion".
106
+ */
107
+ /**
108
+ * This helper hides the outline but still makes it visible for
109
+ * Windows high-contrast users. Use this instead of `outline: 0;`.
110
+ */
111
+ /**
112
+ * This helper hides the outline but still makes it visible for
113
+ * Windows high-contrast users. Use this instead of `outline: 0;`.
114
+ */
115
+ /**
116
+ * Renders an alternative, but application consistent focus-ring.
117
+ */
118
+ /**
119
+ * Specifies the outer layout for all contents across breakpoints. Apply this
120
+ * mixin to the container element, to center the contents on the screen within
121
+ * the layout offsets.
122
+ */
123
+ /**
124
+ * This mixin specifies basic text-styles for components that render a richtext
125
+ * content.
126
+ */
127
+ .prokodo-Animated {
128
+ opacity: 0;
129
+ visibility: hidden;
130
+ transition: opacity 300ms ease-out, transform 300ms ease-out, visibility 300ms ease-out;
131
+ will-change: opacity, transform, visibility;
132
+ }
133
+ .prokodo-Animated--animate-bottom-top {
134
+ transform: translate(0, 20vh);
135
+ }
136
+ .prokodo-Animated--animate-top-bottom {
137
+ transform: translate(0, -20vh);
138
+ }
139
+ .prokodo-Animated--animate-left-right {
140
+ transform: translate(-20vh, 0);
141
+ }
142
+ .prokodo-Animated--animate-right-left {
143
+ transform: translate(20vh, 0);
144
+ }
145
+ .prokodo-Animated--is-visible {
146
+ opacity: 1;
147
+ transform: none;
148
+ visibility: visible;
149
+ }
150
+ .prokodo-Animated--is-disabled {
151
+ transform: none;
152
+ }
153
+ .prokodo-Animated--has-fast-speed {
154
+ transition: opacity 500ms ease-out, transform 500ms ease-out, visibility 500ms ease-out;
155
+ }
156
+ .prokodo-Animated--has-slow-speed {
157
+ transition: opacity 1500ms ease-out, transform 500ms ease-out, visibility 1500ms ease-out;
158
+ }