@muffled-ui/react 1.0.21 → 1.0.22

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 CHANGED
@@ -7,30 +7,73 @@
7
7
  [![Build][build-image]][build-url] [![NPM Version][version-image]][version-url] [![License][license-image]][license-url] [![Bundle Size][size-image]][size-url]
8
8
 
9
9
  [build-image]: https://img.shields.io/github/actions/workflow/status/joshbatley/muffled-ui/publish-npm.yml
10
+
10
11
  [build-url]: https://github.com/joshbatley/muffled-ui/actions
12
+
11
13
  [version-image]: https://img.shields.io/npm/v/@muffled-ui/react
14
+
12
15
  [version-url]: https://www.npmjs.com/package/@muffled-ui/react
16
+
13
17
  [license-image]: https://img.shields.io/github/license/joshbatley/muffled-ui
18
+
14
19
  [license-url]: https://github.com/joshbatley/muffled-ui/blob/main/LICENSE
20
+
15
21
  [size-image]: https://img.shields.io/bundlephobia/min/%40muffled-ui%2Freact%40latest
22
+
16
23
  [size-url]: https://bundlephobia.com/package/@muffled-ui/react
17
24
 
18
25
  </div>
19
26
 
20
27
  ## Getting Started
21
28
 
22
- ### Installation methods
29
+ ### Installation
23
30
 
24
- There are a few methods to choose from depending on your usage for muffled-ui
31
+ Follow these steps to add Muffled UI to your React project:
25
32
 
26
- ##### Install tailwind
33
+ #### Install Muffled UI
27
34
 
28
- Follow this official set-up [guide](https://tailwindcss.com/docs/guides/create-react-app) to get tailwind working within your react application.
35
+ ```bash
36
+ # Using npm
37
+ npm install @muffled-ui/react
29
38
 
30
- ##### Install muffled-ui
39
+ # Using yarn
40
+ yarn add @muffled-ui/react
31
41
 
42
+ # Using pnpm
43
+ pnpm add @muffled-ui/react
32
44
  ```
33
- npm/yarn install @muffled-ui/react
45
+
46
+ ### Usage
47
+
48
+ Import and use components in your React application:
49
+
50
+ ```jsx
51
+ import {Button, Card, Input} from '@muffled-ui/react';
52
+
53
+ function MyComponent() {
54
+ return (
55
+ <Card>
56
+ <CardContent>
57
+ <h2>Login Form</h2>
58
+ </CardContent>
59
+ <CardContent>
60
+ <Input
61
+ label="Email"
62
+ placeholder="Enter your email"
63
+ type="email"
64
+ />
65
+ <Input
66
+ label="Password"
67
+ placeholder="Enter your password"
68
+ type="password"
69
+ />
70
+ <Button variant="primary">
71
+ Sign In
72
+ </Button>
73
+ </CardContent>
74
+ </Card>
75
+ );
76
+ }
34
77
  ```
35
78
 
36
79
  ## Package used
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as styled_components from 'styled-components';
2
2
  import { StyledComponent, DefaultTheme } from 'styled-components';
3
- import { LayoutProps, SpaceProps, ColorProps, BoxShadowProps, BorderProps, OrderProps, GridProps, FlexboxProps, PositionProps, TypographyProps as TypographyProps$1 } from 'styled-system';
3
+ import { LayoutProps, SpaceProps, ColorProps, BoxShadowProps, BorderProps, OrderProps, GridProps, FlexboxProps, PositionProps, TypographyProps } from 'styled-system';
4
4
  import * as react from 'react';
5
5
  import { ReactElement } from 'react';
6
6
  import { Placement } from '@popperjs/core';
@@ -168,7 +168,7 @@ declare const AccordionSummary: React.FC<AccordionSummaryProps>;
168
168
  declare const AccordionDetail: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
169
169
  declare const DetailsGrouping: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
170
170
 
171
- type BoxProps = ColorProps & SpaceProps & LayoutProps & BoxShadowProps & BorderProps & OrderProps & GridProps & FlexboxProps & PositionProps & TypographyProps$1 & {
171
+ type BoxProps = ColorProps & SpaceProps & LayoutProps & BoxShadowProps & BorderProps & OrderProps & GridProps & FlexboxProps & PositionProps & TypographyProps & {
172
172
  spaceXBetween?: string | number;
173
173
  spaceYBetween?: string | number;
174
174
  };
@@ -211,6 +211,8 @@ type PaginationProps = {
211
211
  skip: number;
212
212
  itemCount: number;
213
213
  setSkip: (skip: number) => void;
214
+ hidePageSizeControls?: boolean;
215
+ setSize: (size: number) => void;
214
216
  };
215
217
  declare const Pagination: React.FC<PaginationProps>;
216
218
 
@@ -238,20 +240,20 @@ type TableHeadProps = {
238
240
  } & React.ComponentPropsWithRef<'thead'>;
239
241
  declare const TableHead: react.ForwardRefExoticComponent<Omit<TableHeadProps, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
240
242
 
241
- type TypographyProps = {
243
+ type TextProps = {
242
244
  mono?: boolean;
243
- } & ColorProps & TypographyProps$1;
244
- declare const Typography: styled_components.StyledComponent<"p", styled_components.DefaultTheme, TypographyProps, never>;
245
+ } & ColorProps & TypographyProps;
246
+ declare const Text: styled_components.StyledComponent<"p", styled_components.DefaultTheme, TextProps, never>;
245
247
 
246
248
  type HeadingProps = {
247
249
  children?: React.ReactNode;
248
- } & ColorProps & TypographyProps$1 & LayoutProps;
250
+ } & ColorProps & TypographyProps & LayoutProps;
249
251
  declare const Title: styled_components.StyledComponent<"h1", styled_components.DefaultTheme, HeadingProps, never>;
250
252
 
251
253
  type BaseButtonProps = {
252
254
  type?: 'button' | 'reset' | 'submit';
253
255
  as?: AsProp;
254
- } & React.ComponentPropsWithoutRef<'button'> & LayoutProps & BorderProps & PositionProps & ColorProps & SpaceProps & TypographyProps$1 & FlexboxProps & BoxShadowProps;
256
+ } & React.ComponentPropsWithoutRef<'button'> & LayoutProps & BorderProps & PositionProps & ColorProps & SpaceProps & TypographyProps & FlexboxProps & BoxShadowProps;
255
257
 
256
258
  type ButtonProps = {
257
259
  active?: boolean;
@@ -602,6 +604,7 @@ type ColorTheme = {
602
604
  ring: string;
603
605
  offsetBackground: string;
604
606
  offsetForeground: string;
607
+ modalBackdrop: string;
605
608
  };
606
609
 
607
610
  declare const LightTheme: {
@@ -687,4 +690,4 @@ declare const GlobalStyles: styled_components.GlobalStyleComponent<{
687
690
  theme: ColorTheme;
688
691
  }, styled_components.DefaultTheme>;
689
692
 
690
- export { Accordion, AccordionDetail, type AccordionProps, AccordionSummary, Alert, type AlertProps, Backdrop, Badge, type BadgeProps, BasePicker, type BasePickerProps, BaseUploader, type BaseUploaderProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, CardContent, CardMedia, type CardMediaProps, type CardProps, CenteredWidget, Checkbox, type CheckboxPrpos, Chip, type ChipProps, CircleLoader, type CircleLoaderProps, CircleProgress, type CircleProgressProps, ClickOutside, type ClickOutsideProps, ClickableElement, type ClickableElementProps, Collapse, type CollapseProps, Container, DarkTheme, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DestructiveButton, type DestructiveButtonProps, DetailsGrouping, Drawer, type DrawerProps, Fade, type FadeProps, GlobalStyles, Grow, type GrowProps, type HeadingProps, ImageComp, type ImageProps, Input, InputGroup, type InputProps, Label, type LabelProps, LightTheme, LinearLoader, type LinearLoaderProps, LinearProgress, type LinearProgressProps, LinearSlide, type LinearSlideProps, List, ListItem, Menu, MenuItem, type MenuItemProps, type MenuProps, Modal, type ModalProps, MuffledUI, NumberField, type NumberFieldProps, Open, type OpenProps, OrderedList, OutlineButton, type OutlineButtonProps, Pagination, type PaginationProps, Panel, Password, type PasswordProps, Portal, type PortalProps, PrimaryButton, type PrimaryButtonProps, type ProvidedTheme, Radio, RadioIcon, type RadioPrpos, Scrollable, SecondaryButton, type SecondaryButtonProps, Select, SelectButton, type SelectButtonProps, SelectContext, SelectFilter, type SelectFilterProps, SelectItem, type SelectItemProps, SelectList, type SelectProps, SettingsContext, type SettingsCtx, SimpleSelect, type SimpleSelectProps, Skeleton, type SkeletonProps, Slide, type SlideProps, SnackbarContext, SnackbarItem, type SnackbarItemProps, SnackbarProvider, StepIcon, type StepIconProps, StepLabel, type StepLabelProps, Stepper, StepperContext, type StepperProps, Switch, type SwitchProps, SyntaxHighlighter, type SyntaxHighlighterProps, type TTheme, TabItem, type TabItemProps, TabItems, type TabItemsProps, TabPane, TabPaneList, type TabPaneListProps, type TabPaneProps$1 as TabPaneProps, Table, TableBody, TableCell, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TextArea, ThemeButton, type ThemeProviderProps, ThemeSwitch, ThreeColumns, type ThreeColumnsProps, Title, Tooltip, type TooltipProps, TwoColumns, type TwoColumnsProps, Typography, type TypographyProps, UnorderedList, UploadButton, type UploadButtonProps, UploadZone, type UploadZoneProps, clearInputOnSelectItem, stopPropagation, useMuffledSettings, useSelectContext, useSnackbar, useStepperContext };
693
+ export { Accordion, AccordionDetail, type AccordionProps, AccordionSummary, Alert, type AlertProps, Backdrop, Badge, type BadgeProps, BasePicker, type BasePickerProps, BaseUploader, type BaseUploaderProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, CardContent, CardMedia, type CardMediaProps, type CardProps, CenteredWidget, Checkbox, type CheckboxPrpos, Chip, type ChipProps, CircleLoader, type CircleLoaderProps, CircleProgress, type CircleProgressProps, ClickOutside, type ClickOutsideProps, ClickableElement, type ClickableElementProps, Collapse, type CollapseProps, Container, DarkTheme, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DestructiveButton, type DestructiveButtonProps, DetailsGrouping, Drawer, type DrawerProps, Fade, type FadeProps, GlobalStyles, Grow, type GrowProps, type HeadingProps, ImageComp, type ImageProps, Input, InputGroup, type InputProps, Label, type LabelProps, LightTheme, LinearLoader, type LinearLoaderProps, LinearProgress, type LinearProgressProps, LinearSlide, type LinearSlideProps, List, ListItem, Menu, MenuItem, type MenuItemProps, type MenuProps, Modal, type ModalProps, MuffledUI, NumberField, type NumberFieldProps, Open, type OpenProps, OrderedList, OutlineButton, type OutlineButtonProps, Pagination, type PaginationProps, Panel, Password, type PasswordProps, Portal, type PortalProps, PrimaryButton, type PrimaryButtonProps, type ProvidedTheme, Radio, RadioIcon, type RadioPrpos, Scrollable, SecondaryButton, type SecondaryButtonProps, Select, SelectButton, type SelectButtonProps, SelectContext, SelectFilter, type SelectFilterProps, SelectItem, type SelectItemProps, SelectList, type SelectProps, SettingsContext, type SettingsCtx, SimpleSelect, type SimpleSelectProps, Skeleton, type SkeletonProps, Slide, type SlideProps, SnackbarContext, SnackbarItem, type SnackbarItemProps, SnackbarProvider, StepIcon, type StepIconProps, StepLabel, type StepLabelProps, Stepper, StepperContext, type StepperProps, Switch, type SwitchProps, SyntaxHighlighter, type SyntaxHighlighterProps, type TTheme, TabItem, type TabItemProps, TabItems, type TabItemsProps, TabPane, TabPaneList, type TabPaneListProps, type TabPaneProps$1 as TabPaneProps, Table, TableBody, TableCell, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, Text, TextArea, type TextProps, ThemeButton, type ThemeProviderProps, ThemeSwitch, ThreeColumns, type ThreeColumnsProps, Title, Tooltip, type TooltipProps, TwoColumns, type TwoColumnsProps, UnorderedList, UploadButton, type UploadButtonProps, UploadZone, type UploadZoneProps, clearInputOnSelectItem, stopPropagation, useMuffledSettings, useSelectContext, useSnackbar, useStepperContext };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as styled_components from 'styled-components';
2
2
  import { StyledComponent, DefaultTheme } from 'styled-components';
3
- import { LayoutProps, SpaceProps, ColorProps, BoxShadowProps, BorderProps, OrderProps, GridProps, FlexboxProps, PositionProps, TypographyProps as TypographyProps$1 } from 'styled-system';
3
+ import { LayoutProps, SpaceProps, ColorProps, BoxShadowProps, BorderProps, OrderProps, GridProps, FlexboxProps, PositionProps, TypographyProps } from 'styled-system';
4
4
  import * as react from 'react';
5
5
  import { ReactElement } from 'react';
6
6
  import { Placement } from '@popperjs/core';
@@ -168,7 +168,7 @@ declare const AccordionSummary: React.FC<AccordionSummaryProps>;
168
168
  declare const AccordionDetail: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
169
169
  declare const DetailsGrouping: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
170
170
 
171
- type BoxProps = ColorProps & SpaceProps & LayoutProps & BoxShadowProps & BorderProps & OrderProps & GridProps & FlexboxProps & PositionProps & TypographyProps$1 & {
171
+ type BoxProps = ColorProps & SpaceProps & LayoutProps & BoxShadowProps & BorderProps & OrderProps & GridProps & FlexboxProps & PositionProps & TypographyProps & {
172
172
  spaceXBetween?: string | number;
173
173
  spaceYBetween?: string | number;
174
174
  };
@@ -211,6 +211,8 @@ type PaginationProps = {
211
211
  skip: number;
212
212
  itemCount: number;
213
213
  setSkip: (skip: number) => void;
214
+ hidePageSizeControls?: boolean;
215
+ setSize: (size: number) => void;
214
216
  };
215
217
  declare const Pagination: React.FC<PaginationProps>;
216
218
 
@@ -238,20 +240,20 @@ type TableHeadProps = {
238
240
  } & React.ComponentPropsWithRef<'thead'>;
239
241
  declare const TableHead: react.ForwardRefExoticComponent<Omit<TableHeadProps, "ref"> & react.RefAttributes<HTMLTableSectionElement>>;
240
242
 
241
- type TypographyProps = {
243
+ type TextProps = {
242
244
  mono?: boolean;
243
- } & ColorProps & TypographyProps$1;
244
- declare const Typography: styled_components.StyledComponent<"p", styled_components.DefaultTheme, TypographyProps, never>;
245
+ } & ColorProps & TypographyProps;
246
+ declare const Text: styled_components.StyledComponent<"p", styled_components.DefaultTheme, TextProps, never>;
245
247
 
246
248
  type HeadingProps = {
247
249
  children?: React.ReactNode;
248
- } & ColorProps & TypographyProps$1 & LayoutProps;
250
+ } & ColorProps & TypographyProps & LayoutProps;
249
251
  declare const Title: styled_components.StyledComponent<"h1", styled_components.DefaultTheme, HeadingProps, never>;
250
252
 
251
253
  type BaseButtonProps = {
252
254
  type?: 'button' | 'reset' | 'submit';
253
255
  as?: AsProp;
254
- } & React.ComponentPropsWithoutRef<'button'> & LayoutProps & BorderProps & PositionProps & ColorProps & SpaceProps & TypographyProps$1 & FlexboxProps & BoxShadowProps;
256
+ } & React.ComponentPropsWithoutRef<'button'> & LayoutProps & BorderProps & PositionProps & ColorProps & SpaceProps & TypographyProps & FlexboxProps & BoxShadowProps;
255
257
 
256
258
  type ButtonProps = {
257
259
  active?: boolean;
@@ -602,6 +604,7 @@ type ColorTheme = {
602
604
  ring: string;
603
605
  offsetBackground: string;
604
606
  offsetForeground: string;
607
+ modalBackdrop: string;
605
608
  };
606
609
 
607
610
  declare const LightTheme: {
@@ -687,4 +690,4 @@ declare const GlobalStyles: styled_components.GlobalStyleComponent<{
687
690
  theme: ColorTheme;
688
691
  }, styled_components.DefaultTheme>;
689
692
 
690
- export { Accordion, AccordionDetail, type AccordionProps, AccordionSummary, Alert, type AlertProps, Backdrop, Badge, type BadgeProps, BasePicker, type BasePickerProps, BaseUploader, type BaseUploaderProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, CardContent, CardMedia, type CardMediaProps, type CardProps, CenteredWidget, Checkbox, type CheckboxPrpos, Chip, type ChipProps, CircleLoader, type CircleLoaderProps, CircleProgress, type CircleProgressProps, ClickOutside, type ClickOutsideProps, ClickableElement, type ClickableElementProps, Collapse, type CollapseProps, Container, DarkTheme, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DestructiveButton, type DestructiveButtonProps, DetailsGrouping, Drawer, type DrawerProps, Fade, type FadeProps, GlobalStyles, Grow, type GrowProps, type HeadingProps, ImageComp, type ImageProps, Input, InputGroup, type InputProps, Label, type LabelProps, LightTheme, LinearLoader, type LinearLoaderProps, LinearProgress, type LinearProgressProps, LinearSlide, type LinearSlideProps, List, ListItem, Menu, MenuItem, type MenuItemProps, type MenuProps, Modal, type ModalProps, MuffledUI, NumberField, type NumberFieldProps, Open, type OpenProps, OrderedList, OutlineButton, type OutlineButtonProps, Pagination, type PaginationProps, Panel, Password, type PasswordProps, Portal, type PortalProps, PrimaryButton, type PrimaryButtonProps, type ProvidedTheme, Radio, RadioIcon, type RadioPrpos, Scrollable, SecondaryButton, type SecondaryButtonProps, Select, SelectButton, type SelectButtonProps, SelectContext, SelectFilter, type SelectFilterProps, SelectItem, type SelectItemProps, SelectList, type SelectProps, SettingsContext, type SettingsCtx, SimpleSelect, type SimpleSelectProps, Skeleton, type SkeletonProps, Slide, type SlideProps, SnackbarContext, SnackbarItem, type SnackbarItemProps, SnackbarProvider, StepIcon, type StepIconProps, StepLabel, type StepLabelProps, Stepper, StepperContext, type StepperProps, Switch, type SwitchProps, SyntaxHighlighter, type SyntaxHighlighterProps, type TTheme, TabItem, type TabItemProps, TabItems, type TabItemsProps, TabPane, TabPaneList, type TabPaneListProps, type TabPaneProps$1 as TabPaneProps, Table, TableBody, TableCell, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TextArea, ThemeButton, type ThemeProviderProps, ThemeSwitch, ThreeColumns, type ThreeColumnsProps, Title, Tooltip, type TooltipProps, TwoColumns, type TwoColumnsProps, Typography, type TypographyProps, UnorderedList, UploadButton, type UploadButtonProps, UploadZone, type UploadZoneProps, clearInputOnSelectItem, stopPropagation, useMuffledSettings, useSelectContext, useSnackbar, useStepperContext };
693
+ export { Accordion, AccordionDetail, type AccordionProps, AccordionSummary, Alert, type AlertProps, Backdrop, Badge, type BadgeProps, BasePicker, type BasePickerProps, BaseUploader, type BaseUploaderProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, CardContent, CardMedia, type CardMediaProps, type CardProps, CenteredWidget, Checkbox, type CheckboxPrpos, Chip, type ChipProps, CircleLoader, type CircleLoaderProps, CircleProgress, type CircleProgressProps, ClickOutside, type ClickOutsideProps, ClickableElement, type ClickableElementProps, Collapse, type CollapseProps, Container, DarkTheme, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DestructiveButton, type DestructiveButtonProps, DetailsGrouping, Drawer, type DrawerProps, Fade, type FadeProps, GlobalStyles, Grow, type GrowProps, type HeadingProps, ImageComp, type ImageProps, Input, InputGroup, type InputProps, Label, type LabelProps, LightTheme, LinearLoader, type LinearLoaderProps, LinearProgress, type LinearProgressProps, LinearSlide, type LinearSlideProps, List, ListItem, Menu, MenuItem, type MenuItemProps, type MenuProps, Modal, type ModalProps, MuffledUI, NumberField, type NumberFieldProps, Open, type OpenProps, OrderedList, OutlineButton, type OutlineButtonProps, Pagination, type PaginationProps, Panel, Password, type PasswordProps, Portal, type PortalProps, PrimaryButton, type PrimaryButtonProps, type ProvidedTheme, Radio, RadioIcon, type RadioPrpos, Scrollable, SecondaryButton, type SecondaryButtonProps, Select, SelectButton, type SelectButtonProps, SelectContext, SelectFilter, type SelectFilterProps, SelectItem, type SelectItemProps, SelectList, type SelectProps, SettingsContext, type SettingsCtx, SimpleSelect, type SimpleSelectProps, Skeleton, type SkeletonProps, Slide, type SlideProps, SnackbarContext, SnackbarItem, type SnackbarItemProps, SnackbarProvider, StepIcon, type StepIconProps, StepLabel, type StepLabelProps, Stepper, StepperContext, type StepperProps, Switch, type SwitchProps, SyntaxHighlighter, type SyntaxHighlighterProps, type TTheme, TabItem, type TabItemProps, TabItems, type TabItemsProps, TabPane, TabPaneList, type TabPaneListProps, type TabPaneProps$1 as TabPaneProps, Table, TableBody, TableCell, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, Text, TextArea, type TextProps, ThemeButton, type ThemeProviderProps, ThemeSwitch, ThreeColumns, type ThreeColumnsProps, Title, Tooltip, type TooltipProps, TwoColumns, type TwoColumnsProps, UnorderedList, UploadButton, type UploadButtonProps, UploadZone, type UploadZoneProps, clearInputOnSelectItem, stopPropagation, useMuffledSettings, useSelectContext, useSnackbar, useStepperContext };