@xaui/native 0.9.1-alpha.94 → 0.9.1-beta.100
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.
- package/dist/{chunk-AXKDHX5V.cjs → chunk-2IOL3VDP.cjs} +3 -3
- package/dist/{chunk-LUPU7FJK.js → chunk-356DND54.js} +1 -1
- package/dist/{chunk-B5DBFS6M.js → chunk-3BRVAMXQ.js} +1 -1
- package/dist/{chunk-4LRVB6WR.cjs → chunk-3DQCHPB6.cjs} +12 -12
- package/dist/{chunk-5O7E73QP.cjs → chunk-3MMOZP4Y.cjs} +8 -8
- package/dist/{chunk-X6GT4H4I.cjs → chunk-3TBT6ORW.cjs} +15 -15
- package/dist/{chunk-DN3X5WIB.js → chunk-3VMKOQXH.js} +1 -1
- package/dist/{chunk-WPYJW3WM.cjs → chunk-435MOVG2.cjs} +3 -3
- package/dist/{chunk-V4IFH65I.cjs → chunk-5CXOSDFI.cjs} +2 -2
- package/dist/{chunk-5XTF2JDK.js → chunk-5G36GMFS.js} +1 -1
- package/dist/{chunk-VBS6VWW4.cjs → chunk-5UT5I53X.cjs} +3 -3
- package/dist/{chunk-4AIIAF6U.js → chunk-73EVNWZI.js} +16 -16
- package/dist/{chunk-7OVYYZ7H.js → chunk-7EPH24S2.js} +15 -15
- package/dist/{chunk-G2YHGLN3.cjs → chunk-7JWOAGB3.cjs} +9 -9
- package/dist/{chunk-6SRFQSPR.cjs → chunk-ADGHFLBJ.cjs} +1 -1
- package/dist/{chunk-OZLOYXLW.js → chunk-BBQQIO6L.js} +4 -4
- package/dist/{chunk-X22PLAP6.cjs → chunk-BGBJTBFC.cjs} +1 -1
- package/dist/{chunk-33BA4LVN.js → chunk-BH4IN6H6.js} +1 -1
- package/dist/{chunk-WLWZG2PA.cjs → chunk-BKY5YQ7W.cjs} +1 -1
- package/dist/{chunk-AHJLQJOE.cjs → chunk-C2S6J27O.cjs} +1 -1
- package/dist/chunk-C6JO2RTV.cjs +752 -0
- package/dist/{chunk-2TLPFGGR.cjs → chunk-CS6CYB4I.cjs} +34 -25
- package/dist/{chunk-WYRM77XM.cjs → chunk-ENZBKNFJ.cjs} +15 -15
- package/dist/{chunk-ERIGD4SE.cjs → chunk-ETY5PM3E.cjs} +150 -39
- package/dist/{chunk-YJIVPYMG.cjs → chunk-FLKTJ46K.cjs} +15 -15
- package/dist/{chunk-OX23MW5E.js → chunk-FSVZXWLZ.js} +44 -44
- package/dist/{chunk-E5E2QA4K.js → chunk-GVZJNIHN.js} +176 -62
- package/dist/{chunk-6W45YHTF.js → chunk-HDERVGWZ.js} +1 -1
- package/dist/{chunk-KHPODIQV.cjs → chunk-IHRPAKCZ.cjs} +15 -15
- package/dist/{chunk-2XEQDQAN.js → chunk-IVELCJEN.js} +99 -99
- package/dist/{chunk-5YZUYSV7.js → chunk-JYV53WUN.js} +1 -1
- package/dist/{chunk-DE4RSR7Q.cjs → chunk-KAYZH7ZN.cjs} +1 -1
- package/dist/{chunk-IMIY34F4.cjs → chunk-KIXHSX3L.cjs} +1 -1
- package/dist/{chunk-7M6YKCHX.js → chunk-KZZWNDDO.js} +2 -2
- package/dist/{chunk-J5COSALO.cjs → chunk-L4B6Z45Q.cjs} +5 -5
- package/dist/{chunk-KFB24VYT.js → chunk-LMMHAGOM.js} +26 -17
- package/dist/{chunk-EQUD3NHO.js → chunk-LYWXGEED.js} +43 -43
- package/dist/{chunk-BYDGJU5A.js → chunk-M352N6PQ.js} +5 -5
- package/dist/{chunk-XOZMGNVS.js → chunk-MXSIY6QQ.js} +3 -3
- package/dist/{chunk-3CPLJJWX.js → chunk-MZUYTCCB.js} +1 -1
- package/dist/{chunk-K7VDLVLE.js → chunk-NQDTGYHC.js} +3 -3
- package/dist/{chunk-NADCILBL.cjs → chunk-NRU5APUE.cjs} +4 -4
- package/dist/{chunk-43S673KF.js → chunk-NTVPLDJC.js} +1 -1
- package/dist/{chunk-7AVZ2FST.cjs → chunk-NXVSNESK.cjs} +12 -12
- package/dist/{chunk-E4FWGZH2.js → chunk-OUNTRW6E.js} +5 -5
- package/dist/{chunk-MNBEUNC5.cjs → chunk-QRH45OO3.cjs} +144 -33
- package/dist/chunk-SVS726BW.js +822 -0
- package/dist/{chunk-YOPWQHNO.js → chunk-TNFLBURM.js} +1 -1
- package/dist/{chunk-YCQEX25B.cjs → chunk-U6YD3UBO.cjs} +7 -7
- package/dist/{chunk-GN7BWYXP.cjs → chunk-USQK6SFZ.cjs} +15 -15
- package/dist/{chunk-QT7KLGO3.js → chunk-V5FYHQKQ.js} +102 -87
- package/dist/{chunk-KMK6FUTK.cjs → chunk-V5V2QYFH.cjs} +9 -9
- package/dist/{chunk-YGETADPV.js → chunk-V7YT4SDX.js} +2 -2
- package/dist/{chunk-DBP5CA5R.js → chunk-VL2ZT4BB.js} +3 -3
- package/dist/{chunk-Q6OVVUAT.js → chunk-VTGWFZCA.js} +2 -2
- package/dist/{chunk-YI5D4QZP.js → chunk-WIGDDZHO.js} +190 -76
- package/dist/{chunk-NGXLJ5ZF.cjs → chunk-WSDDUVF6.cjs} +22 -22
- package/dist/{chunk-AIHKBSQ5.cjs → chunk-YUCK5VJO.cjs} +8 -8
- package/dist/{chunk-SIOSYITD.cjs → chunk-ZBFBF7S4.cjs} +60 -45
- package/dist/{chunk-SX5U5UJQ.js → chunk-ZBY7Q7WJ.js} +2 -2
- package/dist/{chunk-53E2E7GS.cjs → chunk-ZNKHL5O6.cjs} +15 -15
- package/dist/{chunk-U5CUBDJA.js → chunk-ZR5YOCOQ.js} +15 -15
- package/dist/components/accordion/accordion.animation.d.cts +1 -1
- package/dist/components/accordion/accordion.animation.d.ts +1 -1
- package/dist/components/accordion/accordion.type.d.cts +1 -1
- package/dist/components/accordion/accordion.type.d.ts +1 -1
- package/dist/components/accordion/index.cjs +2 -2
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.cts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.ts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.cts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.ts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.cts +4 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.ts +4 -1
- package/dist/components/agenda-calendar/index.cjs +2 -2
- package/dist/components/agenda-calendar/index.js +1 -1
- package/dist/components/alert/alert-icon.d.cts +2 -2
- package/dist/components/alert/alert-icon.d.ts +2 -2
- package/dist/components/alert/alert.type.d.cts +1 -1
- package/dist/components/alert/alert.type.d.ts +1 -1
- package/dist/components/alert/index.cjs +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/autocomplete/autocomplete-description.d.cts +14 -0
- package/dist/components/autocomplete/autocomplete-description.d.ts +14 -0
- package/dist/components/autocomplete/autocomplete-error.d.cts +12 -0
- package/dist/components/autocomplete/autocomplete-error.d.ts +12 -0
- package/dist/components/autocomplete/autocomplete-label.d.cts +15 -0
- package/dist/components/autocomplete/autocomplete-label.d.ts +15 -0
- package/dist/components/autocomplete/autocomplete.d.cts +50 -7
- package/dist/components/autocomplete/autocomplete.d.ts +50 -7
- package/dist/components/autocomplete/autocomplete.type.d.cts +21 -4
- package/dist/components/autocomplete/autocomplete.type.d.ts +21 -4
- package/dist/components/autocomplete/index.cjs +10 -3
- package/dist/components/autocomplete/index.d.cts +50 -3
- package/dist/components/autocomplete/index.d.ts +50 -3
- package/dist/components/autocomplete/index.js +9 -2
- package/dist/components/avatar/avatar-fallback.d.cts +1 -1
- package/dist/components/avatar/avatar-fallback.d.ts +1 -1
- package/dist/components/avatar/avatar.d.cts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.type.d.cts +1 -1
- package/dist/components/avatar/avatar.type.d.ts +1 -1
- package/dist/components/avatar/index.cjs +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.cts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +1 -1
- package/dist/components/bottom-sheet/index.cjs +2 -2
- package/dist/components/bottom-sheet/index.js +1 -1
- package/dist/components/card/card-background.d.cts +1 -1
- package/dist/components/card/card-background.d.ts +1 -1
- package/dist/components/card/card.utils.d.cts +1 -1
- package/dist/components/card/card.utils.d.ts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.cts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox/checkbox.type.d.cts +1 -1
- package/dist/components/checkbox/checkbox.type.d.ts +1 -1
- package/dist/components/checkbox/index.cjs +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/chip/chip.type.d.cts +1 -1
- package/dist/components/chip/chip.type.d.ts +1 -1
- package/dist/components/chip/index.cjs +2 -2
- package/dist/components/chip/index.js +1 -1
- package/dist/components/color-picker/index.cjs +7 -7
- package/dist/components/color-picker/index.js +6 -6
- package/dist/components/combobox/combobox.type.d.cts +5 -1
- package/dist/components/combobox/combobox.type.d.ts +5 -1
- package/dist/components/combobox/index.cjs +5 -4
- package/dist/components/combobox/index.d.cts +15 -1
- package/dist/components/combobox/index.d.ts +15 -1
- package/dist/components/combobox/index.js +4 -3
- package/dist/components/date-picker/index.cjs +4 -4
- package/dist/components/date-picker/index.js +3 -3
- package/dist/components/date-range-picker/index.cjs +4 -4
- package/dist/components/date-range-picker/index.js +3 -3
- package/dist/components/date-time-picker/index.cjs +5 -5
- package/dist/components/date-time-picker/index.js +4 -4
- package/dist/components/dialog/index.cjs +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dummy-field/index.cjs +5 -5
- package/dist/components/dummy-field/index.js +4 -4
- package/dist/components/field-group/field-group-icon.d.cts +1 -1
- package/dist/components/field-group/field-group-icon.d.ts +1 -1
- package/dist/components/field-group/index.cjs +4 -4
- package/dist/components/field-group/index.js +3 -3
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-otp/input-otp.type.d.cts +1 -1
- package/dist/components/input-otp/input-otp.type.d.ts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.cts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.ts +1 -1
- package/dist/components/mask-field/index.cjs +5 -5
- package/dist/components/mask-field/index.js +4 -4
- package/dist/components/menu/index.cjs +2 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/number-field/index.cjs +5 -5
- package/dist/components/number-field/index.js +4 -4
- package/dist/components/phone-number-field/index.cjs +37 -30
- package/dist/components/phone-number-field/index.js +13 -6
- package/dist/components/popover/index.cjs +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.recipe.d.cts +1 -1
- package/dist/components/popover/popover.recipe.d.ts +1 -1
- package/dist/components/search-field/index.cjs +5 -5
- package/dist/components/search-field/index.js +4 -4
- package/dist/components/select/index.cjs +10 -3
- package/dist/components/select/index.d.cts +45 -4
- package/dist/components/select/index.d.ts +45 -4
- package/dist/components/select/index.js +9 -2
- package/dist/components/select/select-description.d.cts +14 -0
- package/dist/components/select/select-description.d.ts +14 -0
- package/dist/components/select/select-error.d.cts +13 -0
- package/dist/components/select/select-error.d.ts +13 -0
- package/dist/components/select/select-group-label.d.cts +11 -0
- package/dist/components/select/select-group-label.d.ts +11 -0
- package/dist/components/select/select-indicator.d.cts +1 -1
- package/dist/components/select/select-indicator.d.ts +1 -1
- package/dist/components/select/select-label.d.cts +11 -2
- package/dist/components/select/select-label.d.ts +11 -2
- package/dist/components/select/select.d.cts +49 -9
- package/dist/components/select/select.d.ts +49 -9
- package/dist/components/select/select.recipe.d.cts +1 -1
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.type.d.cts +33 -9
- package/dist/components/select/select.type.d.ts +33 -9
- package/dist/components/skeleton/skeleton.type.d.cts +1 -1
- package/dist/components/skeleton/skeleton.type.d.ts +1 -1
- package/dist/components/slide-button/index.cjs +30 -0
- package/dist/components/slide-button/index.d.cts +44 -0
- package/dist/components/slide-button/index.d.ts +44 -0
- package/dist/components/slide-button/index.js +30 -0
- package/dist/components/slide-button/slide-button-fill.d.cts +29 -0
- package/dist/components/slide-button/slide-button-fill.d.ts +29 -0
- package/dist/components/slide-button/slide-button-icon.d.cts +10 -0
- package/dist/components/slide-button/slide-button-icon.d.ts +10 -0
- package/dist/components/slide-button/slide-button-label.d.cts +20 -0
- package/dist/components/slide-button/slide-button-label.d.ts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.cts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.ts +20 -0
- package/dist/components/slide-button/slide-button.animation.d.cts +33 -0
- package/dist/components/slide-button/slide-button.animation.d.ts +33 -0
- package/dist/components/slide-button/slide-button.context.d.cts +7 -0
- package/dist/components/slide-button/slide-button.context.d.ts +7 -0
- package/dist/components/slide-button/slide-button.d.cts +56 -0
- package/dist/components/slide-button/slide-button.d.ts +56 -0
- package/dist/components/slide-button/slide-button.recipe.d.cts +31 -0
- package/dist/components/slide-button/slide-button.recipe.d.ts +31 -0
- package/dist/components/slide-button/slide-button.type.d.cts +79 -0
- package/dist/components/slide-button/slide-button.type.d.ts +79 -0
- package/dist/components/slider/slider-thumb.d.cts +1 -1
- package/dist/components/slider/slider-thumb.d.ts +1 -1
- package/dist/components/slider/slider.recipe.d.cts +1 -1
- package/dist/components/slider/slider.recipe.d.ts +1 -1
- package/dist/components/spinner/spinner.d.cts +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/switch/switch.style.d.cts +1 -1
- package/dist/components/switch/switch.style.d.ts +1 -1
- package/dist/components/table/index.cjs +3 -3
- package/dist/components/table/index.js +2 -2
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/text-area/text-area.d.cts +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-field/index.cjs +3 -3
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/text-field/text-field.type.d.cts +4 -4
- package/dist/components/text-field/text-field.type.d.ts +4 -4
- package/dist/components/time-picker/index.cjs +4 -4
- package/dist/components/time-picker/index.js +3 -3
- package/dist/components/toast/index.cjs +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast.animation.d.cts +2 -2
- package/dist/components/toast/toast.animation.d.ts +2 -2
- package/dist/components/toast/toast.utils.d.cts +1 -1
- package/dist/components/toast/toast.utils.d.ts +1 -1
- package/dist/components/typography/typography.type.d.cts +1 -1
- package/dist/components/typography/typography.type.d.ts +1 -1
- package/dist/hooks/use-rotation.d.cts +1 -1
- package/dist/hooks/use-rotation.d.ts +1 -1
- package/dist/index.cjs +66 -42
- package/dist/index.js +74 -50
- package/dist/system/anchored/indicator-spring.d.cts +2 -2
- package/dist/system/anchored/indicator-spring.d.ts +2 -2
- package/dist/theme/derive-colors.d.cts +1 -1
- package/dist/theme/derive-colors.d.ts +1 -1
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +1 -1
- package/package.json +11 -1
|
@@ -324,14 +324,30 @@ var AgendaCalendarNextButton = navButton(1, "XAUI.AgendaCalendar.NextButton", sh
|
|
|
324
324
|
// src/components/agenda-calendar/agenda-calendar.recipe.ts
|
|
325
325
|
var SLOTS = ["root", "header", "nav", "navButton", "today", "todayDisabled", "todayLabel", "week", "picker", "pickerItem"];
|
|
326
326
|
var VARIANT_TOKENS = {
|
|
327
|
-
//
|
|
328
|
-
//
|
|
329
|
-
//
|
|
330
|
-
//
|
|
331
|
-
//
|
|
332
|
-
|
|
333
|
-
|
|
327
|
+
// The four the `Calendar` declares, answered on the pill rather than on a disc. The
|
|
328
|
+
// variant is a level of emphasis, and the two controls it reaches are the chosen day and
|
|
329
|
+
// this button — a strip whose chosen day is a soft wash under a pill that kept a hard
|
|
330
|
+
// accent border is two variants on one card.
|
|
331
|
+
//
|
|
332
|
+
// The emphasis runs the other way round from a `Button`'s, and on purpose: `primary`
|
|
333
|
+
// outlines rather than fills. The pill sits between two bare chevrons, so the filled
|
|
334
|
+
// accent that makes a `Button` primary would read here as the primary action of the whole
|
|
335
|
+
// card — the accent goes on the word instead, which is where the strip's own accent is.
|
|
336
|
+
primary: {
|
|
337
|
+
border: "border",
|
|
334
338
|
fg: "accent"
|
|
339
|
+
},
|
|
340
|
+
secondary: {
|
|
341
|
+
bg: "accentSoft",
|
|
342
|
+
fg: "accentSoftForeground"
|
|
343
|
+
},
|
|
344
|
+
tertiary: {
|
|
345
|
+
bg: "default",
|
|
346
|
+
fg: "defaultForeground"
|
|
347
|
+
},
|
|
348
|
+
// No fill and no border: the word alone, as `ghost` means everywhere else.
|
|
349
|
+
ghost: {
|
|
350
|
+
fg: "foreground"
|
|
335
351
|
}
|
|
336
352
|
};
|
|
337
353
|
var SIZES = {
|
|
@@ -410,18 +426,14 @@ var agendaCalendarRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
410
426
|
alignItems: "center",
|
|
411
427
|
justifyContent: "center"
|
|
412
428
|
},
|
|
413
|
-
//
|
|
414
|
-
// filled button there would read as the primary action of the whole card.
|
|
429
|
+
// The box only. Whether it is outlined, washed or bare is the variant's, below.
|
|
415
430
|
today: {
|
|
416
431
|
alignItems: "center",
|
|
417
|
-
justifyContent: "center"
|
|
418
|
-
borderWidth: theme.borderWidth.default,
|
|
419
|
-
borderColor: theme.colors.border
|
|
432
|
+
justifyContent: "center"
|
|
420
433
|
},
|
|
421
434
|
todayLabel: {
|
|
422
435
|
fontFamily: theme.fontFamilies.body,
|
|
423
|
-
fontWeight: theme.fontWeights.medium
|
|
424
|
-
color: theme.colors.accent
|
|
436
|
+
fontWeight: theme.fontWeights.medium
|
|
425
437
|
},
|
|
426
438
|
week: {
|
|
427
439
|
flexDirection: "row"
|
|
@@ -445,14 +457,20 @@ var agendaCalendarRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
445
457
|
}
|
|
446
458
|
}),
|
|
447
459
|
variantTokens: VARIANT_TOKENS,
|
|
448
|
-
// The
|
|
449
|
-
//
|
|
450
|
-
//
|
|
451
|
-
|
|
460
|
+
// The `Button`'s own paint, one slot down: the border's *width* follows the presence of
|
|
461
|
+
// the border role rather than a per-variant flag, because which variant outlines is
|
|
462
|
+
// already stated in the table above. `undefined` where a variant names no `bg` is the
|
|
463
|
+
// transparent the outlined and the bare pill both want.
|
|
464
|
+
paint: (theme, colors) => ({
|
|
465
|
+
today: {
|
|
466
|
+
backgroundColor: colors.bg,
|
|
467
|
+
borderColor: colors.border,
|
|
468
|
+
borderWidth: colors.border ? theme.borderWidth.default : 0
|
|
469
|
+
},
|
|
452
470
|
todayLabel: {
|
|
453
471
|
color: colors.fg
|
|
454
472
|
}
|
|
455
|
-
}
|
|
473
|
+
}),
|
|
456
474
|
variants: {
|
|
457
475
|
size: {
|
|
458
476
|
sm: sizeAxis(SIZES.sm),
|
|
@@ -469,11 +487,12 @@ var agendaCalendarRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
469
487
|
}
|
|
470
488
|
})
|
|
471
489
|
},
|
|
472
|
-
// `
|
|
473
|
-
//
|
|
474
|
-
//
|
|
490
|
+
// The `Calendar`'s default, because the two resolve from the same `variant` prop and a
|
|
491
|
+
// card whose strip defaulted to one and whose pill to another is not one component.
|
|
492
|
+
// Naming it is also what makes `paint` and `tint` run at all — without a variant both are
|
|
493
|
+
// handed no colours, and the pill loses its word to RN's black.
|
|
475
494
|
defaultVariants: {
|
|
476
|
-
variant: "
|
|
495
|
+
variant: "primary",
|
|
477
496
|
size: "md"
|
|
478
497
|
}
|
|
479
498
|
});
|
|
@@ -528,14 +547,14 @@ var AgendaCalendarRoot = _react.forwardRef.call(void 0, function AgendaCalendar(
|
|
|
528
547
|
});
|
|
529
548
|
const resolvedLocale = _nullishCoalesce(locale, () => deviceLocale());
|
|
530
549
|
const weekStart = _nullishCoalesce(firstDayOfWeek, () => _chunkISHMSP6Pcjs.firstDayOfWeekFor.call(void 0, resolvedLocale));
|
|
531
|
-
const
|
|
550
|
+
const selection = {
|
|
532
551
|
variant,
|
|
533
552
|
size,
|
|
534
553
|
radius
|
|
535
554
|
};
|
|
536
555
|
const cells = _chunk6ZWQDTGQcjs.calendarRecipe.resolve({
|
|
537
556
|
theme,
|
|
538
|
-
selection
|
|
557
|
+
selection,
|
|
539
558
|
states: {
|
|
540
559
|
disabled: isDisabled
|
|
541
560
|
}
|
|
@@ -543,12 +562,8 @@ var AgendaCalendarRoot = _react.forwardRef.call(void 0, function AgendaCalendar(
|
|
|
543
562
|
const cellTint = color ? _chunk6ZWQDTGQcjs.calendarRecipe.tint({
|
|
544
563
|
theme,
|
|
545
564
|
color,
|
|
546
|
-
selection
|
|
565
|
+
selection
|
|
547
566
|
}) : void 0;
|
|
548
|
-
const selection = {
|
|
549
|
-
size,
|
|
550
|
-
radius
|
|
551
|
-
};
|
|
552
567
|
const styles = agendaCalendarRecipe.resolve({
|
|
553
568
|
theme,
|
|
554
569
|
selection,
|
|
@@ -646,7 +661,7 @@ var AgendaCalendarRoot = _react.forwardRef.call(void 0, function AgendaCalendar(
|
|
|
646
661
|
},
|
|
647
662
|
pickerItemLabelStyle: cells.dayLabel,
|
|
648
663
|
pickerItemLabelSelectedStyle: cellTint ? [cells.dayLabelSelected, cellTint.dayLabelSelected] : cells.dayLabelSelected,
|
|
649
|
-
todayStyle: styles.today,
|
|
664
|
+
todayStyle: tint ? [styles.today, tint.today] : styles.today,
|
|
650
665
|
todayDisabledStyle: styles.todayDisabled,
|
|
651
666
|
todayLabelStyle: tint ? [styles.todayLabel, tint.todayLabel] : styles.todayLabel,
|
|
652
667
|
weekStyle: styles.week,
|
|
@@ -806,10 +821,10 @@ var SPRING = {
|
|
|
806
821
|
stiffness: 220,
|
|
807
822
|
mass: 0.6
|
|
808
823
|
};
|
|
809
|
-
const
|
|
810
|
-
code: "function
|
|
811
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
812
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
824
|
+
const _worklet_368808865208_init_data = {
|
|
825
|
+
code: "function chunkZBFBF7S4Cjs1(){const{drag}=this.__closure;return{transform:[{translateX:drag.get()}]};}",
|
|
826
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZBFBF7S4.cjs",
|
|
827
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZBFBF7S4Cjs1\",\"drag\",\"__closure\",\"transform\",\"translateX\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZBFBF7S4.cjs\"],\"mappings\":\"AA+0BuE,SAAAA,iBAAMA,CAAA,QAAAC,IAAA,OAAAC,SAAA,CAEvE,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEH,IAAI,CAACI,GAAG,CAAC,CAAE,CAAC,CAAE,CAAC,CACpD\",\"ignoreList\":[]}"
|
|
813
828
|
};
|
|
814
829
|
var AgendaCalendarWeek = _react.forwardRef.call(void 0, function AgendaCalendarWeek2({
|
|
815
830
|
children,
|
|
@@ -839,28 +854,28 @@ var AgendaCalendarWeek = _react.forwardRef.call(void 0, function AgendaCalendarW
|
|
|
839
854
|
}).onFinalize(() => {
|
|
840
855
|
drag.set(_reactnativereanimated.withSpring.call(void 0, 0, SPRING));
|
|
841
856
|
});
|
|
842
|
-
const slide = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
843
|
-
|
|
857
|
+
const slide = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkZBFBF7S4Cjs1Factory({
|
|
858
|
+
_worklet_368808865208_init_data,
|
|
844
859
|
drag
|
|
845
860
|
}) {
|
|
846
861
|
const _e = [new global.Error(), -2, -27];
|
|
847
|
-
const
|
|
862
|
+
const chunkZBFBF7S4Cjs1 = function () {
|
|
848
863
|
return {
|
|
849
864
|
transform: [{
|
|
850
865
|
translateX: drag.get()
|
|
851
866
|
}]
|
|
852
867
|
};
|
|
853
868
|
};
|
|
854
|
-
|
|
869
|
+
chunkZBFBF7S4Cjs1.__closure = {
|
|
855
870
|
drag
|
|
856
871
|
};
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
return
|
|
872
|
+
chunkZBFBF7S4Cjs1.__workletHash = 368808865208;
|
|
873
|
+
chunkZBFBF7S4Cjs1.__pluginVersion = "0.7.4";
|
|
874
|
+
chunkZBFBF7S4Cjs1.__initData = _worklet_368808865208_init_data;
|
|
875
|
+
chunkZBFBF7S4Cjs1.__stackDetails = _e;
|
|
876
|
+
return chunkZBFBF7S4Cjs1;
|
|
862
877
|
}({
|
|
863
|
-
|
|
878
|
+
_worklet_368808865208_init_data,
|
|
864
879
|
drag
|
|
865
880
|
}), [drag]);
|
|
866
881
|
const cells = days.map(date => /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
DummyFieldField,
|
|
5
5
|
DummyFieldLabel,
|
|
6
6
|
DummyFieldRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MXSIY6QQ.js";
|
|
8
8
|
import {
|
|
9
9
|
Dialog,
|
|
10
10
|
DialogClose,
|
|
11
11
|
DialogContent,
|
|
12
12
|
DialogOverlay,
|
|
13
13
|
DialogTitle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5G36GMFS.js";
|
|
15
15
|
import {
|
|
16
16
|
useControllableState
|
|
17
17
|
} from "./chunk-F6W3JQ7K.js";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkV5V2QYFHcjs = require('./chunk-V5V2QYFH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunk55KGHYYUcjs = require('./chunk-55KGHYYU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk3TBT6ORWcjs = require('./chunk-3TBT6ORW.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunk6ZWQDTGQcjs = require('./chunk-6ZWQDTGQ.cjs');
|
|
@@ -17,7 +17,7 @@ var _chunk6ZWQDTGQcjs = require('./chunk-6ZWQDTGQ.cjs');
|
|
|
17
17
|
var _chunkISHMSP6Pcjs = require('./chunk-ISHMSP6P.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkL4B6Z45Qcjs = require('./chunk-L4B6Z45Q.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
@@ -101,22 +101,22 @@ function DateTimePicker({
|
|
|
101
101
|
isOpen: isOpen ? "true" : void 0,
|
|
102
102
|
isInvalid: isInvalid ? "true" : void 0
|
|
103
103
|
};
|
|
104
|
-
const field =
|
|
104
|
+
const field = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
105
105
|
theme,
|
|
106
106
|
selection,
|
|
107
107
|
states: { disabled: isDisabled }
|
|
108
108
|
});
|
|
109
|
-
const fieldPressed =
|
|
109
|
+
const fieldPressed = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
110
110
|
theme,
|
|
111
111
|
selection,
|
|
112
112
|
states: { pressed: true }
|
|
113
113
|
});
|
|
114
|
-
const tint = color ?
|
|
114
|
+
const tint = color ? _chunkL4B6Z45Qcjs.selectRecipe.tint({ theme, color, selection }) : void 0;
|
|
115
115
|
const onPickDate = _react.useCallback.call(void 0,
|
|
116
116
|
(day) => {
|
|
117
117
|
const start = _chunkISHMSP6Pcjs.startOfDay.call(void 0, day);
|
|
118
118
|
setValue(
|
|
119
|
-
value === void 0 ? start :
|
|
119
|
+
value === void 0 ? start : _chunkV5V2QYFHcjs.withTime.call(void 0, start, {
|
|
120
120
|
hours: value.getHours(),
|
|
121
121
|
minutes: value.getMinutes(),
|
|
122
122
|
seconds: 0
|
|
@@ -260,10 +260,10 @@ function DateTimePickerSheet({
|
|
|
260
260
|
...props
|
|
261
261
|
}) {
|
|
262
262
|
const picker = useDateTimePicker();
|
|
263
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
263
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2, { isOpen: picker.isOpen, onOpenChange: picker.setOpen, ...props, children: [
|
|
264
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Overlay, {}),
|
|
265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Content, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DateTimePickerProvider, { value: picker, children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
266
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Handle, {}),
|
|
267
267
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DateTimePickerSteps, { labels: stepLabels }),
|
|
268
268
|
picker.step === "date" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
269
269
|
DateTimePickerCalendar,
|
|
@@ -309,7 +309,7 @@ DateTimePickerCalendar.displayName = "XAUI.DateTimePicker.Calendar";
|
|
|
309
309
|
function DateTimePickerClock(props) {
|
|
310
310
|
const { value, onPickTime, clock } = useDateTimePicker();
|
|
311
311
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
312
|
-
|
|
312
|
+
_chunkV5V2QYFHcjs.TimePicker2,
|
|
313
313
|
{
|
|
314
314
|
size: clock.size,
|
|
315
315
|
color: clock.color,
|
|
@@ -321,8 +321,8 @@ function DateTimePickerClock(props) {
|
|
|
321
321
|
closeOnSelect: false,
|
|
322
322
|
...props,
|
|
323
323
|
children: [
|
|
324
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
324
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV5V2QYFHcjs.TimePicker2.Display, { style: { alignSelf: "center" } }),
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV5V2QYFHcjs.TimePicker2.Clock, { style: { alignSelf: "center" } })
|
|
326
326
|
]
|
|
327
327
|
}
|
|
328
328
|
);
|
|
@@ -333,7 +333,7 @@ DateTimePickerClock.displayName = "XAUI.DateTimePicker.Clock";
|
|
|
333
333
|
|
|
334
334
|
function DateTimePickerIndicator(props) {
|
|
335
335
|
const { glyph } = useDateTimePicker();
|
|
336
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
336
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV5V2QYFHcjs.TimePickerIndicator, { ...props }) });
|
|
337
337
|
}
|
|
338
338
|
DateTimePickerIndicator.displayName = "XAUI.DateTimePicker.Indicator";
|
|
339
339
|
|
|
@@ -106,10 +106,10 @@ var AvatarImage = forwardRef3(function AvatarImage2({
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
AvatarImage.displayName = "XAUI.Avatar.Image";
|
|
109
|
-
const
|
|
110
|
-
code: "function
|
|
111
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
112
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
109
|
+
const _worklet_3214403523242_init_data = {
|
|
110
|
+
code: "function chunkZR5YOCOQJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
111
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZR5YOCOQ.js",
|
|
112
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZR5YOCOQJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZR5YOCOQ.js\"],\"mappings\":\"AAsG2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
113
113
|
};
|
|
114
114
|
var FadingImage = forwardRef3(function FadingImage2({
|
|
115
115
|
onLoad,
|
|
@@ -123,26 +123,26 @@ var FadingImage = forwardRef3(function FadingImage2({
|
|
|
123
123
|
});
|
|
124
124
|
onLoad?.(event);
|
|
125
125
|
}, [opacity, onLoad]);
|
|
126
|
-
const animatedStyle = useAnimatedStyle(function
|
|
127
|
-
|
|
126
|
+
const animatedStyle = useAnimatedStyle(function chunkZR5YOCOQJs1Factory({
|
|
127
|
+
_worklet_3214403523242_init_data,
|
|
128
128
|
opacity
|
|
129
129
|
}) {
|
|
130
130
|
const _e = [new global.Error(), -2, -27];
|
|
131
|
-
const
|
|
131
|
+
const chunkZR5YOCOQJs1 = function () {
|
|
132
132
|
return {
|
|
133
133
|
opacity: opacity.value
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
chunkZR5YOCOQJs1.__closure = {
|
|
137
137
|
opacity
|
|
138
138
|
};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
return
|
|
139
|
+
chunkZR5YOCOQJs1.__workletHash = 3214403523242;
|
|
140
|
+
chunkZR5YOCOQJs1.__pluginVersion = "0.7.4";
|
|
141
|
+
chunkZR5YOCOQJs1.__initData = _worklet_3214403523242_init_data;
|
|
142
|
+
chunkZR5YOCOQJs1.__stackDetails = _e;
|
|
143
|
+
return chunkZR5YOCOQJs1;
|
|
144
144
|
}({
|
|
145
|
-
|
|
145
|
+
_worklet_3214403523242_init_data,
|
|
146
146
|
opacity
|
|
147
147
|
}), [opacity]);
|
|
148
148
|
return /* @__PURE__ */jsx3(Animated.Image, {
|
|
@@ -303,7 +303,7 @@ var avatarRecipe = createRecipe({
|
|
|
303
303
|
radius: radiusAxis("root")
|
|
304
304
|
},
|
|
305
305
|
/**
|
|
306
|
-
* A circle at every size, where
|
|
306
|
+
* A circle at every size, where the reference implementation fixes one large radius for all three — which
|
|
307
307
|
* makes their small avatars round and their large ones squircles. `full` says the shape
|
|
308
308
|
* the name means once, and `radius` is still there for the logo that wants a square.
|
|
309
309
|
*/
|
|
@@ -8,7 +8,7 @@ import { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
|
8
8
|
* content grows afterwards — an image loading, a list filling — would be stuck at the
|
|
9
9
|
* height it had when it was measured.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* The reference implementation's spring, and stiffer than the chevron's: 1600 against 1000. A height is a
|
|
12
12
|
* bigger distance than a rotation, and at the chevron's stiffness the same damping makes
|
|
13
13
|
* a long panel take almost half a second to settle.
|
|
14
14
|
*/
|
|
@@ -8,7 +8,7 @@ import { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
|
8
8
|
* content grows afterwards — an image loading, a list filling — would be stuck at the
|
|
9
9
|
* height it had when it was measured.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* The reference implementation's spring, and stiffer than the chevron's: 1600 against 1000. A height is a
|
|
12
12
|
* bigger distance than a rotation, and at the chevron's stiffness the same damping makes
|
|
13
13
|
* a long panel take almost half a second to settle.
|
|
14
14
|
*/
|
|
@@ -15,7 +15,7 @@ export type AccordionSlot = 'root'
|
|
|
15
15
|
* the `Button`'s five nor the `Card`'s four read that cleanly — both put `default`
|
|
16
16
|
* somewhere in the middle of an order it does not name a position in.
|
|
17
17
|
*
|
|
18
|
-
* `ghost` is the default here, and it is
|
|
18
|
+
* `ghost` is the default here, and it is the reference implementation's own `default`: rows separated by
|
|
19
19
|
* hairlines, on whatever page they sit on. `primary` is their `surface`.
|
|
20
20
|
*/
|
|
21
21
|
export type AccordionVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
@@ -15,7 +15,7 @@ export type AccordionSlot = 'root'
|
|
|
15
15
|
* the `Button`'s five nor the `Card`'s four read that cleanly — both put `default`
|
|
16
16
|
* somewhere in the middle of an order it does not name a position in.
|
|
17
17
|
*
|
|
18
|
-
* `ghost` is the default here, and it is
|
|
18
|
+
* `ghost` is the default here, and it is the reference implementation's own `default`: rows separated by
|
|
19
19
|
* hairlines, on whatever page they sit on. `primary` is their `surface`.
|
|
20
20
|
*/
|
|
21
21
|
export type AccordionVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkUSQK6SFZcjs = require('../../chunk-USQK6SFZ.cjs');
|
|
13
13
|
require('../../chunk-EKS3W46M.cjs');
|
|
14
14
|
require('../../chunk-7EIHHOHP.cjs');
|
|
15
15
|
require('../../chunk-HBYT7B47.cjs');
|
|
@@ -34,4 +34,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
exports.Accordion =
|
|
37
|
+
exports.Accordion = _chunkUSQK6SFZcjs.Accordion; exports.AccordionContent = _chunkUSQK6SFZcjs.AccordionContent; exports.AccordionIndicator = _chunkUSQK6SFZcjs.AccordionIndicator; exports.AccordionItem = _chunkUSQK6SFZcjs.AccordionItem; exports.AccordionRoot = _chunkUSQK6SFZcjs.AccordionRoot; exports.AccordionTrigger = _chunkUSQK6SFZcjs.AccordionTrigger; exports.accordionLayoutTransition = _chunkUSQK6SFZcjs.LAYOUT; exports.accordionRecipe = _chunkUSQK6SFZcjs.accordionRecipe; exports.useAccordion = _chunkUSQK6SFZcjs.useAccordion; exports.useAccordionItem = _chunkUSQK6SFZcjs.useAccordionItem;
|
|
@@ -13,6 +13,10 @@ import { View } from 'react-native';
|
|
|
13
13
|
*
|
|
14
14
|
* The word is the caller's: "Today", "Aujourd'hui", "Hoy". R3 wraps a text child into the
|
|
15
15
|
* label, so `<AgendaCalendar.TodayButton>Today</…>` is the whole call.
|
|
16
|
+
*
|
|
17
|
+
* **It wears the card's `variant`**, the one that aims the chosen day: outlined with the
|
|
18
|
+
* word in the accent on `primary`, a soft fill on `secondary`, a neutral one on `tertiary`,
|
|
19
|
+
* the bare word on `ghost`. Nothing to pass — the pill reads the root's resolution.
|
|
16
20
|
*/
|
|
17
21
|
export declare const AgendaCalendarTodayButton: import("react").ForwardRefExoticComponent<{
|
|
18
22
|
children?: import("react").ReactNode;
|
|
@@ -13,6 +13,10 @@ import { View } from 'react-native';
|
|
|
13
13
|
*
|
|
14
14
|
* The word is the caller's: "Today", "Aujourd'hui", "Hoy". R3 wraps a text child into the
|
|
15
15
|
* label, so `<AgendaCalendar.TodayButton>Today</…>` is the whole call.
|
|
16
|
+
*
|
|
17
|
+
* **It wears the card's `variant`**, the one that aims the chosen day: outlined with the
|
|
18
|
+
* word in the accent on `primary`, a soft fill on `secondary`, a neutral one on `tertiary`,
|
|
19
|
+
* the bare word on `ghost`. Nothing to pass — the pill reads the root's resolution.
|
|
16
20
|
*/
|
|
17
21
|
export declare const AgendaCalendarTodayButton: import("react").ForwardRefExoticComponent<{
|
|
18
22
|
children?: import("react").ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SlotStyles } from '../../system/recipe';
|
|
2
2
|
import type { XAUITheme } from '../../theme/theme.type';
|
|
3
3
|
import type { AgendaCalendarSlot } from './agenda-calendar.type';
|
|
4
|
-
export declare const agendaCalendarRecipe: import("../..").Recipe<"header" | "nav" | "week" | "root" | "navButton" | "today" | "todayDisabled" | "todayLabel" | "picker" | "pickerItem", "
|
|
4
|
+
export declare const agendaCalendarRecipe: import("../..").Recipe<"header" | "nav" | "week" | "root" | "navButton" | "today" | "todayDisabled" | "todayLabel" | "picker" | "pickerItem", import("..").CalendarVariant, {
|
|
5
5
|
readonly size: {
|
|
6
6
|
readonly sm: (theme: XAUITheme) => SlotStyles<AgendaCalendarSlot>;
|
|
7
7
|
readonly md: (theme: XAUITheme) => SlotStyles<AgendaCalendarSlot>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SlotStyles } from '../../system/recipe';
|
|
2
2
|
import type { XAUITheme } from '../../theme/theme.type';
|
|
3
3
|
import type { AgendaCalendarSlot } from './agenda-calendar.type';
|
|
4
|
-
export declare const agendaCalendarRecipe: import("../..").Recipe<"header" | "nav" | "week" | "root" | "navButton" | "today" | "todayDisabled" | "todayLabel" | "picker" | "pickerItem", "
|
|
4
|
+
export declare const agendaCalendarRecipe: import("../..").Recipe<"header" | "nav" | "week" | "root" | "navButton" | "today" | "todayDisabled" | "todayLabel" | "picker" | "pickerItem", import("..").CalendarVariant, {
|
|
5
5
|
readonly size: {
|
|
6
6
|
readonly sm: (theme: XAUITheme) => SlotStyles<AgendaCalendarSlot>;
|
|
7
7
|
readonly md: (theme: XAUITheme) => SlotStyles<AgendaCalendarSlot>;
|
|
@@ -7,7 +7,10 @@ import type { RadiusKey, Size } from '../../theme/theme.type';
|
|
|
7
7
|
import type { WeekDay } from '../../utils/dates';
|
|
8
8
|
import type { CalendarVariant } from '../calendar';
|
|
9
9
|
export type AgendaCalendarSlot = 'root' | 'header' | 'nav' | 'navButton' | 'today' | 'todayDisabled' | 'todayLabel' | 'week' | 'picker' | 'pickerItem';
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The `Calendar`'s four, because the chosen day is the same day. It aims the pill that says
|
|
12
|
+
* "Today" as well — the variant is the card's one level of emphasis, not the disc's alone.
|
|
13
|
+
*/
|
|
11
14
|
export type AgendaCalendarVariant = CalendarVariant;
|
|
12
15
|
/**
|
|
13
16
|
* Which strip is on screen: the week of days, the months of the year, or the years.
|
|
@@ -7,7 +7,10 @@ import type { RadiusKey, Size } from '../../theme/theme.type';
|
|
|
7
7
|
import type { WeekDay } from '../../utils/dates';
|
|
8
8
|
import type { CalendarVariant } from '../calendar';
|
|
9
9
|
export type AgendaCalendarSlot = 'root' | 'header' | 'nav' | 'navButton' | 'today' | 'todayDisabled' | 'todayLabel' | 'week' | 'picker' | 'pickerItem';
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The `Calendar`'s four, because the chosen day is the same day. It aims the pill that says
|
|
12
|
+
* "Today" as well — the variant is the card's one level of emphasis, not the disc's alone.
|
|
13
|
+
*/
|
|
11
14
|
export type AgendaCalendarVariant = CalendarVariant;
|
|
12
15
|
/**
|
|
13
16
|
* Which strip is on screen: the week of days, the months of the year, or the years.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZBFBF7S4cjs = require('../../chunk-ZBFBF7S4.cjs');
|
|
18
18
|
require('../../chunk-6ZWQDTGQ.cjs');
|
|
19
19
|
require('../../chunk-ISHMSP6P.cjs');
|
|
20
20
|
require('../../chunk-WFEMJCXO.cjs');
|
|
@@ -46,4 +46,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.AgendaCalendar =
|
|
49
|
+
exports.AgendaCalendar = _chunkZBFBF7S4cjs.AgendaCalendar; exports.AgendaCalendarDay = _chunkZBFBF7S4cjs.AgendaCalendarDay; exports.AgendaCalendarHeader = _chunkZBFBF7S4cjs.AgendaCalendarHeader; exports.AgendaCalendarMonthPicker = _chunkZBFBF7S4cjs.AgendaCalendarMonthPicker; exports.AgendaCalendarNav = _chunkZBFBF7S4cjs.AgendaCalendarNav; exports.AgendaCalendarNextButton = _chunkZBFBF7S4cjs.AgendaCalendarNextButton; exports.AgendaCalendarPreviousButton = _chunkZBFBF7S4cjs.AgendaCalendarPreviousButton; exports.AgendaCalendarRoot = _chunkZBFBF7S4cjs.AgendaCalendarRoot; exports.AgendaCalendarTitle = _chunkZBFBF7S4cjs.AgendaCalendarTitle; exports.AgendaCalendarTodayButton = _chunkZBFBF7S4cjs.AgendaCalendarTodayButton; exports.AgendaCalendarWeek = _chunkZBFBF7S4cjs.AgendaCalendarWeek; exports.AgendaCalendarWeekdays = _chunkZBFBF7S4cjs.AgendaCalendarWeekdays; exports.AgendaCalendarYearPicker = _chunkZBFBF7S4cjs.AgendaCalendarYearPicker; exports.agendaCalendarRecipe = _chunkZBFBF7S4cjs.agendaCalendarRecipe; exports.useAgendaCalendar = _chunkZBFBF7S4cjs.useAgendaCalendar;
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
AgendaCalendarYearPicker,
|
|
15
15
|
agendaCalendarRecipe,
|
|
16
16
|
useAgendaCalendar
|
|
17
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-V5FYHQKQ.js";
|
|
18
18
|
import "../../chunk-6NAZ2IHL.js";
|
|
19
19
|
import "../../chunk-SHFUQVLX.js";
|
|
20
20
|
import "../../chunk-NCTOTTVW.js";
|
|
@@ -13,7 +13,7 @@ import type { AlertIconProps } from './alert.type';
|
|
|
13
13
|
* The size and the colour come from the root, which resolved them once; an explicit `size`
|
|
14
14
|
* or `color` still wins, and that is the escape hatch for the alert whose icon has to
|
|
15
15
|
* disagree with its variant — a neutral `default` surface with a green check, which is how
|
|
16
|
-
*
|
|
16
|
+
* The reference implementation colours its own.
|
|
17
17
|
*
|
|
18
18
|
* **This slot renders a box**, unlike `Button.Icon` and `Chip.Icon`, which hand their
|
|
19
19
|
* props straight to a third-party component. It has to: an alert's icon sits beside a
|
|
@@ -21,7 +21,7 @@ import type { AlertIconProps } from './alert.type';
|
|
|
21
21
|
* line's cap-height means offsetting it by half the leading. That is a style, and a style
|
|
22
22
|
* needs a node — which is also what lets this slot carry style props at all.
|
|
23
23
|
*
|
|
24
|
-
* **No default glyph**, where
|
|
24
|
+
* **No default glyph**, where the reference implementation ships three. XAUI publishes no icon set — `@xaui/icons`
|
|
25
25
|
* was deleted in P0 — so an icon here is always the caller's, and the alert's job is to
|
|
26
26
|
* size and colour it rather than to choose it.
|
|
27
27
|
*/
|
|
@@ -13,7 +13,7 @@ import type { AlertIconProps } from './alert.type';
|
|
|
13
13
|
* The size and the colour come from the root, which resolved them once; an explicit `size`
|
|
14
14
|
* or `color` still wins, and that is the escape hatch for the alert whose icon has to
|
|
15
15
|
* disagree with its variant — a neutral `default` surface with a green check, which is how
|
|
16
|
-
*
|
|
16
|
+
* The reference implementation colours its own.
|
|
17
17
|
*
|
|
18
18
|
* **This slot renders a box**, unlike `Button.Icon` and `Chip.Icon`, which hand their
|
|
19
19
|
* props straight to a third-party component. It has to: an alert's icon sits beside a
|
|
@@ -21,7 +21,7 @@ import type { AlertIconProps } from './alert.type';
|
|
|
21
21
|
* line's cap-height means offsetting it by half the leading. That is a style, and a style
|
|
22
22
|
* needs a node — which is also what lets this slot carry style props at all.
|
|
23
23
|
*
|
|
24
|
-
* **No default glyph**, where
|
|
24
|
+
* **No default glyph**, where the reference implementation ships three. XAUI publishes no icon set — `@xaui/icons`
|
|
25
25
|
* was deleted in P0 — so an icon here is always the caller's, and the alert's job is to
|
|
26
26
|
* size and colour it rather than to choose it.
|
|
27
27
|
*/
|
|
@@ -12,7 +12,7 @@ export type AlertSlot = 'root' | 'icon' | 'iconGlyph' | 'content' | 'title' | 'd
|
|
|
12
12
|
* status vocabulary of the `Chip` for the rest.
|
|
13
13
|
*
|
|
14
14
|
* - **`default`** — the `surface` fill and the surface shadow, exactly the `Card`'s
|
|
15
|
-
* `default`. This is
|
|
15
|
+
* `default`. This is the reference implementation's alert: a neutral card, with the status carried by the icon
|
|
16
16
|
* rather than by the background.
|
|
17
17
|
* - **`primary` / `secondary`** — the full accent and its soft slice, for the
|
|
18
18
|
* informational alert that is not an outcome.
|
|
@@ -12,7 +12,7 @@ export type AlertSlot = 'root' | 'icon' | 'iconGlyph' | 'content' | 'title' | 'd
|
|
|
12
12
|
* status vocabulary of the `Chip` for the rest.
|
|
13
13
|
*
|
|
14
14
|
* - **`default`** — the `surface` fill and the surface shadow, exactly the `Card`'s
|
|
15
|
-
* `default`. This is
|
|
15
|
+
* `default`. This is the reference implementation's alert: a neutral card, with the status carried by the icon
|
|
16
16
|
* rather than by the background.
|
|
17
17
|
* - **`primary` / `secondary`** — the full accent and its soft slice, for the
|
|
18
18
|
* informational alert that is not an outcome.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKIXHSX3Lcjs = require('../../chunk-KIXHSX3L.cjs');
|
|
6
6
|
require('../../chunk-WNEDQTH6.cjs');
|
|
7
7
|
require('../../chunk-HBYT7B47.cjs');
|
|
8
8
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
@@ -19,4 +19,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.Alert =
|
|
22
|
+
exports.Alert = _chunkKIXHSX3Lcjs.Alert; exports.alertRecipe = _chunkKIXHSX3Lcjs.alertRecipe; exports.useAlert = _chunkKIXHSX3Lcjs.useAlert;
|