@arcanejs/toolkit-frontend 0.9.0 → 0.10.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/README.md +129 -28
- package/dist/{chunk-PTANIWKR.mjs → chunk-2HBLGAG3.mjs} +5 -8
- package/dist/chunk-7P6ASYW6.mjs +9 -0
- package/dist/{chunk-TMN35K5Y.js → chunk-GBYIEWGN.js} +6 -9
- package/dist/{chunk-UHFE2X4V.js → chunk-LXNJPBVT.js} +23 -21
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/{chunk-GMPDVDSW.mjs → chunk-TOVGDMHN.mjs} +24 -22
- package/dist/components/core/index.js +4 -3
- package/dist/components/core/index.mjs +3 -2
- package/dist/components/index.d.mts +18 -12
- package/dist/components/index.d.ts +18 -12
- package/dist/components/index.js +437 -615
- package/dist/components/index.mjs +440 -618
- package/dist/styles/base.css +68 -0
- package/dist/styles/core.css +712 -0
- package/dist/styles/index.d.mts +5 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/index.js +11 -0
- package/dist/styles/index.mjs +11 -0
- package/dist/styles/theme.css +115 -0
- package/dist/styling.d.mts +5 -53
- package/dist/styling.d.ts +5 -53
- package/dist/styling.js +26 -31
- package/dist/styling.mjs +23 -28
- package/dist/types.d.mts +2 -1
- package/dist/types.d.ts +2 -1
- package/dist/util/index.d.mts +6 -3
- package/dist/util/index.d.ts +6 -3
- package/dist/util/index.js +5 -2
- package/dist/util/index.mjs +4 -1
- package/package.json +29 -9
- package/dist/chunk-6XOE7F7U.mjs +0 -216
- package/dist/chunk-ZHJBPEPY.js +0 -216
package/dist/chunk-6XOE7F7U.mjs
DELETED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
usePreferredColorScheme
|
|
3
|
-
} from "./chunk-PTANIWKR.mjs";
|
|
4
|
-
|
|
5
|
-
// src/styling.tsx
|
|
6
|
-
import {
|
|
7
|
-
createGlobalStyle,
|
|
8
|
-
css,
|
|
9
|
-
ThemeProvider
|
|
10
|
-
} from "styled-components";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
var GlobalStyle = createGlobalStyle`
|
|
13
|
-
body {
|
|
14
|
-
&.touch-mode * {
|
|
15
|
-
cursor: none !important;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
var DARK_THEME = {
|
|
20
|
-
pageBg: "#333",
|
|
21
|
-
colorGreen: "#98c379",
|
|
22
|
-
colorRed: "#e06c75",
|
|
23
|
-
colorAmber: "#d19a66",
|
|
24
|
-
bgDark1: "#252524",
|
|
25
|
-
bg: "#2a2a2b",
|
|
26
|
-
bgLight1: "#353638",
|
|
27
|
-
borderDark: "#151516",
|
|
28
|
-
borderLight: "#1c1d1d",
|
|
29
|
-
borderLighter: "#252524",
|
|
30
|
-
borderLighterer: "#6b6b67",
|
|
31
|
-
hint: "#4286f4",
|
|
32
|
-
hintRGB: "66, 134, 244",
|
|
33
|
-
hintDark1: "#2a77f3",
|
|
34
|
-
textNormal: "#F3F3F5",
|
|
35
|
-
textActive: "#ffffff",
|
|
36
|
-
textMuted: "#777777",
|
|
37
|
-
shadows: {
|
|
38
|
-
boxShadowInset: "inset 0px 0px 8px 0px rgba(0, 0, 0, 0.3)",
|
|
39
|
-
textShadow: "0 -1px rgba(0, 0, 0, 0.7)",
|
|
40
|
-
textShadowActive: "0 -1px rgba(0, 0, 0, 0.4)"
|
|
41
|
-
},
|
|
42
|
-
gradients: {
|
|
43
|
-
button: "linear-gradient(to bottom, #4f5053, #343436)",
|
|
44
|
-
buttonHover: "linear-gradient(to bottom, #5e6064, #393a3b)",
|
|
45
|
-
buttonActive: "linear-gradient(to bottom, #242525, #37383a)",
|
|
46
|
-
buttonPressedHover: "linear-gradient(to bottom, #282929, #414243)",
|
|
47
|
-
hintPressed: "linear-gradient(to bottom,#2a77f3,#4286f4)"
|
|
48
|
-
},
|
|
49
|
-
sizingPx: {
|
|
50
|
-
spacing: 15,
|
|
51
|
-
unitHeight: 40
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var LIGHT_THEME = {
|
|
55
|
-
pageBg: "#f8f9fa",
|
|
56
|
-
colorGreen: "#22863a",
|
|
57
|
-
colorRed: "#d73a49",
|
|
58
|
-
colorAmber: "#b08800",
|
|
59
|
-
bgDark1: "#e9ecef",
|
|
60
|
-
bg: "#ffffff",
|
|
61
|
-
bgLight1: "#f5f5f5",
|
|
62
|
-
borderDark: "#c7c7c7",
|
|
63
|
-
borderLight: "#d7d7d7",
|
|
64
|
-
borderLighter: "#eaecef",
|
|
65
|
-
borderLighterer: "#f6f8fa",
|
|
66
|
-
hint: "#4286f4",
|
|
67
|
-
hintRGB: "0, 92, 197",
|
|
68
|
-
hintDark1: "#2a77f3",
|
|
69
|
-
textNormal: "#24292e",
|
|
70
|
-
textActive: "#202020",
|
|
71
|
-
textMuted: "#6a737d",
|
|
72
|
-
shadows: {
|
|
73
|
-
boxShadowInset: "inset 0px 0px 8px 0px rgba(0, 0, 0, 0.05)",
|
|
74
|
-
textShadow: "0 1px rgba(255, 255, 255, 0.7)",
|
|
75
|
-
textShadowActive: "0 1px rgba(255, 255, 255, 0.4)"
|
|
76
|
-
},
|
|
77
|
-
gradients: {
|
|
78
|
-
button: "linear-gradient(to bottom, #e1e4e8, #d1d5da)",
|
|
79
|
-
buttonHover: "linear-gradient(to bottom, #d1d5da, #c1c6cc)",
|
|
80
|
-
buttonActive: "linear-gradient(to bottom, #b1b6bc, #d2d6da)",
|
|
81
|
-
buttonPressedHover: "linear-gradient(to bottom, #a1a6ac, #91969c)",
|
|
82
|
-
hintPressed: "linear-gradient(to bottom, #438bff, #85b3ff)"
|
|
83
|
-
},
|
|
84
|
-
sizingPx: DARK_THEME.sizingPx
|
|
85
|
-
};
|
|
86
|
-
var BaseStyle = createGlobalStyle`
|
|
87
|
-
* {
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
body {
|
|
92
|
-
background: ${(p) => p.theme.pageBg};
|
|
93
|
-
margin: 0;
|
|
94
|
-
padding: 0;
|
|
95
|
-
font-size: 14px;
|
|
96
|
-
font-family: sans-serif;
|
|
97
|
-
}
|
|
98
|
-
`;
|
|
99
|
-
var buttonStateNormal = css`
|
|
100
|
-
color: ${(p) => p.theme.textNormal};
|
|
101
|
-
background: ${(p) => p.theme.gradients.button};
|
|
102
|
-
text-shadow: ${(p) => p.theme.shadows.textShadow};
|
|
103
|
-
box-shadow:
|
|
104
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.15),
|
|
105
|
-
0 1px 0 0 rgba(0, 0, 0, 0.25);
|
|
106
|
-
`;
|
|
107
|
-
var buttonStateNormalHover = css`
|
|
108
|
-
color: ${(p) => p.theme.textNormal};
|
|
109
|
-
outline-color: rgba(243, 243, 245, 0.3);
|
|
110
|
-
background: ${(p) => p.theme.gradients.buttonHover};
|
|
111
|
-
text-shadow: ${(p) => p.theme.shadows.textShadow};
|
|
112
|
-
`;
|
|
113
|
-
var buttonStateNormalActive = css`
|
|
114
|
-
color: ${(p) => p.theme.textNormal};
|
|
115
|
-
outline-color: rgba(255, 255, 255, 0.3);
|
|
116
|
-
background: ${(p) => p.theme.gradients.buttonActive};
|
|
117
|
-
text-shadow: ${(p) => p.theme.shadows.textShadowActive};
|
|
118
|
-
box-shadow:
|
|
119
|
-
inset 0 1px 2px rgba(0, 0, 0, 0.2),
|
|
120
|
-
0 1px 0 0 rgba(255, 255, 255, 0.15);
|
|
121
|
-
transition-duration: 50ms;
|
|
122
|
-
`;
|
|
123
|
-
var buttonStatePressed = css`
|
|
124
|
-
${buttonStateNormalActive}
|
|
125
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(255,255,255,0.15);
|
|
126
|
-
`;
|
|
127
|
-
var buttonStatePressedHover = css`
|
|
128
|
-
${buttonStateNormalActive}
|
|
129
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(255,255,255,0.15);
|
|
130
|
-
background: ${(p) => p.theme.gradients.buttonPressedHover};
|
|
131
|
-
`;
|
|
132
|
-
var buttonStatePressedActive = buttonStateNormalActive;
|
|
133
|
-
var buttonStateDisabled = css`
|
|
134
|
-
${buttonStateNormal}
|
|
135
|
-
|
|
136
|
-
cursor: default;
|
|
137
|
-
background: ${(p) => p.theme.bg} !important;
|
|
138
|
-
color: rgba(${(p) => p.theme.textNormal}, 0.4);
|
|
139
|
-
`;
|
|
140
|
-
var button = css`
|
|
141
|
-
position: relative;
|
|
142
|
-
box-sizing: border-box;
|
|
143
|
-
cursor: pointer;
|
|
144
|
-
transition: all 200ms;
|
|
145
|
-
border-radius: 3px;
|
|
146
|
-
border: 1px solid ${(p) => p.theme.borderDark};
|
|
147
|
-
overflow: hidden;
|
|
148
|
-
display: flex;
|
|
149
|
-
justify-content: center;
|
|
150
|
-
align-items: center;
|
|
151
|
-
outline-color: transparent;
|
|
152
|
-
${buttonStateNormal}
|
|
153
|
-
|
|
154
|
-
&:hover {
|
|
155
|
-
${buttonStateNormalHover}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&:active {
|
|
159
|
-
${buttonStateNormalActive}
|
|
160
|
-
}
|
|
161
|
-
`;
|
|
162
|
-
var buttonPressed = css`
|
|
163
|
-
${buttonStatePressed}
|
|
164
|
-
|
|
165
|
-
&:hover {
|
|
166
|
-
${buttonStatePressedHover}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&:active {
|
|
170
|
-
${buttonStatePressedActive}
|
|
171
|
-
}
|
|
172
|
-
`;
|
|
173
|
-
var buttonDisabled = css`
|
|
174
|
-
${buttonStateDisabled}
|
|
175
|
-
|
|
176
|
-
&:hover, &:active {
|
|
177
|
-
${buttonStateDisabled}
|
|
178
|
-
}
|
|
179
|
-
`;
|
|
180
|
-
var rectButton = button;
|
|
181
|
-
var touchIndicatorNormal = css`
|
|
182
|
-
position: absolute;
|
|
183
|
-
top: -6px;
|
|
184
|
-
right: -6px;
|
|
185
|
-
left: -6px;
|
|
186
|
-
bottom: -6px;
|
|
187
|
-
border-radius: 6px;
|
|
188
|
-
border: 2px solid rgba(0, 0, 0, 0);
|
|
189
|
-
background-color: none;
|
|
190
|
-
transition: border-color 300ms;
|
|
191
|
-
`;
|
|
192
|
-
var touchIndicatorTouching = css`
|
|
193
|
-
border-color: ${(p) => p.theme.hint};
|
|
194
|
-
background-color: rgba(${(p) => p.theme.hintRGB}, 0.2);
|
|
195
|
-
transition: border-color 0s;
|
|
196
|
-
`;
|
|
197
|
-
var PreferredThemeProvider = ({ dark, light, children }) => {
|
|
198
|
-
const theme = usePreferredColorScheme();
|
|
199
|
-
return /* @__PURE__ */ jsx(ThemeProvider, { theme: theme === "dark" ? dark : light, children });
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
export {
|
|
203
|
-
GlobalStyle,
|
|
204
|
-
DARK_THEME,
|
|
205
|
-
LIGHT_THEME,
|
|
206
|
-
BaseStyle,
|
|
207
|
-
buttonStateNormal,
|
|
208
|
-
buttonStateNormalHover,
|
|
209
|
-
buttonStateNormalActive,
|
|
210
|
-
buttonPressed,
|
|
211
|
-
buttonDisabled,
|
|
212
|
-
rectButton,
|
|
213
|
-
touchIndicatorNormal,
|
|
214
|
-
touchIndicatorTouching,
|
|
215
|
-
PreferredThemeProvider
|
|
216
|
-
};
|
package/dist/chunk-ZHJBPEPY.js
DELETED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkTMN35K5Yjs = require('./chunk-TMN35K5Y.js');
|
|
4
|
-
|
|
5
|
-
// src/styling.tsx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _styledcomponents = require('styled-components');
|
|
11
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
12
|
-
var GlobalStyle = _styledcomponents.createGlobalStyle`
|
|
13
|
-
body {
|
|
14
|
-
&.touch-mode * {
|
|
15
|
-
cursor: none !important;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
var DARK_THEME = {
|
|
20
|
-
pageBg: "#333",
|
|
21
|
-
colorGreen: "#98c379",
|
|
22
|
-
colorRed: "#e06c75",
|
|
23
|
-
colorAmber: "#d19a66",
|
|
24
|
-
bgDark1: "#252524",
|
|
25
|
-
bg: "#2a2a2b",
|
|
26
|
-
bgLight1: "#353638",
|
|
27
|
-
borderDark: "#151516",
|
|
28
|
-
borderLight: "#1c1d1d",
|
|
29
|
-
borderLighter: "#252524",
|
|
30
|
-
borderLighterer: "#6b6b67",
|
|
31
|
-
hint: "#4286f4",
|
|
32
|
-
hintRGB: "66, 134, 244",
|
|
33
|
-
hintDark1: "#2a77f3",
|
|
34
|
-
textNormal: "#F3F3F5",
|
|
35
|
-
textActive: "#ffffff",
|
|
36
|
-
textMuted: "#777777",
|
|
37
|
-
shadows: {
|
|
38
|
-
boxShadowInset: "inset 0px 0px 8px 0px rgba(0, 0, 0, 0.3)",
|
|
39
|
-
textShadow: "0 -1px rgba(0, 0, 0, 0.7)",
|
|
40
|
-
textShadowActive: "0 -1px rgba(0, 0, 0, 0.4)"
|
|
41
|
-
},
|
|
42
|
-
gradients: {
|
|
43
|
-
button: "linear-gradient(to bottom, #4f5053, #343436)",
|
|
44
|
-
buttonHover: "linear-gradient(to bottom, #5e6064, #393a3b)",
|
|
45
|
-
buttonActive: "linear-gradient(to bottom, #242525, #37383a)",
|
|
46
|
-
buttonPressedHover: "linear-gradient(to bottom, #282929, #414243)",
|
|
47
|
-
hintPressed: "linear-gradient(to bottom,#2a77f3,#4286f4)"
|
|
48
|
-
},
|
|
49
|
-
sizingPx: {
|
|
50
|
-
spacing: 15,
|
|
51
|
-
unitHeight: 40
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var LIGHT_THEME = {
|
|
55
|
-
pageBg: "#f8f9fa",
|
|
56
|
-
colorGreen: "#22863a",
|
|
57
|
-
colorRed: "#d73a49",
|
|
58
|
-
colorAmber: "#b08800",
|
|
59
|
-
bgDark1: "#e9ecef",
|
|
60
|
-
bg: "#ffffff",
|
|
61
|
-
bgLight1: "#f5f5f5",
|
|
62
|
-
borderDark: "#c7c7c7",
|
|
63
|
-
borderLight: "#d7d7d7",
|
|
64
|
-
borderLighter: "#eaecef",
|
|
65
|
-
borderLighterer: "#f6f8fa",
|
|
66
|
-
hint: "#4286f4",
|
|
67
|
-
hintRGB: "0, 92, 197",
|
|
68
|
-
hintDark1: "#2a77f3",
|
|
69
|
-
textNormal: "#24292e",
|
|
70
|
-
textActive: "#202020",
|
|
71
|
-
textMuted: "#6a737d",
|
|
72
|
-
shadows: {
|
|
73
|
-
boxShadowInset: "inset 0px 0px 8px 0px rgba(0, 0, 0, 0.05)",
|
|
74
|
-
textShadow: "0 1px rgba(255, 255, 255, 0.7)",
|
|
75
|
-
textShadowActive: "0 1px rgba(255, 255, 255, 0.4)"
|
|
76
|
-
},
|
|
77
|
-
gradients: {
|
|
78
|
-
button: "linear-gradient(to bottom, #e1e4e8, #d1d5da)",
|
|
79
|
-
buttonHover: "linear-gradient(to bottom, #d1d5da, #c1c6cc)",
|
|
80
|
-
buttonActive: "linear-gradient(to bottom, #b1b6bc, #d2d6da)",
|
|
81
|
-
buttonPressedHover: "linear-gradient(to bottom, #a1a6ac, #91969c)",
|
|
82
|
-
hintPressed: "linear-gradient(to bottom, #438bff, #85b3ff)"
|
|
83
|
-
},
|
|
84
|
-
sizingPx: DARK_THEME.sizingPx
|
|
85
|
-
};
|
|
86
|
-
var BaseStyle = _styledcomponents.createGlobalStyle`
|
|
87
|
-
* {
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
body {
|
|
92
|
-
background: ${(p) => p.theme.pageBg};
|
|
93
|
-
margin: 0;
|
|
94
|
-
padding: 0;
|
|
95
|
-
font-size: 14px;
|
|
96
|
-
font-family: sans-serif;
|
|
97
|
-
}
|
|
98
|
-
`;
|
|
99
|
-
var buttonStateNormal = _styledcomponents.css`
|
|
100
|
-
color: ${(p) => p.theme.textNormal};
|
|
101
|
-
background: ${(p) => p.theme.gradients.button};
|
|
102
|
-
text-shadow: ${(p) => p.theme.shadows.textShadow};
|
|
103
|
-
box-shadow:
|
|
104
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.15),
|
|
105
|
-
0 1px 0 0 rgba(0, 0, 0, 0.25);
|
|
106
|
-
`;
|
|
107
|
-
var buttonStateNormalHover = _styledcomponents.css`
|
|
108
|
-
color: ${(p) => p.theme.textNormal};
|
|
109
|
-
outline-color: rgba(243, 243, 245, 0.3);
|
|
110
|
-
background: ${(p) => p.theme.gradients.buttonHover};
|
|
111
|
-
text-shadow: ${(p) => p.theme.shadows.textShadow};
|
|
112
|
-
`;
|
|
113
|
-
var buttonStateNormalActive = _styledcomponents.css`
|
|
114
|
-
color: ${(p) => p.theme.textNormal};
|
|
115
|
-
outline-color: rgba(255, 255, 255, 0.3);
|
|
116
|
-
background: ${(p) => p.theme.gradients.buttonActive};
|
|
117
|
-
text-shadow: ${(p) => p.theme.shadows.textShadowActive};
|
|
118
|
-
box-shadow:
|
|
119
|
-
inset 0 1px 2px rgba(0, 0, 0, 0.2),
|
|
120
|
-
0 1px 0 0 rgba(255, 255, 255, 0.15);
|
|
121
|
-
transition-duration: 50ms;
|
|
122
|
-
`;
|
|
123
|
-
var buttonStatePressed = _styledcomponents.css`
|
|
124
|
-
${buttonStateNormalActive}
|
|
125
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(255,255,255,0.15);
|
|
126
|
-
`;
|
|
127
|
-
var buttonStatePressedHover = _styledcomponents.css`
|
|
128
|
-
${buttonStateNormalActive}
|
|
129
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(255,255,255,0.15);
|
|
130
|
-
background: ${(p) => p.theme.gradients.buttonPressedHover};
|
|
131
|
-
`;
|
|
132
|
-
var buttonStatePressedActive = buttonStateNormalActive;
|
|
133
|
-
var buttonStateDisabled = _styledcomponents.css`
|
|
134
|
-
${buttonStateNormal}
|
|
135
|
-
|
|
136
|
-
cursor: default;
|
|
137
|
-
background: ${(p) => p.theme.bg} !important;
|
|
138
|
-
color: rgba(${(p) => p.theme.textNormal}, 0.4);
|
|
139
|
-
`;
|
|
140
|
-
var button = _styledcomponents.css`
|
|
141
|
-
position: relative;
|
|
142
|
-
box-sizing: border-box;
|
|
143
|
-
cursor: pointer;
|
|
144
|
-
transition: all 200ms;
|
|
145
|
-
border-radius: 3px;
|
|
146
|
-
border: 1px solid ${(p) => p.theme.borderDark};
|
|
147
|
-
overflow: hidden;
|
|
148
|
-
display: flex;
|
|
149
|
-
justify-content: center;
|
|
150
|
-
align-items: center;
|
|
151
|
-
outline-color: transparent;
|
|
152
|
-
${buttonStateNormal}
|
|
153
|
-
|
|
154
|
-
&:hover {
|
|
155
|
-
${buttonStateNormalHover}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&:active {
|
|
159
|
-
${buttonStateNormalActive}
|
|
160
|
-
}
|
|
161
|
-
`;
|
|
162
|
-
var buttonPressed = _styledcomponents.css`
|
|
163
|
-
${buttonStatePressed}
|
|
164
|
-
|
|
165
|
-
&:hover {
|
|
166
|
-
${buttonStatePressedHover}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&:active {
|
|
170
|
-
${buttonStatePressedActive}
|
|
171
|
-
}
|
|
172
|
-
`;
|
|
173
|
-
var buttonDisabled = _styledcomponents.css`
|
|
174
|
-
${buttonStateDisabled}
|
|
175
|
-
|
|
176
|
-
&:hover, &:active {
|
|
177
|
-
${buttonStateDisabled}
|
|
178
|
-
}
|
|
179
|
-
`;
|
|
180
|
-
var rectButton = button;
|
|
181
|
-
var touchIndicatorNormal = _styledcomponents.css`
|
|
182
|
-
position: absolute;
|
|
183
|
-
top: -6px;
|
|
184
|
-
right: -6px;
|
|
185
|
-
left: -6px;
|
|
186
|
-
bottom: -6px;
|
|
187
|
-
border-radius: 6px;
|
|
188
|
-
border: 2px solid rgba(0, 0, 0, 0);
|
|
189
|
-
background-color: none;
|
|
190
|
-
transition: border-color 300ms;
|
|
191
|
-
`;
|
|
192
|
-
var touchIndicatorTouching = _styledcomponents.css`
|
|
193
|
-
border-color: ${(p) => p.theme.hint};
|
|
194
|
-
background-color: rgba(${(p) => p.theme.hintRGB}, 0.2);
|
|
195
|
-
transition: border-color 0s;
|
|
196
|
-
`;
|
|
197
|
-
var PreferredThemeProvider = ({ dark, light, children }) => {
|
|
198
|
-
const theme = _chunkTMN35K5Yjs.usePreferredColorScheme.call(void 0, );
|
|
199
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _styledcomponents.ThemeProvider, { theme: theme === "dark" ? dark : light, children });
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
exports.GlobalStyle = GlobalStyle; exports.DARK_THEME = DARK_THEME; exports.LIGHT_THEME = LIGHT_THEME; exports.BaseStyle = BaseStyle; exports.buttonStateNormal = buttonStateNormal; exports.buttonStateNormalHover = buttonStateNormalHover; exports.buttonStateNormalActive = buttonStateNormalActive; exports.buttonPressed = buttonPressed; exports.buttonDisabled = buttonDisabled; exports.rectButton = rectButton; exports.touchIndicatorNormal = touchIndicatorNormal; exports.touchIndicatorTouching = touchIndicatorTouching; exports.PreferredThemeProvider = PreferredThemeProvider;
|