asma-ui-core 3.124.0 → 3.126.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/asma-ui-core.css +1 -1
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +6 -5
- package/dist/components/data-display/read-only-text/StyledReadOnlyText.js +56 -0
- package/dist/components/icons/index.js +1 -0
- package/dist/components/icons/location-filled-icon/LocationFilledIcon.js +17 -0
- package/dist/components/icons/location-filled-icon/index.js +1 -0
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
- package/dist/components/inputs/field-styles.js +1 -1
- package/dist/components/inputs/input-field/StyledInputField.js +226 -205
- package/dist/components/miscellaneous/StyledFormControlLabel.js +14 -14
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +81 -73
- package/dist/datetime/components/date-picker/components/DatePickerInputRangeCompact.js +28 -26
- package/dist/datetime/components/date-picker/components/DatePickerInputSingle.js +23 -21
- package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
- package/dist/datetime/components/time-picker/TimePickerInput.js +41 -40
- package/dist/index.js +449 -445
- package/dist/src/components/data-display/read-only-text/StyledReadOnlyText.d.ts +38 -0
- package/dist/src/components/data-display/read-only-text/index.d.ts +1 -0
- package/dist/src/components/icons/index.d.ts +1 -0
- package/dist/src/components/icons/location-filled-icon/LocationFilledIcon.d.ts +12 -0
- package/dist/src/components/icons/location-filled-icon/index.d.ts +1 -0
- package/dist/src/components/inputs/field-styles.d.ts +3 -1
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +14 -1
- package/dist/src/datetime/components/date-picker/components/BaseDatePickerInput.d.ts +2 -0
- package/dist/src/datetime/components/date-picker/types.d.ts +7 -0
- package/dist/src/datetime/components/time-picker/types.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/table/shared-components/StyledCheckbox.module.js +11 -11
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { cn as o } from "../../../helpers/cn.js";
|
|
2
2
|
import { StyledChip as v } from "../chip/StyledChip.js";
|
|
3
3
|
import { StyledCheckbox as f } from "../../inputs/checkbox/base-ui/StyledCheckbox.js";
|
|
4
|
-
import { StyledRadio as
|
|
4
|
+
import { StyledRadio as y } from "../../inputs/radio-button/base-ui/StyledRadio.js";
|
|
5
5
|
import i from "./StyledInteractiveChip.module.js";
|
|
6
|
-
import { forwardRef as
|
|
6
|
+
import { forwardRef as x } from "react";
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
8
|
-
var
|
|
8
|
+
var _ = "[&[data-testid][role]]:border-gama-400 [&[data-testid][role]]:shadow-[inset_0_0_0_1px_var(--colors-gama-400)] [&[data-testid][role]]:bg-gama-25", S = { paddingLeft: "6px" }, R = x(({ type: l = "checkbox", checked: e, size: d = "small", ariaLabel: n, ...a }, c) => {
|
|
9
9
|
const t = l === "checkbox", m = n ?? (typeof a.label == "string" ? a.label : void 0), s = !a.readOnly && !t && !!e, b = t ? /* @__PURE__ */ r(f, {
|
|
10
10
|
dataTest: a.dataTest,
|
|
11
11
|
disableRipple: !0,
|
|
@@ -14,10 +14,11 @@ var y = "[&[data-testid][role]]:border-gama-400 [&[data-testid][role]]:shadow-[i
|
|
|
14
14
|
readOnly: a.readOnly,
|
|
15
15
|
decorative: !0,
|
|
16
16
|
className: o("pointer-events-none", i.control)
|
|
17
|
-
}) : /* @__PURE__ */ r(
|
|
17
|
+
}) : /* @__PURE__ */ r(y, {
|
|
18
18
|
dataTest: a.dataTest,
|
|
19
19
|
checked: e,
|
|
20
20
|
size: d,
|
|
21
|
+
readOnly: a.readOnly,
|
|
21
22
|
decorative: !0,
|
|
22
23
|
className: o("pointer-events-none", i.control)
|
|
23
24
|
});
|
|
@@ -31,7 +32,7 @@ var y = "[&[data-testid][role]]:border-gama-400 [&[data-testid][role]]:shadow-[i
|
|
|
31
32
|
clickable: !0,
|
|
32
33
|
tabIndex: 0,
|
|
33
34
|
...a,
|
|
34
|
-
className: o(s &&
|
|
35
|
+
className: o(s && _, a.className),
|
|
35
36
|
sx: {
|
|
36
37
|
...S,
|
|
37
38
|
...a.sx
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { cn as h } from "../../../helpers/cn.js";
|
|
2
|
+
import { StyledFormLabel as o } from "../form-label/components/StyledFormLabel.js";
|
|
3
|
+
import { Fragment as y, jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
var l = "flex h-6 w-6 shrink-0 items-center justify-center [&>svg]:h-6 [&>svg]:w-6", x = "flex h-5 w-5 shrink-0 items-center justify-center [&>svg]:h-5 [&>svg]:w-5", b = (e) => e == null || e === !1 || typeof e == "string" && e.trim() === "", C = ({ title: e, value: r, emptyText: f = "-", multiline: N, horizontal: m, titleIcon: n, titleInfo: c, startIcon: t, endIcon: d, helperText: i, helperIcon: p, id: v, className: w, dataTest: g }) => /* @__PURE__ */ a("div", {
|
|
5
|
+
className: h("flex min-w-0", m ? "items-center gap-1" : "flex-col", w),
|
|
6
|
+
children: [e != null && /* @__PURE__ */ a("div", {
|
|
7
|
+
className: "flex shrink-0 items-center gap-1 text-delta-800",
|
|
8
|
+
children: [
|
|
9
|
+
n && /* @__PURE__ */ s("span", {
|
|
10
|
+
className: l,
|
|
11
|
+
children: n
|
|
12
|
+
}),
|
|
13
|
+
/* @__PURE__ */ s(o, {
|
|
14
|
+
title: m ? /* @__PURE__ */ a(y, { children: [e, ":"] }) : e,
|
|
15
|
+
className: "pb-0"
|
|
16
|
+
}),
|
|
17
|
+
c && /* @__PURE__ */ s("span", {
|
|
18
|
+
className: x,
|
|
19
|
+
children: c
|
|
20
|
+
})
|
|
21
|
+
]
|
|
22
|
+
}), /* @__PURE__ */ a("div", {
|
|
23
|
+
className: "flex min-w-0 flex-col",
|
|
24
|
+
children: [/* @__PURE__ */ a("div", {
|
|
25
|
+
className: "flex items-center gap-1 text-delta-700",
|
|
26
|
+
children: [
|
|
27
|
+
t && /* @__PURE__ */ s("span", {
|
|
28
|
+
className: l,
|
|
29
|
+
children: t
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ s("span", {
|
|
32
|
+
id: v,
|
|
33
|
+
"data-testid": g,
|
|
34
|
+
className: h("min-w-0 flex-1 break-words text-base", N && "whitespace-pre-wrap"),
|
|
35
|
+
children: b(r) ? f : r
|
|
36
|
+
}),
|
|
37
|
+
d && /* @__PURE__ */ s("span", {
|
|
38
|
+
className: l,
|
|
39
|
+
children: d
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
}), i != null && /* @__PURE__ */ a("div", {
|
|
43
|
+
className: "flex items-start gap-1 py-0.5 text-delta-600",
|
|
44
|
+
children: [p && /* @__PURE__ */ s("span", {
|
|
45
|
+
className: x,
|
|
46
|
+
children: p
|
|
47
|
+
}), /* @__PURE__ */ s("span", {
|
|
48
|
+
className: "min-w-0 text-sm",
|
|
49
|
+
children: i
|
|
50
|
+
})]
|
|
51
|
+
})]
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
C as StyledReadOnlyText
|
|
56
|
+
};
|
|
@@ -84,6 +84,7 @@ export * from './handyman-icon.js'
|
|
|
84
84
|
export * from './pin-icon.js'
|
|
85
85
|
export * from './work-icon.js'
|
|
86
86
|
export * from './location-icon.js'
|
|
87
|
+
export * from './location-filled-icon.js'
|
|
87
88
|
export * from './form-icon.js'
|
|
88
89
|
export * from './repeat-outline-icon.js'
|
|
89
90
|
export * from './clock-outline-icon.js'
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
function r(o) {
|
|
3
|
+
return /* @__PURE__ */ C("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: "1em",
|
|
6
|
+
height: "1em",
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
...o,
|
|
9
|
+
children: /* @__PURE__ */ C("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M13.4125 11.4125C13.8042 11.0208 14 10.55 14 10C14 9.45 13.8042 8.97917 13.4125 8.5875C13.0208 8.19583 12.55 8 12 8C11.45 8 10.9792 8.19583 10.5875 8.5875C10.1958 8.97917 10 9.45 10 10C10 10.55 10.1958 11.0208 10.5875 11.4125C10.9792 11.8042 11.45 12 12 12C12.55 12 13.0208 11.8042 13.4125 11.4125ZM12 22C9.31667 19.7167 7.3125 17.5958 5.9875 15.6375C4.6625 13.6792 4 11.8667 4 10.2C4 7.7 4.80417 5.70833 6.4125 4.225C8.02083 2.74167 9.88333 2 12 2C14.1167 2 15.9792 2.74167 17.5875 4.225C19.1958 5.70833 20 7.7 20 10.2C20 11.8667 19.3375 13.6792 18.0125 15.6375C16.6875 17.5958 14.6833 19.7167 12 22Z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
r as LocationFilledIcon
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LocationFilledIcon.js'
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
CheckboxWrapper:
|
|
3
|
-
"size-small": "_size-
|
|
4
|
-
"size-medium": "_size-
|
|
5
|
-
Checkbox:
|
|
6
|
-
Indeterminate:
|
|
7
|
-
Error: "
|
|
8
|
-
ReadOnly:
|
|
1
|
+
var e = "_CheckboxWrapper_1341w_1", _ = "_Checkbox_1341w_1", r = "_Indeterminate_1341w_34", a = "_ReadOnly_1341w_110", o = "_Indicator_1341w_122", p = "_HideWrapper_1341w_126", i = "_CheckboxHover_1341w_133", l = "_CheckboxRippleContainer_1341w_133", d = "_CheckboxRipple_1341w_133", c = "_ripple_1341w_1", v = {
|
|
2
|
+
CheckboxWrapper: e,
|
|
3
|
+
"size-small": "_size-small_1341w_17",
|
|
4
|
+
"size-medium": "_size-medium_1341w_21",
|
|
5
|
+
Checkbox: _,
|
|
6
|
+
Indeterminate: r,
|
|
7
|
+
Error: "_Error_1341w_61",
|
|
8
|
+
ReadOnly: a,
|
|
9
9
|
Indicator: o,
|
|
10
10
|
HideWrapper: p,
|
|
11
11
|
CheckboxHover: i,
|
|
12
|
-
CheckboxRippleContainer:
|
|
13
|
-
CheckboxRipple:
|
|
14
|
-
ripple:
|
|
12
|
+
CheckboxRippleContainer: l,
|
|
13
|
+
CheckboxRipple: d,
|
|
14
|
+
ripple: c
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
v as default
|
|
18
18
|
};
|
|
@@ -28,7 +28,7 @@ var l = () => ({
|
|
|
28
28
|
}), p = {
|
|
29
29
|
"--field-width-full": "100%",
|
|
30
30
|
"--form-column-width": "100%"
|
|
31
|
-
}, g = (e) => e <= 9 ? "xs" : e <= 15 ? "s" : e <= 27 ? "m" : "full", h = ({ disabled: e } = {}) => t("block
|
|
31
|
+
}, g = (e) => e <= 9 ? "xs" : e <= 15 ? "s" : e <= 27 ? "m" : "full", h = ({ disabled: e, flush: r } = {}) => t("block text-base font-semibold", !r && "pb-1", e ? "text-delta-300" : "text-delta-800"), n = "shadow-[inset_0_0_0_2px_var(--colors-error-500)]", u = ({ focused: e, error: r, disabled: o, readOnly: a, borderless: i }) => t("pointer-events-none absolute inset-0 rounded border border-solid transition-colors", i && !e ? "border-transparent" : o ? "border-delta-300" : a ? "border-delta-200" : r ? t("border-error-500", e && n) : e ? "border-focus-ring shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), v = ({ focused: e, error: r, disabled: o, readOnly: a, notched: i = !0 }) => t("pointer-events-none absolute z-0 m-0 box-border min-w-0 overflow-hidden rounded border border-solid transition-colors", i ? "inset-x-0 bottom-0 top-[-5px] px-2 py-0" : "inset-0", o ? "border-delta-300" : a ? "border-delta-200" : r ? t("border-error-500", e && n) : e ? "border-focus-ring shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), m = (e) => t("block h-[11px] overflow-hidden bg-white p-0 text-xs leading-[23px] text-transparent transition-[max-width] duration-150", e ? "max-w-full" : "max-w-[0.01px]"), f = ({ shrink: e, focused: r, error: o, disabled: a, readOnly: i }) => t("pointer-events-none absolute left-[14px] z-10 max-w-[calc(100%-1.75rem)] truncate transition-colors duration-150", a ? "text-delta-300" : i ? "text-delta-800" : o ? "text-error-500" : r ? "text-gama-500" : e ? "text-delta-800" : "text-delta-500", e ? "bg-white px-1 text-xs leading-[16px] tracking-[0.24px]" : "text-base leading-[23px] tracking-[0.00938em]");
|
|
32
32
|
export {
|
|
33
33
|
h as fieldLabelAboveClass,
|
|
34
34
|
g as fieldWidthForMaxLength,
|