@mw-kit/mw-ui 1.8.4 → 1.8.6

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
@@ -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);
package/dist/index.js CHANGED
@@ -10698,7 +10698,10 @@ var CalendarSingle = import_react19.default.forwardRef(
10698
10698
  "invalid",
10699
10699
  "absolute",
10700
10700
  "getDay",
10701
- "onChangeMonth"
10701
+ "onChangeMonth",
10702
+ "label",
10703
+ "calendar",
10704
+ "paddingless"
10702
10705
  ]);
10703
10706
  const mainProps = filterObject(props, [
10704
10707
  "absolute"
@@ -15195,8 +15198,8 @@ var Col = import_styled_components53.default.div`
15195
15198
  var import_jsx_runtime341 = require("react/jsx-runtime");
15196
15199
  var Col2 = import_react45.default.forwardRef((props, ref) => {
15197
15200
  const context = useContext4();
15198
- const _props = { ...context.cols, ...props };
15199
- const colProps = filterObject(_props, [
15201
+ const colProps = { ...context.cols, ...props };
15202
+ const htmlProps = filterObject(colProps, [
15200
15203
  "width",
15201
15204
  "spacing",
15202
15205
  "align",
@@ -15212,17 +15215,17 @@ var Col2 = import_react45.default.forwardRef((props, ref) => {
15212
15215
  Col,
15213
15216
  {
15214
15217
  ref,
15215
- ...colProps,
15216
- $width: props.width,
15217
- $spacing: props.spacing,
15218
- $spacingAround: props.spacingAround,
15219
- $align: props.align,
15220
- $bordered: props.bordered,
15221
- $fontColor: props.fontColor,
15222
- $backgroundColor: props.backgroundColor,
15223
- $hover: props.hover,
15224
- $pointer: props.pointer,
15225
- children: _props.ellipsis ? /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(EllipsisContainer_default, { children: _props.children }) : _props.children
15218
+ ...htmlProps,
15219
+ $width: colProps.width,
15220
+ $spacing: colProps.spacing,
15221
+ $spacingAround: colProps.spacingAround,
15222
+ $align: colProps.align,
15223
+ $bordered: colProps.bordered,
15224
+ $fontColor: colProps.fontColor,
15225
+ $backgroundColor: colProps.backgroundColor,
15226
+ $hover: colProps.hover,
15227
+ $pointer: colProps.pointer,
15228
+ children: colProps.ellipsis ? /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(EllipsisContainer_default, { children: colProps.children }) : colProps.children
15226
15229
  }
15227
15230
  );
15228
15231
  });
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"
@@ -15139,8 +15142,8 @@ var Col = styled50.div`
15139
15142
  import { jsx as jsx341 } from "react/jsx-runtime";
15140
15143
  var Col2 = React42.forwardRef((props, ref) => {
15141
15144
  const context = useContext4();
15142
- const _props = { ...context.cols, ...props };
15143
- const colProps = filterObject(_props, [
15145
+ const colProps = { ...context.cols, ...props };
15146
+ const htmlProps = filterObject(colProps, [
15144
15147
  "width",
15145
15148
  "spacing",
15146
15149
  "align",
@@ -15156,17 +15159,17 @@ var Col2 = React42.forwardRef((props, ref) => {
15156
15159
  Col,
15157
15160
  {
15158
15161
  ref,
15159
- ...colProps,
15160
- $width: props.width,
15161
- $spacing: props.spacing,
15162
- $spacingAround: props.spacingAround,
15163
- $align: props.align,
15164
- $bordered: props.bordered,
15165
- $fontColor: props.fontColor,
15166
- $backgroundColor: props.backgroundColor,
15167
- $hover: props.hover,
15168
- $pointer: props.pointer,
15169
- children: _props.ellipsis ? /* @__PURE__ */ jsx341(EllipsisContainer_default, { children: _props.children }) : _props.children
15162
+ ...htmlProps,
15163
+ $width: colProps.width,
15164
+ $spacing: colProps.spacing,
15165
+ $spacingAround: colProps.spacingAround,
15166
+ $align: colProps.align,
15167
+ $bordered: colProps.bordered,
15168
+ $fontColor: colProps.fontColor,
15169
+ $backgroundColor: colProps.backgroundColor,
15170
+ $hover: colProps.hover,
15171
+ $pointer: colProps.pointer,
15172
+ children: colProps.ellipsis ? /* @__PURE__ */ jsx341(EllipsisContainer_default, { children: colProps.children }) : colProps.children
15170
15173
  }
15171
15174
  );
15172
15175
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mw-kit/mw-ui",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "Made with create-react-library",
5
5
  "author": "fmgusmao",
6
6
  "license": "MIT",