@bedrock-layout/solid 0.11.9 → 0.11.10
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/lib/cover.d.ts +3 -1
- package/lib/index.umd.js +1 -1
- package/lib/masonry-grid.d.ts +4 -2
- package/lib/padbox.d.ts +7 -2
- package/package.json +2 -2
package/lib/cover.d.ts
CHANGED
|
@@ -11,5 +11,7 @@ export interface CoverProps extends CoverWrapperProps {
|
|
|
11
11
|
bottom?: JSXElement;
|
|
12
12
|
as?: Component | keyof JSX.IntrinsicElements;
|
|
13
13
|
}
|
|
14
|
-
export declare const Cover: Component<CoverProps
|
|
14
|
+
export declare const Cover: Component<CoverProps & {
|
|
15
|
+
children?: JSXElement;
|
|
16
|
+
}>;
|
|
15
17
|
export {};
|
package/lib/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var be=Object.defineProperty,ve=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var $e=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var B=(r,i,l)=>i in r?be(r,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[i]=l,m=(r,i)=>{for(var l in i||(i={}))$e.call(i,l)&&B(r,l,i[l]);if(W)for(var l of W(i))we.call(i,l)&&B(r,l,i[l]);return r},h=(r,i)=>ve(r,pe(i));
|
|
1
|
+
(function(r,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("solid-styled-components"),require("@bedrock-layout/register-resize-callback"),require("solid-js")):typeof define=="function"&&define.amd?define(["exports","solid-styled-components","@bedrock-layout/register-resize-callback","solid-js"],i):(r=typeof globalThis!="undefined"?globalThis:r||self,i(r.solid={},r.solidStyledComponents,r.registerResizeCallback,r.solidJs))})(this,function(r,i,l,s){"use strict";var be=Object.defineProperty,ve=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var $e=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var B=(r,i,l)=>i in r?be(r,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[i]=l,m=(r,i)=>{for(var l in i||(i={}))$e.call(i,l)&&B(r,l,i[l]);if(W)for(var l of W(i))we.call(i,l)&&B(r,l,i[l]);return r},h=(r,i)=>ve(r,pe(i));function $(e){return typeof e!="string"?!1:[/^[0-9]{0,10000}\.?[0-9]{1,10000}(vmin|vmax|vh|vw|%|ch|ex|em|rem|in|cm|mm|pt|pc|px)$/,/^var\(--\D{1,100}\)$/].some(t=>t.test(e))}const w={none:"0px",xxs:"0.0625rem",xs:"0.125rem",sm:"0.25rem",md:"0.5rem",mdLg:"0.75rem",lg:"1rem",lgXl:"1.5rem",xl:"2rem",xlXXl:"3rem",xxl:"4rem"};function O(e){return e.reduce((t,[n,a])=>h(m({},t),{[n]:a}),{})}const d=(e,t)=>{var o,f;const n=(f=(o=t==null?void 0:t.space)!=null?o:t==null?void 0:t.spacing)!=null?f:w,c=O(Object.entries(n).map(([g,y])=>[g,typeof y=="number"?`${y}px`:y]))[e];return $(c)?c:void 0};function V(e){return e===void 0?"100%":typeof e=="number"?`${e}px`:e}const L=i.styled.div`
|
|
2
2
|
@property --maxWidth {
|
|
3
3
|
syntax: "<length-percentage>";
|
|
4
4
|
inherits: false;
|
package/lib/masonry-grid.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { Component } from "solid-js";
|
|
1
|
+
import { Component, JSXElement } from "solid-js";
|
|
2
2
|
import { GridProps } from "./grid";
|
|
3
|
-
export declare const MasonryGrid: Component<GridProps
|
|
3
|
+
export declare const MasonryGrid: Component<GridProps & {
|
|
4
|
+
children?: JSXElement;
|
|
5
|
+
}>;
|
package/lib/padbox.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSXElement } from "solid-js";
|
|
1
2
|
import { SpacingOptions } from "./spacing-constants";
|
|
2
3
|
declare type PaddingObj = {
|
|
3
4
|
left: SpacingOptions;
|
|
@@ -20,7 +21,11 @@ declare type PaddingTypes = SpacingOptions | PaddingObj | [SpacingOptions] | [Sp
|
|
|
20
21
|
export interface PadBoxProps {
|
|
21
22
|
padding: PaddingTypes;
|
|
22
23
|
}
|
|
23
|
-
export declare const PadBox: ((props: PadBoxProps &
|
|
24
|
-
|
|
24
|
+
export declare const PadBox: ((props: PadBoxProps & {
|
|
25
|
+
as?: string | number | symbol | ((props: unknown) => JSXElement) | undefined;
|
|
26
|
+
} & import("solid-js").JSX.HTMLAttributes<HTMLDivElement>) => import("solid-js").JSX.Element) & {
|
|
27
|
+
className: (props: PadBoxProps & {
|
|
28
|
+
as?: string | number | symbol | ((props: unknown) => JSXElement) | undefined;
|
|
29
|
+
} & import("solid-js").JSX.HTMLAttributes<HTMLDivElement>) => string;
|
|
25
30
|
};
|
|
26
31
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock-layout/solid",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.10",
|
|
4
4
|
"description": "Solid Foundational Layout Primitives for your Solid-js App",
|
|
5
5
|
"info": "Solid Bedrock Layout is a Solid.js port of the Bedrock Layout primitives written for react. Bedrock primitives are built to allow you to compose them together to create your own custom layouts. Many 'complex' layouts can be created by composing Bedrock Layout Primitives",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"bugs": {
|
|
73
73
|
"url": "https://github.com/Bedrock-Layouts/Solid-Bedrock/issues"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "6b5d1e9440493f42fde8d02feb9f0b4a2a7bce14"
|
|
76
76
|
}
|