@gnist/design-system 2.0.1 → 2.0.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.3](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@2.0.2...@gnist/design-system@2.0.3) (2025-01-24)
7
+
8
+ **Note:** Version bump only for package @gnist/design-system
9
+
10
+ ## [2.0.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@2.0.1...@gnist/design-system@2.0.2) (2025-01-22)
11
+
12
+ ### Bug Fixes
13
+
14
+ * set uniqueKey prop on TextSkeleton component ([ec276b0](https://github.com/mollerdigital/design-system-design-system/commit/ec276b0bdeff238723f3dba13dd2bd7453c45604))
15
+
6
16
  ## [2.0.1](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@2.0.0...@gnist/design-system@2.0.1) (2025-01-22)
7
17
 
8
18
  ### Bug Fixes
@@ -5,11 +5,15 @@ const jsxRuntime = require("react/jsx-runtime");
5
5
  const Row = require("../../utilities/layout/Row.cjs");
6
6
  const tokens_css_js = require("@gnist/themes/tokens.css.js");
7
7
  const reactContentLoader = require("react-content-loader");
8
+ const React = require("react");
8
9
  const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
9
10
  const reactContentLoader__default = /* @__PURE__ */ _interopDefaultCompat(reactContentLoader);
10
11
  const ContentLoader = reactContentLoader__default.default;
11
- const TextSkeleton = ({ className, height = "1em", width = "100%" }) => jsxRuntime.jsx(Row.Row, { className, style: {
12
- height: `calc(1em * ${tokens_css_js.tokens.typeface["line-height"]})`,
13
- width
14
- }, verticalAlign: "center", horizontalAlign: "end", children: jsxRuntime.jsx(ContentLoader, { height, width, title: "", backgroundColor: tokens_css_js.tokens.color.loader, foregroundColor: tokens_css_js.tokens.color["on-loader"], children: jsxRuntime.jsx("rect", { x: "0", y: "0", rx: "4", ry: "6.7", height, width }) }) });
12
+ const TextSkeleton = ({ className, height = "1em", width = "100%" }) => {
13
+ const uniqueKey = React.useId();
14
+ return jsxRuntime.jsx(Row.Row, { className, style: {
15
+ height: `calc(1em * ${tokens_css_js.tokens.typeface["line-height"]})`,
16
+ width
17
+ }, verticalAlign: "center", horizontalAlign: "end", children: jsxRuntime.jsx(ContentLoader, { uniqueKey, height, width, title: "", backgroundColor: tokens_css_js.tokens.color.loader, foregroundColor: tokens_css_js.tokens.color["on-loader"], children: jsxRuntime.jsx("rect", { x: "0", y: "0", rx: "4", ry: "6.7", height, width }) }) });
18
+ };
15
19
  exports.TextSkeleton = TextSkeleton;
@@ -1 +1 @@
1
- {"version":3,"file":"TextSkeleton.d.ts","sourceRoot":"","sources":["../../../src/building-blocks/skeletons/TextSkeleton.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,kCAItB,iBAAiB,4CAqBnB,CAAC"}
1
+ {"version":3,"file":"TextSkeleton.d.ts","sourceRoot":"","sources":["../../../src/building-blocks/skeletons/TextSkeleton.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,kCAItB,iBAAiB,4CAiCnB,CAAC"}
@@ -3,11 +3,15 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { Row } from "../../utilities/layout/Row.js";
4
4
  import { tokens } from "@gnist/themes/tokens.css.js";
5
5
  import reactContentLoader from "react-content-loader";
6
+ import { useId } from "react";
6
7
  const ContentLoader = reactContentLoader;
7
- const TextSkeleton = ({ className, height = "1em", width = "100%" }) => jsx(Row, { className, style: {
8
- height: `calc(1em * ${tokens.typeface["line-height"]})`,
9
- width
10
- }, verticalAlign: "center", horizontalAlign: "end", children: jsx(ContentLoader, { height, width, title: "", backgroundColor: tokens.color.loader, foregroundColor: tokens.color["on-loader"], children: jsx("rect", { x: "0", y: "0", rx: "4", ry: "6.7", height, width }) }) });
8
+ const TextSkeleton = ({ className, height = "1em", width = "100%" }) => {
9
+ const uniqueKey = useId();
10
+ return jsx(Row, { className, style: {
11
+ height: `calc(1em * ${tokens.typeface["line-height"]})`,
12
+ width
13
+ }, verticalAlign: "center", horizontalAlign: "end", children: jsx(ContentLoader, { uniqueKey, height, width, title: "", backgroundColor: tokens.color.loader, foregroundColor: tokens.color["on-loader"], children: jsx("rect", { x: "0", y: "0", rx: "4", ry: "6.7", height, width }) }) });
14
+ };
11
15
  export {
12
16
  TextSkeleton
13
17
  };
@@ -7,13 +7,13 @@ const InputHelperText = require("../../../building-blocks/inputs/InputHelperText
7
7
  require("../../../utilities/layout/Row.cjs");
8
8
  require("@gnist/themes/tokens.css.js");
9
9
  require("react-content-loader");
10
+ const React = require("react");
10
11
  const shared = require("../shared.cjs");
11
12
  require("../../../foundation/iconography/ExtraIconsProvider.cjs");
12
13
  require("../../../foundation/iconography/IconVariantProvider.cjs");
13
14
  require("../../../foundation/iconography/icons.cjs");
14
15
  const Icon = require("../../../foundation/iconography/Icon.cjs");
15
16
  require("../../../foundation/typography/index.cjs");
16
- const React = require("react");
17
17
  const classNames = require("classnames");
18
18
  require("../../../foundation/logos/Logo.css.cjs");
19
19
  const atoms_css_js = require("@gnist/themes/atoms.css.js");
@@ -5,13 +5,13 @@ import { InputHelperText } from "../../../building-blocks/inputs/InputHelperText
5
5
  import "../../../utilities/layout/Row.js";
6
6
  import "@gnist/themes/tokens.css.js";
7
7
  import "react-content-loader";
8
+ import { useState } from "react";
8
9
  import { useSelectInputLogic, getSelectInputProps } from "../shared.js";
9
10
  import "../../../foundation/iconography/ExtraIconsProvider.js";
10
11
  import "../../../foundation/iconography/IconVariantProvider.js";
11
12
  import "../../../foundation/iconography/icons.js";
12
13
  import { Icon } from "../../../foundation/iconography/Icon.js";
13
14
  import "../../../foundation/typography/index.js";
14
- import { useState } from "react";
15
15
  import classNames from "classnames";
16
16
  import "../../../foundation/logos/Logo.css.js";
17
17
  import { atoms } from "@gnist/themes/atoms.css.js";
@@ -6,12 +6,12 @@ const InputHelperText = require("../../../building-blocks/inputs/InputHelperText
6
6
  require("../../../utilities/layout/Row.cjs");
7
7
  require("@gnist/themes/tokens.css.js");
8
8
  require("react-content-loader");
9
+ const React = require("react");
9
10
  require("../../../foundation/iconography/ExtraIconsProvider.cjs");
10
11
  require("../../../foundation/iconography/IconVariantProvider.cjs");
11
12
  require("../../../foundation/iconography/icons.cjs");
12
13
  const Icon = require("../../../foundation/iconography/Icon.cjs");
13
14
  require("../../../foundation/typography/index.cjs");
14
- const React = require("react");
15
15
  const classNames = require("classnames");
16
16
  require("../../../foundation/logos/Logo.css.cjs");
17
17
  const atoms_css_js = require("@gnist/themes/atoms.css.js");
@@ -4,12 +4,12 @@ import { InputHelperText } from "../../../building-blocks/inputs/InputHelperText
4
4
  import "../../../utilities/layout/Row.js";
5
5
  import "@gnist/themes/tokens.css.js";
6
6
  import "react-content-loader";
7
+ import { forwardRef } from "react";
7
8
  import "../../../foundation/iconography/ExtraIconsProvider.js";
8
9
  import "../../../foundation/iconography/IconVariantProvider.js";
9
10
  import "../../../foundation/iconography/icons.js";
10
11
  import { Icon } from "../../../foundation/iconography/Icon.js";
11
12
  import "../../../foundation/typography/index.js";
12
- import { forwardRef } from "react";
13
13
  import classNames from "classnames";
14
14
  import "../../../foundation/logos/Logo.css.js";
15
15
  import { atoms } from "@gnist/themes/atoms.css.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnist/design-system",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@formkit/auto-animate": "^0.7.0",
51
51
  "@gnist/component-utils": "3.0.1",
52
- "@gnist/themes": "^2.0.0",
52
+ "@gnist/themes": "^2.0.1",
53
53
  "@mui/base": "^5.0.0-beta.36",
54
54
  "@vanilla-extract/css": "^1.14.1",
55
55
  "@vanilla-extract/css-utils": "^0.1.3",
@@ -113,5 +113,5 @@
113
113
  "optional": true
114
114
  }
115
115
  },
116
- "gitHead": "f80d7051e82b744d81f9cedb0262f72b84bd04ca"
116
+ "gitHead": "f404c9184b953e0af3726eb51f0913944fd5a5c8"
117
117
  }