@oneplatformdev/ui 0.1.10-57 → 0.1.10-59
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/Button/Button.d.ts.map +1 -1
- package/Button/Button.js +29 -18
- package/Button/Button.js.map +1 -1
- package/Button/Button.types.d.ts +4 -1
- package/Button/Button.types.d.ts.map +1 -1
- package/CHANGELOG.md +16 -0
- package/package.json +4 -4
package/Button/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,eAAO,MAAM,MAAM,uFA+BlB,CAAA;AAGD,eAAe,MAAM,CAAC"}
|
package/Button/Button.js
CHANGED
|
@@ -1,25 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { buttonVariants as
|
|
6
|
-
import
|
|
7
|
-
import "
|
|
8
|
-
const y =
|
|
9
|
-
({
|
|
10
|
-
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { Slot as l } from "@radix-ui/react-slot";
|
|
4
|
+
import { cn as d } from "@oneplatformdev/utils";
|
|
5
|
+
import { buttonVariants as b } from "./buttonVariants.js";
|
|
6
|
+
import "@radix-ui/react-tooltip";
|
|
7
|
+
import { Tooltip as x } from "../Tooltip/Tooltip.js";
|
|
8
|
+
const y = c.forwardRef(
|
|
9
|
+
({
|
|
10
|
+
disabled: o,
|
|
11
|
+
className: a,
|
|
12
|
+
variant: n,
|
|
13
|
+
size: f,
|
|
14
|
+
asChild: e = !1,
|
|
15
|
+
title: t = "",
|
|
16
|
+
tooltip: r,
|
|
17
|
+
tooltipProps: s,
|
|
18
|
+
message: m,
|
|
19
|
+
...i
|
|
20
|
+
}, u) => /* @__PURE__ */ p(
|
|
21
|
+
x,
|
|
11
22
|
{
|
|
12
|
-
open: o || !t && !r ? !1 : void 0,
|
|
13
|
-
message: r || t,
|
|
14
|
-
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
|
|
23
|
+
open: o || !t && !r && !m ? !1 : void 0,
|
|
24
|
+
message: m || r || t,
|
|
25
|
+
...s || {},
|
|
26
|
+
children: /* @__PURE__ */ p(
|
|
27
|
+
e ? l : "button",
|
|
17
28
|
{
|
|
18
29
|
type: "button",
|
|
19
|
-
ref:
|
|
30
|
+
ref: u,
|
|
20
31
|
disabled: o,
|
|
21
|
-
className:
|
|
22
|
-
...
|
|
32
|
+
className: d(b({ variant: n, size: f, className: a })),
|
|
33
|
+
...i
|
|
23
34
|
}
|
|
24
35
|
)
|
|
25
36
|
}
|
package/Button/Button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../src/Button/Button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\n\nimport { cn } from \"@oneplatformdev/utils\"\nimport { buttonVariants } from './buttonVariants';\nimport { ButtonProps } from './Button.types';\n\nimport {
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../src/Button/Button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\n\nimport { cn } from \"@oneplatformdev/utils\"\nimport { buttonVariants } from './buttonVariants';\nimport { ButtonProps } from './Button.types';\n\nimport { Tooltip } from '../Tooltip';\n\n// TODO: create ButtonIcon component | update button | add start/end icon\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({\n disabled,\n className,\n variant,\n size,\n asChild = false,\n title = '',\n tooltip,\n tooltipProps,\n message,\n ...props\n }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Tooltip\n open={(disabled || (!title && !tooltip && !message)) ? false : undefined}\n message={message || tooltip || title}\n {...(tooltipProps || {})}\n children={(\n <Comp\n type='button'\n ref={ref}\n disabled={disabled}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )}\n />\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport default Button;\n"],"names":["Button","React","disabled","className","variant","size","asChild","title","tooltip","tooltipProps","message","props","ref","jsx","Tooltip","Slot","cn","buttonVariants"],"mappings":";;;;;;;AAUO,MAAMA,IAASC,EAAM;AAAA,EAC1B,CAAC;AAAA,IACE,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,OAAAC,IAAQ;AAAA,IACR,SAAAC;AAAA,IACA,cAAAC;AAAA,IACA,SAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GACFC,MAGA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAOZ,KAAa,CAACK,KAAS,CAACC,KAAW,CAACE,IAAY,KAAQ;AAAA,MAC/D,SAASA,KAAWF,KAAWD;AAAA,MAC9B,GAAIE,KAAgB,CAAA;AAAA,MACrB,UACE,gBAAAI;AAAA,QAPOP,IAAUS,IAAO;AAAA,QAOvB;AAAA,UACC,MAAK;AAAA,UACL,KAAAH;AAAA,UACA,UAAAV;AAAA,UACA,WAAWc,EAAGC,EAAe,EAAE,SAAAb,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,UACzD,GAAGQ;AAAA,QAAA;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAKV;AACAX,EAAO,cAAc;"}
|
package/Button/Button.types.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { buttonVariants } from './buttonVariants';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
+
import { TooltipProps } from '../Tooltip';
|
|
4
5
|
import * as React from "react";
|
|
5
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
6
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>, Pick<TooltipProps, 'message'> {
|
|
6
7
|
asChild?: boolean;
|
|
8
|
+
/**@deprecated: use message instead*/
|
|
7
9
|
tooltip?: ReactNode;
|
|
10
|
+
tooltipProps?: TooltipProps;
|
|
8
11
|
}
|
|
9
12
|
//# sourceMappingURL=Button.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../src/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../src/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qCAAqC;IACrC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B"}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 0.1.10-59 (2025-10-20)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated @oneplatformdev/utils to 0.1.1-108
|
|
6
|
+
- Updated @oneplatformdev/hooks to 0.1.0-94
|
|
7
|
+
- Updated @oneplatformdev/tokens to 0.0.1-81
|
|
8
|
+
|
|
9
|
+
## 0.1.10-58 (2025-10-13)
|
|
10
|
+
|
|
11
|
+
### 🧱 Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated @oneplatformdev/utils to 0.1.1-107
|
|
14
|
+
- Updated @oneplatformdev/hooks to 0.1.0-93
|
|
15
|
+
- Updated @oneplatformdev/tokens to 0.0.1-80
|
|
16
|
+
|
|
1
17
|
## 0.1.10-57 (2025-10-13)
|
|
2
18
|
|
|
3
19
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneplatformdev/ui",
|
|
3
|
-
"version": "0.1.10-
|
|
3
|
+
"version": "0.1.10-59",
|
|
4
4
|
"description": "UI component library for OnePlatform",
|
|
5
5
|
"author": "One Platform Development Team",
|
|
6
6
|
"keywords": [
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"recharts": "^3.2.0",
|
|
106
106
|
"sonner": "^2.0.7",
|
|
107
107
|
"vaul": "^1.1.2",
|
|
108
|
-
"@oneplatformdev/tokens": "^0.0.1-
|
|
109
|
-
"@oneplatformdev/hooks": "^0.1.0-
|
|
110
|
-
"@oneplatformdev/utils": "^0.1.1-
|
|
108
|
+
"@oneplatformdev/tokens": "^0.0.1-81",
|
|
109
|
+
"@oneplatformdev/hooks": "^0.1.0-94",
|
|
110
|
+
"@oneplatformdev/utils": "^0.1.1-108"
|
|
111
111
|
}
|
|
112
112
|
}
|