@taprootio/espalier 6.13.1 → 6.14.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.
@@ -0,0 +1,88 @@
1
+ import{css as i,unsafeCSS as o}from"lit";function h(a="blockquote",s){const n=a.trim();if(!n)throw new RangeError("A blockquote selector must not be empty.");const t=s?.figureSelector?.trim();if(t==="")throw new RangeError("A figure selector must not be empty.");const e=o(n),l=o('url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M3%2025V15C3%208%207%204%2014%203v5c-4%201-6%203-6%206h6v11H3zm15%200V15c0-7%204-11%2011-12v5c-4%201-6%203-6%206h6v11H18z%27%2F%3E%3C%2Fsvg%3E")'),r=o(t??""),p=t===void 0?i``:i`
2
+ :where(${r}) {
3
+ margin-inline: 0;
4
+ min-inline-size: 0;
5
+ max-inline-size: 100%;
6
+ }
7
+
8
+ :where(${r}) > :where(blockquote):where(${e}) {
9
+ margin-block: 0;
10
+ }
11
+
12
+ :where(${r}) > :where(figcaption) {
13
+ margin-inline-start: var(--esp-size-small);
14
+ overflow-wrap: anywhere;
15
+ font-size: var(--esp-type-caption-font-size, var(--esp-type-small, 0.875rem));
16
+ font-weight: var(--esp-type-caption-font-weight, var(--esp-font-weight-body, 400));
17
+ letter-spacing: var(--esp-type-caption-letter-spacing, normal);
18
+ color: var(--esp-type-caption-color, var(--esp-color-type-caption, var(--esp-color-text)));
19
+ }
20
+
21
+ :where(${r}) > :where(figcaption) :where(cite) {
22
+ font: inherit;
23
+ letter-spacing: inherit;
24
+ color: inherit;
25
+ }
26
+ `;return i`
27
+ :where(${e}) {
28
+ position: relative;
29
+ background: var(--esp-color-layer-1, var(--esp-color-background));
30
+ border-inline-start: 0.3em solid var(--esp-color-border);
31
+ padding-block: var(--esp-size-small);
32
+ padding-inline-end: var(--esp-size-small);
33
+ padding-inline-start: calc(var(--esp-size-small) + 1.6em + var(--esp-size-tiny));
34
+ margin-inline: 0;
35
+ box-sizing: border-box;
36
+ min-inline-size: 0;
37
+ max-inline-size: 100%;
38
+ overflow-wrap: anywhere;
39
+ font-size: var(--esp-type-lead-font-size, var(--esp-type-medium, 1.25rem));
40
+ font-weight: var(--esp-type-lead-font-weight, var(--esp-font-weight-body, 400));
41
+ letter-spacing: var(--esp-type-lead-letter-spacing, normal);
42
+ color: var(--esp-type-lead-color, var(--esp-color-type-lead, var(--esp-color-text)));
43
+ }
44
+
45
+ :where(${e})::before {
46
+ content: "";
47
+ position: absolute;
48
+ inset-block-start: var(--esp-size-small);
49
+ inset-inline-start: var(--esp-size-small);
50
+ width: 1.6em;
51
+ height: 1.6em;
52
+ background: var(--esp-color-border);
53
+ mask-image: ${l};
54
+ mask-size: contain;
55
+ mask-position: center;
56
+ mask-repeat: no-repeat;
57
+ }
58
+
59
+ :where(${e}):where(:dir(rtl))::before {
60
+ transform: scaleX(-1);
61
+ }
62
+
63
+ @media (forced-colors: active) {
64
+ :where(${e})::before { display: none; }
65
+ }
66
+
67
+ :where(${e}) :where(p) {
68
+ font-size: inherit;
69
+ font-weight: inherit;
70
+ letter-spacing: inherit;
71
+ color: inherit;
72
+ }
73
+
74
+
75
+ esp-root blockquote:where(${e}) p {
76
+ color: inherit;
77
+ }
78
+
79
+ :where(${e}) > :where(:first-child) {
80
+ margin-block-start: 0;
81
+ }
82
+
83
+ :where(${e}) > :where(:last-child) {
84
+ margin-block-end: 0;
85
+ }
86
+
87
+ ${p}
88
+ `}export{h as blockquoteStyles};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taprootio/espalier",
3
- "version": "6.13.1",
3
+ "version": "6.14.0",
4
4
  "packageManager": "bun@1.3.12",
5
5
  "description": "Espalier — a themeable, accessible, framework-agnostic, enterprise-grade design system built on web standards and love.",
6
6
  "customElements": "custom-elements.json",
@@ -377,6 +377,10 @@
377
377
  "./textures/espalier-paper.png": "./css/textures/espalier-paper.png",
378
378
  "./textures/espalier-grain.png": "./css/textures/espalier-grain.png",
379
379
  "./textures/espalier-grunge.png": "./css/textures/espalier-grunge.png",
380
+ "./shared/blockquote-styles": {
381
+ "types": "./dist/shared/blockquote-styles.d.ts",
382
+ "import": "./dist/shared/blockquote-styles.js"
383
+ },
380
384
  "./shared/surface-layer": {
381
385
  "types": "./dist/shared/surface-layer.d.ts",
382
386
  "import": "./dist/shared/surface-layer.js"