Skip to content

Commit 0b567a9

Browse files
thetarnavgithub-actions[bot]
authored andcommitted
Format
1 parent 7862d49 commit 0b567a9

File tree

11 files changed

+16
-16
lines changed

11 files changed

+16
-16
lines changed

packages/flux-store/dev/components/BoxesDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const BoxesDemo = (props: BoxesDemoArgs) => {
2020
<>
2121
<div
2222
{...props}
23-
class="min-h-80 flex w-80 flex-row flex-wrap justify-around gap-3"
23+
class="flex min-h-80 w-80 flex-row flex-wrap justify-around gap-3"
2424
style={{
2525
...((props.style as JSX.CSSProperties) || []),
2626
}}

packages/mouse/dev/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const App: Component = () => {
4444
<Show when={showContainer()}>
4545
<div
4646
ref={setRef}
47-
class="top-25vh left-25vw w-50vw h-50vh border-1 bg-opacity-15 fixed z-10 overflow-hidden rounded-3xl border-gray-400 border-opacity-40 bg-gray-300 backdrop-blur backdrop-filter"
47+
class="top-25vh left-25vw w-50vw h-50vh border-1 fixed z-10 overflow-hidden rounded-3xl border-gray-400 border-opacity-40 bg-gray-300 bg-opacity-15 backdrop-blur backdrop-filter"
4848
>
4949
<div
5050
class="pointer-events-none h-24 w-24 rounded-full bg-amber-500 bg-opacity-80"

packages/mutation-observer/dev/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const OneParentManyChildren: Component = () => {
108108
</For>
109109
</div>
110110
<p class="text-xs text-gray-500">using {"<For>"}</p>
111-
<div ref={parent} class="max-w-42 min-h-24 flex flex-wrap content-start justify-center gap-4">
111+
<div ref={parent} class="max-w-42 flex min-h-24 flex-wrap content-start justify-center gap-4">
112112
<For each={show()}>
113113
{(show, i) => (
114114
<Show when={show}>
@@ -165,7 +165,7 @@ const OneParentManyChildrenIndex: Component = () => {
165165
</For>
166166
</div>
167167
<p class="caption">using {"<Index>"}</p>
168-
<div ref={parent} class="max-w-42 min-h-24 flex flex-wrap content-start justify-center gap-4">
168+
<div ref={parent} class="max-w-42 flex min-h-24 flex-wrap content-start justify-center gap-4">
169169
<Index each={show()}>
170170
{(show, i) => (
171171
<Show when={show()}>

packages/utils/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const clamp = (n: number, min: number, max: number) => Math.min(Math.max(
104104
* ```
105105
*/
106106
export const access = <T extends MaybeAccessor<any>>(v: T): MaybeAccessorValue<T> =>
107-
typeof v === "function" && !v.length ? v() : v as any;
107+
typeof v === "function" && !v.length ? v() : (v as any);
108108

109109
export const asArray = <T>(value: T): (T extends any[] ? T[number] : NonNullable<T>)[] =>
110110
Array.isArray(value) ? (value as any) : value ? [value as any] : [];
@@ -142,7 +142,7 @@ export function accessWith<T>(
142142
valueOrFn: T,
143143
...args: T extends AnyFunction ? Parameters<T> : never
144144
): T extends AnyFunction ? ReturnType<T> : T {
145-
return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn as any;
145+
return typeof valueOrFn === "function" ? valueOrFn(...args) : (valueOrFn as any);
146146
}
147147

148148
/**

site/src/components/Header/Header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const Header: Component = () => {
163163
</div>
164164
<A href="/">
165165
<img
166-
class="hidden h-[28px] dark:hidden sm:block sm:h-[40px]"
166+
class="hidden h-[28px] sm:block sm:h-[40px] dark:hidden"
167167
src="/img/solid-primitives-logo.svg"
168168
alt=""
169169
/>
@@ -173,12 +173,12 @@ const Header: Component = () => {
173173
alt=""
174174
/>
175175
<img
176-
class="h-[28px] dark:hidden sm:hidden sm:h-[40px]"
176+
class="h-[28px] sm:hidden sm:h-[40px] dark:hidden"
177177
src="/img/solid-primitives-stacked-logo.svg"
178178
alt=""
179179
/>
180180
<img
181-
class="hidden h-[28px] dark:block sm:!hidden sm:h-[40px]"
181+
class="hidden h-[28px] sm:!hidden sm:h-[40px] dark:block"
182182
src="/img/solid-primitives-stacked-dark-logo.svg"
183183
alt=""
184184
/>

site/src/components/Primitives/PrimitiveBtn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const PrimitiveBtn: ParentComponent<{ href: string }> = props => {
55
return (
66
<A
77
href={`/package/${props.href}`}
8-
class="flex-shrink-0 rounded-md px-2 text-[14px] font-semibold text-[#063983] transition-colors hover:bg-[#d0e4ff87] hover:text-[#00275f] dark:text-[#d0dff2] dark:hover:bg-[#566e8e87] dark:hover:text-[#eff6ff] sm:text-base"
8+
class="flex-shrink-0 rounded-md px-2 text-[14px] font-semibold text-[#063983] transition-colors hover:bg-[#d0e4ff87] hover:text-[#00275f] sm:text-base dark:text-[#d0dff2] dark:hover:bg-[#566e8e87] dark:hover:text-[#eff6ff]"
99
>
1010
{props.children}
1111
</A>

site/src/components/Primitives/StageBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const StageBadge: ParentComponent<{
8181
<button
8282
data-stage
8383
class={
84-
"flex h-[28px] w-[25px] items-center justify-center rounded-md border-2 border-[rgba(0,0,0,0.15)] font-sans transition-[border-color,filter] hover:border-black/40 hover:brightness-110 dark:border-black/20 dark:hover:border-black/60 sm:w-[32.25px] " +
84+
"flex h-[28px] w-[25px] items-center justify-center rounded-md border-2 border-[rgba(0,0,0,0.15)] font-sans transition-[border-color,filter] hover:border-black/40 hover:brightness-110 sm:w-[32.25px] dark:border-black/20 dark:hover:border-black/60 " +
8585
classStageColor(level)
8686
}
8787
ref={menuButton}

site/src/components/Search/Search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const Search: Component<{
168168
<li>
169169
<A
170170
href={`/package/${match.name.toLowerCase()}#${primitive.toLowerCase()}`}
171-
class="[&>mark]:background-[linear-gradient(0deg,#ffaf1d,#ffaf1d)_center_/_100%_75%_no-repeat] inline-block rounded-md bg-[#e6f0ff] px-2 py-[2px] text-[14px] font-semibold text-[#063983] transition-colors hover:text-black dark:bg-[#30455b] dark:text-[#b9d6ff] dark:hover:text-[#fff] sm:text-base"
171+
class="[&>mark]:background-[linear-gradient(0deg,#ffaf1d,#ffaf1d)_center_/_100%_75%_no-repeat] inline-block rounded-md bg-[#e6f0ff] px-2 py-[2px] text-[14px] font-semibold text-[#063983] transition-colors hover:text-black sm:text-base dark:bg-[#30455b] dark:text-[#b9d6ff] dark:hover:text-[#fff]"
172172
>
173173
{highlight(primitive)}
174174
</A>
@@ -205,7 +205,7 @@ const Search: Component<{
205205
<For each={match.tags}>
206206
{item => (
207207
<li>
208-
<span class="text-[12px] text-slate-500 dark:text-slate-400 sm:text-[14px]">
208+
<span class="text-[12px] text-slate-500 sm:text-[14px] dark:text-slate-400">
209209
<span class="opacity-50">{"#"}</span>
210210
{highlight(item)}
211211
</span>

site/src/components/Search/SearchBtn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { focusSearchInput } from "./Search.js";
66
const SearchBtn: Component<{ ref: HTMLButtonElement }> = props => {
77
return (
88
<button
9-
class="xs:w-[250px] flex items-center rounded-md border-2 border-[#bdd3f2] bg-white px-2 py-2 font-sans text-[#306FC4] hover:bg-[#f4f9ff] hover:text-[#063983] dark:border-[#59728d] dark:bg-[#293742] dark:text-[#c2d5ee] dark:hover:bg-[#394e5d] lg:w-[350px]"
9+
class="xs:w-[250px] flex items-center rounded-md border-2 border-[#bdd3f2] bg-white px-2 py-2 font-sans text-[#306FC4] hover:bg-[#f4f9ff] hover:text-[#063983] lg:w-[350px] dark:border-[#59728d] dark:bg-[#293742] dark:text-[#c2d5ee] dark:hover:bg-[#394e5d]"
1010
onClick={() => isIOS && focusSearchInput()}
1111
ref={props.ref}
1212
>

site/src/routes/package/[name]/(package).tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const Page: Component = () => {
6565
style={{ "padding-top": `${PRIMITIVE_PAGE_PADDING_TOP}px` }}
6666
>
6767
<div class="bg-page-main-bg rounded-3xl p-3 sm:p-8">
68-
<div class="mb-[90px] flex items-center justify-between gap-[30px] text-[#232324] dark:text-white sm:gap-[100px]">
68+
<div class="mb-[90px] flex items-center justify-between gap-[30px] text-[#232324] sm:gap-[100px] dark:text-white">
6969
<Heading name={data.name} formattedName={formattedName()} />
7070
</div>
7171

0 commit comments

Comments
 (0)