@equal-experts/kuat-react 0.12.0 → 0.13.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/README.md +3 -1
- package/dist/icon-button-B5hCoK1b.js +63 -0
- package/dist/icon-button.js +12 -0
- package/dist/index.js +852 -523
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/dist/accordion.d.ts +0 -2
- package/dist/alert-dialog.d.ts +0 -2
- package/dist/badge.d.ts +0 -3
- package/dist/button-group.d.ts +0 -2
- package/dist/button.d.ts +0 -3
- package/dist/carousel.d.ts +0 -2
- package/dist/checkbox.d.ts +0 -3
- package/dist/components/ui/accordion/accordion.d.ts +0 -7
- package/dist/components/ui/accordion/index.d.ts +0 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +0 -20
- package/dist/components/ui/alert-dialog/index.d.ts +0 -1
- package/dist/components/ui/badge/badge.d.ts +0 -16
- package/dist/components/ui/badge/index.d.ts +0 -2
- package/dist/components/ui/breadcrumb/Breadcrumb.d.ts +0 -29
- package/dist/components/ui/breadcrumb/breadcrumb-primitives.d.ts +0 -19
- package/dist/components/ui/breadcrumb/index.d.ts +0 -4
- package/dist/components/ui/button/button.d.ts +0 -27
- package/dist/components/ui/button/index.d.ts +0 -2
- package/dist/components/ui/button-group/button-group.d.ts +0 -23
- package/dist/components/ui/button-group/index.d.ts +0 -2
- package/dist/components/ui/carousel/carousel.d.ts +0 -50
- package/dist/components/ui/carousel/index.d.ts +0 -2
- package/dist/components/ui/checkbox/checkbox-field.d.ts +0 -23
- package/dist/components/ui/checkbox/checkbox.d.ts +0 -5
- package/dist/components/ui/checkbox/index.d.ts +0 -4
- package/dist/components/ui/content-card/content-card.d.ts +0 -29
- package/dist/components/ui/content-card/index.d.ts +0 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -27
- package/dist/components/ui/dropdown-menu/index.d.ts +0 -1
- package/dist/components/ui/ee-logo-icon/ee-logo-icon.d.ts +0 -11
- package/dist/components/ui/ee-logo-icon/index.d.ts +0 -2
- package/dist/components/ui/field/field.d.ts +0 -28
- package/dist/components/ui/field/index.d.ts +0 -2
- package/dist/components/ui/input/index.d.ts +0 -2
- package/dist/components/ui/input/input.d.ts +0 -20
- package/dist/components/ui/kuat-carousel/index.d.ts +0 -2
- package/dist/components/ui/kuat-carousel/kuat-carousel.d.ts +0 -16
- package/dist/components/ui/kuat-header/index.d.ts +0 -2
- package/dist/components/ui/kuat-header/kuat-header.d.ts +0 -53
- package/dist/components/ui/kuat-logo-lockup/index.d.ts +0 -2
- package/dist/components/ui/kuat-logo-lockup/kuat-logo-lockup.d.ts +0 -17
- package/dist/components/ui/kuat-radial-progress/index.d.ts +0 -2
- package/dist/components/ui/kuat-radial-progress/kuat-radial-progress.d.ts +0 -16
- package/dist/components/ui/radio/index.d.ts +0 -4
- package/dist/components/ui/radio/radio-field.d.ts +0 -25
- package/dist/components/ui/radio/radio.d.ts +0 -7
- package/dist/components/ui/select/constants.d.ts +0 -19
- package/dist/components/ui/select/index.d.ts +0 -3
- package/dist/components/ui/select/select.d.ts +0 -53
- package/dist/components/ui/separator/index.d.ts +0 -2
- package/dist/components/ui/separator/separator.d.ts +0 -9
- package/dist/components/ui/sonner/index.d.ts +0 -4
- package/dist/components/ui/sonner/sonner-content.d.ts +0 -15
- package/dist/components/ui/sonner/sonner.d.ts +0 -21
- package/dist/components/ui/switch/index.d.ts +0 -4
- package/dist/components/ui/switch/switch-field.d.ts +0 -23
- package/dist/components/ui/switch/switch.d.ts +0 -5
- package/dist/components/ui/textarea/index.d.ts +0 -2
- package/dist/components/ui/textarea/textarea.d.ts +0 -9
- package/dist/components/ui/toggle/constants.d.ts +0 -4
- package/dist/components/ui/toggle/index.d.ts +0 -6
- package/dist/components/ui/toggle/toggle-group.d.ts +0 -11
- package/dist/components/ui/toggle/toggle.d.ts +0 -9
- package/dist/field.d.ts +0 -3
- package/dist/index.d.ts +0 -44
- package/dist/input.d.ts +0 -3
- package/dist/kuat-carousel.d.ts +0 -2
- package/dist/kuat-radial-progress.d.ts +0 -7
- package/dist/lib/react-node-compat.d.ts +0 -7
- package/dist/lib/utils.d.ts +0 -3
- package/dist/radio.d.ts +0 -3
- package/dist/select.d.ts +0 -3
- package/dist/sonner.d.ts +0 -1
- package/dist/style.css.d.ts +0 -2
- package/dist/switch.d.ts +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/textarea.d.ts +0 -3
- package/dist/toggle-group.d.ts +0 -3
- package/dist/toggle.d.ts +0 -3
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @equal-experts/kuat-react
|
|
2
2
|
|
|
3
|
-
React components and blocks for the Kuat Design System: **localized primitives** (forms, actions, feedback) and **composed blocks** (header, carousel, logo lockup, etc.). Use **`@equal-experts/kuat-core`** for tokens and the **shadcn CLI** only for UI that Kuat does not ship (for example Dialog, DropdownMenu, Tabs).
|
|
3
|
+
React components and blocks for the Kuat Design System: **localized primitives** (forms, actions, feedback, **IconButton**) and **composed blocks** (header, carousel, logo lockup, etc.). Use **`@equal-experts/kuat-core`** for tokens and the **shadcn CLI** only for UI that Kuat does not ship (for example Dialog, DropdownMenu, Tabs).
|
|
4
|
+
|
|
5
|
+
**IconButton** is available from the package root (`import { IconButton } from "@equal-experts/kuat-react"`) and as a subpath entry: `@equal-experts/kuat-react/icon-button`.
|
|
4
6
|
|
|
5
7
|
**When to import from here vs shadcn:** [Choosing components](https://github.com/equalexperts/kuat-mono/blob/master/kuat-docs/setup/choosing-components.md) · [Public API inventory](https://github.com/equalexperts/kuat-mono/blob/master/kuat-docs/setup/public-api-inventory.md)
|
|
6
8
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import * as N from "react";
|
|
3
|
+
import { Slot as v } from "@radix-ui/react-slot";
|
|
4
|
+
import { c as s } from "./utils-DLUjLwnh.js";
|
|
5
|
+
const B = "default", $ = ["mini", "small", "regular", "large"], C = "sm", U = "lg", y = ["default", "round"];
|
|
6
|
+
function l(t) {
|
|
7
|
+
return t === "default" ? "primary" : t ?? "primary";
|
|
8
|
+
}
|
|
9
|
+
function i(t) {
|
|
10
|
+
return t === "sm" ? "small" : t === "lg" ? "large" : t ?? "regular";
|
|
11
|
+
}
|
|
12
|
+
const S = N.forwardRef(
|
|
13
|
+
({
|
|
14
|
+
className: t,
|
|
15
|
+
variant: r = "primary",
|
|
16
|
+
size: e = "regular",
|
|
17
|
+
color: n = "ee-blue",
|
|
18
|
+
roundness: u = "default",
|
|
19
|
+
asChild: a = !1,
|
|
20
|
+
type: c = "button",
|
|
21
|
+
...m
|
|
22
|
+
}, f) => {
|
|
23
|
+
const b = a ? v : "button", o = l(r), d = i(e), _ = o === "destructive" ? void 0 : `button--color-${n}`;
|
|
24
|
+
return /* @__PURE__ */ I(
|
|
25
|
+
b,
|
|
26
|
+
{
|
|
27
|
+
ref: f,
|
|
28
|
+
type: a ? void 0 : c,
|
|
29
|
+
className: s(
|
|
30
|
+
"button",
|
|
31
|
+
"icon-button",
|
|
32
|
+
`button--variant-${o}`,
|
|
33
|
+
_,
|
|
34
|
+
`icon-button--size-${d}`,
|
|
35
|
+
`icon-button--roundness-${u}`,
|
|
36
|
+
t
|
|
37
|
+
),
|
|
38
|
+
...m
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
S.displayName = "IconButton";
|
|
44
|
+
function z(t) {
|
|
45
|
+
const r = l((t == null ? void 0 : t.variant) ?? "primary"), e = i((t == null ? void 0 : t.size) ?? "regular"), n = (t == null ? void 0 : t.color) ?? "ee-blue", u = (t == null ? void 0 : t.roundness) ?? "default", c = r === "destructive" ? void 0 : `button--color-${n}`;
|
|
46
|
+
return s(
|
|
47
|
+
"button",
|
|
48
|
+
"icon-button",
|
|
49
|
+
`button--variant-${r}`,
|
|
50
|
+
c,
|
|
51
|
+
`icon-button--size-${e}`,
|
|
52
|
+
`icon-button--roundness-${u}`
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
S as I,
|
|
57
|
+
$ as a,
|
|
58
|
+
y as b,
|
|
59
|
+
B as c,
|
|
60
|
+
C as d,
|
|
61
|
+
U as e,
|
|
62
|
+
z as i
|
|
63
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { c as N } from "./utils-DLUjLwnh.js";
|
|
2
|
+
import { b as a, a as O, e as S, d as s, c as A, I as o, i as t } from "./icon-button-B5hCoK1b.js";
|
|
3
|
+
export {
|
|
4
|
+
a as ICON_BUTTON_ROUNDNESS,
|
|
5
|
+
O as ICON_BUTTON_SIZES,
|
|
6
|
+
S as ICON_BUTTON_SIZE_LG_ALIAS,
|
|
7
|
+
s as ICON_BUTTON_SIZE_SM_ALIAS,
|
|
8
|
+
A as ICON_BUTTON_VARIANT_DEFAULT_ALIAS,
|
|
9
|
+
o as IconButton,
|
|
10
|
+
N as cn,
|
|
11
|
+
t as iconButtonVariants
|
|
12
|
+
};
|