@mw-kit/mw-ui 1.8.5 → 1.8.7

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.
@@ -3,7 +3,7 @@ import type { TimeProps } from '../../../Input/components/Time/interfaces';
3
3
  import type { BasicCalendarProps } from '../Basic/interfaces';
4
4
  type Value = Date | null;
5
5
  type InputTimeProps = Omit<TimeProps, 'type' | 'value' | 'setValue' | 'minWidth'>;
6
- export interface Common extends Pick<BasicCalendarProps, 'initialMonth' | 'max' | 'min' | 'onChangeMonth'>, Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
6
+ export interface Common extends Pick<BasicCalendarProps, 'initialMonth' | 'max' | 'min' | 'onChangeMonth' | 'label' | 'calendar' | 'paddingless'>, Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
7
7
  initialValue?: Value;
8
8
  value?: [Value, (value: Value) => void];
9
9
  time?: true | InputTimeProps | ((value: Value) => InputTimeProps | undefined);
package/dist/index.d.mts CHANGED
@@ -30,7 +30,7 @@ type MappedTransitions<P extends string> = {
30
30
  };
31
31
  };
32
32
 
33
- declare const theme: {
33
+ declare const theme$1: {
34
34
  readonly button: {
35
35
  readonly sizes: {
36
36
  tiny: {
@@ -91,7 +91,7 @@ interface ThemeInterface {
91
91
  isDarkColor: (color: ColorOptions, ifDark?: ColorOptions, ifLight?: ColorOptions) => ColorOptions;
92
92
  spacings: typeof spacings;
93
93
  typographies: typeof typographies;
94
- components: typeof theme;
94
+ components: typeof theme$1;
95
95
  }
96
96
 
97
97
  declare const colors: {
@@ -976,7 +976,7 @@ type BasicCalendarProps = (Common$2 & {
976
976
 
977
977
  type Value$2 = Date | null;
978
978
  type InputTimeProps$1 = Omit<TimeProps, 'type' | 'value' | 'setValue' | 'minWidth'>;
979
- interface Common$1 extends Pick<BasicCalendarProps, 'initialMonth' | 'max' | 'min' | 'onChangeMonth'>, Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
979
+ interface Common$1 extends Pick<BasicCalendarProps, 'initialMonth' | 'max' | 'min' | 'onChangeMonth' | 'label' | 'calendar' | 'paddingless'>, Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
980
980
  initialValue?: Value$2;
981
981
  value?: [Value$2, (value: Value$2) => void];
982
982
  time?: true | InputTimeProps$1 | ((value: Value$2) => InputTimeProps$1 | undefined);
@@ -1553,8 +1553,9 @@ interface ZoomProps {
1553
1553
 
1554
1554
  declare const Zoom: (props: ZoomProps) => react_jsx_runtime.JSX.Element;
1555
1555
 
1556
+ declare const theme: ThemeInterface;
1556
1557
  declare const ThemeProvider: (props: {
1557
1558
  children: JSX.Element | string | (JSX.Element | string)[];
1558
1559
  }) => react_jsx_runtime.JSX.Element;
1559
1560
 
1560
- export { AbsoluteContainer as MwAbsoluteContainer, AppliedFilters as MwAppliedFilters, Button as MwButton, Calendar as MwCalendar, Card as MwCard, EllipsisContainer as MwEllipsisContainer, Filters as MwFilters, Form as MwForm, Grid as MwGrid, Icon as MwIcon, Indicator as MwIndicator, Input as MwInput, Link as MwLink, Loader as MwLoader, Menu as MwMenu, Modal as MwModal, Placeholder as MwPlaceholder, ProgressBar as MwProgressBar, ScrollContainer as MwScrollContainer, Tabs as MwTabs, TextArea as MwTextArea, Toast as MwToast, Transition as MwTransition, Zoom as MwZoom, ThemeProvider, useTransition as useMwTransition };
1561
+ export { AbsoluteContainer as MwAbsoluteContainer, AppliedFilters as MwAppliedFilters, Button as MwButton, Calendar as MwCalendar, Card as MwCard, EllipsisContainer as MwEllipsisContainer, Filters as MwFilters, Form as MwForm, Grid as MwGrid, Icon as MwIcon, Indicator as MwIndicator, Input as MwInput, Link as MwLink, Loader as MwLoader, Menu as MwMenu, Modal as MwModal, Placeholder as MwPlaceholder, ProgressBar as MwProgressBar, ScrollContainer as MwScrollContainer, Tabs as MwTabs, TextArea as MwTextArea, Toast as MwToast, Transition as MwTransition, Zoom as MwZoom, ThemeProvider, theme, useTransition as useMwTransition };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from './components';
2
- export { default as ThemeProvider } from './theme';
2
+ export { theme, default as ThemeProvider } from './theme';
package/dist/index.js CHANGED
@@ -55,6 +55,7 @@ __export(index_exports, {
55
55
  MwTransition: () => Transition_default2,
56
56
  MwZoom: () => Zoom_default,
57
57
  ThemeProvider: () => theme_default3,
58
+ theme: () => theme3,
58
59
  useMwTransition: () => useTransition_default
59
60
  });
60
61
  module.exports = __toCommonJS(index_exports);
@@ -10698,7 +10699,10 @@ var CalendarSingle = import_react19.default.forwardRef(
10698
10699
  "invalid",
10699
10700
  "absolute",
10700
10701
  "getDay",
10701
- "onChangeMonth"
10702
+ "onChangeMonth",
10703
+ "label",
10704
+ "calendar",
10705
+ "paddingless"
10702
10706
  ]);
10703
10707
  const mainProps = filterObject(props, [
10704
10708
  "absolute"
@@ -17741,5 +17745,6 @@ var Zoom_default = Zoom;
17741
17745
  MwTransition,
17742
17746
  MwZoom,
17743
17747
  ThemeProvider,
17748
+ theme,
17744
17749
  useMwTransition
17745
17750
  });
package/dist/index.mjs CHANGED
@@ -10642,7 +10642,10 @@ var CalendarSingle = React17.forwardRef(
10642
10642
  "invalid",
10643
10643
  "absolute",
10644
10644
  "getDay",
10645
- "onChangeMonth"
10645
+ "onChangeMonth",
10646
+ "label",
10647
+ "calendar",
10648
+ "paddingless"
10646
10649
  ]);
10647
10650
  const mainProps = filterObject(props, [
10648
10651
  "absolute"
@@ -17684,5 +17687,6 @@ export {
17684
17687
  Transition_default2 as MwTransition,
17685
17688
  Zoom_default as MwZoom,
17686
17689
  theme_default3 as ThemeProvider,
17690
+ theme3 as theme,
17687
17691
  useTransition_default as useMwTransition
17688
17692
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mw-kit/mw-ui",
3
- "version": "1.8.5",
3
+ "version": "1.8.7",
4
4
  "description": "Made with create-react-library",
5
5
  "author": "fmgusmao",
6
6
  "license": "MIT",