stone-kit 0.0.292 → 0.0.293

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.
@@ -0,0 +1 @@
1
+ export { SummarySelect } from './ui/SummarySelect.tsx';
@@ -0,0 +1,4 @@
1
+ import { SummarySelect as r } from "./ui/SummarySelect.js";
2
+ export {
3
+ r as SummarySelect
4
+ };
@@ -0,0 +1,4 @@
1
+ interface ISummarySelectProps {
2
+ }
3
+ export declare const SummarySelect: ({}: ISummarySelectProps) => import("react/jsx-runtime").JSX.Element;
4
+ export {};
@@ -0,0 +1,34 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { useState as p } from "react";
3
+ import { Select as c } from "../../Select/ui/Select.js";
4
+ const s = {}, v = ({}) => {
5
+ const l = [
6
+ { value: "option1", label: "Option 1" },
7
+ { value: "option2", label: "Option 2" },
8
+ { value: "option3", label: "Option 3" },
9
+ { value: "option4", label: "Option 4" }
10
+ ], [e, n] = p([]), a = (o) => {
11
+ !o || o.length === 0 || n(o);
12
+ };
13
+ return /* @__PURE__ */ i("div", { className: s.root, children: [
14
+ /* @__PURE__ */ t(
15
+ c,
16
+ {
17
+ selectedValues: e,
18
+ options: l,
19
+ onChange: (o) => a(o)
20
+ }
21
+ ),
22
+ e && e.length > 0 && (e == null ? void 0 : e.map((o) => /* @__PURE__ */ t(
23
+ "div",
24
+ {
25
+ onClick: (r) => console.log(r.target),
26
+ children: o.label
27
+ },
28
+ o.value
29
+ )))
30
+ ] });
31
+ };
32
+ export {
33
+ v as SummarySelect
34
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.292",
5
+ "version": "0.0.293",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",