sk-clib 1.8.1 → 1.9.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/dist/styles.css
CHANGED
|
@@ -310,6 +310,14 @@
|
|
|
310
310
|
.italic {
|
|
311
311
|
font-style: italic;
|
|
312
312
|
}
|
|
313
|
+
.shadow {
|
|
314
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
315
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
316
|
+
}
|
|
317
|
+
.outline {
|
|
318
|
+
outline-style: var(--tw-outline-style);
|
|
319
|
+
outline-width: 1px;
|
|
320
|
+
}
|
|
313
321
|
.data-\[state\=toggled\]\:bg-black {
|
|
314
322
|
&[data-state="toggled"] {
|
|
315
323
|
background-color: var(--color-black);
|
|
@@ -473,6 +481,9 @@
|
|
|
473
481
|
.bg-background > * {
|
|
474
482
|
color: var(--color-on-background);
|
|
475
483
|
}
|
|
484
|
+
.bg-primary > * {
|
|
485
|
+
color: var(--color-primary);
|
|
486
|
+
}
|
|
476
487
|
.bg-primary-container > * {
|
|
477
488
|
color: var(--color-on-primary-container);
|
|
478
489
|
}
|
|
@@ -1026,10 +1037,95 @@
|
|
|
1026
1037
|
syntax: "*";
|
|
1027
1038
|
inherits: false;
|
|
1028
1039
|
}
|
|
1040
|
+
@property --tw-shadow {
|
|
1041
|
+
syntax: "*";
|
|
1042
|
+
inherits: false;
|
|
1043
|
+
initial-value: 0 0 #0000;
|
|
1044
|
+
}
|
|
1045
|
+
@property --tw-shadow-color {
|
|
1046
|
+
syntax: "*";
|
|
1047
|
+
inherits: false;
|
|
1048
|
+
}
|
|
1049
|
+
@property --tw-shadow-alpha {
|
|
1050
|
+
syntax: "<percentage>";
|
|
1051
|
+
inherits: false;
|
|
1052
|
+
initial-value: 100%;
|
|
1053
|
+
}
|
|
1054
|
+
@property --tw-inset-shadow {
|
|
1055
|
+
syntax: "*";
|
|
1056
|
+
inherits: false;
|
|
1057
|
+
initial-value: 0 0 #0000;
|
|
1058
|
+
}
|
|
1059
|
+
@property --tw-inset-shadow-color {
|
|
1060
|
+
syntax: "*";
|
|
1061
|
+
inherits: false;
|
|
1062
|
+
}
|
|
1063
|
+
@property --tw-inset-shadow-alpha {
|
|
1064
|
+
syntax: "<percentage>";
|
|
1065
|
+
inherits: false;
|
|
1066
|
+
initial-value: 100%;
|
|
1067
|
+
}
|
|
1068
|
+
@property --tw-ring-color {
|
|
1069
|
+
syntax: "*";
|
|
1070
|
+
inherits: false;
|
|
1071
|
+
}
|
|
1072
|
+
@property --tw-ring-shadow {
|
|
1073
|
+
syntax: "*";
|
|
1074
|
+
inherits: false;
|
|
1075
|
+
initial-value: 0 0 #0000;
|
|
1076
|
+
}
|
|
1077
|
+
@property --tw-inset-ring-color {
|
|
1078
|
+
syntax: "*";
|
|
1079
|
+
inherits: false;
|
|
1080
|
+
}
|
|
1081
|
+
@property --tw-inset-ring-shadow {
|
|
1082
|
+
syntax: "*";
|
|
1083
|
+
inherits: false;
|
|
1084
|
+
initial-value: 0 0 #0000;
|
|
1085
|
+
}
|
|
1086
|
+
@property --tw-ring-inset {
|
|
1087
|
+
syntax: "*";
|
|
1088
|
+
inherits: false;
|
|
1089
|
+
}
|
|
1090
|
+
@property --tw-ring-offset-width {
|
|
1091
|
+
syntax: "<length>";
|
|
1092
|
+
inherits: false;
|
|
1093
|
+
initial-value: 0px;
|
|
1094
|
+
}
|
|
1095
|
+
@property --tw-ring-offset-color {
|
|
1096
|
+
syntax: "*";
|
|
1097
|
+
inherits: false;
|
|
1098
|
+
initial-value: #fff;
|
|
1099
|
+
}
|
|
1100
|
+
@property --tw-ring-offset-shadow {
|
|
1101
|
+
syntax: "*";
|
|
1102
|
+
inherits: false;
|
|
1103
|
+
initial-value: 0 0 #0000;
|
|
1104
|
+
}
|
|
1105
|
+
@property --tw-outline-style {
|
|
1106
|
+
syntax: "*";
|
|
1107
|
+
inherits: false;
|
|
1108
|
+
initial-value: solid;
|
|
1109
|
+
}
|
|
1029
1110
|
@layer properties {
|
|
1030
1111
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
1031
1112
|
*, ::before, ::after, ::backdrop {
|
|
1032
1113
|
--tw-font-weight: initial;
|
|
1114
|
+
--tw-shadow: 0 0 #0000;
|
|
1115
|
+
--tw-shadow-color: initial;
|
|
1116
|
+
--tw-shadow-alpha: 100%;
|
|
1117
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
1118
|
+
--tw-inset-shadow-color: initial;
|
|
1119
|
+
--tw-inset-shadow-alpha: 100%;
|
|
1120
|
+
--tw-ring-color: initial;
|
|
1121
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
1122
|
+
--tw-inset-ring-color: initial;
|
|
1123
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
1124
|
+
--tw-ring-inset: initial;
|
|
1125
|
+
--tw-ring-offset-width: 0px;
|
|
1126
|
+
--tw-ring-offset-color: #fff;
|
|
1127
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
1128
|
+
--tw-outline-style: solid;
|
|
1033
1129
|
}
|
|
1034
1130
|
}
|
|
1035
1131
|
}
|
|
@@ -6,20 +6,51 @@
|
|
|
6
6
|
let {
|
|
7
7
|
children,
|
|
8
8
|
class: className,
|
|
9
|
+
|
|
10
|
+
// Flex Box
|
|
9
11
|
flex = $bindable(undefined),
|
|
10
12
|
row = $bindable(undefined),
|
|
11
13
|
col = $bindable(undefined),
|
|
14
|
+
|
|
15
|
+
// Positioning
|
|
12
16
|
center = $bindable(undefined),
|
|
13
17
|
centerx = $bindable(undefined),
|
|
14
18
|
centery = $bindable(undefined),
|
|
19
|
+
|
|
20
|
+
// Size Fillings
|
|
15
21
|
fill = $bindable(undefined),
|
|
16
22
|
fillw = $bindable(undefined),
|
|
17
23
|
fillh = $bindable(undefined),
|
|
24
|
+
|
|
25
|
+
// Flex Config
|
|
18
26
|
noshrink = $bindable(undefined),
|
|
27
|
+
|
|
28
|
+
// Aspect Ratios
|
|
19
29
|
aspectSquare = $bindable(undefined),
|
|
30
|
+
|
|
31
|
+
// Cursor options
|
|
20
32
|
cursorAuto = $bindable(undefined),
|
|
21
33
|
cursorDefault = $bindable(undefined),
|
|
22
34
|
cursorPointer = $bindable(undefined),
|
|
35
|
+
|
|
36
|
+
// Theme Colors
|
|
37
|
+
background = $bindable(undefined),
|
|
38
|
+
primary = $bindable(undefined),
|
|
39
|
+
primaryContainer = $bindable(undefined),
|
|
40
|
+
secondary = $bindable(undefined),
|
|
41
|
+
secondaryContainer = $bindable(undefined),
|
|
42
|
+
tertiary = $bindable(undefined),
|
|
43
|
+
tertiaryContainer = $bindable(undefined),
|
|
44
|
+
error = $bindable(undefined),
|
|
45
|
+
surface = $bindable(undefined),
|
|
46
|
+
surfaceVariant = $bindable(undefined),
|
|
47
|
+
outline = $bindable(undefined),
|
|
48
|
+
outlineVariant = $bindable(undefined),
|
|
49
|
+
shadow = $bindable(undefined),
|
|
50
|
+
scrim = $bindable(undefined),
|
|
51
|
+
inverseSurface = $bindable(undefined),
|
|
52
|
+
inversePrimary = $bindable(undefined),
|
|
53
|
+
|
|
23
54
|
...rest
|
|
24
55
|
}: Props = $props();
|
|
25
56
|
|
|
@@ -57,6 +88,25 @@
|
|
|
57
88
|
tokenInstance.addTokenIf(cursorAuto, 'cursor-auto');
|
|
58
89
|
tokenInstance.addTokenIf(cursorDefault, 'cursor-default');
|
|
59
90
|
tokenInstance.addTokenIf(cursorPointer, 'cursor-pointer');
|
|
91
|
+
|
|
92
|
+
// Background Options
|
|
93
|
+
tokenInstance.addTokenIf(background, 'bg-background');
|
|
94
|
+
tokenInstance.addTokenIf(primary, 'bg-primary');
|
|
95
|
+
tokenInstance.addTokenIf(primaryContainer, 'bg-primary-container');
|
|
96
|
+
tokenInstance.addTokenIf(secondary, 'bg-secondary');
|
|
97
|
+
tokenInstance.addTokenIf(secondaryContainer, 'bg-secondary-container');
|
|
98
|
+
tokenInstance.addTokenIf(tertiary, 'bg-tertiary');
|
|
99
|
+
tokenInstance.addTokenIf(tertiaryContainer, 'bg-tertiary-container');
|
|
100
|
+
tokenInstance.addTokenIf(error, 'bg-error');
|
|
101
|
+
tokenInstance.addTokenIf(surface, 'bg-surface');
|
|
102
|
+
tokenInstance.addTokenIf(surfaceVariant, 'bg-surface-variant');
|
|
103
|
+
tokenInstance.addTokenIf(outline, 'bg-outline');
|
|
104
|
+
tokenInstance.addTokenIf(outlineVariant, 'bg-outline-variant');
|
|
105
|
+
tokenInstance.addTokenIf(shadow, 'bg-shadow');
|
|
106
|
+
tokenInstance.addTokenIf(scrim, 'bg-scrim');
|
|
107
|
+
tokenInstance.addTokenIf(inverseSurface, 'bg-inverse-surface');
|
|
108
|
+
tokenInstance.addTokenIf(inversePrimary, 'bg-inverse-primary');
|
|
109
|
+
|
|
60
110
|
</script>
|
|
61
111
|
|
|
62
112
|
<div class={cn(tokenInstance.className)} {...rest}>
|
|
@@ -17,6 +17,6 @@ import type { Props } from '..';
|
|
|
17
17
|
* This will create a flex container that is a row, centered, and fills the available space.
|
|
18
18
|
* The `class` prop can be used to add additional classes to the frame, and the `children` prop can be used to pass in child components.
|
|
19
19
|
*/
|
|
20
|
-
declare const Frame: import("svelte").Component<Props, {}, "flex" | "row" | "col" | "centerx" | "centery" | "center" | "fill" | "fillw" | "fillh" | "noshrink" | "aspectSquare" | "cursorAuto" | "cursorDefault" | "cursorPointer">;
|
|
20
|
+
declare const Frame: import("svelte").Component<Props, {}, "flex" | "row" | "col" | "centerx" | "centery" | "center" | "fill" | "fillw" | "fillh" | "noshrink" | "aspectSquare" | "cursorAuto" | "cursorDefault" | "cursorPointer" | "background" | "primary" | "primaryContainer" | "secondary" | "secondaryContainer" | "tertiary" | "tertiaryContainer" | "error" | "surface" | "surfaceVariant" | "outline" | "outlineVariant" | "shadow" | "scrim" | "inverseSurface" | "inversePrimary">;
|
|
21
21
|
type Frame = ReturnType<typeof Frame>;
|
|
22
22
|
export default Frame;
|
package/dist/ui/frame/types.d.ts
CHANGED
|
@@ -14,4 +14,20 @@ export type tFrameProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
14
14
|
cursorAuto?: boolean;
|
|
15
15
|
cursorDefault?: boolean;
|
|
16
16
|
cursorPointer?: boolean;
|
|
17
|
+
background?: boolean;
|
|
18
|
+
primary?: boolean;
|
|
19
|
+
primaryContainer?: boolean;
|
|
20
|
+
secondary?: boolean;
|
|
21
|
+
secondaryContainer?: boolean;
|
|
22
|
+
tertiary?: boolean;
|
|
23
|
+
tertiaryContainer?: boolean;
|
|
24
|
+
error?: boolean;
|
|
25
|
+
surface?: boolean;
|
|
26
|
+
surfaceVariant?: boolean;
|
|
27
|
+
outline?: boolean;
|
|
28
|
+
outlineVariant?: boolean;
|
|
29
|
+
shadow?: boolean;
|
|
30
|
+
scrim?: boolean;
|
|
31
|
+
inverseSurface?: boolean;
|
|
32
|
+
inversePrimary?: boolean;
|
|
17
33
|
};
|