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