From 9cc03b9086340485ddbe9a9498619a27836ba9b5 Mon Sep 17 00:00:00 2001 From: OfficialDakari Date: Fri, 4 Apr 2025 18:41:12 +0500 Subject: [PATCH] gfdgfd --- src/components/Typography.tsx | 9 +++++ src/index.ts | 75 +++++++++++++++++++++-------------- 2 files changed, 55 insertions(+), 29 deletions(-) diff --git a/src/components/Typography.tsx b/src/components/Typography.tsx index 9ca1d6a..3ab3fb2 100644 --- a/src/components/Typography.tsx +++ b/src/components/Typography.tsx @@ -63,6 +63,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-headline-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} @@ -82,6 +83,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-headline-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} @@ -101,6 +103,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-headline-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} @@ -120,6 +123,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-headline-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} @@ -139,6 +143,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-headline-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} @@ -158,6 +163,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-headline-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} @@ -177,6 +183,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-body-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} @@ -196,6 +203,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-body-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} @@ -215,6 +223,7 @@ export const Typography = ({ children, variant = "span", className, color = "", fontFamily: `var(--md-sys-typescale-label-${sz}-font)`, textAlign: align, whiteSpace: noWrap ? "nowrap" : "normal", + margin: 0, ...style, }} id={id} diff --git a/src/index.ts b/src/index.ts index 7da2bb5..1617c38 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,36 +1,53 @@ import React from "react"; + +import { Switch } from "./components/Switch"; +import { AppBar } from "./components/AppBar"; +import { Box } from "./components/Box"; +import { Button } from "./components/Button"; +import { Checkbox } from "./components/Checkbox"; +import { AssistChip, ChipSet, FilterChip, InputChip } from "./components/Chip"; +import { CircularProgress } from "./components/CircularProgress"; +import { Dialog, DialogActions, DialogContent, DialogTitle } from "./components/Dialog"; import { Divider } from "./components/Divider"; +import { Select } from "./components/Dropdown"; +import { FAB, BrandedFAB } from "./components/FloatingActionButton"; +import { IconButton } from "./components/IconButton"; import { Link } from "./components/Link"; +import { List } from "./components/List"; +import { Menu } from "./components/Menu"; +import { Paper } from "./components/Paper"; +import { Radio } from "./components/RadioButton"; +import { Slider } from "./components/Slider"; +import { Tabs, Tab } from "./components/Tabs"; +import { TextField } from "./components/TextField"; +import { Typography } from "./components/Typography"; + +import { createTheme } from "./utils/theme"; +import { useTheme, ThemeProvider, usePalette } from "./hooks/useTheme"; -export { TextField } from "./components/TextField"; -export { Button } from "./components/Button"; -export { Checkbox } from "./components/Checkbox"; -export { Radio } from "./components/RadioButton"; -export { Select } from "./components/Dropdown"; -export { Switch } from "./components/Switch"; -export { Slider } from "./components/Slider"; -export { Dialog } from "./components/Dialog"; -export { List } from "./components/List"; -export { Box } from "./components/Box"; -export { Typography } from "./components/Typography"; -export { IconButton } from "./components/IconButton"; -export { ChipSet, AssistChip, FilterChip, InputChip } from "./components/Chip"; -export { FAB, BrandedFAB } from "./components/FloatingActionButton"; -export { Tabs, Tab } from "./components/Tabs"; -export { CircularProgress } from "./components/CircularProgress"; -export { Menu } from "./components/Menu"; -export { Paper } from "./components/Paper"; -export { FormLabel } from "./components/Forms"; -export { AppBar } from "./components/AppBar"; export { + Switch, + AppBar, + Box, + Button, + Checkbox, + AssistChip, ChipSet, FilterChip, InputChip, + CircularProgress, + Dialog, DialogActions, DialogContent, DialogTitle, Divider, + Select, + FAB, BrandedFAB, + IconButton, Link, -}; - -console.log(`Divider: `, Divider); -console.log(`Link: `, Link); - -export { ThemeProvider } from "./hooks/useTheme"; -export { useTheme } from "./hooks/useTheme"; -export { usePalette } from "./hooks/useTheme"; -export { createTheme } from "./utils/theme"; \ No newline at end of file + List, + Menu, + Paper, + Radio, + Slider, + Tabs, Tab, + TextField, + Typography, + createTheme, + useTheme, + ThemeProvider, usePalette +}; \ No newline at end of file