@pandacss/preset-base 0.10.0 → 0.11.1

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.d.mts CHANGED
@@ -475,6 +475,29 @@ declare const preset: {
475
475
  translate: any;
476
476
  };
477
477
  };
478
+ bleed: {
479
+ properties: {
480
+ inline: {
481
+ type: "property";
482
+ value: "marginInline";
483
+ };
484
+ block: {
485
+ type: "property";
486
+ value: "marginBlock";
487
+ };
488
+ };
489
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
490
+ '--bleed-x': string;
491
+ '--bleed-y': string;
492
+ marginInline: "calc(var(--bleed-x, 0) * -1)";
493
+ marginBlock: "calc(var(--bleed-y, 0) * -1)";
494
+ };
495
+ };
496
+ visuallyHidden: {
497
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
498
+ srOnly: true;
499
+ };
500
+ };
478
501
  };
479
502
  };
480
503
 
package/dist/index.d.ts CHANGED
@@ -475,6 +475,29 @@ declare const preset: {
475
475
  translate: any;
476
476
  };
477
477
  };
478
+ bleed: {
479
+ properties: {
480
+ inline: {
481
+ type: "property";
482
+ value: "marginInline";
483
+ };
484
+ block: {
485
+ type: "property";
486
+ value: "marginBlock";
487
+ };
488
+ };
489
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
490
+ '--bleed-x': string;
491
+ '--bleed-y': string;
492
+ marginInline: "calc(var(--bleed-x, 0) * -1)";
493
+ marginBlock: "calc(var(--bleed-y, 0) * -1)";
494
+ };
495
+ };
496
+ visuallyHidden: {
497
+ transform(props: _pandacss_types_dist_pattern.Props<_pandacss_types_dist_pattern.PatternProperties>): {
498
+ srOnly: true;
499
+ };
500
+ };
478
501
  };
479
502
  };
480
503
 
package/dist/index.js CHANGED
@@ -219,7 +219,7 @@ var background = {
219
219
  "--gradient-stops": "var(--gradient-from), var(--gradient-to)",
220
220
  "--gradient": "var(--gradient-via-stops, var(--gradient-stops))",
221
221
  backgroundImage: value,
222
- backgroundClip: "text",
222
+ WebkitBackgroundClip: "text",
223
223
  color: "transparent"
224
224
  };
225
225
  }
@@ -2412,6 +2412,30 @@ var float = definePattern({
2412
2412
  };
2413
2413
  }
2414
2414
  });
2415
+ var bleed = definePattern({
2416
+ properties: {
2417
+ inline: { type: "property", value: "marginInline" },
2418
+ block: { type: "property", value: "marginBlock" }
2419
+ },
2420
+ transform(props) {
2421
+ const { inline = "0", block = "0", ...rest } = props;
2422
+ return {
2423
+ "--bleed-x": `spacing.${inline}`,
2424
+ "--bleed-y": `spacing.${block}`,
2425
+ marginInline: "calc(var(--bleed-x, 0) * -1)",
2426
+ marginBlock: "calc(var(--bleed-y, 0) * -1)",
2427
+ ...rest
2428
+ };
2429
+ }
2430
+ });
2431
+ var visuallyHidden = definePattern({
2432
+ transform(props) {
2433
+ return {
2434
+ srOnly: true,
2435
+ ...props
2436
+ };
2437
+ }
2438
+ });
2415
2439
  var patterns = {
2416
2440
  box,
2417
2441
  flex,
@@ -2430,7 +2454,9 @@ var patterns = {
2430
2454
  wrap,
2431
2455
  container,
2432
2456
  divider,
2433
- float
2457
+ float,
2458
+ bleed,
2459
+ visuallyHidden
2434
2460
  };
2435
2461
 
2436
2462
  // src/index.ts
package/dist/index.mjs CHANGED
@@ -192,7 +192,7 @@ var background = {
192
192
  "--gradient-stops": "var(--gradient-from), var(--gradient-to)",
193
193
  "--gradient": "var(--gradient-via-stops, var(--gradient-stops))",
194
194
  backgroundImage: value,
195
- backgroundClip: "text",
195
+ WebkitBackgroundClip: "text",
196
196
  color: "transparent"
197
197
  };
198
198
  }
@@ -2385,6 +2385,30 @@ var float = definePattern({
2385
2385
  };
2386
2386
  }
2387
2387
  });
2388
+ var bleed = definePattern({
2389
+ properties: {
2390
+ inline: { type: "property", value: "marginInline" },
2391
+ block: { type: "property", value: "marginBlock" }
2392
+ },
2393
+ transform(props) {
2394
+ const { inline = "0", block = "0", ...rest } = props;
2395
+ return {
2396
+ "--bleed-x": `spacing.${inline}`,
2397
+ "--bleed-y": `spacing.${block}`,
2398
+ marginInline: "calc(var(--bleed-x, 0) * -1)",
2399
+ marginBlock: "calc(var(--bleed-y, 0) * -1)",
2400
+ ...rest
2401
+ };
2402
+ }
2403
+ });
2404
+ var visuallyHidden = definePattern({
2405
+ transform(props) {
2406
+ return {
2407
+ srOnly: true,
2408
+ ...props
2409
+ };
2410
+ }
2411
+ });
2388
2412
  var patterns = {
2389
2413
  box,
2390
2414
  flex,
@@ -2403,7 +2427,9 @@ var patterns = {
2403
2427
  wrap,
2404
2428
  container,
2405
2429
  divider,
2406
- float
2430
+ float,
2431
+ bleed,
2432
+ visuallyHidden
2407
2433
  };
2408
2434
 
2409
2435
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/preset-base",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "description": "The base preset for Panda CSS that contains the conditions and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "dependencies": {
17
- "@pandacss/types": "0.10.0"
17
+ "@pandacss/types": "0.11.1"
18
18
  },
19
19
  "scripts": {
20
20
  "build": "tsup src/index.ts --format=esm,cjs --dts",