File tree 12 files changed +28
-2
lines changed
packages/bento-design-system/src
12 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ outputs:
14
14
15
15
params :
16
16
NODE_OPTIONS : --max-old-space-size=4096
17
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
17
18
18
19
run :
19
20
dir : bento
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ inputs:
12
12
params :
13
13
CHROMATIC_PROJECT_TOKEN : ((chromatic-project-token))
14
14
CHROMATIC_OPTIONS :
15
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
15
16
16
17
run :
17
18
dir : bento
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ image_resource:
9
9
inputs :
10
10
- name : bento
11
11
12
+ params :
13
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
14
+
12
15
run :
13
16
dir : bento
14
17
path : ash
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ image_resource:
9
9
inputs :
10
10
- name : bento
11
11
12
+ params :
13
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
14
+
12
15
run :
13
16
dir : bento
14
17
path : ash
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ outputs:
15
15
caches :
16
16
- path : bento/.pnpm-store
17
17
18
+ params :
19
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
20
+
18
21
run :
19
22
dir : bento
20
23
path : ash
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ image_resource:
9
9
inputs :
10
10
- name : bento
11
11
12
+ params :
13
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
14
+
12
15
run :
13
16
dir : bento
14
17
path : ash
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ params:
17
17
NPM_TOKEN : ((npm_token))
18
18
SSH_PRIVATE_KEY : ((private-key))
19
19
GITHUB_TOKEN : ((github-token))
20
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
20
21
21
22
run :
22
23
path : ci/tasks/release.sh
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ inputs:
11
11
12
12
params :
13
13
CI : true
14
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
14
15
15
16
run :
16
17
dir : bento
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ image_resource:
9
9
inputs :
10
10
- name : bento
11
11
12
+ params :
13
+ COREPACK_ENABLE_DOWNLOAD_PROMPT : " 0"
14
+
12
15
run :
13
16
dir : bento
14
17
path : ash
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import { Children } from "../util/Children";
8
8
export type DateFieldConfig = {
9
9
radius : BorderRadiusConfig ;
10
10
padding : NonNullable < BentoSprinkles [ "padding" ] > ;
11
+ internalPadding : NonNullable < BentoSprinkles [ "padding" ] > ;
11
12
elevation : "none" | "small" | "medium" | "large" ;
13
+ rangeSeparatorSize : IconProps [ "size" ] ;
12
14
monthYearLabelSize : LabelProps [ "size" ] ;
13
15
dayOfWeekLabelSize : LabelProps [ "size" ] ;
14
16
previousMonthIcon : ( props : IconProps ) => Children ;
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ function DateField({ fieldProps }: { fieldProps: AriaDateFieldOptions<CalendarDa
82
82
83
83
export function Input ( props : Props ) {
84
84
const config = useBentoConfig ( ) . input ;
85
+ const dateFieldConfig = useBentoConfig ( ) . dateField ;
85
86
86
87
const { observe : rightAccessoryRef , width : rightAccessoryWidth } = useDimensions ( {
87
88
// This is needed to include the padding in the width
@@ -146,10 +147,12 @@ export function Input(props: Props) {
146
147
{ props . type === "single" ? (
147
148
< DateField fieldProps = { props . fieldProps } />
148
149
) : (
149
- < Columns space = { 16 } >
150
+ < Columns space = { dateFieldConfig . internalPadding } alignY = "stretch" >
150
151
< DateField fieldProps = { props . fieldProps . start } />
151
152
< Column width = "content" >
152
- < IconMinus size = { 24 } />
153
+ < Box display = "flex" height = "full" alignItems = "center" >
154
+ < IconMinus size = { dateFieldConfig . rangeSeparatorSize } />
155
+ </ Box >
153
156
</ Column >
154
157
< DateField fieldProps = { props . fieldProps . end } />
155
158
</ Columns >
Original file line number Diff line number Diff line change @@ -677,7 +677,9 @@ export const tooltip: TooltipConfig = {
677
677
export const dateField : DateFieldConfig = {
678
678
radius : 24 ,
679
679
padding : 24 ,
680
+ internalPadding : 16 ,
680
681
elevation : "medium" ,
682
+ rangeSeparatorSize : 24 ,
681
683
monthYearLabelSize : "large" ,
682
684
dayOfWeekLabelSize : "large" ,
683
685
previousMonthIcon : IconChevronLeft ,
You can’t perform that action at this time.
0 commit comments