mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: classic styled components
This commit is contained in:
1 parent
83aeca2e5e
commit
a66c6ebb27
29 files changed
+41
-19
No files matched your search
@@ -7,7 +7,7 @@ export function Boolean({ configKey }: EmbedPreviewControllerProps) {
|
||||
|
||||
return (
|
||||
<Switch
|
||||
variant="soft"
|
||||
variant="classic"
|
||||
checked={EmbedState.use((state) => state[configKey] as boolean)}
|
||||
onCheckedChange={() => {
|
||||
mutateEmbedState((draft) => {
|
||||
|
||||
@@ -25,7 +25,7 @@ export function ColorControllerRaw({
|
||||
}}
|
||||
/>
|
||||
<Slider
|
||||
variant="soft"
|
||||
variant="classic"
|
||||
min={0}
|
||||
max={255}
|
||||
value={[alpha]}
|
||||
|
||||
@@ -25,7 +25,8 @@ export function Enum({
|
||||
});
|
||||
}}
|
||||
>
|
||||
<Select.Trigger />
|
||||
<Select.Trigger variant="classic" />
|
||||
|
||||
<Select.Content>
|
||||
{config.options.map((option) => (
|
||||
<Select.Item key={option.value} value={option.value}>
|
||||
|
||||
@@ -92,6 +92,7 @@ export function GenerateURL({ embed }: GenerateURLProps) {
|
||||
</Flex>
|
||||
|
||||
<TextField.Root
|
||||
variant="classic"
|
||||
mt="4"
|
||||
style={{ width: '20rem' }}
|
||||
placeholder={strings.website.common.player_search.hint}
|
||||
|
||||
@@ -52,6 +52,7 @@ export function Import() {
|
||||
|
||||
<Flex gap="2" mb="6">
|
||||
<TextField.Root
|
||||
variant="classic"
|
||||
ref={importInput}
|
||||
placeholder={strings.website.tools.embed.configuration.import.hint}
|
||||
style={{ flex: 1 }}
|
||||
|
||||
@@ -7,7 +7,7 @@ export function Radius({ configKey }: EmbedPreviewControllerProps) {
|
||||
|
||||
return (
|
||||
<Slider
|
||||
variant="soft"
|
||||
variant="classic"
|
||||
min={0}
|
||||
max={5}
|
||||
value={[
|
||||
|
||||
@@ -40,7 +40,7 @@ export function RichText({ configKey }: EmbedPreviewControllerProps) {
|
||||
<FontSizeIcon width="1em" height="1em" />
|
||||
</Text>
|
||||
<Slider
|
||||
variant="soft"
|
||||
variant="classic"
|
||||
min={1}
|
||||
max={9}
|
||||
value={[Number(state.size)]}
|
||||
@@ -61,7 +61,7 @@ export function RichText({ configKey }: EmbedPreviewControllerProps) {
|
||||
<FontBoldIcon width="1em" height="1em" />
|
||||
</Text>
|
||||
<Slider
|
||||
variant="soft"
|
||||
variant="classic"
|
||||
min={0}
|
||||
max={radixTextWeights.length - 1}
|
||||
value={[radixTextWeights.indexOf(state.weight)]}
|
||||
|
||||
@@ -7,7 +7,7 @@ export function Size({ configKey }: EmbedPreviewControllerProps) {
|
||||
|
||||
return (
|
||||
<Slider
|
||||
variant="soft"
|
||||
variant="classic"
|
||||
min={0}
|
||||
max={9}
|
||||
value={[
|
||||
|
||||
@@ -7,7 +7,7 @@ export function SizeWithout0({ configKey }: EmbedPreviewControllerProps) {
|
||||
|
||||
return (
|
||||
<Slider
|
||||
variant="soft"
|
||||
variant="classic"
|
||||
min={1}
|
||||
max={9}
|
||||
value={[
|
||||
|
||||
@@ -16,7 +16,7 @@ export function Slider({
|
||||
|
||||
return (
|
||||
<RadixSlider
|
||||
variant="soft"
|
||||
variant="classic"
|
||||
min={config.min}
|
||||
max={config.max}
|
||||
value={[
|
||||
|
||||
@@ -7,6 +7,7 @@ export function TextController({ configKey }: EmbedPreviewControllerProps) {
|
||||
|
||||
return (
|
||||
<TextField.Root
|
||||
variant="classic"
|
||||
placeholder="Empty"
|
||||
value={EmbedState.use((state) => state[configKey] as string)}
|
||||
onChange={(event) => {
|
||||
|
||||
Reference in new issue
Block a user