@fairmint/ui 0.2.32 → 0.2.34

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.
Files changed (111) hide show
  1. package/dist/components/BrandedLoadingScreen/BrandedLoadingScreen.d.ts +11 -0
  2. package/dist/components/BrandedLoadingScreen/BrandedLoadingScreen.d.ts.map +1 -0
  3. package/dist/components/ErrorFallback/ErrorFallback.d.ts +0 -5
  4. package/dist/components/ErrorFallback/ErrorFallback.d.ts.map +1 -1
  5. package/dist/components/FairmintLogo/FairmintLogo.d.ts +4 -1
  6. package/dist/components/FairmintLogo/FairmintLogo.d.ts.map +1 -1
  7. package/dist/components/FairmintProvider/FairmintProvider.d.ts.map +1 -1
  8. package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +10 -0
  9. package/dist/components/LoadingOverlay/LoadingOverlay.d.ts.map +1 -0
  10. package/dist/components/generic/ColorDot/ColorDot.d.ts +3 -1
  11. package/dist/components/generic/ColorDot/ColorDot.d.ts.map +1 -1
  12. package/dist/components/generic/ErrorPage/ErrorPage.d.ts.map +1 -1
  13. package/dist/components/generic/PhotoCropModal/PhotoCropModal.d.ts +0 -39
  14. package/dist/components/generic/PhotoCropModal/PhotoCropModal.d.ts.map +1 -1
  15. package/dist/components/generic/ProcessingState/ProcessingState.d.ts +11 -0
  16. package/dist/components/generic/ProcessingState/ProcessingState.d.ts.map +1 -0
  17. package/dist/components/generic/ValidationWarning/ValidationWarning.d.ts +8 -0
  18. package/dist/components/generic/ValidationWarning/ValidationWarning.d.ts.map +1 -0
  19. package/dist/components/layout/PageHeader/PageHeader.d.ts +0 -3
  20. package/dist/components/layout/PageHeader/PageHeader.d.ts.map +1 -1
  21. package/dist/components/primitives/Alert/Alert.d.ts +6 -1
  22. package/dist/components/primitives/Alert/Alert.d.ts.map +1 -1
  23. package/dist/components/primitives/Avatar/Avatar.d.ts +2 -0
  24. package/dist/components/primitives/Avatar/Avatar.d.ts.map +1 -1
  25. package/dist/components/primitives/Badge/Badge.d.ts +17 -1
  26. package/dist/components/primitives/Badge/Badge.d.ts.map +1 -1
  27. package/dist/components/primitives/Button/Button.d.ts +5 -1
  28. package/dist/components/primitives/Button/Button.d.ts.map +1 -1
  29. package/dist/components/primitives/Card/Card.d.ts +4 -1
  30. package/dist/components/primitives/Card/Card.d.ts.map +1 -1
  31. package/dist/components/primitives/Checkbox/Checkbox.d.ts +2 -0
  32. package/dist/components/primitives/Checkbox/Checkbox.d.ts.map +1 -1
  33. package/dist/components/primitives/Pdf/Pdf.d.ts +6 -0
  34. package/dist/components/primitives/Pdf/Pdf.d.ts.map +1 -0
  35. package/dist/components/primitives/Radio/Radio.d.ts +11 -0
  36. package/dist/components/primitives/Radio/Radio.d.ts.map +1 -0
  37. package/dist/components/primitives/Radio/index.d.ts +2 -0
  38. package/dist/components/primitives/Radio/index.d.ts.map +1 -0
  39. package/dist/components/primitives/Select/Select.d.ts +17 -1
  40. package/dist/components/primitives/Select/Select.d.ts.map +1 -1
  41. package/dist/components/primitives/Skeleton/Skeleton.d.ts +4 -1
  42. package/dist/components/primitives/Skeleton/Skeleton.d.ts.map +1 -1
  43. package/dist/components/primitives/Slider/Slider.d.ts +5 -0
  44. package/dist/components/primitives/Slider/Slider.d.ts.map +1 -0
  45. package/dist/components/primitives/Slider/index.d.ts +2 -0
  46. package/dist/components/primitives/Slider/index.d.ts.map +1 -0
  47. package/dist/components/primitives/Table/Table.d.ts +3 -1
  48. package/dist/components/primitives/Table/Table.d.ts.map +1 -1
  49. package/dist/components/primitives/Tabs/Tabs.d.ts +24 -9
  50. package/dist/components/primitives/Tabs/Tabs.d.ts.map +1 -1
  51. package/dist/components/primitives/Textarea/Textarea.d.ts +2 -0
  52. package/dist/components/primitives/Textarea/Textarea.d.ts.map +1 -1
  53. package/dist/components/primitives/Tooltip/Tooltip.d.ts +9 -2
  54. package/dist/components/primitives/Tooltip/Tooltip.d.ts.map +1 -1
  55. package/dist/components/primitives/index.d.ts +3 -0
  56. package/dist/components/primitives/index.d.ts.map +1 -1
  57. package/dist/components/primitives/layout.d.ts +63 -2
  58. package/dist/components/primitives/layout.d.ts.map +1 -1
  59. package/dist/components/primitives/muiCompat.d.ts +348 -0
  60. package/dist/components/primitives/muiCompat.d.ts.map +1 -0
  61. package/dist/components/primitives/muiIcons.d.ts +167 -0
  62. package/dist/components/primitives/muiIcons.d.ts.map +1 -0
  63. package/dist/components/primitives/sx.d.ts +38 -0
  64. package/dist/components/primitives/sx.d.ts.map +1 -0
  65. package/dist/components/specific/EquityRibbonChart/EquityRibbonChart.d.ts +12 -1
  66. package/dist/components/specific/EquityRibbonChart/EquityRibbonChart.d.ts.map +1 -1
  67. package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts +3 -1
  68. package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts.map +1 -1
  69. package/dist/components/specific/EquityRibbonChart/ribbonGeometry.d.ts +19 -1
  70. package/dist/components/specific/EquityRibbonChart/ribbonGeometry.d.ts.map +1 -1
  71. package/dist/fairmint-ui.cjs +394 -46451
  72. package/dist/fairmint-ui.cjs.map +1 -1
  73. package/dist/fairmint-ui.js +394 -46435
  74. package/dist/fairmint-ui.js.map +1 -1
  75. package/dist/hooks/useForm.d.ts.map +1 -1
  76. package/dist/index-B6eAMGVH.js +50603 -0
  77. package/dist/index-B6eAMGVH.js.map +1 -0
  78. package/dist/index-BN_b3b9v.cjs +27204 -0
  79. package/dist/index-BN_b3b9v.cjs.map +1 -0
  80. package/dist/index-DmUNOpDf.js +27203 -0
  81. package/dist/index-DmUNOpDf.js.map +1 -0
  82. package/dist/index-vfh1pYpx.cjs +50618 -0
  83. package/dist/index-vfh1pYpx.cjs.map +1 -0
  84. package/dist/index.d.ts +20 -5
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/mui-icons.cjs +151 -0
  87. package/dist/mui-icons.cjs.map +1 -0
  88. package/dist/mui-icons.js +151 -0
  89. package/dist/mui-icons.js.map +1 -0
  90. package/dist/muiIcons-CDzIXPwO.js +1346 -0
  91. package/dist/muiIcons-CDzIXPwO.js.map +1 -0
  92. package/dist/muiIcons-D17otJ8p.cjs +1345 -0
  93. package/dist/muiIcons-D17otJ8p.cjs.map +1 -0
  94. package/dist/snackbarCompat.d.ts +29 -0
  95. package/dist/snackbarCompat.d.ts.map +1 -0
  96. package/dist/styles.css +458 -12
  97. package/dist/theme/index.d.ts +25 -26
  98. package/dist/theme/index.d.ts.map +1 -1
  99. package/dist/theme/zIndex.d.ts +0 -4
  100. package/dist/theme/zIndex.d.ts.map +1 -1
  101. package/dist/utils/color.d.ts +3 -0
  102. package/dist/utils/color.d.ts.map +1 -0
  103. package/dist/utils/index.d.ts +1 -0
  104. package/dist/utils/index.d.ts.map +1 -1
  105. package/dist/vite.cjs +19 -4
  106. package/dist/vite.cjs.map +1 -1
  107. package/dist/vite.d.ts +1 -14
  108. package/dist/vite.d.ts.map +1 -1
  109. package/dist/vite.js +19 -4
  110. package/dist/vite.js.map +1 -1
  111. package/package.json +8 -1
package/dist/styles.css CHANGED
@@ -4,6 +4,11 @@
4
4
  height: clamp(360px, 42vw, 500px);
5
5
  }
6
6
 
7
+ .fairmint-equity-ribbon--has-chart-width {
8
+ width: 100%;
9
+ max-width: var(--fairmint-ribbon-nominal-width);
10
+ }
11
+
7
12
  .fairmint-equity-ribbon--bg-white {
8
13
  background: var(--fairmint-ribbon-surface-white);
9
14
  }
@@ -33,18 +38,7 @@
33
38
  .fairmint-equity-ribbon__band {
34
39
  stroke-width: 2px;
35
40
  stroke-linejoin: round;
36
- }
37
-
38
- .fairmint-equity-ribbon--bg-white .fairmint-equity-ribbon__band {
39
- stroke: var(--fairmint-ribbon-surface-white);
40
- }
41
-
42
- .fairmint-equity-ribbon--bg-black .fairmint-equity-ribbon__band {
43
- stroke: var(--fairmint-ribbon-surface-black);
44
- }
45
-
46
- .fairmint-equity-ribbon--bg-transparent .fairmint-equity-ribbon__band {
47
- stroke: none;
41
+ stroke: var(--fairmint-ribbon-gap-color, var(--fairmint-ribbon-surface-black));
48
42
  }
49
43
 
50
44
  .fairmint-equity-ribbon--layout-mark .fairmint-equity-ribbon__band {
@@ -9135,3 +9129,455 @@ fieldset:disabled .m_38aeed47:where(:not([data-inverted])),
9135
9129
  .fairmint-multiselect-pills-list > * {
9136
9130
  flex-shrink: 0;
9137
9131
  }
9132
+ /* Copyright 2014 Mozilla Foundation
9133
+ *
9134
+ * Licensed under the Apache License, Version 2.0 (the "License");
9135
+ * you may not use this file except in compliance with the License.
9136
+ * You may obtain a copy of the License at
9137
+ *
9138
+ * http://www.apache.org/licenses/LICENSE-2.0
9139
+ *
9140
+ * Unless required by applicable law or agreed to in writing, software
9141
+ * distributed under the License is distributed on an "AS IS" BASIS,
9142
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9143
+ * See the License for the specific language governing permissions and
9144
+ * limitations under the License.
9145
+ */
9146
+
9147
+ :root {
9148
+ --react-pdf-annotation-layer: 1;
9149
+ --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
9150
+ --input-focus-border-color: Highlight;
9151
+ --input-focus-outline: 1px solid Canvas;
9152
+ --input-unfocused-border-color: transparent;
9153
+ --input-disabled-border-color: transparent;
9154
+ --input-hover-border-color: black;
9155
+ --link-outline: none;
9156
+ }
9157
+
9158
+ @media screen and (forced-colors: active) {
9159
+ :root {
9160
+ --input-focus-border-color: CanvasText;
9161
+ --input-unfocused-border-color: ActiveText;
9162
+ --input-disabled-border-color: GrayText;
9163
+ --input-hover-border-color: Highlight;
9164
+ --link-outline: 1.5px solid LinkText;
9165
+ }
9166
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
9167
+ .annotationLayer .choiceWidgetAnnotation select:required,
9168
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required {
9169
+ outline: 1.5px solid selectedItem;
9170
+ }
9171
+
9172
+ .annotationLayer .linkAnnotation:hover {
9173
+ backdrop-filter: invert(100%);
9174
+ }
9175
+ }
9176
+
9177
+ .annotationLayer {
9178
+ position: absolute;
9179
+ top: 0;
9180
+ left: 0;
9181
+ pointer-events: none;
9182
+ transform-origin: 0 0;
9183
+ z-index: 3;
9184
+ }
9185
+
9186
+ .annotationLayer[data-main-rotation='90'] .norotate {
9187
+ transform: rotate(270deg) translateX(-100%);
9188
+ }
9189
+ .annotationLayer[data-main-rotation='180'] .norotate {
9190
+ transform: rotate(180deg) translate(-100%, -100%);
9191
+ }
9192
+ .annotationLayer[data-main-rotation='270'] .norotate {
9193
+ transform: rotate(90deg) translateY(-100%);
9194
+ }
9195
+
9196
+ .annotationLayer canvas {
9197
+ position: absolute;
9198
+ width: 100%;
9199
+ height: 100%;
9200
+ }
9201
+
9202
+ .annotationLayer section {
9203
+ position: absolute;
9204
+ text-align: initial;
9205
+ pointer-events: auto;
9206
+ box-sizing: border-box;
9207
+ margin: 0;
9208
+ transform-origin: 0 0;
9209
+ }
9210
+
9211
+ .annotationLayer .linkAnnotation {
9212
+ outline: var(--link-outline);
9213
+ }
9214
+
9215
+ .textLayer.selecting ~ .annotationLayer section {
9216
+ pointer-events: none;
9217
+ }
9218
+
9219
+ .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {
9220
+ position: absolute;
9221
+ font-size: 1em;
9222
+ top: 0;
9223
+ left: 0;
9224
+ width: 100%;
9225
+ height: 100%;
9226
+ }
9227
+
9228
+ .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a:hover {
9229
+ opacity: 0.2;
9230
+ background: rgba(255, 255, 0, 1);
9231
+ box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
9232
+ }
9233
+
9234
+ .annotationLayer .textAnnotation img {
9235
+ position: absolute;
9236
+ cursor: pointer;
9237
+ width: 100%;
9238
+ height: 100%;
9239
+ top: 0;
9240
+ left: 0;
9241
+ }
9242
+
9243
+ .annotationLayer .textWidgetAnnotation :is(input, textarea),
9244
+ .annotationLayer .choiceWidgetAnnotation select,
9245
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
9246
+ background-image: var(--annotation-unfocused-field-background);
9247
+ border: 2px solid var(--input-unfocused-border-color);
9248
+ box-sizing: border-box;
9249
+ font: calc(9px * var(--total-scale-factor)) sans-serif;
9250
+ height: 100%;
9251
+ margin: 0;
9252
+ vertical-align: top;
9253
+ width: 100%;
9254
+ }
9255
+
9256
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
9257
+ .annotationLayer .choiceWidgetAnnotation select:required,
9258
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required {
9259
+ outline: 1.5px solid red;
9260
+ }
9261
+
9262
+ .annotationLayer .choiceWidgetAnnotation select option {
9263
+ padding: 0;
9264
+ }
9265
+
9266
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
9267
+ border-radius: 50%;
9268
+ }
9269
+
9270
+ .annotationLayer .textWidgetAnnotation textarea {
9271
+ resize: none;
9272
+ }
9273
+
9274
+ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
9275
+ .annotationLayer .choiceWidgetAnnotation select[disabled],
9276
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input[disabled] {
9277
+ background: none;
9278
+ border: 2px solid var(--input-disabled-border-color);
9279
+ cursor: not-allowed;
9280
+ }
9281
+
9282
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
9283
+ .annotationLayer .choiceWidgetAnnotation select:hover,
9284
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:hover {
9285
+ border: 2px solid var(--input-hover-border-color);
9286
+ }
9287
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
9288
+ .annotationLayer .choiceWidgetAnnotation select:hover,
9289
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:hover {
9290
+ border-radius: 2px;
9291
+ }
9292
+
9293
+ .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
9294
+ .annotationLayer .choiceWidgetAnnotation select:focus {
9295
+ background: none;
9296
+ border: 2px solid var(--input-focus-border-color);
9297
+ border-radius: 2px;
9298
+ outline: var(--input-focus-outline);
9299
+ }
9300
+
9301
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
9302
+ background-image: none;
9303
+ background-color: transparent;
9304
+ }
9305
+
9306
+ .annotationLayer .buttonWidgetAnnotation.checkBox :focus {
9307
+ border: 2px solid var(--input-focus-border-color);
9308
+ border-radius: 2px;
9309
+ outline: var(--input-focus-outline);
9310
+ }
9311
+
9312
+ .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
9313
+ border: 2px solid var(--input-focus-border-color);
9314
+ outline: var(--input-focus-outline);
9315
+ }
9316
+
9317
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,
9318
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,
9319
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {
9320
+ background-color: CanvasText;
9321
+ content: '';
9322
+ display: block;
9323
+ position: absolute;
9324
+ }
9325
+
9326
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,
9327
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {
9328
+ height: 80%;
9329
+ left: 45%;
9330
+ width: 1px;
9331
+ }
9332
+
9333
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before {
9334
+ transform: rotate(45deg);
9335
+ }
9336
+
9337
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {
9338
+ transform: rotate(-45deg);
9339
+ }
9340
+
9341
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {
9342
+ border-radius: 50%;
9343
+ height: 50%;
9344
+ left: 30%;
9345
+ top: 20%;
9346
+ width: 50%;
9347
+ }
9348
+
9349
+ .annotationLayer .textWidgetAnnotation input.comb {
9350
+ font-family: monospace;
9351
+ padding-left: 2px;
9352
+ padding-right: 0;
9353
+ }
9354
+
9355
+ .annotationLayer .textWidgetAnnotation input.comb:focus {
9356
+ /*
9357
+ * Letter spacing is placed on the right side of each character. Hence, the
9358
+ * letter spacing of the last character may be placed outside the visible
9359
+ * area, causing horizontal scrolling. We avoid this by extending the width
9360
+ * when the element has focus and revert this when it loses focus.
9361
+ */
9362
+ width: 103%;
9363
+ }
9364
+
9365
+ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
9366
+ appearance: none;
9367
+ }
9368
+
9369
+ .annotationLayer .popupTriggerArea {
9370
+ height: 100%;
9371
+ width: 100%;
9372
+ }
9373
+
9374
+ .annotationLayer .fileAttachmentAnnotation .popupTriggerArea {
9375
+ position: absolute;
9376
+ }
9377
+
9378
+ .annotationLayer .popupWrapper {
9379
+ position: absolute;
9380
+ font-size: calc(9px * var(--total-scale-factor));
9381
+ width: 100%;
9382
+ min-width: calc(180px * var(--total-scale-factor));
9383
+ pointer-events: none;
9384
+ }
9385
+
9386
+ .annotationLayer .popup {
9387
+ position: absolute;
9388
+ max-width: calc(180px * var(--total-scale-factor));
9389
+ background-color: rgba(255, 255, 153, 1);
9390
+ box-shadow: 0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor))
9391
+ rgba(136, 136, 136, 1);
9392
+ border-radius: calc(2px * var(--total-scale-factor));
9393
+ padding: calc(6px * var(--total-scale-factor));
9394
+ margin-left: calc(5px * var(--total-scale-factor));
9395
+ cursor: pointer;
9396
+ font: message-box;
9397
+ white-space: normal;
9398
+ word-wrap: break-word;
9399
+ pointer-events: auto;
9400
+ }
9401
+
9402
+ .annotationLayer .popup > * {
9403
+ font-size: calc(9px * var(--total-scale-factor));
9404
+ }
9405
+
9406
+ .annotationLayer .popup h1 {
9407
+ display: inline-block;
9408
+ }
9409
+
9410
+ .annotationLayer .popupDate {
9411
+ display: inline-block;
9412
+ margin-left: calc(5px * var(--total-scale-factor));
9413
+ }
9414
+
9415
+ .annotationLayer .popupContent {
9416
+ border-top: 1px solid rgba(51, 51, 51, 1);
9417
+ margin-top: calc(2px * var(--total-scale-factor));
9418
+ padding-top: calc(2px * var(--total-scale-factor));
9419
+ }
9420
+
9421
+ .annotationLayer .richText > * {
9422
+ white-space: pre-wrap;
9423
+ font-size: calc(9px * var(--total-scale-factor));
9424
+ }
9425
+
9426
+ .annotationLayer .highlightAnnotation,
9427
+ .annotationLayer .underlineAnnotation,
9428
+ .annotationLayer .squigglyAnnotation,
9429
+ .annotationLayer .strikeoutAnnotation,
9430
+ .annotationLayer .freeTextAnnotation,
9431
+ .annotationLayer .lineAnnotation svg line,
9432
+ .annotationLayer .squareAnnotation svg rect,
9433
+ .annotationLayer .circleAnnotation svg ellipse,
9434
+ .annotationLayer .polylineAnnotation svg polyline,
9435
+ .annotationLayer .polygonAnnotation svg polygon,
9436
+ .annotationLayer .caretAnnotation,
9437
+ .annotationLayer .inkAnnotation svg polyline,
9438
+ .annotationLayer .stampAnnotation,
9439
+ .annotationLayer .fileAttachmentAnnotation {
9440
+ cursor: pointer;
9441
+ }
9442
+
9443
+ .annotationLayer section svg {
9444
+ position: absolute;
9445
+ width: 100%;
9446
+ height: 100%;
9447
+ top: 0;
9448
+ left: 0;
9449
+ }
9450
+
9451
+ .annotationLayer .annotationTextContent {
9452
+ position: absolute;
9453
+ width: 100%;
9454
+ height: 100%;
9455
+ opacity: 0;
9456
+ color: transparent;
9457
+ user-select: none;
9458
+ pointer-events: none;
9459
+ }
9460
+
9461
+ .annotationLayer .annotationTextContent span {
9462
+ width: 100%;
9463
+ display: inline-block;
9464
+ }
9465
+ /* Copyright 2014 Mozilla Foundation
9466
+ *
9467
+ * Licensed under the Apache License, Version 2.0 (the "License");
9468
+ * you may not use this file except in compliance with the License.
9469
+ * You may obtain a copy of the License at
9470
+ *
9471
+ * http://www.apache.org/licenses/LICENSE-2.0
9472
+ *
9473
+ * Unless required by applicable law or agreed to in writing, software
9474
+ * distributed under the License is distributed on an "AS IS" BASIS,
9475
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9476
+ * See the License for the specific language governing permissions and
9477
+ * limitations under the License.
9478
+ */
9479
+
9480
+ :root {
9481
+ --react-pdf-text-layer: 1;
9482
+ --highlight-bg-color: rgba(180, 0, 170, 1);
9483
+ --highlight-selected-bg-color: rgba(0, 100, 0, 1);
9484
+ }
9485
+
9486
+ @media screen and (forced-colors: active) {
9487
+ :root {
9488
+ --highlight-bg-color: Highlight;
9489
+ --highlight-selected-bg-color: ButtonText;
9490
+ }
9491
+ }
9492
+
9493
+ [data-main-rotation='90'] {
9494
+ transform: rotate(90deg) translateY(-100%);
9495
+ }
9496
+ [data-main-rotation='180'] {
9497
+ transform: rotate(180deg) translate(-100%, -100%);
9498
+ }
9499
+ [data-main-rotation='270'] {
9500
+ transform: rotate(270deg) translateX(-100%);
9501
+ }
9502
+
9503
+ .textLayer {
9504
+ position: absolute;
9505
+ text-align: initial;
9506
+ inset: 0;
9507
+ overflow: hidden;
9508
+ line-height: 1;
9509
+ text-size-adjust: none;
9510
+ forced-color-adjust: none;
9511
+ transform-origin: 0 0;
9512
+ z-index: 2;
9513
+ }
9514
+
9515
+ .textLayer :is(span, br) {
9516
+ color: transparent;
9517
+ position: absolute;
9518
+ white-space: pre;
9519
+ cursor: text;
9520
+ margin: 0;
9521
+ transform-origin: 0 0;
9522
+ }
9523
+
9524
+ /* Only necessary in Google Chrome, see issue 14205, and most unfortunately
9525
+ * the problem doesn't show up in "text" reference tests. */
9526
+ .textLayer span.markedContent {
9527
+ top: 0;
9528
+ height: 0;
9529
+ }
9530
+
9531
+ .textLayer .highlight {
9532
+ margin: -1px;
9533
+ padding: 1px;
9534
+ background-color: var(--highlight-bg-color);
9535
+ border-radius: 4px;
9536
+ }
9537
+
9538
+ .textLayer .highlight.appended {
9539
+ position: initial;
9540
+ }
9541
+
9542
+ .textLayer .highlight.begin {
9543
+ border-radius: 4px 0 0 4px;
9544
+ }
9545
+
9546
+ .textLayer .highlight.end {
9547
+ border-radius: 0 4px 4px 0;
9548
+ }
9549
+
9550
+ .textLayer .highlight.middle {
9551
+ border-radius: 0;
9552
+ }
9553
+
9554
+ .textLayer .highlight.selected {
9555
+ background-color: var(--highlight-selected-bg-color);
9556
+ }
9557
+
9558
+ /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
9559
+ .textLayer br::selection {
9560
+ background: transparent;
9561
+ }
9562
+
9563
+ .textLayer .endOfContent {
9564
+ display: block;
9565
+ position: absolute;
9566
+ inset: 100% 0 0;
9567
+ z-index: -1;
9568
+ cursor: default;
9569
+ user-select: none;
9570
+ }
9571
+
9572
+ .textLayer.selecting .endOfContent {
9573
+ top: 0;
9574
+ }
9575
+
9576
+ .hiddenCanvasElement {
9577
+ position: absolute;
9578
+ top: 0;
9579
+ left: 0;
9580
+ width: 0;
9581
+ height: 0;
9582
+ display: none;
9583
+ }
@@ -27,20 +27,20 @@ export declare const theme: {
27
27
  black?: string | undefined;
28
28
  colors?: {
29
29
  [x: string & {}]: MantineColorsTuple | undefined;
30
- indigo?: MantineColorsTuple | undefined;
31
- gray?: MantineColorsTuple | undefined;
32
- teal?: MantineColorsTuple | undefined;
30
+ blue?: MantineColorsTuple | undefined;
33
31
  cyan?: MantineColorsTuple | undefined;
32
+ gray?: MantineColorsTuple | undefined;
34
33
  green?: MantineColorsTuple | undefined;
35
- dark?: MantineColorsTuple | undefined;
36
- red?: MantineColorsTuple | undefined;
34
+ indigo?: MantineColorsTuple | undefined;
35
+ lime?: MantineColorsTuple | undefined;
36
+ orange?: MantineColorsTuple | undefined;
37
37
  pink?: MantineColorsTuple | undefined;
38
- grape?: MantineColorsTuple | undefined;
38
+ red?: MantineColorsTuple | undefined;
39
+ teal?: MantineColorsTuple | undefined;
39
40
  violet?: MantineColorsTuple | undefined;
40
- blue?: MantineColorsTuple | undefined;
41
- lime?: MantineColorsTuple | undefined;
42
41
  yellow?: MantineColorsTuple | undefined;
43
- orange?: MantineColorsTuple | undefined;
42
+ dark?: MantineColorsTuple | undefined;
43
+ grape?: MantineColorsTuple | undefined;
44
44
  } | undefined;
45
45
  primaryShade?: import('@mantine/core').MantineColorShade | {
46
46
  light?: import('@mantine/core').MantineColorShade | undefined;
@@ -55,7 +55,7 @@ export declare const theme: {
55
55
  headings?: {
56
56
  fontFamily?: string | undefined;
57
57
  fontWeight?: string | undefined;
58
- textWrap?: "wrap" | "nowrap" | "balance" | "pretty" | "stable" | undefined;
58
+ textWrap?: "balance" | "nowrap" | "wrap" | "stable" | "pretty" | undefined;
59
59
  sizes?: {
60
60
  h1?: {
61
61
  fontSize?: string | undefined;
@@ -166,11 +166,6 @@ export declare const theme: {
166
166
  * --mantine-* variables directly. All light/dark switching is centralised here.
167
167
  */
168
168
  export declare const fairmintCssVariables: CSSVariablesResolver;
169
- /**
170
- * Typed JS references to every --fairmint-* CSS custom property.
171
- * Use these in component code instead of raw "var(--fairmint-...)" strings so
172
- * that renaming a token requires one change here rather than hunting every file.
173
- */
174
169
  /**
175
170
  * Typed JS references to every --fairmint-* CSS custom property.
176
171
  * Use these in component code instead of raw "var(--fairmint-...)" strings so
@@ -219,20 +214,20 @@ export declare function createFairmintMantineProviderProps(colorScheme?: "light"
219
214
  black?: string | undefined;
220
215
  colors?: {
221
216
  [x: string & {}]: MantineColorsTuple | undefined;
222
- indigo?: MantineColorsTuple | undefined;
223
- gray?: MantineColorsTuple | undefined;
224
- teal?: MantineColorsTuple | undefined;
217
+ blue?: MantineColorsTuple | undefined;
225
218
  cyan?: MantineColorsTuple | undefined;
219
+ gray?: MantineColorsTuple | undefined;
226
220
  green?: MantineColorsTuple | undefined;
227
- dark?: MantineColorsTuple | undefined;
228
- red?: MantineColorsTuple | undefined;
221
+ indigo?: MantineColorsTuple | undefined;
222
+ lime?: MantineColorsTuple | undefined;
223
+ orange?: MantineColorsTuple | undefined;
229
224
  pink?: MantineColorsTuple | undefined;
230
- grape?: MantineColorsTuple | undefined;
225
+ red?: MantineColorsTuple | undefined;
226
+ teal?: MantineColorsTuple | undefined;
231
227
  violet?: MantineColorsTuple | undefined;
232
- blue?: MantineColorsTuple | undefined;
233
- lime?: MantineColorsTuple | undefined;
234
228
  yellow?: MantineColorsTuple | undefined;
235
- orange?: MantineColorsTuple | undefined;
229
+ dark?: MantineColorsTuple | undefined;
230
+ grape?: MantineColorsTuple | undefined;
236
231
  } | undefined;
237
232
  primaryShade?: import('@mantine/core').MantineColorShade | {
238
233
  light?: import('@mantine/core').MantineColorShade | undefined;
@@ -247,7 +242,7 @@ export declare function createFairmintMantineProviderProps(colorScheme?: "light"
247
242
  headings?: {
248
243
  fontFamily?: string | undefined;
249
244
  fontWeight?: string | undefined;
250
- textWrap?: "wrap" | "nowrap" | "balance" | "pretty" | "stable" | undefined;
245
+ textWrap?: "balance" | "nowrap" | "wrap" | "stable" | "pretty" | undefined;
251
246
  sizes?: {
252
247
  h1?: {
253
248
  fontSize?: string | undefined;
@@ -353,7 +348,7 @@ export declare function createFairmintMantineProviderProps(colorScheme?: "light"
353
348
  } | undefined;
354
349
  };
355
350
  readonly cssVariablesResolver: CSSVariablesResolver;
356
- readonly defaultColorScheme: "dark" | "light" | "auto";
351
+ readonly defaultColorScheme: "auto" | "dark" | "light";
357
352
  };
358
353
  /** Brand colors for gradients and custom styling. */
359
354
  export declare const brandColors: {
@@ -362,6 +357,10 @@ export declare const brandColors: {
362
357
  readonly indigo: "#6366F1";
363
358
  readonly gradient: "linear-gradient(90deg, #0A4EFB 0%, #9E03FF 100%)";
364
359
  };
360
+ export declare const commonColors: {
361
+ readonly black: "#000000";
362
+ readonly white: "#ffffff";
363
+ };
365
364
  /**
366
365
  * Card/row shadow used by WalletList and similar card surfaces.
367
366
  * Equivalent to neutralColors[900] at ~10% opacity (#111927 → #1119271A).
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,o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AW;;;;;CAKd,CAAC;AAEX,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,WAAW;;CAEd,CAAC;AAEX,iGAAiG;AACjG,eAAO,MAAM,aAAa;;;;;;;;;;;CAWhB,CAAC;AAEX,gDAAgD;AAChD,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC"}
@@ -1,6 +1,2 @@
1
- /**
2
- * Mantine overlays in hybrid apps must sit above the legacy MUI shell
3
- * (appBar 1100, persistent drawer 1200).
4
- */
5
1
  export declare const overlayZIndexAboveLegacyShell = 1300;
6
2
  //# sourceMappingURL=zIndex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/theme/zIndex.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,6BAA6B,OAAO,CAAC"}
1
+ {"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/theme/zIndex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const getLogoFilter: (themeMode?: string) => "none" | "brightness(0) invert(1)";
2
+ export declare const isLightColor: (hexColor?: string | null) => boolean;
3
+ //# sourceMappingURL=color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/utils/color.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,uCACW,CAAC;AAE5D,eAAO,MAAM,YAAY,GAAI,WAAW,MAAM,GAAG,IAAI,YAiBpD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './address';
2
2
  export * from './avatar';
3
+ export * from './color';
3
4
  export * from './format';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
package/dist/vite.cjs CHANGED
@@ -3,10 +3,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const node_fs = require("node:fs");
4
4
  const node_path = require("node:path");
5
5
  function fairmintUiLocal(options) {
6
- const enabled = process.env.LOCAL_UI === "1";
6
+ const enabled = options?.enabled ?? process.env.LOCAL_UI === "1";
7
7
  const localSource = options?.source ?? node_path.resolve(process.cwd(), "../ui/src/index.ts");
8
8
  const localStyles = node_path.resolve(localSource, "../styles.css");
9
+ const consumerNodeModules = node_path.resolve(process.cwd(), "node_modules");
10
+ const localNodeModules = node_path.resolve(localSource, "../../node_modules");
9
11
  const found = enabled && node_fs.existsSync(localSource);
12
+ const resolveDependency = (packageName) => {
13
+ const consumerPath = node_path.resolve(consumerNodeModules, packageName);
14
+ return node_fs.existsSync(consumerPath) ? consumerPath : node_path.resolve(localNodeModules, packageName);
15
+ };
10
16
  if (enabled && !node_fs.existsSync(localSource)) {
11
17
  console.warn("[@fairmint/ui] LOCAL_UI=1 but source not found at:", localSource);
12
18
  }
@@ -20,17 +26,26 @@ function fairmintUiLocal(options) {
20
26
  return {
21
27
  resolve: {
22
28
  alias: {
29
+ "@mantine/core": resolveDependency("@mantine/core"),
30
+ "@mantine/dates": resolveDependency("@mantine/dates"),
31
+ "@mantine/form": resolveDependency("@mantine/form"),
32
+ "@mantine/hooks": resolveDependency("@mantine/hooks"),
33
+ "@mantine/notifications": resolveDependency("@mantine/notifications"),
23
34
  "@fairmint/ui/styles.css": localStyles,
24
- "@fairmint/ui": localSource
35
+ "@fairmint/ui": localSource,
36
+ react: resolveDependency("react"),
37
+ "react-dom": resolveDependency("react-dom"),
38
+ zod: resolveDependency("zod")
25
39
  },
26
40
  dedupe: [
27
41
  "@mantine/core",
42
+ "@mantine/form",
28
43
  "@mantine/hooks",
29
44
  "@mantine/dates",
30
- "@mantine/form",
31
45
  "@mantine/notifications",
32
46
  "react",
33
- "react-dom"
47
+ "react-dom",
48
+ "zod"
34
49
  ]
35
50
  }
36
51
  };