@tectra-ng/themes 0.1.8 → 0.1.9

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.
@@ -555,6 +555,12 @@ const colorPickerTokens = {
555
555
  swatchBorderRadius: tokenRef("radius-sm"),
556
556
  swatchRing: `inset 0 0 0 1px ${tokenRef("surface-border")}`
557
557
  },
558
+ dot: {
559
+ size: tokenRef("form-field-font-size"),
560
+ ringColor: `color-mix(in srgb, ${tokenRef("text-primary")} 30%, transparent)`,
561
+ emptyBorderColor: tokenRef("text-muted"),
562
+ focusRingColor: tokenRef("focus-ring-color")
563
+ },
558
564
  panel: {
559
565
  width: "240px",
560
566
  padding: "12px",
@@ -604,6 +610,50 @@ const emailSuggestionTokens = { root: {
604
610
  enterDistance: "6px",
605
611
  enterDuration: "320ms"
606
612
  } };
613
+ const listInputTokens = {
614
+ root: {
615
+ background: tokenRef("surface-card"),
616
+ borderColor: tokenRef("surface-border"),
617
+ borderWidth: "1px",
618
+ borderRadius: tokenRef("radius-lg"),
619
+ focusBorderColor: tokenRef("primary-base"),
620
+ focusBorderWidth: "2px",
621
+ invalidBorderColor: tokenRef("danger-base"),
622
+ disabledOpacity: "0.6",
623
+ transitionDuration: tokenRef("motion-duration")
624
+ },
625
+ field: {
626
+ minHeight: "128px",
627
+ padding: "12px 16px",
628
+ fontFamily: tokenRef("font-mono"),
629
+ fontSize: tokenRef("font-size-sm"),
630
+ lineHeight: "1.625",
631
+ color: tokenRef("text-primary"),
632
+ placeholderColor: tokenRef("form-field-placeholder-color")
633
+ },
634
+ footer: {
635
+ padding: "8px 12px",
636
+ gap: "8px",
637
+ background: tokenRef("surface-ground"),
638
+ borderColor: tokenRef("surface-border"),
639
+ statsGap: "6px",
640
+ statsPaddingStart: "4px",
641
+ actionsGap: "4px"
642
+ },
643
+ hint: {
644
+ fontSize: tokenRef("font-size-sm"),
645
+ color: tokenRef("text-muted")
646
+ },
647
+ unrecognized: {
648
+ padding: "10px 16px",
649
+ gap: "6px",
650
+ borderColor: tokenRef("surface-border"),
651
+ titleFontSize: tokenRef("font-size-sm"),
652
+ titleFontWeight: tokenRef("font-weight-medium"),
653
+ titleColor: lightDark(tokenRef("red-600"), tokenRef("red-400")),
654
+ titleGap: "4px"
655
+ }
656
+ };
607
657
  function severity(group) {
608
658
  return {
609
659
  background: tokenRef(`${group}-base`),
@@ -1270,7 +1320,24 @@ const avatarTokens = {
1270
1320
  ringWidth: "2px",
1271
1321
  ringColor: tokenRef("surface-card"),
1272
1322
  moreBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
1273
- moreColor: tokenRef("text-muted")
1323
+ moreColor: tokenRef("text-muted"),
1324
+ moreFocusRingWidth: "2px",
1325
+ moreFocusRingOffset: "2px",
1326
+ moreFocusRingColor: tokenRef("focus-ring-color"),
1327
+ endGap: "6px",
1328
+ addBackground: tokenRef("surface-ground"),
1329
+ addBorderColor: tokenRef("surface-border"),
1330
+ addHoverBorderColor: tokenRef("primary-base"),
1331
+ addColor: tokenRef("primary-base"),
1332
+ addIconScale: "0.45"
1333
+ },
1334
+ list: {
1335
+ padding: "0",
1336
+ gap: "8px",
1337
+ itemGap: "8px",
1338
+ maxHeight: "280px",
1339
+ nameFontSize: tokenRef("font-size-md"),
1340
+ nameColor: tokenRef("text-primary")
1274
1341
  }
1275
1342
  };
1276
1343
  const dividerTokens = { root: {
@@ -1408,6 +1475,17 @@ const iconLinkTokens = { root: {
1408
1475
  iconSize: "1em",
1409
1476
  focusRingColor: tokenRef("focus-ring-color")
1410
1477
  } };
1478
+ const truncateTextTokens = { root: {
1479
+ gap: "8px",
1480
+ linkColor: tokenRef("primary-soft-text"),
1481
+ linkHoverColor: tokenRef("primary-active"),
1482
+ copyColor: "inherit",
1483
+ copyHoverColor: tokenRef("primary-soft-text"),
1484
+ copiedColor: lightDark(tokenRef("green-700"), tokenRef("green-400")),
1485
+ copyIconSize: tokenRef("font-size-md"),
1486
+ focusRingColor: tokenRef("focus-ring-color"),
1487
+ transitionDuration: tokenRef("motion-duration")
1488
+ } };
1411
1489
  const tooltipTokens = {
1412
1490
  root: {
1413
1491
  background: lightDark(tokenRef("surface-900"), tokenRef("surface-50")),
@@ -2830,7 +2908,7 @@ const editorContentTokens = {
2830
2908
  color: tokenRef("text-muted")
2831
2909
  },
2832
2910
  code: {
2833
- fontFamily: tokenRef("font-family-mono"),
2911
+ fontFamily: tokenRef("font-mono"),
2834
2912
  fontSize: "0.875em",
2835
2913
  padding: "0.15em 0.4em",
2836
2914
  borderRadius: tokenRef("radius-sm"),
@@ -4476,6 +4554,177 @@ const hoverEffectTokens = { root: {
4476
4554
  resetDuration: "600ms",
4477
4555
  resetEasing: "cubic-bezier(0.16, 1, 0.3, 1)"
4478
4556
  } };
4557
+ const mascotTokens = { root: {
4558
+ size: "48px",
4559
+ bodyColor: tokenRef("primary-base"),
4560
+ shadeColor: tokenRef("primary-700"),
4561
+ glowColor: tokenRef("primary-300"),
4562
+ eyeColor: tokenRef("surface-card")
4563
+ } };
4564
+ const chartTokens = {
4565
+ root: {
4566
+ fontFamily: "inherit",
4567
+ color: tokenRef("text-primary"),
4568
+ background: "transparent"
4569
+ },
4570
+ series: {
4571
+ color1: tokenRef("primary-500"),
4572
+ color2: "#14b8a6",
4573
+ color3: tokenRef("orange-400"),
4574
+ color4: "#f43f5e",
4575
+ color5: tokenRef("purple-500"),
4576
+ color6: "#06b6d4",
4577
+ color7: tokenRef("green-500")
4578
+ },
4579
+ grid: {
4580
+ color: lightDark(fade(tokenRef("surface-300"), "45%"), fade(tokenRef("surface-600"), "45%")),
4581
+ width: "1px",
4582
+ dash: "none"
4583
+ },
4584
+ zeroLine: {
4585
+ color: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
4586
+ width: "1px"
4587
+ },
4588
+ axis: {
4589
+ labelColor: tokenRef("text-muted"),
4590
+ labelFontSize: "11.5px",
4591
+ labelFontWeight: tokenRef("font-weight-regular"),
4592
+ titleColor: tokenRef("text-muted"),
4593
+ titleFontSize: "11.5px",
4594
+ titleFontWeight: tokenRef("font-weight-medium"),
4595
+ lineColor: tokenRef("surface-border")
4596
+ },
4597
+ legend: {
4598
+ gap: "10.5px",
4599
+ itemGap: "4px",
4600
+ color: tokenRef("text-primary"),
4601
+ mutedColor: tokenRef("text-muted"),
4602
+ fontSize: "12.25px",
4603
+ fontWeight: tokenRef("font-weight-medium"),
4604
+ markerSize: "8px",
4605
+ markerRadius: tokenRef("radius-full"),
4606
+ markerGap: "7px",
4607
+ lineWidth: "14px",
4608
+ lineHeight: "3px",
4609
+ hiddenOpacity: "0.55",
4610
+ borderRadius: tokenRef("radius-md"),
4611
+ hoverBackground: tokenRef("surface-hover"),
4612
+ paddingX: "7px",
4613
+ paddingY: "4px",
4614
+ sideWidth: "50%",
4615
+ valueColor: tokenRef("text-muted"),
4616
+ valueGap: "12px",
4617
+ percentGap: "8px",
4618
+ listGap: "2px",
4619
+ pillBorderColor: tokenRef("surface-border"),
4620
+ pillRadius: tokenRef("radius-full"),
4621
+ pillPaddingX: "10.5px",
4622
+ pillPaddingY: "4px",
4623
+ pillTint: "12%",
4624
+ statLabelFontSize: "12px",
4625
+ statValueFontSize: "19px",
4626
+ statValueFontWeight: tokenRef("font-weight-semibold"),
4627
+ statPaddingX: "10.5px",
4628
+ statPaddingY: "7px",
4629
+ statRadius: tokenRef("radius-lg"),
4630
+ statMinWidth: "112px"
4631
+ },
4632
+ tooltip: {
4633
+ background: tokenRef("surface-overlay"),
4634
+ borderColor: tokenRef("surface-overlay-border"),
4635
+ borderWidth: "1px",
4636
+ borderRadius: tokenRef("radius-lg"),
4637
+ shadow: "0 8px 24px -8px rgba(12, 16, 21, 0.18), 0 2px 6px -2px rgba(12, 16, 21, 0.08)",
4638
+ color: tokenRef("text-primary"),
4639
+ mutedColor: tokenRef("text-muted"),
4640
+ fontSize: "12.5px",
4641
+ titleFontSize: "11.5px",
4642
+ titleFontWeight: tokenRef("font-weight-medium"),
4643
+ valueFontWeight: tokenRef("font-weight-semibold"),
4644
+ padding: "8px 10.5px",
4645
+ rowGap: "4px",
4646
+ markerSize: "8px",
4647
+ markerGap: "7px",
4648
+ valueGap: "16px",
4649
+ minWidth: "132px",
4650
+ arrowSize: "6px",
4651
+ offset: "10px",
4652
+ totalBorderColor: tokenRef("surface-border")
4653
+ },
4654
+ crosshair: {
4655
+ color: lightDark(tokenRef("surface-400"), tokenRef("surface-500")),
4656
+ width: "1px",
4657
+ dash: "none"
4658
+ },
4659
+ marker: {
4660
+ radius: "4.5",
4661
+ strokeColor: tokenRef("surface-card"),
4662
+ strokeWidth: "2",
4663
+ haloRadius: "10",
4664
+ haloOpacity: "0.16"
4665
+ },
4666
+ line: {
4667
+ strokeWidth: "2",
4668
+ areaOpacityFrom: "0.22",
4669
+ areaOpacityTo: "0",
4670
+ stackedAreaOpacity: "0.5",
4671
+ pointRadius: "3",
4672
+ dimmedOpacity: "0.18"
4673
+ },
4674
+ bar: {
4675
+ radius: "5px",
4676
+ width: "56%",
4677
+ horizontalWidth: "64%",
4678
+ groupGap: "3px",
4679
+ segmentGap: "1.5px",
4680
+ segmentGapColor: tokenRef("surface-card"),
4681
+ dimmedStrength: "38%",
4682
+ dimmedBase: lightDark(tokenRef("surface-100"), tokenRef("surface-700")),
4683
+ labelColor: tokenRef("surface-0"),
4684
+ labelFontSize: "11px",
4685
+ labelFontWeight: tokenRef("font-weight-semibold"),
4686
+ outsideLabelColor: tokenRef("text-muted")
4687
+ },
4688
+ pie: {
4689
+ segmentGap: tokenRef("surface-card"),
4690
+ segmentRadius: "4px",
4691
+ hoverOffset: "6px",
4692
+ dimmedStrength: "42%",
4693
+ dimmedBase: lightDark(tokenRef("surface-100"), tokenRef("surface-700")),
4694
+ labelColor: tokenRef("surface-0"),
4695
+ labelFontSize: "11px",
4696
+ labelFontWeight: tokenRef("font-weight-semibold"),
4697
+ labelShadow: "drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))",
4698
+ nameColor: tokenRef("text-muted"),
4699
+ nameFontSize: "12px",
4700
+ nameFontWeight: tokenRef("font-weight-medium"),
4701
+ valueColor: tokenRef("text-primary"),
4702
+ valueFontSize: "22px",
4703
+ valueFontWeight: tokenRef("font-weight-semibold"),
4704
+ totalLabelColor: tokenRef("text-muted")
4705
+ },
4706
+ empty: {
4707
+ gap: "7px",
4708
+ color: tokenRef("text-muted"),
4709
+ fontSize: tokenRef("font-size-sm"),
4710
+ iconSize: "35px",
4711
+ iconFontSize: "15.75px",
4712
+ iconColor: tokenRef("text-muted"),
4713
+ iconBackground: mix(tokenRef("surface-ground"), "70%", "transparent")
4714
+ },
4715
+ focusRing: {
4716
+ color: tokenRef("focus-ring-color"),
4717
+ width: "2px",
4718
+ offset: "2px"
4719
+ },
4720
+ motion: {
4721
+ enterDuration: "0.7s",
4722
+ updateDuration: "0.32s",
4723
+ hoverDuration: "0.18s",
4724
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)",
4725
+ stagger: "28ms"
4726
+ }
4727
+ };
4479
4728
  const COMPONENT_TOKENS = {
4480
4729
  icon: iconTokens,
4481
4730
  ripple: rippleTokens,
@@ -4500,6 +4749,7 @@ const COMPONENT_TOKENS = {
4500
4749
  fieldMessage: fieldMessageTokens,
4501
4750
  field: fieldTokens,
4502
4751
  textarea: textareaTokens,
4752
+ listInput: listInputTokens,
4503
4753
  checkbox: checkboxTokens,
4504
4754
  radioButton: radioButtonTokens,
4505
4755
  toggleSwitch: toggleSwitchTokens,
@@ -4526,6 +4776,7 @@ const COMPONENT_TOKENS = {
4526
4776
  statusIcon: statusIconTokens,
4527
4777
  link: linkTokens,
4528
4778
  iconLink: iconLinkTokens,
4779
+ truncateText: truncateTextTokens,
4529
4780
  tooltip: tooltipTokens,
4530
4781
  popover: popoverTokens,
4531
4782
  toast: toastTokens,
@@ -4583,7 +4834,9 @@ const COMPONENT_TOKENS = {
4583
4834
  networkStatus: networkStatusTokens,
4584
4835
  qrCode: qrCodeTokens,
4585
4836
  confetti: confettiTokens,
4586
- hoverEffect: hoverEffectTokens
4837
+ hoverEffect: hoverEffectTokens,
4838
+ mascot: mascotTokens,
4839
+ chart: chartTokens
4587
4840
  };
4588
4841
  function edgeLight({ accent, surface }) {
4589
4842
  const base = primaryBaseStep(accent);
@@ -4982,6 +5235,18 @@ const edgeOverlaysTokens = {
4982
5235
  };
4983
5236
  const radius$2 = tokenRef("radius-xs");
4984
5237
  const edgeDataTokens = {
5238
+ chart: {
5239
+ pie: { segmentRadius: "1px" },
5240
+ bar: { radius: radius$2 },
5241
+ legend: {
5242
+ borderRadius: radius$2,
5243
+ markerRadius: "1px",
5244
+ pillRadius: radius$2,
5245
+ statRadius: radius$2
5246
+ },
5247
+ tooltip: { borderRadius: radius$2 },
5248
+ line: { strokeWidth: "2" }
5249
+ },
4985
5250
  paginator: {
4986
5251
  root: { borderRadius: radius$2 },
4987
5252
  navButton: { borderRadius: radius$2 }
@@ -5214,6 +5479,20 @@ const softOverlaysTokens = {
5214
5479
  }
5215
5480
  };
5216
5481
  const softDataTokens = {
5482
+ chart: {
5483
+ pie: { segmentRadius: "8px" },
5484
+ legend: {
5485
+ borderRadius: tokenRef("radius-full"),
5486
+ paddingX: "10px",
5487
+ statRadius: tokenRef("radius-xl")
5488
+ },
5489
+ tooltip: {
5490
+ borderRadius: tokenRef("radius-xl"),
5491
+ padding: "10px 14px"
5492
+ },
5493
+ bar: { radius: "9px" },
5494
+ line: { strokeWidth: "2.5" }
5495
+ },
5217
5496
  paginator: {
5218
5497
  root: { borderRadius: tokenRef("radius-full") },
5219
5498
  navButton: {
@@ -5758,6 +6037,19 @@ const noOutline = {
5758
6037
  const sm = { padding: "5.25px 7px" };
5759
6038
  const lg = { padding: "12.25px 15.75px" };
5760
6039
  const paperDataTokens = {
6040
+ chart: {
6041
+ pie: { segmentRadius: "2px" },
6042
+ bar: { radius: tokenRef("radius-xs") },
6043
+ legend: {
6044
+ borderRadius: tokenRef("radius-sm"),
6045
+ pillRadius: tokenRef("radius-sm"),
6046
+ statRadius: tokenRef("radius-sm")
6047
+ },
6048
+ tooltip: {
6049
+ borderRadius: tokenRef("radius-sm"),
6050
+ shadow: "0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)"
6051
+ }
6052
+ },
5761
6053
  paginator: {
5762
6054
  root: {
5763
6055
  padding: "7px 12.25px",
@@ -6139,6 +6431,6 @@ function presetToCss(preset) {
6139
6431
  ...preset.css ? [preset.css] : []
6140
6432
  ].join("\n");
6141
6433
  }
6142
- export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, actionTileTokens, actionsMenuTokens, amountTokens, analogClockTokens, appFooterTokens, appLayoutTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, carouselTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, commandPaletteTokens, confettiTokens, confirmTokens, consoleLayoutTokens, contrastWithWhite, cookieNoticeTokens, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, emptyStateTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, filtersPanelTokens, floatLabelTokens, formFieldTokens, galleriaTokens, highlightTextTokens, hoverEffectTokens, iconLinkTokens, iconTokens, iftaLabelTokens, imageTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, kanbanTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, networkStatusTokens, noirScale, overlayBadgeTokens, pageHeaderTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, pinnedTabsTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, publicHeaderTokens, qrCodeTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, switchLanguageTokens, switchThemeTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, topbarPreferencesTokens, treeTableTokens, treeTokens, virtualScrollerTokens, wizardTokens };
6434
+ export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, actionTileTokens, actionsMenuTokens, amountTokens, analogClockTokens, appFooterTokens, appLayoutTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, carouselTokens, cascadeSelectTokens, chartTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, commandPaletteTokens, confettiTokens, confirmTokens, consoleLayoutTokens, contrastWithWhite, cookieNoticeTokens, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, emptyStateTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, filtersPanelTokens, floatLabelTokens, formFieldTokens, galleriaTokens, highlightTextTokens, hoverEffectTokens, iconLinkTokens, iconTokens, iftaLabelTokens, imageTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, kanbanTokens, knobTokens, labelTokens, lightDark, linkTokens, listInputTokens, listboxTokens, mascotTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, networkStatusTokens, noirScale, overlayBadgeTokens, pageHeaderTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, pinnedTabsTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, publicHeaderTokens, qrCodeTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, switchLanguageTokens, switchThemeTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, topbarPreferencesTokens, treeTableTokens, treeTokens, truncateTextTokens, virtualScrollerTokens, wizardTokens };
6143
6435
 
6144
6436
  //# sourceMappingURL=tectra-ng-themes.mjs.map