@bizapps/ui 1.6.0 → 1.7.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/main.cjs CHANGED
@@ -26,6 +26,7 @@ require('temporal-polyfill/global');
26
26
  var temporalPolyfill = require('temporal-polyfill');
27
27
  var reactHookForm = require('react-hook-form');
28
28
  var zod = require('@hookform/resolvers/zod');
29
+ var confetti = require('canvas-confetti');
29
30
  var reactTable = require('@tanstack/react-table');
30
31
 
31
32
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -51,6 +52,7 @@ function _interopNamespace(e) {
51
52
  var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
52
53
  var countryFlags__namespace = /*#__PURE__*/_interopNamespace(countryFlags);
53
54
  var Color__default = /*#__PURE__*/_interopDefault(Color);
55
+ var confetti__default = /*#__PURE__*/_interopDefault(confetti);
54
56
 
55
57
  // src/components/ui/Alert/alert.tsx
56
58
  function cn(...inputs) {
@@ -7112,6 +7114,38 @@ var logos = {
7112
7114
  monochBlack: `${CDN_BASE}/logos/Logo_Total_monochB.webp`,
7113
7115
  monochOrange: `${CDN_BASE}/logos/Logo_Total_monochO.webp`
7114
7116
  };
7117
+ var CONFETTI_COLORS = [
7118
+ "#22205f",
7119
+ // --color-main-blue-primary
7120
+ "#f66a24",
7121
+ // --color-main-orange-primary
7122
+ "#faca4a",
7123
+ // --color-main-yellow-primary
7124
+ "#01d42f",
7125
+ // --color-main-positive-state
7126
+ "#d93235"
7127
+ // --color-main-warning-state
7128
+ ];
7129
+ function fireConfetti({
7130
+ particleCount = 60,
7131
+ originY = 0.7,
7132
+ colors = [...CONFETTI_COLORS]
7133
+ } = {}) {
7134
+ const shared = {
7135
+ particleCount,
7136
+ colors,
7137
+ spread: 70,
7138
+ startVelocity: 55,
7139
+ disableForReducedMotion: true
7140
+ };
7141
+ return Promise.all([
7142
+ confetti__default.default({ ...shared, angle: 60, origin: { x: 0, y: originY } }),
7143
+ confetti__default.default({ ...shared, angle: 120, origin: { x: 1, y: originY } })
7144
+ ]).then(() => void 0);
7145
+ }
7146
+ function resetConfetti() {
7147
+ confetti__default.default.reset();
7148
+ }
7115
7149
  function Table({
7116
7150
  className,
7117
7151
  containerClassName = "overflow-x-auto",
@@ -9443,6 +9477,7 @@ exports.BreadcrumbList = BreadcrumbList;
9443
9477
  exports.BreadcrumbPage = BreadcrumbPage;
9444
9478
  exports.BreadcrumbSeparator = BreadcrumbSeparator;
9445
9479
  exports.Button = Button;
9480
+ exports.CONFETTI_COLORS = CONFETTI_COLORS;
9446
9481
  exports.Can = Can;
9447
9482
  exports.CanNot = CanNot;
9448
9483
  exports.Card = Card;
@@ -9670,6 +9705,7 @@ exports.createBackendParamsWithFilters = createBackendParamsWithFilters;
9670
9705
  exports.duration = duration;
9671
9706
  exports.ease = ease;
9672
9707
  exports.fadeIn = fadeIn;
9708
+ exports.fireConfetti = fireConfetti;
9673
9709
  exports.getActiveFilterCount = getActiveFilterCount;
9674
9710
  exports.getActiveFilterValues = getActiveFilterValues;
9675
9711
  exports.getColumnValueCounts = getColumnValueCounts;
@@ -9685,6 +9721,7 @@ exports.parseJsonToFilters = parseJsonToFilters;
9685
9721
  exports.parseQueryParamsToFilters = parseQueryParamsToFilters;
9686
9722
  exports.progressIndicatorVariants = progressIndicatorVariants;
9687
9723
  exports.progressVariants = progressVariants;
9724
+ exports.resetConfetti = resetConfetti;
9688
9725
  exports.scaleIn = scaleIn;
9689
9726
  exports.searchInArray = searchInArray;
9690
9727
  exports.skeletonVariants = skeletonVariants;