@hive-ui/style-props 0.2.4 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +67 -2
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -89,7 +89,7 @@ type BackgroundProps = {
89
89
  //#region src/border.d.ts
90
90
  declare const BORDER_COLOR_TOKENS: readonly ["colorBorder", "colorBorderDecorative10Weaker", "colorBorderDecorative20Weaker", "colorBorderDecorative30Weaker", "colorBorderDecorative40Weaker", "colorBorderDestructive", "colorBorderDestructiveStrong", "colorBorderDestructiveStronger", "colorBorderDestructiveStrongest", "colorBorderDestructiveWeak", "colorBorderDestructiveWeaker", "colorBorderDestructiveWeakest", "colorBorderError", "colorBorderErrorStrong", "colorBorderErrorStronger", "colorBorderErrorStrongest", "colorBorderErrorWeak", "colorBorderErrorWeaker", "colorBorderErrorWeakest", "colorBorderInverse", "colorBorderInverseStrong", "colorBorderInverseStronger", "colorBorderInverseStrongest", "colorBorderInverseWeaker", "colorBorderInverseWeakest", "colorBorderNeutral", "colorBorderNeutralWeak", "colorBorderNeutralWeaker", "colorBorderNewWeak", "colorBorderNewWeaker", "colorBorderPrimary", "colorBorderPrimaryStrong", "colorBorderPrimaryStronger", "colorBorderPrimaryStrongest", "colorBorderPrimaryWeak", "colorBorderPrimaryWeaker", "colorBorderPrimaryWeakest", "colorBorderStrong", "colorBorderSuccess", "colorBorderSuccessWeak", "colorBorderSuccessWeaker", "colorBorderSuccessWeakest", "colorBorderUser", "colorBorderWarning", "colorBorderWarningWeak", "colorBorderWarningWeaker", "colorBorderWarningWeakest", "colorBorderWeak", "colorBorderWeaker", "colorBorderWeakest"];
91
91
  type BorderColorToken = (typeof BORDER_COLOR_TOKENS)[number];
92
- type BorderColor = ResponsiveValue<BorderColorToken>;
92
+ type BorderColor = ResponsiveValue<BorderColorToken | "transparent">;
93
93
  type BorderColorProps = {
94
94
  /**
95
95
  * Responsive prop of BorderColor tokens for the CSS `border-color` property
@@ -430,4 +430,69 @@ type ZIndexProps = {
430
430
  zIndex?: ZIndex;
431
431
  };
432
432
  //#endregion
433
- export { BACKGROUND_COLOR_TOKENS, BORDER_COLOR_TOKENS, BORDER_WIDTH_TOKENS, BOX_SHADOW_TOKENS, BackgroundAttachment, BackgroundAttachmentOptions, BackgroundColor, BackgroundColorToken, BackgroundImage, BackgroundImageOptions, BackgroundPosition, BackgroundPositionOptions, BackgroundProps, BackgroundRepeat, BackgroundRepeatOptions, BackgroundSize, BackgroundSizeOptions, BorderColor, BorderColorProps, BorderColorToken, BorderRadius, BorderRadiusProps, BorderWidth, BorderWidthOptions, BorderWidthProps, BorderWidthToken, BoxShadow, BoxShadowProps, BoxShadowToken, COLOR_TOKENS, Color, ColorProps, ColorToken, FONT_FAMILY_TOKENS, FONT_SIZE_TOKENS, FONT_WEIGHT_TOKENS, FontFamily, FontFamilyToken, FontSize, FontSizeToken, FontWeight, FontWeightToken, Gap, GapProps, IconSize, IconSizeProps, IconSizeToken, LINE_HEIGHT_TOKENS, LineHeight, LineHeightToken, Margin, MarginProps, ObjectOrArray, Padding, PaddingProps, RADII_TOKENS, RadiiOptions, RequiredTheme, ResponsiveValue, SIZE_ICON_TOKENS, SPACE_TOKENS, Space, SpaceOptions, SpaceProps, TLengthStyledSystem, Theme, ThemeValue, TypographyProps, ZIndex, ZIndexProps, ZIndexToken, Z_INDEX_TOKENS };
433
+ //#region src/position.d.ts
434
+ type PositionOptions = Properties["position"];
435
+ type TopOptions = Properties<TLengthStyledSystem>["top"];
436
+ type RightOptions = Properties<TLengthStyledSystem>["right"];
437
+ type BottomOptions = Properties<TLengthStyledSystem>["bottom"];
438
+ type LeftOptions = Properties<TLengthStyledSystem>["left"];
439
+ type InsetOptions = Properties<TLengthStyledSystem>["inset"];
440
+ type Position = ResponsiveValue<PositionOptions>;
441
+ type Top = ResponsiveValue<TopOptions>;
442
+ type Right = ResponsiveValue<RightOptions>;
443
+ type Bottom = ResponsiveValue<BottomOptions>;
444
+ type Left = ResponsiveValue<LeftOptions>;
445
+ type Inset = ResponsiveValue<InsetOptions>;
446
+ interface PositionProps {
447
+ /**
448
+ * Responsive prop for the CSS `position` property
449
+ *
450
+ * @type {Position}
451
+ * @memberof PositionProps
452
+ */
453
+ position?: Position;
454
+ /**
455
+ * Responsive prop for the CSS `top` property
456
+ *
457
+ * @type {Top}
458
+ * @memberof PositionProps
459
+ */
460
+ top?: Top;
461
+ /**
462
+ * Responsive prop for the CSS `right` property
463
+ *
464
+ * @type {Right}
465
+ * @memberof PositionProps
466
+ */
467
+ right?: Right;
468
+ /**
469
+ * Responsive prop for the CSS `bottom` property
470
+ *
471
+ * @type {Bottom}
472
+ * @memberof PositionProps
473
+ */
474
+ bottom?: Bottom;
475
+ /**
476
+ * Responsive prop for the CSS `left` property
477
+ *
478
+ * @type {Left}
479
+ * @memberof PositionProps
480
+ */
481
+ left?: Left;
482
+ /**
483
+ * Responsive prop of ZIndex tokens for the CSS `z-index` property
484
+ *
485
+ * @type {ZIndex}
486
+ * @memberof PositionProps
487
+ */
488
+ zIndex?: ZIndex;
489
+ /**
490
+ * Responsive prop for the CSS `inset` property
491
+ *
492
+ * @type {Inset}
493
+ * @memberof PositionProps
494
+ */
495
+ inset?: Inset;
496
+ }
497
+ //#endregion
498
+ export { BACKGROUND_COLOR_TOKENS, BORDER_COLOR_TOKENS, BORDER_WIDTH_TOKENS, BOX_SHADOW_TOKENS, BackgroundAttachment, BackgroundAttachmentOptions, BackgroundColor, BackgroundColorToken, BackgroundImage, BackgroundImageOptions, BackgroundPosition, BackgroundPositionOptions, BackgroundProps, BackgroundRepeat, BackgroundRepeatOptions, BackgroundSize, BackgroundSizeOptions, BorderColor, BorderColorProps, BorderColorToken, BorderRadius, BorderRadiusProps, BorderWidth, BorderWidthOptions, BorderWidthProps, BorderWidthToken, Bottom, BottomOptions, BoxShadow, BoxShadowProps, BoxShadowToken, COLOR_TOKENS, Color, ColorProps, ColorToken, FONT_FAMILY_TOKENS, FONT_SIZE_TOKENS, FONT_WEIGHT_TOKENS, FontFamily, FontFamilyToken, FontSize, FontSizeToken, FontWeight, FontWeightToken, Gap, GapProps, IconSize, IconSizeProps, IconSizeToken, Inset, InsetOptions, LINE_HEIGHT_TOKENS, Left, LeftOptions, LineHeight, LineHeightToken, Margin, MarginProps, ObjectOrArray, Padding, PaddingProps, Position, PositionOptions, PositionProps, RADII_TOKENS, RadiiOptions, RequiredTheme, ResponsiveValue, Right, RightOptions, SIZE_ICON_TOKENS, SPACE_TOKENS, Space, SpaceOptions, SpaceProps, TLengthStyledSystem, Theme, ThemeValue, Top, TopOptions, TypographyProps, ZIndex, ZIndexProps, ZIndexToken, Z_INDEX_TOKENS };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hive-ui/style-props",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "description": "Hive UI Style Props",
5
5
  "files": [
6
6
  "dist"