@papernote/ui 1.9.1 → 1.9.2
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/NotificationBell.d.ts.map +1 -1
- package/dist/index.esm.js +52 -40
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +52 -40
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NotificationBell.stories.tsx +42 -0
- package/src/components/NotificationBell.tsx +8 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationBell.d.ts","sourceRoot":"","sources":["../../src/components/NotificationBell.tsx"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC/C,wCAAwC;IACxC,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC/C,wCAAwC;IACxC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,6CAA6C;IAC7C,MAAM,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gCAAgC;AAChC,MAAM,MAAM,wBAAwB,GAChC,aAAa,GACb,cAAc,GACd,UAAU,GACV,WAAW,GACX,MAAM,GACN,OAAO,CAAC;AAEZ,gCAAgC;AAChC,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,UAAU,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,uCAAuC;IACvC,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,sGAAsG;IACtG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/D,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IAC5C,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,qEAAqE;IACrE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACnC;
|
|
1
|
+
{"version":3,"file":"NotificationBell.d.ts","sourceRoot":"","sources":["../../src/components/NotificationBell.tsx"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IAC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AAY,CAAC,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,qEAAqE;IACrE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACnC;AAuED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,aAAa,EACb,WAAW,EAAE,mBAAmB,EAChC,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,OAAe,EACf,gBAAiC,EACjC,SAAmB,EACnB,IAAW,EACX,YAAiC,EACjC,WAAsC,EACtC,QAAgB,EAChB,SAAc,EACd,OAAmB,EACnB,kBAA0B,EAC1B,SAAmB,GACpB,EAAE,qBAAqB,2CA+VvB"}
|
package/dist/index.esm.js
CHANGED
|
@@ -10103,19 +10103,23 @@ const defaultTypeLabels = {
|
|
|
10103
10103
|
};
|
|
10104
10104
|
/**
|
|
10105
10105
|
* Map dropdown position to Popover placement
|
|
10106
|
+
* - bottom-right: Below bell, dropdown's right edge aligns with bell
|
|
10107
|
+
* - bottom-left: Below bell, dropdown's left edge aligns with bell
|
|
10108
|
+
* - top-right: Above bell, dropdown's right edge aligns with bell
|
|
10109
|
+
* - top-left: Above bell, dropdown's left edge aligns with bell
|
|
10106
10110
|
*/
|
|
10107
10111
|
function getPopoverPlacement(position) {
|
|
10108
10112
|
switch (position) {
|
|
10109
10113
|
case 'bottom-right':
|
|
10110
10114
|
case 'right':
|
|
10111
|
-
return 'bottom-start';
|
|
10115
|
+
return 'bottom-start'; // Below, extends to the right
|
|
10112
10116
|
case 'bottom-left':
|
|
10113
10117
|
case 'left':
|
|
10114
|
-
return 'bottom-end';
|
|
10118
|
+
return 'bottom-end'; // Below, extends to the left
|
|
10115
10119
|
case 'top-right':
|
|
10116
|
-
return 'top-start';
|
|
10120
|
+
return 'top-start'; // Above, extends to the right
|
|
10117
10121
|
case 'top-left':
|
|
10118
|
-
return 'top-end';
|
|
10122
|
+
return 'top-end'; // Above, extends to the left
|
|
10119
10123
|
default:
|
|
10120
10124
|
return 'bottom-start';
|
|
10121
10125
|
}
|
|
@@ -11269,44 +11273,52 @@ function getAugmentedNamespace(n) {
|
|
|
11269
11273
|
* (A1, A1:C5, ...)
|
|
11270
11274
|
*/
|
|
11271
11275
|
|
|
11272
|
-
|
|
11276
|
+
var collection;
|
|
11277
|
+
var hasRequiredCollection;
|
|
11278
|
+
|
|
11279
|
+
function requireCollection () {
|
|
11280
|
+
if (hasRequiredCollection) return collection;
|
|
11281
|
+
hasRequiredCollection = 1;
|
|
11282
|
+
class Collection {
|
|
11273
11283
|
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11284
|
-
|
|
11284
|
+
constructor(data, refs) {
|
|
11285
|
+
if (data == null && refs == null) {
|
|
11286
|
+
this._data = [];
|
|
11287
|
+
this._refs = [];
|
|
11288
|
+
} else {
|
|
11289
|
+
if (data.length !== refs.length)
|
|
11290
|
+
throw Error('Collection: data length should match references length.');
|
|
11291
|
+
this._data = data;
|
|
11292
|
+
this._refs = refs;
|
|
11293
|
+
}
|
|
11294
|
+
}
|
|
11285
11295
|
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11296
|
+
get data() {
|
|
11297
|
+
return this._data;
|
|
11298
|
+
}
|
|
11289
11299
|
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11300
|
+
get refs() {
|
|
11301
|
+
return this._refs;
|
|
11302
|
+
}
|
|
11293
11303
|
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11304
|
+
get length() {
|
|
11305
|
+
return this._data.length;
|
|
11306
|
+
}
|
|
11297
11307
|
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
|
|
11306
|
-
|
|
11307
|
-
}
|
|
11308
|
+
/**
|
|
11309
|
+
* Add data and references to this collection.
|
|
11310
|
+
* @param {{}} obj - data
|
|
11311
|
+
* @param {{}} ref - reference
|
|
11312
|
+
*/
|
|
11313
|
+
add(obj, ref) {
|
|
11314
|
+
this._data.push(obj);
|
|
11315
|
+
this._refs.push(ref);
|
|
11316
|
+
}
|
|
11317
|
+
}
|
|
11308
11318
|
|
|
11309
|
-
|
|
11319
|
+
collection = Collection;
|
|
11320
|
+
return collection;
|
|
11321
|
+
}
|
|
11310
11322
|
|
|
11311
11323
|
var helpers;
|
|
11312
11324
|
var hasRequiredHelpers;
|
|
@@ -11315,7 +11327,7 @@ function requireHelpers () {
|
|
|
11315
11327
|
if (hasRequiredHelpers) return helpers;
|
|
11316
11328
|
hasRequiredHelpers = 1;
|
|
11317
11329
|
const FormulaError = requireError();
|
|
11318
|
-
const Collection =
|
|
11330
|
+
const Collection = requireCollection();
|
|
11319
11331
|
|
|
11320
11332
|
const Types = {
|
|
11321
11333
|
NUMBER: 0,
|
|
@@ -20969,7 +20981,7 @@ var engineering = EngineeringFunctions;
|
|
|
20969
20981
|
|
|
20970
20982
|
const FormulaError$b = requireError();
|
|
20971
20983
|
const {FormulaHelpers: FormulaHelpers$8, Types: Types$6, WildCard, Address: Address$3} = requireHelpers();
|
|
20972
|
-
const Collection$2 =
|
|
20984
|
+
const Collection$2 = requireCollection();
|
|
20973
20985
|
const H$5 = FormulaHelpers$8;
|
|
20974
20986
|
|
|
20975
20987
|
const ReferenceFunctions$1 = {
|
|
@@ -32597,7 +32609,7 @@ var parsing = {
|
|
|
32597
32609
|
const FormulaError$4 = requireError();
|
|
32598
32610
|
const {Address: Address$1} = requireHelpers();
|
|
32599
32611
|
const {Prefix: Prefix$1, Postfix: Postfix$1, Infix: Infix$1, Operators: Operators$1} = operators;
|
|
32600
|
-
const Collection$1 =
|
|
32612
|
+
const Collection$1 = requireCollection();
|
|
32601
32613
|
const MAX_ROW$1 = 1048576, MAX_COLUMN$1 = 16384;
|
|
32602
32614
|
const {NotAllInputParsedException} = require$$4;
|
|
32603
32615
|
|
|
@@ -33359,7 +33371,7 @@ var hooks$1 = {
|
|
|
33359
33371
|
const FormulaError$2 = requireError();
|
|
33360
33372
|
const {FormulaHelpers: FormulaHelpers$1, Types, Address} = requireHelpers();
|
|
33361
33373
|
const {Prefix, Postfix, Infix, Operators} = operators;
|
|
33362
|
-
const Collection =
|
|
33374
|
+
const Collection = requireCollection();
|
|
33363
33375
|
const MAX_ROW = 1048576, MAX_COLUMN = 16384;
|
|
33364
33376
|
|
|
33365
33377
|
let Utils$1 = class Utils {
|