@dynatrace/strato-components 0.85.10 → 0.85.21

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 (230) hide show
  1. package/buttons/button/Button.css +1 -0
  2. package/buttons/index.d.ts +2 -0
  3. package/buttons/index.js +2 -0
  4. package/buttons/intent-button/IntentButton.d.ts +44 -0
  5. package/buttons/intent-button/IntentButton.js +102 -0
  6. package/buttons/intent-button/useIntentButton.d.ts +12 -0
  7. package/buttons/intent-button/useIntentButton.js +72 -0
  8. package/content/index.d.ts +4 -0
  9. package/content/index.js +5 -1
  10. package/content/skeleton/Skeleton.css +33 -0
  11. package/content/skeleton/Skeleton.d.ts +30 -0
  12. package/content/skeleton/Skeleton.js +60 -0
  13. package/content/skeleton/Skeleton.sty.d.ts +10 -0
  14. package/content/skeleton/Skeleton.sty.js +25 -0
  15. package/content/skeleton/SkeletonText.d.ts +24 -0
  16. package/content/skeleton/SkeletonText.js +84 -0
  17. package/esm/buttons/button/Button.css +1 -0
  18. package/esm/buttons/index.js +2 -0
  19. package/esm/buttons/index.js.map +2 -2
  20. package/esm/buttons/intent-button/IntentButton.js +74 -0
  21. package/esm/buttons/intent-button/IntentButton.js.map +7 -0
  22. package/esm/buttons/intent-button/useIntentButton.js +57 -0
  23. package/esm/buttons/intent-button/useIntentButton.js.map +7 -0
  24. package/esm/content/index.js +5 -1
  25. package/esm/content/index.js.map +2 -2
  26. package/esm/content/skeleton/Skeleton.css +33 -0
  27. package/esm/content/skeleton/Skeleton.js +32 -0
  28. package/esm/content/skeleton/Skeleton.js.map +7 -0
  29. package/esm/content/skeleton/Skeleton.sty.js +7 -0
  30. package/esm/content/skeleton/Skeleton.sty.js.map +7 -0
  31. package/esm/content/skeleton/SkeletonText.js +56 -0
  32. package/esm/content/skeleton/SkeletonText.js.map +7 -0
  33. package/esm/layouts/{Divider → divider}/Divider.css +5 -5
  34. package/esm/layouts/{Divider → divider}/Divider.js.map +1 -1
  35. package/esm/layouts/{Divider → divider}/Divider.sty.js +1 -1
  36. package/esm/layouts/{Divider → divider}/Divider.sty.js.map +2 -2
  37. package/esm/layouts/helpers/spacingToCss.js +13 -0
  38. package/esm/layouts/helpers/spacingToCss.js.map +7 -0
  39. package/esm/layouts/hooks/useLayoutSizeProps.js +15 -0
  40. package/esm/layouts/hooks/useLayoutSizeProps.js.map +7 -0
  41. package/esm/layouts/hooks/useLayoutStyles.js +105 -0
  42. package/esm/layouts/hooks/useLayoutStyles.js.map +7 -0
  43. package/esm/layouts/hooks/useMarginProps.js +55 -0
  44. package/esm/layouts/hooks/useMarginProps.js.map +7 -0
  45. package/esm/layouts/hooks/usePaddingProps.js +59 -0
  46. package/esm/layouts/hooks/usePaddingProps.js.map +7 -0
  47. package/esm/layouts/index.js +6 -2
  48. package/esm/layouts/index.js.map +2 -2
  49. package/esm/layouts/surface/Surface.css +95 -0
  50. package/esm/layouts/surface/Surface.js +84 -0
  51. package/esm/layouts/surface/Surface.js.map +7 -0
  52. package/esm/layouts/surface/Surface.sty.js +10 -0
  53. package/esm/layouts/surface/Surface.sty.js.map +7 -0
  54. package/esm/layouts/surface/variables.sty.js +5 -0
  55. package/esm/layouts/surface/variables.sty.js.map +7 -0
  56. package/esm/layouts/types/layout.types.js +1 -0
  57. package/esm/layouts/types/layout.types.js.map +7 -0
  58. package/esm/typography/{BlockQuote → block-quote}/Blockquote.css +2 -2
  59. package/esm/typography/{BlockQuote → block-quote}/Blockquote.js.map +2 -2
  60. package/esm/typography/{BlockQuote → block-quote}/Blockquote.sty.js +1 -1
  61. package/esm/typography/{BlockQuote → block-quote}/Blockquote.sty.js.map +2 -2
  62. package/{typography/Code → esm/typography/code}/Code.css +1 -1
  63. package/esm/typography/{Code → code}/Code.js.map +2 -2
  64. package/esm/typography/{Code → code}/Code.sty.js +1 -1
  65. package/esm/typography/{Code → code}/Code.sty.js.map +2 -2
  66. package/esm/typography/{Emphasis → emphasis}/Emphasis.css +1 -1
  67. package/esm/typography/{Emphasis → emphasis}/Emphasis.js.map +2 -2
  68. package/esm/typography/{Emphasis → emphasis}/Emphasis.sty.js +1 -1
  69. package/esm/typography/{Emphasis → emphasis}/Emphasis.sty.js.map +2 -2
  70. package/{typography/ExternalLink → esm/typography/external-link}/ExternalLink.css +6 -6
  71. package/esm/typography/{ExternalLink → external-link}/ExternalLink.js.map +2 -2
  72. package/esm/typography/{ExternalLink → external-link}/ExternalLink.sty.js +1 -1
  73. package/esm/typography/{ExternalLink → external-link}/ExternalLink.sty.js.map +2 -2
  74. package/esm/typography/{Heading → heading}/Heading.css +7 -7
  75. package/esm/typography/heading/Heading.js.map +7 -0
  76. package/esm/typography/heading/Heading.sty.js +7 -0
  77. package/esm/typography/{Heading → heading}/Heading.sty.js.map +2 -2
  78. package/esm/typography/{Highlight → highlight}/Highlight.css +1 -1
  79. package/esm/typography/{Highlight → highlight}/Highlight.js.map +2 -2
  80. package/esm/typography/{Highlight → highlight}/Highlight.sty.js +1 -1
  81. package/esm/typography/{Highlight → highlight}/Highlight.sty.js.map +2 -2
  82. package/esm/typography/index.js +13 -13
  83. package/esm/typography/index.js.map +1 -1
  84. package/{typography/Link → esm/typography/link}/Link.css +4 -4
  85. package/esm/typography/{Link → link}/Link.js +1 -1
  86. package/esm/typography/link/Link.js.map +7 -0
  87. package/esm/typography/{Link → link}/Link.sty.js +1 -1
  88. package/esm/typography/{Link → link}/Link.sty.js.map +2 -2
  89. package/esm/typography/{List → list}/List.css +4 -4
  90. package/esm/typography/{List → list}/List.js +1 -1
  91. package/esm/typography/{List → list}/List.js.map +2 -2
  92. package/esm/typography/{List → list}/List.sty.js +2 -2
  93. package/esm/typography/{List → list}/List.sty.js.map +2 -2
  94. package/esm/typography/{Paragraph → paragraph}/Paragraph.css +3 -3
  95. package/esm/typography/{Paragraph → paragraph}/Paragraph.js.map +2 -2
  96. package/esm/typography/{Paragraph → paragraph}/Paragraph.sty.js +1 -1
  97. package/esm/typography/{Paragraph → paragraph}/Paragraph.sty.js.map +2 -2
  98. package/{typography/Strikethrough → esm/typography/strikethrough}/Strikethrough.css +1 -1
  99. package/esm/typography/strikethrough/Strikethrough.js.map +7 -0
  100. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
  101. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js.map +2 -2
  102. package/{typography/Strong → esm/typography/strong}/Strong.css +1 -1
  103. package/esm/typography/{Strong → strong}/Strong.js.map +2 -2
  104. package/esm/typography/{Strong → strong}/Strong.sty.js +1 -1
  105. package/esm/typography/{Strong → strong}/Strong.sty.js.map +2 -2
  106. package/{typography/Text → esm/typography/text}/Text.css +3 -3
  107. package/esm/typography/text/Text.js.map +7 -0
  108. package/esm/typography/{Text → text}/Text.sty.js +1 -1
  109. package/esm/typography/{Text → text}/Text.sty.js.map +2 -2
  110. package/{typography/TextEllipsis → esm/typography/text-ellipsis}/TextEllipsis.css +4 -4
  111. package/esm/typography/text-ellipsis/TextEllipsis.js.map +7 -0
  112. package/esm/typography/text-ellipsis/TextEllipsis.sty.js +7 -0
  113. package/esm/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js.map +2 -2
  114. package/lang/en.json +6 -0
  115. package/lang/ja.json +24 -0
  116. package/lang/uncompiled/en.json +4 -0
  117. package/lang/uncompiled/ja.json +14 -1
  118. package/layouts/{Divider → divider}/Divider.css +5 -5
  119. package/layouts/{Divider → divider}/Divider.sty.js +1 -1
  120. package/layouts/helpers/spacingToCss.d.ts +6 -0
  121. package/layouts/helpers/spacingToCss.js +29 -0
  122. package/layouts/hooks/useLayoutSizeProps.d.ts +6 -0
  123. package/layouts/hooks/useLayoutSizeProps.js +33 -0
  124. package/layouts/hooks/useLayoutStyles.d.ts +7 -0
  125. package/layouts/hooks/useLayoutStyles.js +123 -0
  126. package/layouts/hooks/useMarginProps.d.ts +7 -0
  127. package/layouts/hooks/useMarginProps.js +73 -0
  128. package/layouts/hooks/usePaddingProps.d.ts +7 -0
  129. package/layouts/hooks/usePaddingProps.js +77 -0
  130. package/layouts/index.d.ts +6 -2
  131. package/layouts/index.js +6 -2
  132. package/layouts/surface/Surface.css +95 -0
  133. package/layouts/surface/Surface.d.ts +46 -0
  134. package/layouts/surface/Surface.js +110 -0
  135. package/layouts/surface/Surface.sty.d.ts +43 -0
  136. package/layouts/surface/Surface.sty.js +28 -0
  137. package/layouts/surface/variables.sty.d.ts +1 -0
  138. package/layouts/surface/variables.sty.js +23 -0
  139. package/layouts/types/layout.types.d.ts +64 -0
  140. package/layouts/types/layout.types.js +15 -0
  141. package/package.json +2 -2
  142. package/typography/{BlockQuote → block-quote}/Blockquote.css +2 -2
  143. package/typography/{BlockQuote → block-quote}/Blockquote.sty.js +1 -1
  144. package/{esm/typography/Code → typography/code}/Code.css +1 -1
  145. package/typography/{Code → code}/Code.sty.js +1 -1
  146. package/typography/{Emphasis → emphasis}/Emphasis.css +1 -1
  147. package/typography/{Emphasis → emphasis}/Emphasis.sty.js +1 -1
  148. package/{esm/typography/ExternalLink → typography/external-link}/ExternalLink.css +6 -6
  149. package/typography/{ExternalLink → external-link}/ExternalLink.sty.js +1 -1
  150. package/typography/{Heading → heading}/Heading.css +7 -7
  151. package/typography/{Heading → heading}/Heading.d.ts +3 -2
  152. package/typography/{Heading → heading}/Heading.sty.js +1 -1
  153. package/typography/{Highlight → highlight}/Highlight.css +1 -1
  154. package/typography/{Highlight → highlight}/Highlight.sty.js +1 -1
  155. package/typography/index.d.ts +26 -26
  156. package/typography/index.js +13 -13
  157. package/{esm/typography/Link → typography/link}/Link.css +4 -4
  158. package/typography/{Link → link}/Link.js +1 -1
  159. package/typography/{Link → link}/Link.sty.js +1 -1
  160. package/typography/{List → list}/List.css +4 -4
  161. package/typography/{List → list}/List.js +1 -1
  162. package/typography/{List → list}/List.sty.js +2 -2
  163. package/typography/{Paragraph → paragraph}/Paragraph.css +3 -3
  164. package/typography/{Paragraph → paragraph}/Paragraph.sty.js +1 -1
  165. package/{esm/typography/Strikethrough → typography/strikethrough}/Strikethrough.css +1 -1
  166. package/typography/{Strikethrough → strikethrough}/Strikethrough.d.ts +2 -2
  167. package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
  168. package/{esm/typography/Strong → typography/strong}/Strong.css +1 -1
  169. package/typography/{Strong → strong}/Strong.sty.js +1 -1
  170. package/{esm/typography/Text → typography/text}/Text.css +3 -3
  171. package/typography/{Text → text}/Text.d.ts +3 -2
  172. package/typography/{Text → text}/Text.sty.js +1 -1
  173. package/{esm/typography/TextEllipsis → typography/text-ellipsis}/TextEllipsis.css +4 -4
  174. package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.d.ts +3 -3
  175. package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js +1 -1
  176. package/esm/typography/Heading/Heading.js.map +0 -7
  177. package/esm/typography/Heading/Heading.sty.js +0 -7
  178. package/esm/typography/Link/Link.js.map +0 -7
  179. package/esm/typography/Strikethrough/Strikethrough.js.map +0 -7
  180. package/esm/typography/Text/Text.js.map +0 -7
  181. package/esm/typography/TextEllipsis/TextEllipsis.js.map +0 -7
  182. package/esm/typography/TextEllipsis/TextEllipsis.sty.js +0 -7
  183. package/esm/layouts/{Divider → divider}/Divider.js +0 -0
  184. package/esm/typography/{BlockQuote → block-quote}/Blockquote.js +0 -0
  185. package/esm/typography/{Code → code}/Code.js +0 -0
  186. package/esm/typography/{Emphasis → emphasis}/Emphasis.js +0 -0
  187. package/esm/typography/{ExternalLink → external-link}/ExternalLink.js +0 -0
  188. package/esm/typography/{Heading → heading}/Heading.js +0 -0
  189. package/esm/typography/{Highlight → highlight}/Highlight.js +0 -0
  190. package/esm/typography/{Paragraph → paragraph}/Paragraph.js +0 -0
  191. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.js +0 -0
  192. package/esm/typography/{Strong → strong}/Strong.js +0 -0
  193. package/esm/typography/{Text → text}/Text.js +0 -0
  194. package/esm/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.js +0 -0
  195. package/layouts/{Divider → divider}/Divider.d.ts +0 -0
  196. package/layouts/{Divider → divider}/Divider.js +0 -0
  197. package/layouts/{Divider → divider}/Divider.sty.d.ts +0 -0
  198. package/typography/{BlockQuote → block-quote}/Blockquote.d.ts +1 -1
  199. package/typography/{BlockQuote → block-quote}/Blockquote.js +0 -0
  200. package/typography/{BlockQuote → block-quote}/Blockquote.sty.d.ts +0 -0
  201. package/typography/{Code → code}/Code.d.ts +1 -1
  202. package/typography/{Code → code}/Code.js +0 -0
  203. package/typography/{Code → code}/Code.sty.d.ts +0 -0
  204. package/typography/{Emphasis → emphasis}/Emphasis.d.ts +1 -1
  205. package/typography/{Emphasis → emphasis}/Emphasis.js +0 -0
  206. package/typography/{Emphasis → emphasis}/Emphasis.sty.d.ts +0 -0
  207. package/typography/{ExternalLink → external-link}/ExternalLink.d.ts +1 -1
  208. package/typography/{ExternalLink → external-link}/ExternalLink.js +0 -0
  209. package/typography/{ExternalLink → external-link}/ExternalLink.sty.d.ts +0 -0
  210. package/typography/{Heading → heading}/Heading.js +0 -0
  211. package/typography/{Heading → heading}/Heading.sty.d.ts +0 -0
  212. package/typography/{Highlight → highlight}/Highlight.d.ts +1 -1
  213. package/typography/{Highlight → highlight}/Highlight.js +0 -0
  214. package/typography/{Highlight → highlight}/Highlight.sty.d.ts +0 -0
  215. package/typography/{Link → link}/Link.d.ts +1 -1
  216. package/typography/{Link → link}/Link.sty.d.ts +0 -0
  217. package/typography/{List → list}/List.d.ts +1 -1
  218. package/typography/{List → list}/List.sty.d.ts +0 -0
  219. package/typography/{Paragraph → paragraph}/Paragraph.d.ts +1 -1
  220. package/typography/{Paragraph → paragraph}/Paragraph.js +0 -0
  221. package/typography/{Paragraph → paragraph}/Paragraph.sty.d.ts +0 -0
  222. package/typography/{Strikethrough → strikethrough}/Strikethrough.js +0 -0
  223. package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.d.ts +0 -0
  224. package/typography/{Strong → strong}/Strong.d.ts +1 -1
  225. /package/typography/{Strong → strong}/Strong.js +0 -0
  226. /package/typography/{Strong → strong}/Strong.sty.d.ts +0 -0
  227. /package/typography/{Text → text}/Text.js +0 -0
  228. /package/typography/{Text → text}/Text.sty.d.ts +0 -0
  229. /package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.js +0 -0
  230. /package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/typography/TextEllipsis/TextEllipsis.css.ts"],
4
- "sourcesContent": ["import './TextEllipsis.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var textEllipsisCSS = _7a468({defaultClassName:'TextEllipsis_textEllipsisCSS__1n6xzhd0',variantClassNames:{truncationMode:{start:'TextEllipsis_textEllipsisCSS_truncationMode_start__1n6xzhd1',middle:'TextEllipsis_textEllipsisCSS_truncationMode_middle__1n6xzhd2',end:'TextEllipsis_textEllipsisCSS_truncationMode_end__1n6xzhd3'}},defaultVariants:{},compoundVariants:[]});"],
3
+ "sources": ["../../../../src/typography/text-ellipsis/TextEllipsis.css.ts"],
4
+ "sourcesContent": ["import './TextEllipsis.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var textEllipsisCSS = _7a468({defaultClassName:'TextEllipsis_textEllipsisCSS__1mnpbqs0',variantClassNames:{truncationMode:{start:'TextEllipsis_textEllipsisCSS_truncationMode_start__1mnpbqs1',middle:'TextEllipsis_textEllipsisCSS_truncationMode_middle__1mnpbqs2',end:'TextEllipsis_textEllipsisCSS_truncationMode_end__1mnpbqs3'}},defaultVariants:{},compoundVariants:[]});"],
5
5
  "mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,kBAAkB,OAAO,EAAC,kBAAiB,0CAAyC,mBAAkB,EAAC,gBAAe,EAAC,OAAM,+DAA8D,QAAO,gEAA+D,KAAI,4DAA2D,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;",
6
6
  "names": []
7
7
  }
package/lang/en.json CHANGED
@@ -5,6 +5,12 @@
5
5
  "value": "Loading"
6
6
  }
7
7
  ],
8
+ "JQOGuaGgqJObmSY1": [
9
+ {
10
+ "type": 0,
11
+ "value": "Open with"
12
+ }
13
+ ],
8
14
  "JzYy8MUVfPcyf4l5": [
9
15
  {
10
16
  "type": 0,
package/lang/ja.json CHANGED
@@ -1,2 +1,26 @@
1
1
  {
2
+ "3J6qHQEUwDxvZuIl": [
3
+ {
4
+ "type": 0,
5
+ "value": "ロードしています"
6
+ }
7
+ ],
8
+ "JQOGuaGgqJObmSY1": [
9
+ {
10
+ "type": 0,
11
+ "value": "プログラムから開く"
12
+ }
13
+ ],
14
+ "JzYy8MUVfPcyf4l5": [
15
+ {
16
+ "type": 0,
17
+ "value": "リンクを新しいウィンドウで開く"
18
+ }
19
+ ],
20
+ "cycz+bYG+VH7Of4e": [
21
+ {
22
+ "type": 0,
23
+ "value": "ロードしています"
24
+ }
25
+ ]
2
26
  }
@@ -3,6 +3,10 @@
3
3
  "notes": "Default label for the progress-bar.",
4
4
  "translation": "Loading"
5
5
  },
6
+ "JQOGuaGgqJObmSY1": {
7
+ "notes": "Intent button open label",
8
+ "translation": "Open with"
9
+ },
6
10
  "JzYy8MUVfPcyf4l5": {
7
11
  "notes": "External link icon that describes the external link icon",
8
12
  "translation": "Opening the link in a new window"
@@ -1 +1,14 @@
1
- {}
1
+ {
2
+ "3J6qHQEUwDxvZuIl": {
3
+ "translation": "ロードしています"
4
+ },
5
+ "JQOGuaGgqJObmSY1": {
6
+ "translation": "プログラムから開く"
7
+ },
8
+ "JzYy8MUVfPcyf4l5": {
9
+ "translation": "リンクを新しいウィンドウで開く"
10
+ },
11
+ "cycz+bYG+VH7Of4e": {
12
+ "translation": "ロードしています"
13
+ }
14
+ }
@@ -1,21 +1,21 @@
1
- .Divider_dividerCSS__1ljcfp90 {
1
+ .Divider_dividerCSS__1thxv8m0 {
2
2
  border: none;
3
3
  margin: 0;
4
4
  overflow-wrap: break-word;
5
5
  background-color: var(--vars_borderColor__k096v42);
6
6
  }
7
- .Divider_dividerCSS_orientation_horizontal__1ljcfp91 {
7
+ .Divider_dividerCSS_orientation_horizontal__1thxv8m1 {
8
8
  width: 100%;
9
9
  height: var(--dt-borders-width-default, 1px);
10
10
  }
11
- .Divider_dividerCSS_orientation_vertical__1ljcfp92 {
11
+ .Divider_dividerCSS_orientation_vertical__1thxv8m2 {
12
12
  width: var(--dt-borders-width-default, 1px);
13
13
  height: 100%;
14
14
  }
15
- .Divider_dividerCSS_compound_0__1ljcfp95 {
15
+ .Divider_dividerCSS_compound_0__1thxv8m5 {
16
16
  flex-shrink: 0;
17
17
  }
18
- .Divider_dividerCSS_compound_1__1ljcfp96 {
18
+ .Divider_dividerCSS_compound_1__1thxv8m6 {
19
19
  flex-shrink: 0;
20
20
  width: var(--dt-borders-width-default, 1px);
21
21
  height: auto;
@@ -23,4 +23,4 @@ module.exports = __toCommonJS(Divider_css_exports);
23
23
  var import_colorUtils_css_ts_vanilla = require("../../core/utils/colorUtils.css");
24
24
  var import_Divider_css_ts_vanilla = require("./Divider.css");
25
25
  var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
26
- var dividerCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "Divider_dividerCSS__1ljcfp90", variantClassNames: { orientation: { horizontal: "Divider_dividerCSS_orientation_horizontal__1ljcfp91", vertical: "Divider_dividerCSS_orientation_vertical__1ljcfp92" }, flexItem: { true: "Divider_dividerCSS_flexItem_true__1ljcfp93", false: "Divider_dividerCSS_flexItem_false__1ljcfp94" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "Divider_dividerCSS_compound_0__1ljcfp95"], [{ orientation: "vertical", flexItem: true }, "Divider_dividerCSS_compound_1__1ljcfp96"]] });
26
+ var dividerCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "Divider_dividerCSS__1thxv8m0", variantClassNames: { orientation: { horizontal: "Divider_dividerCSS_orientation_horizontal__1thxv8m1", vertical: "Divider_dividerCSS_orientation_vertical__1thxv8m2" }, flexItem: { true: "Divider_dividerCSS_flexItem_true__1thxv8m3", false: "Divider_dividerCSS_flexItem_false__1thxv8m4" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "Divider_dividerCSS_compound_0__1thxv8m5"], [{ orientation: "vertical", flexItem: true }, "Divider_dividerCSS_compound_1__1thxv8m6"]] });
@@ -0,0 +1,6 @@
1
+ import { type MarginProperties } from '../../styles/sprinkle-properties.js';
2
+ /**
3
+ * Converts a spacing token to its corresponding CSS value.
4
+ * @internal
5
+ */
6
+ export declare const spacingToCss: (spacingToken: MarginProperties | undefined) => number | string | undefined;
@@ -0,0 +1,29 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var spacingToCss_exports = {};
19
+ __export(spacingToCss_exports, {
20
+ spacingToCss: () => spacingToCss
21
+ });
22
+ module.exports = __toCommonJS(spacingToCss_exports);
23
+ var import_sprinkle_properties = require("../../styles/sprinkle-properties.js");
24
+ const spacingToCss = (spacingToken) => {
25
+ if (spacingToken === void 0) {
26
+ return void 0;
27
+ }
28
+ return import_sprinkle_properties.marginProperties[spacingToken];
29
+ };
@@ -0,0 +1,6 @@
1
+ import type { LayoutSizeProps, LayoutSizeCSS } from '../types/layout.types.js';
2
+ /**
3
+ * Returns the layout size properties.
4
+ * @internal
5
+ */
6
+ export declare const useLayoutSizeProps: (props: LayoutSizeProps) => LayoutSizeCSS;
@@ -0,0 +1,33 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var useLayoutSizeProps_exports = {};
19
+ __export(useLayoutSizeProps_exports, {
20
+ useLayoutSizeProps: () => useLayoutSizeProps
21
+ });
22
+ module.exports = __toCommonJS(useLayoutSizeProps_exports);
23
+ const useLayoutSizeProps = (props) => {
24
+ const { width, minWidth, maxWidth, height, minHeight, maxHeight } = props;
25
+ return {
26
+ width,
27
+ minWidth,
28
+ maxWidth,
29
+ height,
30
+ minHeight,
31
+ maxHeight
32
+ };
33
+ };
@@ -0,0 +1,7 @@
1
+ import type { SurfaceProps } from '../surface/Surface.js';
2
+ import type { LayoutStyles, DefaultStyles } from '../types/layout.types.js';
3
+ /**
4
+ * Generates layout styles including padding, margin, and size properties.
5
+ * @internal
6
+ */
7
+ export declare function useLayoutStyles(props: SurfaceProps<any>, defaultStyles: DefaultStyles): LayoutStyles;
@@ -0,0 +1,123 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var useLayoutStyles_exports = {};
19
+ __export(useLayoutStyles_exports, {
20
+ useLayoutStyles: () => useLayoutStyles
21
+ });
22
+ module.exports = __toCommonJS(useLayoutStyles_exports);
23
+ var import_useLayoutSizeProps = require("./useLayoutSizeProps.js");
24
+ var import_useMarginProps = require("./useMarginProps.js");
25
+ var import_usePaddingProps = require("./usePaddingProps.js");
26
+ function useLayoutStyles(props, defaultStyles) {
27
+ const {
28
+ /** Padding props */
29
+ padding,
30
+ p,
31
+ paddingX,
32
+ px,
33
+ paddingY,
34
+ py,
35
+ paddingTop,
36
+ pt,
37
+ paddingRight,
38
+ pr,
39
+ paddingBottom,
40
+ pb,
41
+ paddingLeft,
42
+ pl,
43
+ /** Margin props */
44
+ margin,
45
+ m,
46
+ marginX,
47
+ mx,
48
+ marginY,
49
+ my,
50
+ marginTop,
51
+ mt,
52
+ marginRight,
53
+ mr,
54
+ marginBottom,
55
+ mb,
56
+ marginLeft,
57
+ ml,
58
+ /** Layout props */
59
+ width,
60
+ minWidth,
61
+ maxWidth,
62
+ height,
63
+ minHeight,
64
+ maxHeight,
65
+ /** filtered remaining props for passing back to component */
66
+ ...remainingProps
67
+ } = props;
68
+ const paddingProps = {
69
+ padding,
70
+ p,
71
+ paddingX,
72
+ px,
73
+ paddingY,
74
+ py,
75
+ paddingTop,
76
+ pt,
77
+ paddingRight,
78
+ pr,
79
+ paddingBottom,
80
+ pb,
81
+ paddingLeft,
82
+ pl
83
+ };
84
+ const marginProps = {
85
+ margin,
86
+ m,
87
+ marginX,
88
+ mx,
89
+ marginY,
90
+ my,
91
+ marginTop,
92
+ mt,
93
+ marginRight,
94
+ mr,
95
+ marginBottom,
96
+ mb,
97
+ marginLeft,
98
+ ml
99
+ };
100
+ const layoutProps = {
101
+ width,
102
+ minWidth,
103
+ maxWidth,
104
+ height,
105
+ minHeight,
106
+ maxHeight
107
+ };
108
+ const paddingStyles = (0, import_usePaddingProps.usePaddingProps)(
109
+ paddingProps,
110
+ defaultStyles.paddingDefaults
111
+ );
112
+ const marginStyles = (0, import_useMarginProps.useMarginProps)(
113
+ marginProps,
114
+ defaultStyles.marginDefaults
115
+ );
116
+ const layoutSizeStyles = (0, import_useLayoutSizeProps.useLayoutSizeProps)(layoutProps);
117
+ return {
118
+ paddingStyles,
119
+ marginStyles,
120
+ layoutSizeStyles,
121
+ remainingProps
122
+ };
123
+ }
@@ -0,0 +1,7 @@
1
+ import { SpacingProps } from '../../styles/getSpacingSprinkles.js';
2
+ import type { MarginCSS, DefaultMargin } from '../types/layout.types.js';
3
+ /**
4
+ * Generates CSS margin properties based on the provided margin props and default margin values.
5
+ * @internal
6
+ */
7
+ export declare const useMarginProps: (props: SpacingProps, defaultMarginProps?: DefaultMargin) => MarginCSS;
@@ -0,0 +1,73 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var useMarginProps_exports = {};
19
+ __export(useMarginProps_exports, {
20
+ useMarginProps: () => useMarginProps
21
+ });
22
+ module.exports = __toCommonJS(useMarginProps_exports);
23
+ var import_lodash_es = require("lodash");
24
+ var import_spacingToCss = require("../helpers/spacingToCss.js");
25
+ const defaultMargin = {
26
+ margin: 0,
27
+ marginTop: 0,
28
+ marginRight: 0,
29
+ marginBottom: 0,
30
+ marginLeft: 0
31
+ };
32
+ const useMarginProps = (props, defaultMarginProps = defaultMargin) => {
33
+ const {
34
+ margin,
35
+ m,
36
+ marginX,
37
+ mx,
38
+ marginY,
39
+ my,
40
+ marginTop,
41
+ mt,
42
+ marginRight,
43
+ mr,
44
+ marginBottom,
45
+ mb,
46
+ marginLeft,
47
+ ml
48
+ } = props;
49
+ const convertedDefaultMarginProps = {
50
+ marginTop: (0, import_spacingToCss.spacingToCss)(
51
+ defaultMarginProps.marginTop ?? defaultMarginProps.margin
52
+ ),
53
+ marginLeft: (0, import_spacingToCss.spacingToCss)(
54
+ defaultMarginProps.marginLeft ?? defaultMarginProps.margin
55
+ ),
56
+ marginBottom: (0, import_spacingToCss.spacingToCss)(
57
+ defaultMarginProps.marginBottom ?? defaultMarginProps.margin
58
+ ),
59
+ marginRight: (0, import_spacingToCss.spacingToCss)(
60
+ defaultMarginProps.marginRight ?? defaultMarginProps.margin
61
+ )
62
+ };
63
+ return (0, import_lodash_es.merge)({}, convertedDefaultMarginProps, {
64
+ marginTop: (0, import_spacingToCss.spacingToCss)(mt ?? marginTop ?? my ?? marginY ?? m ?? margin),
65
+ marginRight: (0, import_spacingToCss.spacingToCss)(
66
+ mr ?? marginRight ?? mx ?? marginX ?? m ?? margin
67
+ ),
68
+ marginBottom: (0, import_spacingToCss.spacingToCss)(
69
+ mb ?? marginBottom ?? my ?? marginY ?? m ?? margin
70
+ ),
71
+ marginLeft: (0, import_spacingToCss.spacingToCss)(ml ?? marginLeft ?? mx ?? marginX ?? m ?? margin)
72
+ });
73
+ };
@@ -0,0 +1,7 @@
1
+ import { SpacingProps } from '../../styles/getSpacingSprinkles.js';
2
+ import type { PaddingCSS, DefaultPadding } from '../types/layout.types.js';
3
+ /**
4
+ * Generates CSS padding properties based on the provided padding props and default padding values.
5
+ * @internal
6
+ */
7
+ export declare const usePaddingProps: (props: SpacingProps, defaultPaddingProps?: DefaultPadding) => PaddingCSS;
@@ -0,0 +1,77 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var usePaddingProps_exports = {};
19
+ __export(usePaddingProps_exports, {
20
+ usePaddingProps: () => usePaddingProps
21
+ });
22
+ module.exports = __toCommonJS(usePaddingProps_exports);
23
+ var import_lodash_es = require("lodash");
24
+ var import_spacingToCss = require("../helpers/spacingToCss.js");
25
+ const defaultPadding = {
26
+ padding: 0,
27
+ paddingTop: 0,
28
+ paddingRight: 0,
29
+ paddingBottom: 0,
30
+ paddingLeft: 0
31
+ };
32
+ const usePaddingProps = (props, defaultPaddingProps = defaultPadding) => {
33
+ const {
34
+ padding,
35
+ p,
36
+ paddingX,
37
+ px,
38
+ paddingY,
39
+ py,
40
+ paddingTop,
41
+ pt,
42
+ paddingRight,
43
+ pr,
44
+ paddingBottom,
45
+ pb,
46
+ paddingLeft,
47
+ pl
48
+ } = props;
49
+ const convertedDefaultPaddingProps = {
50
+ paddingTop: (0, import_spacingToCss.spacingToCss)(
51
+ defaultPaddingProps.paddingTop ?? defaultPaddingProps.padding
52
+ ),
53
+ paddingLeft: (0, import_spacingToCss.spacingToCss)(
54
+ defaultPaddingProps.paddingLeft ?? defaultPaddingProps.padding
55
+ ),
56
+ paddingBottom: (0, import_spacingToCss.spacingToCss)(
57
+ defaultPaddingProps.paddingBottom ?? defaultPaddingProps.padding
58
+ ),
59
+ paddingRight: (0, import_spacingToCss.spacingToCss)(
60
+ defaultPaddingProps.paddingRight ?? defaultPaddingProps.padding
61
+ )
62
+ };
63
+ return (0, import_lodash_es.merge)({}, convertedDefaultPaddingProps, {
64
+ paddingTop: (0, import_spacingToCss.spacingToCss)(
65
+ pt ?? paddingTop ?? py ?? paddingY ?? p ?? padding
66
+ ),
67
+ paddingRight: (0, import_spacingToCss.spacingToCss)(
68
+ pr ?? paddingRight ?? px ?? paddingX ?? p ?? padding
69
+ ),
70
+ paddingBottom: (0, import_spacingToCss.spacingToCss)(
71
+ pb ?? paddingBottom ?? py ?? paddingY ?? p ?? padding
72
+ ),
73
+ paddingLeft: (0, import_spacingToCss.spacingToCss)(
74
+ pl ?? paddingLeft ?? px ?? paddingX ?? p ?? padding
75
+ )
76
+ });
77
+ };
@@ -1,6 +1,10 @@
1
1
  export { Flex, type FlexOwnProps, type FlexProps } from './flex/Flex.js';
2
2
  export { Grid, type GridOwnProps, type GridProps } from './grid/Grid.js';
3
- export { Divider } from './Divider/Divider.js';
4
- export type { DividerProps } from './Divider/Divider.js';
3
+ export { Divider } from './divider/Divider.js';
4
+ export type { DividerProps } from './divider/Divider.js';
5
5
  export { Container } from './container/Container.js';
6
6
  export type { ContainerOwnProps, ContainerProps, } from './container/Container.js';
7
+ export type { LayoutSizeCSS } from './types/layout.types.js';
8
+ export { Surface } from './surface/Surface.js';
9
+ export type { SurfaceOwnProps, SurfaceProps } from './surface/Surface.js';
10
+ export { surfaceBorderRadius as _surfaceBorderRadius } from './surface/variables.css.js';
package/layouts/index.js CHANGED
@@ -20,10 +20,14 @@ __export(layouts_exports, {
20
20
  Container: () => import_Container.Container,
21
21
  Divider: () => import_Divider.Divider,
22
22
  Flex: () => import_Flex.Flex,
23
- Grid: () => import_Grid.Grid
23
+ Grid: () => import_Grid.Grid,
24
+ Surface: () => import_Surface.Surface,
25
+ _surfaceBorderRadius: () => import_variables_css.surfaceBorderRadius
24
26
  });
25
27
  module.exports = __toCommonJS(layouts_exports);
26
28
  var import_Flex = require("./flex/Flex.js");
27
29
  var import_Grid = require("./grid/Grid.js");
28
- var import_Divider = require("./Divider/Divider.js");
30
+ var import_Divider = require("./divider/Divider.js");
29
31
  var import_Container = require("./container/Container.js");
32
+ var import_Surface = require("./surface/Surface.js");
33
+ var import_variables_css = require("./surface/variables.sty.js");
@@ -0,0 +1,95 @@
1
+ .Surface_surfaceCSS__1qto6jt6 {
2
+ --surfaceBorderRadius__1igzksy0: var(--dt-borders-radius-surface-default, 16px);
3
+ color: var(--dt-colors-text-neutral-default, #2b2a58);
4
+ text-align: left;
5
+ border: none;
6
+ outline: none;
7
+ position: relative;
8
+ background-color: var(--dt-colors-background-surface-default, #fcfcfd);
9
+ border-radius: var(--surfaceBorderRadius__1igzksy0);
10
+ }
11
+ .Surface_surfaceCSS__1qto6jt6::before, .Surface_surfaceCSS__1qto6jt6::after {
12
+ content: "";
13
+ width: 100%;
14
+ height: 100%;
15
+ position: absolute;
16
+ left: 0;
17
+ top: 0;
18
+ border-radius: var(--surfaceBorderRadius__1igzksy0);
19
+ pointer-events: none;
20
+ }
21
+ .Surface_surfaceCSS__1qto6jt6::after {
22
+ box-shadow: 0px 0px 0px 1px var(--dt-colors-background-base-default, #f3f3f7);
23
+ outline-offset: 1px;
24
+ outline: 2px solid var(--vars_borderColor__17bwkb02);
25
+ opacity: var(--selectionOpacity__1qto6jt4);
26
+ transition: var(--selectionTransition__1qto6jt5);
27
+ }
28
+ .Surface_surfaceCSS_selected_true__1qto6jt7 {
29
+ --selectionOpacity__1qto6jt4: 1;
30
+ --selectionTransition__1qto6jt5: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
31
+ }
32
+ .Surface_surfaceCSS_selected_false__1qto6jt8 {
33
+ --selectionOpacity__1qto6jt4: 0;
34
+ --selectionTransition__1qto6jt5: var(--dt-animations-fade-out-easing, cubic-bezier(0, 0, 0.2, 1)) var(--dt-animations-fade-out-duration-fast, 150ms);
35
+ }
36
+ .Surface_pseudoElementCSS__1qto6jt9 {
37
+ --dragOpacity__1qto6jt1: 0;
38
+ --dragCursor__1qto6jt2: pointer;
39
+ --hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
40
+ width: 100%;
41
+ height: 100%;
42
+ position: absolute;
43
+ left: 0;
44
+ top: 0;
45
+ border-radius: var(--surfaceBorderRadius__1igzksy0);
46
+ pointer-events: none;
47
+ }
48
+ .Surface_pseudoElementCSS__1qto6jt9::after,.Surface_pseudoElementCSS__1qto6jt9::before {
49
+ content: "";
50
+ width: 100%;
51
+ height: 100%;
52
+ position: absolute;
53
+ left: 0;
54
+ top: 0;
55
+ border-radius: var(--surfaceBorderRadius__1igzksy0);
56
+ pointer-events: none;
57
+ transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
58
+ }
59
+ .Surface_pseudoElementCSS__1qto6jt9::after {
60
+ box-shadow: var(--dragElevation__1qto6jt0);
61
+ opacity: var(--dragOpacity__1qto6jt1);
62
+ }
63
+ .Surface_pseudoElementCSS__1qto6jt9::before {
64
+ box-shadow: var(--hoverElevation__1qto6jt3);
65
+ opacity: 0;
66
+ }
67
+ .Surface_pseudoElementCSS_elevation_flat__1qto6jta {
68
+ --dragElevation__1qto6jt0: var(--dt-box-shadows-surface-flat-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
69
+ --hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
70
+ box-shadow: var(--dt-box-shadows-surface-flat-rest, none);
71
+ }
72
+ .Surface_pseudoElementCSS_elevation_raised__1qto6jtb {
73
+ --dragElevation__1qto6jt0: var(--dt-box-shadows-surface-raised-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
74
+ --hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-raised-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
75
+ box-shadow: var(--dt-box-shadows-surface-raised-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
76
+ }
77
+ .Surface_pseudoElementCSS_elevation_floating__1qto6jtc {
78
+ --dragElevation__1qto6jt0: var(--dt-box-shadows-surface-floating-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
79
+ --hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-floating-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 6px 14px -2px #2d2e4e3d);
80
+ box-shadow: var(--dt-box-shadows-surface-floating-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
81
+ }
82
+ .Surface_pseudoElementCSS_dragged_true__1qto6jtd {
83
+ --dragOpacity__1qto6jt1: 1;
84
+ --dragCursor__1qto6jt2: grab;
85
+ }
86
+ button.strato-surface:not(:disabled), a.strato-surface:not(:disabled) {
87
+ cursor: pointer;
88
+ }
89
+ button.strato-surface:not(:disabled):hover > div:first-child::before, a.strato-surface:not(:disabled):hover > div:first-child::before {
90
+ opacity: 1;
91
+ }
92
+ button.strato-surface:not(:disabled):active > div:first-child::before, a.strato-surface:not(:disabled):active > div:first-child::before {
93
+ transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
94
+ opacity: 0;
95
+ }
@@ -0,0 +1,46 @@
1
+ import { type ElementType, type ReactElement } from 'react';
2
+ import type { AriaLabelingProps } from '../../core/types/a11y-props.js';
3
+ import type { DataTestId } from '../../core/types/data-props.js';
4
+ import type { DOMProps } from '../../core/types/dom.js';
5
+ import type { MaskingProps } from '../../core/types/masking-props.js';
6
+ import type { PolymorphicComponentProps } from '../../core/types/polymorph.js';
7
+ import type { StylingProps } from '../../core/types/styling-props.js';
8
+ import type { WithChildren } from '../../core/types/with-children.js';
9
+ import { type SpacingProps } from '../../styles/getSpacingSprinkles.js';
10
+ import type { LayoutSizeCSS } from '../types/layout.types.js';
11
+ /**
12
+ * Accepted properties for Surface
13
+ * @public
14
+ */
15
+ export interface SurfaceOwnProps extends AriaLabelingProps, SpacingProps, LayoutSizeCSS, DOMProps, WithChildren, StylingProps, DataTestId, MaskingProps {
16
+ /**
17
+ * Color of the border when the surface has focus or is selected.
18
+ * @defaultValue 'neutral'
19
+ */
20
+ color?: 'neutral' | 'primary' | 'success' | 'critical' | 'warning';
21
+ /**
22
+ * Defines if the surface is selected and should indicate that state with a border.
23
+ * @defaultValue false
24
+ */
25
+ selected?: boolean;
26
+ /**
27
+ * Indicates if the surface is currently dragged and then applies the corresponding styles.
28
+ * @defaultValue false
29
+ */
30
+ dragged?: boolean;
31
+ /**
32
+ * Defines the surface's elevation to the background.
33
+ * @defaultValue 'flat'
34
+ */
35
+ elevation?: 'flat' | 'raised' | 'floating';
36
+ }
37
+ /**
38
+ * Merge own props with others inherited from the underlying element type
39
+ * @public
40
+ */
41
+ export type SurfaceProps<E extends ElementType> = PolymorphicComponentProps<E, SurfaceOwnProps>;
42
+ /**
43
+ * The Surface component is used to structure content on a page.
44
+ * @public
45
+ */
46
+ export declare const Surface: <E extends ElementType = 'div'>(props: SurfaceProps<E>) => ReactElement | null;