@pathscale/ui 2.3.0 → 2.3.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.
- package/dist/components/data-grid/DataGrid.css +9 -0
- package/dist/components/data-grid/index.d.ts +5 -1
- package/dist/components/data-grid/index.js +4 -1
- package/dist/components/spinner/Spinner.css +28 -9
- package/dist/components/spinner/Spinner.generated.d.ts +2 -2
- package/dist/components/spinner/Spinner.generated.js +1 -1
- package/dist/components/spinner/Spinner.recipe.d.ts +11 -10
- package/dist/components/spinner/Spinner.recipe.js +21 -19
- package/dist/layouts.manifest.json +1 -1
- package/dist/purge-manifest.json +14 -0
- package/package.json +1 -1
|
@@ -98,6 +98,15 @@
|
|
|
98
98
|
border-inline-end: var(--border, 1px) solid var(--data-grid-line);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
/* Table draws a divider on every header cell with `.table__column::after`,
|
|
102
|
+
unconditionally. Inside a DataGrid that made `borders` a lie: `none` and
|
|
103
|
+
`rows` still showed vertical rules in the header, so the header disagreed
|
|
104
|
+
with the body directly under it. The axis decides now. */
|
|
105
|
+
.data-grid--borders-none .table__column::after,
|
|
106
|
+
.data-grid--borders-rows .table__column::after {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
101
110
|
/* --------------------------------------------------------------------------
|
|
102
111
|
Striping
|
|
103
112
|
-------------------------------------------------------------------------- */
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export type { CreateDataGridOptions, DataGridCellContext, DataGridColumn, DataGridColumnOptions, DataGridDataType, DataGridModel, DataGridRow, DataGridSelectionMode, DataGridSort, DataGridSortDirection, } from "./createDataGrid";
|
|
2
2
|
export { createDataGrid } from "./createDataGrid";
|
|
3
3
|
export type { DataGridBorders, DataGridProps, DataGridSticky, DataGridStriping, } from "./DataGrid.generated";
|
|
4
|
-
|
|
4
|
+
import type { JSX } from "solid-js";
|
|
5
|
+
import type { DataGridProps as Props } from "./DataGrid.generated";
|
|
6
|
+
import type { DataGridRow as Row } from "./createDataGrid";
|
|
7
|
+
declare const DataGrid: <R extends Row = Row>(props: Props<R>) => JSX.Element;
|
|
8
|
+
export default DataGrid;
|
|
@@ -52,24 +52,43 @@
|
|
|
52
52
|
/* -------------------------------------------------------------------------------------------------
|
|
53
53
|
* Color variants
|
|
54
54
|
* -----------------------------------------------------------------------------------------------*/
|
|
55
|
-
|
|
55
|
+
/* `--flavor-` to match every other component, and the full set: the recipe
|
|
56
|
+
named six classes this file never defined, so half the values a caller
|
|
57
|
+
could pass rendered unflavoured. */
|
|
58
|
+
.spinner--flavor-current {
|
|
56
59
|
color: currentColor;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
.spinner--
|
|
60
|
-
color: var(--color-
|
|
62
|
+
.spinner--flavor-neutral {
|
|
63
|
+
color: var(--color-neutral, currentColor);
|
|
61
64
|
}
|
|
62
65
|
|
|
63
|
-
.spinner--
|
|
64
|
-
color: var(--color-
|
|
66
|
+
.spinner--flavor-primary {
|
|
67
|
+
color: var(--color-primary, currentColor);
|
|
65
68
|
}
|
|
66
69
|
|
|
67
|
-
.spinner--
|
|
68
|
-
color: var(--color-
|
|
70
|
+
.spinner--flavor-secondary {
|
|
71
|
+
color: var(--color-secondary, currentColor);
|
|
69
72
|
}
|
|
70
73
|
|
|
71
|
-
.spinner--
|
|
72
|
-
color: var(--color-
|
|
74
|
+
.spinner--flavor-accent {
|
|
75
|
+
color: var(--color-accent, currentColor);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.spinner--flavor-info {
|
|
79
|
+
color: var(--color-info, currentColor);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.spinner--flavor-success {
|
|
83
|
+
color: var(--color-success, currentColor);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.spinner--flavor-warning {
|
|
87
|
+
color: var(--color-warning, currentColor);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.spinner--flavor-destructive {
|
|
91
|
+
color: var(--color-error, currentColor);
|
|
73
92
|
}
|
|
74
93
|
|
|
75
94
|
/* -------------------------------------------------------------------------------------------------
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
2
|
import "./Spinner.css";
|
|
3
3
|
import { type JSX } from "solid-js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { Flavor, Size, UIBaseProps } from "../vocabulary";
|
|
5
5
|
export type SpinnerShape = "spinner" | "dots" | "ring" | "ball" | "bars" | "infinity";
|
|
6
6
|
export type SpinnerProps = Omit<JSX.HTMLAttributes<HTMLSpanElement>, "children"> & UIBaseProps & {
|
|
7
7
|
size?: Size;
|
|
8
|
-
|
|
8
|
+
flavor?: Flavor;
|
|
9
9
|
shape?: SpinnerShape;
|
|
10
10
|
label?: string;
|
|
11
11
|
};
|
|
@@ -3,7 +3,7 @@ import { defineComponent } from "solid-layouts/application-boundary";
|
|
|
3
3
|
import "./Spinner.css";
|
|
4
4
|
import { createUniqueId } from "solid-js";
|
|
5
5
|
import { spinner } from "./Spinner.recipe.js";
|
|
6
|
-
var _tmpl$ = /*#__PURE__*/ template('<svg aria-hidden=true data-slot=spinner-icon fill=none viewBox="0 0 24 24"><defs><linearGradient x1=50% x2=50% y1=5.271% y2=91.793%><stop offset=0% stop-
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template('<svg aria-hidden=true data-slot=spinner-icon fill=none viewBox="0 0 24 24"><defs><linearGradient x1=50% x2=50% y1=5.271% y2=91.793%><stop offset=0% stop-color=currentColor></stop><stop offset=100% stop-color=currentColor stop-opacity=0.55></stop></linearGradient><linearGradient x1=50% x2=50% y1=15.24% y2=87.15%><stop offset=0% stop-color=currentColor stop-opacity=0></stop><stop offset=100% stop-color=currentColor stop-opacity=0.55></stop></linearGradient></defs><g fill=none><path d="M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.5 7.5 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021"transform="translate(1.5 1.625)"></path><path d="M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.48 10.48 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084a1.5 1.5 0 0 1-.115-2.118"transform="translate(1.5 1.625)">'), _tmpl$2 = /*#__PURE__*/ template("<span>");
|
|
7
7
|
const SpinnerSVG = ()=>{
|
|
8
8
|
const id = createUniqueId();
|
|
9
9
|
return (()=>{
|
|
@@ -20,15 +20,16 @@ export declare const spinner: import("solid-layouts").Recipe<{
|
|
|
20
20
|
readonly lg: "spinner--lg";
|
|
21
21
|
readonly xl: "spinner--xl";
|
|
22
22
|
};
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
23
|
+
readonly flavor: {
|
|
24
|
+
readonly current: "spinner--flavor-current";
|
|
25
|
+
readonly neutral: "spinner--flavor-neutral";
|
|
26
|
+
readonly primary: "spinner--flavor-primary";
|
|
27
|
+
readonly secondary: "spinner--flavor-secondary";
|
|
28
|
+
readonly accent: "spinner--flavor-accent";
|
|
29
|
+
readonly success: "spinner--flavor-success";
|
|
30
|
+
readonly warning: "spinner--flavor-warning";
|
|
31
|
+
readonly destructive: "spinner--flavor-destructive";
|
|
32
|
+
readonly info: "spinner--flavor-info";
|
|
32
33
|
};
|
|
33
34
|
readonly shape: {
|
|
34
35
|
readonly spinner: "spinner--spinner";
|
|
@@ -42,7 +43,7 @@ export declare const spinner: import("solid-layouts").Recipe<{
|
|
|
42
43
|
};
|
|
43
44
|
readonly defaults: {
|
|
44
45
|
readonly size: "md";
|
|
45
|
-
readonly
|
|
46
|
+
readonly flavor: "current";
|
|
46
47
|
readonly shape: "spinner";
|
|
47
48
|
readonly label: "Loading";
|
|
48
49
|
};
|
|
@@ -15,15 +15,16 @@ const spinner = recipe({
|
|
|
15
15
|
lg: "spinner--lg",
|
|
16
16
|
xl: "spinner--xl"
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
flavor: {
|
|
19
|
+
current: "spinner--flavor-current",
|
|
20
|
+
neutral: "spinner--flavor-neutral",
|
|
21
|
+
primary: "spinner--flavor-primary",
|
|
22
|
+
secondary: "spinner--flavor-secondary",
|
|
23
|
+
accent: "spinner--flavor-accent",
|
|
24
|
+
success: "spinner--flavor-success",
|
|
25
|
+
warning: "spinner--flavor-warning",
|
|
26
|
+
destructive: "spinner--flavor-destructive",
|
|
27
|
+
info: "spinner--flavor-info"
|
|
27
28
|
},
|
|
28
29
|
shape: {
|
|
29
30
|
spinner: "spinner--spinner",
|
|
@@ -37,7 +38,7 @@ const spinner = recipe({
|
|
|
37
38
|
},
|
|
38
39
|
defaults: {
|
|
39
40
|
size: "md",
|
|
40
|
-
|
|
41
|
+
flavor: "current",
|
|
41
42
|
shape: "spinner",
|
|
42
43
|
label: "Loading"
|
|
43
44
|
},
|
|
@@ -53,15 +54,16 @@ const spinner = recipe({
|
|
|
53
54
|
lg: "spinner--lg",
|
|
54
55
|
xl: "spinner--xl"
|
|
55
56
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
flavor: {
|
|
58
|
+
current: "spinner--flavor-current",
|
|
59
|
+
neutral: "spinner--flavor-neutral",
|
|
60
|
+
primary: "spinner--flavor-primary",
|
|
61
|
+
secondary: "spinner--flavor-secondary",
|
|
62
|
+
accent: "spinner--flavor-accent",
|
|
63
|
+
success: "spinner--flavor-success",
|
|
64
|
+
warning: "spinner--flavor-warning",
|
|
65
|
+
destructive: "spinner--flavor-destructive",
|
|
66
|
+
info: "spinner--flavor-info"
|
|
65
67
|
},
|
|
66
68
|
shape: {
|
|
67
69
|
spinner: "spinner--spinner",
|
package/dist/purge-manifest.json
CHANGED
|
@@ -979,6 +979,8 @@
|
|
|
979
979
|
".data-grid--borders-both .table__row:not(:last-child) .table__cell",
|
|
980
980
|
".data-grid--borders-cols .table__cell:not(:last-child)",
|
|
981
981
|
".data-grid--borders-cols .table__column:not(:last-child)",
|
|
982
|
+
".data-grid--borders-none .table__column:after",
|
|
983
|
+
".data-grid--borders-rows .table__column:after",
|
|
982
984
|
".data-grid--borders-rows .table__row:not(:last-child) .table__cell",
|
|
983
985
|
".data-grid--interactive .table__body .table__row:hover",
|
|
984
986
|
".data-grid--size-lg .table__cell",
|
|
@@ -20370,6 +20372,18 @@
|
|
|
20370
20372
|
"DataGrid"
|
|
20371
20373
|
]
|
|
20372
20374
|
},
|
|
20375
|
+
{
|
|
20376
|
+
"selector": ".data-grid--borders-none .table__column:after",
|
|
20377
|
+
"components": [
|
|
20378
|
+
"DataGrid"
|
|
20379
|
+
]
|
|
20380
|
+
},
|
|
20381
|
+
{
|
|
20382
|
+
"selector": ".data-grid--borders-rows .table__column:after",
|
|
20383
|
+
"components": [
|
|
20384
|
+
"DataGrid"
|
|
20385
|
+
]
|
|
20386
|
+
},
|
|
20373
20387
|
{
|
|
20374
20388
|
"selector": ".data-grid--borders-rows .table__row:not(:last-child) .table__cell",
|
|
20375
20389
|
"components": [
|