@infonomic/uikit 1.5.0 → 2.0.0
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/components/button/button-group.d.ts +1 -1
- package/dist/components/button/button-group.d.ts.map +1 -1
- package/dist/components/button/button-group.js +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/control-buttons.d.ts.map +1 -1
- package/dist/components/button/control-buttons.js +3 -3
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.js +2 -2
- package/dist/components/button/icon-button.d.ts.map +1 -1
- package/dist/components/button/icon-button.js +1 -1
- package/dist/components/button/index.js +17 -1
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/input/checkbox.d.ts.map +1 -1
- package/dist/components/input/checkbox.js +4 -4
- package/dist/components/input/error-text.d.ts.map +1 -1
- package/dist/components/input/error-text.js +1 -1
- package/dist/components/input/help-text.d.ts.map +1 -1
- package/dist/components/input/help-text.js +1 -1
- package/dist/components/input/input-adornment.d.ts.map +1 -1
- package/dist/components/input/input-adornment.js +1 -1
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +3 -3
- package/dist/components/input/label.d.ts.map +1 -1
- package/dist/components/input/label.js +1 -1
- package/dist/components/input/radio-group.js +1 -1
- package/dist/components/input/select.d.ts +1 -1
- package/dist/components/input/select.d.ts.map +1 -1
- package/dist/components/input/select.js +3 -3
- package/dist/components/input/text-area.d.ts.map +1 -1
- package/dist/components/input/text-area.js +3 -3
- package/dist/components/notifications/alert.d.ts.map +1 -1
- package/dist/components/notifications/alert.js +2 -2
- package/dist/components/notifications/toast.js +4 -4
- package/dist/components/pager/ellipses.d.ts.map +1 -1
- package/dist/components/pager/ellipses.js +1 -1
- package/dist/components/pager/first-button.d.ts.map +1 -1
- package/dist/components/pager/first-button.js +2 -2
- package/dist/components/pager/last-button.d.ts.map +1 -1
- package/dist/components/pager/last-button.js +2 -2
- package/dist/components/pager/next-button.d.ts.map +1 -1
- package/dist/components/pager/next-button.js +2 -2
- package/dist/components/pager/number-button.d.ts.map +1 -1
- package/dist/components/pager/number-button.js +2 -2
- package/dist/components/pager/pagination.d.ts +1 -1
- package/dist/components/pager/pagination.d.ts.map +1 -1
- package/dist/components/pager/pagination.js +5 -5
- package/dist/components/pager/previous-button.d.ts.map +1 -1
- package/dist/components/pager/previous-button.js +2 -2
- package/dist/components/scroll-area/scroll-area.js +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +2 -2
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/icons/index.js +1 -17
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';
|
|
2
|
-
import React, { type
|
|
2
|
+
import React, { type ComponentPropsWithoutRef, type Ref } from 'react';
|
|
3
3
|
import type { EnableRipple, Intent, Size, Variant } from './@types/button';
|
|
4
4
|
interface ButtonGroupContextType {
|
|
5
5
|
variant?: Variant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../src/components/button/button-group.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../src/components/button/button-group.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,KAAK,GAAG,EAAY,MAAM,OAAO,CAAA;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAA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O,oBAAoB,CAAC,IAAI,CAAC,GAAG;IACvF,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAC7B,GAAG,sBAAsB,CAAA;AAE1B,QAAA,MAAM,eAAe;oDAAmD,oBAAoB;;CAoB3F,CAAA;AAID,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import classnames from "classnames";
|
|
3
4
|
import { ToggleGroup } from "radix-ui";
|
|
4
5
|
import react from "react";
|
|
5
|
-
import classnames from "classnames";
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
7
|
import button_group_module from "./button-group.module.js";
|
|
8
8
|
const ButtonGroupContext = /*#__PURE__*/ react.createContext({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAI/D,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;AAE9F,KAAK,QAAQ,GAAG;IAAE,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAA;AAE9E,UAAU,MAAM;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;CACf;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI;IAChE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,QAA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AAA;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;CACxC,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,GACrB,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAEnC,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,gGAY5D,WAAW,CAAC,CAAC,CAAC,sBAoChB,CAAA"}
|
|
@@ -17,7 +17,7 @@ const Button = ({ variant = 'filled', size = 'md', type = 'button', intent = 'pr
|
|
|
17
17
|
return /*#__PURE__*/ jsx(Comp, {
|
|
18
18
|
ref: ref,
|
|
19
19
|
type: type,
|
|
20
|
-
className: classnames(button_module.button, button_module[variant], button_module[size], button_module[intent], {
|
|
20
|
+
className: classnames('button', intent, variant, size, button_module.button, button_module[variant], button_module[size], button_module[intent], {
|
|
21
21
|
[button_module.fullWidth]: true === fullWidth
|
|
22
22
|
}, className),
|
|
23
23
|
onMouseDown: onMouseDown,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/button/control-buttons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"control-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/button/control-buttons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAG9C,KAAK,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAA;AAEvD,UAAU,kBAAmB,SAAQ,UAAU;IAC7C,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;CACzC;AAED,UAAU,sBAAuB,SAAQ,kBAAkB;IACzD,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAC5C;AAED,eAAO,MAAM,iBAAiB,GAAI,uDAO/B,sBAAsB,sBAkCxB,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,4CAMxB,kBAAkB,sBA6BpB,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,4CAMxB,kBAAkB,sBA+BpB,CAAA"}
|
|
@@ -12,7 +12,7 @@ const DirectionalButton = ({ size = 'md', direction, className, onClick, ref, ..
|
|
|
12
12
|
onClick: handleClick,
|
|
13
13
|
type: "button",
|
|
14
14
|
"aria-label": direction,
|
|
15
|
-
className: classnames(control_buttons_module["directional-button"], control_buttons_module[direction], control_buttons_module[size], className),
|
|
15
|
+
className: classnames('control-button', direction, size, control_buttons_module["directional-button"], control_buttons_module[direction], control_buttons_module[size], className),
|
|
16
16
|
children: /*#__PURE__*/ jsx("span", {
|
|
17
17
|
children: /*#__PURE__*/ jsx("svg", {
|
|
18
18
|
className: "icon",
|
|
@@ -37,7 +37,7 @@ const PlayButton = ({ size = 'md', className, onClick, ref, ...rest })=>{
|
|
|
37
37
|
onClick: handleClick,
|
|
38
38
|
type: "button",
|
|
39
39
|
"aria-label": "play",
|
|
40
|
-
className: classnames(control_buttons_module["play-button"], control_buttons_module[size], className),
|
|
40
|
+
className: classnames('control-button', 'play', size, control_buttons_module["play-button"], control_buttons_module[size], className),
|
|
41
41
|
children: /*#__PURE__*/ jsx("span", {
|
|
42
42
|
children: /*#__PURE__*/ jsx("svg", {
|
|
43
43
|
className: "icon",
|
|
@@ -65,7 +65,7 @@ const StopButton = ({ size = 'md', className, onClick, ref, ...rest })=>{
|
|
|
65
65
|
onClick: handleClick,
|
|
66
66
|
type: "button",
|
|
67
67
|
"aria-label": "stop",
|
|
68
|
-
className: classnames(control_buttons_module["stop-button"], control_buttons_module[size], className),
|
|
68
|
+
className: classnames('control-button', 'stop', size, control_buttons_module["stop-button"], control_buttons_module[size], className),
|
|
69
69
|
children: /*#__PURE__*/ jsx("span", {
|
|
70
70
|
children: /*#__PURE__*/ jsx("svg", {
|
|
71
71
|
className: "icon",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/copy-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/copy-button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAK9C,UAAU,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IAC7D,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,SAAkB,EAClB,UAAsB,EACtB,OAAO,EACP,IAAW,EACX,MAAM,EACN,SAAS,EACT,MAAM,EACN,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAyDrC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
3
|
import classnames from "classnames";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
5
|
import { CopyIcon } from "../../icons/index.js";
|
|
6
6
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
7
7
|
import { Button } from "./button.js";
|
|
@@ -42,7 +42,7 @@ function CopyButton({ text, hoverText = 'Copy', copiedText = 'Copied!', variant,
|
|
|
42
42
|
intent: intent,
|
|
43
43
|
fullWidth: fullWidth,
|
|
44
44
|
ripple: ripple,
|
|
45
|
-
className: classnames(copy_button_module["copy-button"], className),
|
|
45
|
+
className: classnames('copy-button', variant, size, intent, copy_button_module["copy-button"], className),
|
|
46
46
|
onClick: handleCopied,
|
|
47
47
|
...rest,
|
|
48
48
|
children: /*#__PURE__*/ jsx(CopyIcon, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/icon-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/icon-button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAI9C,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG;IAC9E,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,wEAShE,eAAe,CAAC,CAAC,CAAC,sBAoBpB,CAAA"}
|
|
@@ -7,7 +7,7 @@ const IconButton = ({ square = false, round = true, variant, size = 'sm', intent
|
|
|
7
7
|
variant: variant,
|
|
8
8
|
size: size,
|
|
9
9
|
intent: intent,
|
|
10
|
-
className: classnames({
|
|
10
|
+
className: classnames('icon-button', variant, size, intent, {
|
|
11
11
|
[button_module.square]: square
|
|
12
12
|
}, {
|
|
13
13
|
[button_module.round]: !square && round
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__ from "./button.js";
|
|
2
2
|
export * from "./icon-button.js";
|
|
3
3
|
export * from "./copy-button.js";
|
|
4
4
|
export * from "./control-buttons.js";
|
|
5
5
|
export * from "./button-group.js";
|
|
6
|
+
var __webpack_modules__ = {
|
|
7
|
+
"./button.js": function(module) {
|
|
8
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var __webpack_module_cache__ = {};
|
|
12
|
+
function __webpack_require__(moduleId) {
|
|
13
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
14
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
15
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
16
|
+
exports: {}
|
|
17
|
+
};
|
|
18
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
19
|
+
return module.exports;
|
|
20
|
+
}
|
|
21
|
+
__webpack_require__("./button.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
1
|
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
2
|
+
import type React from 'react';
|
|
3
3
|
declare function Root({ children, ...rest }: DropdownMenuPrimitive.DropdownMenuProps): React.JSX.Element;
|
|
4
4
|
declare function Portal({ children, ...rest }: DropdownMenuPrimitive.DropdownMenuPortalProps): React.JSX.Element;
|
|
5
5
|
declare function Sub({ children, ...rest }: DropdownMenuPrimitive.DropdownMenuSubProps): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,iBAAS,IAAI,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,qBAAqB,CAAC,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAE/F;AAsBD,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,qBAAqB,CAAC,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEnE;AAmGD,iBAAS,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,qBAAqB,CAAC,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAEjG;AA0CD,eAAO,MAAM,QAAQ;;;gDAnKlB,qBAAqB,CAAC,wBAAwB,GAAG;YAClD,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAA;SACpD,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;;;;gDAyBlB,qBAAqB,CAAC,wBAAwB,GAAG;YAClD,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;SACjD,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;;;gDAkBlB,qBAAqB,CAAC,sBAAsB,GAAG;YAChD,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;SACjD,GAAG,KAAK,CAAC,GAAG,C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AA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,KAAK,IAAI,CAAA;CAC/D;AAED,eAAO,MAAM,QAAQ,GAAqB,kKAiBvC,KAAK,GAAG;IACT,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;CACzC,KAAG,KAAK,CAAC,GAAG,CAAC,OA4Cb,CAAA"}
|
|
@@ -8,10 +8,10 @@ import { ErrorText } from "./error-text.js";
|
|
|
8
8
|
import { HelpText } from "./help-text.js";
|
|
9
9
|
const checkbox_Checkbox = function({ ref, id, name, label, variant = 'outlined', size = 'md', intent = 'primary', reverse = false, checkBoxClasses, containerClasses, componentClasses, labelClasses, error = false, helpText = '', errorText = '', ...rest }) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("div", {
|
|
11
|
-
className: containerClasses,
|
|
11
|
+
className: classnames('checkbox-container', containerClasses),
|
|
12
12
|
children: [
|
|
13
13
|
/*#__PURE__*/ jsxs("div", {
|
|
14
|
-
className: classnames(checkbox_module.container, componentClasses, {
|
|
14
|
+
className: classnames('checkbox-component', checkbox_module.container, componentClasses, {
|
|
15
15
|
[checkbox_module.reverse]: reverse
|
|
16
16
|
}),
|
|
17
17
|
children: [
|
|
@@ -19,11 +19,11 @@ const checkbox_Checkbox = function({ ref, id, name, label, variant = 'outlined',
|
|
|
19
19
|
ref: ref,
|
|
20
20
|
id: id,
|
|
21
21
|
name: name,
|
|
22
|
-
className: classnames(checkbox_module.checkbox, checkbox_module[variant], checkbox_module[size], checkbox_module[intent], checkBoxClasses),
|
|
22
|
+
className: classnames('checkbox', variant, size, intent, checkbox_module.checkbox, checkbox_module[variant], checkbox_module[size], checkbox_module[intent], checkBoxClasses),
|
|
23
23
|
...rest,
|
|
24
24
|
children: /*#__PURE__*/ jsx(external_radix_ui_Checkbox.Indicator, {
|
|
25
25
|
forceMount: true,
|
|
26
|
-
className: checkbox_module.indicator,
|
|
26
|
+
className: classnames('checkbox-indicator', checkbox_module.indicator),
|
|
27
27
|
children: /*#__PURE__*/ jsx(CheckIcon, {
|
|
28
28
|
className: checkbox_module.icon
|
|
29
29
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-text.d.ts","sourceRoot":"","sources":["../../../src/components/input/error-text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-text.d.ts","sourceRoot":"","sources":["../../../src/components/input/error-text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAMpF"}
|
|
@@ -4,7 +4,7 @@ import error_text_module from "./error-text.module.js";
|
|
|
4
4
|
function ErrorText({ id, className, text }) {
|
|
5
5
|
return /*#__PURE__*/ jsx("p", {
|
|
6
6
|
id: id,
|
|
7
|
-
className: classnames(error_text_module.text, className),
|
|
7
|
+
className: classnames('error-text', error_text_module.text, className),
|
|
8
8
|
children: text
|
|
9
9
|
});
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-text.d.ts","sourceRoot":"","sources":["../../../src/components/input/help-text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"help-text.d.ts","sourceRoot":"","sources":["../../../src/components/input/help-text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,aAAa;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAE9E"}
|
|
@@ -3,7 +3,7 @@ import classnames from "classnames";
|
|
|
3
3
|
import help_text_module from "./help-text.module.js";
|
|
4
4
|
function HelpText({ className, text }) {
|
|
5
5
|
return /*#__PURE__*/ jsx("p", {
|
|
6
|
-
className: classnames(help_text_module.text, className),
|
|
6
|
+
className: classnames('help-text', help_text_module.text, className),
|
|
7
7
|
children: text
|
|
8
8
|
});
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-adornment.d.ts","sourceRoot":"","sources":["../../../src/components/input/input-adornment.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-adornment.d.ts","sourceRoot":"","sources":["../../../src/components/input/input-adornment.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,4BAA4B,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;AACtE,MAAM,WAAW,mBAAoB,SAAQ,4BAA4B;IACvE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAkB,EAClB,OAAc,EACd,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgBzC"}
|
|
@@ -3,7 +3,7 @@ import classnames from "classnames";
|
|
|
3
3
|
import input_adornment_module from "./input-adornment.module.js";
|
|
4
4
|
function InputAdornment({ position = 'start', margins = true, className, children, ...rest }) {
|
|
5
5
|
return /*#__PURE__*/ jsx("div", {
|
|
6
|
-
className: classnames(input_adornment_module.adornment, {
|
|
6
|
+
className: classnames('input-adornment', position, input_adornment_module.adornment, {
|
|
7
7
|
[input_adornment_module.start]: 'start' === position
|
|
8
8
|
}, {
|
|
9
9
|
[input_adornment_module.end]: 'end' === position
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAK9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAG/D,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7E,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,mBAAmB,CAAC,C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AmB,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAA;IACtD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;CAC5F;AAED,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,OAAO,EAAE,sMAoB1D,UAAU,sBAgDZ,CAAA"}
|
|
@@ -6,7 +6,7 @@ import { HelpText } from "./help-text.js";
|
|
|
6
6
|
import input_module from "./input.module.js";
|
|
7
7
|
import { Label } from "./label.js";
|
|
8
8
|
const Input = ({ ref, id, name, type = 'text', variant = 'outlined', inputSize = 'md', intent = 'primary', required, label, startAdornment, endAdornment, placeHolder = '', autoComplete = 'off', error = false, helpText = '', errorText = '', inputWrapperClassName, className, ...rest })=>/*#__PURE__*/ jsxs("div", {
|
|
9
|
-
className: classnames(input_module.inputWrapper, inputWrapperClassName),
|
|
9
|
+
className: classnames('input-wrapper', input_module.inputWrapper, inputWrapperClassName),
|
|
10
10
|
children: [
|
|
11
11
|
null != label && /*#__PURE__*/ jsx(Label, {
|
|
12
12
|
id: id,
|
|
@@ -15,7 +15,7 @@ const Input = ({ ref, id, name, type = 'text', variant = 'outlined', inputSize =
|
|
|
15
15
|
label: label
|
|
16
16
|
}),
|
|
17
17
|
/*#__PURE__*/ jsxs("div", {
|
|
18
|
-
className: input_module.inputContainer,
|
|
18
|
+
className: classnames('input-container', input_module.inputContainer),
|
|
19
19
|
children: [
|
|
20
20
|
null != startAdornment && /*#__PURE__*/ jsx("div", {
|
|
21
21
|
className: classnames(input_module.startAdornment, input_module[variant]),
|
|
@@ -34,7 +34,7 @@ const Input = ({ ref, id, name, type = 'text', variant = 'outlined', inputSize =
|
|
|
34
34
|
"aria-required": required,
|
|
35
35
|
"aria-errormessage": errorText,
|
|
36
36
|
"aria-describedby": error ? `error-for-${id}` : void 0,
|
|
37
|
-
className: classnames(input_module.input, input_module[variant], input_module[inputSize], input_module[intent], {
|
|
37
|
+
className: classnames('input', variant, inputSize, intent, input_module.input, input_module[variant], input_module[inputSize], input_module[intent], {
|
|
38
38
|
[input_module.startAdornmentPadding]: null != startAdornment
|
|
39
39
|
}, {
|
|
40
40
|
[input_module.endAdornmentPadding]: null != endAdornment
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/input/label.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/input/label.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,UAAU;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAWhG"}
|
|
@@ -5,7 +5,7 @@ function Label({ className, id, htmlFor, label, required }) {
|
|
|
5
5
|
return /*#__PURE__*/ jsxs("label", {
|
|
6
6
|
id: `label-for-${id}`,
|
|
7
7
|
htmlFor: htmlFor,
|
|
8
|
-
className: classnames(label_module.label, className),
|
|
8
|
+
className: classnames('label', label_module.label, className),
|
|
9
9
|
children: [
|
|
10
10
|
label,
|
|
11
11
|
null != required && /*#__PURE__*/ jsx("span", {
|
|
@@ -25,7 +25,7 @@ const RadioGroupItem = ({ intent = 'primary', className, id, value, label, ref:
|
|
|
25
25
|
});
|
|
26
26
|
const radio_group_RadioGroup = ({ ref: forwardedRef, className, direction = 'column', children, ...props })=>/*#__PURE__*/ jsx(RadioGroup.Root, {
|
|
27
27
|
ref: forwardedRef,
|
|
28
|
-
className: classnames(radio_group_module[direction], className),
|
|
28
|
+
className: classnames('radio-group', radio_group_module[direction], className),
|
|
29
29
|
...props,
|
|
30
30
|
children: children
|
|
31
31
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
1
2
|
import type React from 'react';
|
|
2
3
|
import type { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { Select as SelectPrimitive } from 'radix-ui';
|
|
4
4
|
import type { Intent } from '../@types/shared.js';
|
|
5
5
|
import type { Size, Variant } from '../button/@types/button.js';
|
|
6
6
|
export interface SelectValue {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/input/select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/input/select.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAM/D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,KAAK,WAAW,GAAG,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,cAAc,GAAG,QAAQ,CAAA;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,EAAE,EACF,QAAQ,EACR,WAAW,EACX,aAAa,EACb,MAAM,EACN,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAyCjC;AAED,eAAO,MAAM,UAAU;2DAKpB,eAAe,CAAC,eAAe,GAAG;QACnC,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;KACjD;;CAaA,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import classnames from "classnames";
|
|
4
3
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "@radix-ui/react-icons";
|
|
4
|
+
import classnames from "classnames";
|
|
5
5
|
import { Select } from "radix-ui";
|
|
6
6
|
import { Button } from "../button/button.js";
|
|
7
7
|
import { HelpText } from "./help-text.js";
|
|
8
8
|
import select_module from "./select.module.js";
|
|
9
9
|
function select_Select({ id, children, placeholder, disabledValue, intent, variant, size, position, containerClassName, className, ariaLabel, helpText, ...rest }) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("div", {
|
|
11
|
-
className: classnames(containerClassName),
|
|
11
|
+
className: classnames('select-container', containerClassName),
|
|
12
12
|
children: [
|
|
13
13
|
/*#__PURE__*/ jsxs(Select.Root, {
|
|
14
14
|
...rest,
|
|
@@ -67,7 +67,7 @@ function select_Select({ id, children, placeholder, disabledValue, intent, varia
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
const SelectItem = ({ ref: forwardedRef, children, className, ...props })=>/*#__PURE__*/ jsxs(Select.Item, {
|
|
70
|
-
className: classnames(select_module["select-item"], className),
|
|
70
|
+
className: classnames('select-item', select_module["select-item"], className),
|
|
71
71
|
...props,
|
|
72
72
|
ref: forwardedRef,
|
|
73
73
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../src/components/input/text-area.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../src/components/input/text-area.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOxD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACtF,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAA;CAClG;AAED,eAAO,MAAM,QAAQ,GAAqB,sIAgBvC,aAAa,KAAG,KAAK,CAAC,GAAG,CAAC,OAqC5B,CAAA"}
|
|
@@ -2,12 +2,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import { ErrorText } from "./error-text.js";
|
|
4
4
|
import { HelpText } from "./help-text.js";
|
|
5
|
-
import { Label } from "./label.js";
|
|
6
5
|
import input_module from "./input.module.js";
|
|
6
|
+
import { Label } from "./label.js";
|
|
7
7
|
import text_area_module from "./text-area.module.js";
|
|
8
8
|
const text_area_TextArea = function({ ref, id, name, label, rows = 4, required = false, variant = 'outlined', intent = 'primary', placeHolder = '', autoComplete = 'off', error = false, helpText = '', errorText = '', className, ...rest }) {
|
|
9
9
|
return /*#__PURE__*/ jsxs("fieldset", {
|
|
10
|
-
className: input_module.inputWrapper,
|
|
10
|
+
className: classnames('text-area-wrapper', input_module.inputWrapper),
|
|
11
11
|
children: [
|
|
12
12
|
/*#__PURE__*/ jsx(Label, {
|
|
13
13
|
id: id,
|
|
@@ -28,7 +28,7 @@ const text_area_TextArea = function({ ref, id, name, label, rows = 4, required =
|
|
|
28
28
|
"aria-required": required,
|
|
29
29
|
"aria-errormessage": errorText,
|
|
30
30
|
"aria-describedby": error ? `error-for-${id}` : void 0,
|
|
31
|
-
className: classnames(input_module.input, input_module[variant], input_module[intent], text_area_module["text-area"], {
|
|
31
|
+
className: classnames('text-area', variant, intent, input_module.input, input_module[variant], input_module[intent], text_area_module["text-area"], {
|
|
32
32
|
[input_module.error]: error
|
|
33
33
|
}, className),
|
|
34
34
|
...rest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAI/C,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAWD,eAAO,MAAM,KAAK,GAAkB,mEASjC,UAAU,GAAG;IACd,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAI/C,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAWD,eAAO,MAAM,KAAK,GAAkB,mEASjC,UAAU,GAAG;IACd,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAuEvB,CAAA"}
|
|
@@ -31,12 +31,12 @@ const alert_Alert = function({ ref, intent = 'success', icon = true, close = tru
|
|
|
31
31
|
if (false === show) return null;
|
|
32
32
|
return /*#__PURE__*/ jsx("div", {
|
|
33
33
|
ref: ref,
|
|
34
|
-
className: classnames(alert_module.alert, alert_module[intent], className, {
|
|
34
|
+
className: classnames('alert', intent, alert_module.alert, alert_module[intent], className, {
|
|
35
35
|
[alert_module.fade]: fade
|
|
36
36
|
}),
|
|
37
37
|
...rest,
|
|
38
38
|
children: null != title ? /*#__PURE__*/ jsxs("div", {
|
|
39
|
-
className: alert_module["alert-with-title"],
|
|
39
|
+
className: classnames('alert-with-title', alert_module["alert-with-title"]),
|
|
40
40
|
children: [
|
|
41
41
|
/*#__PURE__*/ jsxs("div", {
|
|
42
42
|
className: classnames(alert_module.header),
|
|
@@ -30,12 +30,12 @@ const toast_Toast = function({ ref, intent = 'success', position = 'bottom-right
|
|
|
30
30
|
};
|
|
31
31
|
return /*#__PURE__*/ jsxs(external_radix_ui_Toast.Root, {
|
|
32
32
|
ref: mergedRef,
|
|
33
|
-
className: classnames(toast_module.root, toast_module[position]),
|
|
33
|
+
className: classnames('toast', toast_module.root, toast_module[position]),
|
|
34
34
|
open: open,
|
|
35
35
|
onOpenChange: onOpenChange,
|
|
36
36
|
children: [
|
|
37
37
|
/*#__PURE__*/ jsxs("div", {
|
|
38
|
-
className: toast_module.header,
|
|
38
|
+
className: classnames('toast-header', toast_module.header),
|
|
39
39
|
children: [
|
|
40
40
|
/*#__PURE__*/ jsx("time", {
|
|
41
41
|
dateTime: eventDateRef.current.toISOString(),
|
|
@@ -66,14 +66,14 @@ const toast_Toast = function({ ref, intent = 'success', position = 'bottom-right
|
|
|
66
66
|
]
|
|
67
67
|
}),
|
|
68
68
|
/*#__PURE__*/ jsxs(external_radix_ui_Toast.Title, {
|
|
69
|
-
className: toast_module.title,
|
|
69
|
+
className: classnames('toast-title', toast_module.title),
|
|
70
70
|
children: [
|
|
71
71
|
null != icon && /*#__PURE__*/ jsx(Icon, {}),
|
|
72
72
|
title
|
|
73
73
|
]
|
|
74
74
|
}),
|
|
75
75
|
/*#__PURE__*/ jsx(external_radix_ui_Toast.Description, {
|
|
76
|
-
className: toast_module.description,
|
|
76
|
+
className: classnames("toast-description", toast_module.description),
|
|
77
77
|
children: message
|
|
78
78
|
})
|
|
79
79
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ellipses.d.ts","sourceRoot":"","sources":["../../../src/components/pager/ellipses.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ellipses.d.ts","sourceRoot":"","sources":["../../../src/components/pager/ellipses.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,wBAAgB,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAQ5C"}
|
|
@@ -8,7 +8,7 @@ function Ellipses() {
|
|
|
8
8
|
return /*#__PURE__*/ jsx("li", {
|
|
9
9
|
className: "flex",
|
|
10
10
|
children: /*#__PURE__*/ jsx("div", {
|
|
11
|
-
className: classnames(pagination_module.ellipses, '
|
|
11
|
+
className: classnames(pagination_module.ellipses, 'pagination-ellipses'),
|
|
12
12
|
children: "..."
|
|
13
13
|
})
|
|
14
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/first-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"first-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/first-button.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAK7D,eAAO,MAAM,WAAW;+DAOrB,gBAAgB,GAAG;QACpB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CA4BA,CAAA"}
|
|
@@ -17,9 +17,9 @@ const FirstButton = ({ ref, className, disabled, asChild, children, ...rest })=>
|
|
|
17
17
|
className: pagination_module["mobile-toggle"],
|
|
18
18
|
children: /*#__PURE__*/ jsx(Comp, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
className: classnames(pagination_module["first-button"], pagination_module[variant], pagination_module["rounded-left"], '
|
|
20
|
+
className: classnames(pagination_module["first-button"], pagination_module[variant], pagination_module["rounded-left"], 'pagination-first', className),
|
|
21
21
|
disabled: disabled,
|
|
22
|
-
"data-testid": "
|
|
22
|
+
"data-testid": "pagination-first",
|
|
23
23
|
title: "First",
|
|
24
24
|
...aria,
|
|
25
25
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"last-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/last-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"last-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/last-button.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAK7D,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAC/C,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,UAAU;sEAQpB,eAAe,GAAG;QACnB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CA2BA,CAAA"}
|
|
@@ -17,10 +17,10 @@ const LastButton = ({ ref, className, disabled, count, asChild, children, ...res
|
|
|
17
17
|
className: pagination_module["mobile-toggle"],
|
|
18
18
|
children: /*#__PURE__*/ jsx(Comp, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
className: classnames(pagination_module["last-button"], pagination_module[variant], pagination_module["rounded-right"], '
|
|
20
|
+
className: classnames(pagination_module["last-button"], pagination_module[variant], pagination_module["rounded-right"], 'pagination-last', className),
|
|
21
21
|
disabled: disabled,
|
|
22
22
|
title: "Last",
|
|
23
|
-
"data-testid": "
|
|
23
|
+
"data-testid": "pagination-last",
|
|
24
24
|
...aria,
|
|
25
25
|
...rest,
|
|
26
26
|
children: asChild ?? false ? children : /*#__PURE__*/ jsx(DoubleArrowRightIcon, {})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/next-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"next-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/next-button.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAK7D,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAC/C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,UAAU;qEAQpB,eAAe,GAAG;QACnB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CA2BA,CAAA"}
|
|
@@ -21,10 +21,10 @@ const NextButton = ({ ref, className, disabled, page, asChild, children, ...rest
|
|
|
21
21
|
pagination_module[variant]
|
|
22
22
|
], {
|
|
23
23
|
[pagination_module["rounded-right"]]: null == showLastButton || false === showLastButton
|
|
24
|
-
}, '
|
|
24
|
+
}, 'pagination-next', className),
|
|
25
25
|
disabled: disabled,
|
|
26
26
|
title: "Next",
|
|
27
|
-
"data-testid": "
|
|
27
|
+
"data-testid": "pagination-next",
|
|
28
28
|
...aria,
|
|
29
29
|
...rest,
|
|
30
30
|
children: asChild ?? false ? children : /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/number-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"number-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/number-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAK7D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IACjD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,YAAY;sFAStB,iBAAiB,GAAG;QACrB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CAmDA,CAAA"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Slot } from "@radix-ui/react-slot";
|
|
4
4
|
import classnames from "classnames";
|
|
5
|
-
import { usePager } from "./pagination.js";
|
|
6
5
|
import { useMediaQuery } from "../../hooks/use-media-query.js";
|
|
6
|
+
import { usePager } from "./pagination.js";
|
|
7
7
|
import pagination_module from "./pagination.module.js";
|
|
8
8
|
const NumberButton = ({ ref, page, className, disabled, activeClassName, asChild, children, ...rest })=>{
|
|
9
9
|
const mobile = useMediaQuery('(max-width: 640px)');
|
|
@@ -23,7 +23,7 @@ const NumberButton = ({ ref, page, className, disabled, activeClassName, asChild
|
|
|
23
23
|
[pagination_module["rounded-left"]]: 1 === page && (!(showFirstButton ?? false) && (hidePrevButton ?? false) || mobile)
|
|
24
24
|
}, {
|
|
25
25
|
[pagination_module["rounded-right"]]: page === count && (!(showLastButton ?? false) && (hideNextButton ?? false) || mobile)
|
|
26
|
-
}, '
|
|
26
|
+
}, 'pagination-number', className),
|
|
27
27
|
"data-testid": classnames({
|
|
28
28
|
'pager-number-active': currentPage === page,
|
|
29
29
|
[`pager-number-${page}`]: currentPage !== page
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Ellipses } from './ellipses.js';
|
|
3
2
|
import type { Variant } from './@types';
|
|
3
|
+
import { Ellipses } from './ellipses.js';
|
|
4
4
|
import type { UsePaginationItem, UsePaginationProps } from './hooks/types/usePagination';
|
|
5
5
|
export interface PagerContextType {
|
|
6
6
|
variant: Variant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pager/pagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pager/pagination.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAYxF,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,EAAE,iBAAiB,EAAE,CAAA;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,eAAO,MAAM,YAAY,iCAUvB,CAAA;AAKF;;GAEG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AS,CAAA;IAC1B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAA;IACvE,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAA;IAC1E,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAA;IAC5E,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAA;IACtE,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IACrF,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;CAClD;AA2DD,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;AACnD,KAAK,kBAAkB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAE/D,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
import react, { useContext } from "react";
|
|
4
3
|
import classnames from "classnames";
|
|
5
|
-
import {
|
|
4
|
+
import react, { useContext } from "react";
|
|
6
5
|
import { Ellipses } from "./ellipses.js";
|
|
7
6
|
import { FirstButton } from "./first-button.js";
|
|
7
|
+
import { usePagination } from "./hooks/usePagination.js";
|
|
8
8
|
import { LastButton } from "./last-button.js";
|
|
9
9
|
import { NextButton } from "./next-button.js";
|
|
10
10
|
import { NumberButton } from "./number-button.js";
|
|
11
|
-
import { PreviousButton } from "./previous-button.js";
|
|
12
11
|
import pagination_module from "./pagination.module.js";
|
|
12
|
+
import { PreviousButton } from "./previous-button.js";
|
|
13
13
|
const PAGINATION_NAME = 'Pagination';
|
|
14
14
|
const ROOT_NAME = 'Root';
|
|
15
15
|
const PAGER_NAME = 'Pager';
|
|
@@ -113,11 +113,11 @@ const Root = ({ ref, className, itemsClassName, children, ariaLabel, dataTestId,
|
|
|
113
113
|
return /*#__PURE__*/ jsx("nav", {
|
|
114
114
|
"data-testid": dataTestId,
|
|
115
115
|
ref: ref,
|
|
116
|
-
className: classnames(pagination_module["pagination-root"], 'pagination-root', className),
|
|
116
|
+
className: classnames('pagination-root', pagination_module["pagination-root"], 'pagination-root', className),
|
|
117
117
|
...rest,
|
|
118
118
|
"aria-label": ariaLabel ?? 'Pager navigation',
|
|
119
119
|
children: /*#__PURE__*/ jsx("ul", {
|
|
120
|
-
className: classnames(pagination_module["pagination-items"], pagination_module[variant], itemsClassName),
|
|
120
|
+
className: classnames('pagination-items', pagination_module["pagination-items"], pagination_module[variant], itemsClassName),
|
|
121
121
|
children: children
|
|
122
122
|
})
|
|
123
123
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previous-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/previous-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"previous-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/previous-button.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAK7D,eAAO,MAAM,cAAc;+DAOxB,gBAAgB,GAAG;QACpB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CA4BA,CAAA"}
|
|
@@ -19,10 +19,10 @@ const PreviousButton = ({ ref, className, disabled, asChild, children, ...rest }
|
|
|
19
19
|
ref: ref,
|
|
20
20
|
className: classnames(pagination_module["previous-button"], pagination_module[variant], {
|
|
21
21
|
[pagination_module["rounded-left"]]: null == showFirstButton || false === showFirstButton
|
|
22
|
-
}, '
|
|
22
|
+
}, 'pagination-previous', className),
|
|
23
23
|
disabled: disabled,
|
|
24
24
|
title: "Previous",
|
|
25
|
-
"data-testid": "
|
|
25
|
+
"data-testid": "pagination-previous",
|
|
26
26
|
...aria,
|
|
27
27
|
...rest,
|
|
28
28
|
children: asChild ?? false ? children : /*#__PURE__*/ jsx(ChevronLeftIcon, {})
|
|
@@ -4,7 +4,7 @@ import { ScrollArea } from "radix-ui";
|
|
|
4
4
|
import scroll_area_module from "./scroll-area.module.js";
|
|
5
5
|
const scroll_area_ScrollArea = ({ children, style, className })=>/*#__PURE__*/ jsxs(ScrollArea.Root, {
|
|
6
6
|
style: style,
|
|
7
|
-
className: classnames(scroll_area_module.root, className),
|
|
7
|
+
className: classnames('scroll-area', scroll_area_module.root, className),
|
|
8
8
|
children: [
|
|
9
9
|
/*#__PURE__*/ jsx(ScrollArea.Viewport, {
|
|
10
10
|
className: scroll_area_module.viewport,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAA;A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AAM,MAAM,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAiBjE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAmBnE,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;AAmB7D,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;AAkBrE,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;AAmB9D,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAA;AA8BnE,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -17,7 +17,7 @@ function Container({ ref, className, children, ...rest }) {
|
|
|
17
17
|
className: classes,
|
|
18
18
|
...rest,
|
|
19
19
|
children: /*#__PURE__*/ jsx("div", {
|
|
20
|
-
className: classnames('table
|
|
20
|
+
className: classnames('table-scroller', table_module["table-scroller"]),
|
|
21
21
|
children: children
|
|
22
22
|
})
|
|
23
23
|
});
|
|
@@ -25,7 +25,7 @@ function Container({ ref, className, children, ...rest }) {
|
|
|
25
25
|
function Body({ ref, className, children, ...rest }) {
|
|
26
26
|
return /*#__PURE__*/ jsx("tbody", {
|
|
27
27
|
ref: ref,
|
|
28
|
-
className: className,
|
|
28
|
+
className: classnames('table-body', className),
|
|
29
29
|
...rest,
|
|
30
30
|
children: children
|
|
31
31
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
1
|
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
2
|
+
import type * as React from 'react';
|
|
3
3
|
declare const Tabs: {
|
|
4
4
|
({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {
|
|
5
5
|
ref?: React.RefObject<React.ComponentRef<typeof TabsPrimitive.Root>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,QAAA,MAAM,IAAI;mCAIP,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG;QAC7D,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;KACrE;;;uCAaE,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG;YAC7D,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;SACrE;;;;uCAaE,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG;YAChE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,CAAA;SACxE;;;;uCAaE,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG;YAChE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,CAAA;SACxE;;;CAvCA,CAAA;AAqDD,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Tabs } from "radix-ui";
|
|
4
3
|
import classnames from "classnames";
|
|
4
|
+
import { Tabs } from "radix-ui";
|
|
5
5
|
import tabs_module from "./tabs.module.js";
|
|
6
6
|
const tabs_Tabs = ({ ref, className, ...props })=>/*#__PURE__*/ jsx(Tabs.Root, {
|
|
7
7
|
ref: ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,KAAK,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;AAC/D,MAAM,WAAW,YAAa,SAAQ,qBAAqB;IACzD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACvC;AAID,eAAO,MAAM,OAAO,GAAoB,gGAUrC,YAAY,GAAG;IAChB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC,KAAG,KAAK,CAAC,GAAG,CAAC,OAoBb,CAAA"}
|
package/dist/icons/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE__icon_element_js_2cf6cae5__ from "./icon-element.js";
|
|
2
1
|
export * from "./danger-icon.js";
|
|
2
|
+
export * from "./icon-element.js";
|
|
3
3
|
export * from "./info-icon.js";
|
|
4
4
|
export * from "./light-icon.js";
|
|
5
5
|
export * from "./moon-icon.js";
|
|
@@ -37,19 +37,3 @@ export * from "./github-icon.js";
|
|
|
37
37
|
export * from "./google-icon.js";
|
|
38
38
|
export * from "./dashboard-icon.js";
|
|
39
39
|
export * from "./stopwatch-icon.js";
|
|
40
|
-
var __webpack_modules__ = {
|
|
41
|
-
"./icon-element": function(module) {
|
|
42
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__icon_element_js_2cf6cae5__;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var __webpack_module_cache__ = {};
|
|
46
|
-
function __webpack_require__(moduleId) {
|
|
47
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
48
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
49
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
50
|
-
exports: {}
|
|
51
|
-
};
|
|
52
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
53
|
-
return module.exports;
|
|
54
|
-
}
|
|
55
|
-
__webpack_require__("./icon-element");
|
package/package.json
CHANGED