@telegraph/select 0.0.51 → 0.0.53

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,19 @@
1
1
  # @telegraph/select
2
2
 
3
+ ## 0.0.53
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @telegraph/combobox@0.0.91
9
+
10
+ ## 0.0.52
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`b29b966`](https://github.com/knocklabs/telegraph/commit/b29b966ae01a20e17d1839296ba5ba155e967621)]:
15
+ - @telegraph/combobox@0.0.90
16
+
3
17
  ## 0.0.51
4
18
 
5
19
  ### Patch Changes
@@ -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 triggerProps,\n contentProps,\n optionsProps,\n children,\n ...props\n}: RootProps) => {\n return (\n <Combobox.Root\n value={value}\n onValueChange={onValueChange}\n closeOnSelect={!Array.isArray(value)}\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","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,SAAAC,EACA,GAAGC,CACL,IAEIC,EAAA,KAACC,EAAAA,SAAS,KAAT,CACC,MAAAR,EACA,cAAAC,EACA,cAAe,CAAC,MAAM,QAAQD,CAAK,EAClC,GAAGM,EAEJ,SAAA,CAAAG,EAAA,IAACD,EAAS,SAAA,QAAT,CAAiB,KAAAT,EAAa,GAAGG,CAAc,CAAA,EAC/CO,EAAAA,IAAAD,EAAAA,SAAS,QAAT,CAAkB,GAAGL,EACpB,SAACM,MAAAD,EAAAA,SAAS,QAAT,CAAkB,GAAGJ,EAAe,SAAAC,CAAS,CAAA,CAChD,CAAA,CAAA,CAAA,CACF,EAMEK,EAAS,CAAC,CAAE,MAAAV,EAAO,SAAAK,EAAU,GAAGC,KAC7BG,EAAA,IAACD,WAAS,OAAT,CAAgB,MAAAR,EAAc,MAAOK,EAAW,GAAGC,EAAO,EAG9DK,EAAS,CAAE,KAAAb,EAAM,OAAAY,CAAO"}
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 triggerProps,\n contentProps,\n optionsProps,\n children,\n ...props\n}: RootProps) => {\n return (\n <Combobox.Root\n value={value}\n onValueChange={onValueChange}\n closeOnSelect={!Array.isArray(value)}\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","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,SAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,KAACC,EAAAA,SAAS,KAAT,CACC,MAAAR,EACA,cAAAC,EACA,cAAe,CAAC,MAAM,QAAQD,CAAK,EAClC,GAAGM,EAEJ,SAAA,CAAAG,EAAAA,IAACD,EAAAA,SAAS,QAAT,CAAiB,KAAAT,EAAa,GAAGG,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,MAAAV,EAAO,SAAAK,EAAU,GAAGC,KAC7BG,EAAAA,IAACD,EAAAA,SAAS,OAAT,CAAgB,MAAAR,EAAc,MAAOK,EAAW,GAAGC,EAAO,EAG9DK,EAAS,CAAE,KAAAb,EAAM,OAAAY,CAAA"}
@@ -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 triggerProps,\n contentProps,\n optionsProps,\n children,\n ...props\n}: RootProps) => {\n return (\n <Combobox.Root\n value={value}\n onValueChange={onValueChange}\n closeOnSelect={!Array.isArray(value)}\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","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,UAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC;AAAA,EAACC,EAAS;AAAA,EAAT;AAAA,IACC,OAAAR;AAAA,IACA,eAAAC;AAAA,IACA,eAAe,CAAC,MAAM,QAAQD,CAAK;AAAA,IAClC,GAAGM;AAAA,IAEJ,UAAA;AAAA,MAAA,gBAAAG,EAACD,EAAS,SAAT,EAAiB,MAAAT,GAAa,GAAGG,EAAc,CAAA;AAAA,MAC/C,gBAAAO,EAAAD,EAAS,SAAT,EAAkB,GAAGL,GACpB,UAAC,gBAAAM,EAAAD,EAAS,SAAT,EAAkB,GAAGJ,GAAe,UAAAC,EAAS,CAAA,EAChD,CAAA;AAAA,IAAA;AAAA,EAAA;AACF,GAMEK,IAAS,CAAC,EAAE,OAAAV,GAAO,UAAAK,GAAU,GAAGC,QAC7B,gBAAAG,EAACD,EAAS,QAAT,EAAgB,OAAAR,GAAc,OAAOK,GAAW,GAAGC,GAAO,GAG9DK,IAAS,EAAE,MAAAb,GAAM,QAAAY,EAAO;"}
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 triggerProps,\n contentProps,\n optionsProps,\n children,\n ...props\n}: RootProps) => {\n return (\n <Combobox.Root\n value={value}\n onValueChange={onValueChange}\n closeOnSelect={!Array.isArray(value)}\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","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,UAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC;AAAA,EAACC,EAAS;AAAA,EAAT;AAAA,IACC,OAAAR;AAAA,IACA,eAAAC;AAAA,IACA,eAAe,CAAC,MAAM,QAAQD,CAAK;AAAA,IAClC,GAAGM;AAAA,IAEJ,UAAA;AAAA,MAAA,gBAAAG,EAACD,EAAS,SAAT,EAAiB,MAAAT,GAAa,GAAGG,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,OAAAV,GAAO,UAAAK,GAAU,GAAGC,QAC7B,gBAAAG,EAACD,EAAS,QAAT,EAAgB,OAAAR,GAAc,OAAOK,GAAW,GAAGC,GAAO,GAG9DK,IAAS,EAAE,MAAAb,GAAM,QAAAY,EAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telegraph/select",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
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,13 +30,13 @@
30
30
  "preview": "vite preview"
31
31
  },
32
32
  "dependencies": {
33
- "@telegraph/combobox": "0.0.89",
33
+ "@telegraph/combobox": "0.0.91",
34
34
  "@telegraph/helpers": "0.0.13"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@knocklabs/eslint-config": "^0.0.4",
38
38
  "@knocklabs/typescript-config": "^0.0.2",
39
- "@telegraph/postcss-config": "^0.0.27",
39
+ "@telegraph/postcss-config": "^0.0.28",
40
40
  "@telegraph/prettier-config": "^0.0.7",
41
41
  "@telegraph/vite-config": "^0.0.15",
42
42
  "@types/react": "^18.3.18",