@lostgradient/cinder 0.11.0 → 0.12.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.
- package/CHANGELOG.md +10 -0
- package/components.json +1 -1
- package/dist/components/code-block/code-block.css +15 -9
- package/dist/components/code-block/code-block.variables.js +8 -2
- package/dist/components/confirm-dialog/confirm-dialog.css +2 -0
- package/dist/components/confirm-dialog/confirm-dialog.schema.js +10 -1
- package/dist/components/confirm-dialog/confirm-dialog.types.d.ts +7 -0
- package/dist/components/confirm-dialog/index.js +478 -106
- package/dist/components/faceted-filter-bar/faceted-filter-bar.schema.js +5 -1
- package/dist/components/faceted-filter-bar/faceted-filter-bar.types.d.ts +2 -0
- package/dist/components/faceted-filter-bar/index.js +40 -31
- package/dist/components/navigation-bar/index.js +11 -17
- package/dist/components/run-step-timeline/index.js +65 -6
- package/dist/components/run-step-timeline/run-step-timeline.utilities.d.ts +9 -1
- package/dist/index.js +352 -246
- package/dist/server/components/color-field/index.js +2 -2
- package/dist/server/components/confirm-dialog/index.js +7 -2
- package/dist/server/components/faceted-filter-bar/index.js +1 -1
- package/dist/server/components/navigation-bar/index.js +1 -1
- package/dist/server/components/run-step-timeline/index.js +1 -1
- package/dist/server/index.js +7 -7
- package/dist/server/{index.server-5tf22d6e.js → index.server-4wx0qven.js} +3 -3
- package/dist/server/{index.server-894t97kv.js → index.server-7yvpb6z7.js} +4 -4
- package/dist/server/{index.server-btgb3d56.js → index.server-d5a5ccz7.js} +18 -12
- package/dist/server/{index.server-z38bxms8.js → index.server-g5jgq3jp.js} +65 -6
- package/dist/server/{index.server-39ne5cd1.js → index.server-pxq277t5.js} +32 -1
- package/package.json +22 -95
- package/src/components/code-block/code-block.css +15 -9
- package/src/components/code-block/code-block.variables.json +7 -1
- package/src/components/code-block/code-block.variables.ts +7 -1
- package/src/components/confirm-dialog/confirm-dialog.css +2 -0
- package/src/components/confirm-dialog/confirm-dialog.schema.json +8 -0
- package/src/components/confirm-dialog/confirm-dialog.schema.ts +10 -0
- package/src/components/confirm-dialog/confirm-dialog.svelte +31 -3
- package/src/components/confirm-dialog/confirm-dialog.types.ts +7 -0
- package/src/components/faceted-filter-bar/faceted-filter-bar.schema.json +4 -0
- package/src/components/faceted-filter-bar/faceted-filter-bar.schema.ts +4 -0
- package/src/components/faceted-filter-bar/faceted-filter-bar.svelte +13 -11
- package/src/components/faceted-filter-bar/faceted-filter-bar.types.ts +2 -0
- package/src/components/navigation-bar/navigation-bar.svelte +2 -2
- package/src/components/run-step-timeline/run-step-timeline.svelte +4 -4
- package/src/components/run-step-timeline/run-step-timeline.utilities.ts +68 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @lostgradient/cinder
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#721](https://github.com/stevekinney/cinder/pull/721) [`a6ee978`](https://github.com/stevekinney/cinder/commit/a6ee9784198ff450c1a9493e3c52a2f2c0965b62) Thanks [@stevekinney](https://github.com/stevekinney)! - Add public source-excerpt styling variables to CodeBlock, typed confirmation to ConfirmDialog, and a facet-only mode to FacetedFilterBar.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#725](https://github.com/stevekinney/cinder/pull/725) [`a2a3254`](https://github.com/stevekinney/cinder/commit/a2a3254df455b37f74abf4f73e8e8030017af309) Thanks [@stevekinney](https://github.com/stevekinney)! - Render compensation steps directly beneath the forward-step subtree they reverse.
|
|
12
|
+
|
|
3
13
|
## 0.11.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/components.json
CHANGED
|
@@ -9,12 +9,17 @@
|
|
|
9
9
|
* ======================================== */
|
|
10
10
|
|
|
11
11
|
.cinder-code-block {
|
|
12
|
+
--cinder-code-block-background: var(--_cinder-code-block-code-surface);
|
|
13
|
+
--cinder-code-block-font-size: var(--cinder-text-sm);
|
|
14
|
+
--cinder-code-block-height: auto;
|
|
15
|
+
--cinder-code-block-line-height: var(--cinder-leading-relaxed);
|
|
16
|
+
--cinder-code-block-padding: var(--cinder-space-4);
|
|
12
17
|
--_cinder-code-block-code-surface: light-dark(
|
|
13
18
|
var(--cinder-surface-raised),
|
|
14
19
|
var(--cinder-surface-inset)
|
|
15
20
|
);
|
|
16
21
|
|
|
17
|
-
background: var(--cinder-
|
|
22
|
+
background: var(--cinder-code-block-background);
|
|
18
23
|
border: 1px solid var(--cinder-border);
|
|
19
24
|
border-radius: var(--cinder-radius-md);
|
|
20
25
|
overflow: hidden;
|
|
@@ -44,33 +49,34 @@
|
|
|
44
49
|
* inner pre elements can stay metrically identical. */
|
|
45
50
|
.cinder-code-block__viewport {
|
|
46
51
|
display: block;
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
block-size: var(--cinder-code-block-height);
|
|
53
|
+
overflow: auto;
|
|
54
|
+
background: var(--cinder-code-block-background);
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
.cinder-code-block__pre,
|
|
52
58
|
.cinder-code-block :where(pre.shiki) {
|
|
53
59
|
margin: 0;
|
|
54
|
-
padding: var(--cinder-
|
|
60
|
+
padding: var(--cinder-code-block-padding);
|
|
55
61
|
width: max-content;
|
|
56
62
|
min-width: 100%;
|
|
57
63
|
overflow-x: clip;
|
|
58
64
|
font-family: var(--cinder-font-mono);
|
|
59
|
-
font-size: var(--cinder-
|
|
60
|
-
line-height: var(--cinder-
|
|
65
|
+
font-size: var(--cinder-code-block-font-size);
|
|
66
|
+
line-height: var(--cinder-code-block-line-height);
|
|
61
67
|
color: var(--cinder-text);
|
|
62
68
|
/* Use near-white in light mode so github-light token colors (e.g. #d73a49
|
|
63
69
|
* keyword red) clear 4.5:1 WCAG AA. In dark mode keep the deep inset so
|
|
64
70
|
* github-dark tokens maintain contrast on a very dark surface. */
|
|
65
|
-
background: var(--
|
|
71
|
+
background: var(--cinder-code-block-background);
|
|
66
72
|
}
|
|
67
73
|
|
|
68
74
|
/* Shiki writes inline background styles on its generated <pre>; keep the
|
|
69
75
|
* highlighted state visually and metrically identical to the plain fallback. */
|
|
70
76
|
.cinder-code-block :where(pre.shiki) {
|
|
71
77
|
margin: 0 !important;
|
|
72
|
-
padding: var(--cinder-
|
|
73
|
-
background: var(--
|
|
78
|
+
padding: var(--cinder-code-block-padding) !important;
|
|
79
|
+
background: var(--cinder-code-block-background) !important;
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
.cinder-code-block__code,
|
|
@@ -52,10 +52,16 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
// src/components/code-block/code-block.variables.ts
|
|
55
|
-
var variables = [
|
|
55
|
+
var variables = [
|
|
56
|
+
"--cinder-code-block-background",
|
|
57
|
+
"--cinder-code-block-font-size",
|
|
58
|
+
"--cinder-code-block-height",
|
|
59
|
+
"--cinder-code-block-line-height",
|
|
60
|
+
"--cinder-code-block-padding"
|
|
61
|
+
];
|
|
56
62
|
var code_block_variables_default = variables;
|
|
57
63
|
export {
|
|
58
64
|
code_block_variables_default as default
|
|
59
65
|
};
|
|
60
66
|
|
|
61
|
-
//# debugId=
|
|
67
|
+
//# debugId=78150DCF4A1748A164756E2164756E21
|
|
@@ -87,6 +87,15 @@ Never use "OK" or "Confirm" in production — they don't describe the action.`
|
|
|
87
87
|
description: `When true, the confirm button uses variant="danger". The cancel button still
|
|
88
88
|
receives default focus regardless — color is never the sole destructive signal.`
|
|
89
89
|
},
|
|
90
|
+
typeToConfirm: {
|
|
91
|
+
type: "string",
|
|
92
|
+
description: `When set, renders a labelled text input and disables the confirm button until the
|
|
93
|
+
trimmed input matches this value case-insensitively.`
|
|
94
|
+
},
|
|
95
|
+
typeToConfirmLabel: {
|
|
96
|
+
type: "string",
|
|
97
|
+
description: 'Visible label for the typed-confirmation input. Defaults to `Type "<value>" to confirm`.'
|
|
98
|
+
},
|
|
90
99
|
class: {
|
|
91
100
|
type: "string",
|
|
92
101
|
description: "Optional extra class on the underlying <Modal>. Destructured as `class: className` per repo convention."
|
|
@@ -123,4 +132,4 @@ export {
|
|
|
123
132
|
confirm_dialog_schema_default as default
|
|
124
133
|
};
|
|
125
134
|
|
|
126
|
-
//# debugId=
|
|
135
|
+
//# debugId=9E452C902BC5550F64756E2164756E21
|
|
@@ -36,6 +36,13 @@ export type ConfirmDialogProps = {
|
|
|
36
36
|
* receives default focus regardless — color is never the sole destructive signal.
|
|
37
37
|
*/
|
|
38
38
|
destructive?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* When set, renders a labelled text input and disables the confirm button until the
|
|
41
|
+
* trimmed input matches this value case-insensitively.
|
|
42
|
+
*/
|
|
43
|
+
typeToConfirm?: string;
|
|
44
|
+
/** Visible label for the typed-confirmation input. Defaults to `Type "<value>" to confirm`. */
|
|
45
|
+
typeToConfirmLabel?: string;
|
|
39
46
|
/** Fired when the user activates the confirm button. Required. Component closes itself after. */
|
|
40
47
|
onconfirm: () => void;
|
|
41
48
|
/**
|