@raystack/apsara 0.15.0 → 0.16.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/index.css CHANGED
@@ -41,6 +41,8 @@
41
41
  --border-success: #92ceac;
42
42
  --border-success-inverted: #30a46c;
43
43
 
44
+ --ascent-contrast: #fff;
45
+
44
46
  --ff-inter: "Inter", -apple-system, system-ui, sans-serif;
45
47
  --ff-mono: Söhne Mono, menlo, monospace;
46
48
 
@@ -114,6 +116,8 @@ html[data-theme="dark"] {
114
116
  --background-success: #16301d;
115
117
  --background-success-inverted: #46a758;
116
118
 
119
+ --ascent-contrast: #fff;
120
+
117
121
  --border-base: #3a3f42;
118
122
  --border-base-hover: #4c5155;
119
123
  --border-muted: #313538;
@@ -455,8 +459,8 @@ html[data-theme="dark"] {
455
459
  line-height: var(--fs-600);
456
460
  width: fit-content;
457
461
  transition: background-color var(--transition);
458
- padding: var(--pd-4) var(--pd-12);
459
- border-radius: var(--br-4);
462
+ padding: var(--pd-4) var(--pd-12);
463
+ border-radius: var(--br-4);
460
464
  }
461
465
 
462
466
  .button-module_button__9VQ21:before {
@@ -473,8 +477,7 @@ html[data-theme="dark"] {
473
477
  }
474
478
 
475
479
  .button-module_button-small__RR1mh {
476
- padding-top: var(--pd-4);
477
- padding-bottom: var(--pd-4);
480
+ padding: var(--pd-4) var(--pd-8);
478
481
  }
479
482
 
480
483
  .button-module_button-medium__79Bf1 {
@@ -492,74 +495,73 @@ html[data-theme="dark"] {
492
495
  padding-bottom: var(--pd-8);
493
496
  width: 24px;
494
497
  height: 24px;
495
- border-radius: var(--br-round);
498
+ border-radius: var(--br-round);
496
499
  }
497
500
 
498
-
499
501
  .button-module_button-primary__R0k9n {
500
- color: var(--foreground-inverted);
501
- background-color: var(--background-accent-inverted)
502
+ color: var(--ascent-contrast);
503
+ background-color: var(--background-accent-inverted);
502
504
  }
503
505
 
504
- .button-module_button-primary__R0k9n:hover,
506
+ .button-module_button-primary__R0k9n:hover,
505
507
  .button-module_button-primary__R0k9n:active,
506
508
  .button-module_button-primary__R0k9n[data-radix-popover-trigger][data-state="open"],
507
509
  .button-module_button-primary__R0k9n[data-radix-dropdown-menu-trigger][data-state="open"] {
508
- background-color: var(--background-accent-inverted-hover)
510
+ background-color: var(--background-accent-inverted-hover);
509
511
  }
510
512
 
511
513
  .button-module_button-outline__MN25q {
512
514
  color: var(--foreground-accent);
513
515
  background-color: var(--background-base);
514
- border: 1px solid var(--border-accent-inverted);
516
+ outline: 1px solid var(--border-accent-inverted);
515
517
  }
516
518
 
517
- .button-module_button-outline__MN25q:hover,
519
+ .button-module_button-outline__MN25q:hover,
518
520
  .button-module_button-outline__MN25q:active,
519
521
  .button-module_button-outline__MN25q[data-radix-popover-trigger][data-state="open"],
520
522
  .button-module_button-outline__MN25q[data-radix-dropdown-menu-trigger][data-state="open"] {
521
523
  background-color: var(--background-accent);
522
- border: 1px solid var(--border-accent-inverted-hover);
524
+ outline: 1px solid var(--border-accent-inverted-hover);
523
525
  }
524
526
 
525
527
  .button-module_button-secondary__zDkNV {
526
528
  color: var(--foreground-base);
527
529
  background-color: var(--background-base);
528
- border: 1px solid var(--border-base)
530
+ outline: 1px solid var(--border-base);
529
531
  }
530
532
 
531
- .button-module_button-secondary__zDkNV:hover,
533
+ .button-module_button-secondary__zDkNV:hover,
532
534
  .button-module_button-secondary__zDkNV:active,
533
535
  .button-module_button-secondary__zDkNV[data-radix-popover-trigger][data-state="open"],
534
536
  .button-module_button-secondary__zDkNV[data-radix-dropdown-menu-trigger][data-state="open"] {
535
537
  background-color: var(--background-base-hover);
536
- border: 1px solid var(--border-base-hover);
538
+ outline: 1px solid var(--border-base-hover);
537
539
  }
538
540
 
539
541
  .button-module_button-ghost__KcZUm {
540
542
  color: var(--foreground-base);
541
543
  background-color: var(--background-base);
542
- border: 1px dotted var(--border-base);
544
+ outline: 1px dashed var(--border-base);
543
545
  }
544
546
 
545
- .button-module_button-ghost__KcZUm:hover,
547
+ .button-module_button-ghost__KcZUm:hover,
546
548
  .button-module_button-ghost__KcZUm:active,
547
549
  .button-module_button-ghost__KcZUm[data-radix-popover-trigger][data-state="open"],
548
550
  .button-module_button-ghost__KcZUm[data-radix-dropdown-menu-trigger][data-state="open"] {
549
551
  background-color: var(--background-base-hover);
550
- border: 1px dotted var(--border-base-hover);
552
+ outline: 1px dashed var(--border-base-hover);
551
553
  }
552
554
 
553
555
  .button-module_button-danger__dnB-7 {
554
- color: var(--foreground-inverted);
555
- background-color: var(--background-danger-inverted)
556
+ color: var(--ascent-contrast);
557
+ background-color: var(--background-danger-inverted);
556
558
  }
557
559
 
558
- .button-module_button-danger__dnB-7:hover,
560
+ .button-module_button-danger__dnB-7:hover,
559
561
  .button-module_button-danger__dnB-7:active,
560
562
  .button-module_button-danger__dnB-7[data-radix-popover-trigger][data-state="open"],
561
563
  .button-module_button-danger__dnB-7[data-radix-dropdown-menu-trigger][data-state="open"] {
562
- background-color: var(--background-danger-inverted-hover)
564
+ background-color: var(--background-danger-inverted-hover);
563
565
  }
564
566
 
565
567
  .label-module_label__hM2lk {
@@ -1295,26 +1297,26 @@ html[data-theme="dark"] {
1295
1297
  background-color: var(--background-base);
1296
1298
  border-radius: var(--br-4);
1297
1299
  box-shadow: var(--shadow-xs);
1298
- border: 1px solid var(--border-subtle);
1300
+ outline: 1px solid var(--border-subtle);
1299
1301
  }
1300
1302
 
1301
1303
  .select-module_menuitem__DfVEU {
1302
1304
  display: flex;
1303
1305
  align-items: center;
1304
1306
  position: relative;
1305
-
1307
+
1306
1308
  gap: var(--pd-4);
1307
1309
  padding: var(--pd-4) var(--pd-8);
1308
1310
  color: var(--foreground-base);
1309
1311
  }
1310
1312
 
1311
- .select-module_menuitem__DfVEU:hover,
1313
+ .select-module_menuitem__DfVEU:hover,
1312
1314
  .select-module_menuitem__DfVEU:focus,
1313
1315
  .select-module_menuitem__DfVEU[data-highlighted] {
1314
1316
  outline: none;
1315
1317
  cursor: pointer;
1316
1318
  border-radius: var(--br-4);
1317
- background: var(--background-base-hover)
1319
+ background: var(--background-base-hover);
1318
1320
  }
1319
1321
 
1320
1322
  .select-module_menuitem__DfVEU[data-disabled] {
@@ -1326,44 +1328,42 @@ html[data-theme="dark"] {
1326
1328
  height: 14px;
1327
1329
  width: 14px;
1328
1330
  display: flex;
1329
- justify-content: center;
1331
+ justify-content: center;
1330
1332
  align-items: center;
1331
1333
  }
1332
1334
 
1333
- .select-module_label__4I1Se{
1335
+ .select-module_label__4I1Se {
1334
1336
  padding: var(--pd-6) var(--pd-8);
1335
1337
  font-weight: 500;
1336
1338
  }
1337
- .select-module_separator__2UBNd{
1339
+ .select-module_separator__2UBNd {
1338
1340
  height: 1px;
1339
1341
  margin: var(--mr-4) calc(var(--mr-8) * -1);
1340
- background: var(--background-inset)
1342
+ background: var(--background-inset);
1341
1343
  }
1342
1344
 
1343
- .select-module_menugroup__zJbzr{
1345
+ .select-module_menugroup__zJbzr {
1344
1346
  padding: var(--pd-8);
1345
1347
  }
1346
1348
 
1347
-
1348
-
1349
1349
  .select-module_trigger__1tSaG {
1350
- display: flex;
1351
- justify-content: space-between;
1352
- align-items: center;
1350
+ display: flex;
1351
+ justify-content: space-between;
1352
+ align-items: center;
1353
1353
  outline: none;
1354
1354
 
1355
1355
  color: var(--foreground-base);
1356
1356
  padding: var(--pd-4) var(--pd-12);
1357
- background-color: var(--background-base);
1357
+ background-color: var(--background-base);
1358
1358
  font-size: 12px;
1359
- line-height: 16px;
1359
+ line-height: 16px;
1360
1360
  border-radius: var(--br-4);
1361
- border: 0.5px solid var(--border-base);
1361
+ outline: 0.5px solid var(--border-base);
1362
1362
  box-shadow: var(--shadow-xs);
1363
1363
  }
1364
1364
 
1365
1365
  .select-module_trigger__1tSaG:focus {
1366
- border: 1px solid var(--border-accent-inverted)
1366
+ outline: 1px solid var(--border-accent-inverted);
1367
1367
  }
1368
1368
 
1369
1369
  .select-module_trigger__1tSaG:disabled {
@@ -1383,6 +1383,7 @@ html[data-theme="dark"] {
1383
1383
  opacity: 0.5;
1384
1384
  margin-left: var(--mr-8);
1385
1385
  }
1386
+
1386
1387
  .separator-module_separator__uHK4y {
1387
1388
  flex-shrink: 0;
1388
1389
  border: 0;
@@ -1720,6 +1721,11 @@ html[data-theme="dark"] {
1720
1721
  border: 1px solid var(--border-subtle);
1721
1722
  padding: var(--pd-4) var(--pd-8);
1722
1723
  border-radius: var(--br-4);
1724
+ width: 280px;
1725
+ color: var(--foreground-base);
1726
+ font-size: 11px;
1727
+ font-weight: 500;
1728
+ line-height: 16px;
1723
1729
  }
1724
1730
 
1725
1731
  .togglegroup-module_root__R0WF3 {
@@ -1794,10 +1800,12 @@ html[data-theme="dark"] {
1794
1800
 
1795
1801
  .calendar-module_nav_button_previous__lWJYm {
1796
1802
  left: 0;
1803
+ height: 100%;
1797
1804
  }
1798
1805
 
1799
1806
  .calendar-module_nav_button_next__1MzRT {
1800
1807
  right: 0;
1808
+ height: 100%;
1801
1809
  }
1802
1810
 
1803
1811
  .calendar-module_head__EIxyS {
@@ -1818,9 +1826,6 @@ html[data-theme="dark"] {
1818
1826
  }
1819
1827
 
1820
1828
  .calendar-module_cell__TTpcD {
1821
- display: flex;
1822
- justify-content: center;
1823
- align-items: center;
1824
1829
  width: 36px;
1825
1830
  height: 36px;
1826
1831
  background-color: var(--background-base);
@@ -1876,6 +1881,8 @@ html[data-theme="dark"] {
1876
1881
  width: 100%;
1877
1882
  height: 100%;
1878
1883
  padding: unset;
1884
+ display: grid;
1885
+ place-content: center;
1879
1886
  }
1880
1887
 
1881
1888
  .calendar-module_day_outside__WN68B {
@@ -1914,13 +1921,15 @@ html[data-theme="dark"] {
1914
1921
  padding: 0;
1915
1922
  height: auto;
1916
1923
  width: 100%;
1917
-
1918
1924
  background-color: var(--background-base);
1919
- border: 0.5px solid var(--border-base);
1925
+ outline: 0.5px solid var(--border-base);
1926
+ border: none;
1920
1927
  box-shadow: var(--shadow-xs);
1921
1928
  border-radius: var(--br-4);
1922
1929
  color: var(--foreground-base);
1923
1930
  padding: var(--pd-4);
1931
+ letter-spacing: 0.4px;
1932
+ line-height: 16px;
1924
1933
  }
1925
1934
 
1926
1935
  .textfield-module_textfield__u4AGg:-webkit-autofill {
@@ -1928,13 +1937,12 @@ html[data-theme="dark"] {
1928
1937
  }
1929
1938
 
1930
1939
  .textfield-module_textfield__u4AGg:focus {
1931
- border: 1px solid var(--background-accent-inverted);
1940
+ outline: 1px solid var(--background-accent-inverted);
1932
1941
  }
1933
1942
 
1934
1943
  .textfield-module_textfield__u4AGg::placeholder {
1935
1944
  color: var(--foreground-subtle);
1936
1945
  font-size: 12px;
1937
- line-height: 16px;
1938
1946
  }
1939
1947
 
1940
1948
  .textfield-module_textfield__u4AGg:disabled {
@@ -1950,30 +1958,28 @@ html[data-theme="dark"] {
1950
1958
  .textfield-module_textfield-sm__OKPic {
1951
1959
  border-radius: var(--br-4);
1952
1960
  font-size: 12px;
1953
- line-height: 16px;
1954
- padding: var(--pd-4);
1961
+ padding: var(--pd-4) var(--pd-8);
1955
1962
  }
1956
1963
 
1957
1964
  .textfield-module_textfield-md__e2ayW {
1958
1965
  border-radius: var(--br-4);
1959
- font-size: 13px;
1960
- line-height: 16px;
1966
+ font-size: 12px;
1961
1967
  padding: var(--pd-8);
1962
1968
  }
1963
1969
 
1964
1970
  .textfield-module_textfield-invlid__zo9MF {
1965
- border: 1px solid var(--border-danger);
1971
+ outline: 1px solid var(--border-danger);
1966
1972
  }
1967
1973
  .textfield-module_textfield-invlid__zo9MF:focus {
1968
- border: 1px solid var(--border-danger);
1974
+ outline: 1px solid var(--border-danger);
1969
1975
  }
1970
1976
 
1971
1977
  .textfield-module_textfield-valid__6rMM9 {
1972
- border: 1px solid var(--border-success);
1978
+ outline: 1px solid var(--border-success);
1973
1979
  }
1974
1980
 
1975
1981
  .textfield-module_textfield-valid__6rMM9:focus {
1976
- border: 1px solid var(--border-success);
1982
+ outline: 1px solid var(--border-success);
1977
1983
  }
1978
1984
 
1979
1985
  .textfield-module_textfield-leading__AE-ld {
package/dist/index.js CHANGED
@@ -28173,6 +28173,7 @@ const Calendar = function ({ className, classNames, showOutsideDays = true, ...p
28173
28173
  day_range_end: styles$6.day_range_end,
28174
28174
  day_range_start: styles$6.day_range_start,
28175
28175
  months: styles$6.months,
28176
+ // button: styles.button,
28176
28177
  ...classNames,
28177
28178
  }, className: root$1({ className }), ...props }));
28178
28179
  };
@@ -28200,16 +28201,16 @@ const textfield = cva(styles$5.textfield, {
28200
28201
  size: "small",
28201
28202
  },
28202
28203
  });
28203
- const TextField = forwardRef(({ leading, trailing, className, src, size, state, style, ...props }, ref) => {
28204
+ const TextField = forwardRef(({ leading, trailing, className, src, size, state, style, iconClass, ...props }, ref) => {
28204
28205
  const hasLeadingElement = Boolean(leading);
28205
28206
  const hasTrailingElement = Boolean(trailing);
28206
- return (jsxRuntimeExports$1.jsxs(Flex, { align: "center", style: { position: "relative", width: "100%" }, children: [hasLeadingElement ? (jsxRuntimeExports$1.jsx(Flex, { style: { left: "8px" }, className: styles$5.leadingIcon, children: leading })) : null, jsxRuntimeExports$1.jsx("input", { className: cx(textfield({
28207
+ return (jsxRuntimeExports$1.jsxs(Flex, { align: "center", style: { position: "relative", width: "100%" }, children: [hasLeadingElement ? (jsxRuntimeExports$1.jsx(Flex, { style: { left: "8px" }, className: cx(styles$5.leadingIcon, iconClass?.leadingIcon), children: leading })) : null, jsxRuntimeExports$1.jsx("input", { className: cx(textfield({
28207
28208
  size,
28208
28209
  state,
28209
28210
  className,
28210
28211
  hasLeadingElement,
28211
28212
  hasTrailingElement,
28212
- })), ...props, ref: ref }), hasTrailingElement ? (jsxRuntimeExports$1.jsx(Flex, { style: { right: "8px" }, className: styles$5.trailingIcon, children: trailing })) : null] }));
28213
+ })), ...props, ref: ref }), hasTrailingElement ? (jsxRuntimeExports$1.jsx(Flex, { style: { right: "8px" }, className: cx(styles$5.trailingIcon, iconClass?.trailingIcon), children: trailing })) : null] }));
28213
28214
  });
28214
28215
  TextField.displayName = "TextField";
28215
28216