@asantemedia-org/leybold-design-system 1.0.4 → 1.0.6
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/index.esm.js +7 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.scss +51 -10
- package/dist/index.js +42 -32
- package/dist/index.js.map +1 -1
- package/dist/index.scss +51 -10
- package/dist/src/components/Button/Button.d.ts +4 -4
- package/dist/src/components/Button/Button.stories.d.ts +3 -2
- package/dist/src/index.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -4
package/dist/index.scss
CHANGED
|
@@ -72,6 +72,11 @@
|
|
|
72
72
|
.Button-module__button--text___iZIMo:active:not(.Button-module__button--disabled___IuOY8) {
|
|
73
73
|
background-color: rgba(226, 0, 26, 0.2);
|
|
74
74
|
}
|
|
75
|
+
.Button-module__button--extra-small___R0QTM {
|
|
76
|
+
padding: 0.5rem 0.675rem;
|
|
77
|
+
font-size: 0.5rem;
|
|
78
|
+
line-height: 0.5;
|
|
79
|
+
}
|
|
75
80
|
.Button-module__button--small___ADJQe {
|
|
76
81
|
padding: 1rem 1.35rem;
|
|
77
82
|
font-size: 12px;
|
|
@@ -438,7 +443,6 @@
|
|
|
438
443
|
display: grid;
|
|
439
444
|
grid-template-columns: repeat(1, 1fr);
|
|
440
445
|
grid-template-rows: auto;
|
|
441
|
-
gap: 10px;
|
|
442
446
|
}
|
|
443
447
|
@media (min-width: 992px) {
|
|
444
448
|
.ProductCardDetails-module__productDetails___-sx2l .cmp-card--type-product_details {
|
|
@@ -447,6 +451,7 @@
|
|
|
447
451
|
}
|
|
448
452
|
.ProductCardDetails-module__productDetails___-sx2l .cmp-card--type-product_details__product-info {
|
|
449
453
|
position: relative;
|
|
454
|
+
max-width: 480px;
|
|
450
455
|
}
|
|
451
456
|
.ProductCardDetails-module__productDetails___-sx2l .cmp-card--type-product_details__header {
|
|
452
457
|
margin-bottom: 1rem;
|
|
@@ -576,7 +581,6 @@
|
|
|
576
581
|
}
|
|
577
582
|
@media (min-width: 961px) {
|
|
578
583
|
.cmpAlgoliaDynamicSearchWidget__container {
|
|
579
|
-
width: 80vw;
|
|
580
584
|
max-width: 1280px;
|
|
581
585
|
}
|
|
582
586
|
}
|
|
@@ -716,13 +720,37 @@
|
|
|
716
720
|
font-size: 21px;
|
|
717
721
|
font-weight: 700;
|
|
718
722
|
line-height: 1.6em;
|
|
719
|
-
color: #
|
|
723
|
+
color: #e2001a;
|
|
720
724
|
margin: 1rem 0 0 0;
|
|
721
725
|
}
|
|
722
726
|
.qr-journey-form-wrapper .qr-form-page {
|
|
723
727
|
display: none;
|
|
724
728
|
position: relative;
|
|
725
729
|
}
|
|
730
|
+
@media (min-width: 768px) {
|
|
731
|
+
.qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields {
|
|
732
|
+
display: grid;
|
|
733
|
+
grid-template-columns: repeat(2, 1fr);
|
|
734
|
+
grid-template-rows: repeat(3, 1fr);
|
|
735
|
+
grid-template-areas: "select select" "email tel" "city zip";
|
|
736
|
+
gap: 1rem;
|
|
737
|
+
}
|
|
738
|
+
.qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrapper.select {
|
|
739
|
+
grid-area: select;
|
|
740
|
+
}
|
|
741
|
+
.qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrapper.email {
|
|
742
|
+
grid-area: email;
|
|
743
|
+
}
|
|
744
|
+
.qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrapper.tel {
|
|
745
|
+
grid-area: tel;
|
|
746
|
+
}
|
|
747
|
+
.qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrappertext:first-child {
|
|
748
|
+
grid-area: city;
|
|
749
|
+
}
|
|
750
|
+
.qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrappertext:last-child {
|
|
751
|
+
grid-area: zip;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
726
754
|
.qr-journey-form-wrapper .qr-form-page.active {
|
|
727
755
|
display: block;
|
|
728
756
|
}
|
|
@@ -878,12 +906,15 @@
|
|
|
878
906
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label select,
|
|
879
907
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label textarea {
|
|
880
908
|
line-height: 1em;
|
|
881
|
-
padding:
|
|
909
|
+
padding: 1.5rem 1rem 0 1rem;
|
|
882
910
|
box-sizing: content-box;
|
|
883
911
|
}
|
|
884
912
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label select {
|
|
885
913
|
padding: 10px 18px;
|
|
886
914
|
position: relative;
|
|
915
|
+
-webkit-appearance: none;
|
|
916
|
+
-moz-appearance: none;
|
|
917
|
+
appearance: none;
|
|
887
918
|
}
|
|
888
919
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label select + .select-custom-arrow {
|
|
889
920
|
position: absolute;
|
|
@@ -891,7 +922,6 @@
|
|
|
891
922
|
right: 2px;
|
|
892
923
|
height: calc(100% - 1em - 6px);
|
|
893
924
|
width: 17px;
|
|
894
|
-
background-color: #ffffff;
|
|
895
925
|
}
|
|
896
926
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label select + .select-custom-arrow::after, .qr-journey-form-wrapper .qr-form-filed-wrapper label select + .select-custom-arrow::before {
|
|
897
927
|
content: "";
|
|
@@ -947,10 +977,11 @@
|
|
|
947
977
|
height: calc(2.3em + 20px);
|
|
948
978
|
padding: 0 10px;
|
|
949
979
|
margin: 0;
|
|
950
|
-
border:
|
|
980
|
+
border: 0px;
|
|
981
|
+
border-bottom: 1px solid #c5c7c4;
|
|
951
982
|
border-right: none;
|
|
952
983
|
border-radius: 0;
|
|
953
|
-
background:
|
|
984
|
+
background: transparent;
|
|
954
985
|
box-sizing: border-box;
|
|
955
986
|
cursor: pointer;
|
|
956
987
|
-webkit-user-select: none;
|
|
@@ -987,7 +1018,7 @@
|
|
|
987
1018
|
height: calc(2.3em + 20px);
|
|
988
1019
|
padding: 10px 18px;
|
|
989
1020
|
margin: 0;
|
|
990
|
-
border: 1px solid #c5c7c4;
|
|
1021
|
+
border-bottom: 1px solid #c5c7c4;
|
|
991
1022
|
border-radius: 0;
|
|
992
1023
|
font-size: 18px;
|
|
993
1024
|
font-family: inherit;
|
|
@@ -1077,6 +1108,7 @@
|
|
|
1077
1108
|
}
|
|
1078
1109
|
}
|
|
1079
1110
|
.qr-journey-form-wrapper .disabled-product-fields-section .qr-form-fields .qr-form-filed-wrapper label .label {
|
|
1111
|
+
display: block;
|
|
1080
1112
|
height: 1em;
|
|
1081
1113
|
opacity: 1;
|
|
1082
1114
|
font-weight: 700;
|
|
@@ -1089,10 +1121,19 @@
|
|
|
1089
1121
|
font-weight: 400;
|
|
1090
1122
|
background-color: transparent;
|
|
1091
1123
|
}
|
|
1124
|
+
.qr-journey-form-wrapper .qr-form-page-section[data-page="1"] .qr-form-navigation > div {
|
|
1125
|
+
display: none;
|
|
1126
|
+
}
|
|
1092
1127
|
.qr-journey-form-wrapper .qr-form-navigation {
|
|
1093
1128
|
display: grid;
|
|
1094
1129
|
grid-template-columns: repeat(2, 1fr);
|
|
1095
1130
|
gap: 1rem;
|
|
1131
|
+
margin: 1rem auto 0 0;
|
|
1132
|
+
}
|
|
1133
|
+
@media (min-width: 768px) {
|
|
1134
|
+
.qr-journey-form-wrapper .qr-form-navigation {
|
|
1135
|
+
width: 65%;
|
|
1136
|
+
}
|
|
1096
1137
|
}
|
|
1097
1138
|
.qr-journey-form-wrapper .qr-form-navigation input[type=submit] {
|
|
1098
1139
|
padding: 18px;
|
|
@@ -1227,7 +1268,7 @@
|
|
|
1227
1268
|
margin-bottom: 50px;
|
|
1228
1269
|
border: 1px solid #e2001a;
|
|
1229
1270
|
border-radius: 50%;
|
|
1230
|
-
color:
|
|
1271
|
+
color: rgba(84, 102, 114, 0.5);
|
|
1231
1272
|
font-weight: 700;
|
|
1232
1273
|
}
|
|
1233
1274
|
.qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li .bullet-point::after {
|
|
@@ -1258,7 +1299,7 @@
|
|
|
1258
1299
|
.qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li h3 {
|
|
1259
1300
|
flex: 2;
|
|
1260
1301
|
margin: 0 10px;
|
|
1261
|
-
color:
|
|
1302
|
+
color: rgba(84, 102, 114, 0.5);
|
|
1262
1303
|
font-size: 1.25rem;
|
|
1263
1304
|
font-weight: 400;
|
|
1264
1305
|
line-height: 30px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface ButtonProps {
|
|
3
3
|
/**
|
|
4
4
|
* Button content
|
|
@@ -7,11 +7,11 @@ export interface ButtonProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* Button variant
|
|
9
9
|
*/
|
|
10
|
-
variant?:
|
|
10
|
+
variant?: "primary" | "secondary" | "outline" | "text";
|
|
11
11
|
/**
|
|
12
12
|
* Button size
|
|
13
13
|
*/
|
|
14
|
-
size?:
|
|
14
|
+
size?: "extra-small" | "small" | "medium" | "large";
|
|
15
15
|
/**
|
|
16
16
|
* Is button disabled?
|
|
17
17
|
*/
|
|
@@ -23,7 +23,7 @@ export interface ButtonProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* Button type
|
|
25
25
|
*/
|
|
26
|
-
type?:
|
|
26
|
+
type?: "button" | "submit" | "reset";
|
|
27
27
|
/**
|
|
28
28
|
* Additional CSS classes
|
|
29
29
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
2
|
-
import { Button } from
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Button } from "./Button";
|
|
3
3
|
declare const meta: Meta<typeof Button>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Button>;
|
|
@@ -7,6 +7,7 @@ export declare const Primary: Story;
|
|
|
7
7
|
export declare const Secondary: Story;
|
|
8
8
|
export declare const Outline: Story;
|
|
9
9
|
export declare const Text: Story;
|
|
10
|
+
export declare const ExtraSmall: Story;
|
|
10
11
|
export declare const Small: Story;
|
|
11
12
|
export declare const Medium: Story;
|
|
12
13
|
export declare const Large: Story;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { Pagination, PaginationItem, PaginationButton, PaginationEllipsis, } fro
|
|
|
4
4
|
export type { PaginationProps, PaginationItemProps, PaginationButtonProps, PaginationEllipsisProps, } from "./components/Pagination";
|
|
5
5
|
export { AlgoliaDynamicSearchLeybold } from "./experience/algolia-dynamic-search";
|
|
6
6
|
export { QrFormLeybold } from "./experience/qr-form-journey";
|
|
7
|
+
export { AlgoliaDynamicSearchLeybold as AlgoliaDynamicSearch } from "./experience/algolia-dynamic-search";
|
|
8
|
+
export { QrFormLeybold as QrForm } from "./experience/qr-form-journey";
|
|
7
9
|
export { FederatedSearchExperience } from "./experience/federated-search";
|
|
8
10
|
export type { FederatedSearchProps } from "./types/search";
|
|
9
11
|
export { SearchTriggerButton } from "./components/SearchTriggerButton";
|