@ahrowe/ui 0.42.0 → 0.44.0
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/CHANGELOG.md +946 -0
- package/README.md +14 -12
- package/dist/cjs-types/common/accordion/accordion.types.d.ts +17 -2
- package/dist/cjs-types/common/actionButtons/actionButtons.types.d.ts +7 -1
- package/dist/cjs-types/common/actionIcon/actionIcon.d.ts +1 -1
- package/dist/cjs-types/common/actionIcon/actionIcon.types.d.ts +7 -9
- package/dist/cjs-types/common/alert/alert.types.d.ts +6 -8
- package/dist/cjs-types/common/animatedLogo/animatedLogo.types.d.ts +3 -2
- package/dist/cjs-types/common/badge/badge.types.d.ts +10 -6
- package/dist/cjs-types/common/button/button.types.d.ts +14 -4
- package/dist/cjs-types/common/calendar/calendar.types.d.ts +25 -10
- package/dist/cjs-types/common/calendar/components/agendaList/agendaList.d.ts +1 -1
- package/dist/cjs-types/common/calendar/components/agendaList/agendaList.types.d.ts +3 -0
- package/dist/cjs-types/common/calendar/components/calendarHeader/calendarHeader.d.ts +1 -1
- package/dist/cjs-types/common/calendar/components/calendarHeader/calendarHeader.types.d.ts +2 -0
- package/dist/cjs-types/common/calendar/components/compactMonth/compactMonth.d.ts +1 -1
- package/dist/cjs-types/common/calendar/components/monthView/monthView.d.ts +1 -1
- package/dist/cjs-types/common/calendar/components/monthView/monthView.types.d.ts +3 -2
- package/dist/cjs-types/common/calendar/components/timeGrid/timeGrid.d.ts +1 -1
- package/dist/cjs-types/common/calendar/components/timeGrid/timeGrid.types.d.ts +9 -1
- package/dist/cjs-types/common/calendar/dates.d.ts +21 -5
- package/dist/cjs-types/common/calendar/format.d.ts +3 -2
- package/dist/cjs-types/common/calendar/layout.d.ts +5 -0
- package/dist/cjs-types/common/calendar/useNow.d.ts +4 -0
- package/dist/cjs-types/common/calendar/view.types.d.ts +9 -2
- package/dist/cjs-types/common/card/card.types.d.ts +16 -2
- package/dist/cjs-types/common/chip/chip.types.d.ts +10 -5
- package/dist/cjs-types/common/configProvider/configProvider.types.d.ts +4 -0
- package/dist/cjs-types/common/copyButton/copyButton.types.d.ts +5 -4
- package/dist/cjs-types/common/fab/components/fabBase/fabBase.d.ts +1 -1
- package/dist/cjs-types/common/fab/components/fabBase/fabBase.types.d.ts +2 -1
- package/dist/cjs-types/common/loader/index.d.ts +2 -0
- package/dist/cjs-types/common/loader/loader.d.ts +4 -0
- package/dist/cjs-types/common/loader/loader.types.d.ts +31 -0
- package/dist/cjs-types/common/loadingOverlay/index.d.ts +2 -0
- package/dist/cjs-types/common/loadingOverlay/loadingOverlay.d.ts +4 -0
- package/dist/cjs-types/common/loadingOverlay/loadingOverlay.types.d.ts +21 -0
- package/dist/cjs-types/common/progressBar/progressBar.d.ts +0 -1
- package/dist/cjs-types/common/progressBar/progressBar.types.d.ts +3 -1
- package/dist/cjs-types/common/splitButton/splitButton.types.d.ts +4 -1
- package/dist/cjs-types/common/styles/tone.d.ts +11 -0
- package/dist/cjs-types/common/themeProvider/color.types.d.ts +20 -0
- package/dist/cjs-types/common/themeProvider/index.d.ts +2 -0
- package/dist/cjs-types/common/themeProvider/theme.types.d.ts +7 -6
- package/dist/cjs-types/common/timeline/timeline.types.d.ts +3 -10
- package/dist/cjs-types/common/toast/index.d.ts +1 -1
- package/dist/cjs-types/common/toast/toast.types.d.ts +7 -3
- package/dist/cjs-types/common/types/actions.types.d.ts +1 -1
- package/dist/cjs-types/common/utils/dismissClick.d.ts +4 -0
- package/dist/cjs-types/common/utils/isDev.d.ts +1 -0
- package/dist/cjs-types/index.d.ts +4 -1
- package/dist/esm/common/accordion/accordion.mjs +1 -1
- package/dist/esm/common/accordion/accordion.mjs.map +1 -1
- package/dist/esm/common/accordion/accordion.module.mjs +1 -1
- package/dist/esm/common/accordion/accordion.module.mjs.map +1 -1
- package/dist/esm/common/accordion/accordion.types.mjs +1 -1
- package/dist/esm/common/accordion/accordion.types.mjs.map +1 -1
- package/dist/esm/common/actionButtons/actionButtons.mjs +1 -1
- package/dist/esm/common/actionButtons/actionButtons.mjs.map +1 -1
- package/dist/esm/common/actionIcon/actionIcon.mjs +1 -1
- package/dist/esm/common/actionIcon/actionIcon.mjs.map +1 -1
- package/dist/esm/common/actionIcon/actionIcon.module.mjs +1 -1
- package/dist/esm/common/actionIcon/actionIcon.module.mjs.map +1 -1
- package/dist/esm/common/alert/alert.mjs +1 -1
- package/dist/esm/common/alert/alert.mjs.map +1 -1
- package/dist/esm/common/alert/alert.module.mjs +1 -1
- package/dist/esm/common/alert/alert.module.mjs.map +1 -1
- package/dist/esm/common/animatedLogo/animatedLogo.mjs +1 -1
- package/dist/esm/common/animatedLogo/animatedLogo.mjs.map +1 -1
- package/dist/esm/common/avatar/avatar.mjs +1 -1
- package/dist/esm/common/avatar/avatar.mjs.map +1 -1
- package/dist/esm/common/badge/badge.mjs +1 -1
- package/dist/esm/common/badge/badge.mjs.map +1 -1
- package/dist/esm/common/badge/badge.module.mjs +1 -1
- package/dist/esm/common/badge/badge.module.mjs.map +1 -1
- package/dist/esm/common/badge/badge.types.mjs +1 -1
- package/dist/esm/common/badge/badge.types.mjs.map +1 -1
- package/dist/esm/common/bodyEnd/bodyEnd.mjs +1 -1
- package/dist/esm/common/bodyEnd/bodyEnd.mjs.map +1 -1
- package/dist/esm/common/breadcrumb/breadcrumb.mjs +1 -1
- package/dist/esm/common/breadcrumb/breadcrumb.mjs.map +1 -1
- package/dist/esm/common/breadcrumb/breadcrumb.module.mjs.map +1 -1
- package/dist/esm/common/button/button.mjs +1 -1
- package/dist/esm/common/button/button.mjs.map +1 -1
- package/dist/esm/common/button/button.module.mjs +1 -1
- package/dist/esm/common/button/button.module.mjs.map +1 -1
- package/dist/esm/common/button/button.types.mjs +1 -1
- package/dist/esm/common/button/button.types.mjs.map +1 -1
- package/dist/esm/common/calendar/calendar.mjs +1 -1
- package/dist/esm/common/calendar/calendar.mjs.map +1 -1
- package/dist/esm/common/calendar/calendar.module.mjs.map +1 -1
- package/dist/esm/common/calendar/calendar.types.mjs.map +1 -1
- package/dist/esm/common/calendar/components/agendaList/agendaList.mjs +1 -1
- package/dist/esm/common/calendar/components/agendaList/agendaList.mjs.map +1 -1
- package/dist/esm/common/calendar/components/agendaList/agendaList.module.mjs.map +1 -1
- package/dist/esm/common/calendar/components/calendarHeader/calendarHeader.mjs +1 -1
- package/dist/esm/common/calendar/components/calendarHeader/calendarHeader.mjs.map +1 -1
- package/dist/esm/common/calendar/components/calendarHeader/calendarHeader.module.mjs +1 -1
- package/dist/esm/common/calendar/components/calendarHeader/calendarHeader.module.mjs.map +1 -1
- package/dist/esm/common/calendar/components/compactMonth/compactMonth.mjs +1 -1
- package/dist/esm/common/calendar/components/compactMonth/compactMonth.mjs.map +1 -1
- package/dist/esm/common/calendar/components/compactMonth/compactMonth.module.mjs +1 -1
- package/dist/esm/common/calendar/components/compactMonth/compactMonth.module.mjs.map +1 -1
- package/dist/esm/common/calendar/components/monthView/monthView.mjs +1 -1
- package/dist/esm/common/calendar/components/monthView/monthView.mjs.map +1 -1
- package/dist/esm/common/calendar/components/monthView/monthView.module.mjs +1 -1
- package/dist/esm/common/calendar/components/monthView/monthView.module.mjs.map +1 -1
- package/dist/esm/common/calendar/components/timeGrid/timeGrid.mjs +1 -1
- package/dist/esm/common/calendar/components/timeGrid/timeGrid.mjs.map +1 -1
- package/dist/esm/common/calendar/components/timeGrid/timeGrid.module.mjs +1 -1
- package/dist/esm/common/calendar/components/timeGrid/timeGrid.module.mjs.map +1 -1
- package/dist/esm/common/calendar/dates.mjs +1 -1
- package/dist/esm/common/calendar/dates.mjs.map +1 -1
- package/dist/esm/common/calendar/format.mjs +1 -1
- package/dist/esm/common/calendar/format.mjs.map +1 -1
- package/dist/esm/common/calendar/layout.mjs +1 -1
- package/dist/esm/common/calendar/layout.mjs.map +1 -1
- package/dist/esm/common/calendar/useNow.mjs +2 -0
- package/dist/esm/common/calendar/useNow.mjs.map +1 -0
- package/dist/esm/common/card/Card.mjs +1 -1
- package/dist/esm/common/card/Card.mjs.map +1 -1
- package/dist/esm/common/card/CardActions.mjs +1 -1
- package/dist/esm/common/card/CardActions.mjs.map +1 -1
- package/dist/esm/common/card/CardHeader.mjs.map +1 -1
- package/dist/esm/common/card/card.module.mjs +1 -1
- package/dist/esm/common/card/card.module.mjs.map +1 -1
- package/dist/esm/common/card/card.types.mjs +1 -1
- package/dist/esm/common/card/card.types.mjs.map +1 -1
- package/dist/esm/common/carousel/carousel.mjs +1 -1
- package/dist/esm/common/carousel/carousel.mjs.map +1 -1
- package/dist/esm/common/carousel/carousel.module.mjs.map +1 -1
- package/dist/esm/common/checkbox/checkbox.mjs +1 -1
- package/dist/esm/common/checkbox/checkbox.mjs.map +1 -1
- package/dist/esm/common/checkbox/checkbox.module.mjs +1 -1
- package/dist/esm/common/checkbox/checkbox.module.mjs.map +1 -1
- package/dist/esm/common/chip/chip.mjs +1 -1
- package/dist/esm/common/chip/chip.mjs.map +1 -1
- package/dist/esm/common/chip/chip.module.mjs +1 -1
- package/dist/esm/common/chip/chip.module.mjs.map +1 -1
- package/dist/esm/common/chip/chip.types.mjs +1 -1
- package/dist/esm/common/chip/chip.types.mjs.map +1 -1
- package/dist/esm/common/colorPicker/colorPicker.mjs +1 -1
- package/dist/esm/common/colorPicker/colorPicker.mjs.map +1 -1
- package/dist/esm/common/colorPicker/colorPicker.module.mjs.map +1 -1
- package/dist/esm/common/confirmModal/confirmModal.mjs +1 -1
- package/dist/esm/common/confirmModal/confirmModal.mjs.map +1 -1
- package/dist/esm/common/copyButton/copyButton.mjs +1 -1
- package/dist/esm/common/copyButton/copyButton.mjs.map +1 -1
- package/dist/esm/common/copyButton/copyButton.module.mjs +1 -1
- package/dist/esm/common/copyButton/copyButton.module.mjs.map +1 -1
- package/dist/esm/common/dropdown/dropdown.mjs +1 -1
- package/dist/esm/common/dropdown/dropdown.mjs.map +1 -1
- package/dist/esm/common/dropdown/dropdown.module.mjs +1 -1
- package/dist/esm/common/dropdown/dropdown.module.mjs.map +1 -1
- package/dist/esm/common/errorBoundary/errorBoundary.mjs +2 -2
- package/dist/esm/common/errorBoundary/errorBoundary.mjs.map +1 -1
- package/dist/esm/common/fab/components/fabBase/fabBase.mjs +1 -1
- package/dist/esm/common/fab/components/fabBase/fabBase.mjs.map +1 -1
- package/dist/esm/common/fab/fab.mjs +1 -1
- package/dist/esm/common/fab/fab.mjs.map +1 -1
- package/dist/esm/common/flip/flip.mjs +1 -1
- package/dist/esm/common/flip/flip.mjs.map +1 -1
- package/dist/esm/common/kanbanBoard/KanbanColumn.mjs +1 -1
- package/dist/esm/common/kanbanBoard/KanbanColumn.mjs.map +1 -1
- package/dist/esm/common/kanbanBoard/kanbanBoard.module.mjs +1 -1
- package/dist/esm/common/kanbanBoard/kanbanBoard.module.mjs.map +1 -1
- package/dist/esm/common/klipyPicker/klipyPicker.mjs +1 -1
- package/dist/esm/common/klipyPicker/klipyPicker.mjs.map +1 -1
- package/dist/esm/common/loader/loader.mjs +2 -0
- package/dist/esm/common/loader/loader.mjs.map +1 -0
- package/dist/esm/common/loader/loader.module.mjs +2 -0
- package/dist/esm/common/loader/loader.module.mjs.map +1 -0
- package/dist/esm/common/loader/loader.types.mjs +2 -0
- package/dist/esm/common/loader/loader.types.mjs.map +1 -0
- package/dist/esm/common/loadingOverlay/loadingOverlay.mjs +2 -0
- package/dist/esm/common/loadingOverlay/loadingOverlay.mjs.map +1 -0
- package/dist/esm/common/loadingOverlay/loadingOverlay.module.mjs +2 -0
- package/dist/esm/common/loadingOverlay/loadingOverlay.module.mjs.map +1 -0
- package/dist/esm/common/modal/modal.mjs +1 -1
- package/dist/esm/common/modal/modal.mjs.map +1 -1
- package/dist/esm/common/modal/modal.module.mjs.map +1 -1
- package/dist/esm/common/numberInput/numberInput.mjs +1 -1
- package/dist/esm/common/numberInput/numberInput.mjs.map +1 -1
- package/dist/esm/common/numberInput/numberInput.module.mjs.map +1 -1
- package/dist/esm/common/popover/popover.mjs +1 -1
- package/dist/esm/common/popover/popover.mjs.map +1 -1
- package/dist/esm/common/progressBar/progressBar.mjs +1 -1
- package/dist/esm/common/progressBar/progressBar.mjs.map +1 -1
- package/dist/esm/common/progressBar/progressBar.module.mjs +1 -1
- package/dist/esm/common/progressBar/progressBar.module.mjs.map +1 -1
- package/dist/esm/common/roomDrawer/roomDrawer.mjs +1 -1
- package/dist/esm/common/roomDrawer/roomDrawer.mjs.map +1 -1
- package/dist/esm/common/roomDrawer/roomDrawer.module.mjs.map +1 -1
- package/dist/esm/common/sectionHeader/sectionHeader.mjs.map +1 -1
- package/dist/esm/common/splitButton/splitButton.mjs +1 -1
- package/dist/esm/common/splitButton/splitButton.mjs.map +1 -1
- package/dist/esm/common/styles/tone.mjs +4 -0
- package/dist/esm/common/styles/tone.mjs.map +1 -0
- package/dist/esm/common/styles/tone.module.mjs +2 -0
- package/dist/esm/common/styles/tone.module.mjs.map +1 -0
- package/dist/esm/common/themeProvider/color.types.mjs +2 -0
- package/dist/esm/common/themeProvider/color.types.mjs.map +1 -0
- package/dist/esm/common/themeProvider/defaultTheme.mjs +1 -1
- package/dist/esm/common/themeProvider/defaultTheme.mjs.map +1 -1
- package/dist/esm/common/tilt/tilt.mjs +1 -1
- package/dist/esm/common/tilt/tilt.mjs.map +1 -1
- package/dist/esm/common/timeInput/timeInput.mjs +1 -1
- package/dist/esm/common/timeInput/timeInput.mjs.map +1 -1
- package/dist/esm/common/timeline/timeline.mjs +1 -1
- package/dist/esm/common/timeline/timeline.mjs.map +1 -1
- package/dist/esm/common/timeline/timeline.module.mjs +1 -1
- package/dist/esm/common/timeline/timeline.module.mjs.map +1 -1
- package/dist/esm/common/timeline/timeline.types.mjs +1 -1
- package/dist/esm/common/timeline/timeline.types.mjs.map +1 -1
- package/dist/esm/common/timer/timer.mjs +1 -1
- package/dist/esm/common/timer/timer.mjs.map +1 -1
- package/dist/esm/common/timer/timer.module.mjs +1 -1
- package/dist/esm/common/timer/timer.module.mjs.map +1 -1
- package/dist/esm/common/toast/toast.mjs +1 -1
- package/dist/esm/common/toast/toast.mjs.map +1 -1
- package/dist/esm/common/toast/toast.module.mjs +1 -1
- package/dist/esm/common/toast/toast.module.mjs.map +1 -1
- package/dist/esm/common/toast/toastHost.mjs +1 -1
- package/dist/esm/common/toast/toastHost.mjs.map +1 -1
- package/dist/esm/common/utils/dismissClick.mjs +2 -0
- package/dist/esm/common/utils/dismissClick.mjs.map +1 -0
- package/dist/esm/common/utils/isDev.mjs +2 -0
- package/dist/esm/common/utils/isDev.mjs.map +1 -0
- package/dist/esm/common/virtualList/virtualList.mjs +1 -1
- package/dist/esm/common/virtualList/virtualList.mjs.map +1 -1
- package/dist/esm/common/virtualList/virtualList.module.mjs +1 -1
- package/dist/esm/common/virtualList/virtualList.module.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/services/formValidation/FormValidatorGroupWithForm.mjs +1 -1
- package/dist/esm/services/formValidation/FormValidatorGroupWithForm.mjs.map +1 -1
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/common/accordion/accordion.types.d.ts +17 -2
- package/dist/types/common/actionButtons/actionButtons.types.d.ts +7 -1
- package/dist/types/common/actionIcon/actionIcon.d.ts +1 -1
- package/dist/types/common/actionIcon/actionIcon.types.d.ts +7 -9
- package/dist/types/common/alert/alert.types.d.ts +6 -8
- package/dist/types/common/animatedLogo/animatedLogo.types.d.ts +3 -2
- package/dist/types/common/badge/badge.types.d.ts +10 -6
- package/dist/types/common/button/button.types.d.ts +14 -4
- package/dist/types/common/calendar/calendar.types.d.ts +25 -10
- package/dist/types/common/calendar/components/agendaList/agendaList.d.ts +1 -1
- package/dist/types/common/calendar/components/agendaList/agendaList.types.d.ts +3 -0
- package/dist/types/common/calendar/components/calendarHeader/calendarHeader.d.ts +1 -1
- package/dist/types/common/calendar/components/calendarHeader/calendarHeader.types.d.ts +2 -0
- package/dist/types/common/calendar/components/compactMonth/compactMonth.d.ts +1 -1
- package/dist/types/common/calendar/components/monthView/monthView.d.ts +1 -1
- package/dist/types/common/calendar/components/monthView/monthView.types.d.ts +3 -2
- package/dist/types/common/calendar/components/timeGrid/timeGrid.d.ts +1 -1
- package/dist/types/common/calendar/components/timeGrid/timeGrid.types.d.ts +9 -1
- package/dist/types/common/calendar/dates.d.ts +21 -5
- package/dist/types/common/calendar/format.d.ts +3 -2
- package/dist/types/common/calendar/layout.d.ts +5 -0
- package/dist/types/common/calendar/useNow.d.ts +4 -0
- package/dist/types/common/calendar/view.types.d.ts +9 -2
- package/dist/types/common/card/card.types.d.ts +16 -2
- package/dist/types/common/chip/chip.types.d.ts +10 -5
- package/dist/types/common/configProvider/configProvider.types.d.ts +4 -0
- package/dist/types/common/copyButton/copyButton.types.d.ts +5 -4
- package/dist/types/common/fab/components/fabBase/fabBase.d.ts +1 -1
- package/dist/types/common/fab/components/fabBase/fabBase.types.d.ts +2 -1
- package/dist/types/common/loader/index.d.ts +2 -0
- package/dist/types/common/loader/loader.d.ts +4 -0
- package/dist/types/common/loader/loader.types.d.ts +31 -0
- package/dist/types/common/loadingOverlay/index.d.ts +2 -0
- package/dist/types/common/loadingOverlay/loadingOverlay.d.ts +4 -0
- package/dist/types/common/loadingOverlay/loadingOverlay.types.d.ts +21 -0
- package/dist/types/common/progressBar/progressBar.d.ts +0 -1
- package/dist/types/common/progressBar/progressBar.types.d.ts +3 -1
- package/dist/types/common/splitButton/splitButton.types.d.ts +4 -1
- package/dist/types/common/styles/tone.d.ts +11 -0
- package/dist/types/common/themeProvider/color.types.d.ts +20 -0
- package/dist/types/common/themeProvider/index.d.ts +2 -0
- package/dist/types/common/themeProvider/theme.types.d.ts +7 -6
- package/dist/types/common/timeline/timeline.types.d.ts +3 -10
- package/dist/types/common/toast/index.d.ts +1 -1
- package/dist/types/common/toast/toast.types.d.ts +7 -3
- package/dist/types/common/types/actions.types.d.ts +1 -1
- package/dist/types/common/utils/dismissClick.d.ts +4 -0
- package/dist/types/common/utils/isDev.d.ts +1 -0
- package/dist/types/index.d.ts +4 -1
- package/docs/Accordion.md +74 -5
- package/docs/ActionButtons.md +6 -3
- package/docs/ActionIcon.md +39 -14
- package/docs/Alert.md +27 -17
- package/docs/AnimatedLogo.md +1 -1
- package/docs/Badge.md +24 -7
- package/docs/Button.md +98 -40
- package/docs/ButtonGroup.md +18 -18
- package/docs/CLAUDE.md +24 -13
- package/docs/Calendar.md +35 -17
- package/docs/Card.md +53 -14
- package/docs/Checkbox.md +1 -1
- package/docs/Chip.md +24 -9
- package/docs/ConfigProvider.md +4 -4
- package/docs/CopyButton.md +6 -5
- package/docs/Loader.md +95 -0
- package/docs/LoadingOverlay.md +85 -0
- package/docs/ProgressBar.md +7 -4
- package/docs/SectionHeader.md +1 -1
- package/docs/Skeleton.md +1 -1
- package/docs/SplitButton.md +6 -5
- package/docs/ThemeColor.md +103 -0
- package/docs/ThemeProvider.md +5 -5
- package/docs/Timeline.md +18 -9
- package/docs/Toast.md +25 -11
- package/package.json +3 -2
- package/dist/cjs-types/common/loading/index.d.ts +0 -1
- package/dist/cjs-types/common/loading/spinnerLoading/index.d.ts +0 -2
- package/dist/cjs-types/common/loading/spinnerLoading/spinnerLoading.d.ts +0 -6
- package/dist/esm/common/accordion/accordion.plain.module.mjs +0 -2
- package/dist/esm/common/accordion/accordion.plain.module.mjs.map +0 -1
- package/dist/esm/common/accordion/accordion.primary.module.mjs +0 -2
- package/dist/esm/common/accordion/accordion.primary.module.mjs.map +0 -1
- package/dist/esm/common/alert/alert.types.mjs +0 -2
- package/dist/esm/common/alert/alert.types.mjs.map +0 -1
- package/dist/esm/common/loading/spinnerLoading/index.mjs +0 -2
- package/dist/esm/common/loading/spinnerLoading/index.mjs.map +0 -1
- package/dist/esm/common/loading/spinnerLoading/spinnerLoading.mjs +0 -2
- package/dist/esm/common/loading/spinnerLoading/spinnerLoading.mjs.map +0 -1
- package/dist/esm/common/loading/spinnerLoading/spinnerLoading.module.mjs +0 -2
- package/dist/esm/common/loading/spinnerLoading/spinnerLoading.module.mjs.map +0 -1
- package/dist/types/common/loading/index.d.ts +0 -1
- package/dist/types/common/loading/spinnerLoading/index.d.ts +0 -2
- package/dist/types/common/loading/spinnerLoading/spinnerLoading.d.ts +0 -6
- package/docs/Loading.md +0 -68
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { ButtonStyleType } from '../button/button.types.js';
|
|
2
|
+
import { ButtonProps, ButtonStyleType } from '../button/button.types.js';
|
|
3
3
|
import { HtmlProps, SlotClassNames, SlotStyles } from '../types/slots.types.js';
|
|
4
4
|
import { IconAction } from '../types/actions.types.js';
|
|
5
|
+
import { ColorValue } from '../themeProvider/color.types.js';
|
|
6
|
+
/**
|
|
7
|
+
* The card's surface. `Outlined` and `Light` mean what they do on Button, Badge and Chip; `Elevated`
|
|
8
|
+
* is a card's own. There is no `Filled`: body text on a solid colour reads badly.
|
|
9
|
+
*/
|
|
5
10
|
export declare enum CardStyleType {
|
|
11
|
+
/** A raised surface with a shadow, always neutral. The default. */
|
|
6
12
|
Elevated = "elevated",
|
|
13
|
+
/** A border in the colour, no fill. */
|
|
7
14
|
Outlined = "outlined",
|
|
8
|
-
|
|
15
|
+
/** A flat tint of the colour, no border. */
|
|
16
|
+
Light = "light"
|
|
9
17
|
}
|
|
10
18
|
export type CardSlots = 'root' | 'content';
|
|
11
19
|
export interface CardProps extends Omit<HtmlProps, 'tabIndex'> {
|
|
12
20
|
className?: string | undefined;
|
|
13
21
|
children?: ReactNode;
|
|
14
22
|
styleType?: CardStyleType;
|
|
23
|
+
/**
|
|
24
|
+
* The border of an `Outlined` card and the tint of a `Light` one: a `ThemeColor` (default
|
|
25
|
+
* `Neutral`) or any CSS colour. An `Elevated` card stays neutral.
|
|
26
|
+
*/
|
|
27
|
+
color?: ColorValue;
|
|
15
28
|
onClick?: () => void;
|
|
16
29
|
tabIndex?: number | null;
|
|
17
30
|
hoverEffect?: boolean;
|
|
@@ -45,6 +58,7 @@ export interface CardAction {
|
|
|
45
58
|
id?: string;
|
|
46
59
|
label?: string;
|
|
47
60
|
styleType?: ButtonStyleType;
|
|
61
|
+
color?: ButtonProps['color'];
|
|
48
62
|
onClick?: () => void;
|
|
49
63
|
}
|
|
50
64
|
export interface CardActionsProps {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { HtmlProps, SlotClassNames, SlotStyles } from '../types/slots.types.js';
|
|
2
|
+
import { ColorValue } from '../themeProvider/color.types.js';
|
|
3
|
+
/** How much the chip stands out. Independent of its colour. */
|
|
2
4
|
export declare enum ChipStyleType {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/** Solid fill. */
|
|
6
|
+
Filled = "filled",
|
|
7
|
+
/** A light tint of the colour behind text in the colour. The default. */
|
|
8
|
+
Light = "light",
|
|
9
|
+
/** Border and text in the colour, no fill. */
|
|
10
|
+
Outlined = "outlined"
|
|
8
11
|
}
|
|
9
12
|
/** Text Chip renders of its own, for translating it. */
|
|
10
13
|
export interface ChipLabels {
|
|
@@ -17,6 +20,8 @@ export interface ChipProps extends HtmlProps {
|
|
|
17
20
|
text?: string;
|
|
18
21
|
thumbnail?: React.ReactNode;
|
|
19
22
|
styleType?: ChipStyleType;
|
|
23
|
+
/** A `ThemeColor` (default `Neutral`) or any CSS colour, such as `'var(--brand)'`. */
|
|
24
|
+
color?: ColorValue;
|
|
20
25
|
showRemoveIcon?: boolean;
|
|
21
26
|
/** Accessible name for the remove button. Default `'Remove'`. */
|
|
22
27
|
onClick?: () => void;
|
|
@@ -26,6 +26,8 @@ import { ChipProps } from '../chip/chip.types.js';
|
|
|
26
26
|
import { CardProps } from '../card/card.types.js';
|
|
27
27
|
import { SectionHeaderProps } from '../sectionHeader/sectionHeader.types.js';
|
|
28
28
|
import { SkeletonProps } from '../skeleton/skeleton.types.js';
|
|
29
|
+
import { LoaderProps } from '../loader/loader.types.js';
|
|
30
|
+
import { LoadingOverlayProps } from '../loadingOverlay/loadingOverlay.types.js';
|
|
29
31
|
import { AccordionProps } from '../accordion/accordion.types.js';
|
|
30
32
|
import { DividerProps } from '../divider/divider.types.js';
|
|
31
33
|
import { AlertProps } from '../alert/alert.types.js';
|
|
@@ -105,6 +107,8 @@ export interface ComponentDefaults {
|
|
|
105
107
|
Card?: Partial<CardProps>;
|
|
106
108
|
SectionHeader?: Partial<SectionHeaderProps>;
|
|
107
109
|
Skeleton?: Partial<SkeletonProps>;
|
|
110
|
+
Loader?: Partial<LoaderProps>;
|
|
111
|
+
LoadingOverlay?: Partial<LoadingOverlayProps>;
|
|
108
112
|
Accordion?: Partial<AccordionProps>;
|
|
109
113
|
Divider?: Partial<DividerProps>;
|
|
110
114
|
Alert?: Partial<AlertProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, Ref } from 'react';
|
|
2
2
|
import { IconContent } from '../types/icon.types.js';
|
|
3
|
-
import { SlotClassNames, SlotStyles
|
|
3
|
+
import { SlotClassNames, SlotStyles } from '../types/slots.types.js';
|
|
4
|
+
import { ActionIconProps } from '../actionIcon/actionIcon.types.js';
|
|
4
5
|
export type CopyButtonSlots = 'root' | 'icon';
|
|
5
6
|
export interface CopyButtonLabels {
|
|
6
7
|
/** Accessible name and tooltip before copying. Default: "Copy". */
|
|
@@ -10,7 +11,7 @@ export interface CopyButtonLabels {
|
|
|
10
11
|
/** Announced when the copy fails. Default: "Could not copy". */
|
|
11
12
|
failed?: string;
|
|
12
13
|
}
|
|
13
|
-
export interface CopyButtonProps extends Omit<
|
|
14
|
+
export interface CopyButtonProps extends Omit<ActionIconProps, 'icon' | 'onCopy' | 'onError' | 'onClick' | 'ref' | 'classNames' | 'styles'> {
|
|
14
15
|
/** Text written to the clipboard on click. */
|
|
15
16
|
value: string;
|
|
16
17
|
/** How long the copied state shows, in ms. Default: 2000. */
|
|
@@ -24,11 +25,11 @@ export interface CopyButtonProps extends Omit<HtmlProps<HTMLDivElement>, 'onCopy
|
|
|
24
25
|
/** Called when the clipboard refuses the write, e.g. outside a secure context. */
|
|
25
26
|
onError?: () => void;
|
|
26
27
|
/** Called on every click, before the copy. */
|
|
27
|
-
onClick?: (event: MouseEvent<
|
|
28
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
28
29
|
/** Text this component renders of its own. */
|
|
29
30
|
labels?: CopyButtonLabels;
|
|
30
31
|
/** Ref to the root element. */
|
|
31
|
-
ref?: Ref<
|
|
32
|
+
ref?: Ref<HTMLButtonElement>;
|
|
32
33
|
className?: string;
|
|
33
34
|
style?: CSSProperties;
|
|
34
35
|
classNames?: SlotClassNames<CopyButtonSlots>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FabBaseProps } from './fabBase.types.js';
|
|
2
|
-
declare function FabBase({ style, children, size, className, styleType, onClick, }: FabBaseProps): import("react").JSX.Element;
|
|
2
|
+
declare function FabBase({ style, children, size, className, styleType, color, onClick, }: FabBaseProps): import("react").JSX.Element;
|
|
3
3
|
export default FabBase;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { ButtonStyleType } from '../../../button/button.types.js';
|
|
2
|
+
import { ButtonProps, ButtonStyleType } from '../../../button/button.types.js';
|
|
3
3
|
export type FabBaseSize = 'default' | 'mini';
|
|
4
4
|
export interface FabBaseProps {
|
|
5
5
|
children?: ReactNode;
|
|
@@ -8,5 +8,6 @@ export interface FabBaseProps {
|
|
|
8
8
|
/** Forwarded from Fab's `button` slot. */
|
|
9
9
|
style?: CSSProperties;
|
|
10
10
|
styleType?: ButtonStyleType;
|
|
11
|
+
color?: ButtonProps['color'];
|
|
11
12
|
onClick?: () => void;
|
|
12
13
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { HtmlProps } from '../types/slots.types.js';
|
|
3
|
+
import { ColorValue } from '../themeProvider/color.types.js';
|
|
4
|
+
export declare enum LoaderType {
|
|
5
|
+
/** An arc that grows and shrinks on a faint track. The default, and the one that reads at any size. */
|
|
6
|
+
Spinner = "spinner",
|
|
7
|
+
/** A glowing head trailing a fading tail round a ring. For a hero spot: a page, a panel, an overlay. */
|
|
8
|
+
Comet = "comet",
|
|
9
|
+
/** Three dots in a wave. For a line of text or a chat reply being written. */
|
|
10
|
+
Dots = "dots",
|
|
11
|
+
/** Bars rising and falling like an equaliser. For media, uploads and data being processed. */
|
|
12
|
+
Bars = "bars",
|
|
13
|
+
/** Rings rippling out from a core. For waiting on something outside the app: a device, a connection, a search. */
|
|
14
|
+
Pulse = "pulse"
|
|
15
|
+
}
|
|
16
|
+
export interface LoaderLabels {
|
|
17
|
+
/** The loader's accessible name. */
|
|
18
|
+
loading?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface LoaderProps extends HtmlProps<HTMLSpanElement> {
|
|
21
|
+
/** The animation. Defaults to `LoaderType.Spinner`. */
|
|
22
|
+
type?: LoaderType;
|
|
23
|
+
/** Width and height: any CSS length, or a number of pixels. Defaults to `'2.5em'`, so it follows the font size around it. */
|
|
24
|
+
size?: number | string;
|
|
25
|
+
/** A `ThemeColor` or any CSS colour. Defaults to `ThemeColor.Primary`; `ThemeColor.Neutral` takes the colour of the text around it. */
|
|
26
|
+
color?: ColorValue;
|
|
27
|
+
/** Text the loader produces itself. See `LoaderLabels`. */
|
|
28
|
+
labels?: LoaderLabels;
|
|
29
|
+
className?: string;
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
3
|
+
export type LoadingOverlaySlots = 'content' | 'backdrop' | 'panel' | 'message';
|
|
4
|
+
export interface LoadingOverlayProps extends HtmlProps<HTMLDivElement> {
|
|
5
|
+
/** Covers the content, blocks the pointer and marks it `aria-busy`. Defaults to `false`. */
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
/** What the overlay covers. */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
/** Shown in place of the default `Loader`: a `Loader` of another type, an `AnimatedLogo`, anything. */
|
|
10
|
+
loader?: ReactNode;
|
|
11
|
+
/** Text under the loader, with a highlight sweeping across it. Also the default loader's accessible name. */
|
|
12
|
+
message?: ReactNode;
|
|
13
|
+
/** Milliseconds `isLoading` has to stay true before the overlay shows, so a fast load never flashes it. Once shown, it stays at least 400ms. Defaults to `200`. */
|
|
14
|
+
delay?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
/** Classes for the inner elements. See `LoadingOverlaySlots`. */
|
|
18
|
+
classNames?: SlotClassNames<LoadingOverlaySlots>;
|
|
19
|
+
/** Inline styles for the inner elements. See `LoadingOverlaySlots`. */
|
|
20
|
+
styles?: SlotStyles<LoadingOverlaySlots>;
|
|
21
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ProgressBarProps } from './progressBar.types.js';
|
|
3
|
-
export declare function getContrastColor(hexColor: string): string;
|
|
4
3
|
declare function ProgressBar({ className, total, progress, style, classNames, styles: slotStyles, ...rest }: ProgressBarProps): ReactElement;
|
|
5
4
|
export default ProgressBar;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
2
|
+
import { ColorValue } from '../themeProvider/color.types.js';
|
|
2
3
|
export interface Progress {
|
|
3
4
|
amount: number;
|
|
4
5
|
label?: string;
|
|
5
|
-
color
|
|
6
|
+
/** A `ThemeColor` or any CSS colour; its label is black or white, whichever reads. Default `--primary-color`. */
|
|
7
|
+
color?: ColorValue;
|
|
6
8
|
class?: string;
|
|
7
9
|
}
|
|
8
10
|
export type ProgressBarSlots = 'root' | 'fill' | 'label';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopoverAlign } from '../popover/popover.types.js';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { IconContent } from '../types/icon.types.js';
|
|
4
|
-
import { ButtonStyleType, ButtonSize } from '../button/button.types.js';
|
|
4
|
+
import { ButtonProps, ButtonStyleType, ButtonSize } from '../button/button.types.js';
|
|
5
5
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
6
6
|
export interface SplitButtonAction {
|
|
7
7
|
id: string;
|
|
@@ -20,7 +20,10 @@ export interface SplitButtonProps extends HtmlProps {
|
|
|
20
20
|
children?: ReactNode;
|
|
21
21
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => Promise<void> | void;
|
|
22
22
|
actions: SplitButtonAction[];
|
|
23
|
+
/** Default `Filled`. */
|
|
23
24
|
styleType?: ButtonStyleType;
|
|
25
|
+
/** A `ThemeColor` or any CSS colour, shared by both buttons (default `Primary`). */
|
|
26
|
+
color?: ButtonProps['color'];
|
|
24
27
|
size?: ButtonSize;
|
|
25
28
|
disabled?: boolean;
|
|
26
29
|
isLoading?: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ColorValue } from '../themeProvider/color.types.js';
|
|
3
|
+
/** The class, and for a colour of the caller's own the inline style, that set the --tone properties. */
|
|
4
|
+
export declare function toneProps(color: ColorValue): {
|
|
5
|
+
className: string;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
/** A colour as a CSS value, for a component that paints it itself rather than through --tone. */
|
|
9
|
+
export declare function cssColor(color: ColorValue): string;
|
|
10
|
+
/** Warns in development about a value that can never be a colour. A var() passes: it only resolves on screen. */
|
|
11
|
+
export declare function useToneCheck(component: string, colors: (ColorValue | undefined)[]): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** The theme's named colours, shared by every component that takes a `color`. */
|
|
2
|
+
export declare enum ThemeColor {
|
|
3
|
+
/** `--primary-color`. */
|
|
4
|
+
Primary = "primary",
|
|
5
|
+
/** The surrounding text colour, with `--border-color` for an outline. */
|
|
6
|
+
Neutral = "neutral",
|
|
7
|
+
/** `--success-color`. */
|
|
8
|
+
Success = "success",
|
|
9
|
+
/** `--info-color`. */
|
|
10
|
+
Info = "info",
|
|
11
|
+
/** `--warn-color`. */
|
|
12
|
+
Warn = "warn",
|
|
13
|
+
/** `--error-color`. */
|
|
14
|
+
Error = "error"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A `ThemeColor`, or any CSS colour such as `'var(--brand)'` or `'#7c3aed'`.
|
|
18
|
+
* `string & {}` rather than `string`, which would swallow the enum into one plain string type.
|
|
19
|
+
*/
|
|
20
|
+
export type ColorValue = ThemeColor | (string & {});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default } from './themeProvider.js';
|
|
2
2
|
export { defaultTheme } from './defaultTheme.js';
|
|
3
3
|
export { lightTheme } from './lightTheme.js';
|
|
4
|
+
export { ThemeColor } from './color.types.js';
|
|
5
|
+
export type { ColorValue } from './color.types.js';
|
|
4
6
|
export type { Theme, ThemeProviderProps, ThemeVariables } from './theme.types.js';
|
|
@@ -106,15 +106,10 @@ export interface ThemeVariables {
|
|
|
106
106
|
* the device's own safe-area inset where that is larger. Modal sets --modal-padding on its own
|
|
107
107
|
* panel, so this does not reach a Modal sheet. */
|
|
108
108
|
'--sheet-safe-padding'?: string;
|
|
109
|
-
/** Default-style button background. Falls back to transparent when unset. */
|
|
110
|
-
'--button-default-background'?: string;
|
|
111
|
-
/** Default-style button text colour. Falls back to --text-color when unset. */
|
|
112
|
-
'--button-default-color'?: string;
|
|
113
|
-
/** Default-style button border (full `border` shorthand, e.g. `1px solid var(--border-color)`). Falls back to a transparent 1px border when unset. */
|
|
114
|
-
'--button-default-border'?: string;
|
|
115
109
|
'--card-shadow'?: string;
|
|
116
110
|
'--background-card-elevated'?: string;
|
|
117
111
|
'--background-card-outlined'?: string;
|
|
112
|
+
/** Surface of a Neutral Light card, named after the old Filled style. Unset, it is the text-colour tint every Light uses; defaultTheme sets --background-accent. */
|
|
118
113
|
'--background-card-filled'?: string;
|
|
119
114
|
/** Slider track (unfilled) colour. Falls back to --background-accent-light. */
|
|
120
115
|
'--slider-track-color'?: string;
|
|
@@ -214,6 +209,8 @@ export interface ThemeVariables {
|
|
|
214
209
|
'--calendar-now-color'?: string;
|
|
215
210
|
/** Corner radius of an event. Falls back to 6px. */
|
|
216
211
|
'--calendar-event-radius'?: string;
|
|
212
|
+
/** The hours outside `workingHours` in the week and day views. Falls back to --background-accent. */
|
|
213
|
+
'--calendar-off-hours-color'?: string;
|
|
217
214
|
/** Page button size. Falls back to 36px. */
|
|
218
215
|
'--pagination-size'?: string;
|
|
219
216
|
/** Gap between page buttons. Falls back to 4px. */
|
|
@@ -235,6 +232,10 @@ export interface ThemeVariables {
|
|
|
235
232
|
/** Width a column collapses to once it has no cards (see `collapseEmptyColumns`). Falls back to 140px. */
|
|
236
233
|
'--kanban-empty-column-width'?: string;
|
|
237
234
|
'--option-picker-padding'?: string;
|
|
235
|
+
/** Veil over the content while it loads. Falls back to --background at 50%. */
|
|
236
|
+
'--loading-overlay-background'?: string;
|
|
237
|
+
/** How far the content under the veil is blurred. Falls back to 4px; 0px turns the blur off. */
|
|
238
|
+
'--loading-overlay-blur'?: string;
|
|
238
239
|
/** Track (unfilled) background colour. Falls back to --background-accent. */
|
|
239
240
|
'--progress-bar-track-color'?: string;
|
|
240
241
|
/** Canvas behind the plan. Falls back to --background. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconContent } from '../types/icon.types.js';
|
|
3
3
|
import { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types.js';
|
|
4
|
+
import { ColorValue } from '../themeProvider/color.types.js';
|
|
4
5
|
/** Layout of entries relative to the connecting line. */
|
|
5
6
|
export declare enum TimelineAlignment {
|
|
6
7
|
/** Line and markers on the left, content to the right (the default). */
|
|
@@ -10,14 +11,6 @@ export declare enum TimelineAlignment {
|
|
|
10
11
|
/** Line down the center, entries alternating left/right. */
|
|
11
12
|
Alternate = "alternate"
|
|
12
13
|
}
|
|
13
|
-
/** Semantic colour for an entry's marker, matching the theme's status colours. */
|
|
14
|
-
export declare enum TimelineItemStatus {
|
|
15
|
-
Default = "default",
|
|
16
|
-
Primary = "primary",
|
|
17
|
-
Success = "success",
|
|
18
|
-
Warn = "warn",
|
|
19
|
-
Error = "error"
|
|
20
|
-
}
|
|
21
14
|
export type TimelineSlots = 'root' | 'item' | 'marker' | 'dot' | 'connector' | 'content' | 'title' | 'description' | 'timestamp';
|
|
22
15
|
export interface TimelineItem {
|
|
23
16
|
/** Stable identity for the entry, used as its React key. Falls back to its array index when omitted; pass one whenever `items` can be reordered or have entries prepended (e.g. a live "newest first" audit log), so React doesn't misattribute row state across the shift. */
|
|
@@ -30,8 +23,8 @@ export interface TimelineItem {
|
|
|
30
23
|
timestamp?: React.ReactNode;
|
|
31
24
|
/** Icon shown in the marker instead of a plain dot — a FontAwesome icon or any node. */
|
|
32
25
|
icon?: IconContent;
|
|
33
|
-
/**
|
|
34
|
-
|
|
26
|
+
/** The marker's colour: a `ThemeColor` or any CSS colour. Unset, it is `--timeline-dot-color`. */
|
|
27
|
+
color?: ColorValue;
|
|
35
28
|
/** Extra content rendered under the description, e.g. a diff, an attachment, an actor avatar. */
|
|
36
29
|
content?: React.ReactNode;
|
|
37
30
|
/** Makes the whole entry clickable (e.g. to open the full record), rendering it as an accessible button. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { showToast } from './toastService.js';
|
|
2
|
-
export type { ToastContextConfig, ToastLabels, ToastOptions,
|
|
2
|
+
export type { ToastContextConfig, ToastLabels, ToastOptions, ToastPosition, ToastSlots } from './toast.types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SlotClassNames, SlotStyles } from '../types/slots.types.js';
|
|
3
|
+
import { ColorValue } from '../themeProvider/color.types.js';
|
|
3
4
|
export type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
4
|
-
export type ToastType = 'default' | 'info' | 'success' | 'error' | 'warn';
|
|
5
5
|
export type ToastSlots = 'root' | 'icon' | 'content' | 'closeButton' | 'progressBar';
|
|
6
6
|
/** Text Toast renders of its own, for translating it. */
|
|
7
7
|
export interface ToastLabels {
|
|
@@ -25,7 +25,11 @@ export interface ToastContextConfig {
|
|
|
25
25
|
labels?: ToastLabels;
|
|
26
26
|
}
|
|
27
27
|
export interface ToastOptions extends Omit<ToastContextConfig, 'allowStacking'> {
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* A `ThemeColor` (default `Primary`) or any CSS colour. A ThemeColor also picks the icon; any
|
|
30
|
+
* other colour shows a bell.
|
|
31
|
+
*/
|
|
32
|
+
color?: ColorValue;
|
|
29
33
|
classNames?: SlotClassNames<ToastSlots>;
|
|
30
34
|
styles?: SlotStyles<ToastSlots>;
|
|
31
35
|
}
|
|
@@ -44,7 +48,7 @@ export interface ResolvedToastOptions {
|
|
|
44
48
|
showRemainingTime: boolean;
|
|
45
49
|
showCloseButton: boolean;
|
|
46
50
|
pauseOnHover: boolean;
|
|
47
|
-
|
|
51
|
+
color: ColorValue;
|
|
48
52
|
classNames?: SlotClassNames<ToastSlots>;
|
|
49
53
|
styles?: SlotStyles<ToastSlots>;
|
|
50
54
|
}
|
|
@@ -2,6 +2,6 @@ import { IconContent } from './icon.types.js';
|
|
|
2
2
|
/** A single icon-triggered action, rendered as an `ActionIcon` */
|
|
3
3
|
export interface IconAction {
|
|
4
4
|
title?: string;
|
|
5
|
-
onClick?: (e: React.MouseEvent<
|
|
5
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
6
|
icon: IconContent;
|
|
7
7
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Records that the release just dispatched closed an overlay, which marks the click it raises. */
|
|
2
|
+
export declare function markDismiss(): void;
|
|
3
|
+
/** Whether the click `event` ends a press that closed an overlay. */
|
|
4
|
+
export declare function isDismissClick(event: Event): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isDev(): boolean;
|
|
@@ -76,7 +76,10 @@ export { default as KanbanBoard } from './common/kanbanBoard/index.js';
|
|
|
76
76
|
export * from './common/kanbanBoard/index.js';
|
|
77
77
|
export { default as KlipyPicker } from './common/klipyPicker/index.js';
|
|
78
78
|
export * from './common/klipyPicker/index.js';
|
|
79
|
-
export
|
|
79
|
+
export { default as Loader } from './common/loader/index.js';
|
|
80
|
+
export * from './common/loader/index.js';
|
|
81
|
+
export { default as LoadingOverlay } from './common/loadingOverlay/index.js';
|
|
82
|
+
export * from './common/loadingOverlay/index.js';
|
|
80
83
|
export { default as Menu } from './common/menu/index.js';
|
|
81
84
|
export * from './common/menu/index.js';
|
|
82
85
|
export { default as Modal } from './common/modal/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{AccordionStyleType as e}from"./accordion.types.mjs";import t from"./accordion.module.mjs";import n
|
|
1
|
+
"use client";import{AccordionStyleType as e}from"./accordion.types.mjs";import t from"./accordion.module.mjs";import{useComponentDefaults as n}from"../configProvider/useComponentDefaults.mjs";import{isSelfActivation as r}from"../utils/activationKey.mjs";import{ThemeColor as i}from"../themeProvider/color.types.mjs";import{toneProps as a,useToneCheck as o}from"../styles/tone.mjs";import{useEffect as s,useId as c,useRef as l,useState as u}from"react";import d from"classnames";import{FontAwesomeIcon as f}from"@fortawesome/react-fontawesome";import{faChevronDown as p}from"@fortawesome/free-solid-svg-icons";import{jsx as m,jsxs as h}from"react/jsx-runtime";var g={[e.Light]:t.accordionStyleLight,[e.Outlined]:t.accordionStyleOutlined,[e.Plain]:t.accordionStylePlain},_=new Set([`ArrowDown`,`ArrowUp`,`Home`,`End`]);function v(e){return[...e.parentElement?.children??[]].flatMap(e=>{if(!e.classList.contains(t.accordion))return[];let n=e.querySelector(`:scope > [role="button"][aria-expanded]`);return n?[n]:[]})}function y(e,t){let n=e.parentElement?v(e.parentElement):[],r=n.indexOf(e);if(r<0)return;let i=n.length-1;n[t===`Home`?0:t===`End`?i:t===`ArrowDown`?(r+1)%n.length:(r-1+n.length)%n.length].focus()}function b(v){let{id:b=``,title:x=``,children:S=null,expanded:C=null,onHeaderClicked:w=()=>{},styleType:T=e.Outlined,color:E=i.Neutral,joined:D=!1,startOpen:O=!1,hideHeader:k=!1,className:A,style:j,classNames:M,styles:N,...P}=n(`Accordion`,v),F=c(),I=`${F}-header`,L=`${F}-body`,R=l(null),z=l(null),[B,V]=u(C??O),[H,U]=u(null);s(()=>{C!==null&&V(C)},[C]),s(()=>{let e=R.current;e&&(e.inert=!B)},[B]),s(()=>{let e=z.current;if(!e)return;let t=new ResizeObserver(()=>U(e.offsetHeight));return t.observe(e),()=>t.unobserve(e)},[]);function W(){let e=!B;w(b,e),C===null&&V(e)}let G={height:B?H??`auto`:`0px`},K=a(E);return o(`Accordion`,[E]),h(`div`,{...P,id:b||void 0,className:d(t.accordion,K.className,g[T],D&&t.accordionJoined,A,M?.root),style:{...K.style,...j,...N?.root},children:[!k&&h(`div`,{className:d(t.accordionHeader,M?.header),style:N?.header,onClick:W,role:`button`,tabIndex:0,id:I,"aria-expanded":B,"aria-controls":L,onKeyDown:e=>{if(_.has(e.key)&&e.target===e.currentTarget){e.preventDefault(),y(e.currentTarget,e.key);return}r(e)&&(e.preventDefault(),W())},children:[m(`div`,{className:d(t.accordionTitle,M?.title),style:N?.title,children:x}),m(f,{icon:p,className:d(t.accordionIcon,B&&t.accordionIconActive,M?.icon),style:N?.icon})]}),m(`div`,{ref:R,id:L,role:`region`,"aria-labelledby":k?void 0:I,className:d(t.accordionBody,M?.body),style:{...G,...N?.body},children:m(`div`,{className:d(t.accordionBodyInner,M?.bodyInner),style:N?.bodyInner,ref:z,children:S})})]})}export{b as default};
|
|
2
2
|
//# sourceMappingURL=accordion.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.mjs","names":[],"sources":["../../../../package/common/accordion/accordion.tsx"],"sourcesContent":["import React, { useState, useEffect, useId, useRef, type ReactElement } from 'react';\nimport cx from 'classnames';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faChevronDown as arrowIcon } from '@fortawesome/free-solid-svg-icons';\n\nimport { AccordionStyleType, type AccordionProps } from './accordion.types';\n\nimport
|
|
1
|
+
{"version":3,"file":"accordion.mjs","names":[],"sources":["../../../../package/common/accordion/accordion.tsx"],"sourcesContent":["import React, { useState, useEffect, useId, useRef, type ReactElement } from 'react';\nimport cx from 'classnames';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faChevronDown as arrowIcon } from '@fortawesome/free-solid-svg-icons';\n\nimport { AccordionStyleType, type AccordionProps } from './accordion.types';\n\nimport s from './accordion.module.pcss';\nimport { useComponentDefaults } from '../configProvider';\nimport { isSelfActivation } from '../utils/activationKey';\nimport { ThemeColor } from '../themeProvider/color.types';\nimport { toneProps, useToneCheck } from '../styles/tone';\n\nconst CLASS_BY_STYLE: Record<AccordionStyleType, string> = {\n [AccordionStyleType.Light]: s.accordionStyleLight,\n [AccordionStyleType.Outlined]: s.accordionStyleOutlined,\n [AccordionStyleType.Plain]: s.accordionStylePlain,\n};\n\nconst NAVIGATION_KEYS = new Set(['ArrowDown', 'ArrowUp', 'Home', 'End']);\n\n/** Same parent only, so a list nested in a body is a set of its own. */\nfunction siblingHeaders(root: HTMLElement): HTMLElement[] {\n return [...(root.parentElement?.children ?? [])].flatMap((sibling) => {\n if (!sibling.classList.contains(s.accordion)) return [];\n const header = sibling.querySelector<HTMLElement>(':scope > [role=\"button\"][aria-expanded]');\n return header ? [header] : [];\n });\n}\n\nfunction focusSiblingHeader(header: HTMLElement, key: string) {\n const headers = header.parentElement ? siblingHeaders(header.parentElement) : [];\n const index = headers.indexOf(header);\n if (index < 0) return;\n const last = headers.length - 1;\n const next =\n key === 'Home'\n ? 0\n : key === 'End'\n ? last\n : key === 'ArrowDown'\n ? (index + 1) % headers.length\n : (index - 1 + headers.length) % headers.length;\n headers[next].focus();\n}\n\nfunction Accordion(props: AccordionProps): ReactElement {\n const {\n id = '',\n title = '',\n children = null,\n expanded = null,\n onHeaderClicked = () => {},\n styleType = AccordionStyleType.Outlined,\n color = ThemeColor.Neutral,\n joined = false,\n startOpen = false,\n hideHeader = false,\n className,\n style,\n classNames,\n styles: slotStyles,\n ...rest\n } = useComponentDefaults('Accordion', props);\n // The header and the body name each other through aria-controls/aria-labelledby, so both need\n // an id that is stable across renders and unique even with several accordions on the page.\n const generatedId = useId();\n const headerId = `${generatedId}-header`;\n const bodyId = `${generatedId}-body`;\n const bodyRef = useRef<HTMLDivElement>(null);\n const bodyInnerRef = useRef<HTMLDivElement>(null);\n\n const [isExpanded, setIsExpanded] = useState(expanded ?? startOpen);\n const [bodyHeight, setBodyHeight] = useState<number | null>(null);\n\n useEffect(() => {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n if (expanded !== null) setIsExpanded(expanded);\n }, [expanded]);\n\n useEffect(() => {\n const el = bodyRef.current;\n if (el) el.inert = !isExpanded;\n }, [isExpanded]);\n\n useEffect(() => {\n const el = bodyInnerRef.current;\n if (!el) return;\n const observer = new ResizeObserver(() => setBodyHeight(el.offsetHeight));\n observer.observe(el);\n return () => observer.unobserve(el);\n }, []);\n\n function toggleExpanded() {\n const next = !isExpanded;\n onHeaderClicked(id, next);\n if (expanded === null) setIsExpanded(next);\n }\n\n const bodyStyle = { height: isExpanded ? (bodyHeight ?? 'auto') : '0px' };\n const tone = toneProps(color);\n useToneCheck('Accordion', [color]);\n\n return (\n <div\n {...rest}\n id={id || undefined}\n className={cx(\n s.accordion,\n tone.className,\n CLASS_BY_STYLE[styleType],\n joined && s.accordionJoined,\n className,\n classNames?.root,\n )}\n style={{ ...tone.style, ...style, ...slotStyles?.root }}\n >\n {!hideHeader && (\n <div\n className={cx(s.accordionHeader, classNames?.header)}\n style={slotStyles?.header}\n onClick={toggleExpanded}\n role='button'\n tabIndex={0}\n id={headerId}\n aria-expanded={isExpanded}\n aria-controls={bodyId}\n onKeyDown={(event) => {\n if (NAVIGATION_KEYS.has(event.key) && event.target === event.currentTarget) {\n event.preventDefault();\n focusSiblingHeader(event.currentTarget, event.key);\n return;\n }\n if (!isSelfActivation(event)) return;\n // Space scrolls the page otherwise, which is what a real <button> suppresses too.\n event.preventDefault();\n toggleExpanded();\n }}\n >\n <div className={cx(s.accordionTitle, classNames?.title)} style={slotStyles?.title}>\n {title}\n </div>\n <FontAwesomeIcon\n icon={arrowIcon}\n className={cx(s.accordionIcon, isExpanded && s.accordionIconActive, classNames?.icon)}\n style={slotStyles?.icon as React.CSSProperties & Record<`--fa-font-${string}`, string>}\n />\n </div>\n )}\n <div\n ref={bodyRef}\n id={bodyId}\n role='region'\n aria-labelledby={hideHeader ? undefined : headerId}\n className={cx(s.accordionBody, classNames?.body)}\n style={{ ...bodyStyle, ...slotStyles?.body }}\n >\n <div\n className={cx(s.accordionBodyInner, classNames?.bodyInner)}\n style={slotStyles?.bodyInner}\n ref={bodyInnerRef}\n >\n {children}\n </div>\n </div>\n </div>\n );\n}\n\nexport default Accordion;\n"],"mappings":"mpBAaA,IAAM,EAAqD,EACxD,EAAmB,OAAQ,EAAE,qBAC7B,EAAmB,UAAW,EAAE,wBAChC,EAAmB,OAAQ,EAAE,mBAChC,EAEM,EAAkB,IAAI,IAAI,CAAC,YAAa,UAAW,OAAQ,KAAK,CAAC,EAGvE,SAAS,EAAe,EAAkC,CACxD,MAAO,CAAC,GAAI,EAAK,eAAe,UAAY,CAAC,CAAE,CAAC,CAAC,QAAS,GAAY,CACpE,GAAI,CAAC,EAAQ,UAAU,SAAS,EAAE,SAAS,EAAG,MAAO,CAAC,EACtD,IAAM,EAAS,EAAQ,cAA2B,yCAAyC,EAC3F,OAAO,EAAS,CAAC,CAAM,EAAI,CAAC,CAC9B,CAAC,CACH,CAEA,SAAS,EAAmB,EAAqB,EAAa,CAC5D,IAAM,EAAU,EAAO,cAAgB,EAAe,EAAO,aAAa,EAAI,CAAC,EACzE,EAAQ,EAAQ,QAAQ,CAAM,EACpC,GAAI,EAAQ,EAAG,OACf,IAAM,EAAO,EAAQ,OAAS,EAS9B,EAPE,IAAQ,OACJ,EACA,IAAQ,MACN,EACA,IAAQ,aACL,EAAQ,GAAK,EAAQ,QACrB,EAAQ,EAAI,EAAQ,QAAU,EAAQ,OACpC,CAAC,MAAM,CACtB,CAEA,SAAS,EAAU,EAAqC,CACtD,GAAM,CACJ,KAAK,GACL,QAAQ,GACR,WAAW,KACX,WAAW,KACX,sBAAwB,CAAC,EACzB,YAAY,EAAmB,SAC/B,QAAQ,EAAW,QACnB,SAAS,GACT,YAAY,GACZ,aAAa,GACb,YACA,QACA,aACA,OAAQ,EACR,GAAG,GACD,EAAqB,YAAa,CAAK,EAGrC,EAAc,EAAM,EACpB,EAAW,GAAG,EAAY,SAC1B,EAAS,GAAG,EAAY,OACxB,EAAU,EAAuB,IAAI,EACrC,EAAe,EAAuB,IAAI,EAE1C,CAAC,EAAY,GAAiB,EAAS,GAAY,CAAS,EAC5D,CAAC,EAAY,GAAiB,EAAwB,IAAI,EAEhE,MAAgB,CAEV,IAAa,MAAM,EAAc,CAAQ,CAC/C,EAAG,CAAC,CAAQ,CAAC,EAEb,MAAgB,CACd,IAAM,EAAK,EAAQ,QACf,IAAI,EAAG,MAAQ,CAAC,EACtB,EAAG,CAAC,CAAU,CAAC,EAEf,MAAgB,CACd,IAAM,EAAK,EAAa,QACxB,GAAI,CAAC,EAAI,OACT,IAAM,EAAW,IAAI,mBAAqB,EAAc,EAAG,YAAY,CAAC,EAExE,OADA,EAAS,QAAQ,CAAE,MACN,EAAS,UAAU,CAAE,CACpC,EAAG,CAAC,CAAC,EAEL,SAAS,GAAiB,CACxB,IAAM,EAAO,CAAC,EACd,EAAgB,EAAI,CAAI,EACpB,IAAa,MAAM,EAAc,CAAI,CAC3C,CAEA,IAAM,EAAY,CAAE,OAAQ,EAAc,GAAc,OAAU,KAAM,EAClE,EAAO,EAAU,CAAK,EAG5B,OAFA,EAAa,YAAa,CAAC,CAAK,CAAC,EAG/B,EAAC,MAAD,CACE,GAAI,EACJ,GAAI,GAAM,IAAA,GACV,UAAW,EACT,EAAE,UACF,EAAK,UACL,EAAe,GACf,GAAU,EAAE,gBACZ,EACA,GAAY,IACd,EACA,MAAO,CAAE,GAAG,EAAK,MAAO,GAAG,EAAO,GAAG,GAAY,IAAK,EAXxD,SAAA,CAaG,CAAC,GACA,EAAC,MAAD,CACE,UAAW,EAAG,EAAE,gBAAiB,GAAY,MAAM,EACnD,MAAO,GAAY,OACnB,QAAS,EACT,KAAK,SACL,SAAU,EACV,GAAI,EACJ,gBAAe,EACf,gBAAe,EACf,UAAY,GAAU,CACpB,GAAI,EAAgB,IAAI,EAAM,GAAG,GAAK,EAAM,SAAW,EAAM,cAAe,CAC1E,EAAM,eAAe,EACrB,EAAmB,EAAM,cAAe,EAAM,GAAG,EACjD,MACF,CACK,EAAiB,CAAK,IAE3B,EAAM,eAAe,EACrB,EAAe,EACjB,EAnBF,SAAA,CAqBE,EAAC,MAAD,CAAK,UAAW,EAAG,EAAE,eAAgB,GAAY,KAAK,EAAG,MAAO,GAAY,MACzE,SAAA,CACE,CAAA,EACL,EAAC,EAAD,CACE,KAAM,EACN,UAAW,EAAG,EAAE,cAAe,GAAc,EAAE,oBAAqB,GAAY,IAAI,EACpF,MAAO,GAAY,IACpB,CAAA,CACE,CAEP,CAAA,EAAA,EAAC,MAAD,CACE,IAAK,EACL,GAAI,EACJ,KAAK,SACL,kBAAiB,EAAa,IAAA,GAAY,EAC1C,UAAW,EAAG,EAAE,cAAe,GAAY,IAAI,EAC/C,MAAO,CAAE,GAAG,EAAW,GAAG,GAAY,IAAK,EAE3C,SAAA,EAAC,MAAD,CACE,UAAW,EAAG,EAAE,mBAAoB,GAAY,SAAS,EACzD,MAAO,GAAY,UACnB,IAAK,EAEJ,UACE,CAAA,CACF,CAAA,CACF,GAET"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";var e=`accordion_YZt8B`,t=`accordion-
|
|
1
|
+
"use client";var e=`accordion_YZt8B`,t=`accordion-header_OEjXM`,n=`accordion-title_CGYKY`,r=`accordion-icon_kLqp-`,i=`accordion-icon-active_lJwG8`,a=`accordion-body_2o-mY`,o=`accordion-body-inner_JI9nJ`,s=`accordion-style-light_YY5Zn`,c=`accordion-style-outlined_XEtCe`,l=`accordion-style-plain_N2Diz`,u=`accordion-joined_hlHQx`,d={accordion:e,"accordion-header":`accordion-header_OEjXM`,accordionHeader:t,"accordion-title":`accordion-title_CGYKY`,accordionTitle:n,"accordion-icon":`accordion-icon_kLqp-`,accordionIcon:r,"accordion-icon-active":`accordion-icon-active_lJwG8`,accordionIconActive:i,"accordion-body":`accordion-body_2o-mY`,accordionBody:a,"accordion-body-inner":`accordion-body-inner_JI9nJ`,accordionBodyInner:o,"accordion-style-light":`accordion-style-light_YY5Zn`,accordionStyleLight:s,"accordion-style-outlined":`accordion-style-outlined_XEtCe`,accordionStyleOutlined:c,"accordion-style-plain":`accordion-style-plain_N2Diz`,accordionStylePlain:l,"accordion-joined":`accordion-joined_hlHQx`,accordionJoined:u};export{e as accordion,a as accordionBody,o as accordionBodyInner,t as accordionHeader,r as accordionIcon,i as accordionIconActive,u as accordionJoined,s as accordionStyleLight,c as accordionStyleOutlined,l as accordionStylePlain,n as accordionTitle,d as default};
|
|
2
2
|
//# sourceMappingURL=accordion.module.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.module.mjs","names":[],"sources":["../../../../package/common/accordion/accordion.module.pcss"],"sourcesContent":[".accordion {\n
|
|
1
|
+
{"version":3,"file":"accordion.module.mjs","names":[],"sources":["../../../../package/common/accordion/accordion.module.pcss"],"sourcesContent":[".accordion {\n color: var(--text-color);\n\n /* Clips the header's fill and hover layer to the corners; the body clips anyway, for its height\n transition. */\n overflow: hidden;\n\n /* Positioned, so a joined section paints over the one above, whose positioned header would\n otherwise cover the seam where WebKit draws it thinner than the 1px overlap. */\n position: relative;\n\n &-header {\n position: relative;\n display: flex;\n align-items: center;\n gap: 0.75em;\n padding: 0.75em 1em;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n /* The rest of the accordion measures from the header, so the base is set here. */\n font-size: var(--default-font-size);\n\n /* A layer in currentcolor, so it shows on a fill as on nothing: a Light header already uses\n the background. */\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n background: currentcolor;\n opacity: 0;\n transition: opacity 0.15s;\n pointer-events: none;\n }\n\n /* (hover: hover) because on touch a tap latches :hover until the next tap elsewhere. */\n @media (hover: hover) {\n &:hover::before {\n opacity: 0.06;\n }\n }\n\n &:focus-visible {\n outline: 2px solid var(--focus-border-color, var(--primary-color));\n outline-offset: -2px;\n }\n }\n\n /* Positioned, so they paint above the hover layer, which is positioned too and comes first. */\n &-title {\n position: relative;\n flex: 1;\n min-width: 0;\n }\n\n &-icon {\n position: relative;\n flex-shrink: 0;\n width: 1em;\n height: 1em;\n transition: transform 0.2s;\n\n &-active {\n transform: rotate(180deg);\n }\n }\n\n &-body {\n overflow: hidden;\n position: relative;\n transition: height 0.2s ease;\n\n &-inner {\n padding: 1em;\n }\n }\n\n /* --accordion-seam is the line a joined section draws where it meets the one above. */\n &-style {\n &-light {\n /* The page colour: the border is the tint itself, so a seam in it would merge two tinted\n headers into one block. */\n --accordion-seam: var(--background);\n\n border: 1px solid var(--tone-light);\n border-radius: var(--default-border-radius);\n }\n\n &-outlined {\n --accordion-seam: var(--tone-outline);\n\n border: 1px solid var(--tone-outline);\n border-radius: var(--default-border-radius);\n }\n }\n\n &-style-light &-header {\n background: var(--tone-light);\n color: var(--tone-text);\n }\n\n &-style-outlined &-header,\n &-style-plain &-header {\n color: var(--tone-text);\n }\n\n /* Plain sits inside other content: no padding, so no hover layer, and the focus ring goes\n outside the text rather than over it. */\n &-style-plain &-header {\n padding: 0;\n\n &::before {\n display: none;\n }\n\n &:focus-visible {\n outline-offset: 2px;\n }\n }\n\n &-style-plain &-body-inner {\n padding: 0.375em 0 0;\n }\n\n & + & {\n margin-top: 0.5em;\n }\n\n /* Each joined section overlaps the one above by its 1px border, and that one hides (not removes)\n its bottom border: a 1px gap or two borders snap to different device pixels at fractional zoom.\n Ties `& + &` on specificity, so it stays after it. Firefox before 121 lacks :has(). */\n &-joined + &-joined {\n margin-top: -1px;\n border-top-color: var(--accordion-seam);\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n &-style-plain&-joined + &-style-plain&-joined {\n margin-top: 0;\n }\n\n &-joined:has(+ &-joined) {\n border-bottom-color: transparent;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .accordion-body,\n .accordion-icon {\n transition: none;\n }\n}\n"],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";var e=function(e){return e.
|
|
1
|
+
"use client";var e=function(e){return e.Light=`light`,e.Outlined=`outlined`,e.Plain=`plain`,e}({});export{e as AccordionStyleType};
|
|
2
2
|
//# sourceMappingURL=accordion.types.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.types.mjs","names":[],"sources":["../../../../package/common/accordion/accordion.types.ts"],"sourcesContent":["import type { CSSProperties, ReactNode } from 'react';\nimport type { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';\n\nexport enum AccordionStyleType {\n
|
|
1
|
+
{"version":3,"file":"accordion.types.mjs","names":[],"sources":["../../../../package/common/accordion/accordion.types.ts"],"sourcesContent":["import type { CSSProperties, ReactNode } from 'react';\nimport type { SlotClassNames, SlotStyles, HtmlProps } from '../types/slots.types';\nimport type { ColorValue } from '../themeProvider/color.types';\n\n/**\n * How much the header stands out, as on Button, Badge and Chip. No `Filled`: a section of content\n * should not compete with the page's main action.\n */\nexport enum AccordionStyleType {\n /** The header in a light tint of the colour, its text in the colour. */\n Light = 'light',\n /** A border in the colour, the header's text in the colour. The default. */\n Outlined = 'outlined',\n /** The header's text in the colour, no chrome and no padding, for a disclosure inside other content. */\n Plain = 'plain',\n}\n\nexport type AccordionSlots = 'root' | 'header' | 'title' | 'icon' | 'body' | 'bodyInner';\n\nexport interface AccordionProps extends HtmlProps {\n title?: string;\n children?: ReactNode;\n expanded?: boolean | null;\n onHeaderClicked?: (id: string, isExpanded: boolean) => void;\n styleType?: AccordionStyleType;\n /** A `ThemeColor` (default `Neutral`) or any CSS colour. */\n color?: ColorValue;\n /**\n * Joins this accordion to the joined ones beside it into one block; otherwise neighbours keep a\n * small gap. Default `false`.\n */\n joined?: boolean;\n startOpen?: boolean;\n hideHeader?: boolean;\n className?: string;\n style?: CSSProperties;\n classNames?: SlotClassNames<AccordionSlots>;\n styles?: SlotStyles<AccordionSlots>;\n}\n"],"mappings":"aAQA,IAAY,EAAL,SAAA,EAAA,OAEL,GAAA,MAAA,QAEA,EAAA,SAAA,WAEA,EAAA,MAAA,SACF,EAAA,CAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{useComponentDefaults as e}from"../configProvider/useComponentDefaults.mjs";import{useLabels as t}from"../configProvider/useLabels.mjs";import n from"./actionButtons.module.mjs";import{ButtonStyleType as
|
|
1
|
+
"use client";import{useComponentDefaults as e}from"../configProvider/useComponentDefaults.mjs";import{useLabels as t}from"../configProvider/useLabels.mjs";import{ThemeColor as n}from"../themeProvider/color.types.mjs";import r from"./actionButtons.module.mjs";import{ButtonStyleType as i,ButtonType as a}from"../button/button.types.mjs";import o from"../button/button.mjs";import s from"classnames";import{jsx as c,jsxs as l}from"react/jsx-runtime";var u={submit:`Save`,cancel:`Cancel`};function d(d){let{onSubmit:f=()=>null,onClose:p=()=>null,labels:m,submitButtonStyle:h=i.Filled,submitButtonColor:g=n.Primary,isSubmitButtonLoading:_=!1,isSubmitButtonDisabled:v=!1,submitButtonIcon:y=void 0,cancelButtonStyle:b=i.Outlined,cancelButtonColor:x=n.Primary,isCancelButtonLoading:S=!1,isCancelButtonDisabled:C=!1,cancelButtonIcon:w=void 0,hidePrimaryButton:T=!1,hideSecondaryButton:E=!1,noMargin:D=!1,stackButtons:O=!1,className:k,style:A,classNames:j,styles:M,...N}=e(`ActionButtons`,d),P=t(`ActionButtons`,m,u);return l(`div`,{...N,className:s(r.actionButtons,!D&&r.actionButtonsMargin,O&&r.actionButtonsStacked,k,j?.root),style:{...A,...M?.root},children:[!T&&c(o,{isLoading:_,disabled:v,styleType:h,color:g,type:a.Submit,onClick:f,className:j?.submitButton,style:M?.submitButton,icon:y,children:P.submit}),!E&&c(o,{isLoading:S,disabled:C,onClick:p,styleType:b,color:x,className:j?.cancelButton,style:M?.cancelButton,icon:w,children:P.cancel})]})}export{d as default};
|
|
2
2
|
//# sourceMappingURL=actionButtons.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionButtons.mjs","names":[],"sources":["../../../../package/common/actionButtons/actionButtons.tsx"],"sourcesContent":["import cx from 'classnames';\n\nimport styles from './actionButtons.module.pcss';\nimport Button, { ButtonStyleType, ButtonType } from '../button';\nimport { useComponentDefaults, useLabels } from '../configProvider';\nimport { ActionButtonsProps } from './actionButtons.types';\nimport type { ActionButtonsLabels } from './actionButtons.types';\n\nconst DEFAULT_LABELS: Required<ActionButtonsLabels> = {\n submit: 'Save',\n cancel: 'Cancel',\n};\n\nexport default function ActionButtons(props: ActionButtonsProps) {\n const {\n onSubmit = () => null,\n onClose = () => null,\n labels,\n submitButtonStyle = ButtonStyleType.Primary,\n isSubmitButtonLoading = false,\n isSubmitButtonDisabled = false,\n submitButtonIcon = undefined,\n cancelButtonStyle = ButtonStyleType.
|
|
1
|
+
{"version":3,"file":"actionButtons.mjs","names":[],"sources":["../../../../package/common/actionButtons/actionButtons.tsx"],"sourcesContent":["import cx from 'classnames';\n\nimport styles from './actionButtons.module.pcss';\nimport Button, { ButtonStyleType, ButtonType } from '../button';\nimport { useComponentDefaults, useLabels } from '../configProvider';\nimport { ActionButtonsProps } from './actionButtons.types';\nimport type { ActionButtonsLabels } from './actionButtons.types';\nimport { ThemeColor } from '../themeProvider/color.types';\n\nconst DEFAULT_LABELS: Required<ActionButtonsLabels> = {\n submit: 'Save',\n cancel: 'Cancel',\n};\n\nexport default function ActionButtons(props: ActionButtonsProps) {\n const {\n onSubmit = () => null,\n onClose = () => null,\n labels,\n submitButtonStyle = ButtonStyleType.Filled,\n submitButtonColor = ThemeColor.Primary,\n isSubmitButtonLoading = false,\n isSubmitButtonDisabled = false,\n submitButtonIcon = undefined,\n cancelButtonStyle = ButtonStyleType.Outlined,\n cancelButtonColor = ThemeColor.Primary,\n isCancelButtonLoading = false,\n isCancelButtonDisabled = false,\n cancelButtonIcon = undefined,\n hidePrimaryButton = false,\n hideSecondaryButton = false,\n noMargin = false,\n stackButtons = false,\n className,\n style,\n classNames,\n styles: slotStyles,\n ...rest\n } = useComponentDefaults('ActionButtons', props);\n const text = useLabels('ActionButtons', labels, DEFAULT_LABELS);\n return (\n <div\n {...rest}\n className={cx(\n styles.actionButtons,\n !noMargin && styles.actionButtonsMargin,\n stackButtons && styles.actionButtonsStacked,\n className,\n classNames?.root,\n )}\n style={{ ...style, ...slotStyles?.root }}\n >\n {!hidePrimaryButton && (\n <Button\n isLoading={isSubmitButtonLoading}\n disabled={isSubmitButtonDisabled}\n styleType={submitButtonStyle}\n color={submitButtonColor}\n type={ButtonType.Submit}\n onClick={onSubmit}\n className={classNames?.submitButton}\n style={slotStyles?.submitButton}\n icon={submitButtonIcon}\n >\n {text.submit}\n </Button>\n )}\n {!hideSecondaryButton && (\n <Button\n isLoading={isCancelButtonLoading}\n disabled={isCancelButtonDisabled}\n onClick={onClose}\n styleType={cancelButtonStyle}\n color={cancelButtonColor}\n className={classNames?.cancelButton}\n style={slotStyles?.cancelButton}\n icon={cancelButtonIcon}\n >\n {text.cancel}\n </Button>\n )}\n </div>\n );\n}\n"],"mappings":"gcASA,IAAM,EAAgD,CACpD,OAAQ,OACR,OAAQ,QACV,EAEA,SAAwB,EAAc,EAA2B,CAC/D,GAAM,CACJ,eAAiB,KACjB,cAAgB,KAChB,SACA,oBAAoB,EAAgB,OACpC,oBAAoB,EAAW,QAC/B,wBAAwB,GACxB,yBAAyB,GACzB,mBAAmB,IAAA,GACnB,oBAAoB,EAAgB,SACpC,oBAAoB,EAAW,QAC/B,wBAAwB,GACxB,yBAAyB,GACzB,mBAAmB,IAAA,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,WAAW,GACX,eAAe,GACf,YACA,QACA,aACA,OAAQ,EACR,GAAG,GACD,EAAqB,gBAAiB,CAAK,EACzC,EAAO,EAAU,gBAAiB,EAAQ,CAAc,EAC9D,OACE,EAAC,MAAD,CACE,GAAI,EACJ,UAAW,EACT,EAAO,cACP,CAAC,GAAY,EAAO,oBACpB,GAAgB,EAAO,qBACvB,EACA,GAAY,IACd,EACA,MAAO,CAAE,GAAG,EAAO,GAAG,GAAY,IAAK,EATzC,SAAA,CAWG,CAAC,GACA,EAAC,EAAD,CACE,UAAW,EACX,SAAU,EACV,UAAW,EACX,MAAO,EACP,KAAM,EAAW,OACjB,QAAS,EACT,UAAW,GAAY,aACvB,MAAO,GAAY,aACnB,KAAM,EAEL,SAAA,EAAK,MACA,CAAA,EAET,CAAC,GACA,EAAC,EAAD,CACE,UAAW,EACX,SAAU,EACV,QAAS,EACT,UAAW,EACX,MAAO,EACP,UAAW,GAAY,aACvB,MAAO,GAAY,aACnB,KAAM,EAEL,SAAA,EAAK,MACA,CAAA,CAEP,GAET"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{ThemeColor as e}from"../themeProvider/color.types.mjs";import{ButtonSize as t,ButtonStyleType as n}from"../button/button.types.mjs";import{renderIcon as r}from"../utils/renderIcon.mjs";import i from"../button/button.mjs";import a from"./actionIcon.module.mjs";import o from"classnames";import{jsx as s}from"react/jsx-runtime";function c({icon:c,styleType:l=n.Plain,color:u=e.Neutral,className:d,style:f,classNames:p,styles:m,...h}){return s(i,{...h,styleType:l,color:u,size:t.Icon,className:o(a.actionIcon,d,p?.root),style:{...f,...m?.root},classNames:{label:a.actionIconLabel},children:r(c,{className:p?.icon,style:m?.icon})})}export{c as default};
|
|
2
2
|
//# sourceMappingURL=actionIcon.mjs.map
|