@platform-blocks/ui 0.6.0 → 0.7.0
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/README.md +0 -24
- package/lib/cjs/index.js +476 -720
- package/lib/cjs/index.js.map +1 -1
- package/lib/components/Accordion/types.d.ts +5 -5
- package/lib/components/AutoComplete/types.d.ts +3 -3
- package/lib/components/Avatar/types.d.ts +3 -3
- package/lib/components/Badge/types.d.ts +3 -3
- package/lib/components/Block/types.d.ts +2 -2
- package/lib/components/Blockquote/types.d.ts +2 -2
- package/lib/components/Breadcrumbs/types.d.ts +4 -4
- package/lib/components/Calendar/types.d.ts +2 -2
- package/lib/components/Carousel/types.d.ts +3 -3
- package/lib/components/Chip/types.d.ts +3 -3
- package/lib/components/CodeBlock/types.d.ts +4 -4
- package/lib/components/ColorPicker/types.d.ts +4 -4
- package/lib/components/CopyButton/types.d.ts +2 -2
- package/lib/components/DatePicker/types.d.ts +2 -2
- package/lib/components/Dialog/Dialog.d.ts +1 -1
- package/lib/components/Dialog/types.d.ts +23 -2
- package/lib/components/Divider/types.d.ts +2 -2
- package/lib/components/Grid/types.d.ts +3 -3
- package/lib/components/HoverCard/types.d.ts +3 -3
- package/lib/components/Image/Image.d.ts +1 -1
- package/lib/components/Image/types.d.ts +6 -6
- package/lib/components/Indicator/types.d.ts +2 -2
- package/lib/components/Input/styles.d.ts +1 -12
- package/lib/components/Knob/components/SurfaceLayers.d.ts +2 -2
- package/lib/components/Knob/components/ThumbLayer.d.ts +1 -1
- package/lib/components/Knob/components/TickLayers.d.ts +2 -2
- package/lib/components/Knob/types.d.ts +11 -11
- package/lib/components/Layout/Layout.d.ts +1 -0
- package/lib/components/ListGroup/types.d.ts +4 -4
- package/lib/components/Loader/types.d.ts +2 -2
- package/lib/components/Masonry/types.d.ts +4 -4
- package/lib/components/Menu/types.d.ts +2 -2
- package/lib/components/Navigation/types.d.ts +2 -2
- package/lib/components/Notice/types.d.ts +2 -2
- package/lib/components/Pagination/types.d.ts +6 -6
- package/lib/components/Popover/types.d.ts +5 -5
- package/lib/components/Progress/types.d.ts +3 -3
- package/lib/components/QRCode/types.d.ts +2 -2
- package/lib/components/Rating/types.d.ts +2 -2
- package/lib/components/Ring/types.d.ts +7 -7
- package/lib/components/SegmentedControl/types.d.ts +4 -4
- package/lib/components/Select/Select.types.d.ts +1 -1
- package/lib/components/Skeleton/types.d.ts +4 -4
- package/lib/components/Slider/types.d.ts +7 -7
- package/lib/components/Spotlight/types.d.ts +6 -6
- package/lib/components/Table/Table.d.ts +4 -4
- package/lib/components/Tabs/types.d.ts +5 -5
- package/lib/components/TextArea/types.d.ts +2 -2
- package/lib/components/Timeline/types.d.ts +20 -0
- package/lib/components/Toast/types.d.ts +2 -2
- package/lib/components/Tooltip/types.d.ts +2 -2
- package/lib/components/Video/NativeVideoPlayer.d.ts +2 -2
- package/lib/components/Video/VideoControls.d.ts +2 -2
- package/lib/components/Video/YouTubePlayer.d.ts +2 -2
- package/lib/components/Video/types.d.ts +6 -6
- package/lib/components/Waveform/WaveformSkeleton.d.ts +2 -2
- package/lib/components/Waveform/types.d.ts +2 -2
- package/lib/components/index.d.ts +0 -2
- package/lib/components/types.d.ts +0 -1
- package/lib/core/utils/layout.d.ts +13 -16
- package/lib/core/utils/positioning-enhanced.d.ts +2 -0
- package/lib/esm/index.js +478 -720
- package/lib/esm/index.js.map +1 -1
- package/lib/index.d.ts +0 -4
- package/package.json +67 -57
- package/lib/components/Lottie/Lottie.d.ts +0 -30
- package/lib/components/Lottie/index.d.ts +0 -2
- package/lib/components/RichTextEditor/RichTextEditor.d.ts +0 -3
- package/lib/components/RichTextEditor/index.d.ts +0 -2
- package/lib/components/RichTextEditor/styles.d.ts +0 -61
- package/lib/components/RichTextEditor/types.d.ts +0 -150
|
@@ -2,38 +2,35 @@ import { ViewStyle, DimensionValue } from 'react-native';
|
|
|
2
2
|
export interface LayoutProps {
|
|
3
3
|
/** Makes the component fill the full width of its parent */
|
|
4
4
|
fullWidth?: boolean;
|
|
5
|
-
/** Sets a specific width (shorthand for width) */
|
|
6
|
-
w?: DimensionValue;
|
|
7
5
|
/** Sets a specific width */
|
|
8
|
-
|
|
6
|
+
w?: DimensionValue;
|
|
9
7
|
/** Sets a specific height */
|
|
10
|
-
|
|
8
|
+
h?: DimensionValue;
|
|
11
9
|
/** Sets the maximum width */
|
|
12
|
-
|
|
10
|
+
maxW?: DimensionValue;
|
|
13
11
|
/** Sets the minimum width */
|
|
14
|
-
|
|
12
|
+
minW?: DimensionValue;
|
|
15
13
|
/** Sets the maximum height */
|
|
16
|
-
|
|
14
|
+
maxH?: DimensionValue;
|
|
17
15
|
/** Sets the minimum height */
|
|
18
|
-
|
|
16
|
+
minH?: DimensionValue;
|
|
19
17
|
}
|
|
20
18
|
/**
|
|
21
19
|
* Generates layout styles based on provided layout properties.
|
|
22
20
|
*
|
|
23
21
|
* @param props - The layout properties object
|
|
24
22
|
* @param props.fullWidth - When true, sets width to 100%
|
|
25
|
-
* @param props.w -
|
|
26
|
-
* @param props.
|
|
27
|
-
* @param props.
|
|
28
|
-
* @param props.
|
|
29
|
-
* @param props.
|
|
30
|
-
* @param props.
|
|
31
|
-
* @param props.minHeight - Minimum height constraint
|
|
23
|
+
* @param props.w - Width property (overrides fullWidth)
|
|
24
|
+
* @param props.h - Height value
|
|
25
|
+
* @param props.maxW - Maximum width constraint
|
|
26
|
+
* @param props.minW - Minimum width constraint
|
|
27
|
+
* @param props.maxH - Maximum height constraint
|
|
28
|
+
* @param props.minH - Minimum height constraint
|
|
32
29
|
*
|
|
33
30
|
* @returns A partial ViewStyle object containing the computed layout styles
|
|
34
31
|
*
|
|
35
32
|
* @remarks
|
|
36
|
-
* Property precedence for width:
|
|
33
|
+
* Property precedence for width: w > fullWidth
|
|
37
34
|
* The function processes width properties in order of specificity, with more specific
|
|
38
35
|
* properties overriding more general ones.
|
|
39
36
|
*/
|
|
@@ -38,6 +38,8 @@ export interface PositioningOptions {
|
|
|
38
38
|
boundary?: number;
|
|
39
39
|
/** Fallback placements to try if primary placement doesn't fit */
|
|
40
40
|
fallbackPlacements?: PlacementType[];
|
|
41
|
+
/** Match the anchor element's width (useful for dropdown inputs) */
|
|
42
|
+
matchAnchorWidth?: boolean;
|
|
41
43
|
}
|
|
42
44
|
/**
|
|
43
45
|
* Enhanced overlay positioning that prevents off-screen rendering with intelligent caching
|