@gnist/design-system 0.1.2 → 0.1.4
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 +12 -0
- package/dist/components/feedback/progress/ProgressBar.cjs +2 -1
- package/dist/components/feedback/progress/ProgressBar.d.ts.map +1 -1
- package/dist/components/feedback/progress/ProgressBar.js +2 -1
- package/dist/components/inputs/shared.cjs +2 -1
- package/dist/components/inputs/shared.d.ts.map +1 -1
- package/dist/components/inputs/shared.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [0.1.4](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@0.1.3...@gnist/design-system@0.1.4) (2024-11-22)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* include node_modules to docker container for gnist web app ([d42aab9](https://github.com/mollerdigital/design-system-design-system/commit/d42aab9ee1f0c2677089e8e1e7fea491c31c1426))
|
|
11
|
+
|
|
12
|
+
## [0.1.3](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@0.1.2...@gnist/design-system@0.1.3) (2024-11-22)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* Update Dockerfile in order to successfully start next app in container ([692cc53](https://github.com/mollerdigital/design-system-design-system/commit/692cc53d659f4d2afed344f6b2c5f27370045cfc))
|
|
17
|
+
|
|
6
18
|
## [0.1.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@0.1.1...@gnist/design-system@0.1.2) (2024-11-22)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
|
@@ -5,7 +5,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
5
5
|
const componentUtils = require("@gnist/component-utils");
|
|
6
6
|
const dynamic = require("@vanilla-extract/dynamic");
|
|
7
7
|
const ProgressBar_css = require("./ProgressBar.css.cjs");
|
|
8
|
-
const
|
|
8
|
+
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
9
|
+
const ProgressBarComponent = ({ color = tokens_css_js.tokens.color.primary, percentage, animateOnChange = false, size = "medium", ...delegated }) => {
|
|
9
10
|
if (percentage < 0 || percentage > 100) {
|
|
10
11
|
throw new Error("The value of the progress bar must be a number between 0 and 100.");
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/progress/ProgressBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/progress/ProgressBar.tsx"],"names":[],"mappings":"AAUA,UAAU,gBAAgB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0C3D,CAAC;AAEF,eAAO,MAAM,WAAW,sHAIvB,CAAC"}
|
|
@@ -3,7 +3,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { component } from "@gnist/component-utils";
|
|
4
4
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
5
|
import { progressBarStyles, progressBar, progressAnimation, progressPercentage } from "./ProgressBar.css.js";
|
|
6
|
-
|
|
6
|
+
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
7
|
+
const ProgressBarComponent = ({ color = tokens.color.primary, percentage, animateOnChange = false, size = "medium", ...delegated }) => {
|
|
7
8
|
if (percentage < 0 || percentage > 100) {
|
|
8
9
|
throw new Error("The value of the progress bar must be a number between 0 and 100.");
|
|
9
10
|
}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const index = require("../../utilities/html/index.cjs");
|
|
5
5
|
const React = require("react");
|
|
6
|
+
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
7
|
function useIconAndExtraTextWidth(hasIcon) {
|
|
7
|
-
const iconWidth = hasIcon ?
|
|
8
|
+
const iconWidth = hasIcon ? `${tokens_css_js.tokens.spacing.xxs} ${tokens_css_js.tokens.spacing.l}` : "0px";
|
|
8
9
|
const [textWidth, setTextWidth] = React.useState(0);
|
|
9
10
|
const textRef = (node) => {
|
|
10
11
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,yBAAwC;AAE7E,OAAO,EAAE,aAAa,EAAE,WAAW,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EACH,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,QAAQ,EACX,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,yBAAwC;AAE7E,OAAO,EAAE,aAAa,EAAE,WAAW,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EACH,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,QAAQ,EACX,MAAM,wBAAwB,CAAC;AAgBhC,wBAAgB,eAAe,CAC3B,IAAI,EAAE,YAAY,GAAG,aAAa,GACnC,IAAI,IAAI,aAAa,CAEvB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,YAAY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B,WAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,GACZ,EAAE,oBAAoB,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCzB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EAClC,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,WAAW,EACX,YAAY,EACZ,UAAU,EACV,sBAAsB,EACtB,GAAG,UAAU,EAChB,EAAE,CAAC,GAAG,cAAc;;;;;;;;;;;;EAcpB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EACnC,KAAK,EACL,OAAO,EACP,WAAW,EACX,UAAU,EACV,GAAG,WAAW,EACjB,EAAE,oBAAoB,CAAC,CAAC,CAAC;;;;;;;;QA7ItB;;WAEG;oBACS,MAAM;QAClB;;WAEG;gCACwB,IAAI;;;;;;;;;;EAgJlC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createValidHtmlId } from "../../utilities/html/index.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
+
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
4
5
|
function useIconAndExtraTextWidth(hasIcon) {
|
|
5
|
-
const iconWidth = hasIcon ?
|
|
6
|
+
const iconWidth = hasIcon ? `${tokens.spacing.xxs} ${tokens.spacing.l}` : "0px";
|
|
6
7
|
const [textWidth, setTextWidth] = useState(0);
|
|
7
8
|
const textRef = (node) => {
|
|
8
9
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"optional": true
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "39dd19a7f7850a1d2e022665031f61c14043c657"
|
|
117
117
|
}
|