@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
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Modern React component library for building user interfaces.
|
|
|
6
6
|
|
|
7
7
|
All documentation is available in:
|
|
8
8
|
|
|
9
|
-
- [Storybook](https://wallarm.github.io/
|
|
9
|
+
- [Storybook](https://wallarm.github.io/design-system/) - Interactive component examples
|
|
10
10
|
- [Installation Guide](docs/installation.md) - Setup instructions
|
|
11
11
|
- [Getting Started](docs/getting-started.md) - Introduction and overview
|
|
12
12
|
|
|
@@ -52,7 +52,7 @@ body {
|
|
|
52
52
|
|
|
53
53
|
## ✨ Features
|
|
54
54
|
|
|
55
|
-
- **
|
|
55
|
+
- **100+ components** - Complete set of UI elements
|
|
56
56
|
- **React 19** - Latest React version
|
|
57
57
|
- **TypeScript** - Full type safety
|
|
58
58
|
- **Tailwind CSS v4** - Modern styling system
|
|
@@ -70,14 +70,14 @@ body {
|
|
|
70
70
|
- **Modals** - Dialog, Drawer, Popover
|
|
71
71
|
- **Navigation** - Tabs, Breadcrumbs, SegmentedControl
|
|
72
72
|
- **Layout** - Stack, Flex, ScrollArea
|
|
73
|
-
- **Data
|
|
73
|
+
- **Data Display** - Badge, Tag, Code
|
|
74
74
|
|
|
75
75
|
## 🛠 Development
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
78
|
# Clone repository
|
|
79
79
|
git clone https://github.com/wallarm/design-system.git
|
|
80
|
-
cd
|
|
80
|
+
cd design-system
|
|
81
81
|
|
|
82
82
|
# Install dependencies
|
|
83
83
|
pnpm install
|
|
@@ -114,6 +114,8 @@ pnpm --filter @wallarm-org/design-system icons:sync --only Bell,BellOff # ref
|
|
|
114
114
|
|
|
115
115
|
The command writes the component files, `src/icons/index.ts`, the gallery category (`module/const.ts`) and Code Connect (`module/Icons.figma.batch.json` + its `Icons.figma.batch.ts` template). `scripts/icons/manifest.json` maps Figma nodes to component names, and also holds excluded nodes and the `keep` list of hand-maintained icons. When a new layer's name collides with an existing icon, map it there. Brand icons without a Neutral variant in Figma get a generated `*Neutral` twin. Commit with `[update-screenshots]` so CI refreshes the icon gallery baselines.
|
|
116
116
|
|
|
117
|
+
## 📖 Resources
|
|
118
|
+
|
|
117
119
|
- [Storybook](https://wallarm.github.io/design-system/) - Interactive examples
|
|
118
120
|
- [NPM](https://www.npmjs.com/package/@wallarm-org/design-system) - NPM package
|
|
119
121
|
- [GitHub](https://github.com/wallarm/design-system) - Source code
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type { FC, Ref } from 'react';
|
|
1
2
|
import { type ButtonProps } from '../Button/index.js';
|
|
2
3
|
export interface CalendarApplyButtonProps extends Omit<ButtonProps, 'onClick'> {
|
|
3
4
|
/** Callback fired before closing calendar */
|
|
4
5
|
onClick?: () => void;
|
|
6
|
+
ref?: Ref<HTMLButtonElement>;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Apply button for the calendar footer.
|
|
8
10
|
* Calls onClick, then closes the calendar.
|
|
9
11
|
*/
|
|
10
|
-
export declare const CalendarApplyButton:
|
|
12
|
+
export declare const CalendarApplyButton: FC<CalendarApplyButtonProps>;
|
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { DatePicker } from "@ark-ui/react";
|
|
5
4
|
import { Button } from "../Button/index.js";
|
|
6
|
-
const CalendarApplyButton =
|
|
7
|
-
const $ = c(
|
|
5
|
+
const CalendarApplyButton = (t0)=>{
|
|
6
|
+
const $ = c(16);
|
|
8
7
|
let onClick;
|
|
9
8
|
let props;
|
|
9
|
+
let ref;
|
|
10
10
|
let t1;
|
|
11
11
|
let t2;
|
|
12
12
|
let t3;
|
|
13
13
|
let t4;
|
|
14
14
|
if ($[0] !== t0) {
|
|
15
|
-
({ onClick, children: t1, variant: t2, color: t3, size: t4, ...props } = t0);
|
|
15
|
+
({ ref, onClick, children: t1, variant: t2, color: t3, size: t4, ...props } = t0);
|
|
16
16
|
$[0] = t0;
|
|
17
17
|
$[1] = onClick;
|
|
18
18
|
$[2] = props;
|
|
19
|
-
$[3] =
|
|
20
|
-
$[4] =
|
|
21
|
-
$[5] =
|
|
22
|
-
$[6] =
|
|
19
|
+
$[3] = ref;
|
|
20
|
+
$[4] = t1;
|
|
21
|
+
$[5] = t2;
|
|
22
|
+
$[6] = t3;
|
|
23
|
+
$[7] = t4;
|
|
23
24
|
} else {
|
|
24
25
|
onClick = $[1];
|
|
25
26
|
props = $[2];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
ref = $[3];
|
|
28
|
+
t1 = $[4];
|
|
29
|
+
t2 = $[5];
|
|
30
|
+
t3 = $[6];
|
|
31
|
+
t4 = $[7];
|
|
30
32
|
}
|
|
31
33
|
const children = void 0 === t1 ? "Apply" : t1;
|
|
32
34
|
const variant = void 0 === t2 ? "primary" : t2;
|
|
33
35
|
const color = void 0 === t3 ? "brand" : t3;
|
|
34
36
|
const size = void 0 === t4 ? "small" : t4;
|
|
35
37
|
let t5;
|
|
36
|
-
if ($[
|
|
38
|
+
if ($[8] !== children || $[9] !== color || $[10] !== onClick || $[11] !== props || $[12] !== ref || $[13] !== size || $[14] !== variant) {
|
|
37
39
|
t5 = /*#__PURE__*/ jsx(DatePicker.Context, {
|
|
38
40
|
children: (api)=>/*#__PURE__*/ jsx(Button, {
|
|
39
41
|
ref: ref,
|
|
@@ -48,16 +50,16 @@ const CalendarApplyButton = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
48
50
|
children: children
|
|
49
51
|
})
|
|
50
52
|
});
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
} else t5 = $[
|
|
53
|
+
$[8] = children;
|
|
54
|
+
$[9] = color;
|
|
55
|
+
$[10] = onClick;
|
|
56
|
+
$[11] = props;
|
|
57
|
+
$[12] = ref;
|
|
58
|
+
$[13] = size;
|
|
59
|
+
$[14] = variant;
|
|
60
|
+
$[15] = t5;
|
|
61
|
+
} else t5 = $[15];
|
|
60
62
|
return t5;
|
|
61
|
-
}
|
|
63
|
+
};
|
|
62
64
|
CalendarApplyButton.displayName = "CalendarApplyButton";
|
|
63
65
|
export { CalendarApplyButton };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FC, ReactNode, Ref } from 'react';
|
|
2
2
|
export interface CalendarBodyProps {
|
|
3
3
|
/** Content to render (InputHeader, Grid(s), etc.) */
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
/** Additional className for styling */
|
|
6
6
|
className?: string;
|
|
7
|
+
ref?: Ref<HTMLDivElement>;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Container for the main calendar body content.
|
|
10
11
|
* Wraps InputHeader, Grid(s), and optionally Footer.
|
|
11
12
|
*/
|
|
12
|
-
export declare const CalendarBody:
|
|
13
|
+
export declare const CalendarBody: FC<CalendarBodyProps>;
|
|
@@ -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
|
-
const CalendarBody =
|
|
4
|
+
const CalendarBody = (t0)=>{
|
|
6
5
|
const $ = c(6);
|
|
7
|
-
const { children, className } = t0;
|
|
6
|
+
const { ref, children, className } = t0;
|
|
8
7
|
let t1;
|
|
9
8
|
if ($[0] !== className) {
|
|
10
9
|
t1 = cn("flex flex-col", className);
|
|
@@ -24,6 +23,6 @@ const CalendarBody = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
24
23
|
$[5] = t2;
|
|
25
24
|
} else t2 = $[5];
|
|
26
25
|
return t2;
|
|
27
|
-
}
|
|
26
|
+
};
|
|
28
27
|
CalendarBody.displayName = "CalendarBody";
|
|
29
28
|
export { CalendarBody };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FC, ReactNode, Ref } from 'react';
|
|
2
2
|
export interface CalendarContentProps {
|
|
3
3
|
/** Content to render inside the calendar popover */
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
/** Additional className for styling */
|
|
6
6
|
className?: string;
|
|
7
|
+
ref?: Ref<HTMLDivElement>;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Content container for the calendar popover.
|
|
10
11
|
* Renders within a Portal with positioning and animation.
|
|
11
12
|
*/
|
|
12
|
-
export declare const CalendarContent:
|
|
13
|
+
export declare const CalendarContent: FC<CalendarContentProps>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { DatePicker, Portal } from "@ark-ui/react";
|
|
5
4
|
import { cn } from "../../utils/cn.js";
|
|
6
5
|
import { useLayerZIndexRef } from "../../utils/syncLayerZIndex.js";
|
|
7
|
-
const CalendarContent =
|
|
6
|
+
const CalendarContent = (t0)=>{
|
|
8
7
|
const $ = c(6);
|
|
9
|
-
const { children, className } = t0;
|
|
8
|
+
const { ref, children, className } = t0;
|
|
10
9
|
const contentRef = useLayerZIndexRef(ref);
|
|
11
10
|
let t1;
|
|
12
11
|
if ($[0] !== className) {
|
|
@@ -31,6 +30,6 @@ const CalendarContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
31
30
|
$[5] = t2;
|
|
32
31
|
} else t2 = $[5];
|
|
33
32
|
return t2;
|
|
34
|
-
}
|
|
33
|
+
};
|
|
35
34
|
CalendarContent.displayName = "CalendarContent";
|
|
36
35
|
export { CalendarContent };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FC, ReactNode, Ref } from 'react';
|
|
2
2
|
export interface CalendarFooterProps {
|
|
3
3
|
/** Children to render (buttons, keyboard hints, etc.) */
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
/** Additional className for styling */
|
|
6
6
|
className?: string;
|
|
7
|
+
ref?: Ref<HTMLDivElement>;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Footer container for the calendar.
|
|
@@ -16,4 +17,4 @@ export interface CalendarFooterProps {
|
|
|
16
17
|
* <CalendarApplyButton />
|
|
17
18
|
* </CalendarFooter>
|
|
18
19
|
*/
|
|
19
|
-
export declare const CalendarFooter:
|
|
20
|
+
export declare const CalendarFooter: FC<CalendarFooterProps>;
|
|
@@ -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
|
-
const CalendarFooter =
|
|
4
|
+
const CalendarFooter = (t0)=>{
|
|
6
5
|
const $ = c(6);
|
|
7
|
-
const { children, className } = t0;
|
|
6
|
+
const { ref, children, className } = t0;
|
|
8
7
|
let t1;
|
|
9
8
|
if ($[0] !== className) {
|
|
10
9
|
t1 = cn("flex items-center justify-between", "h-48 px-12", "border-t border-border-primary-light", className);
|
|
@@ -24,6 +23,6 @@ const CalendarFooter = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
24
23
|
$[5] = t2;
|
|
25
24
|
} else t2 = $[5];
|
|
26
25
|
return t2;
|
|
27
|
-
}
|
|
26
|
+
};
|
|
28
27
|
CalendarFooter.displayName = "CalendarFooter";
|
|
29
28
|
export { CalendarFooter };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FC, ReactNode, Ref } from 'react';
|
|
2
2
|
export interface CalendarFooterControlsProps {
|
|
3
3
|
/** Children to render (typically Reset and Apply buttons) */
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
/** Additional className for styling */
|
|
6
6
|
className?: string;
|
|
7
|
+
ref?: Ref<HTMLDivElement>;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Container for footer action buttons.
|
|
10
11
|
* Positions buttons to the right with consistent spacing.
|
|
11
12
|
*/
|
|
12
|
-
export declare const CalendarFooterControls:
|
|
13
|
+
export declare const CalendarFooterControls: FC<CalendarFooterControlsProps>;
|
|
@@ -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
|
-
const CalendarFooterControls =
|
|
4
|
+
const CalendarFooterControls = (t0)=>{
|
|
6
5
|
const $ = c(6);
|
|
7
|
-
const { children, className } = t0;
|
|
6
|
+
const { ref, children, className } = t0;
|
|
8
7
|
let t1;
|
|
9
8
|
if ($[0] !== className) {
|
|
10
9
|
t1 = cn("flex items-center gap-10 ml-auto", className);
|
|
@@ -24,6 +23,6 @@ const CalendarFooterControls = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
24
23
|
$[5] = t2;
|
|
25
24
|
} else t2 = $[5];
|
|
26
25
|
return t2;
|
|
27
|
-
}
|
|
26
|
+
};
|
|
28
27
|
CalendarFooterControls.displayName = "CalendarFooterControls";
|
|
29
28
|
export { CalendarFooterControls };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type { FC, Ref } from 'react';
|
|
1
2
|
export interface CalendarGridsProps {
|
|
2
3
|
/** Additional className for styling */
|
|
3
4
|
className?: string;
|
|
5
|
+
ref?: Ref<HTMLDivElement>;
|
|
4
6
|
}
|
|
5
7
|
/**
|
|
6
8
|
* Automatic calendar grids container.
|
|
7
9
|
* Renders one or two grids based on calendar type from context.
|
|
8
10
|
* Handles all layout and spacing automatically.
|
|
9
11
|
*/
|
|
10
|
-
export declare const CalendarGrids:
|
|
12
|
+
export declare const CalendarGrids: FC<CalendarGridsProps>;
|
|
@@ -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 { cn } from "../../utils/cn.js";
|
|
5
4
|
import { useCalendarContext } from "./CalendarContext.js";
|
|
6
5
|
import { CalendarGrid } from "./CalendarGrid.js";
|
|
7
|
-
const CalendarGrids =
|
|
6
|
+
const CalendarGrids = (t0)=>{
|
|
8
7
|
const $ = c(13);
|
|
9
|
-
const { className } = t0;
|
|
8
|
+
const { ref, className } = t0;
|
|
10
9
|
const { isRange } = useCalendarContext();
|
|
11
10
|
const t1 = isRange && "gap-12";
|
|
12
11
|
let t2;
|
|
@@ -55,6 +54,6 @@ const CalendarGrids = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
55
54
|
$[12] = t7;
|
|
56
55
|
} else t7 = $[12];
|
|
57
56
|
return t7;
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
CalendarGrids.displayName = "CalendarGrids";
|
|
60
59
|
export { CalendarGrids };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { FC, Ref } from 'react';
|
|
1
2
|
export interface CalendarKeyboardHintsProps {
|
|
2
3
|
/** Additional className for styling */
|
|
3
4
|
className?: string;
|
|
5
|
+
ref?: Ref<HTMLDivElement>;
|
|
4
6
|
}
|
|
5
7
|
/**
|
|
6
8
|
* Keyboard navigation hints for the calendar footer.
|
|
7
9
|
* Shows arrow keys for navigation, Enter for selection, and Esc to close.
|
|
8
10
|
*/
|
|
9
|
-
export declare const CalendarKeyboardHints:
|
|
11
|
+
export declare const CalendarKeyboardHints: FC<CalendarKeyboardHintsProps>;
|
|
@@ -1,11 +1,10 @@
|
|
|
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 { cn } from "../../utils/cn.js";
|
|
5
4
|
import { Kbd } from "../Kbd/index.js";
|
|
6
|
-
const CalendarKeyboardHints =
|
|
5
|
+
const CalendarKeyboardHints = (t0)=>{
|
|
7
6
|
const $ = c(8);
|
|
8
|
-
const { className } = t0;
|
|
7
|
+
const { ref, className } = t0;
|
|
9
8
|
let t1;
|
|
10
9
|
if ($[0] !== className) {
|
|
11
10
|
t1 = cn("flex items-center gap-12", className);
|
|
@@ -96,6 +95,6 @@ const CalendarKeyboardHints = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
96
95
|
$[7] = t5;
|
|
97
96
|
} else t5 = $[7];
|
|
98
97
|
return t5;
|
|
99
|
-
}
|
|
98
|
+
};
|
|
100
99
|
CalendarKeyboardHints.displayName = "CalendarKeyboardHints";
|
|
101
100
|
export { CalendarKeyboardHints };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type { FC, Ref } from 'react';
|
|
1
2
|
import { type ButtonProps } from '../Button/index.js';
|
|
2
3
|
export interface CalendarResetButtonProps extends Omit<ButtonProps, 'onClick'> {
|
|
3
4
|
/** Callback fired after reset (in addition to clearing value) */
|
|
4
5
|
onClick?: () => void;
|
|
6
|
+
ref?: Ref<HTMLButtonElement>;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Reset button for the calendar footer.
|
|
8
10
|
* Clears the selected value when clicked, then calls onClick.
|
|
9
11
|
*/
|
|
10
|
-
export declare const CalendarResetButton:
|
|
12
|
+
export declare const CalendarResetButton: FC<CalendarResetButtonProps>;
|
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { DatePicker } from "@ark-ui/react";
|
|
5
4
|
import { Button } from "../Button/index.js";
|
|
6
|
-
const CalendarResetButton =
|
|
7
|
-
const $ = c(
|
|
5
|
+
const CalendarResetButton = (t0)=>{
|
|
6
|
+
const $ = c(16);
|
|
8
7
|
let onClick;
|
|
9
8
|
let props;
|
|
9
|
+
let ref;
|
|
10
10
|
let t1;
|
|
11
11
|
let t2;
|
|
12
12
|
let t3;
|
|
13
13
|
let t4;
|
|
14
14
|
if ($[0] !== t0) {
|
|
15
|
-
({ onClick, children: t1, variant: t2, color: t3, size: t4, ...props } = t0);
|
|
15
|
+
({ ref, onClick, children: t1, variant: t2, color: t3, size: t4, ...props } = t0);
|
|
16
16
|
$[0] = t0;
|
|
17
17
|
$[1] = onClick;
|
|
18
18
|
$[2] = props;
|
|
19
|
-
$[3] =
|
|
20
|
-
$[4] =
|
|
21
|
-
$[5] =
|
|
22
|
-
$[6] =
|
|
19
|
+
$[3] = ref;
|
|
20
|
+
$[4] = t1;
|
|
21
|
+
$[5] = t2;
|
|
22
|
+
$[6] = t3;
|
|
23
|
+
$[7] = t4;
|
|
23
24
|
} else {
|
|
24
25
|
onClick = $[1];
|
|
25
26
|
props = $[2];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
ref = $[3];
|
|
28
|
+
t1 = $[4];
|
|
29
|
+
t2 = $[5];
|
|
30
|
+
t3 = $[6];
|
|
31
|
+
t4 = $[7];
|
|
30
32
|
}
|
|
31
33
|
const children = void 0 === t1 ? "Reset" : t1;
|
|
32
34
|
const variant = void 0 === t2 ? "ghost" : t2;
|
|
33
35
|
const color = void 0 === t3 ? "neutral" : t3;
|
|
34
36
|
const size = void 0 === t4 ? "small" : t4;
|
|
35
37
|
let t5;
|
|
36
|
-
if ($[
|
|
38
|
+
if ($[8] !== children || $[9] !== color || $[10] !== onClick || $[11] !== props || $[12] !== ref || $[13] !== size || $[14] !== variant) {
|
|
37
39
|
t5 = /*#__PURE__*/ jsx(DatePicker.Context, {
|
|
38
40
|
children: (api)=>/*#__PURE__*/ jsx(Button, {
|
|
39
41
|
ref: ref,
|
|
@@ -48,16 +50,16 @@ const CalendarResetButton = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
|
48
50
|
children: children
|
|
49
51
|
})
|
|
50
52
|
});
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
} else t5 = $[
|
|
53
|
+
$[8] = children;
|
|
54
|
+
$[9] = color;
|
|
55
|
+
$[10] = onClick;
|
|
56
|
+
$[11] = props;
|
|
57
|
+
$[12] = ref;
|
|
58
|
+
$[13] = size;
|
|
59
|
+
$[14] = variant;
|
|
60
|
+
$[15] = t5;
|
|
61
|
+
} else t5 = $[15];
|
|
60
62
|
return t5;
|
|
61
|
-
}
|
|
63
|
+
};
|
|
62
64
|
CalendarResetButton.displayName = "CalendarResetButton";
|
|
63
65
|
export { CalendarResetButton };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ComponentPropsWithRef, FC } from 'react';
|
|
2
|
+
export declare const TBody: FC<ComponentPropsWithRef<'tbody'>>;
|
|
@@ -1,39 +1,41 @@
|
|
|
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
|
-
const TBody =
|
|
6
|
-
const $ = c(
|
|
4
|
+
const TBody = (t0)=>{
|
|
5
|
+
const $ = c(10);
|
|
7
6
|
let className;
|
|
8
7
|
let props;
|
|
8
|
+
let ref;
|
|
9
9
|
if ($[0] !== t0) {
|
|
10
|
-
({ className, ...props } = t0);
|
|
10
|
+
({ ref, className, ...props } = t0);
|
|
11
11
|
$[0] = t0;
|
|
12
12
|
$[1] = className;
|
|
13
13
|
$[2] = props;
|
|
14
|
+
$[3] = ref;
|
|
14
15
|
} else {
|
|
15
16
|
className = $[1];
|
|
16
17
|
props = $[2];
|
|
18
|
+
ref = $[3];
|
|
17
19
|
}
|
|
18
20
|
let t1;
|
|
19
|
-
if ($[
|
|
21
|
+
if ($[4] !== className) {
|
|
20
22
|
t1 = cn(className);
|
|
21
|
-
$[
|
|
22
|
-
$[
|
|
23
|
-
} else t1 = $[
|
|
23
|
+
$[4] = className;
|
|
24
|
+
$[5] = t1;
|
|
25
|
+
} else t1 = $[5];
|
|
24
26
|
let t2;
|
|
25
|
-
if ($[
|
|
27
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
26
28
|
t2 = /*#__PURE__*/ jsx("tbody", {
|
|
27
29
|
ref: ref,
|
|
28
30
|
className: t1,
|
|
29
31
|
...props
|
|
30
32
|
});
|
|
31
|
-
$[
|
|
32
|
-
$[
|
|
33
|
-
$[
|
|
34
|
-
$[
|
|
35
|
-
} else t2 = $[
|
|
33
|
+
$[6] = props;
|
|
34
|
+
$[7] = ref;
|
|
35
|
+
$[8] = t1;
|
|
36
|
+
$[9] = t2;
|
|
37
|
+
} else t2 = $[9];
|
|
36
38
|
return t2;
|
|
37
|
-
}
|
|
39
|
+
};
|
|
38
40
|
TBody.displayName = "TBody";
|
|
39
41
|
export { TBody };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ComponentPropsWithRef, FC } from 'react';
|
|
2
|
+
export declare const THead: FC<ComponentPropsWithRef<'thead'>>;
|
|
@@ -1,39 +1,41 @@
|
|
|
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
|
-
const THead =
|
|
6
|
-
const $ = c(
|
|
4
|
+
const THead = (t0)=>{
|
|
5
|
+
const $ = c(10);
|
|
7
6
|
let className;
|
|
8
7
|
let props;
|
|
8
|
+
let ref;
|
|
9
9
|
if ($[0] !== t0) {
|
|
10
|
-
({ className, ...props } = t0);
|
|
10
|
+
({ ref, className, ...props } = t0);
|
|
11
11
|
$[0] = t0;
|
|
12
12
|
$[1] = className;
|
|
13
13
|
$[2] = props;
|
|
14
|
+
$[3] = ref;
|
|
14
15
|
} else {
|
|
15
16
|
className = $[1];
|
|
16
17
|
props = $[2];
|
|
18
|
+
ref = $[3];
|
|
17
19
|
}
|
|
18
20
|
let t1;
|
|
19
|
-
if ($[
|
|
21
|
+
if ($[4] !== className) {
|
|
20
22
|
t1 = cn(className);
|
|
21
|
-
$[
|
|
22
|
-
$[
|
|
23
|
-
} else t1 = $[
|
|
23
|
+
$[4] = className;
|
|
24
|
+
$[5] = t1;
|
|
25
|
+
} else t1 = $[5];
|
|
24
26
|
let t2;
|
|
25
|
-
if ($[
|
|
27
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
26
28
|
t2 = /*#__PURE__*/ jsx("thead", {
|
|
27
29
|
ref: ref,
|
|
28
30
|
className: t1,
|
|
29
31
|
...props
|
|
30
32
|
});
|
|
31
|
-
$[
|
|
32
|
-
$[
|
|
33
|
-
$[
|
|
34
|
-
$[
|
|
35
|
-
} else t2 = $[
|
|
33
|
+
$[6] = props;
|
|
34
|
+
$[7] = ref;
|
|
35
|
+
$[8] = t1;
|
|
36
|
+
$[9] = t2;
|
|
37
|
+
} else t2 = $[9];
|
|
36
38
|
return t2;
|
|
37
|
-
}
|
|
39
|
+
};
|
|
38
40
|
THead.displayName = "THead";
|
|
39
41
|
export { THead };
|
|
@@ -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 { tableBodyCellVariants } from '../classes.js';
|
|
4
4
|
type TdVariantProps = VariantProps<typeof tableBodyCellVariants>;
|
|
5
5
|
type TdProps = Omit<ComponentPropsWithRef<'td'>, keyof TdVariantProps> & TdVariantProps;
|
|
6
|
-
export declare const Td:
|
|
6
|
+
export declare const Td: FC<TdProps>;
|
|
7
7
|
export {};
|