@likec4/styles 1.32.2 → 1.34.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 +26 -1
- package/dist/patterns/aspect-ratio.d.ts +0 -1
- package/dist/patterns/bleed.d.ts +0 -1
- package/dist/patterns/box.d.ts +0 -1
- package/dist/patterns/center.d.ts +0 -1
- package/dist/patterns/circle.d.ts +0 -1
- package/dist/patterns/container.d.ts +0 -1
- package/dist/patterns/cq.d.ts +0 -1
- package/dist/patterns/divider.d.ts +0 -1
- package/dist/patterns/flex.d.ts +0 -1
- package/dist/patterns/float.d.ts +0 -1
- package/dist/patterns/grid-item.d.ts +0 -1
- package/dist/patterns/grid.d.ts +0 -1
- package/dist/patterns/hstack.d.ts +0 -1
- package/dist/patterns/link-overlay.d.ts +0 -1
- package/dist/patterns/spacer.d.ts +0 -1
- package/dist/patterns/square.d.ts +0 -1
- package/dist/patterns/stack.d.ts +0 -1
- package/dist/patterns/visually-hidden.d.ts +0 -1
- package/dist/patterns/vstack.d.ts +0 -1
- package/dist/patterns/wrap.d.ts +0 -1
- package/dist/recipes/action-btn.d.ts +0 -2
- package/dist/recipes/index.d.ts +2 -1
- package/dist/recipes/index.mjs +2 -1
- package/dist/recipes/markdown-block.d.ts +31 -0
- package/dist/recipes/markdown-block.mjs +31 -0
- package/dist/styles.css +319 -29
- package/dist/tokens/index.mjs +5 -5
- package/dist/tokens/tokens.d.ts +1 -1
- package/dist/types/conditions.d.ts +6 -6
- package/package.json +18 -9
- package/preset.mjs +252 -16
- package/build.config.ts +0 -32
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `@likec4/styles
|
|
2
2
|
|
|
3
|
-
Shared
|
|
3
|
+
Shared preset and generated styles for [PandaCSS](https://panda-css.com/)
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -45,3 +45,28 @@ import pandaCss from '@pandacss/dev/postcss'
|
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
```
|
|
48
|
+
|
|
49
|
+
## Getting help
|
|
50
|
+
|
|
51
|
+
We are always happy to help you get started:
|
|
52
|
+
|
|
53
|
+
- [Join Discord community](https://discord.gg/86ZSpjKAdA) – it is the easiest way to get help
|
|
54
|
+
- [GitHub Discussions](https://github.com/likec4/likec4/discussions) – ask anything about the project or give feedback
|
|
55
|
+
|
|
56
|
+
## Contributors
|
|
57
|
+
|
|
58
|
+
<a href="https://github.com/likec4/likec4/graphs/contributors">
|
|
59
|
+
<img src="https://contrib.rocks/image?repo=likec4/likec4" />
|
|
60
|
+
</a>
|
|
61
|
+
|
|
62
|
+
[Become a contributor](../../CONTRIBUTING.md)
|
|
63
|
+
|
|
64
|
+
## Support development
|
|
65
|
+
|
|
66
|
+
LikeC4 is a MIT-licensed open source project with its ongoing development made possible entirely by your support.\
|
|
67
|
+
If you like the project, please consider contributing financially to help grow and improve it.\
|
|
68
|
+
You can support us via [OpenCollective](https://opencollective.com/likec4) or [GitHub Sponsors](https://github.com/sponsors/likec4).
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
This project is released under the [MIT License](LICENSE)
|
|
@@ -9,7 +9,6 @@ export interface AspectRatioProperties {
|
|
|
9
9
|
ratio?: ConditionalValue<number>
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
13
12
|
interface AspectRatioStyles extends AspectRatioProperties, DistributiveOmit<SystemStyleObject, keyof AspectRatioProperties | 'aspectRatio'> {}
|
|
14
13
|
|
|
15
14
|
interface AspectRatioPatternFn {
|
package/dist/patterns/bleed.d.ts
CHANGED
package/dist/patterns/box.d.ts
CHANGED
package/dist/patterns/cq.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export interface DividerProperties {
|
|
|
11
11
|
color?: ConditionalValue<Tokens["colors"] | Properties["borderColor"]>
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
interface DividerStyles extends DividerProperties, DistributiveOmit<SystemStyleObject, keyof DividerProperties > {}
|
|
16
15
|
|
|
17
16
|
interface DividerPatternFn {
|
package/dist/patterns/flex.d.ts
CHANGED
package/dist/patterns/float.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export interface FloatProperties {
|
|
|
12
12
|
placement?: ConditionalValue<"bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start">
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
interface FloatStyles extends FloatProperties, DistributiveOmit<SystemStyleObject, keyof FloatProperties > {}
|
|
17
16
|
|
|
18
17
|
interface FloatPatternFn {
|
package/dist/patterns/grid.d.ts
CHANGED
package/dist/patterns/stack.d.ts
CHANGED
package/dist/patterns/wrap.d.ts
CHANGED
package/dist/recipes/index.d.ts
CHANGED
package/dist/recipes/index.mjs
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface MarkdownBlockVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
uselikec4palette: boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type MarkdownBlockVariantMap = {
|
|
13
|
+
[key in keyof MarkdownBlockVariant]: Array<MarkdownBlockVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type MarkdownBlockVariantProps = {
|
|
17
|
+
[key in keyof MarkdownBlockVariant]?: ConditionalValue<MarkdownBlockVariant[key]> | undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface MarkdownBlockRecipe {
|
|
21
|
+
__type: MarkdownBlockVariantProps
|
|
22
|
+
(props?: MarkdownBlockVariantProps): string
|
|
23
|
+
raw: (props?: MarkdownBlockVariantProps) => MarkdownBlockVariantProps
|
|
24
|
+
variantMap: MarkdownBlockVariantMap
|
|
25
|
+
variantKeys: Array<keyof MarkdownBlockVariant>
|
|
26
|
+
splitVariantProps<Props extends MarkdownBlockVariantProps>(props: Props): [MarkdownBlockVariantProps, Pretty<DistributiveOmit<Props, keyof MarkdownBlockVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: MarkdownBlockVariantProps) => MarkdownBlockVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const markdownBlock: MarkdownBlockRecipe
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const markdownBlockFn = /* @__PURE__ */ createRecipe('likec4-markdown-block', {
|
|
5
|
+
"uselikec4palette": false
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const markdownBlockVariantMap = {
|
|
9
|
+
"uselikec4palette": [
|
|
10
|
+
"true",
|
|
11
|
+
"false"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const markdownBlockVariantKeys = Object.keys(markdownBlockVariantMap)
|
|
16
|
+
|
|
17
|
+
export const markdownBlock = /* @__PURE__ */ Object.assign(memo(markdownBlockFn.recipeFn), {
|
|
18
|
+
__recipe__: true,
|
|
19
|
+
__name__: 'markdownBlock',
|
|
20
|
+
__getCompoundVariantCss__: markdownBlockFn.__getCompoundVariantCss__,
|
|
21
|
+
raw: (props) => props,
|
|
22
|
+
variantKeys: markdownBlockVariantKeys,
|
|
23
|
+
variantMap: markdownBlockVariantMap,
|
|
24
|
+
merge(recipe) {
|
|
25
|
+
return mergeRecipes(this, recipe)
|
|
26
|
+
},
|
|
27
|
+
splitVariantProps(props) {
|
|
28
|
+
return splitProps(props, markdownBlockVariantKeys)
|
|
29
|
+
},
|
|
30
|
+
getVariantProps: markdownBlockFn.getVariantProps,
|
|
31
|
+
})
|