kaze-design-system 0.2.3 → 0.2.6

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/components.css CHANGED
@@ -1446,6 +1446,11 @@
1446
1446
  color: var(--color-fg-secondary);
1447
1447
  }
1448
1448
 
1449
+ .stat__description {
1450
+ font-size: var(--font-size-xs);
1451
+ color: var(--color-fg-muted);
1452
+ }
1453
+
1449
1454
  /* ── Pricing ─────────────────────────────────────────────── */
1450
1455
  .pricing-grid {
1451
1456
  display: grid;
@@ -2128,6 +2133,164 @@
2128
2133
  margin: var(--space-10) 0;
2129
2134
  }
2130
2135
 
2136
+ /* ── Prose: table ──────────────────────────────────────────── */
2137
+ .prose table {
2138
+ width: 100%;
2139
+ border-collapse: collapse;
2140
+ font-size: var(--font-size-sm);
2141
+ margin-top: var(--space-5);
2142
+ margin-bottom: var(--space-5);
2143
+ }
2144
+
2145
+ .prose th,
2146
+ .prose td {
2147
+ padding: var(--space-3) var(--space-4);
2148
+ border-bottom: 1px solid var(--color-border);
2149
+ text-align: left;
2150
+ }
2151
+
2152
+ .prose th {
2153
+ font-weight: var(--font-weight-semibold);
2154
+ color: var(--color-fg);
2155
+ border-bottom: 2px solid var(--color-border-strong);
2156
+ }
2157
+
2158
+ .prose td {
2159
+ color: var(--color-fg-secondary);
2160
+ }
2161
+
2162
+ /* ── Prose: h4 ─────────────────────────────────────────────── */
2163
+ .prose h4 {
2164
+ font-size: var(--font-size-base);
2165
+ font-weight: var(--font-weight-semibold);
2166
+ line-height: var(--line-height-snug);
2167
+ margin-top: var(--space-6);
2168
+ margin-bottom: var(--space-2);
2169
+ }
2170
+
2171
+ /* ── Prose: dl / dt / dd ───────────────────────────────────── */
2172
+ .prose dl {
2173
+ margin-top: var(--space-5);
2174
+ margin-bottom: var(--space-5);
2175
+ }
2176
+
2177
+ .prose dt {
2178
+ font-weight: var(--font-weight-semibold);
2179
+ color: var(--color-fg);
2180
+ margin-top: var(--space-4);
2181
+ }
2182
+
2183
+ .prose dt:first-child {
2184
+ margin-top: 0;
2185
+ }
2186
+
2187
+ .prose dd {
2188
+ margin-left: var(--space-5);
2189
+ margin-top: var(--space-1);
2190
+ color: var(--color-fg-secondary);
2191
+ }
2192
+
2193
+ /* ── Prose: details / summary ──────────────────────────────── */
2194
+ .prose details {
2195
+ border: 1px solid var(--color-border);
2196
+ border-radius: var(--radius-lg);
2197
+ padding: 0;
2198
+ margin-top: var(--space-3);
2199
+ margin-bottom: var(--space-3);
2200
+ }
2201
+
2202
+ .prose details + details {
2203
+ margin-top: calc(-1 * var(--space-1));
2204
+ border-top-left-radius: 0;
2205
+ border-top-right-radius: 0;
2206
+ }
2207
+
2208
+ .prose details + details:not([open]) {
2209
+ border-top: none;
2210
+ }
2211
+
2212
+ .prose summary {
2213
+ padding: var(--space-3) var(--space-4);
2214
+ font-weight: var(--font-weight-medium);
2215
+ cursor: pointer;
2216
+ list-style: none;
2217
+ display: flex;
2218
+ align-items: center;
2219
+ justify-content: space-between;
2220
+ gap: var(--space-3);
2221
+ -webkit-user-select: none;
2222
+ user-select: none;
2223
+ border-radius: var(--radius-lg);
2224
+ transition: background var(--duration-fast) var(--ease-default);
2225
+ }
2226
+
2227
+ .prose summary:hover {
2228
+ background: var(--color-bg-tertiary);
2229
+ }
2230
+
2231
+ .prose summary::-webkit-details-marker {
2232
+ display: none;
2233
+ }
2234
+
2235
+ .prose summary::after {
2236
+ content: "";
2237
+ width: 6px;
2238
+ height: 6px;
2239
+ border-right: 2px solid var(--color-fg-tertiary);
2240
+ border-bottom: 2px solid var(--color-fg-tertiary);
2241
+ transform: rotate(-45deg);
2242
+ transition: transform var(--duration-fast) var(--ease-default);
2243
+ flex-shrink: 0;
2244
+ }
2245
+
2246
+ .prose details[open] > summary::after {
2247
+ transform: rotate(45deg);
2248
+ }
2249
+
2250
+ .prose details[open] > summary {
2251
+ border-bottom: 1px solid var(--color-border);
2252
+ border-radius: var(--radius-lg) var(--radius-lg) 0 0;
2253
+ }
2254
+
2255
+ .prose details > :not(summary) {
2256
+ padding: 0 var(--space-4);
2257
+ }
2258
+
2259
+ .prose details > :nth-child(2) {
2260
+ padding-top: var(--space-4);
2261
+ }
2262
+
2263
+ .prose details > :last-child {
2264
+ padding-bottom: var(--space-4);
2265
+ }
2266
+
2267
+ /* ── Prose: mark ───────────────────────────────────────────── */
2268
+ .prose mark {
2269
+ background: var(--color-amber-100);
2270
+ color: inherit;
2271
+ padding: var(--space-0-5) var(--space-1);
2272
+ border-radius: var(--radius-sm);
2273
+ }
2274
+
2275
+ [data-theme="dark"] .prose mark {
2276
+ background: var(--color-amber-900);
2277
+ }
2278
+
2279
+ /* ── Prose: kbd ────────────────────────────────────────────── */
2280
+ .prose kbd {
2281
+ display: inline-block;
2282
+ padding: var(--space-0-5) var(--space-1-5);
2283
+ font-family: var(--font-mono);
2284
+ font-size: 0.85em;
2285
+ line-height: 1;
2286
+ color: var(--color-fg);
2287
+ background: var(--color-bg-secondary);
2288
+ border: 1px solid var(--color-border);
2289
+ border-bottom-width: 2px;
2290
+ border-radius: var(--radius-sm);
2291
+ white-space: nowrap;
2292
+ }
2293
+
2131
2294
  /* ── Article Actions ─────────────────────────────────────── */
2132
2295
  .article__actions {
2133
2296
  display: flex;
@@ -8,10 +8,11 @@ const Stats = forwardRef(
8
8
  );
9
9
  Stats.displayName = "Stats";
10
10
  const StatItem = forwardRef(
11
- ({ value, label, className, ...rest }, ref) => {
11
+ ({ value, label, description, className, ...rest }, ref) => {
12
12
  return /* @__PURE__ */ jsxs("div", { ref, className: cn("stat", className), ...rest, children: [
13
13
  /* @__PURE__ */ jsx("span", { className: "stat__value", children: value }),
14
- /* @__PURE__ */ jsx("span", { className: "stat__label", children: label })
14
+ /* @__PURE__ */ jsx("span", { className: "stat__label", children: label }),
15
+ description && /* @__PURE__ */ jsx("span", { className: "stat__description", children: description })
15
16
  ] });
16
17
  }
17
18
  );
@@ -5,5 +5,7 @@ export declare const Stats: import("react").ForwardRefExoticComponent<StatsProps
5
5
  export interface StatItemProps extends HTMLAttributes<HTMLDivElement> {
6
6
  value: string;
7
7
  label: string;
8
+ /** Optional description / sub-text below the label */
9
+ description?: string;
8
10
  }
9
11
  export declare const StatItem: import("react").ForwardRefExoticComponent<StatItemProps & import("react").RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaze-design-system",
3
- "version": "0.2.3",
3
+ "version": "0.2.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",