@shapesos/clay 0.3.1 → 0.4.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/index.cjs CHANGED
@@ -16345,6 +16345,7 @@ __export(src_exports, {
16345
16345
  Chat: () => Chat,
16346
16346
  Icon: () => Icon,
16347
16347
  IconButton: () => IconButton,
16348
+ KeyboardShortcut: () => KeyboardShortcut,
16348
16349
  Lottie: () => Lottie,
16349
16350
  colors: () => colors,
16350
16351
  fontFamilies: () => fontFamilies,
@@ -17411,12 +17412,34 @@ var Chat = {
17411
17412
  Composer: ChatComposer
17412
17413
  };
17413
17414
 
17415
+ // src/keyboard-shortcut/keyboard-shortcut-styles.ts
17416
+ var import_styled_components9 = __toESM(require("styled-components"), 1);
17417
+ var Wrapper = import_styled_components9.default.div`
17418
+ display: inline-flex;
17419
+ align-items: center;
17420
+ gap: 4px;
17421
+ `;
17422
+ var Key = import_styled_components9.default.kbd`
17423
+ padding: 1px 4px;
17424
+ border-radius: 4px;
17425
+ border: 1px solid ${colors["brown-70"]};
17426
+ border-bottom-width: 2px;
17427
+ ${typographyMixin(typographyTypes.GEIST_LABEL_CAPTION_MEDIUM)};
17428
+ color: inherit;
17429
+ `;
17430
+
17431
+ // src/keyboard-shortcut/keyboard-shortcut.tsx
17432
+ var import_jsx_runtime9 = require("react/jsx-runtime");
17433
+ function KeyboardShortcut({ keys, className }) {
17434
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Wrapper, { className, children: keys.map((key2) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Key, { children: key2 }, key2)) });
17435
+ }
17436
+
17414
17437
  // src/lottie/lottie.tsx
17415
17438
  var import_react11 = require("react");
17416
17439
 
17417
17440
  // src/lottie/lottie-styles.ts
17418
- var import_styled_components9 = __toESM(require("styled-components"), 1);
17419
- var LottieContainer = import_styled_components9.default.div`
17441
+ var import_styled_components10 = __toESM(require("styled-components"), 1);
17442
+ var LottieContainer = import_styled_components10.default.div`
17420
17443
  display: inline-flex;
17421
17444
  width: ${({ $width }) => typeof $width === "number" ? `${$width}px` : $width};
17422
17445
  height: ${({ $height }) => typeof $height === "number" ? `${$height}px` : $height};
@@ -17545,7 +17568,7 @@ function createLottieRef(animationRef) {
17545
17568
  }
17546
17569
 
17547
17570
  // src/lottie/lottie.tsx
17548
- var import_jsx_runtime9 = require("react/jsx-runtime");
17571
+ var import_jsx_runtime10 = require("react/jsx-runtime");
17549
17572
  var Lottie = (0, import_react11.forwardRef)(function Lottie2({
17550
17573
  animationData: animationData2,
17551
17574
  autoplay,
@@ -17577,7 +17600,7 @@ var Lottie = (0, import_react11.forwardRef)(function Lottie2({
17577
17600
  onEnterFrame
17578
17601
  });
17579
17602
  (0, import_react11.useImperativeHandle)(ref, () => createLottieRef(animationRef), [animationRef]);
17580
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
17603
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
17581
17604
  LottieContainer,
17582
17605
  {
17583
17606
  ref: containerRef,
@@ -17594,6 +17617,7 @@ var Lottie = (0, import_react11.forwardRef)(function Lottie2({
17594
17617
  Chat,
17595
17618
  Icon,
17596
17619
  IconButton,
17620
+ KeyboardShortcut,
17597
17621
  Lottie,
17598
17622
  colors,
17599
17623
  fontFamilies,