@uniformdev/design-system 17.7.1-alpha.211 → 18.0.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/dist/esm/index.js CHANGED
@@ -1342,21 +1342,27 @@ var commonLineHeight = css9`
1342
1342
 
1343
1343
  // src/components/Typography/Heading.tsx
1344
1344
  import { jsx as jsx8 } from "@emotion/react/jsx-runtime";
1345
- var Heading = ({ level = 2, withMarginBottom = true, children, ...hAttributes }) => {
1346
- const Heading2 = `h${level}`;
1345
+ var Heading = ({
1346
+ level = 2,
1347
+ asSpan,
1348
+ withMarginBottom = true,
1349
+ children,
1350
+ ...hAttributes
1351
+ }) => {
1352
+ const Heading2 = asSpan ? "span" : `h${level}`;
1347
1353
  const headingStyle = {
1348
- h1,
1349
- h2,
1350
- h3,
1351
- h4,
1352
- h5,
1353
- h6
1354
+ 1: h1,
1355
+ 2: h2,
1356
+ 3: h3,
1357
+ 4: h4,
1358
+ 5: h5,
1359
+ 6: h6
1354
1360
  };
1355
1361
  return /* @__PURE__ */ jsx8(
1356
1362
  Heading2,
1357
1363
  {
1358
1364
  ...hAttributes,
1359
- css: [headingStyle[Heading2], commonHeadingAttr(withMarginBottom), commonLineHeight],
1365
+ css: [headingStyle[level], commonHeadingAttr(withMarginBottom), commonLineHeight],
1360
1366
  children
1361
1367
  }
1362
1368
  );
package/dist/index.d.ts CHANGED
@@ -1200,6 +1200,10 @@ type HeadingProps = {
1200
1200
  * @default 2
1201
1201
  */
1202
1202
  level?: LevelProps;
1203
+ /** sets whether to display a span with the defined heading styles
1204
+ * @default undefined
1205
+ */
1206
+ asSpan?: boolean;
1203
1207
  /** sets the title value */
1204
1208
  children: React$1.ReactNode;
1205
1209
  /** (optional) sets whether to use the default margin for the heading element
@@ -1211,7 +1215,7 @@ type HeadingProps = {
1211
1215
  * Component that sets the heading tag
1212
1216
  * @example <Heading level={1}>Blog Post Title</Heading>
1213
1217
  */
1214
- declare const Heading: ({ level, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1218
+ declare const Heading: ({ level, asSpan, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1215
1219
 
1216
1220
  type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
1217
1221
  /** sets the title text of the integration */
package/dist/index.js CHANGED
@@ -1479,21 +1479,27 @@ var commonLineHeight = import_react14.css`
1479
1479
 
1480
1480
  // src/components/Typography/Heading.tsx
1481
1481
  var import_jsx_runtime7 = require("@emotion/react/jsx-runtime");
1482
- var Heading = ({ level = 2, withMarginBottom = true, children, ...hAttributes }) => {
1483
- const Heading2 = `h${level}`;
1482
+ var Heading = ({
1483
+ level = 2,
1484
+ asSpan,
1485
+ withMarginBottom = true,
1486
+ children,
1487
+ ...hAttributes
1488
+ }) => {
1489
+ const Heading2 = asSpan ? "span" : `h${level}`;
1484
1490
  const headingStyle = {
1485
- h1,
1486
- h2,
1487
- h3,
1488
- h4,
1489
- h5,
1490
- h6
1491
+ 1: h1,
1492
+ 2: h2,
1493
+ 3: h3,
1494
+ 4: h4,
1495
+ 5: h5,
1496
+ 6: h6
1491
1497
  };
1492
1498
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1493
1499
  Heading2,
1494
1500
  {
1495
1501
  ...hAttributes,
1496
- css: [headingStyle[Heading2], commonHeadingAttr(withMarginBottom), commonLineHeight],
1502
+ css: [headingStyle[level], commonHeadingAttr(withMarginBottom), commonLineHeight],
1497
1503
  children
1498
1504
  }
1499
1505
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "17.7.1-alpha.211+e51b76310",
3
+ "version": "18.0.0",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -45,5 +45,8 @@
45
45
  "files": [
46
46
  "/dist"
47
47
  ],
48
- "gitHead": "e51b76310a677d0f0f2b35bfa1f7416c733cf25d"
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
51
+ "gitHead": "5e2f29d010ba0098a90ed6c08dd1e066e5b65308"
49
52
  }