@layerfi/components 0.1.115 → 0.1.116-alpha

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/index.css CHANGED
@@ -4118,94 +4118,6 @@ tbody .Layer__table__empty-row:first-child {
4118
4118
  width: 12px;
4119
4119
  }
4120
4120
  }
4121
- .Layer__bank-transactions__notifications {
4122
- position: absolute;
4123
- z-index: 1;
4124
- bottom: var(--spacing-2xs);
4125
- left: calc(100% - 340px - var(--spacing-2xs));
4126
- display: flex;
4127
- flex-direction: column;
4128
- min-width: 300px;
4129
- transition: all var(--transition-speed) ease-in-out;
4130
- }
4131
- .Layer__bank-transactions__notifications .Layer__bank-transactions__notification {
4132
- overflow: hidden;
4133
- height: 56px;
4134
- padding: 12px;
4135
- margin: 0;
4136
- margin-top: -12px;
4137
- cursor: pointer;
4138
- transition: all var(--transition-speed) ease-in-out;
4139
- }
4140
- .Layer__bank-transactions__notifications .Layer__bank-transactions__notification:hover .Layer__bank-transactions__notification-content {
4141
- box-shadow: 0 0 3px 0 var(--base-transparent-12), 0 0 0 1px var(--color-base-200);
4142
- }
4143
- .Layer__bank-transactions__notifications .Layer__bank-transactions__notification-content {
4144
- display: flex;
4145
- gap: var(--spacing-sm);
4146
- align-items: center;
4147
- padding: var(--spacing-xs);
4148
- padding-right: var(--spacing-md);
4149
- border-radius: var(--border-radius-3xs);
4150
- box-shadow: 0 0 12px 0 var(--base-transparent-12), 0 0 0 1px var(--color-base-200);
4151
- background: var(--color-base-0);
4152
- }
4153
- .Layer__bank-transactions__notifications .Layer__bank-transactions__notification-icon {
4154
- display: flex;
4155
- flex-direction: column;
4156
- align-items: center;
4157
- justify-content: center;
4158
- height: var(--spacing-3xl);
4159
- width: var(--spacing-3xl);
4160
- border-radius: var(--border-radius-3xs);
4161
- box-shadow: 0 1px 2px 0 var(--base-transparent-6), 0 0 0 1px var(--color-base-300);
4162
- background: var(--color-base-0);
4163
- color: var(--color-danger);
4164
- }
4165
- .Layer__bank-transactions__notifications .Layer__bank-transactions__notification-text {
4166
- display: flex;
4167
- flex-direction: column;
4168
- }
4169
- .Layer__bank-transactions__notifications .Layer__bank-transactions__notification-title {
4170
- font-size: var(--text-md);
4171
- color: var(--color-base-1000);
4172
- }
4173
- .Layer__bank-transactions__notifications .Layer__bank-transactions__notification-message {
4174
- font-size: var(--text-sm);
4175
- color: var(--color-base-700);
4176
- }
4177
- @keyframes fade-in {
4178
- from {
4179
- opacity: 0;
4180
- transform: scale(0.5);
4181
- }
4182
- to {
4183
- opacity: 1;
4184
- transform: scale(1);
4185
- }
4186
- }
4187
- @keyframes fade-out {
4188
- from {
4189
- height: 56px;
4190
- padding-top: 12px;
4191
- padding-bottom: 12px;
4192
- opacity: 1;
4193
- transform: scale(1);
4194
- }
4195
- to {
4196
- height: 0;
4197
- padding-top: 6px;
4198
- padding-bottom: 6px;
4199
- opacity: 0;
4200
- transform: scale(0.8);
4201
- }
4202
- }
4203
- .notification-enter {
4204
- animation: fade-in var(--transition-speed) forwards;
4205
- }
4206
- .notification-exit {
4207
- animation: fade-out var(--transition-speed) forwards;
4208
- }
4209
4121
  .Layer__expanded-bank-transaction-row__splits-inputs + .Layer__text--error {
4210
4122
  padding: var(--spacing-2xs) 0;
4211
4123
  padding-bottom: var(--spacing-md);
@@ -7092,181 +7004,6 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
7092
7004
  * A `label` is an inline element by default. This change allows us to apply padding.
7093
7005
  */
7094
7006
  display: inline-block;
7095
- }.Layer__ComboBoxContainer {
7096
- display: grid;
7097
- }
7098
-
7099
- .Layer__ComboBoxControl {
7100
- display: grid;
7101
- grid-template-columns: minmax(0, 1fr) auto;
7102
- --block-size: 2.25rem;
7103
- block-size: var(--block-size);
7104
- border-radius: var(--input-border-radius);
7105
- border: 1px solid var(--color-base-300);
7106
- background-color: var(--color-base-0);
7107
- }
7108
- .Layer__ComboBoxControl--focused {
7109
- border-color: var(--outline-active);
7110
- }
7111
- .Layer__ComboBoxControl--disabled {
7112
- cursor: not-allowed;
7113
- }
7114
- .Layer__ComboBoxControl--readonly {
7115
- background-color: var(--bg-muted);
7116
- }
7117
-
7118
- .Layer__ComboBoxContainer > .Layer__ComboBoxControl {
7119
- /*
7120
- * This is intentional.
7121
- *
7122
- * The "unstyled" variant of react-select still forces a min-height on the control of 38 px.
7123
- */
7124
- block-size: var(--block-size);
7125
- min-block-size: var(--block-size);
7126
- }
7127
- .Layer__ComboBoxContainer > .Layer__ComboBoxControl--focused {
7128
- /*
7129
- * This seems like the only workaround when the "unstyled" variant
7130
- * includes a (malicious) `outline: 0 !important`.
7131
- *
7132
- * @see {https://github.com/JedWatson/react-select/blob/2a913698ad3d7759fb8e6bc5dd8a7d839227da2f/packages/react-select/src/components/Control.tsx#L49}
7133
- */
7134
- outline: 2px solid var(--outline-default) !important;
7135
- }
7136
-
7137
- .Layer__ComboBoxValueContainer {
7138
- padding-inline-start: var(--spacing-xs);
7139
- cursor: text;
7140
- font-size: var(--input-font-size);
7141
- }
7142
-
7143
- .Layer__ComboBoxIndicatorsContainer {
7144
- padding-inline-end: var(--spacing-3xs);
7145
- }
7146
- .Layer__ComboBoxIndicatorsContainer--readonly {
7147
- visibility: hidden;
7148
- }
7149
-
7150
- .Layer__ComboBoxClearIndicator {
7151
- display: flex;
7152
- align-items: center;
7153
- justify-content: center;
7154
- --size: 1.25rem;
7155
- block-size: var(--size);
7156
- inline-size: var(--size);
7157
- cursor: pointer;
7158
- }
7159
-
7160
- .Layer__ComboBoxLoadingIndicator {
7161
- display: flex;
7162
- align-items: center;
7163
- justify-content: center;
7164
- --size: 1.25rem;
7165
- block-size: var(--size);
7166
- inline-size: var(--size);
7167
- cursor: default;
7168
- }
7169
-
7170
- .Layer__ComboBoxDropdownIndicator {
7171
- display: flex;
7172
- align-items: center;
7173
- justify-content: center;
7174
- block-size: var(--size);
7175
- inline-size: var(--size);
7176
- cursor: pointer;
7177
- color: var(--color-base-600);
7178
- --size: 1.25rem;
7179
- }
7180
-
7181
- .Layer__ComboBoxMenu {
7182
- overflow: hidden;
7183
- border-radius: var(--border-radius-xs);
7184
- border: 1px solid var(--border-color);
7185
- margin-block-start: var(--spacing-2xs);
7186
- background-color: var(--color-base-0);
7187
- }
7188
-
7189
- .Layer__ComboBoxMenuList {
7190
- overflow-y: auto;
7191
- }
7192
- .Layer__ComboBoxMenuList .Layer__ComboBoxOption {
7193
- /*
7194
- * This is intentionally done indirectly to increase specificity.
7195
- *
7196
- * `react-select` explicitly sets 'block'
7197
- */
7198
- display: grid;
7199
- /*
7200
- * This is intentionally done indirectly to increase specificity.
7201
- *
7202
- * `react-select` explicitly sets 'default'
7203
- */
7204
- cursor: pointer;
7205
- }
7206
- .Layer__ComboBoxMenuList .Layer__ComboBoxOption--disabled {
7207
- cursor: not-allowed;
7208
- }
7209
- .Layer__ComboBoxMenuList .Layer__ComboBoxOption--hidden {
7210
- display: none;
7211
- }
7212
-
7213
- .Layer__ComboBoxGroup {
7214
- padding-block: var(--spacing-xs);
7215
- }
7216
- .Layer__ComboBoxGroup > .Layer__ComboBoxGroupHeading {
7217
- padding-block-start: var(--spacing-3xs);
7218
- padding-block-end: var(--spacing-xs);
7219
- padding-inline: var(--spacing-sm);
7220
- }
7221
- .Layer__ComboBoxGroup > div > .Layer__ComboBoxOption {
7222
- padding-inline: var(--spacing-sm);
7223
- }
7224
-
7225
- .Layer__ComboBoxOption {
7226
- padding-block: var(--spacing-xs);
7227
- padding-inline: var(--spacing-3xs);
7228
- border: 2px solid transparent;
7229
- }
7230
- .Layer__ComboBoxOption--focused {
7231
- background-color: var(--color-base-100);
7232
- }
7233
- .Layer__ComboBoxOption .Layer__ComboBoxOptionCheckIcon {
7234
- visibility: hidden;
7235
- }
7236
- .Layer__ComboBoxOption--selected {
7237
- background-color: var(--color-base-100);
7238
- }
7239
- .Layer__ComboBoxOption--selected .Layer__ComboBoxOptionCheckIcon {
7240
- visibility: visible;
7241
- }
7242
- .Layer__ComboBoxOption--disabled {
7243
- color: var(--color-base-500);
7244
- }
7245
-
7246
- .Layer__ComboBoxNoOptionsMessage {
7247
- padding-block: var(--spacing-sm);
7248
- }.Layer__MoneySpan[data-positive]::before {
7249
- content: "$";
7250
- }
7251
- .Layer__MoneySpan[data-negative]::before {
7252
- content: "-$";
7253
- }
7254
- .Layer__MoneySpan[data-display-plus-sign]::before {
7255
- content: "+$";
7256
- }.Layer__datetime {
7257
- display: inline-flex;
7258
- gap: var(--spacing-md);
7259
- align-items: center;
7260
- }.Layer__BankTransactionCategoryComboBox__LoadingSuggestionsOption {
7261
- color: var(--color-base-900);
7262
- }
7263
-
7264
- .Layer__BankTransactionCategoryComboBox__CustomGroupHeading {
7265
- /* style the parent .Layer__ComboBoxGroupHeading of this element */
7266
- }
7267
- :is(.Layer__ComboBoxGroupHeading:has(.Layer__BankTransactionCategoryComboBox__CustomGroupHeading)) {
7268
- border-bottom: 1px solid var(--border-color);
7269
- margin-block-end: var(--spacing-3xs);
7270
7007
  }.Layer__ModalOverlay {
7271
7008
  position: fixed;
7272
7009
  z-index: 100;
@@ -7596,6 +7333,181 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
7596
7333
 
7597
7334
  .Layer__ModalActions {
7598
7335
  margin-block-start: var(--spacing-3xl);
7336
+ }.Layer__ComboBoxContainer {
7337
+ display: grid;
7338
+ }
7339
+
7340
+ .Layer__ComboBoxControl {
7341
+ display: grid;
7342
+ grid-template-columns: minmax(0, 1fr) auto;
7343
+ --block-size: 2.25rem;
7344
+ block-size: var(--block-size);
7345
+ border-radius: var(--input-border-radius);
7346
+ border: 1px solid var(--color-base-300);
7347
+ background-color: var(--color-base-0);
7348
+ }
7349
+ .Layer__ComboBoxControl--focused {
7350
+ border-color: var(--outline-active);
7351
+ }
7352
+ .Layer__ComboBoxControl--disabled {
7353
+ cursor: not-allowed;
7354
+ }
7355
+ .Layer__ComboBoxControl--readonly {
7356
+ background-color: var(--bg-muted);
7357
+ }
7358
+
7359
+ .Layer__ComboBoxContainer > .Layer__ComboBoxControl {
7360
+ /*
7361
+ * This is intentional.
7362
+ *
7363
+ * The "unstyled" variant of react-select still forces a min-height on the control of 38 px.
7364
+ */
7365
+ block-size: var(--block-size);
7366
+ min-block-size: var(--block-size);
7367
+ }
7368
+ .Layer__ComboBoxContainer > .Layer__ComboBoxControl--focused {
7369
+ /*
7370
+ * This seems like the only workaround when the "unstyled" variant
7371
+ * includes a (malicious) `outline: 0 !important`.
7372
+ *
7373
+ * @see {https://github.com/JedWatson/react-select/blob/2a913698ad3d7759fb8e6bc5dd8a7d839227da2f/packages/react-select/src/components/Control.tsx#L49}
7374
+ */
7375
+ outline: 2px solid var(--outline-default) !important;
7376
+ }
7377
+
7378
+ .Layer__ComboBoxValueContainer {
7379
+ padding-inline-start: var(--spacing-xs);
7380
+ cursor: text;
7381
+ font-size: var(--input-font-size);
7382
+ }
7383
+
7384
+ .Layer__ComboBoxIndicatorsContainer {
7385
+ padding-inline-end: var(--spacing-3xs);
7386
+ }
7387
+ .Layer__ComboBoxIndicatorsContainer--readonly {
7388
+ visibility: hidden;
7389
+ }
7390
+
7391
+ .Layer__ComboBoxClearIndicator {
7392
+ display: flex;
7393
+ align-items: center;
7394
+ justify-content: center;
7395
+ --size: 1.25rem;
7396
+ block-size: var(--size);
7397
+ inline-size: var(--size);
7398
+ cursor: pointer;
7399
+ }
7400
+
7401
+ .Layer__ComboBoxLoadingIndicator {
7402
+ display: flex;
7403
+ align-items: center;
7404
+ justify-content: center;
7405
+ --size: 1.25rem;
7406
+ block-size: var(--size);
7407
+ inline-size: var(--size);
7408
+ cursor: default;
7409
+ }
7410
+
7411
+ .Layer__ComboBoxDropdownIndicator {
7412
+ display: flex;
7413
+ align-items: center;
7414
+ justify-content: center;
7415
+ block-size: var(--size);
7416
+ inline-size: var(--size);
7417
+ cursor: pointer;
7418
+ color: var(--color-base-600);
7419
+ --size: 1.25rem;
7420
+ }
7421
+
7422
+ .Layer__ComboBoxMenu {
7423
+ overflow: hidden;
7424
+ border-radius: var(--border-radius-xs);
7425
+ border: 1px solid var(--border-color);
7426
+ margin-block-start: var(--spacing-2xs);
7427
+ background-color: var(--color-base-0);
7428
+ }
7429
+
7430
+ .Layer__ComboBoxMenuList {
7431
+ overflow-y: auto;
7432
+ }
7433
+ .Layer__ComboBoxMenuList .Layer__ComboBoxOption {
7434
+ /*
7435
+ * This is intentionally done indirectly to increase specificity.
7436
+ *
7437
+ * `react-select` explicitly sets 'block'
7438
+ */
7439
+ display: grid;
7440
+ /*
7441
+ * This is intentionally done indirectly to increase specificity.
7442
+ *
7443
+ * `react-select` explicitly sets 'default'
7444
+ */
7445
+ cursor: pointer;
7446
+ }
7447
+ .Layer__ComboBoxMenuList .Layer__ComboBoxOption--disabled {
7448
+ cursor: not-allowed;
7449
+ }
7450
+ .Layer__ComboBoxMenuList .Layer__ComboBoxOption--hidden {
7451
+ display: none;
7452
+ }
7453
+
7454
+ .Layer__ComboBoxGroup {
7455
+ padding-block: var(--spacing-xs);
7456
+ }
7457
+ .Layer__ComboBoxGroup > .Layer__ComboBoxGroupHeading {
7458
+ padding-block-start: var(--spacing-3xs);
7459
+ padding-block-end: var(--spacing-xs);
7460
+ padding-inline: var(--spacing-sm);
7461
+ }
7462
+ .Layer__ComboBoxGroup > div > .Layer__ComboBoxOption {
7463
+ padding-inline: var(--spacing-sm);
7464
+ }
7465
+
7466
+ .Layer__ComboBoxOption {
7467
+ padding-block: var(--spacing-xs);
7468
+ padding-inline: var(--spacing-3xs);
7469
+ border: 2px solid transparent;
7470
+ }
7471
+ .Layer__ComboBoxOption--focused {
7472
+ background-color: var(--color-base-100);
7473
+ }
7474
+ .Layer__ComboBoxOption .Layer__ComboBoxOptionCheckIcon {
7475
+ visibility: hidden;
7476
+ }
7477
+ .Layer__ComboBoxOption--selected {
7478
+ background-color: var(--color-base-100);
7479
+ }
7480
+ .Layer__ComboBoxOption--selected .Layer__ComboBoxOptionCheckIcon {
7481
+ visibility: visible;
7482
+ }
7483
+ .Layer__ComboBoxOption--disabled {
7484
+ color: var(--color-base-500);
7485
+ }
7486
+
7487
+ .Layer__ComboBoxNoOptionsMessage {
7488
+ padding-block: var(--spacing-sm);
7489
+ }.Layer__MoneySpan[data-positive]::before {
7490
+ content: "$";
7491
+ }
7492
+ .Layer__MoneySpan[data-negative]::before {
7493
+ content: "-$";
7494
+ }
7495
+ .Layer__MoneySpan[data-display-plus-sign]::before {
7496
+ content: "+$";
7497
+ }.Layer__datetime {
7498
+ display: inline-flex;
7499
+ gap: var(--spacing-md);
7500
+ align-items: center;
7501
+ }.Layer__BankTransactionCategoryComboBox__LoadingSuggestionsOption {
7502
+ color: var(--color-base-900);
7503
+ }
7504
+
7505
+ .Layer__BankTransactionCategoryComboBox__CustomGroupHeading {
7506
+ /* style the parent .Layer__ComboBoxGroupHeading of this element */
7507
+ }
7508
+ :is(.Layer__ComboBoxGroupHeading:has(.Layer__BankTransactionCategoryComboBox__CustomGroupHeading)) {
7509
+ border-bottom: 1px solid var(--border-color);
7510
+ margin-block-end: var(--spacing-3xs);
7599
7511
  }.Layer__actionable-list {
7600
7512
  padding: 0;
7601
7513
  margin: 0;
@@ -8708,7 +8620,8 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
8708
8620
 
8709
8621
  @container (max-width: 760px) {
8710
8622
  .Layer__ExpandedBankTransactionRow__Description {
8711
- width: 95%;
8623
+ width: 100%;
8624
+ padding-inline-end: var(--spacing-md);
8712
8625
  }
8713
8626
  }.Layer__bank-transaction-row__category-hstack {
8714
8627
  max-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.115",
3
+ "version": "0.1.116-alpha",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -25,6 +25,7 @@
25
25
  "dev": "vite build --config vite/vite.config.ts --mode esm --watch",
26
26
  "prepack": "npm run typecheck && npm run build:clean",
27
27
  "lint": "eslint . && stylelint '**/*.{css,scss}'",
28
+ "lint:fix": "eslint . --fix && stylelint '**/*.{css,scss}' --fix",
28
29
  "lint:eslint": "eslint .",
29
30
  "lint:stylelint": "stylelint '**/*.{css,scss}'",
30
31
  "clear:react": "rm -rf ./node_modules/react && rm -rf ./node_modules/react-dom",