@orangesk/orange-design-system 2.0.0-beta.5 → 2.0.0-beta.7
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/build/components/index.js +4 -4
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +25 -7
- package/build/components/types/src/components/Card/Card.d.ts +1 -1
- package/build/components/types/src/components/Card/CardSection.d.ts +2 -2
- package/build/components/types/src/components/Expander/Expander.d.ts +2 -2
- package/build/components/types/src/components/Icon/iconSearchTags.d.ts +252 -251
- package/build/components/types/src/components/Pill/Pill.d.ts +4 -1
- package/build/components/types/src/components/index.d.ts +2 -1
- package/build/lib/after-components.css +1 -1
- package/build/lib/after-components.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/sprite.svg +1 -1
- package/package.json +5 -5
- package/src/assets/icons/article.svg +7 -0
- package/src/assets/icons/pictogram-activation--dark.svg +10 -11
- package/src/assets/icons/pictogram-activation-free--dark.svg +4 -5
- package/src/assets/icons/pictogram-activation-free.svg +4 -5
- package/src/assets/icons/pictogram-activation.svg +10 -11
- package/src/assets/icons/pictogram-archive--dark.svg +3 -4
- package/src/assets/icons/pictogram-archive.svg +3 -4
- package/src/assets/icons/pictogram-calling-minutes--dark.svg +3 -4
- package/src/assets/icons/pictogram-calling-minutes.svg +3 -4
- package/src/assets/icons/pictogram-canal-plus--dark.svg +3 -4
- package/src/assets/icons/pictogram-canal-plus.svg +3 -4
- package/src/assets/icons/pictogram-competition-tickets--dark.svg +11 -12
- package/src/assets/icons/pictogram-competition-tickets.svg +11 -12
- package/src/assets/icons/pictogram-device-discount--dark.svg +7 -6
- package/src/assets/icons/pictogram-device-discount.svg +5 -6
- package/src/assets/icons/pictogram-discount-general--dark.svg +5 -6
- package/src/assets/icons/pictogram-discount-general.svg +5 -6
- package/src/assets/icons/pictogram-discount-price--dark.svg +5 -6
- package/src/assets/icons/pictogram-discount-price.svg +5 -6
- package/src/assets/icons/pictogram-extra-data--dark.svg +6 -7
- package/src/assets/icons/pictogram-extra-data.svg +6 -7
- package/src/assets/icons/pictogram-free-payment--dark.svg +5 -6
- package/src/assets/icons/pictogram-free-payment.svg +3 -6
- package/src/assets/icons/pictogram-gift--dark.svg +12 -13
- package/src/assets/icons/pictogram-gift-one-benefit--dark.svg +7 -8
- package/src/assets/icons/pictogram-gift-one-benefit.svg +7 -8
- package/src/assets/icons/pictogram-gift-two-benefits--dark.svg +8 -9
- package/src/assets/icons/pictogram-gift-two-benefits.svg +8 -9
- package/src/assets/icons/pictogram-gift.svg +3 -4
- package/src/assets/icons/pictogram-hbo-max--dark.svg +5 -6
- package/src/assets/icons/pictogram-hbo-max.svg +5 -6
- package/src/assets/icons/pictogram-infinite-sms--dark.svg +3 -4
- package/src/assets/icons/pictogram-infinite-sms.svg +3 -4
- package/src/assets/icons/pictogram-installation--dark.svg +4 -5
- package/src/assets/icons/pictogram-installation-free--dark.svg +4 -5
- package/src/assets/icons/pictogram-installation-free.svg +4 -5
- package/src/assets/icons/pictogram-installation.svg +4 -5
- package/src/assets/icons/pictogram-max--dark.svg +3 -4
- package/src/assets/icons/pictogram-max-canal-plus--dark.svg +5 -6
- package/src/assets/icons/pictogram-max-canal-plus.svg +5 -6
- package/src/assets/icons/pictogram-max.svg +3 -4
- package/src/assets/icons/pictogram-moj-orange-app--dark.svg +3 -4
- package/src/assets/icons/pictogram-moj-orange-app.svg +3 -4
- package/src/assets/icons/pictogram-movie-storage--dark.svg +4 -5
- package/src/assets/icons/pictogram-movie-storage.svg +4 -5
- package/src/assets/icons/pictogram-online-protection--dark.svg +3 -4
- package/src/assets/icons/pictogram-online-protection.svg +3 -4
- package/src/assets/icons/pictogram-random-damage--dark.svg +4 -8
- package/src/assets/icons/pictogram-random-damage.svg +4 -8
- package/src/assets/icons/pictogram-recycling--dark.svg +7 -8
- package/src/assets/icons/pictogram-recycling.svg +14 -15
- package/src/assets/icons/pictogram-repair--dark.svg +12 -13
- package/src/assets/icons/pictogram-repair.svg +12 -13
- package/src/assets/icons/pictogram-roaming--dark.svg +3 -4
- package/src/assets/icons/pictogram-roaming-discount--dark.svg +3 -16
- package/src/assets/icons/pictogram-roaming-discount.svg +15 -16
- package/src/assets/icons/pictogram-roaming.svg +3 -4
- package/src/assets/icons/pictogram-skylink--dark.svg +10 -11
- package/src/assets/icons/pictogram-skylink-live-tv--dark.svg +7 -8
- package/src/assets/icons/pictogram-skylink-live-tv.svg +7 -8
- package/src/assets/icons/pictogram-skylink.svg +10 -11
- package/src/assets/icons/pictogram-sms--dark.svg +5 -6
- package/src/assets/icons/pictogram-sms.svg +5 -6
- package/src/assets/icons/pictogram-theft--dark.svg +3 -7
- package/src/assets/icons/pictogram-theft.svg +3 -7
- package/src/assets/icons/pictogram-three-devices--dark.svg +4 -8
- package/src/assets/icons/pictogram-three-devices.svg +4 -8
- package/src/assets/icons/pictogram-trust--dark.svg +3 -4
- package/src/assets/icons/pictogram-trust.svg +3 -4
- package/src/assets/icons/pictogram-water-damage--dark.svg +5 -6
- package/src/assets/icons/pictogram-water-damage.svg +5 -6
- package/src/components/Accordion/styles/config.scss +4 -4
- package/src/components/Accordion/styles/mixins.scss +2 -2
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +24 -27
- package/src/components/AnchorNavigation/styles/mixins.scss +1 -11
- package/src/components/Card/Card.tsx +14 -1
- package/src/components/Card/CardSection.tsx +2 -10
- package/src/components/Card/styles/config.scss +1 -1
- package/src/components/Expander/Expander.tsx +4 -2
- package/src/components/Expander/styles/style.scss +7 -0
- package/src/components/Icon/iconSearchTags.ts +433 -432
- package/src/components/Icon/styles/style.scss +4 -0
- package/src/components/Link/styles/style.scss +2 -1
- package/src/components/Pill/Pill.tsx +8 -3
- package/src/components/Pill/styles/config.scss +18 -2
- package/src/components/Pill/styles/style.scss +7 -3
- package/src/components/Pill/tests/Pill.conformance.test.js +7 -3
- package/src/components/Pill/tests/Pill.unit.test.js +45 -7
- package/src/components/Section/styles/config.scss +18 -16
- package/src/components/index.ts +2 -0
- package/src/styles/utilities/color.scss +5 -0
- package/src/styles/utilities/layout.scss +9 -0
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
top: 0;
|
|
12
12
|
z-index: 100;
|
|
13
13
|
background-color: var(--color-background-primary) !important;
|
|
14
|
-
|
|
14
|
+
border-bottom: 1px solid var(--color-border-subtle);
|
|
15
15
|
|
|
16
16
|
// Štýly pre Grid s horizontal-scroll
|
|
17
17
|
.horizontal-scroll {
|
|
@@ -67,16 +67,8 @@
|
|
|
67
67
|
justify-content: space-between;
|
|
68
68
|
align-items: center;
|
|
69
69
|
position: relative;
|
|
70
|
-
border-bottom: 1px solid var(--color-border-subtle);
|
|
71
|
-
padding: 0 convert.to-rem(70px);
|
|
72
|
-
|
|
73
|
-
@include breakpoint.get("xl", "down") {
|
|
74
|
-
padding: 0 convert.to-rem(42px);
|
|
75
|
-
}
|
|
76
70
|
|
|
77
71
|
@include breakpoint.get("xs", "down") {
|
|
78
|
-
padding: 0 convert.to-rem(10px);
|
|
79
|
-
border-bottom: none;
|
|
80
72
|
overflow: hidden;
|
|
81
73
|
flex-direction: column;
|
|
82
74
|
}
|
|
@@ -84,7 +76,6 @@
|
|
|
84
76
|
|
|
85
77
|
@mixin anchor-navigation-content-left() {
|
|
86
78
|
@include breakpoint.get("xs", "down") {
|
|
87
|
-
border-bottom: 1px solid var(--color-border-subtle);
|
|
88
79
|
width: 100%;
|
|
89
80
|
}
|
|
90
81
|
}
|
|
@@ -119,7 +110,6 @@
|
|
|
119
110
|
display: none;
|
|
120
111
|
}
|
|
121
112
|
padding: space.get("small") 0;
|
|
122
|
-
border-bottom: 1px solid var(--color-border-subtle);
|
|
123
113
|
width: 100%;
|
|
124
114
|
justify-content: space-between;
|
|
125
115
|
}
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
|
|
4
|
-
export const cardColors = [
|
|
4
|
+
export const cardColors = [
|
|
5
|
+
"white",
|
|
6
|
+
"black",
|
|
7
|
+
"orange",
|
|
8
|
+
"gray",
|
|
9
|
+
"blue",
|
|
10
|
+
"green",
|
|
11
|
+
"pink",
|
|
12
|
+
"yellow",
|
|
13
|
+
"violet",
|
|
14
|
+
"accent1-blog",
|
|
15
|
+
"accent2-blog",
|
|
16
|
+
"accent",
|
|
17
|
+
] as const;
|
|
5
18
|
export type CardColor = (typeof cardColors)[number];
|
|
6
19
|
|
|
7
20
|
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
+
import { cardColors } from "./Card";
|
|
3
4
|
|
|
4
|
-
export
|
|
5
|
-
"orange",
|
|
6
|
-
"gray",
|
|
7
|
-
"blue",
|
|
8
|
-
"green",
|
|
9
|
-
"pink",
|
|
10
|
-
"yellow",
|
|
11
|
-
"violet",
|
|
12
|
-
] as const;
|
|
13
|
-
export type CardSectionColor = (typeof cardSectionColors)[number];
|
|
5
|
+
export type CardSectionColor = (typeof cardColors)[number];
|
|
14
6
|
|
|
15
7
|
interface CardSectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
8
|
/** Custom background color */
|
|
@@ -26,8 +26,8 @@ interface ExpanderProps {
|
|
|
26
26
|
className?: string;
|
|
27
27
|
/** Child elements */
|
|
28
28
|
children?: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
|
|
29
|
+
/** Expander takes full width of its container */
|
|
30
|
+
isFullWidth?: boolean;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export const Expander: React.FC<ExpanderProps> = (props) => {
|
|
@@ -39,6 +39,7 @@ export const Expander: React.FC<ExpanderProps> = (props) => {
|
|
|
39
39
|
renderSummary,
|
|
40
40
|
renderSummaryOpened,
|
|
41
41
|
colorScheme,
|
|
42
|
+
isFullWidth,
|
|
42
43
|
...other
|
|
43
44
|
} = props;
|
|
44
45
|
const [expanderRef] = useStatic(ExpanderStatic);
|
|
@@ -46,6 +47,7 @@ export const Expander: React.FC<ExpanderProps> = (props) => {
|
|
|
46
47
|
const classes = cx(
|
|
47
48
|
CLASS_ROOT,
|
|
48
49
|
{
|
|
50
|
+
[`${CLASS_ROOT}--fullwidth`]: isFullWidth,
|
|
49
51
|
"is-dark": colorScheme === "dark",
|
|
50
52
|
"is-light": colorScheme === "light",
|
|
51
53
|
},
|