@betterstore/react 0.5.15 → 0.5.17

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.
Files changed (24) hide show
  1. package/dist/components/checkout-embed/checkout-form.d.ts +2 -2
  2. package/dist/components/checkout-embed/steps/customer/form.d.ts +2 -2
  3. package/dist/components/checkout-embed/steps/customer/form.d.ts.map +1 -1
  4. package/dist/components/compounds/form/address-input/country-data.d.ts +8 -0
  5. package/dist/components/compounds/form/address-input/country-data.d.ts.map +1 -0
  6. package/dist/components/compounds/form/address-input/index.d.ts +2 -2
  7. package/dist/components/compounds/form/address-input/index.d.ts.map +1 -1
  8. package/dist/components/compounds/form/address-input/province-data.d.ts +155 -0
  9. package/dist/components/compounds/form/address-input/province-data.d.ts.map +1 -0
  10. package/dist/components/compounds/form/compobox-group/index.d.ts +18 -0
  11. package/dist/components/compounds/form/compobox-group/index.d.ts.map +1 -0
  12. package/dist/components/compounds/form/country-input/index.d.ts +4 -3
  13. package/dist/components/compounds/form/country-input/index.d.ts.map +1 -1
  14. package/dist/components/ui/button.d.ts +1 -1
  15. package/dist/components/ui/dialog.d.ts.map +1 -1
  16. package/dist/index.cjs.js +15739 -15149
  17. package/dist/index.mjs +15743 -15153
  18. package/package.json +7 -8
  19. package/dist/components/compounds/form/country-input/dropdown.d.ts +0 -26
  20. package/dist/components/compounds/form/country-input/dropdown.d.ts.map +0 -1
  21. package/dist/components/compounds/form/select-group/index.d.ts +0 -13
  22. package/dist/components/compounds/form/select-group/index.d.ts.map +0 -1
  23. package/dist/components/compounds/form/select-group/select.d.ts +0 -14
  24. package/dist/components/compounds/form/select-group/select.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.5.15",
3
+ "version": "0.5.17",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,6 +20,7 @@
20
20
  "@types/react-dom": "19.1.1",
21
21
  "@vitejs/plugin-react": "^4.5.0",
22
22
  "eslint": "^9.29.0",
23
+ "eslint-plugin-i18next": "^6.1.2",
23
24
  "postcss": "^8.5.3",
24
25
  "rollup": "^4.41.1",
25
26
  "rollup-plugin-dts": "^6.2.1",
@@ -27,8 +28,8 @@
27
28
  "tailwindcss": "^4.1.11",
28
29
  "typescript": "5.8.2",
29
30
  "vite": "^6.3.5",
30
- "@betterstore/typescript-config": "0.0.0",
31
- "@betterstore/eslint-config": "0.0.0"
31
+ "@betterstore/eslint-config": "0.0.0",
32
+ "@betterstore/typescript-config": "0.0.0"
32
33
  },
33
34
  "peerDependencies": {
34
35
  "react": "^18.0.0 || ^19.0.0",
@@ -50,7 +51,6 @@
50
51
  "@radix-ui/react-label": "^2.1.7",
51
52
  "@radix-ui/react-popover": "^1.1.14",
52
53
  "@radix-ui/react-radio-group": "^1.3.7",
53
- "@radix-ui/react-select": "^2.2.5",
54
54
  "@radix-ui/react-separator": "^1.1.7",
55
55
  "@radix-ui/react-slot": "^1.2.3",
56
56
  "@rollup/plugin-alias": "^5.1.1",
@@ -60,14 +60,12 @@
60
60
  "axios": "^1.9.0",
61
61
  "class-variance-authority": "^0.7.1",
62
62
  "clsx": "^2.1.1",
63
- "cmdk": "1.0.0",
64
- "country-data-list": "^1.4.1",
63
+ "cmdk": "1.1.1",
65
64
  "i18next": "^24.2.3",
66
65
  "i18next-browser-languagedetector": "^8.1.0",
67
66
  "i18next-http-backend": "^3.0.2",
68
67
  "lucide-react": "^0.479.0",
69
68
  "next-themes": "^0.4.6",
70
- "react-circle-flags": "^0.0.23",
71
69
  "react-hook-form": "^7.56.4",
72
70
  "react-i18next": "^15.5.2",
73
71
  "rollup-plugin-postcss": "^4.0.2",
@@ -75,9 +73,10 @@
75
73
  "tailwind": "^4.0.0",
76
74
  "tailwind-merge": "^3.3.0",
77
75
  "tailwindcss-animate": "^1.0.7",
76
+ "world_countries_lists": "^3.2.0",
78
77
  "zod": "^3.25.30",
79
78
  "zustand": "^5.0.5",
80
- "@betterstore/sdk": "0.5.15"
79
+ "@betterstore/sdk": "0.5.17"
81
80
  },
82
81
  "publishConfig": {
83
82
  "access": "public"
@@ -1,26 +0,0 @@
1
- import React from "react";
2
- import { UseFormReturn } from "react-hook-form";
3
- export interface Country {
4
- alpha2: string;
5
- alpha3: string;
6
- countryCallingCodes: string[];
7
- currencies: string[];
8
- emoji?: string;
9
- ioc: string;
10
- languages: string[];
11
- name: string;
12
- status: string;
13
- }
14
- interface CountryDropdownProps {
15
- options?: Country[];
16
- onChange?: (country: Country) => void;
17
- defaultValue?: string;
18
- disabled?: boolean;
19
- placeholder?: string;
20
- slim?: boolean;
21
- onOpenChange?: (open: boolean) => void;
22
- form: UseFormReturn<any>;
23
- }
24
- export declare const CountryDropdown: React.ForwardRefExoticComponent<CountryDropdownProps & React.RefAttributes<HTMLButtonElement>>;
25
- export {};
26
- //# sourceMappingURL=dropdown.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/country-input/dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAsB5E,OAAO,EAAE,aAAa,EAAY,MAAM,iBAAiB,CAAC;AAE1D,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAC1B;AA4ID,eAAO,MAAM,eAAe,gGAAuC,CAAC"}
@@ -1,13 +0,0 @@
1
- type SelectGroupProps = {
2
- name: string;
3
- label: string;
4
- options: {
5
- value: string;
6
- label: string;
7
- }[];
8
- required?: boolean;
9
- className?: string;
10
- };
11
- export default function SelectGroup({ name, label, options, required, className, }: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/select-group/index.tsx"],"names":[],"mappings":"AAmBA,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAgB,EAChB,SAAc,GACf,EAAE,gBAAgB,2CA2ClB"}
@@ -1,14 +0,0 @@
1
- import * as SelectPrimitive from "@radix-ui/react-select";
2
- import * as React from "react";
3
- declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
- declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
- declare function SelectTrigger({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
7
- declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
8
- declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
9
- declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
10
- declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
11
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
12
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
13
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
14
- //# sourceMappingURL=select.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/select-group/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEnD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,C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