@konstructio/ui 0.1.3 → 0.1.4

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 (95) hide show
  1. package/dist/{Breadcrumb-DzavonoC.js → Breadcrumb-BiiOnn0p.js} +1 -1
  2. package/dist/{CollapsedSteps-CkMuzOHx.js → CollapsedSteps-Dy2I7XDd.js} +35 -35
  3. package/dist/{Input-C1Js3pbF.js → Input-CE6J6HIW.js} +6 -6
  4. package/dist/components/Alert/Alert.js +19 -18
  5. package/dist/components/Alert/Alert.variants.js +11 -4
  6. package/dist/components/Autocomplete/Autocomplete.variants.js +6 -5
  7. package/dist/components/Badge/Badge.js +20 -20
  8. package/dist/components/Badge/Badge.variants.js +5 -0
  9. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  10. package/dist/components/Breadcrumb/components/BackButton/BackButton.variants.js +1 -1
  11. package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
  12. package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -2
  13. package/dist/components/Breadcrumb/components/index.js +1 -1
  14. package/dist/components/Button/Button.variants.js +2 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.js +67 -63
  16. package/dist/components/ButtonGroup/ButtonGroup.variants.js +18 -5
  17. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +51 -32
  18. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +56 -8
  19. package/dist/components/Checkbox/Checkbox.variants.js +8 -4
  20. package/dist/components/Command/components/DialogContent.js +5 -5
  21. package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
  22. package/dist/components/CopyButton/CopyButton.variants.js +4 -3
  23. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
  24. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
  25. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +1 -1
  26. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  27. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
  28. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
  29. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
  30. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
  31. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
  32. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
  33. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
  34. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
  35. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +15 -14
  36. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +22 -22
  37. package/dist/components/Input/Input.js +1 -1
  38. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +6 -2
  39. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +5 -5
  40. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
  41. package/dist/components/Range/Range.variants.js +9 -4
  42. package/dist/components/Select/Select.js +21 -20
  43. package/dist/components/Select/components/ListItem/ListItem.js +47 -37
  44. package/dist/components/Select/contexts/select.context.js +1 -0
  45. package/dist/components/Select/contexts/select.provider.js +28 -27
  46. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +3 -1
  47. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +6 -3
  48. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -0
  49. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +4 -2
  50. package/dist/components/Slider/Slider.variants.js +9 -4
  51. package/dist/components/Switch/Switch.variants.js +8 -4
  52. package/dist/components/Table/components/Filter.js +1 -1
  53. package/dist/components/Toast/Toast.variants.js +7 -3
  54. package/dist/components/VirtualizedTable/assets/chevron-down.js +6 -6
  55. package/dist/components/VirtualizedTable/assets/chevron-up.js +4 -4
  56. package/dist/components/VirtualizedTable/components/Body/Body.js +59 -56
  57. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +42 -40
  58. package/dist/components/VirtualizedTable/components/Filter/Filter.js +85 -68
  59. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
  60. package/dist/components/VirtualizedTable/components/Header/Header.js +51 -49
  61. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +34 -33
  62. package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +11 -11
  63. package/dist/components/VirtualizedTable/constants/index.js +10 -5
  64. package/dist/components/VirtualizedTable/constants/responsive.js +70 -1
  65. package/dist/components/VirtualizedTable/hooks/index.js +6 -2
  66. package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.js +4 -0
  67. package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.js +20 -0
  68. package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/index.js +4 -0
  69. package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.js +18 -0
  70. package/dist/components/VirtualizedTable/utils/index.js +10 -8
  71. package/dist/components/VirtualizedTable/utils/responsive-edges/responsive-edges.js +8 -0
  72. package/dist/components/index.js +77 -73
  73. package/dist/{constants-q2QnJrOb.js → constants-YCGllWdf.js} +1 -1
  74. package/dist/index.js +77 -73
  75. package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +2 -0
  76. package/dist/lib/components/ButtonGroup/ButtonGroup.variants.d.ts +1 -0
  77. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +2 -1
  78. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +9 -0
  79. package/dist/lib/components/Select/Select.types.d.ts +2 -0
  80. package/dist/lib/components/Select/contexts/select.context.d.ts +1 -0
  81. package/dist/lib/components/Select/contexts/select.provider.d.ts +1 -0
  82. package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
  83. package/dist/lib/components/VirtualizedTable/assets/chevron-down.d.ts +1 -2
  84. package/dist/lib/components/VirtualizedTable/assets/chevron-up.d.ts +1 -2
  85. package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +10 -0
  86. package/dist/lib/components/VirtualizedTable/hooks/index.d.ts +2 -0
  87. package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.d.ts +1 -0
  88. package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.d.ts +1 -0
  89. package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/index.d.ts +1 -0
  90. package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.d.ts +2 -0
  91. package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
  92. package/dist/lib/components/VirtualizedTable/utils/responsive-edges/responsive-edges.d.ts +6 -0
  93. package/dist/package.json +8 -8
  94. package/dist/styles.css +1 -1
  95. package/package.json +8 -8
@@ -108,6 +108,11 @@ export type ActionFilterConfig = {
108
108
  leftIcon?: ReactNode;
109
109
  /** Icon rendered after the label */
110
110
  rightIcon?: ReactNode;
111
+ /**
112
+ * Below this Tailwind breakpoint the action renders as an icon-only
113
+ * button as tall as the search input, beside it, labelled by `label`.
114
+ */
115
+ iconOnlyBelow?: HideBelowBreakpoint;
111
116
  } & Omit<ButtonProps, 'children' | 'type'>;
112
117
  /**
113
118
  * Configuration for a time filter with optional presets and a TimePicker.
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  declare const SvgComponent: FC<{
3
- className: string;
4
- onClick: VoidFunction;
3
+ className?: string;
5
4
  }>;
6
5
  export default SvgComponent;
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  declare const SvgComponent: FC<{
3
- className: string;
4
- onClick: VoidFunction;
3
+ className?: string;
5
4
  }>;
6
5
  export default SvgComponent;
@@ -1,2 +1,12 @@
1
1
  export type HideBelowBreakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
2
2
  export declare const HIDE_BELOW_CLASS: Record<HideBelowBreakpoint, string>;
3
+ export declare const SHOW_BELOW_CLASS: Record<HideBelowBreakpoint, string>;
4
+ export type ResponsiveTier = 'base' | HideBelowBreakpoint;
5
+ export declare const RESPONSIVE_TIERS: ResponsiveTier[];
6
+ export type ResponsiveEdgeClasses = {
7
+ left: Record<ResponsiveTier, string>;
8
+ right: Record<ResponsiveTier, string>;
9
+ };
10
+ export declare const BORDER_EDGE_CLASSES: ResponsiveEdgeClasses;
11
+ export declare const ROUNDED_TOP_EDGE_CLASSES: ResponsiveEdgeClasses;
12
+ export declare const ROUNDED_BOTTOM_EDGE_CLASSES: ResponsiveEdgeClasses;
@@ -1 +1,3 @@
1
1
  export * from './useVirtualizedTableReady';
2
+ export * from './useIsFlexWrapped';
3
+ export * from './useDisplayedColumnCount';
@@ -0,0 +1 @@
1
+ export * from './useDisplayedColumnCount';
@@ -0,0 +1 @@
1
+ export declare const useDisplayedColumnCount: () => [(node: HTMLElement | null) => void, number | undefined];
@@ -0,0 +1 @@
1
+ export * from './useIsFlexWrapped';
@@ -0,0 +1,2 @@
1
+ import { RefObject } from 'react';
2
+ export declare const useIsFlexWrapped: (containerRef: RefObject<HTMLElement | null>) => boolean;
@@ -2,3 +2,4 @@ export * from './get-table-id';
2
2
  export * from './load-content';
3
3
  export * from './pagination';
4
4
  export * from './pinned-columns';
5
+ export * from './responsive-edges/responsive-edges';
@@ -0,0 +1,6 @@
1
+ import { HideBelowBreakpoint, ResponsiveEdgeClasses } from '../../constants';
2
+ /**
3
+ * `first:`/`last:` cannot skip cells hidden by `hideBelow`, so the outer
4
+ * edges go on the first and last column visible at each breakpoint instead.
5
+ */
6
+ export declare const getResponsiveEdgeClasses: (hideBelows: (HideBelowBreakpoint | undefined)[], columnIndex: number, edgeClasses: ResponsiveEdgeClasses) => string[];
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.121",
5
+ "version": "0.1.3",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -102,7 +102,7 @@
102
102
  "google-libphonenumber": "^3.2.48",
103
103
  "i18n-iso-countries": "^7.14.0",
104
104
  "js-cookie": "^3.0.8",
105
- "lucide-react": "^1.66.0",
105
+ "lucide-react": "^1.67.0",
106
106
  "react-chartjs-2": "^5.3.1",
107
107
  "react-day-picker": "^10.0.2",
108
108
  "react-feather": "^2.0.10",
@@ -149,8 +149,8 @@
149
149
  "@storybook/addon-docs": "^10.6.5",
150
150
  "@storybook/addon-links": "^10.6.5",
151
151
  "@storybook/react-vite": "^10.6.5",
152
- "@tailwindcss/vite": "^4.3.3",
153
- "@tanstack/react-query": "^5.105.2",
152
+ "@tailwindcss/vite": "^4.3.4",
153
+ "@tanstack/react-query": "^5.105.3",
154
154
  "@testing-library/jest-dom": "^7.0.1",
155
155
  "@testing-library/react": "^16.3.3",
156
156
  "@testing-library/user-event": "^14.6.8",
@@ -163,7 +163,7 @@
163
163
  "@typescript-eslint/eslint-plugin": "^8.72.1",
164
164
  "@typescript-eslint/parser": "^8.72.1",
165
165
  "@vitejs/plugin-react": "^6.2.1",
166
- "@vitest/coverage-v8": "^5.0.5",
166
+ "@vitest/coverage-v8": "^5.1.0",
167
167
  "autoprefixer": "^10.6.2",
168
168
  "eslint": "^9.39.5",
169
169
  "eslint-plugin-react": "^7.37.5",
@@ -179,16 +179,16 @@
179
179
  "motion": "^14.9.0",
180
180
  "postcss": "^8.5.32",
181
181
  "prettier": "^3.9.10",
182
- "rimraf": "^6.1.3",
182
+ "rimraf": "^6.1.4",
183
183
  "storybook": "^10.6.5",
184
- "tailwindcss": "^4.3.3",
184
+ "tailwindcss": "^4.3.4",
185
185
  "ts-node": "^10.9.2",
186
186
  "typescript": "^6.0.3",
187
187
  "vite": "^8.3.5",
188
188
  "vite-plugin-dts": "^5.1.2",
189
189
  "vite-plugin-lib-inject-css": "^2.2.2",
190
190
  "vite-plugin-svgr": "^5.2.0",
191
- "vitest": "^5.0.5"
191
+ "vitest": "^5.1.0"
192
192
  },
193
193
  "overrides": {
194
194
  "storybook": "$storybook",