bonprix-design-system 0.51.0 → 0.52.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.
@@ -1,3 +1,3 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
2
- <path d="M3 11.25h18v1.5H3v-1.5Z"/>
2
+ <path d="M21 11.55a.3.3 0 0 0-.3-.3H4.2a1.2 1.2 0 0 0-1.2 1.2.3.3 0 0 0 .3.3h16.5a1.2 1.2 0 0 0 1.2-1.2Z"/>
3
3
  </svg>
package/dist/index.d.ts CHANGED
@@ -118,8 +118,6 @@ export declare interface AvailabilityProps {
118
118
  delivery: "available" | "available-soon" | "sold-out";
119
119
  /** Describes the current availability of the item. */
120
120
  children: string;
121
- /** If set to `true` an additional message will be shown, which informs that the item is almost sold out. */
122
- almostSoldOut?: boolean;
123
121
  }
124
122
 
125
123
  export declare const BadgeIconButton: FC<BadgeIconButtonProps>;
@@ -281,23 +279,23 @@ declare interface BaseProps_7 {
281
279
  declare interface BaseProps_8 {
282
280
  /** The visible label. **/
283
281
  label: string;
284
- /** If `true`, the label will use the small variant. */
285
- smallLabel?: boolean;
286
282
  /** If `true`, the switch will be disabled. */
287
283
  disabled?: boolean;
288
284
  /** If `true`, inverts the colors of the component. */
289
285
  inverted?: boolean;
286
+ /** Additional information about what this particular switch does. */
287
+ description?: string;
290
288
  }
291
289
 
292
290
  declare interface BaseProps_9 {
293
- /** This property should contain all of the subcomponents of the Tabs component (Tabs.Item, Tabs.Content, Tabs.List). */
291
+ /** This property should contain all of the subcomponents of the TabGroup component (TabGroup.Item, TabGroup.Content, TabGroup.List). */
294
292
  children: ReactNode;
295
293
  /** The currently active tab. Should be used in conjunction with the `onChange` prop. */
296
294
  activeTab: string;
297
295
  /** Callback function that is called when the active tab changes. */
298
296
  onChange: (value: string) => void;
299
- /** Sets "TabBox" or "Tabs" variants. "Tabs" is the old regular Tabs while "TabBox" changes visuals, allow stacking tabs and removes max-width of each Tab.Item. */
300
- variant?: TabsVariant;
297
+ /** Sets "the variant. */
298
+ variant?: TabGroupVariant;
301
299
  }
302
300
 
303
301
  declare interface BasicProps {
@@ -355,12 +353,6 @@ export declare interface BottomSheetProps {
355
353
  ref?: default_2.Ref<HTMLDivElement>;
356
354
  }
357
355
 
358
- declare interface BoxTabsProps extends BaseProps_9 {
359
- variant?: "box";
360
- /** If true, the tab items will occupy the available width. */
361
- fullWidth?: boolean;
362
- }
363
-
364
356
  export declare const Breadcrumb: FC<BreadcrumbProps>;
365
357
 
366
358
  export declare interface BreadcrumbProps {
@@ -640,11 +632,6 @@ declare interface ControlledSelectProps extends BaseProps_7 {
640
632
  onValueChange: (value: string) => void;
641
633
  }
642
634
 
643
- declare interface DefaultTabsProps extends BaseProps_9 {
644
- variant?: "default";
645
- fullWidth?: never;
646
- }
647
-
648
635
  export declare const Dialog: FC<DialogProps> & Subcomponents_3;
649
636
 
650
637
  export declare interface DialogProps {
@@ -707,6 +694,8 @@ declare interface HTMLInputAttributes {
707
694
  autoCorrect?: HTMLInputAutoCorrectAttribute;
708
695
  /** <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/spellcheck" target="_blank">HTML spellcheck attribute.</a> */
709
696
  spellCheck?: HTMLInputSpellCheckAttribute;
697
+ /** <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/minlength" target="_blank">HTML minLength attribute.</a> */
698
+ minLength?: number;
710
699
  /** <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/maxlength" target="_blank">HTML maxlength attribute.</a> */
711
700
  maxLength?: number;
712
701
  /** Callback, that is triggered on key down. */
@@ -1160,9 +1149,9 @@ declare interface Subcomponents_8 {
1160
1149
  }
1161
1150
 
1162
1151
  declare interface Subcomponents_9 {
1163
- Item: typeof TabItem;
1164
- Content: typeof TabContent;
1165
- List: typeof TabsList;
1152
+ Item: typeof TabGroupItem;
1153
+ Content: typeof TabGroupContent;
1154
+ List: typeof TabGroupList;
1166
1155
  }
1167
1156
 
1168
1157
  declare type SubmitResetVariantProps = AsButton_2 & {
@@ -1174,22 +1163,33 @@ export declare const Switch: FC<SwitchProps>;
1174
1163
 
1175
1164
  export declare type SwitchProps = ControlledInputProps_3 | UncontrolledInputProps_3;
1176
1165
 
1177
- declare const TabContent: FC<Props_12>;
1166
+ declare interface TabBoxProps extends BaseProps_9 {
1167
+ variant?: "tab-box";
1168
+ /** If true, the tab items will occupy the available width. */
1169
+ fullWidth?: boolean;
1170
+ }
1171
+
1172
+ export declare const TabGroup: FC<TabGroupProps> & Subcomponents_9;
1178
1173
 
1179
- declare const TabItem: FC<Props_11>;
1174
+ declare const TabGroupContent: FC<Props_12>;
1180
1175
 
1181
- export declare const Tabs: FC<TabsProps> & Subcomponents_9;
1176
+ declare const TabGroupItem: FC<Props_11>;
1182
1177
 
1183
- declare const TabsList: FC<TabsListProps>;
1178
+ declare const TabGroupList: FC<TabGroupListProps>;
1184
1179
 
1185
- declare interface TabsListProps {
1186
- /** Here, the Tabs.Item subcomponents should be placed. */
1180
+ declare interface TabGroupListProps {
1181
+ /** Here, the TabGroup.Item subcomponents should be placed. */
1187
1182
  children: ReactNode;
1188
1183
  }
1189
1184
 
1190
- export declare type TabsProps = BoxTabsProps | DefaultTabsProps;
1185
+ export declare type TabGroupProps = TabBoxProps | TabProps;
1191
1186
 
1192
- declare type TabsVariant = "default" | "box";
1187
+ declare type TabGroupVariant = "tab" | "tab-box";
1188
+
1189
+ declare interface TabProps extends BaseProps_9 {
1190
+ variant?: "tab";
1191
+ fullWidth?: never;
1192
+ }
1193
1193
 
1194
1194
  /** @type {import('tailwindcss').Config} */
1195
1195
  export declare const tailwindConfig: {
@@ -1202,6 +1202,53 @@ export declare const tailwindConfig: {
1202
1202
  darkMode: string[];
1203
1203
  content: string[];
1204
1204
  theme: {
1205
+ spacing: {
1206
+ 0: string;
1207
+ 1: string;
1208
+ 2: string;
1209
+ 3: string;
1210
+ 4: string;
1211
+ 5: string;
1212
+ 6: string;
1213
+ 7: string;
1214
+ 8: string;
1215
+ 9: string;
1216
+ 10: string;
1217
+ 11: string;
1218
+ 12: string;
1219
+ 14: string;
1220
+ 16: string;
1221
+ 20: string;
1222
+ 24: string;
1223
+ 28: string;
1224
+ 32: string;
1225
+ 35: string;
1226
+ 36: string;
1227
+ 40: string;
1228
+ 44: string;
1229
+ 48: string;
1230
+ 50: string;
1231
+ 52: string;
1232
+ 56: string;
1233
+ 60: string;
1234
+ 64: string;
1235
+ 72: string;
1236
+ 75: string;
1237
+ 80: string;
1238
+ 96: string;
1239
+ 100: string;
1240
+ 150: string;
1241
+ 0.25: string;
1242
+ 0.5: string;
1243
+ 0.75: string;
1244
+ 1.25: string;
1245
+ 1.5: string;
1246
+ 2.5: string;
1247
+ 3.5: string;
1248
+ 6.5: string;
1249
+ 11.5: string;
1250
+ 17.5: string;
1251
+ };
1205
1252
  extend: {
1206
1253
  fontFamily: {
1207
1254
  bonprixRegular: string[];
@@ -1248,10 +1295,6 @@ export declare const tailwindConfig: {
1248
1295
  width: string;
1249
1296
  };
1250
1297
  };
1251
- dummyAnimation: {
1252
- from: {};
1253
- to: {};
1254
- };
1255
1298
  };
1256
1299
  animation: {
1257
1300
  slideLeft: string;
@@ -1259,128 +1302,10 @@ export declare const tailwindConfig: {
1259
1302
  fadeIn: string;
1260
1303
  fadeOut: string;
1261
1304
  shrinkHorizontally: string;
1262
- dummyAnimation: string;
1263
- };
1264
- gap: {
1265
- 0.25: string;
1266
- 0.75: string;
1267
- 1.25: string;
1268
- 6.5: string;
1269
- 11.5: string;
1270
- 17.5: string;
1271
- 35: string;
1272
- 50: string;
1273
- 75: string;
1274
- 100: string;
1275
- 150: string;
1276
- };
1277
- height: {
1278
- 0.25: string;
1279
- 0.75: string;
1280
- 1.25: string;
1281
- 6.5: string;
1282
- 11.5: string;
1283
- 17.5: string;
1284
- 35: string;
1285
- 50: string;
1286
- 75: string;
1287
- 100: string;
1288
- 150: string;
1289
- };
1290
- margin: {
1291
- 0.25: string;
1292
- 0.75: string;
1293
- 1.25: string;
1294
- 6.5: string;
1295
- 11.5: string;
1296
- 17.5: string;
1297
- 35: string;
1298
- 50: string;
1299
- 75: string;
1300
- 100: string;
1301
- 150: string;
1302
- };
1303
- maxHeight: {
1304
- 0.25: string;
1305
- 0.75: string;
1306
- 1.25: string;
1307
- 6.5: string;
1308
- 11.5: string;
1309
- 17.5: string;
1310
- 35: string;
1311
- 50: string;
1312
- 75: string;
1313
- 100: string;
1314
- 150: string;
1315
- };
1316
- maxWidth: {
1317
- 0.25: string;
1318
- 0.75: string;
1319
- 1.25: string;
1320
- 6.5: string;
1321
- 11.5: string;
1322
- 17.5: string;
1323
- 35: string;
1324
- 50: string;
1325
- 75: string;
1326
- 100: string;
1327
- 150: string;
1328
- };
1329
- minHeight: {
1330
- 0.25: string;
1331
- 0.75: string;
1332
- 1.25: string;
1333
- 6.5: string;
1334
- 11.5: string;
1335
- 17.5: string;
1336
- 35: string;
1337
- 50: string;
1338
- 75: string;
1339
- 100: string;
1340
- 150: string;
1341
- };
1342
- minWidth: {
1343
- 0.25: string;
1344
- 0.75: string;
1345
- 1.25: string;
1346
- 6.5: string;
1347
- 11.5: string;
1348
- 17.5: string;
1349
- 35: string;
1350
- 50: string;
1351
- 75: string;
1352
- 100: string;
1353
- 150: string;
1354
1305
  };
1355
1306
  opacity: {
1356
1307
  32: string;
1357
1308
  };
1358
- padding: {
1359
- 0.25: string;
1360
- 0.75: string;
1361
- 1.25: string;
1362
- 6.5: string;
1363
- 11.5: string;
1364
- 17.5: string;
1365
- 35: string;
1366
- 50: string;
1367
- 75: string;
1368
- 100: string;
1369
- 150: string;
1370
- };
1371
- width: {
1372
- 0.25: string;
1373
- 0.75: string;
1374
- 1.25: string;
1375
- 6.5: string;
1376
- 11.5: string;
1377
- 17.5: string;
1378
- 35: string;
1379
- 50: string;
1380
- 75: string;
1381
- 100: string;
1382
- 150: string;
1383
- };
1384
1309
  inset: {
1385
1310
  100: string;
1386
1311
  };
@@ -1401,41 +1326,53 @@ export declare const tailwindConfig: {
1401
1326
  transparent: string;
1402
1327
  current: string;
1403
1328
  inherit: string;
1404
- "clr-primary": string;
1405
- "clr-primary-inverse": string;
1406
- "clr-on-primary-high": string;
1407
- "clr-on-primary-high-inverse": string;
1408
- "clr-on-primary-mid": string;
1409
- "clr-on-primary-mid-inverse": string;
1410
- "clr-bg-main": string;
1411
- "clr-bg-main-inverse": string;
1412
- "clr-bg-main-light": string;
1413
- "clr-bg-main-light-inverse": string;
1414
- "clr-on-bg-high": string;
1415
- "clr-on-bg-high-inverse": string;
1416
- "clr-on-bg-mid": string;
1417
- "clr-on-bg-mid-inverse": string;
1418
- "clr-on-bg-low": string;
1419
- "clr-on-bg-low-inverse": string;
1420
- "clr-fg-error": string;
1421
- "clr-bg-error": string;
1422
- "clr-fg-alert": string;
1423
- "clr-bg-alert": string;
1424
- "clr-fg-success": string;
1425
- "clr-bg-success": string;
1426
- "clr-fg-info": string;
1427
- "clr-bg-info": string;
1428
- "clr-sale": string;
1429
- "clr-on-sale": string;
1430
- "clr-disabled": string;
1431
- "clr-disabled-inverse": string;
1432
- "clr-bg-disabled": string;
1433
- "clr-bg-disabled-inverse": string;
1434
- "clr-sustainable": string;
1435
- "clr-voucher": string;
1436
- "clr-black": string;
1437
- "clr-white": string;
1438
- "clr-bg-modal": string;
1329
+ clr: {
1330
+ black: string;
1331
+ white: string;
1332
+ "bg-modal": string;
1333
+ "primary-transparent": string;
1334
+ "on-bg-high-transparent": string;
1335
+ primary: string;
1336
+ "primary-inverse": string;
1337
+ "on-primary": {
1338
+ high: string;
1339
+ "high-inverse": string;
1340
+ mid: string;
1341
+ "mid-inverse": string;
1342
+ };
1343
+ bg: {
1344
+ main: string;
1345
+ "main-inverse": string;
1346
+ "main-light": string;
1347
+ "main-light-inverse": string;
1348
+ error: string;
1349
+ alert: string;
1350
+ success: string;
1351
+ info: string;
1352
+ disabled: string;
1353
+ "disabled-inverse": string;
1354
+ };
1355
+ "on-bg": {
1356
+ high: string;
1357
+ "high-inverse": string;
1358
+ mid: string;
1359
+ "mid-inverse": string;
1360
+ low: string;
1361
+ "low-inverse": string;
1362
+ };
1363
+ fg: {
1364
+ error: string;
1365
+ alert: string;
1366
+ success: string;
1367
+ info: string;
1368
+ };
1369
+ voucher: string;
1370
+ sale: string;
1371
+ "on-sale": string;
1372
+ disabled: string;
1373
+ "disabled-inverse": string;
1374
+ sustainable: string;
1375
+ };
1439
1376
  };
1440
1377
  };
1441
1378
  safelist: string[];