@koobiq/react-components 0.2.1 → 0.3.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/FieldComponents/FieldSelect/FieldSelect.d.ts +2 -2
- package/dist/components/FieldComponents/FieldSelect/FieldSelect.js +28 -24
- package/dist/components/FieldComponents/FieldSelect/FieldSelect.module.css.js +7 -1
- package/dist/components/FieldComponents/FieldSelect/utils.d.ts +2 -0
- package/dist/components/FieldComponents/FieldSelect/utils.js +4 -0
- package/dist/components/List/components/ListItemText/ListItemText.d.ts +2 -16
- package/dist/components/List/components/ListItemText/ListItemText.js +1 -1
- package/dist/components/List/components/ListItemText/index.d.ts +1 -0
- package/dist/components/List/components/ListItemText/types.d.ts +15 -0
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/Select.module.css.js +3 -0
- package/dist/components/Select/types.d.ts +2 -2
- package/dist/components/TagGroup/TagGroup.js +2 -2
- package/dist/components/TagGroup/components/{TagInner/TagInner.d.ts → Tag/Tag.d.ts} +3 -2
- package/dist/components/TagGroup/components/{TagInner/TagInner.js → Tag/Tag.js} +6 -9
- package/dist/components/TagGroup/components/Tag/Tag.module.css.js +30 -0
- package/dist/components/TagGroup/components/Tag/index.d.ts +1 -0
- package/dist/components/TagGroup/components/index.d.ts +1 -1
- package/dist/components/TimePicker/TimePicker.js +1 -1
- package/dist/components/TimePicker/TimePicker.module.css.js +4 -1
- package/dist/style.css +45 -23
- package/package.json +5 -5
- package/dist/components/TagGroup/components/TagInner/TagInner.module.css.js +0 -30
- package/dist/components/TagGroup/components/TagInner/index.d.ts +0 -1
- package/dist/components/TagGroup/intl.json.js +0 -7
- /package/dist/components/TagGroup/components/{TagInner → Tag}/utils.d.ts +0 -0
- /package/dist/components/TagGroup/components/{TagInner → Tag}/utils.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentPropsWithRef, ElementType } from 'react';
|
|
2
2
|
import type { FieldSelectBaseProps } from './index';
|
|
3
|
-
export declare const FieldSelect: import("@koobiq/react-core").PolyForwardComponent<"
|
|
4
|
-
export type FieldSelectProps<As extends ElementType = '
|
|
3
|
+
export declare const FieldSelect: import("@koobiq/react-core").PolyForwardComponent<"div", FieldSelectBaseProps, ElementType>;
|
|
4
|
+
export type FieldSelectProps<As extends ElementType = 'div'> = ComponentPropsWithRef<typeof FieldSelect<As>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { polymorphicForwardRef, clsx,
|
|
2
|
+
import { polymorphicForwardRef, clsx, isNotNil } from "@koobiq/react-core";
|
|
3
3
|
import { Button } from "@koobiq/react-primitives";
|
|
4
4
|
import s from "./FieldSelect.module.css.js";
|
|
5
|
+
import { isPrimitiveNode } from "./utils.js";
|
|
5
6
|
const FieldSelect = polymorphicForwardRef(
|
|
6
7
|
({
|
|
7
|
-
as = "
|
|
8
|
+
as = "div",
|
|
8
9
|
isInvalid = false,
|
|
9
10
|
isDisabled = false,
|
|
10
11
|
variant = "filled",
|
|
@@ -12,28 +13,31 @@ const FieldSelect = polymorphicForwardRef(
|
|
|
12
13
|
children,
|
|
13
14
|
className,
|
|
14
15
|
...other
|
|
15
|
-
}, ref) =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
16
|
+
}, ref) => {
|
|
17
|
+
const content = children ?? placeholder;
|
|
18
|
+
return /* @__PURE__ */ jsxs(
|
|
19
|
+
Button,
|
|
20
|
+
{
|
|
21
|
+
...other,
|
|
22
|
+
as,
|
|
23
|
+
isDisabled,
|
|
24
|
+
"data-slot": "select-value",
|
|
25
|
+
className: clsx(
|
|
26
|
+
s.base,
|
|
27
|
+
s[variant],
|
|
28
|
+
isInvalid && s.invalid,
|
|
29
|
+
isDisabled && s.disabled,
|
|
30
|
+
!isNotNil(children) && s.hasPlaceholder,
|
|
31
|
+
className
|
|
32
|
+
),
|
|
33
|
+
ref,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsx("span", { className: s.hiddenPlaceholder, "aria-hidden": true, children: placeholder }),
|
|
36
|
+
/* @__PURE__ */ jsx("div", { className: s.container, children: isPrimitiveNode(content) ? /* @__PURE__ */ jsx("span", { className: s.content, children: content }) : children })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
37
41
|
);
|
|
38
42
|
FieldSelect.displayName = "FieldSelect";
|
|
39
43
|
export {
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
const base = "kbq-fieldselect-0f0f5e";
|
|
2
|
+
const container = "kbq-fieldselect-container-422b17";
|
|
2
3
|
const content = "kbq-fieldselect-content-c36142";
|
|
3
4
|
const invalid = "kbq-fieldselect-invalid-db8152";
|
|
4
5
|
const disabled = "kbq-fieldselect-disabled-f0efd4";
|
|
5
6
|
const hasPlaceholder = "kbq-fieldselect-hasPlaceholder-7b7518";
|
|
7
|
+
const hiddenPlaceholder = "kbq-fieldselect-hiddenPlaceholder-a3a36d";
|
|
6
8
|
const s = {
|
|
7
9
|
base,
|
|
10
|
+
container,
|
|
8
11
|
content,
|
|
9
12
|
invalid,
|
|
10
13
|
disabled,
|
|
11
|
-
hasPlaceholder
|
|
14
|
+
hasPlaceholder,
|
|
15
|
+
hiddenPlaceholder
|
|
12
16
|
};
|
|
13
17
|
export {
|
|
14
18
|
base,
|
|
19
|
+
container,
|
|
15
20
|
content,
|
|
16
21
|
s as default,
|
|
17
22
|
disabled,
|
|
18
23
|
hasPlaceholder,
|
|
24
|
+
hiddenPlaceholder,
|
|
19
25
|
invalid
|
|
20
26
|
};
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
import type { TypographyProps } from '../../../Typography';
|
|
4
|
-
export type ListItemTextRef = ComponentRef<'div'>;
|
|
5
|
-
export type ListItemTextProps = ExtendableComponentPropsWithRef<{
|
|
6
|
-
/** The content of the component. */
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
/** The helper text content. */
|
|
9
|
-
caption?: ReactNode;
|
|
10
|
-
/** The props used for each slot inside. */
|
|
11
|
-
slotProps?: {
|
|
12
|
-
text?: TypographyProps;
|
|
13
|
-
caption?: TypographyProps;
|
|
14
|
-
};
|
|
15
|
-
} & DataAttributeProps, 'div'>;
|
|
16
|
-
export declare const ListItemText: import("react").ForwardRefExoticComponent<Omit<ListItemTextProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import type { ListItemTextProps } from './types';
|
|
2
|
+
export declare const ListItemText: import("react").ForwardRefExoticComponent<Omit<ListItemTextProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -5,7 +5,7 @@ import { isNotNil, clsx } from "@koobiq/react-core";
|
|
|
5
5
|
import s from "./ListItemText.module.css.js";
|
|
6
6
|
import { Typography } from "../../../Typography/Typography.js";
|
|
7
7
|
const ListItemText = forwardRef(
|
|
8
|
-
({ className, children, caption, slotProps, ...other }, ref) => /* @__PURE__ */ jsxs("
|
|
8
|
+
({ className, children, caption, slotProps, ...other }, ref) => /* @__PURE__ */ jsxs("span", { className: clsx(s.base, className), ...other, ref, children: [
|
|
9
9
|
/* @__PURE__ */ jsx(Typography, { as: "span", align: "start", ellipsis: true, ...slotProps?.text, children }),
|
|
10
10
|
isNotNil(caption) && /* @__PURE__ */ jsx(
|
|
11
11
|
Typography,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentRef, ReactNode } from 'react';
|
|
2
|
+
import type { DataAttributeProps, ExtendableComponentPropsWithRef } from '@koobiq/react-core';
|
|
3
|
+
import type { TypographyProps } from '../../../Typography';
|
|
4
|
+
export type ListItemTextRef = ComponentRef<'span'>;
|
|
5
|
+
export type ListItemTextProps = ExtendableComponentPropsWithRef<{
|
|
6
|
+
/** The content of the component. */
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** The helper text content. */
|
|
9
|
+
caption?: ReactNode;
|
|
10
|
+
/** The props used for each slot inside. */
|
|
11
|
+
slotProps?: {
|
|
12
|
+
text?: TypographyProps;
|
|
13
|
+
caption?: TypographyProps;
|
|
14
|
+
};
|
|
15
|
+
} & DataAttributeProps, 'span'>;
|
|
@@ -128,7 +128,7 @@ function SelectRender(props, ref) {
|
|
|
128
128
|
startAddon,
|
|
129
129
|
endAddon: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
130
130
|
endAddon,
|
|
131
|
-
/* @__PURE__ */ jsx(IconChevronDownS16, {})
|
|
131
|
+
/* @__PURE__ */ jsx(IconChevronDownS16, { className: s.chevron })
|
|
132
132
|
] }),
|
|
133
133
|
isInvalid,
|
|
134
134
|
isDisabled,
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
const base = "kbq-select-6d31ad";
|
|
2
2
|
const fullWidth = "kbq-select-fullWidth-1dfc13";
|
|
3
3
|
const addon = "kbq-select-addon-cbc524";
|
|
4
|
+
const chevron = "kbq-select-chevron-0b4fa3";
|
|
4
5
|
const popover = "kbq-select-popover-79fc05";
|
|
5
6
|
const list = "kbq-select-list-8ffac0";
|
|
6
7
|
const s = {
|
|
7
8
|
base,
|
|
8
9
|
fullWidth,
|
|
9
10
|
addon,
|
|
11
|
+
chevron,
|
|
10
12
|
popover,
|
|
11
13
|
list
|
|
12
14
|
};
|
|
13
15
|
export {
|
|
14
16
|
addon,
|
|
15
17
|
base,
|
|
18
|
+
chevron,
|
|
16
19
|
s as default,
|
|
17
20
|
fullWidth,
|
|
18
21
|
list,
|
|
@@ -67,7 +67,7 @@ export type SelectProps<T> = ExtendableProps<{
|
|
|
67
67
|
/** Unique identifier for testing purposes. */
|
|
68
68
|
'data-testid'?: string | number;
|
|
69
69
|
/** Ref to the control */
|
|
70
|
-
ref?: Ref<
|
|
70
|
+
ref?: Ref<HTMLDivElement>;
|
|
71
71
|
/** A render function for displaying the selected value. */
|
|
72
72
|
renderValue?: (props: Node<T> | null) => ReactElement;
|
|
73
73
|
/** The props used for each slot inside. */
|
|
@@ -82,5 +82,5 @@ export type SelectProps<T> = ExtendableProps<{
|
|
|
82
82
|
};
|
|
83
83
|
} & SelectDeprecatedProps, Omit<AriaSelectProps<T>, 'description' | 'validationState'>>;
|
|
84
84
|
export type SelectComponent = <T>(props: SelectProps<T>) => ReactElement | null;
|
|
85
|
-
export type SelectRef = ComponentRef<'
|
|
85
|
+
export type SelectRef = ComponentRef<'div'>;
|
|
86
86
|
export {};
|
|
@@ -4,7 +4,7 @@ import { forwardRef } from "react";
|
|
|
4
4
|
import { useDOMRef, mergeProps, clsx } from "@koobiq/react-core";
|
|
5
5
|
import { useListState, useTagGroup } from "@koobiq/react-primitives";
|
|
6
6
|
import s from "./TagGroup.module.css.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Tag } from "./components/Tag/Tag.js";
|
|
8
8
|
function TagGroupRender(props, ref) {
|
|
9
9
|
const { variant = "theme-fade", style, className, slotProps } = props;
|
|
10
10
|
const domRef = useDOMRef(ref);
|
|
@@ -15,7 +15,7 @@ function TagGroupRender(props, ref) {
|
|
|
15
15
|
gridProps,
|
|
16
16
|
slotProps?.root
|
|
17
17
|
);
|
|
18
|
-
return /* @__PURE__ */ jsx("div", { ...rootProps, children: [...state.collection].map((item) => /* @__PURE__ */ jsx(
|
|
18
|
+
return /* @__PURE__ */ jsx("div", { ...rootProps, children: [...state.collection].map((item) => /* @__PURE__ */ jsx(Tag, { item, variant, state }, item.key)) });
|
|
19
19
|
}
|
|
20
20
|
const TagGroup = forwardRef(TagGroupRender);
|
|
21
21
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AriaTagProps, ListState } from '@koobiq/react-primitives';
|
|
2
2
|
import type { TagGroupPropVariant } from '../../index';
|
|
3
|
-
|
|
3
|
+
type TagProps<T> = AriaTagProps<T> & {
|
|
4
4
|
state: ListState<T>;
|
|
5
5
|
/**
|
|
6
6
|
* The variant to use.
|
|
@@ -8,4 +8,5 @@ export type TagInnerProps<T> = AriaTagProps<T> & {
|
|
|
8
8
|
*/
|
|
9
9
|
variant?: TagGroupPropVariant;
|
|
10
10
|
};
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function Tag<T>(props: TagProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useFocusRing, useHover, mergeProps, clsx, isNotNil } from "@koobiq/react-core";
|
|
4
4
|
import { IconXmarkS16 } from "@koobiq/react-icons";
|
|
5
5
|
import { useTag } from "@koobiq/react-primitives";
|
|
6
6
|
import { utilClasses } from "../../../../styles/utility.js";
|
|
7
|
-
import
|
|
8
|
-
import s from "./TagInner.module.css.js";
|
|
7
|
+
import s from "./Tag.module.css.js";
|
|
9
8
|
import { matchVariantToCloseButton } from "./utils.js";
|
|
10
9
|
import { IconButton } from "../../../IconButton/IconButton.js";
|
|
11
10
|
const textNormalMedium = utilClasses.typography["text-normal-medium"];
|
|
12
|
-
function
|
|
11
|
+
function Tag(props) {
|
|
13
12
|
const { item, state, variant = "theme-fade" } = props;
|
|
14
13
|
const { slotProps, icon, className, style } = item.props;
|
|
15
14
|
const ref = useRef(null);
|
|
16
|
-
const stringFormatter = useLocalizedStringFormatter(intlMessages);
|
|
17
15
|
const { focusProps, isFocusVisible, isFocused } = useFocusRing({
|
|
18
16
|
within: false
|
|
19
17
|
});
|
|
@@ -53,12 +51,11 @@ function TagInner(props) {
|
|
|
53
51
|
);
|
|
54
52
|
const removeButtonProps = mergeProps(
|
|
55
53
|
{
|
|
54
|
+
isDisabled,
|
|
56
55
|
tabIndex: -1,
|
|
57
56
|
isCompact: true,
|
|
58
|
-
isDisabled,
|
|
59
57
|
className: s.cancelIcon,
|
|
60
|
-
variant: matchVariantToCloseButton[variant]
|
|
61
|
-
"aria-label": stringFormatter.format("close")
|
|
58
|
+
variant: matchVariantToCloseButton[variant]
|
|
62
59
|
},
|
|
63
60
|
removeButtonPropsAria,
|
|
64
61
|
slotProps?.removeIcon
|
|
@@ -82,5 +79,5 @@ function TagInner(props) {
|
|
|
82
79
|
] }) });
|
|
83
80
|
}
|
|
84
81
|
export {
|
|
85
|
-
|
|
82
|
+
Tag
|
|
86
83
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const base = "kbq-tag-b509d0";
|
|
2
|
+
const content = "kbq-tag-content-fe481b";
|
|
3
|
+
const icon = "kbq-tag-icon-1e369b";
|
|
4
|
+
const cancelIcon = "kbq-tag-cancelIcon-1ec6aa";
|
|
5
|
+
const hovered = "kbq-tag-hovered-2fc42f";
|
|
6
|
+
const focused = "kbq-tag-focused-033891";
|
|
7
|
+
const disabled = "kbq-tag-disabled-bbd5a1";
|
|
8
|
+
const s = {
|
|
9
|
+
base,
|
|
10
|
+
content,
|
|
11
|
+
icon,
|
|
12
|
+
cancelIcon,
|
|
13
|
+
"theme-fade": "kbq-tag-theme-fade-71290f",
|
|
14
|
+
"contrast-fade": "kbq-tag-contrast-fade-319aac",
|
|
15
|
+
"error-fade": "kbq-tag-error-fade-b90fd8",
|
|
16
|
+
"warning-fade": "kbq-tag-warning-fade-6decab",
|
|
17
|
+
hovered,
|
|
18
|
+
focused,
|
|
19
|
+
disabled
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
base,
|
|
23
|
+
cancelIcon,
|
|
24
|
+
content,
|
|
25
|
+
s as default,
|
|
26
|
+
disabled,
|
|
27
|
+
focused,
|
|
28
|
+
hovered,
|
|
29
|
+
icon
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './Tag';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
const base = "kbq-timepicker-a6e9f3";
|
|
2
2
|
const startAddon = "kbq-timepicker-startAddon-46c835";
|
|
3
|
+
const clock = "kbq-timepicker-clock-920ed0";
|
|
3
4
|
const s = {
|
|
4
5
|
base,
|
|
5
|
-
startAddon
|
|
6
|
+
startAddon,
|
|
7
|
+
clock
|
|
6
8
|
};
|
|
7
9
|
export {
|
|
8
10
|
base,
|
|
11
|
+
clock,
|
|
9
12
|
s as default,
|
|
10
13
|
startAddon
|
|
11
14
|
};
|
package/dist/style.css
CHANGED
|
@@ -2122,7 +2122,7 @@
|
|
|
2122
2122
|
|
|
2123
2123
|
.kbq-fieldinput-filled-abb632:where(.kbq-fieldinput-invalid-2af82b) {
|
|
2124
2124
|
--field-input-color: var(--kbq-foreground-error);
|
|
2125
|
-
--field-input-bg-color: var(--kbq-
|
|
2125
|
+
--field-input-bg-color: var(--kbq-background-error-less);
|
|
2126
2126
|
--field-input-placeholder-color: var(--kbq-foreground-error-tertiary);
|
|
2127
2127
|
}
|
|
2128
2128
|
|
|
@@ -3104,6 +3104,10 @@
|
|
|
3104
3104
|
pointer-events: none;
|
|
3105
3105
|
}
|
|
3106
3106
|
|
|
3107
|
+
.kbq-select-addon-cbc524 > :not(.kbq-select-chevron-0b4fa3) {
|
|
3108
|
+
pointer-events: all;
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3107
3111
|
.kbq-select-popover-79fc05 {
|
|
3108
3112
|
border-radius: var(--kbq-size-s);
|
|
3109
3113
|
opacity: 0;
|
|
@@ -3128,7 +3132,6 @@
|
|
|
3128
3132
|
--field-input-color: var(--kbq-foreground-contrast);
|
|
3129
3133
|
--field-input-bg-color: var(--kbq-background-bg);
|
|
3130
3134
|
--field-input-placeholder-color: var(--kbq-foreground-contrast-tertiary);
|
|
3131
|
-
gap: var(--kbq-size-s);
|
|
3132
3135
|
cursor: pointer;
|
|
3133
3136
|
box-sizing: border-box;
|
|
3134
3137
|
border-radius: inherit;
|
|
@@ -3136,7 +3139,6 @@
|
|
|
3136
3139
|
color: var(--field-input-color);
|
|
3137
3140
|
background: var(--field-input-bg-color);
|
|
3138
3141
|
min-block-size: var(--field-control-size-height);
|
|
3139
|
-
padding-block: 0;
|
|
3140
3142
|
padding-inline: var(--field-input-padding-inline-start) var(--field-input-padding-inline-end);
|
|
3141
3143
|
transition: color var(--kbq-transition-default), background-color var(--kbq-transition-default);
|
|
3142
3144
|
font-size: var(--kbq-typography-text-normal-font-size);
|
|
@@ -3150,12 +3152,19 @@
|
|
|
3150
3152
|
text-underline-offset: calc(( var(--kbq-typography-text-normal-line-height) - var(--kbq-typography-text-normal-font-size)) / 2);
|
|
3151
3153
|
border: none;
|
|
3152
3154
|
outline: none;
|
|
3155
|
+
flex-direction: column;
|
|
3156
|
+
display: flex;
|
|
3157
|
+
}
|
|
3158
|
+
|
|
3159
|
+
.kbq-fieldselect-container-422b17 {
|
|
3153
3160
|
align-items: center;
|
|
3161
|
+
gap: var(--kbq-size-xs);
|
|
3162
|
+
block-size: 100%;
|
|
3154
3163
|
display: flex;
|
|
3155
3164
|
}
|
|
3156
3165
|
|
|
3157
3166
|
.kbq-fieldselect-content-c36142 {
|
|
3158
|
-
|
|
3167
|
+
padding-block: var(--kbq-size-xs);
|
|
3159
3168
|
white-space: nowrap;
|
|
3160
3169
|
text-overflow: ellipsis;
|
|
3161
3170
|
overflow: hidden;
|
|
@@ -3163,7 +3172,7 @@
|
|
|
3163
3172
|
|
|
3164
3173
|
.kbq-fieldselect-invalid-db8152 {
|
|
3165
3174
|
--field-input-color: var(--kbq-foreground-error);
|
|
3166
|
-
--field-input-bg-color: var(--kbq-
|
|
3175
|
+
--field-input-bg-color: var(--kbq-background-error-less);
|
|
3167
3176
|
--field-input-placeholder-color: var(--kbq-foreground-error-tertiary);
|
|
3168
3177
|
}
|
|
3169
3178
|
|
|
@@ -3176,6 +3185,15 @@
|
|
|
3176
3185
|
.kbq-fieldselect-hasPlaceholder-7b7518 {
|
|
3177
3186
|
--field-input-color: var(--field-input-placeholder-color);
|
|
3178
3187
|
}
|
|
3188
|
+
|
|
3189
|
+
.kbq-fieldselect-hiddenPlaceholder-a3a36d {
|
|
3190
|
+
text-align: start;
|
|
3191
|
+
visibility: hidden;
|
|
3192
|
+
white-space: nowrap;
|
|
3193
|
+
text-overflow: ellipsis;
|
|
3194
|
+
block-size: 0;
|
|
3195
|
+
overflow: hidden;
|
|
3196
|
+
}
|
|
3179
3197
|
.kbq-divider-16da20 {
|
|
3180
3198
|
border-style: solid;
|
|
3181
3199
|
border-color: var(--kbq-line-contrast-less);
|
|
@@ -3393,7 +3411,7 @@
|
|
|
3393
3411
|
.kbq-taggroup-20136b [role="gridcell"] {
|
|
3394
3412
|
display: contents;
|
|
3395
3413
|
}
|
|
3396
|
-
.kbq-
|
|
3414
|
+
.kbq-tag-b509d0 {
|
|
3397
3415
|
--tag-color: ;
|
|
3398
3416
|
--tag-bg-color: ;
|
|
3399
3417
|
--tag-icon-color: ;
|
|
@@ -3401,15 +3419,14 @@
|
|
|
3401
3419
|
--tag-outline-width: var(--kbq-size-3xs);
|
|
3402
3420
|
cursor: default;
|
|
3403
3421
|
vertical-align: top;
|
|
3404
|
-
white-space: nowrap;
|
|
3405
3422
|
box-sizing: border-box;
|
|
3423
|
+
max-inline-size: 100%;
|
|
3406
3424
|
color: var(--tag-color);
|
|
3407
3425
|
align-items: center;
|
|
3408
3426
|
gap: var(--kbq-size-3xs);
|
|
3409
3427
|
block-size: var(--kbq-size-xxl);
|
|
3410
3428
|
border-radius: var(--kbq-size-xxs);
|
|
3411
3429
|
padding-inline: var(--kbq-size-xxs);
|
|
3412
|
-
min-inline-size: var(--kbq-size-xxl);
|
|
3413
3430
|
background-color: var(--tag-bg-color);
|
|
3414
3431
|
outline-offset: calc(-1 * var(--tag-outline-width) / 2);
|
|
3415
3432
|
outline: var(--tag-outline-width) solid var(--tag-outline-color);
|
|
@@ -3419,74 +3436,75 @@
|
|
|
3419
3436
|
display: inline-flex;
|
|
3420
3437
|
}
|
|
3421
3438
|
|
|
3422
|
-
.kbq-
|
|
3439
|
+
.kbq-tag-content-fe481b {
|
|
3423
3440
|
white-space: nowrap;
|
|
3424
3441
|
text-overflow: ellipsis;
|
|
3442
|
+
max-inline-size: 100%;
|
|
3425
3443
|
margin-inline: var(--kbq-size-3xs);
|
|
3426
3444
|
overflow: hidden;
|
|
3427
3445
|
}
|
|
3428
3446
|
|
|
3429
|
-
.kbq-
|
|
3447
|
+
.kbq-tag-icon-1e369b {
|
|
3430
3448
|
color: var(--tag-icon-color);
|
|
3431
|
-
flex
|
|
3449
|
+
flex: none;
|
|
3432
3450
|
justify-content: center;
|
|
3433
3451
|
align-items: center;
|
|
3434
3452
|
margin-inline-start: var(--kbq-size-3xs);
|
|
3435
3453
|
display: flex;
|
|
3436
3454
|
}
|
|
3437
3455
|
|
|
3438
|
-
.kbq-
|
|
3456
|
+
.kbq-tag-cancelIcon-1ec6aa {
|
|
3439
3457
|
justify-content: center;
|
|
3440
3458
|
align-items: center;
|
|
3441
3459
|
margin-inline-end: var(--kbq-size-3xs);
|
|
3442
3460
|
display: flex;
|
|
3443
3461
|
}
|
|
3444
3462
|
|
|
3445
|
-
.kbq-
|
|
3463
|
+
.kbq-tag-theme-fade-71290f {
|
|
3446
3464
|
--tag-icon-color: var(--kbq-icon-theme);
|
|
3447
3465
|
--tag-bg-color: var(--kbq-background-theme-fade);
|
|
3448
3466
|
--tag-color: var(--kbq-foreground-theme);
|
|
3449
3467
|
}
|
|
3450
3468
|
|
|
3451
|
-
.kbq-
|
|
3469
|
+
.kbq-tag-contrast-fade-319aac {
|
|
3452
3470
|
--tag-icon-color: var(--kbq-icon-contrast-fade);
|
|
3453
3471
|
--tag-bg-color: var(--kbq-background-contrast-fade);
|
|
3454
3472
|
--tag-color: var(--kbq-foreground-contrast);
|
|
3455
3473
|
}
|
|
3456
3474
|
|
|
3457
|
-
.kbq-
|
|
3475
|
+
.kbq-tag-error-fade-b90fd8 {
|
|
3458
3476
|
--tag-icon-color: var(--kbq-icon-error);
|
|
3459
3477
|
--tag-bg-color: var(--kbq-background-error-fade);
|
|
3460
3478
|
--tag-color: var(--kbq-foreground-error);
|
|
3461
3479
|
}
|
|
3462
3480
|
|
|
3463
|
-
.kbq-
|
|
3481
|
+
.kbq-tag-warning-fade-6decab {
|
|
3464
3482
|
--tag-icon-color: var(--kbq-icon-warning);
|
|
3465
3483
|
--tag-bg-color: var(--kbq-background-warning-fade);
|
|
3466
3484
|
--tag-color: var(--kbq-foreground-warning);
|
|
3467
3485
|
}
|
|
3468
3486
|
|
|
3469
|
-
.kbq-
|
|
3487
|
+
.kbq-tag-theme-fade-71290f:where(.kbq-tag-hovered-2fc42f) {
|
|
3470
3488
|
--tag-bg-color: var(--kbq-states-background-theme-fade-hover);
|
|
3471
3489
|
}
|
|
3472
3490
|
|
|
3473
|
-
.kbq-
|
|
3491
|
+
.kbq-tag-contrast-fade-319aac:where(.kbq-tag-hovered-2fc42f) {
|
|
3474
3492
|
--tag-bg-color: var(--kbq-states-background-contrast-fade-hover);
|
|
3475
3493
|
}
|
|
3476
3494
|
|
|
3477
|
-
.kbq-
|
|
3495
|
+
.kbq-tag-error-fade-b90fd8:where(.kbq-tag-hovered-2fc42f) {
|
|
3478
3496
|
--tag-bg-color: var(--kbq-states-background-error-fade-hover);
|
|
3479
3497
|
}
|
|
3480
3498
|
|
|
3481
|
-
.kbq-
|
|
3499
|
+
.kbq-tag-warning-fade-6decab:where(.kbq-tag-hovered-2fc42f) {
|
|
3482
3500
|
--tag-bg-color: var(--kbq-states-background-warning-fade-hover);
|
|
3483
3501
|
}
|
|
3484
3502
|
|
|
3485
|
-
.kbq-
|
|
3503
|
+
.kbq-tag-focused-033891 {
|
|
3486
3504
|
--tag-outline-color: var(--kbq-states-line-focus-theme);
|
|
3487
3505
|
}
|
|
3488
3506
|
|
|
3489
|
-
.kbq-
|
|
3507
|
+
.kbq-tag-disabled-bbd5a1 {
|
|
3490
3508
|
--tag-icon-color: ;
|
|
3491
3509
|
--tag-bg-color: var(--kbq-states-background-disabled);
|
|
3492
3510
|
--tag-color: var(--kbq-states-foreground-disabled);
|
|
@@ -3852,7 +3870,7 @@
|
|
|
3852
3870
|
|
|
3853
3871
|
.kbq-fieldinputdate-filled-02db7d:where(.kbq-fieldinputdate-invalid-d764c6) {
|
|
3854
3872
|
--field-input-color: var(--kbq-foreground-error);
|
|
3855
|
-
--field-input-bg-color: var(--kbq-
|
|
3873
|
+
--field-input-bg-color: var(--kbq-background-error-less);
|
|
3856
3874
|
--field-input-placeholder-color: var(--kbq-foreground-error-tertiary);
|
|
3857
3875
|
}
|
|
3858
3876
|
|
|
@@ -3906,6 +3924,10 @@
|
|
|
3906
3924
|
.kbq-timepicker-startAddon-46c835 {
|
|
3907
3925
|
pointer-events: none;
|
|
3908
3926
|
}
|
|
3927
|
+
|
|
3928
|
+
.kbq-timepicker-startAddon-46c835 > :not(.kbq-timepicker-clock-920ed0) {
|
|
3929
|
+
pointer-events: all;
|
|
3930
|
+
}
|
|
3909
3931
|
.kbq-spacing-mbs_0-be7021 {
|
|
3910
3932
|
margin-block-start: 0;
|
|
3911
3933
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@koobiq/design-tokens": "^3.14.0",
|
|
29
29
|
"@types/react-transition-group": "^4.4.12",
|
|
30
30
|
"react-transition-group": "^4.4.5",
|
|
31
|
-
"@koobiq/logger": "0.
|
|
32
|
-
"@koobiq/react-
|
|
33
|
-
"@koobiq/react-
|
|
34
|
-
"@koobiq/react-primitives": "0.
|
|
31
|
+
"@koobiq/logger": "0.3.0",
|
|
32
|
+
"@koobiq/react-icons": "0.3.0",
|
|
33
|
+
"@koobiq/react-core": "0.3.0",
|
|
34
|
+
"@koobiq/react-primitives": "0.3.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@koobiq/design-tokens": "^3.14.0",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const base = "kbq-taginner-f9f19a";
|
|
2
|
-
const content = "kbq-taginner-content-72ca39";
|
|
3
|
-
const icon = "kbq-taginner-icon-df45be";
|
|
4
|
-
const cancelIcon = "kbq-taginner-cancelIcon-8a3dbe";
|
|
5
|
-
const hovered = "kbq-taginner-hovered-abf199";
|
|
6
|
-
const focused = "kbq-taginner-focused-16f44f";
|
|
7
|
-
const disabled = "kbq-taginner-disabled-0c6073";
|
|
8
|
-
const s = {
|
|
9
|
-
base,
|
|
10
|
-
content,
|
|
11
|
-
icon,
|
|
12
|
-
cancelIcon,
|
|
13
|
-
"theme-fade": "kbq-taginner-theme-fade-68b99c",
|
|
14
|
-
"contrast-fade": "kbq-taginner-contrast-fade-39d7a7",
|
|
15
|
-
"error-fade": "kbq-taginner-error-fade-6d7d03",
|
|
16
|
-
"warning-fade": "kbq-taginner-warning-fade-9403c7",
|
|
17
|
-
hovered,
|
|
18
|
-
focused,
|
|
19
|
-
disabled
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
base,
|
|
23
|
-
cancelIcon,
|
|
24
|
-
content,
|
|
25
|
-
s as default,
|
|
26
|
-
disabled,
|
|
27
|
-
focused,
|
|
28
|
-
hovered,
|
|
29
|
-
icon
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TagInner';
|
|
File without changes
|
|
File without changes
|