@react-fabric/superdate 1.0.0-beta.46 → 1.0.0-beta.48

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.
@@ -13,7 +13,7 @@ var QuickSelect = require('./QuickSelect.js');
13
13
  var RelativePanel = require('./RelativePanel.js');
14
14
  var jsxRuntime = require('react/jsx-runtime');
15
15
 
16
- var _excluded = ["as", "color", "variant", "disabled", "onChange", "value", "data-test-value", "data-testid"];
16
+ var _excluded = ["as", "color", "size", "variant", "disabled", "fullWidth", "onChange", "value", "data-test-value", "data-testid"];
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
19
  var SuperDateTabs = function SuperDateTabs(_ref) {
@@ -123,8 +123,10 @@ var SuperDate = function SuperDate(_ref4) {
123
123
  as = _ref4$as === void 0 ? "button" : _ref4$as,
124
124
  _ref4$color = _ref4.color,
125
125
  color = _ref4$color === void 0 ? "primary" : _ref4$color,
126
+ size = _ref4.size,
126
127
  variant = _ref4.variant,
127
128
  disabled = _ref4.disabled,
129
+ fullWidth = _ref4.fullWidth,
128
130
  onChange = _ref4.onChange,
129
131
  value = _ref4.value,
130
132
  testValue = _ref4["data-test-value"],
@@ -156,8 +158,10 @@ var SuperDate = function SuperDate(_ref4) {
156
158
  content: date.DateUtil.relativeTooltip(relValue, isHijri),
157
159
  children: /*#__PURE__*/jsxRuntime.jsx(E, {
158
160
  icon: core.CoreIcons.clock,
161
+ size: size,
159
162
  color: color,
160
163
  disabled: disabled,
164
+ fullWidth: fullWidth,
161
165
  variant: variant,
162
166
  "data-test-value": testValue,
163
167
  "data-testid": testId,
@@ -13,7 +13,7 @@ import { QuickSelect } from './QuickSelect.js';
13
13
  import { RelativePanel } from './RelativePanel.js';
14
14
  import { jsxs, jsx } from 'react/jsx-runtime';
15
15
 
16
- var _excluded = ["as", "color", "variant", "disabled", "onChange", "value", "data-test-value", "data-testid"];
16
+ var _excluded = ["as", "color", "size", "variant", "disabled", "fullWidth", "onChange", "value", "data-test-value", "data-testid"];
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
19
  var SuperDateTabs = function SuperDateTabs(_ref) {
@@ -123,8 +123,10 @@ var SuperDate = function SuperDate(_ref4) {
123
123
  as = _ref4$as === void 0 ? "button" : _ref4$as,
124
124
  _ref4$color = _ref4.color,
125
125
  color = _ref4$color === void 0 ? "primary" : _ref4$color,
126
+ size = _ref4.size,
126
127
  variant = _ref4.variant,
127
128
  disabled = _ref4.disabled,
129
+ fullWidth = _ref4.fullWidth,
128
130
  onChange = _ref4.onChange,
129
131
  value = _ref4.value,
130
132
  testValue = _ref4["data-test-value"],
@@ -156,8 +158,10 @@ var SuperDate = function SuperDate(_ref4) {
156
158
  content: DateUtil.relativeTooltip(relValue, isHijri),
157
159
  children: /*#__PURE__*/jsx(E, {
158
160
  icon: CoreIcons.clock,
161
+ size: size,
159
162
  color: color,
160
163
  disabled: disabled,
164
+ fullWidth: fullWidth,
161
165
  variant: variant,
162
166
  "data-test-value": testValue,
163
167
  "data-testid": testId,
@@ -14,4 +14,4 @@ export declare const SuperDateTabs: ({ events, value, presets, recurringEvents,
14
14
  * `$year`,
15
15
  * `$decade`
16
16
  */
17
- export declare const SuperDate: ({ as, color, variant, disabled, onChange, value, "data-test-value": testValue, "data-testid": testId, ...props }: SuperDateProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const SuperDate: ({ as, color, size, variant, disabled, fullWidth, onChange, value, "data-test-value": testValue, "data-testid": testId, ...props }: SuperDateProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type ColorState, type TestProps } from "@react-fabric/core/dist/types/types";
1
+ import { type ColorState, type SizeType, type TestProps } from "@react-fabric/core/dist/types/types";
2
2
  import { type EventType } from "@react-fabric/date/dist/types/types";
3
3
  export interface PresetType {
4
4
  value: string;
@@ -7,8 +7,10 @@ export interface PresetType {
7
7
  export interface SuperDateProps extends TestProps {
8
8
  as?: "button" | "chip";
9
9
  color?: ColorState;
10
+ size?: SizeType;
10
11
  variant?: "solid" | "outline" | "link";
11
12
  disabled?: boolean;
13
+ fullWidth?: boolean;
12
14
  /**
13
15
  * relative date value
14
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/superdate",
3
- "version": "1.0.0-beta.46",
3
+ "version": "1.0.0-beta.48",
4
4
  "description": "RUF: Superdate package for relative dates",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -35,13 +35,13 @@
35
35
  "watch": "npm-run-all -p watch:rollup watch:dts"
36
36
  },
37
37
  "dependencies": {
38
- "@floating-ui/react": "^0.26.24",
39
- "@react-fabric/core": "^1.0.0-beta.46",
40
- "@react-fabric/date": "^1.0.0-beta.46",
41
- "@react-fabric/form": "^1.0.0-beta.46",
42
- "@react-fabric/utilities": "^1.0.0-beta.46",
38
+ "@floating-ui/react": "^0.27.9",
39
+ "@react-fabric/core": "^1.0.0-beta.48",
40
+ "@react-fabric/date": "^1.0.0-beta.48",
41
+ "@react-fabric/form": "^1.0.0-beta.48",
42
+ "@react-fabric/utilities": "^1.0.0-beta.48",
43
43
  "classnames": "^2.5.1",
44
- "date-fns": "^4.0.0",
44
+ "date-fns": "^4.1.0",
45
45
  "resize-observer-polyfill": "^1.5.1"
46
46
  },
47
47
  "peerDependencies": {
@@ -57,5 +57,5 @@
57
57
  "node": ">=18.12.0",
58
58
  "npm": ">=8.19.0"
59
59
  },
60
- "gitHead": "0dfc20b9c84712bb1cb5205c22464e8a1eb2341c"
60
+ "gitHead": "0b1001b4ae1ee67f8e1817d6395d1f3945321897"
61
61
  }
@@ -144,8 +144,10 @@ export const SuperDateTabs = ({
144
144
  export const SuperDate = ({
145
145
  as = "button",
146
146
  color = "primary",
147
+ size,
147
148
  variant,
148
149
  disabled,
150
+ fullWidth,
149
151
  onChange,
150
152
  value,
151
153
  "data-test-value": testValue,
@@ -180,8 +182,10 @@ export const SuperDate = ({
180
182
  <Tooltip content={DateUtil.relativeTooltip(relValue, isHijri)}>
181
183
  <E
182
184
  icon={CoreIcons.clock}
185
+ size={size}
183
186
  color={color}
184
187
  disabled={disabled}
188
+ fullWidth={fullWidth}
185
189
  variant={variant as AnyObject}
186
190
  data-test-value={testValue}
187
191
  data-testid={testId}
@@ -23,6 +23,7 @@
23
23
 
24
24
  import {
25
25
  type ColorState,
26
+ type SizeType,
26
27
  type TestProps,
27
28
  } from "@react-fabric/core/dist/types/types";
28
29
 
@@ -36,8 +37,10 @@ export interface PresetType {
36
37
  export interface SuperDateProps extends TestProps {
37
38
  as?: "button" | "chip";
38
39
  color?: ColorState;
40
+ size?: SizeType;
39
41
  variant?: "solid" | "outline" | "link";
40
42
  disabled?: boolean;
43
+ fullWidth?: boolean;
41
44
  /**
42
45
  * relative date value
43
46
  */