Skip to content

Commit

Permalink
style: adds styles for rating rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamilenkovic committed Apr 22, 2024
1 parent 62725f3 commit ab5f882
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 98 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@formkit/addons": "latest",
"@formkit/barcode": "latest",
"@formkit/icons": "latest",
"@formkit/pro": "^0.122.14",
"@formkit/pro": "0.122.16-b9c1fd1",
"@formkit/theme-editor": "latest",
"@formkit/vue": "latest",
"@typescript-eslint/eslint-plugin": "^6.21.0",
Expand Down
160 changes: 80 additions & 80 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { FormKitKitchenSink } from "@formkit/vue";

<template>
<Suspense>
<FormKitKitchenSink />
<FormKitKitchenSink :schemas="['rating']" />
</Suspense>
</template>
54 changes: 38 additions & 16 deletions src/inputs/pro/rating.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,54 @@
export default {
inner: `
flex
w-[130px]
items-center
relative
text-neutral-400
`,
itemsWrapper: `
w-full
relative
inline-flex
focus:border-neutral-400
`,
onItems: `
text-yellow-400
onItemRow: `
h-full
w-full
`,
offItems: `
text-$colorTemperature-400
offItemRow: `
h-full
w-full
`,
onItemWrapper: `
[&>*]:w-full
[&>*]:h-auto
[&>*]:max-w-none
[&>*]:max-h-none
[&>*]:h-full
w-full
h-full
text-yellow-400
`,
offItemWrapper: `
text-$colorTemperature-400
w-full
h-full
[&>*]:w-full
[&>*]:h-auto
[&>*]:max-w-none
[&>*]:max-h-none
[&>*]:h-full
`,
ratingItem: `
relative
focus-within:outline
w-[1.5em]
h-[1.5em]
`,
itemLabelInner: `
h-px
w-px
overflow-hidden
absolute
white-space-nowrap
`,
itemLabel: `
absolute
h-full
`,
ratingIcon: `
w-full
w-[1.5em]
h-[1.5em]
flex
`,
};

0 comments on commit ab5f882

Please sign in to comment.