@youversion/design-system-components 0.2.12 → 0.3.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/CHANGELOG.md +22 -0
- package/dist/ImageUpload/ImageUpload.d.ts +1 -1
- package/dist/ImageUpload/ImageUpload.d.ts.map +1 -1
- package/dist/Input/Input.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +2094 -22113
- package/dist/index.umd.js +10 -71
- package/dist/style.css +1 -1
- package/package.json +8 -6
- package/dist/DatePicker/DatePicker.d.ts +0 -50
- package/dist/DatePicker/DatePicker.d.ts.map +0 -1
- package/dist/DatePicker/index.d.ts +0 -2
- package/dist/DatePicker/index.d.ts.map +0 -1
- package/dist/Input/Input.module.css.d.ts +0 -0
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._select_1dwiy_1:focus-within{border-color:#3d79c2;box-shadow:inset 0 0 0 1px #3d79c2}html[data-theme=dark] ._select_1dwiy_1:focus-within{border-color:#2a85f4;box-shadow:inset 0 0 0 1px #2a85f4}html[data-theme=dark] ._inputIcon_1pzdd_1::-webkit-calendar-picker-indicator{filter:invert(100%)}._inputIcon_1pzdd_1::-webkit-calendar-picker-indicator:hover{cursor:pointer}._tooltipWrapper_qu88w_1{background:#fff;border-radius:8px;box-shadow:0 1px 3px #12121226;color:#121212;max-width:460px;padding-block:8px;padding-inline:12px;width:-moz-max-content;width:max-content}html[data-theme=dark] ._tooltipWrapper_qu88w_1{background:#2b3031;box-shadow:0 1px 3px #00000073;color:#fff}._tooltipContent_qu88w_18{font-size:.8125rem;font-style:normal;line-height:1.5}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youversion/design-system-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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.
|
|
25
|
+
"@youversion/design-system-core": "0.0.5",
|
|
26
26
|
"@youversion/design-system-icons": "0.0.10",
|
|
27
27
|
"@youversion/design-system-tokens": "0.0.5",
|
|
28
|
-
"clsx": "1.2.1"
|
|
29
|
-
"dayjs": "1.11.7",
|
|
30
|
-
"react": "18.2.0"
|
|
28
|
+
"clsx": "1.2.1"
|
|
31
29
|
},
|
|
32
30
|
"devDependencies": {
|
|
33
31
|
"@mdx-js/react": "1.6.22",
|
|
@@ -43,7 +41,7 @@
|
|
|
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/
|
|
44
|
+
"@youversion/types": "0.1.1",
|
|
47
45
|
"eslint": "7.32.0",
|
|
48
46
|
"identity-obj-proxy": "3.0.0",
|
|
49
47
|
"jest": "29.4.3",
|
|
@@ -51,6 +49,7 @@
|
|
|
51
49
|
"postcss-import": "15.1.0",
|
|
52
50
|
"postcss-mixins": "9.0.4",
|
|
53
51
|
"prettier": "2.8.4",
|
|
52
|
+
"react": "18.2.0",
|
|
54
53
|
"tailwindcss": "3.2.7",
|
|
55
54
|
"ts-jest": "29.0.5",
|
|
56
55
|
"ts-node": "10.9.1",
|
|
@@ -59,6 +58,9 @@
|
|
|
59
58
|
"vite": "4.1.4",
|
|
60
59
|
"vite-plugin-dts": "2.1.0"
|
|
61
60
|
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"react": ">= 18"
|
|
63
|
+
},
|
|
62
64
|
"exports": {
|
|
63
65
|
".": {
|
|
64
66
|
"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;AAG1B,OAAO,EAAS,UAAU,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACnD,KAAK,UAAU,GAAG,CAAC,GAAG,SAAS,CAAC;AAEhC;;GAEG;AACH,KAAK,IAAI,GAAG,KAAK,UAAU,GAAG,UAAU,EAAE,GAAG,KAAK,UAAU,GAAG,UAAU,EAAE,CAAC;AAE5E;;GAEG;AACH,KAAK,EAAE,GAAG,IAAI,SAAS,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;AAE5C;;GAEG;AACH,KAAK,EAAE,GAAG,GAAG,CAAC,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,GAAG,IAAI,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC;AAElD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;IAC7G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAEtD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA8ED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU,0FAAwC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DatePicker/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
File without changes
|