colibri-ui 0.8.92 → 0.8.94

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.
Files changed (65) hide show
  1. package/Datepicker/components/DatePicker/index.js +18 -8
  2. package/Datepicker/components/DatePicker/index.props.d.ts +1 -0
  3. package/Datepicker/index.d.ts +1 -1
  4. package/Datepicker/index.js +3 -1
  5. package/Datepicker/index.props.d.ts +1 -0
  6. package/MultiSelect/index.js +14 -2
  7. package/MultiSelect/index.props.d.ts +3 -1
  8. package/Pagination/Pagination.d.ts +3 -0
  9. package/Pagination/Pagination.js +162 -0
  10. package/Pagination/Pagination.module.css +118 -0
  11. package/Pagination/helpers.d.ts +5 -0
  12. package/Pagination/helpers.js +36 -0
  13. package/Pagination/index.d.ts +3 -0
  14. package/Pagination/index.js +9 -0
  15. package/Pagination/index.props.d.ts +31 -0
  16. package/Pagination/package.json +9 -0
  17. package/README.md +51 -0
  18. package/Select/index.d.ts +1 -1
  19. package/Select/index.js +14 -2
  20. package/Select/index.props.d.ts +3 -1
  21. package/Theme/index.d.ts +10 -0
  22. package/Theme/themes/buenos_aires.d.ts +5 -0
  23. package/Theme/themes/buenos_aires.js +5 -0
  24. package/Theme/themes/jaipur.d.ts +5 -0
  25. package/Theme/themes/jaipur.js +5 -0
  26. package/TimeSelect/index.js +3 -1
  27. package/base/FormField/index.d.ts +1 -1
  28. package/base/FormField/index.js +3 -1
  29. package/base/FormField/index.props.d.ts +2 -0
  30. package/esm/Datepicker/components/DatePicker/index.js +18 -8
  31. package/esm/Datepicker/components/DatePicker/index.props.d.ts +1 -0
  32. package/esm/Datepicker/index.d.ts +1 -1
  33. package/esm/Datepicker/index.js +3 -1
  34. package/esm/Datepicker/index.props.d.ts +1 -0
  35. package/esm/MultiSelect/index.js +15 -3
  36. package/esm/MultiSelect/index.props.d.ts +3 -1
  37. package/esm/Pagination/Pagination.d.ts +3 -0
  38. package/esm/Pagination/Pagination.js +154 -0
  39. package/esm/Pagination/Pagination.module.css +118 -0
  40. package/esm/Pagination/helpers.d.ts +5 -0
  41. package/esm/Pagination/helpers.js +31 -0
  42. package/esm/Pagination/index.d.ts +3 -0
  43. package/esm/Pagination/index.js +2 -0
  44. package/esm/Pagination/index.props.d.ts +31 -0
  45. package/esm/Select/index.d.ts +1 -1
  46. package/esm/Select/index.js +15 -3
  47. package/esm/Select/index.props.d.ts +3 -1
  48. package/esm/Theme/index.d.ts +10 -0
  49. package/esm/Theme/themes/buenos_aires.d.ts +5 -0
  50. package/esm/Theme/themes/buenos_aires.js +5 -0
  51. package/esm/Theme/themes/jaipur.d.ts +5 -0
  52. package/esm/Theme/themes/jaipur.js +5 -0
  53. package/esm/TimeSelect/index.js +3 -1
  54. package/esm/base/FormField/index.d.ts +1 -1
  55. package/esm/base/FormField/index.js +3 -1
  56. package/esm/base/FormField/index.props.d.ts +2 -0
  57. package/esm/index.d.ts +2 -0
  58. package/esm/index.js +2 -0
  59. package/esm/theme_ba_variables.css +5 -0
  60. package/esm/theme_jaipur_variables.css +5 -0
  61. package/index.d.ts +2 -0
  62. package/index.js +5 -0
  63. package/package.json +1 -1
  64. package/theme_ba_variables.css +5 -0
  65. package/theme_jaipur_variables.css +5 -0
@@ -0,0 +1,118 @@
1
+ .root {
2
+ --pagination-item-size: var(--component-input-height-m);
3
+ --pagination-font-size: var(--font-size-text-md);
4
+ color: var(--component-pagination-text);
5
+ display: inline-flex;
6
+ flex-direction: column;
7
+ font-family: var(--font-family-ui);
8
+ gap: var(--space-3);
9
+ max-inline-size: 100%;
10
+ }
11
+ .root_disabled {
12
+ opacity: 0.55;
13
+ }
14
+
15
+ .size_s {
16
+ --pagination-item-size: var(--component-input-height-s);
17
+ --pagination-font-size: var(--font-size-text-sm);
18
+ }
19
+ .size_l {
20
+ --pagination-item-size: var(--component-input-height-l);
21
+ }
22
+
23
+ .main,
24
+ .pages {
25
+ align-items: center;
26
+ display: flex;
27
+ gap: var(--space-1);
28
+ }
29
+
30
+ .page,
31
+ .arrow {
32
+ align-items: center;
33
+ background: transparent;
34
+ block-size: var(--pagination-item-size);
35
+ border: none;
36
+ border-radius: var(--radius-sm);
37
+ box-sizing: border-box;
38
+ color: inherit;
39
+ cursor: pointer;
40
+ display: inline-flex;
41
+ font: inherit;
42
+ font-size: var(--pagination-font-size);
43
+ justify-content: center;
44
+ min-inline-size: var(--pagination-item-size);
45
+ padding: 0 var(--space-2);
46
+ }
47
+ .page:disabled,
48
+ .arrow:disabled {
49
+ color: var(--color-text-disabled);
50
+ cursor: not-allowed;
51
+ }
52
+ .page:focus-visible,
53
+ .arrow:focus-visible {
54
+ outline: var(--focus-ring-width) solid var(--component-pagination-focus-ring);
55
+ outline-offset: var(--focus-ring-width);
56
+ }
57
+ .page:hover:not(:disabled),
58
+ .arrow:hover:not(:disabled) {
59
+ background: var(--component-pagination-bg-hover);
60
+ }
61
+
62
+ .page_current,
63
+ .page_current:hover:not(:disabled) {
64
+ background: var(--component-pagination-bg-current);
65
+ color: var(--component-pagination-text-current);
66
+ cursor: default;
67
+ }
68
+
69
+ .arrow_previous {
70
+ transform: rotate(90deg);
71
+ }
72
+
73
+ .arrow_next {
74
+ transform: rotate(-90deg);
75
+ }
76
+
77
+ .ellipsis {
78
+ align-items: center;
79
+ block-size: var(--pagination-item-size);
80
+ color: var(--color-text-secondary);
81
+ display: inline-flex;
82
+ font-size: var(--pagination-font-size);
83
+ justify-content: center;
84
+ min-inline-size: var(--space-6);
85
+ -webkit-user-select: none;
86
+ user-select: none;
87
+ }
88
+
89
+ .counter {
90
+ align-items: center;
91
+ display: flex;
92
+ font-size: var(--pagination-font-size);
93
+ gap: var(--space-1);
94
+ justify-content: center;
95
+ min-inline-size: var(--space-20);
96
+ }
97
+
98
+ .actions {
99
+ align-items: flex-end;
100
+ display: flex;
101
+ flex-wrap: wrap;
102
+ gap: var(--space-4);
103
+ min-inline-size: 0;
104
+ }
105
+
106
+ .jump {
107
+ inline-size: var(--space-20);
108
+ }
109
+
110
+ .helper {
111
+ color: var(--color-text-secondary);
112
+ font-size: var(--font-size-text-sm);
113
+ line-height: var(--pagination-item-size);
114
+ min-inline-size: 0;
115
+ overflow: hidden;
116
+ text-overflow: ellipsis;
117
+ white-space: nowrap;
118
+ }
@@ -0,0 +1,5 @@
1
+ import type { PaginationItem } from "./index.props";
2
+ export declare const clamp: (value: number, min: number, max: number) => number;
3
+ export declare const toTotalPages: (totalPages: number) => number;
4
+ export declare const getPaginationItems: (totalPages: number, page: number, siblingCount?: number, boundaryCount?: number) => PaginationItem[];
5
+ export declare const findEnabledPage: (from: number, direction: -1 | 1, total: number, disabledPages: ReadonlySet<number>) => number | undefined;
@@ -0,0 +1,31 @@
1
+ const range = (start, end) => Array.from({
2
+ length: Math.max(0, end - start + 1)
3
+ }, (_, index) => start + index);
4
+ const clamp = (value, min, max) => Math.min(max, Math.max(min, value));
5
+ const toTotalPages = totalPages => Math.max(1, Math.floor(totalPages) || 1);
6
+ const getPaginationItems = (totalPages, page, siblingCount = 1, boundaryCount = 1) => {
7
+ const total = toTotalPages(totalPages);
8
+ const current = clamp(Math.floor(page) || 1, 1, total);
9
+ const siblings = Math.max(0, Math.floor(siblingCount));
10
+ const boundaries = Math.max(0, Math.floor(boundaryCount));
11
+ const pages = [...new Set([...range(1, Math.min(boundaries, total)), ...range(Math.max(1, current - siblings), Math.min(total, current + siblings)), ...range(Math.max(1, total - boundaries + 1), total)])].sort((left, right) => left - right);
12
+ return pages.flatMap((visiblePage, index) => {
13
+ const previous = pages[index - 1];
14
+ if (previous === undefined) return [visiblePage];
15
+ if (visiblePage - previous === 2) return [previous + 1, visiblePage];
16
+ if (visiblePage - previous > 2) {
17
+ const ellipsis = visiblePage > current ? "end-ellipsis" : "start-ellipsis";
18
+ return [ellipsis, visiblePage];
19
+ }
20
+ return [visiblePage];
21
+ });
22
+ };
23
+ const findEnabledPage = (from, direction, total, disabledPages) => {
24
+ let candidate = from + direction;
25
+ while (candidate >= 1 && candidate <= total && disabledPages.has(candidate)) {
26
+ candidate += direction;
27
+ }
28
+ return candidate >= 1 && candidate <= total ? candidate : undefined;
29
+ };
30
+
31
+ export { clamp, findEnabledPage, getPaginationItems, toTotalPages };
@@ -0,0 +1,3 @@
1
+ export { Pagination } from "./Pagination";
2
+ export { getPaginationItems } from "./helpers";
3
+ export type { PaginationItem, PaginationMode, PaginationProps, PaginationSize, } from "./index.props";
@@ -0,0 +1,2 @@
1
+ export { Pagination } from './Pagination.js';
2
+ export { getPaginationItems } from './helpers.js';
@@ -0,0 +1,31 @@
1
+ import type { HTMLAttributes, ReactNode, Ref } from "react";
2
+ export type PaginationSize = "s" | "m" | "l";
3
+ export type PaginationMode = "default" | "compact";
4
+ export type PaginationItem = number | "start-ellipsis" | "end-ellipsis";
5
+ export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange" | "defaultValue"> {
6
+ totalPages: number;
7
+ page?: number;
8
+ defaultPage?: number;
9
+ onPageChange?: (page: number) => void;
10
+ /** Pages shown on each side of the current page. */
11
+ siblingCount?: number;
12
+ /** Pages always shown at the start and at the end. */
13
+ boundaryCount?: number;
14
+ disabledPages?: readonly number[];
15
+ disabled?: boolean;
16
+ mode?: PaginationMode;
17
+ size?: PaginationSize;
18
+ pageSize?: number;
19
+ defaultPageSize?: number;
20
+ pageSizeOptions?: readonly number[];
21
+ onPageSizeChange?: (pageSize: number) => void;
22
+ showPageSize?: boolean;
23
+ showQuickJump?: boolean;
24
+ helperText?: ReactNode;
25
+ previousLabel?: string;
26
+ nextLabel?: string;
27
+ pageLabel?: (page: number) => string;
28
+ quickJumpLabel?: ReactNode;
29
+ pageSizeLabel?: ReactNode;
30
+ ref?: Ref<HTMLElement>;
31
+ }
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from "react";
2
2
  import type { SelectProps } from "./index.props";
3
- export declare const Select: <T extends string>({ options, value, name, zIndex, fontSize, label, hint, hasError, required, placeholder, disabled, size, fullWidth, customInputRoot, className, onChange, }: SelectProps<T>) => JSX.Element;
3
+ export declare const Select: <T extends string>({ options, value, name, zIndex, fontSize, label, hint, hasError, required, placeholder, disabled, size, fullWidth, customInputRoot, className, onChange, "aria-label": ariaLabel, }: SelectProps<T>) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { useState, useMemo } from 'react';
1
+ import React, { useState, useId, useMemo } from 'react';
2
2
  import clsx from 'clsx';
3
3
  import { Chevron } from '../Icons/Chevron.js';
4
4
  import { InputRoot } from '../base/InputRoot/index.js';
@@ -23,9 +23,14 @@ const Select = ({
23
23
  fullWidth = false,
24
24
  customInputRoot,
25
25
  className,
26
- onChange
26
+ onChange,
27
+ "aria-label": ariaLabel
27
28
  }) => {
28
29
  const [isOpen, setIsOpen] = useState(false);
30
+ const id = useId();
31
+ const labelId = label ? `${id}-label` : undefined;
32
+ const valueId = `${id}-value`;
33
+ const hintId = hint ? `${id}-hint` : undefined;
29
34
  const preparedOptions = useMemo(() => options.map(({
30
35
  value: lvalue,
31
36
  label: llabel,
@@ -48,7 +53,9 @@ const Select = ({
48
53
  }, className),
49
54
  required: required,
50
55
  label: label,
56
+ labelId: labelId,
51
57
  hint: hint,
58
+ hintId: hintId,
52
59
  hasError: hasError
53
60
  }, /*#__PURE__*/React.createElement(Dropdown, {
54
61
  placement: "bottom-start",
@@ -64,7 +71,11 @@ const Select = ({
64
71
  }),
65
72
  samewidth: true
66
73
  }, customInputRoot ? customInputRoot : (/*#__PURE__*/React.createElement("div", {
67
- tabIndex: 0,
74
+ "aria-describedby": hintId,
75
+ "aria-disabled": disabled || undefined,
76
+ "aria-label": labelId ? undefined : ariaLabel,
77
+ "aria-labelledby": labelId ? `${labelId} ${valueId}` : undefined,
78
+ tabIndex: disabled ? -1 : 0,
68
79
  role: "button",
69
80
  style: {
70
81
  width: fullWidth ? "100%" : "fit-content"
@@ -84,6 +95,7 @@ const Select = ({
84
95
  }),
85
96
  disabled: Boolean(disabled)
86
97
  }, /*#__PURE__*/React.createElement("div", {
98
+ id: valueId,
87
99
  className: styles["base-input"],
88
100
  "data-testid": "base-input"
89
101
  }, preparedLabel !== null && preparedLabel !== void 0 ? preparedLabel : (/*#__PURE__*/React.createElement("span", {
@@ -10,7 +10,9 @@ export interface IOption<T extends string> {
10
10
  label: ReactNode;
11
11
  value: T;
12
12
  }
13
- export interface SelectProps<T extends string> extends Omit<FormFieldProps, "children"> {
13
+ export interface SelectProps<T extends string> extends Omit<FormFieldProps, "children" | "labelId"> {
14
+ /** Accessible name of the trigger when no visible `label` is passed. */
15
+ "aria-label"?: string;
14
16
  className?: string;
15
17
  customInputRoot?: ReactNode;
16
18
  disabled?: boolean;
@@ -687,6 +687,11 @@ export declare const THEMES: {
687
687
  "component-calendar-fade-inline-size": string;
688
688
  "component-calendar-day-size": string;
689
689
  "component-calendar-day-radius": string;
690
+ "component-pagination-text": string;
691
+ "component-pagination-text-current": string;
692
+ "component-pagination-bg-current": string;
693
+ "component-pagination-bg-hover": string;
694
+ "component-pagination-focus-ring": string;
690
695
  "component-navigation-item-bg-selected": string;
691
696
  "component-chip-bg-selected": string;
692
697
  "component-chip-bg-selected-strong": string;
@@ -1526,6 +1531,11 @@ export declare const THEMES: {
1526
1531
  "component-calendar-fade-inline-size": string;
1527
1532
  "component-calendar-day-size": string;
1528
1533
  "component-calendar-day-radius": string;
1534
+ "component-pagination-text": string;
1535
+ "component-pagination-text-current": string;
1536
+ "component-pagination-bg-current": string;
1537
+ "component-pagination-bg-hover": string;
1538
+ "component-pagination-focus-ring": string;
1529
1539
  "component-navigation-item-bg-selected": string;
1530
1540
  "component-chip-bg-selected": string;
1531
1541
  "component-chip-bg-selected-strong": string;
@@ -608,6 +608,11 @@ declare const _default: {
608
608
  "component-calendar-fade-inline-size": string;
609
609
  "component-calendar-day-size": string;
610
610
  "component-calendar-day-radius": string;
611
+ "component-pagination-text": string;
612
+ "component-pagination-text-current": string;
613
+ "component-pagination-bg-current": string;
614
+ "component-pagination-bg-hover": string;
615
+ "component-pagination-focus-ring": string;
611
616
  "component-navigation-item-bg-selected": string;
612
617
  "component-chip-bg-selected": string;
613
618
  "component-chip-bg-selected-strong": string;
@@ -610,6 +610,11 @@ var THEME_BA = {
610
610
  "component-calendar-fade-inline-size": "2.5rem",
611
611
  "component-calendar-day-size": "2rem",
612
612
  "component-calendar-day-radius": "0.375rem",
613
+ "component-pagination-text": Color.BRAND_BA_FOREST,
614
+ "component-pagination-text-current": Color.BRAND_BA_LIME,
615
+ "component-pagination-bg-current": Color.BRAND_BA_FOREST,
616
+ "component-pagination-bg-hover": Color.NEUTRAL_BA_100,
617
+ "component-pagination-focus-ring": Color.BRAND_BA_LIME,
613
618
  "component-navigation-item-bg-selected": Color.BRAND_BA_FOREST,
614
619
  "component-chip-bg-selected": Color.BRAND_BA_FOREST,
615
620
  "component-chip-bg-selected-strong": Color.BRAND_BA_LIME,
@@ -608,6 +608,11 @@ declare const _default: {
608
608
  "component-calendar-fade-inline-size": string;
609
609
  "component-calendar-day-size": string;
610
610
  "component-calendar-day-radius": string;
611
+ "component-pagination-text": string;
612
+ "component-pagination-text-current": string;
613
+ "component-pagination-bg-current": string;
614
+ "component-pagination-bg-hover": string;
615
+ "component-pagination-focus-ring": string;
611
616
  "component-navigation-item-bg-selected": string;
612
617
  "component-chip-bg-selected": string;
613
618
  "component-chip-bg-selected-strong": string;
@@ -610,6 +610,11 @@ var theme_jaipur = {
610
610
  "component-calendar-fade-inline-size": "2.5rem",
611
611
  "component-calendar-day-size": "2rem",
612
612
  "component-calendar-day-radius": "0.375rem",
613
+ "component-pagination-text": Color.BRAND_JP_EGGPLANT,
614
+ "component-pagination-text-current": Color.BRAND_JP_PINK,
615
+ "component-pagination-bg-current": Color.BRAND_JP_EGGPLANT,
616
+ "component-pagination-bg-hover": Color.NEUTRAL_JP_100,
617
+ "component-pagination-focus-ring": Color.BRAND_JP_PINK,
613
618
  "component-navigation-item-bg-selected": Color.BRAND_JP_EGGPLANT,
614
619
  "component-chip-bg-selected": Color.BRAND_JP_EGGPLANT,
615
620
  "component-chip-bg-selected-strong": Color.BRAND_JP_PINK,
@@ -22,7 +22,8 @@ const TimeSelect = ({
22
22
  size,
23
23
  zIndex,
24
24
  hasError,
25
- hint
25
+ hint,
26
+ "aria-label": ariaLabel
26
27
  }) => {
27
28
  const baseOptions = useMemo(() => generateSuggest(interval).map(item => ({
28
29
  value: item.time,
@@ -37,6 +38,7 @@ const TimeSelect = ({
37
38
  });
38
39
  }), [baseOptions, currentDate, selectedDate, allowedTimeRange, interval]);
39
40
  return /*#__PURE__*/React.createElement(Select, {
41
+ "aria-label": ariaLabel,
40
42
  className: className,
41
43
  customInputRoot: customInputRoot,
42
44
  fontSize: fontSize,
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import type { FormFieldProps } from "./index.props";
3
- export declare const FormField: ({ label, hint, children, hasError, hintId, htmlFor, required, className, ref, }: FormFieldProps) => React.JSX.Element;
3
+ export declare const FormField: ({ label, hint, children, hasError, hintId, htmlFor, labelId, required, className, ref, }: FormFieldProps) => React.JSX.Element;
@@ -10,6 +10,7 @@ const FormField = ({
10
10
  hasError,
11
11
  hintId,
12
12
  htmlFor,
13
+ labelId,
13
14
  required,
14
15
  className,
15
16
  ref
@@ -21,7 +22,8 @@ const FormField = ({
21
22
  [styles.label_required]: Boolean(required)
22
23
  }),
23
24
  tag: "label",
24
- htmlFor: htmlFor
25
+ htmlFor: htmlFor,
26
+ id: labelId
25
27
  }, label)), children, hint && (/*#__PURE__*/React.createElement(Typography, {
26
28
  id: hintId,
27
29
  className: clsx({
@@ -9,6 +9,8 @@ export type FormFieldProps = PropsWithChildren<{
9
9
  /** Id of the control the label belongs to. */
10
10
  htmlFor?: string;
11
11
  label?: ReactNode;
12
+ /** Id of the label, referenced by the control's `aria-labelledby`. */
13
+ labelId?: string;
12
14
  ref?: React.Ref<HTMLDivElement>;
13
15
  required?: boolean;
14
16
  }>;
package/esm/index.d.ts CHANGED
@@ -52,6 +52,8 @@ export { MultiSelect } from "./MultiSelect";
52
52
  export type { MultiSelectProps } from "./MultiSelect/index.props";
53
53
  export { NumberInput } from "./NumberInput";
54
54
  export type { NumberInputGroupStyle, NumberInputProps, NumberInputSize, NumberInputValues, } from "./NumberInput";
55
+ export { Pagination, getPaginationItems } from "./Pagination";
56
+ export type { PaginationItem, PaginationMode, PaginationProps, PaginationSize, } from "./Pagination";
55
57
  export { Portal } from "./Portal";
56
58
  export type { PortalProps } from "./Portal/index.props";
57
59
  export { Progress } from "./Progress";
package/esm/index.js CHANGED
@@ -25,6 +25,8 @@ export { MenuItem } from './Menu/components/MenuItem/index.js';
25
25
  export { Modal } from './Modal/index.js';
26
26
  export { MultiSelect } from './MultiSelect/index.js';
27
27
  export { NumberInput } from './NumberInput/NumberInput.js';
28
+ export { Pagination } from './Pagination/Pagination.js';
29
+ export { getPaginationItems } from './Pagination/helpers.js';
28
30
  export { Portal } from './Portal/index.js';
29
31
  export { Progress } from './Progress/Progress.js';
30
32
  export { RadioGroup } from './RadioGroup/index.js';
@@ -608,6 +608,11 @@
608
608
  --component-calendar-fade-inline-size: 2.5rem;
609
609
  --component-calendar-day-size: 2rem;
610
610
  --component-calendar-day-radius: 0.375rem;
611
+ --component-pagination-text: #163300;
612
+ --component-pagination-text-current: #9FE870;
613
+ --component-pagination-bg-current: #163300;
614
+ --component-pagination-bg-hover: #EDF0EA;
615
+ --component-pagination-focus-ring: #9FE870;
611
616
  --component-navigation-item-bg-selected: #163300;
612
617
  --component-chip-bg-selected: #163300;
613
618
  --component-chip-bg-selected-strong: #9FE870;
@@ -608,6 +608,11 @@
608
608
  --component-calendar-fade-inline-size: 2.5rem;
609
609
  --component-calendar-day-size: 2rem;
610
610
  --component-calendar-day-radius: 0.375rem;
611
+ --component-pagination-text: #2C2242;
612
+ --component-pagination-text-current: #FFA8CD;
613
+ --component-pagination-bg-current: #2C2242;
614
+ --component-pagination-bg-hover: #F2F1EE;
615
+ --component-pagination-focus-ring: #FFA8CD;
611
616
  --component-navigation-item-bg-selected: #2C2242;
612
617
  --component-chip-bg-selected: #2C2242;
613
618
  --component-chip-bg-selected-strong: #FFA8CD;
package/index.d.ts CHANGED
@@ -52,6 +52,8 @@ export { MultiSelect } from "./MultiSelect";
52
52
  export type { MultiSelectProps } from "./MultiSelect/index.props";
53
53
  export { NumberInput } from "./NumberInput";
54
54
  export type { NumberInputGroupStyle, NumberInputProps, NumberInputSize, NumberInputValues, } from "./NumberInput";
55
+ export { Pagination, getPaginationItems } from "./Pagination";
56
+ export type { PaginationItem, PaginationMode, PaginationProps, PaginationSize, } from "./Pagination";
55
57
  export { Portal } from "./Portal";
56
58
  export type { PortalProps } from "./Portal/index.props";
57
59
  export { Progress } from "./Progress";
package/index.js CHANGED
@@ -27,6 +27,7 @@ var index$f = require('./Menu/components/MenuItem/index.js');
27
27
  var index$g = require('./Modal/index.js');
28
28
  var index$l = require('./MultiSelect/index.js');
29
29
  require('./NumberInput/index.js');
30
+ require('./Pagination/index.js');
30
31
  var index$m = require('./Portal/index.js');
31
32
  require('./Progress/index.js');
32
33
  var index$n = require('./RadioGroup/index.js');
@@ -78,6 +79,7 @@ var index$j = require('./Modal/components/Header/index.js');
78
79
  var index$k = require('./Modal/components/Title/index.js');
79
80
  var More = require('./Icons/More.js');
80
81
  var NumberInput = require('./NumberInput/NumberInput.js');
82
+ var Pagination = require('./Pagination/Pagination.js');
81
83
  var Plus = require('./Icons/Plus.js');
82
84
  var Progress = require('./Progress/Progress.js');
83
85
  var Rating = require('./Rating/Rating.js');
@@ -87,6 +89,7 @@ var Shield = require('./Icons/Shield.js');
87
89
  var Slider = require('./Slider/Slider.js');
88
90
  var Trash = require('./Icons/Trash.js');
89
91
  var User = require('./Icons/User.js');
92
+ var helpers = require('./Pagination/helpers.js');
90
93
 
91
94
 
92
95
 
@@ -166,6 +169,7 @@ exports.ModalHeader = index$j.Header;
166
169
  exports.ModalTitle = index$k.Title;
167
170
  exports.More = More.More;
168
171
  exports.NumberInput = NumberInput.NumberInput;
172
+ exports.Pagination = Pagination.Pagination;
169
173
  exports.Plus = Plus.Plus;
170
174
  exports.Progress = Progress.Progress;
171
175
  exports.Rating = Rating.Rating;
@@ -175,3 +179,4 @@ exports.Shield = Shield.Shield;
175
179
  exports.Slider = Slider.Slider;
176
180
  exports.Trash = Trash.Trash;
177
181
  exports.User = User.User;
182
+ exports.getPaginationItems = helpers.getPaginationItems;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibri-ui",
3
- "version": "0.8.92",
3
+ "version": "0.8.94",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -608,6 +608,11 @@
608
608
  --component-calendar-fade-inline-size: 2.5rem;
609
609
  --component-calendar-day-size: 2rem;
610
610
  --component-calendar-day-radius: 0.375rem;
611
+ --component-pagination-text: #163300;
612
+ --component-pagination-text-current: #9FE870;
613
+ --component-pagination-bg-current: #163300;
614
+ --component-pagination-bg-hover: #EDF0EA;
615
+ --component-pagination-focus-ring: #9FE870;
611
616
  --component-navigation-item-bg-selected: #163300;
612
617
  --component-chip-bg-selected: #163300;
613
618
  --component-chip-bg-selected-strong: #9FE870;
@@ -608,6 +608,11 @@
608
608
  --component-calendar-fade-inline-size: 2.5rem;
609
609
  --component-calendar-day-size: 2rem;
610
610
  --component-calendar-day-radius: 0.375rem;
611
+ --component-pagination-text: #2C2242;
612
+ --component-pagination-text-current: #FFA8CD;
613
+ --component-pagination-bg-current: #2C2242;
614
+ --component-pagination-bg-hover: #F2F1EE;
615
+ --component-pagination-focus-ring: #FFA8CD;
611
616
  --component-navigation-item-bg-selected: #2C2242;
612
617
  --component-chip-bg-selected: #2C2242;
613
618
  --component-chip-bg-selected-strong: #FFA8CD;