x-ui-design 0.2.100 → 0.3.1

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/app/page.tsx +7 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-ui-design",
3
- "version": "0.2.100",
3
+ "version": "0.3.01",
4
4
  "license": "ISC",
5
5
  "author": "Gabriel Boyajyan",
6
6
  "main": "dist/index.js",
package/src/app/page.tsx CHANGED
@@ -3,12 +3,12 @@
3
3
  import { Select } from "../../lib/components/Select";
4
4
  import { Option } from "../../lib/components/Select/Option";
5
5
 
6
- // import { Select as AntSelect } from 'antd';
7
- // import { Option as AntOption } from 'antd/es/mentions';
6
+ import { Select as AntSelect } from 'antd';
7
+ import { Option as AntOption } from 'antd/es/mentions';
8
8
 
9
9
  export const CountryCodes = [...new Set([
10
10
  {
11
- "label": "Afghanistan Afghanistan Afghanistan Afghanistan Afghanistan Afghanistan Afghanistan Afghanistan",
11
+ "label": "Afghanistan",
12
12
  "value": "AF",
13
13
  "name": "Afghanistan",
14
14
  "currencyCountries": "AFN",
@@ -1830,6 +1830,7 @@ export default function Home() {
1830
1830
  showSearch
1831
1831
  onSelect={(e) => { console.log(e) }}
1832
1832
  onChange={(e) => { console.log(e) }}
1833
+ value={CountryCodes[1].label}
1833
1834
  >
1834
1835
  {CountryCodes.map(country => (
1835
1836
  <Option
@@ -1848,10 +1849,11 @@ export default function Home() {
1848
1849
  ))}
1849
1850
  </Select>
1850
1851
 
1851
- {/* <AntSelect
1852
+ <AntSelect
1852
1853
  showSearch
1853
1854
  onSelect={(e) => { console.log(e) }}
1854
1855
  onChange={(e) => { console.log(e) }}
1856
+ value={CountryCodes[1].label}
1855
1857
  >
1856
1858
  {CountryCodes.map(country => (
1857
1859
  <AntOption
@@ -1868,7 +1870,7 @@ export default function Home() {
1868
1870
  </div>
1869
1871
  </AntOption>
1870
1872
  ))}
1871
- </AntSelect> */}
1873
+ </AntSelect>
1872
1874
  </>
1873
1875
  )
1874
1876
  }