@wallarm-org/design-system 3.4.0 → 3.4.1-rc-fix-data-display-category.2
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/README.md +6 -4
- package/dist/components/Calendar/CalendarApplyButton.d.ts +3 -1
- package/dist/components/Calendar/CalendarApplyButton.js +25 -23
- package/dist/components/Calendar/CalendarBody.d.ts +3 -2
- package/dist/components/Calendar/CalendarBody.js +3 -4
- package/dist/components/Calendar/CalendarContent.d.ts +3 -2
- package/dist/components/Calendar/CalendarContent.js +3 -4
- package/dist/components/Calendar/CalendarFooter.d.ts +3 -2
- package/dist/components/Calendar/CalendarFooter.js +3 -4
- package/dist/components/Calendar/CalendarFooterControls.d.ts +3 -2
- package/dist/components/Calendar/CalendarFooterControls.js +3 -4
- package/dist/components/Calendar/CalendarGrids.d.ts +3 -1
- package/dist/components/Calendar/CalendarGrids.js +3 -4
- package/dist/components/Calendar/CalendarKeyboardHints.d.ts +3 -1
- package/dist/components/Calendar/CalendarKeyboardHints.js +3 -4
- package/dist/components/Calendar/CalendarResetButton.d.ts +3 -1
- package/dist/components/Calendar/CalendarResetButton.js +25 -23
- package/dist/components/Table/primitives/TBody.d.ts +2 -1
- package/dist/components/Table/primitives/TBody.js +17 -15
- package/dist/components/Table/primitives/THead.d.ts +2 -1
- package/dist/components/Table/primitives/THead.js +17 -15
- package/dist/components/Table/primitives/Td.d.ts +2 -2
- package/dist/components/Table/primitives/Td.js +22 -20
- package/dist/components/Table/primitives/Th.d.ts +2 -2
- package/dist/components/Table/primitives/Th.js +25 -23
- package/dist/components/Table/primitives/Tr.d.ts +2 -1
- package/dist/components/Table/primitives/Tr.js +17 -15
- package/dist/components/Table/types.d.ts +3 -4
- package/dist/components/TemporalCore/TemporalSegmentGroup.d.ts +3 -1
- package/dist/components/TemporalCore/TemporalSegmentGroup.js +30 -28
- package/dist/components/TemporalCore/TimeDropdown.d.ts +4 -2
- package/dist/components/TemporalCore/TimeDropdown.js +4 -4
- package/dist/components/Toast/ToastDescription.d.ts +3 -2
- package/dist/components/Toast/ToastDescription.js +3 -4
- package/dist/components/Toast/ToastTitle.d.ts +3 -2
- package/dist/components/Toast/ToastTitle.js +3 -4
- package/dist/components/Tour/TourDescription.d.ts +5 -2
- package/dist/components/Tour/TourDescription.js +28 -25
- package/dist/components/Tour/TourTitle.d.ts +5 -2
- package/dist/components/Tour/TourTitle.js +27 -25
- package/dist/metadata/components.json +26 -20
- package/package.json +2 -6
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { cn } from "../../../utils/cn.js";
|
|
5
4
|
import { tableBodyCellVariants } from "../classes.js";
|
|
6
|
-
const Td =
|
|
7
|
-
const $ = c(
|
|
5
|
+
const Td = (t0)=>{
|
|
6
|
+
const $ = c(19);
|
|
8
7
|
let className;
|
|
9
8
|
let expanded;
|
|
10
9
|
let lastPinnedLeft;
|
|
11
10
|
let lastRow;
|
|
12
11
|
let pinned;
|
|
13
12
|
let props;
|
|
13
|
+
let ref;
|
|
14
14
|
if ($[0] !== t0) {
|
|
15
|
-
({ className, pinned, lastPinnedLeft, expanded, lastRow, ...props } = t0);
|
|
15
|
+
({ ref, className, pinned, lastPinnedLeft, expanded, lastRow, ...props } = t0);
|
|
16
16
|
$[0] = t0;
|
|
17
17
|
$[1] = className;
|
|
18
18
|
$[2] = expanded;
|
|
@@ -20,6 +20,7 @@ const Td = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
20
20
|
$[4] = lastRow;
|
|
21
21
|
$[5] = pinned;
|
|
22
22
|
$[6] = props;
|
|
23
|
+
$[7] = ref;
|
|
23
24
|
} else {
|
|
24
25
|
className = $[1];
|
|
25
26
|
expanded = $[2];
|
|
@@ -27,37 +28,38 @@ const Td = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
27
28
|
lastRow = $[4];
|
|
28
29
|
pinned = $[5];
|
|
29
30
|
props = $[6];
|
|
31
|
+
ref = $[7];
|
|
30
32
|
}
|
|
31
33
|
const hasVariants = void 0 !== pinned || void 0 !== lastPinnedLeft || void 0 !== expanded || void 0 !== lastRow;
|
|
32
34
|
let t1;
|
|
33
|
-
if ($[
|
|
35
|
+
if ($[8] !== className || $[9] !== expanded || $[10] !== hasVariants || $[11] !== lastPinnedLeft || $[12] !== lastRow || $[13] !== pinned) {
|
|
34
36
|
t1 = cn(hasVariants ? tableBodyCellVariants({
|
|
35
37
|
pinned,
|
|
36
38
|
lastPinnedLeft,
|
|
37
39
|
expanded,
|
|
38
40
|
lastRow
|
|
39
41
|
}) : void 0, className);
|
|
40
|
-
$[
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
$[
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
47
|
-
} else t1 = $[
|
|
42
|
+
$[8] = className;
|
|
43
|
+
$[9] = expanded;
|
|
44
|
+
$[10] = hasVariants;
|
|
45
|
+
$[11] = lastPinnedLeft;
|
|
46
|
+
$[12] = lastRow;
|
|
47
|
+
$[13] = pinned;
|
|
48
|
+
$[14] = t1;
|
|
49
|
+
} else t1 = $[14];
|
|
48
50
|
let t2;
|
|
49
|
-
if ($[
|
|
51
|
+
if ($[15] !== props || $[16] !== ref || $[17] !== t1) {
|
|
50
52
|
t2 = /*#__PURE__*/ jsx("td", {
|
|
51
53
|
ref: ref,
|
|
52
54
|
className: t1,
|
|
53
55
|
...props
|
|
54
56
|
});
|
|
55
|
-
$[
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
} else t2 = $[
|
|
57
|
+
$[15] = props;
|
|
58
|
+
$[16] = ref;
|
|
59
|
+
$[17] = t1;
|
|
60
|
+
$[18] = t2;
|
|
61
|
+
} else t2 = $[18];
|
|
60
62
|
return t2;
|
|
61
|
-
}
|
|
63
|
+
};
|
|
62
64
|
Td.displayName = "Td";
|
|
63
65
|
export { Td };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentPropsWithRef, FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { tableHeadCellVariants } from '../classes.js';
|
|
4
4
|
type ThVariantProps = VariantProps<typeof tableHeadCellVariants>;
|
|
5
5
|
type ThProps = Omit<ComponentPropsWithRef<'th'>, keyof ThVariantProps> & ThVariantProps;
|
|
6
|
-
export declare const Th:
|
|
6
|
+
export declare const Th: FC<ThProps>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { cn } from "../../../utils/cn.js";
|
|
5
4
|
import { tableHeadCellVariants } from "../classes.js";
|
|
6
|
-
const Th =
|
|
7
|
-
const $ = c(
|
|
5
|
+
const Th = (t0)=>{
|
|
6
|
+
const $ = c(22);
|
|
8
7
|
let className;
|
|
9
8
|
let draggable;
|
|
10
9
|
let dragging;
|
|
@@ -12,9 +11,10 @@ const Th = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
12
11
|
let lastPinnedLeft;
|
|
13
12
|
let pinned;
|
|
14
13
|
let props;
|
|
14
|
+
let ref;
|
|
15
15
|
let sorted;
|
|
16
16
|
if ($[0] !== t0) {
|
|
17
|
-
({ className, interactive, sorted, pinned, lastPinnedLeft, draggable, dragging, ...props } = t0);
|
|
17
|
+
({ ref, className, interactive, sorted, pinned, lastPinnedLeft, draggable, dragging, ...props } = t0);
|
|
18
18
|
$[0] = t0;
|
|
19
19
|
$[1] = className;
|
|
20
20
|
$[2] = draggable;
|
|
@@ -23,7 +23,8 @@ const Th = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
23
23
|
$[5] = lastPinnedLeft;
|
|
24
24
|
$[6] = pinned;
|
|
25
25
|
$[7] = props;
|
|
26
|
-
$[8] =
|
|
26
|
+
$[8] = ref;
|
|
27
|
+
$[9] = sorted;
|
|
27
28
|
} else {
|
|
28
29
|
className = $[1];
|
|
29
30
|
draggable = $[2];
|
|
@@ -32,10 +33,11 @@ const Th = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
32
33
|
lastPinnedLeft = $[5];
|
|
33
34
|
pinned = $[6];
|
|
34
35
|
props = $[7];
|
|
35
|
-
|
|
36
|
+
ref = $[8];
|
|
37
|
+
sorted = $[9];
|
|
36
38
|
}
|
|
37
39
|
let t1;
|
|
38
|
-
if ($[
|
|
40
|
+
if ($[10] !== className || $[11] !== draggable || $[12] !== dragging || $[13] !== interactive || $[14] !== lastPinnedLeft || $[15] !== pinned || $[16] !== sorted) {
|
|
39
41
|
t1 = cn(tableHeadCellVariants({
|
|
40
42
|
interactive,
|
|
41
43
|
sorted,
|
|
@@ -44,29 +46,29 @@ const Th = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
44
46
|
draggable,
|
|
45
47
|
dragging
|
|
46
48
|
}), className);
|
|
47
|
-
$[
|
|
48
|
-
$[
|
|
49
|
-
$[
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
} else t1 = $[
|
|
49
|
+
$[10] = className;
|
|
50
|
+
$[11] = draggable;
|
|
51
|
+
$[12] = dragging;
|
|
52
|
+
$[13] = interactive;
|
|
53
|
+
$[14] = lastPinnedLeft;
|
|
54
|
+
$[15] = pinned;
|
|
55
|
+
$[16] = sorted;
|
|
56
|
+
$[17] = t1;
|
|
57
|
+
} else t1 = $[17];
|
|
56
58
|
let t2;
|
|
57
|
-
if ($[
|
|
59
|
+
if ($[18] !== props || $[19] !== ref || $[20] !== t1) {
|
|
58
60
|
t2 = /*#__PURE__*/ jsx("th", {
|
|
59
61
|
ref: ref,
|
|
60
62
|
scope: "col",
|
|
61
63
|
className: t1,
|
|
62
64
|
...props
|
|
63
65
|
});
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
68
|
-
} else t2 = $[
|
|
66
|
+
$[18] = props;
|
|
67
|
+
$[19] = ref;
|
|
68
|
+
$[20] = t1;
|
|
69
|
+
$[21] = t2;
|
|
70
|
+
} else t2 = $[21];
|
|
69
71
|
return t2;
|
|
70
|
-
}
|
|
72
|
+
};
|
|
71
73
|
Th.displayName = "Th";
|
|
72
74
|
export { Th };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ComponentPropsWithRef, FC } from 'react';
|
|
2
|
+
export declare const Tr: FC<ComponentPropsWithRef<'tr'>>;
|
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { cn } from "../../../utils/cn.js";
|
|
5
4
|
import { tableRowVariants } from "../classes.js";
|
|
6
|
-
const Tr =
|
|
7
|
-
const $ = c(
|
|
5
|
+
const Tr = (t0)=>{
|
|
6
|
+
const $ = c(10);
|
|
8
7
|
let className;
|
|
9
8
|
let props;
|
|
9
|
+
let ref;
|
|
10
10
|
if ($[0] !== t0) {
|
|
11
|
-
({ className, ...props } = t0);
|
|
11
|
+
({ ref, className, ...props } = t0);
|
|
12
12
|
$[0] = t0;
|
|
13
13
|
$[1] = className;
|
|
14
14
|
$[2] = props;
|
|
15
|
+
$[3] = ref;
|
|
15
16
|
} else {
|
|
16
17
|
className = $[1];
|
|
17
18
|
props = $[2];
|
|
19
|
+
ref = $[3];
|
|
18
20
|
}
|
|
19
21
|
let t1;
|
|
20
|
-
if ($[
|
|
22
|
+
if ($[4] !== className) {
|
|
21
23
|
t1 = cn(tableRowVariants(), className);
|
|
22
|
-
$[
|
|
23
|
-
$[
|
|
24
|
-
} else t1 = $[
|
|
24
|
+
$[4] = className;
|
|
25
|
+
$[5] = t1;
|
|
26
|
+
} else t1 = $[5];
|
|
25
27
|
let t2;
|
|
26
|
-
if ($[
|
|
28
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
27
29
|
t2 = /*#__PURE__*/ jsx("tr", {
|
|
28
30
|
ref: ref,
|
|
29
31
|
className: t1,
|
|
30
32
|
...props
|
|
31
33
|
});
|
|
32
|
-
$[
|
|
33
|
-
$[
|
|
34
|
-
$[
|
|
35
|
-
$[
|
|
36
|
-
} else t2 = $[
|
|
34
|
+
$[6] = props;
|
|
35
|
+
$[7] = ref;
|
|
36
|
+
$[8] = t1;
|
|
37
|
+
$[9] = t2;
|
|
38
|
+
} else t2 = $[9];
|
|
37
39
|
return t2;
|
|
38
|
-
}
|
|
40
|
+
};
|
|
39
41
|
Tr.displayName = "Tr";
|
|
40
42
|
export { Tr };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode, Ref } from 'react';
|
|
2
|
-
import type { Row, RowData, TableFeatures } from '@tanstack/react-table';
|
|
2
|
+
import type { Column, Row, RowData, TableFeatures } from '@tanstack/react-table';
|
|
3
3
|
import type { TestableProps } from '../../utils/testId.js';
|
|
4
|
+
import type { DSTableFeatures } from './lib/dsTableFeatures.js';
|
|
4
5
|
declare module '@tanstack/react-table' {
|
|
5
6
|
interface ColumnMeta<TFeatures extends TableFeatures, TData extends RowData, TValue> {
|
|
6
7
|
headerClassName?: string;
|
|
@@ -123,9 +124,7 @@ export interface TableColumnMeta<T = unknown> {
|
|
|
123
124
|
/** Shared column properties */
|
|
124
125
|
export interface TableColumnBase<T, V> {
|
|
125
126
|
header?: string | ((ctx: {
|
|
126
|
-
column:
|
|
127
|
-
id: string;
|
|
128
|
-
};
|
|
127
|
+
column: Column<DSTableFeatures, T extends RowData ? T : never, unknown>;
|
|
129
128
|
}) => ReactNode);
|
|
130
129
|
cell?: (ctx: TableCellContext<T, V>) => ReactNode;
|
|
131
130
|
size?: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FC, Ref } from 'react';
|
|
1
2
|
import type { DateFieldState, TimeFieldState } from '@react-stately/datepicker';
|
|
2
3
|
import type { GroupDOMAttributes } from '@react-types/shared';
|
|
3
4
|
export interface TemporalSegmentGroupProps extends GroupDOMAttributes {
|
|
@@ -6,5 +7,6 @@ export interface TemporalSegmentGroupProps extends GroupDOMAttributes {
|
|
|
6
7
|
readOnly?: boolean;
|
|
7
8
|
className?: string;
|
|
8
9
|
segmentKeyPrefix?: string;
|
|
10
|
+
ref?: Ref<HTMLDivElement>;
|
|
9
11
|
}
|
|
10
|
-
export declare const TemporalSegmentGroup:
|
|
12
|
+
export declare const TemporalSegmentGroup: FC<TemporalSegmentGroupProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { cva } from "class-variance-authority";
|
|
5
4
|
import { cn } from "../../utils/cn.js";
|
|
6
5
|
import { useDateFormat } from "../DateFormatProvider/index.js";
|
|
@@ -115,65 +114,68 @@ function buildParts(segments, state, order, disabled, readOnly, keyPrefix = "")
|
|
|
115
114
|
}
|
|
116
115
|
return parts;
|
|
117
116
|
}
|
|
118
|
-
const TemporalSegmentGroup =
|
|
119
|
-
const $ = c(
|
|
117
|
+
const TemporalSegmentGroup = (t0)=>{
|
|
118
|
+
const $ = c(21);
|
|
120
119
|
let className;
|
|
121
120
|
let disabled;
|
|
122
121
|
let props;
|
|
123
122
|
let readOnly;
|
|
123
|
+
let ref;
|
|
124
124
|
let state;
|
|
125
125
|
let t1;
|
|
126
126
|
if ($[0] !== t0) {
|
|
127
|
-
({ state, disabled, readOnly, className, segmentKeyPrefix: t1, ...props } = t0);
|
|
127
|
+
({ ref, state, disabled, readOnly, className, segmentKeyPrefix: t1, ...props } = t0);
|
|
128
128
|
$[0] = t0;
|
|
129
129
|
$[1] = className;
|
|
130
130
|
$[2] = disabled;
|
|
131
131
|
$[3] = props;
|
|
132
132
|
$[4] = readOnly;
|
|
133
|
-
$[5] =
|
|
134
|
-
$[6] =
|
|
133
|
+
$[5] = ref;
|
|
134
|
+
$[6] = state;
|
|
135
|
+
$[7] = t1;
|
|
135
136
|
} else {
|
|
136
137
|
className = $[1];
|
|
137
138
|
disabled = $[2];
|
|
138
139
|
props = $[3];
|
|
139
140
|
readOnly = $[4];
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
ref = $[5];
|
|
142
|
+
state = $[6];
|
|
143
|
+
t1 = $[7];
|
|
142
144
|
}
|
|
143
145
|
const segmentKeyPrefix = void 0 === t1 ? "" : t1;
|
|
144
146
|
const { order } = useDateFormat();
|
|
145
147
|
let t2;
|
|
146
|
-
if ($[
|
|
148
|
+
if ($[8] !== disabled || $[9] !== order || $[10] !== readOnly || $[11] !== segmentKeyPrefix || $[12] !== state) {
|
|
147
149
|
t2 = buildParts(state.segments, state, order, disabled, readOnly, segmentKeyPrefix);
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
} else t2 = $[
|
|
150
|
+
$[8] = disabled;
|
|
151
|
+
$[9] = order;
|
|
152
|
+
$[10] = readOnly;
|
|
153
|
+
$[11] = segmentKeyPrefix;
|
|
154
|
+
$[12] = state;
|
|
155
|
+
$[13] = t2;
|
|
156
|
+
} else t2 = $[13];
|
|
155
157
|
const parts = t2;
|
|
156
158
|
let t3;
|
|
157
|
-
if ($[
|
|
159
|
+
if ($[14] !== className) {
|
|
158
160
|
t3 = cn("flex items-center gap-0.5", className);
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
} else t3 = $[
|
|
161
|
+
$[14] = className;
|
|
162
|
+
$[15] = t3;
|
|
163
|
+
} else t3 = $[15];
|
|
162
164
|
let t4;
|
|
163
|
-
if ($[
|
|
165
|
+
if ($[16] !== parts || $[17] !== props || $[18] !== ref || $[19] !== t3) {
|
|
164
166
|
t4 = /*#__PURE__*/ jsx("div", {
|
|
165
167
|
...props,
|
|
166
168
|
ref: ref,
|
|
167
169
|
className: t3,
|
|
168
170
|
children: parts
|
|
169
171
|
});
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
} else t4 = $[
|
|
172
|
+
$[16] = parts;
|
|
173
|
+
$[17] = props;
|
|
174
|
+
$[18] = ref;
|
|
175
|
+
$[19] = t3;
|
|
176
|
+
$[20] = t4;
|
|
177
|
+
} else t4 = $[20];
|
|
176
178
|
return t4;
|
|
177
|
-
}
|
|
179
|
+
};
|
|
178
180
|
TemporalSegmentGroup.displayName = "TemporalSegmentGroup";
|
|
179
181
|
export { TemporalSegmentGroup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type KeyboardEvent } from 'react';
|
|
1
|
+
import { type FC, type KeyboardEvent, type Ref } from 'react';
|
|
2
2
|
import type { TimeValue } from '@react-aria/datepicker';
|
|
3
3
|
export interface TimeDropdownProps {
|
|
4
4
|
/** Whether dropdown is visible */
|
|
@@ -13,6 +13,8 @@ export interface TimeDropdownProps {
|
|
|
13
13
|
onSelect: (time: TimeValue) => void;
|
|
14
14
|
/** Callback when dropdown should close */
|
|
15
15
|
onClose: () => void;
|
|
16
|
+
/** Imperative handle for forwarding keyboard events from the input */
|
|
17
|
+
ref?: Ref<TimeDropdownHandle>;
|
|
16
18
|
}
|
|
17
19
|
export interface TimeDropdownHandle {
|
|
18
20
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
@@ -21,4 +23,4 @@ export interface TimeDropdownHandle {
|
|
|
21
23
|
* Time dropdown component with keyboard navigation.
|
|
22
24
|
* Stops event propagation to prevent interference with parent components.
|
|
23
25
|
*/
|
|
24
|
-
export declare const TimeDropdown:
|
|
26
|
+
export declare const TimeDropdown: FC<TimeDropdownProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
4
4
|
import { Time } from "@internationalized/date";
|
|
5
5
|
import { Check } from "../../icons/index.js";
|
|
6
6
|
import { cn } from "../../utils/cn.js";
|
|
@@ -41,9 +41,9 @@ const findClosestIndex = (options, value)=>{
|
|
|
41
41
|
});
|
|
42
42
|
return closestIndex;
|
|
43
43
|
};
|
|
44
|
-
const TimeDropdown =
|
|
44
|
+
const TimeDropdown = (t0)=>{
|
|
45
45
|
const $ = c(44);
|
|
46
|
-
const { isOpen, timeStep: t1, value, hourCycle: t2, onSelect, onClose } = t0;
|
|
46
|
+
const { ref, isOpen, timeStep: t1, value, hourCycle: t2, onSelect, onClose } = t0;
|
|
47
47
|
const timeStep = void 0 === t1 ? 30 : t1;
|
|
48
48
|
const hourCycle = void 0 === t2 ? 24 : t2;
|
|
49
49
|
let t3;
|
|
@@ -279,7 +279,7 @@ const TimeDropdown = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
279
279
|
$[43] = t20;
|
|
280
280
|
} else t20 = $[43];
|
|
281
281
|
return t20;
|
|
282
|
-
}
|
|
282
|
+
};
|
|
283
283
|
TimeDropdown.displayName = "TimeDropdown";
|
|
284
284
|
function _temp(e_0) {
|
|
285
285
|
return e_0.preventDefault();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FC, ReactNode, Ref } from 'react';
|
|
2
2
|
export interface ToastDescriptionProps {
|
|
3
3
|
children: ReactNode;
|
|
4
|
+
ref?: Ref<HTMLDivElement>;
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
7
|
* Description component for Toast.
|
|
@@ -9,4 +10,4 @@ export interface ToastDescriptionProps {
|
|
|
9
10
|
* Supports text truncation with configurable max lines.
|
|
10
11
|
* Shows a tooltip with full text when content is truncated.
|
|
11
12
|
*/
|
|
12
|
-
export declare const ToastDescription:
|
|
13
|
+
export declare const ToastDescription: FC<ToastDescriptionProps>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { useTestId } from "../../utils/testId.js";
|
|
5
4
|
import { OverflowTooltip, OverflowTooltipContent, OverflowTooltipTrigger } from "../OverflowTooltip/index.js";
|
|
6
5
|
import { Text } from "../Text/index.js";
|
|
7
|
-
const ToastDescription =
|
|
6
|
+
const ToastDescription = (t0)=>{
|
|
8
7
|
const $ = c(9);
|
|
9
|
-
const { children } = t0;
|
|
8
|
+
const { ref, children } = t0;
|
|
10
9
|
const testId = useTestId("description");
|
|
11
10
|
let t1;
|
|
12
11
|
if ($[0] !== children || $[1] !== ref || $[2] !== testId) {
|
|
@@ -46,6 +45,6 @@ const ToastDescription = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
46
45
|
$[8] = t3;
|
|
47
46
|
} else t3 = $[8];
|
|
48
47
|
return t3;
|
|
49
|
-
}
|
|
48
|
+
};
|
|
50
49
|
ToastDescription.displayName = "ToastDescription";
|
|
51
50
|
export { ToastDescription };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FC, ReactNode, Ref } from 'react';
|
|
2
2
|
export interface ToastTitleProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
variant?: 'extended' | 'simple';
|
|
5
|
+
ref?: Ref<HTMLDivElement>;
|
|
5
6
|
}
|
|
6
7
|
/**
|
|
7
8
|
* Title component for Toast.
|
|
@@ -9,4 +10,4 @@ export interface ToastTitleProps {
|
|
|
9
10
|
* Displays the main title text with medium weight.
|
|
10
11
|
* For simple variant, limits to 1 line with tooltip on overflow.
|
|
11
12
|
*/
|
|
12
|
-
export declare const ToastTitle:
|
|
13
|
+
export declare const ToastTitle: FC<ToastTitleProps>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { useTestId } from "../../utils/testId.js";
|
|
5
4
|
import { OverflowTooltip, OverflowTooltipContent, OverflowTooltipTrigger } from "../OverflowTooltip/index.js";
|
|
6
5
|
import { Text } from "../Text/index.js";
|
|
7
|
-
const ToastTitle =
|
|
6
|
+
const ToastTitle = (t0)=>{
|
|
8
7
|
const $ = c(10);
|
|
9
|
-
const { children, variant: t1 } = t0;
|
|
8
|
+
const { ref, children, variant: t1 } = t0;
|
|
10
9
|
const variant = void 0 === t1 ? "extended" : t1;
|
|
11
10
|
const isSimple = "simple" === variant;
|
|
12
11
|
const testId = useTestId("title");
|
|
@@ -51,6 +50,6 @@ const ToastTitle = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
51
50
|
$[9] = t5;
|
|
52
51
|
} else t5 = $[9];
|
|
53
52
|
return t5;
|
|
54
|
-
}
|
|
53
|
+
};
|
|
55
54
|
ToastTitle.displayName = "ToastTitle";
|
|
56
55
|
export { ToastTitle };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { FC, Ref } from 'react';
|
|
1
2
|
import { Tour as ArkUiTour } from '@ark-ui/react';
|
|
2
|
-
export type TourDescriptionProps = ArkUiTour.DescriptionProps
|
|
3
|
-
|
|
3
|
+
export type TourDescriptionProps = ArkUiTour.DescriptionProps & {
|
|
4
|
+
ref?: Ref<HTMLDivElement>;
|
|
5
|
+
};
|
|
6
|
+
export declare const TourDescription: FC<TourDescriptionProps>;
|
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { Tour } from "@ark-ui/react";
|
|
5
4
|
import { useTestId } from "../../utils/testId.js";
|
|
6
5
|
import { OverflowTooltip, OverflowTooltipContent, OverflowTooltipTrigger } from "../OverflowTooltip/index.js";
|
|
7
6
|
import { Text } from "../Text/index.js";
|
|
8
|
-
const TourDescription =
|
|
9
|
-
const $ = c(
|
|
7
|
+
const TourDescription = (t0)=>{
|
|
8
|
+
const $ = c(16);
|
|
10
9
|
let children;
|
|
11
10
|
let props;
|
|
11
|
+
let ref;
|
|
12
12
|
if ($[0] !== t0) {
|
|
13
|
-
({ children, ...props } = t0);
|
|
13
|
+
({ ref, children, ...props } = t0);
|
|
14
14
|
$[0] = t0;
|
|
15
15
|
$[1] = children;
|
|
16
16
|
$[2] = props;
|
|
17
|
+
$[3] = ref;
|
|
17
18
|
} else {
|
|
18
19
|
children = $[1];
|
|
19
20
|
props = $[2];
|
|
21
|
+
ref = $[3];
|
|
20
22
|
}
|
|
21
23
|
const testId = useTestId("description");
|
|
22
24
|
let t1;
|
|
23
|
-
if ($[
|
|
25
|
+
if ($[4] !== children) {
|
|
24
26
|
t1 = /*#__PURE__*/ jsx(Text, {
|
|
25
27
|
size: "sm",
|
|
26
28
|
lineClamp: 4,
|
|
27
29
|
children: children
|
|
28
30
|
});
|
|
29
|
-
$[
|
|
30
|
-
$[
|
|
31
|
-
} else t1 = $[
|
|
31
|
+
$[4] = children;
|
|
32
|
+
$[5] = t1;
|
|
33
|
+
} else t1 = $[5];
|
|
32
34
|
let t2;
|
|
33
|
-
if ($[
|
|
35
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1 || $[9] !== testId) {
|
|
34
36
|
t2 = /*#__PURE__*/ jsx(OverflowTooltipTrigger, {
|
|
35
37
|
children: /*#__PURE__*/ jsx(Tour.Description, {
|
|
36
38
|
...props,
|
|
@@ -40,32 +42,33 @@ const TourDescription = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
40
42
|
children: t1
|
|
41
43
|
})
|
|
42
44
|
});
|
|
43
|
-
$[
|
|
44
|
-
$[
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
48
|
-
} else t2 = $[
|
|
45
|
+
$[6] = props;
|
|
46
|
+
$[7] = ref;
|
|
47
|
+
$[8] = t1;
|
|
48
|
+
$[9] = testId;
|
|
49
|
+
$[10] = t2;
|
|
50
|
+
} else t2 = $[10];
|
|
49
51
|
let t3;
|
|
50
|
-
if ($[
|
|
52
|
+
if ($[11] !== children) {
|
|
51
53
|
t3 = /*#__PURE__*/ jsx(OverflowTooltipContent, {
|
|
52
54
|
children: children
|
|
53
55
|
});
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
56
|
-
} else t3 = $[
|
|
56
|
+
$[11] = children;
|
|
57
|
+
$[12] = t3;
|
|
58
|
+
} else t3 = $[12];
|
|
57
59
|
let t4;
|
|
58
|
-
if ($[
|
|
60
|
+
if ($[13] !== t2 || $[14] !== t3) {
|
|
59
61
|
t4 = /*#__PURE__*/ jsxs(OverflowTooltip, {
|
|
60
62
|
children: [
|
|
61
63
|
t2,
|
|
62
64
|
t3
|
|
63
65
|
]
|
|
64
66
|
});
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
68
|
-
} else t4 = $[
|
|
67
|
+
$[13] = t2;
|
|
68
|
+
$[14] = t3;
|
|
69
|
+
$[15] = t4;
|
|
70
|
+
} else t4 = $[15];
|
|
69
71
|
return t4;
|
|
70
|
-
}
|
|
72
|
+
};
|
|
73
|
+
TourDescription.displayName = "TourDescription";
|
|
71
74
|
export { TourDescription };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { FC, Ref } from 'react';
|
|
1
2
|
import { Tour as ArkUiTour } from '@ark-ui/react';
|
|
2
|
-
export type TourTitleProps = ArkUiTour.TitleProps
|
|
3
|
-
|
|
3
|
+
export type TourTitleProps = ArkUiTour.TitleProps & {
|
|
4
|
+
ref?: Ref<HTMLHeadingElement>;
|
|
5
|
+
};
|
|
6
|
+
export declare const TourTitle: FC<TourTitleProps>;
|