@tachui/primitives 0.8.34 → 0.11.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.
@@ -104,6 +104,15 @@ export declare class EnhancedButton extends ComponentWithCSSClasses implements C
104
104
  stateSignal: () => ButtonState;
105
105
  private setState;
106
106
  theme: ButtonTheme;
107
+ /**
108
+ * CSS properties this component has written to its element.
109
+ *
110
+ * What separates "a modifier set this" from "I set this last time", which the
111
+ * element's own value cannot answer.
112
+ */
113
+ private readonly ownStyleProperties;
114
+ /** So the ownerless-render notice is said once, not once per prop. */
115
+ private warnedOwnerless;
107
116
  constructor(props: ButtonProps, theme?: ButtonTheme);
108
117
  /**
109
118
  * Set up DOM event listeners for button interactions
@@ -126,9 +135,63 @@ export declare class EnhancedButton extends ComponentWithCSSClasses implements C
126
135
  */
127
136
  private resolveColorValue;
128
137
  /**
129
- * Check if button is enabled
138
+ * Check if button is enabled.
139
+ *
140
+ * Resolves, the way `isLoading` already did. Handing back the signal itself
141
+ * made every consumer wrong in the same direction: `if (!isEnabled)` on a
142
+ * function is never true, so disabled styling never applied and the press
143
+ * guard never fired, while a reactive effect reading this subscribed to
144
+ * nothing.
145
+ */
146
+ isEnabled(): boolean;
147
+ /**
148
+ * The `isEnabled` prop in the form it was given, signal and all.
149
+ *
150
+ * `render` needs the unresolved form: a boolean it can hand straight to the
151
+ * renderer, or a signal the renderer can subscribe to. Everything else wants
152
+ * the resolved value and should use {@link isEnabled}.
153
+ */
154
+ private enabledSource;
155
+ /**
156
+ * `disabled` as the renderer wants it.
157
+ *
158
+ * The renderer subscribes to a prop whose value is a signal and re-applies
159
+ * it on change, which is the only path that works here — the reactive style
160
+ * effect runs on DOM-ready, which `renderComponent` never fires.
161
+ *
162
+ * Built fresh on every render rather than cached, and the identity matters
163
+ * as much as the value. A render happens inside an effect, so an enclosing
164
+ * component re-rendering for any reason at all disposes this scope and takes
165
+ * the renderer's prop subscription with it. The renderer then diffs the new
166
+ * props against the old by identity and skips anything unchanged — so a
167
+ * cached accessor would be recognised, skipped, and never resubscribed,
168
+ * leaving the attribute frozen at whatever it last read. A new memo each
169
+ * time is a prop that has changed, which is precisely what has happened.
170
+ */
171
+ /**
172
+ * The computed styles, as the renderer wants them.
173
+ *
174
+ * Owned the same way `disabled` is, and for the same reason: a subscription
175
+ * made where nothing disposes it is held for the life of the process. With an
176
+ * owner the renderer tracks the styles and re-applies them; without one they
177
+ * are a snapshot, which is still more than the DOM-ready effect managed on
178
+ * that path.
179
+ *
180
+ * Applied *before* modifiers, which is the ordering that makes modifier
181
+ * precedence work by construction rather than by inspecting what is already
182
+ * on the element.
130
183
  */
131
- isEnabled(): boolean | (() => boolean);
184
+ /**
185
+ * Says once, in development, that this Button is rendering where nothing can
186
+ * dispose a subscription — so its reactive props are snapshots.
187
+ *
188
+ * The alternative is a control that silently stops tracking depending on how
189
+ * its container happened to mount it. The comparison is written inline so a
190
+ * bundler can drop it.
191
+ */
192
+ private warnOwnerlessRender;
193
+ private styleProp;
194
+ private disabledProp;
132
195
  /**
133
196
  * Render the button component
134
197
  */
@@ -139,7 +202,8 @@ export declare class EnhancedButton extends ComponentWithCSSClasses implements C
139
202
  debugLabel?: string | undefined;
140
203
  className: string | Signal<string>;
141
204
  type: string;
142
- disabled: boolean;
205
+ disabled: boolean | (() => boolean);
206
+ style: Record<string, any> | (() => Record<string, any>);
143
207
  onClick: (() => void) | undefined;
144
208
  };
145
209
  children: import("@tachui/core").DOMNode[];
@@ -215,6 +279,35 @@ export declare function Button(title: string | (() => string) | Signal<string>,
215
279
  * object.
216
280
  */
217
281
  export declare function Button(title: string | (() => string) | Signal<string>, props?: Omit<ButtonProps, 'title'>): ModifiableComponentWithModifiers<ButtonProps>;
282
+ type ButtonTitle = string | (() => string) | Signal<string>;
283
+ type ButtonAction = () => void | Promise<void>;
284
+ /**
285
+ * The call shapes every `ButtonStyles.*` helper accepts.
286
+ *
287
+ * Two overloads rather than one signature admitting both, mirroring `Button`
288
+ * itself. A single `(title, actionOrProps?, props?)` signature compiles
289
+ * `Filled('a', { css: 'x' }, { disabled: true })` — an object second *and* a
290
+ * third argument — which the implementation cannot honour: it branches on
291
+ * `typeof actionOrProps === 'function'`, takes the object path, and forwards
292
+ * only the second, dropping the third with no error and no warning (#307).
293
+ * Splitting the shapes makes that call match no overload, so it fails to
294
+ * compile instead of silently losing props.
295
+ *
296
+ * `TReserved` names the prop the helper sets for you — `variant` for `Filled`
297
+ * and friends, `role` for `Destructive` and `Cancel` — and `Omit`s it from both
298
+ * forms, carrying forward what these signatures already declared.
299
+ *
300
+ * Note that the `Omit` documents the intent without enforcing it: `ButtonProps`
301
+ * inherits `[key: string]: any` from `ComponentProps`, so the index signature
302
+ * still admits the key that `Omit` removed. Passing `variant` to `Filled`
303
+ * compiles and is then overwritten. Closing that would mean intersecting a
304
+ * `{ [K in TReserved]?: never }`, which turns a call that compiles today into
305
+ * an error — a separate change from this one, and not a patch-safe one.
306
+ */
307
+ interface ButtonStyleHelper<TReserved extends keyof ButtonProps> {
308
+ (title: ButtonTitle, action?: ButtonAction, props?: Omit<ButtonProps, 'title' | 'action' | TReserved>): ModifiableComponentWithModifiers<ButtonProps>;
309
+ (title: ButtonTitle, props?: Omit<ButtonProps, 'title' | TReserved>): ModifiableComponentWithModifiers<ButtonProps>;
310
+ }
218
311
  /**
219
312
  * Button variant shortcuts
220
313
  */
@@ -222,26 +315,27 @@ export declare const ButtonStyles: {
222
315
  /**
223
316
  * Filled button (primary)
224
317
  */
225
- Filled: (title: string | (() => string) | Signal<string>, actionOrProps?: (() => void | Promise<void>) | Omit<ButtonProps, "title" | "variant">, props?: Omit<ButtonProps, "title" | "action" | "variant">) => ModifiableComponentWithModifiers<ButtonProps>;
318
+ Filled: ButtonStyleHelper<"variant">;
226
319
  /**
227
320
  * Outlined button
228
321
  */
229
- Outlined: (title: string | (() => string) | Signal<string>, actionOrProps?: (() => void | Promise<void>) | Omit<ButtonProps, "title" | "variant">, props?: Omit<ButtonProps, "title" | "action" | "variant">) => ModifiableComponentWithModifiers<ButtonProps>;
322
+ Outlined: ButtonStyleHelper<"variant">;
230
323
  /**
231
324
  * Plain button (text only)
232
325
  */
233
- Plain: (title: string | (() => string) | Signal<string>, actionOrProps?: (() => void | Promise<void>) | Omit<ButtonProps, "title" | "variant">, props?: Omit<ButtonProps, "title" | "action" | "variant">) => ModifiableComponentWithModifiers<ButtonProps>;
326
+ Plain: ButtonStyleHelper<"variant">;
234
327
  /**
235
328
  * Bordered button
236
329
  */
237
- Bordered: (title: string | (() => string) | Signal<string>, actionOrProps?: (() => void | Promise<void>) | Omit<ButtonProps, "title" | "variant">, props?: Omit<ButtonProps, "title" | "action" | "variant">) => ModifiableComponentWithModifiers<ButtonProps>;
330
+ Bordered: ButtonStyleHelper<"variant">;
238
331
  /**
239
332
  * Destructive button
240
333
  */
241
- Destructive: (title: string | (() => string) | Signal<string>, actionOrProps?: (() => void | Promise<void>) | Omit<ButtonProps, "title" | "role">, props?: Omit<ButtonProps, "title" | "action" | "role">) => ModifiableComponentWithModifiers<ButtonProps>;
334
+ Destructive: ButtonStyleHelper<"role">;
242
335
  /**
243
336
  * Cancel button
244
337
  */
245
- Cancel: (title: string | (() => string) | Signal<string>, actionOrProps?: (() => void | Promise<void>) | Omit<ButtonProps, "title" | "role">, props?: Omit<ButtonProps, "title" | "action" | "role">) => ModifiableComponentWithModifiers<ButtonProps>;
338
+ Cancel: ButtonStyleHelper<"role">;
246
339
  };
340
+ export {};
247
341
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/controls/Button.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,gCAAgC,EAChC,cAAc,EACd,MAAM,EACP,MAAM,cAAc,CAAA;AACrB,OAAO,EAQL,UAAU,EACX,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAA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CAAC,GAC5C,gCAAgC,CAAC,WAAW,CAAC,CAAA;AAChD;;;;GAIG;AACH,wBAAgB,MAAM,CACpB,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAC/C,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GACjC,gCAAgC,CAAC,WAAW,CAAC,CAAA;AA+BhD,KAAK,WAAW,GAAG,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;AAC3D,KAAK,YAAY,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAE9C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,UAAU,iBAAiB,CAAC,SAAS,SAAS,MAAM,WAAW;IAC7D,CACE,KAAK,EAAE,WAAW,EAClB,MAAM,CAAC,EAAE,YAAY,EACrB,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC,GACxD,gCAAgC,CAAC,WAAW,CAAC,CAAA;IAChD,CACE,KAAK,EAAE,WAAW,EAClB,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC,GAC7C,gCAAgC,CAAC,WAAW,CAAC,CAAA;CACjD;AA2BD;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEJ,CAAA"}
@@ -1,4 +1,4 @@
1
- import { B as s, a as t, E as l, b as n, c as g, L as i, d as o, P as c, e as T, f as h, T as k, g as r, h as d, i as u, j as B } from "../Picker-CV6BRZGk.js";
1
+ import { B as s, a as t, E as l, b as n, c as g, L as i, d as o, P as c, e as T, f as h, T as k, g as r, h as d, i as u, j as B } from "../Picker-DoiXP31Q.js";
2
2
  export {
3
3
  s as Button,
4
4
  t as ButtonStyles,
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Divider as y, DividerComponent as j, DividerStyles as S, DividerUtils as A, HStack as L, Spacer as O, SpacerComponent as C, VStack as V, ZStack as H, defaultDividerTheme as E } from "./layout/index.js";
2
2
  import { E as F, H as q, T as U, a as _, b as N, c as D } from "./Text-DmpfnY1o.js";
3
3
  import { E as R, a as M, H as G, b as K, c as Z, d as z, e as J, f as Q, g as X, I as Y, h as ee, i as te, j as oe, S as ne, k as ie } from "./ScrollView-DdlbVVKn.js";
4
- import { B as ae, a as se, E as ce, b as le, c as pe, L as de, d as ge, P as ue, e as me, f as he, T as fe, g as ve, h as we, i as xe, j as ke } from "./Picker-CV6BRZGk.js";
4
+ import { B as ae, a as se, E as ce, b as le, c as pe, L as de, d as ge, P as ue, e as me, f as he, T as fe, g as ve, h as we, i as xe, j as ke } from "./Picker-DoiXP31Q.js";
5
5
  import { B as Te, a as be, b as Pe, c as Ie, d as ye, e as je, f as Se } from "./BasicInput-CxQxJL1j.js";
6
6
  import { LayoutComponent as Le } from "@tachui/core/components";
7
7
  import { withModifiers as Ce } from "@tachui/core";
@@ -425,7 +425,7 @@ const B = {
425
425
  }
426
426
  console.groupEnd();
427
427
  }
428
- }, w = "@tachui/primitives", x = "0.8.34", T = w, b = x;
428
+ }, w = "@tachui/primitives", x = "0.11.0", T = w, b = x;
429
429
  export {
430
430
  Te as BasicForm,
431
431
  be as BasicFormImplementation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachui/primitives",
3
- "version": "0.8.34",
3
+ "version": "0.11.0",
4
4
  "description": "Basic UI components for tachUI framework",
5
5
  "homepage": "https://tachui.dev/",
6
6
  "type": "module",
@@ -48,8 +48,8 @@
48
48
  "lint": "oxlint src"
49
49
  },
50
50
  "dependencies": {
51
- "@tachui/core": "0.8.32",
52
- "@tachui/modifiers": "0.8.33"
51
+ "@tachui/core": "0.11.0",
52
+ "@tachui/modifiers": "0.11.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^20.0.0",