@wpic/ui 0.9.33 → 0.9.34

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/wpic-ui.js CHANGED
@@ -40,12 +40,14 @@ const O3 = {
40
40
  "wpic:focus-visible:outline-none wpic:focus-visible:ring-2 wpic:focus-visible:ring-indigo-500/50 wpic:focus-visible:ring-offset-1",
41
41
  "wpic:active:scale-[0.98]",
42
42
  n.disabled || n.loading ? "wpic:opacity-40 wpic:cursor-not-allowed wpic:pointer-events-none" : "",
43
- n.active ? "wpic-button--active" : "",
43
+ n.active && c.variant !== "text" ? "wpic-button--active" : "",
44
44
  // Size
45
45
  (c.size ?? "md") === "sm" ? "wpic:h-8 wpic:touch-manipulation wpic:px-2.5 wpic:gap-1.5 wpic:rounded-md wpic:text-sm" : "",
46
46
  (c.size ?? "md") === "md" ? (c.variant === "subtle" ? "wpic:h-11" : "wpic:h-9") + " wpic:px-3.5 wpic:gap-2 wpic:rounded-lg" : "",
47
47
  (c.size ?? "md") === "lg" ? (c.variant === "subtle" ? "wpic:h-12" : "wpic:h-11") + " wpic:px-4 wpic:gap-2 wpic:rounded-lg" : "",
48
48
  (c.size ?? "md") === "xs" ? "wpic:h-5 wpic:w-5 wpic:p-0 wpic:rounded-full wpic:text-xs" : "",
49
+ // Text actions keep both resting and hover states free of a surface.
50
+ c.variant === "text" ? n.active ? "wpic:bg-transparent wpic:text-indigo-600 wpic:dark:text-indigo-400" : "wpic:bg-transparent wpic:text-zinc-600 wpic:hover:text-zinc-900 wpic:dark:text-zinc-400 wpic:dark:hover:text-zinc-200" : "",
49
51
  // Variant
50
52
  (c.variant ?? "primary") === "primary" ? "wpic-btn-primary wpic:text-white" : "",
51
53
  (c.variant ?? "primary") === "secondary" ? "wpic:bg-zinc-100 wpic:hover:bg-zinc-200 wpic:text-zinc-700 wpic:dark:bg-zinc-800 wpic:dark:hover:bg-zinc-700 wpic:dark:text-zinc-200" : "",
@@ -2858,7 +2860,7 @@ const G5 = ["data-wpic-theme"], K1 = /* @__PURE__ */ X({
2858
2860
  n.showAttachments ? (e(), t("button", {
2859
2861
  key: 0,
2860
2862
  type: "button",
2861
- class: "wpic-chat-panel__attach-button wpic:flex wpic:h-8 wpic:w-8 wpic:items-center wpic:justify-center wpic:rounded-lg wpic:text-zinc-400 wpic:transition wpic:hover:bg-zinc-100 wpic:hover:text-zinc-700 wpic:disabled:opacity-40 wpic:dark:hover:bg-zinc-600 wpic:dark:hover:text-zinc-100",
2863
+ class: "wpic-chat-panel__attach-button wpic:flex wpic:h-8 wpic:w-8 wpic:items-center wpic:justify-center wpic:rounded-lg wpic:bg-transparent wpic:text-zinc-400 wpic:transition wpic:hover:text-zinc-700 wpic:disabled:opacity-40 wpic:dark:hover:text-zinc-100",
2862
2864
  disabled: n.loading,
2863
2865
  title: n.attachFilesLabel,
2864
2866
  onClick: J0
@@ -2948,7 +2950,7 @@ const G5 = ["data-wpic-theme"], K1 = /* @__PURE__ */ X({
2948
2950
  })
2949
2951
  ]));
2950
2952
  }
2951
- }), ol = /* @__PURE__ */ W1(V6, [["__scopeId", "data-v-5a2f5688"]]), $6 = { class: "wpic-pagination wpic:flex wpic:items-center wpic:justify-between wpic:gap-4" }, B6 = { class: "wpic:text-sm wpic:text-zinc-400 wpic:dark:text-zinc-500 wpic:shrink-0" }, S6 = { class: "wpic:flex wpic:items-center wpic:gap-1" }, A6 = ["disabled"], F6 = {
2953
+ }), ol = /* @__PURE__ */ W1(V6, [["__scopeId", "data-v-4335d067"]]), $6 = { class: "wpic-pagination wpic:flex wpic:items-center wpic:justify-between wpic:gap-4" }, B6 = { class: "wpic:text-sm wpic:text-zinc-400 wpic:dark:text-zinc-500 wpic:shrink-0" }, S6 = { class: "wpic:flex wpic:items-center wpic:gap-1" }, A6 = ["disabled"], F6 = {
2952
2954
  key: 0,
2953
2955
  class: "wpic:w-7 wpic:h-7 wpic:inline-flex wpic:items-center wpic:justify-center wpic:text-sm wpic:text-zinc-400 wpic:select-none"
2954
2956
  }, H6 = ["onClick"], P6 = ["disabled"], sl = /* @__PURE__ */ X({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpic/ui",
3
- "version": "0.9.33",
3
+ "version": "0.9.34",
4
4
  "type": "module",
5
5
  "description": "WPIC shared Vue 3 component library",
6
6
  "publishConfig": {