@pathscale/ui 2.0.0 → 2.1.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/flex/Flex.generated.d.ts +4 -0
- package/dist/components/flex/Flex.generated.js +5 -1
- package/dist/components/flex/Flex.recipe.d.ts +12 -0
- package/dist/components/flex/Flex.recipe.js +12 -0
- package/dist/components/tag/Tag.css +15 -7
- package/dist/layouts.manifest.json +1 -1
- package/dist/purge-manifest.json +36 -24
- package/package.json +1 -1
|
@@ -14,6 +14,10 @@ export type FlexProps = IComponentBaseProps & Omit<JSX.HTMLAttributes<HTMLElemen
|
|
|
14
14
|
gapY?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
|
|
15
15
|
paddingInline?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
|
|
16
16
|
paddingBlock?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
|
|
17
|
+
width?: ResponsiveProp<"full">;
|
|
18
|
+
height?: ResponsiveProp<"full">;
|
|
19
|
+
minWidth?: ResponsiveProp<"zero">;
|
|
20
|
+
minHeight?: ResponsiveProp<"zero">;
|
|
17
21
|
grow?: ResponsiveProp<boolean>;
|
|
18
22
|
shrink?: ResponsiveProp<boolean>;
|
|
19
23
|
basis?: ResponsiveProp<"none" | "sm" | "md" | "lg" | "xl">;
|
|
@@ -21,13 +21,17 @@ const __solidLayoutFlex = (_stable, p)=>{
|
|
|
21
21
|
"gapY",
|
|
22
22
|
"paddingInline",
|
|
23
23
|
"paddingBlock",
|
|
24
|
+
"width",
|
|
25
|
+
"height",
|
|
26
|
+
"minWidth",
|
|
27
|
+
"minHeight",
|
|
24
28
|
"grow",
|
|
25
29
|
"shrink",
|
|
26
30
|
"basis"
|
|
27
31
|
]);
|
|
28
32
|
const tag = createMemo(()=>local.as || "div");
|
|
29
33
|
const resolvedChildren = children(()=>local.children);
|
|
30
|
-
const classes = createMemo(()=>twMerge(clsx(CLASSES.base, mapResponsiveProp(local.direction, CLASSES.direction), mapResponsiveProp(local.justify, CLASSES.justify), mapResponsiveProp(local.align, CLASSES.align), mapResponsiveProp(local.wrap, CLASSES.wrap), mapResponsiveProp(local.gap, CLASSES.gap), mapResponsiveProp(local.gapX, CLASSES.gapX), mapResponsiveProp(local.gapY, CLASSES.gapY), mapResponsiveProp(local.paddingInline, CLASSES.paddingInline), mapResponsiveProp(local.paddingBlock, CLASSES.paddingBlock), mapResponsiveProp(local.grow, CLASSES.grow), mapResponsiveProp(local.shrink, CLASSES.shrink), mapResponsiveProp(local.basis, CLASSES.basis), local.class, local.className)));
|
|
34
|
+
const classes = createMemo(()=>twMerge(clsx(CLASSES.base, mapResponsiveProp(local.direction, CLASSES.direction), mapResponsiveProp(local.justify, CLASSES.justify), mapResponsiveProp(local.align, CLASSES.align), mapResponsiveProp(local.wrap, CLASSES.wrap), mapResponsiveProp(local.gap, CLASSES.gap), mapResponsiveProp(local.gapX, CLASSES.gapX), mapResponsiveProp(local.gapY, CLASSES.gapY), mapResponsiveProp(local.paddingInline, CLASSES.paddingInline), mapResponsiveProp(local.paddingBlock, CLASSES.paddingBlock), mapResponsiveProp(local.width, CLASSES.width), mapResponsiveProp(local.height, CLASSES.height), mapResponsiveProp(local.minWidth, CLASSES.minWidth), mapResponsiveProp(local.minHeight, CLASSES.minHeight), mapResponsiveProp(local.grow, CLASSES.grow), mapResponsiveProp(local.shrink, CLASSES.shrink), mapResponsiveProp(local.basis, CLASSES.basis), local.class, local.className)));
|
|
31
35
|
return createComponent(Dynamic, mergeProps({
|
|
32
36
|
get component () {
|
|
33
37
|
return tag();
|
|
@@ -61,6 +61,18 @@ export declare const CLASSES: {
|
|
|
61
61
|
readonly lg: "py-6";
|
|
62
62
|
readonly xl: "py-8";
|
|
63
63
|
};
|
|
64
|
+
readonly width: {
|
|
65
|
+
readonly full: "w-full";
|
|
66
|
+
};
|
|
67
|
+
readonly height: {
|
|
68
|
+
readonly full: "h-full";
|
|
69
|
+
};
|
|
70
|
+
readonly minWidth: {
|
|
71
|
+
readonly zero: "min-w-0";
|
|
72
|
+
};
|
|
73
|
+
readonly minHeight: {
|
|
74
|
+
readonly zero: "min-h-0";
|
|
75
|
+
};
|
|
64
76
|
readonly grow: {
|
|
65
77
|
readonly true: "flex-grow";
|
|
66
78
|
readonly false: "flex-grow-0";
|
|
@@ -62,6 +62,18 @@ const CLASSES = {
|
|
|
62
62
|
lg: "py-6",
|
|
63
63
|
xl: "py-8"
|
|
64
64
|
},
|
|
65
|
+
width: {
|
|
66
|
+
full: "w-full"
|
|
67
|
+
},
|
|
68
|
+
height: {
|
|
69
|
+
full: "h-full"
|
|
70
|
+
},
|
|
71
|
+
minWidth: {
|
|
72
|
+
zero: "min-w-0"
|
|
73
|
+
},
|
|
74
|
+
minHeight: {
|
|
75
|
+
zero: "min-h-0"
|
|
76
|
+
},
|
|
65
77
|
grow: {
|
|
66
78
|
true: "flex-grow",
|
|
67
79
|
false: "flex-grow-0"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
.tag {
|
|
2
|
+
.tag:not(.token) {
|
|
3
3
|
--tag-optical-offset: 0.031em;
|
|
4
4
|
|
|
5
5
|
position: relative;
|
|
@@ -23,7 +23,10 @@
|
|
|
23
23
|
--tag-fg-default: var(--color-default-foreground);
|
|
24
24
|
--tag-bg-default-hover: var(--color-default-hover);
|
|
25
25
|
--tag-bg-surface: var(--color-surface, var(--color-base-200));
|
|
26
|
-
--tag-fg-surface: var(
|
|
26
|
+
--tag-fg-surface: var(
|
|
27
|
+
--color-surface-foreground,
|
|
28
|
+
var(--color-base-content)
|
|
29
|
+
);
|
|
27
30
|
--tag-bg-surface-hover: var(--color-surface-hover, var(--color-base-300));
|
|
28
31
|
--tag-bg-selected: var(--color-accent-soft);
|
|
29
32
|
--tag-fg-selected: var(--color-accent-soft-foreground);
|
|
@@ -49,27 +52,32 @@
|
|
|
49
52
|
height: 0.75rem;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
|
-
.tag:is([data-disabled="true"], [aria-disabled="true"]) {
|
|
55
|
+
.tag:not(.token):is([data-disabled="true"], [aria-disabled="true"]) {
|
|
53
56
|
opacity: 0.5;
|
|
54
57
|
cursor: not-allowed;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
.tag:is(:focus-visible, [data-focus-visible]) {
|
|
60
|
+
.tag:not(.token):is(:focus-visible, [data-focus-visible]) {
|
|
58
61
|
outline: 2px solid var(--color-accent);
|
|
59
62
|
outline-offset: 2px;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
|
-
.tag:is([data-selected="true"], [aria-selected="true"]) {
|
|
65
|
+
.tag:not(.token):is([data-selected="true"], [aria-selected="true"]) {
|
|
63
66
|
background-color: var(--tag-bg-selected);
|
|
64
67
|
color: var(--tag-fg-selected);
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
@media (hover: hover) {
|
|
68
|
-
.tag:is(:hover, [data-hovered="true"]):not(
|
|
71
|
+
.tag:not(.token):is(:hover, [data-hovered="true"]):not(
|
|
72
|
+
[data-selected="true"]
|
|
73
|
+
):not([data-disabled="true"]) {
|
|
69
74
|
background-color: var(--tag-bg-hover);
|
|
70
75
|
}
|
|
71
76
|
|
|
72
|
-
.tag:is([data-selected="true"], [aria-selected="true"]):is(
|
|
77
|
+
.tag:not(.token):is([data-selected="true"], [aria-selected="true"]):is(
|
|
78
|
+
:hover,
|
|
79
|
+
[data-hovered="true"]
|
|
80
|
+
) {
|
|
73
81
|
background-color: var(--tag-bg-selected-hover);
|
|
74
82
|
}
|
|
75
83
|
}
|
package/dist/purge-manifest.json
CHANGED
|
@@ -1408,17 +1408,17 @@
|
|
|
1408
1408
|
"[data-selected=\"true\"]"
|
|
1409
1409
|
],
|
|
1410
1410
|
"selectors": [
|
|
1411
|
-
".tag",
|
|
1412
1411
|
".tag--default",
|
|
1413
1412
|
".tag--lg",
|
|
1414
1413
|
".tag--md",
|
|
1415
1414
|
".tag--sm",
|
|
1416
1415
|
".tag--surface",
|
|
1417
|
-
".tag:
|
|
1418
|
-
".tag:is(:
|
|
1419
|
-
".tag:is([data-
|
|
1420
|
-
".tag:is([data-
|
|
1421
|
-
".tag:is([data-selected=\"true\"], [aria-selected=\"true\"])
|
|
1416
|
+
".tag:not(.token)",
|
|
1417
|
+
".tag:not(.token):is(:focus-visible, [data-focus-visible])",
|
|
1418
|
+
".tag:not(.token):is(:hover, [data-hovered=\"true\"]):not([data-selected=\"true\"]):not([data-disabled=\"true\"])",
|
|
1419
|
+
".tag:not(.token):is([data-disabled=\"true\"], [aria-disabled=\"true\"])",
|
|
1420
|
+
".tag:not(.token):is([data-selected=\"true\"], [aria-selected=\"true\"])",
|
|
1421
|
+
".tag:not(.token):is([data-selected=\"true\"], [aria-selected=\"true\"]):is(:hover, [data-hovered=\"true\"])",
|
|
1422
1422
|
".tag__icon",
|
|
1423
1423
|
".tag__icon > *",
|
|
1424
1424
|
".tag__remove-button",
|
|
@@ -1494,17 +1494,17 @@
|
|
|
1494
1494
|
"[data-selected=\"true\"]"
|
|
1495
1495
|
],
|
|
1496
1496
|
"selectors": [
|
|
1497
|
-
".tag",
|
|
1498
1497
|
".tag--default",
|
|
1499
1498
|
".tag--lg",
|
|
1500
1499
|
".tag--md",
|
|
1501
1500
|
".tag--sm",
|
|
1502
1501
|
".tag--surface",
|
|
1503
|
-
".tag:
|
|
1504
|
-
".tag:is(:
|
|
1505
|
-
".tag:is([data-
|
|
1506
|
-
".tag:is([data-
|
|
1507
|
-
".tag:is([data-selected=\"true\"], [aria-selected=\"true\"])
|
|
1502
|
+
".tag:not(.token)",
|
|
1503
|
+
".tag:not(.token):is(:focus-visible, [data-focus-visible])",
|
|
1504
|
+
".tag:not(.token):is(:hover, [data-hovered=\"true\"]):not([data-selected=\"true\"]):not([data-disabled=\"true\"])",
|
|
1505
|
+
".tag:not(.token):is([data-disabled=\"true\"], [aria-disabled=\"true\"])",
|
|
1506
|
+
".tag:not(.token):is([data-selected=\"true\"], [aria-selected=\"true\"])",
|
|
1507
|
+
".tag:not(.token):is([data-selected=\"true\"], [aria-selected=\"true\"]):is(:hover, [data-hovered=\"true\"])",
|
|
1508
1508
|
".tag__icon",
|
|
1509
1509
|
".tag__icon > *",
|
|
1510
1510
|
".tag__remove-button",
|
|
@@ -8926,6 +8926,18 @@
|
|
|
8926
8926
|
"lg": [],
|
|
8927
8927
|
"xl": []
|
|
8928
8928
|
},
|
|
8929
|
+
"width": {
|
|
8930
|
+
"full": []
|
|
8931
|
+
},
|
|
8932
|
+
"height": {
|
|
8933
|
+
"full": []
|
|
8934
|
+
},
|
|
8935
|
+
"minWidth": {
|
|
8936
|
+
"zero": []
|
|
8937
|
+
},
|
|
8938
|
+
"minHeight": {
|
|
8939
|
+
"zero": []
|
|
8940
|
+
},
|
|
8929
8941
|
"grow": {
|
|
8930
8942
|
"true": [],
|
|
8931
8943
|
"false": []
|
|
@@ -32093,13 +32105,6 @@
|
|
|
32093
32105
|
"Tabs"
|
|
32094
32106
|
]
|
|
32095
32107
|
},
|
|
32096
|
-
{
|
|
32097
|
-
"selector": ".tag",
|
|
32098
|
-
"components": [
|
|
32099
|
-
"Tag.Root",
|
|
32100
|
-
"Tag.slot"
|
|
32101
|
-
]
|
|
32102
|
-
},
|
|
32103
32108
|
{
|
|
32104
32109
|
"selector": ".tag__icon",
|
|
32105
32110
|
"components": [
|
|
@@ -32206,35 +32211,42 @@
|
|
|
32206
32211
|
]
|
|
32207
32212
|
},
|
|
32208
32213
|
{
|
|
32209
|
-
"selector": ".tag:
|
|
32214
|
+
"selector": ".tag:not(.token)",
|
|
32215
|
+
"components": [
|
|
32216
|
+
"Tag.Root",
|
|
32217
|
+
"Tag.slot"
|
|
32218
|
+
]
|
|
32219
|
+
},
|
|
32220
|
+
{
|
|
32221
|
+
"selector": ".tag:not(.token):is(:focus-visible, [data-focus-visible])",
|
|
32210
32222
|
"components": [
|
|
32211
32223
|
"Tag.Root",
|
|
32212
32224
|
"Tag.slot"
|
|
32213
32225
|
]
|
|
32214
32226
|
},
|
|
32215
32227
|
{
|
|
32216
|
-
"selector": ".tag:is(:hover, [data-hovered=\"true\"]):not([data-selected=\"true\"]):not([data-disabled=\"true\"])",
|
|
32228
|
+
"selector": ".tag:not(.token):is(:hover, [data-hovered=\"true\"]):not([data-selected=\"true\"]):not([data-disabled=\"true\"])",
|
|
32217
32229
|
"components": [
|
|
32218
32230
|
"Tag.Root",
|
|
32219
32231
|
"Tag.slot"
|
|
32220
32232
|
]
|
|
32221
32233
|
},
|
|
32222
32234
|
{
|
|
32223
|
-
"selector": ".tag:is([data-disabled=\"true\"], [aria-disabled=\"true\"])",
|
|
32235
|
+
"selector": ".tag:not(.token):is([data-disabled=\"true\"], [aria-disabled=\"true\"])",
|
|
32224
32236
|
"components": [
|
|
32225
32237
|
"Tag.Root",
|
|
32226
32238
|
"Tag.slot"
|
|
32227
32239
|
]
|
|
32228
32240
|
},
|
|
32229
32241
|
{
|
|
32230
|
-
"selector": ".tag:is([data-selected=\"true\"], [aria-selected=\"true\"])",
|
|
32242
|
+
"selector": ".tag:not(.token):is([data-selected=\"true\"], [aria-selected=\"true\"])",
|
|
32231
32243
|
"components": [
|
|
32232
32244
|
"Tag.Root",
|
|
32233
32245
|
"Tag.slot"
|
|
32234
32246
|
]
|
|
32235
32247
|
},
|
|
32236
32248
|
{
|
|
32237
|
-
"selector": ".tag:is([data-selected=\"true\"], [aria-selected=\"true\"]):is(:hover, [data-hovered=\"true\"])",
|
|
32249
|
+
"selector": ".tag:not(.token):is([data-selected=\"true\"], [aria-selected=\"true\"]):is(:hover, [data-hovered=\"true\"])",
|
|
32238
32250
|
"components": [
|
|
32239
32251
|
"Tag.Root",
|
|
32240
32252
|
"Tag.slot"
|