@devalok/shilp-sutra 0.6.2 → 0.8.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.
Files changed (108) hide show
  1. package/dist/_virtual/client.js +5 -0
  2. package/dist/_virtual/index.js +5 -0
  3. package/dist/_virtual/react-dom-client.development.js +5 -0
  4. package/dist/_virtual/react-dom-client.production.js +5 -0
  5. package/dist/_virtual/scheduler.development.js +5 -0
  6. package/dist/_virtual/scheduler.production.js +5 -0
  7. package/dist/composed/command-palette.d.ts.map +1 -1
  8. package/dist/composed/command-palette.js +84 -73
  9. package/dist/composed/confirm-dialog.d.ts +27 -0
  10. package/dist/composed/confirm-dialog.d.ts.map +1 -0
  11. package/dist/composed/confirm-dialog.js +45 -0
  12. package/dist/composed/extensions/emoji-suggestion.d.ts +9 -0
  13. package/dist/composed/extensions/emoji-suggestion.d.ts.map +1 -0
  14. package/dist/composed/extensions/emoji-suggestion.js +119 -0
  15. package/dist/composed/extensions/file-attachment.d.ts +4 -0
  16. package/dist/composed/extensions/file-attachment.d.ts.map +1 -0
  17. package/dist/composed/extensions/file-attachment.js +55 -0
  18. package/dist/composed/extensions/mention-suggestion.d.ts +10 -0
  19. package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -0
  20. package/dist/composed/extensions/mention-suggestion.js +79 -0
  21. package/dist/composed/index.d.ts +3 -1
  22. package/dist/composed/index.d.ts.map +1 -1
  23. package/dist/composed/index.js +28 -26
  24. package/dist/composed/rich-text-editor.d.ts +19 -0
  25. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  26. package/dist/composed/rich-text-editor.js +347 -176
  27. package/dist/composed/status-badge.d.ts +11 -1
  28. package/dist/composed/status-badge.d.ts.map +1 -1
  29. package/dist/composed/status-badge.js +48 -20
  30. package/dist/hooks/use-color-mode.d.ts.map +1 -1
  31. package/dist/hooks/use-color-mode.js +8 -4
  32. package/dist/hooks/use-mobile.d.ts +5 -0
  33. package/dist/hooks/use-mobile.d.ts.map +1 -1
  34. package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +40141 -0
  35. package/dist/node_modules/.pnpm/@emoji-mart_react@1.1.1_emoji-mart@5.6.0_react@19.2.4/node_modules/@emoji-mart/react/dist/module.js +17 -0
  36. package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +2958 -0
  37. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +17062 -0
  38. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +9790 -0
  39. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +20 -0
  40. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +237 -0
  41. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +234 -0
  42. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +11 -0
  43. package/dist/primitives/_internal/react-arrow.js +8 -19
  44. package/dist/primitives/_internal/react-compose-refs.js +14 -14
  45. package/dist/primitives/_internal/react-context.js +41 -39
  46. package/dist/primitives/_internal/react-dismissable-layer.js +62 -90
  47. package/dist/primitives/_internal/react-popper.js +107 -169
  48. package/dist/primitives/_internal/react-portal.js +1 -1
  49. package/dist/primitives/_internal/react-primitive.js +1 -1
  50. package/dist/primitives/_internal/react-use-size.js +8 -8
  51. package/dist/primitives/react-slot.js +12 -12
  52. package/dist/shell/app-command-palette.d.ts +3 -1
  53. package/dist/shell/app-command-palette.d.ts.map +1 -1
  54. package/dist/shell/app-command-palette.js +35 -34
  55. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  56. package/dist/shell/bottom-navbar.js +31 -31
  57. package/dist/shell/index.d.ts +1 -1
  58. package/dist/shell/index.d.ts.map +1 -1
  59. package/dist/shell/notification-center.d.ts +10 -0
  60. package/dist/shell/notification-center.d.ts.map +1 -1
  61. package/dist/shell/notification-center.js +129 -117
  62. package/dist/shell/top-bar.d.ts +20 -0
  63. package/dist/shell/top-bar.d.ts.map +1 -1
  64. package/dist/shell/top-bar.js +100 -70
  65. package/dist/tailwind/index.cjs +3 -0
  66. package/dist/tailwind/preset.d.ts.map +1 -1
  67. package/dist/tailwind/preset.js +3 -0
  68. package/dist/tokens/semantic.css +10 -1
  69. package/dist/ui/alert.js +42 -63
  70. package/dist/ui/avatar.js +20 -62
  71. package/dist/ui/badge.d.ts +1 -1
  72. package/dist/ui/badge.d.ts.map +1 -1
  73. package/dist/ui/badge.js +89 -112
  74. package/dist/ui/banner.js +12 -12
  75. package/dist/ui/button-group.js +14 -29
  76. package/dist/ui/button.js +64 -108
  77. package/dist/ui/card.js +18 -62
  78. package/dist/ui/checkbox.js +1 -21
  79. package/dist/ui/chip.d.ts.map +1 -1
  80. package/dist/ui/chip.js +1 -1
  81. package/dist/ui/color-input.d.ts +17 -0
  82. package/dist/ui/color-input.d.ts.map +1 -0
  83. package/dist/ui/color-input.js +88 -0
  84. package/dist/ui/combobox.d.ts +20 -11
  85. package/dist/ui/combobox.d.ts.map +1 -1
  86. package/dist/ui/dialog.js +9 -9
  87. package/dist/ui/form.js +14 -35
  88. package/dist/ui/index.d.ts +1 -0
  89. package/dist/ui/index.d.ts.map +1 -1
  90. package/dist/ui/index.js +314 -312
  91. package/dist/ui/input.d.ts.map +1 -1
  92. package/dist/ui/input.js +31 -56
  93. package/dist/ui/label.js +1 -15
  94. package/dist/ui/number-input.d.ts.map +1 -1
  95. package/dist/ui/number-input.js +39 -35
  96. package/dist/ui/popover.js +6 -6
  97. package/dist/ui/separator.js +4 -19
  98. package/dist/ui/sheet.js +21 -21
  99. package/dist/ui/spinner.js +1 -36
  100. package/dist/ui/switch.js +1 -20
  101. package/dist/ui/tabs.js +20 -47
  102. package/dist/ui/textarea.d.ts.map +1 -1
  103. package/dist/ui/textarea.js +30 -24
  104. package/dist/ui/toast.js +18 -18
  105. package/dist/ui/tooltip.js +6 -17
  106. package/llms-full.txt +123 -13
  107. package/llms.txt +9 -6
  108. package/package.json +80 -11
@@ -1,8 +1,8 @@
1
- import { jsxs as b, jsx as p } from "react/jsx-runtime";
2
- import * as f from "react";
3
- import { cva as m } from "class-variance-authority";
4
- import { cn as a } from "../ui/lib/utils.js";
5
- const y = m(
1
+ import { jsxs as i, jsx as u } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import { cva as y } from "class-variance-authority";
4
+ import { cn as r } from "../ui/lib/utils.js";
5
+ const g = y(
6
6
  "inline-flex items-center gap-ds-02b rounded-ds-full font-body",
7
7
  {
8
8
  variants: {
@@ -47,31 +47,59 @@ const y = m(
47
47
  error: "bg-error",
48
48
  info: "bg-info",
49
49
  neutral: "bg-icon-secondary"
50
- }, v = f.forwardRef(
51
- ({ status: c, color: e, size: r, label: o, hideDot: n = !1, className: d, ...i }, u) => {
52
- const t = e != null, s = t ? void 0 : c ?? "pending", g = t ? e : void 0, l = o ?? (t ? e.charAt(0).toUpperCase() + e.slice(1) : s.charAt(0).toUpperCase() + s.slice(1)), x = t ? h[e] : w[s];
53
- return /* @__PURE__ */ b(
50
+ }, v = m.forwardRef(
51
+ ({ status: l, color: e, size: s, label: a, hideDot: c = !1, className: n, ...d }, o) => {
52
+ if (e != null) {
53
+ const p = a ?? e.charAt(0).toUpperCase() + e.slice(1), f = h[e];
54
+ return /* @__PURE__ */ i(
55
+ "span",
56
+ {
57
+ ref: o,
58
+ className: r(
59
+ g({ color: e, size: s }),
60
+ n
61
+ ),
62
+ ...d,
63
+ children: [
64
+ !c && /* @__PURE__ */ u(
65
+ "span",
66
+ {
67
+ className: r(
68
+ "shrink-0 rounded-ds-full",
69
+ s === "sm" ? "h-ds-02b w-ds-02b" : "h-[8px] w-[8px]",
70
+ f
71
+ ),
72
+ "aria-hidden": "true"
73
+ }
74
+ ),
75
+ p
76
+ ]
77
+ }
78
+ );
79
+ }
80
+ const t = l ?? "pending", x = a ?? t.charAt(0).toUpperCase() + t.slice(1), b = w[t];
81
+ return /* @__PURE__ */ i(
54
82
  "span",
55
83
  {
56
- ref: u,
57
- className: a(
58
- y({ status: s, color: g, size: r }),
59
- d
84
+ ref: o,
85
+ className: r(
86
+ g({ status: t, size: s }),
87
+ n
60
88
  ),
61
- ...i,
89
+ ...d,
62
90
  children: [
63
- !n && /* @__PURE__ */ p(
91
+ !c && /* @__PURE__ */ u(
64
92
  "span",
65
93
  {
66
- className: a(
94
+ className: r(
67
95
  "shrink-0 rounded-ds-full",
68
- r === "sm" ? "h-ds-02b w-ds-02b" : "h-[8px] w-[8px]",
69
- x
96
+ s === "sm" ? "h-ds-02b w-ds-02b" : "h-[8px] w-[8px]",
97
+ b
70
98
  ),
71
99
  "aria-hidden": "true"
72
100
  }
73
101
  ),
74
- l
102
+ x
75
103
  ]
76
104
  }
77
105
  );
@@ -80,5 +108,5 @@ const y = m(
80
108
  v.displayName = "StatusBadge";
81
109
  export {
82
110
  v as StatusBadge,
83
- y as statusBadgeVariants
111
+ g as statusBadgeVariants
84
112
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-color-mode.d.ts","sourceRoot":"","sources":["../../src/hooks/use-color-mode.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAYnD,wBAAgB,YAAY;;qCAMiB,SAAS;;EAwBrD"}
1
+ {"version":3,"file":"use-color-mode.d.ts","sourceRoot":"","sources":["../../src/hooks/use-color-mode.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAYnD,wBAAgB,YAAY;;qCAOiB,SAAS;;EAwBrD"}
@@ -1,13 +1,17 @@
1
1
  "use client";
2
- import { useState as d, useCallback as n, useEffect as m } from "react";
2
+ import { useState as d, useCallback as s, useEffect as m } from "react";
3
3
  function i(t) {
4
4
  return t === "system" ? typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : t;
5
5
  }
6
6
  function u() {
7
- const [t, s] = d(() => typeof window > "u" ? "system" : localStorage.getItem("theme") ?? "system"), r = n((e) => {
7
+ const [t, n] = d(() => {
8
+ if (typeof window > "u") return "system";
9
+ const e = localStorage.getItem("theme");
10
+ return e === "light" || e === "dark" || e === "system" ? e : "system";
11
+ }), r = s((e) => {
8
12
  const o = i(e);
9
- document.documentElement.classList.toggle("dark", o === "dark"), localStorage.setItem("theme", e), document.cookie = `theme=${e};path=/;max-age=31536000;SameSite=Lax`, s(e);
10
- }, []), a = n(() => {
13
+ document.documentElement.classList.toggle("dark", o === "dark"), localStorage.setItem("theme", e), document.cookie = `theme=${e};path=/;max-age=31536000;SameSite=Lax`, n(e);
14
+ }, []), a = s(() => {
11
15
  const e = document.documentElement.classList.contains("dark");
12
16
  r(e ? "light" : "dark");
13
17
  }, [r]);
@@ -1,3 +1,8 @@
1
1
  "use client";
2
+ /**
3
+ * Returns `false` during SSR and before the first client-side effect.
4
+ * If you need to distinguish "not yet measured" from "not mobile",
5
+ * use the raw state instead.
6
+ */
2
7
  export declare function useIsMobile(): boolean;
3
8
  //# sourceMappingURL=use-mobile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.ts"],"names":[],"mappings":"AAMA,wBAAgB,WAAW,YAc1B"}
1
+ {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,wBAAgB,WAAW,YAc1B"}