@infonomic/uikit 6.8.1 → 6.8.2
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/accordion/accordion.js +6 -6
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/button/button-group.js +2 -2
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/combo-button.js +8 -8
- package/dist/components/button/control-buttons.js +4 -4
- package/dist/components/button/copy-button.js +3 -3
- package/dist/components/button/icon-button.js +2 -2
- package/dist/components/card/card.js +7 -7
- package/dist/components/chips/chip.js +6 -6
- package/dist/components/container/container.js +2 -2
- package/dist/components/dropdown/dropdown.js +9 -9
- package/dist/components/hamburger/hamburger.js +4 -4
- package/dist/components/inputs/autocomplete.js +10 -10
- package/dist/components/inputs/calendar.js +24 -24
- package/dist/components/inputs/checkbox-group.js +2 -2
- package/dist/components/inputs/checkbox.js +6 -6
- package/dist/components/inputs/error-text.js +2 -2
- package/dist/components/inputs/help-text.js +2 -2
- package/dist/components/inputs/input-adornment.js +2 -2
- package/dist/components/inputs/input.js +6 -6
- package/dist/components/inputs/label.js +2 -2
- package/dist/components/inputs/radio-group.js +3 -3
- package/dist/components/inputs/select.js +6 -6
- package/dist/components/inputs/text-area.js +3 -3
- package/dist/components/notifications/alert.js +11 -11
- package/dist/components/notifications/toast.js +8 -8
- package/dist/components/pager/ellipses.js +2 -2
- package/dist/components/pager/first-button.js +2 -2
- package/dist/components/pager/last-button.js +2 -2
- package/dist/components/pager/next-button.js +2 -2
- package/dist/components/pager/number-button.js +3 -3
- package/dist/components/pager/pagination.js +3 -3
- package/dist/components/pager/previous-button.js +2 -2
- package/dist/components/scroll-area/scroll-area.js +8 -8
- package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
- package/dist/components/section/section.js +2 -2
- package/dist/components/shimmer/shimmer.js +4 -4
- package/dist/components/table/table.js +10 -10
- package/dist/components/tabs/tabs.js +5 -5
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/icons/activity-icon.js +3 -3
- package/dist/icons/ai-icon.js +3 -3
- package/dist/icons/calendar-icon.js +3 -3
- package/dist/icons/check-icon.js +3 -3
- package/dist/icons/chevron-down-icon.js +3 -3
- package/dist/icons/chevron-left-double-icon.js +3 -3
- package/dist/icons/chevron-left-icon.js +3 -3
- package/dist/icons/chevron-right-double-icon.js +3 -3
- package/dist/icons/chevron-right-icon.js +3 -3
- package/dist/icons/chevron-up-icon.js +3 -3
- package/dist/icons/chevrons-up-down.js +3 -3
- package/dist/icons/close-icon.js +3 -3
- package/dist/icons/copy-icon.js +3 -3
- package/dist/icons/danger-icon.js +3 -3
- package/dist/icons/dashboard-icon.js +3 -3
- package/dist/icons/delete-icon.js +3 -3
- package/dist/icons/document-icon.js +3 -3
- package/dist/icons/download-icon.js +3 -3
- package/dist/icons/edit-icon.js +3 -3
- package/dist/icons/ellipsis-icon.js +3 -3
- package/dist/icons/email-icon.js +3 -3
- package/dist/icons/external-link-icon.js +3 -3
- package/dist/icons/eye-closed-icon.js +3 -3
- package/dist/icons/eye-open-icon.js +3 -3
- package/dist/icons/github-icon.js +3 -3
- package/dist/icons/globe-icon.js +3 -3
- package/dist/icons/google-icon.js +2 -2
- package/dist/icons/gripper-vertical-icon.js +3 -3
- package/dist/icons/history-icon.js +3 -3
- package/dist/icons/home-icon.js +3 -3
- package/dist/icons/icon-element.js +2 -2
- package/dist/icons/info-icon.js +3 -3
- package/dist/icons/infonomic-icon.js +3 -3
- package/dist/icons/light-icon.js +3 -3
- package/dist/icons/location-pin-icon.js +3 -3
- package/dist/icons/markdown-icon.js +3 -3
- package/dist/icons/moon-icon.js +3 -3
- package/dist/icons/plus-icon.js +3 -3
- package/dist/icons/primary-icon.js +3 -3
- package/dist/icons/refresh-icon.js +3 -3
- package/dist/icons/return-icon.js +3 -3
- package/dist/icons/roles-icon.js +3 -3
- package/dist/icons/search-icon.js +3 -3
- package/dist/icons/search-menu-icon.js +3 -3
- package/dist/icons/settings-gear-icon.js +3 -3
- package/dist/icons/settings-sliders-icon.js +3 -3
- package/dist/icons/sign-out-icon.js +3 -3
- package/dist/icons/stop-icon.js +3 -3
- package/dist/icons/stopwatch-icon.js +3 -3
- package/dist/icons/success-icon.js +3 -3
- package/dist/icons/user-icon.js +3 -3
- package/dist/icons/users-icon.js +3 -3
- package/dist/icons/wallet-icon.js +3 -3
- package/dist/icons/warning-icon.js +3 -3
- package/dist/icons/x-icon.js +3 -3
- package/dist/loaders/ellipses.js +3 -3
- package/dist/loaders/ring.js +3 -3
- package/dist/loaders/spinner.js +4 -4
- package/dist/widgets/datepicker/datepicker.js +12 -12
- package/dist/widgets/drawer/drawer-container.js +2 -2
- package/dist/widgets/drawer/drawer-content.js +2 -2
- package/dist/widgets/drawer/drawer-header.js +2 -2
- package/dist/widgets/drawer/drawer-top-actions.js +2 -2
- package/dist/widgets/drawer/drawer.js +3 -3
- package/dist/widgets/modal/modal-actions.js +2 -2
- package/dist/widgets/modal/modal-container.js +2 -2
- package/dist/widgets/modal/modal-content.js +2 -2
- package/dist/widgets/modal/modal-header.js +2 -2
- package/dist/widgets/modal/modal.js +3 -3
- package/dist/widgets/timeline/timeline.js +8 -8
- package/package.json +2 -2
- package/src/components/accordion/accordion.tsx +1 -1
- package/src/components/avatar/avatar.tsx +1 -1
- package/src/components/badge/badge.tsx +1 -1
- package/src/components/button/button-group.tsx +1 -1
- package/src/components/button/button.tsx +1 -1
- package/src/components/button/combo-button.tsx +1 -1
- package/src/components/button/control-buttons.tsx +1 -1
- package/src/components/button/copy-button.tsx +1 -1
- package/src/components/button/icon-button.tsx +1 -1
- package/src/components/card/card.tsx +1 -1
- package/src/components/chips/chip.tsx +1 -1
- package/src/components/container/container.tsx +1 -1
- package/src/components/dropdown/dropdown.tsx +1 -1
- package/src/components/hamburger/hamburger.tsx +1 -1
- package/src/components/inputs/autocomplete.tsx +1 -1
- package/src/components/inputs/calendar.tsx +1 -1
- package/src/components/inputs/checkbox-group.tsx +1 -1
- package/src/components/inputs/checkbox.tsx +1 -1
- package/src/components/inputs/error-text.tsx +1 -1
- package/src/components/inputs/help-text.tsx +1 -1
- package/src/components/inputs/input-adornment.tsx +1 -1
- package/src/components/inputs/input.tsx +1 -1
- package/src/components/inputs/label.tsx +1 -1
- package/src/components/inputs/radio-group.tsx +1 -1
- package/src/components/inputs/select.tsx +1 -1
- package/src/components/inputs/text-area.tsx +1 -1
- package/src/components/notifications/alert.tsx +1 -1
- package/src/components/notifications/toast.tsx +1 -1
- package/src/components/pager/ellipses.tsx +1 -1
- package/src/components/pager/first-button.tsx +1 -1
- package/src/components/pager/last-button.tsx +1 -1
- package/src/components/pager/next-button.tsx +1 -1
- package/src/components/pager/number-button.tsx +1 -1
- package/src/components/pager/pagination.tsx +1 -1
- package/src/components/pager/previous-button.tsx +1 -1
- package/src/components/scroll-area/scroll-area.tsx +1 -1
- package/src/components/scroll-to-top/scroll-to-top.tsx +1 -1
- package/src/components/section/section.tsx +1 -1
- package/src/components/shimmer/shimmer.tsx +1 -1
- package/src/components/table/table.tsx +1 -1
- package/src/components/tabs/tabs.tsx +1 -1
- package/src/components/tooltip/tooltip.tsx +1 -1
- package/src/icons/activity-icon.tsx +1 -1
- package/src/icons/ai-icon.tsx +1 -1
- package/src/icons/calendar-icon.tsx +1 -1
- package/src/icons/check-icon.tsx +1 -1
- package/src/icons/chevron-down-icon.tsx +1 -1
- package/src/icons/chevron-left-double-icon.tsx +1 -1
- package/src/icons/chevron-left-icon.tsx +1 -1
- package/src/icons/chevron-right-double-icon.tsx +1 -1
- package/src/icons/chevron-right-icon.tsx +1 -1
- package/src/icons/chevron-up-icon.tsx +1 -1
- package/src/icons/chevrons-up-down.tsx +1 -1
- package/src/icons/close-icon.tsx +1 -1
- package/src/icons/copy-icon.tsx +1 -1
- package/src/icons/danger-icon.tsx +1 -1
- package/src/icons/dashboard-icon.tsx +1 -1
- package/src/icons/delete-icon.tsx +1 -1
- package/src/icons/document-icon.tsx +1 -1
- package/src/icons/download-icon.tsx +1 -1
- package/src/icons/edit-icon.tsx +1 -1
- package/src/icons/ellipsis-icon.tsx +1 -1
- package/src/icons/email-icon.tsx +1 -1
- package/src/icons/external-link-icon.tsx +1 -1
- package/src/icons/eye-closed-icon.tsx +1 -1
- package/src/icons/eye-open-icon.tsx +1 -1
- package/src/icons/github-icon.tsx +1 -1
- package/src/icons/globe-icon.tsx +1 -1
- package/src/icons/google-icon.tsx +1 -1
- package/src/icons/gripper-vertical-icon.tsx +1 -1
- package/src/icons/history-icon.tsx +1 -1
- package/src/icons/home-icon.tsx +1 -1
- package/src/icons/icon-element.tsx +1 -1
- package/src/icons/info-icon.tsx +1 -1
- package/src/icons/infonomic-icon.tsx +1 -1
- package/src/icons/light-icon.tsx +1 -1
- package/src/icons/location-pin-icon.tsx +1 -1
- package/src/icons/markdown-icon.tsx +1 -1
- package/src/icons/moon-icon.tsx +1 -1
- package/src/icons/plus-icon.tsx +1 -1
- package/src/icons/primary-icon.tsx +1 -1
- package/src/icons/refresh-icon.tsx +1 -1
- package/src/icons/return-icon.tsx +1 -1
- package/src/icons/roles-icon.tsx +1 -1
- package/src/icons/search-icon.tsx +1 -1
- package/src/icons/search-menu-icon.tsx +1 -1
- package/src/icons/settings-gear-icon.tsx +1 -1
- package/src/icons/settings-sliders-icon.tsx +1 -1
- package/src/icons/sign-out-icon.tsx +1 -1
- package/src/icons/stop-icon.tsx +1 -1
- package/src/icons/stopwatch-icon.tsx +1 -1
- package/src/icons/success-icon.tsx +1 -1
- package/src/icons/user-icon.tsx +1 -1
- package/src/icons/users-icon.tsx +1 -1
- package/src/icons/wallet-icon.tsx +1 -1
- package/src/icons/warning-icon.tsx +1 -1
- package/src/icons/x-icon.tsx +1 -1
- package/src/loaders/ellipses.tsx +1 -1
- package/src/loaders/ring.tsx +1 -1
- package/src/loaders/spinner.tsx +1 -1
- package/src/widgets/datepicker/datepicker.tsx +1 -1
- package/src/widgets/drawer/drawer-container.tsx +1 -1
- package/src/widgets/drawer/drawer-content.tsx +1 -1
- package/src/widgets/drawer/drawer-header.tsx +1 -1
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
- package/src/widgets/drawer/drawer.tsx +1 -1
- package/src/widgets/modal/modal-actions.tsx +1 -1
- package/src/widgets/modal/modal-container.tsx +1 -1
- package/src/widgets/modal/modal-content.tsx +1 -1
- package/src/widgets/modal/modal-header.tsx +1 -1
- package/src/widgets/modal/modal.tsx +1 -1
- package/src/widgets/timeline/timeline.tsx +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { Popover } from "@base-ui/react/popover";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
6
|
import { format } from "date-fns";
|
|
7
7
|
import { Button } from "../../components/button/button.js";
|
|
8
8
|
import { IconButton } from "../../components/button/icon-button.js";
|
|
@@ -47,7 +47,7 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
return /*#__PURE__*/ jsxs("div", {
|
|
50
|
-
className:
|
|
50
|
+
className: clsx('infonomic-datepicker-container', datepicker_module.container, containerClassName),
|
|
51
51
|
children: [
|
|
52
52
|
/*#__PURE__*/ jsx("div", {
|
|
53
53
|
style: {
|
|
@@ -65,8 +65,8 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
|
|
|
65
65
|
intent: intent,
|
|
66
66
|
inputSize: inputSize,
|
|
67
67
|
ref: inputRef,
|
|
68
|
-
className:
|
|
69
|
-
inputWrapperClassName:
|
|
68
|
+
className: clsx('infonomic-datepicker-input', datepicker_module.input, inputClassName),
|
|
69
|
+
inputWrapperClassName: clsx('infonomic-datepicker-input-wrapper', datepicker_module["input-wrapper"], inputWrapperClassName),
|
|
70
70
|
onKeyDown: handleOnKeyDown,
|
|
71
71
|
onClick: (e)=>{
|
|
72
72
|
e.preventDefault();
|
|
@@ -135,10 +135,10 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
|
|
|
135
135
|
children: /*#__PURE__*/ jsx(Popover.Positioner, {
|
|
136
136
|
sideOffset: 5,
|
|
137
137
|
children: /*#__PURE__*/ jsxs(Popover.Popup, {
|
|
138
|
-
className:
|
|
138
|
+
className: clsx('infonomic-datepicker-content', datepicker_module.content, contentClassName),
|
|
139
139
|
children: [
|
|
140
140
|
/*#__PURE__*/ jsxs("div", {
|
|
141
|
-
className:
|
|
141
|
+
className: clsx('infonomic-datepicker-content-components', datepicker_module["content-components"]),
|
|
142
142
|
children: [
|
|
143
143
|
/*#__PURE__*/ jsx("div", {
|
|
144
144
|
ref: calendarRef,
|
|
@@ -196,20 +196,20 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
|
|
|
196
196
|
]
|
|
197
197
|
}),
|
|
198
198
|
/*#__PURE__*/ jsxs("div", {
|
|
199
|
-
className:
|
|
199
|
+
className: clsx('infonomic-datepicker-status-and-actions', datepicker_module["status-and-actions"]),
|
|
200
200
|
children: [
|
|
201
201
|
/*#__PURE__*/ jsx("div", {
|
|
202
|
-
className:
|
|
202
|
+
className: clsx('infonomic-datepicker-content-status', datepicker_module["content-status"]),
|
|
203
203
|
children: date ? format(date, 'datetime' === mode ? 'PPPp' : 'PPP') : 'No date selected'
|
|
204
204
|
}),
|
|
205
205
|
/*#__PURE__*/ jsxs("div", {
|
|
206
|
-
className:
|
|
206
|
+
className: clsx('infonomic-datepicker-content-actions', datepicker_module["content-actions"]),
|
|
207
207
|
children: [
|
|
208
208
|
/*#__PURE__*/ jsx("div", {
|
|
209
209
|
children: /*#__PURE__*/ jsx(Button, {
|
|
210
210
|
variant: "outlined",
|
|
211
211
|
size: "sm",
|
|
212
|
-
className:
|
|
212
|
+
className: clsx('infonomic-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
|
|
213
213
|
onClick: ()=>{
|
|
214
214
|
const today = new Date();
|
|
215
215
|
setDate(today);
|
|
@@ -228,7 +228,7 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
|
|
|
228
228
|
/*#__PURE__*/ jsx(Button, {
|
|
229
229
|
size: "sm",
|
|
230
230
|
intent: "noeffect",
|
|
231
|
-
className:
|
|
231
|
+
className: clsx('infonomic-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
|
|
232
232
|
onClick: ()=>{
|
|
233
233
|
setIsOpen(false);
|
|
234
234
|
},
|
|
@@ -237,7 +237,7 @@ function DatePicker({ id, name, label, required, initialValue, mode = 'datetime'
|
|
|
237
237
|
/*#__PURE__*/ jsx(Button, {
|
|
238
238
|
variant: "outlined",
|
|
239
239
|
size: "sm",
|
|
240
|
-
className:
|
|
240
|
+
className: clsx('infonomic-datepicker-content-actions-button', datepicker_module["content-actions-button"]),
|
|
241
241
|
onClick: ()=>{
|
|
242
242
|
setIsOpen(false);
|
|
243
243
|
handleOnDateChange(date);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import drawer_module from "./drawer.module.js";
|
|
5
5
|
function DrawerContainer({ ref, children, className, ...rest }) {
|
|
6
6
|
return /*#__PURE__*/ jsx("div", {
|
|
7
7
|
ref: ref,
|
|
8
|
-
className:
|
|
8
|
+
className: clsx('infonomic-drawer-container', drawer_module["drawer-container"], className),
|
|
9
9
|
...rest,
|
|
10
10
|
children: children
|
|
11
11
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import drawer_module from "./drawer.module.js";
|
|
5
5
|
function DrawerContent({ ref, children, className, ...rest }) {
|
|
6
6
|
return /*#__PURE__*/ jsx("div", {
|
|
7
7
|
ref: ref,
|
|
8
8
|
...rest,
|
|
9
|
-
className:
|
|
9
|
+
className: clsx('infonomic-drawer-content', drawer_module["drawer-content"], className),
|
|
10
10
|
children: children
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import drawer_module from "./drawer.module.js";
|
|
5
5
|
const drawer_header_DrawerHeader = function({ ref, children, className, ...rest }) {
|
|
6
|
-
const classes =
|
|
6
|
+
const classes = clsx('infonomic-drawer-header', drawer_module["drawer-header"], className);
|
|
7
7
|
return /*#__PURE__*/ jsx("div", {
|
|
8
8
|
style: {
|
|
9
9
|
overflowWrap: 'anywhere'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import drawer_module from "./drawer.module.js";
|
|
5
5
|
const DrawerTopActions = function({ ref, children, className, ...rest }) {
|
|
6
|
-
const classes =
|
|
6
|
+
const classes = clsx('infonomic-drawer-top-actions', drawer_module["drawer-top-actions"], className);
|
|
7
7
|
return /*#__PURE__*/ jsx("div", {
|
|
8
8
|
style: {
|
|
9
9
|
whiteSpace: 'nowrap'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect } from "react";
|
|
4
4
|
import { Drawer } from "@base-ui/react/drawer";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
6
|
import drawer_module from "./drawer.module.js";
|
|
7
7
|
import { DrawerContainer } from "./drawer-container.js";
|
|
8
8
|
import { DrawerContent } from "./drawer-content.js";
|
|
@@ -35,13 +35,13 @@ const drawer_Drawer = ({ id, isOpen, onDismiss, closeOnOverlayClick, children, w
|
|
|
35
35
|
children: /*#__PURE__*/ jsxs(Drawer.Portal, {
|
|
36
36
|
children: [
|
|
37
37
|
/*#__PURE__*/ jsx(Drawer.Backdrop, {
|
|
38
|
-
className:
|
|
38
|
+
className: clsx('infonomic-drawer-backdrop', drawer_module.backdrop),
|
|
39
39
|
style: hasTopOffset ? {
|
|
40
40
|
top: topOffset
|
|
41
41
|
} : void 0
|
|
42
42
|
}),
|
|
43
43
|
/*#__PURE__*/ jsx(Drawer.Popup, {
|
|
44
|
-
className:
|
|
44
|
+
className: clsx('infonomic-drawer-wrapper', drawer_module["drawer-wrapper"], typedStyles[`drawer-${width}`], typedStyles[`drawer-depth-${depth.toString()}`], className),
|
|
45
45
|
style: hasTopOffset ? {
|
|
46
46
|
top: topOffset
|
|
47
47
|
} : void 0,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import modal_module from "./modal.module.js";
|
|
5
5
|
const modal_actions_ModalActions = function({ ref, children, className, ...rest }) {
|
|
6
6
|
return /*#__PURE__*/ jsx("div", {
|
|
7
7
|
ref: ref,
|
|
8
8
|
...rest,
|
|
9
|
-
className:
|
|
9
|
+
className: clsx('infonomic-modal-actions', modal_module["modal-actions"], className),
|
|
10
10
|
children: children
|
|
11
11
|
});
|
|
12
12
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import modal_module from "./modal.module.js";
|
|
5
5
|
const modal_container_ModalContainer = function({ ref, children, className, ...rest }) {
|
|
6
6
|
return /*#__PURE__*/ jsx("div", {
|
|
7
7
|
ref: ref,
|
|
8
|
-
className:
|
|
8
|
+
className: clsx('infonomic-modal-container', modal_module["modal-container"], className),
|
|
9
9
|
...rest,
|
|
10
10
|
children: children
|
|
11
11
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import modal_module from "./modal.module.js";
|
|
5
5
|
const modal_content_ModalContent = function({ ref, children, className, ...rest }) {
|
|
6
6
|
return /*#__PURE__*/ jsx("div", {
|
|
7
7
|
ref: ref,
|
|
8
8
|
...rest,
|
|
9
|
-
className:
|
|
9
|
+
className: clsx('infonomic-modal-content', modal_module["modal-content"], className),
|
|
10
10
|
children: children
|
|
11
11
|
});
|
|
12
12
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import modal_module from "./modal.module.js";
|
|
5
5
|
const modal_header_ModalHeader = function({ ref, children, className, ...rest }) {
|
|
6
|
-
const classes =
|
|
6
|
+
const classes = clsx('infonomic-modal-header', modal_module["modal-header"], 'prose', className);
|
|
7
7
|
return /*#__PURE__*/ jsx("div", {
|
|
8
8
|
style: {
|
|
9
9
|
overflowWrap: 'anywhere'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useCallback, useRef, useState } from "react";
|
|
4
4
|
import { Dialog } from "@base-ui/react/dialog";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
6
|
import modal_module from "./modal.module.js";
|
|
7
7
|
import { ModalActions } from "./modal-actions.js";
|
|
8
8
|
import { ModalContainer } from "./modal-container.js";
|
|
@@ -50,10 +50,10 @@ function Modal({ isOpen, onDismiss, closeOnOverlayClick, children }) {
|
|
|
50
50
|
children: /*#__PURE__*/ jsxs(Dialog.Portal, {
|
|
51
51
|
children: [
|
|
52
52
|
/*#__PURE__*/ jsx(Dialog.Backdrop, {
|
|
53
|
-
className:
|
|
53
|
+
className: clsx('infonomic-modal-backdrop', modal_module.backdrop)
|
|
54
54
|
}),
|
|
55
55
|
/*#__PURE__*/ jsx(Dialog.Popup, {
|
|
56
|
-
className:
|
|
56
|
+
className: clsx('infonomic-modal-wrapper', modal_module["modal-wrapper"]),
|
|
57
57
|
onPointerDown: handleOverlayPointerDown,
|
|
58
58
|
onClick: handleOverlayClick,
|
|
59
59
|
children: children
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import timeline_module from "./timeline.module.js";
|
|
5
5
|
const Timeline = ({ id, className, children, ...rest })=>/*#__PURE__*/ jsx("div", {
|
|
6
6
|
id: id,
|
|
7
|
-
className:
|
|
7
|
+
className: clsx(timeline_module.timeline, 'timeline', className),
|
|
8
8
|
...rest,
|
|
9
9
|
children: children
|
|
10
10
|
});
|
|
11
11
|
const Root = function({ ref, children, className, ...props }) {
|
|
12
|
-
const classes =
|
|
12
|
+
const classes = clsx(timeline_module["timeline-root"], 'timeline-root', className);
|
|
13
13
|
return /*#__PURE__*/ jsx("ol", {
|
|
14
14
|
ref: ref,
|
|
15
15
|
...props,
|
|
@@ -21,7 +21,7 @@ const Item = function({ ref, children, className, ...props }) {
|
|
|
21
21
|
return /*#__PURE__*/ jsx("li", {
|
|
22
22
|
ref: ref,
|
|
23
23
|
...props,
|
|
24
|
-
className:
|
|
24
|
+
className: clsx(timeline_module["timeline-item"], 'timeline-item', className),
|
|
25
25
|
children: children
|
|
26
26
|
});
|
|
27
27
|
};
|
|
@@ -29,7 +29,7 @@ const Icon = function({ ref, children, className, ...props }) {
|
|
|
29
29
|
return /*#__PURE__*/ jsx("span", {
|
|
30
30
|
ref: ref,
|
|
31
31
|
...props,
|
|
32
|
-
className:
|
|
32
|
+
className: clsx(timeline_module["timeline-icon"], 'time-line-icon', className),
|
|
33
33
|
children: /*#__PURE__*/ jsx("svg", {
|
|
34
34
|
"aria-hidden": "true",
|
|
35
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -45,7 +45,7 @@ const Heading = function({ ref, children, className, ...props }) {
|
|
|
45
45
|
return /*#__PURE__*/ jsx("h3", {
|
|
46
46
|
ref: ref,
|
|
47
47
|
...props,
|
|
48
|
-
className:
|
|
48
|
+
className: clsx(timeline_module["timeline-heading"], 'timeline-heading', className),
|
|
49
49
|
children: children
|
|
50
50
|
});
|
|
51
51
|
};
|
|
@@ -53,7 +53,7 @@ const DateItem = function({ ref, children, className, ...props }) {
|
|
|
53
53
|
return /*#__PURE__*/ jsx("time", {
|
|
54
54
|
ref: ref,
|
|
55
55
|
...props,
|
|
56
|
-
className:
|
|
56
|
+
className: clsx(timeline_module["timeline-date"], 'timeline-date', className),
|
|
57
57
|
children: children
|
|
58
58
|
});
|
|
59
59
|
};
|
|
@@ -61,7 +61,7 @@ const Content = function({ ref, children, className, ...props }) {
|
|
|
61
61
|
return /*#__PURE__*/ jsx("div", {
|
|
62
62
|
ref: ref,
|
|
63
63
|
...props,
|
|
64
|
-
className:
|
|
64
|
+
className: clsx(timeline_module["timeline-content"], 'timeline-content', className),
|
|
65
65
|
children: children
|
|
66
66
|
});
|
|
67
67
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@infonomic/uikit",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "6.8.
|
|
5
|
+
"version": "6.8.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "Infonomic UI kit is a collection of reusable UI components and utilities for React and Astro.",
|
|
8
8
|
"keywords": [
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@base-ui/react": "^1.7.0",
|
|
66
|
-
"
|
|
66
|
+
"clsx": "^2.1.1",
|
|
67
67
|
"date-fns": "^4.4.0",
|
|
68
68
|
"motion": "^13.1.0",
|
|
69
69
|
"npm-run-all": "^4.1.5",
|
|
@@ -4,7 +4,7 @@ import React, { type Ref } from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { Toggle } from '@base-ui/react/toggle'
|
|
6
6
|
import { ToggleGroup } from '@base-ui/react/toggle-group'
|
|
7
|
-
import cx from '
|
|
7
|
+
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import { Button } from './button'
|
|
10
10
|
import styles from './button-group.module.css'
|
|
@@ -4,7 +4,7 @@ import type React from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { mergeProps } from '@base-ui/react/merge-props'
|
|
6
6
|
import { useRender } from '@base-ui/react/use-render'
|
|
7
|
-
import cx from '
|
|
7
|
+
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import { Ripple } from '../../lib/ripple.js'
|
|
10
10
|
import styles from './button.module.css'
|
|
@@ -4,7 +4,7 @@ import type React from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { mergeProps } from '@base-ui/react/merge-props'
|
|
6
6
|
import { useRender } from '@base-ui/react/use-render'
|
|
7
|
-
import cx from '
|
|
7
|
+
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import { CheckIcon } from '../../icons/check-icon.js'
|
|
10
10
|
import { CloseIcon } from '../../icons/close-icon.js'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type React from 'react'
|
|
4
4
|
|
|
5
5
|
import { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete'
|
|
6
|
-
import cx from '
|
|
6
|
+
import cx from 'clsx'
|
|
7
7
|
|
|
8
8
|
import styles from './autocomplete.module.css'
|
|
9
9
|
import { ErrorText } from './error-text.jsx'
|
|
@@ -4,7 +4,7 @@ import type React from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { Radio } from '@base-ui/react/radio'
|
|
6
6
|
import { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group'
|
|
7
|
-
import cx from '
|
|
7
|
+
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import styles from './radio-group.module.css'
|
|
10
10
|
import type { Intent } from '../@types/shared'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type React from 'react'
|
|
4
4
|
|
|
5
5
|
import { Select as SelectPrimitive } from '@base-ui/react/select'
|
|
6
|
-
import cx from '
|
|
6
|
+
import cx from 'clsx'
|
|
7
7
|
|
|
8
8
|
import { CheckIcon } from '../../icons/check-icon.jsx'
|
|
9
9
|
import { ChevronDownIcon } from '../../icons/chevron-down-icon.jsx'
|