@tectra-ng/themes 0.1.7 → 0.1.8

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.
@@ -4340,7 +4340,8 @@ const publicHeaderTokens = {
4340
4340
  linkBorderRadius: tokenRef("radius-full"),
4341
4341
  linkFontSize: "12.25px",
4342
4342
  linkColor: tokenRef("text-muted"),
4343
- linkHoverColor: tokenRef("text-primary")
4343
+ linkHoverColor: tokenRef("text-primary"),
4344
+ linkHoverBackground: "transparent"
4344
4345
  },
4345
4346
  end: {
4346
4347
  gap: "10.5px",
@@ -4452,6 +4453,29 @@ const qrCodeTokens = {
4452
4453
  fontSize: "12.25px"
4453
4454
  }
4454
4455
  };
4456
+ const confettiTokens = {
4457
+ piece: {
4458
+ size: "10.5px",
4459
+ borderRadius: "2.625px",
4460
+ neutralWidth: "7px",
4461
+ neutralHeight: "14px"
4462
+ },
4463
+ colors: {
4464
+ accent: tokenRef("primary-base"),
4465
+ neutral: tokenRef("text-muted"),
4466
+ success: lightDark(tokenRef("green-600"), tokenRef("green-500"))
4467
+ },
4468
+ motion: {
4469
+ duration: "1.1s",
4470
+ easing: "cubic-bezier(0.16, 1, 0.3, 1)",
4471
+ stagger: "40ms"
4472
+ }
4473
+ };
4474
+ const hoverEffectTokens = { root: {
4475
+ perspective: "100px",
4476
+ resetDuration: "600ms",
4477
+ resetEasing: "cubic-bezier(0.16, 1, 0.3, 1)"
4478
+ } };
4455
4479
  const COMPONENT_TOKENS = {
4456
4480
  icon: iconTokens,
4457
4481
  ripple: rippleTokens,
@@ -4557,7 +4581,9 @@ const COMPONENT_TOKENS = {
4557
4581
  publicHeader: publicHeaderTokens,
4558
4582
  cookieNotice: cookieNoticeTokens,
4559
4583
  networkStatus: networkStatusTokens,
4560
- qrCode: qrCodeTokens
4584
+ qrCode: qrCodeTokens,
4585
+ confetti: confettiTokens,
4586
+ hoverEffect: hoverEffectTokens
4561
4587
  };
4562
4588
  function edgeLight({ accent, surface }) {
4563
4589
  const base = primaryBaseStep(accent);
@@ -4586,9 +4612,9 @@ function edgeLight({ accent, surface }) {
4586
4612
  function edgeDark({ accent, surface }) {
4587
4613
  return {
4588
4614
  primary: {
4589
- base: accent[500],
4590
- hover: accent[400],
4591
- active: accent[300]
4615
+ base: accent[400],
4616
+ hover: accent[300],
4617
+ active: accent[200]
4592
4618
  },
4593
4619
  surface: {
4594
4620
  hover: surface[700],
@@ -4773,14 +4799,20 @@ const edgeControlsTokens = {
4773
4799
  lg: { padding: "0" }
4774
4800
  }
4775
4801
  },
4776
- checkbox: { root: { borderRadius: tokenRef("radius-xs") } },
4777
- radioButton: { root: {
4778
- checkedBackground: tokenRef("form-field-background"),
4779
- checkedHoverBackground: tokenRef("form-field-background"),
4780
- checkedBorderColor: tokenRef("form-field-border-color"),
4781
- checkedHoverBorderColor: tokenRef("form-field-hover-border-color"),
4782
- dotColor: tokenRef("primary-base")
4783
- } },
4802
+ checkbox: {
4803
+ root: { borderRadius: tokenRef("radius-xs") },
4804
+ tile: { checkedBackground: tokenRef("primary-soft") }
4805
+ },
4806
+ radioButton: {
4807
+ root: {
4808
+ checkedBackground: tokenRef("form-field-background"),
4809
+ checkedHoverBackground: tokenRef("form-field-background"),
4810
+ checkedBorderColor: tokenRef("form-field-border-color"),
4811
+ checkedHoverBorderColor: tokenRef("form-field-hover-border-color"),
4812
+ dotColor: tokenRef("primary-base")
4813
+ },
4814
+ tile: { checkedBackground: tokenRef("primary-soft") }
4815
+ },
4784
4816
  toggleSwitch: {
4785
4817
  root: {
4786
4818
  borderWidth: "1px",
@@ -4886,7 +4918,9 @@ const edgeDisplayTokens = {
4886
4918
  legendBorderRadius: tokenRef("radius-xs"),
4887
4919
  legendBorderColor: tokenRef("surface-border"),
4888
4920
  legendFontWeight: tokenRef("font-weight-bold")
4889
- } }
4921
+ } },
4922
+ iconLink: { root: { activeColor: tokenRef("highlight-color") } },
4923
+ consoleLayout: { railItem: { activeColor: tokenRef("primary-soft-text") } }
4890
4924
  };
4891
4925
  const radius$3 = tokenRef("radius-xs");
4892
4926
  const listPadding = "1.75px 0";
@@ -4985,7 +5019,11 @@ function softLight({ surface }) {
4985
5019
  border: surface[100],
4986
5020
  overlayBorder: "transparent"
4987
5021
  },
4988
- field: { disabledBackground: surface[200] },
5022
+ field: {
5023
+ disabledBackground: surface[200],
5024
+ placeholder: surface[600],
5025
+ icon: surface[600]
5026
+ },
4989
5027
  shadow
4990
5028
  };
4991
5029
  }
@@ -5011,6 +5049,8 @@ const softFormsTokens = {
5011
5049
  filledBackground: softFill,
5012
5050
  filledHoverBackground: softFillHover,
5013
5051
  filledFocusBackground: lightDark(tokenRef("surface-0"), tokenRef("surface-900")),
5052
+ placeholderColor: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
5053
+ iconColor: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
5014
5054
  borderColor: softFill,
5015
5055
  hoverBorderColor: softLine,
5016
5056
  shadow: "none",
@@ -5022,7 +5062,7 @@ const softFormsTokens = {
5022
5062
  invalidFocusRing: { shadow: softFocusShadow("danger-base") }
5023
5063
  } },
5024
5064
  inputGroup: { addon: {
5025
- background: softFillHover,
5065
+ background: lightDark(tokenRef("surface-200"), tokenRef("surface-800")),
5026
5066
  borderColor: softFill
5027
5067
  } },
5028
5068
  select: {
@@ -5039,7 +5079,8 @@ const softFormsTokens = {
5039
5079
  checkbox: {
5040
5080
  borderRadius: "6px",
5041
5081
  borderColor: softLine
5042
- }
5082
+ },
5083
+ optionGroup: { color: tokenRef("text-muted") }
5043
5084
  },
5044
5085
  listbox: { root: { focusRingShadow: softFocusShadow() } },
5045
5086
  chipsInput: { root: { chipBorderRadius: tokenRef("radius-full") } },
@@ -5600,7 +5641,9 @@ const paperDisplayTokens = {
5600
5641
  legendFocusBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
5601
5642
  focusRingWidth: "0",
5602
5643
  focusRingOffset: "0"
5603
- } }
5644
+ } },
5645
+ tabs: { badge: { solidActiveBackground: lightDark(tokenRef("primary-800"), tokenRef("primary-active")) } },
5646
+ editor: { ai: { color: lightDark(tokenRef("primary-700"), tokenRef("primary-hover")) } }
5604
5647
  };
5605
5648
  const radius$1 = tokenRef("radius-sm");
5606
5649
  const elevatedShadow = "0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12)";
@@ -6096,6 +6139,6 @@ function presetToCss(preset) {
6096
6139
  ...preset.css ? [preset.css] : []
6097
6140
  ].join("\n");
6098
6141
  }
6099
- 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, 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, 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 };
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 };
6100
6143
 
6101
6144
  //# sourceMappingURL=tectra-ng-themes.mjs.map