@koobiq/react-components 0.0.1-beta.11 → 0.0.1-beta.13
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/Alert/Alert.js +1 -1
- package/dist/components/Alert/types.d.ts +1 -1
- package/dist/components/Button/types.d.ts +4 -5
- package/dist/components/Collections/Item.d.ts +14 -0
- package/dist/components/Collections/Item.js +11 -0
- package/dist/components/{List/ListSection.d.ts → Collections/Section.d.ts} +6 -6
- package/dist/components/Collections/Section.js +11 -0
- package/dist/components/Collections/index.d.ts +2 -0
- package/dist/components/Dialog/DialogContext.js +1 -1
- package/dist/components/Dialog/components/DialogCloseButton.d.ts +14 -1
- package/dist/components/Dialog/components/DialogCloseButton.js +2 -2
- package/dist/components/Grid/Grid.d.ts +8 -2
- package/dist/components/Grid/Grid.js +5 -2
- package/dist/components/IconButton/types.d.ts +5 -4
- package/dist/components/Link/types.d.ts +4 -4
- package/dist/components/List/List.d.ts +11 -2
- package/dist/components/List/List.js +13 -4
- package/dist/components/List/List.module.css.js +0 -3
- package/dist/components/List/components/ListItemText/ListItemText.js +26 -0
- package/dist/components/List/components/ListItemText/ListItemText.module.css.js +11 -0
- package/dist/components/List/components/ListOption/ListOption.d.ts +3 -2
- package/dist/components/List/components/ListOption/ListOption.js +10 -15
- package/dist/components/List/components/ListSection/ListSection.d.ts +3 -2
- package/dist/components/List/components/ListSection/ListSection.js +1 -4
- package/dist/components/List/index.d.ts +3 -3
- package/dist/components/List/types.d.ts +2 -6
- package/dist/components/Modal/Modal.d.ts +9 -1
- package/dist/components/Modal/Modal.js +10 -4
- package/dist/components/Modal/index.d.ts +15 -2
- package/dist/components/Modal/index.js +11 -0
- package/dist/components/Popover/Popover.d.ts +9 -1
- package/dist/components/Popover/Popover.js +14 -6
- package/dist/components/Popover/index.d.ts +15 -2
- package/dist/components/Popover/index.js +11 -0
- package/dist/components/Popover/types.d.ts +4 -2
- package/dist/components/Popover/types.js +9 -1
- package/dist/components/Select/Select.d.ts +11 -2
- package/dist/components/Select/Select.js +9 -2
- package/dist/components/Select/types.d.ts +1 -1
- package/dist/components/SidePanel/SidePanel.d.ts +9 -1
- package/dist/components/SidePanel/SidePanel.js +10 -4
- package/dist/components/SidePanel/index.d.ts +15 -2
- package/dist/components/SidePanel/index.js +11 -0
- package/dist/index.js +22 -21
- package/dist/style.css +146 -134
- package/dist/styles/utility.d.ts +2 -0
- package/dist/styles/utility.js +3 -1
- package/dist/styles/utility.module.css.js +5 -1
- package/dist/types.d.ts +1 -0
- package/package.json +10 -5
- package/dist/components/List/ListItem.d.ts +0 -6
- package/dist/components/List/ListItem.js +0 -11
- package/dist/components/List/ListSection.js +0 -11
- package/dist/components/List/components/ListOption/ListOption.module.css.js +0 -23
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DialogHeader } from "../Dialog/components/DialoglHeader.js";
|
|
2
|
+
import { DialogContent } from "../Dialog/components/DialogContent.js";
|
|
3
|
+
import { DialogFooter } from "../Dialog/components/DialogFooter.js";
|
|
4
|
+
const PopoverHeader = DialogHeader;
|
|
5
|
+
const PopoverContent = DialogContent;
|
|
6
|
+
const PopoverFooter = DialogFooter;
|
|
7
|
+
export {
|
|
8
|
+
PopoverContent,
|
|
9
|
+
PopoverFooter,
|
|
10
|
+
PopoverHeader
|
|
11
|
+
};
|
|
@@ -12,6 +12,8 @@ export declare const popoverPropPlacement: readonly ["bottom", "bottom start", "
|
|
|
12
12
|
export type PopoverPropPlacement = (typeof popoverPropPlacement)[number];
|
|
13
13
|
export declare const popoverPropSize: readonly ["small", "medium", "large"];
|
|
14
14
|
export type PopoverPropSize = (typeof popoverPropSize)[number] | CSSProperties['inlineSize'];
|
|
15
|
+
export declare const popoverPropType: readonly ["dialog", "menu", "listbox", "tree", "grid"];
|
|
16
|
+
export type PopoverPropType = (typeof popoverPropType)[number];
|
|
15
17
|
export type PopoverBaseProps = {
|
|
16
18
|
/** If `true`, the component is shown. */
|
|
17
19
|
open?: boolean;
|
|
@@ -19,7 +21,7 @@ export type PopoverBaseProps = {
|
|
|
19
21
|
defaultOpen?: boolean;
|
|
20
22
|
/** The content of the component. */
|
|
21
23
|
children?: PopoverPropContent;
|
|
22
|
-
/** The render function of the control for displaying the
|
|
24
|
+
/** The render function of the control for displaying the popover. */
|
|
23
25
|
control?: PopoverPropControl;
|
|
24
26
|
/**
|
|
25
27
|
* Component width size.
|
|
@@ -103,7 +105,7 @@ export type PopoverBaseProps = {
|
|
|
103
105
|
* By default, onClose will always be called on interaction outside the popover ref.
|
|
104
106
|
*/
|
|
105
107
|
shouldCloseOnInteractOutside?: (element: Element) => boolean;
|
|
106
|
-
type?:
|
|
108
|
+
type?: PopoverPropType;
|
|
107
109
|
/** The props used for each slot inside. */
|
|
108
110
|
slotProps?: {
|
|
109
111
|
dialog?: DialogProps;
|
|
@@ -13,7 +13,15 @@ const popoverPropPlacement = [
|
|
|
13
13
|
"end bottom"
|
|
14
14
|
];
|
|
15
15
|
const popoverPropSize = ["small", "medium", "large"];
|
|
16
|
+
const popoverPropType = [
|
|
17
|
+
"dialog",
|
|
18
|
+
"menu",
|
|
19
|
+
"listbox",
|
|
20
|
+
"tree",
|
|
21
|
+
"grid"
|
|
22
|
+
];
|
|
16
23
|
export {
|
|
17
24
|
popoverPropPlacement,
|
|
18
|
-
popoverPropSize
|
|
25
|
+
popoverPropSize,
|
|
26
|
+
popoverPropType
|
|
19
27
|
};
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Item, Section } from '../Collections';
|
|
2
|
+
import { ListItemText } from '../List';
|
|
3
|
+
import type { SelectComponentProp } from './index';
|
|
4
|
+
declare const SelectComponent: SelectComponentProp;
|
|
5
|
+
type CompoundedComponent = typeof SelectComponent & {
|
|
6
|
+
Item: typeof Item;
|
|
7
|
+
Section: typeof Section;
|
|
8
|
+
ItemText: typeof ListItemText;
|
|
9
|
+
};
|
|
10
|
+
export declare const Select: CompoundedComponent;
|
|
11
|
+
export {};
|
|
@@ -3,14 +3,17 @@ import { forwardRef } from "react";
|
|
|
3
3
|
import { useDOMRef, useBoolean, mergeProps, clsx, useElementSize } from "@koobiq/react-core";
|
|
4
4
|
import { IconChevronDownS16 } from "@koobiq/react-icons";
|
|
5
5
|
import { useSelectState, useSelect, HiddenSelect } from "@koobiq/react-primitives";
|
|
6
|
-
import { ListInner } from "../List/List.js";
|
|
7
6
|
import s from "./Select.module.css.js";
|
|
8
7
|
import { FieldSelect } from "../FieldComponents/FieldSelect/FieldSelect.js";
|
|
9
8
|
import { PopoverInner } from "../Popover/Popover.js";
|
|
9
|
+
import { ListInner } from "../List/List.js";
|
|
10
10
|
import { FieldLabel } from "../FieldComponents/FieldLabel/FieldLabel.js";
|
|
11
11
|
import { FieldInputGroup } from "../FieldComponents/FieldInputGroup/FieldInputGroup.js";
|
|
12
12
|
import { FieldCaption } from "../FieldComponents/FieldCaption/FieldCaption.js";
|
|
13
13
|
import { FieldError } from "../FieldComponents/FieldError/FieldError.js";
|
|
14
|
+
import { Item } from "../Collections/Item.js";
|
|
15
|
+
import { Section } from "../Collections/Section.js";
|
|
16
|
+
import { ListItemText } from "../List/components/ListItemText/ListItemText.js";
|
|
14
17
|
function SelectRender(props, ref) {
|
|
15
18
|
const {
|
|
16
19
|
fullWidth = false,
|
|
@@ -166,7 +169,11 @@ function SelectRender(props, ref) {
|
|
|
166
169
|
/* @__PURE__ */ jsx(PopoverInner, { ...popoverProps, children: /* @__PURE__ */ jsx(ListInner, { ...listProps }) })
|
|
167
170
|
] });
|
|
168
171
|
}
|
|
169
|
-
const
|
|
172
|
+
const SelectComponent = forwardRef(SelectRender);
|
|
173
|
+
const Select = SelectComponent;
|
|
174
|
+
Select.Item = Item;
|
|
175
|
+
Select.Section = Section;
|
|
176
|
+
Select.ItemText = ListItemText;
|
|
170
177
|
export {
|
|
171
178
|
Select
|
|
172
179
|
};
|
|
@@ -83,5 +83,5 @@ export type SelectProps<T extends object> = {
|
|
|
83
83
|
errorMessage?: FieldErrorProps;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
-
export type
|
|
86
|
+
export type SelectComponentProp = <T extends object>(props: SelectProps<T>) => ReactElement | null;
|
|
87
87
|
export type SelectRef = ComponentRef<'button'>;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import { DialogContent, DialogFooter, DialogHeader } from '../Dialog';
|
|
1
2
|
import type { SidePanelProps } from './types';
|
|
2
|
-
|
|
3
|
+
declare const SidePanelComponent: import("react").ForwardRefExoticComponent<SidePanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
type CompoundedComponent = typeof SidePanelComponent & {
|
|
5
|
+
Header: typeof DialogHeader;
|
|
6
|
+
Body: typeof DialogContent;
|
|
7
|
+
Footer: typeof DialogFooter;
|
|
8
|
+
};
|
|
9
|
+
export declare const SidePanel: CompoundedComponent;
|
|
10
|
+
export {};
|
|
@@ -7,7 +7,10 @@ import { Transition } from "react-transition-group";
|
|
|
7
7
|
import s from "./SidePanel.module.css.js";
|
|
8
8
|
import { Backdrop } from "../Backdrop/Backdrop.js";
|
|
9
9
|
import { Dialog } from "../Dialog/Dialog.js";
|
|
10
|
-
|
|
10
|
+
import { DialogHeader } from "../Dialog/components/DialoglHeader.js";
|
|
11
|
+
import { DialogContent } from "../Dialog/components/DialogContent.js";
|
|
12
|
+
import { DialogFooter } from "../Dialog/components/DialogFooter.js";
|
|
13
|
+
const SidePanelComponent = forwardRef(
|
|
11
14
|
(props, ref) => {
|
|
12
15
|
const {
|
|
13
16
|
size = "medium",
|
|
@@ -88,10 +91,9 @@ const SidePanel = forwardRef(
|
|
|
88
91
|
},
|
|
89
92
|
slotProps?.panel
|
|
90
93
|
);
|
|
91
|
-
const { isDisabled,
|
|
94
|
+
const { isDisabled, ...otherTriggerProps } = triggerProps;
|
|
92
95
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
93
96
|
control?.({
|
|
94
|
-
onClick: onPress,
|
|
95
97
|
disabled: isDisabled,
|
|
96
98
|
...otherTriggerProps
|
|
97
99
|
}),
|
|
@@ -121,7 +123,11 @@ const SidePanel = forwardRef(
|
|
|
121
123
|
] });
|
|
122
124
|
}
|
|
123
125
|
);
|
|
124
|
-
|
|
126
|
+
SidePanelComponent.displayName = "SidePanel";
|
|
127
|
+
const SidePanel = SidePanelComponent;
|
|
128
|
+
SidePanel.Header = DialogHeader;
|
|
129
|
+
SidePanel.Body = DialogContent;
|
|
130
|
+
SidePanel.Footer = DialogFooter;
|
|
125
131
|
export {
|
|
126
132
|
SidePanel
|
|
127
133
|
};
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
export * from './SidePanel';
|
|
2
2
|
export * from './types';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
* This component has been deprecated, please use `SidePanel.Header` instead.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SidePanelHeader: import("react").ForwardRefExoticComponent<Omit<import("../Dialog").DialogHeaderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
* This component has been deprecated, please use `SidePanel.Body` instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare const SidePanelContent: import("react").ForwardRefExoticComponent<Omit<import("../Dialog").DialogContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
* This component has been deprecated, please use `SidePanel.Footer` instead.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SidePanelFooter: import("react").ForwardRefExoticComponent<Omit<import("../Dialog").DialogFooterProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DialogHeader } from "../Dialog/components/DialoglHeader.js";
|
|
2
|
+
import { DialogContent } from "../Dialog/components/DialogContent.js";
|
|
3
|
+
import { DialogFooter } from "../Dialog/components/DialogFooter.js";
|
|
4
|
+
const SidePanelHeader = DialogHeader;
|
|
5
|
+
const SidePanelContent = DialogContent;
|
|
6
|
+
const SidePanelFooter = DialogFooter;
|
|
7
|
+
export {
|
|
8
|
+
SidePanelContent,
|
|
9
|
+
SidePanelFooter,
|
|
10
|
+
SidePanelHeader
|
|
11
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -43,21 +43,22 @@ import { Grid } from "./components/Grid/Grid.js";
|
|
|
43
43
|
import { GridItem } from "./components/Grid/components/GridItem/GridItem.js";
|
|
44
44
|
import { SkeletonBlock } from "./components/SkeletonBlock/SkeletonBlock.js";
|
|
45
45
|
import { SkeletonTypography } from "./components/SkeletonTypography/SkeletonTypography.js";
|
|
46
|
-
import { DialogHeader, DialogHeader as DialogHeader2, DialogHeader as DialogHeader3, DialogHeader as DialogHeader4 } from "./components/Dialog/components/DialoglHeader.js";
|
|
47
|
-
import { DialogFooter, DialogFooter as DialogFooter2, DialogFooter as DialogFooter3, DialogFooter as DialogFooter4 } from "./components/Dialog/components/DialogFooter.js";
|
|
48
|
-
import { DialogContent, DialogContent as DialogContent2, DialogContent as DialogContent3, DialogContent as DialogContent4 } from "./components/Dialog/components/DialogContent.js";
|
|
49
46
|
import { Modal } from "./components/Modal/Modal.js";
|
|
50
47
|
import { modalPropSize } from "./components/Modal/types.js";
|
|
48
|
+
import { ModalContent, ModalFooter, ModalHeader } from "./components/Modal/index.js";
|
|
51
49
|
import { SidePanel } from "./components/SidePanel/SidePanel.js";
|
|
52
50
|
import { sidePanelPropPosition, sidePanelPropSize } from "./components/SidePanel/types.js";
|
|
51
|
+
import { SidePanelContent, SidePanelFooter, SidePanelHeader } from "./components/SidePanel/index.js";
|
|
53
52
|
import { Popover, PopoverInner } from "./components/Popover/Popover.js";
|
|
54
|
-
import { popoverPropPlacement, popoverPropSize } from "./components/Popover/types.js";
|
|
53
|
+
import { popoverPropPlacement, popoverPropSize, popoverPropType } from "./components/Popover/types.js";
|
|
54
|
+
import { PopoverContent, PopoverFooter, PopoverHeader } from "./components/Popover/index.js";
|
|
55
55
|
import { Tooltip } from "./components/Tooltip/Tooltip.js";
|
|
56
56
|
import { tooltipPropPlacement, tooltipPropVariant } from "./components/Tooltip/types.js";
|
|
57
|
-
import {
|
|
57
|
+
import { Item } from "./components/Collections/Item.js";
|
|
58
|
+
import { Section } from "./components/Collections/Section.js";
|
|
59
|
+
import { List, ListInner } from "./components/List/List.js";
|
|
60
|
+
import { ListItemText } from "./components/List/components/ListItemText/ListItemText.js";
|
|
58
61
|
import { listPropSelectionMode } from "./components/List/types.js";
|
|
59
|
-
import { ListItem } from "./components/List/ListItem.js";
|
|
60
|
-
import { ListSection } from "./components/List/ListSection.js";
|
|
61
62
|
import { AnimatedIcon } from "./components/AnimatedIcon/AnimatedIcon.js";
|
|
62
63
|
import { Select } from "./components/Select/Select.js";
|
|
63
64
|
import { flex, flexPropAlignItems, flexPropDirection, flexPropFlex, flexPropGap, flexPropJustifyContent, flexPropOrder, flexPropWrap } from "./components/layout/flex/flex.js";
|
|
@@ -71,9 +72,6 @@ export {
|
|
|
71
72
|
Button,
|
|
72
73
|
Checkbox,
|
|
73
74
|
Container,
|
|
74
|
-
DialogContent,
|
|
75
|
-
DialogFooter,
|
|
76
|
-
DialogHeader,
|
|
77
75
|
FlexBox,
|
|
78
76
|
Grid,
|
|
79
77
|
GridItem,
|
|
@@ -82,16 +80,18 @@ export {
|
|
|
82
80
|
InputNumber,
|
|
83
81
|
Link,
|
|
84
82
|
List,
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
ListInner,
|
|
84
|
+
Item as ListItem,
|
|
85
|
+
ListItemText,
|
|
86
|
+
Section as ListSection,
|
|
87
87
|
Modal,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
ModalContent,
|
|
89
|
+
ModalFooter,
|
|
90
|
+
ModalHeader,
|
|
91
91
|
Popover,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
PopoverContent,
|
|
93
|
+
PopoverFooter,
|
|
94
|
+
PopoverHeader,
|
|
95
95
|
PopoverInner,
|
|
96
96
|
ProgressBar,
|
|
97
97
|
ProgressSpinner,
|
|
@@ -104,9 +104,9 @@ export {
|
|
|
104
104
|
RadioGroupLabel,
|
|
105
105
|
Select,
|
|
106
106
|
SidePanel,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
SidePanelContent,
|
|
108
|
+
SidePanelFooter,
|
|
109
|
+
SidePanelHeader,
|
|
110
110
|
SkeletonBlock,
|
|
111
111
|
SkeletonTypography,
|
|
112
112
|
Textarea,
|
|
@@ -139,6 +139,7 @@ export {
|
|
|
139
139
|
modalPropSize,
|
|
140
140
|
popoverPropPlacement,
|
|
141
141
|
popoverPropSize,
|
|
142
|
+
popoverPropType,
|
|
142
143
|
progressBarPropVariant,
|
|
143
144
|
progressSpinnerPropSize,
|
|
144
145
|
progressSpinnerPropVariant,
|
package/dist/style.css
CHANGED
|
@@ -1305,6 +1305,78 @@
|
|
|
1305
1305
|
text-underline-offset: inherit;
|
|
1306
1306
|
font-family: inherit;
|
|
1307
1307
|
}
|
|
1308
|
+
|
|
1309
|
+
.kbq-utility-list-792630 {
|
|
1310
|
+
outline: none;
|
|
1311
|
+
margin: 0;
|
|
1312
|
+
padding: 0;
|
|
1313
|
+
list-style: none;
|
|
1314
|
+
overflow: auto;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.kbq-utility-list-item-862731 {
|
|
1318
|
+
--list-item-bg-color: ;
|
|
1319
|
+
--list-item-outline-color: transparent;
|
|
1320
|
+
--list-item-outline-width: var(--kbq-size-3xs);
|
|
1321
|
+
cursor: pointer;
|
|
1322
|
+
box-sizing: border-box;
|
|
1323
|
+
gap: var(--kbq-size-s);
|
|
1324
|
+
border-radius: var(--kbq-size-s);
|
|
1325
|
+
color: var(--kbq-foreground-contrast);
|
|
1326
|
+
background-color: var(--list-item-bg-color);
|
|
1327
|
+
padding: var(--kbq-size-xs) var(--kbq-size-m);
|
|
1328
|
+
outline-offset: calc(-1 * var(--list-item-outline-width));
|
|
1329
|
+
outline: var(--list-item-outline-width) solid var(--list-item-outline-color);
|
|
1330
|
+
transition: border-color var(--kbq-transition-default), border-radius var(--kbq-transition-default), background-color var(--kbq-transition-default), color var(--kbq-transition-default);
|
|
1331
|
+
flex-shrink: 0;
|
|
1332
|
+
align-items: center;
|
|
1333
|
+
text-decoration: none;
|
|
1334
|
+
display: flex;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
.kbq-utility-list-item-862731:where([data-hovered="true"]) {
|
|
1338
|
+
--list-item-bg-color: var(--kbq-states-background-transparent-hover);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
.kbq-utility-list-item-862731:where([data-pressed="true"]) {
|
|
1342
|
+
--list-item-bg-color: var(--kbq-states-background-transparent-active);
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
.kbq-utility-list-item-862731:where([data-focus-visible="true"]) {
|
|
1346
|
+
--list-item-outline-color: var(--kbq-states-line-focus-theme);
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.kbq-utility-list-item-862731:where([data-selected="true"]) {
|
|
1350
|
+
--list-item-bg-color: var(--kbq-background-theme-less);
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.kbq-utility-list-item-862731:where([data-selected="true"][data-hovered="true"]) {
|
|
1354
|
+
--list-item-bg-color: var(--kbq-states-background-theme-less-hover);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
.kbq-utility-list-item-862731:where([data-selected="true"][data-pressed="true"]) {
|
|
1358
|
+
--list-item-bg-color: var(--kbq-states-background-theme-less-active);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
.kbq-utility-list-item-862731:where([data-disabled="true"]), .kbq-utility-list-item-862731:where([aria-disabled="true"]) {
|
|
1362
|
+
--list-item-bg-color: ;
|
|
1363
|
+
cursor: default;
|
|
1364
|
+
opacity: .3;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
.kbq-utility-list-item-862731:where([data-selected="true"][data-disabled="true"]), .kbq-utility-list-item-862731:where([data-selected="true"][aria-disabled="true"]) {
|
|
1368
|
+
--list-item-bg-color: var(--kbq-background-theme-less);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.kbq-utility-list-792630[aria-multiselectable="true"] .kbq-utility-list-item-862731:is([data-selected="true"], [data-focus-visible="true"]):has( + :is([data-selected="true"], [data-focus-visible="true"])) {
|
|
1372
|
+
border-end-end-radius: 0;
|
|
1373
|
+
border-end-start-radius: 0;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.kbq-utility-list-792630[aria-multiselectable="true"] .kbq-utility-list-item-862731:is([data-selected="true"], [data-focus-visible="true"]) + :is([data-selected="true"], [data-focus-visible="true"]) {
|
|
1377
|
+
border-start-start-radius: 0;
|
|
1378
|
+
border-start-end-radius: 0;
|
|
1379
|
+
}
|
|
1308
1380
|
.kbq-typography-645b00 {
|
|
1309
1381
|
margin: unset;
|
|
1310
1382
|
}
|
|
@@ -2538,6 +2610,73 @@
|
|
|
2538
2610
|
.kbq-skeletontypography-skeleton-5db4ac {
|
|
2539
2611
|
block-size: .9em;
|
|
2540
2612
|
}
|
|
2613
|
+
.kbq-modal-4b03cd {
|
|
2614
|
+
--modal-window-offset: 48px;
|
|
2615
|
+
pointer-events: none;
|
|
2616
|
+
z-index: var(--kbq-layer-modal);
|
|
2617
|
+
display: flex;
|
|
2618
|
+
position: fixed;
|
|
2619
|
+
inset: 0;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
.kbq-modal-small-7273e9 {
|
|
2623
|
+
--modal-window-inline-size: 400px;
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
.kbq-modal-medium-5db542 {
|
|
2627
|
+
--modal-window-inline-size: 640px;
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
.kbq-modal-large-534723 {
|
|
2631
|
+
--modal-window-inline-size: 960px;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
.kbq-modal-4b03cd[data-transition="entering"] .kbq-modal-modal-3e5b95, .kbq-modal-4b03cd[data-transition="entered"] .kbq-modal-modal-3e5b95 {
|
|
2635
|
+
opacity: 1;
|
|
2636
|
+
transform: translate(-50%);
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
.kbq-modal-4b03cd[data-transition="exiting"] .kbq-modal-modal-3e5b95, .kbq-modal-4b03cd[data-transition="exited"] .kbq-modal-modal-3e5b95 {
|
|
2640
|
+
opacity: 0;
|
|
2641
|
+
transform: translate(-50%, 100px);
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
.kbq-modal-modal-3e5b95 {
|
|
2645
|
+
pointer-events: auto;
|
|
2646
|
+
border-radius: var(--kbq-size-m);
|
|
2647
|
+
box-shadow: var(--kbq-shadow-overlay);
|
|
2648
|
+
background-color: var(--kbq-background-bg);
|
|
2649
|
+
max-inline-size: var(--modal-window-inline-size);
|
|
2650
|
+
inline-size: calc(100% - var(--modal-window-offset) * 2);
|
|
2651
|
+
max-block-size: calc(100vh - var(--modal-window-offset) * 2);
|
|
2652
|
+
transition: opacity var(--kbq-transition-slow), transform var(--kbq-transition-slow);
|
|
2653
|
+
position: absolute;
|
|
2654
|
+
inset-block-start: var(--modal-window-offset);
|
|
2655
|
+
inset-inline-start: 50%;
|
|
2656
|
+
transform: translate(-50%, 100px);
|
|
2657
|
+
}
|
|
2658
|
+
.kbq-backdrop-238ef0 {
|
|
2659
|
+
--backdrop-z-index: -1;
|
|
2660
|
+
--backdrop-duration: ;
|
|
2661
|
+
opacity: 0;
|
|
2662
|
+
z-index: var(--backdrop-z-index);
|
|
2663
|
+
pointer-events: auto;
|
|
2664
|
+
background-color: var(--kbq-background-overlay);
|
|
2665
|
+
transition: opacity var(--backdrop-duration) ease-in-out;
|
|
2666
|
+
justify-content: center;
|
|
2667
|
+
align-items: center;
|
|
2668
|
+
display: flex;
|
|
2669
|
+
position: fixed;
|
|
2670
|
+
inset: 0;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
.kbq-backdrop-238ef0[data-transition="entering"], .kbq-backdrop-238ef0[data-transition="entered"] {
|
|
2674
|
+
opacity: 1;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
.kbq-backdrop-238ef0[data-transition="exiting"], .kbq-backdrop-238ef0[data-transition="exited"] {
|
|
2678
|
+
opacity: 0;
|
|
2679
|
+
}
|
|
2541
2680
|
.kbq-dialog-4c737c {
|
|
2542
2681
|
--dialog-padding-inline-size: var(--kbq-size-xxl);
|
|
2543
2682
|
pointer-events: auto;
|
|
@@ -2610,73 +2749,6 @@
|
|
|
2610
2749
|
[data-bottom-overflow="true"] .kbq-dialog-footer-cf03d1 {
|
|
2611
2750
|
box-shadow: var(--kbq-shadow-overflow-normal-top);
|
|
2612
2751
|
}
|
|
2613
|
-
.kbq-modal-4b03cd {
|
|
2614
|
-
--modal-window-offset: 48px;
|
|
2615
|
-
pointer-events: none;
|
|
2616
|
-
z-index: var(--kbq-layer-modal);
|
|
2617
|
-
display: flex;
|
|
2618
|
-
position: fixed;
|
|
2619
|
-
inset: 0;
|
|
2620
|
-
}
|
|
2621
|
-
|
|
2622
|
-
.kbq-modal-small-7273e9 {
|
|
2623
|
-
--modal-window-inline-size: 400px;
|
|
2624
|
-
}
|
|
2625
|
-
|
|
2626
|
-
.kbq-modal-medium-5db542 {
|
|
2627
|
-
--modal-window-inline-size: 640px;
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
.kbq-modal-large-534723 {
|
|
2631
|
-
--modal-window-inline-size: 960px;
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
.kbq-modal-4b03cd[data-transition="entering"] .kbq-modal-modal-3e5b95, .kbq-modal-4b03cd[data-transition="entered"] .kbq-modal-modal-3e5b95 {
|
|
2635
|
-
opacity: 1;
|
|
2636
|
-
transform: translate(-50%);
|
|
2637
|
-
}
|
|
2638
|
-
|
|
2639
|
-
.kbq-modal-4b03cd[data-transition="exiting"] .kbq-modal-modal-3e5b95, .kbq-modal-4b03cd[data-transition="exited"] .kbq-modal-modal-3e5b95 {
|
|
2640
|
-
opacity: 0;
|
|
2641
|
-
transform: translate(-50%, 100px);
|
|
2642
|
-
}
|
|
2643
|
-
|
|
2644
|
-
.kbq-modal-modal-3e5b95 {
|
|
2645
|
-
pointer-events: auto;
|
|
2646
|
-
border-radius: var(--kbq-size-m);
|
|
2647
|
-
box-shadow: var(--kbq-shadow-overlay);
|
|
2648
|
-
background-color: var(--kbq-background-bg);
|
|
2649
|
-
max-inline-size: var(--modal-window-inline-size);
|
|
2650
|
-
inline-size: calc(100% - var(--modal-window-offset) * 2);
|
|
2651
|
-
max-block-size: calc(100vh - var(--modal-window-offset) * 2);
|
|
2652
|
-
transition: opacity var(--kbq-transition-slow), transform var(--kbq-transition-slow);
|
|
2653
|
-
position: absolute;
|
|
2654
|
-
inset-block-start: var(--modal-window-offset);
|
|
2655
|
-
inset-inline-start: 50%;
|
|
2656
|
-
transform: translate(-50%, 100px);
|
|
2657
|
-
}
|
|
2658
|
-
.kbq-backdrop-238ef0 {
|
|
2659
|
-
--backdrop-z-index: -1;
|
|
2660
|
-
--backdrop-duration: ;
|
|
2661
|
-
opacity: 0;
|
|
2662
|
-
z-index: var(--backdrop-z-index);
|
|
2663
|
-
pointer-events: auto;
|
|
2664
|
-
background-color: var(--kbq-background-overlay);
|
|
2665
|
-
transition: opacity var(--backdrop-duration) ease-in-out;
|
|
2666
|
-
justify-content: center;
|
|
2667
|
-
align-items: center;
|
|
2668
|
-
display: flex;
|
|
2669
|
-
position: fixed;
|
|
2670
|
-
inset: 0;
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
.kbq-backdrop-238ef0[data-transition="entering"], .kbq-backdrop-238ef0[data-transition="entered"] {
|
|
2674
|
-
opacity: 1;
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
.kbq-backdrop-238ef0[data-transition="exiting"], .kbq-backdrop-238ef0[data-transition="exited"] {
|
|
2678
|
-
opacity: 0;
|
|
2679
|
-
}
|
|
2680
2752
|
.kbq-sidepanel-2aae74 {
|
|
2681
2753
|
pointer-events: none;
|
|
2682
2754
|
z-index: var(--kbq-layer-modal);
|
|
@@ -2918,14 +2990,6 @@
|
|
|
2918
2990
|
.kbq-tooltip-0c8f57[data-transition="exiting"], .kbq-tooltip-0c8f57[data-transition="exited"] {
|
|
2919
2991
|
opacity: 0;
|
|
2920
2992
|
}
|
|
2921
|
-
.kbq-list-928929 {
|
|
2922
|
-
outline: none;
|
|
2923
|
-
margin: 0;
|
|
2924
|
-
padding: 0;
|
|
2925
|
-
list-style: none;
|
|
2926
|
-
overflow: auto;
|
|
2927
|
-
}
|
|
2928
|
-
|
|
2929
2993
|
.kbq-list-label-e4431c {
|
|
2930
2994
|
padding: var(--kbq-size-xs) var(--kbq-size-m);
|
|
2931
2995
|
}
|
|
@@ -2942,68 +3006,16 @@
|
|
|
2942
3006
|
box-sizing: border-box;
|
|
2943
3007
|
padding: var(--kbq-size-s) var(--kbq-size-m);
|
|
2944
3008
|
}
|
|
2945
|
-
.kbq-
|
|
2946
|
-
--
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
box-sizing: border-box;
|
|
2951
|
-
gap: var(--kbq-size-s);
|
|
2952
|
-
border-radius: var(--kbq-size-s);
|
|
2953
|
-
color: var(--kbq-foreground-contrast);
|
|
2954
|
-
background-color: var(--list-item-bg-color);
|
|
2955
|
-
padding: var(--kbq-size-xs) var(--kbq-size-m);
|
|
2956
|
-
outline-offset: calc(-1 * var(--list-item-outline-width));
|
|
2957
|
-
outline: var(--list-item-outline-width) solid var(--list-item-outline-color);
|
|
2958
|
-
transition: border-color var(--kbq-transition-default), border-radius var(--kbq-transition-default), background-color var(--kbq-transition-default), color var(--kbq-transition-default);
|
|
2959
|
-
flex-shrink: 0;
|
|
2960
|
-
align-items: center;
|
|
2961
|
-
text-decoration: none;
|
|
3009
|
+
.kbq-listitemtext-27bac6 {
|
|
3010
|
+
gap: var(--kbq-size-3xs);
|
|
3011
|
+
flex-direction: column;
|
|
3012
|
+
flex-grow: 1;
|
|
3013
|
+
min-inline-size: 0;
|
|
2962
3014
|
display: flex;
|
|
2963
3015
|
}
|
|
2964
3016
|
|
|
2965
|
-
.kbq-
|
|
2966
|
-
|
|
2967
|
-
}
|
|
2968
|
-
|
|
2969
|
-
.kbq-listoption-pressed-292310 {
|
|
2970
|
-
--list-item-bg-color: var(--kbq-states-background-transparent-active);
|
|
2971
|
-
}
|
|
2972
|
-
|
|
2973
|
-
.kbq-listoption-focusVisible-dcff25 {
|
|
2974
|
-
--list-item-outline-color: var(--kbq-states-line-focus-theme);
|
|
2975
|
-
}
|
|
2976
|
-
|
|
2977
|
-
.kbq-listoption-selected-012293 {
|
|
2978
|
-
--list-item-bg-color: var(--kbq-background-theme-less);
|
|
2979
|
-
}
|
|
2980
|
-
|
|
2981
|
-
.kbq-listoption-selected-012293:where(.kbq-listoption-hovered-163e16) {
|
|
2982
|
-
--list-item-bg-color: var(--kbq-states-background-theme-less-hover);
|
|
2983
|
-
}
|
|
2984
|
-
|
|
2985
|
-
.kbq-listoption-selected-012293:where(.kbq-listoption-pressed-292310) {
|
|
2986
|
-
--list-item-bg-color: var(--kbq-states-background-theme-less-active);
|
|
2987
|
-
}
|
|
2988
|
-
|
|
2989
|
-
.kbq-listoption-disabled-dafd94 {
|
|
2990
|
-
--list-item-bg-color: ;
|
|
2991
|
-
cursor: default;
|
|
2992
|
-
opacity: .3;
|
|
2993
|
-
}
|
|
2994
|
-
|
|
2995
|
-
.kbq-listoption-selected-012293:where(.kbq-listoption-disabled-dafd94) {
|
|
2996
|
-
--list-item-bg-color: var(--kbq-background-theme-less);
|
|
2997
|
-
}
|
|
2998
|
-
|
|
2999
|
-
[aria-multiselectable] :is(.kbq-listoption-selected-012293, .kbq-listoption-focusVisible-dcff25):has( + :is(.kbq-listoption-selected-012293, .kbq-listoption-focusVisible-dcff25)) {
|
|
3000
|
-
border-end-end-radius: 0;
|
|
3001
|
-
border-end-start-radius: 0;
|
|
3002
|
-
}
|
|
3003
|
-
|
|
3004
|
-
[aria-multiselectable] :is(.kbq-listoption-selected-012293, .kbq-listoption-focusVisible-dcff25) + :is(.kbq-listoption-selected-012293, .kbq-listoption-focusVisible-dcff25) {
|
|
3005
|
-
border-start-start-radius: 0;
|
|
3006
|
-
border-start-end-radius: 0;
|
|
3017
|
+
[data-slot="select-value"] .kbq-listitemtext-caption-ae96af {
|
|
3018
|
+
display: none;
|
|
3007
3019
|
}
|
|
3008
3020
|
.kbq-select-6d31ad {
|
|
3009
3021
|
--field-input-padding-inline-start: var(--kbq-size-m);
|
package/dist/styles/utility.d.ts
CHANGED
package/dist/styles/utility.js
CHANGED
|
@@ -2,6 +2,7 @@ const headline = "kbq-utility-headline-b504fb";
|
|
|
2
2
|
const title = "kbq-utility-title-49d974";
|
|
3
3
|
const subheading = "kbq-utility-subheading-ec6b60";
|
|
4
4
|
const inherit = "kbq-utility-inherit-6b72bf";
|
|
5
|
+
const list = "kbq-utility-list-792630";
|
|
5
6
|
const s = {
|
|
6
7
|
"foreground-white": "kbq-utility-foreground-white-f552a0",
|
|
7
8
|
"foreground-white-secondary": "kbq-utility-foreground-white-secondary-893462",
|
|
@@ -64,12 +65,15 @@ const s = {
|
|
|
64
65
|
"italic-normal-strong": "kbq-utility-italic-normal-strong-88d247",
|
|
65
66
|
"italic-compact": "kbq-utility-italic-compact-846466",
|
|
66
67
|
"italic-compact-strong": "kbq-utility-italic-compact-strong-d8e16e",
|
|
67
|
-
inherit
|
|
68
|
+
inherit,
|
|
69
|
+
list,
|
|
70
|
+
"list-item": "kbq-utility-list-item-862731"
|
|
68
71
|
};
|
|
69
72
|
export {
|
|
70
73
|
s as default,
|
|
71
74
|
headline,
|
|
72
75
|
inherit,
|
|
76
|
+
list,
|
|
73
77
|
subheading,
|
|
74
78
|
title
|
|
75
79
|
};
|
package/dist/types.d.ts
CHANGED