@sqrzro/ui 4.0.0-alpha.78 → 4.0.0-alpha.79
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/buttons/ActionButton/index.d.ts +3 -3
- package/dist/components/buttons/ActionButton/index.js +3 -3
- package/dist/components/buttons/Button/index.d.ts +2 -2
- package/dist/components/buttons/Button/index.js +3 -3
- package/dist/components/collections/Collection/index.d.ts +2 -2
- package/dist/components/collections/Collection/index.js +5 -5
- package/dist/components/collections/DataTable/index.d.ts +2 -2
- package/dist/components/collections/DataTable/index.js +2 -2
- package/dist/components/collections/DefinitionList/index.d.ts +2 -2
- package/dist/components/collections/DefinitionList/index.js +1 -1
- package/dist/components/collections/EmptyMessage/index.d.ts +2 -2
- package/dist/components/collections/EmptyMessage/index.js +2 -2
- package/dist/components/collections/EmptyMessageAction/index.d.ts +1 -1
- package/dist/components/collections/EmptyMessageAction/index.js +2 -2
- package/dist/components/collections/List/index.d.ts +1 -1
- package/dist/components/collections/ListClientComponent/index.d.ts +1 -1
- package/dist/components/collections/ListClientComponent/index.js +2 -2
- package/dist/components/collections/ListItem/index.d.ts +2 -2
- package/dist/components/collections/ListItem/index.js +4 -4
- package/dist/components/collections/ListItemMenu/index.d.ts +1 -1
- package/dist/components/collections/ListItemMeta/index.d.ts +2 -2
- package/dist/components/collections/ListItemMeta/index.js +2 -2
- package/dist/components/collections/ListItemSecondary/index.d.ts +1 -1
- package/dist/components/collections/ListItemSecondary/index.js +1 -1
- package/dist/components/collections/Pagination/index.d.ts +1 -1
- package/dist/components/collections/Pagination/index.js +3 -3
- package/dist/components/collections/PaginationLink/index.d.ts +1 -1
- package/dist/components/collections/PaginationLink/index.js +1 -1
- package/dist/components/collections/TableClientComponent/index.d.ts +1 -1
- package/dist/components/collections/TableClientComponent/index.js +4 -4
- package/dist/components/collections/TableRow/index.d.ts +2 -2
- package/dist/components/collections/TableRow/index.js +3 -3
- package/dist/components/collections/interfaces.d.ts +1 -1
- package/dist/components/collections/utility/render-cell.js +3 -3
- package/dist/components/elements/Badge/index.d.ts +2 -2
- package/dist/components/elements/Badge/index.js +2 -2
- package/dist/components/elements/ContentLink/index.js +1 -1
- package/dist/components/elements/InfoPanel/index.d.ts +2 -2
- package/dist/components/elements/InfoPanel/index.js +2 -2
- package/dist/components/elements/Link/index.d.ts +1 -1
- package/dist/components/elements/Link/index.js +2 -2
- package/dist/components/elements/Menu/index.d.ts +2 -2
- package/dist/components/elements/Menu/index.js +4 -4
- package/dist/components/elements/MenuItem/index.d.ts +1 -1
- package/dist/components/elements/MenuItem/index.js +2 -2
- package/dist/components/elements/Page/index.d.ts +2 -2
- package/dist/components/elements/Reference/index.d.ts +2 -2
- package/dist/components/elements/Reference/index.js +1 -1
- package/dist/components/elements/Summary/index.d.ts +2 -2
- package/dist/components/elements/Summary/index.js +2 -2
- package/dist/components/errors/AppError/index.d.ts +2 -2
- package/dist/components/errors/AppError/index.js +2 -2
- package/dist/components/modals/ConfirmModal/index.d.ts +1 -1
- package/dist/components/modals/ConfirmModal/index.js +1 -1
- package/dist/components/modals/Modal/index.d.ts +2 -2
- package/dist/components/modals/Modal/index.js +2 -2
- package/dist/components/modals/ModalActions/index.d.ts +2 -2
- package/dist/components/modals/ModalActions/index.js +2 -2
- package/dist/components/utility/Action/index.d.ts +1 -1
- package/dist/components/utility/Action/index.js +2 -2
- package/dist/components/utility/ActionList/index.d.ts +2 -2
- package/dist/components/utility/ActionList/index.js +2 -2
- package/dist/components/utility/AppBody/index.js +1 -1
- package/dist/components/utility/Calendar/index.d.ts +1 -1
- package/dist/components/utility/Calendar/index.js +5 -5
- package/dist/components/utility/CalendarDay/index.d.ts +2 -2
- package/dist/components/utility/CalendarDay/index.js +1 -1
- package/dist/components/utility/Confirmable/index.d.ts +2 -2
- package/dist/components/utility/Confirmable/index.js +1 -1
- package/dist/components/utility/Container/index.d.ts +1 -1
- package/dist/components/utility/Container/index.js +1 -1
- package/dist/components/utility/Loader/index.d.ts +1 -1
- package/dist/components/utility/Loader/index.js +2 -2
- package/dist/components/utility/Popover/index.d.ts +1 -1
- package/dist/components/utility/Popover/index.js +2 -2
- package/dist/components/utility/Toast/index.d.ts +2 -2
- package/dist/components/utility/Toast/index.js +3 -3
- package/dist/filters/components/FilterBar/index.d.ts +2 -2
- package/dist/filters/components/FilterBarClientComponent/index.d.ts +2 -2
- package/dist/filters/components/FilterBarClientComponent/index.js +2 -2
- package/dist/filters/components/FilterClearButton/index.d.ts +1 -1
- package/dist/filters/components/FilterClearButton/index.js +1 -1
- package/dist/filters/components/FilterControl/index.d.ts +1 -1
- package/dist/filters/components/FilterControl/index.js +2 -2
- package/dist/filters/components/FilterItem/index.d.ts +2 -2
- package/dist/filters/components/FilterItem/index.js +2 -2
- package/dist/filters/components/FilterPanel/index.d.ts +2 -2
- package/dist/filters/filters/BooleanFilter/index.js +1 -1
- package/dist/filters/filters/CalendarFilter/index.js +1 -1
- package/dist/filters/filters/DropdownFilter/index.js +1 -1
- package/dist/filters/filters/Filter/index.d.ts +3 -3
- package/dist/filters/filters/Filter/index.js +4 -4
- package/dist/filters/filters/SearchFilter/index.d.ts +2 -2
- package/dist/filters/filters/SearchFilter/index.js +4 -4
- package/dist/filters/filters/interfaces.d.ts +1 -1
- package/dist/filters/interfaces.d.ts +1 -1
- package/dist/filters/utility/get-quick-dates.d.ts +1 -1
- package/dist/forms/components/Autocomplete/index.d.ts +1 -1
- package/dist/forms/components/Autocomplete/index.js +2 -2
- package/dist/forms/components/BaseCalendarInput/index.js +2 -2
- package/dist/forms/components/CSVInput/index.d.ts +2 -2
- package/dist/forms/components/CSVInput/index.js +2 -2
- package/dist/forms/components/CalendarInput/index.js +1 -1
- package/dist/forms/components/CheckboxInput/index.d.ts +2 -2
- package/dist/forms/components/CheckboxInput/index.js +1 -1
- package/dist/forms/components/ChkRad/index.d.ts +2 -2
- package/dist/forms/components/ChkRad/index.js +3 -3
- package/dist/forms/components/ColorInput/index.d.ts +2 -2
- package/dist/forms/components/ColorInput/index.js +3 -3
- package/dist/forms/components/Dropdown/index.d.ts +1 -1
- package/dist/forms/components/Dropdown/index.js +4 -4
- package/dist/forms/components/DropdownItem/index.d.ts +2 -2
- package/dist/forms/components/DropdownItem/index.js +2 -2
- package/dist/forms/components/DropdownList/index.d.ts +2 -2
- package/dist/forms/components/DropdownList/index.js +1 -1
- package/dist/forms/components/EditableForm/index.d.ts +2 -2
- package/dist/forms/components/EditableForm/index.js +2 -2
- package/dist/forms/components/EditableFormField/index.d.ts +1 -1
- package/dist/forms/components/EditableFormField/index.js +1 -1
- package/dist/forms/components/EditableFormFields/index.js +2 -2
- package/dist/forms/components/Form/index.d.ts +1 -1
- package/dist/forms/components/Form/index.js +3 -3
- package/dist/forms/components/FormError/index.d.ts +1 -1
- package/dist/forms/components/FormError/index.js +2 -2
- package/dist/forms/components/FormField/index.d.ts +3 -3
- package/dist/forms/components/FormField/index.js +3 -3
- package/dist/forms/components/FormLabel/index.d.ts +1 -1
- package/dist/forms/components/FormLabel/index.js +2 -2
- package/dist/forms/components/FormSubmit/index.d.ts +1 -1
- package/dist/forms/components/FormSubmit/index.js +1 -1
- package/dist/forms/components/ImageInput/index.d.ts +3 -3
- package/dist/forms/components/ImageInput/index.js +3 -3
- package/dist/forms/components/ImageInputPanel/index.d.ts +1 -1
- package/dist/forms/components/ImageInputPanel/index.js +1 -1
- package/dist/forms/components/ModalForm/index.d.ts +1 -1
- package/dist/forms/components/ModalForm/index.js +4 -4
- package/dist/forms/components/NumberInput/index.d.ts +1 -1
- package/dist/forms/components/PasswordComplexity/index.d.ts +1 -1
- package/dist/forms/components/PasswordComplexity/index.js +1 -1
- package/dist/forms/components/PasswordComplexityItem/index.d.ts +1 -1
- package/dist/forms/components/PasswordComplexityItem/index.js +1 -1
- package/dist/forms/components/PasswordInput/index.d.ts +2 -2
- package/dist/forms/components/PasswordInput/index.js +1 -1
- package/dist/forms/components/RangeCalendarInput/index.js +1 -1
- package/dist/forms/components/StaticTextInput/index.d.ts +2 -2
- package/dist/forms/components/StaticTextInput/index.js +3 -3
- package/dist/forms/components/Switch/index.d.ts +2 -2
- package/dist/forms/components/Switch/index.js +3 -3
- package/dist/forms/components/TextArea/index.d.ts +2 -2
- package/dist/forms/components/TextArea/index.js +2 -2
- package/dist/forms/components/TextInput/index.d.ts +2 -2
- package/dist/forms/components/TextInput/index.js +2 -2
- package/dist/forms/hooks/useForm.d.ts +2 -2
- package/dist/forms/hooks/useForm.js +2 -2
- package/dist/forms/hooks/useModalForm.d.ts +1 -1
- package/dist/forms/hooks/useModalForm.js +1 -1
- package/dist/hooks/useConfirmable.d.ts +1 -1
- package/dist/hooks/useSelected.d.ts +1 -1
- package/dist/hooks/useSuccess.js +1 -1
- package/dist/navigation/components/AppNavigation/index.d.ts +1 -1
- package/dist/navigation/components/AppNavigation/index.js +1 -1
- package/dist/navigation/components/AppNavigationItem/index.d.ts +2 -2
- package/dist/navigation/components/AppNavigationItem/index.js +6 -6
- package/dist/navigation/hooks/useNavigation.d.ts +1 -1
- package/dist/styles/classnames/config.d.ts +47 -47
- package/dist/styles/classnames/utility/apply-sizes.d.ts +1 -1
- package/dist/styles/classnames/utility/apply-variants.d.ts +1 -1
- package/dist/utility/interfaces.d.ts +1 -1
- package/package.json +17 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonClassNames } from '
|
|
2
|
-
import { ActionComponentProps } from '
|
|
3
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import { ButtonClassNames } from '../Button/index.js';
|
|
2
|
+
import { ActionComponentProps } from '../../utility/Action/index.js';
|
|
3
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
4
4
|
export interface ActionButtonProps<Data, Response> extends ClassNameProps<ButtonClassNames>, Omit<ActionComponentProps<Data, Response>, 'children'> {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
label?: React.ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import Button from '
|
|
4
|
-
import Action from '
|
|
5
|
-
import FormSubmit from '../../../forms/components/FormSubmit';
|
|
3
|
+
import Button from '../Button/index.js';
|
|
4
|
+
import Action from '../../utility/Action/index.js';
|
|
5
|
+
import FormSubmit from '../../../forms/components/FormSubmit/index.js';
|
|
6
6
|
function ActionButton({ classNameProps, isSubmittable, ...props }) {
|
|
7
7
|
return (_jsx(Action, { ...props, render: (renderProps) => isSubmittable ? (_jsx(FormSubmit, { ...renderProps, classNameProps: classNameProps })) : (_jsx(Button, { ...renderProps, classNameProps: classNameProps })) }));
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { ActionEvent, StyleVariant } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { ActionEvent, StyleVariant } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface ButtonClassNames {
|
|
4
4
|
root: string;
|
|
5
5
|
icon: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from 'react';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
5
|
-
import applyVariants from '../../../styles/classnames/utility/apply-variants';
|
|
6
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
|
+
import applyVariants from '../../../styles/classnames/utility/apply-variants.js';
|
|
6
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
7
7
|
import Link from '../../elements/Link';
|
|
8
8
|
/**
|
|
9
9
|
* Either a `Link` component or a `button` element, depending on whether a `href` prop is specified.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FilterMap } from '../../../filters/interfaces';
|
|
2
|
-
import type { NextPageProps } from '../../../utility/interfaces';
|
|
1
|
+
import type { FilterMap } from '../../../filters/interfaces.js';
|
|
2
|
+
import type { NextPageProps } from '../../../utility/interfaces.js';
|
|
3
3
|
import type { EmptyMessageProps } from '../EmptyMessage';
|
|
4
4
|
import type { ListFunctionConfig, Paginated } from '../interfaces';
|
|
5
5
|
export interface CollectionComponentProps<Item, Transformed, Filters> {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment, Suspense } from 'react';
|
|
3
|
-
import Loader from '
|
|
4
|
-
import FilterBar from '../../../filters/components/FilterBar';
|
|
5
|
-
import checkHasFilters from '../../../filters/utility/check-has-filters';
|
|
6
|
-
import parseFilters from '../../../filters/utility/parse-filters';
|
|
7
|
-
import parsePage from '../../../filters/utility/parse-page';
|
|
3
|
+
import Loader from '../../utility/Loader/index.js';
|
|
4
|
+
import FilterBar from '../../../filters/components/FilterBar/index.js';
|
|
5
|
+
import checkHasFilters from '../../../filters/utility/check-has-filters.js';
|
|
6
|
+
import parseFilters from '../../../filters/utility/parse-filters.js';
|
|
7
|
+
import parsePage from '../../../filters/utility/parse-page.js';
|
|
8
8
|
import EmptyMessage from '../EmptyMessage';
|
|
9
9
|
import Pagination from '../Pagination';
|
|
10
10
|
import isPaginated from '../utility/is-paginated';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { DataObject } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { DataObject } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface DataTableClassNames {
|
|
4
4
|
root: string;
|
|
5
5
|
row: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { filterNull } from '@sqrzro/utility';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
5
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
6
6
|
function DataTable({ classNameProps, classNames, data, }) {
|
|
7
7
|
const componentClassNames = useClassNames('dataTable', { props: classNameProps }, classNames);
|
|
8
8
|
const filtered = filterNull(data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { DataObject } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { DataObject } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface DefinitionListClassNames {
|
|
4
4
|
root: string;
|
|
5
5
|
row: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { filterNull } from '@sqrzro/utility';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
5
|
function DefinitionList({ classNameProps, classNames, data, }) {
|
|
6
6
|
const componentClassNames = useClassNames('definitionList', { props: classNameProps }, classNames);
|
|
7
7
|
const filtered = filterNull(data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps, StylableClassName } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import { StyleVariant } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps, StylableClassName } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import { StyleVariant } from '../../../utility/interfaces.js';
|
|
3
3
|
import type { EmptyMessageActionProps } from '../EmptyMessageAction';
|
|
4
4
|
export interface EmptyMessageClassNames {
|
|
5
5
|
root: StylableClassName;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useClassNames, useIcon } from '../../../styles/context';
|
|
4
|
-
import applyVariants from '../../../styles/classnames/utility/apply-variants';
|
|
3
|
+
import { useClassNames, useIcon } from '../../../styles/context.js';
|
|
4
|
+
import applyVariants from '../../../styles/classnames/utility/apply-variants.js';
|
|
5
5
|
import EmptyMessageAction from '../EmptyMessageAction';
|
|
6
6
|
export const DEFAULT_TITLE = 'No results found';
|
|
7
7
|
export const DEFAULT_CHILDREN = 'If you think this is an error, please contact the site administrator.';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { isValidElement } from 'react';
|
|
4
|
-
import Button from '
|
|
5
|
-
import useSearchParamsHref from '../../../hooks/useSearchParamsHref';
|
|
4
|
+
import Button from '../../buttons/Button/index.js';
|
|
5
|
+
import useSearchParamsHref from '../../../hooks/useSearchParamsHref.js';
|
|
6
6
|
function EmptyMessageAction({ action }) {
|
|
7
7
|
const { getSearchParamsHref } = useSearchParamsHref();
|
|
8
8
|
if (isValidElement(action)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
2
|
import type { CollectionComponentProps } from '../Collection';
|
|
3
3
|
import type { ListClassNames } from '../ListClientComponent';
|
|
4
4
|
import type { ListItemObject } from '../interfaces';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import useSelected from '../../../hooks/useSelected';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
3
|
+
import useSelected from '../../../hooks/useSelected.js';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
5
|
import ListItem from '../ListItem';
|
|
6
6
|
function ListClientComponent({ classNameProps, classNames, data, }) {
|
|
7
7
|
const componentClassNames = useClassNames('list', { props: classNameProps }, classNames);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InputEvent } from '../../../forms/interfaces';
|
|
2
|
-
import type { ClassNameProps, StylableClassName } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import type { InputEvent } from '../../../forms/interfaces.js';
|
|
2
|
+
import type { ClassNameProps, StylableClassName } from '../../../styles/classnames/interfaces.js';
|
|
3
3
|
import type { ListItemObject } from '../interfaces';
|
|
4
4
|
export interface ListItemClassNames {
|
|
5
5
|
actions: string;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { filterNull } from '@sqrzro/utility';
|
|
4
4
|
import { usePathname } from 'next/navigation';
|
|
5
|
-
import Switch from '../../../forms/components/Switch';
|
|
6
|
-
import { useClassNames } from '../../../styles/context';
|
|
7
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
8
|
-
import normalizeHref from '../../../utility/normalize-href';
|
|
5
|
+
import Switch from '../../../forms/components/Switch/index.js';
|
|
6
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
7
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
8
|
+
import normalizeHref from '../../../utility/normalize-href.js';
|
|
9
9
|
import Link from '../../elements/Link';
|
|
10
10
|
import ListItemSecondary from '../ListItemSecondary';
|
|
11
11
|
import ListItemMeta from '../ListItemMeta';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { DataObject } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { DataObject } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface ListItemMetaClassNames {
|
|
4
4
|
root: string;
|
|
5
5
|
row: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { filterNull } from '@sqrzro/utility';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
5
|
-
import isDataTableArray from '../../../utility/is-data-object-array';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
|
+
import isDataTableArray from '../../../utility/is-data-object-array.js';
|
|
6
6
|
import DataTable from '../DataTable';
|
|
7
7
|
function ListItemMeta({ classNameProps, classNames, data, }) {
|
|
8
8
|
const componentClassNames = useClassNames('listItemMeta', { props: classNameProps }, classNames);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
2
|
import type { ListItemClassNames } from '../ListItem';
|
|
3
3
|
import type { ListItemObject } from '../interfaces';
|
|
4
4
|
export type ListItemSecondaryProps<Data, Response> = ClassNameProps<ListItemClassNames> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useClassNames } from '../../../styles/context';
|
|
3
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
4
4
|
import ListItemMeta from '../ListItemMeta';
|
|
5
5
|
function isReactElement(element) {
|
|
6
6
|
return typeof element === 'object' && element !== null && '$$typeof' in element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClassNameProps, HighlightableClassName } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import type { ClassNameProps, HighlightableClassName } from '../../../styles/classnames/interfaces.js';
|
|
2
2
|
export interface PaginationClassNames {
|
|
3
3
|
gap: string;
|
|
4
4
|
item: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import usePagination from '../../../hooks/usePagination';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
5
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
3
|
+
import usePagination from '../../../hooks/usePagination.js';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
6
6
|
import Link from '../../elements/Link';
|
|
7
7
|
import PaginationLink from '../PaginationLink';
|
|
8
8
|
function Pagination({ classNames, classNameProps, gapLabel = '•••', limit, nextLabel, page, previousLabel, total, }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
2
|
import type { PaginationClassNames } from '../Pagination';
|
|
3
3
|
interface PaginationLinkProps extends ClassNameProps<PaginationClassNames> {
|
|
4
4
|
href: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useClassNames } from '../../../styles/context';
|
|
3
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
4
4
|
import Link from '../../elements/Link';
|
|
5
5
|
function PaginationLink({ classNameProps, classNames, href, isCurrent, label, }) {
|
|
6
6
|
const componentClassNames = useClassNames('pagination', { props: classNameProps, states: { isHighlighted: isCurrent } }, classNames);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassNameProps, SelectableClassName } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import { ClassNameProps, SelectableClassName } from '../../../styles/classnames/interfaces.js';
|
|
2
2
|
import type { TableColumnObject, TableItemObject } from '../interfaces';
|
|
3
3
|
export interface TableClassNames {
|
|
4
4
|
root: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import useSelected from '../../../hooks/useSelected';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
5
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
3
|
+
import useSelected from '../../../hooks/useSelected.js';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
6
6
|
import isRightAligned from '../utility/is-right-aligned';
|
|
7
7
|
import TableRow from '../TableRow';
|
|
8
|
-
import Switch from '../../../forms/components/Switch';
|
|
8
|
+
import Switch from '../../../forms/components/Switch/index.js';
|
|
9
9
|
function TableClientComponent({ classNameProps, classNames, columns, data, }) {
|
|
10
10
|
const componentClassNames = useClassNames('table', { props: classNameProps }, classNames);
|
|
11
11
|
const { checkSelected, isAllSelected, onSelect, onSelectAll } = useSelected(data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InputEvent } from '../../../forms/interfaces';
|
|
2
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import type { InputEvent } from '../../../forms/interfaces.js';
|
|
2
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
3
3
|
import type { TableClassNames } from '../TableClientComponent';
|
|
4
4
|
import type { TableColumnObject, TableItemObject } from '../interfaces';
|
|
5
5
|
interface TableRowProps<Columns extends readonly TableColumnObject[], Data, Response> extends ClassNameProps<TableClassNames> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { filterNull } from '@sqrzro/utility';
|
|
4
|
-
import Switch from '../../../forms/components/Switch';
|
|
5
|
-
import { useClassNames } from '../../../styles/context';
|
|
6
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
4
|
+
import Switch from '../../../forms/components/Switch/index.js';
|
|
5
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
6
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
7
7
|
import isRightAligned from '../utility/is-right-aligned';
|
|
8
8
|
import renderCell from '../utility/render-cell';
|
|
9
9
|
import ListItemMenu from '../ListItemMenu';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionObject, DataObject, ReferenceObject, StyleVariant } from '../../utility/interfaces';
|
|
1
|
+
import type { ActionObject, DataObject, ReferenceObject, StyleVariant } from '../../utility/interfaces.js';
|
|
2
2
|
export type CollectionFunctionConfig<Filters = undefined> = {
|
|
3
3
|
params?: Record<string, string> | null;
|
|
4
4
|
page?: number | null;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { formatDate, formatDatetime, formatMoney, formatPoints, formatTime } from '@sqrzro/utility';
|
|
4
4
|
import { usePathname } from 'next/navigation';
|
|
5
|
-
import Link from '
|
|
6
|
-
import Reference from '
|
|
7
|
-
import normalizeHref from '../../../utility/normalize-href';
|
|
5
|
+
import Link from '../../elements/Link/index.js';
|
|
6
|
+
import Reference from '../../elements/Reference/index.js';
|
|
7
|
+
import normalizeHref from '../../../utility/normalize-href.js';
|
|
8
8
|
function renderDefault(value) {
|
|
9
9
|
return value;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps, StylableClassName } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { StyleVariant } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps, StylableClassName } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { StyleVariant } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface BadgeClassNames {
|
|
4
4
|
root: StylableClassName;
|
|
5
5
|
dot: StylableClassName;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useClassNames } from '../../../styles/context';
|
|
4
|
-
import applyVariants from '../../../styles/classnames/utility/apply-variants';
|
|
3
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
4
|
+
import applyVariants from '../../../styles/classnames/utility/apply-variants.js';
|
|
5
5
|
function Badge({ classNameProps, classNames, children, variant }) {
|
|
6
6
|
const componentClassNames = useClassNames('badge', { props: { ...classNameProps, ...applyVariants(variant) } }, classNames);
|
|
7
7
|
return (_jsxs("strong", { className: componentClassNames?.root, children: [_jsx("svg", { "aria-hidden": "true", className: componentClassNames?.dot, viewBox: "0 0 6 6", children: _jsx("circle", { cx: "3", cy: "3", r: "3" }) }), children] }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
2
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
3
3
|
import Link from '../Link';
|
|
4
4
|
function ContentLink({ className, ...props }) {
|
|
5
5
|
return _jsx(Link, { ...props, className: tw('text-link', className) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps, StylableClassName } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { StyleVariant } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps, StylableClassName } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { StyleVariant } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface InfoPanelClassNames {
|
|
4
4
|
content: string;
|
|
5
5
|
icon: StylableClassName;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useClassNames, useIcon } from '../../../styles/context';
|
|
4
|
-
import applyVariants from '../../../styles/classnames/utility/apply-variants';
|
|
3
|
+
import { useClassNames, useIcon } from '../../../styles/context.js';
|
|
4
|
+
import applyVariants from '../../../styles/classnames/utility/apply-variants.js';
|
|
5
5
|
function InfoPanel({ classNameProps, classNames, children, variant, }) {
|
|
6
6
|
const ErrorIcon = useIcon('infoPanel.error');
|
|
7
7
|
const InfoIcon = useIcon('infoPanel.info');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { joinURL } from '@sqrzro/utility';
|
|
4
4
|
import NextLink from 'next/link';
|
|
5
|
-
import { useClassNames } from '../../../styles/context';
|
|
6
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
5
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
6
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
7
7
|
function normalizeHref(href) {
|
|
8
8
|
if (href.startsWith('#')) {
|
|
9
9
|
return href;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { ActionObject } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { ActionObject } from '../../../utility/interfaces.js';
|
|
3
3
|
import { PopoverProps } from '../../utility/Popover';
|
|
4
4
|
export interface MenuClassNames {
|
|
5
5
|
root: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { filterNull } from '@sqrzro/utility';
|
|
4
|
-
import Button from '
|
|
5
|
-
import usePopover from '../../../hooks/usePopover';
|
|
6
|
-
import { useClassNames } from '../../../styles/context';
|
|
7
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
4
|
+
import Button from '../../buttons/Button/index.js';
|
|
5
|
+
import usePopover from '../../../hooks/usePopover.js';
|
|
6
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
7
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
8
8
|
import Action from '../../utility/Action';
|
|
9
9
|
import Popover from '../../utility/Popover';
|
|
10
10
|
import MenuItem from '../MenuItem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
2
|
import type { ActionComponentProps } from '../../utility/Action';
|
|
3
3
|
import type { MenuClassNames } from '../Menu';
|
|
4
4
|
interface MenuItemProps<Data, Response> extends ClassNameProps<MenuClassNames>, ActionComponentProps<Data, Response> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useClassNames } from '../../../styles/context';
|
|
4
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
3
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
4
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
5
5
|
import Link from '../Link';
|
|
6
6
|
function MenuItem({ children, classNameProps, classNames, href, isDisabled, isDownload, isLoading, isNewWindow, onClick, }) {
|
|
7
7
|
const componentClassNames = useClassNames('menu', { props: classNameProps }, classNames);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NavigationObject } from '../../../navigation/interfaces';
|
|
2
|
-
import type { NextPageProps } from '../../../utility/interfaces';
|
|
1
|
+
import type { NavigationObject } from '../../../navigation/interfaces.js';
|
|
2
|
+
import type { NextPageProps } from '../../../utility/interfaces.js';
|
|
3
3
|
type Fn = (params?: Promise<Record<string, string>> | null) => Promise<any>;
|
|
4
4
|
type FnReturn<T extends Fn> = T extends (...args: any[]) => Promise<infer R> ? R : never;
|
|
5
5
|
interface PageTemplateProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { ReferenceObject } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { ReferenceObject } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface ReferenceClassNames {
|
|
4
4
|
root: string;
|
|
5
5
|
reference: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { joinURL } from '@sqrzro/utility';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
5
|
import Link from '../Link';
|
|
6
6
|
function Reference({ classNameProps, classNames, id, name, path, reference, }) {
|
|
7
7
|
const componentClassNames = useClassNames('reference', { props: classNameProps }, classNames);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DataObject } from '../../../utility/interfaces';
|
|
2
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
1
|
+
import type { DataObject } from '../../../utility/interfaces.js';
|
|
2
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
3
3
|
export interface SummaryClassNames {
|
|
4
4
|
root: string;
|
|
5
5
|
item: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { filterNull } from '@sqrzro/utility';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
5
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
6
6
|
const colMap = {
|
|
7
7
|
1: 'grid-cols-1',
|
|
8
8
|
2: 'grid-cols-2',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import type { SimpleActionObject } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import type { SimpleActionObject } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface AppErrorClassNames {
|
|
4
4
|
root: string;
|
|
5
5
|
panel: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import ActionButton from '
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
3
|
+
import ActionButton from '../../buttons/ActionButton/index.js';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
5
|
function AppError({ action, classNameProps, classNames, description, error, title, }) {
|
|
6
6
|
const componentClassNames = useClassNames('appError', { props: classNameProps }, classNames);
|
|
7
7
|
return (_jsx("div", { className: componentClassNames?.root, children: _jsxs("section", { className: componentClassNames?.panel, children: [_jsx("h2", { className: componentClassNames?.title, children: title }), _jsxs("div", { className: componentClassNames?.description, children: [description, error?.digest ? _jsxs("small", { children: ["Error code: ", error.digest] }) : null] }), action ? (_jsx("footer", { className: componentClassNames?.action, children: _jsx(ActionButton, { ...action }) })) : null] }) }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfirmableObject } from '../../../utility/interfaces';
|
|
1
|
+
import { ConfirmableObject } from '../../../utility/interfaces.js';
|
|
2
2
|
import type { ModalProps } from '../Modal';
|
|
3
3
|
export type ConfirmModalProps<Data, Response> = Omit<ModalProps, 'children' | 'icon' | 'title'> & {
|
|
4
4
|
confirmable: ConfirmableObject<Data, Response>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment, useState } from 'react';
|
|
4
|
-
import TextInput from '../../../forms/components/TextInput';
|
|
4
|
+
import TextInput from '../../../forms/components/TextInput/index.js';
|
|
5
5
|
import Modal from '../Modal';
|
|
6
6
|
function ConfirmModal({ confirmable, onCancel, onConfirm, ...modalProps }) {
|
|
7
7
|
const [confirmText, setConfirmText] = useState('');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClassNameProps } from '../../../styles/classnames/interfaces';
|
|
2
|
-
import { SimpleActionObject } from '../../../utility/interfaces';
|
|
1
|
+
import type { ClassNameProps } from '../../../styles/classnames/interfaces.js';
|
|
2
|
+
import { SimpleActionObject } from '../../../utility/interfaces.js';
|
|
3
3
|
export interface ModalClassNames {
|
|
4
4
|
actions: string;
|
|
5
5
|
content: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef } from 'react';
|
|
4
|
-
import { useClassNames } from '../../../styles/context';
|
|
5
|
-
import tw from '../../../styles/classnames/utility/tw';
|
|
4
|
+
import { useClassNames } from '../../../styles/context.js';
|
|
5
|
+
import tw from '../../../styles/classnames/utility/tw.js';
|
|
6
6
|
import ModalActions from '../ModalActions';
|
|
7
7
|
function Modal({ actions, children, classNames, classNameProps, icon, isLoading, title, }) {
|
|
8
8
|
const componentClassNames = useClassNames('modal', { props: classNameProps }, classNames);
|