@bitrise/bitkit-v2 0.3.372 → 0.3.374
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/dist/components/BitkitPagination/BitkitPagination.js +1 -1
- package/dist/components/BitkitPagination/BitkitPagination.js.map +1 -1
- package/dist/components/BitkitTable/BitkitBulkActionsRow.d.ts +80 -0
- package/dist/components/BitkitTable/BitkitBulkActionsRow.js +124 -0
- package/dist/components/BitkitTable/BitkitBulkActionsRow.js.map +1 -0
- package/dist/components/BitkitTable/BitkitExpandableRow.js +30 -54
- package/dist/components/BitkitTable/BitkitExpandableRow.js.map +1 -1
- package/dist/components/BitkitTable/BitkitFilterRow.d.ts +25 -0
- package/dist/components/BitkitTable/BitkitFilterRow.js +41 -0
- package/dist/components/BitkitTable/BitkitFilterRow.js.map +1 -0
- package/dist/components/BitkitTable/BitkitLinkedRow.d.ts +12 -0
- package/dist/components/BitkitTable/BitkitLinkedRow.js +72 -0
- package/dist/components/BitkitTable/BitkitLinkedRow.js.map +1 -0
- package/dist/components/BitkitTable/BitkitRowActionsCell.d.ts +43 -0
- package/dist/components/BitkitTable/BitkitRowActionsCell.js +90 -0
- package/dist/components/BitkitTable/BitkitRowActionsCell.js.map +1 -0
- package/dist/components/BitkitTable/BitkitSortableColumnHeader.js +28 -41
- package/dist/components/BitkitTable/BitkitSortableColumnHeader.js.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/main.js +5 -1
- package/dist/theme/slot-recipes/Table.recipe.d.ts +20 -7
- package/dist/theme/slot-recipes/Table.recipe.js +163 -14
- package/dist/theme/slot-recipes/Table.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/index.d.ts +20 -7
- package/dist/utilities/formatLabel.d.ts +7 -0
- package/dist/utilities/formatLabel.js +11 -0
- package/dist/utilities/formatLabel.js.map +1 -0
- package/package.json +1 -1
|
@@ -2112,11 +2112,11 @@ declare const slotRecipes: {
|
|
|
2112
2112
|
};
|
|
2113
2113
|
};
|
|
2114
2114
|
}>;
|
|
2115
|
-
table: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "caption" | "footer" | "header" | "cell" | "row" | "root" | "columnHeader", {
|
|
2115
|
+
table: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "caption" | "footer" | "header" | "cell" | "row" | "root" | "utilityCell" | "bulkActionsGroup" | "bulkActionsButtons" | "expandedContent" | "expandableRow" | "expandedRow" | "expandCell" | "expandedCell" | "expandTrigger" | "filterControls" | "linkedRow" | "rowLink" | "actionsCell" | "actionsGroup" | "sortColumnHeader" | "sortTrigger" | "columnHeader", {
|
|
2116
2116
|
variant: {
|
|
2117
2117
|
default: {
|
|
2118
2118
|
root: {
|
|
2119
|
-
borderColor: "border/
|
|
2119
|
+
borderColor: "border/regular";
|
|
2120
2120
|
borderRadius: "4";
|
|
2121
2121
|
borderStyle: "solid";
|
|
2122
2122
|
borderWidth: "1";
|
|
@@ -2187,6 +2187,9 @@ declare const slotRecipes: {
|
|
|
2187
2187
|
marginBlockEnd: "24";
|
|
2188
2188
|
};
|
|
2189
2189
|
columnHeader: {
|
|
2190
|
+
'& > :where(label):only-child': {
|
|
2191
|
+
display: string;
|
|
2192
|
+
};
|
|
2190
2193
|
borderBottomStyle: "solid";
|
|
2191
2194
|
borderBottomWidth: "1";
|
|
2192
2195
|
color: "text/primary";
|
|
@@ -2196,14 +2199,17 @@ declare const slotRecipes: {
|
|
|
2196
2199
|
verticalAlign: "middle";
|
|
2197
2200
|
};
|
|
2198
2201
|
cell: {
|
|
2199
|
-
borderBottomStyle: "solid";
|
|
2200
|
-
borderBottomWidth: "1";
|
|
2201
|
-
verticalAlign: "middle";
|
|
2202
2202
|
'tfoot &': {
|
|
2203
2203
|
borderBottomWidth: number;
|
|
2204
2204
|
borderTopStyle: "solid";
|
|
2205
2205
|
borderTopWidth: "1";
|
|
2206
2206
|
};
|
|
2207
|
+
'& > :where(label):only-child': {
|
|
2208
|
+
display: string;
|
|
2209
|
+
};
|
|
2210
|
+
borderBottomStyle: "solid";
|
|
2211
|
+
borderBottomWidth: "1";
|
|
2212
|
+
verticalAlign: "middle";
|
|
2207
2213
|
};
|
|
2208
2214
|
body: {
|
|
2209
2215
|
'& :where(tr)': {
|
|
@@ -2226,7 +2232,7 @@ declare const slotRecipes: {
|
|
|
2226
2232
|
caption: {
|
|
2227
2233
|
display: "block";
|
|
2228
2234
|
padding: "16";
|
|
2229
|
-
backgroundColor: "background/
|
|
2235
|
+
backgroundColor: "background/secondary";
|
|
2230
2236
|
borderBottomColor: "border/minimal";
|
|
2231
2237
|
borderBottomStyle: "solid";
|
|
2232
2238
|
borderBottomWidth: "1";
|
|
@@ -2266,9 +2272,16 @@ declare const slotRecipes: {
|
|
|
2266
2272
|
content: "attr(data-label)";
|
|
2267
2273
|
flexShrink: number;
|
|
2268
2274
|
fontWeight: "semibold";
|
|
2269
|
-
|
|
2275
|
+
marginInlineEnd: "16";
|
|
2270
2276
|
width: "96";
|
|
2271
2277
|
};
|
|
2278
|
+
'tfoot &': {
|
|
2279
|
+
display: "block";
|
|
2280
|
+
paddingInline: number;
|
|
2281
|
+
_before: {
|
|
2282
|
+
content: "none";
|
|
2283
|
+
};
|
|
2284
|
+
};
|
|
2272
2285
|
};
|
|
2273
2286
|
footer: {
|
|
2274
2287
|
borderTopStyle: "solid";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fills `{key}` placeholders in a template from `values`. Substitution is single-pass, so braces
|
|
3
|
+
* that arrive inside a value are left alone instead of being substituted again — which also makes
|
|
4
|
+
* the result independent of the key order. A placeholder with no matching key stays as it is.
|
|
5
|
+
*/
|
|
6
|
+
declare const formatLabel: (template: string, values: Record<string, string | number>) => string;
|
|
7
|
+
export default formatLabel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region lib/utilities/formatLabel.ts
|
|
2
|
+
/**
|
|
3
|
+
* Fills `{key}` placeholders in a template from `values`. Substitution is single-pass, so braces
|
|
4
|
+
* that arrive inside a value are left alone instead of being substituted again — which also makes
|
|
5
|
+
* the result independent of the key order. A placeholder with no matching key stays as it is.
|
|
6
|
+
*/
|
|
7
|
+
var formatLabel = (template, values) => template.replace(/\{(\w+)\}/g, (placeholder, key) => Object.hasOwn(values, key) ? String(values[key]) : placeholder);
|
|
8
|
+
//#endregion
|
|
9
|
+
export { formatLabel as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=formatLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatLabel.js","names":[],"sources":["../../lib/utilities/formatLabel.ts"],"sourcesContent":["/**\n * Fills `{key}` placeholders in a template from `values`. Substitution is single-pass, so braces\n * that arrive inside a value are left alone instead of being substituted again — which also makes\n * the result independent of the key order. A placeholder with no matching key stays as it is.\n */\nconst formatLabel = (template: string, values: Record<string, string | number>) =>\n template.replace(/\\{(\\w+)\\}/g, (placeholder, key: string) =>\n Object.hasOwn(values, key) ? String(values[key]) : placeholder,\n );\n\nexport default formatLabel;\n"],"mappings":";;;;;;AAKA,IAAM,eAAe,UAAkB,WACrC,SAAS,QAAQ,eAAe,aAAa,QAC3C,OAAO,OAAO,QAAQ,GAAG,IAAI,OAAO,OAAO,IAAI,IAAI,WACrD"}
|