@frontile/theme 0.18.5 → 0.18.6
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.
|
@@ -1159,6 +1159,29 @@ declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
1159
1159
|
input: string[];
|
|
1160
1160
|
}>>>;
|
|
1161
1161
|
declare const datePicker: import("tailwind-variants").TVReturnType<{
|
|
1162
|
+
color: {
|
|
1163
|
+
neutral: {
|
|
1164
|
+
timeOption: string;
|
|
1165
|
+
};
|
|
1166
|
+
primary: {
|
|
1167
|
+
timeOption: string;
|
|
1168
|
+
};
|
|
1169
|
+
secondary: {
|
|
1170
|
+
timeOption: string;
|
|
1171
|
+
};
|
|
1172
|
+
tertiary: {
|
|
1173
|
+
timeOption: string;
|
|
1174
|
+
};
|
|
1175
|
+
success: {
|
|
1176
|
+
timeOption: string;
|
|
1177
|
+
};
|
|
1178
|
+
warning: {
|
|
1179
|
+
timeOption: string;
|
|
1180
|
+
};
|
|
1181
|
+
danger: {
|
|
1182
|
+
timeOption: string;
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1162
1185
|
size: {
|
|
1163
1186
|
sm: {
|
|
1164
1187
|
input: string;
|
|
@@ -1184,6 +1207,13 @@ declare const datePicker: import("tailwind-variants").TVReturnType<{
|
|
|
1184
1207
|
}, {
|
|
1185
1208
|
separator: string;
|
|
1186
1209
|
calendarButton: string;
|
|
1210
|
+
panels: string;
|
|
1211
|
+
time: string[];
|
|
1212
|
+
timeColumns: string;
|
|
1213
|
+
timeColumn: string;
|
|
1214
|
+
timeColumnLabel: string;
|
|
1215
|
+
timeList: string[];
|
|
1216
|
+
timeOption: string[];
|
|
1187
1217
|
group: string;
|
|
1188
1218
|
segment: string[];
|
|
1189
1219
|
literal: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../../src/components/forms/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EA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MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,MAAM,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC;AAC/D,MAAM,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAEhE,OAAO,EACL,KAAK,EACL,eAAe,EACf,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACV,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3940,9 +3940,60 @@ const datePicker = tv({
|
|
|
3940
3940
|
// renders it, not `SegmentGroup` -- it separates groups rather than
|
|
3941
3941
|
// living inside one.
|
|
3942
3942
|
separator: 'text-neutral px-1',
|
|
3943
|
-
calendarButton: 'pointer-events-auto'
|
|
3943
|
+
calendarButton: 'pointer-events-auto',
|
|
3944
|
+
// The popover's body: the calendar, and beside it the time columns of an
|
|
3945
|
+
// `hour` or `minute` granularity. Stacked on narrow screens, where a
|
|
3946
|
+
// calendar and two columns side by side no longer fit.
|
|
3947
|
+
panels: 'flex flex-col sm:flex-row',
|
|
3948
|
+
// The columns must not make the popover taller than the calendar: they
|
|
3949
|
+
// scroll within its height instead. That height is only known once the
|
|
3950
|
+
// calendar is laid out, so the columns are taken out of flow
|
|
3951
|
+
// (`timeColumns` is absolute) and this box, which stretches to the row,
|
|
3952
|
+
// reserves their width: `--time-columns` (set by the component) of them,
|
|
3953
|
+
// 3.5rem each, with the gaps and padding between.
|
|
3954
|
+
time: ['relative shrink-0', 'border-t border-neutral-soft sm:border-t-0 sm:border-s', 'sm:w-[calc(var(--time-columns)*3.75rem+0.75rem)]'],
|
|
3955
|
+
timeColumns: 'flex justify-center gap-1 p-2 h-56 sm:absolute sm:inset-0 sm:h-auto',
|
|
3956
|
+
timeColumn: 'flex flex-col w-14 min-h-0',
|
|
3957
|
+
// The column's accessible name as well as its heading, so it takes
|
|
3958
|
+
// `neutral-firm` (AA) rather than the weekday row's lighter `neutral`.
|
|
3959
|
+
timeColumnLabel: 'h-8 shrink-0 text-caption-sm text-neutral-firm text-center leading-8 truncate',
|
|
3960
|
+
// Positioned so the options measure their `offsetTop` against the list:
|
|
3961
|
+
// the component scrolls the selected option into view itself (see
|
|
3962
|
+
// `revealWithin`). The padding keeps the focus ring inside the clip.
|
|
3963
|
+
timeList: ['relative flex flex-col gap-0.5 flex-1 min-h-0 p-1', 'overflow-y-auto overscroll-contain', '[scrollbar-width:thin]'],
|
|
3964
|
+
timeOption: [...focusVisibleRing, 'shrink-0 h-9 rounded-md', 'text-body-sm text-neutral-strong tabular-nums', 'cursor-pointer select-none', 'transition-colors duration-200 motion-reduce:transition-none',
|
|
3965
|
+
// Excluded from the selected option, which gets its own hover per
|
|
3966
|
+
// color -- see the calendar's `day` slot for why.
|
|
3967
|
+
'not-data-[selected=true]:hover:bg-surface-overlay-soft',
|
|
3968
|
+
// A read-only column moves focus but picks nothing.
|
|
3969
|
+
'in-aria-readonly:cursor-default in-aria-readonly:hover:bg-transparent']
|
|
3944
3970
|
},
|
|
3945
3971
|
variants: {
|
|
3972
|
+
// The selected time option takes the calendar's selected-day fill, so
|
|
3973
|
+
// the day and the time picked read as one choice.
|
|
3974
|
+
color: {
|
|
3975
|
+
neutral: {
|
|
3976
|
+
timeOption: 'data-[selected=true]:bg-neutral-strong data-[selected=true]:text-on-neutral-strong data-[selected=true]:hover:bg-neutral-bolder'
|
|
3977
|
+
},
|
|
3978
|
+
primary: {
|
|
3979
|
+
timeOption: 'data-[selected=true]:bg-primary data-[selected=true]:text-on-primary data-[selected=true]:hover:bg-primary-firm'
|
|
3980
|
+
},
|
|
3981
|
+
secondary: {
|
|
3982
|
+
timeOption: 'data-[selected=true]:bg-secondary data-[selected=true]:text-on-secondary data-[selected=true]:hover:bg-secondary-firm'
|
|
3983
|
+
},
|
|
3984
|
+
tertiary: {
|
|
3985
|
+
timeOption: 'data-[selected=true]:bg-tertiary data-[selected=true]:text-on-tertiary data-[selected=true]:hover:bg-tertiary-firm'
|
|
3986
|
+
},
|
|
3987
|
+
success: {
|
|
3988
|
+
timeOption: 'data-[selected=true]:bg-success data-[selected=true]:text-on-success data-[selected=true]:hover:bg-success-firm'
|
|
3989
|
+
},
|
|
3990
|
+
warning: {
|
|
3991
|
+
timeOption: 'data-[selected=true]:bg-warning data-[selected=true]:text-on-warning data-[selected=true]:hover:bg-warning-firm'
|
|
3992
|
+
},
|
|
3993
|
+
danger: {
|
|
3994
|
+
timeOption: 'data-[selected=true]:bg-danger data-[selected=true]:text-on-danger data-[selected=true]:hover:bg-danger-firm'
|
|
3995
|
+
}
|
|
3996
|
+
},
|
|
3946
3997
|
// The trigger is a `<button>` whose text *is* the value, so with neither a
|
|
3947
3998
|
// value nor a `@placeholder` it has no content at all and collapses to its
|
|
3948
3999
|
// padding -- noticeably shorter than every other field on the form.
|
|
@@ -4016,7 +4067,8 @@ const datePicker = tv({
|
|
|
4016
4067
|
}
|
|
4017
4068
|
}],
|
|
4018
4069
|
defaultVariants: {
|
|
4019
|
-
size: 'md'
|
|
4070
|
+
size: 'md',
|
|
4071
|
+
color: 'primary'
|
|
4020
4072
|
}
|
|
4021
4073
|
});
|
|
4022
4074
|
|