rei-kit 0.11.0 → 0.11.1
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.
|
@@ -21,7 +21,7 @@ type __VLS_Props = {
|
|
|
21
21
|
* height and no padding: giving it either would make it a ghost button,
|
|
22
22
|
* which is a different thing and was already here.
|
|
23
23
|
*/
|
|
24
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'quiet' | 'row' | 'danger' | 'positive' | 'warning' | 'accent' | 'link' | 'unstyled' | undefined;
|
|
24
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'quiet' | 'destructive' | 'row' | 'danger' | 'positive' | 'warning' | 'accent' | 'link' | 'unstyled' | undefined;
|
|
25
25
|
/** `xs` is the action inside a prompt or a nudge, not on a page. */
|
|
26
26
|
size?: 'xs' | 'sm' | 'md' | 'lg' | undefined;
|
|
27
27
|
loading?: boolean | undefined;
|
package/dist/index.js
CHANGED
|
@@ -954,6 +954,7 @@ var BaseButton_default = /* @__PURE__ */ defineComponent({
|
|
|
954
954
|
primary: "bg-primary text-white hover:bg-primary/90",
|
|
955
955
|
secondary: "border-hair bg-surface text-ink border hover:bg-muted",
|
|
956
956
|
ghost: "bg-transparent text-ink hover:bg-muted",
|
|
957
|
+
destructive: "bg-transparent text-ink-soft hover:text-negative",
|
|
957
958
|
row: "w-full justify-start text-left bg-transparent text-ink hover:bg-muted",
|
|
958
959
|
quiet: "bg-transparent text-ink-soft hover:text-ink",
|
|
959
960
|
danger: "bg-negative text-white hover:bg-negative/90",
|
|
@@ -1001,6 +1002,7 @@ var BaseButton_default = /* @__PURE__ */ defineComponent({
|
|
|
1001
1002
|
const surface = computed(() => {
|
|
1002
1003
|
if (__props.pressed === true) return PRESSED_CLASS[__props.variant] ?? VARIANT_CLASS[__props.variant];
|
|
1003
1004
|
if (__props.variant === "quiet" && __props.icon) return `${VARIANT_CLASS.quiet} hover:bg-muted`;
|
|
1005
|
+
if (__props.variant === "destructive" && __props.icon) return `${VARIANT_CLASS.destructive} hover:bg-negative/10`;
|
|
1004
1006
|
return VARIANT_CLASS[__props.variant];
|
|
1005
1007
|
});
|
|
1006
1008
|
const shell = computed(() => {
|
|
@@ -2411,7 +2413,7 @@ function createI18nRuntime(options) {
|
|
|
2411
2413
|
*
|
|
2412
2414
|
* The fallback keeps `vitest` and `vite dev` honest, where no define runs.
|
|
2413
2415
|
*/
|
|
2414
|
-
var VERSION = "0.11.
|
|
2416
|
+
var VERSION = "0.11.1";
|
|
2415
2417
|
//#endregion
|
|
2416
2418
|
export { AppError, BaseAlert_default as BaseAlert, BaseBadge_default as BaseBadge, BaseButton_default as BaseButton, BaseCard_default as BaseCard, BaseCheckbox_default as BaseCheckbox, BaseInput_default as BaseInput, BaseRadioGroup_default as BaseRadioGroup, BaseSelect_default as BaseSelect, BaseSheet_default as BaseSheet, BaseTextarea_default as BaseTextarea, EmptyState_default as EmptyState, ErrorBoundary_default as ErrorBoundary, FormField_default as FormField, GoogleButton_default as GoogleButton, LocaleLinks_default as LocaleLinks, PageContainer_default as PageContainer, PageHeader_default as PageHeader, PriceCard_default as PriceCard, ProgressBar_default as ProgressBar, SectionHeading_default as SectionHeading, SegmentedControl_default as SegmentedControl, SettingsGroup_default as SettingsGroup, SettingsRow_default as SettingsRow, SkeletonList_default as SkeletonList, StatCard_default as StatCard, TabBar_default as TabBar, ToastHost_default as ToastHost, ToneDot_default as ToneDot, VERSION, addDays, applyTheme, createI18nRuntime, downloadJson, eachDayOfYear, formatDate, fromDateKey, isApplePortable, isInstalled, isThemePreference, lastNDays, leadingBlanks, needsIosInstall, readStoredTheme, registerErrorMapper, relativeDayLabel, safeRedirect, setFormatLocale, setThemeStorageKey, startOfWeek, tapFeedback, toAppError, toDateKey, todayKey, useDebouncedCallback, useDragScroll, useMediaQuery, useOnline, useTheme, useToast, useToday, useVisualViewport };
|
|
2417
2419
|
|