@kahitsan/ksui 0.38.2 → 0.38.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kahitsan/ksui",
3
- "version": "0.38.2",
3
+ "version": "0.38.3",
4
4
  "description": "ksui is a standalone set of SolidJS UI components for KahitSan/Hilinga and any SolidJS app. Published to the public npm registry and consumed as a normal dependency. Ships source under a `solid` export condition so the consumer's vite-plugin-solid compiles it with only solid-js externalized; it depends on nothing but solid-js + lucide-solid and injects its own CSS.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -673,14 +673,19 @@ export default function TransactionForm(props: TransactionFormProps) {
673
673
  }}
674
674
  />
675
675
  </FormField>
676
- <FormField label="Receipt / Ref #">
676
+ <FormField label={props.category === "sale" ? "Invoice ID" : "Receipt / Ref #"}>
677
677
  <input
678
678
  type="text"
679
679
  value={props.refNumber}
680
680
  onInput={(e) => props.setRefNumber(e.currentTarget.value)}
681
681
  class="w-full bg-[color-mix(in_srgb,var(--ks-overlay-surface,#18181b)_60%,transparent)] border border-[color-mix(in_srgb,var(--ks-border,rgba(39,39,42,0.5))_60%,transparent)] px-3 py-3 text-sm text-[var(--ks-fg,#ffffff)] ks-hud-clip-button focus:outline-none focus:border-[color-mix(in_srgb,var(--ks-focus-ring,#c9a961)_50%,transparent)]"
682
- placeholder="OR#, SI#, or ref number"
682
+ placeholder={props.category === "sale" ? "Auto-assigned; enter to override" : "OR#, SI#, or ref number"}
683
683
  />
684
+ <Show when={props.category === "sale"}>
685
+ <p class="mt-1 text-[10px] text-[var(--ks-fg-subtle,#71717a)]">
686
+ Leave blank for automatic numbering. Backdated sales can use a custom ID.
687
+ </p>
688
+ </Show>
684
689
  </FormField>
685
690
  </div>
686
691
  </Show>