@tectra-ng/themes 0.1.4 → 0.1.6

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.
@@ -1648,7 +1648,7 @@ const menuTokens = {
1648
1648
  padding: "3.5px",
1649
1649
  gap: "2px",
1650
1650
  minWidth: "200px",
1651
- maxHeight: "min(420px, calc(100vh - 32px))",
1651
+ maxHeight: "min(420px, calc(100dvh - 32px))",
1652
1652
  fontSize: tokenRef("font-size-md"),
1653
1653
  lineHeight: "1.45"
1654
1654
  },
@@ -3347,6 +3347,148 @@ const panelMenuTokens = {
3347
3347
  lockColor: tokenRef("text-muted")
3348
3348
  }
3349
3349
  };
3350
+ const imageTokens = {
3351
+ root: {
3352
+ transitionDuration: tokenRef("motion-duration"),
3353
+ easing: "cubic-bezier(0.2, 0, 0, 1)"
3354
+ },
3355
+ preview: {
3356
+ iconSize: "17.5px",
3357
+ maskBackground: tokenRef("mask-background"),
3358
+ maskColor: tokenRef("surface-200"),
3359
+ background: tokenRef("mask-background")
3360
+ },
3361
+ toolbar: {
3362
+ top: "14px",
3363
+ right: "14px",
3364
+ blur: "8px",
3365
+ background: "rgba(255, 255, 255, 0.1)",
3366
+ borderColor: "rgba(255, 255, 255, 0.2)",
3367
+ borderWidth: "1px",
3368
+ borderRadius: "30px",
3369
+ padding: "7px",
3370
+ gap: "7px"
3371
+ },
3372
+ action: {
3373
+ size: "36.75px",
3374
+ iconSize: "17.5px",
3375
+ borderRadius: "50%",
3376
+ color: tokenRef("surface-50"),
3377
+ hoverColor: tokenRef("surface-0"),
3378
+ hoverBackground: "rgba(255, 255, 255, 0.1)",
3379
+ disabledOpacity: "0.5",
3380
+ focusRingWidth: "2px",
3381
+ focusRingColor: tokenRef("focus-ring-color"),
3382
+ focusRingOffset: "2px"
3383
+ }
3384
+ };
3385
+ const galleriaTokens = {
3386
+ root: {
3387
+ borderWidth: "1px",
3388
+ borderColor: tokenRef("surface-border"),
3389
+ borderRadius: tokenRef("radius-lg"),
3390
+ background: tokenRef("surface-card"),
3391
+ transitionDuration: tokenRef("motion-duration"),
3392
+ easing: "cubic-bezier(0.2, 0, 0, 1)",
3393
+ slideDuration: "0.45s",
3394
+ slideEasing: "cubic-bezier(0.2, 0, 0, 1)"
3395
+ },
3396
+ navButton: {
3397
+ background: "rgba(255, 255, 255, 0.1)",
3398
+ hoverBackground: "rgba(255, 255, 255, 0.2)",
3399
+ color: tokenRef("surface-100"),
3400
+ hoverColor: tokenRef("surface-0"),
3401
+ size: "36.75px",
3402
+ gutter: "7px",
3403
+ borderRadius: "50%",
3404
+ iconSize: "17.5px"
3405
+ },
3406
+ thumbnails: {
3407
+ background: tokenRef("surface-card"),
3408
+ padding: "12.25px 3.5px",
3409
+ gap: "3.5px",
3410
+ itemOpacity: "0.5",
3411
+ itemBorderRadius: tokenRef("radius-md"),
3412
+ verticalWidth: "128px"
3413
+ },
3414
+ thumbnailNavButton: {
3415
+ size: "24.5px",
3416
+ iconSize: "12.25px",
3417
+ borderRadius: tokenRef("radius-lg"),
3418
+ gutter: "7px",
3419
+ hoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-700")),
3420
+ color: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
3421
+ hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-0"))
3422
+ },
3423
+ caption: {
3424
+ background: "rgba(0, 0, 0, 0.5)",
3425
+ color: tokenRef("surface-100"),
3426
+ padding: "12.25px"
3427
+ },
3428
+ indicatorList: {
3429
+ gap: "7px",
3430
+ padding: "12.25px"
3431
+ },
3432
+ indicator: {
3433
+ size: "12.25px",
3434
+ borderRadius: "50%",
3435
+ background: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
3436
+ hoverBackground: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
3437
+ activeBackground: tokenRef("primary-base")
3438
+ },
3439
+ insetIndicator: {
3440
+ listBackground: "rgba(0, 0, 0, 0.5)",
3441
+ background: "rgba(255, 255, 255, 0.4)",
3442
+ hoverBackground: "rgba(255, 255, 255, 0.6)",
3443
+ activeBackground: "rgba(255, 255, 255, 0.9)"
3444
+ },
3445
+ closeButton: {
3446
+ size: "36.75px",
3447
+ gutter: "7px",
3448
+ background: "rgba(255, 255, 255, 0.1)",
3449
+ hoverBackground: "rgba(255, 255, 255, 0.2)",
3450
+ color: tokenRef("surface-50"),
3451
+ hoverColor: tokenRef("surface-0"),
3452
+ borderRadius: "50%",
3453
+ iconSize: "17.5px"
3454
+ },
3455
+ mask: {
3456
+ background: "rgba(0, 0, 0, 0.9)",
3457
+ frameWidth: "min(calc(100vw - 112px), 960px)",
3458
+ imageMaxHeight: "72vh",
3459
+ thumbnailNavColor: tokenRef("surface-100"),
3460
+ thumbnailNavHoverBackground: "rgba(255, 255, 255, 0.1)"
3461
+ },
3462
+ focusRing: {
3463
+ width: "2px",
3464
+ color: tokenRef("focus-ring-color"),
3465
+ offset: "2px"
3466
+ }
3467
+ };
3468
+ const carouselTokens = {
3469
+ root: {
3470
+ transitionDuration: tokenRef("motion-duration"),
3471
+ slideDuration: "0.5s",
3472
+ slideEasing: "cubic-bezier(0.2, 0, 0, 1)"
3473
+ },
3474
+ content: { gap: "3.5px" },
3475
+ indicatorList: {
3476
+ padding: "14px",
3477
+ gap: "7px"
3478
+ },
3479
+ indicator: {
3480
+ width: "24.5px",
3481
+ height: "7px",
3482
+ hitArea: "24px",
3483
+ borderRadius: tokenRef("radius-lg"),
3484
+ background: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
3485
+ hoverBackground: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
3486
+ activeBackground: tokenRef("primary-base"),
3487
+ focusRingWidth: "2px",
3488
+ focusRingColor: tokenRef("focus-ring-color"),
3489
+ focusRingOffset: "2px"
3490
+ }
3491
+ };
3350
3492
  const COMPONENT_TOKENS = {
3351
3493
  icon: iconTokens,
3352
3494
  ripple: rippleTokens,
@@ -3430,7 +3572,10 @@ const COMPONENT_TOKENS = {
3430
3572
  toolbar: toolbarTokens,
3431
3573
  fileUpload: fileUploadTokens,
3432
3574
  editor: editorTokens,
3433
- editorContent: editorContentTokens
3575
+ editorContent: editorContentTokens,
3576
+ image: imageTokens,
3577
+ galleria: galleriaTokens,
3578
+ carousel: carouselTokens
3434
3579
  };
3435
3580
  function edgeLight({ accent, surface }) {
3436
3581
  const base = primaryBaseStep(accent);
@@ -4969,6 +5114,6 @@ function presetToCss(preset) {
4969
5114
  ...preset.css ? [preset.css] : []
4970
5115
  ].join("\n");
4971
5116
  }
4972
- export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, amountTokens, analogClockTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, confirmTokens, contrastWithWhite, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, floatLabelTokens, formFieldTokens, highlightTextTokens, iconLinkTokens, iconTokens, iftaLabelTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, noirScale, overlayBadgeTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, treeTableTokens, treeTokens, virtualScrollerTokens };
5117
+ export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, amountTokens, analogClockTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, carouselTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, confirmTokens, contrastWithWhite, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, floatLabelTokens, formFieldTokens, galleriaTokens, highlightTextTokens, iconLinkTokens, iconTokens, iftaLabelTokens, imageTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, noirScale, overlayBadgeTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, treeTableTokens, treeTokens, virtualScrollerTokens };
4973
5118
 
4974
5119
  //# sourceMappingURL=tectra-ng-themes.mjs.map