@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@likec4/styles
2
2
 
3
- Shared utilities for [PandaCSS](https://panda-css.com/)
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 {
@@ -10,7 +10,6 @@ export interface BleedProperties {
10
10
  block?: SystemProperties["marginBlock"]
11
11
  }
12
12
 
13
-
14
13
  interface BleedStyles extends BleedProperties, DistributiveOmit<SystemStyleObject, keyof BleedProperties > {}
15
14
 
16
15
  interface BleedPatternFn {
@@ -9,7 +9,6 @@ export interface BoxProperties {
9
9
 
10
10
  }
11
11
 
12
-
13
12
  interface BoxStyles extends BoxProperties, DistributiveOmit<SystemStyleObject, keyof BoxProperties > {}
14
13
 
15
14
  interface BoxPatternFn {
@@ -9,7 +9,6 @@ export interface CenterProperties {
9
9
  inline?: ConditionalValue<boolean>
10
10
  }
11
11
 
12
-
13
12
  interface CenterStyles extends CenterProperties, DistributiveOmit<SystemStyleObject, keyof CenterProperties > {}
14
13
 
15
14
  interface CenterPatternFn {
@@ -9,7 +9,6 @@ export interface CircleProperties {
9
9
  size?: SystemProperties["width"]
10
10
  }
11
11
 
12
-
13
12
  interface CircleStyles extends CircleProperties, DistributiveOmit<SystemStyleObject, keyof CircleProperties > {}
14
13
 
15
14
  interface CirclePatternFn {
@@ -9,7 +9,6 @@ export interface ContainerProperties {
9
9
 
10
10
  }
11
11
 
12
-
13
12
  interface ContainerStyles extends ContainerProperties, DistributiveOmit<SystemStyleObject, keyof ContainerProperties > {}
14
13
 
15
14
  interface ContainerPatternFn {
@@ -10,7 +10,6 @@ export interface CqProperties {
10
10
  type?: SystemProperties["containerType"]
11
11
  }
12
12
 
13
-
14
13
  interface CqStyles extends CqProperties, DistributiveOmit<SystemStyleObject, keyof CqProperties > {}
15
14
 
16
15
  interface CqPatternFn {
@@ -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 {
@@ -15,7 +15,6 @@ export interface FlexProperties {
15
15
  shrink?: SystemProperties["flexShrink"]
16
16
  }
17
17
 
18
-
19
18
  interface FlexStyles extends FlexProperties, DistributiveOmit<SystemStyleObject, keyof FlexProperties > {}
20
19
 
21
20
  interface FlexPatternFn {
@@ -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 {
@@ -14,7 +14,6 @@ export interface GridItemProperties {
14
14
  rowEnd?: ConditionalValue<number>
15
15
  }
16
16
 
17
-
18
17
  interface GridItemStyles extends GridItemProperties, DistributiveOmit<SystemStyleObject, keyof GridItemProperties > {}
19
18
 
20
19
  interface GridItemPatternFn {
@@ -13,7 +13,6 @@ export interface GridProperties {
13
13
  minChildWidth?: ConditionalValue<Tokens["sizes"] | Properties["width"]>
14
14
  }
15
15
 
16
-
17
16
  interface GridStyles extends GridProperties, DistributiveOmit<SystemStyleObject, keyof GridProperties > {}
18
17
 
19
18
  interface GridPatternFn {
@@ -10,7 +10,6 @@ export interface HstackProperties {
10
10
  gap?: SystemProperties["gap"]
11
11
  }
12
12
 
13
-
14
13
  interface HstackStyles extends HstackProperties, DistributiveOmit<SystemStyleObject, keyof HstackProperties > {}
15
14
 
16
15
  interface HstackPatternFn {
@@ -9,7 +9,6 @@ export interface LinkOverlayProperties {
9
9
 
10
10
  }
11
11
 
12
-
13
12
  interface LinkOverlayStyles extends LinkOverlayProperties, DistributiveOmit<SystemStyleObject, keyof LinkOverlayProperties > {}
14
13
 
15
14
  interface LinkOverlayPatternFn {
@@ -9,7 +9,6 @@ export interface SpacerProperties {
9
9
  size?: ConditionalValue<Tokens["spacing"]>
10
10
  }
11
11
 
12
-
13
12
  interface SpacerStyles extends SpacerProperties, DistributiveOmit<SystemStyleObject, keyof SpacerProperties > {}
14
13
 
15
14
  interface SpacerPatternFn {
@@ -9,7 +9,6 @@ export interface SquareProperties {
9
9
  size?: SystemProperties["width"]
10
10
  }
11
11
 
12
-
13
12
  interface SquareStyles extends SquareProperties, DistributiveOmit<SystemStyleObject, keyof SquareProperties > {}
14
13
 
15
14
  interface SquarePatternFn {
@@ -12,7 +12,6 @@ export interface StackProperties {
12
12
  gap?: SystemProperties["gap"]
13
13
  }
14
14
 
15
-
16
15
  interface StackStyles extends StackProperties, DistributiveOmit<SystemStyleObject, keyof StackProperties > {}
17
16
 
18
17
  interface StackPatternFn {
@@ -9,7 +9,6 @@ export interface VisuallyHiddenProperties {
9
9
 
10
10
  }
11
11
 
12
-
13
12
  interface VisuallyHiddenStyles extends VisuallyHiddenProperties, DistributiveOmit<SystemStyleObject, keyof VisuallyHiddenProperties > {}
14
13
 
15
14
  interface VisuallyHiddenPatternFn {
@@ -10,7 +10,6 @@ export interface VstackProperties {
10
10
  gap?: SystemProperties["gap"]
11
11
  }
12
12
 
13
-
14
13
  interface VstackStyles extends VstackProperties, DistributiveOmit<SystemStyleObject, keyof VstackProperties > {}
15
14
 
16
15
  interface VstackPatternFn {
@@ -13,7 +13,6 @@ export interface WrapProperties {
13
13
  justify?: SystemProperties["justifyContent"]
14
14
  }
15
15
 
16
-
17
16
  interface WrapStyles extends WrapProperties, DistributiveOmit<SystemStyleObject, keyof WrapProperties > {}
18
17
 
19
18
  interface WrapPatternFn {
@@ -37,7 +37,5 @@ export interface ActionBtnRecipe {
37
37
 
38
38
  /**
39
39
  * The styles for the Action Buttons
40
-
41
-
42
40
  */
43
41
  export declare const actionBtn: ActionBtnRecipe
@@ -1,3 +1,4 @@
1
1
  /* eslint-disable */
2
2
  export * from './action-btn';
3
- export * from './likec4tag';
3
+ export * from './likec4tag';
4
+ export * from './markdown-block';
@@ -1,2 +1,3 @@
1
1
  export * from './action-btn.mjs';
2
- export * from './likec4tag.mjs';
2
+ export * from './likec4tag.mjs';
3
+ export * from './markdown-block.mjs';
@@ -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
+ })