@mrts/soltw 0.3.31 → 0.3.33

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
@@ -88,6 +88,7 @@ type TItemProps = {
88
88
  clickableWhendisabled?: boolean;
89
89
  styler?: ISVTStyler;
90
90
  vtags?: TagListArgument;
91
+ stags?: TagListArgument;
91
92
  class?: TItemClassArg;
92
93
  };
93
94
  declare const Item: Component<TItemProps>;
package/dist/index.js CHANGED
@@ -3088,11 +3088,14 @@ const Item = (props) => {
3088
3088
  const itemData = () => {
3089
3089
  return buildIdLabel(props.idLabel);
3090
3090
  };
3091
+ const moreSTags = () => {
3092
+ return argTokenizeBySpaces(props.stags);
3093
+ };
3091
3094
  const currentSTags = () => {
3092
3095
  const r = [];
3093
- r.push("item");
3094
- if (props.selected) r.push("item:selected");
3095
- if (props.disabled) r.push("item:disabled");
3096
+ r.push("item", ...moreSTags());
3097
+ if (props.selected) r.push("item:selected", ...moreSTags().map((stag) => `${stag}:selected`));
3098
+ if (props.disabled) r.push("item:disabled", ...moreSTags().map((stag) => `${stag}:disabled`));
3096
3099
  return r;
3097
3100
  };
3098
3101
  const currentStyler = () => props.styler ?? Stylers.base;
@@ -3252,7 +3255,8 @@ const ItemGroup = (props) => {
3252
3255
  },
3253
3256
  get styler() {
3254
3257
  return props.styler;
3255
- }
3258
+ },
3259
+ stags: "group/item"
3256
3260
  });
3257
3261
  }
3258
3262
  });
package/dist/index.jsx CHANGED
@@ -2705,11 +2705,14 @@ const Item = (props) => {
2705
2705
  const itemData = () => {
2706
2706
  return buildIdLabel(props.idLabel);
2707
2707
  };
2708
+ const moreSTags = () => {
2709
+ return argTokenizeBySpaces(props.stags);
2710
+ };
2708
2711
  const currentSTags = () => {
2709
2712
  const r = [];
2710
- r.push("item");
2711
- if (props.selected) r.push("item:selected");
2712
- if (props.disabled) r.push("item:disabled");
2713
+ r.push("item", ...moreSTags());
2714
+ if (props.selected) r.push("item:selected", ...moreSTags().map((stag) => `${stag}:selected`));
2715
+ if (props.disabled) r.push("item:disabled", ...moreSTags().map((stag) => `${stag}:disabled`));
2713
2716
  return r;
2714
2717
  };
2715
2718
  const currentStyler = () => props.styler ?? Stylers.base;
@@ -2822,7 +2825,7 @@ const ItemGroup = (props) => {
2822
2825
  <For each={items()}>
2823
2826
  {(item) => {
2824
2827
  const selected = () => itemSelected(item.id);
2825
- return <Item idLabel={item} selected={selected()} callback={() => callCallback(item)} class={itemClasses()} vtags={currentVTags().item} styler={props.styler}></Item>;
2828
+ return <Item idLabel={item} selected={selected()} callback={() => callCallback(item)} class={itemClasses()} vtags={currentVTags().item} styler={props.styler} stags="group/item"></Item>;
2826
2829
  }}
2827
2830
  </For>
2828
2831
  </Block>;
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.31",
4
+ "version": "0.3.33",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "author": "microu",
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@mrts/common": "^0.3.31",
25
+ "@mrts/common": "^0.3.32",
26
26
  "@types/node": "^22.13.0",
27
27
  "rolldown-plugin-solid": "^0.2.1",
28
28
  "solid-js": "^1.9.9",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "bb04046cb4d1736dfd556f860d936e7a89fbc750"
43
+ "gitHead": "72b6895136b714d9f321e0717f1b91de4f1459e9"
44
44
  }