@konstructio/ui 0.1.3 → 0.1.5
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/{Breadcrumb-DzavonoC.js → Breadcrumb-BiiOnn0p.js} +1 -1
- package/dist/{CollapsedSteps-CkMuzOHx.js → CollapsedSteps-Dy2I7XDd.js} +35 -35
- package/dist/{Input-C1Js3pbF.js → Input-CE6J6HIW.js} +6 -6
- package/dist/components/Alert/Alert.js +19 -18
- package/dist/components/Alert/Alert.variants.js +11 -4
- package/dist/components/Autocomplete/Autocomplete.variants.js +6 -5
- package/dist/components/Badge/Badge.js +15 -15
- package/dist/components/Badge/Badge.variants.js +5 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.variants.js +1 -1
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -2
- package/dist/components/Breadcrumb/components/index.js +1 -1
- package/dist/components/Button/Button.variants.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup.js +67 -63
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +18 -5
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +51 -32
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +56 -8
- package/dist/components/Checkbox/Checkbox.variants.js +9 -6
- package/dist/components/Command/components/DialogContent.js +5 -5
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/CopyButton/CopyButton.variants.js +4 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +7 -7
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +15 -14
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +22 -22
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +6 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +5 -5
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
- package/dist/components/Range/Range.variants.js +9 -4
- package/dist/components/Select/Select.js +21 -20
- package/dist/components/Select/components/ListItem/ListItem.js +47 -37
- package/dist/components/Select/contexts/select.context.js +1 -0
- package/dist/components/Select/contexts/select.provider.js +28 -27
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +3 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +6 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +4 -2
- package/dist/components/Slider/Slider.variants.js +9 -4
- package/dist/components/Switch/Switch.variants.js +8 -4
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Toast/Toast.variants.js +7 -3
- package/dist/components/VirtualizedTable/assets/chevron-down.js +6 -6
- package/dist/components/VirtualizedTable/assets/chevron-up.js +4 -4
- package/dist/components/VirtualizedTable/components/Body/Body.js +59 -56
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +42 -40
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +85 -68
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +51 -49
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +34 -33
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +11 -11
- package/dist/components/VirtualizedTable/constants/index.js +10 -5
- package/dist/components/VirtualizedTable/constants/responsive.js +70 -1
- package/dist/components/VirtualizedTable/hooks/index.js +6 -2
- package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.js +4 -0
- package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.js +20 -0
- package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/index.js +4 -0
- package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.js +18 -0
- package/dist/components/VirtualizedTable/utils/index.js +10 -8
- package/dist/components/VirtualizedTable/utils/responsive-edges/responsive-edges.js +8 -0
- package/dist/components/index.js +77 -73
- package/dist/{constants-q2QnJrOb.js → constants-YCGllWdf.js} +1 -1
- package/dist/index.js +77 -73
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +2 -0
- package/dist/lib/components/ButtonGroup/ButtonGroup.variants.d.ts +1 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +2 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +9 -0
- package/dist/lib/components/Select/Select.types.d.ts +2 -0
- package/dist/lib/components/Select/contexts/select.context.d.ts +1 -0
- package/dist/lib/components/Select/contexts/select.provider.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
- package/dist/lib/components/VirtualizedTable/assets/chevron-down.d.ts +1 -2
- package/dist/lib/components/VirtualizedTable/assets/chevron-up.d.ts +1 -2
- package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/hooks/index.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/responsive-edges/responsive-edges.d.ts +6 -0
- package/dist/package.json +8 -8
- package/dist/styles.css +1 -1
- 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,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;
|
|
@@ -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,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.
|
|
5
|
+
"version": "0.1.4",
|
|
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.
|
|
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.
|
|
153
|
-
"@tanstack/react-query": "^5.105.
|
|
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
|
|
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.
|
|
182
|
+
"rimraf": "^6.1.4",
|
|
183
183
|
"storybook": "^10.6.5",
|
|
184
|
-
"tailwindcss": "^4.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
|
|
191
|
+
"vitest": "^5.1.0"
|
|
192
192
|
},
|
|
193
193
|
"overrides": {
|
|
194
194
|
"storybook": "$storybook",
|