@toptal/picasso-calendar 3.0.2 → 3.0.3
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Typography } from '@toptal/picasso-typography';
|
|
3
3
|
import { Container } from '@toptal/picasso-container';
|
|
4
|
-
import {
|
|
4
|
+
import { ArrowDownMinor16 } from '@toptal/picasso-icons';
|
|
5
5
|
const CalendarDateSelector = ({ children, caption, onChange, value, 'aria-label': ariaLabel, }) => {
|
|
6
6
|
return (React.createElement("label", { "aria-label": ariaLabel, htmlFor: `month${caption}`, className: 'flex relative items-center' },
|
|
7
7
|
React.createElement(Typography, { variant: 'heading', size: 'medium', color: 'black', weight: 'semibold' }, caption),
|
|
8
8
|
React.createElement(Container, { className: 'w-6 h-6', flex: true, justifyContent: 'center', alignItems: 'center' },
|
|
9
|
-
React.createElement(
|
|
9
|
+
React.createElement(ArrowDownMinor16, { className: 'pointer-events-none', color: 'darkGrey' })),
|
|
10
10
|
React.createElement("select", { name: `month${caption}`, className: 'absolute opacity-0 text-md font-normal cursor-pointer', value: value, onChange: onChange }, children)));
|
|
11
11
|
};
|
|
12
12
|
export default CalendarDateSelector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarDateSelector.js","sourceRoot":"","sources":["../../../src/CalendarDateSelector/CalendarDateSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CalendarDateSelector.js","sourceRoot":"","sources":["../../../src/CalendarDateSelector/CalendarDateSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,oBAAoB,GAAG,CAAC,EAC5B,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,KAAK,EACL,YAAY,EAAE,SAAS,GACT,EAAE,EAAE;IAClB,OAAO,CACL,6CACc,SAAS,EACrB,OAAO,EAAE,QAAQ,OAAO,EAAE,EAC1B,SAAS,EAAC,4BAA4B;QAEtC,oBAAC,UAAU,IACT,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,OAAO,EACb,MAAM,EAAC,UAAU,IAEhB,OAAO,CACG;QACb,oBAAC,SAAS,IACR,SAAS,EAAC,SAAS,EACnB,IAAI,QACJ,cAAc,EAAC,QAAQ,EACvB,UAAU,EAAC,QAAQ;YAEnB,oBAAC,gBAAgB,IAAC,SAAS,EAAC,qBAAqB,EAAC,KAAK,EAAC,UAAU,GAAG,CAC3D;QACZ,gCACE,IAAI,EAAE,QAAQ,OAAO,EAAE,EACvB,SAAS,EAAC,uDAAuD,EACjE,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,IAEjB,QAAQ,CACF,CACH,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-calendar",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Toptal UI components library - Calendar",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@toptal/picasso-button": "3.0.
|
|
25
|
+
"@toptal/picasso-button": "3.0.4",
|
|
26
26
|
"@toptal/picasso-container": "2.0.0",
|
|
27
27
|
"@toptal/picasso-icons": "1.6.0",
|
|
28
28
|
"@toptal/picasso-shared": "15.0.0",
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import type { DropdownProps } from 'react-day-picker'
|
|
3
3
|
import { Typography } from '@toptal/picasso-typography'
|
|
4
4
|
import { Container } from '@toptal/picasso-container'
|
|
5
|
-
import {
|
|
5
|
+
import { ArrowDownMinor16 } from '@toptal/picasso-icons'
|
|
6
6
|
|
|
7
7
|
const CalendarDateSelector = ({
|
|
8
8
|
children,
|
|
@@ -31,7 +31,7 @@ const CalendarDateSelector = ({
|
|
|
31
31
|
justifyContent='center'
|
|
32
32
|
alignItems='center'
|
|
33
33
|
>
|
|
34
|
-
<
|
|
34
|
+
<ArrowDownMinor16 className='pointer-events-none' color='darkGrey' />
|
|
35
35
|
</Container>
|
|
36
36
|
<select
|
|
37
37
|
name={`month${caption}`}
|