@frontile/theme 0.18.3 → 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.
|
@@ -933,6 +933,7 @@ declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
933
933
|
clearButton: string;
|
|
934
934
|
input: string;
|
|
935
935
|
emptyContent: string;
|
|
936
|
+
displayLimitContent: string;
|
|
936
937
|
chipsField: string;
|
|
937
938
|
chipsContainer: string;
|
|
938
939
|
chip: string;
|
|
@@ -1158,6 +1159,29 @@ declare const select: import("tailwind-variants").TVReturnType<{
|
|
|
1158
1159
|
input: string[];
|
|
1159
1160
|
}>>>;
|
|
1160
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
|
+
};
|
|
1161
1185
|
size: {
|
|
1162
1186
|
sm: {
|
|
1163
1187
|
input: string;
|
|
@@ -1183,6 +1207,13 @@ declare const datePicker: import("tailwind-variants").TVReturnType<{
|
|
|
1183
1207
|
}, {
|
|
1184
1208
|
separator: string;
|
|
1185
1209
|
calendarButton: string;
|
|
1210
|
+
panels: string;
|
|
1211
|
+
time: string[];
|
|
1212
|
+
timeColumns: string;
|
|
1213
|
+
timeColumn: string;
|
|
1214
|
+
timeColumnLabel: string;
|
|
1215
|
+
timeList: string[];
|
|
1216
|
+
timeOption: string[];
|
|
1186
1217
|
group: string;
|
|
1187
1218
|
segment: string[];
|
|
1188
1219
|
literal: string;
|
|
@@ -1672,6 +1703,7 @@ declare const autocomplete: import("tailwind-variants").TVReturnType<{
|
|
|
1672
1703
|
clearButton: string;
|
|
1673
1704
|
input: string;
|
|
1674
1705
|
emptyContent: string;
|
|
1706
|
+
displayLimitContent: string;
|
|
1675
1707
|
}, undefined, {
|
|
1676
1708
|
size: {
|
|
1677
1709
|
sm: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../../src/components/forms/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAGjD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBT,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;cAenB,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0BhB,CAAC;AAiEH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2ET,CAAC;AAEH,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/D,MAAM,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
|
@@ -903,25 +903,25 @@ const chip = tv({
|
|
|
903
903
|
// chip.
|
|
904
904
|
xs: {
|
|
905
905
|
base: 'text-label-2xs px-0.5 h-5',
|
|
906
|
-
content: 'px-1',
|
|
906
|
+
content: 'px-1 leading-4',
|
|
907
907
|
dot: 'size-1.5',
|
|
908
908
|
closeButton: 'text-label-micro'
|
|
909
909
|
},
|
|
910
910
|
sm: {
|
|
911
911
|
base: 'text-label-2xs px-1 h-6',
|
|
912
|
-
content: 'px-1',
|
|
912
|
+
content: 'px-1 leading-4',
|
|
913
913
|
dot: 'size-1.5',
|
|
914
914
|
closeButton: 'text-label-2xs'
|
|
915
915
|
},
|
|
916
916
|
md: {
|
|
917
917
|
base: 'text-label-xs px-1 h-7',
|
|
918
|
-
content: 'px-2',
|
|
918
|
+
content: 'px-2 leading-5',
|
|
919
919
|
dot: 'size-2',
|
|
920
920
|
closeButton: 'text-label-xs'
|
|
921
921
|
},
|
|
922
922
|
lg: {
|
|
923
923
|
base: 'text-label-md px-2 h-8',
|
|
924
|
-
content: 'px-2',
|
|
924
|
+
content: 'px-2 leading-6',
|
|
925
925
|
dot: 'size-2.5',
|
|
926
926
|
closeButton: 'text-label-md'
|
|
927
927
|
}
|
|
@@ -3783,11 +3783,14 @@ const select = tv({
|
|
|
3783
3783
|
slots: {
|
|
3784
3784
|
base: [],
|
|
3785
3785
|
placeholder: 'text-neutral',
|
|
3786
|
-
listbox
|
|
3786
|
+
// The listbox scrolls itself, so the content below it (the display
|
|
3787
|
+
// limit's note) stays in view rather than being scrolled over.
|
|
3788
|
+
listbox: 'scroll-py-6 max-h-64 overflow-y-auto',
|
|
3787
3789
|
icon: 'w-5 h-5',
|
|
3788
3790
|
clearButton: 'pointer-events-auto',
|
|
3789
3791
|
input: '[button]:cursor-default',
|
|
3790
3792
|
emptyContent: 'p-2',
|
|
3793
|
+
displayLimitContent: 'p-2 text-body-2xs text-neutral-firm',
|
|
3791
3794
|
// The wrapper around the trigger. It is rendered in every mode; the
|
|
3792
3795
|
// `hasChips` variant below decides whether it is the field shell or a
|
|
3793
3796
|
// transparent passthrough. Authored here rather than as literal classes in
|
|
@@ -3937,9 +3940,60 @@ const datePicker = tv({
|
|
|
3937
3940
|
// renders it, not `SegmentGroup` -- it separates groups rather than
|
|
3938
3941
|
// living inside one.
|
|
3939
3942
|
separator: 'text-neutral px-1',
|
|
3940
|
-
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']
|
|
3941
3970
|
},
|
|
3942
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
|
+
},
|
|
3943
3997
|
// The trigger is a `<button>` whose text *is* the value, so with neither a
|
|
3944
3998
|
// value nor a `@placeholder` it has no content at all and collapses to its
|
|
3945
3999
|
// padding -- noticeably shorter than every other field on the form.
|
|
@@ -4013,7 +4067,8 @@ const datePicker = tv({
|
|
|
4013
4067
|
}
|
|
4014
4068
|
}],
|
|
4015
4069
|
defaultVariants: {
|
|
4016
|
-
size: 'md'
|
|
4070
|
+
size: 'md',
|
|
4071
|
+
color: 'primary'
|
|
4017
4072
|
}
|
|
4018
4073
|
});
|
|
4019
4074
|
|
|
@@ -4057,11 +4112,14 @@ const autocomplete = tv({
|
|
|
4057
4112
|
extend: input,
|
|
4058
4113
|
slots: {
|
|
4059
4114
|
base: [],
|
|
4060
|
-
listbox
|
|
4115
|
+
// The listbox scrolls itself, so the content below it (the display
|
|
4116
|
+
// limit's note) stays in view rather than being scrolled over.
|
|
4117
|
+
listbox: 'scroll-py-6 max-h-64 overflow-y-auto',
|
|
4061
4118
|
icon: 'w-5 h-5',
|
|
4062
4119
|
clearButton: 'pointer-events-auto',
|
|
4063
4120
|
input: 'cursor-text',
|
|
4064
|
-
emptyContent: 'p-2'
|
|
4121
|
+
emptyContent: 'p-2',
|
|
4122
|
+
displayLimitContent: 'p-2 text-body-2xs text-neutral-firm'
|
|
4065
4123
|
},
|
|
4066
4124
|
variants: {
|
|
4067
4125
|
size: {
|