@majoo-ui/react 1.55.39-rc.1 → 1.55.40

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.
@@ -5,6 +5,7 @@ export declare const ButtonPrimitive: import("@stitches/react/types/styled-compo
5
5
  buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
6
6
  size?: "sm" | "md" | "lg" | "xs" | undefined;
7
7
  iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
8
+ displayBlock?: boolean | "true" | undefined;
8
9
  }, {
9
10
  sm: "(min-width: 359px)";
10
11
  md: "(min-width: 767px)";
@@ -132,6 +133,7 @@ export declare const Button: React.ForwardRefExoticComponent<import("@stitches/r
132
133
  buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
133
134
  size?: "sm" | "md" | "lg" | "xs" | undefined;
134
135
  iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
136
+ displayBlock?: boolean | "true" | undefined;
135
137
  }, {
136
138
  sm: "(min-width: 359px)";
137
139
  md: "(min-width: 767px)";
package/index.esm.js CHANGED
@@ -4101,6 +4101,11 @@ const ButtonPrimitive = styled('button', {
4101
4101
  padding: '11px',
4102
4102
  borderRadius: '$md'
4103
4103
  }
4104
+ },
4105
+ displayBlock: {
4106
+ true: {
4107
+ display: 'block'
4108
+ }
4104
4109
  }
4105
4110
  }
4106
4111
  });
@@ -4125,8 +4130,9 @@ const Button$4 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
4125
4130
  size: size,
4126
4131
  iconSize: icon ? size : undefined,
4127
4132
  disabled: disabled,
4133
+ displayBlock: Boolean(block || leftIcon || rightIcon),
4128
4134
  css: Object.assign(Object.assign({}, props.css), {
4129
- display: block || leftIcon || rightIcon ? 'block !important' : 'inline-block',
4135
+ display: block ? 'block' : 'inline-block',
4130
4136
  width: block ? '100%' : width
4131
4137
  }),
4132
4138
  ref: forwardedRef
@@ -17187,10 +17193,10 @@ function pickerReducer(state, action) {
17187
17193
  }
17188
17194
  case LAST_TWO_MONTHS:
17189
17195
  {
17190
- const last2Months = new Date(today);
17191
- last2Months.setDate(today.getDate() - 60);
17196
+ const last2Months = moment().subtract(2, 'months');
17197
+ const prev2Months = last2Months.add(1, 'day').toDate();
17192
17198
  return Object.assign(Object.assign({}, state), {
17193
- selectedDate: [last2Months, today]
17199
+ selectedDate: [prev2Months, today]
17194
17200
  });
17195
17201
  }
17196
17202
  case THIS_MONTH:
@@ -17293,9 +17299,9 @@ function advancePickerDate(type, date) {
17293
17299
  }
17294
17300
  case LAST_TWO_MONTHS:
17295
17301
  {
17296
- const last2Months = new Date(today);
17297
- last2Months.setDate(today.getDate() - 60);
17298
- return [last2Months, today];
17302
+ const last2Months = moment().subtract(2, 'months');
17303
+ const prev2Months = last2Months.add(1, 'day').toDate();
17304
+ return [prev2Months, today];
17299
17305
  }
17300
17306
  case THIS_MONTH:
17301
17307
  {
package/index.umd.js CHANGED
@@ -4176,6 +4176,11 @@
4176
4176
  padding: '11px',
4177
4177
  borderRadius: '$md'
4178
4178
  }
4179
+ },
4180
+ displayBlock: {
4181
+ true: {
4182
+ display: 'block'
4183
+ }
4179
4184
  }
4180
4185
  }
4181
4186
  });
@@ -4203,8 +4208,9 @@
4203
4208
  size: size,
4204
4209
  iconSize: icon ? size : undefined,
4205
4210
  disabled: disabled,
4211
+ displayBlock: Boolean(block || leftIcon || rightIcon),
4206
4212
  css: __assign(__assign({}, props.css), {
4207
- display: block || leftIcon || rightIcon ? 'block !important' : 'inline-block',
4213
+ display: block ? 'block' : 'inline-block',
4208
4214
  width: block ? '100%' : width
4209
4215
  }),
4210
4216
  ref: forwardedRef
@@ -17414,10 +17420,10 @@
17414
17420
  }
17415
17421
  case LAST_TWO_MONTHS:
17416
17422
  {
17417
- var last2Months = new Date(today);
17418
- last2Months.setDate(today.getDate() - 60);
17423
+ var last2Months = moment__default["default"]().subtract(2, 'months');
17424
+ var prev2Months = last2Months.add(1, 'day').toDate();
17419
17425
  return __assign(__assign({}, state), {
17420
- selectedDate: [last2Months, today]
17426
+ selectedDate: [prev2Months, today]
17421
17427
  });
17422
17428
  }
17423
17429
  case THIS_MONTH:
@@ -17520,9 +17526,9 @@
17520
17526
  }
17521
17527
  case LAST_TWO_MONTHS:
17522
17528
  {
17523
- var last2Months = new Date(today);
17524
- last2Months.setDate(today.getDate() - 60);
17525
- return [last2Months, today];
17529
+ var last2Months = moment__default["default"]().subtract(2, 'months');
17530
+ var prev2Months = last2Months.add(1, 'day').toDate();
17531
+ return [prev2Months, today];
17526
17532
  }
17527
17533
  case THIS_MONTH:
17528
17534
  {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.55.39-rc.1",
3
+ "version": "1.55.40",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",
7
- "@majoo-ui/icons": "^1.38.16",
7
+ "@majoo-ui/icons": "^1.38.17",
8
8
  "@stitches/react": "^1.2.8",
9
9
  "@radix-ui/react-alert-dialog": "^1.0.0",
10
10
  "@radix-ui/react-avatar": "^1.0.0",