@psnext/design-system 1.5.0 → 1.5.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.
Files changed (224) hide show
  1. package/dist/index.d.cts +5 -5
  2. package/dist/index.d.cts.map +1 -1
  3. package/dist/index.d.ts +5 -5
  4. package/dist/index10.d.cts +7 -7
  5. package/dist/index10.d.cts.map +1 -1
  6. package/dist/index10.d.ts +7 -7
  7. package/dist/index10.d.ts.map +1 -1
  8. package/dist/index11.d.cts +3 -3
  9. package/dist/index11.d.cts.map +1 -1
  10. package/dist/index11.d.ts +3 -3
  11. package/dist/index12.d.cts +12 -12
  12. package/dist/index12.d.cts.map +1 -1
  13. package/dist/index12.d.ts +12 -12
  14. package/dist/index12.d.ts.map +1 -1
  15. package/dist/index13.d.cts +6 -6
  16. package/dist/index13.d.cts.map +1 -1
  17. package/dist/index13.d.ts +6 -6
  18. package/dist/index14.d.cts +5 -5
  19. package/dist/index14.d.cts.map +1 -1
  20. package/dist/index14.d.ts +5 -5
  21. package/dist/index14.d.ts.map +1 -1
  22. package/dist/index15.d.cts +3 -3
  23. package/dist/index15.d.cts.map +1 -1
  24. package/dist/index15.d.ts +3 -3
  25. package/dist/index16.d.cts +2 -2
  26. package/dist/index16.d.cts.map +1 -1
  27. package/dist/index16.d.ts +2 -2
  28. package/dist/index17.d.cts +4 -4
  29. package/dist/index17.d.cts.map +1 -1
  30. package/dist/index17.d.ts +4 -4
  31. package/dist/index18.d.cts +11 -11
  32. package/dist/index18.d.cts.map +1 -1
  33. package/dist/index18.d.ts +11 -11
  34. package/dist/index19.d.cts +10 -10
  35. package/dist/index19.d.cts.map +1 -1
  36. package/dist/index19.d.ts +10 -10
  37. package/dist/index2.d.cts +8 -8
  38. package/dist/index2.d.ts +8 -8
  39. package/dist/index20.d.cts +16 -16
  40. package/dist/index20.d.cts.map +1 -1
  41. package/dist/index20.d.ts +16 -16
  42. package/dist/index21.d.cts +4 -4
  43. package/dist/index21.d.cts.map +1 -1
  44. package/dist/index21.d.ts +4 -4
  45. package/dist/index22.d.cts +11 -11
  46. package/dist/index22.d.cts.map +1 -1
  47. package/dist/index22.d.ts +11 -11
  48. package/dist/index22.d.ts.map +1 -1
  49. package/dist/index23.d.cts +16 -16
  50. package/dist/index23.d.cts.map +1 -1
  51. package/dist/index23.d.ts +16 -16
  52. package/dist/index24.d.cts +10 -10
  53. package/dist/index24.d.cts.map +1 -1
  54. package/dist/index24.d.ts +10 -10
  55. package/dist/index25.d.cts +2 -2
  56. package/dist/index25.d.cts.map +1 -1
  57. package/dist/index25.d.ts +2 -2
  58. package/dist/index26.d.cts +14 -14
  59. package/dist/index26.d.cts.map +1 -1
  60. package/dist/index26.d.ts +14 -14
  61. package/dist/index26.d.ts.map +1 -1
  62. package/dist/index27.d.cts +7 -7
  63. package/dist/index27.d.cts.map +1 -1
  64. package/dist/index27.d.ts +7 -7
  65. package/dist/index27.d.ts.map +1 -1
  66. package/dist/index28.d.cts +5 -5
  67. package/dist/index28.d.ts +3 -3
  68. package/dist/index29.d.cts +4 -4
  69. package/dist/index29.d.ts +4 -4
  70. package/dist/index3.d.cts +13 -13
  71. package/dist/index3.d.ts +13 -13
  72. package/dist/index30.d.cts +6 -6
  73. package/dist/index30.d.ts +4 -4
  74. package/dist/index31.d.cts +5 -5
  75. package/dist/index31.d.cts.map +1 -1
  76. package/dist/index31.d.ts +5 -5
  77. package/dist/index31.d.ts.map +1 -1
  78. package/dist/index32.d.cts +5 -5
  79. package/dist/index32.d.cts.map +1 -1
  80. package/dist/index32.d.ts +5 -5
  81. package/dist/index32.d.ts.map +1 -1
  82. package/dist/index33.d.cts +10 -10
  83. package/dist/index33.d.cts.map +1 -1
  84. package/dist/index33.d.ts +11 -11
  85. package/dist/index34.d.cts +5 -5
  86. package/dist/index34.d.cts.map +1 -1
  87. package/dist/index34.d.ts +5 -5
  88. package/dist/index35.d.cts +16 -16
  89. package/dist/index35.d.cts.map +1 -1
  90. package/dist/index35.d.ts +15 -15
  91. package/dist/index35.d.ts.map +1 -1
  92. package/dist/index36.d.cts +3 -3
  93. package/dist/index36.d.ts +3 -3
  94. package/dist/index36.d.ts.map +1 -1
  95. package/dist/index37.d.cts +5 -5
  96. package/dist/index37.d.cts.map +1 -1
  97. package/dist/index37.d.ts +2 -2
  98. package/dist/index38.d.cts +2 -2
  99. package/dist/index38.d.cts.map +1 -1
  100. package/dist/index38.d.ts +2 -2
  101. package/dist/index39.d.cts +17 -17
  102. package/dist/index39.d.cts.map +1 -1
  103. package/dist/index39.d.ts +17 -17
  104. package/dist/index39.d.ts.map +1 -1
  105. package/dist/index4.d.cts +2 -2
  106. package/dist/index4.d.cts.map +1 -1
  107. package/dist/index4.d.ts +2 -2
  108. package/dist/index40.d.cts +5 -5
  109. package/dist/index40.d.cts.map +1 -1
  110. package/dist/index40.d.ts +5 -5
  111. package/dist/index40.d.ts.map +1 -1
  112. package/dist/index41.d.cts +11 -11
  113. package/dist/index41.d.cts.map +1 -1
  114. package/dist/index41.d.ts +11 -11
  115. package/dist/index42.d.cts +8 -8
  116. package/dist/index42.d.ts +8 -8
  117. package/dist/index42.d.ts.map +1 -1
  118. package/dist/index43.d.cts +9 -9
  119. package/dist/index43.d.cts.map +1 -1
  120. package/dist/index43.d.ts +9 -9
  121. package/dist/index43.d.ts.map +1 -1
  122. package/dist/index44.d.cts +8 -8
  123. package/dist/index44.d.ts +8 -8
  124. package/dist/index45.d.cts +2 -2
  125. package/dist/index45.d.ts +2 -2
  126. package/dist/index46.d.cts +4 -4
  127. package/dist/index46.d.ts +4 -4
  128. package/dist/index47.d.cts +4 -4
  129. package/dist/index47.d.ts +4 -4
  130. package/dist/index47.d.ts.map +1 -1
  131. package/dist/index48.d.cts +3 -3
  132. package/dist/index48.d.ts +3 -3
  133. package/dist/index49.d.cts +11 -11
  134. package/dist/index49.d.ts +11 -11
  135. package/dist/index5.d.cts +7 -7
  136. package/dist/index5.d.cts.map +1 -1
  137. package/dist/index5.d.ts +7 -7
  138. package/dist/index50.d.cts +9 -9
  139. package/dist/index50.d.ts +9 -9
  140. package/dist/index51.d.cts +5 -5
  141. package/dist/index51.d.ts +5 -5
  142. package/dist/index52.d.cts +27 -27
  143. package/dist/index52.d.cts.map +1 -1
  144. package/dist/index52.d.ts +27 -27
  145. package/dist/index52.d.ts.map +1 -1
  146. package/dist/index53.d.cts +5 -5
  147. package/dist/index53.d.ts +5 -5
  148. package/dist/index54.d.cts +2 -2
  149. package/dist/index54.d.ts +2 -2
  150. package/dist/index55.d.cts +2 -2
  151. package/dist/index55.d.ts +2 -2
  152. package/dist/index55.d.ts.map +1 -1
  153. package/dist/index56.d.cts +2 -2
  154. package/dist/index56.d.ts +2 -2
  155. package/dist/index56.d.ts.map +1 -1
  156. package/dist/index57.d.cts +4 -4
  157. package/dist/index57.d.ts +4 -4
  158. package/dist/index57.d.ts.map +1 -1
  159. package/dist/index58.d.cts +9 -9
  160. package/dist/index58.d.ts +9 -9
  161. package/dist/index58.d.ts.map +1 -1
  162. package/dist/index59.d.cts +11 -11
  163. package/dist/index59.d.cts.map +1 -1
  164. package/dist/index59.d.ts +13 -13
  165. package/dist/index59.d.ts.map +1 -1
  166. package/dist/index6.d.cts +5 -5
  167. package/dist/index6.d.cts.map +1 -1
  168. package/dist/index6.d.ts +5 -5
  169. package/dist/index6.d.ts.map +1 -1
  170. package/dist/index60.d.cts +4 -4
  171. package/dist/index60.d.ts +6 -6
  172. package/dist/index60.d.ts.map +1 -1
  173. package/dist/index61.d.cts +4 -4
  174. package/dist/index61.d.ts +4 -4
  175. package/dist/index61.d.ts.map +1 -1
  176. package/dist/index62.d.cts +2 -2
  177. package/dist/index62.d.ts +2 -2
  178. package/dist/index62.d.ts.map +1 -1
  179. package/dist/index63.d.cts +6 -6
  180. package/dist/index63.d.ts +6 -6
  181. package/dist/index64.d.cts +3 -3
  182. package/dist/index64.d.ts +3 -3
  183. package/dist/index65.d.cts +4 -4
  184. package/dist/index65.d.ts +4 -4
  185. package/dist/index65.d.ts.map +1 -1
  186. package/dist/index66.d.cts +2 -2
  187. package/dist/index66.d.cts.map +1 -1
  188. package/dist/index66.d.ts +2 -2
  189. package/dist/index67.d.cts +8 -8
  190. package/dist/index67.d.cts.map +1 -1
  191. package/dist/index67.d.ts +8 -8
  192. package/dist/index67.d.ts.map +1 -1
  193. package/dist/index68.d.cts +7 -7
  194. package/dist/index68.d.cts.map +1 -1
  195. package/dist/index68.d.ts +7 -7
  196. package/dist/index7.d.cts +8 -8
  197. package/dist/index7.d.cts.map +1 -1
  198. package/dist/index7.d.ts +8 -8
  199. package/dist/index7.d.ts.map +1 -1
  200. package/dist/index70.d.cts +8 -8
  201. package/dist/index70.d.ts +8 -8
  202. package/dist/index8.d.cts +4 -4
  203. package/dist/index8.d.cts.map +1 -1
  204. package/dist/index8.d.ts +4 -4
  205. package/dist/index9.d.cts +2 -2
  206. package/dist/index9.d.ts +2 -2
  207. package/dist/index9.d.ts.map +1 -1
  208. package/dist/patterns/DataTable/index.d.cts +3 -3
  209. package/dist/patterns/DataTable/index.d.ts +3 -3
  210. package/dist/patterns/Footer/index.d.cts +7 -7
  211. package/dist/patterns/Footer/index.d.ts +7 -7
  212. package/dist/patterns/Footer/index.d.ts.map +1 -1
  213. package/dist/patterns/MediaObject/index.d.cts +11 -11
  214. package/dist/patterns/MediaObject/index.d.ts +11 -11
  215. package/dist/patterns/MediaObject/index.d.ts.map +1 -1
  216. package/dist/patterns/SectionCard/index.d.cts +2 -2
  217. package/dist/patterns/SectionCard/index.d.ts +2 -2
  218. package/dist/patterns/SectionCard/index.d.ts.map +1 -1
  219. package/dist/patterns/SectionHeading/index.d.cts +2 -2
  220. package/dist/patterns/SectionHeading/index.d.ts +2 -2
  221. package/dist/patterns/SectionHeading/index.d.ts.map +1 -1
  222. package/dist/styles/base.css +21 -20
  223. package/dist/styles/typography.css +34 -35
  224. package/package.json +1 -1
@@ -9,88 +9,87 @@
9
9
  `class` is component-managed and left alone. Bare tags (what a
10
10
  markdown renderer emits) get a readable default here.
11
11
 
12
- Also gated by body:not(.ds-no-base) — apps incrementally migrating
13
- to the design system can add that class to opt out of all base defaults.
12
+ Gated by @scope (html) to (.ds-no-base) — add ds-no-base to any
13
+ element to punch a hole in these defaults for that subtree.
14
14
 
15
15
  `@layer base` so component/app utilities always win. All values
16
16
  come from the design-system tokens.
17
17
  ============================================================ */
18
18
 
19
- @layer base {
20
- body:not(.ds-no-base) {
19
+ @scope (html) to (.ds-no-base) {
20
+ @layer base {
21
21
  /* ── Vertical rhythm (block flow) ─────────────────────────── */
22
- & :where(p, ul, ol, blockquote, pre, table, hr, figure):not([class]):not([data-slot]) {
22
+ :where(p, ul, ol, blockquote, pre, table, hr, figure):not([class]):not([data-slot]) {
23
23
  margin-block: 0 1rem;
24
24
  }
25
- & :where(h1, h2, h3, h4, h5, h6):not([class]):not([data-slot]) {
25
+ :where(h1, h2, h3, h4, h5, h6):not([class]):not([data-slot]) {
26
26
  margin-block: 1.5rem 0.5rem;
27
27
  }
28
28
  /* No leading gap on the first block of a flow container. */
29
- &
30
- :where(p, ul, ol, blockquote, pre, table, hr, figure, h1, h2, h3, h4, h5, h6):not(
29
+ :where(p, ul, ol, blockquote, pre, table, hr, figure, h1, h2, h3, h4, h5, h6):not(
31
30
  [class]
32
31
  ):first-child {
33
32
  margin-block-start: 0;
34
33
  }
35
34
 
36
35
  /* ── Paragraph / inline text ──────────────────────────────── */
37
- & p:not([class]):not([data-slot]) {
36
+ p:not([class]):not([data-slot]) {
38
37
  font-size: var(--paragraph-regular-font-size);
39
38
  line-height: var(--paragraph-regular-line-height);
40
39
  }
41
- & a:not([class]):not([data-slot]) {
40
+ a:not([class]):not([data-slot]) {
42
41
  color: inherit;
43
42
  text-decoration: underline;
44
43
  text-underline-offset: 2px;
45
44
  }
46
- & a:not([class]):not([data-slot]):hover {
45
+ a:not([class]):not([data-slot]):hover {
47
46
  text-decoration-thickness: 2px;
48
47
  }
49
- & strong:not([class]):not([data-slot]),
50
- & b:not([class]):not([data-slot]) {
48
+ strong:not([class]):not([data-slot]),
49
+ b:not([class]):not([data-slot]) {
51
50
  font-weight: 600;
52
51
  }
53
- & em:not([class]):not([data-slot]),
54
- & i:not([class]):not([data-slot]) {
52
+ em:not([class]):not([data-slot]),
53
+ i:not([class]):not([data-slot]) {
55
54
  font-style: italic;
56
55
  }
57
- & small:not([class]):not([data-slot]) {
56
+ small:not([class]):not([data-slot]) {
58
57
  font-size: var(--paragraph-small-font-size);
59
58
  }
60
59
 
61
60
  /* ── Lists ────────────────────────────────────────────────── */
62
- & ul:not([class]):not([data-slot]),
63
- & ol:not([class]):not([data-slot]) {
61
+ ul:not([class]):not([data-slot]),
62
+ ol:not([class]):not([data-slot]) {
64
63
  padding-inline-start: 1.5rem;
65
64
  }
66
- & ul:not([class]):not([data-slot]) {
65
+ ul:not([class]):not([data-slot]) {
67
66
  list-style: disc;
68
67
  }
69
- & ol:not([class]):not([data-slot]) {
68
+ ol:not([class]):not([data-slot]) {
70
69
  list-style: decimal;
71
70
  }
72
- & li:not([class]):not([data-slot]) {
71
+ li:not([class]):not([data-slot]) {
73
72
  margin-block: 0.25rem;
74
73
  }
75
74
  /* Nested lists tighten up and lose the extra block margin. */
76
- & :where(ul, ol):not([class]):not([data-slot]) :where(ul, ol):not([class]):not([data-slot]) {
75
+ :where(ul, ol):not([class]):not([data-slot]) :where(ul, ol):not([class]):not([data-slot]) {
77
76
  margin-block: 0.25rem 0;
78
77
  }
79
78
 
80
79
  /* ── Code ─────────────────────────────────────────────────── */
81
- & code:not([class]):not([data-slot]),
82
- & kbd:not([class]):not([data-slot]),
83
- & samp:not([class]):not([data-slot]) {
80
+ code:not([class]):not([data-slot]),
81
+ kbd:not([class]):not([data-slot]),
82
+ samp:not([class]):not([data-slot]) {
84
83
  font-family: var(--font-definitions-font-family-monospace);
85
84
  font-size: 0.875em;
86
85
  }
87
86
  /* Inline code chip (a bare <code> not inside a <pre>). */
88
- & :not(pre) > code:not([class]):not([data-slot]) {
87
+ :not(pre) > code:not([class]):not([data-slot]) {
89
88
  border-radius: var(--rounded-sm);
90
89
  background-color: var(--muted);
91
90
  padding: 0.125rem 0.375rem;
92
91
  }
93
- & pre:not([class]):not([data-slot]) {
92
+ pre:not([class]):not([data-slot]) {
94
93
  overflow-x: auto;
95
94
  border-radius: var(--rounded-lg);
96
95
  background-color: var(--muted);
@@ -98,14 +97,14 @@
98
97
  font-size: var(--paragraph-small-font-size);
99
98
  line-height: var(--paragraph-small-line-height);
100
99
  }
101
- & pre:not([class]):not([data-slot]) code {
100
+ pre:not([class]):not([data-slot]) code {
102
101
  font-family: var(--font-definitions-font-family-monospace);
103
102
  background-color: transparent;
104
103
  padding: 0;
105
104
  }
106
105
 
107
106
  /* ── Blockquote ───────────────────────────────────────────── */
108
- & blockquote:not([class]):not([data-slot]) {
107
+ blockquote:not([class]):not([data-slot]) {
109
108
  border-inline-start: 3px solid var(--border);
110
109
  padding-inline-start: 1rem;
111
110
  color: var(--muted-foreground);
@@ -113,29 +112,29 @@
113
112
  }
114
113
 
115
114
  /* ── Rule / media ─────────────────────────────────────────── */
116
- & hr:not([class]):not([data-slot]) {
115
+ hr:not([class]):not([data-slot]) {
117
116
  border: 0;
118
117
  border-top: 1px solid var(--border);
119
118
  }
120
- & img:not([class]):not([data-slot]),
121
- & video:not([class]):not([data-slot]) {
119
+ img:not([class]):not([data-slot]),
120
+ video:not([class]):not([data-slot]) {
122
121
  max-width: 100%;
123
122
  height: auto;
124
123
  border-radius: var(--rounded-lg);
125
124
  }
126
125
 
127
126
  /* ── Tables ───────────────────────────────────────────────── */
128
- & table:not([class]):not([data-slot]) {
127
+ table:not([class]):not([data-slot]) {
129
128
  width: 100%;
130
129
  border-collapse: collapse;
131
130
  font-size: var(--paragraph-small-font-size);
132
131
  }
133
- & :where(th, td):not([class]):not([data-slot]) {
132
+ :where(th, td):not([class]):not([data-slot]) {
134
133
  border-bottom: 1px solid var(--border);
135
134
  padding: 0.5rem 0.75rem;
136
135
  text-align: start;
137
136
  }
138
- & th:not([class]):not([data-slot]) {
137
+ th:not([class]):not([data-slot]) {
139
138
  font-weight: 600;
140
139
  }
141
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psnext/design-system",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Sapient AI Products design system — primitives, patterns, and layouts.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,