@niche-works/css-layouts 0.1.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/LICENSE +21 -0
- package/README.md +3 -0
- package/_constants.cjs +94 -0
- package/_constants.d.cts +83 -0
- package/_constants.d.mts +83 -0
- package/_constants.mjs +86 -0
- package/_helpers/applyChildCount.cjs +26 -0
- package/_helpers/applyChildCount.d.cts +12 -0
- package/_helpers/applyChildCount.d.mts +13 -0
- package/_helpers/applyChildCount.mjs +24 -0
- package/_helpers/applyChildSize.cjs +27 -0
- package/_helpers/applyChildSize.d.cts +12 -0
- package/_helpers/applyChildSize.d.mts +13 -0
- package/_helpers/applyChildSize.mjs +25 -0
- package/_helpers/applySpacing.cjs +30 -0
- package/_helpers/applySpacing.d.cts +13 -0
- package/_helpers/applySpacing.d.mts +14 -0
- package/_helpers/applySpacing.mjs +28 -0
- package/_helpers/hasValue.cjs +15 -0
- package/_helpers/hasValue.d.cts +8 -0
- package/_helpers/hasValue.d.mts +9 -0
- package/_helpers/hasValue.mjs +14 -0
- package/_helpers/mergeLayoutResults.cjs +18 -0
- package/_helpers/mergeLayoutResults.d.cts +5 -0
- package/_helpers/mergeLayoutResults.d.mts +6 -0
- package/_helpers/mergeLayoutResults.mjs +16 -0
- package/_helpers/unit.cjs +16 -0
- package/_helpers/unit.d.cts +10 -0
- package/_helpers/unit.d.mts +11 -0
- package/_helpers/unit.mjs +15 -0
- package/_types.cjs +0 -0
- package/_types.d.cts +118 -0
- package/_types.d.mts +118 -0
- package/_types.mjs +1 -0
- package/_virtual/_rolldown/runtime.cjs +29 -0
- package/balance/balance.cjs +34 -0
- package/balance/balance.d.cts +11 -0
- package/balance/balance.d.mts +12 -0
- package/balance/balance.mjs +31 -0
- package/balance/index.cjs +3 -0
- package/balance/index.d.cts +3 -0
- package/balance/index.d.mts +3 -0
- package/balance/index.mjs +3 -0
- package/balance/styles.css +109 -0
- package/balance/types.cjs +0 -0
- package/balance/types.d.cts +6 -0
- package/balance/types.d.mts +6 -0
- package/balance/types.mjs +1 -0
- package/constants.cjs +341 -0
- package/constants.d.cts +299 -0
- package/constants.d.mts +299 -0
- package/constants.mjs +288 -0
- package/flow/flow.cjs +70 -0
- package/flow/flow.d.cts +12 -0
- package/flow/flow.d.mts +13 -0
- package/flow/flow.mjs +67 -0
- package/flow/index.cjs +3 -0
- package/flow/index.d.cts +3 -0
- package/flow/index.d.mts +3 -0
- package/flow/index.mjs +3 -0
- package/flow/styles.css +162 -0
- package/flow/types.cjs +0 -0
- package/flow/types.d.cts +21 -0
- package/flow/types.d.mts +21 -0
- package/flow/types.mjs +1 -0
- package/index.cjs +23 -0
- package/index.d.cts +16 -0
- package/index.d.mts +16 -0
- package/index.mjs +16 -0
- package/matrix/index.cjs +3 -0
- package/matrix/index.d.cts +3 -0
- package/matrix/index.d.mts +3 -0
- package/matrix/index.mjs +3 -0
- package/matrix/matrix.cjs +109 -0
- package/matrix/matrix.d.cts +11 -0
- package/matrix/matrix.d.mts +12 -0
- package/matrix/matrix.mjs +106 -0
- package/matrix/styles.css +59 -0
- package/matrix/types.cjs +0 -0
- package/matrix/types.d.cts +46 -0
- package/matrix/types.d.mts +46 -0
- package/matrix/types.mjs +1 -0
- package/pack/index.cjs +3 -0
- package/pack/index.d.cts +3 -0
- package/pack/index.d.mts +3 -0
- package/pack/index.mjs +3 -0
- package/pack/pack.cjs +28 -0
- package/pack/pack.d.cts +11 -0
- package/pack/pack.d.mts +12 -0
- package/pack/pack.mjs +25 -0
- package/pack/styles.css +27 -0
- package/pack/types.cjs +0 -0
- package/pack/types.d.cts +6 -0
- package/pack/types.d.mts +6 -0
- package/pack/types.mjs +1 -0
- package/package.json +45 -0
- package/pin/index.cjs +3 -0
- package/pin/index.d.cts +3 -0
- package/pin/index.d.mts +3 -0
- package/pin/index.mjs +3 -0
- package/pin/pin.cjs +22 -0
- package/pin/pin.d.cts +11 -0
- package/pin/pin.d.mts +12 -0
- package/pin/pin.mjs +22 -0
- package/pin/styles.css +15 -0
- package/pin/types.cjs +0 -0
- package/pin/types.d.cts +6 -0
- package/pin/types.d.mts +6 -0
- package/pin/types.mjs +1 -0
- package/stack/index.cjs +3 -0
- package/stack/index.d.cts +3 -0
- package/stack/index.d.mts +3 -0
- package/stack/index.mjs +3 -0
- package/stack/stack.cjs +98 -0
- package/stack/stack.d.cts +11 -0
- package/stack/stack.d.mts +12 -0
- package/stack/stack.mjs +95 -0
- package/stack/styles.css +171 -0
- package/stack/types.cjs +0 -0
- package/stack/types.d.cts +21 -0
- package/stack/types.d.mts +21 -0
- package/stack/types.mjs +1 -0
- package/tile/index.cjs +3 -0
- package/tile/index.d.cts +3 -0
- package/tile/index.d.mts +3 -0
- package/tile/index.mjs +3 -0
- package/tile/styles.css +104 -0
- package/tile/tile.cjs +85 -0
- package/tile/tile.d.cts +12 -0
- package/tile/tile.d.mts +13 -0
- package/tile/tile.mjs +82 -0
- package/tile/types.cjs +0 -0
- package/tile/types.d.cts +9 -0
- package/tile/types.d.mts +9 -0
- package/tile/types.mjs +1 -0
- package/types.cjs +0 -0
- package/types.d.cts +23 -0
- package/types.d.mts +23 -0
- package/types.mjs +1 -0
package/types.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CSSPropertiesWithVars } from "./_types.cjs";
|
|
2
|
+
import { LooseDictionary } from "@niche-works/types";
|
|
3
|
+
|
|
4
|
+
//#region src/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* レイアウトを作る関数
|
|
7
|
+
*/
|
|
8
|
+
type CreateLayout<O = LooseDictionary> = (options?: O) => LayoutResult;
|
|
9
|
+
/**
|
|
10
|
+
* レイアウト
|
|
11
|
+
*/
|
|
12
|
+
type LayoutResult = {
|
|
13
|
+
/**
|
|
14
|
+
* クラス
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* スタイル
|
|
19
|
+
*/
|
|
20
|
+
style?: CSSPropertiesWithVars;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CreateLayout, LayoutResult };
|
package/types.d.mts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CSSPropertiesWithVars } from "./_types.mjs";
|
|
2
|
+
import { LooseDictionary } from "@niche-works/types";
|
|
3
|
+
|
|
4
|
+
//#region src/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* レイアウトを作る関数
|
|
7
|
+
*/
|
|
8
|
+
type CreateLayout<O = LooseDictionary> = (options?: O) => LayoutResult;
|
|
9
|
+
/**
|
|
10
|
+
* レイアウト
|
|
11
|
+
*/
|
|
12
|
+
type LayoutResult = {
|
|
13
|
+
/**
|
|
14
|
+
* クラス
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* スタイル
|
|
19
|
+
*/
|
|
20
|
+
style?: CSSPropertiesWithVars;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CreateLayout, LayoutResult };
|
package/types.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|