@mrts/soltw 0.3.24 → 0.3.27

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.d.ts CHANGED
@@ -62,7 +62,7 @@ declare class SVTStyler implements ISVTStyler {
62
62
  readonly _rules: SVTRule[];
63
63
  readonly options: SVTStylerOptions;
64
64
  constructor(rules: SVTRuleDef[], options?: SVTStylerOptions);
65
- with(rules: SVTRuleDef[], options?: SVTStylerOptions): SVTStyler;
65
+ with(rules: SVTRuleDef[], _options?: SVTStylerOptions): SVTStyler;
66
66
  classes(stags: TagListArgument, vtags: TagListArgument): string[];
67
67
  static normalizeRule(rule: SVTRuleDef): SVTRule;
68
68
  ruleMatches(rule: SVTRule, stags: string[], vtags: string[]): boolean;
package/dist/index.js CHANGED
@@ -2975,7 +2975,7 @@ var SVTStyler = class SVTStyler {
2975
2975
  for (const r of rules) this._rules.push(SVTStyler.normalizeRule(r));
2976
2976
  this.options = { ...options };
2977
2977
  }
2978
- with(rules, options = {}) {
2978
+ with(rules, _options = {}) {
2979
2979
  const addedRules = [];
2980
2980
  for (const r of rules) addedRules.push(SVTStyler.normalizeRule(r));
2981
2981
  const styler = new SVTStyler([], { ...this.options });
@@ -3160,12 +3160,15 @@ const Item = (props) => {
3160
3160
  rawClasses.push("absolute inset-0");
3161
3161
  return twMerge(rawClasses);
3162
3162
  });
3163
- function handleClick() {
3164
- if (props.callback != void 0) props.callback(itemData());
3163
+ function handleClick(e) {
3164
+ if (props.callback != void 0) {
3165
+ props.callback(itemData());
3166
+ e.stopPropagation();
3167
+ }
3165
3168
  }
3166
3169
  return (() => {
3167
3170
  var _el$ = _tmpl$$2();
3168
- _el$.$$click = handleClick;
3171
+ _el$.$$click = (e) => handleClick(e);
3169
3172
  insert(_el$, () => itemData().label, null);
3170
3173
  insert(_el$, createComponent(Show, {
3171
3174
  get when() {
@@ -3292,7 +3295,7 @@ const ItemGroup = (props) => {
3292
3295
  //#endregion
3293
3296
  //#region src/soltw.tsx
3294
3297
  var _tmpl$ = /* @__PURE__ */ template(`<div class=bg-red-600>- - S O L T W - -`);
3295
- const SolTw = (props) => {
3298
+ const SolTw = (_props) => {
3296
3299
  return _tmpl$();
3297
3300
  };
3298
3301
 
package/dist/index.jsx CHANGED
@@ -2612,7 +2612,7 @@ var SVTStyler = class SVTStyler {
2612
2612
  for (const r of rules) this._rules.push(SVTStyler.normalizeRule(r));
2613
2613
  this.options = { ...options };
2614
2614
  }
2615
- with(rules, options = {}) {
2615
+ with(rules, _options = {}) {
2616
2616
  const addedRules = [];
2617
2617
  for (const r of rules) addedRules.push(SVTStyler.normalizeRule(r));
2618
2618
  const styler = new SVTStyler([], { ...this.options });
@@ -2796,10 +2796,13 @@ const Item = (props) => {
2796
2796
  rawClasses.push("absolute inset-0");
2797
2797
  return twMerge(rawClasses);
2798
2798
  });
2799
- function handleClick() {
2800
- if (props.callback != void 0) props.callback(itemData());
2799
+ function handleClick(e) {
2800
+ if (props.callback != void 0) {
2801
+ props.callback(itemData());
2802
+ e.stopPropagation();
2803
+ }
2801
2804
  }
2802
- return <div onClick={handleClick} class={itemClasses()}>
2805
+ return <div onClick={(e) => handleClick(e)} class={itemClasses()}>
2803
2806
  {itemData().label}
2804
2807
  <Show when={props.disabled}>
2805
2808
  <div class={disablerClasses()} onClick={(e) => {
@@ -2887,7 +2890,7 @@ const ItemGroup = (props) => {
2887
2890
 
2888
2891
  //#endregion
2889
2892
  //#region src/soltw.tsx
2890
- const SolTw = (props) => {
2893
+ const SolTw = (_props) => {
2891
2894
  return <div class="bg-red-600">- - S O L T W - -</div>;
2892
2895
  };
2893
2896
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mrts/soltw",
3
3
  "description": "S O L T W : SolidJS + tailwindcss ui components",
4
- "version": "0.3.24",
4
+ "version": "0.3.27",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "9e127f5f0082dc4b9afdd957f0a8bfb51a6527f2"
43
+ "gitHead": "253945f8c59421c8a70325bcb13c4f9e2f12c4ce"
44
44
  }