@youversion/design-system-components 0.2.13 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.2.13",
3
+ "version": "0.4.0",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -22,12 +22,10 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@react-aria/overlays": "3.14.0",
25
- "@youversion/design-system-core": "0.0.5",
25
+ "@youversion/design-system-core": "0.0.6",
26
26
  "@youversion/design-system-icons": "0.0.10",
27
- "@youversion/design-system-tokens": "0.0.5",
28
- "clsx": "1.2.1",
29
- "dayjs": "1.11.7",
30
- "react": "18.2.0"
27
+ "@youversion/design-system-tokens": "0.0.6",
28
+ "clsx": "1.2.1"
31
29
  },
32
30
  "devDependencies": {
33
31
  "@mdx-js/react": "1.6.22",
@@ -43,7 +41,8 @@
43
41
  "@types/react-dom": "17.0.11",
44
42
  "@types/testing-library__jest-dom": "5.14.5",
45
43
  "@vitejs/plugin-react": "3.1.0",
46
- "@youversion/utils": "3.8.0",
44
+ "@youversion/types": "0.1.1",
45
+ "cssnano": "6.0.1",
47
46
  "eslint": "7.32.0",
48
47
  "identity-obj-proxy": "3.0.0",
49
48
  "jest": "29.4.3",
@@ -51,7 +50,9 @@
51
50
  "postcss-import": "15.1.0",
52
51
  "postcss-mixins": "9.0.4",
53
52
  "prettier": "2.8.4",
54
- "tailwindcss": "3.2.7",
53
+ "react": "18.2.0",
54
+ "rollup-plugin-visualizer": "5.9.0",
55
+ "tailwindcss": "3.3.2",
55
56
  "ts-jest": "29.0.5",
56
57
  "ts-node": "10.9.1",
57
58
  "typed-css-modules": "0.7.2",
@@ -59,6 +60,9 @@
59
60
  "vite": "4.1.4",
60
61
  "vite-plugin-dts": "2.1.0"
61
62
  },
63
+ "peerDependencies": {
64
+ "react": ">= 18"
65
+ },
62
66
  "exports": {
63
67
  ".": {
64
68
  "import": "./dist/index.es.js",
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- import { InputProps } from '../Input';
3
- type OneToNine = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
4
- type ZeroToNine = 0 | OneToNine;
5
- /**
6
- * Years.
7
- */
8
- type YYYY = `19${ZeroToNine}${ZeroToNine}` | `20${ZeroToNine}${ZeroToNine}`;
9
- /**
10
- * Months.
11
- */
12
- type MM = `0${OneToNine}` | `1${0 | 1 | 2}`;
13
- /**
14
- * Days.
15
- */
16
- type DD = `${0}${OneToNine}` | `${1 | 2}${ZeroToNine}` | `3${0 | 1}`;
17
- /**
18
- * YYYY-MM-DD.
19
- */
20
- export type RawDateString = `${YYYY}-${MM}-${DD}`;
21
- export interface DatePickerProps extends Omit<InputProps, 'label' | 'name' | 'endIcon' | 'startIcon' | 'value'> {
22
- label?: string;
23
- name?: string;
24
- onChange?: React.ChangeEventHandler<HTMLInputElement>;
25
- value?: RawDateString;
26
- wrapperClassName?: string;
27
- }
28
- /**
29
- * The **DatePicker** component is used to allow the user to select a date into a form.
30
- *
31
- * Accepts {@link DatePickerProps}.
32
- *
33
- * @returns Renders the date input field to be used in a form.
34
- *
35
- * @example
36
- * ```tsx
37
- * import { DatePicker } from '@youversion/design-system-components';
38
- *
39
- * function MyComponent() {
40
- * return (
41
- * <>
42
- * <DatePicker name='datePicker' label='Select Date' onChange={handleChange} value={date} />
43
- * </>
44
- * )
45
- * }
46
- * ```
47
- */
48
- export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
49
- export {};
50
- //# sourceMappingURL=DatePicker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AA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":["../../../src/DatePicker/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}