@astryxdesign/core 0.1.4-canary.d5cbae3 → 0.1.4-canary.d813abd
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/dist/DateTimeInput/DateTimeInput.d.ts +2 -5
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +0 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts.map +1 -1
- package/dist/InputGroup/InputGroup.js +2 -2
- package/dist/Item/Item.js +1 -1
- package/dist/astryx.umd.js +2 -2
- package/dist/astryx.umd.js.map +2 -2
- package/dist/docs-types.d.ts +1 -1
- package/dist/docs-types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/DateTimeInput/DateTimeInput.doc.mjs +2 -3
- package/src/DateTimeInput/DateTimeInput.test.tsx +0 -39
- package/src/DateTimeInput/DateTimeInput.tsx +2 -6
- package/src/DateTimeInput/index.ts +0 -1
- package/src/InputGroup/InputGroup.tsx +2 -2
- package/src/Item/Item.tsx +1 -1
- package/src/docs-types.ts +0 -2
|
@@ -6,8 +6,6 @@ export type ISODateTimeString = string & {
|
|
|
6
6
|
};
|
|
7
7
|
export type DateTimeInputHourFormat = '12h' | '24h';
|
|
8
8
|
export type DateTimeInputSize = 'sm' | 'md' | 'lg';
|
|
9
|
-
/** Supported minute increments for arrow-key stepping of the time field. */
|
|
10
|
-
export type DateTimeInputTimeIncrement = 1 | 5 | 10 | 15 | 30;
|
|
11
9
|
export type { InputStatus as DateTimeInputStatus, InputStatusType as DateTimeInputStatusType, } from '../Field';
|
|
12
10
|
export interface DateTimeInputProps extends Omit<BaseProps, 'onChange' | 'defaultValue'> {
|
|
13
11
|
/** Ref forwarded to the date input element */
|
|
@@ -106,11 +104,10 @@ export interface DateTimeInputProps extends Omit<BaseProps, 'onChange' | 'defaul
|
|
|
106
104
|
*/
|
|
107
105
|
hourFormat?: DateTimeInputHourFormat;
|
|
108
106
|
/**
|
|
109
|
-
*
|
|
110
|
-
* keys. Constrained to a set of sensible increments.
|
|
107
|
+
* Time increment in minutes when using arrow keys in the time input.
|
|
111
108
|
* @default 1
|
|
112
109
|
*/
|
|
113
|
-
timeIncrement?:
|
|
110
|
+
timeIncrement?: number;
|
|
114
111
|
/**
|
|
115
112
|
* Whether to show a clear button when a value is set.
|
|
116
113
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeInput.d.ts","sourceRoot":"","sources":["../../src/DateTimeInput/DateTimeInput.tsx"],"names":[],"mappings":"AAuCA,OAAO,EAEL,KAAK,WAAW,EAMjB,MAAM,UAAU,CAAC;AA4BlB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAI9C,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACvC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,KAAK,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD,
|
|
1
|
+
{"version":3,"file":"DateTimeInput.d.ts","sourceRoot":"","sources":["../../src/DateTimeInput/DateTimeInput.tsx"],"names":[],"mappings":"AAuCA,OAAO,EAEL,KAAK,WAAW,EAMjB,MAAM,UAAU,CAAC;AA4BlB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAI9C,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACvC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,KAAK,CAAC;AAEpD,MAAM,MAAM,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AAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,uBAAuB,CAAC;IAErC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IAErB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACxB;AAqCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,aAAqB,EACrB,WAAW,EACX,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAClB,eAAe,EACf,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,SAAiB,EACjB,GAAG,EACH,GAAG,EACH,eAAe,EACf,UAAkB,EAClB,UAAkB,EAClB,aAAiB,EACjB,QAAgB,EAChB,WAA6B,EAC7B,eAAiC,EACjC,SAAS,EACT,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,YAAY,EACZ,cAAkB,EAClB,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,kBAAkB,+BAwlBpB;yBAxnBe,aAAa"}
|
|
@@ -32,8 +32,6 @@ import { parseDateInput, parseTimeInput, formatDisplayTime12h, formatDisplayTime
|
|
|
32
32
|
import { plainDateFromISO, plainDateToISO, plainDateFormat, DATE_FORMAT_LONG } from "../utils/plainDate.js";
|
|
33
33
|
import { useSize } from "../SizeContext/SizeContext.js";
|
|
34
34
|
import { themeProps } from "../utils/themeProps.js";
|
|
35
|
-
|
|
36
|
-
/** Supported minute increments for arrow-key stepping of the time field. */
|
|
37
35
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
38
36
|
const styles = {
|
|
39
37
|
row: {
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* @position Package entry point for DateTimeInput
|
|
6
6
|
*/
|
|
7
7
|
export { DateTimeInput } from './DateTimeInput';
|
|
8
|
-
export type { DateTimeInputProps, DateTimeInputSize, DateTimeInputHourFormat,
|
|
8
|
+
export type { DateTimeInputProps, DateTimeInputSize, DateTimeInputHourFormat, DateTimeInputStatus, DateTimeInputStatusType, ISODateTimeString, } from './DateTimeInput';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DateTimeInput/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DateTimeInput/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC"}
|
|
@@ -122,11 +122,11 @@ export function InputGroup({
|
|
|
122
122
|
labelTooltip: labelTooltip,
|
|
123
123
|
children: /*#__PURE__*/_jsx("div", {
|
|
124
124
|
ref: ref,
|
|
125
|
-
"data-testid": testId,
|
|
126
|
-
...rest,
|
|
127
125
|
role: "group",
|
|
128
126
|
"aria-labelledby": labelID,
|
|
129
127
|
"aria-describedby": describedByIDs,
|
|
128
|
+
"data-testid": testId,
|
|
129
|
+
...rest,
|
|
130
130
|
...mergeProps(themeProps('input-group', {
|
|
131
131
|
size,
|
|
132
132
|
status: status?.type ?? null
|
package/dist/Item/Item.js
CHANGED
|
@@ -280,9 +280,9 @@ export function Item({
|
|
|
280
280
|
});
|
|
281
281
|
return /*#__PURE__*/_jsx(Component, {
|
|
282
282
|
ref: ref,
|
|
283
|
-
...restProps,
|
|
284
283
|
"aria-selected": isSelected || undefined,
|
|
285
284
|
"aria-disabled": isDisabled || undefined,
|
|
285
|
+
...restProps,
|
|
286
286
|
...mergeProps(themeProps('item', {
|
|
287
287
|
density,
|
|
288
288
|
align
|