@ag2/weave 0.19.0 → 0.20.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/style.css CHANGED
@@ -6959,13 +6959,28 @@ button.pkh068p:hover {
6959
6959
  box-shadow: 0 8px 32px color-mix(in srgb, oklch(0.215703550 0.003145551 17.400595087) 9%, transparent);
6960
6960
  overflow-wrap: anywhere;
6961
6961
  }
6962
+ .dzm7ge0[data-size="wide"] {
6963
+ max-width: 40rem;
6964
+ gap: 1.375rem;
6965
+ padding: 2.75rem;
6966
+ border-radius: 2rem;
6967
+ }
6962
6968
  .dzm7ge1 {
6963
6969
  min-width: 0;
6964
6970
  }
6971
+ @media (max-width: 720px) {
6972
+ .dzm7ge0[data-size="wide"] {
6973
+ padding: var(--_1s7qa7e1w);
6974
+ }
6975
+ }
6965
6976
  @media (max-width: 480px) {
6966
6977
  .dzm7ge0 {
6967
6978
  padding: var(--_1s7qa7e1u);
6968
6979
  }
6980
+ .dzm7ge0[data-size="wide"] {
6981
+ padding: var(--_1s7qa7e1u);
6982
+ border-radius: var(--_1s7qa7e22);
6983
+ }
6969
6984
  }@keyframes _1idz8s10 {
6970
6985
  0%, 100% {
6971
6986
  opacity: 0.45;
@@ -7097,6 +7112,120 @@ button.pkh068p:hover {
7097
7112
  animation: none;
7098
7113
  opacity: 1;
7099
7114
  }
7115
+ }.j7dz860 {
7116
+ display: inline-flex;
7117
+ align-items: center;
7118
+ justify-content: center;
7119
+ gap: var(--_1s7qa7e1s);
7120
+ width: fit-content;
7121
+ max-width: 100%;
7122
+ min-height: 44px;
7123
+ padding: var(--_1s7qa7e1s) var(--_1s7qa7e1t);
7124
+ border-radius: var(--_1s7qa7e24);
7125
+ border: 0;
7126
+ background: transparent;
7127
+ color: var(--_19in3xh5b);
7128
+ font-family: inherit;
7129
+ font-size: var(--_1s7qa7eb);
7130
+ font-weight: var(--_1s7qa7e1l);
7131
+ line-height: var(--_1s7qa7es);
7132
+ white-space: nowrap;
7133
+ cursor: pointer;
7134
+ transition: transform 160ms ease, box-shadow 160ms ease, background-color 120ms ease;
7135
+ }
7136
+ .j7dz860[data-full-width="true"] {
7137
+ width: 100%;
7138
+ }
7139
+ .j7dz860[data-variant="Ghost"]:hover:not(:disabled):not([aria-disabled="true"]) {
7140
+ color: var(--_19in3xh5a);
7141
+ }
7142
+ .j7dz860[data-variant="Brand"] {
7143
+ padding: var(--_1s7qa7e1s) var(--_1s7qa7e1v);
7144
+ background: oklch(1 0 0);
7145
+ color: oklch(0.215703550 0.003145551 17.400595087);
7146
+ box-shadow: inset 2px 2px 10px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 30%, transparent), inset -2px -2px 10px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 30%, transparent);
7147
+ }
7148
+ .j7dz860[data-variant="Brand"]:hover:not(:disabled):not([aria-disabled="true"]) {
7149
+ box-shadow: inset 2px 2px 12px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 45%, transparent), inset -2px -2px 12px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 45%, transparent);
7150
+ }
7151
+ .j7dz860[data-variant="Primary"] {
7152
+ padding: var(--_1s7qa7e1s) var(--_1s7qa7e1v);
7153
+ background: oklch(0.215703550 0.003145551 17.400595087);
7154
+ color: oklch(1 0 0);
7155
+ }
7156
+ .j7dz860[data-variant="Brand"]:active:not(:disabled):not([aria-disabled="true"]), .j7dz860[data-variant="Primary"]:active:not(:disabled):not([aria-disabled="true"]) {
7157
+ transform: scale(0.98);
7158
+ }
7159
+ .j7dz860:focus-visible {
7160
+ outline: 2px solid var(--_1s7qa7e3b);
7161
+ outline-offset: 3px;
7162
+ }
7163
+ .j7dz860:disabled, .j7dz860[aria-disabled="true"] {
7164
+ cursor: not-allowed;
7165
+ opacity: var(--_1s7qa7e3x);
7166
+ }
7167
+ @media (prefers-reduced-motion: reduce) {
7168
+ .j7dz860 {
7169
+ transition: none;
7170
+ transform: none !important;
7171
+ }
7172
+ }
7173
+ @media (forced-colors: active) {
7174
+ .j7dz860 {
7175
+ border: 1px solid ButtonText;
7176
+ }
7177
+ }.ck5bid0 {
7178
+ display: inline-flex;
7179
+ align-items: center;
7180
+ gap: var(--_1s7qa7e1s);
7181
+ min-height: 2.625rem;
7182
+ padding: 0 1.125rem;
7183
+ border-radius: var(--_1s7qa7e24);
7184
+ border: 1px solid var(--_19in3xh5g);
7185
+ background: oklch(1 0 0);
7186
+ color: oklch(0.215703550 0.003145551 17.400595087);
7187
+ font-family: inherit;
7188
+ font-size: var(--_1s7qa7eb);
7189
+ font-weight: var(--_1s7qa7e1l);
7190
+ line-height: var(--_1s7qa7es);
7191
+ cursor: pointer;
7192
+ transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
7193
+ }
7194
+ .ck5bid0:hover:not(:disabled):not([aria-disabled="true"]) {
7195
+ background: color-mix(in srgb, oklch(0.215703550 0.003145551 17.400595087) 6%, oklch(1 0 0));
7196
+ }
7197
+ .ck5bid0[aria-pressed="true"] {
7198
+ background: oklch(0.215703550 0.003145551 17.400595087);
7199
+ border-color: oklch(0.215703550 0.003145551 17.400595087);
7200
+ color: oklch(1 0 0);
7201
+ }
7202
+ .ck5bid0[aria-pressed="true"]:hover:not(:disabled):not([aria-disabled="true"]) {
7203
+ background: oklch(0.215703550 0.003145551 17.400595087);
7204
+ }
7205
+ .ck5bid0:active:not(:disabled):not([aria-disabled="true"]) {
7206
+ transform: scale(0.97);
7207
+ }
7208
+ .ck5bid0:focus-visible {
7209
+ outline: 2px solid var(--_1s7qa7e3b);
7210
+ outline-offset: 2px;
7211
+ }
7212
+ .ck5bid0:disabled {
7213
+ cursor: not-allowed;
7214
+ opacity: var(--_1s7qa7e3x);
7215
+ }
7216
+ .ck5bid1 {
7217
+ flex-shrink: 0;
7218
+ }
7219
+ @media (prefers-reduced-motion: reduce) {
7220
+ .ck5bid0 {
7221
+ transition: none;
7222
+ transform: none !important;
7223
+ }
7224
+ }
7225
+ @media (forced-colors: active) {
7226
+ .ck5bid0[aria-pressed="true"] {
7227
+ outline: 2px solid Highlight;
7228
+ }
7100
7229
  }.g3b1zp0 {
7101
7230
  display: grid;
7102
7231
  gap: var(--_1s7qa7e1t);
@@ -7112,15 +7241,20 @@ button.pkh068p:hover {
7112
7241
  padding: var(--_1s7qa7e1u);
7113
7242
  text-align: left;
7114
7243
  font-family: inherit;
7115
- border-radius: var(--_1s7qa7e22);
7244
+ border-radius: 1.125rem;
7116
7245
  border: 1px solid var(--_19in3xh26);
7117
- background: var(--_19in3xh23);
7246
+ background: var(--_19in3xh28);
7118
7247
  color: var(--_19in3xh5a);
7119
7248
  cursor: pointer;
7249
+ transition: border-color 120ms ease, box-shadow 160ms ease, background-color 120ms ease;
7120
7250
  }
7121
7251
  .g3b1zp1[data-state="checked"] {
7122
- border-color: var(--_19in3xh56);
7123
- box-shadow: 0 0 0 1px var(--_19in3xh56);
7252
+ border-color: var(--_19in3xh5a);
7253
+ box-shadow: 0 0 0 0.5px var(--_19in3xh5a), inset 2px 2px 10px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 30%, transparent), inset -2px -2px 10px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 30%, transparent);
7254
+ background: var(--_19in3xh23);
7255
+ }
7256
+ .g3b1zp1[data-state="checked"]:hover:not([data-disabled]) {
7257
+ background: var(--_19in3xh23);
7124
7258
  }
7125
7259
  .g3b1zp1:hover:not([data-disabled]) {
7126
7260
  background: var(--_19in3xh24);
@@ -7150,6 +7284,16 @@ button.pkh068p:hover {
7150
7284
  color: var(--_19in3xh5b);
7151
7285
  }
7152
7286
  .g3b1zp5 {
7287
+ display: block;
7288
+ margin-top: var(--_1s7qa7e1r);
7289
+ font-size: var(--_1s7qa7ec);
7290
+ font-weight: var(--_1s7qa7e1l);
7291
+ color: var(--_19in3xh5d);
7292
+ }
7293
+ .g3b1zp1[data-state="checked"] .g3b1zp5 {
7294
+ color: var(--_19in3xh3b);
7295
+ }
7296
+ .g3b1zp6 {
7153
7297
  flex-shrink: 0;
7154
7298
  width: 18px;
7155
7299
  height: 18px;
@@ -7158,10 +7302,20 @@ button.pkh068p:hover {
7158
7302
  display: grid;
7159
7303
  place-items: center;
7160
7304
  }
7161
- .g3b1zp1[data-state="checked"] .g3b1zp5 {
7305
+ .g3b1zp1[data-state="checked"] .g3b1zp6 {
7162
7306
  background: var(--_19in3xh5a);
7163
7307
  color: var(--_19in3xh23);
7164
7308
  border-color: var(--_19in3xh5a);
7309
+ }
7310
+ @media (prefers-reduced-motion: reduce) {
7311
+ .g3b1zp1 {
7312
+ transition: none;
7313
+ }
7314
+ }
7315
+ @media (forced-colors: active) {
7316
+ .g3b1zp1[data-state="checked"] {
7317
+ outline: 2px solid Highlight;
7318
+ }
7165
7319
  }._1z0ew4o0 {
7166
7320
  display: flex;
7167
7321
  flex-wrap: wrap;
@@ -7215,6 +7369,30 @@ button.pkh068p:hover {
7215
7369
  opacity: 1;
7216
7370
  }
7217
7371
  }
7372
+ @keyframes _10w4f9zh {
7373
+ 0% {
7374
+ background-position: 100% 0;
7375
+ }
7376
+ 100% {
7377
+ background-position: 0% 0;
7378
+ }
7379
+ }
7380
+ @keyframes _10w4f9zl {
7381
+ 0% {
7382
+ transform: translateX(-100%);
7383
+ }
7384
+ 100% {
7385
+ transform: translateX(250%);
7386
+ }
7387
+ }
7388
+ @keyframes _10w4f9zm {
7389
+ 0% {
7390
+ transform: translateX(100%);
7391
+ }
7392
+ 100% {
7393
+ transform: translateX(-250%);
7394
+ }
7395
+ }
7218
7396
  ._10w4f9z0 {
7219
7397
  height: 2px;
7220
7398
  width: 100%;
@@ -7300,6 +7478,77 @@ button.pkh068p:hover {
7300
7478
  max-width: 100%;
7301
7479
  }
7302
7480
  ._10w4f9zd {
7481
+ display: flex;
7482
+ flex-direction: column;
7483
+ gap: 0.625rem;
7484
+ padding: 1.125rem;
7485
+ border-radius: 1.125rem;
7486
+ background: var(--_19in3xh28);
7487
+ min-width: 0;
7488
+ overflow-wrap: anywhere;
7489
+ }
7490
+ ._10w4f9ze {
7491
+ display: flex;
7492
+ flex-wrap: wrap;
7493
+ align-items: baseline;
7494
+ gap: var(--_1s7qa7e1s);
7495
+ margin: 0;
7496
+ }
7497
+ ._10w4f9zf {
7498
+ font-size: var(--_1s7qa7ea);
7499
+ font-weight: var(--_1s7qa7e1m);
7500
+ color: var(--_19in3xh5a);
7501
+ }
7502
+ ._10w4f9zg {
7503
+ font-size: var(--_1s7qa7ec);
7504
+ color: var(--_19in3xh5d);
7505
+ }
7506
+ ._10w4f9zi {
7507
+ font-size: var(--_1s7qa7ec);
7508
+ font-weight: var(--_1s7qa7e1l);
7509
+ color: var(--_19in3xh5b);
7510
+ }
7511
+ ._10w4f9zi[data-state="working"] {
7512
+ color: transparent;
7513
+ background-image: linear-gradient(90deg, var(--_19in3xh5b) 0%, var(--_19in3xh5b) 38%, var(--_19in3xh5d) 48%, var(--_19in3xh5b) 58%, var(--_19in3xh5b) 100%);
7514
+ background-size: 250% 100%;
7515
+ background-clip: text;
7516
+ -webkit-background-clip: text;
7517
+ animation: _10w4f9zh 1.8s linear infinite;
7518
+ }
7519
+ ._10w4f9zi[data-state="ready"] {
7520
+ color: var(--_19in3xh3b);
7521
+ }
7522
+ ._10w4f9zi[data-state="error"] {
7523
+ color: var(--_19in3xh43);
7524
+ }
7525
+ ._10w4f9zk {
7526
+ position: relative;
7527
+ height: 6px;
7528
+ width: 100%;
7529
+ overflow: hidden;
7530
+ border-radius: var(--_1s7qa7e24);
7531
+ background: var(--_19in3xh26);
7532
+ }
7533
+ ._10w4f9zn {
7534
+ height: 100%;
7535
+ border-radius: inherit;
7536
+ background: linear-gradient(105deg, oklch(0.873307324 0.069002135 240.773146555), oklch(0.903800376 0.079694210 323.525249668) 52%, oklch(0.787009699 0.136442307 59.826136225));
7537
+ clip-path: inset(0 var(--_10w4f9zj) 0 0);
7538
+ transition: clip-path 280ms ease;
7539
+ }
7540
+ ._10w4f9zn:dir(rtl) {
7541
+ clip-path: inset(0 0 0 var(--_10w4f9zj));
7542
+ }
7543
+ ._10w4f9zk[data-indeterminate="true"] ._10w4f9zn {
7544
+ width: 40%;
7545
+ clip-path: none;
7546
+ animation: _10w4f9zl 1.6s ease-in-out infinite;
7547
+ }
7548
+ ._10w4f9zk[data-indeterminate="true"] ._10w4f9zn:dir(rtl) {
7549
+ animation: _10w4f9zm 1.6s ease-in-out infinite;
7550
+ }
7551
+ ._10w4f9zo {
7303
7552
  position: absolute;
7304
7553
  width: 1px;
7305
7554
  height: 1px;
@@ -7317,11 +7566,36 @@ button.pkh068p:hover {
7317
7566
  ._10w4f9za {
7318
7567
  animation: none;
7319
7568
  }
7569
+ ._10w4f9zi[data-state="working"] {
7570
+ animation: none;
7571
+ color: var(--_19in3xh5b);
7572
+ background-image: none;
7573
+ }
7574
+ ._10w4f9zn {
7575
+ transition: none;
7576
+ }
7577
+ ._10w4f9zk[data-indeterminate="true"] ._10w4f9zn {
7578
+ animation: none;
7579
+ width: 100%;
7580
+ opacity: 0.5;
7581
+ }
7582
+ ._10w4f9zk[data-indeterminate="true"] ._10w4f9zn:dir(rtl) {
7583
+ animation: none;
7584
+ width: 100%;
7585
+ opacity: 0.5;
7586
+ }
7320
7587
  }
7321
7588
  @media (forced-colors: active) {
7322
7589
  ._10w4f9z2 {
7323
7590
  background: Highlight;
7324
7591
  }
7592
+ ._10w4f9zi[data-state="working"] {
7593
+ color: CanvasText;
7594
+ background-image: none;
7595
+ }
7596
+ ._10w4f9zn {
7597
+ background: Highlight;
7598
+ }
7325
7599
  }._1b5rjjx0 {
7326
7600
  position: relative;
7327
7601
  min-width: 0;
@@ -7,4 +7,7 @@ export declare const onboardingTokens: {
7
7
  readonly keyPressedInk: "oklch(0.215703550 0.003145551 17.400595087)";
8
8
  readonly keyGradient: "linear-gradient(105deg, oklch(0.873307324 0.069002135 240.773146555), oklch(0.903800376 0.079694210 323.525249668) 52%, oklch(0.787009699 0.136442307 59.826136225))";
9
9
  readonly cardShadow: "0 8px 32px color-mix(in srgb, oklch(0.215703550 0.003145551 17.400595087) 9%, transparent)";
10
+ /** Brand/Ember inner glow on white: Brand buttons, selected option cards. */
11
+ readonly brandGlow: "inset 2px 2px 10px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 30%, transparent), inset -2px -2px 10px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 30%, transparent)";
12
+ readonly brandGlowStrong: "inset 2px 2px 12px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 45%, transparent), inset -2px -2px 12px color-mix(in srgb, oklch(0.787009699 0.136442307 59.826136225) 45%, transparent)";
10
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ag2/weave",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "author": "Ajay Bura (ajbura)",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",