@resira/ui 0.3.2 → 0.4.0

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/styles.css CHANGED
@@ -961,6 +961,238 @@
961
961
  opacity: 0.7;
962
962
  }
963
963
 
964
+ /* ─────────────────────────────────────────────────────────────── */
965
+ /* Category tiles */
966
+ /* ─────────────────────────────────────────────────────────────── */
967
+
968
+ .resira-category-grid {
969
+ display: grid;
970
+ grid-template-columns: repeat(2, 1fr);
971
+ gap: 12px;
972
+ }
973
+
974
+ .resira-category-tile {
975
+ position: relative;
976
+ border: none;
977
+ background: none;
978
+ padding: 0;
979
+ border-radius: var(--resira-radius, 12px);
980
+ overflow: hidden;
981
+ cursor: pointer;
982
+ display: flex;
983
+ flex-direction: column;
984
+ transition: transform 0.18s ease, box-shadow 0.18s ease;
985
+ box-shadow: 0 2px 8px rgba(0,0,0,0.08);
986
+ }
987
+
988
+ .resira-category-tile:hover {
989
+ transform: translateY(-2px);
990
+ box-shadow: 0 6px 20px rgba(0,0,0,0.12);
991
+ }
992
+
993
+ .resira-category-tile-image {
994
+ position: relative;
995
+ width: 100%;
996
+ aspect-ratio: 4 / 3;
997
+ overflow: hidden;
998
+ }
999
+
1000
+ .resira-category-tile-image img {
1001
+ width: 100%;
1002
+ height: 100%;
1003
+ object-fit: cover;
1004
+ display: block;
1005
+ }
1006
+
1007
+ .resira-category-tile-overlay {
1008
+ position: absolute;
1009
+ inset: 0;
1010
+ background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 60%);
1011
+ pointer-events: none;
1012
+ }
1013
+
1014
+ .resira-category-tile-content {
1015
+ position: absolute;
1016
+ bottom: 0;
1017
+ left: 0;
1018
+ right: 0;
1019
+ padding: 14px;
1020
+ display: flex;
1021
+ flex-direction: column;
1022
+ gap: 2px;
1023
+ z-index: 1;
1024
+ }
1025
+
1026
+ .resira-category-tile-name {
1027
+ font-size: 15px;
1028
+ font-weight: 700;
1029
+ color: #fff;
1030
+ line-height: 1.2;
1031
+ margin: 0;
1032
+ }
1033
+
1034
+ .resira-category-tile-count {
1035
+ font-size: 12px;
1036
+ color: rgba(255,255,255,0.8);
1037
+ font-weight: 500;
1038
+ }
1039
+
1040
+ /* ── Category back button ────────────────────────────────────── */
1041
+
1042
+ .resira-category-back {
1043
+ display: inline-flex;
1044
+ align-items: center;
1045
+ gap: 6px;
1046
+ background: none;
1047
+ border: none;
1048
+ padding: 4px 0;
1049
+ margin-bottom: 10px;
1050
+ font-size: 13px;
1051
+ font-weight: 600;
1052
+ color: var(--resira-primary);
1053
+ cursor: pointer;
1054
+ transition: opacity 0.15s ease;
1055
+ }
1056
+
1057
+ .resira-category-back:hover { opacity: 0.75; }
1058
+
1059
+ /* ─────────────────────────────────────────────────────────────── */
1060
+ /* Service overlay cards (image background + text overlay) */
1061
+ /* ─────────────────────────────────────────────────────────────── */
1062
+
1063
+ .resira-service-overlay-list {
1064
+ display: flex;
1065
+ flex-direction: column;
1066
+ gap: 12px;
1067
+ }
1068
+
1069
+ .resira-service-overlay-list .resira-service-card-btn {
1070
+ display: block;
1071
+ }
1072
+
1073
+ .resira-service-overlay-card {
1074
+ position: relative;
1075
+ border-radius: var(--resira-radius, 12px);
1076
+ overflow: hidden;
1077
+ min-height: 170px;
1078
+ display: flex;
1079
+ flex-direction: column;
1080
+ justify-content: flex-end;
1081
+ cursor: pointer;
1082
+ transition: transform 0.18s ease, box-shadow 0.18s ease;
1083
+ box-shadow: 0 2px 8px rgba(0,0,0,0.08);
1084
+ }
1085
+
1086
+ .resira-service-overlay-card:hover {
1087
+ transform: translateY(-2px);
1088
+ box-shadow: 0 6px 20px rgba(0,0,0,0.12);
1089
+ }
1090
+
1091
+ .resira-service-overlay-card--selected {
1092
+ outline: 2.5px solid var(--resira-primary);
1093
+ outline-offset: -2.5px;
1094
+ }
1095
+
1096
+ .resira-service-overlay-card-bg {
1097
+ position: absolute;
1098
+ inset: 0;
1099
+ z-index: 0;
1100
+ }
1101
+
1102
+ .resira-service-overlay-card-bg img {
1103
+ width: 100%;
1104
+ height: 100%;
1105
+ object-fit: cover;
1106
+ display: block;
1107
+ }
1108
+
1109
+ .resira-service-overlay-card-gradient {
1110
+ position: absolute;
1111
+ inset: 0;
1112
+ background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.05) 100%);
1113
+ z-index: 1;
1114
+ pointer-events: none;
1115
+ }
1116
+
1117
+ .resira-service-overlay-card-content {
1118
+ position: relative;
1119
+ z-index: 2;
1120
+ padding: 14px 16px;
1121
+ display: flex;
1122
+ flex-direction: column;
1123
+ justify-content: flex-end;
1124
+ gap: 6px;
1125
+ min-height: 170px;
1126
+ }
1127
+
1128
+ .resira-service-overlay-card-top {
1129
+ margin-top: auto;
1130
+ }
1131
+
1132
+ .resira-service-overlay-card-name {
1133
+ font-size: 16px;
1134
+ font-weight: 700;
1135
+ color: #fff;
1136
+ line-height: 1.25;
1137
+ margin: 0;
1138
+ }
1139
+
1140
+ .resira-service-overlay-card-desc {
1141
+ font-size: 12px;
1142
+ color: rgba(255,255,255,0.8);
1143
+ line-height: 1.4;
1144
+ margin: 3px 0 0;
1145
+ display: -webkit-box;
1146
+ -webkit-line-clamp: 2;
1147
+ -webkit-box-orient: vertical;
1148
+ overflow: hidden;
1149
+ }
1150
+
1151
+ .resira-service-overlay-card-bottom {
1152
+ display: flex;
1153
+ align-items: center;
1154
+ justify-content: space-between;
1155
+ gap: 8px;
1156
+ flex-wrap: wrap;
1157
+ }
1158
+
1159
+ .resira-service-overlay-card-price {
1160
+ font-size: 16px;
1161
+ font-weight: 700;
1162
+ color: #fff;
1163
+ }
1164
+
1165
+ .resira-service-overlay-card-price-unit {
1166
+ font-size: 11px;
1167
+ font-weight: 500;
1168
+ color: rgba(255,255,255,0.7);
1169
+ }
1170
+
1171
+ .resira-service-overlay-card-pills {
1172
+ display: flex;
1173
+ gap: 6px;
1174
+ }
1175
+
1176
+ .resira-service-overlay-card-pill {
1177
+ display: inline-flex;
1178
+ align-items: center;
1179
+ gap: 3px;
1180
+ font-size: 11px;
1181
+ font-weight: 600;
1182
+ color: #fff;
1183
+ background: rgba(255,255,255,0.18);
1184
+ padding: 2px 7px;
1185
+ border-radius: 4px;
1186
+ white-space: nowrap;
1187
+ }
1188
+
1189
+ /* Mobile: single column for category grid */
1190
+ @media (max-width: 400px) {
1191
+ .resira-category-grid {
1192
+ grid-template-columns: 1fr;
1193
+ }
1194
+ }
1195
+
964
1196
  /* ─────────────────────────────────────────────────────────────── */
965
1197
  /* Guest form (v2 — compact, 2-col) */
966
1198
  /* ─────────────────────────────────────────────────────────────── */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resira/ui",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "React UI components for the Resira booking platform",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,7 +35,7 @@
35
35
  "react-dom": ">=18.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@resira/sdk": "^0.3.1"
38
+ "@resira/sdk": "^0.4.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/react": "^19.0.0",