@prokodo/ui 0.0.53 → 0.0.55
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/dist/_virtual/_commonjsHelpers.js +9 -0
- package/dist/_virtual/common.js +7 -0
- package/dist/components/list/List.module.scss.js +0 -1
- package/dist/components/post-item/PostItem.client.js +3 -4
- package/dist/components/post-item/PostItem.server.js +3 -4
- package/dist/components/post-item/PostItem.view.js +2 -2
- package/dist/components/post-teaser/PostTeaser.client.js +5 -6
- package/dist/components/post-teaser/PostTeaser.server.js +3 -4
- package/dist/components/post-teaser/PostTeaser.view.js +4 -4
- package/dist/components/rich-text/RichText.client.js +175 -10
- package/dist/components/rich-text/RichText.module.scss.js +1 -1
- package/dist/components/slider/Slider.view.js +19 -4
- package/dist/constants/project.js +1 -1
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +90 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1629 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +407 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +307 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +556 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +413 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +950 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +66 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +167 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +83 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +129 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +268 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +715 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +53 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +268 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +1031 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +74 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +84 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +245 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +256 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +498 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +59 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +614 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +25 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +38 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +428 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +223 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +426 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +326 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +935 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +37 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +658 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +893 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +829 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +146 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +134 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +239 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +214 -0
- package/dist/node_modules/.pnpm/marked-highlight@2.2.2_marked@15.0.12/node_modules/marked-highlight/src/index.js +93 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/post-item/PostItem.model.d.ts +1 -1
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.d.ts +5 -0
- package/dist/types/components/rich-text/RichText.lazy.d.ts +5 -0
- package/dist/types/components/rich-text/RichText.model.d.ts +5 -0
- package/dist/ui.css +98 -58
- package/package.json +3 -1
- package/dist/helpers/calculation.js +0 -6
|
@@ -42,6 +42,7 @@ export type PostItemPropsBase = {
|
|
|
42
42
|
className?: string;
|
|
43
43
|
classes?: PostItemClasses;
|
|
44
44
|
componentsProps?: PostItemComponentsProps;
|
|
45
|
+
wordCount?: number;
|
|
45
46
|
readCount?: number;
|
|
46
47
|
title: PostItemHeadline;
|
|
47
48
|
author?: PostItemAuthorProps;
|
|
@@ -56,6 +57,5 @@ export type PostItemPropsBase = {
|
|
|
56
57
|
};
|
|
57
58
|
export type PostItemProps = PostItemPropsBase & (PostItemWithDate | PostItemWithoutDate);
|
|
58
59
|
export type PostItemViewPrivateProps = {
|
|
59
|
-
wordCount: number;
|
|
60
60
|
readMinutes: number;
|
|
61
61
|
};
|
|
@@ -51,6 +51,7 @@ export type PostTeaserPropsBase = {
|
|
|
51
51
|
classes?: PostTeaserClasses;
|
|
52
52
|
componentsProps?: PostTeaserComponentsProps;
|
|
53
53
|
readCount?: number;
|
|
54
|
+
wordCount?: number;
|
|
54
55
|
title: PostTeaserHeadline;
|
|
55
56
|
content?: string;
|
|
56
57
|
hideCategory?: boolean;
|
|
@@ -64,7 +65,6 @@ export type PostTeaserPropsBase = {
|
|
|
64
65
|
export type PostTeaserProps = PostTeaserPropsBase & (PostTeaserWithDate | PostTeaserWithoutDate);
|
|
65
66
|
export type PostTeaserViewProps = PostTeaserProps & {
|
|
66
67
|
isHovered?: boolean;
|
|
67
|
-
wordCount: number;
|
|
68
68
|
readMinutes: number;
|
|
69
69
|
onMouseEnter?: () => void;
|
|
70
70
|
onMouseLeave?: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JSX } from "react";
|
|
2
2
|
import type { RichTextProps } from "./RichText.model";
|
|
3
|
-
export declare function RichTextClient({ children, animated, animationProps, variant, schema, itemProp, linkComponent, className, overrideParagraph, ...props }: RichTextProps): JSX.Element;
|
|
3
|
+
export declare function RichTextClient({ children, animated, animationProps, variant, schema, itemProp, linkComponent, className, overrideParagraph, codeTheme, ...props }: RichTextProps): JSX.Element;
|
|
4
4
|
export declare namespace RichTextClient {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -8,6 +8,11 @@ export declare const RichText: import("react").ComponentType<{
|
|
|
8
8
|
linkComponent?: import("../link").LinkProps["linkComponent"];
|
|
9
9
|
className?: string;
|
|
10
10
|
overrideParagraph?: (textContent: string) => import("react").ReactNode;
|
|
11
|
+
codeTheme?: {
|
|
12
|
+
href?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
version?: "auto" | string;
|
|
15
|
+
};
|
|
11
16
|
} & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
12
17
|
priority?: boolean;
|
|
13
18
|
}>;
|
|
@@ -8,6 +8,11 @@ declare const _default: import("react").ComponentType<{
|
|
|
8
8
|
linkComponent?: import("../link").LinkProps["linkComponent"];
|
|
9
9
|
className?: string;
|
|
10
10
|
overrideParagraph?: (textContent: string) => import("react").ReactNode;
|
|
11
|
+
codeTheme?: {
|
|
12
|
+
href?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
version?: "auto" | string;
|
|
15
|
+
};
|
|
11
16
|
} & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
12
17
|
priority?: boolean;
|
|
13
18
|
}>;
|
|
@@ -13,4 +13,9 @@ export type RichTextProps = {
|
|
|
13
13
|
linkComponent?: LinkProps["linkComponent"];
|
|
14
14
|
className?: string;
|
|
15
15
|
overrideParagraph?: (textContent: string) => ReactNode;
|
|
16
|
+
codeTheme?: {
|
|
17
|
+
href?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
version?: "auto" | string;
|
|
20
|
+
};
|
|
16
21
|
} & HTMLAttributes<HTMLDivElement>;
|
package/dist/ui.css
CHANGED
|
@@ -653,10 +653,10 @@
|
|
|
653
653
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
654
654
|
* content.
|
|
655
655
|
*/
|
|
656
|
-
.prokodo-RichText__a
|
|
656
|
+
.prokodo-RichText__a {
|
|
657
657
|
color: var(--color-primary-500);
|
|
658
658
|
}
|
|
659
|
-
.prokodo-RichText__p
|
|
659
|
+
.prokodo-RichText__p {
|
|
660
660
|
color: var(--color-grey-500);
|
|
661
661
|
font-weight: 400;
|
|
662
662
|
font-size: 1.125rem;
|
|
@@ -669,26 +669,26 @@
|
|
|
669
669
|
text-decoration: none;
|
|
670
670
|
}
|
|
671
671
|
@media screen and (min-width: 480px) {
|
|
672
|
-
.prokodo-RichText__p
|
|
672
|
+
.prokodo-RichText__p {
|
|
673
673
|
font-size: 1rem;
|
|
674
674
|
line-height: 1.45;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
@media screen and (min-width: 960px) {
|
|
678
|
-
.prokodo-RichText__p
|
|
678
|
+
.prokodo-RichText__p {
|
|
679
679
|
font-size: 1rem;
|
|
680
680
|
line-height: 1.45;
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
.prokodo-RichText__p
|
|
683
|
+
.prokodo-RichText__p {
|
|
684
684
|
text-align: inherit;
|
|
685
685
|
}
|
|
686
|
-
html[data-theme=dark] .prokodo-RichText__p
|
|
686
|
+
html[data-theme=dark] .prokodo-RichText__p {
|
|
687
687
|
color: var(--color-grey-700);
|
|
688
688
|
}
|
|
689
|
-
.prokodo-RichText__pre
|
|
689
|
+
.prokodo-RichText__pre {
|
|
690
690
|
color: var(--color-grey-500);
|
|
691
|
-
padding:
|
|
691
|
+
padding: 0;
|
|
692
692
|
border: 1px solid var(--color-grey-200);
|
|
693
693
|
border-radius: 5px;
|
|
694
694
|
background-color: var(--color-grey-50);
|
|
@@ -705,55 +705,63 @@ html[data-theme=dark] .prokodo-RichText__p, html[data-theme=dark] .prokodo-RichT
|
|
|
705
705
|
text-decoration: none;
|
|
706
706
|
}
|
|
707
707
|
@media screen and (min-width: 480px) {
|
|
708
|
-
.prokodo-RichText__pre
|
|
708
|
+
.prokodo-RichText__pre {
|
|
709
709
|
font-size: 0.875rem;
|
|
710
710
|
line-height: 1.4;
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
@media screen and (min-width: 960px) {
|
|
714
|
-
.prokodo-RichText__pre
|
|
714
|
+
.prokodo-RichText__pre {
|
|
715
715
|
font-size: 0.875rem;
|
|
716
716
|
line-height: 1.4;
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
.prokodo-RichText__pre
|
|
719
|
+
.prokodo-RichText__pre {
|
|
720
720
|
text-align: inherit;
|
|
721
721
|
}
|
|
722
|
-
html[data-theme=dark] .prokodo-RichText__pre
|
|
722
|
+
html[data-theme=dark] .prokodo-RichText__pre {
|
|
723
723
|
color: var(--color-grey-300);
|
|
724
724
|
background-color: var(--color-grey-50);
|
|
725
725
|
}
|
|
726
|
-
.prokodo-
|
|
726
|
+
.prokodo-RichText__blockquote {
|
|
727
|
+
background-color: var(--color-grey-50);
|
|
728
|
+
border-left: 3px solid var(--color-grey-100);
|
|
729
|
+
padding: 1px 1rem;
|
|
730
|
+
margin: 0;
|
|
731
|
+
}
|
|
732
|
+
.prokodo-RichText__ul, .prokodo-RichText__ol {
|
|
727
733
|
padding: 0;
|
|
728
734
|
list-style-type: none;
|
|
729
735
|
color: var(--color-grey-500);
|
|
730
736
|
}
|
|
731
|
-
.prokodo-RichText__li
|
|
737
|
+
.prokodo-RichText__li {
|
|
732
738
|
display: flex;
|
|
733
739
|
align-items: flex-start;
|
|
734
740
|
padding-bottom: 0.25rem;
|
|
741
|
+
margin-top: 2px;
|
|
735
742
|
}
|
|
736
|
-
.prokodo-RichText__li__icon
|
|
743
|
+
.prokodo-RichText__li__icon {
|
|
737
744
|
flex: 0 0 20px;
|
|
738
745
|
width: 20px;
|
|
739
746
|
height: 20px;
|
|
740
747
|
margin-right: 0.5rem;
|
|
748
|
+
padding-top: 2px;
|
|
741
749
|
line-height: 1;
|
|
742
750
|
}
|
|
743
|
-
.prokodo-RichText__li__content
|
|
751
|
+
.prokodo-RichText__li__content {
|
|
744
752
|
flex: 1 1 auto;
|
|
745
753
|
min-width: 0;
|
|
746
754
|
overflow-wrap: anywhere;
|
|
747
755
|
display: inline;
|
|
748
756
|
}
|
|
749
|
-
.prokodo-RichText__ol__decimal
|
|
757
|
+
.prokodo-RichText__ol__decimal {
|
|
750
758
|
display: flex;
|
|
751
759
|
justify-content: center;
|
|
752
760
|
align-items: center;
|
|
753
761
|
width: 19px;
|
|
754
762
|
height: 19px;
|
|
755
763
|
background-color: var(--color-primary-500);
|
|
756
|
-
color: var(--color-
|
|
764
|
+
color: var(--color-white);
|
|
757
765
|
border: 1px solid var(--color-primary-500);
|
|
758
766
|
border-radius: 200px;
|
|
759
767
|
margin-right: 0.5rem;
|
|
@@ -768,45 +776,45 @@ html[data-theme=dark] .prokodo-RichText__pre, html[data-theme=dark] .prokodo-Ric
|
|
|
768
776
|
text-decoration: none;
|
|
769
777
|
}
|
|
770
778
|
@media screen and (min-width: 480px) {
|
|
771
|
-
.prokodo-RichText__ol__decimal
|
|
779
|
+
.prokodo-RichText__ol__decimal {
|
|
772
780
|
font-size: 0.875rem;
|
|
773
781
|
line-height: 1.4;
|
|
774
782
|
}
|
|
775
783
|
}
|
|
776
784
|
@media screen and (min-width: 960px) {
|
|
777
|
-
.prokodo-RichText__ol__decimal
|
|
785
|
+
.prokodo-RichText__ol__decimal {
|
|
778
786
|
font-size: 0.875rem;
|
|
779
787
|
line-height: 1.4;
|
|
780
788
|
}
|
|
781
789
|
}
|
|
782
|
-
.prokodo-RichText__ol__decimal
|
|
790
|
+
.prokodo-RichText__ol__decimal {
|
|
783
791
|
text-align: inherit;
|
|
784
792
|
}
|
|
785
|
-
.prokodo-RichText__ol
|
|
793
|
+
.prokodo-RichText__ol > li {
|
|
786
794
|
display: -webkit-box;
|
|
787
795
|
}
|
|
788
|
-
.prokodo-RichText__ol
|
|
796
|
+
.prokodo-RichText__ol > li icon--inherit {
|
|
789
797
|
color: var(--color-grey-900);
|
|
790
798
|
}
|
|
791
|
-
.prokodo-RichText__ol
|
|
799
|
+
.prokodo-RichText__ol > li icon--primary {
|
|
792
800
|
color: var(--color-primary-500);
|
|
793
801
|
}
|
|
794
|
-
.prokodo-RichText__ol
|
|
802
|
+
.prokodo-RichText__ol > li icon--secondary {
|
|
795
803
|
color: var(--color-secondary-500);
|
|
796
804
|
}
|
|
797
|
-
.prokodo-RichText__ol
|
|
805
|
+
.prokodo-RichText__ol > li icon--info {
|
|
798
806
|
color: var(--color-grey-500);
|
|
799
807
|
}
|
|
800
|
-
.prokodo-RichText__ol
|
|
808
|
+
.prokodo-RichText__ol > li icon--success {
|
|
801
809
|
color: var(--color-success);
|
|
802
810
|
}
|
|
803
|
-
.prokodo-RichText__ol
|
|
811
|
+
.prokodo-RichText__ol > li icon--error {
|
|
804
812
|
color: var(--color-error);
|
|
805
813
|
}
|
|
806
|
-
.prokodo-RichText__ol
|
|
814
|
+
.prokodo-RichText__ol > li icon--warning {
|
|
807
815
|
color: var(--color-warning);
|
|
808
816
|
}
|
|
809
|
-
.prokodo-RichText__ol
|
|
817
|
+
.prokodo-RichText__ol > li icon--white {
|
|
810
818
|
color: var(--color-white);
|
|
811
819
|
}/* stylelint-disable */
|
|
812
820
|
/**
|
|
@@ -3053,26 +3061,33 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
3053
3061
|
width: 100%;
|
|
3054
3062
|
}
|
|
3055
3063
|
.prokodo-Input__label {
|
|
3056
|
-
position: absolute;
|
|
3057
|
-
left: 1.5rem;
|
|
3058
|
-
top: 1.75rem;
|
|
3059
3064
|
transform-origin: top left;
|
|
3060
|
-
/* start centered vertically, at full size */
|
|
3061
|
-
transform: translateY(-50%) scale(1);
|
|
3062
3065
|
transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
|
|
3063
|
-
padding: 0;
|
|
3064
|
-
font-size: 1rem;
|
|
3066
|
+
padding-bottom: 0.5rem;
|
|
3065
3067
|
color: var(--color-grey-600);
|
|
3066
3068
|
z-index: 1;
|
|
3067
3069
|
pointer-events: none;
|
|
3068
3070
|
}
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3071
|
+
@media screen and (min-width: 960px) {
|
|
3072
|
+
.prokodo-Input__label {
|
|
3073
|
+
position: absolute;
|
|
3074
|
+
left: 1.5rem;
|
|
3075
|
+
font-size: 1.125rem;
|
|
3076
|
+
top: 1.75rem;
|
|
3077
|
+
/* start centered vertically, at full size */
|
|
3078
|
+
transform: translateY(-50%) scale(1);
|
|
3079
|
+
padding: 0;
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
@media screen and (min-width: 960px) {
|
|
3083
|
+
.prokodo-Input__label--is-focused {
|
|
3084
|
+
/* lift up and shrink */
|
|
3085
|
+
transform: translateY(-150%) scale(0.75);
|
|
3086
|
+
color: var(--color-primary-500);
|
|
3087
|
+
/* white background behind text so it “floats” */
|
|
3088
|
+
background-color: var(--color-white);
|
|
3089
|
+
padding: 0 0.25rem;
|
|
3090
|
+
}
|
|
3076
3091
|
}
|
|
3077
3092
|
.prokodo-Input__inner {
|
|
3078
3093
|
position: relative;
|
|
@@ -3145,6 +3160,9 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
3145
3160
|
line-height: 1.45;
|
|
3146
3161
|
}
|
|
3147
3162
|
}
|
|
3163
|
+
.prokodo-Input__input__node {
|
|
3164
|
+
font-size: 1rem;
|
|
3165
|
+
}
|
|
3148
3166
|
html[data-theme=dark] .prokodo-Input__input__node {
|
|
3149
3167
|
background-color: var(--color-grey-200);
|
|
3150
3168
|
}
|
|
@@ -3410,6 +3428,9 @@ html[data-theme=dark] .prokodo-Input__helperText {
|
|
|
3410
3428
|
line-height: 1.5;
|
|
3411
3429
|
}
|
|
3412
3430
|
}
|
|
3431
|
+
.prokodo-Label {
|
|
3432
|
+
font-size: 1rem;
|
|
3433
|
+
}
|
|
3413
3434
|
.prokodo-Label {
|
|
3414
3435
|
filter: drop-shadow(var(--elevation-1--text));
|
|
3415
3436
|
}
|
|
@@ -4353,18 +4374,28 @@ html[data-theme=dark] .prokodo-DynamicList__helperText {
|
|
|
4353
4374
|
width: 100%;
|
|
4354
4375
|
}
|
|
4355
4376
|
.prokodo-Select__label {
|
|
4356
|
-
position:
|
|
4357
|
-
left: 1.5rem;
|
|
4358
|
-
top: 1.75rem;
|
|
4377
|
+
position: relative;
|
|
4359
4378
|
transform-origin: top left;
|
|
4360
|
-
|
|
4361
|
-
transform: translateY(-150%) scale(0.75);
|
|
4362
|
-
padding: 0 0.25rem;
|
|
4379
|
+
padding-bottom: 0.5rem;
|
|
4363
4380
|
font-size: 1rem;
|
|
4364
4381
|
color: var(--color-primary-500);
|
|
4365
4382
|
z-index: 1;
|
|
4366
4383
|
pointer-events: none;
|
|
4367
|
-
|
|
4384
|
+
}
|
|
4385
|
+
@media screen and (min-width: 960px) {
|
|
4386
|
+
.prokodo-Select__label {
|
|
4387
|
+
position: absolute;
|
|
4388
|
+
left: 1.5rem;
|
|
4389
|
+
top: 1.75rem;
|
|
4390
|
+
padding: 0 0.25rem;
|
|
4391
|
+
/* start centered vertically, at full size */
|
|
4392
|
+
transform: translateY(-150%) scale(0.75);
|
|
4393
|
+
background-color: var(--color-white);
|
|
4394
|
+
display: -webkit-box;
|
|
4395
|
+
-webkit-line-clamp: 1;
|
|
4396
|
+
-webkit-box-orient: vertical;
|
|
4397
|
+
overflow: hidden;
|
|
4398
|
+
}
|
|
4368
4399
|
}
|
|
4369
4400
|
.prokodo-Select {
|
|
4370
4401
|
/* ───────────────── field (container for button + listbox) */
|
|
@@ -4472,6 +4503,9 @@ html[data-theme=dark] .prokodo-DynamicList__helperText {
|
|
|
4472
4503
|
line-height: 1.45;
|
|
4473
4504
|
}
|
|
4474
4505
|
}
|
|
4506
|
+
.prokodo-Select__button__inner {
|
|
4507
|
+
font-size: 1rem;
|
|
4508
|
+
}
|
|
4475
4509
|
html[data-theme=dark] .prokodo-Select__button__inner {
|
|
4476
4510
|
background: var(--color-grey-200);
|
|
4477
4511
|
}
|
|
@@ -4550,6 +4584,9 @@ html[data-theme=dark] .prokodo-Select__button__inner {
|
|
|
4550
4584
|
line-height: 1.45;
|
|
4551
4585
|
}
|
|
4552
4586
|
}
|
|
4587
|
+
.prokodo-Select__item {
|
|
4588
|
+
font-size: 1rem;
|
|
4589
|
+
}
|
|
4553
4590
|
.prokodo-Select__item:last-child {
|
|
4554
4591
|
border-bottom-left-radius: 1.5625rem;
|
|
4555
4592
|
border-bottom-right-radius: 1.5625rem;
|
|
@@ -4581,10 +4618,10 @@ html[data-theme=dark] .prokodo-Select__button__inner {
|
|
|
4581
4618
|
/* ───────────────── checkbox for multi-select */
|
|
4582
4619
|
}
|
|
4583
4620
|
.prokodo-Select__checkbox {
|
|
4584
|
-
width: 18px;
|
|
4585
|
-
height: 18px;
|
|
4586
|
-
margin-right: 0.75rem;
|
|
4587
4621
|
position: relative;
|
|
4622
|
+
min-width: 18px;
|
|
4623
|
+
min-height: 18px;
|
|
4624
|
+
margin-right: 0.75rem;
|
|
4588
4625
|
transform: scale(1.2);
|
|
4589
4626
|
cursor: pointer;
|
|
4590
4627
|
border: none;
|
|
@@ -5113,6 +5150,7 @@ html[data-theme=dark] .prokodo-Select__helperText {
|
|
|
5113
5150
|
background-color: #dedede;
|
|
5114
5151
|
border-radius: 50%;
|
|
5115
5152
|
top: 50%;
|
|
5153
|
+
text-align: center;
|
|
5116
5154
|
transform: translateX(-50%) translateY(-50%);
|
|
5117
5155
|
z-index: 3;
|
|
5118
5156
|
}
|
|
@@ -5146,6 +5184,10 @@ html[data-theme=dark] .prokodo-Select__helperText {
|
|
|
5146
5184
|
line-height: 1.45;
|
|
5147
5185
|
}
|
|
5148
5186
|
}
|
|
5187
|
+
.prokodo-Slider__mark__label {
|
|
5188
|
+
text-align: center;
|
|
5189
|
+
font-size: 0.8rem;
|
|
5190
|
+
}
|
|
5149
5191
|
@media screen and (min-width: 480px) {
|
|
5150
5192
|
.prokodo-Slider__mark__label {
|
|
5151
5193
|
position: static;
|
|
@@ -5153,9 +5195,9 @@ html[data-theme=dark] .prokodo-Select__helperText {
|
|
|
5153
5195
|
height: auto;
|
|
5154
5196
|
left: auto;
|
|
5155
5197
|
text-indent: inherit;
|
|
5156
|
-
text-align: center;
|
|
5157
5198
|
margin-left: 50%;
|
|
5158
5199
|
min-width: 100px;
|
|
5200
|
+
font-size: 1rem;
|
|
5159
5201
|
}
|
|
5160
5202
|
}
|
|
5161
5203
|
.prokodo-Slider__input {
|
|
@@ -5366,6 +5408,7 @@ html[data-theme=dark] .prokodo-Select__helperText {
|
|
|
5366
5408
|
.prokodo-Switch__label {
|
|
5367
5409
|
width: 100%;
|
|
5368
5410
|
display: grid;
|
|
5411
|
+
font-size: 1rem;
|
|
5369
5412
|
grid-template-columns: 100%;
|
|
5370
5413
|
grid-gap: 16px;
|
|
5371
5414
|
gap: 16px;
|
|
@@ -6199,9 +6242,6 @@ html[data-theme=dark] .prokodo-Select__helperText {
|
|
|
6199
6242
|
html[data-theme=dark] .prokodo-List__item__icon {
|
|
6200
6243
|
background-color: var(--color-grey-400);
|
|
6201
6244
|
}
|
|
6202
|
-
.prokodo-List__item__icon__svg {
|
|
6203
|
-
color: var(--color-black);
|
|
6204
|
-
}
|
|
6205
6245
|
.prokodo-List__item__icon__wrapper {
|
|
6206
6246
|
display: flex;
|
|
6207
6247
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prokodo/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "UI components for production-grade Next.js + Headless CMS (Strapi, Contentful, Headless WordPress) websites by prokodo – built for Core Web Vitals & SEO.",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -209,8 +209,10 @@
|
|
|
209
209
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
210
210
|
"@lottiefiles/dotlottie-react": "^0.7.2",
|
|
211
211
|
"dayjs": "^1.11.13",
|
|
212
|
+
"highlight.js": "^11.11.1",
|
|
212
213
|
"markdown-it": "^14.1.0",
|
|
213
214
|
"marked": "^15.0.12",
|
|
215
|
+
"marked-highlight": "^2.2.2",
|
|
214
216
|
"react-bem-helper": "^1.4.1",
|
|
215
217
|
"typescript": "5.5.3",
|
|
216
218
|
"xss": "^1.0.15"
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
const calculateWordCount = /* @__PURE__ */ __name((text) => text === void 0 ? 0 : text.split(/\s+/).length, "calculateWordCount");
|
|
4
|
-
export {
|
|
5
|
-
calculateWordCount
|
|
6
|
-
};
|