@telegraph/select 0.0.88 → 0.0.89

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @telegraph/select
2
2
 
3
+ ## 0.0.89
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f9dcbe7`](https://github.com/knocklabs/telegraph/commit/f9dcbe7bd8c79afd3dd25329b1f6ea6df202f85a)]:
8
+ - @telegraph/combobox@0.2.6
9
+
3
10
  ## 0.0.88
4
11
 
5
12
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("@telegraph/combobox"),m=({size:t="1",value:e,onValueChange:n,defaultValue:s,triggerProps:b,contentProps:c,optionsProps:i,children:x,...l})=>o.jsxs(r.Combobox.Root,{value:e,onValueChange:n,defaultValue:s,closeOnSelect:!Array.isArray(e)&&!Array.isArray(s),...l,children:[o.jsx(r.Combobox.Trigger,{size:t,...b}),o.jsx(r.Combobox.Content,{...c,children:o.jsx(r.Combobox.Options,{...i,children:x})})]}),j=({value:t,children:e,...n})=>o.jsx(r.Combobox.Option,{value:t,label:e,...n}),y={Root:m,Option:j};exports.Select=y;
2
- //# sourceMappingURL=index.js.map
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@telegraph/combobox`),t=require(`react/jsx-runtime`);var n={Root:({size:n=`1`,value:r,onValueChange:i,defaultValue:a,triggerProps:o,contentProps:s,optionsProps:c,children:l,...u})=>(0,t.jsxs)(e.Combobox.Root,{value:r,onValueChange:i,defaultValue:a,closeOnSelect:!Array.isArray(r)&&!Array.isArray(a),...u,children:[(0,t.jsx)(e.Combobox.Trigger,{size:n,...o}),(0,t.jsx)(e.Combobox.Content,{...s,children:(0,t.jsx)(e.Combobox.Options,{...c,children:l})})]}),Option:({value:n,children:r,...i})=>(0,t.jsx)(e.Combobox.Option,{value:n,label:r,...i})};exports.Select=n;
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Combobox } from \"@telegraph/combobox\";\nimport { TgphComponentProps } from \"@telegraph/helpers\";\n\ntype Option = TgphComponentProps<typeof Combobox.Option>;\n\ntype RootProps = TgphComponentProps<typeof Combobox.Root> & {\n size?: TgphComponentProps<typeof Combobox.Trigger>[\"size\"];\n triggerProps?: TgphComponentProps<typeof Combobox.Trigger>;\n contentProps?: TgphComponentProps<typeof Combobox.Content>;\n optionsProps?: TgphComponentProps<typeof Combobox.Options>;\n};\nconst Root = ({\n size = \"1\",\n value,\n onValueChange,\n defaultValue,\n triggerProps,\n contentProps,\n optionsProps,\n children,\n ...props\n}: RootProps) => {\n return (\n <Combobox.Root\n value={value}\n onValueChange={onValueChange}\n defaultValue={defaultValue}\n closeOnSelect={!Array.isArray(value) && !Array.isArray(defaultValue)}\n {...props}\n >\n <Combobox.Trigger size={size} {...triggerProps} />\n <Combobox.Content {...contentProps}>\n <Combobox.Options {...optionsProps}>{children}</Combobox.Options>\n </Combobox.Content>\n </Combobox.Root>\n );\n};\n\ntype OptionProps = Omit<TgphComponentProps<typeof Combobox.Option>, \"label\">;\n\nconst Option = ({ value, children, ...props }: OptionProps) => {\n return <Combobox.Option value={value} label={children} {...props} />;\n};\n\nconst Select = { Root, Option };\ntype SelectProps = RootProps;\n\nexport { Select };\nexport type { SelectProps, OptionProps, Option };\n"],"names":["Root","size","value","onValueChange","defaultValue","triggerProps","contentProps","optionsProps","children","props","jsxs","Combobox","jsx","Option","Select"],"mappings":"sJAWMA,EAAO,CAAC,CACZ,KAAAC,EAAO,IACP,MAAAC,EACA,cAAAC,EACA,aAAAC,EACA,aAAAC,EACA,aAAAC,EACA,aAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,KAACC,EAAAA,SAAS,KAAT,CACC,MAAAT,EACA,cAAAC,EACA,aAAAC,EACA,cAAe,CAAC,MAAM,QAAQF,CAAK,GAAK,CAAC,MAAM,QAAQE,CAAY,EAClE,GAAGK,EAEJ,SAAA,CAAAG,EAAAA,IAACD,EAAAA,SAAS,QAAT,CAAiB,KAAAV,EAAa,GAAGI,CAAA,CAAc,EAChDO,EAAAA,IAACD,EAAAA,SAAS,QAAT,CAAkB,GAAGL,EACpB,SAAAM,MAACD,EAAAA,SAAS,QAAT,CAAkB,GAAGJ,EAAe,SAAAC,EAAS,CAAA,CAChD,CAAA,CAAA,CAAA,EAOAK,EAAS,CAAC,CAAE,MAAAX,EAAO,SAAAM,EAAU,GAAGC,KAC7BG,EAAAA,IAACD,EAAAA,SAAS,OAAT,CAAgB,MAAAT,EAAc,MAAOM,EAAW,GAAGC,EAAO,EAG9DK,EAAS,CAAE,KAAAd,EAAM,OAAAa,CAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Combobox } from \"@telegraph/combobox\";\nimport { TgphComponentProps } from \"@telegraph/helpers\";\n\ntype Option = TgphComponentProps<typeof Combobox.Option>;\n\ntype RootProps = TgphComponentProps<typeof Combobox.Root> & {\n size?: TgphComponentProps<typeof Combobox.Trigger>[\"size\"];\n triggerProps?: TgphComponentProps<typeof Combobox.Trigger>;\n contentProps?: TgphComponentProps<typeof Combobox.Content>;\n optionsProps?: TgphComponentProps<typeof Combobox.Options>;\n};\nconst Root = ({\n size = \"1\",\n value,\n onValueChange,\n defaultValue,\n triggerProps,\n contentProps,\n optionsProps,\n children,\n ...props\n}: RootProps) => {\n return (\n <Combobox.Root\n value={value}\n onValueChange={onValueChange}\n defaultValue={defaultValue}\n closeOnSelect={!Array.isArray(value) && !Array.isArray(defaultValue)}\n {...props}\n >\n <Combobox.Trigger size={size} {...triggerProps} />\n <Combobox.Content {...contentProps}>\n <Combobox.Options {...optionsProps}>{children}</Combobox.Options>\n </Combobox.Content>\n </Combobox.Root>\n );\n};\n\ntype OptionProps = Omit<TgphComponentProps<typeof Combobox.Option>, \"label\">;\n\nconst Option = ({ value, children, ...props }: OptionProps) => {\n return <Combobox.Option value={value} label={children} {...props} />;\n};\n\nconst Select = { Root, Option };\ntype SelectProps = RootProps;\n\nexport { Select };\nexport type { SelectProps, OptionProps, Option };\n"],"mappings":"uIA4CA,IAAM,EAAS,CAAE,MAjCH,CACZ,OAAO,IACP,QACA,gBACA,eACA,eACA,eACA,eACA,WACA,GAAG,MAGD,EAAA,EAAA,MAAC,EAAA,SAAS,KAAV,CACS,QACQ,gBACD,eACd,cAAe,CAAC,MAAM,QAAQ,EAAM,EAAI,CAAC,MAAM,QAAQ,EAAa,CACpE,GAAI,WALN,EAOE,EAAA,EAAA,KAAC,EAAA,SAAS,QAAV,CAAwB,OAAM,GAAI,EAAgB,CAAA,EAClD,EAAA,EAAA,KAAC,EAAA,SAAS,QAAV,CAAkB,GAAI,YACpB,EAAA,EAAA,KAAC,EAAA,SAAS,QAAV,CAAkB,GAAI,EAAe,WAA4B,CAAA,CAChD,CAAA,CACL,GAUG,QAJP,CAAE,QAAO,WAAU,GAAG,MAC7B,EAAA,EAAA,KAAC,EAAA,SAAS,OAAV,CAAwB,QAAO,MAAO,EAAU,GAAI,EAAS,CAAA,CAGvC"}
@@ -1,30 +1,30 @@
1
- import { jsxs as x, jsx as t } from "react/jsx-runtime";
2
- import { Combobox as r } from "@telegraph/combobox";
3
- const y = ({
4
- size: n = "1",
5
- value: o,
6
- onValueChange: e,
7
- defaultValue: i,
8
- triggerProps: s,
9
- contentProps: c,
10
- optionsProps: p,
11
- children: m,
12
- ...l
13
- }) => /* @__PURE__ */ x(
14
- r.Root,
15
- {
16
- value: o,
17
- onValueChange: e,
18
- defaultValue: i,
19
- closeOnSelect: !Array.isArray(o) && !Array.isArray(i),
20
- ...l,
21
- children: [
22
- /* @__PURE__ */ t(r.Trigger, { size: n, ...s }),
23
- /* @__PURE__ */ t(r.Content, { ...c, children: /* @__PURE__ */ t(r.Options, { ...p, children: m }) })
24
- ]
25
- }
26
- ), A = ({ value: n, children: o, ...e }) => /* @__PURE__ */ t(r.Option, { value: n, label: o, ...e }), a = { Root: y, Option: A };
27
- export {
28
- a as Select
1
+ import { Combobox as e } from "@telegraph/combobox";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ var r = {
4
+ Root: ({ size: r = "1", value: i, onValueChange: a, defaultValue: o, triggerProps: s, contentProps: c, optionsProps: l, children: u, ...d }) => /* @__PURE__ */ n(e.Root, {
5
+ value: i,
6
+ onValueChange: a,
7
+ defaultValue: o,
8
+ closeOnSelect: !Array.isArray(i) && !Array.isArray(o),
9
+ ...d,
10
+ children: [/* @__PURE__ */ t(e.Trigger, {
11
+ size: r,
12
+ ...s
13
+ }), /* @__PURE__ */ t(e.Content, {
14
+ ...c,
15
+ children: /* @__PURE__ */ t(e.Options, {
16
+ ...l,
17
+ children: u
18
+ })
19
+ })]
20
+ }),
21
+ Option: ({ value: n, children: r, ...i }) => /* @__PURE__ */ t(e.Option, {
22
+ value: n,
23
+ label: r,
24
+ ...i
25
+ })
29
26
  };
30
- //# sourceMappingURL=index.mjs.map
27
+ //#endregion
28
+ export { r as Select };
29
+
30
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Combobox } from \"@telegraph/combobox\";\nimport { TgphComponentProps } from \"@telegraph/helpers\";\n\ntype Option = TgphComponentProps<typeof Combobox.Option>;\n\ntype RootProps = TgphComponentProps<typeof Combobox.Root> & {\n size?: TgphComponentProps<typeof Combobox.Trigger>[\"size\"];\n triggerProps?: TgphComponentProps<typeof Combobox.Trigger>;\n contentProps?: TgphComponentProps<typeof Combobox.Content>;\n optionsProps?: TgphComponentProps<typeof Combobox.Options>;\n};\nconst Root = ({\n size = \"1\",\n value,\n onValueChange,\n defaultValue,\n triggerProps,\n contentProps,\n optionsProps,\n children,\n ...props\n}: RootProps) => {\n return (\n <Combobox.Root\n value={value}\n onValueChange={onValueChange}\n defaultValue={defaultValue}\n closeOnSelect={!Array.isArray(value) && !Array.isArray(defaultValue)}\n {...props}\n >\n <Combobox.Trigger size={size} {...triggerProps} />\n <Combobox.Content {...contentProps}>\n <Combobox.Options {...optionsProps}>{children}</Combobox.Options>\n </Combobox.Content>\n </Combobox.Root>\n );\n};\n\ntype OptionProps = Omit<TgphComponentProps<typeof Combobox.Option>, \"label\">;\n\nconst Option = ({ value, children, ...props }: OptionProps) => {\n return <Combobox.Option value={value} label={children} {...props} />;\n};\n\nconst Select = { Root, Option };\ntype SelectProps = RootProps;\n\nexport { Select };\nexport type { SelectProps, OptionProps, Option };\n"],"names":["Root","size","value","onValueChange","defaultValue","triggerProps","contentProps","optionsProps","children","props","jsxs","Combobox","jsx","Option","Select"],"mappings":";;AAWA,MAAMA,IAAO,CAAC;AAAA,EACZ,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC;AAAA,EAACC,EAAS;AAAA,EAAT;AAAA,IACC,OAAAT;AAAA,IACA,eAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAe,CAAC,MAAM,QAAQF,CAAK,KAAK,CAAC,MAAM,QAAQE,CAAY;AAAA,IAClE,GAAGK;AAAA,IAEJ,UAAA;AAAA,MAAA,gBAAAG,EAACD,EAAS,SAAT,EAAiB,MAAAV,GAAa,GAAGI,EAAA,CAAc;AAAA,MAChD,gBAAAO,EAACD,EAAS,SAAT,EAAkB,GAAGL,GACpB,UAAA,gBAAAM,EAACD,EAAS,SAAT,EAAkB,GAAGJ,GAAe,UAAAC,GAAS,EAAA,CAChD;AAAA,IAAA;AAAA,EAAA;AAAA,GAOAK,IAAS,CAAC,EAAE,OAAAX,GAAO,UAAAM,GAAU,GAAGC,QAC7B,gBAAAG,EAACD,EAAS,QAAT,EAAgB,OAAAT,GAAc,OAAOM,GAAW,GAAGC,GAAO,GAG9DK,IAAS,EAAE,MAAAd,GAAM,QAAAa,EAAA;"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Combobox } from \"@telegraph/combobox\";\nimport { TgphComponentProps } from \"@telegraph/helpers\";\n\ntype Option = TgphComponentProps<typeof Combobox.Option>;\n\ntype RootProps = TgphComponentProps<typeof Combobox.Root> & {\n size?: TgphComponentProps<typeof Combobox.Trigger>[\"size\"];\n triggerProps?: TgphComponentProps<typeof Combobox.Trigger>;\n contentProps?: TgphComponentProps<typeof Combobox.Content>;\n optionsProps?: TgphComponentProps<typeof Combobox.Options>;\n};\nconst Root = ({\n size = \"1\",\n value,\n onValueChange,\n defaultValue,\n triggerProps,\n contentProps,\n optionsProps,\n children,\n ...props\n}: RootProps) => {\n return (\n <Combobox.Root\n value={value}\n onValueChange={onValueChange}\n defaultValue={defaultValue}\n closeOnSelect={!Array.isArray(value) && !Array.isArray(defaultValue)}\n {...props}\n >\n <Combobox.Trigger size={size} {...triggerProps} />\n <Combobox.Content {...contentProps}>\n <Combobox.Options {...optionsProps}>{children}</Combobox.Options>\n </Combobox.Content>\n </Combobox.Root>\n );\n};\n\ntype OptionProps = Omit<TgphComponentProps<typeof Combobox.Option>, \"label\">;\n\nconst Option = ({ value, children, ...props }: OptionProps) => {\n return <Combobox.Option value={value} label={children} {...props} />;\n};\n\nconst Select = { Root, Option };\ntype SelectProps = RootProps;\n\nexport { Select };\nexport type { SelectProps, OptionProps, Option };\n"],"mappings":";;AA4CA,IAAM,IAAS;CAAE,OAjCH,EACZ,UAAO,KACP,UACA,kBACA,iBACA,iBACA,iBACA,iBACA,aACA,GAAG,QAGD,kBAAC,EAAS,MAAV;EACS;EACQ;EACD;EACd,eAAe,CAAC,MAAM,QAAQ,EAAM,IAAI,CAAC,MAAM,QAAQ,EAAa;EACpE,GAAI;YALN,CAOE,kBAAC,EAAS,SAAV;GAAwB;GAAM,GAAI;GAAgB,CAAA,EAClD,kBAAC,EAAS,SAAV;GAAkB,GAAI;aACpB,kBAAC,EAAS,SAAV;IAAkB,GAAI;IAAe;IAA4B,CAAA;GAChD,CAAA,CACL;;CAUG,SAJP,EAAE,UAAO,aAAU,GAAG,QAC7B,kBAAC,EAAS,QAAV;EAAwB;EAAO,OAAO;EAAU,GAAI;EAAS,CAAA;CAGvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telegraph/select",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "description": "A simple select component built on top of @telegraph/combobox",
5
5
  "repository": "https://github.com/knocklabs/telegraph/tree/main/packages/select",
6
6
  "author": "@knocklabs",
@@ -30,7 +30,7 @@
30
30
  "preview": "vite preview"
31
31
  },
32
32
  "dependencies": {
33
- "@telegraph/combobox": "0.2.5",
33
+ "@telegraph/combobox": "0.2.6",
34
34
  "@telegraph/helpers": "0.0.15"
35
35
  },
36
36
  "devDependencies": {
@@ -41,10 +41,10 @@
41
41
  "@telegraph/vite-config": "^0.0.15",
42
42
  "@types/react": "^19.2.9",
43
43
  "eslint": "^10.2.0",
44
- "react": "^19.2.4",
45
- "react-dom": "^19.2.4",
46
- "typescript": "^5.9.3",
47
- "vite": "^6.4.1"
44
+ "react": "^19.2.5",
45
+ "react-dom": "^19.2.5",
46
+ "typescript": "^6.0.2",
47
+ "vite": "^8.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^18.0.0 || ^19.0.0",