@acronis-platform/ui-react 0.62.0 → 2.0.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/dist/components/ui/alert/alert.js +118 -60
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/button-group/button-group.js +57 -0
- package/dist/components/ui/button-group/button-group.js.map +1 -0
- package/dist/components/ui/button-icon-menu/button-icon-menu.js +26 -0
- package/dist/components/ui/button-icon-menu/button-icon-menu.js.map +1 -0
- package/dist/components/ui/calendar-panel/calendar-panel.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +1 -1
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/chip/chip.js +33 -33
- package/dist/components/ui/chip/chip.js.map +1 -1
- package/dist/components/ui/data-table/data-table-bulk-actions-bar.js +38 -0
- package/dist/components/ui/data-table/data-table-bulk-actions-bar.js.map +1 -0
- package/dist/components/ui/data-table/data-table-column-header.js +23 -20
- package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/ui/data-table/data-table-expand-trigger.js +23 -15
- package/dist/components/ui/data-table/data-table-expand-trigger.js.map +1 -1
- package/dist/components/ui/data-table/data-table-pagination.js +29 -28
- package/dist/components/ui/data-table/data-table-pagination.js.map +1 -1
- package/dist/components/ui/data-table/data-table-selection.js +7 -0
- package/dist/components/ui/data-table/data-table-selection.js.map +1 -0
- package/dist/components/ui/data-table/data-table-toolbar.js +21 -23
- package/dist/components/ui/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/ui/data-table/data-table-view-options.js +12 -10
- package/dist/components/ui/data-table/data-table-view-options.js.map +1 -1
- package/dist/components/ui/data-table/data-table.js +347 -183
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/date-range-picker/date-range-picker-utils.js +11 -23
- package/dist/components/ui/date-range-picker/date-range-picker-utils.js.map +1 -1
- package/dist/components/ui/date-range-picker/date-range-picker.js +94 -134
- package/dist/components/ui/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +129 -72
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/filter-chips/filter-chips.js +44 -0
- package/dist/components/ui/filter-chips/filter-chips.js.map +1 -0
- package/dist/components/ui/filter-search/filter-search.js +184 -138
- package/dist/components/ui/filter-search/filter-search.js.map +1 -1
- package/dist/components/ui/fitted-actions/fitted-actions.js +139 -0
- package/dist/components/ui/fitted-actions/fitted-actions.js.map +1 -0
- package/dist/components/ui/input-date-picker/input-date-picker.js +103 -93
- package/dist/components/ui/input-date-picker/input-date-picker.js.map +1 -1
- package/dist/components/ui/input-password/input-password.js +76 -66
- package/dist/components/ui/input-password/input-password.js.map +1 -1
- package/dist/components/ui/input-search/input-search.js +9 -9
- package/dist/components/ui/input-search/input-search.js.map +1 -1
- package/dist/components/ui/input-select/input-select.js +8 -8
- package/dist/components/ui/input-select/input-select.js.map +1 -1
- package/dist/components/ui/input-text/input-text.js +77 -66
- package/dist/components/ui/input-text/input-text.js.map +1 -1
- package/dist/components/ui/input-text-area/input-text-area.js +76 -66
- package/dist/components/ui/input-text-area/input-text-area.js.map +1 -1
- package/dist/components/ui/link/link.js +50 -35
- package/dist/components/ui/link/link.js.map +1 -1
- package/dist/components/ui/number-field/number-field.js +1 -1
- package/dist/components/ui/number-field/number-field.js.map +1 -1
- package/dist/components/ui/popover/popover.js +75 -56
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js +46 -30
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/stepper/stepper.js +70 -0
- package/dist/components/ui/stepper/stepper.js.map +1 -0
- package/dist/components/ui/stepper-item/stepper-item.js +97 -0
- package/dist/components/ui/stepper-item/stepper-item.js.map +1 -0
- package/dist/components/ui/table/table-pagination.js +54 -47
- package/dist/components/ui/table/table-pagination.js.map +1 -1
- package/dist/components/ui/table/table-view-options.js +32 -19
- package/dist/components/ui/table/table-view-options.js.map +1 -1
- package/dist/components/ui/table/table.js +112 -63
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/timeline/timeline.js +10 -10
- package/dist/components/ui/timeline/timeline.js.map +1 -1
- package/dist/components/ui/timer/timer.js +47 -0
- package/dist/components/ui/timer/timer.js.map +1 -0
- package/dist/components/ui/toast/toast.js +168 -61
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/truncate-text/middle-truncate.js +20 -0
- package/dist/components/ui/truncate-text/middle-truncate.js.map +1 -0
- package/dist/components/ui/truncate-text/text-width.js +12 -0
- package/dist/components/ui/truncate-text/text-width.js.map +1 -0
- package/dist/components/ui/truncate-text/truncate-text.js +152 -0
- package/dist/components/ui/truncate-text/truncate-text.js.map +1 -0
- package/dist/index.js +516 -471
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js +5 -5
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js +3 -6
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js.map +1 -1
- package/dist/react.js +516 -471
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/alert/alert.d.ts +34 -3
- package/dist/src/components/ui/alert/index.d.ts +2 -2
- package/dist/src/components/ui/button/button.d.ts +1 -1
- package/dist/src/components/ui/button-group/button-group.d.ts +38 -0
- package/dist/src/components/ui/button-group/index.d.ts +1 -0
- package/dist/src/components/ui/button-icon/button-icon.d.ts +1 -1
- package/dist/src/components/ui/button-icon-menu/button-icon-menu.d.ts +28 -0
- package/dist/src/components/ui/button-icon-menu/index.d.ts +1 -0
- package/dist/src/components/ui/button-menu/button-menu.d.ts +1 -1
- package/dist/src/components/ui/calendar-panel/calendar-panel.d.ts +2 -2
- package/dist/src/components/ui/chip/chip.d.ts +1 -1
- package/dist/src/components/ui/data-table/data-table-bulk-actions-bar.d.ts +26 -0
- package/dist/src/components/ui/data-table/data-table-column-header.d.ts +6 -1
- package/dist/src/components/ui/data-table/data-table-expand-trigger.d.ts +4 -0
- package/dist/src/components/ui/data-table/data-table-pagination.d.ts +15 -1
- package/dist/src/components/ui/data-table/data-table-selection.d.ts +11 -0
- package/dist/src/components/ui/data-table/data-table-view-options.d.ts +3 -2
- package/dist/src/components/ui/data-table/data-table.d.ts +88 -3
- package/dist/src/components/ui/data-table/data-table.docs.d.ts +61 -1
- package/dist/src/components/ui/data-table/index.d.ts +3 -1
- package/dist/src/components/ui/date-range-picker/date-range-picker-utils.d.ts +10 -16
- package/dist/src/components/ui/date-range-picker/date-range-picker.d.ts +46 -2
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +8 -1
- package/dist/src/components/ui/dropdown-menu/index.d.ts +1 -1
- package/dist/src/components/ui/filter-chips/filter-chips.d.ts +25 -0
- package/dist/src/components/ui/filter-chips/index.d.ts +1 -0
- package/dist/src/components/ui/filter-search/filter-search.d.ts +39 -1
- package/dist/src/components/ui/fitted-actions/fitted-actions.d.ts +50 -0
- package/dist/src/components/ui/fitted-actions/fitted-actions.docs.d.ts +45 -0
- package/dist/src/components/ui/fitted-actions/index.d.ts +1 -0
- package/dist/src/components/ui/link/index.d.ts +1 -1
- package/dist/src/components/ui/link/link.d.ts +22 -4
- package/dist/src/components/ui/metric/metric.d.ts +1 -1
- package/dist/src/components/ui/popover/popover.d.ts +30 -1
- package/dist/src/components/ui/popover/popover.docs.d.ts +27 -2
- package/dist/src/components/ui/scroll-area/scroll-area.d.ts +24 -0
- package/dist/src/components/ui/stepper/index.d.ts +1 -0
- package/dist/src/components/ui/stepper/stepper.d.ts +40 -0
- package/dist/src/components/ui/stepper-item/index.d.ts +1 -0
- package/dist/src/components/ui/stepper-item/stepper-item.d.ts +41 -0
- package/dist/src/components/ui/table/index.d.ts +1 -1
- package/dist/src/components/ui/table/table-pagination.d.ts +21 -0
- package/dist/src/components/ui/table/table-view-options.d.ts +9 -2
- package/dist/src/components/ui/table/table.d.ts +40 -1
- package/dist/src/components/ui/tag/tag.d.ts +1 -1
- package/dist/src/components/ui/timer/index.d.ts +1 -0
- package/dist/src/components/ui/timer/timer.d.ts +28 -0
- package/dist/src/components/ui/toast/index.d.ts +1 -1
- package/dist/src/components/ui/toast/toast.d.ts +51 -18
- package/dist/src/components/ui/toast/toast.docs.d.ts +4 -0
- package/dist/src/components/ui/trend-indicator/trend-indicator.d.ts +1 -1
- package/dist/src/components/ui/truncate-text/__tests__/middle-truncate.test.d.ts +1 -0
- package/dist/src/components/ui/truncate-text/index.d.ts +3 -0
- package/dist/src/components/ui/truncate-text/middle-truncate.d.ts +13 -0
- package/dist/src/components/ui/truncate-text/text-width.d.ts +11 -0
- package/dist/src/components/ui/truncate-text/truncate-text.d.ts +45 -0
- package/dist/src/components/ui/truncate-text/truncate-text.docs.d.ts +35 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/ui-react.css +1 -1
- package/package.json +4 -4
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDefaultOptions.js +0 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDefaultOptions.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISODay.js +0 -9
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISODay.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Parser.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Setter.js +0 -42
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/constants.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -106
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -81
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -78
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -76
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -81
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -78
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -76
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers.js +0 -68
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/utils.js +0 -104
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse.js +0 -86
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setDay.js +0 -12
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setDay.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISODay.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISODay.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISOWeek.js +0 -10
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISOWeek.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setWeek.js +0 -10
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setWeek.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/transpose.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/transpose.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const tagVariants: (props?: ({
|
|
4
|
-
variant?: "info" | "success" | "warning" | "critical" | "
|
|
4
|
+
variant?: "info" | "success" | "warning" | "critical" | "danger" | "ai" | "neutral" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tagVariants> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Timer, type TimerProps } from './timer';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TimerProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
3
|
+
/**
|
|
4
|
+
* The formatted time to display, e.g. `"12:01:45"`. Rendered with tabular
|
|
5
|
+
* figures so the readout doesn't jitter as the digits change. The component
|
|
6
|
+
* neither ticks nor formats — pass an already-formatted value.
|
|
7
|
+
*/
|
|
8
|
+
value: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The actions, as `ButtonGroupItem` elements in visual order. Omit them for a
|
|
11
|
+
* read-only readout — with no actions the divider is dropped too.
|
|
12
|
+
*/
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Accessible name for the action cluster's toolbar. Localize it; the default
|
|
16
|
+
* is English.
|
|
17
|
+
*/
|
|
18
|
+
actionsLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* An elapsed-time readout paired with a cluster of icon-only actions.
|
|
22
|
+
*
|
|
23
|
+
* The readout is a `role="timer"` live region — implicitly `aria-live="off"`,
|
|
24
|
+
* so it is not announced on every tick. Each action needs its own accessible
|
|
25
|
+
* name; the cluster as a whole is named by `actionsLabel`.
|
|
26
|
+
*/
|
|
27
|
+
declare const Timer: React.ForwardRefExoticComponent<TimerProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export { Timer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { toast, Toaster, type ToasterProps, type ToastType, type ToastOptions, } from './toast';
|
|
1
|
+
export { toast, Toaster, toastVariants, type ToasterProps, type ToastAction, type ToastType, type ToastVariant, type ToastOptions, } from './toast';
|
|
@@ -1,39 +1,72 @@
|
|
|
1
1
|
import { Toast as ToastPrimitive } from '@base-ui/react/toast';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
+
declare const toastVariants: (props?: ({
|
|
5
|
+
variant?: "info" | "success" | "warning" | "critical" | "danger" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>;
|
|
8
|
+
/**
|
|
9
|
+
* A toast's kind. The five severities match the Figma variants; `loading` has no
|
|
10
|
+
* Figma variant — it is the spinner state `toast.promise` needs.
|
|
11
|
+
*/
|
|
12
|
+
export type ToastType = ToastVariant | 'loading';
|
|
13
|
+
export interface ToastAction {
|
|
14
|
+
/** The button's label. */
|
|
15
|
+
label: React.ReactNode;
|
|
16
|
+
/** Invoked on click. The toast is not dismissed automatically. */
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Button style. Defaults to `secondary` for the first action and `ghost` for
|
|
20
|
+
* the rest, matching the Figma's button pairing.
|
|
21
|
+
*/
|
|
22
|
+
variant?: 'secondary' | 'ghost';
|
|
23
|
+
}
|
|
24
|
+
/** Custom per-toast payload carried through the Base UI manager. */
|
|
25
|
+
interface ToastData {
|
|
26
|
+
actions?: ToastAction[];
|
|
27
|
+
dismissable?: boolean;
|
|
28
|
+
}
|
|
4
29
|
export interface ToastOptions {
|
|
5
|
-
/** Secondary line under the title. */
|
|
30
|
+
/** Secondary line under the title; clamped to three lines. */
|
|
6
31
|
description?: React.ReactNode;
|
|
7
32
|
/** Auto-dismiss delay in ms; `0` keeps the toast until dismissed. */
|
|
8
33
|
timeout?: number;
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
34
|
+
/** Action buttons rendered in a wrapping row under the text. */
|
|
35
|
+
actions?: ToastAction[];
|
|
36
|
+
/**
|
|
37
|
+
* Whether the toast shows its dismiss control and can be swiped away.
|
|
38
|
+
* Defaults to `true`. A non-dismissable toast with `timeout: 0` can only be
|
|
39
|
+
* removed with `toast.dismiss(id)`.
|
|
40
|
+
*/
|
|
41
|
+
dismissable?: boolean;
|
|
14
42
|
/** Stable id — re-adding with the same id updates the toast in place. */
|
|
15
43
|
id?: string;
|
|
16
44
|
}
|
|
17
45
|
/**
|
|
18
|
-
* Imperative toast API. `toast(title, options)` shows
|
|
19
|
-
* `toast.
|
|
20
|
-
* `toast.
|
|
21
|
-
* promise's lifecycle.
|
|
46
|
+
* Imperative toast API. `toast(title, options)` shows an info toast;
|
|
47
|
+
* `toast.info` / `success` / `warning` / `critical` / `danger` set the severity
|
|
48
|
+
* and `toast.loading` shows a persistent spinner. `toast.dismiss(id?)` closes one
|
|
49
|
+
* (or all) and `toast.promise` ties a toast to a promise's lifecycle.
|
|
22
50
|
*/
|
|
23
51
|
declare const toast: ((title: React.ReactNode, options?: ToastOptions) => string) & {
|
|
24
|
-
success: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
25
52
|
info: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
53
|
+
success: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
26
54
|
warning: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
27
|
-
|
|
55
|
+
critical: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
56
|
+
danger: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
28
57
|
loading: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
29
58
|
dismiss: (id?: string) => void;
|
|
30
|
-
promise: <Value, T extends
|
|
59
|
+
promise: <Value, T extends ToastData = ToastData>(promiseValue: Promise<Value>, options: import('@base-ui/react').ToastManagerPromiseOptions<Value, T>) => Promise<Value>;
|
|
31
60
|
};
|
|
32
61
|
export interface ToasterProps {
|
|
33
62
|
/** Default auto-dismiss delay in ms for toasts that don't set one. */
|
|
34
63
|
timeout?: number;
|
|
35
64
|
/** Max toasts shown at once; the oldest is dropped past the limit. */
|
|
36
65
|
limit?: number;
|
|
66
|
+
/** Accessible name for the toast region. */
|
|
67
|
+
label?: string;
|
|
68
|
+
/** Accessible name for each toast's dismiss control. */
|
|
69
|
+
closeAriaLabel?: string;
|
|
37
70
|
/**
|
|
38
71
|
* Portal container for the toast stack. Pass a shadow-root mount for
|
|
39
72
|
* isolated-style previews (the docs demos do this via `useShadowMount`).
|
|
@@ -41,8 +74,8 @@ export interface ToasterProps {
|
|
|
41
74
|
portalContainer?: ToastPrimitive.Portal.Props['container'];
|
|
42
75
|
}
|
|
43
76
|
/**
|
|
44
|
-
* The toast region. Render once near the app root; it portals a bottom-
|
|
45
|
-
*
|
|
77
|
+
* The toast region. Render once near the app root; it portals a bottom-end stack
|
|
78
|
+
* and renders every queued toast. Trigger toasts with the `toast` API.
|
|
46
79
|
*/
|
|
47
|
-
declare function Toaster({ timeout, limit, portalContainer }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
export { toast, Toaster };
|
|
80
|
+
declare function Toaster({ timeout, limit, label, closeAriaLabel, portalContainer, }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
export { toast, Toaster, toastVariants };
|
|
@@ -4,6 +4,10 @@ export interface ToasterProps {
|
|
|
4
4
|
timeout?: number;
|
|
5
5
|
/** Max toasts shown at once; the oldest is dropped past the limit (default 3). */
|
|
6
6
|
limit?: number;
|
|
7
|
+
/** Accessible name for the toast region (default `'Notifications'`). */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Accessible name for each toast's dismiss control (default `'Close'`). */
|
|
10
|
+
closeAriaLabel?: string;
|
|
7
11
|
/**
|
|
8
12
|
* Portal container for the toast stack. Pass a shadow-root mount for
|
|
9
13
|
* isolated-style previews (the docs demos do this via `useShadowMount`).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const trendIndicatorVariants: (props?: ({
|
|
4
|
-
sentiment?: "
|
|
4
|
+
sentiment?: "positive" | "neutral" | "negative" | null | undefined;
|
|
5
5
|
size?: "small" | "medium" | null | undefined;
|
|
6
6
|
variant?: "inline" | "badge" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface MiddleTruncateOptions {
|
|
2
|
+
/** Returns the rendered width of `candidate`, in the same unit as `maxWidth`. */
|
|
3
|
+
readonly measure: (candidate: string) => number;
|
|
4
|
+
/** Inserted between the kept start and end slices. Defaults to `'…'`. */
|
|
5
|
+
readonly ellipsis?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Returns `text` unchanged if it already fits `maxWidth`, otherwise the widest
|
|
9
|
+
* start+ellipsis+end slice that does. Never returns something wider than
|
|
10
|
+
* `maxWidth`, even when nothing meaningful fits — the degenerate result is the
|
|
11
|
+
* bare ellipsis, or `''` if `maxWidth` cannot fit that either.
|
|
12
|
+
*/
|
|
13
|
+
export declare function middleTruncate(text: string, maxWidth: number, { measure, ellipsis }: MiddleTruncateOptions): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The rendered width of `text` in `font` (a CSS `font` shorthand string, e.g. from
|
|
3
|
+
* `getComputedStyle(el).font`), in CSS pixels.
|
|
4
|
+
*
|
|
5
|
+
* Falls back to a fixed per-character estimate when `canvas` 2D contexts are
|
|
6
|
+
* unavailable (jsdom's default; the real component is exercised by the browser
|
|
7
|
+
* test project instead) — a rough width is enough to keep the search from
|
|
8
|
+
* throwing, and nothing in the unit project renders far enough to compare it
|
|
9
|
+
* against a pixel budget.
|
|
10
|
+
*/
|
|
11
|
+
export declare function measureTextWidth(text: string, font: string): number;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { TooltipContent } from '../tooltip';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type TooltipContentProps = React.ComponentProps<typeof TooltipContent>;
|
|
4
|
+
export interface TruncateTextProps {
|
|
5
|
+
/** The text to display. Also used verbatim as the tooltip body when truncated. */
|
|
6
|
+
children: string;
|
|
7
|
+
/**
|
|
8
|
+
* Where the ellipsis goes. `'end'` (default) is the familiar CSS
|
|
9
|
+
* `text-overflow: ellipsis` — reach for `'middle'` when the distinguishing
|
|
10
|
+
* part of the value is at the tail (a URL, a hash) rather than the start.
|
|
11
|
+
*/
|
|
12
|
+
mode?: 'middle' | 'end';
|
|
13
|
+
/** Which side the tooltip opens on. Defaults to `top`. */
|
|
14
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
15
|
+
/**
|
|
16
|
+
* Max lines before truncating, in `'end'` mode only: `1` (default) =
|
|
17
|
+
* single-line ellipsis; `>1` = a multi-line clamp. Ignored in `'middle'`
|
|
18
|
+
* mode, which is inherently single-line.
|
|
19
|
+
*/
|
|
20
|
+
lines?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Force the tooltip open on mount (only has effect when the text is truncated).
|
|
23
|
+
* Mainly for stories / visual review; normal usage reveals it on hover/focus.
|
|
24
|
+
*/
|
|
25
|
+
defaultOpen?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Container the tooltip popup portals into. Pass a shadow root (e.g. a
|
|
28
|
+
* micro-frontend mount point) so the popup inherits the kit's styles; defaults
|
|
29
|
+
* to the document body.
|
|
30
|
+
*/
|
|
31
|
+
portalContainer?: TooltipContentProps['portalContainer'];
|
|
32
|
+
/** Merged onto the rendered `<span>`. */
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Text that truncates with an ellipsis and reveals its full value in a tooltip
|
|
37
|
+
* **only when it's actually clipped** — the tooltip is skipped when everything
|
|
38
|
+
* fits, so short cells don't get a pointless hover target. Ideal for table cells.
|
|
39
|
+
*
|
|
40
|
+
* `'end'`-mode truncation is detected by comparing scroll vs client size and
|
|
41
|
+
* re-checked on resize; `'middle'`-mode measures a real font metric via canvas
|
|
42
|
+
* (there is no native CSS middle-ellipsis) and re-measures the same way.
|
|
43
|
+
*/
|
|
44
|
+
export declare const TruncateText: React.ForwardRefExoticComponent<TruncateTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
/** Props for `TruncateText`. */
|
|
3
|
+
export interface TruncateTextProps {
|
|
4
|
+
/** The text to display. Also used verbatim as the tooltip body when truncated. */
|
|
5
|
+
children: string;
|
|
6
|
+
/**
|
|
7
|
+
* Where the ellipsis goes.
|
|
8
|
+
* - `'end'` (default) — CSS `text-overflow: ellipsis` for single-line; `-webkit-line-clamp` when `lines > 1`.
|
|
9
|
+
* - `'middle'` — canvas binary-search preserving both ends; ideal for URLs, paths, and hashes.
|
|
10
|
+
*/
|
|
11
|
+
mode?: 'end' | 'middle';
|
|
12
|
+
/** Which side the tooltip opens on. Defaults to `'top'`. */
|
|
13
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
14
|
+
/**
|
|
15
|
+
* Max lines before truncating (`'end'` mode only).
|
|
16
|
+
* `1` (default) = single-line ellipsis; `>1` = multi-line `-webkit-line-clamp`.
|
|
17
|
+
* Ignored in `'middle'` mode, which is inherently single-line.
|
|
18
|
+
*/
|
|
19
|
+
lines?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Force the tooltip open on mount — only has effect when the text is truncated.
|
|
22
|
+
* Useful for stories and visual review; normal usage reveals the tooltip on hover/focus.
|
|
23
|
+
*/
|
|
24
|
+
defaultOpen?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Container the tooltip popup portals into. Pass a shadow-root mount (e.g. a
|
|
27
|
+
* micro-frontend mount point) so the popup inherits the kit's styles.
|
|
28
|
+
* Defaults to `document.body`.
|
|
29
|
+
*/
|
|
30
|
+
portalContainer?: HTMLElement | ShadowRoot | null;
|
|
31
|
+
/** Extra classes merged onto the rendered `<span>`. */
|
|
32
|
+
className?: string;
|
|
33
|
+
/** Forwarded to the underlying `<span>`. */
|
|
34
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
35
|
+
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './components/ui/avatar';
|
|
|
12
12
|
export * from './components/ui/bar-chart';
|
|
13
13
|
export * from './components/ui/breadcrumb';
|
|
14
14
|
export * from './components/ui/button';
|
|
15
|
+
export * from './components/ui/button-group';
|
|
15
16
|
export * from './components/ui/button-menu';
|
|
16
17
|
export * from './components/ui/calendar';
|
|
17
18
|
export * from './components/ui/calendar-panel';
|
|
@@ -36,7 +37,9 @@ export * from './components/ui/dialog-welcome';
|
|
|
36
37
|
export * from './components/ui/dropdown-menu';
|
|
37
38
|
export * from './components/ui/empty';
|
|
38
39
|
export * from './components/ui/field';
|
|
40
|
+
export * from './components/ui/fitted-actions';
|
|
39
41
|
export * from './components/ui/filter-cards';
|
|
42
|
+
export * from './components/ui/filter-chips';
|
|
40
43
|
export * from './components/ui/funnel-chart';
|
|
41
44
|
export * from './components/ui/grid';
|
|
42
45
|
export * from './components/ui/histogram';
|
|
@@ -79,11 +82,14 @@ export * from './components/ui/sheet';
|
|
|
79
82
|
export * from './components/ui/skeleton';
|
|
80
83
|
export * from './components/ui/slider';
|
|
81
84
|
export * from './components/ui/stack';
|
|
85
|
+
export * from './components/ui/stepper';
|
|
86
|
+
export * from './components/ui/stepper-item';
|
|
82
87
|
export * from './components/ui/resizable';
|
|
83
88
|
export * from './components/ui/sidebar-primary';
|
|
84
89
|
export * from './components/ui/sidebar-secondary';
|
|
85
90
|
export * from './components/ui/button-icon';
|
|
86
91
|
export * from './components/ui/button-icon-input';
|
|
92
|
+
export * from './components/ui/button-icon-menu';
|
|
87
93
|
export * from './components/ui/filter-search';
|
|
88
94
|
export * from './components/ui/switch';
|
|
89
95
|
export * from './components/ui/table';
|
|
@@ -92,8 +98,10 @@ export * from './components/ui/toast';
|
|
|
92
98
|
export * from './components/ui/toggle-group';
|
|
93
99
|
export * from './components/ui/toolbar';
|
|
94
100
|
export * from './components/ui/tooltip';
|
|
101
|
+
export * from './components/ui/truncate-text';
|
|
95
102
|
export * from './components/ui/tag';
|
|
96
103
|
export * from './components/ui/timeline';
|
|
104
|
+
export * from './components/ui/timer';
|
|
97
105
|
export { Tag as Badge, type TagProps as BadgeProps, } from './components/ui/tag';
|
|
98
106
|
export * from './components/ui/treemap';
|
|
99
107
|
export * from './components/ui/trend-indicator';
|