@pittorica/stack-react 0.21.0 → 0.22.3
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 +24 -0
- package/dist/Stack.d.ts +6 -16
- package/dist/Stack.d.ts.map +1 -1
- package/dist/Stack.stories.d.ts +9 -0
- package/dist/Stack.stories.d.ts.map +1 -0
- package/dist/Stack.test.d.ts +5 -0
- package/dist/Stack.test.d.ts.map +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +123 -12711
- package/package.json +27 -32
- package/.turbo/turbo-build.log +0 -18
- package/dist/index.cjs +0 -12713
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/stack-react.css +0 -72
- package/dist/stack.css.d.ts +0 -80
- package/dist/stack.css.d.ts.map +0 -1
- package/src/Stack.tsx +0 -77
- package/src/index.ts +0 -12
- package/src/stack.css.ts +0 -73
- package/tsconfig.app.json +0 -33
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -37
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @pittorica/stack-react
|
|
2
|
+
|
|
3
|
+
The `Stack` component.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @pittorica/stack-react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
import { Stack } from '@pittorica/stack-react';
|
|
15
|
+
// TODO: Add usage example
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## License
|
|
19
|
+
|
|
20
|
+
This project is licensed under the MIT License.
|
|
21
|
+
|
|
22
|
+
**Copyright (c) 2025 Davide Di Criscito**
|
|
23
|
+
|
|
24
|
+
For the full details, see the [LICENSE](LICENSE) file.
|
package/dist/Stack.d.ts
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export type StackAlign = (typeof STACK_ALIGNS)[number];
|
|
8
|
-
export declare const STACK_JUSTIFIES: readonly ["start", "center", "end", "spaceBetween", "spaceAround", "spaceEvenly"];
|
|
9
|
-
export type StackJustify = (typeof STACK_JUSTIFIES)[number];
|
|
10
|
-
export interface StackProps extends Omit<BoxProps, 'as' | 'display' | 'flexDirection' | 'alignItems' | 'justifyContent' | 'gap'> {
|
|
11
|
-
direction?: StackDirection;
|
|
12
|
-
align?: StackAlign;
|
|
13
|
-
justify?: StackJustify;
|
|
14
|
-
gap?: SpacingToken | string;
|
|
15
|
-
}
|
|
16
|
-
export declare const Stack: React.FC<StackProps>;
|
|
1
|
+
import { type FlexProps } from '@pittorica/flex-react';
|
|
2
|
+
/**
|
|
3
|
+
* Stack component for vertical layouts.
|
|
4
|
+
* Inherits all properties from Flex but defaults direction to 'column'.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Stack: (props: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
7
|
//# sourceMappingURL=Stack.d.ts.map
|
package/dist/Stack.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../src/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../src/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,4CAErC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Stack } from './Stack';
|
|
3
|
+
declare const meta: Meta<typeof Stack>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Stack>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AlignedCenter: Story;
|
|
8
|
+
export declare const JustifyEnd: Story;
|
|
9
|
+
//# sourceMappingURL=Stack.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../src/Stack.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CA2B5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAepC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAiB3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAgBxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.test.d.ts","sourceRoot":"","sources":["../src/Stack.test.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,2BAA2B,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|