@luscii-healthtech/web-ui 54.5.1 → 54.5.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/README.md CHANGED
@@ -8,6 +8,7 @@ The `web-ui` repository contains the UI components for Luscii's frontend project
8
8
  - 📖 [Fonts](#fonts)
9
9
  - 📦 [How to use](#how-to-use)
10
10
  - 🤝 [Contributing](#contributing)
11
+ - 📐 [Coding standards & AI guidance](#coding-standards--ai-guidance)
11
12
 
12
13
  ## Getting started
13
14
 
@@ -176,6 +177,19 @@ Great to have you help making WebUI better! We have a few guidelines and tips
176
177
  to make sure we can keep the library consistent and easy to use. You can find
177
178
  them in our [contributing guide](CONTRIBUTING.md).
178
179
 
180
+ ### Coding standards & AI guidance
181
+
182
+ AI-agent guidance (including the Design System governance policy) lives in
183
+ [`CLAUDE.md`](CLAUDE.md).
184
+
185
+ Org-wide standards are kept in a separate repository and cloned into a local,
186
+ git-ignored `.coding-standards/` folder. Pull them in with:
187
+
188
+ ```bash
189
+ yarn add-coding-standards # first-time clone
190
+ yarn pull-coding-standards # update to latest
191
+ ```
192
+
179
193
  ### Reporting bugs
180
194
 
181
195
  If you find a bug, please report it by sending us a message in the [#design-system-circle channel](https://luscii.slack.com/archives/C03507ZKRCY). It helps us a lot knowing of anything that is not working as expected.
@@ -2122,6 +2122,8 @@ Modal.setAppElement = ReactModal__default.default.setAppElement;
2122
2122
  const Tag = (_a) => {
2123
2123
  var { _as = "span", _type = "neutral", _size = "large", _variant = "flat", _leadingIcon, _trailingIcon, _truncate, children, className } = _a, rest = __rest(_a, ["_as", "_type", "_size", "_variant", "_leadingIcon", "_trailingIcon", "_truncate", "children", "className"]);
2124
2124
  const isBordered = _variant === "bordered";
2125
+ const textVariant = _size === "small" ? "body-small-regular" : "body-base-regular";
2126
+ const fontWeightClass = isBordered ? _size === "small" ? "ui:font-[400]" : "ui:font-[500]" : _size === "small" ? "ui:font-[700]" : "ui:font-[600]";
2125
2127
  return jsxRuntime.jsxs(Stack, Object.assign({ as: _as, axis: "x", align: "center", borderRadius: "xxxxs", _gap: "s", className: classNames__default.default("ui:inline-flex", { "overflow-hidden": _truncate }, className, {
2126
2128
  [[
2127
2129
  "ui:bg-background-error-primary-default ui:text-text-error-primary-default",
@@ -2152,7 +2154,7 @@ const Tag = (_a) => {
2152
2154
  */
2153
2155
  "ui:px-f_base ui:py-f_s": _variant !== "bordered",
2154
2156
  "ui:border ui:px-[calc(var(--ui-semantic-spacing-base)-1px)] ui:py-[calc(var(--ui-semantic-spacing-s)-1px)]": _variant === "bordered"
2155
- }) }, rest, { children: [sizedIcon(_leadingIcon, { size: _size }), jsxRuntime.jsx(Text, { color: "current", variant: _size === "small" ? "body-small-regular" : "body-base-regular", truncate: _truncate, children }), sizedIcon(_trailingIcon, { size: _size })] }));
2157
+ }) }, rest, { children: [sizedIcon(_leadingIcon, { size: _size }), jsxRuntime.jsx(Text, { color: "current", variant: textVariant, className: fontWeightClass, truncate: _truncate, children }), sizedIcon(_trailingIcon, { size: _size })] }));
2156
2158
  };
2157
2159
  function sizedIcon(node, options) {
2158
2160
  const pixelSize = options.size === "small" ? 16 : 24;