@uipath/apollo-wind 0.7.2-pr188.4865fad
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/LICENSE +21 -0
- package/README.md +188 -0
- package/dist/components/forms/data-fetcher.cjs +250 -0
- package/dist/components/forms/data-fetcher.d.ts +173 -0
- package/dist/components/forms/data-fetcher.js +207 -0
- package/dist/components/forms/demo-mocks.cjs +1031 -0
- package/dist/components/forms/demo-mocks.d.ts +10 -0
- package/dist/components/forms/demo-mocks.js +997 -0
- package/dist/components/forms/field-renderer.cjs +595 -0
- package/dist/components/forms/field-renderer.d.ts +14 -0
- package/dist/components/forms/field-renderer.js +561 -0
- package/dist/components/forms/form-designer.cjs +2314 -0
- package/dist/components/forms/form-designer.d.ts +1 -0
- package/dist/components/forms/form-designer.js +2280 -0
- package/dist/components/forms/form-examples.cjs +962 -0
- package/dist/components/forms/form-examples.d.ts +46 -0
- package/dist/components/forms/form-examples.js +907 -0
- package/dist/components/forms/form-plugins.cjs +225 -0
- package/dist/components/forms/form-plugins.d.ts +11 -0
- package/dist/components/forms/form-plugins.js +176 -0
- package/dist/components/forms/form-schema.cjs +56 -0
- package/dist/components/forms/form-schema.d.ts +324 -0
- package/dist/components/forms/form-schema.js +13 -0
- package/dist/components/forms/form-state-viewer.cjs +498 -0
- package/dist/components/forms/form-state-viewer.d.ts +15 -0
- package/dist/components/forms/form-state-viewer.js +464 -0
- package/dist/components/forms/index.cjs +103 -0
- package/dist/components/forms/index.d.ts +13 -0
- package/dist/components/forms/index.js +9 -0
- package/dist/components/forms/metadata-form.cjs +400 -0
- package/dist/components/forms/metadata-form.d.ts +16 -0
- package/dist/components/forms/metadata-form.js +366 -0
- package/dist/components/forms/rules-engine.cjs +343 -0
- package/dist/components/forms/rules-engine.d.ts +99 -0
- package/dist/components/forms/rules-engine.js +293 -0
- package/dist/components/forms/schema-serializer.cjs +250 -0
- package/dist/components/forms/schema-serializer.d.ts +27 -0
- package/dist/components/forms/schema-serializer.js +213 -0
- package/dist/components/forms/schema-viewer.cjs +157 -0
- package/dist/components/forms/schema-viewer.d.ts +29 -0
- package/dist/components/forms/schema-viewer.js +117 -0
- package/dist/components/forms/validation-converter.cjs +154 -0
- package/dist/components/forms/validation-converter.d.ts +42 -0
- package/dist/components/forms/validation-converter.js +114 -0
- package/dist/components/ui/accordion.cjs +82 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.js +39 -0
- package/dist/components/ui/alert-dialog.cjs +126 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.js +62 -0
- package/dist/components/ui/alert.cjs +77 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/alert.js +37 -0
- package/dist/components/ui/aspect-ratio.cjs +38 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.js +4 -0
- package/dist/components/ui/avatar.cjs +63 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.js +23 -0
- package/dist/components/ui/badge.cjs +63 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.js +26 -0
- package/dist/components/ui/breadcrumb.cjs +118 -0
- package/dist/components/ui/breadcrumb.d.ts +19 -0
- package/dist/components/ui/breadcrumb.js +66 -0
- package/dist/components/ui/button-group.cjs +68 -0
- package/dist/components/ui/button-group.d.ts +14 -0
- package/dist/components/ui/button-group.js +28 -0
- package/dist/components/ui/button.cjs +78 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.js +41 -0
- package/dist/components/ui/calendar.cjs +144 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/calendar.js +107 -0
- package/dist/components/ui/card.cjs +89 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/card.js +40 -0
- package/dist/components/ui/checkbox.cjs +52 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/checkbox.js +18 -0
- package/dist/components/ui/collapsible.cjs +45 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.js +5 -0
- package/dist/components/ui/combobox.cjs +102 -0
- package/dist/components/ui/combobox.d.ts +15 -0
- package/dist/components/ui/combobox.js +68 -0
- package/dist/components/ui/command.cjs +131 -0
- package/dist/components/ui/command.d.ts +80 -0
- package/dist/components/ui/command.js +73 -0
- package/dist/components/ui/context-menu.cjs +173 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/context-menu.js +97 -0
- package/dist/components/ui/data-table.cjs +292 -0
- package/dist/components/ui/data-table.d.ts +23 -0
- package/dist/components/ui/data-table.js +252 -0
- package/dist/components/ui/date-picker.cjs +118 -0
- package/dist/components/ui/date-picker.d.ts +21 -0
- package/dist/components/ui/date-picker.js +81 -0
- package/dist/components/ui/datetime-picker.cjs +154 -0
- package/dist/components/ui/datetime-picker.d.ts +9 -0
- package/dist/components/ui/datetime-picker.js +120 -0
- package/dist/components/ui/dialog.cjs +159 -0
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/dialog.js +98 -0
- package/dist/components/ui/drawer.cjs +116 -0
- package/dist/components/ui/drawer.d.ts +18 -0
- package/dist/components/ui/drawer.js +55 -0
- package/dist/components/ui/dropdown-menu.cjs +174 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/dropdown-menu.js +98 -0
- package/dist/components/ui/editable-cell.cjs +256 -0
- package/dist/components/ui/editable-cell.d.ts +24 -0
- package/dist/components/ui/editable-cell.js +219 -0
- package/dist/components/ui/empty-state.cjs +73 -0
- package/dist/components/ui/empty-state.d.ts +16 -0
- package/dist/components/ui/empty-state.js +39 -0
- package/dist/components/ui/file-upload.cjs +236 -0
- package/dist/components/ui/file-upload.d.ts +10 -0
- package/dist/components/ui/file-upload.js +202 -0
- package/dist/components/ui/hover-card.cjs +55 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.js +15 -0
- package/dist/components/ui/index.cjs +546 -0
- package/dist/components/ui/index.d.ts +55 -0
- package/dist/components/ui/index.js +55 -0
- package/dist/components/ui/input.cjs +45 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/input.js +11 -0
- package/dist/components/ui/label.cjs +47 -0
- package/dist/components/ui/label.d.ts +7 -0
- package/dist/components/ui/label.js +13 -0
- package/dist/components/ui/layout/column.cjs +84 -0
- package/dist/components/ui/layout/column.d.ts +21 -0
- package/dist/components/ui/layout/column.js +50 -0
- package/dist/components/ui/layout/grid.cjs +101 -0
- package/dist/components/ui/layout/grid.d.ts +22 -0
- package/dist/components/ui/layout/grid.js +67 -0
- package/dist/components/ui/layout/index.cjs +44 -0
- package/dist/components/ui/layout/index.d.ts +7 -0
- package/dist/components/ui/layout/index.js +4 -0
- package/dist/components/ui/layout/row.cjs +84 -0
- package/dist/components/ui/layout/row.d.ts +21 -0
- package/dist/components/ui/layout/row.js +50 -0
- package/dist/components/ui/layout/types.cjs +18 -0
- package/dist/components/ui/layout/types.d.ts +149 -0
- package/dist/components/ui/layout/types.js +0 -0
- package/dist/components/ui/layout/utils.cjs +324 -0
- package/dist/components/ui/layout/utils.d.ts +76 -0
- package/dist/components/ui/layout/utils.js +239 -0
- package/dist/components/ui/menubar.cjs +210 -0
- package/dist/components/ui/menubar.d.ts +28 -0
- package/dist/components/ui/menubar.js +131 -0
- package/dist/components/ui/multi-select.cjs +187 -0
- package/dist/components/ui/multi-select.d.ts +18 -0
- package/dist/components/ui/multi-select.js +153 -0
- package/dist/components/ui/navigation-menu.cjs +122 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/navigation-menu.js +64 -0
- package/dist/components/ui/pagination.cjs +131 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/pagination.js +79 -0
- package/dist/components/ui/popover.cjs +61 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.js +18 -0
- package/dist/components/ui/progress.cjs +51 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/progress.js +17 -0
- package/dist/components/ui/radio-group.cjs +61 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.js +24 -0
- package/dist/components/ui/resizable.cjs +60 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/resizable.js +20 -0
- package/dist/components/ui/scroll-area.cjs +67 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.js +30 -0
- package/dist/components/ui/search.cjs +153 -0
- package/dist/components/ui/search.d.ts +19 -0
- package/dist/components/ui/search.js +116 -0
- package/dist/components/ui/select.cjs +151 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/select.js +90 -0
- package/dist/components/ui/separator.cjs +47 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.js +13 -0
- package/dist/components/ui/sheet.cjs +142 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sheet.js +81 -0
- package/dist/components/ui/skeleton.cjs +43 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.js +9 -0
- package/dist/components/ui/slider.cjs +63 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.js +29 -0
- package/dist/components/ui/sonner.cjs +76 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.js +39 -0
- package/dist/components/ui/spinner.cjs +78 -0
- package/dist/components/ui/spinner.d.ts +11 -0
- package/dist/components/ui/spinner.js +41 -0
- package/dist/components/ui/stats-card.cjs +102 -0
- package/dist/components/ui/stats-card.d.ts +15 -0
- package/dist/components/ui/stats-card.js +68 -0
- package/dist/components/ui/stepper.cjs +99 -0
- package/dist/components/ui/stepper.d.ts +14 -0
- package/dist/components/ui/stepper.js +65 -0
- package/dist/components/ui/switch.cjs +48 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/switch.js +14 -0
- package/dist/components/ui/table.cjs +110 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.js +55 -0
- package/dist/components/ui/tabs.cjs +67 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.js +24 -0
- package/dist/components/ui/textarea.cjs +44 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.js +10 -0
- package/dist/components/ui/toggle-group.cjs +73 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle-group.js +36 -0
- package/dist/components/ui/toggle.cjs +71 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/toggle.js +34 -0
- package/dist/components/ui/tooltip.cjs +58 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.js +15 -0
- package/dist/examples/admin-layout-example.d.ts +92 -0
- package/dist/examples/app-shell-example.d.ts +52 -0
- package/dist/examples/dashboard-example.d.ts +11 -0
- package/dist/examples/data-management-example.d.ts +1 -0
- package/dist/examples/flow-editor-layout-example.d.ts +22 -0
- package/dist/examples/flow-start-example.d.ts +30 -0
- package/dist/examples/form-builder-example.d.ts +1 -0
- package/dist/examples/new-project-example.d.ts +30 -0
- package/dist/examples/settings-example.d.ts +1 -0
- package/dist/examples/vscode-example.d.ts +80 -0
- package/dist/index.cjs +830 -0
- package/dist/index.d.ts +86 -0
- package/dist/index.js +67 -0
- package/dist/lib/index.cjs +42 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/utils.cjs +70 -0
- package/dist/lib/utils.d.ts +14 -0
- package/dist/lib/utils.js +30 -0
- package/dist/postcss.config.export.cjs +43 -0
- package/dist/postcss.config.export.js +9 -0
- package/dist/styles.css +6868 -0
- package/dist/tailwind.css +239 -0
- package/dist/tailwind.preset.cjs +77 -0
- package/dist/tailwind.preset.js +43 -0
- package/package.json +157 -0
- package/postcss.config.export.js +9 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { cn } from "../../../lib/index.js";
|
|
4
|
+
import { buildLayoutStyles } from "./utils.js";
|
|
5
|
+
const Row = /*#__PURE__*/ forwardRef(({ children, className, style, direction = 'row', align, justify, wrap, gap, flex, w, h, maxW, minW, maxH, minH, overflow, overflowX, overflowY, position, p, pt, pb, pl, pr, px, py, m, mt, mb, ml, mr, mx, my, ...htmlProps }, ref)=>{
|
|
6
|
+
const layoutStyles = buildLayoutStyles({
|
|
7
|
+
direction,
|
|
8
|
+
align,
|
|
9
|
+
justify,
|
|
10
|
+
wrap,
|
|
11
|
+
gap,
|
|
12
|
+
flex,
|
|
13
|
+
w,
|
|
14
|
+
h,
|
|
15
|
+
maxW,
|
|
16
|
+
minW,
|
|
17
|
+
maxH,
|
|
18
|
+
minH,
|
|
19
|
+
overflow,
|
|
20
|
+
overflowX,
|
|
21
|
+
overflowY,
|
|
22
|
+
position,
|
|
23
|
+
p,
|
|
24
|
+
pt,
|
|
25
|
+
pb,
|
|
26
|
+
pl,
|
|
27
|
+
pr,
|
|
28
|
+
px,
|
|
29
|
+
py,
|
|
30
|
+
m,
|
|
31
|
+
mt,
|
|
32
|
+
mb,
|
|
33
|
+
ml,
|
|
34
|
+
mr,
|
|
35
|
+
mx,
|
|
36
|
+
my
|
|
37
|
+
});
|
|
38
|
+
return /*#__PURE__*/ jsx("div", {
|
|
39
|
+
ref: ref,
|
|
40
|
+
className: cn(className),
|
|
41
|
+
style: {
|
|
42
|
+
...layoutStyles,
|
|
43
|
+
...style
|
|
44
|
+
},
|
|
45
|
+
...htmlProps,
|
|
46
|
+
children: children
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
Row.displayName = 'Row';
|
|
50
|
+
export { Row };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.r = (exports1)=>{
|
|
5
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
6
|
+
value: 'Module'
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
})();
|
|
13
|
+
var __webpack_exports__ = {};
|
|
14
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
16
|
+
Object.defineProperty(exports, '__esModule', {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Spacing values that can be used for gap, padding, and margin
|
|
4
|
+
* Supports Tailwind spacing scale (0-96) or auto/full
|
|
5
|
+
*/
|
|
6
|
+
export type SpacingValue = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96 | 'auto' | 'full';
|
|
7
|
+
/**
|
|
8
|
+
* Size values for width and height
|
|
9
|
+
* Supports Tailwind sizing scale, percentages, and special values
|
|
10
|
+
*/
|
|
11
|
+
export type SizeValue = SpacingValue | 'screen' | 'min' | 'max' | 'fit' | `${number}%` | `${number}/${number}`;
|
|
12
|
+
/**
|
|
13
|
+
* Flex alignment values
|
|
14
|
+
*/
|
|
15
|
+
export type AlignValue = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
16
|
+
/**
|
|
17
|
+
* Flex justification values
|
|
18
|
+
*/
|
|
19
|
+
export type JustifyValue = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
20
|
+
/**
|
|
21
|
+
* Flex wrap values
|
|
22
|
+
*/
|
|
23
|
+
export type WrapValue = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
24
|
+
/**
|
|
25
|
+
* Overflow values
|
|
26
|
+
*/
|
|
27
|
+
export type OverflowValue = 'auto' | 'hidden' | 'clip' | 'visible' | 'scroll';
|
|
28
|
+
/**
|
|
29
|
+
* Position values
|
|
30
|
+
*/
|
|
31
|
+
export type PositionValue = 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
32
|
+
/**
|
|
33
|
+
* Flex direction values
|
|
34
|
+
*/
|
|
35
|
+
export type DirectionValue = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
36
|
+
/**
|
|
37
|
+
* Spacing props for padding and margin
|
|
38
|
+
*/
|
|
39
|
+
export interface SpacingProps {
|
|
40
|
+
/** Padding on all sides */
|
|
41
|
+
p?: SpacingValue;
|
|
42
|
+
/** Padding top */
|
|
43
|
+
pt?: SpacingValue;
|
|
44
|
+
/** Padding bottom */
|
|
45
|
+
pb?: SpacingValue;
|
|
46
|
+
/** Padding left */
|
|
47
|
+
pl?: SpacingValue;
|
|
48
|
+
/** Padding right */
|
|
49
|
+
pr?: SpacingValue;
|
|
50
|
+
/** Padding horizontal (left and right) */
|
|
51
|
+
px?: SpacingValue;
|
|
52
|
+
/** Padding vertical (top and bottom) */
|
|
53
|
+
py?: SpacingValue;
|
|
54
|
+
/** Margin on all sides */
|
|
55
|
+
m?: SpacingValue;
|
|
56
|
+
/** Margin top */
|
|
57
|
+
mt?: SpacingValue;
|
|
58
|
+
/** Margin bottom */
|
|
59
|
+
mb?: SpacingValue;
|
|
60
|
+
/** Margin left */
|
|
61
|
+
ml?: SpacingValue;
|
|
62
|
+
/** Margin right */
|
|
63
|
+
mr?: SpacingValue;
|
|
64
|
+
/** Margin horizontal (left and right) */
|
|
65
|
+
mx?: SpacingValue;
|
|
66
|
+
/** Margin vertical (top and bottom) */
|
|
67
|
+
my?: SpacingValue;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Size props for width and height
|
|
71
|
+
*/
|
|
72
|
+
export interface SizeProps {
|
|
73
|
+
/** Width */
|
|
74
|
+
w?: SizeValue;
|
|
75
|
+
/** Height */
|
|
76
|
+
h?: SizeValue;
|
|
77
|
+
/** Max width */
|
|
78
|
+
maxW?: SizeValue;
|
|
79
|
+
/** Min width */
|
|
80
|
+
minW?: SizeValue;
|
|
81
|
+
/** Max height */
|
|
82
|
+
maxH?: SizeValue;
|
|
83
|
+
/** Min height */
|
|
84
|
+
minH?: SizeValue;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Flex layout props
|
|
88
|
+
*/
|
|
89
|
+
export interface FlexProps {
|
|
90
|
+
/** Flex direction */
|
|
91
|
+
direction?: DirectionValue;
|
|
92
|
+
/** Align items */
|
|
93
|
+
align?: AlignValue;
|
|
94
|
+
/** Justify content */
|
|
95
|
+
justify?: JustifyValue;
|
|
96
|
+
/** Flex wrap */
|
|
97
|
+
wrap?: WrapValue;
|
|
98
|
+
/** Gap between items */
|
|
99
|
+
gap?: SpacingValue;
|
|
100
|
+
/** Flex property (grow/shrink/basis) */
|
|
101
|
+
flex?: string | number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Overflow props
|
|
105
|
+
*/
|
|
106
|
+
export interface OverflowProps {
|
|
107
|
+
/** Overflow behavior */
|
|
108
|
+
overflow?: OverflowValue;
|
|
109
|
+
/** Overflow X behavior */
|
|
110
|
+
overflowX?: OverflowValue;
|
|
111
|
+
/** Overflow Y behavior */
|
|
112
|
+
overflowY?: OverflowValue;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Position props
|
|
116
|
+
*/
|
|
117
|
+
export interface PositionProps {
|
|
118
|
+
/** Position type */
|
|
119
|
+
position?: PositionValue;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Grid layout props
|
|
123
|
+
*/
|
|
124
|
+
export interface GridProps {
|
|
125
|
+
/** Number of columns or template */
|
|
126
|
+
cols?: number | string;
|
|
127
|
+
/** Number of rows or template */
|
|
128
|
+
rows?: number | string;
|
|
129
|
+
/** Gap between items */
|
|
130
|
+
gap?: SpacingValue;
|
|
131
|
+
/** Gap between columns */
|
|
132
|
+
gapX?: SpacingValue;
|
|
133
|
+
/** Gap between rows */
|
|
134
|
+
gapY?: SpacingValue;
|
|
135
|
+
/** Auto flow direction */
|
|
136
|
+
autoFlow?: 'row' | 'column' | 'dense' | 'row-dense' | 'column-dense';
|
|
137
|
+
/** Auto columns sizing */
|
|
138
|
+
autoCols?: 'auto' | 'min' | 'max' | 'fr';
|
|
139
|
+
/** Auto rows sizing */
|
|
140
|
+
autoRows?: 'auto' | 'min' | 'max' | 'fr';
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Combined layout props for flex-based components (Row, Column)
|
|
144
|
+
*/
|
|
145
|
+
export type LayoutProps = FlexProps & OverflowProps & PositionProps & SizeProps & SpacingProps & React.HTMLAttributes<HTMLDivElement>;
|
|
146
|
+
/**
|
|
147
|
+
* Combined layout props for grid-based components
|
|
148
|
+
*/
|
|
149
|
+
export type GridLayoutProps = GridProps & OverflowProps & PositionProps & SizeProps & SpacingProps & React.HTMLAttributes<HTMLDivElement>;
|
|
File without changes
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
alignMap: ()=>alignMap,
|
|
28
|
+
buildGridLayoutClasses: ()=>buildGridLayoutClasses,
|
|
29
|
+
buildLayoutClasses: ()=>buildLayoutClasses,
|
|
30
|
+
buildLayoutStyles: ()=>buildLayoutStyles,
|
|
31
|
+
directionMap: ()=>directionMap,
|
|
32
|
+
getFlexClasses: ()=>getFlexClasses,
|
|
33
|
+
getGridClasses: ()=>getGridClasses,
|
|
34
|
+
getOverflowClasses: ()=>getOverflowClasses,
|
|
35
|
+
getPositionClasses: ()=>getPositionClasses,
|
|
36
|
+
getSizeClass: ()=>getSizeClass,
|
|
37
|
+
getSizeClasses: ()=>getSizeClasses,
|
|
38
|
+
getSpacingClass: ()=>getSpacingClass,
|
|
39
|
+
getSpacingClasses: ()=>getSpacingClasses,
|
|
40
|
+
justifyMap: ()=>justifyMap,
|
|
41
|
+
overflowMap: ()=>overflowMap,
|
|
42
|
+
positionMap: ()=>positionMap,
|
|
43
|
+
spacingToRem: ()=>spacingToRem,
|
|
44
|
+
wrapMap: ()=>wrapMap
|
|
45
|
+
});
|
|
46
|
+
function getSpacingClass(value) {
|
|
47
|
+
if ('auto' === value) return 'auto';
|
|
48
|
+
if ('full' === value) return 'full';
|
|
49
|
+
return value.toString().replace('.', '_');
|
|
50
|
+
}
|
|
51
|
+
function spacingToRem(value) {
|
|
52
|
+
if ('auto' === value) return 'auto';
|
|
53
|
+
if ('full' === value) return '100%';
|
|
54
|
+
return `${0.25 * value}rem`;
|
|
55
|
+
}
|
|
56
|
+
function getSizeClass(value) {
|
|
57
|
+
if ('string' == typeof value) {
|
|
58
|
+
if ('auto' === value || 'full' === value || 'screen' === value || 'min' === value || 'max' === value || 'fit' === value) return value;
|
|
59
|
+
if (value.includes('%')) return `[${value}]`;
|
|
60
|
+
if (value.includes('/')) return value.replace('/', '\\/');
|
|
61
|
+
}
|
|
62
|
+
return getSpacingClass(value);
|
|
63
|
+
}
|
|
64
|
+
const alignMap = {
|
|
65
|
+
start: 'items-start',
|
|
66
|
+
center: 'items-center',
|
|
67
|
+
end: 'items-end',
|
|
68
|
+
baseline: 'items-baseline',
|
|
69
|
+
stretch: 'items-stretch'
|
|
70
|
+
};
|
|
71
|
+
const justifyMap = {
|
|
72
|
+
start: 'justify-start',
|
|
73
|
+
center: 'justify-center',
|
|
74
|
+
end: 'justify-end',
|
|
75
|
+
between: 'justify-between',
|
|
76
|
+
around: 'justify-around',
|
|
77
|
+
evenly: 'justify-evenly'
|
|
78
|
+
};
|
|
79
|
+
const wrapMap = {
|
|
80
|
+
nowrap: 'flex-nowrap',
|
|
81
|
+
wrap: 'flex-wrap',
|
|
82
|
+
'wrap-reverse': 'flex-wrap-reverse'
|
|
83
|
+
};
|
|
84
|
+
const directionMap = {
|
|
85
|
+
row: 'flex-row',
|
|
86
|
+
'row-reverse': 'flex-row-reverse',
|
|
87
|
+
column: 'flex-col',
|
|
88
|
+
'column-reverse': 'flex-col-reverse'
|
|
89
|
+
};
|
|
90
|
+
const overflowMap = {
|
|
91
|
+
auto: 'auto',
|
|
92
|
+
hidden: 'hidden',
|
|
93
|
+
clip: 'clip',
|
|
94
|
+
visible: 'visible',
|
|
95
|
+
scroll: 'scroll'
|
|
96
|
+
};
|
|
97
|
+
const positionMap = {
|
|
98
|
+
static: 'static',
|
|
99
|
+
relative: 'relative',
|
|
100
|
+
absolute: 'absolute',
|
|
101
|
+
fixed: 'fixed',
|
|
102
|
+
sticky: 'sticky'
|
|
103
|
+
};
|
|
104
|
+
function mapSpacingClass(prefix, value) {
|
|
105
|
+
const suffix = getSpacingClass(value);
|
|
106
|
+
return `${prefix}-${suffix}`;
|
|
107
|
+
}
|
|
108
|
+
function getSpacingClasses(props) {
|
|
109
|
+
const classes = [];
|
|
110
|
+
if (void 0 !== props.p) classes.push(mapSpacingClass('p', props.p));
|
|
111
|
+
if (void 0 !== props.pt) classes.push(mapSpacingClass('pt', props.pt));
|
|
112
|
+
if (void 0 !== props.pb) classes.push(mapSpacingClass('pb', props.pb));
|
|
113
|
+
if (void 0 !== props.pl) classes.push(mapSpacingClass('pl', props.pl));
|
|
114
|
+
if (void 0 !== props.pr) classes.push(mapSpacingClass('pr', props.pr));
|
|
115
|
+
if (void 0 !== props.px && void 0 === props.pl && void 0 === props.pr) classes.push(mapSpacingClass('px', props.px));
|
|
116
|
+
if (void 0 !== props.py && void 0 === props.pt && void 0 === props.pb) classes.push(mapSpacingClass('py', props.py));
|
|
117
|
+
if (void 0 !== props.m) classes.push(mapSpacingClass('m', props.m));
|
|
118
|
+
if (void 0 !== props.mt) classes.push(mapSpacingClass('mt', props.mt));
|
|
119
|
+
if (void 0 !== props.mb) classes.push(mapSpacingClass('mb', props.mb));
|
|
120
|
+
if (void 0 !== props.ml) classes.push(mapSpacingClass('ml', props.ml));
|
|
121
|
+
if (void 0 !== props.mr) classes.push(mapSpacingClass('mr', props.mr));
|
|
122
|
+
if (void 0 !== props.mx && void 0 === props.ml && void 0 === props.mr) classes.push(mapSpacingClass('mx', props.mx));
|
|
123
|
+
if (void 0 !== props.my && void 0 === props.mt && void 0 === props.mb) classes.push(mapSpacingClass('my', props.my));
|
|
124
|
+
return classes;
|
|
125
|
+
}
|
|
126
|
+
function getSizeClasses(props) {
|
|
127
|
+
const classes = [];
|
|
128
|
+
if (void 0 !== props.w) classes.push(`w-${getSizeClass(props.w)}`);
|
|
129
|
+
if (void 0 !== props.h) classes.push(`h-${getSizeClass(props.h)}`);
|
|
130
|
+
if (void 0 !== props.maxW) classes.push(`max-w-${getSizeClass(props.maxW)}`);
|
|
131
|
+
if (void 0 !== props.minW) classes.push(`min-w-${getSizeClass(props.minW)}`);
|
|
132
|
+
if (void 0 !== props.maxH) classes.push(`max-h-${getSizeClass(props.maxH)}`);
|
|
133
|
+
if (void 0 !== props.minH) classes.push(`min-h-${getSizeClass(props.minH)}`);
|
|
134
|
+
return classes;
|
|
135
|
+
}
|
|
136
|
+
function getFlexClasses(props) {
|
|
137
|
+
const classes = [
|
|
138
|
+
'flex'
|
|
139
|
+
];
|
|
140
|
+
if (void 0 !== props.direction) classes.push(directionMap[props.direction]);
|
|
141
|
+
if (void 0 !== props.align) classes.push(alignMap[props.align]);
|
|
142
|
+
if (void 0 !== props.justify) classes.push(justifyMap[props.justify]);
|
|
143
|
+
if (void 0 !== props.wrap) classes.push(wrapMap[props.wrap]);
|
|
144
|
+
if (void 0 !== props.gap) classes.push(`gap-${getSpacingClass(props.gap)}`);
|
|
145
|
+
if (void 0 !== props.flex) if ('number' == typeof props.flex) classes.push(`flex-${props.flex}`);
|
|
146
|
+
else if ('auto' === props.flex || 'initial' === props.flex || 'none' === props.flex) classes.push(`flex-${props.flex}`);
|
|
147
|
+
else classes.push(`flex-[${props.flex}]`);
|
|
148
|
+
return classes;
|
|
149
|
+
}
|
|
150
|
+
function getOverflowClasses(props) {
|
|
151
|
+
const classes = [];
|
|
152
|
+
if (void 0 !== props.overflow) classes.push(`overflow-${overflowMap[props.overflow]}`);
|
|
153
|
+
if (void 0 !== props.overflowX) classes.push(`overflow-x-${overflowMap[props.overflowX]}`);
|
|
154
|
+
if (void 0 !== props.overflowY) classes.push(`overflow-y-${overflowMap[props.overflowY]}`);
|
|
155
|
+
return classes;
|
|
156
|
+
}
|
|
157
|
+
function getPositionClasses(props) {
|
|
158
|
+
const classes = [];
|
|
159
|
+
if (void 0 !== props.position) classes.push(positionMap[props.position]);
|
|
160
|
+
return classes;
|
|
161
|
+
}
|
|
162
|
+
function getGridClasses(props) {
|
|
163
|
+
const classes = [
|
|
164
|
+
'grid'
|
|
165
|
+
];
|
|
166
|
+
if (void 0 !== props.cols) if ('number' == typeof props.cols) classes.push(`grid-cols-${props.cols}`);
|
|
167
|
+
else classes.push(`grid-cols-[${props.cols}]`);
|
|
168
|
+
if (void 0 !== props.rows) if ('number' == typeof props.rows) classes.push(`grid-rows-${props.rows}`);
|
|
169
|
+
else classes.push(`grid-rows-[${props.rows}]`);
|
|
170
|
+
if (void 0 !== props.gap) classes.push(`gap-${getSpacingClass(props.gap)}`);
|
|
171
|
+
if (void 0 !== props.autoFlow) classes.push(`grid-flow-${props.autoFlow}`);
|
|
172
|
+
if (void 0 !== props.autoCols) classes.push(`auto-cols-${props.autoCols}`);
|
|
173
|
+
if (void 0 !== props.autoRows) classes.push(`auto-rows-${props.autoRows}`);
|
|
174
|
+
return classes;
|
|
175
|
+
}
|
|
176
|
+
function buildLayoutClasses(props) {
|
|
177
|
+
return [
|
|
178
|
+
...getFlexClasses(props),
|
|
179
|
+
...getSpacingClasses(props),
|
|
180
|
+
...getSizeClasses(props),
|
|
181
|
+
...getOverflowClasses(props),
|
|
182
|
+
...getPositionClasses(props)
|
|
183
|
+
];
|
|
184
|
+
}
|
|
185
|
+
const alignToCSS = {
|
|
186
|
+
start: 'flex-start',
|
|
187
|
+
center: 'center',
|
|
188
|
+
end: 'flex-end',
|
|
189
|
+
baseline: 'baseline',
|
|
190
|
+
stretch: 'stretch'
|
|
191
|
+
};
|
|
192
|
+
const justifyToCSS = {
|
|
193
|
+
start: 'flex-start',
|
|
194
|
+
center: 'center',
|
|
195
|
+
end: 'flex-end',
|
|
196
|
+
between: 'space-between',
|
|
197
|
+
around: 'space-around',
|
|
198
|
+
evenly: 'space-evenly'
|
|
199
|
+
};
|
|
200
|
+
const wrapToCSS = {
|
|
201
|
+
nowrap: 'nowrap',
|
|
202
|
+
wrap: 'wrap',
|
|
203
|
+
'wrap-reverse': 'wrap-reverse'
|
|
204
|
+
};
|
|
205
|
+
const directionToCSS = {
|
|
206
|
+
row: 'row',
|
|
207
|
+
'row-reverse': 'row-reverse',
|
|
208
|
+
column: 'column',
|
|
209
|
+
'column-reverse': 'column-reverse'
|
|
210
|
+
};
|
|
211
|
+
function sizeToCSS(value) {
|
|
212
|
+
if ('auto' === value) return 'auto';
|
|
213
|
+
if ('full' === value) return '100%';
|
|
214
|
+
if ('screen' === value) return '100vw';
|
|
215
|
+
if ('min' === value) return 'min-content';
|
|
216
|
+
if ('max' === value) return 'max-content';
|
|
217
|
+
if ('fit' === value) return 'fit-content';
|
|
218
|
+
if ('string' == typeof value) {
|
|
219
|
+
if (value.includes('%')) return value;
|
|
220
|
+
if (value.includes('/')) {
|
|
221
|
+
const [num, denom] = value.split('/').map(Number);
|
|
222
|
+
return `${num / denom * 100}%`;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return `${0.25 * value}rem`;
|
|
226
|
+
}
|
|
227
|
+
function buildLayoutStyles(props) {
|
|
228
|
+
const styles = {
|
|
229
|
+
display: 'flex'
|
|
230
|
+
};
|
|
231
|
+
if (void 0 !== props.direction) styles.flexDirection = directionToCSS[props.direction];
|
|
232
|
+
if (void 0 !== props.align) styles.alignItems = alignToCSS[props.align];
|
|
233
|
+
if (void 0 !== props.justify) styles.justifyContent = justifyToCSS[props.justify];
|
|
234
|
+
if (void 0 !== props.wrap) styles.flexWrap = wrapToCSS[props.wrap];
|
|
235
|
+
if (void 0 !== props.gap) styles.gap = spacingToRem(props.gap);
|
|
236
|
+
if (void 0 !== props.flex) styles.flex = props.flex;
|
|
237
|
+
if (void 0 !== props.w) styles.width = sizeToCSS(props.w);
|
|
238
|
+
if (void 0 !== props.h) styles.height = sizeToCSS(props.h);
|
|
239
|
+
if (void 0 !== props.maxW) styles.maxWidth = sizeToCSS(props.maxW);
|
|
240
|
+
if (void 0 !== props.minW) styles.minWidth = sizeToCSS(props.minW);
|
|
241
|
+
if (void 0 !== props.maxH) styles.maxHeight = sizeToCSS(props.maxH);
|
|
242
|
+
if (void 0 !== props.minH) styles.minHeight = sizeToCSS(props.minH);
|
|
243
|
+
if (void 0 !== props.overflow) styles.overflow = props.overflow;
|
|
244
|
+
if (void 0 !== props.overflowX) styles.overflowX = props.overflowX;
|
|
245
|
+
if (void 0 !== props.overflowY) styles.overflowY = props.overflowY;
|
|
246
|
+
if (void 0 !== props.position) styles.position = props.position;
|
|
247
|
+
if (void 0 !== props.p) styles.padding = spacingToRem(props.p);
|
|
248
|
+
if (void 0 !== props.pt) styles.paddingTop = spacingToRem(props.pt);
|
|
249
|
+
if (void 0 !== props.pb) styles.paddingBottom = spacingToRem(props.pb);
|
|
250
|
+
if (void 0 !== props.pl) styles.paddingLeft = spacingToRem(props.pl);
|
|
251
|
+
if (void 0 !== props.pr) styles.paddingRight = spacingToRem(props.pr);
|
|
252
|
+
if (void 0 !== props.px) {
|
|
253
|
+
if (void 0 === props.pl) styles.paddingLeft = spacingToRem(props.px);
|
|
254
|
+
if (void 0 === props.pr) styles.paddingRight = spacingToRem(props.px);
|
|
255
|
+
}
|
|
256
|
+
if (void 0 !== props.py) {
|
|
257
|
+
if (void 0 === props.pt) styles.paddingTop = spacingToRem(props.py);
|
|
258
|
+
if (void 0 === props.pb) styles.paddingBottom = spacingToRem(props.py);
|
|
259
|
+
}
|
|
260
|
+
if (void 0 !== props.m) styles.margin = spacingToRem(props.m);
|
|
261
|
+
if (void 0 !== props.mt) styles.marginTop = spacingToRem(props.mt);
|
|
262
|
+
if (void 0 !== props.mb) styles.marginBottom = spacingToRem(props.mb);
|
|
263
|
+
if (void 0 !== props.ml) styles.marginLeft = spacingToRem(props.ml);
|
|
264
|
+
if (void 0 !== props.mr) styles.marginRight = spacingToRem(props.mr);
|
|
265
|
+
if (void 0 !== props.mx) {
|
|
266
|
+
if (void 0 === props.ml) styles.marginLeft = spacingToRem(props.mx);
|
|
267
|
+
if (void 0 === props.mr) styles.marginRight = spacingToRem(props.mx);
|
|
268
|
+
}
|
|
269
|
+
if (void 0 !== props.my) {
|
|
270
|
+
if (void 0 === props.mt) styles.marginTop = spacingToRem(props.my);
|
|
271
|
+
if (void 0 === props.mb) styles.marginBottom = spacingToRem(props.my);
|
|
272
|
+
}
|
|
273
|
+
return styles;
|
|
274
|
+
}
|
|
275
|
+
function buildGridLayoutClasses(props) {
|
|
276
|
+
return [
|
|
277
|
+
...getGridClasses(props),
|
|
278
|
+
...getSpacingClasses(props),
|
|
279
|
+
...getSizeClasses(props),
|
|
280
|
+
...getOverflowClasses(props),
|
|
281
|
+
...getPositionClasses(props)
|
|
282
|
+
];
|
|
283
|
+
}
|
|
284
|
+
exports.alignMap = __webpack_exports__.alignMap;
|
|
285
|
+
exports.buildGridLayoutClasses = __webpack_exports__.buildGridLayoutClasses;
|
|
286
|
+
exports.buildLayoutClasses = __webpack_exports__.buildLayoutClasses;
|
|
287
|
+
exports.buildLayoutStyles = __webpack_exports__.buildLayoutStyles;
|
|
288
|
+
exports.directionMap = __webpack_exports__.directionMap;
|
|
289
|
+
exports.getFlexClasses = __webpack_exports__.getFlexClasses;
|
|
290
|
+
exports.getGridClasses = __webpack_exports__.getGridClasses;
|
|
291
|
+
exports.getOverflowClasses = __webpack_exports__.getOverflowClasses;
|
|
292
|
+
exports.getPositionClasses = __webpack_exports__.getPositionClasses;
|
|
293
|
+
exports.getSizeClass = __webpack_exports__.getSizeClass;
|
|
294
|
+
exports.getSizeClasses = __webpack_exports__.getSizeClasses;
|
|
295
|
+
exports.getSpacingClass = __webpack_exports__.getSpacingClass;
|
|
296
|
+
exports.getSpacingClasses = __webpack_exports__.getSpacingClasses;
|
|
297
|
+
exports.justifyMap = __webpack_exports__.justifyMap;
|
|
298
|
+
exports.overflowMap = __webpack_exports__.overflowMap;
|
|
299
|
+
exports.positionMap = __webpack_exports__.positionMap;
|
|
300
|
+
exports.spacingToRem = __webpack_exports__.spacingToRem;
|
|
301
|
+
exports.wrapMap = __webpack_exports__.wrapMap;
|
|
302
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
303
|
+
"alignMap",
|
|
304
|
+
"buildGridLayoutClasses",
|
|
305
|
+
"buildLayoutClasses",
|
|
306
|
+
"buildLayoutStyles",
|
|
307
|
+
"directionMap",
|
|
308
|
+
"getFlexClasses",
|
|
309
|
+
"getGridClasses",
|
|
310
|
+
"getOverflowClasses",
|
|
311
|
+
"getPositionClasses",
|
|
312
|
+
"getSizeClass",
|
|
313
|
+
"getSizeClasses",
|
|
314
|
+
"getSpacingClass",
|
|
315
|
+
"getSpacingClasses",
|
|
316
|
+
"justifyMap",
|
|
317
|
+
"overflowMap",
|
|
318
|
+
"positionMap",
|
|
319
|
+
"spacingToRem",
|
|
320
|
+
"wrapMap"
|
|
321
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
322
|
+
Object.defineProperty(exports, '__esModule', {
|
|
323
|
+
value: true
|
|
324
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { AlignValue, DirectionValue, GridLayoutProps, JustifyValue, LayoutProps, OverflowValue, PositionValue, SizeValue, SpacingValue, WrapValue } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Convert spacing value to Tailwind class suffix
|
|
5
|
+
*/
|
|
6
|
+
export declare function getSpacingClass(value: SpacingValue): string;
|
|
7
|
+
/**
|
|
8
|
+
* Convert spacing value to CSS rem value
|
|
9
|
+
*/
|
|
10
|
+
export declare function spacingToRem(value: SpacingValue): string;
|
|
11
|
+
/**
|
|
12
|
+
* Convert size value to Tailwind class suffix
|
|
13
|
+
*/
|
|
14
|
+
export declare function getSizeClass(value: SizeValue): string;
|
|
15
|
+
/**
|
|
16
|
+
* Map alignment values to Tailwind classes
|
|
17
|
+
*/
|
|
18
|
+
export declare const alignMap: Record<AlignValue, string>;
|
|
19
|
+
/**
|
|
20
|
+
* Map justify values to Tailwind classes
|
|
21
|
+
*/
|
|
22
|
+
export declare const justifyMap: Record<JustifyValue, string>;
|
|
23
|
+
/**
|
|
24
|
+
* Map wrap values to Tailwind classes
|
|
25
|
+
*/
|
|
26
|
+
export declare const wrapMap: Record<WrapValue, string>;
|
|
27
|
+
/**
|
|
28
|
+
* Map direction values to Tailwind classes
|
|
29
|
+
*/
|
|
30
|
+
export declare const directionMap: Record<DirectionValue, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Map overflow values to Tailwind classes
|
|
33
|
+
*/
|
|
34
|
+
export declare const overflowMap: Record<OverflowValue, string>;
|
|
35
|
+
/**
|
|
36
|
+
* Map position values to Tailwind classes
|
|
37
|
+
*/
|
|
38
|
+
export declare const positionMap: Record<PositionValue, string>;
|
|
39
|
+
/**
|
|
40
|
+
* Build Tailwind classes for spacing props
|
|
41
|
+
*/
|
|
42
|
+
export declare function getSpacingClasses(props: Partial<LayoutProps>): string[];
|
|
43
|
+
/**
|
|
44
|
+
* Build Tailwind classes for size props
|
|
45
|
+
*/
|
|
46
|
+
export declare function getSizeClasses(props: Partial<LayoutProps>): string[];
|
|
47
|
+
/**
|
|
48
|
+
* Build Tailwind classes for flex props
|
|
49
|
+
*/
|
|
50
|
+
export declare function getFlexClasses(props: Partial<LayoutProps>): string[];
|
|
51
|
+
/**
|
|
52
|
+
* Build Tailwind classes for overflow props
|
|
53
|
+
*/
|
|
54
|
+
export declare function getOverflowClasses(props: Partial<LayoutProps>): string[];
|
|
55
|
+
/**
|
|
56
|
+
* Build Tailwind classes for position props
|
|
57
|
+
*/
|
|
58
|
+
export declare function getPositionClasses(props: Partial<LayoutProps>): string[];
|
|
59
|
+
/**
|
|
60
|
+
* Build Tailwind classes for grid props
|
|
61
|
+
*/
|
|
62
|
+
export declare function getGridClasses(props: Partial<GridLayoutProps>): string[];
|
|
63
|
+
/**
|
|
64
|
+
* Combine all layout classes for flex-based components
|
|
65
|
+
*/
|
|
66
|
+
export declare function buildLayoutClasses(props: Partial<LayoutProps>): string[];
|
|
67
|
+
/**
|
|
68
|
+
* Build inline styles for flex-based layout components (Row, Column)
|
|
69
|
+
* This approach avoids Tailwind class generation issues with decimal values
|
|
70
|
+
* and provides a more predictable styling experience.
|
|
71
|
+
*/
|
|
72
|
+
export declare function buildLayoutStyles(props: Partial<LayoutProps>): React.CSSProperties;
|
|
73
|
+
/**
|
|
74
|
+
* Combine all layout classes for grid-based components
|
|
75
|
+
*/
|
|
76
|
+
export declare function buildGridLayoutClasses(props: Partial<GridLayoutProps>): string[];
|