@likec4/styles 1.47.0 → 1.48.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.
Files changed (139) hide show
  1. package/LICENSE +1 -1
  2. package/css/package.json +1 -1
  3. package/dev.d.mts +3 -0
  4. package/{dev.ts → dev.mjs} +8 -4
  5. package/dist/_chunks/libs/@radix-ui/colors.mjs +3788 -0
  6. package/dist/_chunks/libs/pandacss-preset-radix-colors.mjs +106 -0
  7. package/dist/_chunks/libs/remeda.mjs +164 -0
  8. package/dist/_chunks/rolldown-runtime.mjs +18 -0
  9. package/dist/css/{css.d.ts → css.d.mts} +1 -1
  10. package/dist/css/{cva.d.ts → cva.d.mts} +2 -2
  11. package/dist/css/index.d.mts +5 -0
  12. package/dist/css/sva.d.mts +4 -0
  13. package/dist/jsx/{aspect-ratio.d.ts → aspect-ratio.d.mts} +3 -3
  14. package/dist/jsx/bleed.d.mts +10 -0
  15. package/dist/jsx/box.d.mts +10 -0
  16. package/dist/jsx/center.d.mts +10 -0
  17. package/dist/jsx/circle.d.mts +10 -0
  18. package/dist/jsx/{container.d.ts → container.d.mts} +3 -3
  19. package/dist/jsx/cq.d.mts +10 -0
  20. package/dist/jsx/{create-style-context.d.ts → create-style-context.d.mts} +3 -3
  21. package/dist/jsx/divider.d.mts +10 -0
  22. package/dist/jsx/factory.d.mts +3 -0
  23. package/dist/jsx/flex.d.mts +10 -0
  24. package/dist/jsx/float.d.mts +10 -0
  25. package/dist/jsx/grid-item.d.mts +10 -0
  26. package/dist/jsx/grid.d.mts +10 -0
  27. package/dist/jsx/hstack.d.mts +10 -0
  28. package/dist/jsx/index.d.mts +26 -0
  29. package/dist/jsx/index.mjs +2 -1
  30. package/dist/jsx/{link-overlay.d.ts → link-overlay.d.mts} +3 -3
  31. package/dist/jsx/spacer.d.mts +10 -0
  32. package/dist/jsx/square.d.mts +10 -0
  33. package/dist/jsx/stack.d.mts +10 -0
  34. package/dist/jsx/txt.d.mts +10 -0
  35. package/dist/jsx/txt.mjs +14 -0
  36. package/dist/jsx/{visually-hidden.d.ts → visually-hidden.d.mts} +3 -3
  37. package/dist/jsx/vstack.d.mts +10 -0
  38. package/dist/jsx/wrap.d.mts +10 -0
  39. package/dist/patterns/{aspect-ratio.d.ts → aspect-ratio.d.mts} +5 -5
  40. package/dist/patterns/{bleed.d.ts → bleed.d.mts} +5 -5
  41. package/dist/patterns/{box.d.ts → box.d.mts} +5 -5
  42. package/dist/patterns/{center.d.ts → center.d.mts} +5 -5
  43. package/dist/patterns/{circle.d.ts → circle.d.mts} +5 -5
  44. package/dist/patterns/{container.d.ts → container.d.mts} +5 -5
  45. package/dist/patterns/{cq.d.ts → cq.d.mts} +5 -5
  46. package/dist/patterns/{divider.d.ts → divider.d.mts} +5 -5
  47. package/dist/patterns/{flex.d.ts → flex.d.mts} +5 -5
  48. package/dist/patterns/{float.d.ts → float.d.mts} +5 -5
  49. package/dist/patterns/{grid-item.d.ts → grid-item.d.mts} +5 -5
  50. package/dist/patterns/{grid.d.ts → grid.d.mts} +5 -5
  51. package/dist/patterns/{hstack.d.ts → hstack.d.mts} +5 -5
  52. package/dist/patterns/index.d.mts +22 -0
  53. package/dist/patterns/index.mjs +2 -1
  54. package/dist/patterns/{link-overlay.d.ts → link-overlay.d.mts} +5 -5
  55. package/dist/patterns/{spacer.d.ts → spacer.d.mts} +5 -5
  56. package/dist/patterns/{square.d.ts → square.d.mts} +5 -5
  57. package/dist/patterns/{stack.d.ts → stack.d.mts} +5 -5
  58. package/dist/patterns/txt.d.mts +24 -0
  59. package/dist/patterns/txt.mjs +28 -0
  60. package/dist/patterns/{visually-hidden.d.ts → visually-hidden.d.mts} +5 -5
  61. package/dist/patterns/{vstack.d.ts → vstack.d.mts} +5 -5
  62. package/dist/patterns/{wrap.d.ts → wrap.d.mts} +5 -5
  63. package/dist/preset.d.mts +1237 -1202
  64. package/dist/preset.mjs +3769 -7467
  65. package/dist/recipes/{action-btn.d.ts → action-btn.d.mts} +2 -2
  66. package/dist/recipes/action-buttons.d.mts +33 -0
  67. package/dist/recipes/action-buttons.mjs +24 -0
  68. package/dist/recipes/{compound-node.d.ts → compound-node.d.mts} +12 -3
  69. package/dist/recipes/compound-node.mjs +5 -1
  70. package/dist/recipes/{edge-action-btn.d.ts → edge-action-btn.d.mts} +2 -2
  71. package/dist/recipes/{edge-label.d.ts → edge-label.d.mts} +2 -2
  72. package/dist/recipes/{edge-path.d.ts → edge-path.d.mts} +2 -2
  73. package/dist/recipes/{element-node-data.d.ts → element-node-data.d.mts} +10 -3
  74. package/dist/recipes/element-node-data.mjs +16 -2
  75. package/dist/recipes/{element-node.d.ts → element-node.d.mts} +2 -2
  76. package/dist/recipes/{element-shape-recipe.d.ts → element-shape-recipe.d.mts} +2 -2
  77. package/dist/recipes/index.d.mts +16 -0
  78. package/dist/recipes/index.mjs +1 -0
  79. package/dist/recipes/{likec4tag.d.ts → likec4tag.d.mts} +2 -2
  80. package/dist/recipes/{markdown-block.d.ts → markdown-block.d.mts} +2 -2
  81. package/dist/recipes/{navigation-link.d.ts → navigation-link.d.mts} +2 -2
  82. package/dist/recipes/{navigation-panel-action-icon.d.ts → navigation-panel-action-icon.d.mts} +2 -2
  83. package/dist/recipes/{navigation-panel.d.ts → navigation-panel.d.mts} +6 -2
  84. package/dist/recipes/navigation-panel.mjs +8 -2
  85. package/dist/recipes/{overlay.d.ts → overlay.d.mts} +2 -2
  86. package/dist/tokens/{index.d.ts → index.d.mts} +2 -2
  87. package/dist/tokens/index.mjs +226 -182
  88. package/dist/tokens/tokens.d.mts +51 -0
  89. package/dist/types/{composition.d.ts → composition.d.mts} +4 -1
  90. package/dist/types/{conditions.d.ts → conditions.d.mts} +1 -1
  91. package/dist/types/{global.d.ts → global.d.mts} +5 -5
  92. package/dist/types/index.d.mts +8 -0
  93. package/dist/types/{jsx.d.ts → jsx.d.mts} +2 -2
  94. package/dist/types/{pattern.d.ts → pattern.d.mts} +2 -2
  95. package/dist/types/{prop-type.d.ts → prop-type.d.mts} +5 -5
  96. package/dist/types/{recipe.d.ts → recipe.d.mts} +2 -2
  97. package/dist/types/{selectors.d.ts → selectors.d.mts} +1 -1
  98. package/dist/types/{style-props.d.ts → style-props.d.mts} +38 -38
  99. package/dist/types/{system-types.d.ts → system-types.d.mts} +3 -3
  100. package/dist/vars/index.d.mts +417 -0
  101. package/dist/vars/index.mjs +426 -0
  102. package/jsx/package.json +1 -1
  103. package/package.json +41 -30
  104. package/patterns/package.json +1 -1
  105. package/recipes/package.json +1 -1
  106. package/tokens/package.json +1 -1
  107. package/types/package.json +1 -1
  108. package/vars/package.json +4 -0
  109. package/dist/css/index.d.ts +0 -5
  110. package/dist/css/sva.d.ts +0 -4
  111. package/dist/jsx/bleed.d.ts +0 -10
  112. package/dist/jsx/box.d.ts +0 -10
  113. package/dist/jsx/center.d.ts +0 -10
  114. package/dist/jsx/circle.d.ts +0 -10
  115. package/dist/jsx/cq.d.ts +0 -10
  116. package/dist/jsx/divider.d.ts +0 -10
  117. package/dist/jsx/factory.d.ts +0 -3
  118. package/dist/jsx/flex.d.ts +0 -10
  119. package/dist/jsx/float.d.ts +0 -10
  120. package/dist/jsx/grid-item.d.ts +0 -10
  121. package/dist/jsx/grid.d.ts +0 -10
  122. package/dist/jsx/hstack.d.ts +0 -10
  123. package/dist/jsx/index.d.ts +0 -25
  124. package/dist/jsx/spacer.d.ts +0 -10
  125. package/dist/jsx/square.d.ts +0 -10
  126. package/dist/jsx/stack.d.ts +0 -10
  127. package/dist/jsx/vstack.d.ts +0 -10
  128. package/dist/jsx/wrap.d.ts +0 -10
  129. package/dist/patterns/index.d.ts +0 -21
  130. package/dist/recipes/index.d.ts +0 -15
  131. package/dist/tokens/tokens.d.ts +0 -51
  132. package/dist/types/index.d.ts +0 -8
  133. package/panda.config.ts +0 -10
  134. package/preset.ts +0 -3
  135. /package/dist/css/{cx.d.ts → cx.d.mts} +0 -0
  136. /package/dist/jsx/{is-valid-prop.d.ts → is-valid-prop.d.mts} +0 -0
  137. /package/dist/types/{csstype.d.ts → csstype.d.mts} +0 -0
  138. /package/dist/types/{parts.d.ts → parts.d.mts} +0 -0
  139. /package/dist/types/{static-css.d.ts → static-css.d.mts} +0 -0
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface AspectRatioProperties {
9
9
  ratio?: ConditionalValue<number>
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface BleedProperties {
9
9
  inline?: SystemProperties["marginInline"]
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface BoxProperties {
9
9
 
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface CenterProperties {
9
9
  inline?: ConditionalValue<boolean>
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface CircleProperties {
9
9
  size?: SystemProperties["width"]
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface ContainerProperties {
9
9
 
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface CqProperties {
9
9
  name?: ConditionalValue<Tokens["containerNames"] | Properties["containerName"]>
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface DividerProperties {
9
9
  orientation?: "horizontal" | "vertical"
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface FlexProperties {
9
9
  align?: SystemProperties["alignItems"]
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface FloatProperties {
9
9
  offsetX?: ConditionalValue<Tokens["spacing"] | Properties["left"]>
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface GridItemProperties {
9
9
  colSpan?: ConditionalValue<number>
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface GridProperties {
9
9
  gap?: SystemProperties["gap"]
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface HstackProperties {
9
9
  justify?: SystemProperties["justifyContent"]
@@ -0,0 +1,22 @@
1
+ /* eslint-disable */
2
+ export * from './box.d.mts';
3
+ export * from './flex.d.mts';
4
+ export * from './stack.d.mts';
5
+ export * from './vstack.d.mts';
6
+ export * from './hstack.d.mts';
7
+ export * from './spacer.d.mts';
8
+ export * from './square.d.mts';
9
+ export * from './circle.d.mts';
10
+ export * from './center.d.mts';
11
+ export * from './link-overlay.d.mts';
12
+ export * from './aspect-ratio.d.mts';
13
+ export * from './grid.d.mts';
14
+ export * from './grid-item.d.mts';
15
+ export * from './wrap.d.mts';
16
+ export * from './container.d.mts';
17
+ export * from './divider.d.mts';
18
+ export * from './float.d.mts';
19
+ export * from './bleed.d.mts';
20
+ export * from './visually-hidden.d.mts';
21
+ export * from './cq.d.mts';
22
+ export * from './txt.d.mts';
@@ -17,4 +17,5 @@ export * from './divider.mjs';
17
17
  export * from './float.mjs';
18
18
  export * from './bleed.mjs';
19
19
  export * from './visually-hidden.mjs';
20
- export * from './cq.mjs';
20
+ export * from './cq.mjs';
21
+ export * from './txt.mjs';
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface LinkOverlayProperties {
9
9
 
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface SpacerProperties {
9
9
  size?: ConditionalValue<Tokens["spacing"]>
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface SquareProperties {
9
9
  size?: SystemProperties["width"]
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface StackProperties {
9
9
  align?: SystemProperties["alignItems"]
@@ -0,0 +1,24 @@
1
+ /* eslint-disable */
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
+
8
+ export interface TxtProperties {
9
+ inline?: ConditionalValue<boolean>
10
+ dimmed?: ConditionalValue<boolean>
11
+ lh?: ConditionalValue<Tokens["lineHeights"]>
12
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl"
13
+ likec4color?: "amber" | "blue" | "gray" | "slate" | "green" | "indigo" | "muted" | "primary" | "red" | "secondary" | "sky"
14
+ }
15
+
16
+ interface TxtStyles extends TxtProperties, DistributiveOmit<SystemStyleObject, keyof TxtProperties > {}
17
+
18
+ interface TxtPatternFn {
19
+ (styles?: TxtStyles): string
20
+ raw: (styles?: TxtStyles) => SystemStyleObject
21
+ }
22
+
23
+
24
+ export declare const txt: TxtPatternFn;
@@ -0,0 +1,28 @@
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
+ import { css } from '../css/index.mjs';
3
+
4
+ const txtConfig = {
5
+ transform(props, _helpers) {
6
+ const { inline, size, dimmed, lh, likec4color, ...rest } = props;
7
+ if (dimmed && likec4color) {
8
+ throw new Error("dimmed and likec4color are mutually exclusive");
9
+ }
10
+ return {
11
+ userSelect: "all",
12
+ cursor: "default",
13
+ textStyle: dimmed ? `dimmed.${size}` : size,
14
+ ...inline && { display: "inline-block" },
15
+ ...lh && { lineHeight: lh },
16
+ ...likec4color && { "data-likec4-color": likec4color },
17
+ ...rest
18
+ };
19
+ },
20
+ defaultValues:{inline:false,dimmed:false,size:'md'}}
21
+
22
+ export const getTxtStyle = (styles = {}) => {
23
+ const _styles = getPatternStyles(txtConfig, styles)
24
+ return txtConfig.transform(_styles, patternFns)
25
+ }
26
+
27
+ export const txt = (styles) => css(getTxtStyle(styles))
28
+ txt.raw = getTxtStyle
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface VisuallyHiddenProperties {
9
9
 
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface VstackProperties {
9
9
  justify?: SystemProperties["justifyContent"]
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface WrapProperties {
9
9
  gap?: SystemProperties["gap"]